Use XmlWriter rather than XmlTextWriter

Reference Issue
Implements enhancement #693
What does this implement/fix? Explain your changes.
Generalize XML output to use an XmlWriter instead of the more specific XmlTextWriter.
Any other comments?
All unit test pass.

@bbsgfalconer
There is also XmlTextWriter here.
https://github.com/svg-net/SVG/blob/ef55e3c2e5436bc37ca328416c2003ce71b020f6/Source/Metadata/SvgDocumentMetadata.cs#L38

@bbsgfalconer
There is also XmlTextWriter here.
https://github.com/svg-net/SVG/blob/ef55e3c2e5436bc37ca328416c2003ce71b020f6/Source/Metadata/SvgDocumentMetadata.cs#L38

That's not an XmlTextWriter. It's a reader.

@bbsgfalconer
Oh...sorry.
This PR was only for Writer.

@bbsgfalconer
By the way, does this PR solve https://github.com/svg-net/SVG/issues/817#issuecomment-765041138 ?

@bbsgfalconer
By the way, does this PR solve issue #817 (comment) ?

This PR solves the issue with the prefix for xml:space in #817 (comment).
However, the xmlns:ev declaration still becomes an ev= attribute. I don't understand why.
When I test the corrected code in #817 with this PR, I get output as below:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xml:space="preserve" ev="http://www.w3.org/2001/xml-events" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xml="http://www.w3.org/XML/1998/namespace" version="1.1" xmlns="http://www.w3.org/2000/svg">
  <g transform="translate(5, 5)">
    <rect width="25" height="50" />
    <circle cx="10" cy="10" r="50" />
    <circle cx="20" cy="20" r="50" />
  </g>
</svg>

However, the xmlns:ev declaration still becomes an ev= attribute. I don't understand why.

This is known issue.


Make an R reticulate tutorial

@henrykironde I just got asked to make an R interface. I can work with you here.

Yes I can start working on this next week

Let us suggest a name.  @ethanwhite and @bw4sz please comment on what you think about the name so that we can create a template repo for the the package.
rdeepforest
deepforestr   "Sounding like deep forester"

I like deepforestr, but I'm happy either way.

oh definitely deepforestr, that's great.
On Fri, Jun 4, 2021 at 12:45 PM ethanwhite @.***> wrote:

I like deepforestr, but I'm happy either way.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/weecology/DeepForest-pytorch/issues/77#issuecomment-854961602,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJHBLGT6WQU3REFVFTNUD3TREUNJANCNFSM46BGCBIA
.

--
Ben Weinstein, Ph.D.
Postdoctoral Fellow
University of Florida
http://benweinstein.weebly.com/

Closing this and reopening in the new repo structure.


Error saying "rule version is wrong" showed up with IDA7.7 and python3.9.10

Hi, I need help with the error i encountered. :pensive:
versions
windows 10
IDA 7.7
python 3.9.10
flare-capa 4.0.1
capa-rules 4.0.1
issue
I installed the plugin for IDA, and specified capa rules directory that is capa-rules-4.0.1\anti-analysis\anti-debugging\debugger-detection
The following error appeared in the output pane.
ERROR:capa.ida.plugin.form:Failed to load rules from C:/Users/pseuxide/Documents/Reverse Engineering/IDA Pro 7.7/IDA Pro 7.7/capa-rules-4.0.1/anti-analysis/anti-debugging/debugger-detection (error: invalid rule: rule "check for software breakpoints" depends on missing rule "contain loop").
ERROR:capa.ida.plugin.form:Make sure your file directory contains properly formatted capa rules. You can download the standard collection of capa rules from https://github.com/mandiant/capa-rules.
ERROR:capa.ida.plugin.form:Please ensure you're using the rules that correspond to your major version of capa (4)
ERROR:capa.ida.plugin.form:You can check out these rules with the following command:
    $ git clone https://github.com/mandiant/capa-rules.git -b v4 /local/path/to/rules
ERROR:capa.ida.plugin.form:Or, for more details, see the rule set documentation here: https://github.com/mandiant/capa/blob/master/doc/rules.md
INFO:capa.ida.plugin.form:Analysis failed.

of course the rules are for capa 4.0.1, i downloaded from tags.
The target is nothing complicated one. its from flare-on 9 :).
the issue maybe relate?
This is not happening with only IDA plugin, but with normal capa executable
When I executed following command,
./capa.exe --rules "path\to\capa-rules-4.0.1\anti-analysis\anti-debugging\debugger-detection" "path\to\file.exe"

following error showed up
ERROR:capa:invalid rule: rule "check for PEB BeingDebugged flag" depends on missing rule "PEB access"
Traceback (most recent call last):
  File "main.py", line 1019, in main
  File "rules.py", line 1050, in __init__
  File "rules.py", line 965, in ensure_rule_dependencies_are_met
capa.rules.InvalidRule: invalid rule: rule "check for PEB BeingDebugged flag" depends on missing rule "PEB access"

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "main.py", line 1197, in <module>
  File "main.py", line 1038, in main
  File "version.py", line 5, in get_major_version
ValueError: invalid literal for int() with base 10: 'v4'
[728] Failed to execute script 'main' due to unhandled exception!

Hey, this is a rule dependency issue because the PEB BeingDebugged rule depends on PEB access which is located outside of this directory. To filter rules, please try the -t option in the CLI tool, i.e. -t anti-debugging. In the IDA plugin you can filter after running all rules in the search bar on top. Please let me know how this works for you.

Thank you it worked...! :relieved:
I misunderstood that i had to specify particular directory containing .yml themselves.
I cant wait to play with this tool!! thanks

Awesome, good luck and please let us know what works or how we can improve the tool!


Donation Event Component

donation-event component- UI
We need to add the new components as donation-event.
#UI mockups

Completed.


python3Packages.scikit-fmm: 2022.8.15 -> 2023.4.2

Diff: https://github.com/scikit-fmm/scikit-fmm/compare/2022.08.15...2023.04.02
Description of changes
ZHF: #230712
https://hydra.nixos.org/build/219930234
The failure in python311Packages.fipy does not seem to be related to scikit-fmm, so it should be looked into separately.

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 233341 run on x86_64-linux 1

2 packages failed to build:

python311Packages.fipy
python311Packages.fipy.dist

6 packages built:

python310Packages.fipy
python310Packages.fipy.dist
python310Packages.scikit-fmm
python310Packages.scikit-fmm.dist
python311Packages.scikit-fmm
python311Packages.scikit-fmm.dist


How can i use Laravel Cross database subqueries in different databases?

Is that possible to use Laravel CDS in two different schemas?
I have 2 connections in .env and database.php, but in whereHas it only use the main DB..
p.e.
Users is located in schema 1 from DB A
Posts is located in schema 2 from DB B
I have set the connection in both models and this works fine:
$query = \App\Users->with('Posts')->get();
But this code doesn't work fine:
$query = \App\Users->with('Posts')->whereHas('Posts', function($q) {   $q->where('post_type', '3');})->get();

Laravel Cross Database Subqueries Version
PHP Version: 7.0
Database Driver & Version: Postgresql

Description:
Steps To Reproduce:

Hi there, we want to write that for us all work fine in mysql with package cross-database.

In this query User are in DB1 and categories are in DB2. the result work great!
For us, we must specify relation connection ('database.relation') in :

And for User, we must replace Authenticatable with new model class:

Thanks for the trick :+1:

Having trouble with mine on SQL Server, the generated query looks like this
(SQL: select top 1 * from [Clients] where exists (select * from [TMACentral-Demo].[Cli_Core] where [Clients].[CLIENTNUM] = [Cli_Core].[SYSID])
When it should be  [TMACentral-Demo].[dbo].[Cli_Core]


[HTTP] Improve the current HTTP response codes by including reason phrase

Description:
Currently, the HTTP response status codes are just integers. Need to improve this to include the reason phrase as well. So it would look like something below:
public struct ResponseStatus {
        int statusCode;
        string reasonPhrase
}

Now it is possible to obtain the statusCode and the reasonPhrase from the Response object

@riyafa Reopening this issue since what this issue is about is unify the status code and reason phrase into a common data structure called ResponseStatus and define enums/constants for the standard HTTP status codes, along with the reason phrase (currently, we only provide int constants for status codes). This is somewhat similar to what Netty provides, as HttpResponseStatus.

@pubudu91 currently we also provide the reasonPhrase in the http:Response object. It was misleading to say we only provide the status code as numbers. A different object called ResponseStatus can be created to include both which makes sense.

I was referring to the response status codes in https://github.com/ballerina-platform/ballerina-lang/blob/master/stdlib/ballerina-http/src/main/ballerina/http/response_status_codes.bal

okay that makes sense. Thanks

Following is the correct link.
https://github.com/ballerina-platform/ballerina-lang/blob/master/stdlib/http/src/main/ballerina/http/response_status_codes.bal

Hi All, we have defined status codes as _ to address this. See below.
https://github.com/ballerina-platform/ballerina-lang/blob/master/stdlib/http/src/main/ballerina/src/http/response_status_codes.bal
Hence, closing this issue.


Error retrieving device properties for ro.product.cpu.abi: error: insufficient permissions for device.

Problem
I'm trying to run an untouched flutter generated app on my LG G5 H850, but I keep getting an error. Also, the device never asked me to allow my computer's ADB fingerprint, although I even removed all authorizations in the developer options.
Solution idea
I assume that this lack of authorization is the cause of the problem, but how do I make flutter authorize itself?
Logs
flutter run -v
[00:34 linux ~/IdeaProjects/spin]$ flutter run -v
[  +24 ms] [/opt/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +24 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/alpha
[        ] [/opt/flutter/] git ls-remote --get-url origin
[   +5 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[        ] [/opt/flutter/] git log -n 1 --pretty=format:%H
[   +5 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[        ] 973304d5fbf737510ecc250b93d9ee2e872b563f
[        ] [/opt/flutter/] git log -n 1 --pretty=format:%ar
[   +5 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[        ] 7 days ago
[ +148 ms] Listing devices using /home/linux/Android/Sdk/platform-tools/adb
[   +1 ms] /home/linux/Android/Sdk/platform-tools/adb devices -l
[   +5 ms] Exit code 0 from: /home/linux/Android/Sdk/platform-tools/adb devices -l
[        ] List of devices attached
           LGH850f3ea9778         no permissions; see [http://developer.android.com/tools/device.html] usb:2-1.3
[  +14 ms] /home/linux/Android/Sdk/platform-tools/adb -s LGH850f3ea9778 shell getprop
[  +30 ms] Error retrieving device properties for ro.product.cpu.abi:
[   +4 ms] error: insufficient permissions for device.
           See [http://developer.android.com/tools/device.html] for more information.

[ +512 ms] Launching lib/main.dart on LGH850f3ea9778 in debug mode...
[  +75 ms] Using gradle from /home/linux/Applications/android-studio/gradle/gradle-3.2/bin/gradle.
[   +2 ms] [android/] /home/linux/Applications/android-studio/gradle/gradle-3.2/bin/gradle app:properties
[+1526 ms] Exit code 0 from: /home/linux/Applications/android-studio/gradle/gradle-3.2/bin/gradle app:properties
[  +53 ms] /home/linux/Android/Sdk/platform-tools/adb -s LGH850f3ea9778 logcat -v time -t 1
^C

flutter analyze -v
[00:35 linux ~/IdeaProjects/spin]$ flutter analyze -v
[  +30 ms] [/opt/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +34 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/alpha
[        ] [/opt/flutter/] git ls-remote --get-url origin
[   +6 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[        ] [/opt/flutter/] git log -n 1 --pretty=format:%H
[   +6 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[        ] 973304d5fbf737510ecc250b93d9ee2e872b563f
[        ] [/opt/flutter/] git log -n 1 --pretty=format:%ar
[   +6 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[        ] 7 days ago
[ +164 ms] /opt/flutter/bin/cache/dart-sdk/bin/dartanalyzer --packages /home/linux/IdeaProjects/spin/.packages /home/linux/IdeaProjects/spin
[+1166 ms] Analyzing /home/linux/IdeaProjects/spin...
[+6969 ms] No issues found!
[  +55 ms] Ran in 8.2s
[  +35 ms] "flutter analyze" took 8,320ms.
[ +175 ms] ensureAnalyticsSent: 172ms
[   +2 ms] exiting with code 0

flutter doctor -v
[00:35 linux ~/IdeaProjects/spin]$ flutter doctor -v
[  +24 ms] [/opt/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +24 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/alpha
[        ] [/opt/flutter/] git ls-remote --get-url origin
[   +5 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[        ] [/opt/flutter/] git log -n 1 --pretty=format:%H
[   +5 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[        ] 973304d5fbf737510ecc250b93d9ee2e872b563f
[        ] [/opt/flutter/] git log -n 1 --pretty=format:%ar
[   +5 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[        ] 7 days ago
[ +753 ms] [✓] Flutter (on Linux, channel alpha)
[   +7 ms]     • Flutter at /opt/flutter
[        ]     • Framework revision 973304d5fb (7 days ago), 2017-05-18 17:31:57 -0700
[        ]     • Engine revision f99d3ef108
[        ]     • Tools Dart version 1.23.0-dev.11.11
[  +99 ms] java -version
[  +54 ms] [✓] Android toolchain - develop for Android devices (Android SDK 25.0.3)
[        ]     • Android SDK at /home/linux/Android/Sdk
[        ]     • Platform android-25, build-tools 25.0.3
[        ]     • Java binary at: /home/linux/Applications/android-studio/jre/bin/java
[        ]     • Java version: OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[   +1 ms] [✓] Android Studio (version 2.3)
[        ]     • Android Studio at /home/linux/Applications/android-studio
[        ]     • Gradle version 3.2
[        ]     • Java version: OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[ +463 ms] [✓] IntelliJ IDEA Ultimate Edition (version 2017.1)
[        ]     • Dart plugin version 171.4424
[        ]     • Flutter plugin version 14.0
[  +30 ms] [-] WebStorm (version 2017.1)
[        ]     • Flutter plugin not installed; this adds Flutter specific functionality.
[        ]     • For information about managing plugins, see
                 https://www.jetbrains.com/help/idea/managing-plugins.html
[   +8 ms] Listing devices using /home/linux/Android/Sdk/platform-tools/adb
[        ] /home/linux/Android/Sdk/platform-tools/adb devices -l
[   +6 ms] Exit code 0 from: /home/linux/Android/Sdk/platform-tools/adb devices -l
[        ] List of devices attached
           LGH850f3ea9778         no permissions; see [http://developer.android.com/tools/device.html] usb:2-1.3
[  +15 ms] /home/linux/Android/Sdk/platform-tools/adb -s LGH850f3ea9778 shell getprop
[  +35 ms] Error retrieving device properties for ro.product.cpu.abi:
[   +2 ms] error: insufficient permissions for device.
           See [http://developer.android.com/tools/device.html] for more information.

[   +3 ms] [✓] Connected devices
[        ]     • LGH850f3ea9778 • LGH850f3ea9778 • android-arm • Android null (API null)
[  +14 ms] "flutter doctor" took 1,453ms.
[ +239 ms] ensureAnalyticsSent: 237ms
[   +1 ms] exiting with code 0

I've seen phones fail to display the auth dialog before.  Unfortunately this all happens below flutter at the adb layer. :/  So there isn't much Flutter can do here, other than point you at try to reset developer permissions on the device, and you can then try to connect with adb devices directly and see if it shows it's authorized.  The flutter tool is a relatively thin wrapper over the top of adb.

@eseidelGoogle Yes, adb devices shows the same error. However, if I restart adb as root, it works. Now, when I try running flutter as a normal user while the adb daemon running as root, flutter still shows the error. And flutter does not like being ran as root (and me neither ^^):
   Woah! You appear to be trying to run flutter as root.
   We strongly recommend running the flutter tool without superuser privileges.
  /
📎

I would not expect you to need to run anything as root. :)
I might restart, just to make sure you don't have any adb-related processes left over from root and then try again?  The permissions check should be entirely on the device-side rather than the host-side.

Yes, I restarted several times, but the error dogged. "Normal" Java debugging in Android Studio works, by the way, so it has something to do with flutter or rather the ADB version flutter is using. Which is odd, because as far as I have read in the docs, it should use the installed ADB version on the system.

It looks like the version of adb Flutter is using is at /home/linux/Android/Sdk/platform-tools/adb.  I wonder if the one you ran as root was different?  Do you know which version Android Studio is using?

Thanks. /home/linux/Android/Sdk/platform-tools/adb devices returns no permissions; see [http://developer.android.com/tools/device.html]. However, when I restart the server as root, and then do the same, it works, and so does running flutter run afterwards. Thank you very much for your help!
Any ideas on how to fix this issue for good other than running sudo adb start-server before every coding session?

Does your user have permission to access USB?  To open ports?  I'm not sure why root would be able to connect to your Android device but your user would not.

Although its an old issue, I would like to comment to prevent this issue https://xkcd.com/979/.
I am wonder if you properly set "Transfer files" after you plug in the usb. If you are currently at "Charge this device" then adb will complain about permission problems.
"Error retrieving device properties for ro.product.cpu.abi:" seems to be a separate issue.

@ThePlatzhalter @eseidelGoogle
With debugging on, also set the device to be run as MTP(File Transfer) on Unix(Ubuntu 16.04). This helped me solve the same issue with Flutter on Ubuntu. Thanks to Cro on the below SO link.
https://stackoverflow.com/questions/28704636/insufficient-permissions-for-device-in-android-studio-workspace-running-in-opens
Hope we may close the issue.

We don't really know what to do on our side, it's an Android bug. Closing.

I was just able to get Flutter working on my computer after experiencing the same error message by adjusting the security mitigation s in Windows Defender.
It seems like ADB wasn't executing properly and some playing around with settings and which applications they applied to resulted in the following steps to resolve the issue:
Go to "Exploit Protection": Windows Security > App & browser control > Exploit Protection > Program Settings
Click on Add program to customize and select Choose exact file path
Select your adb.exe executable which in my case was
C:\Users\Charith Jayasanka\AppData\Local\Android\Sdk\platform-tools\adb.exe
Scroll to the "Validate heap integrity" section and make sure the checkbox for Override system settings is checked, and the switch is in the Off position

I had the same error, the solution for me was to  rollback to a more stable version of adb.
This is what i did. Navigate to this location(WINDOWS)
C:\Users(YOUR PC NAME)\AppData\Local\Android\Sdk\tools\bin
run this command on your terminal:      sdkmanager --licenses
and accept all licences. Accept by typing Y and enter

I have the same problem. How did you rollback you adb?
@Pman143

It's been a week since I used Flutter (on Android Studio and VSCODE) and everything worked.
I have this error Error retrieving device properties for ro.product.cpu.abi: since a few hours that I can not solve.
I'm on Windows 10, I tried to update everything, reboot, restart adb, go to "Exploit protections" ...
Thank you

It seems to be an update error
I found this to help in the meantime
#33938

I was looking for the solution whole day, really really thanks.

@av1m
@carpiodanielj
yeah me too. thank you very much.

Instead of rolling back, you could use the appropriate version of adb. I had:

1.0.40 installed using the package manager in /usr/sbin/adb
1.0.41 found alongside the Android SDK in ${HOME}/Android/Sdk/platform-tools/adb

/usr/sbin/adb kill-server
sudo ${HOME}/Android/Sdk/platform-tools/adb start-server
flutter run

is what made it work for me.

Instead of rolling back, you could use the appropriate version of adb. I had:

1.0.40 installed using the package manager in /usr/sbin/adb
1.0.41 found alongside the Android SDK in ${HOME}/Android/Sdk/platform-tools/adb

<close Android Studio>
/usr/sbin/adb kill-server
sudo ${HOME}/Android/Sdk/platform-tools/adb start-server
flutter run

is what made it work for me.

Yep, this worked for me.
$(which adb) kill-server; sudo ${HOME}/Android/Sdk/platform-tools/adb start-server


Confusing documentation for New-AzureRmResourceGroupDeployment cmdlet

Hi,
The documentation for the New-AzureRmResourceGroupDeployment cmdlet mode parameter is confusing. See here
It's confusing because the definition for complete and incremental are on the same line as incremental.
Thanks.
Mark

Cmdlet documentation issues are handled by the engineering team. Please submit an issue or pull request with them: https://github.com/azure/azure-powershell


Change DCOS-UI Process from build to download

High-level description
This resolves the node dependency in dcos and allows us to rebuild
our internal build process without introducing changes to dcos.
Corresponding DC/OS tickets (obligatory)
These DC/OS JIRA ticket(s) must be updated (ideally closed) in the moment this PR lands:

DCOS-20467 Switch DCOS build to load the built assets instead of building them itself

Related tickets (optional)
Other tickets related to this change:

DCOS-20468 Upload dist folder as build artifact

Checklist for all PRs

[ ] Included a test which will fail if code is reverted but test is not. If there is no test please explain here:
[X] Read the DC/OS contributing guidelines
[X] Followed relevant code rules Rules for Packages and Systemd

Checklist for component/package updates:
If you are changing components or packages in DC/OS (e.g. you are bumping the sha or ref of anything underneath packages), then in addition to the above please also include:

[ ] Change log from the last version integrated (this should be a link to commits for easy verification and review): example
[ ] Test Results: [link to CI job test results for component]
[ ] Code Coverage (if available): [link to code coverage report]

There is no code chnage involved

PLEASE FILL IN THE TEMPLATE ABOVE / DO NOT REMOVE ANY SECTIONS ABOVE THIS LINE
Instructions and review process
What is the review process and when will my changes land?
All PRs require 2 approvals using GitHub's pull request reviews.
Reviewers should be:

Developers who understand the code being modified.
Developers responsible for code that interacts with or depends on the code being modified.

It is best to proactively ask for 2 reviews by @mentioning the candidate reviewers in the PR comments area. The responsibility is on the developer submitting the PR to follow-up with reviewers and make sure a PR is reviewed in a timely manner. Once a PR has 2 ship-it's, no red reviews, and all tests are green it will be included in the next train.

@mesosphere-mergebot label Work in Progress

@mesosphere-mergebot label Work In Progress


Change pricing for GitKraken to reflect new pricing model

GitKraken introduced an Individual license at $29 / year.  This is in addition to the free (non-commercial) tier and the Pro tier for $59 / year that it previously had.

Thanks. The new text has less explanation of the tiers, but that may be OK. I don't think we need to get into all of the details of everybody's pricing schemes; people can always click through to find out more.


compat(sort): remove md prefix from sort change event

BREAKING CHANGE: The sort event is renamed from mdSortChange to sortChange

I'm not sure that's really related to this PR, but I noticed some inconsistency in MdPaginator and MdSort change events.
In many components, like MdCheckbox you have a class named MdCheckboxChange and you do like that:
Declaration class...
let event = new MdCheckboxChange();
...
this.change.emit(event);

It will return an instance of MdCheckboxChange, but in MdPaginator and MdSort, besides the fact that the events aren't prefixed by Md and suffixed by Change, it just returns a plain object.
References:
MdCheckboxChange class
Change event

We'll be better at defining our naming, but the rule is that this should actually have the mdSort- prefix because it is a directive (notice all the inputs have mdSort as the prefix). Components like checkbox and paginator do not have the prefix. Closing in favor of a different approach to support mat-compatible code


fixed JaxpAttributeAssignment constructor

The sequence of the parameters passed to the constructor of class JaxpAttributeAssignment was wrong.

Looks good to me.


How to get github achievements?

How to get github achievements?

As of my last update in September 2021, GitHub does not have a formal "achievements" system like some gaming platforms. However, GitHub does provide certain features and recognition that developers can earn and showcase as accomplishments. Here are some ways to gain recognition on GitHub:
Contributions: Make meaningful contributions to open-source projects or repositories. Contributions can include code changes, bug fixes, documentation improvements, or creating new features.
Pull Requests and Reviews: Submitting pull requests and participating in code reviews can show your involvement in collaborative development.
Stars: When others find your repository valuable, they may "star" it, indicating their appreciation for your work.
Forks: If developers find your repository useful, they might fork it to use as a starting point for their own projects.
Followers: Gain followers who are interested in your work or projects.
GitHub Profile README: You can customize your GitHub profile README to showcase your skills, projects, or anything you want to highlight.
GitHub Badges: Some developers use badges in their repositories' README to show information like build status, code coverage, and more.
GitHub Contributions Graph: The contributions graph on your GitHub profile shows your activity over time, indicating your level of involvement.
Remember that GitHub is a platform for collaboration and sharing your work with the community. The focus should be on contributing positively, creating valuable content, and building connections with other developers.
Keep in mind that GitHub's features and community may have evolved since my last update in September 2021, so it's a good idea to check GitHub's official documentation and community guidelines for the latest information and best practices.

in this video u have full instructions https://www.youtube.com/watch?v=oJWFfp3sGYA&t=251s

@vfernando01 @franciscusvalentinus
GitHub's Acceptable Use Policies prohibits coordinated or inauthentic activity like rapid questions and answers. As a result, we'll be unmarking the answer and locking this post. Please note any future violations may result in a temporary or indefinite block from the Community. Thanks for understanding


CI: make job names different

This is more of a dummy PR to try out whether master builds after https://github.com/target/lorri/pull/342

@grahamc I had to fix the bug110 test, seems to work.


Updated alert for Bootstrap5

Fixes #79
Hey @SFr682k -- Thank you for the issue report.
Hopefuly this fixes your issue, did you want to take a look?

I’ve done some testing and dismissing the alert works now.  Thanks for fixing :)

Thanks for testing 👍


Centered Single Blog Feature Images

I have tested it i think this works.
I couldn't find a way to center the images in the content of blog posts, it uses {{ .Content | emojify }} and i don't know how this is interpreting images. 😅😅
Screenshots:
BEFORE

AFTER

Thanks :heart:  @Prakash4844


allow cut of non-record value to root

Remove the restriction on cutting a non-record value to root left over
from when a top-level value was required to be a record.

Talked about this with @mccanne and it isn't the way.


Cargo.toml libhandy git

Currently the Cargo.toml tries to fetch libhandy from the internet. The portage package manager (gentoo) doesn't allow this, I presume because of security. It would be really appreciated if this line:
libhandy = { git = "https://gitlab.gnome.org/World/Rust/libhandy-rs" }
Could be changed into, for example:
libhandy = "^1.0.3"
Thanks for reading!

Also, sorry for labeling this as a bug. I'm kind of new to github and should have labeled it as enhancement.

Hi! No worries! I'll update the labels accordingly :)
Actually, the flatpak build system has the same kind of requirement, and goes even further: you're not even allowed to download crates from crates.io at build time.
Long story short, there's a file (cargo-sources.json) that lists all the urls for all dependencies and downloads all that before the build, then cargo can be set to run in offline mode and works with these pre-downloaded dependencies (including libhandy).
I don't know how gentoo's buildsystem works, but surely something similar could be done? Or does it only trust a limited set of domains? (I'd be surprised if it allowed crates.io but not Gnome's gitlab)

(by the way, libhandy-rs is not yet? on crates.io so I can't do that)

In gentoo there's a network sandbox, the only way to be able to download files is to download them using SRC_URI="https://filename" or using eclasses. This one allows you to download files from crates.io. There is actually another issue I've come across, but I suspect it has something to do with the network sandbox.

Oh, interesting!
Apparently I was wrong, I don't know why I thought it necessary to use libhandy-rs from gitlab :thinking: I'll try switch to the crates.io version and will report back :)
As for your second error: is there no other output? If it's network related, it might be that cargo needs to be run offline, its dependencies having been downloaded using your cargo eclass. Have you configured the build with -Doffline=true?


Simple.DBObject clobbers user-defined init

In DBObject, we take control of init and give the user the setup method.
That's because Python method dispatch is MRO, named-based, and handled at runtime. That's all great, but if the original init that we replace manually called the superclass init, then our replacement init gets called. And that happens regardless of whether or not you use the super keyword. Another issue is the possibility of infinite recursion if you're not careful.
In fact, constructor call order with an arbitrary inheritance hierarchy is pretty difficult to support when your providing the kind of extra functionality we're talking about. That's why the design is switched - our special constructor is called once for the entire hierarchy and uses Python's MRO on class variables to determine what Fields it needs.
However, clobbering a user-supplied init is pretty much always a bad idea, so we should throw an exception. Something like:
prev_init = getattr(cls, "__init__", None)
if callable(prev_init) and prev_init != object.__init__:
    raise TypeError('Classes with user-supplied __init__ should not be decorated with DBObject. Use the setup method')

Closed by release 0.1.4


Fix/clone settings should dirty scene

Call Undo.RecordObject so that editor will dirty the scene when ActiveProfile setting is changed.
Fixes #4109.

Awesome stuff :)

@keveleigh lemme know if you have background/time for this one, otherwise I can take a look at this today.


Docs: Code blocks typed as console are hard to read

Summary
With the new code highlight changes,
.. code-block:: console is quite hard to read.

.. code-block:: shell

[!NOTE]
While we are open for sponsoring on GitHub Sponsors and
OpenCollective, we also utilize Polar.sh to engage in pledge-based sponsorship.
Check out all issues funded or available for funding on our Polar.sh Litestar dashboard

If you would like to see an issue prioritized, make a pledge towards it!
We receive the pledge once the issue is completed & verified
This, along with engagement in the community, helps us know which features are a priority to our users.

Well this actually is only used in the PR I have put up.. 🙃


ufunc 'sparse_correct_alternative_hellinger' did not contain a loop with signature matching types <class 'numpy.dtype[float32]'> -> None

Not sure if I am doing something wrong but I am consistently getting the error above 4000 rows when using UMAP. I do not understand the error message - I would really appreciate some help.
Here is the important part of the code:
    tfidf_vectorizer = TfidfVectorizer(min_df=5, stop_words="english")
    tfidf_word_doc_matrix = tfidf_vectorizer.fit_transform(
        notam_df["text_column"].tolist()
    )
    tfidf_embedding = umap.UMAP(metric="hellinger", n_neighbors=15).fit(
        tfidf_word_doc_matrix
    )

and here is the traceback:
Traceback (most recent call last):
  File "C:\Users\Edvin\Desktop\first-model\DAEN690\src\models\umap_model.py", line 66, in <module>
    main()
  File "C:\Users\Edvin\Desktop\first-model\DAEN690\src\models\umap_model.py", line 57, in main
    tfidf_embedding = umap.UMAP(metric="hellinger", n_neighbors=5).fit(
  File "C:\Users\Edvin\AppData\Roaming\Python\Python310\site-packages\umap\umap_.py", line 2516, in fit
    ) = nearest_neighbors(
  File "C:\Users\Edvin\AppData\Roaming\Python\Python310\site-packages\umap\umap_.py", line 342, in nearest_neighbors
    knn_indices, knn_dists = knn_search_index.neighbor_graph
  File "C:\Users\Edvin\AppData\Roaming\Python\Python310\site-packages\pynndescent\pynndescent_.py", line 1564, in neighbor_graph
    self._distance_correction(self._neighbor_graph[1]),
numpy.core._exceptions._UFuncNoLoopError: ufunc 'sparse_correct_alternative_hellinger' did not contain a loop with signature matching types <class 'numpy.dtype[float32]'> -> None

More info: I ran this on Windows 10 - but then I shared my code with a friend on a mac - and ran no problem with 50k.

Upgraded numpy to latest (numpy 1.22.4) and fixed it.


RSS Feeds and TriggerAgent Help

im basically trying to filter out rss feeds.
This is my TriggerAgent

{
"expected_receive_period_in_days": "14",
"keep_event": "true",
"rules": [
{
"type": "regex",
"value": "keyword1|keyword2|keyword3",
"path": "url|description|title"
}
]
}

I know the keywords should work since ive seen it other people do it but i could not find anything on having multiple paths like i have and im wondering if that will work. In order to search the title, description and url am i doing this right ?
Also if an rss im trying to filter is showing one of my keywords in it, why doesnt it show up right away, what im saying is the rss feed is showing that it has the keyword but it takes a while to retrieve the rss feed and filter for keywords, even though i have the refresh set at 5 min.
Just in case heres the rest of my agents
RssAgent

{
"expected_update_period_in_days": "1",
"clean": "false",
"url": "http://rssfeed.com/Rss.xml"
}

DataOutputAgent

{
"secrets": [
"a-secret-key"
],
"expected_receive_period_in_days": 1,
"template": {
"title": "sometitle",
"description": "This is a feed was made by me,
"item": {
"title": "{{title}}",
"description": "{{description}}",
"link": "{{url}}"
}
}
}

Welcome @xdirty.  The path can only have on JSONPath in it, I believe.  I think you'd need multiple rules for multiple paths.
It could take longer than 5min because events don't propagate immediately by default and are instead propagated once every few minutes.  If  you check the "propagate immediately" checkbox, it might help a little.  You can also manually run the Agent.

Cantino, first of all thank you for everything.
Im sorry, are you saying it can only have one path ? so different triggerAgent per path ?

You can have multiple rules in one trigger agent, like:
{
"expected_receive_period_in_days": "14",
"keep_event": "true",
"rules": [
{
"type": "regex",
"value": "keyword1|keyword2|keyword3",
"path": "url|description|title"
},
{
"type": "regex",
"value": "keyword1|keyword2|keyword3",
"path": "url|description|title"
},
{
"type": "regex",
"value": "keyword1|keyword2|keyword3",
"path": "url|description|title"
},
...
]
}

Gotcha, now it all makes sense.
THANK YOU!

No problem :)


[.Net SDK, Email] CreateDirectConversationAsync method returns HTTP 401 (Unauthorized) after the bot is restarted?

Bot Info

SDK Platform: .NET
SDK Version: Microsoft.Bot.Builder.Azure 3.2.3
Active Channels: Email
Deployment Environment: Auzure Bot Service

Issue Description
CreateDirectConversationAsync method returns HTTP 401 (Unauthorized) by Email channel after the bot is restarted. But the method works fine, if an email from user is sent to the bot before it's called. Looks like the channel requires action from user first to allow the bot to create the conversation, but restarting the bot doesn't look like a fair reason for that.
Code Example
ConversationResourceResponse conversation = await client.Conversations.CreateDirectConversationAsync(BotAccount, UserAccount);

Reproduction Steps

Enable the Email channel
Try to create Direct Conversation from bot to user.

Expected Behavior
Ok, probably requiring the user action before the bot creates a proactive message is a good thing. But why is this affected the email channel only? And the main question is why does it stop working after the bot is restarted?

@fanidamj No, the problem has solved.


Avoid orphan instances and define defaults

It's considered a good practice to define at least some necessary typeclass instances for the exported datatypes. Also providing defaults is a good and common way of enabling users to override part of the structure(see Default). I made the changes in the way to not break backwards compatibility, if these instances were defined in the user codebase, GHC will issue a warning.

This change is

This has now been merged and released to Hackage as bcrypt-0.0.9. Thanks for the patch!


Json path query is not working as expected

JSON :
{
"key" : "value",
"array" :
{ "key" : 1 },
{ "key" : 2, "dictionary": {
"a": "Apple",
"b": "Butterfly",
"c": "Cat",
"d": "Dog"
} },
{ "key" : 3 }
]
}
Extraction Query:
$.array[?(@.key=2)].dictionary.b
Result:
[
"Butterfly"
]
Im trying using your library giving an output of empty list
validationObj.jsonPath ="$.array[?(@.key=2)].dictionary.b"
JsonPath.read(responseJSONData, validationObj.jsonPath) -->[ ] instead of ["Butterfly"]
Please your help is appreciated

Hi, just as an information I guess this is related to one of the concerns I've raised in this issue: https://github.com/jayway/JsonPath/issues/114

Here is the correctly formatted JSON.
{
"key": "value",
"array": [
{
"key": 1
},
{
"key": 2,
"dictionary": {
"a": "Apple",
"b": "Butterfly",
"c": "Cat",
"d": "Dog"
}
},
{
"key": 3
}
]
}
I think this expression gives the answer you seek.
$.array[?(@.key==2)].dictionary.b
On 9 September 2015 at 16:13, Franck Michel<EMAIL_ADDRESS>wrote:

Hi, just as an information I guess this is related to one of the concerns
I've raised in this issue: #114
https://github.com/jayway/JsonPath/issues/114
—
Reply to this email directly or view it on GitHub
https://github.com/jayway/JsonPath/issues/120#issuecomment-138796657.

--
Warwick Hunter
K1300S/R1200GSA m: +61 4 1242 1576 skype: warwickhunter


Memory access errors when calling create_blob_with_encoding_from_str

I've been trying to get this to work with wgpu, but I'm stuck trying to get it to create the DxcBlobEncoding to pass to DxcCompiler.compile.
It fails with code 0xc0000005: Invalid access to memory location. (os error 998) when calling
let blob = dxc_library
    .create_blob_with_encoding_from_str(&source);

The exception is in https://docs.rs/crate/com-rs/0.2.1/source/src/macros.rs in the innermost part of
        impl $iface {
            $($(#[$fn_attr])*
            pub unsafe fn $func(&self, $($i: $t),*) -> $rt {
                ((*self.vtable).$func)(self $(,$i)*)
            })*
        }

Passing the same &source to hassle_rs::utils::compile_hlsl works.
edit: Link to WIP where the crash occurs

Do you have your hassle-rs version matched up to the DXC library version, as per the readme? Is this occuring 9n Windows, Linux, or both?

Turns out I wasn't storing the Dxc object (from Dxc::new). I was just creating the DxcCompiler and DxcLibrary and storing those, leading to dxc getting dropped.
On another note, are DxcCompiler and DxcLibrary thread safe? Should I be creating one of each at program start and reusing them, or should I create a new one every time I compile a new shader?

Turns out I wasn't storing the Dxc object (from Dxc::new). I was just creating the DxcCompiler and DxcLibrary and storing those, leading to dxc getting dropped.

Ah yes, perhaps these should have a borrow or Arc or other lifetime mechanism to prevent the underlying libloading::Library from being dropped and the pointers loaded from it to become invalid.

On another note, are DxcCompiler and DxcLibrary thread safe? Should I be creating one of each at program start and reusing them, or should I create a new one every time I compile a new shader?

For that I defer you to https://github.com/microsoft/DirectXShaderCompiler/pull/4818.

Turns out I wasn't storing the Dxc object (from Dxc::new). I was just creating the DxcCompiler and DxcLibrary and storing those, leading to dxc getting dropped.

@MarijnS95 maybe we should make those constructors private to prevent these kinds of mistakes

On another note, are DxcCompiler and DxcLibrary thread safe? Should I be creating one of each at program start and reusing them, or should I create a new one every time I compile a new shader?

Yes - we are using it in a multi-threaded fashion without problems other then the one @MarijnS95 pointed out (which is linux specific).

@Jasper-Bekkers it's not a faulty constructor that's wrongly called by the user, it is that these create_* constructors (implementation, returned object) don't set up a lifetime reference properly on Dxc. There's no other way to use these objects (other than going through utils::compile_hlsl() which is rather limited in functionality).


set @capacitor/core to version 2.4.7 or higher

fixed capacitor 3 problem (plugin uses capacitor 3 but is not compatible with cap3)

pls review again


Multi-module: better handling of duplicated types

When using multi-modules and the same GraphQL type is used in two sibling modules, the checkApolloDuplicates task fails with
duplicate Type '$Foo' generated in modules: feature1, feature2
Use 'alwaysGenerateTypesMatching' in a parent module to generate the type only once

This works but has 2 limitations:

It's a manual process. One has to find the "good" parent module to add the type into and modify the Gradle file, invalidating the whole module build.
because the check needs to be done across all modules, it configures and runs condegen in all modules who have the Apollo plugin which defeats module independance.

One alternative is to generate all types in the schema module (alwaysGenerateTypesMatching.set(listOf(".*"))) but this increases codegen time and Kotlin compilation time too.
Edit: since this issue was written, we found a better solution. See the comments below.

Previously proposed solution
Instead of using a Gradle optinon, use a file to pass the types to generate. src/main/graphql/local.types would contain a list of types to generate locally:
Foo
SomeInput
SomeOtherType
...

Because this is not in Gradle scripts, this will only invalidate the GraphQL codegen when changed (which is expected).
And because this is in a file, we could have a global task that walks the whole module tree and generates these files:
# whenever a new used type is found, run this
./gradlew updateApolloLocalTypes

This way the cost of walking the module tree is only paid once during development and not on every build.
Questions:

This doesn't prevent duplicate types to be generated. If one works on a single module and adds a new used type, the error only comes at the very end on Android when dexing (or never on the JVM and the classpath will have multiple versions of the same class). Maybe we should looks at it "the other way around" and have the schema module know about its "children" so it can update the local types accordingly...

Hi everyone 👋
3.7.0 introduces usedApolloCoordinates and apolloSchema configuration to determine the used types automatically.
To set up auto detection of used coordinates, configure your schema module to get the used coordinates from the feature module using the apolloUsedCoordinates configuration:
// schema/build.gradle.kts
dependencies {
  implementation("com.apollographql.apollo3:apollo-runtime")
  // Get the used coordinates from your feature module
  apolloUsedCoordinates(project(":feature"))
  // If you have several, add several dependencies
  apolloUsedCoordinates(project(":feature-2"))
}
apollo {
  service("my-api") {
    packageName.set("com.example.schema")
    generateApolloMetadata.set(true)
  }
}

And in each of your feature module, configure the apolloSchema dependency:
// feature/build.gradle.kts
dependencies {
  implementation("com.apollographql.apollo3:apollo-runtime")
  // Depend on the codegen from the schema
  apolloMetadata(project(":schema"))
  // But also from the schema so as not to create a circular dependency
  apolloSchema(project(":schema"))
}
apollo {
  // The service names must match
  service("my-api") {
    packageName.set("com.example.feature")
  }
}

More info in the release notes


1.16/license

Since 1.16.1-32.0.90 the field license is required in the mods.toml

Right - thanks, Puggan!


Some question about profiling gevent based web application

My application is a web application hosted by gunicorn, using gevent as async worker.
gunicorn pre-forked two processes, every one is a gevent worker (single thread). My attachment graph is profiling for one worker.
From the doc, since pyflame can't profile IO and c code, I think my left IDLE part should be related to it.
The middle part is my real business logic related code.
For  the right long part,  all in gevent.threadpool:_worker (task = task_queue.get()), I'm not familiar with gevent internal, is it normal?  seems it's gevent main greenlet waiting for available tasks, My guess is because gevent  is blocked by some CPU heavy code. But how can it be profiled with my real application code on the same level (If my assumption is right, the right part and middle part should be mixed together)
If only look at  the middle part (my business logic code), does it only means CPU usage of my call stack? For example I have a very complex function, it will do both heavy CPU work  and call a slow rpc service (waiting for IO). From pyflame, the waiting for IO part should be in IDLE, so my rpc part on flame graph will be narrow, is my understanding right?
Thanks for any advice.

similar situation. searching for an answer.

This looks like it might be caused by #62, which is now fixed in master. Could you have a go with the latest build?
If not, could you post a snippet that'll reproduce the issue, and I'll see if I can get to the bottom of it. Greenlets can wreak havoc on stack inspection, so it might just be that, but I'll see if I can make sense of it either way.

Thanks, I tested with pyflame 1.3.1.
The right gevent part disappeared.  Now I only have IDLE part and my logic part.
And so as my last part in the question. Did my logic part  only means CPU usage of my call stack?
If my python function  is waiting for IO (eg:  calling rpc server via socket), if pyflame do snapshot on it, the sample will be in IDLE?
I did a test, a simple http server, just sleeping for long time:
import gevent
from gevent import pywsgi

def hello_world(env, start_response):
    gevent.sleep(1000)
    start_response('200 OK', [('Content-Type', 'text/html')])
    return ["<b>hello world</b>"]

pywsgi.WSGIServer(('<IP_ADDRESS>', 8001), hello_world).serve_forever()

A  simple client to call this server:
import requests
print requests.get('http://<IP_ADDRESS>:8001')

Then use pyflame to profile client, 100% sample in IDLE.
Seems my assumption is right. I original guess is pyflame will see something like sock.recv

@monsterxx03 As a rough approximation, yes. With the latest version of PyFlame, unless you've run it in --threads mode, IO should show up as (idle).
More precisely, any time when it's not executing Python code is listed as (idle), which often means IO, although some native code such as numerical libraries would show up as (idle).
Even more precisely still, it's about the global interpreter lock. CPython protects the internals of the interpreter with a single lock, the GIL, and anything that needs to interact with Python objects has to acquire this lock for safety (and code that doesn't currently need it, because it's waiting for stuff like IO or pure C calculations, can release it until it needs it). By default, PyFlame will only profile the thread that holds the GIL, and will report time as (idle) if no thread currently does.
This issue was caused by some refactoring we did to add the --threads flag, which allows PyFlame to profile all threads, not just the one with the GIL. When we first implemented this, there was a bug, #62, which meant that when you were running in the default (not --threads) mode, it would only profile when something held the GIL, but it would profile all threads (including ones waiting for IO, or otherwise not holding the GIL), not just the one with the GIL.
So in your case, the gevent code that was waiting for IO would be spuriously added to the timings whenever something held the GIL.
Hopefully this should be sorted now, but if you can find a test case that still triggers it, I'll take a look.

Thanks so much, much clear now.
The gevent problem has been fixed in my case, I'll close this issue.


collisions with vim plugin

Especially { shortcut.

and for " for yank

I am also experiencing a number of clashes with the Vim plugin.
Would it be possible to allow settings to govern how this works?

Faced the same issue when tried to use va[. Instead of selecting the text, it just wraps a single symbol into [].


Add support for SLA liquidity

Check whether (which of) our LP age can cope well with the SLA stuff.

@cdummett beat you to it https://github.com/vegaprotocol/vega-market-sim/issues/445. I will convert this to just about SLA

@TomMcL can be closed?


[Azure Search] Test gallery circuit breaker again new search service

Both the region down case and the intermittent failure case.

Also, we should ensure we have good visibility on this through monitoring.


I secured humongous security vulnerability

This is not really anything to do with security!
Revise pr names.


How to configure apache with existing vhost redirect/proxypass/AuthType rule?

Using the config as explained here: https://github.com/lukas2511/dehydrated/blob/master/docs/wellknown.md#apache-example-config
I am trying to set up the .well-known/acme-challenge to be available under every vhost. But one vhost has for example 'Redirect permanent / https://foo.bar/cms.
This config forces a redirect and breaks the config.
Then there is
 AuthType Basic…  which also breaks the setting. :(
The apache config explains how the later rules take predesence https://httpd.apache.org/docs/2.4/sections.html#merge-examples
Does anyone know how to get around this? I could write excluding-rules and adjust every vhost config. But this is anything but pretty. :(

Sorry but this is not a dehydrated bug-report so I'm closing this. Your best bet would be to look around on the Let's Encrypt community forums, other clients require very similar configuration so you might find some help over there.

True, but if there was some apache config option that would prevent it from being overwritten, it would be a great addition to the docs. :-) But I'll see what I can find out.


Make bevy_render an optional dependency of bevy_scene

Objective
bevy-scene does not have a reason to depend on bevy-render except to include the Visibility and ComputedVisibility components. Including that in the dependency chain is unnecessary for people not using bevy_render.
Also fixed a problem where compilation fails when the serialize feature was not enabled.
Solution
This was added in #5335 to address some of the problems caused by #5310.
Imo the user just always have to remember to include VisibilityBundle when they spawn SceneBundle or DynamicSceneBundle, but that will be a breaking change. This PR makes bevy_render an optional dependency of bevy_scene instead to respect the existing behavior.

I don't think this makes it possible to enable the bevy_scene features without depending on bevy_render

@mockersf  I've made it so that bevy_scene/bevy_render only gets enabled when bevy_render was enabled.


CORE-5091 Refactor DigitalSignatureAndMetadata into TransactionSignature to allow batch signing.dMetadata into net.corda.v5.ledger.common.transaction.TransactionSignature

Refactor DigitalSignatureAndMetadata into TransactionSignature to allow batch signing.

API: https://github.com/corda/corda-api/pull/631

Closing. Another Batch signature PR is already merged.


Merge Dev ke UAT 30 June 2017

Coverage decreased (-0.02%) to 65.274% when pulling a580449316adad84c0a90e1c49afc561458d50fe on dev into 8cdd7afe5a08f973dd88a93ec6976565dcaa5626 on uat.


Javascript SQLite support

Make apollo-normalized-cache-sqlite work on JavaScript targets using SQLDelight JS driver

I am trying to figure out for
"
Because the SqlJs driver must be initialized asynchronously, the drivers for other platforms must be initialized in a compatible way to be usable in a common source set.
The drivers can be initialized in a coroutine, and a higher-order function can be used to ensure that the driver is initialized before executing a block of code that requires the database"


Bug: Problems copying GIF images (1 frame) on the image preview overlay page (ImagePreviewOverlay)

Fixed by 101f91c commit


Feature Request: Whitelist/Blacklist fluids for teapot filling

I have recently been running into the issue of being unable to fill the teapot with milk in a modded pack due to vanilla cows and liquid milk being unavailable. Only the vanilla bucket is available (Which cannot be crafted with the teapot to add the milk). Being able to fill the teapot with. for example, any of the animania milk types, would be a major benefit as they are capable of being stored in fluid tanks and placed in the world like water and other fluids unlike vanilla milk.
The filled teapot likely does not need a different type for every type of milk or water, simply returning a water filled or milk filled teapot as normal when filled from appropriate whitelisted fluids.
I adore the simplicity of this mod, keep up the good work!

Forgot to say, this is in the 1.6 release


OpenPBS : when in auth=local nodes are not registered in PBS

Version
1.0.36
Expected Behavior
Node registered in OpenPBS and listed with the pbsnodes -avS command
Actual Behavior
pbsnodes -avS is empty
Steps to Reproduce the Problem
Deploy a PBS cluster configured with auth=local
start a node
run pbsnodes -avS

Logs in autoscaler shows that the hostname is not resolved
023-06-05 12:39:37,700 ERROR: Node(execute-1, 11w3w000000, Standard_F2s_v2, 42d1999b-234d-4a99-a662-63c946230320) has a hostname that can not be queried via reverse dns (private_ip=<IP_ADDRESS> cyclecloud hostname=11w3w000000 reverse dns hostname=localhost). If you have an entry for this address in your /etc/hosts file, please remove it.


Making Rockstar more Rockstarry by following PEP8

Did following changes:

Added staticmethod decorator
Constants name capitalized
Default initialization in __init__.py
Making default argument immutable

Merging, thanks! 👍

Cool :)


zephir build doesn't builds phalcon

git clone --depth=1 git://github.com/phalcon/zephir.git
cd zephir
./install-json
./install -c

$ zephir version
0.9a-dev

git clone --depth=1 git://github.com/phalcon/cphalcon.git
cd cphalcon/
zephir build

...
Preparing for PHP compilation...
Preparing configuration file...
Compiling...
Installing...
Zephir\CompilerException: Internal extension compilation failed. Check compile-errors.log for more information

at Library/Compiler.php(1126)
#0 Library/Compiler.php(1187): Zephir\Compiler->install(Object(Zephir\Commands\CommandBuild), false)
#1 Library/Commands/CommandAbstract.php(101): Zephir\Compiler->build(Object(Zephir\Commands\CommandBuild))
#2 Library/Bootstrap.php(199): Zephir\Commands\CommandAbstract->execute(Object(Zephir\Config), Object(Zephir\Logger))
#3 compiler.php(21): Zephir\Bootstrap::boot()
#4 {main}

$ cat compile-errors.log
/bin/bash: /home/klay/projects/zephir/phalcon/cphalcon/ext/libtool: No such file or directory
/bin/bash: /home/klay/projects/zephir/phalcon/cphalcon/ext/libtool: No such file or directory
make: *** [phalcon.lo] Error 127
make: *** Waiting for unfinished jobs....
make: *** [kernel/main.lo] Error 127
/bin/bash: /home/klay/projects/zephir/phalcon/cphalcon/ext/libtool: No such file or directory
make: *** [phalcon.lo] Error 127

$ aptitude search libtool | grep 'i '
i   libtool                         - Generic library support script

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/27502140-zephir-build-doesn-t-builds-phalcon?utm_campaign=plugin&utm_content=tracker%2F280146&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F280146&utm_medium=issues&utm_source=github).

Any other information?
/bin/bash: /home/klay/projects/zephir/phalcon/cphalcon/ext/libtool: No such file or directory
hints a wrongly setup build environment. Do phalcon's tests still pass or is this a general problem?

Fortunately I am unable to reproduce this issue


Add 'Publish Feed' feature

This PR adds the 'Publish Feed' feature to Omni Core.
This is currently a prototype for review, and may need changes or updates depending on whether I've understood the requirements for publishing a feed correctly.
In summary, the feed system allows an address to publish a value (a feed) which may be later referenced.
The feature has been simplified from the original concept of publishing data described in the Omni spec.  There appears no need to 'setup' a feed, we are able to simply publish values as needed.
Feeds are identified by two attributes; the publishing address and a feed reference.  A feed reference is used to allow an address to publish multiple disparate feeds if so desired.
A new Publish Feed transaction is used to publish.  This transaction can be described as follows:

Publish Feed
Transaction type 31 publishes a value which may be later referenced by Omni transactions and exposed by the RPC-API.
Multiple Publish Feed transactions from the same address using the same feed reference may be used to form a feed history.
There are no additional validity constraints other than the the message field datatypes.

Field
Type
Example Value

Transaction version
16 bit unsigned int
31

Transaction type
16 bit unsigned int
0

Feed reference
16 bit unsigned int
1

Feed Value
64 bit signed int
5000

No transactions currently reference this data, but it is exposed via the RPC-API interface.
Initially supported functions via the RPC-API are:

Get the current value of a feed (omni_getfeed address feedref)
Get the value of a feed as at block N (omni_getfeed address feedref block)
Get the past values (history) of a feed (omni_getfeedhistory address feedref)
Get the feeds an address has published (omni_getfeeds address)

Respective internal functions grab this data from the feed database (leveldb), it may be likely that the most useful in the context of smart contracts would be retrieving the value at block N (assuming contracts are settled based on the price at block N).
A set of basic tests is included to validate functionality - these results (included below) can be checked by running the bash script test/test_publishfeed.sh.  Note these tests demonstrate basic functionality only and do not look for problems with edge cases etc, that likely needs more thorough testing.
Preparing a test environment...
   * Starting a fresh regtest daemon
   * Preparing some mature testnet BTC
   * Obtaining a master address to work with
   * Funding the address with some testnet BTC for fees
   * Participating in the Exodus crowdsale to obtain some OMNI
   * Master address is mumET8Stvkjsdd16ys8v6v4jyy9gRcJ9y1
   * Generating addresses to use
Confirming publish feed transactions are invalidated before activation...
   * Sending a Publish Feed transaction
     # Checking the transaction was invalid... PASS
Activating the publish feed transaction...
   * Sending the activation
     # Checking the activation transaction was valid... PASS
   * Mining 10 blocks to forward past the activation block
     # Checking the activation went live as expected... PASS
Testing Publish Feed...
   * Sending a Publish Feed transaction (feed 1, value 1000)
     # Checking the transaction was valid... PASS
     # Checking the value for feed 1 at address is now 1000... PASS
     # Getting the block number to use later...
   * Sending several Publish Feed transactions for feed 1, (highest will be 5000 but latest 3000)
     # Checking the value for feed 1 at address is now at latest (3000)... PASS
     # Checking the value for feed 1 at address is 1000 at block 117... PASS
   * Sending Publish Feed transactions for feed refernces 2 and 65
     # Checking the value for feed 2 at address is now 200... PASS
     # Checking the value for feed 65 at address is now 6500... PASS
     # Checking that feeds 1, 2 and 65 are returned in omni_getfeeds... PASS
   * Checking feed history for feed ref 1
     # Checking that values 1000, 2000, 4000, 5000 & 3000 exist in history... PASS
   * Committing feed database to log
Orphaning a block to test Feed DB reorg protection (disconnecting 1 block from tip and mining a replacement)
     # Checking the value for feed 1 at address is still at 3000... PASS
   * Updating the feed to 9000
     # Checking the value for feed 1 at address is now at 9000... PASS
   * Committing feed database to log
   * Executing the rollback
   * Clearing the mempool
   * Verifiying the results
      # Checking the block count has been reduced by 1... PASS
   * Mining a replacement block
   * Committing feed database to log
   * Verifiying the results
      # Checking the block count is the same as before the rollback... PASS
      # Checking the block hash is different from before the rollback... PASS
     # Checking the value for feed 1 at address has been rolled back to 3000... PASS

####################
#  Summary:        #
#    Passed = 17   #
#    Failed = 0    #
####################

Just wow, I really like the whole submission! Great description and clean code!
Let's check with @patrickdugan, whether this is what he needs, once the time is right. :)


Bug: Babel plugin chokes on solito library

After upgrading from v1.30.19 to v1.30.23 I started seeing a new error when trying to run the expo dev server.
It seems to be choking on some syntax in the solito library. I get the following error output in the terminal from the babel plugin:
transform[stderr]: Tamagui failed loading the pre-built tamagui.config.ts
transform[stderr]:
transform[stderr]: Unexpected token 'export'
transform[stderr]: /path/to/node_modules/solito/link/index.js:1
transform[stderr]: export * from '../build/link'
transform[stderr]: ^^^^^^
transform[stderr]:
transform[stderr]: SyntaxError: Unexpected token 'export'
transform[stderr]:     at Object.compileFunction (node:vm:360:18)
transform[stderr]:     at wrapSafe (node:internal/modules/cjs/loader:1084:15)
transform[stderr]:     at Module._compile (node:internal/modules/cjs/loader:1119:27)
transform[stderr]:     at Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
transform[stderr]:     at Object.newLoader (/path/to/node_modules/esbuild-register/dist/node.js:2262:9)
transform[stderr]:     at Object.extensions..js (/path/to/node_modules/esbuild-register/dist/node.js:4807:24)
transform[stderr]:     at Module.load (node:internal/modules/cjs/loader:1033:32)
transform[stderr]:     at Function.Module._load (node:internal/modules/cjs/loader:868:12)
transform[stderr]:     at Module.require (node:internal/modules/cjs/loader:1057:19)
transform[stderr]:     at Module.tamaguiRequire [as require] (/path/to/node_modules/@tamagui/static/dist/cjs/require.js:62:20)
transform[stderr]:     at require (node:internal/modules/cjs/helpers:103:18)
transform[stderr]:     at Object.<anonymous> (/path/to/packages/ui/dist/cjs/core/TextLink.js:29:19)
transform[stderr]:     at Module._compile (node:internal/modules/cjs/loader:1155:14)
transform[stderr]:     at Module._compile (/path/to/node_modules/esbuild-register/dist/node.js:2258:26)
transform[stderr]:     at Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
transform[stderr]:     at Object.newLoader (/path/to/node_modules/esbuild-register/dist/node.js:2262:9)
transform[stderr]:     at Object.extensions..js (/path/to/node_modules/esbuild-register/dist/node.js:4807:24)
transform[stderr]:     at Module.load (node:internal/modules/cjs/loader:1033:32)
transform[stderr]:     at Function.Module._load (node:internal/modules/cjs/loader:868:12)
transform[stderr]:     at Module.require (node:internal/modules/cjs/loader:1057:19)
transform[stderr]:     at Module.tamaguiRequire [as require] (/path/to/node_modules/@tamagui/static/dist/cjs/require.js:62:20)
transform[stderr]:     at require (node:internal/modules/cjs/helpers:103:18)
transform[stderr]:     at Object.<anonymous> (/path/to/packages/ui/dist/cjs/core/index.js:21:26)
transform[stderr]:     at Module._compile (node:internal/modules/cjs/loader:1155:14)
transform[stderr]:     at Module._compile (/path/to/node_modules/esbuild-register/dist/node.js:2258:26)
transform[stderr]:     at Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
transform[stderr]:     at Object.newLoader (/path/to/node_modules/esbuild-register/dist/node.js:2262:9)
transform[stderr]:     at Object.extensions..js (/path/to/node_modules/esbuild-register/dist/node.js:4807:24)
transform[stderr]:     at Module.load (node:internal/modules/cjs/loader:1033:32)
transform[stderr]:     at Function.Module._load (node:internal/modules/cjs/loader:868:12)
transform[stderr]:     at Module.require (node:internal/modules/cjs/loader:1057:19)
transform[stderr]:     at Module.tamaguiRequire [as require] (/path/to/node_modules/@tamagui/static/dist/cjs/require.js:62:20)
transform[stderr]:     at require (node:internal/modules/cjs/helpers:103:18)
transform[stderr]:     at Object.<anonymous> (/path/to/packages/ui/dist/cjs/index.js:21:25)
transform[stderr]:     at Module._compile (node:internal/modules/cjs/loader:1155:14)
transform[stderr]:     at Module._compile (/path/to/node_modules/esbuild-register/dist/node.js:2258:26)
transform[stderr]:     at Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
transform[stderr]:     at Object.newLoader (/path/to/node_modules/esbuild-register/dist/node.js:2262:9)
transform[stderr]:     at Object.extensions..js (/path/to/node_modules/esbuild-register/dist/node.js:4807:24)
transform[stderr]:     at Module.load (node:internal/modules/cjs/loader:1033:32)
transform[stderr]:     at Function.Module._load (node:internal/modules/cjs/loader:868:12)
transform[stderr]:     at Module.require (node:internal/modules/cjs/loader:1057:19)
transform[stderr]:     at Module.tamaguiRequire [as require] (/path/to/node_modules/@tamagui/static/dist/cjs/require.js:62:20)
transform[stderr]:     at require (node:internal/modules/cjs/helpers:103:18)
transform[stderr]:     at Object.<anonymous> (/path/to/apps/expo/tamagui.config.ts:24:17)
transform[stderr]:     at Module._compile (node:internal/modules/cjs/loader:1155:14)
transform[stderr]:     at Module._compile (/path/to/node_modules/esbuild-register/dist/node.js:2258:26)
transform[stderr]:     at Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
transform[stderr]:     at Object.newLoader [as .ts] (/path/to/node_modules/esbuild-register/dist/node.js:2262:9)
transform[stderr]:     at Module.load (node:internal/modules/cjs/loader:1033:32)
transform[stderr]:
transform[stderr]: You can see if it loads in the node repl:
transform[stderr]:
transform[stderr]: require("./solito/link").default

We stopped silently quieting errors to avoid lots of confusion, so this probably existed before but was silently ignored.
Reproduction?

Dig a little more digging on this today. A minimal reproduction can be found here: https://gist.github.com/nderscore/6c5bdd04b844414c73b9e41a738556dc
As far as I can tell, the issue is related to esm export * from ... syntax in .js files.
In my own babel config for native, I already have this plugin installed:
https://babeljs.io/docs/babel-plugin-transform-export-namespace-from
Without knowing too much about the internals of @tamagui/static, I made a naive attempt to fix this by adding 'exportNamespaceFrom' to the list of babel plugins inside extractor/babelParse.ts, but that didn't seem to make any difference.

Interesting that this caused that issue. I believe babel-plugin-transform-export-namespace-from is for export * as not export * from, which should just work with any native config.

I think the * export is a red herring. The error comes from the export keyword itself.

Yeah, I think the real issue is having a dependency that uses any ESM import/export syntax but not an .mjs file extension. Running foo = require('solito/router') in a bare instance of node throws the same error.
Since solito expects to be a transpiled dependency, this normally isn't an issue. But if a tamagui UI library (@my/ui) imports it, the static extraction plugin breaks. It seems like it isn't transpiling dependencies maybe?

Does disabling the Tamagui Babel plugin fix this?

Yeah, the error is specifically coming from the plugin. Removing the plugin or removing the import of solito from my ui library resolves the error.

I ran into this issue with expo-constants as well.

There is no 1.30.23 btw would be helpful to know which version it broke in exactly.

We did start showing errors in the pre-bundle that before we just sent to /dev/null unless you added a flag, so could be there. Reason is because we just throw in a proxy around the module if we can't bundle it and it usually works anyway. I need to find a good balance...

Tried to add the latest solito + expo-constants and it works for me: f486e49ac

If someone can set up the failure using the kitchen-sink / sandbox-ui setup (just yarn sandbox to run it and it uses packages/sandbox-ui as the test ui package.

Getting the same errors in my app as well.
I ran kitchen sink after adding "kitchen-sink:ios": "yarn workspace @tamagui/kitchen-sink ios", to the root package.json and was able to produce some of the same errors: https://gist.github.com/itsnayeem/06745f93cb18d7b73a690219a20e7550
Hopefully this helps

Cleaned this up a bunch in v1.32.1:

Made it just warn a short warning
Only warns once per module
ENV to ignore all
ENV to ignore specific ones
ENV to show full error
Added a whitelist to automatically ignore known fine modules like solito

It links to the docs when it shows the warning.
Let me know if it works.


Cherrypick release-0.14 PLUGIN-170 BigQuery auth

Cherry pick release 0.14
Jira Ticket: https://issues.cask.co/browse/PLUGIN-170
Cherypick of: https://github.com/data-integrations/google-cloud/pull/359

duplicate of #416


RailModuleArticles

@briansw in the iPhone view, what is the absolute width?

@sarahscott the note for iphone is unclear, sorry about that. For iphone the width should be set to 1 column in the two column grid + 60px. See screenshot below:

I see. Thanks!

This is done in v1 of Emission.


How do I completly uninstall pihole-cloudsync?

I'm using systemd to automate the push/pull and I can remove that part easily enough but was wondering what else I might miss. I've been using the script to sync 2 pihole instances in my home lab and have run into issues where the pull instance has lost it's gravity db. I'd like to remove pihole-cloudsync completely while I try to resolve this issue.

I'm going to close this as I don't believe I need to remove pihole-cloudsysnc. I resolved the "missing" gravity db issue...it's was db corruption. I followed the closed issues #47 and #48 here to resolve my problem.
BTW I believe all one would need to do is remove /usr/local/bin/my-pihole-lists and /usr/local/bin/pihole-cloudsync and then terminate any automation being done by systemd or cron etc.

Resolved. See above.


Match API Design evolution proposal

documentation

What this PR does / why we need it:
A proposal of design evolution which implements discriminator and inheritance to address specific requirements for countries such as nameKanaHankaku or nameKanaZenkaku.
It could be interesting to have a core boby with common attributes and to propose complementary schemas for specific needs.

Hi @GillesInnov35 ,
Thank you for the proposal.  Is this proposal for Issue #38 or Issue #39, or both?
Thanks.
Toshi

hi @ToshiWakayama-KDDI, this proposal concerns Issue #39
Thanks
Gilles

Hi @GillesInnov35 @ToshiWakayama-KDDI ,
thanks for the proposal!
I assumed we were going to make a release with the actual state of the API in v0.1.0 and then improve it for next releases.
Maybe this can go into a v0.2.0-wip? WDYT?

Hi @fernandopradocabrillo, yes I agree with you. This design evolution could be discussed and proposed for the next version.
Thanks
Gilles


Dummy login/register screen

created basic Login and Register pages using MUI for ticket #4
Screenshots of pages:

can u open this to dev instead of main


Bittrex: orders are not being placed

im running the bot on bittrex and i keep getting the following on zenbot (also using --debug):
`

2017-06-10 22:26:00  2802.51060162 USDT-BTC   +0.0%        1      +       0.0268   0.0600           22.68 USDT  0.00000 BTC    -0.5%   +0.0%
2017-06-10 22:27:00  2802.51060162 USDT-BTC   +0.0%        0      +       0.0242   0.0600           22.68 USDT  0.00000 BTC    -0.5%   +0.0%
2017-06-11 00:28:03 - placing sell order...
2017-06-10 22:27:15  2805.00000000 USDT-BTC   +0.1%        0      +       0.0304   0.0600  selling  22.68 USDT  0.00000 BTC    -0.5%   +0.0%
2017-06-11 00:28:03 - placing sell order...
2017-06-11 00:28:03 - placing sell order...
2017-06-10 22:28:00  2805.00000000 USDT-BTC   +0.1%        3      +       0.0304   0.0600  selling  22.68 USDT  0.00000 BTC    -0.5%   +0.0%
2017-06-10 22:33:00  2790.00000000 USDT-BTC   -0.5%        1     -       -0.0236   0.0600  selling  22.68 USDT  0.00000 BTC    -1.0%   +0.0%
2017-06-10 22:35:00  2802.51100000 USDT-BTC   +0.4%        0      +       0.0213   0.0600  selling  22.68 USDT  0.00000 BTC    -0.5%   +0.0%
2017-06-10 22:35:34  2818.94400000 USDT-BTC   +0.6%        8      ++      0.0752   0.0600  selling  22.68 USDT  0.00000 BTC    +0.0%    0.0%

`
but nothing happens on bittrex ... no orders are being placed.
this is my conf.js file:
`

var c = module.exports = {}
// mongo configuration
c.mongo = {}
c.mongo.host = process.env.MONGODB_PORT_27017_TCP_ADDR || 'localhost'
c.mongo.port = 27017
c.mongo.db = 'zenbot4'
c.mongo.username = null
c.mongo.password = null
// when using mongodb replication, i.e. when running a mongodb cluster, you can define your replication set here; when you are not using replication (most of the users), just set it to null (default).
c.mongo.replicaSet = null
// default selector. only used if omitting [selector] argument from a command.
c.selector = 'bittrex.USDT-BTC'
// name of default trade strategy
c.strategy = 'trend_ema'
// Exchange API keys:
// to enable Bittrex trading, enter your API credentials:
c.bittrex = {}
c.bittrex.key = 'myAPI_Key'
c.bittrex.secret = 'myAPI_Pass'
// make sure to give your API key access to only: "Trade Limit" and "Read Info",
// please note that this might change in the future.
// please note that bittrex API is limited, you cannot use backfills or sims (paper/live trading only)
// Optional stop-order triggers:
// sell if price drops below this % of bought price (0 to disable)
c.sell_stop_pct = 0
// buy if price surges above this % of sold price (0 to disable)
c.buy_stop_pct = 0
// enable trailing sell stop when reaching this % profit (0 to disable)
c.profit_stop_enable_pct = 3
// maintain a trailing stop this % below the high-water mark of profit
c.profit_stop_pct = 1
// Order execution rules:
// avoid trading at a slippage above this pct
c.max_slippage_pct = 5
// buy with this % of currency balance
c.buy_pct = 99
// sell with this % of asset balance
c.sell_pct = 99
// ms to adjust non-filled order after
c.order_adjust_time = 30000
// avoid selling at a loss below this pct
c.max_sell_loss_pct = 25
// ms to poll order status
c.order_poll_time = 5000
// ms to wait for settlement (after an order cancel)
c.wait_for_settlement = 5000
// % to mark up or down price for orders
c.markup_pct = 0
// become a market taker (high fees) or a market maker (low fees)
c.order_type = 'maker'
// Misc options:
// default # days for backfill and sim commands
c.days = 14
// ms to poll new trades at
c.poll_trades = 30000
// amount of currency to start simulations with
c.currency_capital = 1000
// amount of asset to start simulations with
c.asset_capital = 0
// for sim, reverse time at the end of the graph, normalizing buy/hold to 0
c.symmetrical = false
// number of periods to calculate RSI at
c.rsi_periods = 14
// period to record balances for stats
c.balance_snapshot_period = '15m'
// avg. amount of slippage to apply to sim trades
c.avg_slippage_pct = 0.045

`
and this is my run command:

zenbot trade --period=1m --reset_profit --debug

@DeviaVir ... what am i missing?

Could this have to do with the Bittrex order limit?
More details here:
https://bittrex.zendesk.com/hc/en-us/articles/202673194-The-taming-of-the-Bots-Part-II

I think this fixes it: https://github.com/carlos8f/zenbot/pull/269
@megacrypto could you verify?

to upgrade this is what i use

git pull
npm install
npm link

now after doing this, this is what i noticed first, the values are mixed up in the console, im looking at USDT to BTC, and i have 163USDT but their are showing as BTC ?

2017-06-12 10:20:00  2792.00000000 USDT-BTC                1              0.0000   0.0600           0.00 USDT  163.29135 BTC    +0.0%   -1.1%
2017-06-12 10:21:00  2785.00000000 USDT-BTC   -0.3%        3              0.0000   0.0600           0.00 USDT  163.29135 BTC    +0.0%   -0.9%
2017-06-12 10:22:00  2771.07500000 USDT-BTC   -0.5%        2              0.0000   0.0600           0.00 USDT  163.29135 BTC    +0.0%   -0.4%

orders are now being placed ... aside from the mixup of coins show up in opposite side ... it seems to be working now ... thanks @DeviaVir :))


Feature/azuredevops org global

:sparkles: What kind of change does this PR introduce? (Bug fix, feature, docs update...)
Feature & Docs update
:arrow_heading_down: What is the current behavior?
org and global commands are not working with Azure DevOps
:new: What is the new behavior (if this is a feature change)?
org and global commands are supported with Azure DevOps.
You will need to provide the api parameter the Azure DevOps organization uri for these commands to work, as it will direct NuKeeper to Azure DevOps platform.
:boom: Does this PR introduce a breaking change?
No
:bug: Recommendations for testing
Run org and global commands against Azure DevOps organizations and projects.
Note that

Azure DevOps organization are similar to NuKeeper global concept
Azure DevOps projects are similar to NuKeeper organisation concept

:memo: Links to relevant issues/docs
#864
:thinking: Checklist before submitting

[X] All projects build
[X] Relevant documentation was updated

I just rebased the PR.
@AnthonySteele, as the PR has been open for quite some time, I am wondering if there might be something specific int he PR content blocking the merge ?
If so, please advise so that I could review the proposal.
Thanks a lot for your work on this project!

Thanks for that, looks good!


https://jsbin.com/account/editor url redirects indefinitely

When navigating to Editor Settings or Preferences from Accounts menu, the redirecting does not work as expected. It keeps on redirecting indefinitely. This happens in Chrome and Firefox. The browser (Chrome) error is attached for reference

Dupe of #3283.

Extremely sorry I did't go through the list of open issue 🙏


chore(cleanup): remove deprecated alert snooze

Description

Removes snoozing of alert that was marked deprecated in 2019 with https://github.com/stackrox/stackrox/commit/9ba0c02b0703ec0c70ae87477a2ee940de042693#diff-a0ad341919fd63ab82358fe1b75fc9e3748497c858ab87e14bfccab65b108906
User-facing documentation

[ ] CHANGELOG is updated OR update is not needed
[ ] documentation PR is created and is linked above OR is not needed

Testing and quality

[ ] the change is production ready: the change is GA or otherwise the functionality is gated by a feature flag
[ ] CI results are inspected

Automated testing

[ ] added unit tests
[ ] added e2e tests
[ ] added regression tests
[ ] added compatibility tests
[ ] modified existing tests

How I validated my change

CI Should be sufficient as there are no tests for this functionality as it deprecated.

/retest

/retest

/retest

/retest

Should anything be done for already snoozed alerts? Like a migration or something?

I don't see any reason to.  The service has been deprecated since 2019.  So I doubt there are that many and shouldn't impact performance much.


Hidden _ property should not be enumerable

Screenshot

Description
_ should not be passed through.

Want to wait for more feedback/uses-cases.


Qobuz Search no longer working

Material desktop display, Qobuz Search no longer works; nothing happens when I click on Search. In fact, it appears to be grayed out! I don't know when it first failed. It still works in the mobile display however.

Sorry, but I do not use any streaming services. Can't see how it would differ between desktop and mobile - they share the same code. Is this with latest master, or 1.0.2? If its with 1.0.2, try master. Also, perhaps try each of the releases until you find the one where it broke.

Darn it - I think I understand what was happening, after watching how it works in the default LMS display. I must have forgotten, as I was travelling for the past several weeks, and not using the desktop, only the mobile display on my phone.
When one clicks Qobuz Search, the user should just start typing his search string, even though he might not be able to see a cursor, like me, ... it works. Clearly I was confused - pilot error.
I am sorry Craig; I think I wasted your time. A quick check using developer tools would have cleared this up for me right at the start. Sheesh.
By the way I was travelling through the EU, visiting a variety of places and using the mobile display and Squeeze Player via a VPN to my server at home here in Silicon Valley ... it worked beautifully the entire trip; fantastic.
I will close this issue, on account of terminal pilot error.

You cannot see the search field? It should scroll into view.


[BEAM-1260] Captures assertion site and message in PAssert

This makes PAssert failures quite a bit easier to debug.
Example message after this commit:
java.lang.AssertionError: Some message

	at org.apache.beam.sdk.testing.PAssert$PAssertionSite.capture(PAssert.java:384)
	at org.apache.beam.sdk.testing.PAssert.that(PAssert.java:279)
	at org.apache.beam.sdk.transforms.SplittableDoFnTest.testPairWithIndexWindowedTimestamped(SplittableDoFnTest.java:234)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        ...
Caused by: java.lang.AssertionError:
Expected: iterable over [<TimestampedValue(KV{z, 0}, 2017-01-10T00:38:28.000Z)>, <TimestampedValue(KV{bb, 0}, 2017-01-10T00:38:29.000Z)>, <TimestampedValue(KV{bb, 1}, 2017-01-10T00:38:29.000Z)>, <TimestampedValue(KV{ccccc, 0}, 2017-01-10T00:38:30.000Z)>, <TimestampedValue(KV{ccccc, 1}, 2017-01-10T00:38:30.000Z)>, <TimestampedValue(KV{ccccc, 2}, 2017-01-10T00:38:30.000Z)>, <TimestampedValue(KV{ccccc, 3}, 2017-01-10T00:38:30.000Z)>, <TimestampedValue(KV{ccccc, 4}, 2017-01-10T00:38:30.000Z)>] in any order
     but: Not matched: <TimestampedValue(KV{a, 0}, 2017-01-10T00:38:28.000Z)>
	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
	at org.junit.Assert.assertThat(Assert.java:956)
	at org.junit.Assert.assertThat(Assert.java:923)
	at org.apache.beam.sdk.testing.PAssert$AssertContainsInAnyOrder.apply(PAssert.java:1270)
	at org.apache.beam.sdk.testing.PAssert$AssertContainsInAnyOrder.apply(PAssert.java:1)
        ...

(as opposed to, basically, just the "Caused by" part)
Inspiration for this CL was when this test failed while working on something else, but didn't tell me which of the assertions was wrong. https://github.com/apache/beam/blob/master/sdks/java/core/src/test/java/org/apache/beam/sdk/transforms/CombineTest.java#L157-L159
R: @kennknowles

Awesome improvement; can this be tagged with a JIRA?

LGTM, merging


Enhancements for SIMD advisor

According to the emscripten documentation, there are five different ways to leverage WebAssembly SIMD in your C/C++ programs:

Enable LLVM/Clang SIMD autovectorizer to automatically target WebAssembly SIMD, without requiring changes to C/C++ source code.
Write SIMD code using the GCC/Clang SIMD Vector Extensions (__attribute__((vector_size(16))))
Write SIMD code using the WebAssembly SIMD intrinsics (#include <wasm_simd128.h>)
Compile existing SIMD code that uses the x86 SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2 or 128-bit subset of the AVX intrinsics (#include <*mmintrin.h>)
Compile existing SIMD code that uses the ARM NEON intrinsics (#include <arm_neon.h>)

x86intrin.h header file is usually used in C\C++ codebase, which contains the support of multiple instruction sets, commonly covering the one or several of MMX, SEE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, AVX, AVX2, etc, but it is related to the what compiler you use.  For the clang inside of the emsdk, it contains ia32intrin.h & mmintrin.h, which will not handled by emscripten during the building, so the better ways to port your project with SIMD support are:

if there is no SIMD code used in the codebase and you want to enable SIMD option to let compiler autovector to target wasm-simd, add -msimd128 is enough.
if your current codebase exists SIMD code, include <wasm_simd128.h>  and then use the wasm SIMD intrinsics to replace your current code.
if your current codebase include SIMD code targeting x86 SSE* instruction sets, add -msimd128 and additionally corresponding flag.

For example,  SSE: pass -msse and #include <xmmintrin.h>. Use #ifdef __SSE__ to gate code.

Compile existing SIMD code that uses the x86 SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2 or 128-bit subset of the AVX intrinsics (#include <*mmintrin.h>)
if your current codebase include SIMD code targeting x86 SSE* instruction sets, add -msimd128 and additionally corresponding flag.
For example, SSE: pass -msse and #include <xmmintrin.h>. Use #ifdef __SSE__ to gate code.

Maybe we can scan if these SIMD intrinsics header files exist in the codebase, and add corresponding compiler flags when user enable SIMD option from UI.

Enhancements finalized:

scan the codebase to check if following header files are included:

SIMD set
Header file
Action

SSE
#include <xmmintrin.h>
-msse

SSE2
#include <emmintrin.h>
-msse2

SSE3
#include <pmmintrin.h>
-msse3

SSSE3
#include <tmmintrin.h>
-mssse3

SSE4.1
#include <smmintrin.h>
-msse4.1

SSE4.2
#include <nmmintrin.h>
-msse4.2

AVX
#include <immintrin.h>
-mavx

implement action to add corresponding -mxxx flag into the compiler flags.

scan the error content to match if it contains the x86intrin.h, prompt developers that the emscripten does not support this intrinsic header, consider to rewrite the code with the apis provided by wasm_simd128.h or just remove it if the codebase does not use the SIMD code.


Bump Oracle docker image to 19c and refactor oracle unit test

Bump Oracle docker image to 19c ;
Refactor oracle unit test ;
Bump Testcontainer Version , solve history limitation of oracle ;

@leonardBang PTAL , May be split into multi commit will be clear.


tjCompressFromYUV

Any chance of exposing the above method?
Thanks

Probably a bit too late for you, but this is not available via #29


fix invalid regex

Constraint regex does not evaluate using regex checker

removing / makes it valid

Closed as regex is not universal across languages


etcd container dies

I am struggling to get "kubernetes-anywhere" (KA) running on a set of ubuntu 16.04 vms. I am not able to keep the etcd containers running. The problem as far as I can debug is because the container is using container-id in the URL instead of the container name (e.g. "--name=etcd1") that is passed as the parameter. I am attaching a portion of the docker logs. I do not know enough to see if this is an issue. If anyone can give me some pointers that would be very helpful.
=== docker run command ===
docker run -d -e ETCD_CLUSTER_SIZE=3 --name=etcd1 weaveworks/kubernetes-anywhere:etcd
=== docker logs attached ===
ashutosh@control-vm01:~/works-cluster$ docker logs etcd1

sed s|([1-9]*)|etcd\1=http://etcd\1:2380|g
seq -s , 1 3
ETCD_INITIAL_CLUSTER=etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380
export ETCD_INITIAL_CLUSTER
hostname -s
n=c7adab14484e c=http://c7adab14484e:2379 p=http://c7adab14484e:2380
exec etcd --name=c7adab14484e --listen-peer-urls=http://c7adab14484e:2380 --initial-advertise-peer-urls=http://c7adab14484e:2380 --listen-client-urls=http://c7adab14484e:2379 --advertise-client-urls=http://c7adab14484e:2379
2016-06-08 03:03:18.590694 I | flags: recognized and used environment variable ETCD_INITIAL_CLUSTER=etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380
2016-06-08 03:03:18.590766 W | flags: unrecognized environment variable ETCD_CLUSTER_SIZE=3
2016-06-08 03:03:18.590790 I | etcdmain: etcd Version: 2.2.1
2016-06-08 03:03:18.590796 I | etcdmain: Git SHA: 75f8282
2016-06-08 03:03:18.590800 I | etcdmain: Go Version: go1.5.1
2016-06-08 03:03:18.590804 I | etcdmain: Go OS/Arch: linux/amd64
2016-06-08 03:03:18.590818 I | etcdmain: setting maximum number of CPUs to 2, total number of available CPUs is 2
2016-06-08 03:03:18.590825 W | etcdmain: no data-dir provided, using default data-dir ./c7adab14484e.etcd
2016-06-08 03:03:18.590970 I | etcdmain: listening for peers on http://c7adab14484e:2380
2016-06-08 03:03:18.590997 I | etcdmain: listening for client requests on http://c7adab14484e:2379
2016-06-08 03:03:18.591119 I | etcdmain: stopping listening for client requests on http://c7adab14484e:2379
2016-06-08 03:03:18.591132 I | etcdmain: stopping listening for peers on http://c7adab14484e:2380
2016-06-08 03:03:18.591141 C | etcdmain: couldn't find local name "c7adab14484e" in the initial cluster configuration

Please provide output of weave status dns and weave ps from the machine you running this on.
It looks like docker run didn't go through the Weave Docker API proxy, could you double check the value of DOCKER_HOST?
You can also do this:
docker -H unix:///var/run/weave/weave.sock run -d -e ETCD_CLUSTER_SIZE=3 --name=etcd1 weaveworks/kubernetes-anywhere:etcd

Hi @errordeveloper,
No luck with the -H option.
Uploading all the logs (mostly collected thru screen scraping)

weave-status.log: shows various 'weave status' outputs
docker_logs_etcd1_erro.run1.logs: logs from docker run (w/o -H option)
docker_logs_etcd1_erro.run2.logs: logs from docker run (with -H option)

etcd_error_logs.zip

Output from: weave env
ashutosh@ubuntu-vm02:~/works-cluster$ weave env
export DOCKER_HOST=unix:///var/run/weave/weave.sock ORIG_DOCKER_HOST=

Just to cover the bases, here is the docker version info:
ashutosh@control-vm01:~/works-cluster$ docker version
Client:
 Version:      1.11.2
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   b9f10c9
 Built:        Wed Jun  1 22:00:43 2016
 OS/Arch:      linux/amd64

Server:
 Version:      1.11.2
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   b9f10c9
 Built:        Wed Jun  1 22:00:43 2016
 OS/Arch:      linux/amd64

Update:
After making the following three (3) changes, I could run the etcd cluster:

Applied the "MountFlags=shared"  needed for "systemd" managed systems.
Added the volumes (tried replicating options specified in the single-node k8s).
Added the -H unix:///var/run/weave/weave.sock

Now I am able to get the etcd services running.
I am running failing to run the apiserver; will provide the details separately.

@ashutosh I'm glad you have solved this, but still not sure what the problem was exactly.


Changes for Nitro enclave support

This is ready to review. It's a partner to the https://github.com/veracruz-project/veracruz/pull/90 in the veracruz repo. They should be merged together.


Feature Request: Multiple local folders

The feature request #42 is good, but can sets one folder only.
It will be more convenient if we would add two or more folders where imgproxy could finds images to resize.

Hi!
Don't think this is a good idea. First of all, it's technically difficult since http.NewFileTransport takes only one filesystem as an argument. Next reason is it will become unpredictable when your folders contain files with the same names.
Putting your folder in the same parent folder will solve your problem.


chore: release 0.1.1

:robot: I have created a release *beep* *boop*
0.1.1 (2022-04-13)
Bug Fixes

use zip-all maker on os x (#60) (403aeb4)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/ethersphere/bee-desktop/releases/tag/v0.1.1 :sunflower:


Updated Guide on defining types (markdown)

Add one more case for delete operator.

@mridul-netizen @vojtechjelinek PTAL.
Thanks.

@mridul-netizen please merge this PR, I'm not authorized to merge this pull request.

@seanlip @gp201 can you guys merge this? Seems like we don't have the rights!

@mridul-netizen for future reference, wiki PRs can only be merged by the welfare team. See https://github.com/oppia/oppia/wiki/Wiki#opening-a-pull-request for a discussion of the PR workflow for this repo


Add import sorting for javascript files

A potential option https://github.com/trivago/prettier-plugin-sort-imports

I looked into this a bit, we may want to hold off for now because adding this plugin forces an upgrade of prettier, which brings in an annoying change that they made to stop printing chained method calls on multiple lines, so things like
foo
  .bar()
  .baz()
  .biz(42)

are printed like
foo.bar().baz().biz(42)

which, while undeniably more compact, is in my view less readable. I think there is some discussion about making this a configurable thing, e.g. here: https://github.com/prettier/prettier/issues/7884 but unfortunately despite a lot of people disagreeing with the change the prettier devs seem keen on going with it anyway

going to unassign myself, this is probably still worth doing though!


Create version.go

Package Version shows the current notation-go version.

Should the version of notation-go library be marked as the git tag and recorded in go.mod?

We should need version only for cli(notation), for libraries(notation-go and notaiton-core-go) we can rely on git tags.

Should the version of notation-go library be marked as the git tag and recorded in go.mod?

Either way we need to update the release process in here to document our decision. https://github.com/notaryproject/notation/blob/main/RELEASE_CHECKLIST.md

Per the conversation on the community call today, we don't want to have the version number in the go library code because the GitHub release is all which is needed/useful to determine the version.