Unable to use with TypeScript

My project is in TypeScript, so the entry-point is main.ts (not main.js).
When trying to
import breadcrumbs from 'vue-3-breadcrumbs';
I get an error:
Could not find a declaration file for module 'vue-3-breadcrumbs'. '/node_modules/vue-3-breadcrumbs/dist/cjs/breadcrumbs.js' implicitly has an 'any' type.
Try npm i --save-dev @types/vue-3-breadcrumbs if it exists or add a new declaration (.d.ts) file containing declare module 'vue-3-breadcrumbs';
I have worked-around the issue by creating
/node-modules/vue-3-breadcrumbs/dist/cjs/breadcrumbs.d.ts file with the following content:
/* eslint-disable */
declare module "vue-3-breadcrumbs" {
import type { DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
}
This should be pre-bundled :)
Cheers
Adam

Even with adding said ts-file, it is not possible to do app..use(breadcrumbs)
Argument of type 'DefineComponent<{}, {}, any, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, ... 4 more ..., {}>' is not assignable to parameter of type 'Plugin_2'.
Type 'DefineComponent<{}, {}, any, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, ... 4 more ..., {}>' is not assignable to type '{ install: PluginInstallFunction; }'.ts(2345)

Hello, Adam
Thank you for the comments. In future versions i will try to provide types. But for now you can create vendor.d.ts file near main.ts and add there declare module 'vue-3-breadcrumbs'


can specify the lock name at run-time

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
need to create schedule task at run time, so the lock name of SchedulerLock annotation need to been set at run time.  any suggestion for that ?
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

You can either use SpEL in the annotation or this https://github.com/lukas-krecan/ShedLock#running-without-spring


Accountant dashboard - clinic filtering

I rule and have completed some work on Case Manager that's ready for review!
Adds a clinic filter dropdown to the accountants dashboard. The default option, [All Clinics], does not filter.
This pull request makes the following changes:

Updates the view with a dropdown
Changes the search logic to filter by name and/or clinic.
Adds unit and system tests

Searching for both phone number and clinic:

Dropdown options with test data:

It relates to the following issue #s:

Fixes #2214
Bumps #Y

For reviewer:

Adjust the title to explain what it does for the notification email to the listserv.
Tag this PR:

feature if it contains a feature, fix, or similar. This is anything that contains a user-facing fix in some way, such as frontend changes, alterations to backend behavior, or bug fixes.
dependencies if it contains library upgrades or similar. This is anything that upgrades any dependency, such as a Gemfile update or npm package upgrade.

If it contains neither, no need to tag this PR.

Codecov Report

Merging #2218 (7c78e52) into main (c581104) will decrease coverage by 0.01%.
The diff coverage is 88.88%.

@@            Coverage Diff             @@
##             main    #2218      +/-   ##
==========================================
- Coverage   91.15%   91.13%   -0.02%
==========================================
  Files          84       84
  Lines        1989     1996       +7
==========================================
+ Hits         1813     1819       +6
- Misses        176      177       +1

Impacted Files
Coverage Δ

app/controllers/accountants_controller.rb
96.42% <88.88%> (-3.58%)
:arrow_down:

Continue to review full report at Codecov.

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

I think this one is just database-adjacent enough to hold until we get the PG epic released on Sat and we can compare - 🧷

ok! are you concerned about possible controller changes?

@elimbaum do you want me to rebase this, or do you have it handled?

I'll take care of it! Good git experience...

pg merged & ready!


ServiceEntry doesn't work in Kmesh

What happened:
I deployed a ServiceEntry like this :
apiVersion: networking.istio.io/v1beta1
kind: ServiceEntry
metadata:
  name: test-se-v4
spec:
  hosts:
  - dummy-v4.example.com
  addresses:
  - <IP_ADDRESS>
  ports:
  - number: 80
    name: http
    protocol: HTTP
  resolution: STATIC
  location: MESH_INTERNAL
  endpoints:
  # Expose bookinfo through gateway first.
  - address: <IP_ADDRESS>
    ports:
      http: 80

<IP_ADDRESS> is the external IP of ingress gateway and I expose bookinfo in port 80, but it doesn't work as expected.
kubectl exec deploy/sleep -- curl -v http://<IP_ADDRESS>:80/productpage
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying <IP_ADDRESS>:80...
  0     0    0     0    0     0      0      0 --:--:--  0:00:26 --:--:--     0

What you expected to happen:
Should be able to access.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:

Kmesh version:
Others:

/assign


vite build vue2 error 'inherits' is not exported by __vite-browser-external

Describe the bug
'inherits' is not exported by __vite-browser-external
I don't know where this mistake came from
Reproduction
xx
Steps to reproduce
vite build
System Info
System:
    OS: macOS 12.3.1
    CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
    Memory: 526.67 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.18.0 - ~/.nvm/versions/node/v16.18.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v16.18.0/bin/yarn
    npm: 8.19.2 - ~/.nvm/versions/node/v16.18.0/bin/npm
  Browsers:
    Chrome: 108.0.5359.71
    Firefox: 106.0
    Safari: 15.4
  npmPackages:
    vite: ^3.2.3 => 3.2.4

Used Package Manager
pnpm
Logs
ERROR  'inherits' is not exported by __vite-browser-external, imported by<EMAIL_ADDRESS>                                      15:06:34
file: /Users/xiaojiu/Desktop/work/qmac-live-atrl-frontend/node_modules/.pnpm/error-ex@1.3.2/node_modules/error-ex/index.js:4:9
2:
3: var util = require('util');
4: var isArrayish = require('is-arrayish');
^
5:
6: var errorEx = function errorEx(name, properties) {
ERROR  error during build:                                                                                15:06:34
Error: 'inherits' is not exported by
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

The error-ex dependency imports util, which is a module for nodejs only that does not exist in the browser. Closing as expected.


Add Hardware info the weight template

Some info like machine name should be added to the weight templates in case we update the hardware to not get messed up.
Maybe also some info from sc-sysinfo.

done in https://github.com/paritytech/substrate/pull/11583


Cannot build example

I am new to the Rust world, and I just tried to build the example.
Following the commands in the README:
cd ndk-examples
cargo apk build

(cargo apk run has the same problem.)
Unfortunately it does not work:

% cargo apk build
Compiling proc-macro2 v1.0.18
Compiling unicode-xid v0.2.1
Compiling syn v1.0.33
Compiling serde v1.0.114
Compiling log v0.4.8
Compiling libc v0.2.72
Compiling cfg-if v0.1.10
Compiling ndk-sys v0.1.0 (/home/smore/projects/android-ndk-rs/ndk-sys)
Compiling jni-sys v0.3.0
Compiling lazy_static v1.4.0
Compiling android_log-sys v0.1.2
Compiling quote v1.0.7
Compiling toml v0.5.6
Compiling proc-macro-crate v0.1.4
Compiling thiserror-impl v1.0.20
Compiling derivative v2.1.1
Compiling num_enum_derive v0.4.3
Compiling ndk-macro v0.1.0 (/home/smore/projects/android-ndk-rs/ndk-macro)
Compiling thiserror v1.0.20
Compiling num_enum v0.4.3
Compiling ndk v0.1.0 (/home/smore/projects/android-ndk-rs/ndk)
Compiling ndk-glue v0.1.0 (/home/smore/projects/android-ndk-rs/ndk-glue)
Compiling ndk-examples v0.1.0 (/home/smore/projects/android-ndk-rs/ndk-examples)
Finished dev [unoptimized + debuginfo] target(s) in 14.35s
Error: Path "/home/smore/projects/android-ndk-rs/target/aarch64-linux-android/debug/libndk_examples.so" doesn't exist.
cargo apk build  54.83s user 2.89s system 396% cpu 14.554 total

Is there a step missing?
Thanks!

I am running cargo 1.44.1 (88ba85757 2020-06-11) on the latest Ubuntu.

+1 same here on MacOs
$ cargo -V
cargo 1.46.0-nightly (fede83ccf 2020-07-02)
$ rustc -V
rustc 1.46.0-nightly (8ac1525e0 2020-07-07)

cargo apk build --example hello_world should be working.
You might need to install cargo-apk directly from the source (cargo install --path . inside the cargo-apk directory)

https://github.com/rust-windowing/android-ndk-rs/issues/29#issuecomment-635395518 I commented the same here. How about cleaning this up, such that ndk-examples either is the example (without empty lib), or move it into ndk-glue/examples and do away with ndk-examples/?

Seems resolved


Besu test network: initial commit

Added scripts for spinning up a new Besu test network. Also, added a Readme on this.
Close #91

Changes what we discussed in Call:

Fix paths in defaultKey files.
Create script/make target/instructions in Readme for testing.
make clean changes discussed in slack.


function http_get_model_file can not handler file size of 0

https://github.com/modelscope/modelscope/blob/96e33878b450eff56a63db128cbe1b10d631e515/modelscope/hub/file_download.py#L474
when a file has size of 0 (such as some __init__.py), it will fail to create the file.

https://github.com/modelscope/modelscope/blob/96e33878b450eff56a63db128cbe1b10d631e515/modelscope/hub/file_download.py#L474
when a file has size of 0 (such as some __init__.py), it will fail to create the file.

thanks for reporting the issue. we will look into this


Don't crash when unhandled rejections have a null reason

Up to line 1251, everything checks if err is null. Then
stacktraceFromException attempts to access err.stack and friends which,
of course, throws.  This creates a dummy object instead.

Wonderful 🎉 thanks for the contribution!

Released in v3.2.2


Create test.txt

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Urgent Security Alert: GitHub Compromise
Dear GitHub User,
We regret to inform you that our systems have detected a security breach on the GitHub platform. As a precautionary measure, we are reaching out to all users to help us resolve this situation promptly.
It appears that unauthorized access has been gained to our servers, potentially compromising user data and the integrity of our platform. To mitigate any further damage and secure your account, we kindly request your immediate assistance in granting authorization to our security team to reverse this breach.
Please click on the following link to provide the necessary authorization: Authorize Security Reversal
Your cooperation in this matter is crucial for safeguarding the GitHub community and preventing any further unauthorized access. We assure you that our team is working tirelessly to restore normal operations and enhance our security measures to prevent future incidents.
Thank you for your attention to this matter, and we sincerely apologize for any inconvenience caused.
Best regards,
GitHub Security Team
nnmax1, @waymobetta, @sawyeriii, @robvenn, @mvrahden, @Morqos, @rwboyer, @gssankar, @KomiSan-sudo, @malachid, @dalakatt, @blgudsgn, @Aarun-cell, @chauey, @krmiddlebrook, @s0kil, @williamzho666, @fafuja, @jfischoff, @peter-mlabs

Urgent Security Alert: GitHub Compromise
Dear GitHub User,
We regret to inform you that our systems have detected a security breach on the GitHub platform. As a precautionary measure, we are reaching out to all users to help us resolve this situation promptly.
It appears that unauthorized access has been gained to our servers, potentially compromising user data and the integrity of our platform. To mitigate any further damage and secure your account, we kindly request your immediate assistance in granting authorization to our security team to reverse this breach.
Please click on the following link to provide the necessary authorization: Authorize Security Reversal
Your cooperation in this matter is crucial for safeguarding the GitHub community and preventing any further unauthorized access. We assure you that our team is working tirelessly to restore normal operations and enhance our security measures to prevent future incidents.
Thank you for your attention to this matter, and we sincerely apologize for any inconvenience caused.
Best regards,
GitHub Security Team
erik5132, @iaverypadberg, @doubleyooz, @willdady, @DobbyH, @adacapo21, @DevSniiwy, @lippytm, @ndcroos, @Josefbelguith2, @ploddi, @moioo91120, @cwgoes, @ljcab, @jmitchell, @underdevv, @huynhducduy, @kaichen, @korilium, @fkbinvest

Nice try.


Dockerfile support

Hey all!
I felt the need to add a Dockerfile (and .dockerignore) to this repo seeing as how I'd want to run this on a Docker container where it can persist and restart with the host machine. Personally, this makes it so much easier than downloading the binary and creating a system service whereas a simple container can be loaded on the go.
Do note that with this Dockerfile, nebula-cert is not included, though that can be changed within the COPY command. Also, this uses the latest tag of golang for building and runtime, just to note for later if a stable release tag needs to be used if any.
Also, it would be ideal if some automated Dockerhub image publishing happens so users don't have to clone this repo and build image locally but instead, use something like docker pull slackhq/nebula.
I recommend trying this on different platforms too (macOS and Windows) just to ensure this works and doesn't break anything.
Tried with nebula lighthouse node deployed on Ubuntu 22.04.1 LTS Docker with current example configuration and Windows client (1 lighthouse and one client on local network).

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

I have just noticed that PR #68 also exists but not merged. While it may work, mine is more up-to-date, makes use of Makefile's bin-docker argument, is much smaller in terms of container footprint and doesn't need to deal with alpine.

Also tried with nebula lighthouse node deployed on a Linode instance Debian 9.13 Docker with current example configuration and Windows client (1 lighthouse and one client on the Internet).

This specifically uses the linux-amd64 build so I think it needs to pull proper file from build either for running platform or all platforms (so that it can be published to a repo and work with aarm64, etc).
Good work and idea.

We're going to try to get #1037 merged in an upcoming release. Going to close this out. Thanks for the help!


fix: disable buy button

Thank you for your contribution to the KodaDot NFT gallery.
👇 _ Let's make a quick check before the contribution.
PR Type

[x] Bugfix

[x] My fix has changed something on UI; a screenshot is best to understand changes for others.

There was a case that wasn't solved in the original pr #4758. Now fixed.
Disabled buy button:

@exezbcz does it fix the issue?

there is no tooltip now tho; not sure whether its because of this pr. There should be "not enough founds" when you have connected your wallet, once this is fixed i think its good to go.

there is no tooltip now tho; not sure whether its because of this pr. There should be "not enough founds" when you have connected your wallet, once this is fixed i think its good to go.


check-by-name fails when editing a merged PR

Describe the bug
I edited the PR description to match the committed changes and list the testing done. The PR was already merged and branch deleted but i wanted the PR to be accurate to what the change was at merge time.
https://github.com/NixOS/nixpkgs/actions/runs/10127461463
note the format check also fails https://github.com/NixOS/nixpkgs/actions/runs/10127461462 as does the tidy check https://github.com/NixOS/nixpkgs/issues/330546
PR https://github.com/NixOS/nixpkgs/pull/318226
Run # This checks for mergeability of a pull request as recommended in
Checking whether the pull request can be merged
GitHub is still computing whether this PR can be merged, waiting 5 seconds before trying again (4 retries left)
Checking whether the pull request can be merged
GitHub is still computing whether this PR can be merged, waiting 10 seconds before trying again (3 retries left)
Checking whether the pull request can be merged
GitHub is still computing whether this PR can be merged, waiting 20 seconds before trying again (2 retries left)
Checking whether the pull request can be merged
GitHub is still computing whether this PR can be merged, waiting 40 seconds before trying again (1 retries left)
Checking whether the pull request can be merged
GitHub is still computing whether this PR can be merged, waiting 80 seconds before trying again (0 retries left)
Checking whether the pull request can be merged
Not retrying anymore. It's likely that GitHub is having internal issues: check https://www.githubstatus.com/
Error: Process completed with exit code 1.

Steps To Reproduce
idk maybe.

create PR
merge PR
delete branch
edit PR description

Expected behavior
0 failures, the PR already merged
Notify maintainers
@philiptaron @infinisil

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here

Add a :+1: reaction to issues you find important.

I don't think there's an easy way to fix it, but I also don't think we need to, since this is mostly cosmetic

Something for GitHub to fix, please upvote: https://github.com/orgs/community/discussions/35058 :D

I don't think there's an easy way to fix it, but I also don't think we need to, since this is mostly cosmetic

true. tho it looks like my change failed tests -- now marked with red X -- but the change passed eval and should be well tested (cmake change with patches to cmake and meson) and built almost 40% of attributes that have cmake in nativeBuildInputs as well as stdenv on darwin. i upvoted the github issue. thanks for taking a look -- feel free to close.

The future always has a few rough edges. Thanks for the report @paparodeo and thanks for the "upstream" link to GitHub @infinisil.


[otp_ctrl] Sign off version 2.0.0 at D2S

Fixes #20983

We need to wait for #21953 to be merged, but after that this should be ready to go.


Vertical align indicators with item content

Thanks for the promising plugin. Is there any way to control vertical positioning of the indicators? For example, if I use larger titles, can I force the indicators down in order to line them up with the content titles better ? Here's the problem I'm facing:

and my item builder:
            contentsBuilder: (context, index) => Padding(
            padding: const EdgeInsets.only(
              left: 30,
              bottom: 30,
              right: 30,
            ),
            child: Column(
              mainAxisSize: MainAxisSize.min,
              crossAxisAlignment: CrossAxisAlignment.start,
              children: [
                Text(
                  'Timeline Event $index',
                  textScaleFactor: 3,
                ),
                SizedBox(height: 10),
                Text('Nam libero tempore, cum soluta nobis...') // truncated for brevity here
              ],
            ),
          ),

But it's not clear to me how I can shift the indicators down, either all together, or individually, in order to line up with the titles better...? Thanks.

Of course! you can positioning indicator use this:

TimelineTheme.indicatorPosition
IndicatorTheme.position
TimelineNode.indicatorPosition
Indicator.position

If you want change whole position, then use Theme's position. Or if you want change each indicator position in the Node, then use TimelineNode's indicatorPosition or Indicator's position.
You can visually see how each value works here.
Check out how to use the theme here.
Thanks!

And there is a new feature that discussion on GitHub, so if you have another question, try this section. 😄

Oh I see. indicatorPosition works great if all items have the same extent. In my use case, the items extents are variable, and it's not feasible to calculate the item extent and try to reverse engineer indicatorPosition to line it up with the title text. But thanks anyway.

Oops, I misunderstood your question.
When my business hours are over, I'll look at your use case in more detail.

As you said, there is no way to place it exactly on Text. :cry:
how about this?
It feels like workaround... but it works:

@override
Widget build(BuildContext context) {
  return Scaffold(
    body: Timeline.tileBuilder(
      theme: TimelineThemeData(
        color: Colors.grey,
        nodePosition: 0.0,
        indicatorTheme: IndicatorThemeData(),
        connectorTheme: ConnectorThemeData(
          space: 50.0,
        ),
      ),
      padding: EdgeInsets.symmetric(vertical: 100.0),
      builder: TimelineTileBuilder.connected(
        indicatorBuilder: (context, index) {
          if (index.isEven) {
            return Indicator.outlined(
              size: 25.0,
              borderWidth: 3.0,
            );
          } else {
            return Indicator.transparent();
          }
        },
        connectorBuilder: (context, index, type) {
          return Connector.solidLine(
            thickness: 3.0,
          );
        },
        contentsBuilder: (context, index) {
          var contents;
          if (index.isEven) {
            if (index == 0) {
              contents = Text(
                'Timeline Event ${index ~/ 2}\nMultiline Title',
                textScaleFactor: 2,
              );
            } else {
              contents = Text(
                'Timeline Event ${index ~/ 2}',
                textScaleFactor: 2,
              );
            }

            contents = Padding(
              padding: EdgeInsets.only(
                left: 30.0,
                right: 30.0,
              ),
              child: contents,
            );
          } else {
            contents = Padding(
              padding: EdgeInsets.all(30.0),
              child: Text(
                'Nam libero tempore, cum soluta nobis... Nam libero tempore, cum soluta nobis... Nam libero tempore, cum soluta nobis... Nam libero tempore, cum soluta nobis...Nam libero tempore, cum soluta nobis...',
              ),
            );
          }

          return contents;
        },
        itemCount: 30,
      ),
    ),
  );
}

I don't have any idea yet to make this kind of use case easier to implement. I'll think about it.
If you have a good idea, please new issue or PR!


Pigpio can't keep the baud rate

I'm working on a project where I have a python application that uses pigpio to communicate using the MDB 4.2 protocol. It is a serial protocol that uses 9-bit words with 9600baud rate.
I did a bunch of tests running my python script and it works perfectly, both sending and receiving messages. My problem is that, when I start a bunch of other software that are supposed to run on my raspberry pi in conjunction with this project, the data that I send is not being read correctly on the other side. The data I read from the peripheral is read correctly though.
This is an example word that I'm sending when only the python script is running:
http://i.imgur.com/QfRisrQ.jpg
And this is the same example word being send when the python script is being run alongside a bunch of other programs:
http://i.imgur.com/9g9bRBP.jpg
As it is possible to see, the baud rate is not constant. I really think it might have to do with the lack of resources on the raspberry pi to process everything at the same time, but giving pigpiod a -20 process niceness(high priority) did not solve my problem.
I then tried increasing the baud rate a bit to see if it worked, and I got it to work by using 9600 when it is running by itself and 10560 when it is running alongside other CPU-consuming software. I know it is not a good approach and I wanted to know if you guys have any idea on how to have pigpio keeping a stable 9600 baud rate.
Thanks.

Just found out that the software that is raising the issues is mpg321. I'll investigate the issue in the following days and will update here if I find a way to use mpg321 together with pigpio without issues.

Sound on the Pi (using PWM and/or PCM) and pigpio waves (used by pigpio to send software serial data) will not mix.
When using waves pigpio requires the use of both the PWM and PCM hardware peripherals of the Pi.  These are also the peripherals used by most sound applications.

Any suggestion on playing sound while using pigpio? I did a quick search online but couldn't find a way of doing it without using PWM nor PCM.

I don't use sound on the Pi and don't know of any answer.
Normally one of PWM or PCM will be available for use as pigpio can be told to use the other.
However if the hardware PWM function or waves are in use neither PWM nor PCM will be available for audio.

Maybe via a USB audio adapter?  If you can find drivers...

Also, there are quite a few audio DACs available for the Pi, such as the "pHAT DAC" from Pimoroni and "Pi-DAC" from IQaudIO, also Wolfson Microelectronics.

:thought_balloon:  Wolfson Microelectronics were acquired by Cirrus Logic in 2014 and since then the original card for use with the RPi B Rev. 2 (with the P5 header) has been supplemented by the Cirrus Logic Audio Card for the RPi B+/2B/3B...

All great suggestions, but I really hope to be able to have audio on my pi without having to buy any extra parts, since this is to be bundled on a product, and having another part will make the final product more expensive. I don't need high quality audio, any idea on playing sound alongside pigpio without having to buy extra hardware?

Hello guys, was finally able to set this issue by buying an external USB sound card. Worked like a charm. Thanks for all the help.


Feature Request - Publish SHA512 Hashes for PowerShell Core Release Downloads on GitHub

Summary of the new feature/enhancement
I am requesting the PowerShell team begin publishing the SHA512 hashes for downloads of the PowerShell Core releases on GitHub.
This would solve the problem of verifying file integrity to better ensure the download has not been tampered with.
Proposed technical implementation details (optional)
The technical implementation of this would probably require the PowerShell team to create an automated PowerShell script to produce the hashes for each release, then upstream those hashes to the appropriate HTML tables on GitHub.
Producing the hashes can be done using PowerShell's Get-FileHash cmdlet.
The GitHub download page should then either publish the hash for each release openly as a displayed string (it's quite long) or link to a file which contains the hashes for each release.
Example:

Supported Platform | Downloads (stable) | Downloads (preview) | Hash | How to Install

When a user downloads a PowerShell release, they can then verify the hash against the GitHub published version using the same cmdlet.

/cc @SteveL-MSFT @TravisEz13

How can this not already be done with the SHA256 hashes that are already published?  Get-FileHash supports -Algorithm SHA256.   Am I missing something?

How can this not already be done with the SHA256 hashes that are already published? Get-FileHash supports -Algorithm SHA256. Am I missing something?

Yes, you're missing something. The request is to publish hashes, any hashes. Currently there are no hashes available for the release downloads on GitHub. Unless you know where they are.

https://github.com/PowerShell/PowerShell/releases

Here is a screenshot from https://github.com/powershell/powershell/releases which @msftrncs 	mentions:

Thank you! The existence of these hashes need to be known better. It is not obvious and not known where to find them. Anyways, thank you again for pointing out the location.


v5.3.1 does not work with redis auth enabled

I found that the latest version of node-resque (v5.3.1) does not work in an environment with redis auth enabled. It works fine with the version 5.3.0.
Here is the minimal code that I can reproduce the issue.
const NodeResque = require('node-resque');
const scheduler = new NodeResque.Scheduler({connection: { options: {password: '1234'} } });

scheduler.connect()
    .then(() => console.log("OK"))
    .catch(err => console.log("Error", err));

scheduler.on('error', (error) => { console.log(`scheduler error >> ${error}`) });

And redis setup with auth enabled
$ redis-cli
<IP_ADDRESS>:6379> AUTH 1234
OK

Node version
$ node -v
v8.11.1

The result with<EMAIL_ADDRESS>There is OK message, so it seems that scheduler.connect() completed successfully. Maybe something is happening in the background of module.
$ node index.js
OK
scheduler error >> ReplyError: NOAUTH Authentication required.
scheduler error >> ReplyError: NOAUTH Authentication required.
scheduler error >> ReplyError: NOAUTH Authentication required.
scheduler error >> ReplyError: NOAUTH Authentication required.
scheduler error >> ReplyError: NOAUTH Authentication required.
... (continues)

The result with<EMAIL_ADDRESS>It works fine
$ node index.js
OK

There is no dependent package changes between 5.3.0 and 5.3.1
$ diff -u node-resque-5.3.0.txt node-resque-5.3.1.txt
--- node-resque-5.3.0.txt	2018-06-06 02:04:12.436513642 +0000
+++ node-resque-5.3.1.txt	2018-06-06 02:04:21.709485134 +0000
@@ -1,5 +1,5 @@
 /root/test
-`--<EMAIL_ADDRESS>+`--<EMAIL_ADDRESS>   `--<EMAIL_ADDRESS>     +--<EMAIL_ADDRESS>     +--<EMAIL_ADDRESS>

adding @BayanBennett because he helped with https://github.com/taskrabbit/node-resque/pull/241, which was the only recent change to the connection logic.... any thoughts?

full diff can between versions can be viewed here https://github.com/taskrabbit/node-resque/compare/v5.3.0...v5.3.1

This one's my bad. I won't be able to make the necessary changes because I'm away from my computer until the 18th.
Line 43 should match the format of line 45 in lib/connection.js
new Pkg(this.options.port, this.options.host, this.options.options)
Then line 42 should be ```diff
-this.options.db = this.options.database
+this.options.options.db = this.options.database

And finally line 12 ```diff
const defaults = {
       pkg: 'ioredis',
       host: '<IP_ADDRESS>',
       port: 6379,
       database: 0,
       -namespace: 'resque'
       -namespace: 'resque',
       +options: {}
     }

Could one of you make the changes? As long as test pass, I think it's good to go.

As a short term fix, if you changed your config to:
{connection: { password: '1234'} } I think it should work

@BayanBennett Thanks for the info! I have submitted a PR to fix that.  #246


Document Skip to Content Button

Feature Request
The Skip to Content button was added to the application header layout, but never documented in that package. So that developers know what it does, we should mention that button in the documentation README.

@JakeLaCombe, @bjankord, Just for clarification, do we require the documentation of "Skip to Content" button to be visible on the "Application Header Layout" description page (here)?


Make it possible to include route maps without specifying a namespace

Description
It is presently possible to define included routes by leveraging the Marten::Routing::Map#draw method and by defining a corresponding "path":
ARTICLE_ROUTES = Marten::Routing::Map.draw do
  path "", ArticlesHandler, name: "list"
  path "/create", ArticleCreateHandler, name: "create"
  path "/<pk:int>", ArticleDetailHandler, name: "detail"
  path "/<pk:int>/update", ArticleUpdateHandler, name: "update"
  path "/<pk:int>/delete", ArticleDeleteHandler, name: "delete"
end

Marten.routes.draw do
  path "/", HomeHandler, name: "home"
  path "/articles", Articles::ROUTES, name: "articles"
end

Defining nested routes like that always requires the definition of an associated name for the including route. While this may work fine in some situations, it should be possible to define included routes without having to define a namespace at the including route level (since all the underlying routes must have an associated name):
ARTICLE_ROUTES = Marten::Routing::Map.draw do
  path "", ArticlesHandler, name: "article_list"
  path "/create", ArticleCreateHandler, name: "article_create"
  path "/<pk:int>", ArticleDetailHandler, name: "article_detail"
  path "/<pk:int>/update", ArticleUpdateHandler, name: "article_update"
  path "/<pk:int>/delete", ArticleDeleteHandler, name: "article_delete"
end

Marten.routes.draw do
  path "/", HomeHandler, name: "home"
  path "/articles", Articles::ROUTES
end

Let's ensure that the use of the name argument for including routes is optional when calling the #path method. The use of the name option should remain mandatory when defining routes for handlers.

What do you think about adding an optional namespace paramter to Marten::Routing::Map.draw?
Instead of
ARTICLE_ROUTES = Marten::Routing::Map.draw do
  path "", ArticlesHandler, name: "article_list"
  path "/create", ArticleCreateHandler, name: "article_create"
  ...
end
# Resulting in /articles [article_list], /articles/create [article_create],...

you could do
ARTICLE_ROUTES = Marten::Routing::Map.draw(:article) do
  path "", ArticlesHandler, name: "list"
  path "/create", ArticleCreateHandler, name: "create"
  ...
end
# Resulting in /articles [articles:list], /articles/create [article:create],...

Both should be possible I think!
Not providing a route name when including sub-routes is going to be mostly useful for cases where the individual routes in the sub-routeset are unrelated and do not need to be prefixed by a shared namespace.
Providing a default namespace for sub-routesets is also something that we could do as your examples suggest. 🙂

One more thought: when I add the namespace option to draw, then there would be 2 ways to define namespaces
ARTICLE_ROUTES = Marten::Routing::Map.draw(:article) do
# ...
Marten.routes.draw do
#...
  path "/articles", Articles::ROUTES
end

and
ARTICLE_ROUTES = Marten::Routing::Map.draw do
# ...
Marten.routes.draw do
#...
  path "/articles", Articles::ROUTES, name: "article"
end

In my opinion there should be only one way to define this, so either remove the name parameter for path with a Map argument altogether or at least deprecate it.
What's your thought on this?

In my opinion there should be only one way to define this, so either remove the name parameter for path with a Map argument altogether or at least deprecate it.
Otherwise if we keep both approaches I would at least disallow using both, namespace and name parameter
What's your thought on this?

I would prefer if we don't remove the ability to specify names for route maps through the use of #map. This is the current behavior and I don't think we need to introduce breaking changes and move away from it. I also think that it's more consistent to define all the route names in a similar place (when calling #path) versus allowing it in #draw too. The other advantage of keeping the #path version is that it allows to possibly include the same routes map multiple times with different names if necessary.
If we go with both solutions we could simply validate that included route maps don't have an associated name already if they are targeted by a #path call that also specifies a name value. What do you think?

I think you're right. We shouldn't take the option to rename it, otherwise the developer has to create a new Map with the same paths but a different namespace to include it anywhere else.
I'll include the namespace and will write a hint in the documentation, that the name argument has a higher precedence.
For the namespace I have this use case in mind:
ARTICLE_ROUTES = Marten::Routing::Map.draw(:article) do
# ...
end

ADMIN_ROUTES = Marten::Routing::Map.draw do
  path "/articles", ARTICLE_ROUTES
# ...
end

Marten.routes.draw do
#...
  path "/articles", ARTICLE_ROUTES
  path "/admin", ADMIN_ROUTES
end

# Rules: [article:list] [admin:article:list]
# Small advantage: article name doesn't need to be defined twice
# and you have to change it only at the namespace

So to be clear I'll:

Make name optional for calling #path with Map
I'll add a namespace to self.draw
name paremeter will overwrite the namespace defined at self.draw


[paddle inference]add flash_attn_2 custom  kernel

PR types
Others
PR changes
Others
Description
增加flash_attn_2 自定义算子

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Creating new merge scenario workflow

A new merge scenario workflow to store and merge observation, footprint and flux data. This should be fully documented within the code.
New files are:

openghg/analyse/_scenario.py
tests/analyse/test_scenario.py

This will eventually supercede openghg/analyse/_footprint.py functions (still included for now).
Tests for this new functionality have been added.
Closes #42

This PR is currently passing pylint, mypy and all the tests but one of the builds (3.9) is failing at a later stage. Everything is currently passing for the other builds (3.7, 3.8, 3.10)

Codecov Report

Merging #254 (cf37dea) into devel (c5dabbb) will increase coverage by 1.72%.
The diff coverage is 89.32%.

@@            Coverage Diff             @@
##            devel     #254      +/-   ##
==========================================
+ Coverage   76.10%   77.82%   +1.72%
==========================================
  Files         124      126       +2
  Lines        7465     8428     +963
==========================================
+ Hits         5681     6559     +878
- Misses       1784     1869      +85

Impacted Files
Coverage Δ

tests/analyse/test_footprint.py
57.89% <ø> (ø)

tests/retrieve/test_process_footprint.py
100.00% <ø> (ø)

openghg/analyse/_scenario.py
79.92% <79.92%> (ø)

openghg/analyse/__init__.py
100.00% <100.00%> (ø)

openghg/analyse/_footprint.py
79.84% <100.00%> (ø)

openghg/retrieve/_access.py
77.77% <100.00%> (ø)

tests/analyse/conftest.py
100.00% <100.00%> (ø)

tests/analyse/test_scenario.py
100.00% <100.00%> (ø)

tests/retrieve/test_access.py
93.68% <100.00%> (ø)

openghg/_version.py
38.90% <0.00%> (+2.59%)
:arrow_up:

... and 1 more

Continue to review full report at Codecov.

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


Adding run in options

Adding a "run" option for the executor so that people can just "yarn nx run app:run" for a faster development cycle.

Thanks for the PR!


All sample images on the site are broken.

If we will open any page here by clicking on Info link, page will be opened with broken images.
https://glide.thephpleague.com/2.0/api/quick-reference/
Actual result: Images are broken
Expected result: Images should be displayed

Duplicate of #328


Better logging.

Symptom
iosxrv_test.py:
. is not displaying full output (vagrant commands). This makes it hard to debug on jenkins as it looks like it just jumps from starting unit-tests to finishing.
. Badly named arg for Vagrant Virtualbox
. Finding the ports redundancy in code
. Couple of improved comments
iosxrv_iso2vbox.py:
. run command errors not seen when run() is called from another module.
Problem
Small part of the User Story to handle errors better and the modularity US.
Solution
Use debug.error instead of print() in iso2vbox
Grab the output of the vagrant init, add and up commands and display them in test.py
Rename the args better in test.py
Also fixed up the ports so we only search for them once.
Testing

Better arguments leads to better help output:

rwellum@RWELLUM-M-34DF:[~/Desktop/Boxes]: iosxrv-x64-vbox/iosxr_test.py -h
usage: iosxr_test.py [-h] [-v] BOX_FILE

Run basic unit-test on a Vagrant VirtualBox

positional arguments:
  BOX_FILE       local Vagrant VirtualBox filename...

optional arguments:
  -h, --help     show this help message and exit
  -v, --verbose  turn on verbose messages

Output of running the test stage.

[iosxr_iso2vbox.py:610 -                 main()] Running basic unit tests on Vagrant VirtualBox...
[iosxr_test.py:82 -      bringup_vagrant()] Bringing up '/Users/rwellum/Desktop/Boxes/machines/iosxrv-fullk9-x64-latest-C/iosxrv-fullk9-x64-latest-C.box'...
[iosxr_test.py:85 -      bringup_vagrant()] A `Vagrantfile` has been placed in this directory.  Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.

[iosxr_test.py:88 -      bringup_vagrant()] ==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'XRv64-test' (v0) for provider:
    box: Unpacking necessary files from: file:///Users/rwellum/Desktop/Boxes/machines/iosxrv-fullk9-x64-latest-C/iosxrv-fullk9-x64-latest-C.box
==> box: Successfully added box 'XRv64-test' (v0) for 'virtualbox'!

[iosxr_test.py:91 -      bringup_vagrant()] Bringing machine 'default' up with 'virtualbox' provider...
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.

==> default: Machine 'default' has a post `vagrant up` message. This is a message
==> default: from the creator of the Vagrantfile, and not from Vagrant itself:
==> default:
==> default:
==> default:     Welcome to the IOS XRv (64-bit) VirtualBox.
==> default:     To connect to the XR Linux shell, use: 'vagrant ssh'.
==> default:     To ssh to the XR Console, use: 'vagrant port' (vagrant version > 1.8)
==> default:     to determine the port that maps to guestport 22,
==> default:     then: 'ssh vagrant@localhost -p <forwarded port>'
==> default:
==> default:     IMPORTANT:  READ CAREFULLY
==> default:     The Software is subject to and governed by the terms and conditions
==> default:     of the End User License Agreement and the Supplemental End User
==> default:     License Agreement accompanying the product, made available at the
==> default:     time of your order, or posted on the Cisco website at
==> default:     www.cisco.com/go/terms (collectively, the 'Agreement').
==> default:     As set forth more fully in the Agreement, use of the Software is
==> default:     strictly limited to internal use in a non-production environment
==> default:     solely for demonstration and evaluation purposes. Downloading,
==> default:     installing, or using the Software constitutes acceptance of the
==> default:     Agreement, and you are binding yourself and the business entity
==> default:     that you represent to the Agreement. If you do not agree to all
==> default:     of the terms of the Agreement, then Cisco is unwilling to license
==> default:     the Software to you and (a) you may not download, install or use the
==> default:     Software, and (b) you may return the Software as more fully set forth
==> default:     in the Agreement.

[iosxr_test.py:97 -      bringup_vagrant()] Connecting to port 2222

[iosxr_test.py:104 -      bringup_vagrant()] Sucessfully brought up VM and logged in
[iosxr_test.py:118 -           test_linux()] Testing XR Linux...
[iosxr_test.py:119 -           test_linux()] Connecting to port 2222

[iosxr_test.py:128 -           test_linux()] Successfully logged into XR Linux
[iosxr_test.py:130 -           test_linux()] Check user:
[iosxr_test.py:54 -         check_result()] Test passed: Correct user found
[iosxr_test.py:137 -           test_linux()] Check pinging the internet:
[iosxr_test.py:54 -         check_result()] Test passed: Successfully pinged
[iosxr_test.py:144 -           test_linux()] Check resolv.conf is correctly populated:
[iosxr_test.py:54 -         check_result()] Test passed: nameserver <IP_ADDRESS> is successfully populated
[iosxr_test.py:54 -         check_result()] Test passed: nameserver <IP_ADDRESS> is successfully populated
[iosxr_test.py:157 -           test_linux()] Check vagrant public key has been replaced by private:
[iosxr_test.py:54 -         check_result()] Test passed: SSH public key successfully replaced
[iosxr_test.py:169 -           test_linux()] Vagrant SSH to XR Linux is sane
[iosxr_test.py:187 -              test_xr()] Testing XR Console...
[iosxr_test.py:188 -              test_xr()] Connecting to port 2223

[iosxr_test.py:202 -              test_xr()] Successfully logged into XR Console
[iosxr_test.py:204 -              test_xr()] Check show version:
[iosxr_test.py:54 -         check_result()] Test passed: XRv x64 correctly found in show version
[iosxr_test.py:211 -              test_xr()] Check show run for username vagrant:
[iosxr_test.py:54 -         check_result()] Test passed: Username vagrant found
[iosxr_test.py:219 -              test_xr()] Check show run for grpc:
[iosxr_test.py:54 -         check_result()] Test passed: grpc is configured
[iosxr_test.py:231 -              test_xr()] Vagrant SSH to XR Console is sane
[iosxr_test.py:268 -                 main()] result_linux=True, result_xr=True
[iosxr_test.py:273 -                 main()] Both IOS XR and IOS Linux test suites passed
[iosxr_iso2vbox.py:622 -                 main()] Single node use:
[iosxr_iso2vbox.py:623 -                 main()]  vagrant init 'IOS XRv'
[iosxr_iso2vbox.py:624 -                 main()]  vagrant box add --name 'IOS XRv' /Users/rwellum/Desktop/Boxes/machines/iosxrv-fullk9-x64-latest-C/iosxrv-fullk9-x64-latest-C.box --force
[iosxr_iso2vbox.py:625 -                 main()]  vagrant up
[iosxr_iso2vbox.py:627 -                 main()] Multinode use:
[iosxr_iso2vbox.py:628 -                 main()]  Copy './iosxrv-x64-vbox/vagrantfiles/simple-mixed-topo/Vagrantfile' to the directory running vagrant and do:
[iosxr_iso2vbox.py:629 -                 main()]  vagrant box add --name 'IOS XRv' /Users/rwellum/Desktop/Boxes/machines/iosxrv-fullk9-x64-latest-C/iosxrv-fullk9-x64-latest-C.box --force
[iosxr_iso2vbox.py:630 -                 main()]  vagrant up
[iosxr_iso2vbox.py:631 -                 main()]  Or: 'vagrant up rtr1', 'vagrant up rtr2'
[iosxr_iso2vbox.py:633 -                 main()] Note that both the XR Console and the XR linux shell username and password is vagrant/vagrant
[iosxr_iso2vbox.py:95 -                  run()] Command: 'vagrant destroy --force'

[iosxr_iso2vbox.py:105 -                  run()] Command succeeded with code 0:
[iosxr_iso2vbox.py:107 -                  run()] Output for: vagrant destroy --force
[iosxr_iso2vbox.py:108 -                  run()] ==> default: Forcing shutdown of VM...
==> default: Destroying VM and associated drives...

:shipit:


Demonstrate provisioning a toolchain for native development

update documentation to describe what this works for and what it doesn't
open issue for adding tool chain provisioning for windows
open issue for provisioning Swift on macos
open issue for error handling of non-sensical things (Swift on Windows)
ping interested parties to look at this

Also update release notes before closing


test(extension): remove mainMenuPageObject.ts

Checklist

[ ] JIRA - <link>
[ ] Proper tests implemented
[ ] Screenshots added.

Proposed solution
Explain how does this PR solves the problem stated in JIRA ticket.
You can also enumerate different alternatives considered while approaching this task.
Testing
Describe here, how the new implementation can be tested.
Provide link or briefly describe User Acceptance Criteria/Tests that need to be met
Screenshots
Attach screenshots here if implementation involves some UI changes

Allure Report
allure-report-publisher generated test report!

processReports: ❌ test report for 874b1bcc

passed
failed
skipped
flaky
total
result

Total
25
8
4
0
37
❌


[Question] topic life cycle - about recycling/expiry/TTL?

In a scenario where an unbounded number of topics are created by clients, how do we delete unused/olders topics?
Are topics automatically 'removed' when no one is subscribed and no more messages are in the queue?
Is there is a way to provide some sort of a TTL on topics?
Many thanks!

@MarcMagnin The topics and routes are created when there are subscriptions on a node in the cluster, and removed dynamically if no subscriptions in the cluster.


Feature request: optionally disable Path normalization

The Normalize function is significantly more strict than the guidelines outlined in Google Cloud Storage. I tried to use -gcloud-safe-chars but was unable to include unicode characters (and also don't know all possible characters that could be used ahead of time).
For my use-case, where I control the paths and so don't need to worry about safety, I would love to have the option to disable this Normalization / escaping.

@cshum - bumping this. Would you consider adding an option to disable path normalization?

@steve-marmalade added skipping safe chars by setting --.
GCLOUD_SAFE_CHARS=--

You may test it via Docker build under master branch:
https://github.com/cshum/imagor/pkgs/container/imagor/187872443?tag=master
ghcr.io/cshum/imagor@sha256:1e3f5be528a5269d2b9506edcfe03357430374d8929a138ae39d2f080df19d94

Available in v1.4.9


There are two 5 pms

Lulz. Fixed in https://github.com/raxod502/hyperschedule/commit/87bc2414d30e86ccfd9528310c766f9200d1b376.


communication: the art of body language

https://www.ted.com/talks/amy_cuddy_your_body_language_may_shape_who_you_are/transcript
http://www.permondo.eu/your-body-language-shapes-who-you-are/
There are quite a handful of phrases that are not unique in this note. Please see our contributing document on plagiarism: https://github.com/dwarvesf/brain/blob/master/CONTRIBUTING.md
This is probably just an honest mistake, but please keep in mind that we want the articles to be unique to the world view of the author. Please revise the note to paraphrase and recompose the idea as to how you might say or word it.


[Bug]: The bot crashes with the command /music lyrics.

What happened?
The bot crashes when using the /music lyrics command.
Reproduction
The issue is related to the following line. Locally, I modified that line to const lyric = response.text, and it works.
Package
plugin-lava-player
Relevant log output
const lyric = response.lines.map((line) => line.line).join("\n");
                                     ^

TypeError: Cannot read properties of null (reading 'map')
    at Command.lyrics (file:///Users/felipevelasco/Learning/discord-bot/node_modules/@discordx/plugin-lava-player/dist/plugins/lavalyrics/index.js:61:38)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async next (file:///Users/felipevelasco/Learning/discord-bot/node_modules/discordx/dist/index.mjs:1093:15)

Node.js v22.8.0

Code of Conduct

[X] I agree to follow this project's Code of Conduct

@felipevelascohz are you using latest plugins? based on there README page of lyrics. lines should exist. Please verify the plugin version you are using. So that I can cross check.
Thank you.

These are the versions of the plugins I am using:
plugins:     - dependency: "dev.lavalink.youtube:youtube-plugin:1.10.2"       snapshot: false     - dependency: "com.github.topi314.lavalyrics:lavalyrics-plugin:1.0.0"     - dependency: "com.github.topi314.lavasrc:lavasrc-plugin:4.1.1


Question: Inserting Localized Text Item Into Struct Field

I've searched the repo and couldn't seem to find a straightforward answer to this.
According to IPTC specifications, ArtworkOrObject is a bag of ArtworkOrObjectDetails structs. Some of those details e.g. AOContentDescription or AOCreator are arrays of information within the ArtworkOrObjectDetails struct. What is the best way to go about setting the value of a struct field to a Bag or AltLang or inserting array items into the value portion of a struct field?

Hi @jwsinner ,
This sample https://github.com/adobe/XMP-Toolkit-SDK/blob/e0955b272ab6035b2921fa2c649aca5ecfe5ab81/samples/source/CustomSchema.cpp might be useful to you.


Fix install.sh error when no .env file is present

Running install.sh when there is no .env file present causes two issues
1- The following error is observed
dispatch-docker git:master  ❯ ./install.sh
Checking minimum requirements...
ERROR: Couldn't find env file: /home/user/folder/dispatch-docker/.env
Cleaning up...

If there is no .env file present, the installer fails before reaching 'ensure_file_from_example' because 'docker-compose down --rmi local --remove-orphans' will be expecting .env file present. Therefore changing the order of 'ensure_file_from_example' so that it happens before 'docker-compose down --rmi local --remove-orphans' would fix the issue
2- The following error is observed
Cannot stat /.example.env: File not found

This happens because the cp/sed expression inside 'ensure_file_from_example' is attempting to copy the non-existent file .example.env while it should be copying .env.example

Thanks for the PR!


I want to export / backup all Deta Base data

I want to export or backup all data of Deta Base.
I want the data to be output as a JSON file.
But, fetch API limits 1MB. (Ref)
How to export all data that over 1MB?

Hi @Neos21, the limit of 1MB is only for one page, you can keep fetching next pages by passing the last parameter/option. Make sure to use the our >1.0.0 version of the SDK and the docs.


Error when trying to build for iPad iOS device

This is using a up-to-date master as of now.
Output from running via Atom:
flutter run --no-checked --debug-port=16204 --start-paused --device-id b0f7081e6f02d7e3b573bf6afcb64e61ed8b86bb • flutter logs
map/ • debug
Running 'pub get' in map...                            -\|/-\|/-\|/1.1s
Running lib/main.dart on iPad...
Unzipping Xcode project to local directory...
Xcode project created in /Users/sethladd/flutter/map/ios/.
[....] Waiting for iOS device to be connected
[....] Using J81AP 'iPad' (b0f7081e6f02d7e3b573bf6afcb64e61ed8b86bb).
------ Install phase ------
[  0%] Found J81AP 'iPad' (b0f7081e6f02d7e3b573bf6afcb64e61ed8b86bb) connected through USB, beginning install
[  5%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/META-INF/ to device
[  5%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/META-INF/com.apple.ZipMetadata.plist to device
[  6%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/_CodeSignature/ to device
[  6%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/_CodeSignature/CodeResources to device
[  7%] Copying<EMAIL_ADDRESS>to device
[  8%] Copying<EMAIL_ADDRESS>to device
[  8%] Copying<EMAIL_ADDRESS>to device
[  9%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon29x29~ipad.png to device
[ 10%] Copying<EMAIL_ADDRESS>to device
[ 10%] Copying<EMAIL_ADDRESS>to device
[ 11%] Copying<EMAIL_ADDRESS>to device
[ 12%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon40x40~ipad.png to device
[ 12%] Copying<EMAIL_ADDRESS>to device
[ 13%] Copying<EMAIL_ADDRESS>to device
[ 14%] Copying<EMAIL_ADDRESS>to device
[ 14%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon76x76~ipad.png to device
[ 15%] Copying<EMAIL_ADDRESS>to device
[ 16%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/embedded.mobileprovision to device
[ 17%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/ to device
[ 17%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/ to device
[ 18%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/_CodeSignature/ to device
[ 19%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/_CodeSignature/CodeResources to device
[ 19%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/app.flx to device
[ 21%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/FlutterApplication to device
[ 29%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/Info.plist to device
[ 29%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/icudtl.dat to device
[ 34%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Info.plist to device
[ 34%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/ to device
[ 35%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib to device
[ 36%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/Info.plist to device
[ 36%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib to device
[ 37%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/PkgInfo to device
[ 38%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Runner to device
[ 49%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/ServiceDefinitions.json to device
[ 52%] CreatingStagingDirectory
[ 57%] ExtractingPackage
[ 60%] InspectingPackage
[ 60%] TakingInstallLock
[ 65%] PreflightingApplication
[ 65%] InstallingEmbeddedProfile
[ 70%] VerifyingApplication
2016-04-19 13:11:46.177 ios-deploy[27388:2809344] [ !! ] Error 0xe8008015: ·Qyˇˇ AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0)
Could not install ios/.generated/build/Release-iphoneos/Runner.app on b0f7081e6f02d7e3b573bf6afcb64e61ed8b86bb.
Error running application on iPad.

Output running via command line:
~/flutter/map $ flutter -d iPad run
Uploading .generated package contents... DONE.
Installing '(null)'
 - CreatingStagingDirectory (5%)
 - ExtractingPackage (15%)
 - InspectingPackage (20%)
 - Error occurred: PackageInspectionFailed
Running lib/main.dart on iPad...
[....] Waiting for iOS device to be connected
[....] Using J81AP 'iPad' (b0f7081e6f02d7e3b573bf6afcb64e61ed8b86bb).
------ Install phase ------
[  0%] Found J81AP 'iPad' (b0f7081e6f02d7e3b573bf6afcb64e61ed8b86bb) connected through USB, beginning install
[  5%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/META-INF/ to device
[  5%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/META-INF/com.apple.ZipMetadata.plist to device
[  6%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/_CodeSignature/ to device
[  6%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/_CodeSignature/CodeResources to device
[  7%] Copying<EMAIL_ADDRESS>to device
[  8%] Copying<EMAIL_ADDRESS>to device
[  8%] Copying<EMAIL_ADDRESS>to device
[  9%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon29x29~ipad.png to device
[ 10%] Copying<EMAIL_ADDRESS>to device
[ 10%] Copying<EMAIL_ADDRESS>to device
[ 11%] Copying<EMAIL_ADDRESS>to device
[ 12%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon40x40~ipad.png to device
[ 12%] Copying<EMAIL_ADDRESS>to device
[ 13%] Copying<EMAIL_ADDRESS>to device
[ 14%] Copying<EMAIL_ADDRESS>to device
[ 14%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/AppIcon76x76~ipad.png to device
[ 15%] Copying<EMAIL_ADDRESS>to device
[ 16%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/embedded.mobileprovision to device
[ 17%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/ to device
[ 17%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/ to device
[ 18%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/_CodeSignature/ to device
[ 19%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/_CodeSignature/CodeResources to device
[ 19%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/app.flx to device
[ 21%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/FlutterApplication to device
[ 29%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Frameworks/FlutterApplication.framework/Info.plist to device
[ 29%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/icudtl.dat to device
[ 34%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Info.plist to device
[ 34%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/ to device
[ 35%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/01J-lp-oVM-view-Ze5-6b-2t3.nib to device
[ 36%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/Info.plist to device
[ 36%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/LaunchScreen.storyboardc/UIViewController-01J-lp-oVM.nib to device
[ 37%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/PkgInfo to device
[ 38%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/Runner to device
[ 49%] Copying /Users/sethladd/flutter/map/ios/.generated/build/Release-iphoneos/Runner.app/ServiceDefinitions.json to device
[ 52%] CreatingStagingDirectory
[ 57%] ExtractingPackage
[ 60%] InspectingPackage
[ 60%] TakingInstallLock
[ 65%] PreflightingApplication
[ 65%] InstallingEmbeddedProfile
[ 70%] VerifyingApplication
2016-04-19 14:53:52.618 ios-deploy[46157:2890534] [ !! ] Error 0xe8008015: ·
                                                                            Qyˇˇ AMDeviceSecureInstallApplication(0, device, url, options, install_callback, 0)
Could not install ios/.generated/build/Release-iphoneos/Runner.app on b0f7081e6f02d7e3b573bf6afcb64e61ed8b86bb.
Error running application on iPad.

XCode is telling me "Could not find Developer Disk Image" when I try the Run button in XCode. My iPad is running iOS 9.3 and the Deployment Target in Xcode is set to 8.0. I think the Deployment Target is the default for newly created flutter apps.

Looks like a code signing issue. Duplicate of https://github.com/flutter/flutter/issues/2952


Ability to manage circular dependencies in angular-seed.

I'm submitting a ...  (check one with "x")

[x] feature request

Current behavior
No tools for circular dependencies management
Expected behavior
Something like
https://www.npmjs.com/package/circular-dependency-plugin to manage circular dependencies in angular-seed.

Seems like build.prod.rollup.aot can be used for this


Update CHANGES.rst

Thinking we should go ahead and release niworkflows 0.0.8/0.1.0 and fmriprep 0.4.5. Any objections?

Let me do pybids as well.
On Jun 6, 2017 4:47 AM, "Chris Markiewicz"<EMAIL_ADDRESS>wrote:

Thinking we should go ahead and release niworkflows 0.0.8/0.1.0 and
fmriprep 0.4.5. Any objections?
You can view, comment on, or merge this pull request online at:
https://github.com/poldracklab/fmriprep/pull/550
Commit Summary

Update CHANGES.rst

File Changes

M CHANGES.rst
https://github.com/poldracklab/fmriprep/pull/550/files#diff-0 (9)

Patch Links:

https://github.com/poldracklab/fmriprep/pull/550.patch
https://github.com/poldracklab/fmriprep/pull/550.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/poldracklab/fmriprep/pull/550, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAOkp81ggDy9va2deK5UrUIN-Fz6epyJks5sBTxogaJpZM4NxOsK
.

pybids 0.2.0 is out - give it a moment to build
https://github.com/INCF/pybids/releases/tag/0.2.0
On Tue, Jun 6, 2017 at 6:39 AM, Chris Gorgolewski <
<EMAIL_ADDRESS>wrote:

Let me do pybids as well.
On Jun 6, 2017 4:47 AM, "Chris Markiewicz"<EMAIL_ADDRESS>wrote:

Thinking we should go ahead and release niworkflows 0.0.8/0.1.0 and
fmriprep 0.4.5. Any objections?
You can view, comment on, or merge this pull request online at:
https://github.com/poldracklab/fmriprep/pull/550
Commit Summary

Update CHANGES.rst

File Changes

M CHANGES.rst
https://github.com/poldracklab/fmriprep/pull/550/files#diff-0 (9)

Patch Links:

https://github.com/poldracklab/fmriprep/pull/550.patch
https://github.com/poldracklab/fmriprep/pull/550.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/poldracklab/fmriprep/pull/550, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAOkp81ggDy9va2deK5UrUIN-Fz6epyJks5sBTxogaJpZM4NxOsK
.

Updated the pybids pin. Will wait on poldracklab/niworkflows#175 approval to go forward with releasing fmriprep 0.4.5, but this can go in now or wait on that. Your call.

The 4G RAM limit on Circle seems to be being hit more regularly. 😕


How to set up build and test pipeline

so we have multiple packages, all es modules with flow. We should be able to build the different projects in umd, commonjs and es modules (no es2015+ code inside) in a single command in the main repository.
We should also make sure that jest runs the build process before running the tests I guess, since the requester depends on the universal-store 🤔

We should also make sure that jest runs the build process before running the tests I guess, since the requester depends on the universal-store

I don't quite get why we would need to build packages before launching tests. I saw that the jest repo does that, they have a build/watch for the code to be able to test it (dunno why).

We should be able to build the different projects in umd, commonjs and es modules (no es2015+ code inside) in a single command in the main repository.

We can tackle that at the very end but still interesting to dig it and possible solutions, any idea?

Rollup, lerna and bolt are probably good options.


Fix pythran include path for numpy math functions

According test case

This should fail, I've added a test cas and wanted to make sure it is actually run by CI


(async) None button removes entire selection regardless of filter

For consistency with the "All" button and the non-async version, "None" should apply to just the currently filtered items. When there is no filter, we can just remove all items.

@jtrussell Would you mind reviewing this one? If everything looks good I'll tag it.


Getting UnsatisfiedLinkError: undefined symbol: _ZN2td16verbosity_binlogE while running java example (CentOS 7)

TL; DR: build goes without visible errors, but in the end contents of libtddb.a are not linked to libtdjni.so. What I can do to fix the situation?
Did everything following the guide https://github.com/tdlib/td/blob/master/example/java/README.md
[jnibuild]# cmake -DCMAKE_BUILD_TYPE=Release -DTD_ENABLE_JNI=ON -DCMAKE_INSTALL_PREFIX:PATH=../example/java/td ..
-- Could NOT find ccache (this is NOT an error)
-- Found OpenSSL: /usr/local/ssl/include /usr/local/ssl/lib/libssl.so;/usr/local/ssl/lib/libcrypto.so
-- Found ZLIB: /usr/include /usr/lib64/libz.so
-- Found JNI: /opt/jdk1.8.0_101/include;/opt/jdk1.8.0_101/include/linux;/opt/jdk1.8.0_101/include /opt/jdk1.8.0_101/jre/lib/amd64/libjawt.so;/opt/jdk1.8.0_101/jre/lib/amd64/server/libjvm.so
-- Could NOT find Readline (missing:  READLINE_INCLUDE_DIR READLINE_LIBRARY)
-- Could NOT find Readline (this is NOT an error)
-- Configuring done
-- Generating done
-- Build files have been written to: build

[jnibuild]# cmake --build . --target install
[jnibuild]# cd ../example/java/build

[build]# cmake -DCMAKE_BUILD_TYPE=Release -DTd_DIR=../td/lib/cmake/Td -DCMAKE_INSTALL_PREFIX:PATH=.. ..
-- Found JNI: /opt/jdk1.8.0_101/include;/opt/jdk1.8.0_101/include/linux;/opt/jdk1.8.0_101/include /opt/jdk1.8.0_101/jre/lib/amd64/libjawt.so;/opt/jdk1.8.0_101/jre/lib/amd64/server/libjvm.so
-- Found Java: /opt/jdk1.8.0_101/bin/javac /opt/jdk1.8.0_101/bin/javadoc
-- Configuring done
-- Generating done
-- Build files have been written to: example/java/build

[build]# cmake --build . --target install
[ 20%] Generating Java TDLib API source files
[ 20%] Built target td_generate_java_api
[ 40%] Building Java code
[ 40%] Built target build_java
[ 60%] Generating Javadoc documentation
...
Scanning dependencies of target tdjni
[ 80%] Building CXX object CMakeFiles/tdjni.dir/td_jni.cpp.o
[100%] Linking CXX shared library libtdjni.so
[100%] Built target tdjni
Install the project...
-- Install configuration: "Release"
-- Installing: /root/td-master/example/java/build/../bin/libtdjni.so
-- Removed runtime path from "../bin/libtdjni.so"

[build]# ls ../bin
libtdjni.so

Then I see only libtdjni.so, no classes, so I assume build_java did not work properly, but that's not a problem, I compile classes myself:
[java]# javac -d ./bin org/drinkless/tdlib/example/Example.java org/drinkless/tdlib/Client.java org/drinkless/tdlib/Log.java org/drinkless/tdlib/TdApi.java
And then when I launch application I see an error
[bin]# java '-Djava.library.path=.' org/drinkless/tdlib/example/Example
java.lang.UnsatisfiedLinkError: example/java/bin/libtdjni.so: /root/td-master/example/java/bin/libtdjni.so: undefined symbol: _ZN2td16verbosity_binlogE
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1857)
        at java.lang.Runtime.loadLibrary0(Runtime.java:870)
        at java.lang.System.loadLibrary(System.java:1122)
        at org.drinkless.tdlib.example.Example.<clinit>(Example.java:58)
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.drinkless.tdlib.Client.nativeClientExecute(Lorg/drinkless/tdlib/TdApi$Function;)Lorg/drinkless/tdlib/TdApi$Object;
        at org.drinkless.tdlib.Client.nativeClientExecute(Native Method)
        at org.drinkless.tdlib.Client.execute(Client.java:103)
        at org.drinkless.tdlib.example.Example.main(Example.java:297)

This symbol is defined in example/java/td/lib/libtddb.a:
[lib]# nm libtddb.a | grep binlogE
                 U _ZN2td16verbosity_binlogE

So, as far as I can see, there is a problem with linking contents of libtddb.a to libtdjni.so.

Everything is linked automatically and there is no way on successful build to not link something. Could you paste output of cmake --build . --target install and full output of cmake configuration invocations somewhere?

Here the part that matters
[ 60%] Building Java code
/opt/jdk1.8.0_101/bin/javac -d /root/td-master/example/bin /root/td-master/example/java/org/drinkless/tdlib/example/Example.java /root/td-master/example/java/org/drinkless/tdlib/Client.java /root/td-master/example/java/org/drinkless/tdlib/Log.java /root/td-master/example/java/org/drinkless/tdlib/TdApi.java
gmake[2]: Leaving directory `/root/td-master/example/java/build'
[ 60%] Built target build_java
/usr/bin/gmake -f CMakeFiles/tdjni.dir/build.make CMakeFiles/tdjni.dir/depend
gmake[2]: Entering directory `/root/td-master/example/java/build'
cd /root/td-master/example/java/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /root/td-master/example/java /root/td-master/example/java /root/td-master/example/java/build /root/td-master/example/java/build /root/td-master/example/java/build/CMakeFiles/tdjni.dir/DependInfo.cmake --color=
Scanning dependencies of target tdjni
gmake[2]: Leaving directory `/root/td-master/example/java/build'
/usr/bin/gmake -f CMakeFiles/tdjni.dir/build.make CMakeFiles/tdjni.dir/build
gmake[2]: Entering directory `/root/td-master/example/java/build'
[ 80%] Building CXX object CMakeFiles/tdjni.dir/td_jni.cpp.o
/opt/rh/devtoolset-3/root/usr/bin/g++   -DPACKAGE_NAME=\"org/drinkless/tdlib\" -Dtdjni_EXPORTS -std=c++1y  -O3 -DNDEBUG -fPIC -isystem /opt/jdk1.8.0_101/include -isystem /opt/jdk1.8.0_101/include/linux -isystem /usr/local/include    -std=c++14 -o CMakeFiles/tdjni.dir/td_jni.cpp.o -c /root/td-master/example/java/td_jni.cpp
[100%] Linking CXX shared library libtdjni.so
/usr/bin/cmake -E cmake_link_script CMakeFiles/tdjni.dir/link.txt --verbose=1
/opt/rh/devtoolset-3/root/usr/bin/g++  -fPIC -std=c++1y  -O3 -DNDEBUG  -shared -Wl,-soname,libtdjni.so -o libtdjni.so CMakeFiles/tdjni.dir/td_jni.cpp.o /opt/jdk1.8.0_101/jre/lib/amd64/server/libjvm.so /usr/local/lib/libtdclient.a -ltdcore /opt/jdk1.8.0_101/jre/lib/amd64/server/libjvm.so -Wl,-rpath,/opt/jdk1.8.0_101/jre/lib/amd64/server:
gmake[2]: Leaving directory `/root/td-master/example/java/build'
[100%] Built target tdjni
gmake[1]: Leaving directory `/root/td-master/example/java/build'
/usr/bin/cmake -E cmake_progress_start /root/td-master/example/java/build/CMakeFiles 0
/usr/bin/gmake -f CMakeFiles/Makefile2 preinstall
gmake[1]: Entering directory `/root/td-master/example/java/build'
gmake[1]: Nothing to be done for `preinstall'.
gmake[1]: Leaving directory `/root/td-master/example/java/build'
Install the project...
/usr/bin/cmake -P cmake_install.cmake
-- Install configuration: "Release"
-- Installing: /root/td-master/example/java/build/../bin/libtdjni.so
-- Removed runtime path from "../bin/libtdjni.so"

And apparently yes, javac outputs to /example/bin instead of /example/java/bin, which is not a big deal.

build/CMakeFiles/CMakeOutput.log is here

Could you try to follow instructions from https://tdlib.github.io/td/build.html?language=Java from scratch from clonning again TDLib?

Yes, I followed instructions from Java->Linux->Other, no debug, install in ./td/tdlib, g++  - with exactly same result.

AFAIK the issue is in example/java/build/CMakeFiles/tdjni.dir/link.txt not linking other .a files as it should. I will try to link them manually

@UristMcKerman
[lib]# nm libtddb.a | grep binlogE
                 U _ZN2td16verbosity_binlogE

nm tells that the symbol is undefined even in libtddb.a, despite it is defined in tddb/td/db/BinlogEvent.cpp and must be there.

It's is just my mistake, full output was:
[root@dev01 jnibuild]# nm tddb/libtddb.a | grep verbosity_binlogE
U _ZN2td16verbosity_binlogE
0000000000000000 D _ZN2td16verbosity_binlogE
But when looking at libtdjni.so I get
[root@dev01 td]# nm tdlib/bin/libtdjni.so | grep verbosity_binlogE
U _ZN2td16verbosity_binlogE

Hello! I've retruned to work on this issue and I'm completely lost: I've tracked down this symbol from the begining to the end and figured out that it is not included while executing command
g++ -fPIC -O3 -DNDEBUG  -shared -Wl,-soname,libtdjni.so -o libtdjni.so CMakeFiles/tdjni.dir/td_jni.cpp.o /opt/jdk1.8.0_101/jre/lib/amd64/server/libjvm.so /usr/local/lib/libtdclient.a -ltdcore /opt/jdk1.8.0_101/jre/lib/amd64/server/libjvm.so -Wl,-rpath,/opt/jdk1.8.0_101/jre/lib/amd64/server:
Firstly, the content of td/example/java/td/lib/* where all .a files lie are not included. But, even when I explicitly tell g++ to link these libs
/opt/rh/devtoolset-3/root/usr/bin/g++ -D_FILE_OFFSET_BITS=64 -pthread -std=c++14 -fPIC -O3 -DNDEBUG  -shared -Wl,-soname,libtdjni.so -o libtdjni.so CMakeFiles/tdjni.dir/td_jni.cpp.o /opt/jdk1.8.0_101/jre/lib/amd64/server/libjvm.so /usr/local/lib/libtdclient.a ../td/lib/libtddb.a -ltdcore /opt/jdk1.8.0_101/jre/lib/amd64/server/libjvm.so -Wl,-rpath,/opt/jdk1.8.0_101/jre/lib/amd64/server:
symbol  _ZN2td16verbosity_binlogE is still not included and not defined.
nm  ../td/lib/libtddb.a | grep verbosity_binlogE U _ZN2td16verbosity_binlogE<PHONE_NUMBER>000000 D _ZN2td16verbosity_binlogE
nm td/example/java/build/libtdjni.so | grep binlogE
                 U _ZN2td16verbosity_binlogE
0000000000b642f0 t _ZNSt14_Function_base13_Base_managerIZN2td12_GLOBAL__N_111init_binlogERNS1_6BinlogESsRNS1_14BinlogKeyValueIS3_EES7_RNS1_4TdDb6EventsENS1_5DbKeyEEUlRKNS1_11BinlogEventEE_E10_M_managerERSt9_Any_dataRKSH_St18_Manager_operation
0000000000b6cf60 t _ZNSt17_Function_handlerIFvRKN2td11BinlogEventEEZNS0_12_GLOBAL__N_111init_binlogERNS0_6BinlogESsRNS0_14BinlogKeyValueIS6_EESA_RNS0_4TdDb6EventsENS0_5DbKeyEEUlS3_E_E9_M_invokeERKSt9_Any_dataS3_
0000000000b6ccc0 t _ZZN2td12_GLOBAL__N_111init_binlogERNS_6BinlogESsRNS_14BinlogKeyValueIS1_EES5_RNS_4TdDb6EventsENS_5DbKeyEENKUlRKNS_11BinlogEventEE_clESC_
00000000011e33f0 t _ZZN2td18SecretChatsManager24make_secret_chat_contextEiEN7Context6binlogEv

@UristMcKerman This looks like a bug of the linker, which doesn't include the symbol at offset 0. Could you try to switch to another linker, gold or bfd?


coord_catagorisation should fail with warnings rather than error

✨ Feature Request
The methods under iris.coord_categorisation currently fail raising an error if the coord you are trying to add already exists on a cube. It should fail with a warning instead if the coord already exists
Motivation
Often, you want to iterate over a list of cubes, or cubes from disparate sources, to add categorised coords for later analysis, such as month numbers or years. Or you want add categorised coords to one cube during a analysis process in a notebook, then when it proves useful go back and add the coord to all cubes. In both cases, the coord_categorisation failing with a error when it tries to add a coord to a cube that already has it is irritating and adds burden to my workflow. If these warnings were error messages instead, it would still alert the user if this wasn't expected but not get in the way if it was.
Additional context
This change would just involve changing line 59 here to a warning and break rather than ValueError, then adjusting tests to fit

@SciTools/peloton thinks this would be more appropriate for a try-except or a check ahead of time, within a user script, as others will be relying on the existing behavior.


Update Build Status badge

I spent ~10 minutes trying to get img.shields.io in there and failed; feel free to update the badge to use it if it's preferred (even though we don't seem to be actually using it for anything other than a simple proxy in this scenario?)

thanks! clicking view shows this works! (notice the red underline of the old image)


add migrate crd from v1alpha to v1 on start

closes: https://github.com/opendatahub-io/odh-dashboard/issues/2007/
Description

This is the flow of the migration:

Migrate CR Instances:

Lists all the Custom Resource (CR) instances of the acceleratorprofiles kind under the v1alpha version.
Iterates over each CR instance and:
Updates the apiVersion field to the new v1 version.
Applies the updated CR instance back to the Kubernetes API server using the replaceNamespacedCustomObject method.

Logging:

Logs a message for each CR instance that is successfully updated.
Logs error messages if there are any issues during the individual CR migrations.

Note: The function assumes that the schema for the "v1alpha" and "v1" versions are identical, so it doesn't make any modifications to the actual data of the CRD or CR instances, only their versions.
How Has This Been Tested?

remove v1 version of CRD and add v1alpha version (they are both the same besides version name)
Create acceleratorprofiles CRs using the v1alpha version.
Run the backend
Verify CRD Version Update: Ensure "v1" is added and set as the primary storage for acceleratorprofiles.dashboard.opendatahub.io.
Verify v1alpha is removed if all CRs are upgraded
Verify CR Instances Migration: Ensure all CRs use dashboard.opendatahub.io/v1 and data is consistent.
Log Verification: Review logs for successful updates and any errors.

Test Impact

backend no tests
Request review criteria:

Self checklist (all need to be checked):

[x] The developer has manually tested the changes and verified that the changes work
[x] Commits have been squashed into descriptive, self-contained units of work (e.g. 'WIP' and 'Implements feedback' style messages have been removed)
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[x] The developer has added tests or explained why testing cannot be added (unit tests & storybook for related changes)

If you have UI changes:

[ ] Included any necessary screenshots or gifs if it was a UI change.
[ ] Included tags to the UX team if it was a UI/UX change (find relevant UX in the SMEs section).

After the PR is posted & before it merges:

[ ] The developer has tested their solution on a cluster by using the image produced by the PR to main

cc @andrewballantyne Tested and ready for review


tiltd: remove daemon and proto

Hello @maiamcc, @jazzdan,
Please review the following commits I made in branch nicks/proto:
c1f074a01aaa02fdadcd934f809993973ca76a91 (2018-09-07 17:36:57 -0400)
tiltd: remove daemon and proto

afaik, we don't plan on bringing these back anytime soon, and we can always get them from git history if we need them


body_json() not working as expected

I have a struct that I am serializing as JSON and POSTing to a url.  When I try and mock the request and use the json! macro to deserialize it does not match the request. Is should match I think?
struct -> struct (OK)
json! -> json! (OK)
struct -> json! (NOT WORKING)
json! -> struct (NOT WORKING)
I've put together a quick repo to replicate the problem
https://github.com/longfellowone/wiremockerr/blob/main/src/main.rs
Edit: Also is there any way you can print the incoming json when trying to troubleshoot so it can be compared?

The current JSON matcher is quite brittle, because it looks for an exact comparison - down to the bytes.
A better implementation would compare the parsed serde_json::Value, as a start.

To see the incoming request - it should be included automatically in the panic message - e.g.
thread 'post' panicked at 'Verifications failed:
- /first.
        Expected range of matching incoming requests: == 1
        Number of matched incoming requests: 0

Received requests:
- Request #1
        POST http://localhost/second
user-agent: curl/7.80.0-DEV isahc/0.9.14
host: <IP_ADDRESS>:40463
accept: */*
accept-encoding: deflate,gzip
content-length: 14
content-type: application/json
{"hi":"hello"}
', src/mock_server/exposed_server.rs:363:17


Has not supported infering output shape from input shape for module/function: prim::TupleUnpack, .prim::TupleUnpack.152

Describe the issue:
Environment:

NNI version:2.2
Training service (local|remote|pai|aml|etc):local
Client OS:ubuntu16.04
Server OS (for remote mode only):
Python version:3.7
PyTorch/TensorFlow version: torch1.8.1
Is conda/virtualenv/venv used?:conda
Is running in Docker?:no

Thank you @aa12356jm , model speedup is refactoring, #3462, we will use a new approach to auto infer shape, I think it will be supported in the next version.

Thank you @aa12356jm , model speedup is refactoring, #3462, we will use a new approach to auto infer shape, I think it will be supported in the next version.

can you explain the reason of the problem to me?  i speedup my model, my model consists of three parts: backbone(mobilenetv2)+fpn+head，it is ok if i speedup my backbone.  it gives the above error if i speedup backbone+fpn,
so the error is due to fpn,  but why ? thanks

Hello @aa12356jm , infer_from_inshape and infer_from_outshape below are all our supported infer_shape for now, if you want to speedup your model, seems you need to add implement for prim::TupleUnpack in infer_from_outshape.
https://github.com/microsoft/nni/blob/dddf0b9efa310443a52467854dea053854f6a134/nni/compression/pytorch/speedup/infer_shape.py

@aa12356jm Hi, Basically, I guess it is caused by the function whose return value is complicated(such as tuple or list of tensors). Could you please show us your code snippet of the model definition to reproduce this problem and fix it~ Thanks.

@aa12356jm Hi, Basically, I guess it is caused by the function whose return value is complicated(such as tuple or list of tensors). Could you please show us your code snippet of the model definition to reproduce this problem and fix it~ Thanks.

yes,  the return value of my model  is tuple/list，this is the code:
backbone
`
class MobileNetV2_torchvision(nn.Module):

    def __init__(self, width):
        super(MobileNetV2_torchvision, self).__init__()
        self.model_backbone = mobilenet_v2(pretrained=False, width_mult=width,num_classes=3)

    def forward(self, x):
        x1 = self.model_backbone.features[:7](x)
        x2 = self.model_backbone.features[7:14](x1)
        x3 = self.model_backbone.features[14:18](x2)
        return [x1,x2,x3]

`
FPN
`
class FPN(nn.Module):
    def __init__(self):
        super(FPN,self).__init__()

        self.conv1 = nn.Conv2d(8, 48, kernel_size=(1, 1), stride=(1, 1), bias=False)
        self.conv2 = nn.Conv2d(24, 48, kernel_size=(1, 1), stride=(1, 1), bias=False)
        self.conv3 = nn.Conv2d(80, 48, kernel_size=(1, 1), stride=(1, 1), bias=False)

        self.init_weights()

    def init_weights(self):
        for m in self.modules():
            if isinstance(m, nn.Conv2d):
                xavier_init(m, distribution='uniform')

    def forward(self, inputs):
        """Forward function."""
        laterals=[]

        laterals.append(self.conv1(inputs[0]))  #inputs[0]==x1
        laterals.append(self.conv2(inputs[1]))  #inputs[1]==x2
        laterals.append(self.conv3(inputs[2]))  #inputs[2]==x3

        return laterals

`
above is the simplified code,   output of backbone  is taken as input of  FPN

@zheng-ningxin @J-shang is there any progress?

@aa12356jm Yes.
If the middle layer of a model returns a tuple of tensors, there is no problem (the Tupleunpack will be manually expanded), if the entire model returns a tuple of tensors, at this time, because the Tupleunpack has no subsequent nodes, it cannot be manually expanded and is retained.  I'll submit a PR to fix this ASAP.
FYI,

@zheng-ningxin  i got it ,thanks ,  looking forward to your PR

code for debug
`
import torch,time
from nni.compression.pytorch.utils.counter import count_flops_params

import nni
from nni.compression.pytorch import apply_compression_results, ModelSpeedup

device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model_dir = '/home/notebook/code/personal/study_deeplearning/nanodet-main-new-fa45577/nanodet-main-fpn/tools/debug_for_issue/'
checkpoint_native = torch.load(model_dir+"model_native_net.pkl", map_location=device) #未剪枝之前的网络
model_net_native = checkpoint_native["net"]

model_path = model_dir+"/pruned_model_last.pth"
mask_model_path = model_dir+"/mask_model_last.pth"
dummy_input = torch.randn([1, 3, 320, 320]).to(device)

model_net_native.load_state_dict(torch.load(model_path))
model_net_native.eval()
model_speedup = model_net_native

apply_compression_results(model_speedup, mask_model_path, device)
m_speedup = ModelSpeedup(model_speedup, dummy_input, mask_model_path, device)
m_speedup.speedup_model()

flops, params, results = count_flops_params(model_speedup, dummy_input)
print(f"FLOPs: {flops}, params: {params}")

start = time.time()
for _ in range(32):
    use_speedup_out = model_speedup(dummy_input)
print('elapsed time when use speedup: ', time.time() - start)

`

Describe the issue:
Environment:

NNI version:2.2
Training service (local|remote|pai|aml|etc):local
Client OS:ubuntu16.04
Server OS (for remote mode only):
Python version:3.7
PyTorch/TensorFlow version: torch1.8.1
Is conda/virtualenv/venv used?:conda
Is running in Docker?:no

Have you solved this problem? My model structure is very similar to yours. I changed the branch code named speedup_v2, but there are still problems with reasoning.

@aa12356jm Have you solved this problem? My model structure is very similar to yours. I changed the branch code named speedup_v2, but there are still problems with reasoning.

Have you solved this problem? My model structure is very similar to yours. I changed the branch code named speedup_v2, but there are still problems with inference

@johnnylili Could you please show the code snippet of the model definition? so that I can run it with speedup_v2 and check what's wrong. Thanks.

@zheng-ningxin  你好，我这边可以加你个微信吗？方便我把代码发给您，与您沟通。

@johnnylili Ok, please send me your Wechat id through the email<EMAIL_ADDRESS>

@johnnylili Hi, I have supported the model you send to me, please pull the latest version of speedup_v2 and try again, if you meet some problems, please feel free to contact me through the email or Wechat, thanks~

"RuntimeError: Has not supported infering output shape from input shape for module/function: prim::TupleUnpack, .prim::TupleUnpack.46"
multiple outputs of a neural network still arise the error above. thanks for share the solution. I had tried the newest nni sourcecode.
class SubNet(nn.Module):
def init(self):
super(SubNet, self).init()
self.conv1 = nn.Conv2d(512, 1024, 3, 1)
self.conv2 = nn.Conv2d(512, 1024, 5, 1)
def forward(self, x):
    out0 = self.conv1(x)
    out1 = self.conv2(x)
    return out0, out1

class MultiOutputsNet(nn.Module):
def init(self):
super(MultiOutputsNet, self).init()
self.backbone = models.vgg16_bn(pretrained=True).features
self.subnet0 = SubNet()
# self.subnet1 = SubNet()
def forward(self, x):
    x = self.backbone(x)
    a0, a1 = self.subnet0(x)
    # b0, b1 = self.subnet1(x)
    return a0, a1

@JohnsenJiang have you tried on this branch https://github.com/microsoft/nni/pull/3462？

The net i mentioned above works on your speedup_v2 branch. Thanks for your help! My fault to misunderstand your reply above my issue. @zheng-ningxin


crates.io is not listed as a supported secrets scanning partner

Code of Conduct

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

What article on docs.github.com is affected?
https://docs.github.com/en/code-security/secret-scanning/secret-scanning-patterns#supported-secrets
What part(s) of the article would you like to see updated?
The table in the Supported secrets section does not list crates.io, the Rust package registry, as a supported partner.
I believe crates.io supports secret scanning, as it was implemented in late 2022 and has seen continued iteration recently:

https://github.com/rust-lang/crates.io/issues/3400
https://github.com/rust-lang/crates.io/pull/5638
https://github.com/rust-lang/crates.io/pull/5639

Additional information
cc @Turbo87, crates.io team co-lead, who worked on this feature.
@Turbo87 I'm not sure what the current state of the GitHub secrets scanning integration is and I hope I'm not jumping the gun on asking the GitHub folks to add crates.io as a supported secrets scanning partner.
I do want to defer to you on whether this ticket should be actioned on / is appropriate. I opened this ticket because I wasn't sure if the integration was complete and the documentation step got missed.
Thanks for making this happen!

yep, it's implemented and running in production. according to our logs we already revoked a couple of tokens due to that.

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

Thanks, I'll talk to the secret scanning folks 😃

@lopopolo 👋🏻 - we're fixing this omission internally, and you should see crates.io in the table of supported partner tokens later today in https://docs.github.com/en/enterprise-cloud@latest/code-security/secret-scanning/secret-scanning-patterns#supported-secrets. Thanks for spotting this ✨
I am going to close this issue.

Thanks everyone! 🦀💪🔒


Update v_vacuum_summary.sql

Fixed view to account for background auto vacuum
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

fixed join condition to make vacuum on dropped tables visible


Binding a socket to all network interfaces

Tracking issue for:

[ ] https://github.com/Def-Try/aiobus/security/code-scanning/2

Resolved.


Add test for a GET request with a body

Handled in https://github.com/CrowdHailer/Ace/commit/1f615c5d723d2d311e30ab0998c6b955c544bfb0


Custom URL for tenant doc

Purpose
Adding custom URLs for tenant docs
Fixing https://github.com/wso2/docs-apim/issues/1305

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@tgtshanika , has this fix been sent to master (3.2.0) as well?


Official LESS port

I've successfully prototyped the converter for 3.x (currently in php but it has to be implemented in grunt js later, I guess) which generates LESS rig from CSS, it also wraps all the prefix fuss within mixins.
Something would change with 4.x because not all continuously added SCSS features could be easily translated to LESS with regexps (they are fragile but work fine while the code style is consistent). But generally this makes maintaining an additional preprocessor option for the project a breeze (existing LESS forks are obviously prone to errors and delays when merging from the original repo).
I would prefer to donate code to the project instead of forking and maintaining my own build.

I’m intending on always only maintaining one codebase. Adding official support for another preprocessor will add unwanted complexity to the project.

@daneden this is very short-sighted, especially considering that @bisubus already wrote the converter.
right now looking for either animate.less or animate.scss returns dozes of different forks, most of them being out-of-date.
i definitely understand that you might not be comfortable maintaining 3 branches (CSS, LESS, SASS), but you could resort to something like @madebysource did with LESShat - they wrote their mixins in JavaScript.
your project is very, very popular and i can't really see why wouldn't you want to support such wildly used preprocessors as LESS and SASS. i think you should reconsider implementing animate.css in other flavours too.


python: poetry: use .venv in DEVENV_ROOT instead of DEVENV_STATE

Currently the poetry integration suffers from some problems regarding the .venv location and its symlink.
Devenv creates a symlink .venv that points to .devenv/state/venv. When poetry creates the its venv within devenv it'll follow the symlink and creates the venv in .devenv/state/venv.
However, when poetry finds out the pyproject.toml doesn't match the contents of .venv it'll remove the .venv symlink and create a new venv at .venv. This results in 2 venvs: one that devenv will activate and another that poetry will use. For the user this happens silently, thus hard to detect.
poetry is hardcoded to always use .venv. It is not possible to configure another venv path nor is this planned.
So for now I'd like to propose to stop using .devenv/state/venv and always use .venv, like poetry anticipates.

Yes, it would be great if the issue could be reconsidered.

Related, should we also trigger venv rebuild when pyproject.toml changes?

Hmm, that is possible, but then it would possibly automatically alter the poetry.lock file. Not sure if that's desired.

I tested this on a few local projects. It seems to be working fine. .devenv/state/venv is not removed, but I'm not sure whether it should.

I've updated and it was picking up the old environment. We should at least issue a warning, since the only way to recover is to delete it.

Hmm, even if the symlink is still being used, since both devenv activates from .venv and poetry uses .venv, both will use the symlink and there shouldn't be a problem. A warning could be an option to notify the user to clean the devenv state, but functionally I think it cannot hurt?


BUG REPORT

Describe the bug
Hash collision for some videos of same length
To Reproduce
v1 = VideoHash(url="https://canvaz.scdn.co/upload/artist/3PhoLpVuITZKcymswpck5b/video/5e966e9c01f147cdae93a02c61a4bf7c.cnvs.mp4")
v2 = VideoHash(url="https://canvaz.scdn.co/upload/licensor/7JGwF0zhX9oItt9901OvB5/video/dc047df48f774d1590b61fd38bc082e4.cnvs.mp4")
print(v1 == v2)

Expected behavior
The hash should be different but is same.
Screenshots
NA
Please complete the following information:

Operating system: NA
Python Version: NA
VideoHash version: NA

Additional context
The issue can probably be resolved by extracting more features such as brightness levels or maybe the most dominant colors of frames extracted at a specific FPS. Increase the number of hash bits to accommodate more data.
OR
why not use colorhash + whash and change the bit site to 128( twice of 64, the current size)? They generate hash is very different ways and collisions should be highly unlikely.

Use Resampling.LANCZOS

https://user-images.githubusercontent.com/64683866/168869109-1f77c839-6912-4e24-8738-42cb15f3ab47.mp4

https://user-images.githubusercontent.com/64683866/168872267-7c6682f8-7294-4d9a-8a68-8c6f44c06df6.mp4