Unable to hit API give error Network request failed using react-native-android

when i test API on emulator, LG, Moto & Samsung it work fine but not with HTC device. device internet connection is working. HTC give error Network request failed
To see the code part here
my base url is http://<IP_ADDRESS>:8081/test

We're cutting down on the number of outstanding issues, in order to allow us to focus. I'm closing this issue because it has been open for over 60 days with no activity. If you think it should still be opened let us know why. PRs are always welcome.


[$250] Track expense-Merchant gets removed after sharing with accountant & completing scanning

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: <IP_ADDRESS>
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4867909
Issue reported by: Applause Internal Team
Action Performed:

Go to https://staging.new.expensify.com/ and log in with a new account with no workspaces
Navigate to self-DM
Click on the "+" button > Track expense > Scan
Upload a valid receipt and track the expense
While the receipt is scanning, select Share with my account and Submit the expense
Select a user on the Invite a member screen
Wait until the receipt finish scanning
Open the scanned expense

Expected Result:
Merchant is displayed
Actual Result:
The merchant gets removed even though it was initially displayed
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
https://github.com/user-attachments/assets/0b425899-0f3e-44fb-9c38-a78bb4a13a09

View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~016e2b81192ecba42b
Upwork Job ID:<PHONE_NUMBER>206590114
Last Price Increase: 2024-08-29

Issue OwnerCurrent Issue Owner: @rojiphil

We think that this bug might be related to #wave-collect - Release 1

@muttmuure  FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

I can't reproduce this

Hm, I saw this yesterday, then couldn't reproduce it again

This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989

Will follow up on this tomorrow

Issue not reproducible during KI retests. (First week)

@muttmuure This issue is more than 2 months old. Can we close this issue as it is also not reproducible by QA?


Proposal: Split README.md into OS-specific and general setup

Right now our README.md is getting bigger by the minute with all the necessary steps to get working.
While the Wiki is great for FAQs and more esoteric issues I think it might be worth creating a documentation folder and having a WINDOWS.md, LINUX.md and OSX.md for noise-free instructions.
Thoughts?

I see @ntwyman @lenardg @LordEidi @johnmccabe and @ali1234 have contributed to the readme so far (which is awesome in and of itself) so your input on this would be the most valuable. Thank you!

This same thought crossed my mind while writing the WSL content. So I am in favor of this!
But I would call the folder just simply docs :)

As of https://github.com/pimoroni/32blit-beta/commit/691a68b6f3aaa94f9430a224a5f5c94ce4df4766 I've also poured Emscripten onto this doc-fire, so it's getting out of hand!

I'd prefer a /doc folder with multiple .md files in it over the wiki for a simple reason. You can download (well git clone) the whole /doc folder and have things locally. Doing so with the wiki is not as easy. And yes I'd go with /docs or /doc vs /documents.
Which also shows my preference regarding a single vs multiple files. Anything we could help there with?

Any suggestions for making the documentation clearer and more complete are always welcome. I think each new person who sets up and runs into issues helps iron on the problems.
Should probably - and I'm leaving this note to myself more than anyone - get some details of the Windows 10 DFU Mode driver issue in there too- whereupon 32blit seems to appear as "STM32 In FS Mode" rather than "STM32 In DFU Mode" and doesn't show up in DfuSe.


Flutter Web Compiler Failing (webdev serve & webdev build)

Steps to Reproduce

Compile using Flutter Web

Logs

Uncaught TypeError: Cannot read property 'call$0' of undefined
    at client.js:24840
    at _wrapJsFunctionForAsync_closure.$protected (client.js:3096)
    at _wrapJsFunctionForAsync_closure.call$2 (client.js:11462)
    at Object._asyncStartSync (client.js:3061)
    at main_closure3.$call$body$main_closure (client.js:24847)
    at main_closure3.call$1 (client.js:24783)
    at _RootZone.runUnaryGuarded$1$2 (client.js:12726)
    at _ControllerSubscription._sendData$1 (client.js:12300)
    at _DelayedData.perform$1 (client.js:12503)
    at _StreamImplEvents.handleNext$1 (client.js:12575)
    at _PendingEvents_schedule_closure.call$0 (client.js:12549)
    at Object._microtaskLoop (client.js:3253)
    at StaticClosure._startMicrotaskLoop (client.js:3259)
    at _AsyncRun__initializeScheduleImmediate_internalCallback.call$1 (client.js:11368)
    at invokeClosure (client.js:1206)
    at MutationObserver.<anonymous> (client.js:1225)

[√] Flutter (Channel master, v1.8.2-pre.174, on Microsoft Windows [Version 10.0. 18362.239], locale en-US)                                                            • Flutter version 1.8.2-pre.174 at D:\ProgramStorage\Applications\Flutter        • Framework revision 15e322c0e5 (3 days ago), 2019-07-24 12:13:51 -0700          • Engine revision ef99738baf                                                     • Dart version 2.5.0 (build 2.5.0-dev.1.0 fedd74669a)                                                                                [√] Android toolchain - develop for Android devices (Android SDK version 29.0.1)     • Android SDK at C:\Users\liamr\AppData\Local\Android\sdk                        • Android NDK location not configured (optional; useful for native profiling  support)                                                                            • Platform android-29, build-tools 29.0.1                                        • Java binary at: C:\Users\liamr\AppData\Local\JetBrains\Toolbox\apps\Androi dStudio\ch-0\183.5692245\jre\bin\java                                                • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01 )                                                                                • All Android licenses accepted.                                                                                [√] Chrome - develop for the web                                                     • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe                                                                                [√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.2.0)        • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Commu nity                                                                                • Visual Studio Community 2019 version 16.2.29123.88                                                                                [√] Android Studio (version 3.4)                                                     • Android Studio at C:\Users\liamr\AppData\Local\JetBrains\Toolbox\apps\Andr oidStudio\ch-0\183.5692245                                                           • Flutter plugin version 37.1.1                                                  • Dart plugin version 183.6270                                                   • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01 )                                                                                [!] IntelliJ IDEA Ultimate Edition (version 2019.1)                                  • IntelliJ at C:\Users\liamr\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch- 0\191.7479.19                                                                        X Flutter plugin not installed; this adds Flutter specific functionality.        X Dart plugin not installed; this adds Dart specific functionality.              • For information about installing plugins, see                                    https://flutter.dev/intellij-setup/#installing-the-plugins                                                                                [!] IntelliJ IDEA Ultimate Edition (version 2019.2)                                  • IntelliJ at C:\Users\liamr\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch- 0\192.5728.98                                                                        X Flutter plugin not installed; this adds Flutter specific functionality.        X Dart plugin not installed; this adds Dart specific functionality.              • For information about installing plugins, see                                    https://flutter.dev/intellij-setup/#installing-the-plugins                                                                                [√] Connected device (2 available)                                                   • Windows • Windows • windows-x64    • Microsoft Windows [Version 10.0.18362 .239]                                                                                • Chrome  • chrome  • web-javascript • Google Chrome 75.0.3770.142                                                                                ! Doctor found issues in 2 categories.
--

o mesmo erro aqui já a uma semana não sei como resolver isso! ajuda?
Uncaught TypeError: Cannot read property 'call$0' of undefined
at client.js:24840
at _wrapJsFunctionForAsync_closure.$protected (client.js:3096)
at _wrapJsFunctionForAsync_closure.call$2 (client.js:11462)
at Object._asyncStartSync (client.js:3061)
at main_closure3.$call$body$main_closure (client.js:24847)
at main_closure3.call$1 (client.js:24783)
at _RootZone.runUnaryGuarded$1$2 (client.js:12726)
at _ControllerSubscription._sendData$1 (client.js:12300)
at _DelayedData.perform$1 (client.js:12503)
at _StreamImplEvents.handleNext$1 (client.js:12575)
at _PendingEvents_schedule_closure.call$0 (client.js:12549)
at Object._microtaskLoop (client.js:3253)
at StaticClosure._startMicrotaskLoop (client.js:3259)
at _AsyncRun__initializeScheduleImmediate_internalCallback.call$1 (client.js:11368)
at invokeClosure (client.js:1206)
at MutationObserver. (client.js:1225)

This might be a faulty update or something. This all started when I was using custom fonts.

aqui isso acontece  e no proprio escopo do meu projeto só vejo esse erro

@megadrazz Is the issue still relevant? I saw your issue https://github.com/dart-lang/webdev/issues/525 but don't understand if it's solved for you.


Could not find module 'SwiftyTesseract' for target 'arm64-apple-ios-simulator

Tesseract_ocr seems not running on Mac OS Apple M2 chip

@SKTDeveloper99 you can add this : config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" to pod

Please see if this fixes this issue. Thanks.


When Dora node exit unexpectedly,there will be some resources in the kernel that cannot be released.

Describe the bug
We found a phenomenon,but i am not sure if it is a dora bug.
We created 3 nodes A, B, C in Dora. Node A is responsible for reading IMU measurements from the serial port(/dev/ttyUSB0), such as xsens mti-30. Node B receives the data from node A and prints the data to confirm that node A can read the IMU data normally. Node C is a node under development. We hope to use node C to receive the data of node A and forward it to ROS2.
Node A and node B can run normally without reporting errors.
When we were debugging node C, we found that if node C exits abnormally, it will cause dora kernel sotp (I am not sure whether the description of sotp is correct), that is, we need to start it again with the dora up command before we can continue to use dora start.
The phenomenon is like this：
Once node C fails, the dora kernel stops, node A cannot be started again, and the node will prompt that the serial port is always occupied. In other words, the serial port may not be released after dora exits abnormally.
This phenomenon has occurred several times, and we currently can only solve this problem by restarting the computer.

Do you mind sharing the errors logs that you get so that we can help you?

Sorry for the inconvenience.

I think that this has been solved with the addition of grace duration


Does not compile (with current reflex I suppose) - is this maintained?

No, I don't really use it myself so it might have bitrotten. If someone wants to get this working again, I'm happy to help out though.

I am just evaluating reflex for non-web usage. I'll use the existing code as a reference to get some minimal testing done. Will get back to you if I decide to update this codebase.

Closed in #5


Add support for more tags in Accessor

Coming from https://github.com/polyfloyd/rust-id3/issues/92, I tried playing a little bit with Lofty.
So far looks great! I am missing a couple of features though, and would like to know if you plan on adding them at some point, or keep things barebone?

artists: some files have multiple artists, would be great to get a Vecof them
genres: same but for genres, instead of getting "Pop/Rock", would be great to get vec!["Pop", "Rock"]
tracks / total_tracks: number of tracks in an album
disk / total_disks: number of disc in an album (think The Beatles' White Album
year

The reason I've kept it barebones is Lofty supports many different tag formats. I try to only add accessors for items that exist in all tags. This has been suggested in the past though, so I'll probably expand Accessor in the future. For now, you can do Tag::get_string and Tag::get_texts (somehow I managed to name those inconsistently).
For multiple artists/genres though, that already exists for other tags through get_texts. It is missing for ID3v2, I'll get that added in 0.7.

I try to only add accessors for items that exist in all tags.

Do you think it would make sense to return Option<String/f64/etc> for tags that are not supported by all formats?

That's why I was hesitant to add more to Accessor. All of the methods already return an Option, I just wasn't sure if it would be alright to have, for example, set_album_artist do nothing and album_artist always return None for ID3v1. As a user, do you think that behavior would be acceptable?

The setters are an annoying bit for sure.
I'm not very objective as my end-goal is to port a music player to Rust haha. But I think sending an Err("This tag cannot be edited due to X") is perfectly fine, as most of those operations can fail no?

Since Tag::insert_item checks if the ItemKey is valid before inserting, it is impossible to error at write time. Maybe it would be best to panic in Id3v1Tag::set_album_artist for example, and just fail silently in a Tag with TagType::Id3v1.
In other news, https://github.com/Serial-ATA/lofty-rs/commit/2c90093aa2bfd78708378fb77284db959a76e3ac fixes the multiple artist/genre issue.

I think panic! would be a bit extreme 😅

Since Tag::insert_item checks if the ItemKey is valid before inserting,

Well then things look even better no? Users could just expect or check if the returned value is false?

Ah wait, I'll just change the setters to return a bool. I jumped to extremes a bit too fast 😅.

Shouldn't the setters return a Result<true, String>? Getting the explanation of why an insertion failed could be valuable to developers

The behavior of just returning a bool is already defined. For consistency's sake it probably makes more sense to just follow that existing behavior.

Actually, just took a look at TagLib and they do nothing in unsupported setters. I'll take that approach.

https://github.com/Serial-ATA/lofty-rs/commit/28fe2040586bb46ebb6a82f420376d22466da764 adds Accessor::track, I think I'll also add year, disk, and comment. Do you think that's enough (for your use case, at least)?

again, my needs, may not be the focus of the crate, but here's a summary:

must-have: tracks, total tracks, disk, total disks, year
bonus: lyrics (but absolutely not urgent)
don't need: comment

😊

Alright, those sound good :+1:.
For lyrics though, I don't want to get them confused with ID3v2's synchronized text. I'll keep them out of Accessor, but you can still get them with tag.get_string(&ItemKey::Lyrics).

https://github.com/Serial-ATA/lofty-rs/commit/03276db157c652be4bff74a879e3ab18d5ff3fae adds {track_total, disk, disk_total, year, comment}, and https://github.com/Serial-ATA/lofty-rs/commit/ced003dc0a8d4f90d07f45cc793299bdb60846ab makes it easier to expand Accessor in the future if needed :slightly_smiling_face:.
Could you try them out and let me know if they're working as expected?


Think about Error Handling of config properties

Maybe we should add error handling for some config properties. But we have to make sure that it is not annoying.

I think for things like the theme it's really confusing if you don't know if the current value is actually valid or not.
And I think as we have increased the debounce time for config options, it should not be annoying.


CMake 3.13.0/3.13.1 and CURL portfile.cmake 7.61.1-1 mismatch

Hello. I can't use debug curl lib (import library for dll) in my CMake 3.13.1 project. There is mismatch between expected debug lib names and file names in portfile.cmake.

@arietto, does this still be an issue for you? currently Curl upgrade to 7.65.0 in VCPKG, could you have a try?

@arietto, please reopen this issue if it still be an problem for you.


Error occurs when deleting device from repository

Describe the bug
When attempting to delete a device from the device repository, an error code of 500 is returned.
To Reproduce
Open the device repository
Press delete device
Press confirm
Expected behavior
The device should be deleted without error and should be removed from the device repository
Testrun version: v1.1-alpha

FE ticket is 311162951 for bug verification.


One directory per modality

It would be logical that the directory structure of the subject-level derivatives would reflect the structure of the raw data. Therefore, we may need to think the structure of the raw data with a bit more attention to general aspects of the processing. Joining modalities that may need completely different analysis under same the folder (anat, func and dwi) may end up generating problems. Not only derivatives can be overwritten but also having many different modalities in the same directory can be rather confusing (Not to speak about the problem of modalities like DfMRI (If someone manages to make it real) or future modalities we have not even heard about).
The way to go may be be one folder per modality, rather than one per scan.

All T1ws in the T1w directory.
All DWIs in the dMRI directory.
All task fMRIs in the tfMRI directory.
All resting fMRIs in the rfMRI directory.
All T2ws in the T2w directory.
All ASL in the ASL directory.
All FLAIR in the FLAIR directory.
All SWIs in the SWI directory.
Etc.

At the end, we would end with 10/12 directories at most, but probably better organised.

Original authors: Unknown

@Athanasiamo wrote:
I think this is an excellent idea. I think it is preferable to have more folders to allow easy overview of the existing data, rather than fewer which entails having to look through so many files within the folders to find what you are looking for. And it's a good point regarding the derivatives, it is definitely worth trying to create a structure where as much as possible is the same in the raw and derivatives structures.

@spinicist wrote:
I like this idea. I have essentially adopted it in my own processing pipelines already

Robert Welsh wrote:

All DWIs in the dMRI directory.

How to handle phase encode polarity reverse for the DWI data?
And what of the raw data for phase reversal for the create of effective field maps for distortion correction of BOLD/EPI data?

@spinicist wrote:

How to handle phase encode polarity reverse for the DWI data?
And what of the raw data for phase reversal for the create of effective field maps for distortion correction of BOLD/EPI data?

Filename suffix?


fix(Modal): heading and label as defaultProps (il8n)

Related to #107

👍

@hellobrian
any reason to add another prop "modalHeading"?
Because we already had "modalHeading" as modal title.
thank you

Bluemix toolchain: Delivery Pipeline deployed carbon-components-react to Bluemix Design System, including commit 9008b0d4495ffebddd615d53ea38d5c3ad7618a8


Rewrite ActionPanel to use Home Assistant default panel

Breaking change

[x] None

Proposed change

Rewriting the ActionPanel to use Home Assistant default panel

Rename 'makeTapActionPanel' to makeActionPanel to be more in line with function.
Remove of how action panels where made.
Reuse home-assistant default action panel instead.
Rewrite how changed-actions are saved.

Type of change

[X] Bugfix (non-breaking change which fixes an issue)
[X] New feature (thank you!)
[ ] Breaking change (fix/feature causing existing functionality to break)
[X] Code quality improvements to existing code or addition of tests

Example configuration

Everything was made in with the new action panels
type: custom:bubble-card
card_type: button
button_type: state
entity: sun.sun
tap_action:
  action: more-info
double_tap_action:
  action: navigate
  navigation_path: "#1"
hold_action:
  action: perform-action
  perform_action: input_boolean.toggle
  target:
    entity_id:
      - input_boolean.help_house_testboolean_01
      - input_boolean.help_house_testboolean_03
      - input_boolean.help_house_testboolean_02
sub_button:
  - entity: input_boolean.help_house_testboolean_01
    hold_action:
      action: url
      url_path: "#2"
    tap_action:
      action: toggle
    double_tap_action:
      action: more-info
button_action:
  tap_action:
    action: more-info
  double_tap_action:
    action: assist
    start_listening: true
  hold_action:
    action: none

Example printscreens/gif

Additional information

This PR fixes or closes issue: fixes #1068, #953
This PR is related to issue or discussion: #792
Link to documentation pull request: /

Additional documentation needed.

[x] None

Checklist

[x] The code change is tested and works locally.
[x] There is no commented out code in this PR.
[x] Tests screenshots/gifs have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated for readme.

Thank you so much! This was probably the worst part of the editor 😅
I can't wait to try this! 🎉

I just tried it and this is almost perfect! There is just a use case that you removed, there was a new toggle for using the default entity instead of adding the same entity multiple times in the config, in YAML it was just "entity" instead of the entity id.
It's still working but without any toggle or instructions about that it's hard to guess. Can you add the toggle back, or do you have a better suggestion?

Ah... Yes I remember you adding that switch.
But I never used it before and did not read all the code I delete so I forgot.
When I edit the yaml and try this. It does not work.
  action: perform-action
  perform_action: input_boolean.toggle
  target:
    entity_id: entity

Indeed I probably not covered this case, I always use call-service followed by service, I was not aware that it was a possibility.

I will try if I find something this evening.

Thanks a lot!

I was heading a total different direction to make it work with the "perform-action" instead of the "call-service". That was way to complicated.
This is closer to what you wrote originally and is simpler but will one day break when they pull the "service-call" possibility.


set scrapeInterval to 60s

This PR:

makes scrapeInterval configurable via values
changes default scrapeInterval from 30s to 60s

Towards https://github.com/giantswarm/giantswarm/issues/25956
Checklist

[x] Update changelog in CHANGELOG.md.
[ ] Test on Workload cluster.

Tested on gauss MC, scrapeInterval is correctly updated.


Could you please clarify how many support images are available for each category in the target domain?

I couldn’t find a description in the paper regarding the number of annotated samples available in the target domain. Could you please clarify this?

I understand your point, but in different iterations, different support samples will still be selected for the same category. Does this mean that the labeled data in the target domain is just relatively less compared to the source domain, but it doesn't imply that there are only 1 or 5 support samples per category in the target domain?

Actually, we only pick support image once. That means that we choose 1 image and conduct 20 epoches for fine-tuning (using the same support image).


add a unit test for the SQS module that verifies #323 is fixed

The last commit just removed a commented-out line.  Merging now that @matthewkmayer has approved the PR.


Frontend changes

Documentation/Comments about updateable/tweakable items.
Support for interval facets (requires api support in #18)

thanks @EricSoroos !


Add HttpException to avoid overriding

This change will allow middlewares interacting with the body parsing
process to raise appropriate HTTPExceptions.

The commit message should be "Add HttpException to avoid overriding"

Done, @cikay !
Thanks for reviewing
I edited the message and rebased against master branch.

The commit message should be "Add HttpException to avoid overriding"

Done, @cikay ! Thanks for reviewing
I edited the message and rebased against master branch.

You can also add the reason to the body of the commit message and change the title of the pull request.

You can also add the reason to the body of the commit message and change the title of the pull request.

OK. done!

cleaning up clutter.

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
Attention: Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Files with missing lines
Patch %
Lines

fastapi/routing.py
50.00%
1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Files with missing lines
Coverage Δ

fastapi/routing.py
99.68% <50.00%> (-0.32%)
:arrow_down:


Enhancement: On call rotation based on timezones

Enable on call rotation based on timezones

Upvote from me - being able to control escalations with some type of time based control is probably the #1 thing I see missing from the system at the moment.
I'll mention it may be worth taking a look at https://github.com/target/goalert - they have a very simple/streamlined on-call system that allows you to create schedules and rotations, which works perfectly for use cases like where you have a US team and a Brazil team and you want to switch between them every day.
Create a set of rotations

Assign users to a rotation

Create a schedule

....etc...
I could even give you an account in my demo copy of it that I'm running for fun if you wanted to check it out.

This is done and will be launched today!


Still works?

I tried to use the extension for the first time, downloading from Google Extensions, I couldn't use the extension!

Hi @SamueldaCostaAraujoNunes , yes the extension still works!
The issue you encountered usually happens when you are already in a Google Meet meeting when you installed the extension. Did you try refreshing the Google Meet page after you installed the extension?

Já sim, no dia não. Mas no dia seguinte, o PIP funcionou!


[RTM] add reproducibility of metrics tracking

This a first stab at checking reliability of measures. Closes #452.

Testing if it truly breaks if measures change.
It also would be useful to provide information on which modality and which measure changed specifically instead of saying that something changed.

Yes - for future improvements we can follow this http://stackoverflow.com/questions/17095101/outputting-difference-in-two-pandas-dataframes-side-by-side-highlighting-the-d

Seems like an easy addition - I would recommend doing it. It will save us
time in the future.
On Tue, Apr 25, 2017 at 4:04 PM, Oscar Esteban<EMAIL_ADDRESS>wrote:

Yes - for future improvements we can follow this http://stackoverflow.com/
questions/17095101/outputting-difference-in-two-pandas-
dataframes-side-by-side-highlighting-the-d
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/poldracklab/mriqc/pull/466#issuecomment-297190308,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAOkp07k2UWR7rfWE28Wx68QPXgZLMJ7ks5rznvugaJpZM4NG4Bo
.

Ok 👍


v1.13 backports 2023-04-20

[x] #24835 -- egressgw: drop traffic if no gateway is found (@MrFreezeex)

Once this PR is merged, you can update the PR labels via:
$ for pr in 24835; do contrib/backporting/set-labels.py $pr done 1.13; done

Hi @jibi, I made the backport for the egressgw change. Hopefully it's correct :see_no_evil: :D.

/test-backport-1.13

/mlh new-flake Cilium-PR-K8s-1.20-kernel-4.19

/test-1.20-4.19

/test-1.20-4.19


Masternode ownership in DashCentral, Discord #mno channel, etc. must be verified regularly.

This issue has come up here that not all users labeled as MNO in various Dash governance and communication channels are necessarily MNO right now. The major issue is that it opens the door to back actors that would attempt to harm the Dash community and its culture.

I sent an email to<EMAIL_ADDRESS>Also asked about it on the Discord channel here.


Fix module exports from Webpack / Browserify

In Webpack / Browserify, require('isomorphic-fetch')
returned an empty object because the whatwg-fetch
polyfill only installs fetch() on the global object.
Also correct URLs in package.json
Fixes #16

+1

is there any plan on merge this simple change?

if i merged this change the library would no longer be isomorphic…
happy to accept another PR to fix the URLs in package.json but please keep version as 0.0.0 (i believe it doesn't make sense to store the version number of libs in code in git because that's what tags are for).

just one small request to update but otherwise this is good to go

just one small request to update but otherwise this is good to go

Done. Apologies if I missed something that should be obvious but what is the mechanism that sets the npm package version from the Git tag?

@robertknight not so obvious really — little thing i wrote puts the version number in package.json just before running npm publish https://github.com/matthew-andrews/npm-prepublish
just means i can have the same workflow for bower components and npm modules.  (create release on github -> it appears in the npm registry; ie. no command line)


About Pytorch implementation

Thank you very much for your great work! Is it possible to provide a Pytorch version please(or just the model itself)? Also, I have reimplemented the model myself using Pytorch, but it doesn't work well. Could you help me privately to see what is wrong?

Hi, Thanks for your interest. I am not Pytorch expert. Sorry.

Whatever, it's cool to not use Pytorch today

Thank you very much for your great work! Is it possible to provide a Pytorch version please(or just the model itself)? Also, I have reimplemented the model myself using Pytorch, but it doesn't work well. Could you help me privately to see what is wrong?

@hyqyoung  Hi, have you re-implemented the result  in the paper with Pytorch framework

Thank you very much for your great work! Is it possible to provide a Pytorch version please(or just the model itself)? Also, I have reimplemented the model myself using Pytorch, but it doesn't work well. Could you help me privately to see what is wrong?

@hyqyoung Hi, have you re-implemented the result in the paper with Pytorch framework

Not yet


[docs] Use custom webpack loader for markdown

Problem: Previous usage of require-context with inline loaders is no longer supported in webpack 5 (https://github.com/webpack/webpack/issues/12900)
Solution: Replace with a single import + custom loader that fakes require.context
Preview: https://deploy-preview-26774--material-ui.netlify.app/components/tables/
Ignore 1a6775ee01396bc3e988faeb164963b9d07dfefb since this is just the change from using npx @codemod/cli docs/pages --remote-plugin https://astexplorer.net/#/gist/5a4cf1d9e15657695ae270f5c7819b2c/2e489edc6b0014506602f34c069d6428b448e1e5 (https://astexplorer.net/#/gist/5a4cf1d9e15657695ae270f5c7819b2c/2e489edc6b0014506602f34c069d6428b448e1e5)
Additional benefits:

parsing markdown at compile time
less boilerplate in the docs pages (at the cost of magically creating variables via loader)
Enables Import markdown components on demand (e.g ComponentLinkHeader is always imported in MarkdownDocs even though it might now be used. The code is not tree-shakeable at the moment)
hot reloading of markdown (getInitialProps did not automatically update the page when markdown changed)

Isn't this tying us more to webpack?
Just as much as we were tied before since require.context is webpack specific.
TODO:

[x] convert to async loader
[x] apply to all require.context('!raw-loader!') usages
[x] render markdown directly in the loader

Follow-Up:

[ ] Remove requireRaw mock (needs work in prepareMarkdown)
[ ] Import markdown components (like ComponentLinkHeader) on demand

As a side note, we broke HMR support for the markdown of the page a while ago. I don't think that this change will help or harm this aspect, I'm only raising it as it's may be relevant.
Is reading the markdown on its editor good enough? IMHO, no, not even close. HMR of the markdown allows to work on the actual content developers will see when consuming the content. Losing sight of this is the best way to write markdown that looks OK on its editor but KO once rendered (e.g. title too long to fit, wrong code indentation, overwhelming code sections, etc.). I personally frequently reload the page, to make sure it's OK, as I work on the content.

Yep that's a problem. But it improves user experience by a lot which is more important. For live reloading of markdown you could always use the preview in your code editor (vscode has this built-int).

Makes more sense to move rendering markdown to the loader in this PR as well. Some pages don't follow the pages/somePage <-> src/pages/somePage mapping. The follow-up would be just as big and these concerns are tightly coupled anyway.

I don't think that this change will help or harm this aspect, I'm only raising it as it's may be relevant in the future.

Pushed "render markdown at bundle time" to make it clearer that hot reloading is going to be improved. Changes to parseMarkdown will not trigger hot-reloading but changing the markdown content will.

Has been open for a while. Will merge after the updating the branch and then we'll see if we discover any problems.

The changes seem to have broken the docs in development on Windows: https://github.com/mui-org/material-ui/issues/21053#issuecomment-869141032.


Error while importing CSV file

Created test data in PG. Exported data to File from psql
File contents:
date,boolean,uuid,bigint,timestamp without time zone,character varying,character varying[],point,integer,double precision,numeric,json,smallint
2011-11-11,f,c91cd37b-f4c1-4dd4-83b1-a2c9db7ce411,138383838388389,2011-11-11 11:11:33.23,"as;djfa;skldf asdf as;dkfjasdf, asd,f asdf ","{one,two,three}","(12.34,56.78)",12,2342.234393993,12345.67,"{""a"":1}",3

Try to import the file into YDB :
ydb -e grpcs://ydb-pg-5.ru-central1.internal:2135 -d /Root/database --ca-file ~/ydb-ansible-examples/TLS/CA/certs/ca.crt import file csv -p text pg_import.csv

But got an error:
Header contains less fields than data. Header: "", data: "date,boolean,uuid,bigint,timestamp without time zone,character varying,character varying[],point,integer,double precision,numeric,json,smallint"

Other utilities import the CSV-file with no problems.

I forgot —header Command Line parameter


response.rawHeaders is defined but headers dictionary is empty

Hi,
Writing a condition to check if a response contained JSON I came across this problem.
After an HTTP call (using any HTTP method), response.rawHeaders contains data, including Content-Type but response.headers['Content-Type'] is undefined. In fact the whole dictionary response.headers contains no key at all.
A workaround for me was to use /Content-Type,application\/json/.test(res.rawHeaders) but that's not very clean...
Also, looking for a fix I noticed although https://github.com/hubotio/hubot/pull/1332 is closed, the documentation still uses the old getHeader() method.

Key-value pairs of header names and values. Header names are lower-cased.


Add original_ or primary_ knowledge_source to everyone  edge.

Every edge should have either original_knowledge_source or primary_knowledge_source.  See discussion: https://github.com/ranking-agent/aragorn/issues/86.

Another element for graph validation #40


Corrected lorem.image

change supplier for image placeholder to dummyimage.com since placeholder.it doesn't exist any longer.
related to issue #2540

Is this targetting the wrong branch?

@jbpfran could you please start this branch from https://github.com/middleman/middleman/tree/4.x? 🙏🏼
In #2575 we have the change for master branch (targets v5), but would be nice to have the fix also in v4 branch.
Thanks!

I opened the PR on both branches.

I opened the PR on both branches.

Yes! and this one targets 4.x branch, but you probably started from master and you should start from 4.x.
This branch is un-mergeable in its actual state (250 commits, over 400 touched files, ...):


[Bug]: Warning message ksp-1.7.21-1.0.8 is too new for kotlin-1.7.20

Is there an existing issue for this?

[X] I have searched the existing issues

Is there a StackOverflow question about this issue?

[X] I have searched StackOverflow

What happened?
ksp-1.7.21-1.0.8 is too new for kotlin-1.7.20. Please upgrade kotlin-gradle-plugin to 1.7.21.

Example in GitHub Actions: https://github.com/android/nowinandroid/actions/runs/3473866639/jobs/5806381926#step:9:23
Relevant logcat output
No response
Code of Conduct

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

Thanks Simon, let's wait for the next stable compose version and bump Kotlin to 1.7.21 afterwards


refactor: restructure appconfig constants

#176  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @pevisscher and the rest of your teammates on  Graphite


feat(mutator): Object literal mutator

As suggested by @kmdrGroch in #1078, a mutator which removes all properties from an object literal during initialization.
Working TS + JS implementation, please let me know any additional cases/requirements you'd like me to test.

@tommilligan is it removing all props at the same time or removes one by one?

And covers objects like shown in https://github.com/stryker-mutator/stryker/issues/1057

All props simultaneously. I would expect other mutators to mutate the values if necessary (e.g. if a property is a string, for StringMutator to pick it up).

Thank @tommilligan 👍


Repo sync for protected CLA branch

The pull request is created from master637414070143333559 to master to fix git push error for protected CLA branch

@ghogen : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Upcoming Changes to Finbuckle.MultiTenant Releases

Hello! I have a few things to share about Finbuckle.MultiTenant going forward.
First, thank you to my handful of sponsors and contributors! Your support makes all the difference, and I truly appreciate it. Sponsorship options are $5/month or pick-your-own-number-one-time-lump.
Since .NET 5 was released in 2020 I have been unhappy with the pace of Finbuckle.MultiTenant progress. Why so slow? Many reasons, but a large contributor was the amount of  manual ceremony around publishing a quality release.
I recently took the time to automate most of the release items, and it feels like a whole new ballgame! Suddenly the project is fun again!
Going forward, releases will be much more frequent. I am a believer of taking the emotion out of version numbers so I'm adhering to continuous semantic releases. Get ready for some uncomfortable and awkward version numbers. 6.42.8. 12.3.19. Whaat? Whatever gets merged in following conventional commit rules!
But there's a catch! 😉
Starting after the Finbuckle.MultiTenant release for .NET 6 support:

Latest Code will always be public and open source.
NuGet.org public packages will be updated twice per year (or in the event of a major issue, e.g. a critical security fix). One release after the latest .NET release, and one mid-cycle.
Monthly sponsors, PR contributors, and customers will have immediate access to all releases via a private NuGet feed. Accessing the feed will be as seamless as possible with minimal fuss. Stay tuned for more information if you are in this category!

This is designed to accomplish several goals:

Provide more frequent features and fixes.
Encourage sponsorships.
Encourage PR contributions.
Improve overall project health and sustainability.

Thanks again and please let me know what you think.

Sounds like a good plan :)

Just an update -- this is still in progress, but I'm still cutting public releases in the mean time.


[FEATURE REQ] Make sure all our Azure services' health indicator features can work with appropriate roles

Context
As per our reference doc, we provide health indicator feature for Azure services. However, detail information about how to use this feature is not enough, and also we are not explicitly telling users whether or not specific permission is needed to enable this feature.  For example, in this issue about the storage account blob health indicator using, we figure out that it also need extra permission except for the one to do blob data actions.
Goal
Check each Azure service we provide, and verify each Azure service we provide in the Spring Cloud Azure that the permission is enough or not. Keep the health-endpoint uses the minimum permission same as the data operation.
Solution
Verify and output a result table showing the roles needed for core operation and health indicator.

Output report and progress

Azure service
Role for core
Role for health indicator
Need refactor

Cosmos DB
Cosmos DB Built-in Data Contributor
as data plane
update code and doc

Event Hubs
Storage Account Contributor,  Storage Blob Data Owner,  Azure Event Hubs Data Owner
as data plane
x

Key Vault Certificate
certificate permissions: get, set, delete
as data plane
x

Key Vault Secret
secret_permissions:get,set,delete,list,purge
as data plane
x

Storage Blob
Storage Queue Data Contributor
Storage Account Contributor
fixing code

Storage File Share
Not Supported
Not Supported
x

Storage Queue
Storage Queue Data Contributor
Storage Account Contributor
update doc

To address the doc update issue, track this: https://github.com/microsoft/spring-cloud-azure/issues/939

close for investigation done and pr which resolves this issue merged.


4.0.0-beta.2 => 4.0.0-beta.3 - outline buttons active state incorrect

I can't seem to find any documentation as to why the active state color was changed for buttons such as .btn-outline-secondary.  The contrast on active state is horrible and this seems recently changed between beta version 2 and 3.
https://getbootstrap.com/docs/4.0/components/buttons/#outline-buttons (press in / trigger active state on the buttons)
the desired result should be what was in beta version 2 where the text color is white on active state/press.
the only change seems to be https://github.com/twbs/bootstrap/blob/v4.0.0-beta.2/scss/mixins/_buttons.scss#L80 and https://github.com/twbs/bootstrap/blob/v4.0.0-beta.3/scss/mixins/_buttons.scss#L82
I think there's a typo, shouldn't color: color-yiq($color-hover) actually be color: color-yiq($active-background)?

looks like it needs fixed in two places, thanks @omgimalexis
https://github.com/twbs/bootstrap/commit/7c10068c76751ee0ae8aab8cf0b7bdfdf40912ae


added grib idx extract methods and test cases

Sorry it has taken me so long to start looking at this.
Can you please provide a description for this PR, what the two main functions here are for, how they are expected to be used?

The extract_datatree_chunk_index function travel through each of the node in the datatree and extracts the grib metadata and returns it in the form of a Dataframe.
dt_instance = datatree.open_datatree(...)
extract_datatree_chunk_index(dt_instance, kerchunk_store)

Yes, but why, what are you supposed to do with this new code?

No description provided.

The dataframe from this function and the dataframe from the parse_grib_idx function are used in the mapping.

Please fill out the description of this PR at the top, saying why this new code should be included.

This mapping provides a aggregrate view of the dataset.

Please demonstrate how the code is supposed to be used.


Roll Flutter Engine from b9ba67920018 to 9a7c056f3710 (2 revisions)

https://github.com/flutter/engine/compare/b9ba67920018...9a7c056f3710
2022-08-25<EMAIL_ADDRESS>[Impeller] Don't store textures that aren't read (most of the time) (flutter/engine#35690)
2022-08-25<EMAIL_ADDRESS>Roll Skia from dee2a6ebfcdf to a040c0e11fd9 (3 revisions) (flutter/engine#35708)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


Build app for Android

Please, build the first release for Android system (64-bit only):

ldm-0.x.y-linux.apk as a stand-alone installable version, ready to be shipped to Google Play store.

Once done, please start releasing this file type along with others in our Releases section. Thank you!

Done and tested in #20

Need to be moved to persistent tasks


Add FactoryExpression wrapper for constant handling

Fixes #1687

It seems we have to instruct Travis to run our builds differently.

I think this looks good.

Looks good to me.


Spring REST API + Swagger2 not working

Hello,
I'm trying to add the swagger2 to an existing Spring REST api with Java config, using Gradle and the created war file is running on tomcat 7. The Spring version is: 4.2.5.RELEASE

added the following to the gradle:

compile 'io.springfox:springfox-swagger2:2.6.1'
compile 'io.springfox:springfox-swagger-ui:2.6.1'

SwaggerConfiguration:

@Configuration
@EnableSwagger2
public class SwaggerConfiguration {

	@Bean
	public Docket distributionAppApi() {
		return new Docket(DocumentationType.SWAGGER_2)
				.select()
				.apis(RequestHandlerSelectors.any())
				.paths(PathSelectors.any())
				.build()
				.apiInfo(apiInfo());
	}

}

Added the following to the existing WebConfig's addResourceHandlers():

registry.addResourceHandler("/resources/**").addResourceLocations("/resources/");
registry.addResourceHandler("swagger-ui.html").addResourceLocations("classpath:/META-INF/resources/");

Also I have an ApplicationConfig where the apache server, services and resources are configured. When I tried to import the SwaggerConfiguration into the ApplicationConfig then none of the controller endpoints are working.
I have tried many tutorials but I'm missing something because every time the /v2/api-docs and /swagger-ui.html are not working. For the swagger-resources/configuration/ui the error message is: Failed to load resource: the server responded with a status of 404.

Please try using 2.9.0

@dilipkrish Thanks for your reply. I have changed the version to 2.9.0 but still not working. For the /swagger-ui.html I'm getting the following:

Unable to infer base url. This is common when using dynamic servlet registration or when the API is behind an API Gateway. The base url is the root of where all the swagger resources are served. For e.g. if the api is available at http://example.org/api/v2/api-docs then the base url is http://example.org/api/..

Is there a repository you could share perhaps?

@dilipkrish
Sorry for the late response, but I had other things to do and had no time for swagger. Today I've tried again and the localhost:8080/myapi/v2/api-docs is working fine, I had to make some changes and also now using the 2.9.0 version. Wanted to try the localhost:8080/myapi/swagger-ui.html, but still getting the 'Unable to infer base url..'.
The localhost:8080/myapi/swagger-resources/configuration/ui is working and the localhost:8080/myapi/swagger-resources/configuration/security is returning empty . I saw others had the same problem and they solved by adding the white list to the HttpSecurity but in my project there is no security is implemented.

Sounds like your UI isnt getting activated. Either you have an @EnableWebMvc annotation somewhere or you have a class that implements WebMvcConfigurationSupport?

@dilipkrish There is a Config class which is annotated with @EnableWebMvc and the class also extends the WebMvcConfigurerAdapter. I have added this 2 line to the addResourceHandlers method:
registry.addResourceHandler("swagger-ui.html").addResourceLocations("classpath:/META-INF/resources/");
registry.addResourceHandler("/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/");

@dilipkrish Right after I sent my comment I found the problem :D. I had to add the slash before the "swagger-ui.html". Now looks like this and it works: registry.addResourceHandler("/swagger-ui.html").addResourceLocations("classpath:/META-INF/resources/");
Thanks for your help!

@CApitanE thanks for reporting the solution back!

Thx, it works for me with the following addResourceHandlers method :
@Override
    protected void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/swagger-ui.html").addResourceLocations("classpath:/META-INF/resources/");
        registry.addResourceHandler("/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/");
    }

But FYI , if I annotate  my implementation of WebMvcConfigurationSupport with @EnableWebMvc , I do not have access to the swagger-ui anymore.


ValueError: Calling Model.fit in graph mode is not supported when the Model instance was constructed with eager mode enabled. Please construct your Model instance in graph mode or call Model.fit with eager mode enabled.

I am getting this error and tried migrating it to eager mode and graph mode but nothing seems to work. can you please help me resolve this?

Hi,
Are you using the following version of tensorflow?
tensorflow-gpu==1.15.0 # GPU version of TensorFlow >= 1.11.0. (should be
under 2.0.0)
On Mon, May 3, 2021 at 1:46 PM somiyaaa @.***> wrote:

I am getting this error and tried migrating it to eager mode and graph
mode but nothing seems to work. can you please help me resolve this?
[image: image]
https://user-images.githubusercontent.com/69514575/116912121-6b7d9a00-ac65-11eb-868f-2a9dfa62067b.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/brentbiseda/w266_project/issues/4, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AH33JG3DXQYXCG5BDKRDCTTTL3OOJANCNFSM44BHA63Q
.


pass image label to snapshot

When a image unpacks, invoker could set labels to images, and pass labels to snapshot which is prepared for image. In snapshotter method such as Prepare  and Commit, we can differ image and container snapshot by labels.

Is this related to pouchd's pull request https://github.com/alibaba/pouch/pull/2525 ? @wangforthinker

@fuweid

 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.


Configuration to disable tracerresolver.

The TracerResolver can be disabled globally by adding either

a System property called tracerresolver.disabled, or
an environment property called TRACERRESOLVER_DISABLED
with the value 'true' or 1.

This PR fixes #24.

@pavolloffay Could you review to verify this meets your requirements from #24?

Closing this as there has been no further comments for 10 days.


Managing X/Y position in draggable nodes through DragBoundFunc and react state

Is there a good way to go about this? It seems that x/y position is managed primarily in the internal Konva code. I'd kind of like to move towards managing the X/Y positions through react state however. Are there any issues that may arise from this?
I was planning to call setState in my custom dragBoundFunc, replacing the return statement. At _setDragPosition it looks like the internal code could be modified to just call the dragBoundFunc and ignore the return values.  Would this cause any other issues? I will continue my own testing but would be interested in some other opinions.

@RussGlover please give more info about your use case? What do you want to achieve?

I figured out what was going wrong. All good!


Please merge 12c1b4336589eb31fe919b78c5b3999ab1eb3bae into stable channel

commit(s) to merge: 12c1b4336589eb31fe919b78c5b3999ab1eb3bae
merge instructions: patch CL: https://dart-review.googlesource.com/c/sdk/+/118660
reason: Prevents type inference failures in the analyzer.  See https://github.com/dart-lang/sdk/issues/38365.
/cc @dgrove @kevmoo @mit-mit @whesse @athomas

Note: I examined the trybot failures and I believe it is safe to land this.

Thanks Paul! Alex, lets do it.

Yes, this release will go out today or tomorrow.

Released with 2.5.1.


use withDatasourceCheck in FeaturedEvent and Section

Fixes #182

@gkLeo Build fails - please try to run it locally with 'npm run build'

@adoprog issue is resolved.

I've noticed that Section no longer renders in Storybook after the changes. Please compare Vercel preview to the main Storybook.

@adoprog  It works now


Do not fail the build when integration tests fail in repetition mode

This is a follow-up to #1912.
I believe that build failure is not particularly informative when it happens every single time. I would prefer having a way to distinguish at first glance between a build that finished normally (with the inevitable test failures) and a build that was aborted (e.g. due to an OOM error).
Test plan
Verified on a personal fork

The memory issues for the integration tests have been resolved by #1922. Although there is still some flakiness and I expect at least one test failure on every run of the workflow, the crashes should be very rare now, so this PR is probably not needed.


In-built method to access image_compare and upload_bvas without bookmarks

I do not know of a way to access the image_compare or upload_bvas pages without referring to the original forum thread or bookmarking the pages in question. If I'm not just missing it completely, I would like an easy method to pull up the aforementioned pages that does not require additional bookmarks.

Implemented in 5dd2e20f5f8de359f68307fdca962c248b88d94a.
The link that will contain all future extensions will be https://e621.net/extensions


Add env to Tesla.Error

Add env field to Tesla.Error and populate it whenever possible.
See the discussion in https://github.com/teamon/tesla/issues/142

Closing in favour of #163


Change the red palette to magenta and add a generic red palette

Current Behavior
The red palette is actually a range of hues in the red-purplish angling towards more pinkish and purplish.
Need a new red palette that specific to the red color. Can use #F91313, which is being used for the notification error as the starter color.
Expected Behavior

Screenshots/Logs

Environment

Host OS: Mac Linux Windows
Platform: Docker or Kubernetes
Meshery Server Version: stable-v
Meshery Client Version: stable-v

Contributor Guides and Resources

🛠 Meshery Build & Release Strategy
📚 Instructions for contributing to documentation

Meshery documentation site and source

🎨 Wireframes and designs for Sistent site in Figma (open invite)
🙋🏾🙋🏼 Questions: Layer5 Discussion Forum and Layer5 Community Slack

Hi @nebula-aac
This seems similar to issue #603 ,
Could you please confirm ?
Thanks


requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.github.com/user/repos?per_page=100&type=all&page=1

requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.github.com/user/repos?per_page=100&type=all&page=1

it happens when trying to backup all repos with a python script ..

You now need to include --token=??
First, go to https://github.com/settings/tokens and generate a new token
Next, run the command with --token=TOKEN_YOU_GENERATED


refactor + overscroll, fastswipe, maxdistance, elastic, event binding

In addition to the details in
https://github.com/jemise111/react-native-swipe-list-view/pull/41
Added new props / features on top of those:

onOverscrollRight
onOverscrollLeft

And enhanced some other features

Removed some of the inline functions. see why
Use class + arrow properties to maintain self reference
Pass rowId and sectionId into SwipeRow so it has a reference to itself
Wrap onEvent functions so they all return the section and rowId

Should probably create equivalent functionality in the React.cloneElement custom element, seems pretty crippled right now
This PR is only what I'm delivering, I just thought other users might find this handy. Not tested very thoroughly. I'll probably fork a new project at some point if this starts deviating too far from the core. Let me know how to reproduce any bugs and I'll take a look.
@jemise111 : you might want to consider an .eslint for this project, it would help with contributions and code quality (it helps me!). Use airbnb's eslint if you don't know where to start.

This is how I'm using most of these new features:
      <SwipeListView
        closeOnRowPress={true}
        dataSource={dataSource.cloneWithRows(this.props.items)}
        elasticOverscroll={true}
        enableEmptySections={true}
        leftOpenValue={leftSize}
        maxLeftSwipeDistance={leftSize}
        maxRightSwipeDistance={-rightSize}
        onFastSwipeLeft={this.likeRow}
        onFastSwipeRight={this.dislikeRow}
        onOverscrollLeft={this.likeRow}
        onOverscrollRight={this.dislikeRow}
        renderHiddenRow={this.renderRowButtons}
        renderRow={this.renderRowContent}
        rightOpenValue={-rightSize}
      />

likeRow and dislikeRow both get rowId, so it's easy to fire an action from that.

This looks great so far. Congrats @braco
@jemise111 anyway to get this on the new release?

@braco This looks great, thanks for all the work on this! I should have some time tomorrow to go through it and test it out, then should be able to merge and release a new version.
I see there are conflicts though. Would you find fixing those when you get a chance.

maxdistance is very useful, @jemise111 can you please merge this?

@braco Sorry for the delay, just been very busy lately. There are conflicts so this can't be merged in its current state. Can you take care of those please?
Also can you shoot me an email when you have a sec: jesse.sessler (at) gmail (dot) com. Since this is a big rewrite of the library I want to talk to about being a maintainer. Thanks!

Are there any updates on the merge conflicts? The over swipe feature would be highly needed. I could contribute on that if nothing happens with this PR.

@braco Was going through your pull request and your:
        maxLeftSwipeDistance={leftSize}         maxRightSwipeDistance={rightSize}
is duplicating
stopLeftSwipe={leftSize}     stopRightSwipe={rightSize}

I wanted to use this PR for our project, because we need to implement a "scroll far to delete on drag end"
However it seems that we can't know if we went back from the overscroll, from what I understood, in order to cancel the delete

@ItsNoHax: thank you, I'll take a look if I get back to this
@xavierlefevre: sounds reasonable, maybe submit a PR with onDragEnd that passes the current coordinates back to the function:
onDragEnd={(position) => if position.x > nn, do thing}

Closing as this has been inactive for a while...


lens: mark as immutable-data-specific, not Haskell specific

At the time it was added (#97), indeed Haskell was the only
implementing track, and it was marked Haskell-specific.
However, the Scala track has also implemented this exercise.
I predict it is confusing for Scala students to see "Haskell specific"
in the list of the Scala exercises. The proposal is to change it to
"specific to languages with immutable data".
Lenses can be a fit for any language that has immutable data and data
structures that can be nested.
In such a language, updating a deeply-nested field can be a lot of work,
but made easier with lenses. This exercise demonstrates the use of
lenses and is applicable to any language with immutable data, not
just Haskell.
The alternative considered was to use "functional programming" specific,
but the term "functional programming" is a little too broad. It's
altogether possible that a functional programming language could have
mutable data and a non-functional programming language could have
immutable data, so let's be precise about where lenses are helpful.
As of this writing, I do not believe any other exercise is
language-specific. Questions to this effect have been asked in:

#352
https://github.com/exercism/exercism.io/issues/3113

If you are curious about having language-specific exercises, you may be
interested in https://github.com/exercism/trackler/issues/22.

We could be more specific and say "(Immutable data language specific)", but I'm not sure that makes as much sense.

Or, be more verbose? "(Specific to languages with immutable data)"

@petertseng I quite like the more specific "Specific to languages with immutable data" option. There's nothing stopping a non-functional language from having immutable data structures, in which case a lenses library would also make sense.

Indeed, I have decided to use "Specific to languages with immutable data". As I have updated the commit message to say (and will update the PR description), functional programming is quite a broad term, whereas if the message is more specific it's easier for track maintainers to decide whether the exercise makes sense for a given track.

One last thing. Wouldn't it make sense to change the description from "(Specific to languages with immutable data) use lenses to update nested records." to "Use lenses to update nested records (specific to languages with immutable data)." That would first focus on what the exercise is about, and then add the restriction. Makes more sense I think.

I could honestly go either way on that, but I'll lean slightly in favour of your proposal since it seems more consistent with other descriptions.

LGTM! :tada:


Disable BSP in the Jmh config

Importing a Jmh build target in IntelliJ or Metals triggers the Jmh source generation which triggers the compilation.
This is not user friendly because:

it takes time to import the project
it can compile in error and then it makes the entire import fail (we need more granularity in BSP to handle individual failures)

Importing the Jmh build target is often not useful because it shares its sources with the Compile or Test build target.
Related discussions:

https://github.com/scalameta/metals/pull/2895
https://github.com/sbt/sbt/issues/6546
https://github.com/lampepfl/dotty/pull/11687
https://github.com/scala/scala/pull/9673

Fixes #193


commit 54def43854675971ffc402ef91f24280f6bf4879 breaks with golang 1.6

../collectd.org/api/main.go:5:2: cannot find package "context" in any of:
/root/go/src/vendor/context (vendor tree)
/usr/lib/go/src/context (from $GOROOT)
/root/go/src/context (from $GOPATH)
Maybe problem similar to this one
https://groups.google.com/forum/#!topic/golang-nuts/kpmMRtqvCiQ

Hi @nuclearcat,
that is correct and expected. Unfortunately, I'm not aware of a technique that would allow us to use x/net/context when compiling with Go 1.6 and context when compiling with 1.7. Do you have a suggestion?
Best regards,
—octo

Won't fix: working as intended.
Everything up to (and including) the v0.2.0 tag is compatible with Go 1.6.


CORS errors for some status pages

https://status.slack.com/ will fail with a CORS error, many others status pages have the same problem. This is a known issue since browser will block any server call that is not initiated from the same domain when the server does not allow CORS. I've encountered this issue many times, there is no easy way around it!
I can think only about 2 options:
1- See if RSS Feed helps
2- Create and use a proxy server

Hi, having the same problem while trying to implement AWS service into the Status Page.

I think having a generic RSS Feed parser would help with a lot of these sites.

Targets
Slack
Website
Atom Feed
RSS Feed
Zendesk (Issue #38 )
Website
Incidents JSON Feed - utilizes parameters as_of_date=2020-03-23 and days_back=90
Gitlab (Issue #34)
Website
RSS Feed - Has a hash in the url - will need to keep in mind this could change... could also just be where/how they're hosting it.

Closing. Tracking the broader issue in #45.


Implement new Process API

This is a draft for the new Process class.
declare class Process
  implements
    Promise<ProcessOutput>,
    AsyncIterableIterator<string>,
    Deno.Reader,
    Deno.Writer {
  [Symbol.toStringTag]: string;
  [Symbol.asyncIterator](): AsyncIterator<string>;
  readonly rid: number;
  readonly pid: number;
  readonly stdin: Deno.Writer;
  readonly stdout: Deno.Reader & Promise<string> & { copy(dest: Deno.Writer | Process): Process };
  readonly stderr: Deno.Reader & Promise<string> & { copy(dest: Deno.Writer | Process): Process };
  readonly status: Promise<Deno.ProcessStatus>;
  readonly statusCode: Promise<number>;
  readonly noThrow: this;
  kill(signo: number): void;
  read(p: Uint8Array): Promise<number | null>;
  write(p: Uint8Array): Promise<number>;
  copy(p: Uint8Array): Promise<number>;
  then<T = ProcessOutput, S = never>(
    resolve?:
      | ((processOutput: ProcessOutput) => T | PromiseLike<T>)
      | undefined
      | null,
    reject?:
      | ((error: unknown) => S | PromiseLike<S>)
      | undefined
      | null,
  ): Promise<T | S>;
  catch<T = never>(
    reject?:
      | ((error: unknown) => T | PromiseLike<T>)
      | undefined
      | null,
  ): Promise<ProcessOutput | T>;
  finally(onFinally?: (() => void) | null): Promise<ProcessOutput>;
}

I think the only missing thing compared to zx, is pipe function which could be a very nice addition.

New api is implemented in #39


Call the fileWithMeta.restart from outside the Dropzone

I want to be able to upload files and have them in the Ready state - as part of a form
Once the form is ready - then a Submit button can action all the uploads at once
Possible?

Try it
files.map(f => f.restart());

What he means is submitting a form outside of Dropzone. The method can be to save files using useReducer or useState and execute Dropzone onSubmit when the entire form is submitted.
Also you might be use
 `autoUpload={false}`

and
if (status === 'ready') {
  meta.status = 'headers_received';
}

to make this event.

I have the same question, did you ever find a way to do this @iwarner ?

@hochan222  can you provide a full example?

Could somebody solve the mentioned problem?


Data element circular reference detected

Expected Behaviour
We should be able to reference a data element inside another data element
Actual Behaviour
Error
{
    "name": "evaluatingRule",
    "timestampMs":<PHONE_NUMBER>741,
    "attributes": {
        "logLevel": "error"
    },
    "messages": [
        "🚀",
        "Failed to execute \"Make Fetch Call\". Data element circular reference detected: platform -> eventType -> lifecycleShortCode -> eventType \n Error: Failed to execute \"Make Fetch Call\". Data element circular reference detected: platform -> eventType -> lifecycleShortCode -> eventType\n    at worker.js:1:6395\n    at worker.js:1:6063\n    at Array.map (<anonymous>)\n    at worker.js:1:5979\n    at getSettings (worker.js:1:10866)\n    at worker.js:1:6602\n    at worker.js:1:6063\n    at Array.map (<anonymous>)\n    at worker.js:1:5979\n    at getSettings (worker.js:1:13752)"
    ],
    "logLevel": "log",
    "context": {
        "ruleId": "RL8ff0fa7212044c8292174187be01e09f"
    }
},

Sample Code that illustrates the problem
There seems to be a bug in Adobe Event Forwarding:

Data Elements are as follow:

platform

eventType

lifecycleShortCode

@alcazes Can you provide a URL of the rule where you see this error. Or provide a screenshot of the Make Fetch call action config? Thanks!

@dompuiu the URL is https://experience.adobe.com/#/@rbs/sname:prod/data-collection/eventForwarding/companies/COe5253eb028b44a8dbe0d4830477b7be6/properties/PR3f4c299f27f541dfbcd290cd3b62a916/rules/RL4c17b6ad344544e292dc5ac035f1c21f/ruleComponent/RCf5fc04e3ad5f4f63b27c6d44693ff1cb
The part of the rule which creates the issue is this one:

I also opened an issues on https://github.com/adobe/reactor-extension-core-edge/issues/7 for the same behaviour.
I dig a bit dipper and I believe the issue is no even with your extensions but the turbine source code:
https://github.com/adobe/reactor-turbine-edge/blob/2117c319c32ed3315e004dc027da348eba18a5b3/src/createGetDataElementValue.js#L38
if (dataElementCallStack.includes(dataElementName)) {
    dataElementCallStack.push(dataElementName);

    return Promise.reject(
        new Error(
            `Data element circular reference detected: ${dataElementCallStack.join(
            ' -> '
          )}`
        )
    );
}

Based on this code you cannot create a data element to be reused in other data elements like in my case:

eventType is initially used in the Fetch to return a value
lifecycleShortCode is then used in payload of the Fetch request to return the application lifecycle and the logic of this data element relies on eventType to return correct value.
Based on code snipset above the following eventName will be pushed in call stack eventType ==> lifecycleShortCode ==> eventType. When last eventType is pushed the circular reference error will be triggered.

Based on all that it seems that for now you cannot use a data element in other data elements as you would do with Adobe Launch.
I also create an Adobe support ticket for same E-001072880
Should I open an issue against reactor-turbine or your team will follow up ?

Yes, the issue is in reactor-turbine-edge. Thanks for logging this issue. We'll take it from here.

This issue is fixed in this release: https://github.com/adobe/reactor-turbine-edge/releases/tag/v2.3.3.

This fix was deployed today in production.


Add rustfmt and clippy to Rust dev container

Add rustfmt and https://github.com/rust-lang/rust-clippy to the dev container would be great (and maybe the latter set up for tasks.json?).
Adding rustfmt also makes having editor.formatOnSave very useful to have, but I don't know if flipping those kinds of settings on in devcontainer.json by default is desired.

Resolved by #114 by you! Thanks!!!


AZ-204_lab_02.md

English:
Create a new public static class named Echo:
Current Translation:
建立名為 Echo 的新 公用靜態 類別：
Suggested Translation:
建立名為 Echo 的新 public static 類別：
Description:
public static should keep English according to the context. Global check

Hello contributor,
Thank you for your contribution! We are processing your suggestions and we will update you shortly.
Kind regards,
Microsoft Worldwide Learning Team

Run bugfix tool and waiting for result ICMS QUERY

Run bugfix tool and waiting for result ICMS QUERY


Getting all corporations ids users.

Hi Everyone,
I have a problem in user data
Execute in botbuilder nodejs :
`
async messageAllMembersAsync(context) {
const members = await TeamsInfo.getMembers(context);
// Print members in console
console.log(members, "Members");
return true;
}
`
Output :
[      {         id:'29:XXX',        name: 'wwwww',        objectId: 'www',        givenName: 'wwww',        surname: 'ww',        email: 'ww',        userPrincipalName: 'ww',        tenantId: 'wwww',        userRole: 'www',        aadObjectId: 'wwwwww'      }  ] 'Members'
I need all ids my corporation, where can extract this datas (all ID 29:XXX), its possible?

Are you trying to get all the id's of the user? If is could you please check list user API? Try if that helps.

Yes, I need this ID the start is 29:xxxxxxx, it is specific when I run this code, I looked inside the AD but I don't find similar to this pattern. When I am in a group within teams and I execute this with the bot it returns from all members of that group. This ID is specific to the bot or has a base with that ID (29: sha256)

@Nikitha-MSFT you can help me?

@wsbdeveloper : if you are looking for sending message to all members, You can look at following teams conversation Bot sample code?

@Trinetra-MSFT Hello,
Yes, I actually need to run a script that brings all ids in this 29: xxx (sha256) format. This id appears in this code snippet that I mentioned above
const members = await TeamsInfo.getMembers (context);
I was wondering if it is generated by the botbuilder within the context, or has a database with these IDs (29:sha256) of my company.

@wsbdeveloper , These id belongs to users where bot is installed either it can be team, group chat or personal scope, GetMembers API returns list of members You can get these id (these id or Team/Chat id for the user) from the Bot Activity once you install Bot in teams channel,but there is no data base where we maintain these specific to company

Hello @Trinetra-MSFT it already helped me thank you all.

@Trinetra-MSFT I have more one question, as it does for a Bot that has never talked to a specific group or specific user, does it identify how to send a message for the first time to a user on teams? Its is possible.


Package detail updates, File Explorer

This pull request adds support for a file explorer for each modules
Changes include:

File explorer
File highlighting
Package detail design changes: added some icons to the package info panel

Screenshots:

The "View documentation" button takes you to doc.deno.land. The site will auto-generate a documentation there


Babashka test/report-counters is a ref instead of an atom for bb >= 1.1.171

The tests are failing with bb >= 1.1.171 due to binding test/*report-counters* to an atom instead of a ref. bb 1.1.171 fixes this incompatibility with Clojure. I think a lot of .cljc files could become .clj files due to this change.

Ah just saw this also, got it!
Perhaps the way to go is a macro which checks the Babashka version (if on bb) and emits atom / ref accordingly, to maintain backwards compatibility for anyone running older Babashka versions.
I'll give this a shot later today.


Octree::octree2mesh() bug on ubuntu 18.04

Issue: abs(x) returns 0 for x in range [0, 1[ on Ubuntu 18.04 gcc. This results in a buggy octree2mesh conversion and has possible other bugs, which I didn't notice so far. As a fix you could use the fabs(x) from the already included library . I can submit a Pull Request if you want.
Best
Jeri

Thank you for pointing out this issue. Your pull request is welcomed.

I have fixed this issue just now.
This is a serious problem, which may affect the octree2mesh and adaptive_octree.


Upper bound for orientation check for bogus images

I have a image that is EXIF orientation 49.  That is obviously an invalid value, and the image itself has the correct dimensions otherwise.  It should report it as not rotated, but is reporting it as rotated.  I think https://github.com/willwashburn/fasterimage/blob/master/src/FasterImage/ExifParser.php#L74 should be changed from return (! empty($this->orientation) && $this->orientation >= 5); to return (! empty($this->orientation) && $this->orientation >= 5 && $this->orientation <= 8); to better handle all of the bogus images out there.

I did a super simple patch for it in my own branch: https://github.com/daneren2005/fasterimage.  I didn't create a PR because there are no tests and I edited the composer.json so I can use it through Packist.

Yeah, that change totally makes sense -- thanks @daneren2005!
I'm happy to write a test if you send me the image in question (if that's possible)
Also, you may already know this but just in case: you don't need to add the package to packagist / change the composer.json to use your fork in whatever project you included it in. Just add a section in your composer.json that looks like this:
"repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/daneren2005/fasterimage"
        }
    ],

From:
https://getcomposer.org/doc/05-repositories.md#loading-a-package-from-a-vcs-repository
Anyways, thanks for the help! If you want to make a PR either way I'd be happy to merge it (without the composer.json changes, of course!)

Oh dang I didn't realize that.  That method would have been easier.  And no I cannot share the image because it is a private customer's image.

I created a simple PR with just this change and no tests: https://github.com/willwashburn/fasterimage/pull/11

Nice! Thanks!


Japanese 109 keyboard keycodes 25,241,245,246,249

Keycodes:
25, 241, 245, 246, 249
25 - ALT + 半角/全角, Toggle alphanumeric/kana, 109JA Keyboard
241 - Shift + ひらがな/カタカナ, katakana, 109JA Keyboard
245, 246 - ALT + ひらがな/カタカナ, kana input type toggle (from romaji / from key), 109JA Keyboard
249 - Any non-modifier (num lock, alt, etc.) key while full width or kana is on
249 affects keys like 半角/全角, +, -, *, /,<PHONE_NUMBER>, acbdefg, etc.
My naming style might be off, please change values as appropriate

I can't tell what you added here because the whole file is changed - can you please add it without changing all the indentation?

Hi, thanks for your contribution.
Closing this PR for now, as no response was provided for the previous request. If you want to open it again, please resolve the conflicts and commit the file again. Also, please add some references for where you got these key mapping codes from like Wikipedia page link, etc.
Regards!


symbo.Group don't support return ?

  I am trying to run example/rcnn/demo.py on windows.   when run the following code:
    `group = mx.symbol.Group([rois, cls_prob, bbox_pred])
    return group`

an error occured : "node == e.source.get() Symbol.GetName only works for non-grouped symbol
"
It seems symbol.group  don't support return ? How to fix this?

this is a known bug and is already fixed. Please update

thank you .


[enhancement]: support unattended configuration with a service principal

Describe your feature request here
The ./config.sh doesn't seem to have flags to allow use of a service principal - more details in https://github.com/MicrosoftDocs/azure-devops-docs/issues/13864#issuecomment-1928675057. Thanks!

@afeld thanks for reporting this. We will check if we can add a new flag to the config.

Just had the same issue. We do have a pat based version running in docker and kubernetes. But to reduce complexity it would be great to add the missing flags.

They're not documented, but they exist and are usable.
https://github.com/microsoft/azure-pipelines-agent/blob/57947b0ed6fbe4eebd5fc8912820b8f97323c0b1/src/Microsoft.VisualStudio.Services.Agent/Constants.cs#L140-L141
https://github.com/microsoft/azure-pipelines-agent/blob/57947b0ed6fbe4eebd5fc8912820b8f97323c0b1/src/Microsoft.VisualStudio.Services.Agent/Constants.cs#L149
It also honors their respective environment variables:
VSTS_AGENT_INPUT_CLIENTSECRET
VSTS_AGENT_INPUT_CLIENTID
VSTS_AGENT_INPUT_TENANTID

using the mechanism described in https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/v2-linux-agent?view=azure-devops#unattended-config
I looked at the agent code the service principal support is not well documented.

Hey, sorry for the slow response. You were correct about those different flags, but it took a while for me to get the whole thing working. Updated the docs with what I found: https://github.com/MicrosoftDocs/azure-devops-docs/pull/14154 Thanks for the help!

Oops, I should have said explicitly: --auth SP worked! For the Docker use case, a token was needed for getting the agent package list (in start.sh), so ended up passing that in as the PAT. Misleading that it's not a "personal" token, but it works.


fix: Clean up and simplify docker entrypoint

Please describe the purpose of this pull request.
Squaring away the compose implementation to make things a little more tidy.
nginx reverse-proxy

with the reverse proxy in place you can do docker compose up -d && open http://memgpt.localhost and open the local server. localhost:8083 and localhost:8283 still work, so since it seems like ports are hardcoded differently in different places we can be flexible.
all 3 hosts are available in swagger docs so users can set as needed. eventually it would be good to standardize here
cors hosts are now settable via an envar
Moved from the un-namespaced pgdata docker volume to a locally mounted .pgdata folder. If you are a dev with multiple containerized projects on your machine this is an easy collision to avoid.
added hot reload in the compose
moved entrypoints to commands (really what they should be in this case)

pydantic_settings

moving away from directly reading os envars all over and managing in a settings singleton.
consolidated the memgpt_pg_uri envar with the component envars - so you only set one.
dry'd up the default pg_uri logic.
There is more of this to go, but this at least starts to establish the pattern and make it easier to abstract config logic for the server.

How to test
Workin' on this. contributors should be able to run the full test suite in the container. I for one put nothing on my metal, and containerized tests drop the barrier to entry.
Have you tested this PR?
Eyeballed, still working on running the test suite in containers.
Related issues or PRs
https://github.com/cpacker/MemGPT/issues/1233
Is your PR over 500 lines of code?
This is a lot of dry'ing and cleanup, so it will ideally reduce the codebase by more than 500 lines.

👀 😍

@cpacker are there sample ~/.memgpt/credentials and ~/.memgpt/config files somewhere I can use to configure the test suite? I'd like to get it working without needing an installed instance if possible

~> @cpacker are there sample ~/.memgpt/credentials and ~/.memgpt/config files somewhere I can use to configure the test suite? I'd like to get it working without needing an installed instance if possible~
nvm found it in test/data

So we've got most of the test suite passing in the container, can be run with docker compose --profile tests run --rm memgpt_tests at the moment. I am running into some snags:

there's a state leak somewhere that errors out the tests in tests/test_client.py in a full run with Embedding column must be of type Vector, got BINARY. The test module passes when run  in isolation
I'm trying to figure out how test_metadata_store.test_storage is working, on line 89 there's an undefined variable referenced

    # config is not defined in this module or imported
        llm_config=config.default_llm_config,
        embedding_config=config.default_embedding_config,

There are also a couple of tests where I'm not super clear on what they are doing - for example in test_openai_client.py the OAI base_url is set to a local address, but I'm not sure what should be catching those calls (and they were erroring out)

I can keep at it, however this PR is getting large; I could alternatively exclude the problem tests when run in docker for the moment, and then chip away with smaller PRs to keep cleaning up?
@cpacker let me know what makes the most sense

@cpacker @norton120 maybe we can merge this into a separate branch from main, so I can help push it over the finish line wrt passing tests, formatting, etc.? This would be a great PR to get merged asap.

@norton120 I left a comment on #1259 with a few questions!


Add support for Option Envs parser and use in tf plugin

Adds support to pass custom env vars to the terraform plugin. The idea is these env vars will be the cloud provider credentials that should be included when running the terraform .... execs; this can be used to parse a docker secret file that contains the specific cloud provider credentials.
For example:
"Options": {
  "Envs": [
    "USER={{ $j := include `file:///run/secrets/softlayer` | jsonDecode }}{{ $j.username }}",
    "PASS={{ $j := include `file:///run/secrets/softlayer` | jsonDecode }}{{ $j.password }}"
  ]
}

The terraform instance plugin is also updated to use this Option

This is looking OK to me with the recent changes, so happy to merge.


write a simple prediction py script

the pix2pix.py script is so complex,Do you write a simple python script for the predition function? by the way ,you could make a server for prediction.

A predict mode would be very helpful indeed!

def expand_dim4array(src_image):
image = src_image.copy()
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
image = cv2.resize(image, (int(round(a.scale_size*a.aspect_ratio)), a.scale_size))  # width, height
image = np.asarray(image, dtype=np.float32)
image = image.reshape((image.shape[0], image.shape[1], 3))
image = np.expand_dims(image, axis=0)

return image

def TestWithModelForSingleImage():
if tf.version.split('.')[0] != "1":
raise Exception("Tensorflow version 1 required")
if not os.path.exists(a.output_dir):
    os.makedirs(a.output_dir)

if a.checkpoint is None:
        raise Exception("checkpoint required for test mode")

input_paths = glob.glob(os.path.join(a.input_dir, "*.jpg"))
if len(input_paths) == 0:
    input_paths = glob.glob(os.path.join(a.input_dir, "*.png"))

def get_name(path):
    name, _ = os.path.splitext(os.path.basename(path))
    return name

# if the image names are numbers, sort by the value rather than asciibetically
# having sorted inputs means that the outputs are sorted in test mode

### input_dir
if all(get_name(path).isdigit() for path in input_paths):
    input_paths = sorted(input_paths, key=lambda path: int(get_name(path)))
else:
    input_paths = sorted(input_paths)

# inputs and targets are [batch_size, height, width, channels]
image_placeholder = tf.placeholder(tf.float32, (1, a.scale_size, int(round(a.scale_size*a.aspect_ratio)), 3), name="Images")

input_tensor = preprocess(image_placeholder)

outputs = create_model(input_tensor)
outputs = deprocess(outputs)

def convert(image):
    if a.aspect_ratio != 1.0:
        # upscale to correct aspect ratio
        size = [a.scale_size, int(round(a.scale_size * a.aspect_ratio))]
        image = tf.image.resize_images(image, size=size, method=tf.image.ResizeMethod.BICUBIC)

        #return tf.image.convert_image_dtype(image, dtype=tf.uint8, saturate=True)
        return tf.image.convert_image_dtype(image, dtype=tf.float64)

# reverse any processing on images so they can be written to disk or displayed to user
converted_outputs = convert(outputs)

float_converted_outputs = tf.to_float(converted_outputs, name='final_results')

saver = tf.train.Saver(max_to_keep=1)

logdir = a.output_dir
sv = tf.train.Supervisor(logdir=logdir, save_summaries_secs=0, saver=None)
with sv.managed_session() as sess:

    if a.checkpoint is not None:
        print("loading model from checkpoint")
        checkpoint = tf.train.latest_checkpoint(a.checkpoint)
        saver.restore(sess, checkpoint)

for op in tf.get_default_graph().get_operations():
    print(op.name)

    image_dir = os.path.join(a.output_dir, "images")
    if not os.path.exists(image_dir):
        os.makedirs(image_dir)
    for step in range(len(input_paths)):

        src_image = cv2.imread(os.path.join(a.input_dir, basename(input_paths[step])), 1)
        image = expand_dim4array(src_image)

        feed_dict = {image_placeholder: image}
    out_path = os.path.join(image_dir, basename(input_paths[step]))

        result = sess.run(float_converted_outputs, feed_dict=feed_dict)

        result = result * 255.0
        dst_image = np.array(result[0]).astype(np.uint8)
        dst_image = cv2.cvtColor(dst_image, cv2.COLOR_RGB2BGR)

        cv2.imwrite(out_path, dst_image)
        print("evaluated image", input_paths[step])

This is my prediction script to use pretrained model to work on image. You may need to make some changes to work for your job.

@nidetaoge Thanks for share your script. I have some questions for the code:

for op in tf.get_default_graph().get_operations():   print(op.name) may not need to be here since you don't use any node for feed your tensor.

Can your explain a little why here you use float_converted_outputs ?

for the function create_model, as it has just one input( instead of 2), so I guess you just take the part that create generator from this function ?

I tested your script but fail to have a good result as pix2pix.py, thanks advance for all of the explications!

@nidetaoge
Hi,
I tried using your script and it has too many compilation issues. Can you upload the complete the script that you are using?

I just generate a test set with a blank target and run it in --mode test

I just generate a test set with a blank target and run it in --mode test

Wont this convert your input image into blank?

I have this simple script to create outputs, hope it helps you all
def create_output(model, input):
  img = tf.cast(tf.image.decode_jpeg(tf.io.read_file(input)), tf.float32)
  img = tf.image.resize(img, [256, 256])
  img = img / 127.5 - 1
  prediction = model(img[np.newaxis, ...], training = True) * 0.5 + 0.5

  return prediction[0, ...]

And to use it you just pass the generator model and the path of the input image
a = create_output(generator, '/content/galleta.jpeg')

plt.imshow(a)
plt.axis('off')
plt.show()

I have this simple script to create outputs, hope it helps you all
def create_output(model, input):
  img = tf.cast(tf.image.decode_jpeg(tf.io.read_file(input)), tf.float32)
  img = tf.image.resize(img, [256, 256])
  img = img / 127.5 - 1
  prediction = model(img[np.newaxis, ...], training = True) * 0.5 + 0.5

  return prediction[0, ...]

And to use it you just pass the generator model and the path of the input image
a = create_output(generator, '/content/galleta.jpeg')

plt.imshow(a)
plt.axis('off')
plt.show()


Appstudio update hacbs-test-project-zzxd

Pipelines as Code configuration proposal
To start the PipelineRun, add a new comment with content /ok-to-test
For more detailed information about running a PipelineRun, please refer to Pipelines as Code documentation Running the PipelineRun
To customize the proposed PipelineRuns after merge, please refer to Build Pipeline customization

Pipelines as Code CI has failed.There was an error creating the PipelineRun: hacbs-test-project-zzxd-on-pull-request-
creating pipelinerun hacbs-test-project-zzxd-on-pull-request- in namespace rhtap-demo-zrwy-tenant has failed.
Tekton Controller has reported this error: the namespace of the provided object does not match the namespace sent on the request

Pipelines as Code CI has failed.There was an error creating the PipelineRun: hacbs-test-project-zzxd-on-pull-request-
creating pipelinerun hacbs-test-project-zzxd-on-pull-request- in namespace rhtap-demo-pgat-tenant has failed.
Tekton Controller has reported this error: the namespace of the provided object does not match the namespace sent on the request

Pipelines as Code CI has failed.There was an error creating the PipelineRun: hacbs-test-project-zzxd-on-pull-request-
creating pipelinerun hacbs-test-project-zzxd-on-pull-request- in namespace rhtap-demo-qoht-tenant has failed.
Tekton Controller has reported this error: the namespace of the provided object does not match the namespace sent on the request

Pipelines as Code CI has failed.There was an error creating the PipelineRun: hacbs-test-project-zzxd-on-pull-request-
creating pipelinerun hacbs-test-project-zzxd-on-pull-request- in namespace rhtap-demo-pqbp-tenant has failed.
Tekton Controller has reported this error: the namespace of the provided object does not match the namespace sent on the request

Pipelines as Code CI has failed.There was an error creating the PipelineRun: hacbs-test-project-zzxd-on-pull-request-
creating pipelinerun hacbs-test-project-zzxd-on-pull-request- in namespace rhtap-demo-knxn-tenant has failed.
Tekton Controller has reported this error: the namespace of the provided object does not match the namespace sent on the request

Pipelines as Code CI has failed.There was an error creating the PipelineRun: hacbs-test-project-zzxd-on-pull-request-
cannot patch pipelinerun hacbs-test-project-zzxd-on-pull-request-: failed to patch pipelinerun rhtap-demo-vrlo-tenant/logURL with hacbs-test-project-zzxd-on-pull-request-v6mz4: pipelineruns.tekton.dev "hacbs-test-project-zzxd-on-pull-request-v6mz4" not found


latest ocaml-version: do not test multicore 4.10 any more

supersedes #335

Did we ever test multicore 4.10 with ocaml-ci? And is it supposed to be testing 4.12+domains now? It doesn't seem to be doing that.

right, #345 supersedes all this to just get us to the latest metadata for everything. I'll do the testing multicore 4.12 separately once I merged the metadata to the opam-repository.

right, #345 supersedes all this to just get us to the latest metadata for everything. I'll do the testing multicore 4.12 separately once I merged the metadata to the opam-repository.


Feature request: container logs on cleanup

A feature that would be great to replicate from Github's service containers is to output container logs as part of the "post" step.
Since this isn't available as a docker compose down option, it would need to be an additional call by the action.

I agree that this would be useful. @beanow-at-crabnebula did you come up with some workaround while this is not implemented?

Available in new release: https://github.com/hoverkraft-tech/compose-action/releases/tag/v2.0.0


Error: [DropboxUploader] #268698113 Login unsuccessful.

I was using version 1.12 and started getting the error.  I am now using the  latest 1.19 version and still get the error.  I am using example.php.   With the same username and password I can log in directly on dropbox website

@onurgozupek Can you please verify the version you're using and post it here?

@onurgozupek Can you please verify the version you're using and post it here?

Version is 1.1.19 and the error code is : Error: [DropboxUploader] #268698113 Login unsuccessful.

Version is 1.1.19 and the error code is : Error: [DropboxUploader] #268698113 Login unsuccessful.

I have integrate dropbox in my website and it was working till this day(15-1-2015) up to 5.30 AM. But now its showing as error when we tried to upload the file. Error is "Error: [DropboxUploader] #268698113 Login unsuccessful.". What should i do?

Please do reply..Anyone got the solution??

I found no solution.  I wrote to DropBox and they told me they dont support external libraries.
The problem with dropbox is that they are morons.  Instead of doing like Google, They implemented they keys as ints.  Google did it with chars.  That mean you need 64 bit OS to use DropBox, While you can use 32bit OS for Google.  Since I cannot change my OS, I replace DropBpx with Google Drive.  I dont suggest using anything other that DropBox API, since any change DropBox does will affect you

This is a bug on my install as well.
I am sure the author is looking for a fix for this!

Hey.
It seems that with correct login/password Dropbox doesn’t send "csrf_token" in the body of response.
So I wrote in private function login() this:
if (stripos($data, '{"status": "OK"') === FALSE)
    throw new Exception('Login unsuccessful.', self::CODE_LOGIN_ERROR);

instead of this:
if (stripos($data, '{"status": "OK", "csrf_token": "') === FALSE)
    throw new Exception('Login unsuccessful.', self::CODE_LOGIN_ERROR);

Now it works good.

Great! I tested this on 2 installs and it works perfect. Thanks @alexeydevederkin

Finally I have found the solution :) It's a mix from a couple of solutions.
First: Contants
    const DROPBOX_UPLOAD_LIMIT_IN_BYTES = 314572800;
    const HTTPS_DROPBOX_COM_HOME        = 'https://www.dropbox.com/home';
    const HTTPS_DROPBOX_COM_LOGIN       = 'https://www.dropbox.com/login';
    const HTTPS_DROPBOX_COM_LOGINACTION = 'https://www.dropbox.com/ajax_login';
    const HTTPS_DROPBOX_COM_UPLOAD      = 'https://dl-web.dropbox.com/upload';
    const HTTPS_DROPBOX_COM_LOGOUT      = 'https://www.dropbox.com/logout';

Second: private function login()
private function login() {
        $data  = $this->request(self::HTTPS_DROPBOX_COM_LOGIN);
        $token = $this->extractTokenFromLoginForm($data);

        $postData = array(
            'login_email'    => (string) $this->email,
            'login_password' => (string) $this->password,
            't'              => $token
        );
        $data     = $this->request(self::HTTPS_DROPBOX_COM_LOGINACTION, http_build_query($postData));
        if (stripos($data, '{"status": "OK"') === FALSE)
    		throw new Exception('Login unsuccessful.', self::CODE_LOGIN_ERROR);

        $this->loggedIn = TRUE;
    }

Third: Uploading code (example.php)
try {
	$uploader = new DropboxUploader('$DROPBOX_USERNAME', '$DROPBOX_PASSWORD');
	$uploader->upload($FILE_TO_UPLOAD, $DROPBOX_PATH);
} catch (Exception $e) {
	// Handle Upload Exceptions
	$label = ($e->getCode() && DropboxUploader::FLAG_DROPBOX_GENERIC) ? 'DropboxUploader' : 'Exception';
	$error = sprintf("[%s] #%d %s", $label, $e->getCode(), $e->getMessage());
	echo 'Error: ' . htmlspecialchars($error) . '';
}

Working DropboxUploader.php can be downloaded here: https://dl.dropboxusercontent.com/u/410774/DropboxUploader.php (PS: @jakajancar let me know after you check this file. I will delete it later)
Thanks to @alexeydevederkin, Destiny on Stackoveflow http://stackoverflow.com/questions/27640973/php-dropbox-uploader-class-name-fatal-error and of course @jakajancar

Uncaught exception 'Exception' with message 'Login unsuccessful

It worked for me.  Thank you

Fix ok for me. Thank you Jongotlin

Worked for me too.

@onurgozupek can you please check if with latest 1.1.21 you don't have the login error any longer?

@hakre Yes it worked! Uploaded without error... Thank you very much...

@onurgozupek  You're welcome. Thanks for testing and taking care.

i am getting this Error: [DropboxUploader] #268698113 Login unsuccessful. @V 1.1.22

i also am getting this Error: [DropboxUploader] #268698113 Login unsuccessful. @V 1.1.22
please help me how to solve this

i also am getting this Error: [DropboxUploader] #268698113 Login unsuccessful. @v 1.1.22
please help me how to solve this