BackBlazeB2 Backup Failures

I'm running this docker container(v1.21.2) on UNRAID (v6.8.3). I'm getting that my backup (to BackBlazeB2) completes with warnings. Logs show SSL_write() returned SYSCALL, errno = 32. Cloudberry support asked me for the results of nslookup api.backblazeb2.com.

/tmp # nslookup 'api.backblazeb2.com'
nslookup: can't resolve '(null)': Name does not resolve
Name:      api.backblazeb2.com
Address 1: <IP_ADDRESS>
Address 2: <IP_ADDRESS>
Address 3: <IP_ADDRESS>

They seem to think the result is a failure, but per 476, this doesn't seem to indicate a problem.
I've successfully backed up over 900 GB and this is only happening to the last 50 GB or so. Any ideas?

I removed my upload bandwidth limits and everything completed successfully. Looks like the requests were timing out.

I removed my upload bandwidth limits and everything completed successfully. Looks like the requests were timing out.

Great, glad to know your problem has been resolved.


Refactor/allow sitewise keys

Allow targets to define there own keys (use global if not definted)
use standard lib json encoding

target.json example
{
    targets: [
        {
            "user": user,
            "ip": ip,
            "key": "key file",
        },
        {
            "user": user,
            "ip": ip
        }
    ],
    "key": "global key file"
}

Thanks for the PR, i will test and give feedback soon :+1:


Deskop vs Deskop Touch

Hi everybody,
I'm creating an app like Tinder for my studies.
The fact is the swipe on the cards works on Deskop (touch) and mobile (touch). But i can't release the card when i'm testing with normal deskop in Chrome Dev tools.
Do you have an idea to solve this bug ?
Thank (and sorry for my english..)

BTW, i have an error message in the console : "Uncaught TypeError: this.props.superOnSwipe is not a function".


just rebuild

If you just want to trigger a rebuild you don't have to create a pull request https://www.ottrproject.org/customize-robots.html#Manually_running_rendering_or_checks


pass file.data to pug.compileClient

fixes #192

Please add a test case using gulp-data and fix the linter issues. I'd be happy to merge then.

@wiggisser pug doesn't work like you want it to with this PR.  I just checked the docs.

Commented in the original issue.  Going to close this.


Add parsing for rule references

http://yara.readthedocs.io/en/v3.7.1/writingrules.html#referencing-other-rules

Very close. Need to write tests

Added and fixed the algorithm to filter out substring matches. Closing

Found another issue, but I'm not certain how to address it yet

The last entry shouldn't show up as a reference


Packages updated

postcss-modules-extract-imports updated to 1.0.0
postcss-modules-scope updated to 1.0.0

https://github.com/webpack/css-loader/pull/177

@mmrko didn't notice) closing

All good, good to know that there are others looking for this update to go in :)


[CP] Fix for AnimatedOpacity affects blended color overlay render

Issue Link
https://github.com/flutter/flutter/issues/139571
Target
stable
PR Link
https://github.com/flutter/engine/pull/49190
Changelog Description
Fixes incorrect rendering of opacity animations overlayed on color filters under Impeller.
Impacted Users
Flutter developers targeting iOS
Impact Description
Incorrect rendering as noted in the issue.
Workaround
There is no workaround.
Risk
low
Test Coverage
yes
Validation Steps
Note that the rendering under Impeller matches the rendering under Skia.

cc @jonahwilliams @bdero @chinmaygarde


Add MSO support for RCN

Added RCN authentication field names to MSO section in adobepass extractor.
Please follow the guide below

You will be asked some questions, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your pull request (like that [x])
Use Preview tab to see how your pull request will actually look like

Before submitting a pull request make sure you have:

[x] Searched the bugtracker for similar pull requests
[x] Read adding new extractor tutorial
[x] Read youtube-dl coding conventions and adjusted the code to meet them
[x] Covered the code with tests (note that PRs without tests will be REJECTED)
[x] Checked the code with flake8

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[x] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[ ] Bug fix
[x] Improvement
[ ] New extractor
[ ] New feature

Description of your pull request and other information
Added RCN authentication field names to MSO section in adobepass extractor. No other changes are needed to allow logging in through the RCN site. No other test coverage should be needed.

Yup, you got it. Thank you! I could not figure out how to open the actual pull. I appreciate it.


Unable to build python wrapper

Hi, I'm unable to build the python wrapper from git master branch.
Here is the build log:
(.venv) user@myhost ~/Desktop/fast5/python $ pip install cython
Collecting cython
  Downloading Cython-0.29.21-cp38-cp38-manylinux1_x86_64.whl (1.9 MB)
     |████████████████████████████████| 1.9 MB 633 kB/s
Installing collected packages: cython
Successfully installed cython-0.29.21
WARNING: You are using pip version 20.1.1; however, version 20.2.2 is available.
You should consider upgrading via the '/home/user/Desktop/fast5/python/.venv/bin/python3 -m pip install --upgrade pip' command.
(.venv) user@myhost ~/Desktop/fast5/python $ make develop
/home/user/Desktop/fast5/python/.venv/bin/python setup.py develop
Compiling fast5/fast5.pyx because it changed.
[1/1] Cythonizing fast5/fast5.pyx
/home/user/Desktop/fast5/python/.venv/lib/python3.8/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /home/user/Desktop/fast5/python/fast5/fast5.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
running develop
running egg_info
creating fast5.egg-info
writing fast5.egg-info/PKG-INFO
writing dependency_links to fast5.egg-info/dependency_links.txt
writing top-level names to fast5.egg-info/top_level.txt
writing manifest file 'fast5.egg-info/SOURCES.txt'
reading manifest file 'fast5.egg-info/SOURCES.txt'
writing manifest file 'fast5.egg-info/SOURCES.txt'
running build_ext
building 'fast5' extension
creating build
creating build/temp.linux-x86_64-3.8
creating build/temp.linux-x86_64-3.8/fast5
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fPIC -I../include -I../src -I/home/user/Desktop/fast5/python/.venv/include -I/usr/include/python3.8 -c fast5/fast5.cpp -o build/temp.linux-x86_64-3.8/fast5/fast5.o -std=c++11 -Wall -Wextra -Wpedantic
In file included from ../include/fast5.hpp:27,
                 from fast5/fast5.cpp:680:
../include/fast5/hdf5_tools.hpp: In member function ‘std::vector<std::__cxx11::basic_string<char> > hdf5_tools::File::get_attr_list(const string&) const’:
../include/fast5/hdf5_tools.hpp:2109:60: error: no matching function for call to ‘hdf5_tools::detail::Util::wrap(herr_t (&)(hid_t, H5O_info2_t*, unsigned int), hid_t&, H5O_info2_t*)’
 2109 |         detail::Util::wrap(H5Oget_info, id_holder.id, &info);
      |                                                            ^
In file included from ../include/fast5.hpp:27,
                 from fast5/fast5.cpp:680:
../include/fast5/hdf5_tools.hpp:243:5: note: candidate: ‘template<class Function, class ... Args> static typename std::result_of<_Functor(_ArgTypes ...)>::type hdf5_tools::detail::Util::wrap(Function&&, Args&& ...)’
  243 |     wrap(Function && f, Args && ...args)
      |     ^~~~
../include/fast5/hdf5_tools.hpp:243:5: note:   template argument deduction/substitution failed:
../include/fast5/hdf5_tools.hpp: In substitution of ‘template<class Function, class ... Args> static typename std::result_of<_Functor(_ArgTypes ...)>::type hdf5_tools::detail::Util::wrap(Function&&, Args&& ...) [with Function = int (&)(long int, H5O_info2_t*, unsigned int); Args = {long int&, H5O_info2_t*}]’:
../include/fast5/hdf5_tools.hpp:2109:60:   required from here
../include/fast5/hdf5_tools.hpp:243:5: error: no type named ‘type’ in ‘class std::result_of<int (&(long int&, H5O_info2_t*))(long int, H5O_info2_t*, unsigned int)>’
In file included from ../include/fast5.hpp:27,
                 from fast5/fast5.cpp:680:
../include/fast5/hdf5_tools.hpp: In member function ‘bool hdf5_tools::File::path_exists(const string&) const’:
../include/fast5/hdf5_tools.hpp:2389:68: error: no matching function for call to ‘hdf5_tools::detail::Util::wrap(herr_t (&)(hid_t, H5O_info2_t*, unsigned int), hid_t&, H5O_info2_t*)’
 2389 |             detail::Util::wrap(H5Oget_info, o_id_holder.id, &o_info);
      |                                                                    ^
In file included from ../include/fast5.hpp:27,
                 from fast5/fast5.cpp:680:
../include/fast5/hdf5_tools.hpp:243:5: note: candidate: ‘template<class Function, class ... Args> static typename std::result_of<_Functor(_ArgTypes ...)>::type hdf5_tools::detail::Util::wrap(Function&&, Args&& ...)’
  243 |     wrap(Function && f, Args && ...args)
      |     ^~~~
../include/fast5/hdf5_tools.hpp:243:5: note:   template argument deduction/substitution failed:
../include/fast5/hdf5_tools.hpp: In substitution of ‘template<class Function, class ... Args> static typename std::result_of<_Functor(_ArgTypes ...)>::type hdf5_tools::detail::Util::wrap(Function&&, Args&& ...) [with Function = int (&)(long int, H5O_info2_t*, unsigned int); Args = {long int&, H5O_info2_t*}]’:
../include/fast5/hdf5_tools.hpp:2389:68:   required from here
../include/fast5/hdf5_tools.hpp:243:5: error: no type named ‘type’ in ‘class std::result_of<int (&(long int&, H5O_info2_t*))(long int, H5O_info2_t*, unsigned int)>’
In file included from ../include/fast5.hpp:27,
                 from fast5/fast5.cpp:680:
../include/fast5/hdf5_tools.hpp: In member function ‘bool hdf5_tools::File::check_object_type(const string&, H5O_type_t) const’:
../include/fast5/hdf5_tools.hpp:2410:64: error: no matching function for call to ‘hdf5_tools::detail::Util::wrap(herr_t (&)(hid_t, H5O_info2_t*, unsigned int), hid_t&, H5O_info2_t*)’
 2410 |         detail::Util::wrap(H5Oget_info, o_id_holder.id, &o_info);
      |                                                                ^
In file included from ../include/fast5.hpp:27,
                 from fast5/fast5.cpp:680:
../include/fast5/hdf5_tools.hpp:243:5: note: candidate: ‘template<class Function, class ... Args> static typename std::result_of<_Functor(_ArgTypes ...)>::type hdf5_tools::detail::Util::wrap(Function&&, Args&& ...)’
  243 |     wrap(Function && f, Args && ...args)
      |     ^~~~
../include/fast5/hdf5_tools.hpp:243:5: note:   template argument deduction/substitution failed:
../include/fast5/hdf5_tools.hpp: In substitution of ‘template<class Function, class ... Args> static typename std::result_of<_Functor(_ArgTypes ...)>::type hdf5_tools::detail::Util::wrap(Function&&, Args&& ...) [with Function = int (&)(long int, H5O_info2_t*, unsigned int); Args = {long int&, H5O_info2_t*}]’:
../include/fast5/hdf5_tools.hpp:2410:64:   required from here
../include/fast5/hdf5_tools.hpp:243:5: error: no type named ‘type’ in ‘class std::result_of<int (&(long int&, H5O_info2_t*))(long int, H5O_info2_t*, unsigned int)>’
error: command 'gcc' failed with exit status 1
make: *** [Makefile:38: develop] Error 1

Program versions:
Archlinux
gcc version 10.2.0
Python 3.8.5
hdf5 1.12.0

I've submitted a fix in PR #24.


Review Ticket [Week 2]

Notebook for Python Quiz: Link
For the Python quiz, I added an extra credit portion to get more than 100% and added an explanation for some issues and fixes for certain syntax that may be confusing.
Tags to help with Organization (Extra Credit): Link
This also ties into the component of making the site useful for my other classes, as I have added a school tag in order to track my assignments and things to do for each class every week.
Vocabulary/Terms to Know Page: Link
I added some bash syntax to complete certain tasks in relation to Git.
Bash Notebook + Answers to Hacks: Link
I utilized many components of bash that can help to make the process of checking for tools and verifying versions much easier.
Personal Blog Post for Life: Link
I added a 'personal' tag for any mental health related or personal life related posts.
Post with Images: Link
I chose my 3 favorite photos to use for a collage on this markdown post, and they went under the 'personal' tag.
Word Document Post: Link
This word document post was of my AP Physics Lab #1. It includes bullet points, tables, highlights, bold text, and images.
I also added a small component to change the background color of my home page. In the future, I'd like to give each page a different color, and I want to change the font size and styling to make the site look more visually appealing.
Thanks!

Vardaan, you did a very good job, you completed the bash installations, created a quiz, imported a docx file, and even personalized your website more. I give you 2.8-3/3.  We should work on making the website look a bit cooler with CSS, and grade each other on which website looks better next week ;)
Also great job on making your CSP Notes more intricate.


CI against ruby 2.5.0

Coverage decreased (-4.07%) to 93.576% when pulling a0c276adad5bef480d74e30785280b427d432b8b on sue445-patch-1 into 1d885b4f49b2db2fa783bba38465cdcdc8ba0154 on master.

Coverage decreased (-4.07%) to 93.576% when pulling a0c276adad5bef480d74e30785280b427d432b8b on sue445-patch-1 into 1d885b4f49b2db2fa783bba38465cdcdc8ba0154 on master.

Coverage decreased (-0.2%) to 97.458% when pulling cfec262b5655b0d89021f17af0bcdeead38966f3 on sue445-patch-1 into 1d885b4f49b2db2fa783bba38465cdcdc8ba0154 on master.


Update README to include function description

Also fixed error of including Ranjit's name twice.

Addresses #14


Issue With Imagify

Image minification & sync was working for a short time but in a recent test, it appears to be broken any ideas on how to fix?
Server Detailed:
Server Environment |   |  -- | -- | --
Operating System: | Linux |
Software: | nginx/1.14.1 |
MySQL version: | (Ubuntu) v5.7.24 |
PHP Version: | 7.2.13 |
PHP Max Input Vars: | 1000 |
PHP Max Post Size: | 512M |
GD Installed: | Yes |
ZIP Installed: | Yes |
Write Permissions: | All right
Settings:
Wp-stateless
Mode | Stateless
File URL Replacement | Enabled
Compatibility | Imagify (Checked)
Imagify
Auto-Optimize images on upload | (Checked)
Backup original images | (Checked)
Resize | 1920px
On Upload PHP Error|
4283#0: *13591 FastCGI sent in stderr: "PHP message: PHP Warning: exif_imagetype(/var/www/vhosts/in-telligent.com/staging.in-telligent.com/wp-content/uploads/86a808eb-e-logo-horizontalartboard-1152-px.png): failed to open stream: No such file or directory in /var/www/vhosts/in-telligent.com/staging.in-telligent.com/wp-content/plugins/imagify/inc/classes/class-imagify-filesystem.php on line 506" while reading response header from upstream

Also problem is reported in WP.org forum
https://wordpress.org/support/topic/imagify-and-wp-stateless/

With this update the Add media button in post editor will not return GCS links.
In that case you have to enable File URL Replacement to replace your server URL to GCS URL on the fly.

alimuzzaman, forgive me been away for just jumping in been away for the holidays.
Can confirm that all checks out with the Hotfix plugin.
Much appreciate your efforts here.


fix(core): add support to union types for DeepValue

Solves #691
Explanation
@Balastrong provided two issues in the example. Only one of those is a bug. Consider the following code:
type Text = { answer: string; textAnswer: string }
type Number = { answer: number }
type FormType = { questions: Array<Text | Number> }

When calling DeepValue<FormType, 'questions[0].textAnswer'> the result is unknown. This is a bug!
When calling DeepValue<FormType, 'questions[0].answer'> the result is number | string. This is not a bug because Typescript will never know the current state of the if checks.

Solution
As I explained on the issue page, the problem was solved by swapping the default typescript get function with a custom one.
Problems found along the way
Recently, the #713 and #717 were merged. From what I gathered, if there is a nullable union, all the properties from the object part will also be nullable. So for example:
type Obj = { a: { b: string } | null }
// DeepValue<Obj, 'a.b'> -> string | null

In order to create a standardized behavior, I decided to ask you some questions.

Why is it only null values? What about optional and undefined?
Shouldn't it work with deep nested values?

DeepValue<{ a: { b: { c: string } } | null }, 'a.b.c'>
// should be -> string | null but is only string

Should the object union work the same way? So for the first example I gave:

DeepValue<FormType, 'questions[0].textAnswer'>
// should be -> string | undefined instead of just string (which is the way I implemented it)

Please let me know if you would like to chat more about it. I recently joined the Tanstack Discord.

The latest commit attempts to fix some of the issues discussed in the previous message.
It was clear that solving the Deep Nested Nullable problem would help with almost all other issues, so that's where I started.
After reading the code a bit more, the current implementation made sense and should've worked. I tried a lot of other approaches but none of them seemed to work at all. Then, I did the following test manually executing the DeepValue recursion:
type Obj2 = { user: { name: { first: string } } | null }
type normal1 = DeepValue<Obj2, 'user.name.first'> // string **Wrong! Should be string | null**
// The following is what happens recursively.
type manual1 = DeepValue<Obj2, 'user'> // { name: { first: string; } } | null **Correct**
type manual2 = DeepValue<manual1, 'name'> // { first: string; } | null **Correct**
type manual3 = DeepValue<manual2, 'first'> // string | null **The correct result we wanted**

I've had similar experiences, and I think it's something with typescript itself. The workaround was changing one of the if statements and adding my Get function (I don't actually know why it worked and that's why I think it's a typescript bug):
export type DeepValue<...> =
      TValue extends ReadonlyArray<any>
      ? ...
      : // Before, it was TValue extends Record<string | number, any>
        TValue extends any
        ...
                ? TNullable extends true
                  // Get is needed here because it can handle anything whether it is an object or not.
                  ? Nullable<Get<TValue, TAccessor>>
                  : Get<TValue, TAccessor>
                : never

Though this implementation worked, it introduced a strange typescript error TS2589: Type instantiation is excessively deep and possibly infinite. - I say that because any editor I use does not pick up on that error consistently.
After trying a lot of things, I created a TDepth arg to DeepValue passing all tests.
I'm writing this to explain why I introduced a bit more complexity to the codebase. Also if it actually is a typescript bug maybe we should not do workarounds and instead open an issue since the code change seems very dangerous.
The only thing that did not work exactly as I wanted is described in the following test case:
type DoubleNestedNullableObjectCase = {
  mixed?: { mainUser: { name: 'name' } } | null | undefined
}
type DoubleNestedNullableObjectA = DeepValue<
  DoubleNestedNullableObjectCase,
  'mixed.mainUser'
>
// Notice how the `name` property is not nullable or undefined.
// It would be much harder to do that, but I wanted something like:
// assertType<{ name: 'name' | null | undefined } | null | undefined>(
assertType<{ name: 'name' } | null | undefined>(
  0 as never as DoubleNestedNullableObjectA,
)

We'd previously had issues with TDepth that we removed thanks to @chorobin. When we had TDepth, it caused major headaches that I'd like us to try to avoid merging back into the codebase if at all possible - as it leads to the possibly infinite issues.
@chorobin could you take a look at this issue and try to help us figure out what's going on and maybe open a GH issue with upstream TS if needed?

I dreamt about a way to remove the TDepth argument. It actually worked! It's still a dangerous change that's worth looking more into.


Same soc target on two applikation

I have two chargers and two electric cars one id3 and one ford. id3 soc support target entity but not my Ford. My problem is that the id3 target entity is then on both cars aplikation. This has come after the last updates.
Thanks for a nice work.

Are you using two instances of the integration? One for the first charger and the first car, and another for the second charger and the second car? Each instance has its own configuration.
Can you explain what you mean by "the id3 target entity is then on both cars aplikation"?

Hej jag har problem med att de blir id3 soc taget på båda applikationerna
för på forden så har jag bara laddstatus i procent. Eftersom jag inte har
någon soc target så skulle de bli 100% target på forden. Men den följer soc
target från id3. Testade att göra flera applikationer med fordens sensor
för laddststus och då blir de ändå id3 target. Var hittar den soc target?
Kan ja själv styra de?
Mvj Jan
Den ons 8 feb. 2023 20:29Jonas Karlsson @.***> skrev:

Are you using two instances of the integration? One for the first charger
and the first car, and another for the second charger and the second car?
Each instance has its own configuration.
Can you explain what you mean by "the id3 target entity is then on both
cars aplikation"?
—
Reply to this email directly, view it on GitHub
https://github.com/jonasbkarlsson/ev_smart_charging/issues/126#issuecomment-1423131990,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A3FFBKQWKGRCL7FTUBUCYSLWWPXZ3ANCNFSM6AAAAAAUVOW4AE
.
You are receiving this because you authored the thread.Message ID:
@.***>

Ah, ok, so you have the Volkswagen We Connect ID integration, and in addition to one instance of the Ev Smart Charging integration that is used for the ID.3, you would like to have a second instance of the Ev Smart Charging integration that is used for another car.
And your problem is that this second instance get connected to the ID.3 SOC target, right?
If so, then what has happened is that when you created the instance for the second car, this integration tried to be smart and pre-populated the configuration for the EV target SOC entity with the ID.3 target SOC. What you need to do is to remove that pre-populated entity for the second car when creating the instance (it can't be changed afterwards).
If removing it (by entering an empty text) doesn't work (HA might give you an error message), write a single space as entity instead.

Thank you, it work perfect when i put a single space in EV Target SOC
entity on the second integration
//Jan
Den tors 9 feb. 2023 kl 09:18 skrev Jonas Karlsson @.***

:

Ah, ok, so you have the Volkswagen We Connect ID
https://github.com/mitch-dc/volkswagen_we_connect_id integration, and
in addition to one instance of the Ev Smart Charging integration that is
used for the ID.3, you would like to have a second instance of the Ev Smart
Charging integration that is used for another car.
And your problem is that this second instance get connected to the ID.3
SOC target, right?
If so, then what has happened is that when you created the instance for
the second car, this integration tried to be smart and pre-populated the
configuration for the EV target SOC entity with the ID.3 target SOC. What
you need to do is to remove that pre-populated entity for the second car
when creating the instance (it can't be changed afterwards).
If removing it (by entering an empty text) doesn't work (HA might give you
an error message), write a single space as entity instead.
[image: image]
https://user-images.githubusercontent.com/12384363/217755132-d331c4dc-98c4-4fa5-b084-f7d61a05a728.png
—
Reply to this email directly, view it on GitHub
https://github.com/jonasbkarlsson/ev_smart_charging/issues/126#issuecomment-1423799484,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A3FFBKSVJHJW4C2POEY6LSDWWSR5ZANCNFSM6AAAAAAUVOW4AE
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Med Vänlig Hälsning
Jan Erik Eriksson
www.hobjersgarden.se


Rft: default interface methods support

Fixes #1759 .
Did you remember to?

[ ] Add test case(s) - not required
[x] Update CHANGES.txt

Please note that some of the affected files are just reformatted (removed redundant keywords / fixed indentation).

@krmahadevan @juherr @cbeust check it please.

Also now that we have default methods, can you please also deprecate org.testng.IAlterTestName and move its contents into ITestResult because it should really belong there.

@krmahadevan fixed comments.

@sskorol - I think it would be better if I just add a consolidated comment.
TestNG has two types of interfaces. User facing interfaces which act as listeners and internal interfaces which just facilitate a decoupled implementation.
I think its very important that we consolidate and reduce the number of user facing interfaces. That is where the default methods and deprecation comes into play (this you have done). May I also please request that you add a message which clearly states the following in the deprecation message

The version from which the deprecation comes to effect ( This will help us to prune these methods in a subsequent release by following a deprecation strategy)
What is the alternative

For user facing interfaces (which are acting and being used as listeners etc.,) we should not be throwing UnsupportedOperationException. We should instead be having just an empty default implementation. Please have this fixed. I see that your PR basically throws the exception, which kind of defeats the purpose of having default methods.
 I think we should be cleaning up usages of them as well, so that the codebase doesn't use any of the deprecated interfaces. Please help take care of this in the PR.
For internally used interfaces as well, I noticed that we are throwing exceptions. I am not sure if that's a good idea. IMO default methods should never throw exceptions. If they are going to be throwing exceptions, then that means that its a mandatory need that, that particular method has to be implemented. In that case, that method should never have been a default method to begin with.
Please have this sorted out in this PR.

@krmahadevan thanks for the comment.
Regarding empty bodies: that was my initial thought (fist commit). However, it's valid only for void methods. And the main question is: what would be an expected behavior, when interface method returns some object? What should be returned for primitives / reference types? In case of collections, we can use some Collections.emptyX() wrappers. For other types, I don't really like an idea to return null, magic numbers, etc., as it may lead to false positives or invalid API usage.
The other questions is related to user facing interfaces. Could you please list them all?
I can revert changes related to internal interfaces to keep a strict contract. And user facing interfaces could be updated with empty bodies then.
I have one more question to you. Could you please point where all those user specific interfaces are loaded by TestNG? I believe they're all SPI-based. Just want to avoid wasting too much time looking for all potential entries.

IMO, methods that return values should never have default associated with them.

It depends... But I'm ok to keep them mandatory. Less refactoring work.

AFAIK, these are the user facing interfaces.

Thanks!

I think your IDE should still help you find references to all those interfaces (deprecated interfaces I mean) by asking the IDE to show usages of those interfaces in the TestNG codebase no ?

Well, SPI loader may use a parent interface reference. And if you search usages of its childs, IDE won't show you any SPI related reference. That's where you need to go through each interface and find all usages. Regarding deprecated interfaces: there's no issue with their detection.
Thanks @krmahadevan! Will come tomorrow with updates.

@krmahadevan @juherr rebased changes with the following updates:

default methods applied only for user facing interfaces;
default methods have just empty bodies to avoid hidden runtime exceptions;
some interfaces were marked as deprecated since 7.0.0 release;

Regarding deprecated interfaces' calls cleanup: I believe it should be done individually for each interface within separate PRs, as seems like there're lots of places which require redesign (e.g. those cases when we create new instances with different set of arguments depending on IXxx2/3 type).

@juherr fixed comments; @krmahadevan anything from you?

@sskorol - Can you please help fix the merge conflicts in CHANGES.txt and push in the changes ? After that we should be able to get this merged.
@cbeust - Sure. We will ensure that we take care of that. Please let us know if the current java docs is sufficient or if anything additional is required. We are just moving things from child interface to base interface in this changeset


Add network dependency to installed service file

Proposed changes
Adds the line After=network-online.target to the k3s systemd service
file. This applies the fix mentioned in
this GH comment
which I can confirm makes k3s networking survive reboot in Raspbian
Buster.
Types of changes

Bugfix

Verification
Testing steps:

You can confirm that networking doesn't adequately restore before applying this fix by using a Raspi 3 running a recent, clean install of Raspbian Buster and installing k3s on it using all the defaults. If you reboot this Pi set up this way, pods such as a deployed Dashboard enter the CrashLoopBackoff state.
After applying this fix [you can even edit the service file in-place to add this line] rebooting the pi now cleanly comes up with networking working.

Linked Issues
https://github.com/rancher/k3s/issues/1626#issuecomment-642253812
Further comments
Before I submitted this as a "fix" I wanted to understand what was going on and make sure
that this was the correct sort of way to solve this problem. It appears, in some docs I found
that this is a recommended and usual way of specifying that we need the
target to be completed before starting k3s. Using just the Wants=
directive doesn't work for this task, you have to add both directives
at once to do this. Quote:

Wants=: This directive is similar to Requires=, but less strict.
Systemd will attempt to start any units listed here when this unit
is activated. If these units are not found or fail to start, the
current unit will continue to function. This is the recommended way to
configure most dependency relationships. Again, this implies a
parallel activation unless modified by other directives

[...]

After=: The units listed in this directive will be started before
starting the current unit. This does not imply a dependency
relationship and one must be established through the above
directives if this is required.

(Emphasis mine)

So I believe that you need both the Wants= and After= at the
same time to have networking definitely come up prior to k3s
being started.
Signed-off-by: Matthew Clive<EMAIL_ADDRESS>

Thanks for the PR! Would you be willing to make the same change to the unit for the RPM?

Yeah I can take a look at the rpm. Let me do some research and I'll update
the pr
On Fri, Sep 11, 2020, 3:13 PM Brad Davidson<EMAIL_ADDRESS>wrote:

@brandond approved this pull request.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/rancher/k3s/pull/2210#pullrequestreview-487059552,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAZZ3SJ7ICREVQF22CHBO43SFJZGHANCNFSM4QZGAZQA
.

Don't worry about it, I had a moment this afternoon and added it.

Possible dupe of #1665


Dev uploader

Please makes sure the items are checked before submitting your PR, thank you!

[x] Rebase before creating a PR to keep commit history clear.

没事，我也最近业务比较忙，晚上有空回去修改

👍


[Feature Request] Express\ObjectBuilder can't control attributes are searchable or not

There's no way to set true or false for akIsSearchable or akIsSearchableIndexed.
Related document: Programmatically Creating Express Objects
https://documentation.concrete5.org/developers/express/programmatically-creating-express-objects

Can I make a PR for this?


GIT history breaks each time a file is moved or renamed

Whenever I rename a folder or move it creates a gazillion GIT deletes and adds them as new files, therefore the history for those files gets broken or lost.
Then the plugin says it can't show or stage anything because there are too many changes.
Can the Obsidian delete/move action be intercepted and replaced with git mv?
Thanks in advance.

You have to stage the files. Then will Git detect the renaming. git mv is the same as a staged mv

Closing because of no response. Just comment if you have still problems, and I'm open to reopen the issue.


Support for list of same-length examples

Right now Flatten chokes when you feed it a list of identically sized arrays (as output by e.g. RandomFixedSizeCrop and MinimumImageSize. Using len instead of .shape[0] should support both cases (list and NumPy array).

@vdumoulin @dwf One-liner that would be nice to have merged for the students in IFT6266 that are starting their projects today, last one for now I hope!

Test failure unrelated, merging. Thanks!


ROS1 or ROS2

Hi,
I am new to ROS. I plan to buy TurtleBot3 (probably Burger but could be Waffle Pi) and OpenManipulator-X. Perhaps OP3 later. In the emanual for both TurtleBot3 and OpenManipulator-X, there is a section on ROS 1 Setup and another section on ROS 2 Setup. Which section am I supposed to follow? Can you let me know which version of ROS is OP3 using?
Also, which version of Ubuntu should I install on my remote PC? From the ROS 2 Setup, the links to Download Ubuntu 18.04 points to 18.04.4 LTS (Bionic Beaver) but Ubuntu 19.10 (Eoan Ermine) has been released. Is it recommended to stay with 18.04.4 LTS or get the latest version of Ubuntu?

@robotiscustomer
Sorry that I missed this thread. I'll try to catch up on this instead of below forum.
http://en.robotis.com/service/forum_view.php?slg=&page_type=&bbs_no=2407774


QR code scanner integrated in arkit/ar mobile.

It seems like this pull request was opened by mistake (OP has created an issue: https://github.com/godotengine/godot/issues/27472), so I'll close it.


GPflow.sgpr memory issue in very large dataset

Apologies if this is not an issue per se, but I am trying to get familiar with GPflow (as an alternative to GPML) and I stumble upon a memory error.
Specifically, I have a very large dataset with 820,000 observations and 9 dimensions.
For my model I am using a composite kernel (SEard + Noise):
k1 = GPflow.kernels.RBF(input_dim=9, ARD=True)
k2 = GPflow.kernels.White(input_dim=9)
k3 = k1 + k2

For the GP regression model I use the Sparse Gaussian Process Regression (sgpr), with 50 inducing points:
M = 50 # Inducing points
Z = x[:M, :].copy() # Inducing points
m = GPflow.sgpr.SGPR(x, y, k3, Z)
m.likelihood.variance = 0.01

When I try to optimise the parameters m.optimize() I get his error:

ResourceExhaustedError (see above for traceback): OOM when allocating tensor with shape[50,819621]

[[Node: gradients/model.build_likelihood/MatMul_grad/MatMul_1 = MatMul[T=DT_DOUBLE, transpose_a=true, transpose_b=false, _device="/job:localhost/replica:0/task:0/gpu:0"](gradients/AddN_1/_75, model.build_likelihood/truediv)]]
[[Node: grad_objective/_91 = _Recvclient_terminated=false, recv_device="/job:localhost/replica:0/task:0/cpu:0", send_device="/job:localhost/replica:0/task:0/gpu:0", send_device_incarnation=1, tensor_name="edge_1369_grad_objective", tensor_type=DT_DOUBLE, _device="/job:localhost/replica:0/task:0/cpu:0"]]

I even tried to include mini-batches but I still get the same message
m.X.minibatch_size = 50
m.Y.minibatch_size = 50

m.Z.fixed = True
m.optimize()

Again, I am sorry for posting this question here. But, I would be grateful if someone has any suggestions on the matter.
My pc specs are:

GPU 780ti with 11gb GPU-RAM;
tensorflow version = tensorflow-gpu 1.2.1;
Windows 10

This should be possible. I haven't checked this, but try setting minibatch_size in the SGPR constructor. It's what I always do, and I've never had a problem like this.

If I'm not mistaken, SGPR, which implements the "original" Titsias bound, cannot handle minibatches. With a huge training set, kernel matrices involving X will require a rather large amount of memory and therefore fill the 11GB rather quickly.
If you want to use a model which can handle minibatches, SVGP is probably the correct choice. There, you can set the minibatch_size via a constructor parameter as mentioned by @markvdw.

Thank you very much guys!


OpenAPI 3

The result of conversion from OpenAPI 2 to 3 using https://converter.swagger.io/ without any changes
Checks so far:

https://validator.swagger.io/validator/?url=https%3A%2F%2Fraw.githubusercontent.com%2Faniewielska%2Ftask-execution-schemas%2Fopenapi3%2Fopenapi%2Ftask_execution_service.openapi.yaml
It seems to pass validation (unlike WES).
I ran the new spec through OpenAPI codegen for Java and got roughly the same wire format (minus ServiceInfo which now has lots of new fields). Also required seems now to be acknowledged by the generator for Java
TODOs:
compare with WES and try to align
I noticed that WES additionally has:
-- Error code responses listed (400, 404 etc) - not sure, if we want to add it at that stage. Breaking change.
-- Error response model - not sure, if we want to add it at that stage. Breaking change
-- URL defined as composite of host, path This we can do for TES.
-- Executive Summary - this is what we need for docs generation
externalise ServiceInfo - DONE. I added additional storage and moved '/service-info' outside of '/tasks'. That is breaking change as well, but seems required.

Version update done.


Cleanup built html after link checking

Previously, the hugo container built the html into website/public (owned
by root), which was not rebuilt cleanly.

The bazaar link is failing because the site is down atm. http://wiki.bazaar.canonical.com/


HIVE-23765: Use ORC file format by default when creating transactiona…

…l table
When table has property that transactional is 'true' and transactional_properties
is not 'insert_only', make fileformat ORC.
NOTICE
Please create an issue in ASF JIRA before opening a pull request,
and you need to set the title of the pull request which starts with
the corresponding JIRA issue number. (e.g. HIVE-XXXXX: Fix a typo in YYY)
For more details, please see https://cwiki.apache.org/confluence/display/Hive/HowToContribute

@nrg4878


Error when trying to configure of LDAP via resource harbor_config_auth

I did fresh installation of Harbor v2.1.3. I have used this provider to configure LDAP with local admin account from Harbor.
My configuration of LDAP is following
resource "harbor_config_auth" "ldap" {
  auth_mode             = "ldap_auth"
  ldap_url              = "ldaps://example.local:3269"
  ldap_search_dn        = "CN=service_account,OU=srv,DC=example,DC=local"
  ldap_search_password  = var.ldap_search_password
  ldap_base_dn          = "DC=example,DC=local"
  ldap_uid              = "sAMAccountName"
  ldap_scope            = 2
  ldap_group_base_dn    = "OU=Harbor,OU=Apps,DC=example,DC=local"
  ldap_group_admin_dn   = "CN=App_Harbor_Admins,OU=Harbor,OU=Apps,DC=example,DC=local"
  ldap_group_membership = "memberof"
  ldap_group_gid        = "cn"
  ldap_group_scope      = 2
  ldap_verify_cert      = false
}

When I apply the resource, I receive this error message
Error: [ERROR] unexpected status code got: 400 expected: 200
 {"errors":[{"code":"BAD_REQUEST","message":"configure item is not defined in metadata, item name: ldap_group_id"}]}

I tried to add metadata ldap_group_id = "" (empty string because I don't know what are valid values) to resource harbor_config_auth, but then I receive this error message
Error: Unsupported argument

  on administration_configuration.tf line 13, in resource "harbor_config_auth" "ldap":
  13:   ldap_group_id        = ""

An argument named "ldap_group_id" is not expected here. Did you mean
"ldap_group_uid"?

Am I doing something wrong? I tried to follow the documentation, but currently I am not possible to configure LDAP via this provider.

Hi
I have a feeling there is some typo in code.
use ldap settings without option "ldap_group_gid".  Its mapped to non existing option like you have in your message "configure item is not defined in metadata, item name: ldap_group_id"
Hope will solve your problem.

pull request
https://github.com/BESTSELLER/terraform-provider-harbor/pulls

Ok Approved the pull request and created a new release.

@jakuboskera Does this solve your issue?

@wrighbr yes, thanks

@wrighbr yes, thanks


Update config.yaml

For new organization members
I acknowledge that

[ ] I have read and understood the Open Source Guidelines
[ ] I agree to act accordingly (with due dilligence) to our guidelines
[ ] I have no open questions regarding the topics covered (please delete the "open questions" section)

Please copy and fill out :-)

Papperlapapp

Papperlapapp

I acknowledge that

[ ] I have read and understood the Open Source Guidelines
[ ] I agree to act accordingly (with due dilligence) to our guidelines
[ ] I have no open questions regarding the topics covered (please delete the "open questions" section)

I acknowledge that

[ ] I have read and understood the Open Source Guidelines
[ ] I agree to act accordingly (with due dilligence) to our guidelines
[ ] I have no open questions regarding the topics covered (please delete the "open questions" section)


Add Rotation / convergence value to geo-referencing process

When mixing data from UTM coordinate sources (usually CAD / Design data) and ECEF tile sets such as Cesium world terrain, a slight rotation of the globes surface around the local scenes cartesian up axis is often required to ensure these two datasets align as closely as possible (within what can be reasonably achieved by mixing a cartesian dataset with a geographic one).
In a typical use case when working with CAD data, it is preferable to keep the CAD data in it's original coordinate system when using a platform like Unreal or Unity, as you're constantly importing new designs, merging multiple design files together, or taking measurements and referencing back to source files, so rotating the design isn't really an option.  So the option is to rotate the geographic context data like Cesium world terrain instead.
This can already be somewhat achieved by rotating each tileset manually (eg. the actors in Unreal, gameobjects in Unity, or prims in Omniverse), however making this part of geo referencing process would streamline the process, especially when multiple tilesets are used.
See below for some examples of UTM data aligned to the CWT by calculating lat/long from UTM easting/northing.  Note a rotation is needed to align correctly.  This is more commonly needed for datasets located towards the edges of a UTM zone, where grid convergence is much higher.  The coordinate calculator being used is https://sgss.ca/tools/coordcalc.html and the convergence value calculated is what is used to rotate the CWT to achieve alignment.

The purist in me says, "if you have a model expressed in UTM coordinates, you need to unproject every vertex." Because a simple rotation won't work if the model covers a larger area, right?
In any case, it's already possible in Cesium for Unity to apply a rotation to the CesiumGeoreference game object, which will also rotate all tileset and globe anchors within it. We're planning to add this to Unreal soon (see https://github.com/CesiumGS/cesium-unreal/issues/1049). Is that sufficient, or did you have something more (automatic?) in mind?

Correct re: larger areas needing more than just rotation, however for most Archvis / Precinct size examples, it's good enough for the purposes where the globe primarily acts as lower resolution background context.  Big linear infrastructure like road and rail is where rotation isn't enough and the solution becomes much more complex, but happy to leave that out of scope for now.
Good to hear re: Unity (I hadn't tried that) and the Unreal solution would seem to be sufficient for now to address this needs of this issue.


Fix tire creaseAngle

Edges should be invisible on a tire. The current computation is complex and do not take into consideration the tire curvature.

develop
this branch

test me

👍

Build Passed :ok_hand:
You can safely merge 'fix-tire-crease-angle' into 'develop'.


Support nested lists

😯 ❤ 🎉

seeing people contribute fun stuff to this project is the most rewarding thing ever. Thank you!

Happy to contribute @Rosey 👍


[FancyZones] "Space around zones" needs a global setting, and override in individual layouts

It is really hard to guess what most people want for the space around zones.  The default in current version is set to '16', which in my opinion is far too wide - I like things compact.  But, giving me what I want, there would be a large user-base who doesn't like my layout preference.
FancyZones needs a global setting for "Space around zones".  This can be in the initial + modal as a field that sets this global setting.  Another location could be in the PowerToys settings app under FancyZones.  Then, individual grid-style layouts would have it's own "space around zones" field which would override the global setting.
Unsetting the individual layout's space around zones override should revert it back to what the global setting is.

@yamlCase
what version of PowerToys are you running?
In 0.31.2 these is no anymore a global value for spaces around zones, you can set it individually for each template and it will be persisted.
Also each custom template has its own value that is unique to that layout.
We don't have plans to change this behavior since it's the most flexible and it requires a minimum effort to set it for each template that the user is interested in.

Well, let me tell you about my use case then.  I remote desktop a lot, and from different sizes screens.  I have probably 10 layouts right now and an constantly adding and removing.  While it is a small effort to change, I feel it is an annoyance to have to remember to make that one change each time.  If I'm the only one working with FZ this way, yea I'm fine with closing this.

@yamlCase
why you have to change it each time?
If you need a layout with different space around zones values, create two or more layout and set on each the desired spaces around zone.


Failed to install with cargo

❯ cargo install tab
    Updating crates.io index
  Installing tab v0.5.7
error: failed to compile `tab v0.5.7`, intermediate artifacts can be found at `/var/folders/d8/ql27xfw90rg03s_7vrrbl1lh0000gp/T/cargo-installUgsN70`

Caused by:
  failed to select a version for the requirement `zeroize = "^0.9.3"`
  candidate versions found which didn't match: 1.5.2, 1.4.3, 1.4.2, ...
  location searched: crates.io index
  required by package `dialoguer v0.7.0`
      ... which satisfies dependency `dialoguer = "^0.7"` of package `tab v0.5.7`

It was just for your information. Installing via brew was fine. I'll close this for lack of interest.


Support for Remix

Any plans to support Remix with custom server adapter similar to @remix-run/express?

Sure, I love Remix.
Added to roadmap

Blocking on: https://github.com/oven-sh/bun/issues/1864

Is this unblocked via this PR?

https://github.com/oven-sh/bun/pull/2019

Likely yes, will continue working on an adapter after the PR landed on stable (likely Bun 0.5.7)

any update? :)

any update?

Apparently  elysia + remix is already supported. You just need to make some tweeks
https://github.com/wladiston/elysia-remix

I did also manage to make it work, though only with production mode
// plugins/remix.ts
import type { ServerBuild } from "@remix-run/node";
import { createRequestHandler } from "@remix-run/node";
import { join, parse } from "path";
import { Elysia } from "elysia";

export type RemixPlugin<T extends ServerBuild = any> = (
  serverBuild: T,
  publicDir?: string
) => Elysia;

export const remix: RemixPlugin = (serverBuild, publicDir = join(process.cwd(), "public")) =>
  new Elysia().all("*", async function ({ request, store, path, set }) {
    if (request.method === "GET" && parse(path).ext) {
      const filepath = join(publicDir, path);
      const file = Bun.file(filepath);
      const fileExist = await file.exists();
      if (!fileExist) {
        set.status = 404;
        return { error: "Requested resource does not exist" };
      }
      set.headers["Cache-Control"] = "public,max-age=31536000,immutable";
      return file;
    }
    /**
     * This only works for production build
     *
     * For development use remix dev instead
     */
    const handleRequest = createRequestHandler(serverBuild, "production");
    return await handleRequest(request, store);
  });

// server.ts
import { remix, logger } from "./plugins";
import { Elysia } from "elysia";
import * as build from "./build/index";

const port = process.env.PORT;

const app = new Elysia()
  .state("appLoadContext", "test")
  .use(logger())
  .use(remix(build))
  .listen(port ? Number(port) : 3000);

console.log(`Server is running at http://${app.server?.hostname}:${app.server?.port}`);

// Axios accept-encoding header should be set to gzip to work
...
headers: {
    common: {
      "Accept-Encoding": "gzip",
    },
  },
...

I'n not sure about this but after few clicks to test the router link, i feel that running original remix with bun is still somehow smoother than running remix by elysia 😂 It could be my implementation broke somewhere

Any update for official remix support?

Any update for official remix support 🥹

+1

+1

Is there any current path here that works now that remix uses vite?

do we have any example use of elysia and remix as monorepo?

Can confirm, @TaQuanMinhLong's solution worked in production only.
It would be great to have official Remix support, elysia is looking amazing and I have already replaced my backend servers.
I'm just missing it on the frontend for that sweet consistency now!

https://github.com/user-attachments/assets/725a4a85-d883-4a62-af81-9335482d9d2c
I work on it
SOON...

I publish<EMAIL_ADDRESS>Currently, sending files from public dir in development mode does not work
Waiting for your stars and issues ✨

@Marcisbee Can you share the feedback and if everything is fine close the issue?

Hey @kravetsone, I tried out your package and it seems pretty stable.
I left a Issue + PR to fix some of the problems in the example you give but other than that it seems great!
However, I think a working public directory in development is essential and we should make it a priority to fix that before closing this issue.

Hey @kravetsone, I tried out your package and it seems pretty stable.
I left a Issue + PR to fix some of the problems in the example you give but other than that it seems great!
However, I think a working public directory in development is essential and we should make it a priority to fix that before closing this issue. I'd like to help but have no idea where to start so I guess I'll open another Issue on your repo about it and we'll go from there.

But public folder works today
Do u have issues with it?

Hey @kravetsone, I tried out your package and it seems pretty stable.
I left a Issue + PR to fix some of the problems in the example you give but other than that it seems great!
However, I think a working public directory in development is essential and we should make it a priority to fix that before closing this issue. I'd like to help but have no idea where to start so I guess I'll open another Issue on your repo about it and we'll go from there.

But public folder works today
Do u have issues with it?

Ahh really i forgot to mention it here

That's weird, I tried it today with the lastest version of Bun, Elysia itself and your package. I got the exact opposite of that behavior.
I created a minimal repository so you can see if you're able to reproduce the issue.
This is what happens (quoted from the  README.md inside that repository):

Tested with Bun version 1.1.21

Install dependencies with Bun

bun install

Run in development mode:

bun run dev

In this mode, all pages work normaly but files in the public folder are not being served.

Run in production mode:

bun run build && bun run start

In this mode, all files in the public folder are being served but every page returns "NOT_FOUND"

Side note: I tried with and without the app folder inside src, changing the corresponding appDirectory in the Remix vite.config.ts plugin config.

Closing as supported as 3rd party http://github.com/kravetsone/elysia-remix

not sure if i should make a new issue for this question. but is elysia already supported with tanstack start api routes?


Update SDK to preview 7

Addresses aspnet/AspNetCore-Internal#2774

@JunTaoLuo don't forget to request reviewers. I missed a couple of PRs until I went searching.


There should be a confirmation alert before deleting items from the Wishlist

Steps To reproduce--
1. Add multiple items to your Wishlist and Compare.
2. Try to delete items from Wishlist at a time.
Note:  Please reproduce this issue with the default theme.
Expected result: There should be a confirmation alert before deleting items from the Wishlist.
Actual result: There is no confirmation alert before deleting items from Wishlist. Please find the screen recording Here.

No need for any confirmation for the wishlist. The confirmation comes due to the universal method so adding confirmation for only move to cart.

@devansh-webkul
It is working fine. but when the user is trying to move the item to the cart then the item should be removed from the wishlist
Please find the screen recording Here.

@devansh-webkul
Thanks, now this issue is fixed. And I have attached a screenshot for future Here.


How to unsubscribe to valueChanges

I'm submitting a ...  (check one with "x")
[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[x ] support request

Current behavior
I have read in many posts that instead of using the onChanges hook for when a field value changes, it is suggested to do the following:
hooks: {
onInit: function( field) {
field.formControl.valueChanges.subscribe(v => {
console.log('valueChanges', v);
});
}
}
If done this way, what is the proper way to unsubscribe?
Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Angular version: 8.0.0

Browser: [all

Language: [all]

Node (for AoT issues): node --version =

check the following example https://ngx-formly.github.io/ngx-formly/examples/other/cascaded-select, which unsubscribe on ngOnDestroy


(feat) configure key-auth plugin to validate only on header

Hello,
The key-auth plugin currenlty looks in both the HTTP headers and in the query parameters for finding the key. It is sometimes not recommended to pass sensitive information in query parameters because they are logged in browser and web server logs.
I think it can be interesting to be able to configure the key-auth plugin to only validate key against the HTTP header.

it can also look in the body, when config.key_in_body is set.
Could be interesting to change that to config.key_in with a list of header, query, body entries. It would create more fine grained control over it.
@boubou191911 PR's are welcome!

@boubou191911 @Tieske flexibility is good.
However I just wanted to highlight apikey should not be treated as sensitive information. API Key is identifier(of an app) its not a secret. Even in OAuth2/OIDC flows , clientid(which is equivalent to APIKey , interchangeably called in few IDP providers) can be passed from the client apps to "identify" the app via the query param. Mostly APIKeys are used by SPA client apps to consume the resources(API) , where you can't store the apikey securely at all.
Also I have noticed some organization security policy treat apikey as sensitive information.


Getting errors

I am using the same file which is included with QFontIcon project.
DirectWrite: CreateFontFaceFromHDC() failed (Indicates an error in an input file such as a font file.) for QFontDef(Family="Fixedsys", pointsize=9.75, pixelsize=15, styleHint=5, weight=50, stretch=100, hintingPreference=0) LOGFONT("Fixedsys", lfWidth=0, lfHeight=-15) dpi=96

Is the example working? Which Qt version are you using? Which os ? Thanks for your feedback

I am using Qt5.12.1 MSVC 2015 64bit on Windows 10.


WinForms MenuStrip's ToolStripMenuItem children are not accessible

I am trying to automate a menu in my application and the MenuBar comes in but not the MenuItems that are inside of it.
Here is the menubar from the page source on the driver:
<MenuBar AcceleratorKey="" AccessKey="" AutomationId="menuStrip1" ClassName="WindowsForms10.Window.8.app.0.141b42a_r9_ad1" FrameworkId="WinForm" HasKeyboardFocus="False" HelpText="" IsContentElement="True" IsControlElement="True" IsEnabled="True" IsKeyboardFocusable="True" IsOffscreen="False" IsPassword="False" IsRequiredForForm="False" ItemStatus="" ItemType="" LocalizedControlType="menu bar" Name="menuStrip1" Orientation="None" ProcessId="16340" RuntimeId="42.5048014" x="60" y="83" width="284" height="24" />
I know that the MenuStrip does not implement UIAutomation and are only exposed to UIAutomation via MSAA.  MSDN Supported Controls for UIAutomation
The Inspect tool does show the menu items whether I am in UIAutomation mode or MSAA mode.
The only inkling that it could be something in my setup is that when I catch ALL exceptions, there is a COMException in Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll
Retrieving the COM class factory for component with CLSID {177F0C4A-1CD3-4DE7-A32C-71DBBB9FA36D} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
Is this supposed to work?  I have a small sample project that illustrates the issue if needed.
Thanks,
Jon

I saw people in https://github.com/Microsoft/WinAppDriver/issues/83 also complains that WinForms does not work properly. We have to reject WinAppDriver and Winium and start with White instead to test WinForms application.

At the moment WinAppDriver does not support MSAA.  Is this control provided by a 3rd party?  Would be good to find out if they are open to updating the control to support UI Automation.

Are there plans to support MSAA at some point? The MSDN documentation I've found makes it pretty clear they have no plans to continue to develop it, which is understandable. But when looking for solutions to test legacy apps, we've been pretty pigeonholed into writing our own CodedUI tests... which while slightly more manageable than using record and playback is still not an ideal solution.

Hi @JonHeaton ,
There was an issue prior to the 1.0 release where a few elements were not appearing. Controls that are properly implemented in MSAA are projected into UIA, they should be generally interactable.
If you still see this on the latest WinAppDriver, let us know.

I'm using WinAppDriver v1.1.1809.18001 and am having problem seeing items within a dropdown menu. I'm testing with a new C# WinForms application in VS2015, adding a MDIForm and editing program.cs to open the MDI form on startup. I can see and click the menus along the menu bar (File / Edit / Help). I can see items within the menu (e.g. Help / About) using Inspect.exe in MSAA mode. I can't see items within the menu using inspect.exe in UI Automation mode. Can you advise if there's anything I can do to help this control project into UIA properly? Many thanks.


Hide movie name in notification.

Hi
Just thought I would commit a small addition I made to the script. We like the name of the movie that is about to play to be a mystery so I have added an option to hide this in the notification.
Just sending a pull request just in case you wanted to incorporate this feature.
Thanks for writing the add-on, it's very useful when you can't decide what movie to watch :).
Thanks
Adrian

Thanks. Added it now :)


Django runserver error

Describe the problem
Tell us about the problem you're having.
Steps to reproduce
Tell us how to reproduce it.
System configuration

Django version:
Python version:
Django-Constance version:
Error :
Exception in thread django-main-thread:
Traceback (most recent call last):
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\servers\basehttp.py", line 45, in get_internal_wsgi_application
return import_string(app_path)
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\site-packages\django\utils\module_loading.py", line 17, in import_string
module = import_module(module_path)
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\importlib_init_.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in call_with_frames_removed
File "C:\Users\golug\Downloads\CodeWaves\CodeWaves\CodeWaves\wsgi.py", line 16, in
application = get_wsgi_application()
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\wsgi.py", line 13, in get_wsgi_application
return WSGIHandler()
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\handlers\wsgi.py", line 127, in init
self.load_middleware()
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\handlers\base.py", line 40, in load_middleware
middleware = import_string(middleware_path)
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\site-packages\django\utils\module_loading.py", line 17, in import_string
module = import_module(module_path)
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'django.middleware.clickjackinkg'

The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\threading.py", line 917, in _bootstrap_inner
self.run()
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\site-packages\django\utils\autoreload.py", line 64, in wrapper
fn(*args, **kwargs)
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\management\commands\runserver.py", line 138, in inner_run
handler = self.get_handler(*args, **options)
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\site-packages\django\contrib\staticfiles\management\commands\runserver.py", line 27,
in get_handler
handler = super().get_handler(*args, **options)
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\management\commands\runserver.py", line 65, in get_handler
return get_internal_wsgi_application()
File "C:\Users\golug\AppData\Local\Programs\Python\Python37\lib\site-packages\django\core\servers\basehttp.py", line 50, in get_internal_wsgi_application
) from err
django.core.exceptions.ImproperlyConfigured: WSGI application 'CodeWaves.wsgi.application' could not be loaded; Error importing module.

How is it connected to django-constance?


get rid of main tag

There's a main tag which keeps on coming back:

Not sure if it's created in the pipelines or where. I've deleted it already a few times manually.

Looks like the main tag is added by the publish pipelines

Closed with https://github.com/fohrloop/wakepy/issues/346


[v1.x]Add constraint to numpy version to <1.19.0 in CI

Description
As reported in https://github.com/apache/incubator-mxnet/issues/18600, there're some failures related to numpy operators with numpy 1.19.0 (which was released on Jun 21, 2020). Since numpy doesn't follow semantic versioning, and it requires more integration/functionality tests to make sure MXNet is compatible to the latest numpy version. Before all this works are completed, this PR adds constraint to numpy version < 1.19.0 to enable CI pipeline.
@szha @TaoLv @leezu

I'm quite concerned that there has been no further investigation of the scope and amount of work needed to provide compatibility with numpy 1.19. Constraining the numpy version can become a major pain later on (when more and more user systems update to numpy 1.19) and can prevent them from using mxnet.


Implement a Broadcast method

Follow on from #172.
When working with dynamic views in a UI, I need the ability to fork an existing stream and wire it up to n subviews. n is not a fixed number and oscillates up and down at runtime.
Some of these views will be destroyed at runtime, while others will stay intact. So, the mechanism should handle dynamic creation and removal of forks.
In #172, @vqvu suggested a broadcast method that consumes a stream returns an object with the following interface:
new() - Creates a new viewer stream that sees values emitted by the parent.
destroy() - Destroys the parent. No new viewers can be created after this.
The broadcast#new method returns a viewer which has shared back pressure like a fork, but

They can be created dynamically, after data has started flowing.
The source does not get destroyed even when there are no viewers.
If there are no viewers, the source will be paused.
It is up to the user of broadcast to destroy the source once they are done with it.

Implemented something like this outside the lib, was easy to do.
This probably doesn't need to be in core.


Adds CheckResult annotations to the functions

Codecov Report
Base: 100.00% // Head: 97.94% // Decreases project coverage by -2.05% :warning:

Coverage data is based on head (cc8c912) compared to base (b9b45eb).
Patch coverage: 100.00% of modified lines in pull request are covered.

:exclamation: Current head cc8c912 differs from pull request most recent head 7e5abc9. Consider uploading reports for the commit 7e5abc9 to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##              main      #59      +/-   ##
===========================================
- Coverage   100.00%   97.94%   -2.06%
===========================================
  Files           16       16
  Lines          291      292       +1
  Branches        21       23       +2
===========================================
- Hits           291      286       -5
- Misses           0        6       +6

Impacted Files
Coverage Δ

...c/main/java/de/musichin/reactivelivedata/Buffer.kt
100.00% <ø> (ø)

...src/main/java/de/musichin/reactivelivedata/Cast.kt
100.00% <ø> (ø)

...main/java/de/musichin/reactivelivedata/Distinct.kt
100.00% <ø> (ø)

...src/main/java/de/musichin/reactivelivedata/DoOn.kt
76.47% <ø> (ø)

...c/main/java/de/musichin/reactivelivedata/Filter.kt
100.00% <ø> (ø)

...src/main/java/de/musichin/reactivelivedata/Hide.kt
100.00% <ø> (ø)

...main/java/de/musichin/reactivelivedata/Internal.kt
100.00% <ø> (ø)

...main/java/de/musichin/reactivelivedata/LiveData.kt
100.00% <ø> (ø)

.../src/main/java/de/musichin/reactivelivedata/Map.kt
100.00% <ø> (ø)

...rc/main/java/de/musichin/reactivelivedata/Merge.kt
100.00% <ø> (ø)

... and 8 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


E2E tests fail in chapter 3.5 list view

I followed the instructions in the book to chapter 3.5 Everything was OK until now.
All tests with following expression fail:
...expect(repeater(selector).column('book.title'))...

It seems like the result array is empty
Chrome 41.0.2272 (Mac OS X 10.9.5) E2E: book list view should show the books in the proper order FAILED
	expect repeater 'table.bm-book-list tr' column 'book.title' toEqual ["CoffeeScript","JavaScript für Enterprise-Entwickler","Node.js & Co."]
	/Users/waldo/Documents/_Personal/bookmoney/test/e2e/templates/book_list.spec.js:44:35: expected ["CoffeeScript","JavaScript für Enterprise-Entwickler","Node.js & Co."] but was []

Any ideas? Thank you.

Hi there!
I'm having the same problem with the empty array. Tried everything I could find but still get the error message.
Any idea where this could come from?
Thx

Thank you for your info. Will try to recreate the problem this week and will reply as soon as I find a solution.
Phil

Hi again,
just tried to recreate the problem on my machine. Short answer: Works on my machine. :-)
So, here is what I did. Maybe it'll help you to make the mentioned e2e test green. In case it doesn't, just let me know. So I'll try to help you.
Assumption:

Chrome and Node.js (including NPM) have been installed.
http-server NPM module has been installed globally via NPM. (npm install -g http-server)

Shell 1 (clone repo and run http-server on port 8080):
git clone git@github.com:angularjs-de/dpunkt-buch-beispiele.git
cd dpunkt-buch-beispiele/ch03_03_list_view/app
http-server

Shell 2 [install dev dependencies (karma, ng-scenario, etc.) and execute e2e tests]:
cd path/to/dpunkt-buch-beispiele/ch03_03_list_view
npm install
karma start karma-e2e.conf.js

I hope that you'll make it now! :-)
Further info:
Please note that meanwhile ng-scenario is considered deprecated when dealing with e2e tests. Protractor is your friend now.
Bye,
Phil


[ganglia] Using $(hostname -s) vs ${HOSTNAME}

Recent change in the hostname implementation has required that we find short hostname using a different mechanism.  This patch makes that change.

/gcbrun


Downloading VSCode Extensions from API via BuildAgent

Describe the bug
When using a build agent running Ubuntu and PowerShell I run the following command and receive an error:
PowerShell Command:
$url = 'https://marketplace.visualstudio.com/_apis/public/gallery/publishers/{0}/vsextensions/{1}/{2}/vspackage' -f $publisher, $extensionName, $version $request = Invoke-WebRequest $url -OutFile $outFile
Error:
Invoke-WebRequest : {"$id":"1","innerException":null,"message":"Request was blocked due to exceeding usage of resource 'Count' in namespace 'AnonymousId'. For more information on why your request was blocked, see the topic \"Rate limits\" on the Microsoft Web site (https://go.microsoft.com/fwlink/?LinkId=823950).","typeName":"Microsoft.TeamFoundation.Framework.Server.RequestBlockedException, Microsoft.TeamFoundation.Framework.Server","typeKey":"RequestBlockedException","errorCode":0,"eventId":3000}
To Reproduce
Steps to reproduce the behavior:

Set up a Ubuntu build Agent for DevOps
Create pipeline that has a PowerShell task that hits the API and saves the VSIX

Expected behavior
I would expect I could use this API to download the VSIXs for a disconnected environment.
Screenshots

Additional context
I thought it could be from how fast it would go through the extensions but it has never made it past 2 vsix downloads. I added a sleep in between and that did not seem to help.
I tried capturing the websession (-SessionVariable) and using the same session parameters for each call and that did not work.
I tried creating a new WebRequestSession object and using that one for every connection and that did not work.

I tested on a WSL2 Ubuntu instance on a system that has not signed into any Microsoft account and received the same error.

If I hit another page to get the cookies needed it works here is what I ended up doing:
Write-Output -InputObject "Downloading $extension"
            [string]$extInfo = vsce show $extension --json
            $json = ConvertFrom-Json -InputObject $extInfo
            $publisher = $json.publisher.PublisherName
            $extensionName = $json.extensionName
            $version = $json.versions[0].version

            $url = 'https://marketplace.visualstudio.com/_apis/public/gallery/publishers/{0}/vsextensions/{1}/{2}/vspackage' -f $publisher, $extensionName, $version

            $initialUrl = 'https://marketplace.visualstudio.com/items?itemName={0}.{1}'-f $publisher, $extensionName
            $response = Invoke-WebRequest -Uri $initialUrl -SessionVariable initialCookie
            $filename = '{0}.{1}-{2}.vsix' -f $publisher, $extensionName, $version
            $outFile = Join-Path -Path $extensionPath -ChildPath $fileName

            Invoke-WebRequest -Uri $url -OutFile $outFile -WebSession $initialCookie -UseBasicParsing


A for_str function that accepts &str and returns &str?

I'm working on a patch for rustup, and reqwest has better proxy support than hyper <0.11 did. One thing I've noticed is with for_url, it's not immediately obvious from the returned tuple whether the proxy should be spoken to with HTTP or HTTPS. The environment variables defined in curl usually include the protocol too, so it'd help to just receive the string back.
Would you be interested in accepting a PR to do this, if I submitted it?

Oh right. It would look something like this:
pub fn for_str(s: &str) -> Option<String> {
    // ...
}

Or perhaps even for_str<S: AsRef<str>>...

(TL;DR: a PR would be fine.)
Yes, for_url effectively hardcodes the http scheme for client -> proxy connections, since TLS support for those has historically been patchy in the browsers, so operationally not many proxy servers were configured to support them. It's a bit better now, and I agree that one should be able to specify TLS for proxy connections.
If the parameter for the new function is an unparsed URL, I'd prefer to call the function something like for_url_str to indicate the expected form. A generic parameter is convenient to have. If the parsing is done internally, how are the possible errors handled -- by returning None? (Fine by me.)
My plan for version 0.2 of this crate is to make for_url accept both &Url and &str/String, extend the returned tuple by an extensible struct with additional parameters (scheme, authentication credentials), and provide a way to construct the proxy URL. for_url_str could then be deprecated. Does this sound workable for your future use of env_proxy?

i also need this feature, it seems that you guys have no time to fix this, i will fire a pr to fix this.

i prefer this version, i think it is ok to return a String, and possible errors handled -- by returning None.
pub fn for_str(s: &str) -> Option<String> {
    // ...
}

I guess this issue can be closed now.
Example of using env_proxy 0.2 with reqwest:
    let client = reqwest::ClientBuilder::new()?
        .proxy(reqwest::Proxy::custom(|url| {
            env_proxy::for_url(url).to_url()
        }))
        .build()?;


Use a different API with a more generous free tier

This one looks promising: https://www.weatherapi.com/api-explorer.aspx

Thanks for the suggestion! 🙏🏻
Support for weatherapi.com is included in release 0.1.0.
Note that this release brings a breaking change to the config.toml.  Check the release notes for details.


fix nextBaseOffset related exception

Tested on es 6.1.2 and 6.2.1.

I'd like to write update descriptions and append to readme.md if needed😁


[SPARK-16366][SPARKR] Fix time comparison failures in SparkR unit tests.

What changes were proposed in this pull request?
Fix time comparison failures in SparkR unit tests. For details, refer to https://issues.apache.org/jira/browse/SPARK-16366.
How was this patch tested?
SparkR unit tests.

Test build #61727 has started for PR 14046 at commit 448450e.

Test build #61727 has finished for PR 14046 at commit 448450e.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/61727/
Test PASSed.

@sun-rui Is this PR still active ? Can we close it if its not relevant ?


Moving SQLite calls to cpp files

Currently we are not linking in the static version of sqlite, however, when we link in the static version the test breaks when the symbols are hidden. This is because part of the sqlite code is in the header and some other code is in the cpp file which cause two different instances of sqlite to be used in the test which is a problem because of the global variables used in sqlite
We need to put all the code that calls the sqlite api in cpp files, this should also improve compile time

@pfultz2 I will start working on this and should have a PR soon.

We need to probably use the pimpl idiom so we dont leak any sqlite objects into the headers.

Will do


Internal server error after login

One of our users is experiencing the 500 after successful login. We are running 1.8.1
The traceback in the log is:
  File "/home/zulip/deployments/2018-05-14-13-18-53/zulip-py3-venv/lib/python3.5/site-packages/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "/home/zulip/deployments/2018-05-14-13-18-53/zulip-py3-venv/lib/python3.5/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/home/zulip/deployments/2018-05-14-13-18-53/zulip-py3-venv/lib/python3.5/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "./zerver/views/home.py", line 83, in home
    return home_real(request)
  File "./zerver/decorator.py", line 370, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "./zerver/decorator.py", line 415, in _wrapped_view_func
    return rate_limit()(view_func)(request, *args, **kwargs)
  File "./zerver/decorator.py", line 747, in wrapped_func
    return func(request, *args, **kwargs)
  File "./zerver/views/home.py", line 124, in home_real
    narrow=narrow)
  File "./zerver/lib/events.py", line 650, in do_events_register
    maybe_catch_up_soft_deactivated_user(user_profile)
  File "./zerver/lib/soft_deactivation.py", line 191, in maybe_catch_up_soft_deactivated_user
    add_missing_messages(user_profile)
  File "./zerver/lib/soft_deactivation.py", line 121, in add_missing_messages
    if (stream_subscription_logs[-1].event_type == 'subscription_deactivated' and
IndexError: list index out of range

@mvrhov I don't think I've seen this before.  What version of Zulip did you initially install, and did you subscribe users to streams directly via the database at any point?
(The reason I'm asking is that the exception here seems to be caused by the user in question having a Subscription object for a given stream without a RealmAuditLog object recording when the user was subscribed to the stream, which is a state that shouldn't be possible).
There's probably a workaround one could do of applying this patch if you'd just like to get your user unblocked:
diff --git a/zerver/lib/soft_deactivation.py b/zerver/lib/soft_deactivation.py
index 6e4d442..bc6f09e 100644
--- a/zerver/lib/soft_deactivation.py
+++ b/zerver/lib/soft_deactivation.py
@@ -119,6 +119,12 @@ def add_missing_messages(user_profile: UserProfile) -> None:
     recipient_ids = []
     for sub in all_stream_subs:
         stream_subscription_logs = all_stream_subscription_logs[sub['recipient__type_id']]
+        if len(stream_subscription_logs) == 0:
+            # This is not correct in the general case, because this
+            # case never happen if RealmAuditLog is maintained
+            # properly, but a continue is the best way to recover if
+            # this condition happens.
+            recipient_ids.append(sub['recipient'])
+            continue
         if stream_subscription_logs[-1].event_type == 'subscription_deactivated':
             assert stream_subscription_logs[-1].event_last_message_id is not None
             if stream_subscription_logs[-1].event_last_message_id <= user_profile.last_active_message_id:

@adnrs96 may be able to help debug how it might be possible, but we should wait to do that investigate until we hear more about this server's history.

Initial version was some version of upcoming 1.8. I needed that particular version because it came with slack import. This is the only user that has trouble logging in (we did install before 1.8 become stable), but this particular user hasn't logged in yet until a couple of days ago.

OK.  There are some bug fixes for the soft-deactivation code path that have gone into master since shortly before 1.8, including fdfbd45208d318420bfe19baf0122f9a5c9db481.  I don't think any of those would fix the exact problem you're seeing, though.
Wait, did you say that this organization was imported from Slack?  That actually would explain the exception here; you probably don't have RealmAuditLog entries for subscriptions imported from Slack, then.  In that case, the workaround I suggested above should be a complete and correct fix for your organization.
@rheaparekh we need to fix this properly; the Slack import tool should be creating RealmAuditLog subscription_created events for all the subscriptions that it imports.  Can you work on this as a priority issue?

@zulipbot claim

@mvrhov we just fixed this in master; thanks so much for the extremely helpful bug report.
Were you able to get the workaround I suggested working?  There's a more complex option that involves some editing of the database that would not require you to maintain that code change longer-term; if you're interested I can write up some notes on how to do it (in short, you need to call a slightly refactored version of create_subscription_events).

Sorry for the late answer. The above patch didn't help. I applied it and run service supervisord restart
Internal Server Error: /
Traceback (most recent call last):
  File "/home/zulip/deployments/2018-05-14-13-18-53/zulip-py3-venv/lib/python3.5/site-packages/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "/home/zulip/deployments/2018-05-14-13-18-53/zulip-py3-venv/lib/python3.5/site-packages/django/core/handlers/base.py", line 187, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/home/zulip/deployments/2018-05-14-13-18-53/zulip-py3-venv/lib/python3.5/site-packages/django/core/handlers/base.py", line 185, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "./zerver/views/home.py", line 83, in home
    return home_real(request)
  File "./zerver/decorator.py", line 370, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "./zerver/decorator.py", line 415, in _wrapped_view_func
    return rate_limit()(view_func)(request, *args, **kwargs)
  File "./zerver/decorator.py", line 747, in wrapped_func
    return func(request, *args, **kwargs)
  File "./zerver/views/home.py", line 124, in home_real
    narrow=narrow)
  File "./zerver/lib/events.py", line 650, in do_events_register
    maybe_catch_up_soft_deactivated_user(user_profile)
  File "./zerver/lib/soft_deactivation.py", line 200, in maybe_catch_up_soft_deactivated_user
    add_missing_messages(user_profile)
  File "./zerver/lib/soft_deactivation.py", line 163, in add_missing_messages
    user_profile, stream_messages, all_stream_subscription_logs)
  File "./zerver/lib/soft_deactivation.py", line 58, in filter_by_subscription_history
    if stream_subscription_logs[-1].event_type in (
IndexError: list index out of range

This does indeed solve the problem.
So what should I do when the next upgrade comes?

i am facing error of 500
root@ip-10-0-1-218:/home/zulip/deployments/current/zerver/views# sudo nano testpro.py
root@ip-10-0-1-218:/home/zulip/deployments/current/zerver/views# sudo nano testpro.py
root@ip-10-0-1-218:/home/zulip/deployments/current/zerver/views# cd
root@ip-10-0-1-218:~# su zulip
zulip@ip-10-0-1-218:/root$
zulip@ip-10-0-1-218:/root$ cd
zulip@ip-10-0-1-218:~$ /home/zulip/deployments/current/scripts/restart-server
2022-03-31 06:37:19,489 restart-server: Restarting zulip-workers:zulip_events
zulip-workers:zulip_events: ERROR (already started)
2022-03-31 06:37:19,907 restart-server: Restarting zulip_deliver_scheduled_emails
zulip_deliver_scheduled_emails: stopped
zulip_deliver_scheduled_emails: started
2022-03-31 06:37:21,564 restart-server: Restarting zulip_deliver_scheduled_messages
zulip_deliver_scheduled_messages: stopped
zulip_deliver_scheduled_messages: started
2022-03-31 06:37:24,135 restart-server: Restarting process-fts-updates
process-fts-updates: stopped
process-fts-updates: started
2022-03-31 06:37:25,879 restart-server: Restarting Tornado process
2022-03-31 06:37:26,295 restart-server: Restarting django server
zulip-django: stopped
zulip-django: started
2022-03-31 06:37:31,381 restart-server: Done!
Zulip restarted successfully!
zulip@ip-10-0-1-218:~$ exit
exit
root@ip-10-0-1-218:~# sudo nano /var/log/zulip/errors.log
root@ip-10-0-1-218:~# supervisorctl status
go-camo                            RUNNING   pid 844, uptime 3 days, 2:11:40
process-fts-updates                RUNNING   pid 204995, uptime 0:36:40
smokescreen                        RUNNING   pid 845, uptime 3 days, 2:11:40
zulip-django                       RUNNING   pid 205006, uptime 0:36:35
zulip-tornado                      RUNNING   pid 861, uptime 3 days, 2:11:40
zulip-workers:zulip_events         STARTING
zulip_deliver_scheduled_emails     STARTING
zulip_deliver_scheduled_messages   RUNNING   pid 210313, uptime 0:00:05
root@ip-10-0-1-218:~#

please help


import my own library

Hi,
I have some js files with functions. I would like to import using build.vendor. How would I do it?
Cheers?

in nuxt.config.js, you can add config in build like:
build:{   vendor:[   '~/plugins/a.js'  ] }

That what I did, but the variable is not available, like
build:{ vendor:[ 'axios' ] }
Inside of my page
mounted() {
            console.log(axios);
        },

Got error
ReferenceError: axios is not defined
Do I still need to import axios in the component?

Do I still need to import axios in the component?

Sure you need:
import axios from '~/plugins/axios'

So what is the benefit to insert in build.vendor? Didn't get it!

to reduce the size of the app bundle
https://nuxtjs.org/api/configuration-build#vendor

Well, it would be the same if I just import axioes normally as usual? Sorry, got confused with this.
Do you know any article that explains it more?

A simplified example:
With build:{ vendor:[ 'axios' ] }
dist/
    nuxt.bundle.hash.js # your app code
    vendor.bundle.hash.js # "axios" bundled in here
    ...other files

Without
dist/
    nuxt.bundle.hash.js # "axios" bundled with app code
    ...other files

The build.vendor option is meant for splitting vendor code to another bundle in order to reduce the size of the app bundle.

Also, it's useful when you deploy new version of your app, vendor.bundle will be the same (if you don't add new libs) and user don't need to download vendor.bundle again. So only small nuxt.bundle will be downloaded.

Now makes sense! Thank you very much everyone!


Check if OpenSea cursor-based API works similarly to offset-based and switch to cursor-based if it works

For the OpenSea API, it looks like the output will be either cursor-based (with previous and next) or offset-based depending on whether offset is provided in the URL.
i.e.:
if curl --header "X-API-KEY: <key>" --request GET -i --url 'https://api.opensea.io/api/v1/assets?owner=0xAF4CCF79104F6e6e326CaB0e96e615973F0A3E3A'
    previous+next
else if curl --header "X-API-KEY: <key>" --request GET -i --url 'https://api.opensea.io/api/v1/assets?owner=0xAF4CCF79104F6e6e326CaB0e96e615973F0A3E3A&offset=0'
    offset

[ ] Create Android issue if verified

closing as we have already using cursor based urls


Enhancements taxes and transfers

To do:

[x] add childcare costs
[x] subtract 35% of of last period wage when calculating ALG I and elterngeld
[x] try using chosen last period hours when calculating ALG I and elterngeld(currently using potential full-time wage, i.e. full-time hours)
[x] change housing to 77,5 as in text

Will be done in #146

Done!


Commit less generated output

I'd like to commit less auto-generated output, since it makes diffs much larger and more confusing.
We currently generate the changelog, shell completion scripts, readme, book, and man pages.

The readme must be present in master to render on GitHub, so that can continue to be committed.

The changelog is tricky to get right, so we can continue to commit that, so committers see in the diff what it's going to look like.

[x] The man pages require the help2man program, so those can only be skipped if the help2man program can be installed on windows.

[x] The completions scripts don't need to be committed, as long as they're still built before running bin/package.

[x] The book dosn't need to be committed, as long as it's built before deploying to github pages.

Done once https://github.com/casey/intermodal/pull/413 lands.


fix(dap): only load mason-nvim-dap when not disabled

What is this PR for?
Only require("mason-nvim-dap") when it's not disabled

Does this PR fix an existing issue?
Fixes #3783

Checklist

[x] I've read the CONTRIBUTING guidelines.

Thanks!


Embedding HTML in the Markdown Browser.

Hi, I've been browsing the internet trying to find an hour for a while now and can't seem too.
Is it possible to embed HTML code within the rendered Markdown?  I have cut down a lot of the content that I am rendering below, but it gives an understanding of what I am trying to achieve.
<script>
var md = window.markdownit({
	html: true,
	linkify: true,
	typographer: true
});
document.getElementById('article_content').innerHTML = md.render('You can see the data in this bar chart:\n\n<canvas id="bc_servers" width="400" height="400"></canvas>');
</script>

There is online demo for experiments https://markdown-it.github.io/
Use http://spec.commonmark.org/ for any formatting details.


different embeddings for same cell when different number of cells embedded

Hello, thank you for your brilliant work and sorry for a lame question:
Is it expected that the embedding for the same cell is different based on what other cells it is being embedded with? If so, I assume it's unviable to embed just one cell?
Example
import scanpy as sc
import os
import numpy as np

adata = sc.read_h5ad('data/10k_pbmcs_proc.h5ad')

#10 cell subset
adata10 = adata[0:10, :]
adata10.write_h5ad('data/10_cells_pbmcs_proc.h5ad')
os.system('python eval_single_anndata.py --adata_path data/10_cells_pbmcs_proc.h5ad')
embedded10 = sc.read_h5ad('10_cells_pbmcs_proc_uce_adata.h5ad')

#20 cell subset
adata20 = adata[0:20, :]
adata20.write_h5ad('data/20_cells_pbmcs_proc.h5ad')
os.system('python eval_single_anndata.py --adata_path data/20_cells_pbmcs_proc.h5ad')
embedded20 = sc.read_h5ad('20_cells_pbmcs_proc_uce_adata.h5ad')

np.correlate(embedded10.obsm['X_uce'][0], embedded20.obsm['X_uce'][0])
array([0.7416747], dtype=float32)

Thanks for the question!
There is some very small amount of variance you should expect because of the random sampling process. Correlation should be very high, much higher than that.
However, what you are observing is unrelated to that: we have a small preprocessing step that just filters very lowly expressed genes and cells with low expression: https://github.com/snap-stanford/UCE/blob/cba0d5904f7dd8fbdbf6243c0e53afcf0a45605c/data_proc/data_utils.py#L206
Adding  --filter=False should disable this, however it seems like there might be some bug with passing that argument somewhere. In the meantime, if you modify your script to do the first 1000 and 2000 cells, this still leads to differences due to filtering but you should get a correlation around 0.97. (If you do this make sure to change the file names otherwise it will just use the existing 10 and 20 cell processed files).

Great to know, I thought I missed a major breakthrough on how datasets are embedded, thank you!👍

just to confirm - I got
>>> np.correlate(embedded10.obsm['X_uce'][0], embedded20.obsm['X_uce'][0])
array([0.946164], dtype=float32)

after disabling the filter.
The reason it does not work is that with type bool, both True and False and any other string that is passed evaluate to True in code.
An easy fix is changing
    parser.add_argument('--filter', type=bool, default=True,
                        help='Additional gene/cell filtering on the anndata.')

to
    parser.add_argument('--filter', default=True, action=argparse.BooleanOptionalAction,
                        help='Additional gene/cell filtering on the anndata.')

which also keeps filtering on by default but also exposes an additional --no-filter option, to turn off if needed.
Same for all type=bool params, and works for Python 3.9 and above.