In Ubuntu 20.04 not able to register GT 730 GPU - Could not load dynamic library 'libcudnn.so.7'; dlerror: libcudnn.so.7: cannot open shared object file

System information

OS Platform and Distribution  Linux Ubuntu 20.04

TensorFlow installed with following command :

pip3 install --upgrade tensorflow

TensorFlow version:

2.2.0

Python version: 3.8.2

Installed using virtualenv? pip? conda?:
pip3

GCC/Compiler version (if compiling from source):

CUDA/cuDNN version:

nvcc --version gives me below
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Wed_Oct_23_19:24:38_PDT_2019
Cuda compilation tools, release 10.2, V10.2.89

And
$ cat /usr/local/cuda/version.txt
CUDA Version 11.0.207

And also
Check for installed CUDA toolkit package:
$ dpkg -l | grep cuda-toolkit
ii  cuda-toolkit-11-0                             11.0.2-1                                  amd64        CUDA Toolkit 11.0 meta-package
ii  nvidia-cuda-toolkit                           10.1.243-3                                amd64        NVIDIA CUDA development toolkit

And
gcc --version
gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.

GPU model and memory:

GeForce GT 730 computeCapability: 3.5
Describe the problem
For installing the cuDnn, I strictly followed this SO ans by creating a developer account -
MAIN ISSUE IS - After running Tensorflow code getting
Could not load dynamic library 'libcudnn.so.7'; dlerror: libcudnn.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/lib/cuda/include:/usr/lib/cuda/lib64:
And below is the full log of the error in the terminal after a running a single .py file with Tensorflow
020-07-26 05:36:40.742760: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1
2020-07-26 05:36:40.774143: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-07-26 05:36:40.774446: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties:
pciBusID: 0000:01:00.0 name: GeForce GT 730 computeCapability: 3.5
coreClock: 0.9015GHz coreCount: 2 deviceMemorySize: 3.95GiB deviceMemoryBandwidth: 11.92GiB/s
2020-07-26 05:36:40.774705: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1
2020-07-26 05:36:40.776037: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10
2020-07-26 05:36:40.776832: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10
2020-07-26 05:36:40.777094: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10
2020-07-26 05:36:40.779055: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10
2020-07-26 05:36:40.779835: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10
2020-07-26 05:36:40.779996: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcudnn.so.7'; dlerror: libcudnn.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/lib/cuda/include:/usr/lib/cuda/lib64:
2020-07-26 05:36:40.780007: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1598] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
2020-07-26 05:36:40.780309: I tensorflow/core/platform/cpu_feature_guard.cc:143] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2020-07-26 05:36:40.785339: I tensorflow/core/platform/profile_utils/cpu_utils.cc:102] CPU Frequency:<PHONE_NUMBER> Hz
2020-07-26 05:36:40.785677: I tensorflow/compiler/xla/service/service.cc:168] XLA service 0x7f71a4000b60 initialized for platform Host (this does not guarantee that XLA will be used). Devices:
2020-07-26 05:36:40.785698: I tensorflow/compiler/xla/service/service.cc:176]   StreamExecutor device (0): Host, Default Version
2020-07-26 05:36:40.787154: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1102] Device interconnect StreamExecutor with strength 1 edge matrix:
2020-07-26 05:36:40.787171: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1108]

Provide the exact sequence of commands / steps that you executed before running into the problem
Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

It seems that I met the similar problem, too.
All problems are related to cudnn, which I couldn't find a usable .deb version for Ubuntu 20.04 LTS on NVIDIA.
So I follow the tutorials on the Internet and operate directly on the cudnn library.
But something wrong happens like @rohan-paul mentioned above.
This is what I got when I run the mnist_cnn.py
Invalid MIT-MAGIC-COOKIE-1 keyx_train shape: (60000, 28, 28, 1)
60000 train samples
10000 test samples
2020-07-26 14:12:51.958717: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcuda.so.1
2020-07-26 14:12:52.005335: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:981] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2020-07-26 14:12:52.006557: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties:
pciBusID: 0000:01:00.0 name: GeForce GTX 1650 SUPER computeCapability: 7.5
coreClock: 1.725GHz coreCount: 20 deviceMemorySize: 3.82GiB deviceMemoryBandwidth: 178.84GiB/s
2020-07-26 14:12:52.009482: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcudart.so.10.1
2020-07-26 14:12:52.058634: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcublas.so.10
2020-07-26 14:12:52.074376: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcufft.so.10
2020-07-26 14:12:52.080761: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcurand.so.10
2020-07-26 14:12:52.106325: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusolver.so.10
2020-07-26 14:12:52.115398: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library libcusparse.so.10
2020-07-26 14:12:52.115994: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libcudnn.so.7'; dlerror: libcudnn.so.7: cannot open shared object file: No such file or directory
2020-07-26 14:12:52.116040: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1598] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...

@rohan-paul,
Please take a look at the tested build configurations and try installing TensorFlow with CUDA 10.1 and cuDNN 7.6.
Also, please check this similar issue and let us know if it helps. Thanks!


Permission prompt appears twice

Hi. I'm using the last version(5.4.3) of inappwebview plugin. I am running a webview locally(without local server).
When permission is required for geolocation, the request is duplicated twice. As far as I understand, the first request is directly for the app, and the second for the webview.
How can I get rid of that second request ? Because it sure isn’t great UX…
Below are screenshots of what it looks like.

I found the same article for WKWebView on IOS. But I couldn't figure out how to implement it in Flutter.
https://stackoverflow.com/questions/39665367/how-to-prevent-wkwebview-to-repeatedly-ask-for-permission-to-access-location

@holailusoria Ich have the same problem with react-native-webview. Any solution?

same problem. Any solution?


Release to MavenCentral

Create release v1.0.0 and publish to Maven Central repository.

The artifact is already in

repo1.maven.org
search.maven.org

Waiting to be indexed at
mvnrepository.com

Already indexed - link.


MECH2100

Prerequisite for MECH2100 is MECH2305 (not a mechatronics course).
Tyson currently checking issue

maybe we could email mech&mining.... is it an enforced prerequisite?

whoops accidentally closed it

None of the prereqs are really enforced
Tyson is aware of this and hopefully will fix it on the uq website, but just raising the issue here so we remember to change the tex

I've just made a commit that lists MECH2305 as a recommended prerequisite. Should be good enough

Ok sure
Can anyone who's done mech2100 support having mech2305 as recommended


How can i solve  incompatbile dependancy

youtube-search-python 1.5.3 requires httpx>=0.14.2, but you have httpx 0.13.3 which is incompatible.```

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
googletrans 3.1.0a0 requires httpx==0.13.3, but you have httpx 0.21.3 which is incompatible.

I need this two module in the same project

https://github.com/ssut/py-googletrans/issues/328

Thanks,

I make a fork, and a i change required version,
and I change a line not compatible,
i change httpcore.SyncHttpTransport to httpx.HttpTransport ( i don't know if the same thing but, it works 😆
Thank you @mytja

So, we close the issue


Infinite Scroll refactor

Describe your changes
Refactor the Infinite scroll code into a common hook.
Add a timeout mech to resolve #1638

Issue or discord link

Resolves https://github.com/frzyc/genshin-optimizer/issues/1638

Testing/validation

Checklist before requesting a review (leave this PR as draft if any part of this list is not done.)

[ ] I have commented my code in hard-to understand areas.
[ ] I have made corresponding changes to README or wiki.
[ ] For front-end changes, I have updated the corresponding English translations.
[ ] I have run yarn run mini-ci locally to validate format and lint.
[ ] If I have added a new library or app, I have updated the deployment scripts to ignore changes as needed

merge conflict


[BUG] My Black Hole Generator isn't working (maybe i'm missing something)

Version of Advanced Rocketry
AdvancedRocketry-1.12.2-1.6.0-186-universal.jar
Have you verified this is an issue in the latest unstable build

[x] N

Version of LibVulpes
LibVulpes-1.12.2-0.4.2-68-universal.jar
Version of Minecraft
1.12.2
Does this occur without other mods installed

[x] N/A

Crash report or log or visualVM (if applicable)
http://pastebin.com is a good place to put them
crash reports that are put in the issue itself are
hard to read
Description of the problem
I tried to set up the black hole generator. I created a black hole using the planetDefs file, went to the black hole, set up the multiblock, filled the input hatches with Dirt/cobblestone/Stone as set in the config of advanced rocketry and turned it on, but it doesn't drop any items, nor does it generate power. There is no wiki page or other resource on this multiblock, so i figured i'd just ask here.
I added screenshots of my setup.
Love your mod!

Do you have any energy output hatches on it?

Do you have any energy output hatches on it?

It does not appear they do, which is 100% the problem.

It totally worked, thanks!


Adding serial console

📝 Description
Serial console + actions + console selector dropdown
Based on https://github.com/kubevirt-ui/kubevirt-plugin/pull/120 - should be merged first
🎥 Demo

Please add a video or an image of the behavior/changes

/lgtm


Broadcast WIP

We wish to be able to send packets to all nodes on a particular subnet. For this purpose, we are going to reserve the highest address within each subnet to broadcast, just like IP does. This would work for any BUS where it's possible to listen for multiple addresses. That means CAN and ZMQhub currently.

[x] Put nodeid on each interface
[x] Put netmask on each interface
[x] Make router respond (incoming) to multiple addresses
[ ] Add additional CAN filter for the broadcast address
[x] Automatically add link local routes to the routing table
[x] Get rid of global CSP address
[x] Outgoing connections select source address based on matching routing entry
[x] Loopback interface is used if destination matches the loopback address (which one? 0, comes to mind as it's available on both csp 1 and 2.)
[x] Not all interfaces supports loopback on the wire (zmq does, can does not) so we could consider sending those to the loopback interface too

@yashi got anything to sha about this one?

I'll do a quick review now.

I'd love to have broadcast capability in CSP, BTW.

a bit more on 3.  If csp_send_direct() is also user facing API and want it to handle encryption, we should create a new internal api and make csp_send_direct():
int csp_send_direct(...) {
    encript();
    __csp_send_direct(...);
}

Then, make routers to use __csp_send_direct().

One big different from IP broadcast is that CSP routers, by default, forward broadcast packets to the destination subnet, right?  We might need a big fat warning about it in the doc.  A configuration nob on each router whether or not to route broadcast packet might help?  Otherwise we have to allocate a subnet for GS all the time?

One big different from IP broadcast is that CSP routers, by default, forward broadcast packets to the destination subnet, right? We might need a big fat warning about it in the doc. A configuration nob on each router whether or not to route broadcast packet might help? Otherwise we have to allocate a subnet for GS all the time?

Excellent observation skills! With CSP we will allow broadcast traffic to be routed. This means that if i want to ping any node on the satellite bus, i can ping the broadcast address of that subnet. Which is a huge feature :)
Regarding the configuration knob, i think you are mistaking this from layer-2 broadcast, which we definitely will not want to broadcast across the router. So this til always be rejected.
An example of layer-2 broadcast is a special packet that all nodes on CAN will receive, regardless of their CSP configuration. Something that i want to add, in order to recover mis-configured nodes. But it will never reach the router. Layer-2 broadcast should be rewritten so that the incoming address matches that of the interface it was received on, and then passed to the router queue. It will therefore always be received as "to_me", and thus also never possible to route.

Is it OK to have multiple entries for the same interface?  That is, interface A for network 1 and network 2.  This is related to the next question.
how does the address specified by via on csp_rtable_set() handled?

I'm a little confused by these two. But if you are referring to routing table entries then yes. Multiple routes can point to the same interface.
The 'via' address is used for the layer-2 to rewrite the destination address on the MAC layer. For example on I2C, where a node can only listen on once address, the router's cannot just go into promiscious mode to feth all traffic. So each node needs to rewrite and know the gateway MAC address.
This is actually only needed for I2C at the moment. But one could imaging it being used for Ethernet and even CAN. But on CAN i have decided it's so low speed, that i will just use promiscious mode on the radios and filter by routing table. This also removes the configuration of redundant radios into the radios, and not spread out on the network nodes to chante the address of the 'via'. or 'gw addr'.

I feel we should move encryption routines out from csp_send_direct().  It's fine that csp_send() encrypts the packet for users.  But for csp_send_direct() or any internal function should do one thing and only one thing.  If we have encryption a function, csp_send() can encript the packet and send it via csp_send_direct(), routers can use csp_send_direct() without from_me.

Yes, encryption should just be removed. And i actually just did a split for send_direct, because some packets should be sent based on a routing entry, while others do not have a routing entry and should be sent based on just the interface. A little messy, but it works :)
a final note is that send_direct is only available within CSP not outside.


Update submission.ts

fixes: #756

@edmundhung I can fix tests if you think this is an appropriate change

nevermind, I figured out how to do it.
this is the code that works with submission.reply({resetForm: true})
  useEffect(() => {
    if (
      fetcher.state === "idle" &&
      fetcher.data &&
      fetcher.data.status !== "error"
    ) {
      onFinish();
    }
  }, [fetcher.data, fetcher.state, onFinish]);

where onFinish should be called in the scenario you want to close a form drawer.


an/invoices

1 page focused generalized invoice config

@aNorthSense It looks like there's a conflict with the readme that needs to be resolved

@damonbogich I made the adjustment and also swapped in an anonymized version of the files.


feat: a command to download a document or a field

close #19

#15 同様、業務で必要になった際に書いたコードを残しておきます。

何ならexportと統合できますね。

I think export includes a serialization process and download doesn't include it. But i agree that there is too similar ... let me think ...

(I talked with exKAZUu on Discord.)
We'll rename the download to get-blob and remove the feature to export non-blob fields (and documents) from this command.

TODO: Add an option to provide the output file name.

Done.


Read frames on its own task

Adds a task to read frames asynchronously to improve read performance

It took my 350 years to find this, but it seems the modern reactive way to do this is by using the ObserveOn operator. The documentation for this thing in .NET/MSN docs is non existent. However, piecing together disparate info from the Rx.NET in Action, chapter 10 which provides  good description of function but obsolete API, along with Part 4 of Introduction to Rx (also obsolete API), and forum and medium posts I finally found this: https://stackoverflow.com/questions/18681792/writing-my-own-ischeduler-to-to-manage-threads-what-should-be-the-best-way-to-d. So, by inserting this into the reactive callback composition
ObserveOn(Scheduler.Default.DisableOptimizations(typeof(ISchedulerLongRunning)))

We put all "following" OnNext, OnCompleted, and OnError calls onto a group of separate, long running thread. When I put break points in downstream Reactive operators (e.g. for processing neuropixels frames or memory usage frames), the thread context switches between a few thread IDs  that keep repeating indicating some insane scheduling going on in the background. These threads are always different than the ReadFrame thread, which is constant. Core usage goes up a lot according and memory usage goes down even with ultra heavy processing upstream (buffering individual samples hundreds of times to create shader buffers for neuropix). Looks very promising.

Cool. Have you monitored system (PC) memory using that method?
One thing I discovered while testing acquisition thread stuff is that the system was not releasing memory properly and system memory usage was growing like crazy, that is why I also  experimented with GC management both with https://github.com/jonnew/liboni/pull/1 and the dispose method in this PR.
Following this rationale: the changes in https://github.com/jonnew/liboni/pull/1 informed the GC of the unmanaged memory a Frame object represents (even if internally multiple frames share a buffer, it is close enough to work). When that was added, system memory was kept in a reasonable range but, since we were then creating and destroying Frame objects so quickly, the managed code was just accumulating them until the GC did a pass to check for unreferenced objects, which as I understand halts all the threads to ensure reference count remains constant, then performing a lot of free operations at once which lagged the system. With the Dispose call, which is also recommended by the SafeHandle class documentation, the background GC was able to properly free the memory without impacting performance.
However, with what you propose, the Dispose call should probably be moved somewhere else, if OnNext now spawns a task of its own.

I'm looking at memory usage an it looks stable to me over hour or so of use 🤷.
I still think those GC optimizations are things we need to look into for performance reasons if nothing else. But I see no leaks right now.

This is now better implemented in the main branch.


Cannot modify user's subscription in iOS

I am trying to modify subscription of the user from app inside within the same subscription group. During PurchaseAsync first pop-up is for confirming the purchase which is "Do you want to upgrade to 1 Month auto-renewable subscription? Your upgrade will start now. You'll receive a refund for the remaining time of your 1-year subscription to yearly auto-renewable." After clicking "Continue", I got a General Error as below. Is the issue related to refunding and sandbox?
Exception:
Plugin.InAppBilling.Abstractions.InAppBillingPurchaseException: Cannot connect to iTunes Store
Bug Information
Version Number of Plugin: 2.0.0
Device Tested On: iPhone 6p
Version of VS: 7.5
Version of Xamarin: Xamarin.iOS Version: <IP_ADDRESS>
Steps to reproduce the Behavior

User A buys a subscription with his Apple ID.
User A updates his subscription with the same Apple ID.
The system displays a pop-up for confirmation
The system throws an error which is "General Error, Cannot connect to iTunes Store"

Expected Behavior
Users should update their subscription with the other ones which are in the same subscription group.

I could look into this one too as soon as my colleague will enable subscriptions on apple store (should be in the next weeks). @jamesmontemagno : from a plugin point of view this functionality can be paired with the one I'm fixing in #26 on the android side, do you agree? Can you approve (or reject) my pull request for the Android part and I will extend it if it is needed to fix this bug?

This is implemented now


Call for contributors!

Introduction
Dear community,
:rocket: DI-engine aims to be a generalized decision intelligence engine, including various algorithm toolkits and application demonstrations. Due to the complexity of abstraction and maintainment, DI-engine has become a pretty big beast :dragon_face:.
:star2: Therefore, We are calling for contributors now. For each applied task, we will arrange a internal support to help and review related work. We are looking forward to more support and inspiration from open-source community~
:checkered_flag: Here we list different types of tasks below:
Algorithm Section

No.
Task Name
Difficulty
Assigned to
Supporter
Status
Other Info

1
nstep/td-lambda support for SAC
:star::star:

2
optimal baseline for MAPPO
:star::star:

3
DRL algo: MPO
:star::star::star:

4
multi-agent RL algo: QPLEX
:star::star::star:

5
model-based RL algo: DreamerV3
:star::star::star::star:

6
other RL algo: JSRL
:star::star::star::star:

Env and Application Section

No.
Task Name
Difficulty
Assigned to
Supporter
Status
Other Info

1
Integration for metaworld
:star::star:

2
Update for competitive-rl
:star::star:

3
Integration for RL4LM
:star::star::star:

Doc and Tutorial Section

No.
Task Name
Difficulty
Assigned to
Supporter
Status
Other Info

1
English translation for ICM doc
:star:

2
Best practice doc for multiple reward
:star::star:

3
RLHF overview doc
:star::star::star:

Efficiency Section

No.
Task Name
Difficulty
Assigned to
Supporter
Status
Other Info

1
Integration for torch.compile
:star::star:

2
Integration for torch.amp
:star::star:

Code Quality Section

No.
Task Name
Difficulty
Assigned to
Supporter
Status
Other Info

1
Simplify SAC related policies
:star::star::star:

Test and Deploy Section

No.
Task Name
Difficulty
Assigned to
Supporter
Status
Other Info

1
Deployment of drone env docker
:star:

:sparkling_heart: If you are interested, you can claim a task by replying to this issue in the following format:
Metric No. : <The Task No. you claim>
Status :  Apply | Submit
Links : The repo links you fork (Apply status) / The PR links you open (Submit status)

:sparkles: Thank you in advance to anyone who helps out! For some outstanding contributors, we will send them some souvenirs, like badge and T-shirt powered by OpenDILab.
Notes

The documation of DI-engine can be found at: https://di-engine-docs.readthedocs.io/en/latest/index.html
The contributing guides can be found at: https://github.com/opendilab/DI-engine/blob/main/CONTRIBUTING.md
If you have more detailed problems, you can join our slack channel. Slack has an IRC bridge as well as a range of apps which makes idling and answering questions super easy.

Hi, I would like to implement Algorithm Section 1 and 4. Here is my profile: https://qiuwei888.github.io/

Metric No. : Doc and Tutorial Section No.1
Status :  Apply
Links : TBD

Hi, I would like to implement Algorithm Section 1 and 4. Here is my profile: https://qiuwei888.github.io/
Metric No. : Algorithm Section 1 and 4 Status : Apply Links : TBD

Thanks for your application! Which task do you want to start first? Algorithm Section 1 needs some understanding about the data flow of DI-engine while Algorithm Section 3 requires more necessary knowledge about multi-agent RL. You can choose one first and open a draft PR, we will provide corresponding support.

Hi, I would like to implement Algorithm Section 1 and 4. Here is my profile: https://qiuwei888.github.io/
Metric No. : Algorithm Section 1 and 4 Status : Apply Links : TBD

Thanks for your application! Which task do you want to start first? Algorithm Section 1 needs some understanding about the data flow of DI-engine while Algorithm Section 3 requires more necessary knowledge about multi-agent RL. You can choose one first and open a draft PR, we will provide corresponding support.

@PaParaZz1 Thanks. I would like select Algorithm Section 1 first.

Hello @PaParaZz1! I would like to work with DI-Engine.. As I am new to it, I would like to start with Doc and Tutorial Translation.

Hey @PaParaZz1!
Here is the pull request thread link for Doc and Tutorial Section No. 2 : https://github.com/opendilab/DI-engine-docs/pull/235
Let me know if there is any issue regarding the same. If yes then I would like to apply for the section no. 3.
Metric No. : Doc and Tutorial Section No. 3
Status : Apply
Links : TBD

Hi @PaParaZz1, I am interested in working on the GNN + RL from the "Env + Application" Section. Could you please provide some details on what the contribution would entail
I am a Ph.D. student working with graph neural networks and classical AI planning (and have experience with RL).
Regards,
Rajesh Mangannavar

Metric No. : Doc and Tutorial Section No. 4
Status :  Apply
Links : TBD

Metric No. : Code Quality Section No. 2
Status :  Submit
Links :  DI-engine/pull/778


No callback - USB suspend

Describe the bug
USB does not provide proper callback when suspended (USB_DC_SUSPEND). Using nRF52840 USB Device Controller Driver.
To Reproduce
Device with mentioned driver is connected and systems hibernates, USB devices should be suspended.
Environment (please complete the following information):

OS: Linux, Ubuntu 16.04 LTS
Toolchain: Zephyr SDK 0.9.5

Fixed in https://github.com/zephyrproject-rtos/zephyr/pull/13132


No more transition hooks in RC1. How to pause routing for data fetching?

On the server side, rendering is done through transition hooks (addTransitionHook) which check if a component has a fetchData method and then it calls it (for each matched route).
After all the data is fetched it calls the callback.
How can be server side rendering done with the new RC1?

You can reach an example of transition hooks in this (repo)[https://github.com/mikhail-riabokon/redux-form-universal-example]. It's an example of isomorphic redux-form.

@mikhail-riabokon thanks, I'll copy & paste your tricks into my project.
as for pausing routing, i guess, in RC1 it's no longer possible and noone should do that?

Some transitions hooks are already some kind of pausing, or that do you mean?

I meant the older methods addTransitionHook where it seemed that one could pause routing from inside React components.
Anyway, I guess, the older methods aren't needed, so I'll close the issue for now.
Maybe I'll reopen it, we'll see

@mikhail-riabokon Mihail, I copy pasted your code and it works for server-side rendering. But what about client side rendering?
In you example you have a single route:
export default (
  <Route path="/" component={App}/>
);

What if an application has several routes: how then are you gonna call asynchronous page preloading methods?
Theoretically, you could call them in componentDidMount of a page.
But, then you should prevent this code in componentDidMount from being called on the server.
This introduces an undesired "if-else" in all page components.
Previously one could addTransitionHook and call preloading methods there.
Now there'll be another way.
So, I guess, your redux-form-universal-example works for a single-route application but doesn't work for a real application.

In v1.0.0-rc1, I did not find another way. componentDidMount does not work on server
For server rendering you can use transitions hooks, for client componentDidMount, wherewre how much routes you have.
And it's just an example of how I am trying to solve this problem. Agree, that two different methods for the same action (fetching data for example) it's not perfect solution, but it's better than nothing.

Yes, i guess, that will do for a solution for this case. Thanks for
assistance.
On Wednesday, September 23, 2015, mikhail-riabokon<EMAIL_ADDRESS>wrote:

In v1.0.0-rc1, I did not find another way. componentDidMount does not
work on server
https://facebook.github.io/react/docs/component-specs.html#mounting-componentdidmount
For server rendering you can use transitions hooks, for client
componentDidMount, wherewre how much routes you have.
And it's just an example of how I am trying to solve this problem. Agree,
that two different methods for the same action (fetching data for example)
it's not perfect solution, but it's better than nothing.
—
Reply to this email directly or view it on GitHub
https://github.com/rackt/react-router/issues/2033#issuecomment-142525353
.


feat(cheatcodes) vm.prompt: Prompt user for interactive input

Implementing #5509. I am reviving this, took me a while to get to this, apologies.
This PR will add two cheatcodes: vm.prompt() and vm.promptSecret(). These cheatcodes will let users enter dynamic values that can be consumed by Forge scripts.
The description below is long. It mostly explains the issues I encountered.
TLDR:

I could not implement a timeout due to limitation in Dialoguer
I did not write tests because I couldn't figure out how to test user input
Some open questions at the bottom

Motivation
It would be useful to pass arguments to scripts in a dynamic & user-friendly way. Today the options for passing arguments are either environment variables or using the --sig argument. Both of these are cumbersome and in addition, if the parameter is some secret (password, private key, api key, etc), it exposes it in the shell history.
Adding the vm.prompt() and vm.promptSecret() cheatcodes will allow script authors to write better scripts and more easily generalize their arguments. For example, scripts could prompt for a fork alias to pass to vm.createSelectFork(), or the address of a contract they interact with, etc.
Implementation
We decided to keep the interface simple and only allow string memory responses, letting the script author handle any necessary parsing using the usual string parsing methods. The implementation is based on the Dialoguer crate which is already used elsewhere and it is quite straightforward.
Timeout
Adding a timeout was suggested in order to prevent CI environments from hanging unexpectedly. These timeouts would be handled by script authors using try / catch in Solidity if desired.
Unfortunately, Dialoguer does not support timeouts for prompts. Looking at other prompt libraries it does not seem they support a timeout either. I was able to hack together a partial solution by running Dialoguer in a thread and using mpsc::channel to wait for its response up to a certain timeout. This works for Input prompts but not for Password prompts. See this comment I left on the timeout feature request on Dialoguer repo.
Therefore I decided to leave the timeout feature out of the initial PR so we can discuss other approaches (see "Open questions").
Testing
Since this cheat requires interactivity it cannot be tested in Solidity ― only in Rust. But unfortunately I couldn't figure out exactly how to test it. The main problem is that the
One option I thought we could try is mocking one of the underlying components Dialoguer uses ― Term ― in order to mock user input. But after looking at some Rust libraries it seems you cannot mock a struct from external libraries.
Another idea I had was to try and interact with the Term object via threads: run prompt in main thread, write into Term in a different thread. While visually it works (the terminal display the prompt & answer) it seems that Dialoguer does not register the input from the other thread.
Open questions

For the CI hangups issue, we could explore other approaches:

Use a different package which might work with the mpsc::channel solution
Detect interactive environment with atty (not sure if this would actually work)
Follow the  --non-interactive flag forge script already has. This would require implementing a similar flag for forge test
Decide to ignore this and let script authors handle timeouts externally (e.g. put a timeout on their CI job)

Currently the error returned from this cheatcode is only catchable with catch (bytes memory) and not with catch Error(string memory). Is there a way to fix this?
Testing ― as mentioned above, I couldn't figure out testing. Anyone got an idea?

Dependent PRs

[ ] Foundry Book

[ ] Document @klkvr suggestion as best practice for parameterized scripts running in CI
[ ] Open PR

[ ] Forge-Std

this looks great! thanks for implementing this

Currently the error returned from this cheatcode is only catchable with catch (bytes memory) and not with catch Error(string memory). Is there a way to fix this?

Error(string) is a selector for Solidity errors coming from revert/require and only such errors are catchable by catch Error(string). Cheatcode errors are encoded as a CheatcodeError(string), so it's fine and expected that they can only be catched via catch (bytes)

I was able to hack together a partial solution by running Dialoguer in a thread and using mpsc::channel to wait for its response up to a certain timeout. This works for Input prompts but not for Password prompts.

Your code from https://github.com/console-rs/dialoguer/issues/266#issuecomment-1925432193 with some small modifications seems to be working for me
fn prompt_secret(prompt_text: String) -> Result<String> {
    let (send, recv) = mpsc::channel();

    thread::spawn(move || {
        send.send(Password::new().with_prompt(prompt_text).interact()).unwrap();
    });

    match recv.recv_timeout(Duration::from_secs(5)) {
        Ok(res) => res.map_err(|_| "i/o error occured".into()),
        Err(_) => Err("timeout".into())
    }
}

However, there were several times when it didn't react on any input and failed with timeout, but this looked like a shell bug and simple restart of the shell fixed it. I can't reliably reproduce this behavior.

Testing ― as mentioned above, I couldn't figure out testing. Anyone got an idea?

I can imagine some kind of InputSource abstraction which would be a wrapper around Dialoguer usually and which we can mock in tests. I think @DaniPopes or @mattsse might have some better ideas
Let's also hide values received from promptSecret in traces as it's done with env variables here: https://github.com/foundry-rs/foundry/blob/7922fd5482f9561699e0fe5a903c90b3fa1fc50d/crates/evm/traces/src/decoder/mod.rs#L460-L470

Thank you @klkvr for the quick response! :pray:

Regarding the error: Ok, got it., thanks :slightly_smiling_face:
Regarding the timeout: that's awesome, I will try it out! Interesting what you're saying about a shell bug. I am using tmux, so might be related? I will test it out and report back
Regarding testing, are you suggesting a sort of DI? Let me know if I understand your suggestion correctly:

Create a new struct, InputSource, which implements the same API as Dialoguer but with traits, and delegates the function calls to an internal instance of Dialoguer
Change prompt and prompt_secret so they accept an instance of this new trait
In the tests module, create MockInputSource which implements the trait but does not actually interact with the terminal, simply returns a hard-coded value

Regarding hiding values in traces: good catch! I will do that

Yeah, I meant DI approach here, however not sure if it really worth the effort (we would have to somehow pass the mocked InputSource all the way down to the Cheatcodes when running tests), as we won't actually test any stdin interactions that way.

Let's figure out how to deal with timeouts first, and after that we can add tests for timeouts causing reverts which seems to be more important and won't require any mocking

@mds1 Good point. IMO, having a single default value which is used in test environment will not always be enough. I believe that for testing scripts with prompt cheats such pattern would make sense:
contract Script {
    function run() public {
        uint256 myUint = vm.parseUint(vm.prompt("enter uint"));
        run(myUint);
    }

    function run(uint256 myUint) public {
        // actual logic
    }
}

That way, we are keeping UX gain (don't have to provide --sig argument when running script), but tests can set any value to myUint and not just hardcoded default.

@mds1 would you like me to implement #2399 as part of this PR? Should be simple enough I think. Dialoguer supports a confirm-type prompt:
https://docs.rs/dialoguer/latest/dialoguer/struct.Confirm.html
Regarding a "default value" ― script authors could catch the timeout and provide a default for themselves:
function promptWithDefault (
    string memory prompt,
    string memory defaultValue
) internal returns (string memory input) {
    try vm.prompt(prompt) returns (string memory res) {
        if (bytes(res).length == 0) input = defaultValue;
        else input = res;
    }
    catch (bytes memory) {
        input = defaultValue;
    }
}

Not sure if that truly answers your concerns, but something to consider.

I'm still working on the timeout, I added it in the config but it seems I broke some tests. Looking into it.

@klkvr @mds1 @DaniPopes I see I have tests that are failing. I am very certain there is an actual issue because the original commit for the PR fully passed the tests.
When I try to run the tests locally using e.g.:
$ cargo nextest run -E 'kind(test) & !test(/issue|forge_std|ext_integration/)' --partition count:2/3

I get different tests failing :thinking: (specifically one forge::cli cmd::can_install_missing_deps_build).
One noticeable difference is that it seems these tests are running on Windows while my machine is Linux.
What would be the best way to try and reproduce these failures locally?

I see I have tests that are failing

@Tudmotu Some tests are very flaky unfortunately. I've re-ran the failing jobs and they pass now.

Ah, thank you @DaniPopes :pray:
I was pretty certain I broke something because my local tests were also failing, albeit other ones. But I guess for some other reason.

Looking at my code I am pretty sure I did not implement the config option correctly. It works, but it feels wrong to modify evm/core for this, right?

I pushed another change that removes the unnecessary changes I made to evm/core.
I would like to push this PR forward.
Regarding tests:
Would we like to follow the approach suggested by @klkvr?
I describe it here: https://github.com/foundry-rs/foundry/pull/7012#issuecomment-1926476629

I think it's fine to just have a couple tests like
vm._expectCheatcodeRevert("Prompt timed out");
vm.prompt(...);

vm._expectCheatcodeRevert("Prompt timed out");
vm.promptSecret(...);

we have default timeout set to 0 for testing, so it shouldn't cause any issues with our CI
@mattsse wdyt?

It seems using vm.prompt fails with a different error because it detects it is not running in an interactive shell:

Looking into how to make it work.

After looking into it, it seems to be caused by nextest capturing stdout. Running with --no-capture allows Dialoguer to run but it hangs for some reason. The hangup might be solvable, but I'm more uncertain about the --no-capture flag, since it requires running the tests sequentially.

Hi all,
I would like to get a temp check on this. Is there anything I can do to push this feature forward?

Pushed a change which propagates the error message.
Also added tests that make sure this error exists.
Will prepare PRs for Foundry Book & Forge Std.

Prepared branches for Book:
https://github.com/foundry-rs/book/compare/master...Tudmotu:foundry-book:tudmotu/vm.prompt?expand=1
And Forge-Std:
https://github.com/foundry-rs/forge-std/compare/master...Tudmotu:tudmotu/vm.prompt?expand=1

Whoops, I was certain I already made these changes but I guess I messed something up with my rebases :sweat_smile:
I believe everything should be addressed now :slightly_smiling_face:

@Tudmotu
we can now add it to forge-std

Thank you @mattsse  🙏
I will open the Book & Std PRs soon.

Thank you all for the review, effort and patience 🙂 🙏


Unable to change the window height and width

OS: 4.12.8-2-ARCH
Changing the window height and width is only possible after closing the main window and clicking on the tray icon "Open Notifications".

I also tried it with Ubuntu 16.04. Same problem. I can change (sometimes) the width but not the height of the window. It only works after closing the main window and clicking on the tray icon "Open Notifications".

I'll look into this as soon as I get home.

Very odd. I could not replicate this issue on KDE Neon. Will look into it though.

I've been doing some more testing and been using devRantron heavily the last week on 3 different OS's (KDE Neon, Ubuntu, Windows) and i was not able to replicate it. Therefore i'm closing it. Feel free to reopen if you find a good way to replicate it.


libsolv: 0.6.33 -> 0.6.34

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/libsolv/versions.
These checks were done:

built on NixOS
ran /nix/store/bs3l8vgzajfslygxd6428x9agz7k0sdz-libsolv-0.6.34/bin/mergesolv -h got 0 exit code
ran /nix/store/bs3l8vgzajfslygxd6428x9agz7k0sdz-libsolv-0.6.34/bin/mergesolv --help got 0 exit code
ran /nix/store/bs3l8vgzajfslygxd6428x9agz7k0sdz-libsolv-0.6.34/bin/mergesolv -V and found version 0.6.34
ran /nix/store/bs3l8vgzajfslygxd6428x9agz7k0sdz-libsolv-0.6.34/bin/mergesolv -v and found version 0.6.34
ran /nix/store/bs3l8vgzajfslygxd6428x9agz7k0sdz-libsolv-0.6.34/bin/mergesolv --version and found version 0.6.34
ran /nix/store/bs3l8vgzajfslygxd6428x9agz7k0sdz-libsolv-0.6.34/bin/mergesolv --help and found version 0.6.34
ran /nix/store/bs3l8vgzajfslygxd6428x9agz7k0sdz-libsolv-0.6.34/bin/dumpsolv -h got 0 exit code
ran /nix/store/bs3l8vgzajfslygxd6428x9agz7k0sdz-libsolv-0.6.34/bin/testsolv -h got 0 exit code
ran /nix/store/bs3l8vgzajfslygxd6428x9agz7k0sdz-libsolv-0.6.34/bin/testsolv help got 0 exit code
ran /nix/store/bs3l8vgzajfslygxd6428x9agz7k0sdz-libsolv-0.6.34/bin/rpmdb2solv -h got 0 exit code
ran /nix/store/bs3l8vgzajfslygxd6428x9agz7k0sdz-libsolv-0.6.34/bin/repomdxml2solv -h got 0 exit code
ran /nix/store/bs3l8vgzajfslygxd6428x9agz7k0sdz-libsolv-0.6.34/bin/rpmmd2solv -h got 0 exit code
ran /nix/store/bs3l8vgzajfslygxd6428x9agz7k0sdz-libsolv-0.6.34/bin/updateinfoxml2solv -h got 0 exit code
ran /nix/store/bs3l8vgzajfslygxd6428x9agz7k0sdz-libsolv-0.6.34/bin/deltainfoxml2solv -h got 0 exit code
found 0.6.34 with grep in /nix/store/bs3l8vgzajfslygxd6428x9agz7k0sdz-libsolv-0.6.34
directory tree listing: https://gist.github.com/55d7c975b96261e699fe5ba6b9bdddec

cc @copumpkin for review

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: libsolv
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

Success on x86_64-linux (full log)
Attempted: libsolv
Partial log (click to expand)
shrinking /nix/store/bs3l8vgzajfslygxd6428x9agz7k0sdz-libsolv-0.6.34/bin/updateinfoxml2solv
shrinking /nix/store/bs3l8vgzajfslygxd6428x9agz7k0sdz-libsolv-0.6.34/bin/deltainfoxml2solv
gzipping man pages under /nix/store/bs3l8vgzajfslygxd6428x9agz7k0sdz-libsolv-0.6.34/share/man/
strip is /nix/store/fzcs0fn6bb04m82frhlb78nc03ny3w55-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/bs3l8vgzajfslygxd6428x9agz7k0sdz-libsolv-0.6.34/lib64  /nix/store/bs3l8vgzajfslygxd6428x9agz7k0sdz-libsolv-0.6.34/bin
patching script interpreter paths in /nix/store/bs3l8vgzajfslygxd6428x9agz7k0sdz-libsolv-0.6.34
/nix/store/bs3l8vgzajfslygxd6428x9agz7k0sdz-libsolv-0.6.34
/nix/store/bs3l8vgzajfslygxd6428x9agz7k0sdz-libsolv-0.6.34/bin/repo2solv.sh: interpreter directive changed from " /bin/sh" to "/nix/store/q1g0rl8zfmz7r371fp5p42p4acmv297d-bash-4.4-p19/bin/sh"
checking for references to /build in /nix/store/bs3l8vgzajfslygxd6428x9agz7k0sdz-libsolv-0.6.34...
moving /nix/store/bs3l8vgzajfslygxd6428x9agz7k0sdz-libsolv-0.6.34/lib64/* to /nix/store/bs3l8vgzajfslygxd6428x9agz7k0sdz-libsolv-0.6.34/lib

Success on aarch64-linux (full log)
Attempted: libsolv
Partial log (click to expand)
shrinking /nix/store/l4si9bgdiadl4cm2p9x2q68hjc63cs0c-libsolv-0.6.34/lib64/libsolvext.so.0
shrinking /nix/store/l4si9bgdiadl4cm2p9x2q68hjc63cs0c-libsolv-0.6.34/lib64/libsolv.so.0
gzipping man pages under /nix/store/l4si9bgdiadl4cm2p9x2q68hjc63cs0c-libsolv-0.6.34/share/man/
strip is /nix/store/3zq400fri5dv7d30lpxlqm2v9y1iis6j-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/l4si9bgdiadl4cm2p9x2q68hjc63cs0c-libsolv-0.6.34/lib64  /nix/store/l4si9bgdiadl4cm2p9x2q68hjc63cs0c-libsolv-0.6.34/bin
patching script interpreter paths in /nix/store/l4si9bgdiadl4cm2p9x2q68hjc63cs0c-libsolv-0.6.34
/nix/store/l4si9bgdiadl4cm2p9x2q68hjc63cs0c-libsolv-0.6.34/bin/repo2solv.sh: interpreter directive changed from " /bin/sh" to "/nix/store/3gg2p6n4kv2f0lsxd41f5iz1ivkbzyzr-bash-4.4-p19/bin/sh"
checking for references to /build in /nix/store/l4si9bgdiadl4cm2p9x2q68hjc63cs0c-libsolv-0.6.34...
moving /nix/store/l4si9bgdiadl4cm2p9x2q68hjc63cs0c-libsolv-0.6.34/lib64/* to /nix/store/l4si9bgdiadl4cm2p9x2q68hjc63cs0c-libsolv-0.6.34/lib
/nix/store/l4si9bgdiadl4cm2p9x2q68hjc63cs0c-libsolv-0.6.34


Error and shutdown when trying to resolve unresolvable hosts

I have some application which maintains a list of hosts by their mdns name. Some of those hosts may be offline at any given time and therefore cannot be resolved. I'm on NixOS which now uses nsncd.
When there are around 10 or more hosts offline and the application tries to resolve their names nsncd stops with the following message:
Jul 13 09:25:54 xxxxxx nsncd[640]: Jul 13 09:25:54.513 ERRO timed out waiting for an available worker, thread: accept
Jul 13 09:25:54 xxxxxx nsncd[640]: Jul 13 09:25:54.513 INFO shutting down

As a workaround I disabled nsncd since nscd doesn't show this behaviour.

avahi has some quite annoyingly long timeouts - not sure what's the best way to handle this.
Can you open an issue upstream? All host-related lookup functionality got merged there.


Add pagination

Juno testnet has gotten so popular we need pagination: https://blueprints.juno.giansalex.dev/#/codes

The example there shows 89 entries. Did the network change since you opened the ticket? There seems to be a cap at 100 right now.
Are you referring to the UI or the network requests and access to more than 100 contracts?

The example in your link shows 89 entries right now. Did the network change since you opened the ticket? There seems to be a cap at 100 right now that I see when connecting to Sandynet.
Are you referring to the UI or the network requests and access to more than 100 contracts?

Yes, the network has changed since I opened the ticket. Juno's Uni Testnet has been refreshed.


Hide save button based on boolean

This would be straightforward to do with a real button like {{if notEditing 'hidden'}}, but is there a way to do it with this automatically generated button?

Hi @tinyweasel, thanks for the suggestion! With #20 we'll start yielding the submit button instead of automagically rendering it, which should offer much more flexibility. I'll let you know when it has been merged and released!

Version 0.2.0 was just released! Please see the changelog for a little upgrade guide.

Super! Thanks!


HDDS-6175. Use s3Auth during proxy during decrypt in RpcClient.

What changes were proposed in this pull request?
When operations are performed, we should use S3Auth credentials if it is set like how we used in getAclList. This Jira is to fix issue with proxyUser to use the UGI from S3Auth
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-6175
How was this patch tested?
This issue will be encountered only when KMS acls is enabled. So this needs to be tested with real cluster.

Thanks @bharatviswa504
LGTM.


CI action to test mod, also pushes zipped mod to an Artifact

yay now I can test testing mod releases

Seems to be working well, thank you!

Makes me happy to know I made somewhat-functional code :D


Add null value index for default column

Currently, if a new column is added to schema, we backfill the old segments with default null values.
However, when a user runs the query WHERE new_col IS NULL, they don't receive the old rows in the response.
This PR aims to fix this issue.

Codecov Report

Merging #9777 (5a7cf4a) into master (2c38d29) will decrease coverage by 44.82%.
The diff coverage is 0.00%.

@@              Coverage Diff              @@
##             master    #9777       +/-   ##
=============================================
- Coverage     70.15%   25.32%   -44.83%
+ Complexity     4976       44     -4932
=============================================
  Files          1955     1943       -12
  Lines        104880   104534      -346
  Branches      15874    15838       -36
=============================================
- Hits          73576    26472    -47104
- Misses        26164    75337    +49173
+ Partials       5140     2725     -2415

Flag
Coverage Δ

integration1
25.32% <0.00%> (-0.11%)
:arrow_down:

integration2
?

unittests1
?

unittests2
?

Flags with carried forward coverage won't be shown. Click here to find out more.

 Learn more


Run scripted without sbt/launcher

This runs the majority of sbt/sbt scripted tests without using sbt/launcher.
Still TODO:

investigate the effects of changing the dependency between sbt and the scripted plugin

I just want to say this is cool and I'm glad it's happening.

Given this is forking a new JVM to call RunFromSourceMain the compile-time dependency isn't totally necessary. I've re-written the setup to get the classpath required.
Still TODO:

investigate the effects of changing this scripted behaviour WRT usage of scripted outside of sbt/sbt

Also TODO:

Evaluate the performance change of this change (i.e evaluate if it's even worth it.. ;.;)

@eed3si9n this is green now and re-ready for review/evaluation.


(Eventually) Add ArangoDB to golang-migrate

https://github.com/golang-migrate/migrate

@Collinbrown95 I think Mike had you in mind for this one - (eventually :))


Adress boundary error

Minimal reproduction steps:
start.ts
import { MongoClient } from<EMAIL_ADDRESS>
const client = new MongoClient();
client.connectWithUri("mongodb://localhost:27017");

const db = client.database("myDataBase");
const users = db.collection("myUsers");

const insertId = await users.insertOne({
	username: "user1",
	password: "pass1",
});

Execute with:
deno run --allow-net --allow-write --allow-read --allow-plugin --unstable start.ts

Result:
No connection to database and error:

deno run --allow-net --allow-wr…' terminated by signal SIGSEGV (Address boundary error)

Issue is connected to version 0.9.1. Fix for me is downgrading into 0.8.0.

Use Deno 1.2.0 with version 0.9.1 of this module.


cpu_rec wrong detection case with clang assembled RISC-V64 binary

In attachement, a RISC-V binary, object file  and assembly source code, assembled with clang. The binary is wrongly detected as OCaml.
If I'm not wrong, I used these instruction to make this binary clang_build64.sh:

file=${1//.s}
clang --target=riscv64 -march=rv64imac -mno-relax ${file}.s -c -o ${file}.o
ld.lld -strip-all ${file}.o -o ${file}

hello_clang.tar.gz

This binary is very small, and contains almost no instructions (the .text section is 32 bytes long), that's why cpu_rec does not detect the type of cpu.
Do you have the same issue when running cpu_rec on RISC-V binaries that actually do something?


hare_plus-6.3.4/android/src/main/kotlin/dev/fluttercommunity/plus/share/SharePlusPlugin.kt:19:23 Unresolved reference: MethodCallHandler[Bug]:

Platform
hare_plus-6.3.4/android/src/main/kotlin/dev/fluttercommunity/plus/share/SharePlusPlugin.kt:19:23 Unresolved reference: MethodCallHandler
Plugin
hare_plus-6.3.4/android/src/main/kotlin/dev/fluttercommunity/plus/share/SharePlusPlugin.kt:19:23 Unresolved reference: MethodCallHandler
Version
hare_plus-6.3.4/android/src/main/kotlin/dev/fluttercommunity/plus/share/SharePlusPlugin.kt:19:23 Unresolved reference: MethodCallHandler
Flutter SDK
hare_plus-6.3.4/android/src/main/kotlin/dev/fluttercommunity/plus/share/SharePlusPlugin.kt:19:23 Unresolved reference: MethodCallHandler
Steps to reproduce
hare_plus-6.3.4/android/src/main/kotlin/dev/fluttercommunity/plus/share/SharePlusPlugin.kt:19:23 Unresolved reference: MethodCallHandler
Code Sample
hare_plus-6.3.4/android/src/main/kotlin/dev/fluttercommunity/plus/share/SharePlusPlugin.kt:19:23 Unresolved reference: MethodCallHandler

Logs
hare_plus-6.3.4/android/src/main/kotlin/dev/fluttercommunity/plus/share/SharePlusPlugin.kt:19:23 Unresolved reference: MethodCallHandler

Flutter Doctor
hare_plus-6.3.4/android/src/main/kotlin/dev/fluttercommunity/plus/share/SharePlusPlugin.kt:19:23 Unresolved reference: MethodCallHandler

Checklist before submitting a bug

[X] I Google'd a solution and I couldn't find it
[X] I searched on StackOverflow for a solution and I couldn't find it
[X] I read the README.md file of the plugin
[X] I'm using the latest version of the plugin
[X] All dependencies are up to date with flutter pub upgrade
[X] I did a flutter clean
[X] I tried running the example project

Please fill in the bug template correctly or I will close this issue.

@vbuberen Can u see the error above??

The log you provided is meaningless and not helpful. Having no other info requested in our template also makes this issue invalid. So, please, open a proper issue report if you want to get some help

Me too, same error.
I updated to share_plus: ^7.1.0, no errors during pub get. But when I try to run the application, the building fails with this exception:
e: file:///Users/dbruzzese/.pub-cache/hosted/pub.dev/share_plus-7.1.0/android/src/main/kotlin/dev/fluttercommunity/plus/share/MethodCallHandler.kt:10:24 Unresolved reference: Share

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':share_plus:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

flutter clean solved this error for me


!statusall doesn't work.

!statusall
ASF : 未知命令!
未知命令 which means “unknown command".
Seems it appears after the multi language version? The command !statusall canceled?
Is this a bug or intend to?
Windows 7 32-bit, .net Framework 4.6.1.
Windows 7 64-bit, .net Framework 4.6.1.
Windows 10 64-bit, .net Framework 4.6.2.
3 OS tested. All in Chinese language.

Well I read the update log. Sorry for bothering.


Claiming namespace ohaut

Package information

Package link: https://registry.platformio.org/libraries/ohaut/OHAUTlib

Description
Hi, I am the original author of this library, and after a while I came back to update
by adding support to a new board I am working on.
I get to push to mangel_ajo/OHAUTlib but not ohaut/OHAUTlib
I have everything under the github.com/ohaut org, all the commits are mine.
This is probably my fault, I wonder if I created at some point an "ohaut" account in platformio and now I fail to remember credentails, I have tried resetting the password just in case, but I don't get any email.
If I try to push from mangel_ajo to 'ohaut' this is what I get
ajo@MBP-Miguel ohaut_lib % pio pkg publish --owner ohaut
Preparing a package...
Type:     library
Owner:    ohaut
Name:     OHAUTlib
Version:  0.2.4
Size:     570B

Warning! A package with the name `OHAUTlib` is already published by the next owners: mangel_ajo

Are you sure you want to publish the library<EMAIL_ADDRESS>to the registry?
 [y/N]: y
The package publishing may take some time depending on your Internet connection and the package size.
Publishing...
Error: You do not have permission to publish a package using the ohaut account

Help is really appreciated. Thanks for this great project.

Thanks for contacting us.

The mangel_ajo account was renamed to mangelajo. The same as on Github. You can even login with Github. Please don't forget to re-login. You need to use mangelajo and your password.
You are the owner of ohaut org now. Please repeat pio pkg publish --owner ohaut

Does it work now?


How to use SwipeRefreshLayout ?

I want to use RecyclerView in SwipeRefreshLayout? Is this Right?4
swipeRefreshLayout {                 setColorSchemeColors(0xE94653)                 RecyclerView(ui.owner)             }.lparams(matchParent, matchParent)

Take a look https://github.com/JetBrains/kotlinconf-app/blob/master/android/app/src/main/java/com/jetbrains/kotlinconf/ui/SessionListFragment.kt#L99


Support OpenAIModel in ModelRepository

What this PR does / why we need it:
Adds OpenAIModel support to ModelRepository.
In https://github.com/kserve/kserve/pull/3477 we introduced openai endpoints to kserve. These endpoints are registered when there are any models of type OpenAIModel in the ModelRepository. In order to take advantage of the openai endpoints, ModelRepository should support OpenAIModel type.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Type of changes
Please delete options that are not relevant.

[X] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Feature/Issue validation/testing:
cd python/kserve && make test

Tagging the people with most knowledge on openai support: @tessapham @cmaddalozzo @yuzisun

/assign @jinchihe

Looks like some of the test failures are due to different python version I was using when developing. I'll make sure tests pass in python 3.9.

I tested this branch with a transformer I ran locally. I was able to get a response from the openai legacy completion endpoint. @yuzisun

/lgtm

/approve


changes for oneccl 2021.6 release

Existing Sample Changes
Description
changes for oneccl 2021.6 release
Type of change
Please delete options that are not relevant. Add a 'X' to the one that is applicable.

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Implement fixes for ONSAM Jiras

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[x] Command Line
[ ] oneapi-cli
[ ] Visual Studio
[ ] Eclipse IDE
[ ] VSCode
[ ] When compiling the compliler flag "-Wall -Wformat-security -Werror=format-security" was used

This is for 2021.6 release, and it will fail at 2021.5 release.
please re-test it again once we have 2022.2 installation in CI machine.

this change depends on 2021.6 release which is released from 2022.2 BaseKit.

I am checking whether it is expected result from oneCCL team, and will keep you posted.
regards
Louie

According to oneCCL team, oneCCL samples need L0 software packages.
https://github.com/oneapi-src/oneCCL#prerequisites
Could we make sure to have those L0 software packages installed in CI machines?
thanks

it works on nntcl15-nuc.inn.intel.com with level zero packages


Detected but unable to connect, need to open some port on linux firewall maybe ?

Hi,
good job !
I feshly install your script on my ubuntu.
If i understand well they are 2 version ? one perl and one in C (compiled) ? Or the two works together ?
Anywhere, when i start the perl script as writted in your documentation all is ok :
fabien@media-center:~/albertz-shairport-83c1b71$ perl shairport.pl -a TOTO -v
Listening...
Established under name '04C1D7CD203E@TOTO'
Then, i can see this new "airport" from itune (windows) or from my iphone.
When i try to connect from the iphone, it seems to succes, but they are any verbose information on my linux bash and unfortannally any sound....
Itunes, does not succed to connect (i think it is the same for the iphone).
Maybe, as your software seems to dectect nothing (no trace), i need to open some port on the linux side ?
thanks for your help, that's very cool.

Ok, so i found maybe alone my problem. :-) during my post write.
I first disable ipv6 on my linux, as everybody seems to have some isue on this point.
I follow this point : https://github.com/albertz/shairport/issues/77
But i'm ok with the remarks from ssadler made last April : https://github.com/albertz/shairport/issues/41  => this workaround should be write temporalry in the documenation.
SO.. not working !
But it was wall  a firewall problem.
I don't know why, but it was activated on my ubuntu (as is it not the case by default, maybe i did that i don't when....)
SO only desactivate it :
$ sudo ufw disable
For me it's ok. I was disactivate it on my windows.. in a local network, i don't think it's very usefull....
But for user that want have a firewall activated... i don't why port must be open ?

So yes. i re enable IPV6. ANd it's always ok.... but sometimes iphone see it sometimes not....
So to close this topic, it's could be cool to says wich port must be open, and maybe add it on the documentation...
Great Job !


Add tests for GpuPartition

This adds unit tests for GpuPartition.  During testing I found a number of issues that are also addressed in this PR:

GpuShuffleEnv was a Scala object that didn't support reinitializing which is needed for unit tests to run in various shuffle configurations.  Updated it to support reinitializing the state.
SparkSessionHolder doesn't handle cases where other tests tear down the Spark session and a new one needs to be created.  Updated the session holder to handle this case.
HashSortOptimizeSuite assumed there was one and only one spark session, updated it to use the session handed to it.
GpuSemaphore would crash if there was no task context.  I updated it to be a no-op when there's no task context (i.e.: during unit tests).

build


Focus on new file/folder/rename

For the love of UI, can you guys please make sure that, like every single app created since 1968, FOCUS is on the input field  when we have to add a file, folder, rename . we click add file, the box is there, everything else is disabled but the field, we type, and nothing happens once every 10 tries. WHY ?? we need to click again IN THE SINGLE , only place there is on screen to get focus. After years on Atom I 'm always entering twice de name of every file.
this happened to me about a 1000 times.  It did right now

I'm speaking for many right now.

uhmm. strange i have the FOCUS correct (on Mac 1.21.1)

Thanks for reaching out!
We require the template to be filled out on all new issues and pull requests. We do this so that we can be certain we have all the information we need to address your submission efficiently. This allows the maintainers to spend more time fixing bugs, implementing enhancements, and reviewing and merging pull requests.
Thanks for understanding and meeting us half way :grinning:

this happens even with all package disabled. but closing this is why everyone is heading to vsc.


Better support for surface timeseries data

🚀 Feature
Right now the surface layer, created in #503 can support multiple dimensional data by providing a NxD array of vertices, a list of triangles, and a length N value for each vertex. This allows for very general surfaces that change over any of the D dimensions.
There is potentially a very special case where we have timeseries of either a 2D or 3D surface and that surface remains fixed, but the values of the vertices change in time. Right now that could be represented as Nx3 or Nx4 arrays of vertices and a length N vector where N is now very large and there is a lot of redundant structure in those lists of vertices. A potentially more compact representation might be Mx2 or Mx3 representation of the surface and then an MxT representation of the vertex values over T timepoints. This representation could be reshaped into the other one if needed, but it could be nice to support it more directly.
I'm curious what the standard file formats, say from neuroimaging of surface timeseries measurements provide, as that could give us guidance on what to support.

This has been closed by #831 which adds better support for surface timeseries


M03-Unit 5 Provision an ExpressRoute circuit.md: ENG version updates being translated soon?

This set of instructions has had an update in the ENG version, hopefully it will soon be translated and updated here?  Note that with this change it is important to have an updated screenshot showing the new settings.  I am including a reference to the ENG version highlighting the important changes:

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

Manually added the file and its displaying


Issues when dumping to toml file

I am having some weird issues when dumping to a TOML file where an escaped backslash will no longer be escaped after dumping to the file. Below is the test code that produces the problem:
$ python
Python 3.7.4 (tags/v3.7.4:e09359112e, Jul  8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import toml
>>> libraries = {'libraries': {'RSLib': {'files': ['support\\products\\t600mmr-trunk\\components\\block_decoder\\firmware\\RS\\Altera\\src\\rs_decoder.qip', 'support\\products\\t600mmr-trunk\\components\\block_decoder\\firmware\\RS\\Xilinx\\src\\xilinx_rs_decoder.vhd']}}}
>>> with open('test.toml', 'w') as f:
...     f.write(toml.dumps(libraries))
...
239
>>>

When I open test.toml, I see the following:
[libraries.RSLib]
files = [ "support\\products\\t600mmr-trunk\\components\\block_decoder\\firmware\\RS\\Altera\\src\\rs_decoder.qip", "support\products\t600mmr-trunk\components\block_decoder\firmware\RS\Xilinx\src\xilinx_rs_decoder.vhd",]

And when I print libraries in python, I see this:
>>>print(libraries)
{'libraries': {'RSLib': {'files': ['support\\products\\t600mmr-trunk\\components\\block_decoder\\firmware\\RS\\Altera\\src\\rs_decoder.qip', 'support\\products\\t600mmr-trunk\\components\\block_decoder\\firmware\\RS\\Xilinx\\src\\xilinx_rs_decoder.vhd']}}}

Now if you've noticed the difference, 'support\\products\\t600mmr-trunk\\components\\block_decoder\\firmware\\RS\\Xilinx\\src\\xilinx_rs_decoder.vhd' in python produces "support\products\t600mmr-trunk\components\block_decoder\firmware\RS\Xilinx\src\xilinx_rs_decoder.vhd" in the toml file which makes no sense to me... Why are the escaped backslashes being removed only in the second entry of the files list?

Okay, even weirder, the following does the same thig:
>>> import toml
>>> libraries = {'libraries': {'RSLib': {'files': ['support\\products\\t600mmr-trunk\\components\\block_decoder\\firmware\\RS\\Xilinx\\src\\xilinx_rs_decoder.vhd']}}}
>>> with open('test.toml', 'w') as f:
...     f.write(toml.dumps(libraries))
...
133
>>>

And the file
[libraries.RSLib]
files = [ "support\products\t600mmr-trunk\components\block_decoder\firmware\RS\Xilinx\src\xilinx_rs_decoder.vhd",]

I wanted to ask if its possible to simplify the problem by decreasing the string length. Its way too complicated


AADSTS53003 error on non azure linux VM

Hi,
I have my code that runs fine on azure VM to get the AD token from our azure login. However it fails with the below error on a VM that is a simple plain RHEL7 linux.
MsalInteractionRequiredException: AADSTS53005: access has been blocked by conditional access policies. The access policy does not allow token issuance.
The scope I am using is User.Read. I passing in the username and passeword and calling acquireToken. I have also set the proxy and port as per our internal guidelines. Not sure what is missing here. Like i said, it works just fine on my local machine and on azure VMs.
Any help is appreciated!
Thanks.

@gan123 This error is coming from the token issuance service (ESTS) which is blocking the request due to the conditional access policy. You might have to contact your administrator to understand more.
AADSTS53003 | BlockedByConditionalAccess - Access has been blocked by Conditional Access policies. The access policy does not allow token issuance. If this is unexpected, see the conditional access policy that applied to this request in the Azure Portal or contact your administrator. For additional information, please visit troubleshooting sign-in with Conditional Access.
More information here https://learn.microsoft.com/en-us/azure/active-directory/develop/reference-aadsts-error-codes

Closing this as it is not msal4j issue. Please reopen this if there are any questions.


getting unexpected quota errors

I check my dashboard and it says I have over 1000 api calls left.
But I keep getting these messages:
{ "statusCode": 403, "message": "Out of call volume quota. Quota will be replenished in 22.14:18:12." }

The library doesn't manipulate the returned errors at all. That error is coming directly from the cognitive servers.
You might be doing to many requests per minute, but you still have a 1000 left for the month. That's just a possibility. You should be asking that to them. I don't think that has nothing to do with this library.

Yeah, I figured you might know. Not sure what format this date is in: 22.14:18:12

Sorry man, I'm afraid I can't help with that. Have you discovered what happened?

Nope. My dashboard says I still have several thousand requests but I am blocked from their api.
I will probably have to open a support ticket.


Improve touch support

It's currently not really working smooth on a touch device (smartphone or laptop with touch screen)

Hi @smeijer
I think, This package is no longer maintained...
And because of this, I've re-published it as "imrc-datetime-picker" package with so many improvements.
You could use "imrc-datetime-picker" package
and your contributions are appreciated.
Best wishes 👍


Custom form component base

Summary
While using Clarity to develop forms, I found a pattern, which may deserve to be implemented as a form component, or to be a documented workaround or so.
Often, there is a need to put form component in a modal. It is useful for multiple selection, situations, when you need some rich custom UI to produce resulting value for a form field, etc.
In this case, what you want to display on a form - is a form label, like we have for all stock form elements, and a button instead of input/select/textarea, which will open modal.
Plus, I often put label + produced value below this construction.
And, finally, we may also want to display standard Clarity form field validation error.

What is the change?

New type of a form component, without direct input element, where you can put something else (non-input element) instead of input/select/textarea element and get a proper layout and support for helper/validation messages

Why should it go in Clarity?

If one day you add form-level or global form grid layout settings, it will help to incorporate custom form elements under the umbrella of a common form settings.
Plus, such cases may document obvious and straightforward implementation for such use cases.

Does this change impact existing behaviors? If so how?

It doesn't

If this change introduces a new behavior, is this behavior accessible?

Not sure
Use case
Our most common use case is a multiple selection in a modal. Not just because Clarity lacks multiselect component - in many cases multiselect component may not be comfortable and modal will still win in usability.
Examples
Multiselect in a modal, with displaying resulting value
No value selected:

Displaying selected values:

Field with input, which is being displayed on demand
Initial state:

After requesting change:

We currently don't have examples with the validation, but it shouldn't be hard to imagine helper text and validation message placement.
Workarounds
Currently, we take layout for css input element and put something we want instead of an input field.

Tenant and Utilities

      Tenant

          <button type="button" class="btn btn-sm"
            (click)="showTenantsModal = true" [disabled]="!editing">Select
            Tenants</button>

    <clr-modal [(clrModalOpen)]="showTenantsModal" [clrModalSize]="'sm'">

Select Tenants

        <clr-checkbox-container clrInline>
          <clr-checkbox-wrapper *ngFor="let tenant of tenants">
            <input type="checkbox" clrCheckbox
              (change)="toggleTenantsSelected(tenant)"
              [ngModel]="isTenantSelected(tenant)" />
            {{tenant.fullName}}
          </clr-checkbox-wrapper>
        </clr-checkbox-container>

        <button type="button" class="btn btn-primary"
          (click)="showTenantsModal = false">Ok</button>

    </clr-modal>

      Selected
        Tenants

          No tenants selected.

            {{tenant.fullName}}

This is probably related to https://github.com/vmware/clarity/issues/2886

Yes, this is a duplicate of #2886, but has some useful input to bring into the discussion. I have already done some work on this, but it hasn't been finalized. The challenge is coming up with a pattern that works well for everybody, but some cases might require manual validation (due to not knowing how everybody integrates with built-in validation).

@gnomeontherun in minimal implementation, it should just generate proper markup, similar to what I put into a workaround example. As for validation - it is pretty straightforward. In ugliest template forms implementation, you might generate some hidden input element, if the real field is hidden inside a modal. In case of a reactive forms, control may reflect validation state of a provided form group.

I'm going to go ahead and close this as a duplicate since its linked to the actual ticket. There has been some work but I don't have an expected delivery at this stage. Trying to consolidate tickets to help us keep our board focused.


feat(c/driver/bigquery): jobs

[x] use Google API to send a query on bigquery
[x] waiting for the results and once they're available, we can pass the {project,dataset,table}_id to ReadRowsIterator

So we now can create a job/query and we have the results, but I'm not quite sure where do I get the {project,dataset,table}_id for the result table.
{
  "cacheHit": false,
  "dmlStats": {
    "deletedRowCount": "0",
    "insertedRowCount": "0",
    "updatedRowCount": "0"
  },
  "errors": [],
  "jobComplete": true,
  "jobReference": {
    "jobId": "job_LNLuOr6-Xi_oLZScAoY7L9_5cJjC",
    "location": "us-central1",
    "projectId": "bigquery-poc-418913"
  },
  "kind": "bigquery#queryResponse",
  "numDmlAffectedRows": -1,
  "pageToken": "BF464T56RYAQAAASA4EAAEEAQCAAKGQIBAABB7X7777QOIFQVYKUVVYBBJYQUHQKCNRGSZ3ROVSXE6JNOBXWGLJUGE4DSMJTCGUFXQIMEUAAAAASFFPTANZSHE3WKMBUMMZDOOBVHAYTKYRUMJQTEYTGMNRTAYZUHBSTOMDDMNQTGOBSMUZRUJDDMZTGENTEMVSS2ZJQMJTC2NDCHFRS2YLDME4C2MJRMQZTEM3CGY2DQZDCCIZGC3TPNZSXMX3BKB2V6NKNHBYVCSDGOZXFM33ZINBU24S7NYZXIUTXLBRHE4CJIQZDC3CULBKHCZSDGZKRULTFOZPWCUDVL42U2ODRKFEGM5TOKZXXSQ2DJVZC23RTORJHOWDCOJYESRBSGFWFIWCUOFTEGNSV",
  "rows": [],
  "schema": {
    "fields": [
      {
        "categories": {
          "names": []
        },
        "collation": "",
        "defaultValueExpression": "",
        "description": "",
        "fields": {
          "fields": []
        },
        "maxLength": 0,
        "mode": "NULLABLE",
        "name": "dma_name",
        "policyTags": {
          "names": []
        },
        "precision": 0,
        "rangeElementType": {
          "type": ""
        },
        "roundingMode": "",
        "scale": 0,
        "type": "STRING"
      },
      {
        "categories": {
          "names": []
        },
        "collation": "",
        "defaultValueExpression": "",
        "description": "",
        "fields": {
          "fields": []
        },
        "maxLength": 0,
        "mode": "NULLABLE",
        "name": "dma_id",
        "policyTags": {
          "names": []
        },
        "precision": 0,
        "rangeElementType": {
          "type": ""
        },
        "roundingMode": "",
        "scale": 0,
        "type": "INTEGER"
      },
      {
        "categories": {
          "names": []
        },
        "collation": "",
        "defaultValueExpression": "",
        "description": "",
        "fields": {
          "fields": []
        },
        "maxLength": 0,
        "mode": "NULLABLE",
        "name": "term",
        "policyTags": {
          "names": []
        },
        "precision": 0,
        "rangeElementType": {
          "type": ""
        },
        "roundingMode": "",
        "scale": 0,
        "type": "STRING"
      },
      {
        "categories": {
          "names": []
        },
        "collation": "",
        "defaultValueExpression": "",
        "description": "",
        "fields": {
          "fields": []
        },
        "maxLength": 0,
        "mode": "NULLABLE",
        "name": "week",
        "policyTags": {
          "names": []
        },
        "precision": 0,
        "rangeElementType": {
          "type": ""
        },
        "roundingMode": "",
        "scale": 0,
        "type": "DATE"
      },
      {
        "categories": {
          "names": []
        },
        "collation": "",
        "defaultValueExpression": "",
        "description": "",
        "fields": {
          "fields": []
        },
        "maxLength": 0,
        "mode": "NULLABLE",
        "name": "score",
        "policyTags": {
          "names": []
        },
        "precision": 0,
        "rangeElementType": {
          "type": ""
        },
        "roundingMode": "",
        "scale": 0,
        "type": "INTEGER"
      },
      {
        "categories": {
          "names": []
        },
        "collation": "",
        "defaultValueExpression": "",
        "description": "",
        "fields": {
          "fields": []
        },
        "maxLength": 0,
        "mode": "NULLABLE",
        "name": "rank",
        "policyTags": {
          "names": []
        },
        "precision": 0,
        "rangeElementType": {
          "type": ""
        },
        "roundingMode": "",
        "scale": 0,
        "type": "INTEGER"
      },
      {
        "categories": {
          "names": []
        },
        "collation": "",
        "defaultValueExpression": "",
        "description": "",
        "fields": {
          "fields": []
        },
        "maxLength": 0,
        "mode": "NULLABLE",
        "name": "refresh_date",
        "policyTags": {
          "names": []
        },
        "precision": 0,
        "rangeElementType": {
          "type": ""
        },
        "roundingMode": "",
        "scale": 0,
        "type": "DATE"
      }
    ]
  },
  "sessionInfo": {
    "sessionId": ""
  },
  "totalBytesProcessed": 590,
  "totalRows": 5
}

It seems that the SDK serialised all field with default values (0 or equivalents) and send to the server, which is causing some problems.
Probably figuring out all correct default values (just not zeros) and use it to initialise the InsertJobRequest is the easiest way to address it.

This could be tricky because
{
  "configuration": {
    "query": {
      "allowLargeResults": false,
      "query": "SELECT * FROM google_trends.small_top_terms LIMIT 1",
      "defaultDataset": {
        "datasetId": "",
        "projectId": ""
      }
    }
  }
}

is treated different from
{
  "configuration": {
    "query": {
      "allowLargeResults": false,
      "query": "SELECT * FROM google_trends.small_top_terms LIMIT 1",
    }
  }
}

Which means we have to do one of the following

take the corresponding values from the destination table as default
(maybe require) users to pass a value for the default table, (we can make this optional if we also do 1)
construct the JSON string and encoding the URL accordingly and send it to Google BigQuery

Maybe 1+2 makes more sense.
There'll be other options that faces similar issue: it's different between null (literally not being generated) and "" (of course, this makes absolute sense in CS, but by default google-cloud-cpp serialises all fields in these classes so we get "" (or 0) instead of null)
/cc @josevalim What do you think? Shall we go 1+2 (and figuring out the default values on the BigQuery server side), or if we should do 3?

Could you use the jobs.get endpoint to get the job status and, once that’s done, use getQueryResults to read it? https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/getQueryResults

We should probably implement some sort of exponential back off too and wait every 3 seconds in worst case scenario. Maybe there is something we can copy from the Python implementation?

Could you use the jobs.get endpoint to get the job status and, once that’s done, use getQueryResults to read it? https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/getQueryResults

I tried this one before and it just sends data in JSON format (with page token if the results size exceeds a certain limit) instead of in Arrow format.
So if we want arrow streams, we have no choice but let user to specify a destination table to store the results, and then we can read the destination table using bigquery storage API, which can return an ArrowRecordBatch and an ArrowSchema.
However, doing so will inevitably create an extra table for the query, and in Google's API document (it could be I was missing something) but after reading the whole BigQuery API reference a few times, I still can't find anything that mentions how to store the results in a temporary table instead...
The downsides of having this extra table are:

the table will stay in users project database unless it's explicitly deleted (by any means)
it won't be overwritten in the next query: an error will occur if we run the next query and store the results to the same destination table
since it's not a temporary table, users will be charged for the storage space it takes
we can randomise the destination table name but it won't be fault tolerant: if the Erlang process is crashed (or the user ctrl-c'ed) while we're waiting for the results, we won't be able to delete it, thus could lead to extra charge (as in 3)

And I guess that we probably don't want to go with the JSON format using getQueryResults as what we really want is using the Arrow format...

So after some experiments, I found that if writeDisposition is set to WRITE_TRUNCATE, then it will effectively create a temporary destination table if not specified. They really should update their documents and make this a bit more clear... :(

writeDisposition
Optional. Specifies the action that occurs if the destination table already exists. The following values are supported:

WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the data, removes the constraints, and uses the schema from the query result.
WRITE_APPEND: If the table already exists, BigQuery appends the data to the table.
WRITE_EMPTY: If the table already exists and contains data, a 'duplicate' error is returned in the job result.

The default value is WRITE_EMPTY. Each action is atomic and only occurs if BigQuery is able to complete the job successfully. Creation, truncation and append actions occur as one atomic update upon job completion.

Now it should work!
Mix.install([{:adbc, "~> 0.3.1-dev", github: "cocoa-xu/adbc", branch: "cx/google-bigquery-support"}])

defmodule BigqueryTest do
  def test do
    children = [
      {Adbc.Database,
      project_id: "bigquery-poc-418913",
      driver: "/Users/cocoa/Workspace/Git/arrow-adbc/build/local/lib/libadbc_driver_bigquery.dylib",
       process_options: [name: MyApp.DB]},
      {Adbc.Connection,
       database: MyApp.DB,
       process_options: [name: MyApp.Conn],
       write_disposition: "WRITE_TRUNCATE",
      }
    ]
    Supervisor.start_link(children, strategy: :one_for_one)
    dbg(Adbc.Connection.query(MyApp.Conn, "SELECT * FROM google_trends.small_top_terms LIMIT 7"))
  end
end

BigqueryTest.test()

$ elixir bigquery.exs
[bigquery.exs:17: BigqueryTest.test/0]
Adbc.Connection.query(MyApp.Conn, "SELECT * FROM google_trends.small_top_terms LIMIT 7") #=> {:ok,
 %Adbc.Result{
   num_rows: nil,
   data: %{
     "dma_id" => [546, 546, 546, 546, 546, 546, 546],
     "dma_name" => ["Columbia SC", "Columbia SC", "Columbia SC", "Columbia SC",
      "Columbia SC", "Columbia SC", "Columbia SC"],
     "rank" => [15, 15, 15, 15, 15, 15, 15],
     "refresh_date" => [~D[2024-03-14], ~D[2024-03-14], ~D[2024-03-14],
      ~D[2024-03-14], ~D[2024-03-14], ~D[2024-03-14], ~D[2024-03-14]],
     "score" => [nil, nil, nil, nil, nil, nil, nil],
     "term" => ["Nex Benedict", "Nex Benedict", "Nex Benedict", "Nex Benedict",
      "Nex Benedict", "Nex Benedict", "Nex Benedict"],
     "week" => [~D[2020-12-13], ~D[2020-12-20], ~D[2021-02-21], ~D[2021-02-28],
      ~D[2021-03-07], ~D[2021-03-14], ~D[2021-04-04]]
   }
 }}


Update workflow and terraform to use a tag for the docker image

Pass the docker image tag as a variable to terraform
Use the tag from the app deploy action to populate the environment variable

:tada: This PR is included in version 1.5.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


IETF Agenda: links consume the open tab and don't force a new tab.

Description
Could meetecho and other links on the meeting agenda page use the HTML markup which open in another tab, rather than in the current tab? It would mean growing a tab list, sure but it would stop wiping out the agenda view.
Code of Conduct

[X] I agree to follow the IETF's Code of Conduct

This has been an ongoing UI argument - different community members want different behavior - until we have a full UI review/redesign (A UX review is planned) the current situation has been the best compromise. Browsers should offer the ability to "open link in new tab" as an alt-click option, but this is sometimes hard to use on mobile devices.


Parse real sizes (512M, 2G, ...) instead of just a number of GiB

At the moment we can only specify the VM memory size as an int, the number of GiB to allocate. That's not ideal, the user should be able to specify any size.

This will be important when we add support for multiple VMs.

Original issue https://github.com/ciao-project/ciao/issues/1363


KYLIN-4653 Make the capacity for the LinkedBlockingQueue

Proposed changes
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.
Types of changes
What types of changes does your code introduce to Kylin?
Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation Update (if none of the other choices apply)

Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

[ ] I have create an issue on Kylin's jira, and have described the bug/feature there in detail
[ ] Commit messages in my PR start with the related jira ID, like "KYLIN-0000 Make Kylin project open-source"
[ ] Compiling and unit tests pass locally with my changes
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] If this change need a document change, I will prepare another pr against the document branch
[ ] Any dependent changes have been merged

Further comments
If this is a relatively large or complex change, kick off the discussion at user@kylin or dev@kylin by explaining why you chose the solution you did and what alternatives you considered, etc...

Pull Request Test Coverage Report for Build 6209

3 of 3 (100.0%)  changed or added relevant lines in 1 file are covered.
2 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.001%) to 28.049%

Files with Coverage Reduction
New Missed Lines
%

core-cube/src/main/java/org/apache/kylin/cube/cuboid/TreeCuboidScheduler.java
2
68.46%

Totals

Change from base Build 6203:
-0.001%

Covered Lines:
26245

Relevant Lines:
93568

💛  - Coveralls

I will merge this patch.


Requesting Notification Permission

My fork adds the ability to request permissions to manage notifications, which allows the app to do things such as switching off do not disturb mode.

Those changes were necessary to make it work with Jitpack. I need that working for a university assignment so when the assignment's over in a couple of weeks, I'll make the changes :)

If that's the case then use ur own fork for your assignment and then resubmit another pr. I can't accept this.


new table component simple story

initial commit for table component.
readme completed.

fixed lint errors.  but now getting error regarding the forEach objects in index.stories.js
haven't figured out what is causing the error.  did not change those statements for table component.
Cannot read property 'add' of undefined
TypeError: Cannot read property 'add' of undefined
at Object../stories/index.stories.js.button_stories__WEBPACK_IMPORTED_MODULE_7_.default.forEach.entry (http://localhost:6006/static/preview.bundle.js:83216:9)
at Array.forEach ()
at Module. (http://localhost:6006/static/preview.bundle.js:83215:57)
at Module../stories/index.stories.js (http://localhost:6006/static/preview.bundle.js:83232:30)
at webpack_require (http://localhost:6006/static/preview.bundle.js:725:30)
at fn (http://localhost:6006/static/preview.bundle.js:102:20)
at webpackContext (http://localhost:6006/static/preview.bundle.js:81562:9)
at req.keys.forEach.filename (http://localhost:6006/static/preview.bundle.js:812:5)
at Array.forEach ()
at loadStories (http://localhost:6006/static/preview.bundle.js:811:14)

ok. commented out the stories with forEach loops.  but now I am getting these types of errors:
"Received value does not match stored snapshot 1."
how do I re-run the snapshots?

screenshot of pagination previous and next arrows:


Missing task bar icon (.ico file) into zip installation file for Windows

System information:

Operating system: Windows 10
DBeaver version: 7.2.0 and newer

Describe your question:
Why the .ico file isn't into the zipped installation folder? I realized it today when I deleted older unzipped installation folders. The task bar icon was getting any old .ico file path pointing to an older version, so the icon was still there untill I dropped older versions. How can I get back the icon? (I would not want to download an older version for this...).

Sorry guys, I choose the dbeaver.exe file on "change icon" option and the task bar icon now is back.


fixed issue check if first letter is alphabet or not in validations.py

…s.py
Closes: #1
Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

[ ] Tests pass
[ ] Appropriate changes to README are included in PR

@googlebot i signed it

@googlebot I fixed it.


⚠ Bofrost.de has degraded performance

In 74550ad, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 836 ms

Resolved: Bofrost.de performance has improved in 479e2b9 after 307 days, 21 hours, 33 minutes.


The segmentation fault error occurred in prediction mode and Korean question & context.

Hi,
Now I'm testing the Claf BERT with KorQuad data set.
After trainning, I had got the checkpoint file(model_22000.pkl)
And then I had to tried predict using predict.py, but Segmentation Fault error occured like below log.
(However, in English case, it's normally executed)
So could you advise how to fix this error ?
# English case (Okay)
/home/pycharm/.conda/envs/claf/bin/python -u /home/pycharm/workspace/claf_test/predict.py logs/squad_bert/checkpoint/model_22000.pkl --cuda_devices 0 --question test --context test
Better speed can be achieved with apex installed from https://www.github.com/nvidia/apex.
Predict: {'text': 'test', 'score': -0.8118173778057098}
Process finished with exit code 0
# Korean case (Segmentation Fault)
/home/pycharm/.conda/envs/claf/bin/python -u /home/pycharm/workspace/claf_test/predict.py logs/squad_bert/checkpoint/model_22000.pkl --cuda_devices 0 --question 한글 --context 한글
Better speed can be achieved with apex installed from https://www.github.com/nvidia/apex.
bash: line 1: 174065 Segmentation fault      (core dumped) env "PYTHONUNBUFFERED"="1" "PYTHONPATH"="/home/pycharm/workspace/2944/claf_test:/home/pycharm/.pycharm_helpers/pycharm_matplotlib_backend" "PYCHARM_HOSTED"="1" "JETBRAINS_REMOTE_RUN"="1" "PYCHARM_MATPLOTLIB_PORT"="64594" "PYTHONIOENCODING"="UTF-8" '/home/pycharm/.conda/envs/claf/bin/python' '-u' '/home/pycharm/workspace/2944/claf_test/predict.py' 'logs/squad_bert/checkpoint/model_22000.pkl' '--cuda_devices' '0' '--question' '한글' '--context' '한글'

Hi, Thanks for issuing.
First of all, I think encoding is the problem because English has worked but, not Korean.
However, I am not sure when I look at the error message.Segmentation fault (core dumped) means some program has crashed.
How about connecting to the remote server and test the Korean case instead of PyCharm remote run?

Hi DongJun,
First I had tried again in the server ( not Pycharm Remote run), the result was same with previous.
But, as your advise, I also thought encoding can be problem, so  I changed my encoding to "ko_KR.utf8" by "export LANG=ko_KR.utf8" command. And then tried it again. Finally it worked fine like below.
Thanks for your comment.
(claf) pycharm:/home02/pycharm_work/claf_test>export LANG=ko_KR.utf8
(claf) pycharm:/home02/pycharm_work/claf_test>
(claf) pycharm:/home02/pycharm_work/claf_test>python predict.py ./logs/squad_bert/checkpoint/model_22000.pkl --cuda_devices 0 --question "한글" --context "한글"
Better speed can be achieved with apex installed from https://www.github.com/nvidia/apex.
Predict: {'text': '한글', 'score': 8.212509870529175}
(claf) pycharm:/home02/pycharm_work/claf_test>
(claf) pycharm:/home02/pycharm_work/claf_test>
(claf) pycharm:/home02/pycharm_work/claf_test>
(claf) pycharm:/home02/pycharm_work/claf_test>python predict.py ./logs/squad_bert/checkpoint/model_22000.pkl --cuda_devices 0 --question "캐나다 초대수상인 존 맥도날드가 속해있는 정당은 무엇인가?" --context "초기 캐나다의 존재는 대륙횡단철도건설과 같은 대형사업에 의해 좌지우지되었다. 대륙횡단 철도건설은 캐나다 초대수상인 존 맥도날드(John A. Macdonald)의 보수당이 여러 이유 때문에 시작한 사업이었다. 브리티시 컬럼비아는 연방에 가입하는 조건을 동부지역과 이어지는 교통수단을 내걸었다. 결과 정부는 태평양과 동부의 여러 주를 잇는 철도를 1871년 7월 20일 이후 10년안에 건설할 것을 제안했다. 맥도날드 수상은 철도건설을 통일된 대륙국가를 건설하는 데에 필수적이라고 여겼다. 이에 더해서 퀘백 주와 온 타리오 주에 있는 공업업자들은 서부 캐나다의 자원을 얻고 싶었고, 또한 제조한 물품을 팔 수 있는 시장으로 여기기도 하였다."
Better speed can be achieved with apex installed from https://www.github.com/nvidia/apex.
Predict: {'text': '보수당', 'score': 9.013720273971558}

That's great :)
Now that the problem has been resolved, I close the issue.


Update rollout config

Looks good. This is the update u mentioned regarding using the Plugin import directly instead of destructuring from the default import from root of ckeditor core right?

Looks good. This is the update u mentioned regarding using the Plugin import directly instead of destructuring from the default import from root of ckeditor core right?

Yes, this is to update rollup config to exclude plugin class from build.


add publicPath to webpack server.prod config

Added missing publicPath to webpack output. #25

Thanks!


Handle Stream and PipeReader content types correctly

Do not generate schema models for Stream and PipeReader.
Only allocate the array once, rather than on every call.
Fix warning by removing unused parameter from private method.

Relates to item 3 in https://github.com/dotnet/aspnetcore/issues/44677.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 91.65%. Comparing base (a772c94) to head (044a995).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2784      +/-   ##
==========================================
+ Coverage   91.62%   91.65%   +0.02%
==========================================
  Files          91       91
  Lines        2998     3007       +9
  Branches      514      514
==========================================
+ Hits         2747     2756       +9
  Misses        251      251

Flag
Coverage Δ

Linux
91.65% <100.00%> (+0.02%)
:arrow_up:

Windows
?

macOS
?

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.