processing argument files: Expected at least 1 argument, got 0

Originally submitted to Google Code by kai.hackemesser on 24 Aug 2010

Please tell me, is something missing in this command line
C:\Java\jython-2.5.1\bin\jybot.bat --argumentfile C:\WINDOWS\TEMP\jybot7695937814215883153.args
given the args file attached is placed in the given location? Is the argument file formed well?
This just returns this output message:
[ ERROR ] Expected at least 1 argument, got 0.

TypeError: index expected at least 1 argument, got 0

ZeroDivisionError: division by zero


Run skeleton application

As a developer working on this project
I need to run the skeleton application
So that I can check if the skeleton code is properly working.
Details and Assumptions
* Both the frontend and backend code should be tested separately.
* Install the dependency before running the application.

Acceptance Criteria
gherkin
Given all the dependency is installed
When the application is started
Then it should work without throwing any error

Tested the application. Works fine without throwing any error.


No module named 'pwd'

When I try to setup pywren using "pywren-setup" I get the following error:
Traceback (most recent call last):
  File "c:\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\anaconda3\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Anaconda3\Scripts\pywren-setup.exe\__main__.py", line 5, in <module>
  File "c:\anaconda3\lib\site-packages\pywren\scripts\setupscript.py", line 2, in <module>
    import pwd
ModuleNotFoundError: No module named 'pwd'

I am using a windows machine and when I googled this error I found that the package 'pwd' does not exist for windows. Is there a workaround for this?

pywren/pywren/scripts/setupscript.py imports pwd which is not available in windows. There is a function in that file to get username:
def get_username():
    return pwd.getpwuid(os.getuid())[0]

If this is changed to:
def get_username():

    try:
        import pwd
    except ImportError:
       pwd = None
       import getpass

    if pwd:
        userName = pwd.getpwuid(os.getuid())[0]
    else:
        userName = getpass.getuser()

    return userName

the error should disappear.
Credit to ericLemanissier for suggesting this here: [https://github.com/b-ryan/powerline-shell/issues/323]

Hey Manu,
Yeah sorry the pwd module doesn't exist for windows. That workaround works though. Could you make a pull request with that fix, we'll gladly merge it in.


Cache busting edge case

So, say one runs the local server with node make run. Then changes main.js or style.css; the SRI hash will change but the cache buster value will be the same until the server process is restarted.
@jmervine: Is there any way to work around this?

Typical handling for stuff like this would be to disable cache busting in development.

The problem is somewhere else and it's not cache related. The SRI doesn't match without restarting the server process...

I see, yeah that's true. We should be restarting whenever the file changes.

I would say the solution is to restart the server, or just ignore the cache buster in development.

I don't see why cache buster matters but if you have something that works when editing main.js or style.css without restarting the whole process let me know.

I don't, and my point was that the cache buster doesn't matter. I, out of habit, shift-refresh after editing. In which case, neither cache headers or cache buster prevent the changes from being seen.

I know that too. Like I said I was trying to see what is causing the
failures with SRI ND at that point I thought it was caching.
On Aug 17, 2016 21:23, "Joshua Mervine"<EMAIL_ADDRESS>wrote:

I don't, and my point was that the cache buster doesn't matter. I, out of
habit, shift-refresh after editing. In which case, neither cache headers
or cache buster prevent the changes from being seen.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/MaxCDN/bootstrap-cdn/issues/740#issuecomment-240501844,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAVVtb3HdOl-vg8e3a6XCqQu_olvHAbcks5qg1GggaJpZM4Je8s0
.

Closing this for now since by inlining our assets we no longer hit the issue.


Initial flag asset by country code

I send the callingCode and countryCode to a server (not the flag). But when i want to build the form again and paint the flag with the server response, i just have the country code.
So, please change the name of the flags (example "US.png"). This way I can match the countryCode with the flag route (asset)
Thanks

Hello @ricardonior29 please use below method. I have added the same in readme now.
Country country = await getCountryByCountryCode(context, 'US');
Alternatively you can retrieve all the countries using
getCountries(context);

if use method getCountries and use path for image
Image.asset(
  'packages/country_calling_code_picker/' + countries.first.flag,
),


Build error

Description
I was building my flet python script (as an apk), and I encoutered an error.

This is the code I'm running:
import flet as ft
from flet import TextField, ElevatedButton, Column, Text
import string

def main(page: ft.Page) -> None:
    def has_character(text):
        return any(char in string.punctuation for char in text)
    def has_num(text):
        return any(char in [str(i) for i in range(10)] for char in text)
    def verify(e):
        lenght = len(txt_password.value)>=8
        character = has_character(txt_password.value)
        number = has_num(txt_password.value)
        if all([character, lenght, number]):
            msg.value = "You're cool"
            btn_submit.disabled = False
        elif not lenght:
            msg.value = "Has to be atleast 8 characters long"
            btn_submit.disabled = True
        elif not number:
            msg.value = "Requires at least one number"
            btn_submit.disabled = True
        elif not character:
            msg.value = "Password requires a special character."
            btn_submit.disabled = True
        page.update()

    def submit(e):
        pass

    page.title = "Password Verifier"
    page.vertical_alignment = 'center'
    page.horizontal_alignment = 'center'
    page.theme_mode = ft.ThemeMode.LIGHT
    page.window_resizable = True

    msg = Text(value="Please input a password.")
    txt_password = TextField(hint_text="Password", password=True, border="underline", width=300, can_reveal_password=True, on_change=verify)
    btn_submit = ElevatedButton(text="Submit", disabled=True)
    page.update()

    page.add(Column([txt_password, btn_submit, msg]))

ft.app(target=main, port=8080)

Describe the results you received:
I ran flet build apk and I got this error message:
Creating Flutter bootstrap project...OK
Customizing app icons and splash images...OK
Generating app icons...
OK
Generating splash screens...OK
Packaging Python app...OK
Building .apk for Android...

  ╔════════════════════════════════════════════════════════════════════════════╗
  ║                 Welcome to Flutter! - https://flutter.dev                  ║
  ║                                                                            ║
  ║ The Flutter tool uses Google Analytics to anonymously report feature usage ║
  ║ statistics and basic crash reports. This data is used to help improve      ║
  ║ Flutter tools over time.                                                   ║
  ║                                                                            ║
  ║ Flutter tool analytics are not sent on the very first run. To disable      ║
  ║ reporting, type 'flutter config --no-analytics'. To display the current    ║
  ║ setting, type 'flutter config'. If you opt out of analytics, an opt-out    ║
  ║ event will be sent, and then no further information will be sent by the    ║
  ║ Flutter tool.                                                              ║
  ║                                                                            ║
  ║ By downloading the Flutter SDK, you agree to the Google Terms of Service.  ║
  ║ The Google Privacy Policy describes how data is handled in this service.   ║
  ║                                                                            ║
  ║ Moreover, Flutter includes the Dart SDK, which may send usage metrics and  ║
  ║ crash reports to Google.                                                   ║
  ║                                                                            ║
  ║ Read about data we send with crash reports:                                ║
  ║ https://flutter.dev/docs/reference/crash-reporting                         ║
  ║                                                                            ║
  ║ See Google's privacy policy:                                               ║
  ║ https://policies.google.com/privacy                                        ║
  ║                                                                            ║
  ║ To disable animations in this tool, use 'flutter config --no-animations'.  ║
  ╚════════════════════════════════════════════════════════════════════════════╝

Found an existing Pub cache at /Users/waternewt423/.pub-cache.
It can be repaired by running `dart pub cache repair`.
It can be reset by running `dart pub cache clean`.
Resolving dependencies...
  ffi 2.1.0 (2.1.2 available)
  fl_chart 0.65.0 (0.66.0 available)
  flutter_lints 2.0.3 (3.0.1 available)
  flutter_native_splash 2.3.7 (2.3.9 available)
  js 0.6.7 (0.7.0 available)
  lints 2.1.1 (3.0.0 available)
  matcher 0.12.16 (0.12.16+1 available)
  material_color_utilities 0.5.0 (0.8.0 available)
  meta 1.10.0 (1.11.0 available)
  package_info_plus 4.2.0 (5.0.1 available)
  path 1.8.3 (1.9.0 available)
  petitparser 5.4.0 (6.0.2 available)
  test_api 0.6.1 (0.7.0 available)
  toml 0.14.0 (0.15.0 available)
  web 0.3.0 (0.4.2 available)
  web_socket_channel 2.4.0 (2.4.3 available)
  xml 6.3.0 (6.5.0 available)
Got dependencies!
17 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.

Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'...                          229.6s

┌─ Flutter Fix ────────────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project's Gradle version is incompatible with the Java version that Flutter is using    │
│ for Gradle.                                                                                │
│                                                                                │
│ To fix this issue, consult the migration guide at docs.flutter.dev/go/android-java-gradle-error. │
└──────────────────────────────────────────────────────────────────────────────────────────────────┘
The Flutter CLI developer tool uses Google Analytics to report usage and diagnostic
data along with package dependencies, and crash reporting to send basic crash
reports. This data is used to help improve the Dart platform, Flutter framework,
and related tools.

Telemetry is not sent on the very first run. To disable reporting of telemetry,
run this terminal command:

    flutter --disable-analytics

If you opt out of telemetry, an opt-out event will be sent, and then no further
information will be sent. This data is collected in accordance with the Google
Privacy Policy (https://policies.google.com/privacy).

FAILURE: Build failed with an exception.

* What went wrong:
Could not open cp_settings generic class cache for settings file
'/private/var/folders/lc/6qr1zwm94_765gz1_wmzqkz80000gn/T/flet_flutter_build_KPlwRcJUjl/android/settings.gradle'
(/Users/waternewt423/.gradle/caches/7.5/scripts/5bahl4yp5mw7lcn2efkltdtgf).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 3m 48s
Gradle task assembleRelease failed with exit code 1

Error building Flet app - see the log of failed command above.

Additional information you deem important (e.g. issue happens only occasionally):
Flet version (pip show flet):
Name: flet
Version: 0.19.0
Summary: Flet for Python - easily build interactive multi-platform apps in Python
Home-page:
Author: Appveyor Systems Inc.
Author-email<EMAIL_ADDRESS>License: Apache-2.0
Location: /opt/homebrew/lib/python3.11/site-packages
Requires: cookiecutter, flet-runtime, packaging, qrcode, watchdog, websocket-client, websockets
Required-by:

Operating system:
I'm using MacOS 13.6.3

Try running dart pub cache clean.


Renamings

Let's also replace colors to 'blue' in tests/test_sota_checkpoints.py and nncf/quantization/metrics.py. Or 'brown' if 'blue' already used.

Removed these altogether since black seems to be default.


Adding new route53 domain stuck on SSL configuration

Before opening, please confirm:

[X] I have checked the custom domains troubleshooting guide.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

App Id
d291tiov1118lj
Region
us-east-1
Step
Domain Activation > SSL Configuration
Status
Stuck in SSL Configuration Step
Issue or question
I'm trying to set up a custom domain from Route53 to my Amplify application but getting stuck on SSL configuration. I've added that domain from Route53 UI (Hosted Zones -> Create hosted zone -> domain name preview.example.com, Private hosted zone, chose a VPC in us-east-1
After adding the zone, it appeared in the domain dropdown and choosing it do create some CNAME records but immediately get stuck on SSL configuration.
Error message
There are no error messages present, just stuck validating SSL Configuration for now.
Additional information
No response

Hi, @Joaker4, if your domain is hosted in Route53 you do not need to make any manual changes in Route53. Amplify does that on your behalf. You should be able to select the domain in Amplify and follow the wizard to setup the domain. For your reference. https://docs.aws.amazon.com/amplify/latest/userguide/custom-domain-troubleshoot-guide.html
One or more domain names have failed DNS validation. Please check your domain name validation routes and try re-adding the custom domain to your app. Learn more: https://docs.aws.amazon.com/amplify/latest/userguide/custom-domains.html#custom-domain-troubleshoot-guide


[Feature]: coins depository

What kind of feature do you want?
I spend all earned coins too fast, so I need to make a depository to save them for bigger rewards.
Coins from history will be place to depository like:
-30 | $to depository$ | 2024-04-13  11:20.
In Rewards you can see your current deposit by clicking on bank-safe.
From bank-safe you can cash your coins back.
+5 | $from depository$ | 2024-04-13 11:30
Additional questions

[X] I want to work on this feature request

start to work on 5c2ee975e00cec80441a7c84f3b3ade94a5c1f99

63922198bf382764645421ebf6e25ee764cf5d8a


Do not open drop-down when deselecting an option

Proposed Changes
Related to this one: http://bitbucket.org/coveord/jsadmin-machine-learning/pull-requests/231
Potential Breaking Changes

Acceptance Criteria

[ ] The proposed changes are covered by unit tests
[ ] The potential breaking changes are clearly identified
[ ] README.md is adjusted to reflect the proposed changes (if relevant)

Codecov Report

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

@@            Coverage Diff             @@
##           master    #1367      +/-   ##
==========================================
+ Coverage   99.31%   99.31%   +<.01%
==========================================
  Files         374      374
  Lines        9286     9287       +1
  Branches     2247     2247
==========================================
+ Hits         9222     9223       +1
  Misses         64       64

Impacted Files
Coverage Δ

...or/src/components/select/SingleSelectConnected.tsx
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


TEP-0147 create structs to surface artifacts inputs/outputs to taskRun

This is part of #7693
This is the first step to enable users to surface artifacts inputs/outputs to taskRun Status
We need define Inputs/Outputs where they are artifact slice under stepState
Artifact should contain a Name which shows it category and a list of values like this

 type Artifact struct {
	Name   string          `json:"name,omitempty"`
	Values []ArtifactValue `json:"values,omitempty"`
}

type ArtifactValue struct {
	Digest map[string]string `json:"digest,omitempty"`
	Uri    string            `json:"uri,omitempty"`
}

We should also include corresponding code generation for schema change in the scope

running ./hack/update_schema.sh should do the work

We should also include the v1beta1 and v1 conversion change ?

/assign ericzzzzzzz


Issues for image show example

Hi there,
Freewall provides a simple example for image show here. However, it has two problem:

many image has been cut off
resize the window will not cause images to shrink and fit ( this is more of a improvement rather than a bug

Is it possible to do things like unitegallery

I'm doing on that ;)

Good to know.

👍  @dragonfish-au  thank you for more your contribute while me offline

Thank you for creating this great project.


Roll engine 101b27da7a1b..828acc7395cc (16 commits)

https://github.com/flutter/engine/compare/101b27da7a1b...828acc7395cc
git log 101b27da7a1b..828acc7395cc --no-merges --oneline
828acc739 Roll src/third_party/skia d4962e7e07c0..282ec5dc6ca7 (1 commits) (flutter/engine#7226)
8a7ae957f Undeprecated BigInteger support, but document what it actually does. (flutter/engine#6903)
17789249d Offset.fromDirection and Size.aspectRatio (flutter/engine#6805)
9ae82173a Roll src/third_party/skia 8b78d70b9a10..d4962e7e07c0 (1 commits) (flutter/engine#7225)
a987b1700 Roll src/third_party/skia a1bded9a4f28..8b78d70b9a10 (1 commits) (flutter/engine#7224)
ac0599357 Roll src/third_party/skia 16d00eeef7d1..a1bded9a4f28 (2 commits) (flutter/engine#7223)
91bb1f8f4 Roll src/third_party/skia f391d0f771c6..16d00eeef7d1 (4 commits) (flutter/engine#7222)
6c40f84a5 [vulkan] Fix Fuchsia build
4f148edf0 Roll src/third_party/skia f6206f91b3c1..f391d0f771c6 (4 commits) (flutter/engine#7220)
1bc7ccf60 Support real fonts in 'flutter test' (flutter/engine#6913)
5244cf429 Roll src/third_party/skia 59c9f1595ecd..f6206f91b3c1 (1 commits) (flutter/engine#7219)
0f10d3f99 Roll src/third_party/skia 42e7a7ed6511..59c9f1595ecd (3 commits) (flutter/engine#7218)
167642182 Roll src/third_party/skia 21a7be0741ac..42e7a7ed6511 (1 commits) (flutter/engine#7217)
1a2714bbe Adds force cursor support (flutter/engine#6945)
b50e3491c Roll src/third_party/skia cb6b4bde0c2e..21a7be0741ac (3 commits) (flutter/engine#7216)
826f34264 [Fuchsia] Depend on libtrace when that is what's really meant (flutter/engine#7214)
The AutoRoll server is located here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+/master/autoroll/README.md
If the roll is causing failures, please contact the current sheriff (liyuqian@google.com), and stop
the roller if necessary.

@liyuqian : New roll has been created by https://autoroll.skia.org/r/flutter-engine-flutter-autoroll

Trybots failed. These were the failed builds: https://cirrus-ci.com/task/4954953753821184 , https://cirrus-ci.com/task/5517903707242496 , https://cirrus-ci.com/task/6080853660663808 , https://cirrus-ci.com/task/6221591149019136

Commit queue failed; closing this roll.


Unable to connect to a terminal server when license model is for per-device

four prerequisites

The terminal server was configured to function in per-device license mode.
The terminal server have more than one  license server.
and one license server is not activationed.
The license server search mode is set to automatic.
If the above condition is met, i can't use freerdp connected to terminal server. But it is ok to use MSTSC  to   connected.

but if I specify the license server is a license server has been activated , then i can connect to the terminal server .
How can I solve this problem ?

Licensing was refactored with #4979
Closing.
Reopen if still an issue.


This is for adding swagger for OperationsManagement RP.

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information

[ ] The title of the PR is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
[ ] Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
[ ] If applicable, the PR references the bug/issue that it fixes.
[ ] Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

[ ] I have read the contribution guidelines.
[ ] My spec meets the review criteria:

[ ] The spec conforms to the Swagger 2.0 specification.
[ ] The spec follows the guidelines described in the Swagger checklist document.
[ ] Validation tools were run on swagger spec(s) and have all been fixed in this PR.

@dashimi16,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla.microsoft.com.
It will cover your contributions to all Microsoft-managed open source projects.
Thanks,
Microsoft Pull Request Bot

Hi There,
I am the AutoRest Linter Azure bot. I am here to help. My task to analyze the situation from the AutoRest linter perspective. Please review the below analysis result:
File: arm-operationsmanagement/2015-11-01-preview/Swagger/OperationsManagement.json
Number of linter errors/warnings before the PR: 0
Number of linter errors/warnings after the PR: 18
File: arm-operationsmanagement/2017-03-03-preview/Swagger/OperationsManagement.json
Number of linter errors/warnings before the PR: 0
Number of linter errors/warnings after the PR: 18
Thanks for your co-operation.

Some general questions:

[ ] Was this RP reviewed by One API & ARM Review team?
[ ] Are both the version of api live i.e. deployed in production?

@dashimi16 Make sure to sign the cla if you haven't already.

Closing this pull request since got feedback for smaller commit. Will make that change and publish a new pull request. Thanks for your time in reviewing the pull request.


How to use AOS with Horizontal scroll websites?

Hiya,
I'm currently working on a horizontal scrolling website and all the AOS animations trigger at the same time instead of when they come into the viewport. Is there a way for AOS to detect it when scrolling horizontally?
Many Thanks Will

use Gsap with scrollTrigger,
this library is not maintained from long time.
https://greensock.com/docs/v3/Plugins/ScrollTrigger


contig map image

We might not have this at the top of  the page by default eventually...we can see..
For the relaunch it will probably still be there. Would it be better if it was slightly smaller?
e talked about cropping, but I don't know how easy this would be?
The bit we need is slightly variable because the key changes depending which feature types are shown.
I think we could lose the labels at the side
and the "tracks turned off" at the bottom like so:

it would be a bit neater....

things like this may make it impossible to trim the image....
http://pombase2.aska.gen.nz/gene/SPMIT.06
no point spending any time on this as it will be replaced eventually...
Maybe just resize and make smaller if possible.... It really is only for orientation, and the image can be much smaller for that. If people are really interested in  sequence detail, they will go to the browser... here, knowing the identity of, and being able to get to a neighbouring gene is sufficient...

Kim what are your thoughts on the trimming?
How long would something like this take (will help decide if we should do it or ditch it)

Kim what are your thoughts on the trimming?

It's fairly easy to trim a fixed number of pixels from the edge of each image.  Anything else would be harder.
To do that we'd download all the images and run a script over them to do the processing.

How long would something like this take

Not long at all.  An hour-ish maybe?

Actually as it would need rerunning periodically  to pick up gene name changes etc, probably not useful to invest any time here (especially as these will be replaced eventually).
Can we just make the images slightly smaller (Antonia and I just discussed and thought 70% of  current size would be fine)

Antonia and I just discussed and thought 70% of current size would be fine

I've just done that.  Maybe 70% is too small?

Hmm, maybe...
I think the size is good.... if the bottom part with the redundant key and "tracks turned  on" was not there....
Shall we try 80%?

Shall we try 80%?

I've done that.

We'll call  this OK for now, until we have better.
We could make it bigger but the font has been quote "to hell and back" , so even if you make it bigger most of the labels are still illegible.....


New version: DMRJtensor v0.8.7

Registering package: DMRJtensor
Repository: https://github.com/bakerte/DMRJtensor.jl
Created by: @bakerte
Version: v0.8.7
Commit: 1905a6bef5fb8f7bd61a1bce8806ad4745b6b76d
Git reference: v0.8.7
Description: A general purpose tensor network library in the Julia programming language
Release notes:

Generally efficient for ground state calculations

Hi, look...I messed up the v0.8.6 on GitHub.  Please just allow v0.8.7 for this time.  I will be more careful in the future.  Sorry about this.


Feature: Storyshots: custom renderer

I'd really appreciate an option to provide a custom renderer (i.e. enzymes shallow, mount or render) to the storyshots addon.
We do all of our snapshot testing with enzyme, and it feels consistently more robust and able to handle edge cases when compared to react-test-renderer. I totally understand not wanting to pull in another dependency into your project though.
So what im proposing is being able to pass the renderer as an option parameter to the initStoryshots addon and have it use this renderer. Only fall back to react-test-renderer if no custom renderer is specified. initialization would look like this:
import { shallow } from 'enzyme';
import initStoryshots from '@storybook/addon-storyshots';

initStoryshots({ renderer: shallow});

if you are open to the idea, i would be happy to create a PR

Sounds like a great feature! If you'll do a PR, please base it on release/3.3 branch (sorry for inconvenience)


Remove Pool 562 LUNA/UST from Trade page

Ask
Please remove Pool 562 LUNA/UST from being used from the Trade page.
Problem
The Trade page on Osmosis app defaults to using pool 562 to trade between LUNA and UST with a swap fee of 0.535%. The primary issue is that this swap fee is high and discourages trading on Osmosis. For those who don't know that a cheaper routes exist (e.g., through Pool 560 (at 0.2% fee) and then Pool 561 (at 0.2% fee) == 0.4% fee total) are charged extra swap fee and might choose an alternative trading platform (e.g., TerraSwap); while those who do know that a cheaper route exists are inconvenienced by manually having to swap to OSMO first as an intermediate step.

In addition, due the fact that this pool is selected for these types of trades when it is not the cheapest trade option, we have more of the Osmosis incentives being allocated to LPs of this pool--a pool without OSMO--which is Liquidity that is not benefitting Osmosis (yet) because cheaper routes exist.
Solution
The solution in the short term is simple: ensure that trades between on LUNA and UST on the Trade page instead go through pools 560 (UST/OSMO) and 561 (LUNA/OSMO).
I think it might just need to be removed from GAMMSwapManager at osmosis-frontend/src/stores/root.ts, however, more change might be required to ensure the route does a hop through pools 560 and 561 instead of pool 562.
Discussion
There has been discussion on this on Commonwealth and a bit on Osmosis Siberia, which explore further the problem, the possible solutions, and all seem to conclude that removal of Pool 562 as default on the Trade page is the only solution we have right now. (i.e., unless pool sub-governance or optimized trade routing are coming very very soon).

On second thought, we should just make ALL non-OSMO token swaps via the Trade page route through OSMO, regardless of how much liquidity or swap fee there might be. Until we have an optimized trade router, it's the best we got, and it at least benefits OSMO LPs over LPs who don't provide any OSMO.

Hey @JeremyParish69! Thanks for the issue.
I think this can be broken down to two subtasks:

Improving the trade router (definitely on the to-do list post-refactor)
A strategic discussion around the role of OSMO as a middle-currency. (https://github.com/osmosis-labs/osmosis-frontend/issues/164)

While #1 is in progress, I think it's does require more foundational architecture design decisions on the router itself. Let's continue the discussion around the 'OSMO' as a conversion-currency on issue #164


[WIP] Perf contest4 final report

Work in progress

Thanks @ibogosavljevic. Second commit (derivative_x_y) looks good.

I split the summary into 4 additional parts. I haven't yet checked part 4. And there are some TODOs left. Hopefully, I will finish it over the weekend.

Do you need any help?
On Sun, 28 Mar 2021 at 01:12, Denis Bakhvalov @.***>
wrote:

I split the summary into 4 additional parts. I haven't yet checked part 4.
And there are some TODOs left. Hopefully, I will finish it over the weekend.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dendibakh/dendibakh.github.io/pull/2#issuecomment-808821302,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACAJBL3SGMTGCPG72J5DFJLTFZYAHANCNFSM4ZK2XGCQ
.

Do you need any help?
…
On Sun, 28 Mar 2021 at 01:12, Denis Bakhvalov @.***> wrote: I split the summary into 4 additional parts. I haven't yet checked part 4. And there are some TODOs left. Hopefully, I will finish it over the weekend. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#2 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAJBL3SGMTGCPG72J5DFJLTFZYAHANCNFSM4ZK2XGCQ .

Thanks, Ivica,
Can you please help to resolve the following comments?
https://github.com/dendibakh/dendibakh.github.io/pull/2#discussion_r596375366
https://github.com/dendibakh/dendibakh.github.io/pull/2#discussion_r596383635
https://github.com/dendibakh/dendibakh.github.io/pull/2#discussion_r596389788
https://github.com/dendibakh/dendibakh.github.io/pull/2#discussion_r599147013

Sorry for waiting so long.
If you need any measurements, let me know, Can you please upload Peter Coffman's solution, since we are referencing it in the text.


ServceBus logging improvements

logs transient issues as warnings (instead of errors)
logs issues when something is already closed or disposed as warnings  (instead of errors)
logs terminal issues as errors (if they aren't)

Removes some deprecated (a long time ago) internal, unused constructors.
It may fix #39575

API change check
API changes are not detected in this pull request.


Additional windows install option for forwarder 9.1.3

Pull Request (PR) description
A workaround has been provided for the splunk fowarder install on windows MSI version 9.1.3. Issue number SPL-248587
Instructions say to include USE_LOCAL_SYSTEM=1
https://docs.splunk.com/Documentation/Forwarder/9.1.3/Forwarder/KnownIssues
This Pull Request (PR) fixes the following issues
N/A

@magarvo thanks for the PR! We merged it in https://github.com/voxpupuli/puppet-splunk/pull/365


[OCCM][doc]: Add tip for single master node LB creation

What this PR does / why we need it:
took me a while to figure out why the LB failed to create in one node env even I untaint the master
it's because node.kubernetes.io/exclude-from-external-load-balancers labeled by default and this will prevent the node to be used
https://github.com/kubernetes/cloud-provider/blob/25867882d509131a6fdeaf812ceebfd0f19015dd/controllers/service/controller.go#L673
Which issue this PR fixes(if applicable):
fixes #
Special notes for reviewers:

Release note:

NONE

/lgtm
/approve


switch to using @google-cloud/common

This PR starts using the authorized / retry request flow from the
@google-cloud/common library. From an operational perspective This
shouldn't change behaviour significantly – although there are small
differences in how the new library does retries or how it prioritizes
different sources of the projectId & credentials (environment vs.
metadata vs. config).

Travis fix: https://github.com/GoogleCloudPlatform/cloud-debug-nodejs/pull/191

We also need https://github.com/GoogleCloudPlatform/google-cloud-node/pull/1879 to be able to drop the dependency on diagnostics-common.

Further, even though this isn't a blocker for development, before we release we would want a resolution on https://github.com/GoogleCloudPlatform/google-cloud-node/issues/1822.


With no RC connected, random input is seen

See: http://logs.uaventure.com/view/dH6czHZCHJ67hXQkJpLLfk#RC_Raw_PLOT
As soon as I hook up the receiver it's fine. It's on an older Pixhawk that only serves as HIL Pixhawk tough..

That's on current master.

Fixed.


Script hook V .NET stop working

Script hook crashes game when I press console key.I have tried to reinstall but again this error is coming and also my scripts are not loading.Plz help me to fix this error. I want to play GTA V with scripts.
All log files are located in my game directory.Plz help.

Can you put here your log files?
(ScriptHook.txt, ScriptHookDotNet.txt and asiloader.txt)
Remember that this is not ScriptHook repo but is ScriptHookDotNet.

OK. Just wait.

asiloader.log
ScriptHookV.log
ScriptHookVDotNet.log
Here you go.

[22:39:07] [DEBUG] Loading assembly Persistence.dll ... [22:39:08] [INFO] Found 2 script(s) in Persistence.dll resolved to API 2.10.14. [22:39:08] [DEBUG] Instantiating script JobsV.Main ... [22:39:10] [ERROR] Failed to instantiate script JobsV.Main because constructor threw an exception: System.TypeInitializationException: The type initializer for 'SHVDN.NativeMemory' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.    at SHVDN.NativeMemory..cctor()    --- End of inner exception stack trace ---    at SHVDN.NativeMemory.get_CellEmailBcon()    at GTA.UI.Notify(String message, Boolean blinking)    at GTA.UI.Notify(String message)    at JobsV.CustomPed.CustomPlayer.sendMessage(String message)    at JobsV.Main..ctor() [22:39:10] [DEBUG] Instantiating script NativeUI.BigMessageThread ... [22:39:10] [INFO] Started script NativeUI.BigMessageThread. [22:39:10] [DEBUG] Instantiating script Persistence.Indicator ... [22:39:10] [INFO] Started script Persistence.Indicator. [22:39:10] [DEBUG] Instantiating script Persistence.Persistence ... [22:39:10] [ERROR] Failed to instantiate script Persistence.Persistence because constructor threw an exception: System.TypeInitializationException: The type initializer for 'Persistence.Helper' threw an exception. ---> System.TypeInitializationException: The type initializer for 'SHVDN.NativeMemory' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object.    at SHVDN.NativeMemory..cctor()    --- End of inner exception stack trace ---    at SHVDN.NativeMemory.GetHashKey(String key)    at GTA.Model.op_Implicit(String source)    at Persistence.Helper..cctor() in E:\Users\Bartholomew\Documents\GitHub\Persistence-II\Persistence\Class\Helper.vb:line 38    --- End of inner exception stack trace ---    at Persistence.Helper.LoadSettings() in E:\Users\Bartholomew\Documents\GitHub\Persistence-II\Persistence\Class\Helper.vb:line 247    at Persistence.Persistence..ctor() in E:\Users\Bartholomew\Documents\GitHub\Persistence-II\Persistence\Persistence.vb:line 22
The problem is in those two scripts inside Persistence.dll assembly. Each script loading, SHVDN throws exception due to class constructors in Persistence assembly. Try to remove Persistence.dll from your script folder.

I think the executed code in those scripts make SHVDN throws exception internally (native memory).

Bro this error is not coming only in this script. It is coming in all scripts I added.
I just give an example by these two scripts.
But I'll try to delete persistence.dll
Btw Thanks.

As log said, it seems that the problem is in Persistence.dll. I think the exceptions touch SHVDN internally, so it aborts all scripts (i wouldn't know because idk shvdn well internally).


add Class#cast macro for runtime "as" casting

This technique is used in crystal-pg in order to transform an array of union-typed values into a tuple of single typed values.
I held off on submitting this because in crystal-pg I call it as_cast, which isn't a great name. With cast gone now, perhaps this can take that name.

Definite :+1: for this feature.

Looks nice indeed, though I wonder if we should wait until the next release before readding a method with the same name, to get people some time to update, figuring out it was renamed from a undefined method error is easier than from a "can't cast" error ;)

Can we standardize deprecation?
deprecated def foo(bar), "use X instead"

Eventually yes. Though I don't think we need a full fledged deprecation process before 1.0

Same as @jhass : it looks very nice, but I think we should skip a release before merging.
Off topic: +1 for flags like deprecated or unstable ala Rust. Crystal don't need them before 1.0 but they would be nice to have.

Actually, unstable/stable/deprecated even nice to have before 1.0. Because
then you can easily look at your API docs and see, if there is some
unstable stuff, you can't release 1.0 yet - that is exactly what they did
at Rust.
--
Best Regards,
Alexey Fedorov,
Sr Ruby, Clojure, Crystal, Golang Developer,
Microservices Backend Engineer,
+49 15757 486 476
2015-09-14 12:27 GMT+02:00 Julien Portalier<EMAIL_ADDRESS>
Same as @jhass https://github.com/jhass : it looks very nice, but I
think we should skip a release before merging.
Off topic: +1 for flags like deprecated or unstable ala Rust. Crystal
don't need them before 1.0 but they would be nice to have.
—
Reply to this email directly or view it on GitHub
https://github.com/manastech/crystal/pull/1466#issuecomment-140030253.

Yeah, I think it's reasonable to wait a release.

Crystal does need them.

"method missing" means hunting down why code is failing in git logs.
deprecated can tell the user exactly why their program won't compile.
deprecated can take additional arguments/attributes to tell us when to remove the deprecated hooks

Examples of possible usage:
deprecated class Foo, "use Bar instead", fail_after: "0.9.0"

@[deprecated("use Bar instead", fail_after: "0.9.0")]
class Foo
end

class Bar
  deprecated method foo1, "use bar instead.", remove_after: "1.2.0"

  @[deprecated("use bar instead", remove_after: "1.2.0")]
  def foo2
  end

  deprecated getter baz, "message"

  @[deprecated("message") ]
  getter baz
end

As an attribute it could conceptually be added to anything and still allow usage of the classes/methods.
The usage of deprecated method|property|class is terse but doesn't provide advanced warning before the functionality is lost.  While it may be best in theory to give a hard error to upgrade right away, it doesn't allow for libraries/programs to be compatible with multiple crystal versions without ifdef's everywhere.  That creates an entirely new problem for programs that would like to provide compatibility for the 1-2 most recent crystal versions or for programs that want compatibility with a few versions of a library before being forced to change.
We can and should do better than other languages.  Programmer happiness is the goal.  Common problems like changing API's should be easy to handle.
Example implementation:
class X
  def cast(value)
    deprecated "use #{class}.new instead of cast", fail_after, remove_after: Version.new("1.0.0")
  end

  # pseudo code
  macro def deprecated msg, fail_after = nil, remove_after = nil
    if remove_after
      raise "#{self} should be removed #{VERSION} >= #{remove_after}" if VERSION >= remove_after

      msg << " (will be removed after version #{remove_after})"
    end

  if fail_after
    if VERSION > fail_after
    raise msg
  else
    msg << " ( will stop working after #{fail_after})"
    warn msg
  end
end

I don't think we should worry about "deprecated" now, we are still far from 1.0. And a simple:
def foo
  {{ raise "deprecated, use bar" }}
end

works just fine.

@will We can merge this now. Want to rebase?

@asterite rebased

Thanks!


adding missing translations

A lot of currencies don't have their latin symbols.
Reference: http://en.wikipedia.org/wiki/Currency_symbol

A rebased version of this has been merged to master, thanks!


override the dimension parameter, set angles to None by default

Changed the signature of the __init__ of AcquisitionGeometry

def __init__(self,
                 geom_type,
                 dimension=None,
                 angles=None,
                 pixel_num_h=0,
                 pixel_size_h=1,
                 pixel_num_v=0,
                 pixel_size_v=1,
                 dist_source_center=None,
                 dist_center_detector=None,
                 channels=1,
                 **kwargs
                 )

The main change is that dimension and angles are now passed as None by default.
dimension is being calculated by the other parameters as in astra, so anything put there is overridden.
if pixel_num_v >= 1:
    dimension = '3D'
elif pixel_num_v == 0:
    dimension = '2D'
else:
    raise ValueError('Number of pixels at detector on the vertical axis must be >= 0. Got {}'.format(vert))

The angle parameter is mandatory to be a numpy array as before, but passed as None to avoid the problem of removing the positional argument dimension which came before it.

Jenkins is happy with this. @gfardell @evelinaametova @jakobsj @epapoutsellis  If you are as well, please merge.


I86 upgrade deps and remove commitlint

Change Summary
[Briefly summarise the changes that you made. Just high-level stuff]
Change Form
Fill this up (NA if not available). If a certain criteria is not met, can you please give a reason.

[ ] The pull request title has an issue number
[ ] The change works by "Smoke testing" or quick testing
[ ] The change has tests
[ ] The change has documentation

Other Information
[Is there anything in particular in the review that I should be aware of?]
Related issue

Resolve #86

Codecov Report

Merging #93 (4da31da) into main (86d0da7) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #93   +/-   ##
=======================================
  Coverage   25.00%   25.00%
=======================================
  Files           4        4
  Lines           4        4
=======================================
  Hits            1        1
  Misses          3        3

Continue to review full report at Codecov.

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


navigation

Hi,
I'm looking for source code example of waze or someting other program where I can navigate and filter my choices.
Can you help ?

It looks like waze has an api: https://developers.google.com/waze/
Fair warning, I know nothing about the waze product and api offerings.
Here’s the documentation for Directions API, which gives you routes between two locations: https://developers.google.com/maps/documentation/directions/intro

A few more data points - here are two open-source projects I know of that do turn-by-turn directions:

Mapbox Navigation SDK - https://github.com/mapbox/mapbox-navigation-android
Mapzen On-the-road - https://github.com/mapzen/on-the-road_android

When Mapzen shut down earlier this year, they recommended these projects for turn-by-turn routing:

GraphHopper - https://www.graphhopper.com/
Mapbox Navigation (general) - https://www.mapbox.com/navigation/
Project OSRM - http://project-osrm.org/

Also, I believe Mapbox has taken over maintenance of Valhalla, which backed the Mapzen On-the-road project as a routing engine.
I'm not endorsing any of the above, but just providing as an informational resource.

Hi,
I tried the Mapbox Navigation SDK but I don't see map. Do you know why ?
Could you exmplain meaning of the other links ?
Thanks,
Alex
בתאריך יום ה׳, 4 באוק׳ 2018 ב-0:58 מאת Sean Barbeau <
notifications@github.com>:

A few more data points - here are two open-source projects I know of that
do turn-by-turn directions:

Mapbox Navigation SDK -
https://github.com/mapbox/mapbox-navigation-android
Mapzen On-the-road - https://github.com/mapzen/on-the-road_android

When Mapzen shut down https://mapzen.com/blog/shutdown/ earlier this
year, they recommended these projects https://mapzen.com/blog/migration/
for turn-by-turn routing:

GraphHopper - https://www.graphhopper.com/
Mapbox Navigation (general) - https://www.mapbox.com/navigation/
Project OSRM - http://project-osrm.org/

Also, I believe Mapbox has taken over maintenance of Valhalla
https://github.com/valhalla/valhalla, which backed the Mapzen
On-the-road project as a routing engine.
I'm not endorsing any of the above, but just providing as an informational
resource.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/googlemaps/android-maps-utils/issues/480#issuecomment-426817769,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AYlQdgcwZZhuNNZlplVrUv3VDv4seqk0ks5uhTL0gaJpZM4XF8i1
.

You probably need an API key - see bottom of https://github.com/mapbox/mapbox-navigation-android/blob/master/README.md#getting-started.
The bottom set of links are routing engines that, give an origin and destination, will give you a path (itinerary) from one to another.

Can you point ? I can't find what I need to do.
Thanks,
Alex
בתאריך שבת, 6 באוק׳ 2018 ב-17:04 מאת Sean Barbeau <
notifications@github.com>:

You probably need an API key - see bottom of
https://github.com/mapbox/mapbox-navigation-android/blob/master/README.md#getting-started
.
The bottom set of links are routing engines that, give an origin and
destination, will give you a path (itinerary) from one to another.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/googlemaps/android-maps-utils/issues/480#issuecomment-427576237,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AYlQdkXjDIb-Sw9fCGC0LDdU62BxBCXvks5uiLhEgaJpZM4XF8i1
.

To run the sample code on a device or emulator, include your developer access token in developer-config.xml found in the project.

So see https://www.mapbox.com/help/define-access-token/.
For further help on the Mapbox SDK see https://github.com/mapbox/mapbox-navigation-android/blob/master/README.md#getting-help

I created accout fo mapbox and create token but map still doesn't appear.
I add to onCreate function: Mapbox.getInstance(this,<TOKEN_API_KEY>)
What do I need to do ?
Thanks,
Alex
בתאריך שבת, 6 באוק׳ 2018 ב-19:50 מאת Sean Barbeau <
notifications@github.com>:

To run the sample code <#m_5812007845325146998_sample-code> on a device
or emulator, include your developer access token
https://www.mapbox.com/help/define-access-token/ in developer-config.xml
found in the project.
So see https://www.mapbox.com/help/define-access-token/.
For further help on the Mapbox SDK see
https://github.com/mapbox/mapbox-navigation-android/blob/master/README.md#getting-help
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/googlemaps/android-maps-utils/issues/480#issuecomment-427588891,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AYlQdvT0kFPXx08ybiG-UBVx3Cgf0UXnks5uiN9bgaJpZM4XF8i1
.

Hi,
What difference between mapbox and google map ? What is your recommend ?
Thanks,
Alex
בתאריך שבת, 6 באוק׳ 2018 ב-20:45 מאת Alex Dashevski<EMAIL_ADDRESS>>:

I created accout fo mapbox and create token but map still doesn't appear.
I add to onCreate function: Mapbox.getInstance(this,<TOKEN_API_KEY>)
What do I need to do ?
Thanks,
Alex
בתאריך שבת, 6 באוק׳ 2018 ב-19:50 מאת Sean Barbeau <
notifications@github.com>:

To run the sample code
<#m_5617569162997657966_m_5812007845325146998_sample-code> on a device
or emulator, include your developer access token
https://www.mapbox.com/help/define-access-token/ in
developer-config.xml found in the project.
So see https://www.mapbox.com/help/define-access-token/.
For further help on the Mapbox SDK see
https://github.com/mapbox/mapbox-navigation-android/blob/master/README.md#getting-help
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/googlemaps/android-maps-utils/issues/480#issuecomment-427588891,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AYlQdvT0kFPXx08ybiG-UBVx3Cgf0UXnks5uiN9bgaJpZM4XF8i1
.

Hi,
Could you give me a respone ?
Thanks,
Alex
בתאריך יום א׳, 7 באוק׳ 2018 ב-11:12 מאת Alex Dashevski <
alexd555@gmail.com>:

Hi,
What difference between mapbox and google map ? What is your recommend ?
Thanks,
Alex
בתאריך שבת, 6 באוק׳ 2018 ב-20:45 מאת Alex Dashevski <
alexd555@gmail.com>:

I created accout fo mapbox and create token but map still doesn't appear.
I add to onCreate function: Mapbox.getInstance(this,<TOKEN_API_KEY>)
What do I need to do ?
Thanks,
Alex
בתאריך שבת, 6 באוק׳ 2018 ב-19:50 מאת Sean Barbeau <
notifications@github.com>:

To run the sample code
<#m_1056840283267031812_m_5617569162997657966_m_5812007845325146998_sample-code>
on a device or emulator, include your developer access token
https://www.mapbox.com/help/define-access-token/ in
developer-config.xml found in the project.
So see https://www.mapbox.com/help/define-access-token/.
For further help on the Mapbox SDK see
https://github.com/mapbox/mapbox-navigation-android/blob/master/README.md#getting-help
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/googlemaps/android-maps-utils/issues/480#issuecomment-427588891,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AYlQdvT0kFPXx08ybiG-UBVx3Cgf0UXnks5uiN9bgaJpZM4XF8i1
.


Flow doesn't work well.Maybe it is a bug.

/*Flow ^0.36.0
*@flow
*/
type A = | {type: string, target: number, message: string} | {type: string, posts: Object};
function test0(param: any):void{
  //code
}
function test1(param: A): A{
    if(param.type=="hello"){//ok
        return param;
    }
    test0(param.posts);//error proerty not found in object type
    return param;
}

It doesn't work well. Maybe it is a bug.

I don't believe it's a big. Flow doesn't know which one of the 2 shapes the param has at line 'test0(param.posts)'. It could very well be an object of shape {type: string, target: number, message: string} which doesn't have a posts property.
You need some kind of dynamic type test to make sure you won't get a runtime error there in case an object of the first shape enters the test1 bug.
It could be something along the lines
if( param.type === 'secondType' ) {
   test0(param.posts);
}

And you would have to declare the types as
type A = | {type: 'firstType', target: number, message: string} | {type: 'secondType', posts: Object};
``
For this route check the docs section on disjoint unions to better understand what happens here.

Or simpler you could do an
```js
if(param.posts) {
test0(param.posts);
}
```.

if(param.posts){
//Yes, it work in this way,Thanks
}


tcomb <-> tcomb-form

Hi @gcanti ,
More questions from me :)

You often don't want to use your domain model directly for a form. You can easily create a form specific model with tcomb that captures the details of a particular feature, and then define a function that uses that model to process the main domain model.

I agree with that statement, but having trouble figuring out the best way to:

keep things DRY between domain model defined w/ tcomb vs. form models defined w/ tcomb-form
writing the function to do the transformation

The simple use cases I'm thinking about are:

omit some fields in the form model defined in the domain model (looks like I can just pass in the domain model and the form model will ignore the extra fields)
transform a tcomb.Date to a tcomb-form.Date type

Could you point me to some examples to further my understanding?
Thanks!

Hi @simonpure,

keep things DRY between domain model defined w/ tcomb

Maybe this can be helpful https://github.com/gcanti/tcomb/blob/master/docs/GUIDE.md#keep-the-domain-model-dry

looks like I can just pass in the domain model and the form model will ignore the extra fields

Yep. I don't see problems to do that. However if you want to be extra clean just pass the domain value through the form type in order to filter out the additional fields.

tcomb.Date to a tcomb-form.Date

Actually they are identical, tcomb-form extends tcomb and uses the same types.

Thanks for the helpful response @gcanti!
I'm noticing a different behavior for rendering a date when defining a model using tcom-form vs. tcomb. When using vanilla tcomb, the date field renders as a textbox instead of the date select.
Am I correct that this should result in the same behavior based on your previous reply?
Let me know if you need additional input.
// vanilla.js
import t from 'tcomb'
export default t.struct({
  timestamp: t.date
})

vs.
// form.js
import t from 'tcomb-form'
export default t.struct({
  timestamp: t.date
})

node --version
v4.2.3

// package.json
 "dependencies": {
    "express": "^4.13.4",
    "react": "^0.14.7",
    "react-dom": "^0.14.7",
    "tcomb": "^2.7.0",
    "tcomb-form": "^0.8.2"
  },
  "devDependencies": {
    "babel-cli": "^6.5.1",
    "babel-preset-es2015": "^6.5.0",
    "babel-preset-react": "^6.5.0",
    "babelify": "^7.2.0",
    "uglifyify": "^3.0.1"
  }

I'm noticing a different behavior for rendering a date when defining a model using tcom-form vs. tcomb

I guess you have 2 copies of tcomb in mode_modules
Try to run
npm list tcomb

in your root folder

You were correct that I had multiple tcomb copies. Having said that, I'm still seeing the same behavior after deduping when using tcomb vs. tcomb-form.
I'll investigate further and appreciate any additional pointers.
# npm list tcomb
npm info it worked if it ends with ok
npm info using<EMAIL_ADDRESS>npm info using<EMAIL_ADDRESS><EMAIL_ADDRESS>/usr/src
├──<EMAIL_ADDRESS>└─┬<EMAIL_ADDRESS>  ├─┬<EMAIL_ADDRESS>  │ └──<EMAIL_ADDRESS>  └─┬<EMAIL_ADDRESS>    └──<EMAIL_ADDRESS>
npm info ok

# npm dedup
npm info it worked if it ends with ok
npm info using<EMAIL_ADDRESS>npm info using<EMAIL_ADDRESS>npm info attempt registry request try #1 at 2:32:56 AM
npm http request GET https://registry.npmjs.org/tcomb
npm http 304 https://registry.npmjs.org/tcomb
npm info rm /usr/src/node_modules/tcomb-form/node_modules/tcomb-form-templates-bootstrap/node_modules/tcomb
npm info rm /usr/src/node_modules/tcomb-form/node_modules/tcomb-validation/node_modules/tcomb
npm info ok

# npm list tcomb
npm info it worked if it ends with ok
npm info using<EMAIL_ADDRESS>npm info using<EMAIL_ADDRESS><EMAIL_ADDRESS>/usr/src
└──<EMAIL_ADDRESS>
npm info ok

Related https://github.com/gcanti/tcomb-form/issues/295

I'm still seeing the same behavior after deduping when using tcomb vs. tcomb-form

This is weird, please make sure you have a clean setup, if you run:
import t from 'tcomb'
import tf from 'tcomb-form'

if (t === tf) {
  console.log('ok!')
}

you should see the successful output.

I removed the node_modules, re-installed all dependencies and deduped packages -
> const t = require('tcomb')
undefined
> const tf = require('tcomb-form')
undefined
> t === tf
true

But the date field is still rendering as a textfield when importing it from 'tcomb' vs. 'tcomb-form'.
I'll just use 'tcomb-form' for the time being until I figure this out tho.
Thanks for your help and attention!

But the date field is still rendering as a textfield when importing it from 'tcomb' vs. 'tcomb-form'.

This is really disappointing, I don't get what's going on.
In my setup everything is fine and I see the correct behaviour with both the exports.

I'll just use 'tcomb-form' for the time being until I figure this out tho.

Ok, let me know if you need some help (maybe you could post your actual code)

Thanks!

This is really disappointing, I don't get what's going on.

Human error :) It's working as expected now.
I must have been dealing with some stale cache somewhere in the browserify, babelify, uglify transformation.
Your original comment about deduping multiple tcomb imports should have resolved the issue.


How can I reset the value and text of dropdown?

I am using two dropdowns on the single screen and I have to reset the second dropdown when the value of  first dropdown is changed. I tried to use the value prop and bound it to a state variable but the text of the dropdown does not change when state changes.
Am I missing out something here?

I am also having this issue. However my use case is different. For example I have an extra option called 'Create a new team' which when selected performs another task but DOES NOT change the value property for the drop down.
It seems like selecting an options from the drop down is overriding value passed through value property. Please find my Dropdown component below.
            <Dropdown
                            label='Current Team'
                            data={teams}
                            value={selectedTeam.name || ''}
                            baseColor={'rgba(255,255,255, .38)'}
                            textColor={'rgba(255,255,255, .87)'}
                            itemColor={'rgba(0,0,0, .54)'}
                            selectedItemColor={'rgba(0,0,0, .87)'}
                            labelFontSize={14}
                            labelHeight={14}
                            onChangeText={(value, index, data) => this.handleCurrentTeamChange(data[index].team)}
                            containerStyle={MainDrawerStyles.selectTeamContainer}
                        />

The 'this.handleCurrentTeamChange()' is not changing the selectedTeam object but the dropdown is setting 'Create a new team' as the value in the UI.

@tanmaybhatt Hey any luck on a possible workaround?

Yeah, as a workaround I made some changes to
react-native-material-dropdown/src/components/dropdown/index.js
I made these changes to componentWillReceiveProps function which did the thing.
Line 118
componentWillReceiveProps({ value }) {
    if (value !== this.props.value) {
      this.setState({ value });
    }
  }

changed to
componentWillReceiveProps({ value }) {
      this.setState({ value });
  }

I do not know why this worked, maybe something was already changing the props value.
I guess I did not get the time to check the rest of the code.

@tanmaybhatt Thanks for the detailed explanation. I was hoping we didn't need to modify the library. However I did find that this component is storing its value and using the value passed in props. Luckily this isn't a major bug in our app that we are able to push this back a bit.
@n4kz Hey Alexander thanks for the libraries! Any feedback regarding our issue/needs and if this will be looked into for a possible fix?

@tanmaybhatt's changed to worked for me as well.

Thanks for issue and sorry for delayed reply. Described rendering problems are related to PureComponent usage, as Dropdown itself and TextField are based on them. I will implement something like extraData prop on FlatList component, to force re-render of TextField (or any other component used as Dropdown base) in next major releases of TextField and Dropdown.

@n4kz would you accept a PR with @tanmaybhatt's workaround as a temporary patch?

call forceUpdate via the ref exposed by this component

call forceUpdate via the ref exposed by this component

call forceUpdate via the ref exposed by this component

@tvelev92 i tried with forceUpdate but doest not work well. I added a ref like
<Dropdown
                label="Todas las Listas"
                data={this.state.lists}
                baseColor="#86939e"
                itemTextStyle={{ fontWeight: "bold" }}
                fontSize={16}
                textColor="#86939e"
                labelFontSize={15}
                containerStyle={{
                  width: "90%",
                  marginLeft: 20,
                  marginRight: 20
                }}
                value={this.state.selectedList}
                onChangeText={this.selectHandlerList}
                rippleDuration={0}
                ref = {(c) => { this.form.listas = c; }}
              />

and then When I use a handlerEvent to hint to clear fields  from a Button using onPress
handleClearFields = () => {
    this.forms.listas.forceUpdate();    // this does not work anymore.
    for (let key in this.form) {
      this.form[key].clear()
    }

  }

Could you provide to me an working example, please?

I was facing the same problem and I try to find solution like below.Please have a look and no need to update plugin.
{this.props.getAreasSuccessFailure && !this.props.isFetching ?

 : null}

I had the same problem. My solution is add ref and setState on it:
`
constructor(props) {
super(props);
this.myDropdown = null;
}
resetMyDropdown () {
if (this.myDropdown) {
this.myDropdown.setState({ value: '' });
}
}
render() {
return (
<Dropdown
label='Label'
data={data}
value={this.getSelectedName(data)}
ref={c => (this.myDropdown = c)}
/>
);
}
`

Hi,
@tanmaybhatt Facing the same issue. Any update.
"react-native": "0.59.8",
"react-native-modal-dropdown": "^0.7.0",
Any suggestion is appreciable.
Thanks

Hi,
@tanmaybhatt Facing the same issue. Any update.
"react-native": "0.59.8",
"react-native-modal-dropdown": "^0.7.0",
Any suggestion is appreciable.
Thanks

I make that for You at clean RN project:
App.js
import React, {Component} from 'react';
import {Platform, StyleSheet, Text, View} from 'react-native';
import { Dropdown } from 'react-native-material-dropdown';

/* Data for first dropdown */
const firstLevel = [
  { value: 'First option without suboptions', id: 1 },
  { value: 'Second option with single suboption', id: 2 },
  { value: 'Third option with multiple suboptions', id: 3 }
];
/* Data for second dropdown */
const secondLevel = [
  { value: 'First suboption for firstLevel with ID 2', id: 'A', parentId: 2 },
  { value: 'First suboption for firstLevel with ID 3', id: 'B', parentId: 3 },
  { value: 'Second suboption for firstLevel with ID 3', id: 'C', parentId: 3 },
];

type Props = {};
export default class App extends Component<Props> {
  state = {
    idOfFirstDropdownValue: null, // value of first dropdown (id prop from data object)
    idOfSecondDropdownValue: null // value of second dropdown (id prop from data object)
  };
  constructor(props) {
    super(props);
    this.firstDropdown = null; // variable for referring to first dropdown
    this.secondDropdown = null; // variable for referring to second dropdown
  }
  resetDropdown(dropdown) {
   /* dropdown variable for select first dropdown or second dropdown to reset */
    switch (dropdown) {
      case 'second':
        if (this.secondDropdown) {
          this.secondDropdown.setState({ value: '' });
          this.setState({ idOfSecondDropdownValue: null });
        }
        break;
      default:
        if (this.firstDropdown) {
          this.firstDropdown.setState({ value: '' });
          this.setState({ idOfFirstDropdownValue: null });
        }
    }
  }
  render() {
    /* make additional array with filtered second Level */
    const secondLevelData = secondLevel.filter(el => el.parentId === this.state.idOfFirstDropdownValue);
    return (
      <View style={styles.container}>
        <Dropdown
          label='First level dropdown'
          data={firstLevel}
          onChangeText={(value, index, data) => {
            const id = data[index].id;
            this.setState({idOfFirstDropdownValue: id});
            /* Here is call function for reset second dropdown */
            this.resetDropdown('second');
          }}
          containerStyle={{width: '100%'}}
          ref={c => (this.firstDropdown = c)}
        />
        <Dropdown
          label='Second level dropdown'
          data={secondLevelData}
          onChangeText={(value, index, data) => {
            const id = data[index].id;
            this.setState({idOfSecondDropdownValue: id});
          }}
          containerStyle={{width: '100%'}}
          ref={c => (this.secondDropdown = c)}
        />
        <Text>Value of first dropdown: {this.state.idOfFirstDropdownValue}</Text>
        <Text>Value of second dropdown: {this.state.idOfSecondDropdownValue}</Text>
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
  },
  welcome: {
    fontSize: 20,
    textAlign: 'center',
    margin: 10,
  },
  instructions: {
    textAlign: 'center',
    color: '#333333',
    marginBottom: 5,
  },
});

package.json
{
  "name": "Rn59SampleApp",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "react": "16.8.3",
    "react-native": "0.59.8",
    "react-native-material-dropdown": "^0.7.0"
  },
  "devDependencies": {
    "@babel/core": "^7.8.7",
    "@babel/runtime": "^7.8.7",
    "babel-jest": "^25.1.0",
    "jest": "^25.1.0",
    "metro-react-native-babel-preset": "^0.58.0",
    "react-test-renderer": "16.8.3"
  },
  "jest": {
    "preset": "react-native"
  }
}

I cleared it by using the value prop and state. Having 3 dropdowns and if the top one is used it should reset the other two, if the second one is changed it should only reset the third one. Using functional components and useState hook. Sorry about the somewhat messy code, will refactor it but should give you a grasp how to do it
const [pickedCategories, setPickedCategories] = useState('');

const selectedCategories = (name, value) => {
   if (name === 'mainCategory' && pickedCategories.subCategory) {
      setPickedCategories({
        mainCategory: '',
        subCategory: '',
        subSubCategory: '',
      });
    }

    if (
      (name === 'mainCategory' || name === 'subCategory') &&
      (pickedCategories.subCategory || pickedCategories.subSubCategory)
    ) {
      setPickedCategories((prevState) => ({
        ...prevState,
        [name]: '',
        subSubCategory: '',
      }));
    }

    setPickedCategories((prevState) => ({
      ...prevState,
      [name]: value,
    }));
  };

     <Dropdown
        label='Huvudkategori'
        value={pickedCategories.mainCategory}
        data={renderCategories('main')}
        onChangeText={(text) => selectedCategories('mainCategory', text)}
      />

      <Dropdown
        label='Kategori'
        value={pickedCategories.subCategory}
        data={renderCategories('sub')}
        onChangeText={(text) => selectedCategories('subCategory', text)}
      />

      <Dropdown
        label='Underkategori'
        value={pickedCategories.subSubCategory}
        data={renderCategories('subSub')}
        onChangeText={(text) => selectedCategories('subSubCategory', text)}
      />


Mapping two tables in LinqToExcel

Can you check this thread
http://stackoverflow.com/questions/29435203/mapping-two-tables-in-linqtoexcel

You are better-off using excel do data de-normalization before you bring data to c# processing.
Recall I tried to do something similar and was going in circles.

The original SO post is gone. Closing as this issue is now impossible to investigate.


[fix][broker][branch-3.0] Fail fast if the extensible load manager failed to start (#23297)

cherry picked from commit fc60ec06ae98fa4000473a636bfb06729c210048
Motivation
backporting PR #23297 to branch-3.0
Other context
There are some test failures and problems that show up when running LoadManagerFailFastTest
Could someone take over this PR who understands the problems?
in LoadManagerFailFastTest.testServiceUnitStateChannelFailure, there's an continue loop of "Failed to get the channel owner" exceptions:
2024-09-13T07:23:58,402 - WARN  - [pulsar-load-manager-67-1:ExtensibleLoadManagerImpl] - The broker:localhost:56523 failed to set the role. Retrying 10 th ...
java.lang.RuntimeException: Failed to get the channel owner.
	at org.apache.pulsar.broker.loadbalance.extensions.channel.ServiceUnitStateChannelImpl.isChannelOwner(ServiceUnitStateChannelImpl.java:467) ~[classes/:?]
	at org.apache.pulsar.broker.loadbalance.extensions.ExtensibleLoadManagerImpl.playLeader(ExtensibleLoadManagerImpl.java:793) ~[classes/:?]
	at org.apache.pulsar.broker.loadbalance.extensions.ExtensibleLoadManagerImpl.lambda$start$11(ExtensibleLoadManagerImpl.java:334) ~[classes/:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.113.Final.jar:4.1.113.Final]
	at java.lang.Thread.run(Thread.java:840) ~[?:?]
Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Invalid channel state:Closed
	at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396) ~[?:?]
	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2096) ~[?:?]
	at org.apache.pulsar.broker.loadbalance.extensions.channel.ServiceUnitStateChannelImpl.isChannelOwner(ServiceUnitStateChannelImpl.java:462) ~[classes/:?]
	... 9 more
Caused by: java.lang.IllegalStateException: Invalid channel state:Closed
	at org.apache.pulsar.broker.loadbalance.extensions.channel.ServiceUnitStateChannelImpl.getChannelOwnerAsync(ServiceUnitStateChannelImpl.java:441) ~[classes/:?]
	at org.apache.pulsar.broker.loadbalance.extensions.channel.ServiceUnitStateChannelImpl.isChannelOwnerAsync(ServiceUnitStateChannelImpl.java:449) ~[classes/:?]
	at org.apache.pulsar.broker.loadbalance.extensions.channel.ServiceUnitStateChannelImpl.isChannelOwner(ServiceUnitStateChannelImpl.java:462) ~[classes/:?]
	... 9 more
2024-09-13T07:23:58,503 - ERROR - [pulsar-load-manager-67-1:ServiceUnitStateChannelImpl] - Failed to get the channel owner.
java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Invalid channel state:Closed
	at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396) ~[?:?]
	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2096) ~[?:?]
	at org.apache.pulsar.broker.loadbalance.extensions.channel.ServiceUnitStateChannelImpl.isChannelOwner(ServiceUnitStateChannelImpl.java:462) ~[classes/:?]
	at org.apache.pulsar.broker.loadbalance.extensions.ExtensibleLoadManagerImpl.playLeader(ExtensibleLoadManagerImpl.java:793) ~[classes/:?]
	at org.apache.pulsar.broker.loadbalance.extensions.ExtensibleLoadManagerImpl.lambda$start$11(ExtensibleLoadManagerImpl.java:334) ~[classes/:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.113.Final.jar:4.1.113.Final]
	at java.lang.Thread.run(Thread.java:840) ~[?:?]
Caused by: java.lang.IllegalStateException: Invalid channel state:Closed
	at org.apache.pulsar.broker.loadbalance.extensions.channel.ServiceUnitStateChannelImpl.getChannelOwnerAsync(ServiceUnitStateChannelImpl.java:441) ~[classes/:?]
	at org.apache.pulsar.broker.loadbalance.extensions.channel.ServiceUnitStateChannelImpl.isChannelOwnerAsync(ServiceUnitStateChannelImpl.java:449) ~[classes/:?]
	... 10 more

Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

i will work on this tmr.

@lhotari I think some code was not picked. I fixed it.

I see these tests in flaky suite are constantly failing

Flaky tests suiteProcess completed with exit code 1.
--
StreamingEntryReaderTests.testCanCancelReadEntryRequestAndResumeReading: pulsar-broker/src/test/java/org/apache/pulsar/broker/service/streamingdispatch/StreamingEntryReaderTests.java#L311Condition with org.apache.pulsar.broker.service.streamingdispatch.StreamingEntryReaderTests was not fulfilled within 10 seconds.
StreamingEntryReaderTests.testCanReadEntryFromMLedgerWaitingForNewEntry: pulsar-broker/src/test/java/org/apache/pulsar/broker/service/streamingdispatch/StreamingEntryReaderTests.java#L237Condition with org.apache.pulsar.broker.service.streamingdispatch.StreamingEntryReaderTests was not fulfilled within 10 seconds.
StreamingEntryReaderTests.testCanReadEntryFromMLedgerSizeExceededLimit: pulsar-broker/src/test/java/org/apache/pulsar/broker/service/streamingdispatch/StreamingEntryReaderTests.java#L191expected [2] but found [0]
StreamingEntryReaderTests.testCanReadEntryFromMLedgerHappyPath: pulsar-broker/src/test/java/org/apache/pulsar/broker/service/streamingdispatch/StreamingEntryReaderTests.java#L135Condition with org.apache.pulsar.broker.service.streamingdispatch.StreamingEntryReaderTests was not fulfilled within 10 seconds.
StreamingEntryReaderTests.testWillCancelReadAfterExhaustingRetry: pulsar-broker/src/test/java/org/apache/pulsar/broker/service/streamingdispatch/StreamingEntryReaderTests.java#L435expected [8] but found [3]

[Flaky tests suite](https://github.com/apache/pulsar/actions/runs/10858650204/job/30138570112#step:8:2677)
Process completed with exit code 1.
[StreamingEntryReaderTests.testCanCancelReadEntryRequestAndResumeReading: pulsar-broker/src/test/java/org/apache/pulsar/broker/service/streamingdispatch/StreamingEntryReaderTests.java#L311](https://github.com/apache/pulsar/pull/23302/files#annotation_26266780631)
Condition with org.apache.pulsar.broker.service.streamingdispatch.StreamingEntryReaderTests was not fulfilled within 10 seconds.
[StreamingEntryReaderTests.testCanReadEntryFromMLedgerWaitingForNewEntry: pulsar-broker/src/test/java/org/apache/pulsar/broker/service/streamingdispatch/StreamingEntryReaderTests.java#L237](https://github.com/apache/pulsar/pull/23302/files#annotation_26266780634)
Condition with org.apache.pulsar.broker.service.streamingdispatch.StreamingEntryReaderTests was not fulfilled within 10 seconds.
[StreamingEntryReaderTests.testCanReadEntryFromMLedgerSizeExceededLimit: pulsar-broker/src/test/java/org/apache/pulsar/broker/service/streamingdispatch/StreamingEntryReaderTests.java#L191](https://github.com/apache/pulsar/pull/23302/files#annotation_26266780635)
expected [2] but found [0]
[StreamingEntryReaderTests.testCanReadEntryFromMLedgerHappyPath: pulsar-broker/src/test/java/org/apache/pulsar/broker/service/streamingdispatch/StreamingEntryReaderTests.java#L135](https://github.com/apache/pulsar/pull/23302/files#annotation_26266780637)
Condition with org.apache.pulsar.broker.service.streamingdispatch.StreamingEntryReaderTests was not fulfilled within 10 seconds.
[StreamingEntryReaderTests.testWillCancelReadAfterExhaustingRetry: pulsar-broker/src/test/java/org/apache/pulsar/broker/service/streamingdispatch/StreamingEntryReaderTests.java#L435](https://github.com/apache/pulsar/pull/23302/files#annotation_26266780638)
expected [8] but found [3]

Otherwise, LGTM.


undefined is not an object (evaluating 'ReactNativeAudioStreaming.getStatus')

I'm trying to add the player to the sample app that react creates and am getting an exception when running iOS. I installed react-native-audio-streaming using the cocoapod technique and specified the background audio setting.
My component looks like:
import React, { Component } from 'react';
import {
  StyleSheet,
  Text,
  View
} from 'react-native';
import { Player } from 'react-native-audio-streaming';

export default class App extends Component {
  render() {
    return (
      <View style={styles.container}>
        <Text style={styles.welcome}>
          Welcome to React Native!
        </Text>
        <Text style={styles.instructions}>
          To get started, edit index.ios.js
        </Text>
        <Text style={styles.instructions}>
          Press Cmd+R to reload,{'\n'}
          Cmd+D or shake for dev menu
        </Text>
        <Player url={"http://lacavewebradio.chickenkiller.com:8000/stream.mp3"} />
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
  },
  welcome: {
    fontSize: 20,
    textAlign: 'center',
    margin: 10,
  },
  instructions: {
    textAlign: 'center',
    color: '#333333',
    marginBottom: 5,
  },
});

I'm very new to react-native and ios development, so I could very well be missing something trivial :)

Full code to reproduce this is available at https://github.com/dmbstream/mobile

Hi ! Could you please post also the exception ?

Hopefully this helps - please let me know if I can provide anything else
/Users/jgeurts/dev/meetattheshow_mobile/node_modules/react-native-audio-streaming/ios/ReactNativeAudioStreaming.m:1:9: fatal error: 'RCTBridgeModule.h' file not found
#import "RCTBridgeModule.h"
        ^
1 error generated.

=== BUILD TARGET RCTText OF PROJECT RCTText WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET RCTSettings OF PROJECT RCTSettings WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET RCTActionSheet OF PROJECT RCTActionSheet WITH CONFIGURATION Debug ===

Check dependencies

=== BUILD TARGET Pods-MeetAtTheShowTests OF PROJECT Pods WITH CONFIGURATION Debug ===

Check dependencies

** BUILD FAILED **

The following build commands failed:
	CompileC /Users/jgeurts/dev/meetattheshow_mobile/ios/build/Build/Intermediates/Pods.build/Debug-iphonesimulator/RNAudioStreaming.build/Objects-normal/x86_64/ReactNativeAudioStreaming.o /Users/jgeurts/dev/meetattheshow_mobile/node_modules/react-native-audio-streaming/ios/ReactNativeAudioStreaming.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

Weird, did you try the manual installation process ? https://github.com/tlenclos/react-native-audio-streaming#3-manual-installation

I think It has  to do with the JavaScript version

@jgeurts try this react-native link react-native-audio-streaming
and then  react-native run-android

@devvpm The link command completed successfully, but I'm getting the following now:
** BUILD FAILED **

The following build commands failed:

	CompileC /Users/jgeurts/dev/meetattheshow_mobile/ios/build/Build/Intermediates/Pods.build/Debug-iphonesimulator/RNAudioStreaming.build/Objects-normal/x86_64/ReactNativeAudioStreaming.o /Users/jgeurts/dev/meetattheshow_mobile/node_modules/react-native-audio-streaming/ios/ReactNativeAudioStreaming.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

If it makes a difference, I'm using node v6.6.0. Also, I'm not sure if it matters, but when I modified the Podfile for the iOS project, I linked to node_modules as: pod 'RNAudioStreaming', :path => '../node_modules/react-native-audio-streaming' - Notice the .. before node_modules.

@jgeurts
That worked for me in Android,
Check this link for iOS.
Linking Libraries - iOS

@jgeurts
That worked for me in Android,
Check this link for iOS.
Linking Libraries - iOS

Hi,
i wonder i have a similar issue. Indeed when i try to use ReactNativeAudioStreaming in this case:
let songsDataSource = new ListView.DataSource({ rowHasChanged: (r1, r2) => r1 !== r2 }).cloneWithRows( this.props.artist.songs );             return(                 <ListView                     dataSource={ songsDataSource }                     style={ styles.songsList }                     renderHeader={this.renderHeaderSongList.bind(this)}                     renderRow={(song, sectionId, rowId) => (                   <TouchableHighlight onPress={ () => {                       this.setState({selectedSource: song.url});                       {ReactNativeAudioStreaming.play(song.url, {})}                   }}>                     <View key={song} style={ styles.song }>                       <Text style={ styles.songTitle }>                         { song.url }                       </Text>                       <Text style={ styles.albumTitle }>                         { song.album }                       </Text>                     </View>                   </TouchableHighlight>                  )}                 />             );
i have the same problem with :
undefined is not an object (evaluating '_reactNativeAudioStreaming.ReactNativeAudioStreaming.play')
I installed it with react native link and i followed all the instruction. Note: The link libraries that i had are: libStreamingKit.a and libPods-ReactNativeAudioStreaming.a (not libReactNativeAudioStreaming.a ). Could it be a problem?

same problem:
BUILD SUCCEEDED in console but :
undefined is not an object (evaluating '_reactNativeAudioStreaming.ReactNativeAudioStreaming.play')

use the manual way (3rd option) to solve this

@zerbfra Nothing changed. Still getting the same error. Tried all ways of installation

any updates on this? i'm getting the same error

I´m having the same issue on Android
"react-native": "0.45.1",

The example project works. What else is different in the setup? (I'm having trouble with android)

I used the 2nd method for IOS and got this error too, and it was because I was unable to add lib-ReactNativeAudioStreaming.a ( I only had the option for libPods-ReactNativeAudioStreaming under Link Binary with Libraries, and I found that I needed to add ReactNativeAudioStreaming.xcodeproj under Libraries in order to have the correct option. Once I did that it ran just fine.

@tb9jen Hey, this worked for me. So, thanks. I think many folks here are getting stuck up with the libPods-ReactNativeAudioStreaming vs lib-ReactNativeAudioStreaming.
FYI - I used install option #2.

Hi, the same thing for me, someone solved this ?

Same issue

@tb9jen you saved me :) Dragging ReactNativeAudioStreaming.xcodeproj inside project did the trick. Thanks!

Tried all installation types and I still get same error

I have the same issue ../native/React/Base/RCTBridgeModule.h:54:16: Redefinition of 'RCTMethodInfo'

@kostyaVyrodov @JoseArceDev - to solve that issue I had to use an older version of React Native. This is what I have in my package.json for the test I did:
"react-native": "0.47.2"


Upgrade to go 1.22

Bumping dependencies at the same time.

General maintenance review, please, @pastuxso.

LGTM.

Build and tests are working fine :ok_hand:


Fixed link to Ethereum Consortium Blockchain Network

The link was pointing to an older revision.  Changed it to the latest on the master branch.

Hi @sidkri, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

It looks like you're working at Microsoft (sidkri). If you're full-time, we DON'T require a contribution license agreement.

If you are a vendor, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;

Please expedite as users will be directed to a page that does not work for Azure Govt.

#sign-off

@Ryansoc @zakramer to review and approve

#sign-off


As a pipeline node, I want to have access to a unique pipeline run id

Is your feature request related to a problem? Please describe.
This feature request was initially raised by @simon-streamotion in https://github.com/elyra-ai/elyra/discussions/1686.
Describe the solution you'd like

During [local, kfp, airflow] pipeline processing, each pipeline node shall have access to an identifier that is unique for each pipeline run irrespective of how it was started. For example, a pipeline run can be started via the Elyra GUI, via the Elyra CLI, via the KFP UI, via the KFP CLI, etc. This implies that the identifier value is unknown until the pipeline is executed, and can therefore not be generated in advance, e.g. during pipeline pre-processing.
The identifier shall be a string that is made available to every pipeline node via an environment variable, e.g. ELYRA_RUN_ID.
If possible, that identifier shall include the pipeline name to enable the user to associate the identifier with the entity that is associated with it.

Describe alternatives you've considered
No workarounds come to mind.

Example pipeline that comprises of a notebook, Python script, and R script that display the value of an environment variable named PIPELINE_RUN_ID: i1702-example-pipeline.tar.gz

This can be probably delivered in multiple PRs, one for each runtime environment because changes will have to touch multiple repositories anyways (elyra for local, elyra and kfp-notebook for kfp, and elyra and airflow-notebook for airflow)

Example pipeline that comprises of a notebook, Python script, and R script that display the value of an environment variable named ELYRA_PIPELINE_RUN_ID:

Your example uses ELYRA_RUN_ID.   I think ELYRA_RUN_ID is perfectly fine, but previous comments should perhaps be edited so we're consistent.
I do have concerns about how to support invocations "via the KFP UI, [and] via the KFP CLI" since these do not go through the Elyra server.  Also, is there a requirement to have this env available to nodes for operations/components that we do not control (i.e., those that are not Notebook, Python-script, or R-script nodes)?
Forgetting about non-elyra operations/components for the moment, it seems we'd need to have some persistent and well-known entity that is available to all nodes of a pipeline where the first writer (node) wins since we have no runtime-provided ID until then (assuming I'm understanding the sequencing here).  However, you can still have race conditions if there are multiple nodes w/o inputs, and I'm not sure how to go about resolving that in this kind of environment.
How strict is the requirement for native invocations?  I'm curious how we handle the cos-directory in those cases anyway since today's "run ID" is - set by the server?

Your example uses ELYRA_RUN_ID. I think ELYRA_RUN_ID is perfectly fine, but previous comments should perhaps be edited so we're consistent.

Done.

I do have concerns about how to support invocations "via the KFP UI, [and] via the KFP CLI" since these do not go through the Elyra server.

There are two keys that are combined to produce ELYRA_RUN_ID:

The first key is generated when a pipeline is submitted or exported in Elyra. It is derived from the pipeline name and therefore known to the user. This key is static, embedded in the pipeline spec,  and remains the same no matter how many times a user runs a pipeline using the KFP UI/CLI. (Running a pipeline using the KFP UI/CLI requires a prior export in Elyra, hence the key is guaranteed to exist.)
The second key is generated by KFP before the pipeline nodes are processed and remains the same for all nodes in this pipeline. This key does change every time a pipeline is executed in KFP, which gives use the ability to generate a unique key for each run in KFP.
The Elyra "notebook" operator has access to both keys and combines them.

It pretty much works the same for Airflow. The only difference is (as far as I can tell) that Airflow doesn't generate an ID but uses a timestamp instead to identify a DAG run.
Examples of what the key would look like:
Run in Elyra:

user runs pipeline from Elyra UI for the first time: <pipeline-id>-<kfp-generated-key-1>
user runs the same pipeline from Elyra UI for the second time: <pipeline-id-timestamp>-<kfp-generated-key-2>

Run in KFP:

user exports pipeline from Elyra UI for the first: <pipeline-id>
user loads pipeline into KFP (either using the SDK or importing the YAML)
user runs loaded pipeline (either using the SDK or using the KFP UI): <pipeline-id>-<kfp-generated-key-1>
user runs loaded pipeline again (either by running the DSL or using the KFP UI): <pipeline-id>-<kfp-generated-key-2>

Also, is there a requirement to have this env available to nodes for operations/components that we do not control (i.e., those that are not Notebook, Python-script, or R-script nodes)?

Not explicitly, but since the component support is still a WIP I have not started to investigate whether this is possible. Even if it is not, there's probably still value in supporting this only for the file-based ops across all runtimes.

Forgetting about non-elyra operations/components for the moment, it seems we'd need to have some persistent and well-known entity that is available to all nodes of a pipeline where the first writer (node) wins since we have no runtime-provided ID until then (assuming I'm understanding the sequencing here).  [...]

See answer above.

How strict is the requirement for native invocations? I'm curious how we handle the cos-directory in those cases anyway since today's "run ID" is - set by the server?

I derived this as an implicit requirement for the sake of consistency. If the ELYRA_RUN_ID environment variable is not defined during local execution, then the user would have to add runtime environment specific code to the node's file. ("Use ELYRA_RUN_ID when running on KFP/AA, something else otherwise.")
For local execution ELYRA_RUN_ID could be created on the fly using uuid.uuid4() before the first pipeline node is run.

Thanks for the explicit details.  It had slipped my mind that the "pipeline-id" portion is available in our NotebookOp operators in the form of the cos-directory option (although that might change).  cos-directory is derived from pipeline-name yet pipeline name is not (currently) conveyed to the bootstrapper - where we need it.  Therefore, it seems like we should introduce a --pipeline-name CLI option to the bootstrapper so the two properties are distinct.
Since it sounds like the lack of support for this feature in third-party components isn't a show-stopper, we could combine the pipeline-name and KFP_RUN_ID_PLACEHOLDER from the current environment to compose ELYRA_RUN_ID - as you suggest.  However, if we have no ability to hook into a third-party component in order to set ELYRA_RUN_ID before the component's process runs (if there is one), then I don't see this happening for "other" components.  Frankly, the runtime providers should provide a general "prefixing" capability for these kinds of values.
Do you know what the equivalent to KFP_RUN_ID_PLACEHOLDER is in Airflow?  If not, it might be helpful to dump (sorted) the env in a few nodes of a given pipeline run to try to find out (and if it's not apparent from docs).

Therefore, it seems like we should introduce a --pipeline-name CLI option to the bootstrapper so the two properties are distinct.

Yep.

Do you know what the equivalent to KFP_RUN_ID_PLACEHOLDER is in Airflow?

I found this but haven't had a chance to try it out since it requires rebuilding the airflow image (and we have only one server):
https://stackoverflow.com/questions/55796959/how-to-reference-a-dags-execution-date-inside-of-a-kubernetespodoperator

Yep.

Unfortunately I might have to take that back because of semantics. For KFP we'll need to pass the pipeline version identifier because the pipeline name remains the same for each submission:

user creates new pipeline mypipeline.pipeline
user runs pipeline for the first time using the VPE

Elyra uploads pipeline mypipeline to KF using pipeline name mypipeline and pipeline version mypipeline.

user runs pipeline again using VPE

Elyra uploads pipeline mypipeline to KF using pipeline name mypipeline and pipeline version mypipeline-<timestamp>.

This is what it looks like after the same pipeline was run three times from the VPE:

Therefore, it seems like we should introduce a --pipeline-name CLI option to the bootstrapper so the two properties are distinct.

~Yep.~ Sorry, we actually don't have to do that. It's easier to just attach the environment variable to the container that runs the bootstrapper. Therefore only the NotebookOp needs to be changed. (I did this in a prototype)

Do you mean the bootstrapper?  The NotebookOp doesn't have access to the runtime-specific ID value - right?  The bootstrapper script (running in the image) is what drives the notebook through the papermill process or the python script through the python process and, only it would have the knowledge for how to compose ELYRA_RUN_ID.
If by "attach the environment variable to the container" you mean to partially add ELYRA_RUN_ID (up to where the runtime-specific ID would be appended), I guess you're right, but where, in this scenario, does the placeholder value come from?

The KFP SDK defines a placeholder that is substituted at runtime.
See https://github.com/ptitzler/kfp-notebook/blob/expose-run-id-demo/kfp_notebook/pipeline/_notebook_op.py#L245-L252 for the code that produces the env variable. When you export a pipeline to YAML you can see what gets executed when the container is run and which environment variables are defined that are accessible to all processes:
  container:
      args: ['mkdir -p ./jupyter-work-dir/ && cd ./jupyter-work-dir/ && curl -H "Cache-Control:
          no-cache" -L https://raw.githubusercontent.com/elyra-ai/kfp-notebook/master/etc/docker-scripts/bootstrapper.py
          --output bootstrapper.py && curl -H "Cache-Control: no-cache" -L https://raw.githubusercontent.com/elyra-ai/kfp-notebook/master/etc/requirements-elyra.txt
          --output requirements-elyra.txt && python3 -m pip install  packaging &&
          python3 -m pip freeze > requirements-current.txt && python3 bootstrapper.py
          --cos-endpoint ... --cos-bucket ...
          --cos-directory "..." --cos-dependencies-archive "..."
          --file "getenv.ipynb" ']
      command: [sh, -c]
      env:
      - {name: KFP_RUN_ID_PLACEHOLDER, value: ''}
      - {name: ELYRA_RUNTIME_ENV, value: ''}
      - {name: AWS_ACCESS_KEY_ID, value: ...}
      - {name: AWS_SECRET_ACCESS_KEY, value: ...}
      - name: ELYRA_ENABLE_PIPELINE_INFO
        value: "True"
      - {name: ELYRA_WRITABLE_CONTAINER_DIR, value: /tmp}
      - {name: ELYRA_RUN_ID, value: 'use_run_id-0526162914-{{workflow.uid}}'}
      image: quay.io/ptitzler/pandas
      imagePullPolicy: IfNotPresent

You'll notice that the ELYRA_RUNTIME_ENV variable you've introduced in https://github.com/elyra-ai/elyra/pull/1668 gets injected the same way. (Above output was produced using a build that does not include the fix, hence the variable value is empty)

I didn't realize there was an actual "placeholder".  This makes sense and, yes, alleviates the need for updating the bootstrapper.
Since you're already implementing this, please assign yourself the issue.  We were going to be duplicating efforts here and neither of us has time for that.


[ml] Update changelog to include return of SDK logging

Description
Updating CHANGELOG for 1.5.0 release to note added dependency and re-enabled SDK telemetry
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:

[x] The pull request does not introduce [breaking changes]
[x] CHANGELOG is updated for new features, bug fixes or other significant changes.
[x] I have read the contribution guidelines.

General Guidelines and Best Practices

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[x] Pull request includes test coverage for the included changes. (N/A)

API change check
API changes are not detected in this pull request.


Unix Socket in config causes issues with install

Great boilerplate! It's really helped me get to grips with AngularJS.
The default socket in starter-laravel-angular/config/database.php will throw people who are installing this without xampp. Can it be removed by default?

2nded, had to remove it to run migrations on linux.

Thanks! Have fun with Laravel and AngularJS.


Fix expected error message TRANSMETA_ESTIMATE_03

Fix expected error message.
Issue Number
ADP-2269

I think the error code is more important than the message. Can we add an expectation for that too?


discord.com login page does not work

When you enter discord.com and click on the login page, everything renders properly but the login button does not redirect you to discord. It just stays on the login page. Why is this so?

Thats a proxy issue


feat: persist pinned tabs

What does this PR do?
Enables persistence of pinned buffers across sessions.
Summary of changes
Adds globals to session opts

thank you!


User collection edit/delete pages now show username linked to user's collections in breadcrumbs. Fixed. (bug 598504)

Breadcrumbs on collections.edit and collections.delete were missing collection owner's name in the breadcrumbs.
https://bugzilla.mozilla.org/show_bug.cgi?id=598504
Bug fixed. And tests added.

Everything fixed. Suggested changes made. Commits squashed.
Please review.


jck: run headless tests on alpine

No issue at IBM internal side : Grinder/20204.

@gdams - Can this be taken out of draft?

@ShelleyLambert using the keyword seemed to work! This one is ready for merge now!