ECONNREFUSED error

about a second after the bot starts the console gets spammed with this error message
im not sure why this is occuring.
main ran into an error Error: connect ECONNREFUSED <IP_ADDRESS>:2334     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1129:14) {   errno: 'ECONNREFUSED',   code: 'ECONNREFUSED',   syscall: 'connect',   address: '<IP_ADDRESS>',   port: 2334 }

Make sure your lavalink is running in background and check the port properly

Yeah, like @IamGoDsoIamBest make sure you have lavalink running and you gave lavaclient the correct password, hostname, and port.


Optimizer performance of APPROX_TOP_K function

Enhancement
It can be used to calculate top-k from a large dataset quickly, which is expected to be much faster than plain TOP-K.
But actually it's not, and even slower than the GROUP-BY. Calculate top-k from ssb.lineorder:

GROUP-BY: 1.413s
APPROX_TOP_K: 54.462s

MySQL root@127.1:ssb> select lo_orderkey, count(*) from lineorder group by lo_orderkey order by count(*) limit 5;
+-------------+----------+
| lo_orderkey | count(*) |
+-------------+----------+
| 30182       | 4        |
| 25441       | 4        |
| 13888       | 4        |
| 27172       | 4        |
| 1990        | 4        |
+-------------+----------+
5 rows in set
Time: 1.413s
MySQL root@127.1:ssb> select APPROX_TOP_K(lo_orderkey) from lineorder;
+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
| approx_top_k(lo_orderkey)                                                                                |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
| [{"item":5998592,"count":32568},{"item":5988930,"count":32568},{"item":5977440,"count":32568},{"item":5995557,"count":32564},{"item":5991074,"count":32564}] |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set
Time: 54.462s

Hi @murphyatwork,
I'm new to this project and would love guidance on how to start. Could you assign me this issue to get going?
Thank you!

Hi @murphyatwork,
The output of both the queries are different and count of each item is also different.
The table on which both queries ran are same. Yet the result is different.
If the APPROX_TOP_K is just slow,  the results should match right?
Am I misunderstanding something here?

Hi @murphyatwork ,
Your SQL query should be
select lo_orderkey, count(*) from lineorder group by lo_orderkey order by count(*) desc limit 5;
I would love to know the difference in the time taken if you execute this?
Can you please execute and share the results?

Hi @murphyatwork , Your SQL query should be select lo_orderkey, count(*) from lineorder group by lo_orderkey order by count(*) desc limit 5;
I would love to know the difference in the time taken if you execute this? Can you please execute and share the results?

hey dude, thanks for noticing this issue.

The sql: you're correct, it should be order by count(*) desc. but anyway it doesn't affect performance
Different result: yes, the result is totally different even if I correct the above sql. Considering that the APPROX_TOP_K is merely approximate, it's understandable that the result can be a little bit different, but such a result is out of my mind

Why ?

The APPROX_TOP_K is using the space-saving algorithm
The algorithm uses a frequency inheritance assumption, which would replace the least-frequent item with frequency+1. As a result, the estimated frequency can be much larger than the real value, if the dataset has similar frequency. For the ssb.lineorder.lo_orderkey, it's exactly the case
The performance: the algorithm needs to find the least-frequent item in counters each time, currently it's accomplished with a sorted-array, so it needs to be re-sorted after each update. As I know that's why it's super slow

The idea to optimize the performance:

We can use a heap-based sort to optimize the sort performance, no need to do a linear bubbling
The accuracy: we can keep more counters than required to improve the accuracy, with a little bit space waste

And also, if this algorithm(space-saving) is fundamentally inaccurate, we can consider other algorithms. But before that we can focus on the performance optimization to make it practical.
If you want to do some contribution, i would suggest look at the file be/src/exprs/agg/approx_top_k.h

Got it. Thanks for explaining.
I will have a look into the file.

Hi @murphyatwork I would like to proceed with the solution using the approach you suggested. Please find my atttached proposal and assign me the issue.
Proposal: Optimizing Approximate Top-K Algorithm (Space Saving)
Objective:
To improve the performance and accuracy of the approximate top-K algorithm by optimizing the current sorting mechanism and increasing the number of counters tracked. These changes aim to optimize the execution time and improve the approximation accuracy without altering the core behavior of the algorithm.
Changes:
Optimize Sorting with a Heap-Based Approach:
The current _maintain_ordering() function relies on a linear bubble sort to keep the counters sorted by frequency. I propose replacing this with a min-heap data structure, which will allow for more efficient insertion and deletion operations, reducing the time complexity from O(n) to O(log n) when maintaining the top-K counters.
This will improve the performance of updating and managing the counters during the process() method, especially when dealing with large datasets and frequent updates.
Increase Counter Size for Better Accuracy:
Currently, the algorithm uses approximately 2 * K counters, where K is the number of top elements to track. I propose increasing this number to 4 * K counters (or a configurable multiple of K) to improve the accuracy of the approximation. While this introduces a slight memory overhead, it will allow the algorithm to track more frequent elements, reducing the chances of incorrectly replacing important elements in memory-limited situations.
This adjustment will be made within the get_k_and_counter_num() function, keeping the allocation within reasonable limits while boosting accuracy.
Expected Impact:
Performance: The change from a linear sorting algorithm to a heap-based approach should significantly reduce the time complexity when updating counters, especially in high-frequency scenarios, without affecting the core logic.
Accuracy: Increasing the number of counters will allow the algorithm to handle more frequent items, thereby improving the precision of the top-K approximation with minimal memory overhead.
Compatibility: These optimisations will not alter the core functionality of the approximate top-K algorithm. The same input/output behaviour will be maintained, and the existing interface for the algorithm remains unchanged. All serialisation, merging, and update operations should continue to work as expected.
Next Steps:

Implement the heap-based sorting within the _maintain_ordering() function.
Modify the counter allocation logic to allow for a configurable and slightly larger number of counters (i.e., 4 * K counters).
Ensure that these changes do not impact the correctness by running all relevant unit tests and adding additional tests for performance and edge cases if required.

I believe these changes will significantly improve both the speed and accuracy of the approximate top-K algorithm without deviating from its original design principles.
Any feedback and suggestions are welcome before I proceed with the implementation!

Hi @murphyatwork I would like to proceed with the solution using the approach you suggested. Please find my atttached proposal and assign me the issue.
Proposal: Optimizing Approximate Top-K Algorithm (Space Saving)
Objective:
To improve the performance and accuracy of the approximate top-K algorithm by optimizing the current sorting mechanism and increasing the number of counters tracked. These changes aim to optimize the execution time and improve the approximation accuracy without altering the core behavior of the algorithm.
Changes:
Optimize Sorting with a Heap-Based Approach:
The current _maintain_ordering() function relies on a linear bubble sort to keep the counters sorted by frequency. I propose replacing this with a min-heap data structure, which will allow for more efficient insertion and deletion operations, reducing the time complexity from O(n) to O(log n) when maintaining the top-K counters. This will improve the performance of updating and managing the counters during the process() method, especially when dealing with large datasets and frequent updates.
Increase Counter Size for Better Accuracy:
Currently, the algorithm uses approximately 2 * K counters, where K is the number of top elements to track. I propose increasing this number to 4 * K counters (or a configurable multiple of K) to improve the accuracy of the approximation. While this introduces a slight memory overhead, it will allow the algorithm to track more frequent elements, reducing the chances of incorrectly replacing important elements in memory-limited situations.
This adjustment will be made within the get_k_and_counter_num() function, keeping the allocation within reasonable limits while boosting accuracy.
Expected Impact:
Performance: The change from a linear sorting algorithm to a heap-based approach should significantly reduce the time complexity when updating counters, especially in high-frequency scenarios, without affecting the core logic.
Accuracy: Increasing the number of counters will allow the algorithm to handle more frequent items, thereby improving the precision of the top-K approximation with minimal memory overhead.
Compatibility: These optimisations will not alter the core functionality of the approximate top-K algorithm. The same input/output behaviour will be maintained, and the existing interface for the algorithm remains unchanged. All serialisation, merging, and update operations should continue to work as expected.
Next Steps:

Implement the heap-based sorting within the _maintain_ordering() function.
Modify the counter allocation logic to allow for a configurable and slightly larger number of counters (i.e., 4 * K counters).
Ensure that these changes do not impact the correctness by running all relevant unit tests and adding additional tests for performance and edge cases if required.

Any feedback and suggestions are welcome before I proceed with the implementation!

cool! can't wait for it

Hi @murphyatwork
I started working on the proposed solution. However I noticed something -
The current implementation of the space-saving algorithm already employs localised bubbling (and not bubble sort) to maintain the ordering of counters efficiently. This means that when a counter's count is updated (typically incremented by 1), it swaps positions with its immediate neighbours only if necessary. Because the changes in counts are usually small, the counter moves only a few positions, if at all. This localised swapping ensures that the per-update operation is effectively O(1) in most cases.
Key Points:
- Localised Bubbling:
Minimises the number of swaps needed to maintain the sorted order of counters based on counts.
Swapping is limited to immediate neighbours, reducing overhead.
Efficiently handles frequent updates typical in data streams.
Per-Update Operation Complexity:
Average Case: O(1) time complexity due to minimal movement of counters.
Worst Case: O(k) time complexity (where k is the number of counters), but this might never happen by the construct of the algorithm
- Optimisation Status:
The algorithm is already optimised for both time and space complexity within the constraints of the space-saving algorithm.
Further optimisations at the algorithmic level (like replacing localised bubbling with a heap) are unlikely to yield significant performance gains.
Using a heap could introduce additional overhead due to the complexity of maintaining the heap property during frequent count updates.(this is inevitable due to count update nature of space saving)
If you think this is incorrect we can do a quick catchup and we can discuss on this further.
Would love to have a quick chat!

According to my previous profiling, I can still see the bottleneck is counter maintain_ordering
-   44.99%     1.72%  pip_exec_com     starrocks_be          [.] starrocks::AggregateFunctionBatchHelper<starrocks::ApproxTopKState<(starrocks::LogicalType)5>, starrocks::ApproxTopKAggregateFunction<(starrocks::LogicalType)5, int> >::upd▒
   - 43.26% starrocks::AggregateFunctionBatchHelper<starrocks::ApproxTopKState<(starrocks::LogicalType)5>, starrocks::ApproxTopKAggregateFunction<(starrocks::LogicalType)5, int> >::update_batch_single_state                               ▒
      - 35.39% starrocks::ApproxTopKState<(starrocks::LogicalType)5>::_maintain_ordering                                                                                ▒
           7.21% phmap::priv::raw_hash_set<phmap::priv::FlatHashMapPolicy<int, starrocks::ApproxTopKState<(starrocks::LogicalType)5>::Counter*>, starrocks::PhmapDefaultHashFunc<(starrocks::LogicalType)5, (starrocks::PhmapSeed)0>, phmap::▒
      - 6.72% starrocks::ApproxTopKState<(starrocks::LogicalType)5>::process<true>                                                                                ▒
         + 1.61% starrocks::ApproxTopKState<(starrocks::LogicalType)5>::_min_index                                                                                ▒
        0.85% phmap::priv::raw_hash_set<phmap::priv::FlatHashMapPolicy<int, starrocks::ApproxTopKState<(starrocks::LogicalType)5>::Counter*>, starrocks::PhmapDefaultHashFunc<(starrocks::LogicalType)5, (starrocks::PhmapSeed)0>, phmap::Equ▒
   + 1.72% start_thread                                                                                ```

And also I found that the data distribution would affect the efficiency of this algorithm a lot:
```sql
select APPROX_TOP_K(lo_ordtotalprice, 100) from lineorder
Time: 3.904s

select APPROX_TOP_K(lo_quantity, 100) from lineorder
Time: 0.379s

I think your analysis is mostly correct, the algorithm complexity is not a problem in the average case, but it can be in the worst case. That means if all items in the dataset have similar frequency, the counters need to be removed and added very frequently , that can be a bottleneck.
For instance:

we have counters like [{a:1},{b:1},{c:1},{d:1},{e:1}]
process a new item f, find the min counter and increase the counter, then it will be ``[,{b:1},{c:1},{d:1},{e:1},{f:2}]`
3. this process needs to iterate and swap all counters
if a new item come in, it will repeat this process and put it in the back
so basically in this case, processing each item needs to iterate all counters
and also, in this case the frequency is totally incorrect, which is supposed to be 1, but as a result it can be NumItems

I have no quick idea about how to handle this case, looks like we need a new strategy for it.

Hi @murphyatwork
Are we looking to optimize this by writing a new algorithm other than Space Saving or we are going to ignore considering the worst case is less frequent ?

Hi @murphyatwork Are we looking to optimize this by writing a new algorithm other than Space Saving or we are going to ignore considering the worst case is less frequent ?

my understanding is this worse case is basically unacceptable. for instance, last week i want to use this top-n function to calculate the common-value statistics, as current implementation is a regular group-by& order-by. But with some tests I found that the accuracy of this top-n implementation is too bad to use.
And i didn't find anyone(sample from the community) is using this function. so to conclude my idea is to refactor this implementation.

maybe this paper on efficient top k calculation would be useful https://www.vldb.org/pvldb/vol17/p644-siddiqui.pdf


Disable autofocus when first time open a control

Guys, looks like it might be already fixed, but I can't find where...
The issue is when opening on mobile, onload it make a focus on input text and bring the mobile keyboard.
Any way to disable such behavior and open Keyboard only when user clicks on text box?
Thanks
Nick

Greedy focus has been fixed in v4. For v3, please track this issue at https://github.com/Microsoft/BotFramework-WebChat/issues/568


Menu refactoring

I'm going to work on making our left menu more manageable, reduce some sections and lists, reduce white space, etc.
Maybe look at an mini TOC for each page that isn't injected into the menu.
Suggestions welcome.

As @aslakhellesoy has improved the menu structure (even though some pages are still missing - see #80) - can we close this issue?

PR has been merged and questions answered/solved


Script error

Hi there.
I am trying to use your script with Python 2.7.10 on Mac OS X 10.11.1 and I'm getting the following error when selecting my .msg file:
Total count of messages: 16360
[===                 ] processing 2478Traceback (most recent call last):
File "convert.py", line 34, in
body = m.find('Body').text.encode('utf-8')
AttributeError: 'NoneType' object has no attribute 'encode'
Any idea on how to fix this?
Thanks!
David

There's probably something invalid in the .msg file. Can you try to print out a string representation of the m node so that you can take a look at what's wrong with that particular one when it fails?
Thanks

I'm not sure I understand what you mean... I'm a newbie when it comes to
python. Could you explain? Thanks!
On Thu, Nov 12, 2015 at 11:13 AM, Matteo Contrini<EMAIL_ADDRESS>wrote:

There's probably something invalid in the .msg file. Can you try to print
out a string representation
http://stackoverflow.com/questions/15304229/how-can-i-convert-python-elementtree-to-string
of the m node so that you can take a look at what's wrong with that
particular one when it fails?
Thanks
—
Reply to this email directly or view it on GitHub
https://github.com/matteocontrini/sms-wp-to-android/issues/2#issuecomment-156151874
.

Is it a problem to send me the .msg file?
It's a bit difficult to fix the issue without a repro case...

@drojas7 can you pull the latest commit and run the script again? It will still fail, but it will print out the XML node that's causing troubles. And if you can, post it here (or send me an email), removing sensitive information. A child node should be missing...

@matteocontrini Hi. With the last commit I get this "error":
File "convert.py", line 5

SyntaxError: invalid syntax
With last version i got the same error as @drojas7

It seems you're using a wrong .msg file.
It's throwing an error because the parser finds an HTML doctype declaration, which is unexpected.

Something went wrong there last time.  Now I get this:
Total count of messages: 9074
[=                   ] processing 506
truetrue
130892297473104287Mobile operator
Traceback (most recent call last):
File "convert.py", line 38, in
raise e
AttributeError: 'NoneType' object has no attribute 'encode'

I got it to run now, but I get this:
Total count of messages: 9074
[=                   ] processing 506
truetrue
130892297473104287Mobile operator
Traceback (most recent call last):
File "convert.py", line 38, in
raise e
AttributeError: 'NoneType' object has no attribute 'encode'

Can you try after 2e6b32e3015b690e2e656007882a73da9d864076 commit?

Thanks for the quick help. It startet counting now then I got this:
Total count of messages: 9074
[=======             ] processing 3442Traceback (most recent call last):
File "convert.py", line 66, in (module)
body=body
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 3:
ordinal not in range(128)

Try with cd2eab3fa0dfc06f104ce435903defbd95ca0735

Try with cd2eab3fa0dfc06f104ce435903defbd95ca0735

Total count of messages: 9074
[                    ] processing 1Traceback (most recent call last):
File "convert.py", line 66, in [module]
body=body
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal
not in range(128)

I can't reproduce the issue so I'm doing attempts... try after 2654d90968b509811fba2f6bb2f4bf201a4cfb6b

Gave me the same as previous:
Total count of messages: 9074
[=======             ] processing 3442Traceback (most recent call last):
File "convert.py", line 66, in module
body=body
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 3:
ordinal not in range(128)

Can you search in the .msg file if that char \xa0 is actually there? And if you find it, can you look if there's something particular in that message? If you can't identify anything, can you send me (even privately) some text of that text message?
Thank you for the patience

I don't find \xa0 when searching the file with Notepad++

After reading others having trouble with \xa0 in Python scripts, as it is an "hard-space" or something?
Should I try to translate it to a normal space or something maybe?

You should if you can identify it.


Update azure-active-directory.md

Added ODBC requirements to connecting using access token or managed identities

@yitam : Thanks for your contribution! The author, @david-puglielli, has been notified to review your proposed change.

Hi @yitam - Thanks for your contribution. Microsoft authors and contributors need to make content contributions through the private repository so the content can be staged and validated by the current validation rules.
After you review staging and fix all validation issues, you can add the sign-off comment to let PR reviewers know that the updates are ready to be merged.
For more information, see Should I work in a private or a public repo?
Thanks!

Thanks @ktoliver
Are you saying that I should close this PR and resubmit my changes to master instead?

@yitam No. This PR can move forward. In the future, you should open new pull requests in the private repo, sql-docs-pr.

#sign-off

@yitam: I'm sorry - only the author of this article, @david-puglielli, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

#sign-off


bug: The latest version of lualine will be lost when the file is opened

Did you check docs and existing issues?

[X] I have read all the LazyVim docs
[X] I have searched the existing issues of LazyVim
[X] I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)
0.10
Operating system/version
window 11
Describe the bug
Update lazyvim to the latest version, and lualine is lost when opening a new buffer.

When executing the <leader>sna command (or other commands), lualine will appear

Steps To Reproduce

Update to the latest version
Reopen nvim
Open a new buffer, lualine will disappear
Open the notification panel, lualine will appear

Expected Behavior
lualine will always remain in the window and visible
Repro
-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  "folke/LazyVim",
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here

Happens to me as well, neovim 0.9.5 on linux mint.

same here, nvim 0.10 on macos.

I can confirm this happens.
It only happens when you open Neovim without file argument and restore the session from the dashboard for me. If I open with file argument then lualine appears just fine. It seems that the value of laststatus that is being set in the init function doesn't propagate later on when lualine is set up. laststatus when opening without file arguments is set to 0.
There's a PR #3128 that proposes to load lualine on UIEnter instead of VeryLazy and with that PR I don't observe this behavior. laststatus is always correctly set both with opening without and with file arguments.
I don't know what the correct approach should be regarding this, but as a temporary workaround until the maintainer resolves this you could try the following
return {
  {
    "nvim-lualine/lualine.nvim",
       event = function()
       return "UIEnter"
     end,
  },
}

@dpetka2001 your workaround works perfectly for me on nvim0.10, macOS14.3

This seems to be causing the issue: https://github.com/nvimdev/dashboard-nvim/commit/6da86d8b1f07d21b48398231fec6ff6da106f9af

https://github.com/nvimdev/dashboard-nvim/issues/456


System-wide alerts

References
Implements DSpace/dspace-angular#1537
Description
This PR contains the REST changes required for the System Wide Alerts feature to be able to store and retrieve alerts
from the database and expose them in the REST API.
Note: The REST implementation currently contains support for the session management on the database level, but due to issues with the angular session management, the session manangement is currently not implemented.
Instructions for Reviewers
To test the full feature, check the instruction in the angular PR: DSpace/dspace-angular#2025
Checklist

[x] My PR is small in size (e.g. less than 1,000 lines of code, not including comments & integration tests). Exceptions may be made if previously agreed upon.
[x] My PR passes Checkstyle validation based on the Code Style Guide.
[x] My PR includes Javadoc for all new (or modified) public methods and classes. It also includes Javadoc for large or complex private methods.
[x] My PR passes all tests and includes new/updated Unit or Integration Tests based on the Code Testing Guide.
[x] If my PR includes new libraries/dependencies (in any pom.xml), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.
[x] If my PR modifies REST API endpoints, I've opened a separate REST Contract PR related to this change.
[x] If my PR includes new configurations, I've provided basic technical documentation in the PR itself.
[x] If my PR fixes an issue ticket, I've linked them together.

But, I'm assuming the idea is that we may support multiple eventually... so, I'm fine with it.

@tdonohue that was the intent, yes.
Also, @YanaDePauw made the endpoints/ITs with that possiblity in mind so we wouldn't have to change too much down the line.
IMO it should be sufficient if we clarify this in the docs/contract, what do you think?

@ybnd : I'm OK with the database level & dspace-api code supporting multiple alerts.  This would imply that we need to build tests at the dspace-api level (as I noted above maybe a SystemWideAlertTest unit test class) which prove that multiple alerts are possible at the dspace-api code level.  We may want to add a comment to the tests that prove multiple alerts are possible to make it clear that this functionality is NOT yet used by the REST API.
However, at the REST Contract level, since the UI does not support multiple alerts, I'd recommend we keep the behavior which only allows a single alert.  This implies though that the ITs need to prove that only a single alert can be created via the REST API.  It also implies that the "findAll()" functionlity should not be anonymously-accessible.  It either should be Admin-only or unimplemented (to implement later once multiple alerts are fully supported), as I noted above.
So, overall, I think all my above inline comments still stand.  I think the REST API needs to continue to force support for only one alert, but the dspace-api can prove that it supports multiple alerts (for the future).

@tdonohue ok, so we should keep the REST API more in line with how the feature can be used now instead of in the future.
Please note that fully implementing your feedback may take up to 8 hours (on top of ~ 42 hours spent already)

@tdonohue  Right now, the REST API does not allow the creation of more than one alert, so it is in line with the Angular UI. It is only possible to create more than one using the service itself. There is already a test in place that will verify that you cannot create a new alert if one already exists.
Concerning the findAll endpoint, this is currently used to retrieve and display the system wide alert banner for anonymous users   in the UI. If this endpoint is closed off, a different endpoint (eg. a search endpoint) to only retrieve the active ones will need to be created instead.
Therefore, I think the best way forward is to close off the findAll, findOne endpoints to be admin only, create a search endpoint to return only the active ones and hook the angular UI to the new search endpoint instead of the findAll.
The tests for the findAll, findOne can be changed to only contain one alert to be more in line with the currently supported behaviour.
The major changes/todos that i see are the following:

Add Unit tests for the service
Add a builder object for the ITs
Clean up ITs to remove having multiple alerts in the db
Make the findAll and findOne admin only
Create new search endpoint to retrieve the currently active alerts


[Masthead]: AVT (DNS Services): Text contrast of 3.35 with its background is less than the WCAG AA minimum requirements for text of size 14px and weight of 400

Description
Test Tool Type: IBM Equal Access Accessibility Checker
===== DEFECT DESCRIPTION =====
Text contrast of 3.35 with its background is less than the WCAG AA minimum requirements for text of size 14px and weight of 400
=====STEPS TO REPRODUCE =====
Go to DNS Services Doc: https://test.cloud.ibm.com/docs/dns-svcs
Go to 'Team based privacy using IAM, VPC, Transit Gateway and DNS' Section or click below link directly
https://test.cloud.ibm.com/docs/dns-svcs?topic=solution-tutorials-vpc-tg-dns-iam&interface=ui

Component(s) impacted

Browser
Chrome, Safari, Firefox
Carbon for IBM.com version
v1.16.1
Severity
Severity 2 = Aspects of design is broken, and impedes users in a significant way, but there is a way to complete their tasks. Affects major functionality, has a workaround.
Application/website
cloud.ibm.com/docs
Package
@carbon/ibmdotcom-web-components
CodeSandbox example
https://codesandbox.io/s/github/carbon-design-system/carbon-for-ibm-dotcom/tree/main/packages/react/examples/codesandbox/components/Masthead?file=/src/App.js
Steps to reproduce the issue (if applicable)
No response
Release date (if applicable)
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I checked the current issues for duplicate issues

Closing as can't reproduce in the current version.


Push logs to s3

Hi,
Can I work on this?
Could you please provide some reference?

This has a dependency on generating logs first! See https://github.com/swapagarwal/JARVIS-on-Messenger/issues/247 for more context. 😄


chore: bdd-sbhg-1570610949 to 0.0.1

chore: Promote bdd-sbhg-1570610949 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Switching language not working

Sorry if it is not an issue, but the switching language included in base.html not works.

Can you be more specific? Does it display but don't function properly or dors it not display at all?
What are your settings for USE_MODELTRANSLATION and LANGUAGES?

Thanks @Kniyl .
My configuration:
Mezzanine 3.1.10 (from git)
Django 1.8.2
Python 2.7.9
PostgreSQL 9.4.2
Linux 3.19.0-18-generic
Console output (when change between language):
[17/Jun/2015 18:34:53]"GET /about/team/ HTTP/1.1" 200 12041
[17/Jun/2015 18:34:56]"POST /i18n/ HTTP/1.1" 302 0
[17/Jun/2015 18:34:56]"GET /about/team/ HTTP/1.1" 200 12041
My settings:
USE_MODELTRANSLATION = True
LANGUAGE_CODE = "es"
LANGUAGES = (
('es', _('Spanish')),
('en', _('English')),
)
INSTALLED_APPS = (
"modeltranslation",
"django.contrib.admin",
The project was created from the scratch using mezzanine-project.

First, as long as you set USE_MODELTRANSLATION to True, there is no need to add "modeltranslation" to INSTALLED_APPS.
Looking to your requests, django's select language url seems to work. Can you open the source of the page before and after using the language dropdown and check that the  tag has consistent values with the actions you are performing.
If this value is changing but not the content, it means that the page you are looking at does not use the {% trans %} template tag nor translation fields properly.
If this value is not changing it is more likely a bug. Just to be sure, then, when you state using Mezzanine 3.1.10 (from git), does it means you are retrieving the 3.1.10 tag from git or are you using the latest version from master?

Oh, and make sure that the localeMiddleware is activated, this might be the thing preventing {% trans %} from working correctly.

The problem was that I am declaring the modeltranslation in both: INSTALLED_APPS and USE_MODELTRANSLATION.
When I remove the module from INSTALLED_APPS the app works.
I was following an old README, I see that are a new one: https://github.com/stephenmcd/mezzanine/blob/master/docs/multi-lingual-sites.rst
Thank you so much!


fix: remove nginx proxy router, fixes #5940

The Issue

#5940

Remove the deprecated nginx proxy router
Manual Testing Instructions
Try setting router to nginx-proxy router
Make sure ordinary things work

We shouldn't have containers/ddev-nginx-proxy-router, right?

I was reluctant to just remove it right away. Do you disagree? It would be reasonable either way. It's obviously there in the source code.

I was reluctant to just remove it right away. Do you disagree? It would be reasonable either way. It's obviously there in the source code.

I'm okay with it, just asked if this was intentional to leave it there.


Fix #15: Enable OpenTelemetry

Fix #15: Enable OpenTelemetry

I followed the Temporal examples and docs basically we have to add Interceptors to WorkerClient and WorkerFactory.
Then we need to use th OpenTelementry Shim to forward OpenTracing to OpenTelemetry but luckly i was able to grab an instance of OpenTelemetry from the Quarkus Extension using CDI.
OpenTelemetry openTelemetry = CDI.current().select(OpenTelemetry.class).get();

I am wondering if we should not use the capabilities registry to check if otel is present instead of forcing the dependency in the project

Great idea let me try that.  I was going to ask how to do "optional" dependency but this looks like the correct way.  Will update PR.

OK updated to check OpenTelemetry capabilties similar to how the Agroal extension does it.
This allowed me to set the dependency as <optional>true</optional>

looks awesome ! I am just wondering, are the other extensions exposing a switch for otel, or should we enable it de-facto if the extension is present ?

looks awesome ! I am just wondering, are the other extensions exposing a switch for otel, or should we enable it de-facto if the extension is present ?

Yes maybe it should just detect the existsence of OpenTelemetry and automatically use it. let me switch to that.

OK removed enable-telemetry setting and now just detect the existence of OpenTelemetry to activate it.


So does it invert brightness or only hue?

Your lib looks nice, but actually I am still not sure whether it inverts in the way I need it.
So here is the back story: In short, I need it for my add-on, which wants to get the best contrasting color for a given color, as it can otherwise not be scanned by QR code scanners.
As such the first implementation turned out to have a little issue being that it inverts the brightness, too.
I am still not really convinced whether this is good for my aim or not, but well...
Seeing this only inverting the hue seems to be a little more complicated, so I stumbled upon your lib (here of course).
So back to my questions:

So this is inverting only the hue, is not it?
Maybe, you may add the feature to also invert the brightness, too? Or is there no actual use case for that?
And may I be better off with using this lib and only the hue?

Generally my problem/use case of course would need a very clever way to get the "best" contrast somehow. If you have any tips/ideas, feel free to comment.

Also saw this, but this also does what you do with the bw option, as it seems. Just convert it to black or white only, which may not really be the best aesthetic color to suggest for a user.

Oh, no, you actually do the same as we: Also invert brightness, as it seems.
So maybe you can add a feature to only invert hue?

Hi. This lib only inverts the hue as Adobe Photoshop does with its "invert" feature. There is a black/white option which checks if the luminance is over or below a threshold and returns a pre-defined dark or light color (by default black & white).
This is to be used for general cases targeted mainly for the human eye.
For your use case (with QR scanners), I can only suggest to bump up either levels, curves or contrast so that it can distinguish the shapes better. Maybe convert to black/white or grayscale before you do so. AFAIK, QR scanners don't care for the colors.

Well… my use case is:

provide a visually pleasing QR code display for the human user
provide a working QR code for the "machine"

As such, i cannot just convert it to b/w. :smile:

Fair enough. Closing this since it's not an issue with the lib. Thanks.


chore: remove etcdctl

This PR: https://github.com/apache/apisix/pull/10015 removes the usage of etcdctl from APISIX due to this it's unnecessary to package etcdctl into apisix-base.

closing this as this will lead to a breaking change. https://github.com/apache/apisix-docker/pull/505 is more favourable.


Feature Request: improved Collection reordering

Clicking on Collection item is sometimes considered as drag'n'drop. This is quite unusual as I don't get such behavior in any other software.
Can you please add some "dead zone" so drag'n'drop for less than 5 pixel or something will be considered as a click?

The sorting/dropping behavior has been updated in v1.0.4

Verified that this is working much better now. Thanks!

Agreed, the issue is gone.
Closing the issue.


odd / even with virtualization

At the moment UI-Grid is implementing odd / even row colors in the css with the following rule :
.ui-grid-row:nth-child(even) .ui-grid-cell {
background-color: #f3f3f3;
}
The issue though is that with the row virtualization, if a single row is hidden, all the divs will flip color.
Maybe we could have something like rowClass (as opposed to cellClass) to apply a rule on every odd row ?

Is this not the expected behavior? Is it the DATA that's styled or the GRID ROW CONTAINERS that are styled? If it's the just the data shifting over a constant background then if I hid a row I'd expect the lower rows to shift up and fill in the missing row, which would look like the colors "changing".

The main issue is that the odd / even is being done in CSS and not in the code.
In our example we have 5 very high rows visible on screen. When scrolling down the page UI-Grid will hide the unseen divs and then remove them, meaning that a div that was an an 'even' row can become 'odd'; meaning that the css doing the odd/even zebra'ing will cause all the lines to switch color.

@cookednoodles: I think you're saying that just scrolling can toggle the colouring, not hiding rows?  Is that correct?
I agree with @c0bra that hiding a row should change the colour of the rows below.  I'm ambivalent on whether scrolling should change the colours - they're really just a visual break between rows rather than meaning something, conversely if you're trying to keep track of a particular row whilst scrolling it would be hard if it changes colour - you'll lose it.

With the RC21, I'm experiencing a similar issue.
I'm able to fix it with a custom row template in the grid options, like this :
rowTemplate: '
' +
            '

' +
        '
',

and, in the scope :
$scope.rowColor = function(row) {
    var idx = $scope.datas.indexOf(row.entity);
    return idx % 2 === 0 ? 'is-even' : 'is-odd';
};

after that you can apply css to make the background color switching correctly during scroll :
.ui-grid-row .is-odd .ui-grid-cell { background-color: #fff; }
.ui-grid-row .is-even .ui-grid-cell { background-color: #ccc; }

of course this will not work if you hide rows programatically...
I hope that will be helpful !

I'm affected by this issue as well. Unfortunately, while @kaelhem's solution solves this problem, it degrades performance quite a bit. Since my grid has a lot of other bindings it's not going to be sufficient. If anyone has found another workaround for this, I'd love to know what you did! Thanks.


SIGSEGV while stopping profiler, jvm corretto, async-profiler 2.7

Hi,
we had several JVMs crashes with async-profiler 2.7 in continuous mode. There are two types of stack traces:

with  Method::checked_resolve_jmethod_id on the top of the stack trace

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f76900e295e, pid=17791, tid=19889
#
# JRE version: OpenJDK Runtime Environment Corretto-<IP_ADDRESS>.1 (11.0.11+9) (build 11.0.11+9-LTS)
# Java VM: OpenJDK 64-Bit Server VM Corretto-<IP_ADDRESS>.1 (11.0.11+9-LTS, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0xbd995e]  Method::checked_resolve_jmethod_id(_jmethodID*)+0xe
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   https://github.com/corretto/corretto-11/issues/
#

---------------  T H R E A D  ---------------

Current thread (0x00007f768b8056c0):  JavaThread "cont-prof-1" [_thread_in_vm, id=19889, stack(0x00007f76171d4000,0x00007f76172d5000)]

Stack: [0x00007f76171d4000,0x00007f76172d5000],  sp=0x00007f76172d2ea0,  free space=1019k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0xbd995e]  Method::checked_resolve_jmethod_id(_jmethodID*)+0xe
V  [libjvm.so+0x9eada8]  jvmti_GetMethodDeclaringClass+0x1d8
C  [libasyncProfiler.so+0x26262]  Recording::writeStackTraces(Buffer*, Lookup*)+0x4a2
C  [libasyncProfiler.so+0x2f321]  Recording::writeCpool(Buffer*)+0x3f1
C  [libasyncProfiler.so+0x2f86c]  Recording::finishChunk()+0x3ac
C  [libasyncProfiler.so+0x2faef]  Recording::~Recording()+0xf
C  [libasyncProfiler.so+0x2fc23]  FlightRecorder::stop()+0x83
C  [libasyncProfiler.so+0x2fd11]  Profiler::stop()+0xd1
C  [libasyncProfiler.so+0x346dc]  Profiler::runInternal(Arguments&, std::ostream&)+0x86c
C  [libasyncProfiler.so+0x34cbf]  Java_one_profiler_AsyncProfiler_execute0+0x2df
J 16991  one.profiler.AsyncProfiler.execute0(Ljava/lang/String;)Ljava/lang/String; (0 bytes) @ 0x00007f767036a27f [0x00007f767036a1c0+0x00000000000000bf]
J 17455 c1 com.github.krzysztofslusarski.asyncprofiler.ContinuousAsyncProfilerRunner.run()V (237 bytes) @ 0x00007f766a11d8e4 [0x00007f766a11d280+0x0000000000000664]
J 14616 c2 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run()V<EMAIL_ADDRESS>(57 bytes) @ 0x00007f76700cbdec [0x00007f76700cbcc0+0x000000000000012c]
J 17555% c2 java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V<EMAIL_ADDRESS>(187 bytes) @ 0x00007f767045d074 [0x00007f767045ce00+0x0000000000000274]
j  java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5<EMAIL_ADDRESS>j  java.lang.Thread.run()V+11<EMAIL_ADDRESS>v  ~StubRoutines::call_stub
V  [libjvm.so+0x8c4db9]  JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x3b9
V  [libjvm.so+0x8c2d5d]  JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, Thread*)+0x1ed
V  [libjvm.so+0x96ecdc]  thread_entry(JavaThread*, Thread*)+0x6c
V  [libjvm.so+0xec817f]  JavaThread::run()+0x30f
V  [libjvm.so+0xec486f]  Thread::call_run()+0x14f
V  [libjvm.so+0xc6325e]  thread_native_entry(Thread*)+0xee

with Recording::writeStackTraces on the top of the stack trace

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f1ebc2daff9, pid=1144, tid=2349
#
# JRE version: OpenJDK Runtime Environment Corretto-<IP_ADDRESS>.1 (11.0.11+9) (build 11.0.11+9-LTS)
# Java VM: OpenJDK 64-Bit Server VM Corretto-<IP_ADDRESS>.1 (11.0.11+9-LTS, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C  [libasyncProfiler.so+0x25ff9]  Recording::writeStackTraces(Buffer*, Lookup*)+0x239
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
#   https://github.com/corretto/corretto-11/issues/
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  T H R E A D  ---------------

Current thread (0x00007f1f338dd210):  JavaThread "cont-prof-1" [_thread_in_native, id=2349, stack(0x00007f1eb71f6000,0x00007f1eb72f7000)]

Stack: [0x00007f1eb71f6000,0x00007f1eb72f7000],  sp=0x00007f1eb72f4f00,  free space=1019k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libasyncProfiler.so+0x25ff9]  Recording::writeStackTraces(Buffer*, Lookup*)+0x239
C  [libasyncProfiler.so+0x2f321]  Recording::writeCpool(Buffer*)+0x3f1
C  [libasyncProfiler.so+0x2f86c]  Recording::finishChunk()+0x3ac
C  [libasyncProfiler.so+0x2faef]  Recording::~Recording()+0xf
C  [libasyncProfiler.so+0x2fc23]  FlightRecorder::stop()+0x83
C  [libasyncProfiler.so+0x2fd11]  Profiler::stop()+0xd1
C  [libasyncProfiler.so+0x346dc]  Profiler::runInternal(Arguments&, std::ostream&)+0x86c
C  [libasyncProfiler.so+0x34cbf]  Java_one_profiler_AsyncProfiler_execute0+0x2df
J 20867  one.profiler.AsyncProfiler.execute0(Ljava/lang/String;)Ljava/lang/String; (0 bytes) @ 0x00007f1f187f797f [0x00007f1f187f78c0+0x00000000000000bf]
J 23220 c1 com.github.krzysztofslusarski.asyncprofiler.ContinuousAsyncProfilerRunner.run()V (237 bytes) @ 0x00007f1f107c2064 [0x00007f1f107c1a00+0x0000000000000664]
J 14467 c2 java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run()V<EMAIL_ADDRESS>(57 bytes) @ 0x00007f1f18131c6c [0x00007f1f18131b40+0x000000000000012c]
j  java.util.concurrent.ThreadPoolExecutor.runWorker(Ljava/util/concurrent/ThreadPoolExecutor$Worker;)V+92<EMAIL_ADDRESS>j  java.util.concurrent.ThreadPoolExecutor$Worker.run()V+5<EMAIL_ADDRESS>j  java.lang.Thread.run()V+11<EMAIL_ADDRESS>v  ~StubRoutines::call_stub
V  [libjvm.so+0x8c4db9]  JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x3b9
V  [libjvm.so+0x8c2d5d]  JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, Thread*)+0x1ed
V  [libjvm.so+0x96ecdc]  thread_entry(JavaThread*, Thread*)+0x6c
V  [libjvm.so+0xec817f]  JavaThread::run()+0x30f
V  [libjvm.so+0xec486f]  Thread::call_run()+0x14f
V  [libjvm.so+0xc6325e]  thread_native_entry(Thread*)+0xee

Async profiler was running with an option safemode=16
./profiler.sh -v
Async-profiler 2.7 built on Feb 14 2022

Sorry, I'v missed #523 submited by @krzysztofslusarski. This is the same system, but now I take care of it. We are tring migrate from 1.8.x to 2.x and we cant find a stable version. Crash happend during normal work. Here are logs (obfuscated a litle bit):

hs_err_pid17791-checked_resolve_jmethod_id.log
hs_err_pid1144-writeStackTraces.log

Thank you for the logs - I'll investigate them deeper. The reason is not obvious from the first glance.
What are the profiler arguments used in start command?

Profiler is started by:
AsyncProfiler asyncProfiler = one.profiler.AsyncProfiler.getInstance("/path/to/libasyncProfiler.so")
asyncProfiler.execute("start,jfr,safemode=16,event=wall,file=/path/to/file.jfr")

I think I found the bug. It should be fixed now.


Release 1.2.0

Coverage decreased (-3.2%) to 91.429% when pulling 48f6fb514333e33bd09d1fa23f56c73720361a03 on release-1.2.0 into 699be1c015c0e0786266b478d1fc65fef6ab88de on master.


Missing CodeIgniter under Frameworks category?

CodeIgniter Web Framework
https://codeigniter.com

Duplicate of https://github.com/ziadoz/awesome-php/pull/907


No Tesla Login

Running Homey v2 on <IP_ADDRESS>7, and app 1.0.5. It wont add any device because i am not loggin into my Teslaaccount in the app settings, but under appsettings i dont have any available settings for the TeslaApp

In the new app, now in beta, you need to follow the pairing procedure on the device screen.


Two or more email addresses!

Hi!
I have a question.
If I have some emails on the which sent tickets.
There are difficulties with the addition?

I don't quite understand your question, sorry. can you please clarify?

I believe TS means two or more emails assigned to a user-account.


Riot not working macOS Catalina v 10.15.1

Riot not working macOS Catalina v 10.15.1
I downloaded the latest version, installed it, and opened it and nothing happens.

This repository is for the Riot iOS client. If you are trying to use Riot Desktop on your Mac then you should file an issue here: https://github.com/vector-im/riot-web/


Merge/release/3.1 to master

Opening in favor of https://github.com/aspnet/AspNetCore/pull/14779, where the git history had become muddled.
This PR merges commits made on release/3.1 by the following committers:
@dougbu
@JamesNK
@wtgodbe
@dotnet-maestro[bot]
@pranavkm
@mkArtakMSFT
@Pilchie

@wtgodbe please ping when this is building and ready to review.

/home/vsts/work/1/s/eng/AfterSolutionBuild.targets(14,5): error MSB4018: The "RepoTasks.RemoveSharedFrameworkDependencies" task failed unexpectedly. [/home/vsts/work/1/s/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.19510.3/tools/AfterSolutionBuild.proj]
/home/vsts/work/1/s/eng/AfterSolutionBuild.targets(14,5): error MSB4018: System.IO.FileLoadException: Could not load file or assembly 'NuGet.Packaging, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Could not find or load a specific file. (0x80131621) [/home/vsts/work/1/s/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.19510.3/tools/AfterSolutionBuild.proj]
/home/vsts/work/1/s/eng/AfterSolutionBuild.targets(14,5): error MSB4018: File name: 'NuGet.Packaging, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35' [/home/vsts/work/1/s/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.19510.3/tools/AfterSolutionBuild.proj]
/home/vsts/work/1/s/eng/AfterSolutionBuild.targets(14,5): error MSB4018:    at RepoTasks.RemoveSharedFrameworkDependencies.Execute() [/home/vsts/work/1/s/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.19510.3/tools/AfterSolutionBuild.proj]
/home/vsts/work/1/s/eng/AfterSolutionBuild.targets(14,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/home/vsts/work/1/s/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.19510.3/tools/AfterSolutionBuild.proj]
/home/vsts/work/1/s/eng/AfterSolutionBuild.targets(14,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/home/vsts/work/1/s/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.19510.3/tools/AfterSolutionBuild.proj]
/home/vsts/work/1/s/eng/AfterSolutionBuild.targets(14,5): error MSB4018:  [/home/vsts/work/1/s/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.19510.3/tools/AfterSolutionBuild.proj]
/home/vsts/work/1/s/eng/AfterSolutionBuild.targets(14,5): error MSB4018:  [/home/vsts/work/1/s/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.19510.3/tools/AfterSolutionBuild.proj]

Will fix when I can

Looks like the test issue hasn't changed:
/home/vsts/work/1/s/eng/AfterSolutionBuild.targets(14,5): error MSB4018: The "RepoTasks.RemoveSharedFrameworkDependencies" task failed unexpectedly. [/home/vsts/work/1/s/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.19510.3/tools/AfterSolutionBuild.proj]
/home/vsts/work/1/s/eng/AfterSolutionBuild.targets(14,5): error MSB4018: System.IO.FileLoadException: Could not load file or assembly 'NuGet.Packaging, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Could not find or load a specific file. (0x80131621) [/home/vsts/work/1/s/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.19510.3/tools/AfterSolutionBuild.proj]
/home/vsts/work/1/s/eng/AfterSolutionBuild.targets(14,5): error MSB4018: File name: 'NuGet.Packaging, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35' [/home/vsts/work/1/s/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.19510.3/tools/AfterSolutionBuild.proj]
/home/vsts/work/1/s/eng/AfterSolutionBuild.targets(14,5): error MSB4018:    at RepoTasks.RemoveSharedFrameworkDependencies.Execute() [/home/vsts/work/1/s/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.19510.3/tools/AfterSolutionBuild.proj]
/home/vsts/work/1/s/eng/AfterSolutionBuild.targets(14,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [/home/vsts/work/1/s/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.19510.3/tools/AfterSolutionBuild.proj]
/home/vsts/work/1/s/eng/AfterSolutionBuild.targets(14,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) [/home/vsts/work/1/s/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.19510.3/tools/AfterSolutionBuild.proj]
/home/vsts/work/1/s/eng/AfterSolutionBuild.targets(14,5): error MSB4018:  [/home/vsts/work/1/s/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.19510.3/tools/AfterSolutionBuild.proj]
/home/vsts/work/1/s/eng/AfterSolutionBuild.targets(14,5): error MSB4018:  [/home/vsts/work/1/s/.packages/microsoft.dotnet.arcade.sdk/1.0.0-beta.19510.3/tools/AfterSolutionBuild.proj]
##[error]eng/AfterSolutionBuild.targets(14,5): error MSB4018: The "RepoTasks.RemoveSharedFrameworkDependencies" task failed unexpectedly.
System.IO.FileLoadException: Could not load file or assembly 'NuGet.Packaging, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Could not find or load a specific file. (0x80131621)
File name: 'NuGet.Packaging, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
   at RepoTasks.RemoveSharedFrameworkDependencies.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)

@mmitche @riarenas @tmat @JohnTortugo does the above error look familiar to any of you? It appears the latest 3.0 Arcade SDK isn't getting along well with a repo task we have at https://github.com/aspnet/AspNetCore/blob/master/eng/tools/RepoTasks/RemoveSharedFrameworkDependencies.cs (hitting different issues that seem Arcade-related in #15192, where we're upgrading to the latest Arcade SDK).

For the AfterSolutionBuild.targets failure to load NuGet.Packaging, I suspect something broke with the NuGet.Build.Tasks update (to 5.3.0) we did in 'release/3.1' but am not sure why the Linux-specific problem didn't show up there. Nothing evident in https://github.com/NuGet/docs.microsoft.com-nuget/blob/master/docs/release-notes/NuGet-5.3.md either.
@rrelyea are we now doing something wrong in https://github.com/aspnet/AspNetCore/blob/master/eng/tools/RepoTasks/RemoveSharedFrameworkDependencies.cs ? Other than the target framework, our RepoTasks project is unchanged between 'release/3.1' and 'master'.

Doesn't look familiar to me.

@zivkan - can you please engage on the question above that @dougbu asked me.

@dougbu I don't think any of the NuGet APIs changed, but the failures are saying:

System.IO.FileLoadException: Could not load file or assembly 'NuGet.Packaging, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Could not find or load a specific file.

so it sounds like an assembly versioning issue. I see in the PR that the version of NuGet was updated to 5.3.0 in eng/tools/RepoTasks/RepoTasks.csproj. Are you able to check the test's output directory, or deps file, to see what version of NuGet assemblies it's using at runtime? It sounds like it's using a different version at runtime than what was compiled against.

I'll look more but can't understand how a ref / impl difference would show up only on Linux. There's no GAC there to mess things up. But, I'll test more and fire up a Linux VM…

The PR is merged, but a quick update to understand why the PR was failing: the version of NuGet's binaries in the SDK was older than the one RepoTasks was referencing. Changing it to an older version unblocked this: https://github.com/aspnet/AspNetCore/pull/15084/commits/a3349381d345d256ebe4edc3f8122a7201ff2c98


Import definitions bug

WHAT is this pull request doing?
Avoids raising an error for tag inputs that are not of type String, which allows users to input tags as an array. Instead it only does the string conversion and truncates abundant json characters. This allows some leeway for how users input the tags value.
HOW can this pull request be tested?
Try and upload a definitions file with this input
{
  "users": [
    {
      "hashing_algorithm": "rabbit_password_hashing_sha256",
      "limits": {},
      "name": "u1",
      "password_hash": "AxrffQakJjL/8iKHmIBrFoceAKj9R6sRrKDq+LmCa/0GN+mH",
      "tags": "administrator,testing"
    },
    {
      "hashing_algorithm": "rabbit_password_hashing_sha256",
      "limits": {},
      "name": "u2",
      "password_hash": "AxrffQakJjL/8iKHmIBrFoceAKj9R6sRrKDq+LmCa/0GN+mH",
      "tags": ["administrator,testing"]
    },
    {
      "hashing_algorithm": "rabbit_password_hashing_sha256",
      "limits": {},
      "name": "u3",
      "password_hash": "AxrffQakJjL/8iKHmIBrFoceAKj9R6sRrKDq+LmCa/0GN+mH",
      "tags": "[administrator,monitoring]"
    }
  ]
}

What about ["a", "b"]

Added a more structured definitions file for testing


Moodle Plugin opencast - Video record with Opencast Studio will send back in moodle as invisible for users - that changed

When you record an video with Open Studio by click "Record Video" in the opencast block plugin in moodle, it will be send back as invisible for the users in moodle. That changed with an update. We don´t know which one, a user told us this days. Now it´s necessary to click on visibility for each single video to alter visibility.
To Reproduce
Steps to reproduce the behavior:

in Moodle Block "Opencast Videos" click on "Record Video"
in Opencast Studio record any video
after recording set a title and a presenter, then click on "Upload to Opencast"
go back to moodle to the Moodle Block "Opencast Videos" and click "Go to overview..."
when video proccessing ended the visibility of the new video is invisible

Environment Information

OS: Ubuntu 18.04.5, Java <IP_ADDRESS>, MariaDB 10.1.47
Opencast 8.10 AllInOne installation
Opencast 9.7 Debian packages from repo
Moodle 3.10.1
Moodle Plugins:
Opencast Videos [block_opencast] | v3.11-r1
Opencast [filter_opencast] |<PHONE_NUMBER>
Opencast API [tool_opencast] | v3.9-r1
Opencast Videos [repository_opencast] |<PHONE_NUMBER>

Studio hasn't changed in a while.
The last change that comes to mind is the configuration change between Opencast 8 and 9:
git diff r/8.x..r/9.x -- etc/ui-config/mh_default_org/studio/
diff --git a/etc/ui-config/mh_default_org/studio/settings.json b/etc/ui-config/mh_default_org/studio/settings.json
deleted file mode 100644
index 71cf595d92..0000000000
--- a/etc/ui-config/mh_default_org/studio/settings.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
-  "opencast": {
-    "serverUrl": "/",
-    "loginProvided": true
-  },
-  "upload": {
-    "workflowId": "studio-upload"
-  }
-}
diff --git a/etc/ui-config/mh_default_org/studio/settings.toml b/etc/ui-config/mh_default_org/studio/settings.toml
new file mode 100644
index<PHONE_NUMBER>..fd9a6178e7
--- /dev/null
+++ b/etc/ui-config/mh_default_org/studio/settings.toml
@@ -0,0 +1,9 @@
+# See https://github.com/elan-ev/opencast-studio/blob/master/CONFIGURATION.md
+# for more information on possible configuration values.
+
+[opencast]
+serverUrl = "/"
+loginProvided = true
+
+[upload]
+workflowId = "studio-upload"

Did you maybe not update your configuration?

The new file /etc/ui-config/mh_default_org/studio/settings.toml is present. But also the old file (settings.json) is present too. But can this be the reason for the invisibility?
There was an update for the Opencast Videos moodle plugin in may 2021 that we installed and now i see there is a new one from june 2021 (v3.11-r2). Can the reason found there? In the the release notes i didn´t find any hint on this point.

It could be the reason because you can specify an access control list template in the Studio configuration. If you did before (in the JSON file) but never moved that configuration to the new toml file, that could be exactly the behavior.

Closing for lack of feedback. Feel free to re-open if the issue persist.


feat(core-library): do not create pr when a pr already exists for a ref

When there is an existing pr for the same reference, do not create a pr.
If any edits have been made to the reference, the GitHub UI will automatically display them.
Closes #17

So this handles the case when essentially there is an existing branch. Is this not the same case as the force option?

Correct. Basically if there is an existing PR for the branch, do not create a new PR, re-use the old one. GitHub PRs just point to a reference head which are applied on-top of some reference head, typically master.


Update md2po pre-commit hook

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
378

Relevant Lines:
378

💛  - Coveralls


Selected Row Count

Description
Hi,
After the last dbeaver update (Version <IP_ADDRESS>212131935), I can’t see the selected row count in the result panel. Is there any option for bringing it back?

DBeaver Version
Version <IP_ADDRESS>212131935
Operating System
windows 10
Database and driver
No response
Steps to reproduce
No response
Additional context
No response

Hello @Maglorx,
These options were hidden by default.
You can re-enable them here:


Add statuses search endpoint

What type of PR is this?

What this PR does / why we need it:
api change for baton-jira
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Additional documentation e.g., usage docs, etc.:

It's better than what was there before so I'm approving it. It'd be nice to address the query string stuff though.
@ggreer done https://github.com/ConductorOne/go-jira/pull/5/commits/a143522adf10205d1bcc39ead51846a4f4ba74b4


Create documentation and publish it in readthedocs

#344a8f4209a3d5128a202e1ee4b257cb65dd2270

#344a8f4

https://github.com/StemVibrations/STEM/commit/0a287f89f3b0bacca6e74ee3106b063f608b88ef
https://github.com/StemVibrations/STEM/commit/8bf3862d94920302cc63f3c2d90d4bdeb5409ce4
https://github.com/StemVibrations/STEM/commit/2eecab1b6aac759138f12c1d6500174f3741aa91


list

--list should not need to specific a channel argument

fixed in the latest release, --list now displays all channels/groups/ims for each configured team


Unittest package can be deleted in Windows checkout

Now that the windows build has been moved to the "out" directory, I think we have some scripts, like clobber, that delete the whole "out" directory, and follow windows symbolic links in the out/[build]/packages directory to delete the lib directories of the packages in their original location.
The unittest package is different from the others, in that it is not a git checkout, but an untarred download from cloud storage.  So it does not detect that it has changed, since its checked out hash still agrees with the hash of the tar file it downloaded.
So future runs in this checkout are missing the unittest package.
To fix this problem once it occurs, we can remove the tar file third_party/pkg/unittest.tar.gz, so it is re-downloaded and extracted.  The problem can be avoided by finding the code that removes "out", and
ensuring it does not follow links on windows, or by removing the whole "packages" directory, replacing it with a .packages file.  This is a high priority, so this is what we will rely on to fix the problem.
@johnmccutchan

@fsc8000 FYI

This problem should have been fixed, by replacing the package root with the .packages file.  There are no longer any symbolic links to the third_party/pkg/unittest directory, so no way to delete it by accident.
The error will still occur if someone deletes the unittest directory, or files within it, but that should be a very rare occurence.


Remove dispatch_once from +load

+load is only called once, when its containing image is loaded.

Thanks for submitting! @a2 can you help me understand what this PR is for though? It seems like in #10 @Kemcake proved that using +load works with subclasses and the custom selection events.

+load is only ever called once, so the extra precaution is unnecessary.

@a2 ah, I see! Good stuff, thanks for this :)


Title Widget/Setting request

a widget or setting that controls titles for you:
If you enter an area in elona it auto sets titles to lightbringer (just explorable)
or if u enter an asura/norn/ebon it sets to the right title (just explorable)
and if ur back to town it auto sets the title to whatever you like (maybe in a tier list)
Tier1 : title xy (and if you dont have it on that char it switches to tier2)
Tier2 : title xy (if false then tier3 etc)
would be cool since i think many ppl dont use the bonus they would get by the title or often forget to change it back for doa after vq or dungeon

There is a hotkey that sets the most relevant (for gameplay) title. At the moment we don't have plans to add a UI to set one or more custom ones.


search results overlay not working

swiftype is supposed to be providing an overlay with the results when you hit "enter" in the search widget, but it never shows up. This seems likely to be related to some of our other css overrides.
@alexwolfe could you investigate?

@naomiblack so apparently this bug is caused by a conflict of some sort between angular and swyftype, I've confirmed this on my local env. I'll continued to dig in and let you know when I have a fix. Installed 2.0 and have it working locally as well.

Ok, closing this one. Reopen if you feel like we haven't addressed it.


Infinite loop if HttpRequest.getSession(false) called during HttpSessionListener::sessionCreated()

public class MySessionListener implements HttpSessionListener {

    @Override
    public void sessionCreated(HttpSessionEvent se) {
        ((ServletRequestAttributes) RequestContextHolder
                        .getRequestAttributes()).getRequest().getSession(false);
    }

This causes infinite loop since getSession(false) tries to create a new session instead of directly returning null.

This project has been archived. Please see the README.md for more detail on alternative projects.


Are searchable and Arabicable concerns respected in both concepts?

Currently we have both Arabicable and Searchable (Scout) applied to both concepts, as I remember, but is it necessary? And if it is, do the concept methods (removeCommons and getPlurals) respect them?

Dropped the idea of Scout searchable for a full-text-search for a valid reason that I don't remember now. #48


Unable to undo the highlight in scripture pane

Steps to replicate:

Select a Greek text from the Scripture pane, copy and paste in the OriginalQuote. This made the greek text highlight(yellow) in the scripture pane.
Remove the text from the OriginalQuote, the highlight in the scripture pane would not go away.
Save the file. The Highlight from step 1 persists even after the OriginalQuote is deleted.

@elsylambert tested in v0.9.0-beta.13

Beta-13. When the greek text is pasted in OriginalQuote section, it is now removing the Previous Greek highlight in the verse.

copy and paste one non-highlighted greek word in the OriginalQuote section.
Hit enter, Note that the previously highlighted greek words are no longer highlighted.

DoD: The previous highlight does not get reset in the scenario above.

@elsylambert , I am testing this one and it seems like the expected behavior is to unhighlight the words in the scripture pane because the highlighted words are based on whats in the original quote section not based on what the scripture pane shows.

Verified in Beta-14. Both the cases as reported for highlighting are fixed.

able to undo the highlight when the greek word is removed from OriginalQuote.
Previous highlights are retained. The OriginalQuote should be legit and should match the Greek in the Parallel Scripture viewer. This works as expected.


Fix failing tests

The reason test coverage is so low is that there appear to be problems on the simulator end when running tests in _ffft_test.py and _low_depth_trotter_simulation_test.py. We should "unskip" those tests one by one, track down the offending tests, and figure out why they are failing, then stop them. Once these tests are back we should be in excess of 99% test coverage again.

I've unskipped many of the tests and left the ones that pass. It seems that only a couple tests in _ffft_test raise an error. The rest just seg fault. @idk3 reports that on a clear mac installation all of the _low_depth_trotter_simulation_test tests pass. But it seg faults for me and others on Linux and also seg faults for Travis. @idk3 can you report what version of the ProjectQ simulator you are using? Is it the C++ version or python?
@thomashaner and @damiansteiger do you guys have any idea what is going on with these seg faults?

@babbush I'm on 0.3.1 with the C++ simulator - could you link to one of the failed Travis runs?

Sure, I made a doomed pull request to show you:
https://github.com/quantumlib/OpenFermion-ProjectQ/pull/14
Do you have access to a linux machine? Perhaps you can ssh tunnel into Harvard and look at it?

@thomashaener and @damiansteiger : we really need your help figuring out these seg faults. Note that all of our tests pass with projectq 0.3.1, suggesting that something in your last update to projectq broke backwards compatibility.

I've been playing with this a little - 0.3.1 is totally fine (all tests pass), but I get segfaults (silent death of my test) with 0.3.4. I've tried commenting things out and restoring lines one at a time to see what could be causing it - one thing that causes it to fail is uncommenting the single-qubit rotations on https://github.com/quantumlib/OpenFermion-ProjectQ/blob/master/openfermionprojectq/_low_depth_trotter_simulation.py#L131 and L132.
The phase gates are fine, and I have every other gate (except either L131 or L132's Rz, and the phase gate) commented out when I get the problem.

Building on this - S | register[0], H | register[0], and Rz(0) | register[0] at that point all cause the same problem.

OK - it might actually be some interaction of projectq.ops.Ph with other gates (?)
If I comment out Ph(-zz_angle / 2.) | register, everything else is OK - is it possible that's changed in some way?

Can you replicate an error writing the test standalone in ProjectQ?
Use the Python simulator as seg faults in C++ might give you an Exception in Python with more information
Check the code which uses the simulator, e.g., https://github.com/quantumlib/OpenFermion-ProjectQ/blob/master/openfermionprojectq/_ffft_test.py#L495 - it tries to deallocate self.reg but not sure if it exists in this test class

Another thing to correct would be
Ph(-zz_angle / 2.) | register

inhttps://github.com/quantumlib/OpenFermion-ProjectQ/blob/master/openfermionprojectq/_low_depth_trotter_simulation.py#L133
It looks like you are applying a single qubit gate to a potentially large quantum register...

@damiansteiger so Ph | register was something I thought about - it was OK in 0.3.1 but I wondered if it might not have been technically supported. Is there a preferred / better way to do it?

Ph is only supposed to be applied to a single qubit or a quantum register of size 1. In your case:
Ph | register[0]

Hmm - it fails with Ph | register[0] :( I'll try to construct a minimal failing example.

Thanks @damiansteiger . I like your suggestion to use the python simulator. Is it possible to do that without reinstalling ProjectQ? How?

You can either change your code to run the python simulator (see e.g. https://github.com/ProjectQ-Framework/ProjectQ/blob/develop/projectq/backends/_sim/_simulator_test.py#L69 for how to do that)
or
if you are running
python2.7 -m pytest openfermionprojectq

just clone ProjectQ and move the projectq folder into your current folder. Python will then not use the installed projectq but the one in this folder which does not have the C++ simulator installed

Try to get them working one by one:
E.g.
https://github.com/quantumlib/OpenFermion-ProjectQ/blob/master/openfermionprojectq/_ffft_test.py#L497
Should probably be fixed if you change
Ph(3 * numpy.pi / 4) | register

in https://github.com/quantumlib/OpenFermion-ProjectQ/blob/master/openfermionprojectq/_ffft_test.py#L508 to
Ph(3 * numpy.pi / 4) | register[0]

And remove this as there is not self.reg https://github.com/quantumlib/OpenFermion-ProjectQ/blob/master/openfermionprojectq/_ffft_test.py#L495

I made these changes but it did not seem to stop the seg fault.

I fixed the bugs in FermiLib, see https://github.com/ProjectQ-Framework/FermiLib/tree/bugfix/ph_gate
Updating your fork to this new branch of FermiLib should solve all the problems you experience here.

We will not be updating our fork to this branch. We will look at what you did though and try to understand the origin of the problem. But I suspect there is something else going on because tests weren't failing in FermiLib. Also, why do you commit to FermiLib without code reviews now?

Tests in FermiLib would be failing if we would rerun them with the new ProjectQ version (you can try it out locally)
FermiLib performs code review for the develop branch and master branch. Feature branches such as this bugfix get code reviewed when pulled into develop but I just wanted to give you a heads up so you don't waste time finding a fix as the errors in this repo are most certainly copied over from FermiLib. But feel free to find another way to fix the problem

Thanks Damian. I somehow thought you linked to develop. My bad. We'll take
a look to see what the problem was.
On Sep 30, 2017 14:25, "Damian Steiger"<EMAIL_ADDRESS>wrote:

Tests in FermiLib would be failing if we would rerun them with the
new ProjectQ version (you can try it out locally)
FermiLib performs code review for the develop branch and master
branch. Feature branches such as this bugfix get code reviewed when pulled
into develop but I just wanted to give you a heads up so you don't waste
time finding a fix as the errors in this repo are most certainly copied
over from FermiLib. But feel free to find another way to fix the problem

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/quantumlib/OpenFermion-ProjectQ/issues/11#issuecomment-333336909,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ANlTf1H37qq0PMy1SkpTEy4mnFlNz3Y0ks5snrHRgaJpZM4Po1uy
.

I'll also try again - I made those changes earlier after you suggested them and didn't have luck, but I'll see if pushing to Travis is somehow different.. Obviously I'll be happy if it's just something silly with my machine / some small mistake I made earlier :)
I guess the general takeaway is that Ph | register wasn't really defined behaviour - so Ph is a bit different now but still works so long as you apply to a specific qubit.


Add example for delimiter option

A small change to add an example for how the delimiter option works

sorry this is literally months late, but thanks!


[Storage] DFS Encryption Scopes + Encryption Scope SAS For DataLake (STG84)

This PR aims to implement the following features slated for STG84:

DFS Encryption Scopes
Encryption Scope SAS for Data Lake

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-storage-file-datalake


xlog api

Is it possible to decrypt and encrypt sdfp and xlog messages?

Is it possible to decrypt and encrypt sdfp and xlog messages?

What does "sdfp" and "xlog" mean ?

With this event they are sending device parameters Back to their servers and doing a trust score.
-------- Ursprüngliche Nachricht --------Von: yydzxz<EMAIL_ADDRESS>Datum: 05.09.20  20:26  (GMT+01:00) An: yydzxz/ByteDanceOpen<EMAIL_ADDRESS>Cc: Torsten Klinger<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Betreff: Re: [yydzxz/ByteDanceOpen] xlog api (#6)
Is it possible to decrypt and encrypt sdfp and xlog messages?
What does "sdfp" and "xlog" mean ?
—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

With this event they are sending device parameters Back to their servers and doing a trust score.
…
-------- Ursprüngliche Nachricht --------Von: yydzxz<EMAIL_ADDRESS>Datum: 05.09.20 20:26 (GMT+01:00) An: yydzxz/ByteDanceOpen<EMAIL_ADDRESS>Cc: Torsten Klinger<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Betreff: Re: [yydzxz/ByteDanceOpen] xlog api (#6) Is it possible to decrypt and encrypt sdfp and xlog messages? What does "sdfp" and "xlog" mean ? —You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

sry, not support now


TKK is not found - 'NoneType' object has no attribute 'group'

If you run for example:
result = translator.detect(text)
trans = translator.translate(text, dest='en')
You will get two prints with the same statement. No errors tho. Everything seems to be working.
Using the latest version, because I just pip installed it.

that didn't seem to be the prob will do more testing on this soon, may need to better the regex used

nice, thanks for that

Sorry, I forgot to add, text is actually a variable and contains text to translate. For testing I used "text = "Беззаперечно seem 장차 ~ 가 되는破碎的 ダウン por el isolement de la langue welke maken die Welt Kuten a จำนวนมาก фрагмент e causa Kwestia polityczna"
It will result in detected ee but still giving TKK error.
Also even trying to detect "hello how are you" will result in same error.
TKK is not found - 'NoneType' object has no attribute 'group'
TKK is not found - 'NoneType' object has no attribute 'group'
Detected(lang=en, confidence=1)
Translated(src=en, dest=de, text=hallo, wie geht's dir, pronunciation=hello how are you , extra_data="{'translat...")

This was the output.

nice thanks for this

will continue this issue here, https://github.com/bllendev/py-googletrans/issues/11


New viz: pairwise cross coalescence plots

As per slack:

I was imagining having a matrix of plots (like R pairs() or Nate's example, but e.g. with a heat maps, including on the diagonal), showing relatively small thumbnail-like subplots of combinations of subpopulations, and with a much larger single plot in a panel above, When you mouse over a particular subplot in the pairs matrix, the edges relevant to that pair are highlighted in the large plot. If you mouse over any of the subplots on the diagonal, the edges relevant to that population only are highlighted (as if you had simplified()  the tree sequence to only samples from that population).

Transferred from https://github.com/percyfal/tseda/issues/1

See https://github.com/percyfal/tseda/tree/pair_coalescence for draft code, vpages modules coalescence.py and coalescence_counts.py. The idea is to use the new tskit function (as of version 0.6.0) pair_coalescence_counts to calculate coalescent rates between populations (see https://tskit.dev/tskit/docs/stable/changelogs.html#id1, features list).

For more information regarding pairwise coalescent (and edge) plots see https://ebp-nor.github.io/GARG/jlite/notebooks/?path=Day1-C-recombination.ipynb. I include some screenshots for reference:

The edge plot shows ancestor genomes (x-axis) and their age (y-axis), where the edges get shorter and shorter going backwards in time due to recombination.

The pairwise coalescent plot shows the density of coalescent events displayed as time (y-axis) vs position (x-axis). The example above is from a neutrally evolving population, but different patterns will arise depending on population substructure or non-neutral events, such as selection depicted below.

Wrt to coalescence rates, here's two sorts of figures that are useful

Marginal (chromosome-wide) coalescence rates, shown as steps, stratifying by a focal population (e.g. all cross-coalescence rates involving that population),

Windowed rates as you're doing above. In general I'd recommend using rates on a log scale, and setting vmin/vmax for the colorbar based on quantiles of the rates (as otherwise outliers can dominate the color scale),

I'll add some code for these when I have the chance.


TX stuck and Step

I am using the most recent version... I activated the scan list and pressed PTT... then the radio got stuck in the Tx and I had to turn off the radio. The Scan I symbol remains on the display even when scanning list II Please include 5kHz step! Thank you for your excellent work!

Hopefully fixed now.

Your work is fantastic. I will always be available to assist you with tests. Thank you very much!

One bug I MUST be fixed is I've broken the power save function - again.
When the radio goes into power save mode the RX dies.

This seems like a serious problem! When you make a change to fix this, I can run a test and report the results. Thank you for your work!

Found and fixed the power save bug, my fault as per normal ;)


Hit&Miss with DoH | 64bit OS & Android

With pi running 64bit OS , in <IP_ADDRESS> onandroid gets a hit and miss rarely (double checked) with DoH upon refreshing page multiple times.(weird 🤨😑) On windows with acrylic dns and linux it do not have this issue.
To solve this would be out of my reach and i don't want to install a third party app to fix this.. Waiting for updates and testing is the only solution for a fix.
Please still test with 64bit OS yourself in the future to see if issue occurs for you on android cause it could be just a issue with my device.. else use 32bit if its a concern for you.
Leave a comment if no issue for you with 64bit and your android device🙏. Its hard sometimes to get things accurate with these projects with limited devices and hardware.. Need testers

I'm closing this issue cause i get the same thing with 32bit OS. and android. sometimes it get  'no' for DoH/DoT after 5 page refresh or ten refresh .. recently adguard and cloudflared got updated and I think it was more stable from previous verions..
I think i make this hit&miss for DoT/DoH too much of a issue .. cause it could be project versions/operating system/Hardware/browser or just cloudflare itself at a certain time. And honestly I don't think we loss protection when one out of the 2 shows no for a second on <IP_ADDRESS>
Only when you get 'no' regularly then you have a issue if just rarely then no big deal.. If anyone more experience followed this guide and see what I could of done different let me know


[Graph Designer] GD breaks the format once save.

The repo of GD is here:
https://github.com/TEN-framework/graph-designer
Once the problem is fixed, the issue can be closed here.


add --fix to no-identical-tests.

this is WIP, as the trailing commas have not been handled.
it simply remove the identical tests, so may cause incorrect indent. any suggestions? @not-an-aardvark

Thanks for working on these issues! Sorry about the delay, I'm planning to review your PRs in the next day or two.

it simply remove the identical tests, so may cause incorrect indent. any suggestions?

I think that's fine and we don't have to worry about it here -- if the indent rule is enabled, the indentation will be automatically fixed.

ping @not-an-aardvark


Bug: Filter auto discover for subproject doesn't behave as expected

Describe the bug
Filter.php from subproject is not loaded as expected. That causes the CI throws  pnd_auth filter must have a matching alias defined. exception while the Filter is correctly defined in Filters.php subproject.
By exploration, I found that when the exception triggered, the Filter.php is not loaded. But when the routing doesnt have filter, the Filters.php is correctly loaded.
Loaded Filters when exception thrown:

Loaded Filters when no exception thrown:

CodeIgniter 4 version
Based on composer.lock file on both (the main app and the admin panel) uses v4.1.1.
Affected module(s)
I think it is the discoverFilters() function from /system/Filters/Filters.php.
Expected behavior, and steps to reproduce if appropriate
Filters.php on sub project is loaded before the routing starts working, so when accessing /admin/panel route will redirects to /admin/auth/login.
Step to reproduce:

Create sub-project with composer create-project codeigniter4/appstarter extendables
Remove all unneccessary files like configuration and etc.
Create main app project with composer create-project codeigniter4/appstarter main-app
Add local repository to main app project by modifying the composer and install it on the main app by executingcomposer install chez14/extendables:dev-master

Add filter "Auth.php" to the subproject.
Register the filter to subproject's Filters.php
Create routing on the subproject, by making a group, set the default namespace, and add a bunch of routings with that filter.
Try to access /admin
The error appears.

Here's the minimal setup: https://github.com/chez14/ci4-routing-filter-bug
Context

OS: Ubuntu 18.04.5 LTS, x86-64, Linux 5.4.0-70-generic
Web server: Ran via spark serve: CodeIgniter v4.1.1 Command Line Tool
PHP version [e.g. 6.5.4]: 7.3.27

 ❯ php -v
PHP 7.3.27-9+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Feb 23 2021 15:10:08) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.27, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.27-9+ubuntu18.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies

Your repo is a little hard to understand because there are multiple app folders, but I think you are missing a step. Your actual Auth filter can be anywhere you want, as long as you create the alias appropriately. In your extension namespace (e.g. MyAuth) you will have your filter (e.g. src/Filters/Auth.php) and the discovery Config file to apply the alias (e.g. src/Config/Filters.php). All the Filters file will do is supply the alias:
$filters->aliases['auth'] = 'MyAuth\Filters\Auth';

I actually just made such a module for my new Menus module, you can use it as an example: https://github.com/tattersoftware/codeigniter4-menus/tree/develop/src

Hi @MGatner,
Thanks for the suggestion, unfortunately it still didn't work. I tought Filters.php should always be a class, but apparently not, hehe. Well still have no luck. To check the implementation, please see f0c64f89d67b37b6b56f0373d55f8ec9ec690ecd.

Hi @paulbalandan,

I am assuming here that main-app is your application's point of entry and extendables is where you get the goodies. I see that you have pointed out the problem but it is not a framework fault but an implementation error. Filters discovery needs to iterate over the known namespaces and then proceed to load the found Filters.

Sorry for the lenghty reply, yes that is correct. Ahh ok ok. I've read the Autoloader.php and i have no clue either why it didn't discover the Filters.php untill it able to go to /admin/auth/login. When accessing /admin/panel Filters.php from extendables is not loaded, but when accessing /admin/auth/login the Filters.php is loaded correctly :|

In your case, since the two apps are basically standalones, main-app has no way of knowing the namespace and location of extendables. Even though they are both Composer enabled, since main-app is your point of entry, extendables is isolated and out of reach.

Ah, you see, I used the Path-based Composer Package to setup the dev environment because when the admin panel get published, we can just composer require chez14/ci4-admin-panel right away and get it working with minimal effort.
The configuration can be seen on composer.json on main-app, the package also have been installed on main-app, and also the extendables project's composer autoload have been configured. I didn't rename the app folder of extendables just because i want to write shorter reproduce steps.

How to approach this? You need to map the location of extendables to your main-app. In your main app's Config/Autoload file, you need to setup the namespace and path of your extendables in the $psr4 array property.

I've tried this and the Filters.php file still didn't get loaded correctly.

I also have updated the issue description to add the reproduce step and added more information on the sample project. If you need me to test something on my end, please let me know.
Thank you so much, and again, sorry for lengthy reply.
Thanks!

I have cloned your project. And here are the steps to make it working (but I found a bug maybe in your code, well I don't know).

Rename the namespace of your Auth filter to Extendables\Filters. You are using Extendables\Controllers which is violative of PSR-4 and maybe why that is not being discovered.
In your Config\Filters in main-app, add the alias of your Auth filter like this:

 use CodeIgniter\Filters\Honeypot;
+use Extendables\Filters\Auth;

 class Filters extends BaseConfig
 {
 	/**
	 * Configures aliases for Filter classes to
	 * make reading things nicer and simpler.
	 *
	 * @var array
	 */
	public $aliases = [
		'csrf'     => CSRF::class,
		'toolbar'  => DebugToolbar::class,
		'honeypot' => Honeypot::class,
+		'pnd_auth' => Auth::class,
	];

You should now get your filter being discovered but you'll encounter a bug in your code thrown by the error message:
CodeIgniter\HTTP\Exceptions\HTTPException
route cannot be found while reverse-routing.

This may be a bug in redirect(route_to('pnd_login')); in your before method and how you set the route alias in Routes of extendables. How to fix it is, well, out of scope of this issue report.

Stellar support @paulbalandan, thanks for the thorough response. I believe this issue has moved out of the scope of a "bug" but my takeaway is that our User Guide is lacking information on Filter discovery. Let's leave this issue up until that's in place.

Hi @paulbalandan,
Thanks for the thorough suggestion and the fix.

In your Config\Filters in main-app, add the alias of your Auth filter like this:

Ah, ok, to me, this is unexpected behaviour i meant. I'm expecting it to work just by registering it on extendables because it is in the extendables' scope and extendables' routing. Meaning, if i add new filter to extendables or updating the filter's class name, the changes will be breaking changes by default.
Also, just to make sure, is this just me, or is current implementation is expected to work like this (manually register package's filter to the main project)? Because, if that's how current implementation works, then @MGatner's project wont... work...? Do i miss something?
Thank you!

I didn't follow your question at the end, but I can tell you that my linked Menus library works exactly as specified - I'm already using it in a few projects.
I will try to update the User Guide with module filter registration info, and hopefully that will clear this up for you.

Step 2 in my suggestion is not unexpected. Currently, the framework has no way of telling what alias you will be using for a particular Filters class unless you register it yourself. Unless a Filters class has an $alias property that the framework scans and subsequently uses, developers adding new Filters should add the alias manually in their Config\Filters class.
@MGatner's library works because he manually registered the alias menu as reference to the MenusFilter class
https://github.com/tattersoftware/codeigniter4-menus/blob/2937bed80f72bfa48da7dba9fed96b65a7369d1a/src/Config/Filters.php#L9

Hi @paulbalandan,
So, just to clarify, I just did what @MGatner do on f0c64f89d67b37b6b56f0373d55f8ec9ec690ecd, and i still need to do the second step you mentioned earlier?
I'm sorry, I'm really lost right now. I think I'll just wait for someone to update the documentation and write the 'workaround' on the project's README for the time being.

@chez14 @MGatner
I'm not sure this is enough, but I sent a PR: #5281


#129 //solved

@JAgrit20 Do you want to fix the DCO? Please do not close or open repeatedly.

@JAgrit20 Do you want to fix the DCO? Please do not close or open repeatedly.

yeah sorry for that I formatted the code,
fixing DCO now


Salesforce System Error: 208410828-86802<PHONE_NUMBER>)

Hello Doug,
I am having an issue with conversion and hoping you can help me.
When doing a test conversion (all records, ~26000) in the sandbox, the apex job hangs at one point, stays like that for a couple of hours and then errors out:
Salesforce System Error: 208410828-86802<PHONE_NUMBER>)<PHONE_NUMBER>)
I've contacted SFDC support to figure out what this error means and they advised that this is the same error when the note contains HTML or invalid characters.
Unfortunately, no log is created about the problematic record.
Would there be a way to pinpoint what record is causing this problem?
Thank you in advance!
Gabor

Hi @gaborarany,
Thanks for trying my conversion tool, sorry you ran into an issue. Unfortunately when Salesforce errors out like that it tends to be fatal error and code isn't able to complete a transaction to save off any logs.
Another user, Rachel Park, said on Success Community that she had to export all the Notes via Data Loader, replaced special characters in the spreadsheet, then updated the Notes back in Salesforce. You might ping Rachel on Success Community or follow up on this thread to see what specific changes she had to make.
Until people provide me samples of the Notes with the kinds of special characters that are failing there isn't a whole lot I can do in the code to help prevent the error. I do do some special character handling but obviously there are some characters I'm not catching.
Doug

Hello Doug,
Thank you for your response. I would still like to use your tool for migration :)
I will try to find the problematic notes by narrowing down the notes to be converted. If I can find the problematic characters, would you be able to add handling them in your code?
Thank you again!

Yes @gaborarany, if you find the problematic characters please let me know and I'll update the conversion tool.
I'll go ahead and close this issue for now, but feel free to comment back with any new info you find.
Thanks! Good luck!

Hello @DouglasCAyers ,
I did some tests using the data loader method to figure out what was causing the issue.
What I've found that the notes that had an empty body also gave the HTML/non-escaped character error.
Apparently inserting nothing/space/line feed character will not do the trick, but an nbsp does.
Hope you can consider this, and adding it into the code.
Thank you in advance!

That's a great find, thank you! I'll update the code for next release to handle this edge case. Thanks!

Hello @DouglasCAyers I ran your tool yesterday to convert all our notes. It stopped dead at 3,000 records. Turns out records 3001 had a copyright symbol in the text of the note. This was enough to make it fail and not process the rest of the records. Downloading the remaining notes (including body) via Data Loader and searching for the (c) symbol and then creating new notes with and without the symbol  and then submitting the single parent record for conversion was how I finally found and isolated the problem. I rescheduled the job and the remaining 2,093 notes were converted.  Thanks for this great tool Doug it has really helped. Next is the Files conversion using your other tool. Before the end of the month we will be rid of Notes & Attachments.

Thanks @certifycrm, this is great info. I'll make sure to include this with the special character conversion code.


Add info command to get the python site information

General cleanup and target Python 3.8.
Add info command to get the python site information.
Refer to the docs for information about Python in Tactical.
Rename to match the community scripts naming convention.

This deprecates scripts_wip/synology_abfb_auto_update.py.


Remove unnecessary step in CI job

cc-cli tests don't need the wasm runtime so no need to download the artifact
Description of proposed changes

Practical tips for PR review & merge:

[ ] All GitHub Actions report PASS
[ ] Newly added code/functions have unit tests

[ ] Coverage tools report all newly added lines as covered
[ ] The positive scenario is exercised
[ ] Negative scenarios are exercised, e.g. assert on all possible errors
[ ] Assert on events triggered if applicable
[ ] Assert on changes made to storage if applicable

[ ] Modified behavior/functions - try to make sure above test items are covered
[ ] Integration tests are added if applicable/needed

Codecov Report

Merging #1322 (a450173) into dev (ee878e0) will decrease coverage by 0.97%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##              dev    #1322      +/-   ##
==========================================
- Coverage   70.13%   69.17%   -0.97%
==========================================
  Files         105      105
  Lines       12220    12220
  Branches      121      121
==========================================
- Hits         8571     8453     -118
- Misses       3640     3767     +127
+ Partials        9        0       -9

see 6 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more
:loudspeaker: Have feedback on the report? Share it here.