Add missing min/max, comparison and permutation operations of C++ algorithm library

Adds most of the missing minimum/maximum operations, comparison operations and permutation operations of the algorithm library (<= C++17):

minmax, minmax_element (C++11), clamp (C++17) and one missing overload of min/max_element.
equal, lexicographical_compare
is_permutation, next_permutation, prev_permutation

Hmm, I can reproduce the failing tests on macOS with Apple Clang++ 12.0.0:
#include <vector>
#include <algorithm>

bool comp(int a, int b){ return a == b; }

int main(){
	std::vector<int> v1{1,2,3,4}, v2{4,2,3,1};

	// 2
	std::is_permutation<std::vector<int>::iterator, std::vector<int>::iterator, bool (int, int)>(v1.begin(), v1.end(), v2.begin(), comp);

	// 3
	std::is_permutation<std::vector<int>::iterator, std::vector<int>::iterator, bool (int, int)>(v1.begin(), v1.end(), v2.begin(), v2.end(), comp);

	return 0;
}

compiling with -std=c++14 -Wall flags yields
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/vector:274:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__bit_reference:15:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:1471:12: error: no matching function for call to '__is_permutation'
    return _VSTD::__is_permutation<typename add_lvalue_reference<_BinaryPredicate>::type>
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/__config:840:15: note: expanded from macro '_VSTD'
#define _VSTD std::_LIBCPP_ABI_NAMESPACE
              ^
/Users/jonathan/Desktop/bla.cpp:17:7: note: in instantiation of function template specialization 'std::__1::is_permutation<std::__1::__wrap_iter<int *>, std::__1::__wrap_iter<int *>, bool (int, int)>' requested here
        std::is_permutation<std::vector<int>::iterator,
             ^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:1451:1: note: candidate function template not viable: no known conversion from 'bool (*)(int, int)' to 'bool (&)(int, int)' for 5th argument; dereference the argument with *
__is_permutation(_RandomAccessIterator1 __first1, _RandomAccessIterator2 __last1,
^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:1398:1: note: candidate function template not viable: no known conversion from 'bool (*)(int, int)' to 'bool (&)(int, int)' for 5th argument; dereference the argument with *
__is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1,
^
1 error generated.

However, It compiles without any warnings on macOS with gcc-11. The same holds for non-Apple Clang, see the godbolt snippet here.
@scoder Any ideas on how we should handle this?

we should handle this?

https://github.com/cython/cython/blob/master/tests/macos_cpp_bugs.txt

What do you think? Is it ready to be merged?

Thanks


Patch the encodingHandler in the handler chain

Unless I missed something, the encodingHandler wasn't patched into the handler chain.

Looks that way indeed. Thanks!


bletest build errors

I want to use apps/bletest，but there were some errors
Compiling repos/apache-mynewt-core/hw/bsp/nordic_pca10040/src/hal_bsp.c
Assembling repos/apache-mynewt-core/hw/bsp/nordic_pca10040/src/arch/cortex_m4/gcc_startup_nrf52.s
Assembling repos/apache-mynewt-core/hw/bsp/nordic_pca10040/src/arch/cortex_m4/gcc_startup_nrf52_split.s
Error: repos/apache-mynewt-nimble/apps/bletest/src/bletest_hci.c: In function 'bletest_send_ltk_req_neg_reply':
repos/apache-mynewt-nimble/apps/bletest/src/bletest_hci.c:84:28: error: passing argument 1 of 'ble_hs_hci_cmd_tx' makes integer from pointer without a cast [-Werror=int-conversion]
     rc = ble_hs_hci_cmd_tx(buf, &ack_conn_handle, 2, &rsplen);
                            ^
In file included from repos/apache-mynewt-nimble/nimble/host/include/../src/ble_hs_priv.h:30:0,
                 from repos/apache-mynewt-nimble/apps/bletest/src/bletest_hci.c:39:
repos/apache-mynewt-nimble/nimble/host/include/../src/ble_hs_hci_priv.h:74:5: note: expected 'uint16_t {aka short unsigned int}' but argument is of type 'uint8_t * {aka unsigned char *}'
 int ble_hs_hci_cmd_tx(uint16_t opcode, void *cmd, uint8_t cmd_len,
     ^
repos/apache-mynewt-nimble/apps/bletest/src/bletest_hci.c:84:10: error: too few arguments to function 'ble_hs_hci_cmd_tx'
     rc = ble_hs_hci_cmd_tx(buf, &ack_conn_handle, 2, &rsplen);
          ^
In file included from repos/apache-mynewt-nimble/nimble/host/include/../src/ble_hs_priv.h:30:0,
                 from repos/apache-mynewt-nimble/apps/bletest/src/bletest_hci.c:39:
repos/apache-mynewt-nimble/nimble/host/include/../src/ble_hs_hci_priv.h:74:5: note: declared here
 int ble_hs_hci_cmd_tx(uint16_t opcode, void *cmd, uint8_t cmd_len,
     ^
repos/apache-mynewt-nimble/apps/bletest/src/bletest_hci.c: In function 'bletest_send_ltk_req_reply':
repos/apache-mynewt-nimble/apps/bletest/src/bletest_hci.c:107:28: error: passing argument 1 of 'ble_hs_hci_cmd_tx' makes integer from pointer without a cast [-Werror=int-conversion]
     rc = ble_hs_hci_cmd_tx(buf, &ack_conn_handle, sizeof ack_conn_handle,
                            ^
In file included from repos/apache-mynewt-nimble/nimble/host/include/../src/ble_hs_priv.h:30:0,
                 from repos/apache-mynewt-nimble/apps/bletest/src/bletest_hci.c:39:
repos/apache-mynewt-nimble/nimble/host/include/../src/ble_hs_hci_priv.h:74:5: note: expected 'uint16_t {aka short unsigned int}' but argument is of type 'uint8_t * {aka unsigned char *}'
 int ble_hs_hci_cmd_tx(uint16_t opcode, void *cmd, uint8_t cmd_len,
     ^
repos/apache-mynewt-nimble/apps/bletest/src/bletest_hci.c:107:10: error: too few arguments to function 'ble_hs_hci_cmd_tx'
     rc = ble_hs_hci_cmd_tx(buf, &ack_conn_handle, sizeof ack_conn_handle,
          ^
In file included from repos/apache-mynewt-nimble/nimble/host/include/../src/ble_hs_priv.h:30:0,
                 from repos/apache-mynewt-nimble/apps/bletest/src/bletest_hci.c:39:
repos/apache-mynewt-nimble/nimble/host/include/../src/ble_hs_hci_priv.h:74:5: note: declared here
 int ble_hs_hci_cmd_tx(uint16_t opcode, void *cmd, uint8_t cmd_len,

Hi,
bletest is really rusty app that was used initially for controller testing, but now we have other better tools for testing this (blehci used with linux host and/or harmony tester).
I think we should just remove bletest
PR sent https://github.com/apache/mynewt-nimble/pull/409


Address complex method initSelection() in addon/components/sl-select.js

https://codeclimate.com/github/softlayer/sl-ember-components/issues/categories/complexity

@notmessenger This issue no longer shows up on code climate. However, it doesn't look like there have been any major changes to the function, other than converting to fat arrow function notation. Could it be that code climate doesn't recognize these functions properly?

Replaced by https://github.com/softlayer/sl-ember-components/issues/456


visualization tool does not work?

I think, the visualization tool does not work.

@RDEVIDTS ,
you are right, there are still problems with tx.fhir.org, the international FHIR terminology server.

@RDEVIDTS ,
there was some additional problem, which we have solved now.


libxkbcommon: 0.7.2 → 0.8.0

Motivation for this change
Updated, converted to meson and removed flex (not needed since 0.3.1).
https://github.com/xkbcommon/libxkbcommon/blob/b82e3b764e60df337ca695e8f8642e7bf42b0cca/NEWS#L1-L19
cc @garbas @ttuegel
Things done

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

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

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

Success on aarch64-linux (full log)
Partial log (click to expand)
shrinking RPATHs of ELF executables and libraries in /nix/store/gn1zac53zn0kzw058603d0mvn17c5az3-libxkbcommon-0.8.0-dev
strip is /nix/store/xmpjypwjmp2qi1chs5kr0hacnh161ls4-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/gn1zac53zn0kzw058603d0mvn17c5az3-libxkbcommon-0.8.0-dev/lib
patching script interpreter paths in /nix/store/gn1zac53zn0kzw058603d0mvn17c5az3-libxkbcommon-0.8.0-dev
checking for references to /build in /nix/store/gn1zac53zn0kzw058603d0mvn17c5az3-libxkbcommon-0.8.0-dev...
shrinking RPATHs of ELF executables and libraries in /nix/store/58p7g49k5jcsp4czs7n69r24651gbk01-libxkbcommon-0.8.0-doc
strip is /nix/store/xmpjypwjmp2qi1chs5kr0hacnh161ls4-binutils-2.28.1/bin/strip
patching script interpreter paths in /nix/store/58p7g49k5jcsp4czs7n69r24651gbk01-libxkbcommon-0.8.0-doc
checking for references to /build in /nix/store/58p7g49k5jcsp4czs7n69r24651gbk01-libxkbcommon-0.8.0-doc...
/nix/store/kzkga88g090zdy3qkncl33iwgylkq0np-libxkbcommon-0.8.0

Success on x86_64-linux (full log)
Partial log (click to expand)
shrinking RPATHs of ELF executables and libraries in /nix/store/y8b0ibk40r0p3nvsy11fvljn5zmqs0wz-libxkbcommon-0.8.0-dev
strip is /nix/store/5qj61lcvzlap87rf6blvf8p577d482bv-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/y8b0ibk40r0p3nvsy11fvljn5zmqs0wz-libxkbcommon-0.8.0-dev/lib
patching script interpreter paths in /nix/store/y8b0ibk40r0p3nvsy11fvljn5zmqs0wz-libxkbcommon-0.8.0-dev
checking for references to /tmp/nix-build-libxkbcommon-0.8.0.drv-0 in /nix/store/y8b0ibk40r0p3nvsy11fvljn5zmqs0wz-libxkbcommon-0.8.0-dev...
shrinking RPATHs of ELF executables and libraries in /nix/store/hf33mxg8i99vkpv44agg0fskd0ircxjp-libxkbcommon-0.8.0-doc
strip is /nix/store/5qj61lcvzlap87rf6blvf8p577d482bv-binutils-2.28.1/bin/strip
patching script interpreter paths in /nix/store/hf33mxg8i99vkpv44agg0fskd0ircxjp-libxkbcommon-0.8.0-doc
checking for references to /tmp/nix-build-libxkbcommon-0.8.0.drv-0 in /nix/store/hf33mxg8i99vkpv44agg0fskd0ircxjp-libxkbcommon-0.8.0-doc...
/nix/store/a3nkw58hx6v98pz5g7dbgw7n66l9w628-libxkbcommon-0.8.0

Failure on x86_64-darwin (full log)
Partial log (click to expand)
[32/94] Compiling C object<EMAIL_ADDRESS>[33/94] Linking static target libxkbcommon-internal.a.
[34/94] Linking target libxkbcommon.0.dylib.
FAILED: libxkbcommon.0.dylib
clang  -o libxkbcommon.0.dylib  -Wl,-headerpad_max_install_names -shared -install_name @rpath/libxkbcommon.0.dylib -Wl,-force_load libxkbcommon-internal.a -Wl,--version-script=/private/tmp/nix-build-libxkbcommon-0.8.0.drv-0/libxkbcommon-0.8.0/xkbcommon.map
ld: unknown option: --version-script=/private/tmp/nix-build-libxkbcommon-0.8.0.drv-0/libxkbcommon-0.8.0/xkbcommon.map
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
builder for '/nix/store/n4jwn13fksg6z945waxslmmxsihf49yz-libxkbcommon-0.8.0.drv' failed with exit code 1
error: build of '/nix/store/n4jwn13fksg6z945waxslmmxsihf49yz-libxkbcommon-0.8.0.drv' failed

The failure on x86_64-darwin seems to be an upstream regression.

I've committed a fix: https://github.com/xkbcommon/libxkbcommon/commit/edb1c662394578a54b7bbed231d918925e5d8150
I'm not able to test it, but I think it should work. I can prepare a release if necessary.

Success on x86_64-linux (full log)
Partial log (click to expand)
shrinking RPATHs of ELF executables and libraries in /nix/store/y65lcichppa9x2yfg92zs7k30n5zvkdk-libxkbcommon-0.8.0-dev
strip is /nix/store/adidfx4pa7vmvby0gjqqmiwg2x49yr27-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/y65lcichppa9x2yfg92zs7k30n5zvkdk-libxkbcommon-0.8.0-dev/lib
patching script interpreter paths in /nix/store/y65lcichppa9x2yfg92zs7k30n5zvkdk-libxkbcommon-0.8.0-dev
checking for references to /tmp/nix-build-libxkbcommon-0.8.0.drv-0 in /nix/store/y65lcichppa9x2yfg92zs7k30n5zvkdk-libxkbcommon-0.8.0-dev...
shrinking RPATHs of ELF executables and libraries in /nix/store/2lq09aks1a7k2q16j12y8r5xz3gjw469-libxkbcommon-0.8.0-doc
strip is /nix/store/adidfx4pa7vmvby0gjqqmiwg2x49yr27-binutils-2.28.1/bin/strip
patching script interpreter paths in /nix/store/2lq09aks1a7k2q16j12y8r5xz3gjw469-libxkbcommon-0.8.0-doc
checking for references to /tmp/nix-build-libxkbcommon-0.8.0.drv-0 in /nix/store/2lq09aks1a7k2q16j12y8r5xz3gjw469-libxkbcommon-0.8.0-doc...
/nix/store/2qb4ckw5da6m12fif7r0kgrakbkylqdi-libxkbcommon-0.8.0

Success on aarch64-linux (full log)
Partial log (click to expand)
shrinking RPATHs of ELF executables and libraries in /nix/store/jg8df0apgk9fh2rwlfg83fylv1b66x9l-libxkbcommon-0.8.0-dev
strip is /nix/store/skd6ix5ipkyhxzq7naylj4digawakl4j-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/jg8df0apgk9fh2rwlfg83fylv1b66x9l-libxkbcommon-0.8.0-dev/lib
patching script interpreter paths in /nix/store/jg8df0apgk9fh2rwlfg83fylv1b66x9l-libxkbcommon-0.8.0-dev
checking for references to /build in /nix/store/jg8df0apgk9fh2rwlfg83fylv1b66x9l-libxkbcommon-0.8.0-dev...
shrinking RPATHs of ELF executables and libraries in /nix/store/wz2dhki03b7j8pbbadfbn1yx2pzwmh6x-libxkbcommon-0.8.0-doc
strip is /nix/store/skd6ix5ipkyhxzq7naylj4digawakl4j-binutils-2.28.1/bin/strip
patching script interpreter paths in /nix/store/wz2dhki03b7j8pbbadfbn1yx2pzwmh6x-libxkbcommon-0.8.0-doc
checking for references to /build in /nix/store/wz2dhki03b7j8pbbadfbn1yx2pzwmh6x-libxkbcommon-0.8.0-doc...
/nix/store/rrq7f51svyzalh8qrhfy9q7fpkpk98k1-libxkbcommon-0.8.0


doc: add commit message template

It is observed that commit message template followed by the
cortx-hare team and that by some of the community members (e.g.
SAGE) is different. It is important to have a single template
that is followed by everyone. Although there alreay existed a
commit message template in Hare documentation, there seems to be
some difference of opinion. This PR is a means to acheive a
consesus on the same.
Solution:
Modify the existing commit message template documentation to
incorporate some changes followed by linux open source community.
idea is to have a crisp and clear commit message clearly describing
the problem and solution that helps simplify the reviewer's job.
Signed-off-by: Mandar Sawant<EMAIL_ADDRESS>
View rendered rfc/9/README.md

@mssawant Can we consider adding the actual template to our source folder instead (so that git would force the users to use the proper text just automatically, see https://alex-wasik.medium.com/create-a-custom-git-commit-template-84468232a459 as an idea).
The problem with the documentation is that nobody will read it. We don't want to force the people to read more, we're just interested in the result (i.e. well-looking commit messages). So let's help the people.

@knekrasov, good idea! let me try..

@mssawant is this PR required now? need to merge to latest main?

@SwapnilGaonkar7 @mssawant  can anyone of you rebase and merge this PR?

Can one of the admins verify this patch?

Closing as an obsolete


Custom Logger Bug

Issue Description
Error messages being logged to Google Analytics as a screen view.

Fixed in commit 5c0ac10, will take effect in version 2.3+


Add support for SortedSet in ListArrayType

The ListArrayType supports List and Setm but it could also support SortedSet.

Fixed.


Add field mapping for Patient - multipleBirth:multipleBirthInteger

Added the multiple birth integer field to the Paitent java class, hibernate, and script files.


[debug-utils] Split deleteAllDebugUses(ValueBase *) into SILValue and…

… SILInstruction variants.
The SILInstruction variant calls the SILValue version for each of its results.

@swift-ci smoke test


add support for steering servo and throttle PWM

This ticket will be done when

[ ] The teensy accepts ackermann_msgs/AckermannDrive.msg (stamped version in the future maybe?)
[ ] Takes the steering_angle and maps it to a pwm servo command
[ ] The pwm servo command move the servo
[ ] Takes the speed and maps it to a pwm throttle command
[ ] The pwm throttle command throttles the esc

This ticket DOES NOT include ensuring those commands are correct according to the steering or throttle model, nor correctly calibrated. It also does not include using the steering_angle_velocity, accleration, or jerk. Those will require pid loops.
@kiran-mohan to write the follow on tickets.

Moving to pivotal.

https://www.pivotaltracker.com/story/show/156980510


(WIP) rpc: fix some failing tests and syncing

This PR fixes some tests that broke as a result of the switch to RPC.  It also updates logic in handleMsgRelayBlock to fix some elements of syncing that were broken by the change.  Unfortunately, this PR breaks the final check in TestMsgRelayBlock.  This seems to have to do with how handleMsgRelayBlock returns the passed msg instead of history from the syncer's chain manager like it used to.  Implementing the old logic causes syncing problems elsewhere so I am unsure of what the solution to this problem is.

Ok, I grouped this with some other fixes and pushed to the rpc branch. I realized that most of the broken tests are broken because they're not really compatible with the RPC model. In the old "state machine" model both requests and responses were handled by (Syncer).handleMessage. In the RPC model, (Syncer).handleRequest only handles requests. Responses are handled elsewhere as needed -- currently, all of the responses relate to syncing, so they're handled in syncToTarget.
We have decent test coverage on syncToTarget already, but it's indirect. We should probably write a TestSyncToTarget test that calls syncToTarget directly with various arguments and observes the resulting effects. You can model some of the test cases after the (now deleted) TestMsgHeaders, TestMsgBlocks, TestMsgRelayBlock, and TestMultiplePeers.

Calling syncToTarget directly causes some crashes relating to mutexes that I was not able to solve.  I think it's simpler to add more cases to TestSyncer (which my latest commit does) that add some additional, albeit indirect coverage for syncToTarget.


Publish a new release with the latest changes

Hi,
Some people I know would like to use some of the changes you merged yesterday.
Could you please vsce publish a new version?

Hi,
Some people I know would like to use some of the changes you merged yesterday.
Could you please vsce publish a new version?

ca6b59353d1ba97507a7ff32fe1dbbd6b0d0056c https ca6b59353d1ba97507a7ff32fe1dbbd6b0d0056c


Adds pg_stats_statements extension.

Now able to gather statistical information about which
queries use the most resources.
Issue #HAV-11
Signed-off-by: Christopher Mundus<EMAIL_ADDRESS>

Sweet! Thanks for figuring this out, the conf file stuff is where I ran out of steam before.
If we end up wanting to use this in prod on RDS I found these notes on configuring RDS parameters similarly. I think having this available in dev only is a big win for now, just noting in case we need this in the future https://pganalyze.com/docs/install/amazon_rds/01_configure_rds_instance


Update to work with Cronitor API v3

Thanks to excellent docs on the breaking changes from v1 to v2 & v3, we now support the most recent version of the Cronitor monitor API.
Closes #13

@ziad-abdo this should fix things up for you. I’m going to go ahead & release it as v3.0.0, since it is breaking in terms of some of its support for things.
You’ll need to update your code to submit different values; check the updated example in the README.


Delayed response streaming

StreamingResponse starts streaming the generated words when all the text is generated by LLM.
# code from vllm/entrypoints/api_server.py

    # Streaming case
    async def stream_results() -> AsyncGenerator[bytes, None]:
        async for request_output in results_generator:
            prompt = request_output.prompt
            text_outputs = [
                prompt + output.text for output in request_output.outputs
            ]
            ret = {"text": text_outputs}
            yield (json.dumps(ret) + "\0").encode("utf-8")

    if stream:
        return StreamingResponse(stream_results())

can you elaborate? the results_generator output one token at a time, per decode. the streaming response should output similar to the following demo: https://github.com/vllm-project/vllm/issues/1636#issuecomment-1816831493


Fix #2340:  Ingestion pipeline deployment refactor

Describe your changes :
See #2340

Type of change :

[x] Improvement

Frontend Preview (Screenshots) :
For frontend related change, please link screenshots of your changes preview! Optional for backend related changes.

Checklist:

[x] I have read the CONTRIBUTING document.
[ ] I have performed a self-review of my own.
[ ] I have tagged my reviewers below.
[ ] I have commented on my code, particularly in hard-to-understand areas.
[ ] My changes generate no new warnings.
[ ] I have added tests that prove my fix is effective or that my feature works.
[x] All new and existing tests passed.

Reviewers

@akash-jain-10 @pmbrull do we need twisted lib dependency on incrementing a simple version? python -m incremental.update metadata --dev Traceback (most recent call last): File<EMAIL_ADDRESS>line 197, in _run_module_as_main return _run_code(code, main_globals, None, File<EMAIL_ADDRESS>line 87, in _run_code exec(code, run_globals) File "/Users/harsha/Code/OpenMetadata/ingestion/env/lib/python3.9/site-packages/incremental/update.py", line 11, in from twisted.python.filepath import FilePath ModuleNotFoundError: No module named 'twisted'

Yes. Twisted is a dependency for python package incremental. We will require this as dependency

@akash-jain-10 @pmbrull do we need twisted lib dependency on incrementing a simple version? python -m incremental.update metadata --dev Traceback (most recent call last): File<EMAIL_ADDRESS>line 197, in _run_module_as_main return _run_code(code, main_globals, None, File<EMAIL_ADDRESS>line 87, in _run_code exec(code, run_globals) File "/Users/harsha/Code/OpenMetadata/ingestion/env/lib/python3.9/site-packages/incremental/update.py", line 11, in from twisted.python.filepath import FilePath ModuleNotFoundError: No module named 'twisted'

Yes. Twisted is a dependency for python package incremental. We will require this as dependency

It is present in the setup for ingestion core. We have some instructions in the core README but we could add further information on the bot message to line up all the steps or even work further on the make recipe to run the installation etc. I'll open an issue for this. Thanks!


ERROR Error: Network error: Cannot convert number to Ljava/text/NumberFormat; at index 0

When I requested the data, it showed an error.
ERROR Error: Network error: Cannot convert number to Ljava/text/NumberFormat; at index 0
i dont't konw how to resolve it,
this is my code:
constructor(
        private apollo: Apollo,
        private getDataService: GetDataService
    ) {
        this.getDataService.subject.subscribe((val) => {
            if (val === true) {
                this.getData();
            }
        });
    }
it will be execute  this.getData()  function
this is my getData()

 this.querySubscription = this.apollo.watchQuery<any>({
            query: getInspireProfile
        }).valueChanges.subscribe(({ data }) => {
            if (data && data.getInspire) {
                const datas = data.getInspire;
                const code = datas.code;
                if (code === 404) {
                } else if (code === 200) {
                    this.getInspire = datas;
                }
            }
        });

when i use BehaviorSubject()
iMake sure getData()  has been executed
but i get error

It's not answer  https://github.com/NativeScript/android-runtime/issues/540

Are you sure this is the right Apollo component you are using?
This Apollo is a distributed configuration center mainly targeting backend services...

This case is closed for now. If there is any other problem, you could provide more information to this issue, thanks!


While Train , what the the parameters  means? eg.. time and data time .why is the traing speed slow?

While Train , what the the parameters  means? eg.. time and data time .why is the traing speed is slow?

the bachsize is img_per_gpu * gpus ..mine is 8*2=16 ?

batch size = imgs_per_gpu * gpu_num. Typically imgs_per_gpu is set to 2, and we use 8 GPUs. workers_per_gpu is the process num for dataloader.
For the speed, distributed training is preferred. It will be the same as reported in the model zoo if you are using V100.

How can we speed up the time per iteration when using large imgs_per_gpu on a single GPU with large memory (e.g., V100 32GB)?
imgs_per_gpu=2 only use ~6GB. However, when increasing the imgs_per_gpu=8, the time per iteration increase significantly (from 0.8 to 3.3).

@hellock so samples_per_gpu in coco_detection.py means the same with imgs_per_gpu?


Uncaught Exception: The Internet connection appears to be offline.: (null)

An uncaught exception was reported.
Info:
OS: darwin
Arch: x64
GPMDP Version: 3.0.0
Time: Thu Mar 10 2016 11:03:43 GMT-0700 (MST)
Error:
The Internet connection appears to be offline.: (null)
Error: The Internet connection appears to be offline.: (null)
    at Error (native)

This issue was created automatically inside the uncaughtException handler
Apparently the program throws an error if there's no internet connection. Might be better to display a message like "Hey, connect to the internet to keep blasting sweet tunes into your head!"

Client side network issues.
Will not be reported in 3.1.0


Spanish traductions

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX
Update add-a-text-alternative-to-images-for-visually-impaired-accessibility.spanish.md (#19597)

Thanks!


Limit Displayed Values in REST Multi-Value Extension Control

Hello,
I'm using the REST Multi-Value Extension Control, and I'm currently facing an issue with how the values are being displayed. Right now, all 7,000+ values are shown in the dropdown, which is overwhelming for users.
What I'm trying to achieve:
I want to limit the displayed values to only the most relevant.
Users should still have the ability to filter out and select any of the other values by typing in the search box.

Hi, Unfortunately, at this moment, there isn't an option to limit the displayed values while still allowing users to search and filter the others.
However, we appreciate your input and will keep this in mind for future improvements. Please don't hesitate to reach out if you have any other questions or concerns.


Why does deconvolution loss function converge more slowly than bilinear interpolation？

I use the deconv(ConvTranspose2d()) instead of bilinear, the loss is hard to descend.


TestServer IServer.Features is null and makes it overly difficult to test middleware relying on ServerFeatures being populated.

Use Case:
I have written a stateless middleware which uses the address the server is configured to listen on and I want to write test for this middleware.
Example of extension method trying to extract listening addresses from server features:
public static IApplicationBuilder UseServiceFabricRouting(this IApplicationBuilder builder)
{
    var serverAddressesFeature = builder.ServerFeatures.Get<IServerAddressesFeature>();
    return builder.UseStatelessHttpMiddleware(new ServiceFabricRoutingMiddleware(serverAddressesFeature.Addresses.ToList()));
}

Expected:
I should be able to write tests using the normal aspnetcore convention of using TestServer such as below:
// Arrange
var webHostBuilder = new WebHostBuilder()
    .UseUrls("http://localhost:8000/appName/serviceName")
    .Configure(b => b
        .UseServiceFabricRouting()
        .Run(c =>
        {
            c.Response.StatusCode = (int)HttpStatusCode.OK;
            return Task.FromResult(0);
        }));

var testServer = new TestServer(webHostBuilder);

// Act
var response = await testServer
    .CreateRequest(path: "someOtherService")
    .SendAsync("GET");

// Assert
response.StatusCode.Should().Be(HttpStatusCode.Gone);

Actual:
I had to copy the implementation of TestServer into my own ExtendedTestServer class which is burdensome.  The whole point is for the tests to feel familiar and not be one off solution so I want my copy class to feel just like TestServer. This means I also have to duplicate the associated RequestBuilder class since it takes concrete dependency of TestServer.  Also the TestServer has method which invokes internal constructor of WebSocket so I can't even implement that method.
I think all of the above could be avoided with some very simple tweaks.
More background on server setup and why coping implementation was only solution (extending class or wrapping class does not work)
Normal server setup:
1: UseKestrel() will automatically setup the FeatureCollection
Features = new FeatureCollection();
_serverAddresses = new ServerAddressesFeature();
Features.Set<IServerAddressesFeature>(_serverAddresses);

https://github.com/aspnet/KestrelHttpServer/blob/632780dd16729298933f96796e6a969f3470d810/src/Microsoft.AspNetCore.Server.Kestrel/KestrelServer.cs#L54

WebHost EnsureServer method will copy all the urls from the settings to ServerAddressesFeature

                var addresses = Server.Features?.Get<IServerAddressesFeature>()?.Addresses;
                if (addresses != null && !addresses.IsReadOnly && addresses.Count == 0)
                {
                    var urls = _config[WebHostDefaults.ServerUrlsKey] ?? _config[DeprecatedServerUrlsKey];
                    if (!string.IsNullOrEmpty(urls))
                    {
                        foreach (var value in urls.Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries))
                        {
                            addresses.Add(value);
                        }
                    }
                }

https://github.com/aspnet/Hosting/blob/c8003c03055e629ace7ebfdec636bb790c480471/src/Microsoft.AspNetCore.Hosting/Internal/WebHost.cs#L230

Middleware would be able to access builder.ServerFeatures.Get<IServerAddresssesFeature>() becuase builder.ServerFeatures would not be null.

TestServer setup:
Step 1 is not done, and then step 2 is no op because addresses is null.

Cannot extend TestServer because you don't have ability to set base classes IServer.Features property.
It only has getter and also there's no way to execute the code before the base class invokes Build()

Cannot wrap TestServer because the internal instance of TestServer is immedately invoking Build()

var host = builder.UseServer(this).Build();
host.Start();

https://github.com/aspnet/Hosting/blob/b6da89f54cff11474f17486cdc55c2f21f2bbd6b/src/Microsoft.AspNetCore.TestHost/TestServer.cs#L25
Becuase of this, the internal instance of TestServer (this in line above) is the instance that is used for the Server property in the WebHost.  Then it would still be checking the IServer.Features on the TestServer instance not the parent class attempting to wrap it and failing to achieve desired result.
Solutions:
I'm sure there are many ways to get the desired result but here are a few I could think of:

Add another constructor to TestServer to allow taking FeatureCollection as parameter which assigns it before invoking Build / Start
I think this would work but would only solve issue for FeatureCollection, perhaps there are more things people might want to do with TestServer before the web host is built.

Add setter to FeatureCollection and another constructor which doesn't immediately invoke Build / Start. This would allow extending the TestServer class and settings FeatureCollection up in parent constructor and then later invoking build / start.

Would be interested to see what other solutions there are from people more familiar with C# features.

I added PR which implements the second solution proposed above.


Add bookmarks to a queue waiting for connection to linkding instance

Hi,
linkding is working on my NAS and i connect to it with vpn.
So basically i can only add bookmarks to linkding when in my home network.
Could be handy to add some sort of queue in order to save the bookmarks and only upload them when the connection is available to the instance.
Actually i have to connect to vpn anytime i want to save a bookmark.
Hope it's clear.

As LinkDing is a web service, if you cannot connect to it, there is no entity that can manage your bookmark queue.
You will need something on the client side (where you create the bookmarks) to retain the queue. In other words, it sounds like you want an app to interface with LinkDing. To my knowledge, at least on iOS, there currently is no LinkDing native app.

Thank you for your reply.
Actually i use Windows and Android. Is there something that could work this way on these platform?

This is not a use-case that I want to support ATM.
Maybe consider exposing only the linkding application on your NAS to the web instead of the whole NAS? That seems like something that should be possible using port forwarding in your router or similar.


[gtk3] Update

[x] Changes comply with the maintainer guide
[x] SHA512s are updated for each updated download
[x] The "supports" clause reflects platforms that may be fixed by this new version
[x] Any fixed CI baseline entries are removed from that file.
[x] Any patches that are no longer applied are deleted from the port's directory.
[x] The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
[x] Only one version is added to each modified port's versions file.

I'm aware of #29018...

... this reminds of the wish to supply a timeout along configure and build commands. It is supported by vcpkg_execute_required_process but not in the higher level functions. With a timeout, we would get failure logs from CI.

All features are tested successfully in the following triplet:
x86-windows
x64-windows

Thanks for the update!

Hm this caused #31128


Webpack warning when running examples

I am trying to run the doca examples using the following commands:
lerna -v
node -v
git clone https://github.com/cloudflare/json-schema-tools.git
cd json-schema-tools
lerna bootstrap
cd workspaces/doca/example-schemas/draft-04
doca init
cd documentation
../../../../../scripts/yarn/bin/yarn install
../../../../../scripts/yarn/bin/yarn start

But I get warnings from webpack and the resulting webpage is only very minimally styled.  The output from the above is:
2.11.0
v8.9.1
Cloning into 'json-schema-tools'...
remote: Counting objects: 883, done.
remote: Compressing objects: 100% (390/390), done.
remote: Total 883 (delta 471), reused 862 (delta 451), pack-reused 0
Receiving objects: 100% (883/883), 1.26 MiB | 1.98 MiB/s, done.
Resolving deltas: 100% (471/471), done.
lerna info version 2.11.0
lerna info versioning independent
lerna info Bootstrapping 7 packages
lerna info hoist Finished installing in root
lerna success Bootstrapped 7 packages
Folder documentation has been created.
Importing these schemas from .:
- common/collection.json
- common/identifier.json
- solarsystem/definitions/measurements.json
- solarsystem/definitions/orbit.json
- solarsystem/definitions/planet.json
- solarsystem/dwarfplanet.json
- solarsystem/planet.json
- solarsystem/probe.json
- solarsystem/sun.json
Doca project files has been copied!
Customizing doca project files:
documentation/schemas.js
Trying to yarn add @cloudflare/doca-default-theme for project documentation...
Theme @cloudflare/doca-default-theme at documentation has been successfully installed!
Setting documentation theme to @cloudflare/doca-default-theme. Files changed:
documentation/src/client/main.js
documentation/src/server/html.js
documentation/webpack/build.js
yarn install v1.3.2
[1/5] 🔍  Validating package.json...
[2/5] 🔍  Resolving packages...
success Already up-to-date.
✨  Done in 0.50s.
yarn run v1.3.2
$ node webpack/index | NODE_ENV=development node src/server
Server started on port 8000
/Users/rich/code/json-schema-tools/workspaces/doca/example-schemas/draft-04/solarsystem/planet.json
/Users/rich/code/json-schema-tools/workspaces/doca/example-schemas/draft-04/solarsystem/dwarfplanet.json
/Users/rich/code/json-schema-tools/workspaces/doca/example-schemas/draft-04/solarsystem/probe.json
/Users/rich/code/json-schema-tools/workspaces/doca/example-schemas/draft-04/solarsystem/sun.json
/Users/rich/code/json-schema-tools/workspaces/doca/example-schemas/draft-04/documentation/getting-started.json
⚠ ｢wdm｣: Hash: c48508533cd4cb5aaf7c
Version: webpack 3.12.0
Time: 1817ms
 Asset     Size  Chunks                    Chunk Names
app.js  4.04 MB       0  [emitted]  [big]  app
  [14] ./node_modules/react/react.js 56 bytes {0} [built]
  [33] (webpack)/buildin/module.js 517 bytes {0} [built]
  [81] ./schemas.js 635 bytes {0} [built]
  [91] ./node_modules/react-dom/index.js 59 bytes {0} [built]
 [117] ./node_modules/react-redux/es/index.js 230 bytes {0} [built]
 [154] multi webpack-hot-middleware/client?path=http://<IP_ADDRESS>:8080/__webpack_hmr ./src/client/index.js 40 bytes {0} [built]
 [155] (webpack)-hot-middleware/client.js?path=http://<IP_ADDRESS>:8080/__webpack_hmr 7.77 kB {0} [built]
 [156] ./node_modules/querystring-es3/index.js 127 bytes {0} [built]
 [159] ./node_modules/strip-ansi/index.js 161 bytes {0} [built]
 [161] (webpack)-hot-middleware/client-overlay.js 2.21 kB {0} [built]
 [166] (webpack)-hot-middleware/process-update.js 4.33 kB {0} [built]
 [167] ./src/client/index.js 710 bytes {0} [built]
 [292] ./src/client/main.js 1.27 kB {0} [built]
 [293]<EMAIL_ADDRESS>100 bytes {0} [built]
 [413] ./src/client/store.js 1.42 kB {0} [built]
    + 406 hidden modules

WARNING in ./src/client/main.js
23:15-89 Critical dependency: Contexts can't use RegExps with the 'g' or 'y' flags.
 @ ./src/client/main.js
 @ ./src/client/index.js
 @ multi webpack-hot-middleware/client?path=http://<IP_ADDRESS>:8080/__webpack_hmr ./src/client/index.js

WARNING in ./src/client/main.js
25:16-91 Critical dependency: Contexts can't use RegExps with the 'g' or 'y' flags.
 @ ./src/client/main.js
 @ ./src/client/index.js
 @ multi webpack-hot-middleware/client?path=http://<IP_ADDRESS>:8080/__webpack_hmr ./src/client/index.js

WARNING in ./src/client/main.js
27:16-91 Critical dependency: Contexts can't use RegExps with the 'g' or 'y' flags.
 @ ./src/client/main.js
 @ ./src/client/index.js
 @ multi webpack-hot-middleware/client?path=http://<IP_ADDRESS>:8080/__webpack_hmr ./src/client/index.js

This is using macOS 10.13.1
Is it something I'm doing wrong?

Hang on - I think I may have an old version of doca still lying around....

@rscreene I had an email notification that you maybe had an old version lying around- I don't see that comment here so I assume you checked and you do not?
I remember the "Context can't use RegExps with the 'g' or 'y' flags" warning but I was pretty sure that I'd fixed that.  Hm....
The result is definitely very minimally styled.  Per the doca workspace README:

For now, it simply displays the getting started text and the processed schemas. We will be gradually making this into a proper theme, but it can serve as a debuggging aid for anyone using the underlying tools or wishing to build their own theme from scratch.

And from the old doca repo's README:

The new @cloudflare/doca does not yet have a fully functioning theme, so this package is still the produciton-ready one. But we will be implementing feature requests on the new code, and moving most open issues to the new repo whenever it makes sense.

So.... yeah, basically it's just a debugging theme for now I'm afraid.  We wanted to get the tools out there (there's at least one other tool, for OpenAPI, that is using @cloudflare/json-schema-walker already) rather than wait on getting a full UI designed and written.

I tried it on a machine that had never run doca before and I got the same results so I'm guessing its not due to any old versions.
When I said minimally styled I actually meant without any CSS!  Sorry for any confusion.
I've been dragged onto other things for the time being.  I'll try again when I get back to it.

I removed the -g option from the RegExps inclient/main.js.  That made the warnings go away.  From reading https://webpack.js.org/guides/dependency-management/#require-context it seems to me that the -g option isn't necessary.

I removed the -g option from the RegExps inclient/main.js. That made the warnings go away. From reading https://webpack.js.org/guides/dependency-management/#require-context it seems to me that the -g option isn't necessary.

Oh great- so it looks like as long as subdirectories is true it will do what the "g" was trying to do anyway.  Would you be willing to open a PR for it?
Yeah, there's no CSS.  Or there may be an empty file to make something not complain, I forget.  That seemed the best way to make it clear that it's not intended for production use.  Maybe I should have put a banner at the top.  hmm....

I'll open a PR for that within a day.  FYI, I'll be playing around with these tools a lot this week, so I might find some other things to address.  Do you know why the doca-bootstrap-template is no longer supported?  I was able to get it up and running, but it doesn't work with our draft-07 schemas of course.  Is there any value in trying to PR against that repo for support with these tools or better to make a new template?

Or, if you know of specific issues in these tools that's blocking draft-07 support, I'd be happy to help out.

@genetique-techno it's a bit complicated- for personal reasons I'm taking some time away from the tech industry.  So I no longer work at Cloudflare (although obviously I still care about this repo, and am still working on the next draft of the JSON Schema specification (which will mostly be core and validation stuff, probably with minimal Hyper-Schema changes since we're just staring to see draft-07 implemented).
So the simple reason there's no UI right now is that I'm dealing with Real Life Stuff and unable to put a lot of time into one myself, and I'm not sure what the plan is within Cloudflare.
@tomlikestorock are there any near-term plans for an open source new theme on top of this new back-end?
Of course, if you want to work on a UI that would be awesome and may be faster, and I'd be happy to answer questions, review code, discuss UI design options, etc.  I've thought about this stuff a lot, I just don't have time to code it right now.
As for why the old doca-bootstrap-theme doesn't work, the old doca (on npm as doca) and this new doca (@cloudflare/doca) work with different data structures.  The old json-schema-example-loader package changed the data structure around a lot in order to make the UI easier.  However, that meant that the output was no longer a valid JSON Hyper-Schema (of any draft).  In the long run, that caused more trouble than it was worth for a variety of reasons, not the least of which being that we couldn't use anyone else's schema tools on the output if we wanted to.
So in this repo, @cloudflare/json-schema-apidoc-loader (or, really, @cloudflare/json-schema-transform) still does most of what json-schema-example-loader used to, except the result is still a valid JSON Hyper-Schema of whatever draft it started out as.  It just has extra fields which is something JSON Schema allows.
But that means no older doca theme will work with @cloudflare/doca.  On the plus side, it should be easier to figure out how to build a theme since if you already know JSON Hyper-Schema, you know 99% of what comes out of the API doc loader as input to the UI.  There's no conversion step to learn.
If you want to kick ideas around more, feel free to drop by the JSON Schema slack channel which might be a little better suited than GitHub issues for such things.

@handrews thanks for providing some background on the state of things--I totally understand Real Life.  I'm going to try to make a new template with the draft-07, and I'll hit up the slack for any issues that come up.  Thanks again and best of luck with Real Life.

Ah, I had assumed that the warnings were the reason that there was no CSS!  I'll check back later.
Nice project by the way!


try fixing invalid_call_argument_test on kokoro

Tentative fix for https://github.com/grpc/grpc/issues/11284
(I've tried this workaround before and it didn't seem to work, but now after some changes in C-core, it might be effective).

No significant performance differences

Known failures:
https://github.com/grpc/grpc/issues/11472
https://github.com/grpc/grpc/issues/11386
https://github.com/grpc/grpc/issues/7202


IDE integration for DartPad

This may seem weird to people, but it would be nice to be able to import a DartPad code into an Eclipse or WebStorm. That way, If you are using DartPad to help you quickly tweak your code, you can sync your changes with your IDE. I know this is an odd feature request, and probably will not be at the top of your list, but I wouldn't mind forking, working it, and then eventually creating a pull request.

Totally not weird. Love the idea! We want to make it really easy to "upgrade" to WebStorm, or Sublime, or a full Dart project.

but I wouldn't mind forking, working it, and then eventually creating a pull request.

That'd be great! I don't think it's top on the list for either me or @devoncarew so I'm sure a patch would be very welcome.

For the "upgrade" use case, they are just gists, which are just git repos, so it should work in any editor that supports git, right?  Just need to change your remote after cloning to whatever long term git repo you want to use.

We definitely want to make it easy to play with something in dartpad and then import it into a full-blown IDE. That may be clone-and-modify. The gist UI also supports downloading the gist as a zip. That could be the easiest path to getting the code. We plan to create full pub packages* when we save the gists, even if we only show the dart, html, and css code.
*modulo the fact that gists don't support creating directories.

@James-Parsons, the code to create a 'packagified' gist isn't written; perhaps that would be a good place to contribute?

dupe of #428


Introduce Plugin API for ChangeRecorder

TODO

manual - how to write plugin extensions
document new code

I see that ChangeRecorder is only used when change is introduced to project.
But we can see that changeRecorder* parameters are also available for display mojos, so users can be confused.

@ajarmoniuk - Pleas look.


fairseq support

Is sockeye going to support facebook's fairseq and goolge's tensor2tensor?

we don't currently have any convolutional decoder. For an attention is all you need style model check out this WIP branch: https://github.com/awslabs/sockeye/pull/62

For reference, Sockeye now supports both transformer models and the 'fairseq' approach of fully convolutional seq2seq models.


Feature proposal: replace screen-<unit> strings in arbitrary values with their actual pixel value

Clear and concise description of the problem
I  want to be able to do this: px-[calc(screen-xl/2)] to easily create padding that centers the content of an scrollable to emulates mx-auto centration of content.
Now I have to manually convert the pixel value of screen-xl like so px-[calc(1280px/2]
Suggested solution
UnoCSS should replace screen-xl in the [] arbitrary value with its actual value which also gets used in utilities such as w-screen-xl
Alternative
No response
Additional context
No response
Validations

[X] Read the Contributing Guidelines.
[X] Read the README.md of using the package.
[X] Already used the Interactive Docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Use https://unocss.dev/transformers/directives and theme().
px-[calc(theme(breakpoints.xl)/2)]
play

Pff, I forgot about that directive! Thanks for making me aware. I think that using the directive is a sufficient, so I'll close this issue as not planned.


[Snackbar] action text color can't be changed

Steps to Reproduce

Create a Snackbar with an action

Scaffold
  .of(context)
  .showSnackBar(new SnackBar(
    content: new Text('Snackbar action'),
    action: new SnackBarAction(
      label: 'Undo',
      onPressed: () {
        // do something
      },
    ),
  ))
;

Change your accent color to something dark (or the same color as the Snackbar background)
Show the Snackbar

The only way to change the action button text is to change your accent color in your theme. If you have a dark accent color this will lead to being unable to use Snackbar actions.

Wrapping the SnackbarAction with a theme may work but wouldn't it make more sense to pass a Text widget to the SnackBarAction instead of the SnackBarAction creating it from the string passed? https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/material/snack_bar.dart#L120

showSnackBar requires SnackBar object, SnackBar.action is SnackBarAction not Widget. So, it can not be wrapped.

A nice improvement would be to make "label" a widget, so we could use an Icon or Text.
But the reason I landed here in the first place was because I wanted to change the text color.

Just add 3 lines of code

to flutter snack_bar.dart from flutter sdk show in this picture

WIP https://github.com/flutter/flutter/pull/22489

At the moment there's no way to change other text theme properties like fontWeight either. I'd really appreciate  label being a Text if possible. Or making it so we can wrap a DefaultTextStyle somewhere between SnackBar and SnackBarAction

It seems not to be merged yet.

If we can set action button text style from outside, that's will be awesome

Hi @hammy2899
Based on the title of the issue, action text color can be changed so i am going to close this issue and accentColor also effect the action text color properly
Scaffold.of(context).showSnackBar(new SnackBar(
            content: new Text('Snackbar action'),
            action: new SnackBarAction(
              label: 'Undo',
              textColor: Colors.yellow,
              onPressed: () {
                // do something
              },
            ),
          ));

flutter doctor -v
[✓] Flutter (Channel dev, v1.18.0-6.0.pre, on Mac OS X 10.15.4 19E287, locale
    en-GB)
    • Flutter version 1.18.0-6.0.pre at /Users/taha/Code/flutter_dev
    • Framework revision 84c84fb249 (31 hours ago), 2020-04-20 21:35:01 -0400
    • Engine revision 2bde4f0ae4
    • Dart version 2.9.0 (build 2.9.0-1.0.dev a12c36dd97)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/taha/Code/sdk
    • Platform android-29, build-tools 29.0.3
    • ANDROID_HOME = /Users/taha/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.4.1, Build version 11E503a
    • CocoaPods version 1.9.1
[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)
[✓] VS Code (version 1.44.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.9.1
[✓] Connected device (4 available)
    • SM M305F   • 32003c30dc19668f • android-arm64  • Android 10 (API 29)
    • macOS      • macOS            • darwin-x64     • Mac OS X 10.15.4 19E287
    • Chrome     • chrome           • web-javascript • Google Chrome
      81.0.4044.113
    • Web Server • web-server       • web-javascript • Flutter Tools
• No issues found!

Could everyone who still has this problem please file a new issue with the exact descriptions
what happens, logs and the output of 'flutter doctor -v' please.
All system setups can be slightly different so it's always better to open new issues and reference
related issues.
Thank you


Added support for Laravel 11.x

1⃣ Is this something that is wanted/needed? Did you create an issue / discussion about it first?
Yup, #82
2⃣ Does it contain multiple, unrelated changes? Please separate the PRs out.
Nope, just one line changed
3⃣ Does it include tests, if possible? (Not a deal-breaker, just a nice-to-have)
Nope, i saw no need for them
4⃣ Please include a thorough description of the improvement and reasons why it's useful.
Well, for the community!
5⃣ Thanks for contributing! 🙌

Thanks for taking the time to PR this, however, I've already merged an automated PR from Laravel Shift that updated this, so it would be redundant now. I plan on making a release today yet that has Laravel 11.x compatibility.


[FEATURE REQ] [Service Bus] Add AvailabilityStatus to QueueProperties, TopicProperties and SubscriptionProperties in ServiceBusAdmininstrationClient

AvailabilityStatus is a property that indicates availability of the queue/topic/subscription.
The get/create/update methods on the ServiceBusAdministrationClient (previously named ServiceBusManagementClient) return the objects that follow the below interfaces which need to be updated to add AvailabilityStatus property (readonly)

QueueProperties
TopicProperties
SubscriptionProperties

Like the status property that follows the EntityStatus interface, this new property AvailabilityStatus should follow a new EntityAvailabilityStatus interface
https://docs.microsoft.com/en-us/dotnet/api/microsoft.servicebus.messaging.entityavailabilitystatus?view=azure-dotnet is a reference point from an older version of the Service Bus library in .Net

Add links to the relevant classes.

Hi @ramya-rao-a, we deeply appreciate your input into this project. Regrettably, this issue has remained inactive for over 2 years, leading us to the decision to close it. We've implemented this policy to maintain the relevance of our issue queue and facilitate easier navigation for new contributors. If you still believe this topic requires attention, please feel free to create a new issue, referencing this one. Thank you for your understanding and ongoing support.


Options for running cron job?

Hey,
What are the options for running Cron jobs?
I'm building a chat bot and I need a way to send messages not on the req/res cycle.
Do you have a plan to add support for cron jobs?
If not do you have a suggestion for workaround? alternative services?

setInterval()

What happen if my process crashes after setInterval?
Or I deploy a new version of my app before setInterval is triggered?

What happen if my process crashes after setInterval?

Since setInterval is part of the process, it will stop executing.

Or I deploy a new version of my app before setInterval is triggered?

The old instance of the app will just keep running as long as people are accessing it. If nobody accesses it, it will fall into a light sleep and setInterval will be paused.

Thanks @leo but It looks like it's not good replacement for cron job.
Also I'm not sure how now handle scaling but if there's more then one process running it means that setInterval will be called for each node process.
Btw, why did you closed this issue? As it is, there's no solution for this problem yet.

@ranyefet You should be able to write the code so that setInterval only gets executed in of the processes that are running. I don't see a reason why it shouldn't be a good replacement for cron jobs. It does exactly what cron jobs do. You could even spawn a new process and use it only for running the intervals. What's the difference then? 😊
If you need an interface that looks more like the one of regular CronJobs, you can use modules like node-cron (there are hundreds of these on npm).

@leo I suppose the difference is that neither of the options can wakeup the deployment :(
@ranyefet the feature has been promised for the community but I can't tell any timeline for it.

@OlliV Ummm... If we add support for CronJobs making up deployments, I don't think there would be a reason to keep the "fall into a light sleep" feature alive at all, because everyone will set CronJobs to prevent the deployment from falling asleep.
So IMHO, I don't think there's anything else we can do... 🤔

So to clarify, if I deploy an app that's only function is a scheduled job, it will go into "light sleep" after a few hours and never come out again?
I would like to host an app that's only purpose is interacting with Firebase and Stripe at a scheduled time each day. Does a response qualify as incoming traffic? Or is there no way to accomplish this with the current state of now?

something like this: https://devcenter.heroku.com/articles/scheduled-jobs-custom-clock-processes would be very helpful.

Let's suppose I just want to create a simple social network bot. A few crons per day, that's it.
Isn't now a good place to do it? I'm not complaining at all, I just want to know if I can use your service with the light sleep.

@leo  there's some middle ground here though right?  ie no- or limited-sleep on any instance w/ an active alias pointed to it?
as it stands the next best option for low-friction scheduled tasks is AWS Lambda, and that's considerably more annoying to configure than now, so i'd love to see some flex in this policy to accommodate this use case </2¢>

I would love to see the ability to create a service where I can schedule it to wake up and run a job every x amount hours, days, etc.
The interface for this could be described in the package.json for a deployed service. Scheduled services like this could run under the caveat that only the most recently deployed version can be woken up. I think that'd be a very fair caveat from Zeit. These can also be a direct draw for subscribers to your service - e.g. free tier gets only 1 scheduled service. Paid tiers could get 3, 5, unlimited, etc.
The interface for this might look like so:
{
  now: {
      schedule: `${ANY VALID CRON STRING}`
  }
}

Is there such a thing in the roadmap for zeit's now? @leo @OlliV

We do plan to add some kind of cron jobs support – no ETA for now tho 😕

it looks like the 'light sleep' can be prevented by setting a deployment's scale to 1 (https://zeit.co/docs/deployment-types/lifecycle#instances)
I didn't know about this feature, but it looks like it's a few months old
If I run a cron job on a server w/ a min scale of 1, will it stay up & behave as expected?

@Zertz how exactly do you write your cron app? cause mine will just timeout at the deploy as it stays in the cron process.

Good point, you need to setup a dummy server for it to stay awake.
http.createServer(function(req, res) {
  res.writeHead(200, { "Content-Type": "text/plain" });
  res.end();
}).listen(3000);

See this y'all: https://medium.com/@philmillman/deploy-a-simple-node-cron-server-in-minutes-with-now-c5926a49afab

I'm getting this error, seems like there is no way to set a min number of running  instances.
Error! Cloud v2 does not yet support setting a non-zero min number of instances.

@toymachiner62 as we mentioned in the Upgrade to 2.0 guide, this is one of the top priorities to address at the moment. No specific ETA, but it's one of the features I'm looking forward to the most.

I too am eager to get this feature. It is blocking my adoption of now v2.

For the time being, I had to use an external service such as cron-job as a work around.

Webcron like easycron.com is the easiest way to create cron job, you just need to click to choose some settings to complete an complex cron job configuration.

We haven't forgotten you! 💚
Cron Jobs are in the works but it requires changes to multiple parts of the system. And we want this feature to be perfect the first time so you can rely on your jobs.
I can't give an ETA unfortunately.

FWIW I'm looking into just using Zapier scheduler+webhooks to hit a lambda function on now. I don't actually have any experience with cron but this should work for my basic usage and let me keep using now.

Anyone at @zeithq have an update on this? Or is there a place I can track this more directly? I'm very interested in this feature, as I have some timer/scheduler applications in the works, and I also love using the Now platform.

June 30th. Any progress on this? :)

There's an easycron integration in the marketplace. https://zeit.co/dashboard/integrations

However easycron does not solve the original issue of req/res cycle terminating my lambda.

I'm looking for something that can programmatically be interacted with, too. For my purposes, using a cron dashboard is worthless. Hopefully that is something they have in the works. In the meantime, I've been setting up my own cron server on digital ocean, so the rest of my serverless system can use it as a source of webhook triggers, etc. If I could programmatically hook into something similar on the Now platform, that would be incredible.
Big thanks to the team for all the hard work! Looking forward to the rollout!

Hi everyone! How to prevent sleep in Now v2.

Any update on cron job support?

AWS Lambda
Sent from my iPhone

On Oct 18, 2019, at 6:20 AM, Anker<EMAIL_ADDRESS>wrote:
Any update on cron job support?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

Yes but that only allows running cron jobs through CloudWatch which have a max of every 5 minutes. I was thinking more like node-cron where I can run events every second.

We can use Google Cloud Scheduler in the interim (3 free jobs/month).

Thank you for creating this issue!
Please note that – in order for us to be able to handle each feature request with care – we have to consume all of them through a unified pipeline that makes it easier for us to prioritize, track and progress on the features our user base is interested in.
In turn, the Issues tab on this repository is best only be used for reporting bugs, which we can immediately act on.
For well-explained feature requests (like the one you just posted), please contact us at<EMAIL_ADDRESS>so that we can consider adding it to our roadmap.
In the case of your specific feature recommendation, you can rest assured that we're already tracking it on our roadmap and you can expect to see an update on our Twitter account or Blog soon.

Looks like Leo's closing a lot of issues lately, which haven't resulted into any solution :(

This is super annoying.  It's made worse by the fact that the only communication from the team about this has been to close the issue!
Similar lack of information here: https://spectrum.chat/zeit/general/in-v2-how-can-you-keep-a-node-server-cron-job-alive~18dc0165-507f-4d1e-874a-77d0bbafe20a?authed=true

Can't we just use an "uptime monitoring" or "ping" service to achieve cron jobs with any serverless function?

UptimeRobot offers 5-minute ping intervals for free, or 1-minute ping intervals for ~$6/month

disclaimer: I'd never heard of this provider before about 5 mins ago when I googled for "uptime monitoring", so I can't vouch for them, but it looks like are many providers to choose from.

Bonus: you'll get notified if your cron goes down!

I'm planning to try this soon and will let you know if anything goes astray.

I've been using https://easycron.com for actual "serverless" crons and it's been going very well, I assume it could work similarly.

So if I understand this right, I can use something like node-cron with now, as long as I make sure the now server doesn't sleep?

@ankerbachryhl you could do that with now V1. But that is being deprecated.
V2 being serverless there isn't really a concept of a server to keep awake so node-cron doesn't really work with this architecture.

I have been chatting to the Zeit team about this recently as it's a blocker for me moving to v2. I don't really want to use another 3rd party vendor to do something I could previously do with some node cron code.
Their official response was this:
We are extremely committed to removing lock-in, that’s why we invest in OSS so heavily (like Next.js and many other projects).

However, the idea of running a process continuously for the timing APIs to work and ultimately give you a very complex and brittle solution, even if embedded directly in our platform, is not something we intend to offer to our customers soon.

We will continue to consider this problem thoughtfully and will keep you posted of any news.

@danhollick Thank you for your response. I guess I have to give up on now :/ So far I've been using a Heroku hobby server which actually works fine for the time giving, but must admit I would rather use now.

Hello,
I'm kind of interested in a cron job feature.
Nothing too fancy. Maybe a panel at the Zeit dashboard
that lets me set cron jobs. There could be a limit for free accounts too (I'm on those).
For example I want a cron job that triggers a serverless function (every few hours or even every day) in order to do a check on our bank api and see if our clients have made their deposits.
That feature would be amazing, since we could just rely
on the Zeit platform and not have to worry about a zillion accounts and subscriptions
on other providers that would do that.
Thanks

I think the important thing to realize here is free plan cost and it's availability. If "always on" is the only way to run free version, it may not remain free any more.
So let's be mindful and keep the actual economics in mind.

The option already exists via a connection with Google Cloud.
What I am saying is that it would be nice if it was built-in.
Sure, I reallt appreciate the fact that a Free plan even exists!
There could be a limit for the cron job (for ex. min frequency every 1 hour).
I could even be an add-on paid option! (though cheap hahaha)
You cannot build apps -or at least complex ones- without a cron
feature of some sorts. Every cloud provider that offers a serverless product,
has a cron - and that's to overcome serverless' main drawback.

Based on this thread I will not be using Now for a client's project that requires scheduling reminder notifications to users. Was hoping there's be a built in way to schedule events to trigger serverless endpoints. Pretty disappointed.
Hopefully this is resolved soon! The workarounds above seem a little unreasonable - having severless functions with their own cron sounds like it defeats the point of going serverless (even if they do sleep), and using a third party service to trigger the functions sounds like I should just use a third party service.
I still love the stuff the Zeit does, hopefully I'll have the opportunity to use Now for my next project!

I've come to the realization, that you can use AWS lambda function as crons. They provide a schedule option, so it's the perfect solution for me (cost-efficient, performant, flexible in its programming language, etc.).
I am not even sure I would use Zeit cronjobs, even if they introduced them.

Is there any official guided solutions for creating cron jobs?
It's 2020 and this is a road-blocking while developing usable apps on Vercel serverless platform.

Setting up a standalone cron server on another dedicated server to execute some scheduled tasks at Vercel Serverless seems complicated.
Using third party cron services also introduced more limitations. We have to pay them even if our use cases are stupidly simple and not for business purposes.

Strong and free solution: https://pipedream.com

@redstrike No affiliation here, but easycron.com is very inexpensive. Starting at $12 / year enables you to do a lot with ~Zeit~ Vercel (the free plan should be more than enough for experimenting and testing your use cases).

Another alternative to EasyCron I've been using for crons that need to run less frequently than hourly, is GitHub Actions. I wrote about it here: https://news.brn.sh/using-github-actions-as-a-web-cron

You can also use Cloud Scheduler from the GCloud integration on Vercel Marketplace : https://vercel.com/integrations/gcloud

Idk guys, I think it’s mean to break resource optimization by such an abuse. I mean for what? If it appears your app doesn’t have enough visitors, - maybe such a slight improvement won’t make difference? I mean, it’s not Heroku, where frozen->warm translation required almost a minute or so, so even for “just first” visitor it was huge, too unpleasant. Here it’s 100ms, even less. You’re not making game servers, right?

Ok, let's settle this.
We do not want to ping our app and keep it alive.
All we need is a call, every now and then, to a specific function that does something on our backend (for ex. Checks our bank API for any incoming payments and then marks the client order as paid or something along those lines).
We don't want to abuse the platform. A serverless function is a process with a begining and an end, designed to run for a few milliseconds and then exit.
Most implementations mentioned here feel awkward at best. Especially GCP for Vercel that allows you to choose a SPECIFIC deployment for Cron. This is very impractical, since with my rate of deployments,  I would need to change this setting every 5 hours or so.
Anyhow, we know CRONaaS exists and most of us use it (myself included). Having it hardcoded in your app though or being able to manage everything from one place is a whole different thing (feels more stable and "correct") - besides as I have said in a previous post, most FaaS providers have a cron functionality, because most people don't want to mess with statefull servers and want to enjoy the stability, flexibility and low-cost of serverless. AWS for example - the service behind Vercel Serverless - already provides this.

@donfn @pyrsmk and the couple other people who've mentioned the Google Cloud integration - it looks like the Integration's Google Cloud Scheduler feature only allows scheduling deploy, not to call Serverless Functions on a schedule. Or am I doing something wrong?

We've added a new section to the docs with cron job recommendations!
https://vercel.com/docs/solutions/cron-jobs


using JDL, How to ignore the database table field in the view? How to set default value for database table field

I have created the project but don't want all to take input for all fields of the database table.
For Example:
Let's take jdl class field currentTime  where the current time of the server which will automatically be added when the record will be added no need to add this value by the user.
But  when I have created a model class using JDL,  It also created the corresponding input fields for the currentDate
How we can ignore some field to being display in the views using JDL and
How to give a default value to database field in the jdl file

Can you please ask this question on Stack Overflow and tag it with "jhipster"? That way, more people will see it and be able to help you.


improved memlimit test case and max_memory type handling

@seanmakesgames we have a conflict here, do you mind rebasing?

yep, will fix it up and get back to ya

somehow the commit stack is totally broken (and the diffs, too). I've made a new PR


"Auto Build Tags When Active" after each save?

When I enable the configuration "Auto Build Tags When Active", should the tags file be rebuilt each time I save a file within my project?
I thought that's what the configuration did, but it seems not to happen that way.  So far, the configuration only seems to rebuild my tags file when I open Atom on my project for the first time.

It means auto build tags when atom-ctags package active.


Status not updated to finished when using hashkiller-dict

Hi,
For some reason the status in the dashboard doesn't change to 'Finished' when a large wordlist like hashkiller-dict (https://hashkiller.io/download) is used. This is also the case when a ruleset is used which has invalid rules, like OneRuleToRuleThemAll (https://raw.githubusercontent.com/NotSoSecure/password_cracking_rules/master/OneRuleToRuleThemAll.rule). I've tried looking into why it isn't working but I couldn't find it unfortunately.

Hi,
When you are using a wordlist for the first time, hashcat has to parse it first which can take a bit of a time.
If you want to see the exact error or why it's not working (for debugging), there's a Files tab on the left when you are viewing the session. From there you can download the console output files.
Let me know how it goes!

Hi,
That's the weird thing, there's no error. The hashcat status also shows 'Exhausted', which should set the status of the session to 'Finished' right? I'm only experiencing this with the hashkiller-dict or with rulesets that have faulty lines in them.
Last hashcat status update from screen.log:
[s]tatus [p]ause [b]ypass [c]heckpoint [f]inish [q]uit =>

Session..........: 1_admin_t2LK_10
Status...........: Exhausted
Hash.Mode........: 1000 (NTLM)
Hash.Target......: /opt/crackerjack/data/sessions/1/10/hashes.txt
Time.Started.....: Wed May 11 14:58:16 2022 (1 min, 22 secs)
Time.Estimated...: Wed May 11 14:59:38 2022 (0 secs)
Kernel.Feature...: Optimized Kernel
Guess.Base.......: File (/opt/wordlists/hashkiller-dict.txt)
Guess.Queue......: 1/1 (100.00%)
Speed.#1.........:  3272.6 kH/s (0.33ms) @ Accel:1024 Loops:1 Thr:32 Vec:1
Recovered........: 97/979 (9.91%) Digests
Progress.........: 266518036/266518036 (100.00%)
Rejected.........: 1211123/266518036 (0.45%)
Restore.Point....: 266518036/266518036 (100.00%)
Restore.Sub.#1...: Salt:0 Amplifier:0-1 Iteration:0-1
Candidate.Engine.: Device Generator
Candidates.#1....: river888 -> †‰Z×^
Hardware.Mon.#1..: Temp: 44c Util: 89% Core:1590MHz Mem:5000MHz Bus:16
Started: Wed May 11 14:58:11 2022

Stopped: Wed May 11 14:59:40 2022
$

Yeah, this is strange. So it appears to be finishing normally but doesn't parse it as finished.
So if you run it with any other wordlists/rules, it runs just fine? And can you upload a screenshot of how it looks in the GUI when the session when it's "unfinished" please?

I'll close this ticket, but if it's still an issue please open it again.


Spanish on both sides

I got the plugin to work successfully, and it synced, but the data isn't good, as there is no English answer.
I get questions like: "Provide the translation for 'este' from Spanish." and the answer is "este".

Any ideas? Thanks!

Hi @mickmel ! Providing translations isn't a feature of this plugin.
It would definitely be a useful thing to have, and in fact the plugin used to provide this feature, but Duolingo changed their code and turned off the functionality that the plugin used to retrieve the translation.
The field where it says, "Provide the translation for 'este' from Spanish," is where the user needs to provide the translation from Spanish.
Some other users have figured out ways to use other tools to provide these translations in bulk. You can see that discussion in https://github.com/JASchilz/AnkiSyncDuolingo/issues/61 .


[5.3] Model-specific collections in factories

The factory() method just returns plain Eloquent Collection instances. This creates collection instances as defined on the model class being created.

@taylorotwell Thanks!

:+1:


Json parse error with multiple remote blob writes

Describe your problem
When doing multiple remote blob writes, I run into a
vineyard._C.InvalidException: Invalid: [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal

If is is a bug report, to help us reproducing this bug, please provide information below:

Your Operation System version (uname -a):

Linux 5.19.0-45-generic

The version of vineyard you use (vineyard.__version__): 0.15.0
Versions of crucial packages, such as gcc, numpy, pandas, etc.: 11.3.0
Full stack of the error (if there are a crash):

remote_blob_id = client.create_remote_blob(blob_builder)
vineyard._C.InvalidException: Invalid: [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal

Minimized code to reproduce the error:

"""
Vineyard launched using: python3 -m vineyard --size 5G --socket=/tmp/vineyard.sock
"""
import vineyard
import os

client = vineyard.connect("localhost", 9600)

for i in range(100):
    print(f"Writing {i} blob")
    payload = os.urandom(1024 * 1024 * 100)
    blob_builder = vineyard.RemoteBlobBuilder(len(payload))
    blob_builder.copy(0, payload)

    have_written = False
    while not have_written:
        try:
            remote_blob_id = client.create_remote_blob(blob_builder)
            have_written = True
            print(f"Successfully written {i} blob")
        except vineyard.NotEnoughMemoryException:
            print(f"Not enough memory, retrying {i} blob")
            continue

Thanks for reporting. I will take a try to reproduce.

Fixed in the latest bugfix release, try pip3 install vineyard==0.15.1.

Hi, this issue still prevails, as in the above code snippet, when Vineyard is out of memory, I should keep retrying, although I get a
vineyard._C.IOErrorException: IOError: Send message failed: Connection reset by peer

on the client, and my vineyard server crashes with
E20230626 18:17:15.140587 15969 socket_server.cc:203] json: [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - invalid literal; last read: '('
E20230626 18:17:15.141117 15974 socket_server.cc:203] json: [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - invalid literal; last read: '�'

Unhandled exception:
  std::exception:what(): [json.exception.type_error.316] invalid UTF-8 byte at index 130: 0xF7

Looks strange. Let me take a try about OOM.

Looks strange. Let me take a try about OOM.

Hi @watch24hrs-iiitd,
The bug during OOM has been fixed in the latest release v0.15.2.


Oracle.DataAccess.Client is not installed

Hi,
I have installed multiple Oracle drivers on multiple machines that all use PowerBi x64. Tableau, sqlplus and oracle SQL connect perfect. I followed the guide to the letter and spent way too many hours trouble shooting this now.  The current version of Oracle on my "virgin" home machine is ODAC122010Xcopy_x64. I installed from an Admin command screen using the following command c:> install.bat all c:\oracle myhome true
..I also installed PowerBI for the first time on my virgin home machine after the oracle drivers were installed and still get the recommended provider (Oracle.DataAccess.Client) is not installed.....
I have tried this on two other work machines with different Oracle Drivers - I even got one of the work machines completely reimaged. It is very frustrating now!
Any help would be greatly appreciated!

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 382f269e-2072-ec03-7c88-335cbd5df919
Version Independent ID: 46a896f9-4707-adc3-72cd-5444a5d0f802
Content: Connect to an Oracle database - Power BI
Content Source: powerbi-docs/desktop-connect-oracle-database.md
Service: powerbi
GitHub Login: @davidiseminger
Microsoft Alias: davidi

Hi @scooleo ,
Thank you for your question.  I've assigned this to the doc author, who will respond asap. I'm not an expert in this area, but this does sound like a Product question and not a Docs question.  So you may want to post this on the Power BI forum (community.powerbi.com) as well.
Take care,
The DOCS team

Thanks a million Michele, much appreciated!
From: Michele Hart<EMAIL_ADDRESS>Sent: 13 February 2019 18:52
To: MicrosoftDocs/powerbi-docs<EMAIL_ADDRESS>Cc: scooleo<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [MicrosoftDocs/powerbi-docs] Oracle.DataAccess.Client is not installed (#784)
Hi @scooleo https://github.com/scooleo  ,
Thank you for your question. I've assigned this to the doc author, who will respond asap. I'm not an expert in this area, but this does sound like a Product question and not a Docs question. So you may want to post this on the Power BI forum (community.powerbi.com) as well.
Take care,
The DOCS team
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/MicrosoftDocs/powerbi-docs/issues/784#issuecomment-463320197 , or mute the thread https://github.com/notifications/unsubscribe-auth/AtVQtVa9eQZPSK6__YXO3NlZikj_8Xpgks5vNF66gaJpZM4a36AU .  https://github.com/notifications/beacon/AtVQtS9HQPJaHdZeqo2OOXXxRZqKm4Zlks5vNF66gaJpZM4a36AU.gif

Thanks for your comment, @scooleo. This is a support request rather than documentation feedback, and I'm sorry but we can't support you in this format/forum. You might find a solution in the Power BI Community, found at https://community.powerbi.com. If not, you can get support by going to https://support.powerbi.com.

You can try to use the following link, it worked for me where I was facing the same issue:
http://download.oracle.com/otn/other/ole-oo4o/ODAC121024_x64.zip


[graphiql] Cant assign name for the tab

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
I cant change name when new tab is added
Expected Behavior
I want to give specific name for each newly added tab
Steps To Reproduce

Go to graphiql example like this: https://graphql.github.io/swapi-graphql/?
Add new tab using "+" button
Try to change tab name

Environment

GraphiQL Version: 3.2.2
OS: Windows 10
Browser: Chrome
Bundler:
react Version: 18
graphql Version: 16

Anything else?
No response

Running into this on the github graphql explorer, would be really nice to be able to name my queries instead of seeing them all as <untitled>:

It's because it's based on the name of the query in that tab, you have to give a name to the query:

It took me a few moments to figure this out when I first tried it out too...

Using the name of the first query isn't a great experience when a tab contains multiple queries in. I also sometimes want to name the tab differently than the first query or leave the query unnamed.

@mfulton26 agreed, it is not ideal, do you want to create a feature request?

@mfulton26 agreed, it is not ideal, do you want to create a feature request?

I thought I did. It got marked as a duplicate of this issue: https://github.com/graphql/graphiql/issues/3406#issuecomment-2308288268


Enable eslint rules to tet projects + fix eslint problems

Description :sparkles:
Looks like the tet projects didnt have the eslint configured correctly. They used next lint instead of eslint which simply returned zero value instead of actually checking anyhing. Now the script is replaced and all the eslint fixes are done.
Issues :bug:
Testing :alembic:
Screenshots :camera_flash:
Additional notes :spiral_notepad:

Codecov Report

Merging #1556 (823a675) into develop (d957e7b) will decrease coverage by 39.26%.
The diff coverage is 76.35%.

@@             Coverage Diff              @@
##           develop    #1556       +/-   ##
============================================
- Coverage    65.19%   25.93%   -39.27%
============================================
  Files         1039      383      -656
  Lines        28610     7173    -21437
  Branches      2983     1590     -1393
============================================
- Hits         18653     1860    -16793
+ Misses        9503     5058     -4445
+ Partials       454      255      -199

Impacted Files
Coverage Δ

...shared/src/components/pages/PageLoadingSpinner.tsx
0.00% <0.00%> (ø)

...c/__tests__/utils/components/get-index-page-api.ts
0.00% <ø> (ø)

.../src/components/editor/EditorErrorNotification.tsx
92.30% <0.00%> (ø)

...rc/components/editor/previewWrapper/PreviewBar.tsx
0.00% <0.00%> (ø)

frontend/tet/admin/src/hooks/backend/useLogout.ts
100.00% <ø> (ø)

...tend/tet/admin/src/hooks/backend/useUploadImage.ts
0.00% <0.00%> (ø)

frontend/tet/admin/src/pages/new.tsx
0.00% <0.00%> (ø)

.../tet/admin/src/query-client/create-query-client.ts
0.00% <0.00%> (ø)

frontend/tet/admin/src/store/PreviewContext.tsx
35.29% <16.66%> (ø)

frontend/tet/admin/src/pages/login.tsx
38.88% <42.85%> (+0.42%)
:arrow_up:

... and 706 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


add option to customize accent color / hover color for links

The default orange is nice, but it would be cool to have an option for customizing this. Looks like it's set in sass/themes/_auto.scss, however I'm not sure what the best way would be to expose this to an option in config.toml...

hmmm this might not be possible because of a design "flaw" with zola...
https://zola.discourse.group/t/overriding-sass-in-tempate/175

Yes you are correct, I think so long as people know where to edit this color that it will not be a problem. generating a new css file from the sass files is handled automatically by zola, so they only need to update the color in the sass files and rebuild. I will add a note about this to the readme now.

I added a ntoe to the readme: https://github.com/Jieiku/abridge/commit/a7ac9d5ce95410262a3e76ab7dc14847e0d4292d

Just wanted to post that This theme now allows configuring which css file to load.
@simbleau created their own theme, which they can load in their config.toml file.
https://github.com/Jieiku/abridge/blob/master/sass/abridge-bluelight.scss
https://github.com/Jieiku/abridge/blob/master/sass/themes/_bluelight.scss

that's awesome, thanks for pointing that out!

I guess I'll plug the preview - https://spencer.imbleau.com/blog uses this theme.

interesting, it seems like that site isn't showing a dark version of the site even though I have my browser configured to prefer dark themes. maybe their custom theme doesn't include a dark version?

Bluelight has no dark version, but that is a current PR #43


move: Add readme on how to add a new Move native function

A follow up documentation to https://github.com/MystenLabs/sui/pull/3636


Fixed wrong BIGINT buffering. (Fix #11)

Related to https://github.com/fernandobatels/rsfbclient/issues/11.

Thanks for the fix!


Reduce verbosity of lakectl config file location

This line appears on every use of lakectl which is redundant when you're probably always using the same file after you first configured it.

Tested manually with/without config file and with different logging levels.


[BUG] Fix location url in agg_fn_evaluator

Fix #3779

The following code could remove.
    std::string _hdfs_location;
    std::string _init_fn_symbol;
    std::string _update_fn_symbol;
    std::string _merge_fn_symbol;
    std::string _serialize_fn_symbol;
    std::string _finalize_fn_symbol;


found a new reply code to catch

Description
GitHub Issues

Coverage remained the same at 90.841% when pulling 32311f44c9434c704b67b03c69138432c4830fa7 on mcrowson:alternate-format-error-code into c20544ea1005b805dbf447a62270536410b6c4f0 on refindlyllc:development.

Coverage remained the same at 90.841% when pulling 32311f44c9434c704b67b03c69138432c4830fa7 on mcrowson:alternate-format-error-code into c20544ea1005b805dbf447a62270536410b6c4f0 on refindlyllc:development.

Coverage remained the same at 90.841% when pulling f64b7f968f32b2758337f52f0bc7bcf3bc987d7d on mcrowson:alternate-format-error-code into c20544ea1005b805dbf447a62270536410b6c4f0 on refindlyllc:development.


May be math.js cancelled the replace func

Hi @gagmeng,
What are you passing for the bin parameter when you call function formatBin?  replace method expects a string value so any other type would thro that error.


Fix a minor typo in 5-stdlib-containers.md

I think this is a minor typo -- I apologize if I am mistaken. Thank you for writing this document -- it is very helpful to me while learning Rust.

FYI @stevedonovan  -- I wonder if you are interested in such changes ?


Run npm install in downloaded template folder

Since we may require some npm packages in meta.js

Just ran into the need for this yesterday, when I wanted to use fs-extra to copy a .env.example file to .env.


Great work

How do I send you a few bucks?

@sdondley I am satisfied with just the words "Great work". 🙇


[user guide] How can I write a plain HTTP route with this?

Forgive the basic question, but what's a sensible way of adding a plain HTTP route to the Server.
I'd like to have some plain HTTP routes on some non GRPC paths.  Is this possible?

Forgive the basic question, but what's a sensible way of adding a plain HTTP route to the Server.
I'd like to have some plain HTTP routes on some non GRPC paths. Is this possible?

We have implemented this before, here is an example:
Implement an HTTP handle
https://github.com/engula/engula/blob/9901b7cd7c8460bd37f55389617de27f37dbb778/src/server/src/service/admin/service.rs#L55-L81
Then add the service to the tonic server.
https://github.com/engula/engula/blob/9901b7cd7c8460bd37f55389617de27f37dbb778/src/server/src/bootstrap.rs#L92

This uses warp but you can apply the same to axum. https://github.com/hyperium/tonic/blob/master/examples/src/hyper_warp_multiplex/server.rs


Update quickstart to support Opt::parse_args

The current quickstart document suggests to use pingora v0.1, but it also suggests using the Opt::parse_args interface, which was introduced in release v0.3.0. Update the quickstart document to suggest using v0.3 when setting up the cargo.toml file.
Addresses #432

This has been merged as part of the weekly sync. Thank you for your contributions! 🎉


3.4.1 - Unable to access contexts from each other despite what the doc says

Hi there!
I need to access a context from another one and tried what is told here: accessing contexts from each other
The problem is that the getEnvironment() from BeforeScenarioScope does not have a getContext() method because it returns an Environment object.
Searching through the source code, I found out that the getContext() is found under InitializedContextEnvironment class but we can only get this object through ContextEnvironmentHandler class by calling the isolateEnvironment() method and I can't do that through any available hook.
So:
1 - the documentation needs to be updated
2 - is there any other way I can get the initialized context that I need or should I make a hook of my own?
{edit: I was unable to label this :disappointed:  }

Did you try this solution in practice? It's working, but method is not highlighting by IDE because of interface.
Any way, it's working however is very dirty hack. It would be better to have meta context, like in behat 2 but it's not possible for now.

@spolischook which solution, exactly? The one in the doc I tried and I only get an Environment object and was unable to get an initialized context in any way. So I can't use the getContext()

It's working in our case, see -  https://github.com/oroinc/platform/blob/master/src/Oro/Bundle/SecurityBundle/Tests/Behat/Context/ACLContext.php#L38-L42

The environment returned by the getter in BeforeScenarioScope is an isolated one, as this hook runs after the isolation is performed.

I'll try to reproduce this in the next days and come back here :)


Set headline to a lower level

Setting the Building metafacture-core from source-headline to the same level as the other getting started sub-headlines.
See #408

Is this "getting started", though? I'd assume building from source is more of an "advanced" topic.


undefined method `descendants' for #Module:0x0000aaab167ce9c8 (NoMethodError)

I update Rails from 6.0.4 to 6.1.4.
I face following error.
root@827fdc13165b:~/sokudan# bundle exec rails c
/usr/local/bundle/ruby/2.7.0/gems/migration_comments-0.4.1/lib/migration_comments.rb:26:in `block in setup': undefined method `descendants' for #<Module:0x0000aaab167ce9c8> (NoMethodError)
	from /usr/local/bundle/ruby/2.7.0/gems/migration_comments-0.4.1/lib/migration_comments.rb:23:in `each'
	from /usr/local/bundle/ruby/2.7.0/gems/migration_comments-0.4.1/lib/migration_comments.rb:23:in `setup'
	from /usr/local/bundle/ruby/2.7.0/gems/migration_comments-0.4.1/lib/migration_comments.rb:59:in `<main>'
	from /usr/local/bundle/ruby/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
	from /usr/local/bundle/ruby/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
	from /usr/local/bundle/ruby/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
	from /usr/local/bundle/ruby/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
	from /usr/local/bundle/ruby/2.7.0/gems/bootsnap-1.7.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
	from /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/runtime.rb:74:in `block (2 levels) in require'
	from /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/runtime.rb:69:in `each'
	from /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/runtime.rb:69:in `block in require'
	from /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/runtime.rb:58:in `each'
	from /usr/local/bundle/gems/bundler-2.1.4/lib/bundler/runtime.rb:58:in `require'
	from /usr/local/bundle/gems/bundler-2.1.4/lib/bundler.rb:174:in `require'
	from /root/sokudan/config/application.rb:21:in `<top (required)>'
	from /usr/local/bundle/ruby/2.7.0/gems/spring-2.1.1/lib/spring/application.rb:92:in `require'
	from /usr/local/bundle/ruby/2.7.0/gems/spring-2.1.1/lib/spring/application.rb:92:in `preload'
	from /usr/local/bundle/ruby/2.7.0/gems/spring-2.1.1/lib/spring/application.rb:157:in `serve'
	from /usr/local/bundle/ruby/2.7.0/gems/spring-2.1.1/lib/spring/application.rb:145:in `block in run'
	from /usr/local/bundle/ruby/2.7.0/gems/spring-2.1.1/lib/spring/application.rb:139:in `loop'
	from /usr/local/bundle/ruby/2.7.0/gems/spring-2.1.1/lib/spring/application.rb:139:in `run'
	from /usr/local/bundle/ruby/2.7.0/gems/spring-2.1.1/lib/spring/application/boot.rb:19:in `<top (required)>'
	from /usr/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
	from /usr/local/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:72:in `require'
	from -e:1:in `<main>'

My environments:

Docker image: ruby:2.7.2

When I downgrade Rails to 6.0.4, no error occurs.

@tchikuba Rails 5.0 was the last supported version for this gem.  Rails now comes with built in support for comments when using MySQL or PostgreSQL, have you looked into that?


Add local file URL to callback response

Grants access to the file directly after saving. Prior promise response was empty.

Great!


CLI index building not working with Declarative Shadow DOM

Hello!
Pagefind works great, but I've a bug when using DSD.
The content is overlooked by the CLI builder. No index is built.
I think it's because the underlying DOM parser is skipping <template> elements altogether.
However shadowrootmode="open" should make this content discoverable, as with Chrome, Firefox or Safari does.

Not working:
			<page-content data-pagefind-body>
				<template shadowrootmode="open"> Hello </template>
			</page-content>

Working as expected:
			<page-content data-pagefind-body>
				Hello
			</page-content>

Good note; Thankfully this exists within Pagefind's codebase rather than the underlying parser, as we have <template> in the default list of ignored selectors. A lot of template
What's currently missing is a slightly richer Pagefind configuration that allows for explicitly including elements that would otherwise be ignored. Which is something that can be added — I would say both as a configuration file option, and as a data-pagefind-include attribute that can be added per-element.

Excellent! Thanks
I've switched to the programmatic Node API, better for my use case (dev server), even though it requires more setup.
writeFiles is straightforward, but still trying to figure getFiles out, I've trouble serving them via the HTTP server (mime types issues…).
Maybe I could file an issue for that? For more doc's examples.

Yes, open an issue on that and we can dive deeper there 🙂🙏


Website errors

 Issue by mattfraley1
Wednesday Feb 20, 2019 at 19:09 GMT
Originally opened as https://github.com/Wyamio/Wyam.Web/issues/82

https://wyam.io/api says page not found
https://wyam.io/modules/ page is empty

 Comment by daveaglick
Wednesday Feb 20, 2019 at 19:51 GMT

...and we’re back!

 Comment by daveaglick
Wednesday Feb 20, 2019 at 19:20 GMT

Man, you people are fast! I just released a new version and there was a blip with the website rollout. You happened to catch it at just the wrong time. It’s rebuilding and the fix should deploy in about 5 more minutes. 😀

 Comment by mattfraley1
Wednesday Feb 20, 2019 at 19:53 GMT

Yeah I figured, I noticed you were in there working on it and wanted to give you the heads up. I just happen to be in trying to learn wyam and static site generation in general.

 Comment by daveaglick
Wednesday Feb 20, 2019 at 20:04 GMT

👍 thanks, a heads up is always appreciated in case I didn’t notice - just let me know if you have any questions as you learn


FIX create_cube doesn't hit the right end point to retrieve existing cube node

Summary
create_cube should hit the /cubes/ endpoint, which returns the metrics and dimensions fields that are required to instantiate a Cube instance.
Test Plan

[ ] PR has an associated issue: #
[x] make check passes
[x] make test shows 100% unit test coverage

Deployment Plan

Close in favor of https://github.com/DataJunction/dj/pull/1047