RocketChat RPM prevents update of other electron based apps ( /usr/lib/.build-id/* file conflicts)

Describe the bug
If rocketchat rocketchat-3.7.6-1.x86_64 is installed via rpm package its not possible to update some other electron based apps via rpm.
For example zettlr or draw.io
What operating system and which version? Red Hat Enterprise Linux 8.5
Which version of Rocket.Chat (Server)? 3.18.4
Which version of Rocket.Chat.Electron (Electron/Desktop)? 3.7.6
Is there any setting relevant changed? no
To Reproduce
Steps to reproduce the behavior:

install rocketchat-3.7.6-1.x86_64
try to install/update Zettlr-2.1.2-x86_64.rpm (dnf install ./Zettlr-2.1.2-x86_64.rpm)
OR drawio-x86_64-16.4.11.rpm  (dnf install ./drawio-x86_64-16.4.11.rpm)
See rpm conflict error

zettlr:
Last metadata expiration check: 1:10:05 ago on Fri 28 Jan 2022 12:50:10 PM CET.
Dependencies resolved.
========================================================================================================================================================================
 Package                               Architecture                          Version                                  Repository                                   Size
========================================================================================================================================================================
Upgrading:
 zettlr                                x86_64                                2.1.2-1                                  @commandline                                 85 M

Transaction Summary
========================================================================================================================================================================
Upgrade  1 Package

Total size: 85 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Error: Transaction test error:
  file /usr/lib/.build-id/55/dc566f6c0bf7712c5313dbb6abc93a241353e7 from install of zettlr-2.1.2-1.x86_64 conflicts with file from package rocketchat-3.7.6-1.x86_64
  file /usr/lib/.build-id/5e/454361d23477f6c57f2b93cbcb0db9deda9f48 from install of zettlr-2.1.2-1.x86_64 conflicts with file from package rocketchat-3.7.6-1.x86_64
  file /usr/lib/.build-id/ae/95cfe865250b789af383a3d41377f602ec8ef9 from install of zettlr-2.1.2-1.x86_64 conflicts with file from package rocketchat-3.7.6-1.x86_64
  file /usr/lib/.build-id/d4/aab0a51d28bbc3ab1aec6c0745f0b7b1f32638 from install of zettlr-2.1.2-1.x86_64 conflicts with file from package rocketchat-3.7.6-1.x86_64
  file /usr/lib/.build-id/d7/e87eb010f04dcd7e5a1256848fff65fc6ce03b from install of zettlr-2.1.2-1.x86_64 conflicts with file from package rocketchat-3.7.6-1.x86_64
  file /usr/lib/.build-id/ec/ca5e0942d94160bcb65f93943ad95aa9293e02 from install of zettlr-2.1.2-1.x86_64 conflicts with file from package rocketchat-3.7.6-1.x86_64
  file /usr/lib/.build-id/f7/8ba2ea803e9af2418b17b26f175b7279e73a71 from install of zettlr-2.1.2-1.x86_64 conflicts with file from package rocketchat-3.7.6-1.x86_64

draw.io
Last metadata expiration check: 1:48:14 ago on Fri 28 Jan 2022 12:50:10 PM CET.
Dependencies resolved.
========================================================================================================================================================================
 Package                               Architecture                         Version                                    Repository                                  Size
========================================================================================================================================================================
Upgrading:
 draw.io                               x86_64                               16.4.11-1                                  @commandline                                92 M

Transaction Summary
========================================================================================================================================================================
Upgrade  1 Package

Total size: 92 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Error: Transaction test error:
  file /usr/lib/.build-id/27/4a1db14fd77927629ba932bd829fc05f42b1b2 from install of draw.io-16.4.11-1.x86_64 conflicts with file from package rocketchat-3.7.6-1.x86_64
  file /usr/lib/.build-id/55/dc566f6c0bf7712c5313dbb6abc93a241353e7 from install of draw.io-16.4.11-1.x86_64 conflicts with file from package rocketchat-3.7.6-1.x86_64
  file /usr/lib/.build-id/5e/454361d23477f6c57f2b93cbcb0db9deda9f48 from install of draw.io-16.4.11-1.x86_64 conflicts with file from package rocketchat-3.7.6-1.x86_64
  file /usr/lib/.build-id/7d/b35c3b735e220b695703ae79e73916e2d52319 from install of draw.io-16.4.11-1.x86_64 conflicts with file from package rocketchat-3.7.6-1.x86_64
  file /usr/lib/.build-id/ae/95cfe865250b789af383a3d41377f602ec8ef9 from install of draw.io-16.4.11-1.x86_64 conflicts with file from package rocketchat-3.7.6-1.x86_64
  file /usr/lib/.build-id/ca/4d0d2fe9d2116a54141f5414fff56a2b436767 from install of draw.io-16.4.11-1.x86_64 conflicts with file from package rocketchat-3.7.6-1.x86_64
  file /usr/lib/.build-id/d4/aab0a51d28bbc3ab1aec6c0745f0b7b1f32638 from install of draw.io-16.4.11-1.x86_64 conflicts with file from package rocketchat-3.7.6-1.x86_64
  file /usr/lib/.build-id/d7/e87eb010f04dcd7e5a1256848fff65fc6ce03b from install of draw.io-16.4.11-1.x86_64 conflicts with file from package rocketchat-3.7.6-1.x86_64
  file /usr/lib/.build-id/ec/ca5e0942d94160bcb65f93943ad95aa9293e02 from install of draw.io-16.4.11-1.x86_64 conflicts with file from package rocketchat-3.7.6-1.x86_64
  file /usr/lib/.build-id/f7/8ba2ea803e9af2418b17b26f175b7279e73a71 from install of draw.io-16.4.11-1.x86_64 conflicts with file from package rocketchat-3.7.6-1.x86_64

Expected behavior
No influence of one rpm to block updates from others.
Screenshots

Additional context
Seems that its a more or less known problem of electon apps if the electron base version changes.
But since I'm not a developer - I don't know very much about that topic...

Hey @roggy85 did you have any clue of how to fix that? I cant say that this is our problem or the other installer.

Hi @jeanfbrito, no no idea how to fix it.
I think its related to the electron version used.
I was able to update zettlr for example with one of the latest ReocketChatElectron updates - but not to the latest Version :(
So I think if an RPM is build with an Electron app which uses a different version of Electron - its incopatible :(

Got the same issue with rocketchat & insomnia

You are obviously not alone with this problem.
I dont have any experience with electron apps and rpm packaging but the solution seems pretty easy:
https://github.com/microsoft/vscode/pull/116105

@roggy85 we released a fix, please test it

works like a charm!
Thanks for the fix!

works like a charm!
Thanks for the fix!

thanks @stopal


Make sure status is never undefined in onProgress server callback #5

Is there anything that can be done about the docs update noise?  It makes these PRs a lot harder to look at since there's a huge number of trivially changed files

@Page- I agree as well. JSDoc seems to update every file at every change (it's frustrating when developing as well, as it makes very difficult to commit part of my changes). It seems JSDoc updated the footer of every file with the new date. I'll investigate if I can prevent that from happening.


[HUDI-6015] Refresh the table after executing rollback to instantTime

Change Logs
Spark will cache some meta information of the table. After the RollbackToInstantTimeProcedure is executed on the table, the meta information will change and the table needs to be refreshed. Otherwise, the following error will occur when querying the data again:
Caused by: java.io.FileNotFoundException: File does not exist: hdfs://xxxxx/user/hive/warehouse/hudi_cow_nonpcf_tbl2/7a19abfb-35ab-40bb-9580-6b1af681506a-0_0-23-20_20230402002001284.parquet
It is possible the underlying files have been updated. You can explicitly invalidate the cache in Spark by running 'REFRESH TABLE tableName' command in SQL or by recreating the Dataset/DataFrame involved.
	at org.apache.spark.sql.execution.datasources.FileScanRDD$$anon$1.org$apache$spark$sql$execution$datasources$FileScanRDD$$anon$$readCurrentFile(FileScanRDD.scala:124)
	at org.apache.spark.sql.execution.datasources.FileScanRDD$$anon$1.nextIterator(FileScanRDD.scala:187)
	at org.apache.spark.sql.execution.datasources.FileScanRDD$$anon$1.hasNext(FileScanRDD.scala:93)
	at org.apache.spark.sql.execution.FileSourceScanExec$$anon$1.hasNext(DataSourceScanExec.scala:503)

Impact
No
Risk level (write none, low medium or high below)
none
Documentation Update
Contributor's checklist

[ ] Read through contributor's guide
[ ] Change Logs and Impact were stated clearly
[ ] Adequate tests were added if applicable
[ ] CI passed

Good catch. Can you also add similar refresh in RollbackToSavepointProcedure.scala. Can you also add a test-case for this ?

Done


Use release version of flutter_map 4.0.0

flutter_map introduced a small breaking change between 4.0.0-dev.1 and the stable 4.0.0 release.
The .scaleBy() method of TileIdentity now requires a CustomPoint<int> parameter instead of CustomPoint<double>.
My pull requests targets the flutter_map-4.0.0 branch to make it ready to merge.
Additional changes with this pull request:

Use the release version of flutter_map in pubspec.yaml and run pub upgrade.
Upgrade gradle in the example project to support Java 19.

I did some more testing and found a bug in flutter_map that should get resolved first before continuing with the migration of flutter-vector-map-tiles.

My solution is to remove the .floor() and keep centerPoint as a CustomPoint.
This solution works fine in the example app and my project.
@greensopinion If you like, you can try it out and merge it into your pr https://github.com/greensopinion/flutter-vector-map-tiles/pull/136.

Thanks a lot for the contribution! I won't have a chance to look at this for a few days, but will get to it when I can.

The flutter_map team gave some explaination for the use of the .floor() method.

Just be aware, sometimes the floors and things like that are semi fudges where oddities get introduced like hairline white gaps between tiles and things like that, so double check all that kind of stuff if playing with it.

https://github.com/fleaflet/flutter_map/issues/1522#issuecomment-1545874698
I haven't experienced those issues but I'm leaving this information here for further information.

The flutter_map team gave some explaination for the use of the .floor() method.
...
I haven't experienced those issues but I'm leaving this information here for further information.

Thanks for digging in to this. I agree!
CustomPoint is a bit problematic too - since multiplyBy and the plus/minus operator expect the same type as the generic type of the CustomPoint - but you won't necessarily see an error except at runtime. I think I've caught them all in this latest change, but testing on this library is sparse so it's hard to know for sure.


Research for git reference transaction hooks

Let's investigate is it possible to use git reference transaction hooks from v2.28, see documentation: https://git-scm.com/docs/githooks.html#_reference_transaction
and implementation commit: https://github.com/git/git/commit/675415976704459edaf8fb39a176be2be0f403d8
Let's check if it can be connected with consensus algorithms, e.g. raft.
The result is white-paper update in data exchange subsection of solution section.

@stepanvalyavskiy FYI - example of reference transaction hook:

Create new empty git repo cd $(mktemp --directory) && git init
Create reference transaction hook at .git/hooks/reference-transaction  to pring state and input:

  #!/bin/bash
  echo "TRANSACTION: '$1' - '$(cat /dev/stdin)'"

And make it executable: chmod +x .git/hooks/reference-transaction
Add some stub to any file and commit it:

echo 1 > file
git add .
git commit -m "test"

See the output:

TRANSACTION: 'prepared' - 'b8e22cb988dde5081a5e8d086cf00228ffad22ad 49fe90d217a0a81ab176f00b275b5ddc21cf6fd4 HEAD
b8e22cb988dde5081a5e8d086cf00228ffad22ad 49fe90d217a0a81ab176f00b275b5ddc21cf6fd4 refs/heads/master'
TRANSACTION: 'committed' - 'b8e22cb988dde5081a5e8d086cf00228ffad22ad 49fe90d217a0a81ab176f00b275b5ddc21cf6fd4 HEAD
b8e22cb988dde5081a5e8d086cf00228ffad22ad 49fe90d217a0a81ab176f00b275b5ddc21cf6fd4 refs/heads/master'
[master 49fe90d] file3.1
1 file changed, 1 insertion(+)

Parallel updates on one reference causes error:
fatal: Unable to create '/tmp/tmp.SvAgsMrsWT/.git/index.lock': File exists.

Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.

@ivanbukhtiyarov CC


How should we handle Words breakdown?

Words could behave many different ways to match words by default:

Simple for those familiar with regex, matching /[\w]+/ and build out for specific cases later if desired.
An opposite implementation of what we have for splitting before cases(snake, camel, kebab)
Exactly behavior of Lodash for those familiar with its intricacies.

References

_.words

TBH, I don't know. I like how Lodash makes the pattern configurable. That leaves the question, "What should the default behavior be?"
Does it make sense to split on spaces, match words but also remove punctuation chars? So.

This is a sentence, "containing a quote?"

... would return
[ 'This',  'is',  'a',  'sentence', 'containing', 'a', 'quote']

That leaves one nasty edge case, single-quotes. A word containing a single-quote could be the end of a title. Ex

sometimes single-quotes are used for titles like 'The Book of Titles'

But it is also commonly used as a conjunction

Don't remove the single-quote in don't

And other times to indicate possession

Joe's take was good but Dennis' was better

The context-specific ambiguity of Natural Language is... challenging.

Since users can define their own pattern, I'm cool with doing the same as Lodash and avoiding this complexity altogether.


RM - Remind Me Feature [6h]

Issue
When a user swipes left, they will have the option to remind themselves later about a message. Then message will be marked as read until the set time, when they will reappear in the unread category.
They have the option to "snooze" or "remind me later" of 1 hour, 6 hours, or 12 hours.

Figma
Video Overview

@anvmn @adamhstewart

nutrition env
tablet

Questions/Found Issues:

there is no messages that marked as "read" so the message disappears after selecting time for reminding.
// I think it's very inconvenient that the read messages disappear (especially on the second tap). I think for this the "delete" menu button can be added, and the read messages can be moved to the "read" additional tab.

2.In the Favorites tab, the user can set the same (or different) reminder time for the same message an unlimited number of times, since the message does not disappear from this tab.

Messages, for which a reminder time has been set in the Favorites tab, don't appear in the Unread tab after the reminder time has elapsed.

Checked and Approved:

the message's menu in Unread and Favorite tabs includes the "Remind Me" menu item

Unread
Favorite

After clicking the "Remind Me" menu item, the pop up with time for reminding appears:

Unread
Favorite

If to click the "Cancel" button ^^, the pop up disappears
If to click one of the "x hour(s)" button, the pop up disappears and the message from the Unread tab also disappears (if this message was in this tab). The message in the Favorite tab remains.

Examples:

Messages for which a reminder time has been set in the Unread tab, appear in the Unread tab after the reminder time has elapsed.


WIP: Remove core-integration package

Issue Number
ADP-682
Overview

[x] Merge BenchShared and LatencyBenchShared with their respective benchmarks
[x] Remove core-integration in favour for an… internal framework that can depend on cardano-wallet

Both bench:latency and cardano-wallet:integration depend on the test code

[ ] Does CI like it?
[ ] Fix weeder

Comments

Don't think this will work out.

Don't think this will work out.

Thanks for having a try... When the time comes to do this for real, perhaps one way of making it easier would be to:

Merge everything into a single package (except a couple of packages which are obviously separate).
Then re-organise modules into separate packages. Some modules may need to be split if they address multiple "concerns".
What do you think?


Fix SimpleText format knn search

With the new change in iteration, SimpleText format wasn't overriding the byte vector's ordToDoc, causing multiple tests to fail.

Thanks for addressing, @benwtrent, but --- github is showing lots of unrelated changes in this PR? Oh hm, I see you closed it. Please LMK if I can help - these test fails didn't show up in multiple rounds of tests, sorry

@msokolov yeah, I am reopening the PR against the 10 branch to fix it there for the release process of 10, then will port forward.


Can't connect with my Xiaomi 3H

doesn't work with Xiaomi 3h for me, it appear in homekit but it show always "no response".

Can you please try the new version? The old one wasn't working properly with Homebrige 1.3.

i try it and:
[18/11/2021, 16:01:31] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Active': Unhandled error thrown inside read handler for characteristic: device.power is not a function. See https://git.io/JtMGR for more info.
[18/11/2021, 16:01:31] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Current Air Purifier State': Unhandled error thrown inside read handler for characteristic: device.power is not a function. See https://git.io/JtMGR for more info.
[18/11/2021, 16:01:31] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Target Air Purifier State': Unhandled error thrown inside read handler for characteristic: device.mode is not a function. See https://git.io/JtMGR for more info.
[18/11/2021, 16:01:31] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Air Quality': Unhandled error thrown inside read handler for characteristic: device.pm2_5 is not a function. See https://git.io/JtMGR for more info.
[18/11/2021, 16:01:31] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'PM2.5 Density': Unhandled error thrown inside read handler for characteristic: device.pm2_5 is not a function. See https://git.io/JtMGR for more info.
[18/11/2021, 16:01:31] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Filter Life Level': Unhandled error thrown inside read handler for characteristic: Cannot read property 'value' of undefined. See https://git.io/JtMGR for more info.
[18/11/2021, 16:01:31] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Filter Change Indication': Unhandled error thrown inside read handler for characteristic: Cannot read property 'value' of undefined. See https://git.io/JtMGR for more info.
[18/11/2021, 16:01:31] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Current Temperature': Unhandled error thrown inside read handler for characteristic: device.temperature is not a function. See https://git.io/JtMGR for more info.
[18/11/2021, 16:01:31] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Current Relative Humidity': Unhandled error thrown inside read handler for characteristic: device.rh is not a function. See https://git.io/JtMGR for more info.

Can you please share your version Homebrige and homebridge-xiaomi-mi-air-purifier?

homebridge-config-ui-x v4.41.2
homebridge-xiaomi-mi-air-purifier v2.0.0

Do you get a message like Connected to "Air Purifier" @ 192.168.XX.XXX! before these errors? It looks like your IP and Token is probably not working.

I will add a better error message. I just upgraded to the new version, and I still don't handle all errors cases properly.

yes i get it, [18/11/2021, 16:12:23] [Air Purifier] Connected to "Air Purifier" @ 192.168.xx.xxx!

Is it possible for you to check your NodeJS version? I also use Xiaomi 3H and do not have this issue.

Node.js Version | v14.18.1
Npm Version | v6.14.15

Do you get any other error before "[18/11/2021, 16:01:31] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Active': Unhandled error thrown inside read handler for characteristic: device.power is not a function. See https://git.io/JtMGR for more info."?
It looks like the device is undefined for some reason and I can't reproduce it on my side :( I tried to use a wrong IP/Token but I don't get the same error. Sorry, I won't be able to help mich if I can't reproduce it :(

no other errors just:
[18/11/2021, 16:49:54] [Air Purifier] Initializing XiaomiMiAirPurifier accessory...
[18/11/2021, 16:49:54] [Air Purifier] Air Purifier finished initializing!
18/11/2021, 16:49:56] [Air Purifier] Connected to "Air Purifier" @ <IP_ADDRESS>!
[18/11/2021, 16:50:00] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Active': Unhandled error thrown inside read handler for characteristic: device.power is not a function. See https://git.io/JtMGR for more info.
[18/11/2021, 16:50:00] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Current Air Purifier State': Unhandled error thrown inside read handler for characteristic: device.power is not a function. See https://git.io/JtMGR for more info.
[18/11/2021, 16:50:00] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Target Air Purifier State': Unhandled error thrown inside read handler for characteristic: device.mode is not a function. See https://git.io/JtMGR for more info.
[18/11/2021, 16:50:00] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Air Quality': Unhandled error thrown inside read handler for characteristic: device.pm2_5 is not a function. See https://git.io/JtMGR for more info.
[18/11/2021, 16:50:00] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'PM2.5 Density': Unhandled error thrown inside read handler for characteristic: device.pm2_5 is not a function. See https://git.io/JtMGR for more info.
[18/11/2021, 16:50:00] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Filter Life Level': Unhandled error thrown inside read handler for characteristic: Cannot read property 'value' of undefined. See https://git.io/JtMGR for more info.
[18/11/2021, 16:50:00] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Filter Change Indication': Unhandled error thrown inside read handler for characteristic: Cannot read property 'value' of undefined. See https://git.io/JtMGR for more info.
[18/11/2021, 16:50:00] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Current Temperature': Unhandled error thrown inside read handler for characteristic: device.temperature is not a function. See https://git.io/JtMGR for more info.
[18/11/2021, 16:50:00] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Current Relative Humidity': Unhandled error thrown inside read handler for characteristic: device.rh is not a function. See https://git.io/JtMGR for more info.

i have a same issue, too.

@boomchatchat you don't have the same issue. Your errors are different.

Hello,
I also have this problem, but with a Mi Air Purifier 2H.  Homebridge v1.3.8
i get  message
[25/11/2021, 17:24:25] Loaded plugin<EMAIL_ADDRESS>[25/11/2021, 17:24:25] Registering accessory 'homebridge-xiaomi-mi-air-purifier.XiaomiMiAirPurifier'
[25/11/2021, 17:24:25] ---
[25/11/2021, 17:24:25] [Air Purifier] Initializing XiaomiMiAirPurifier accessory...
[25/11/2021, 17:24:25] [Air Purifier] Air Purifier finished initializing!
[25/11/2021, 17:24:25] [Air Purifier] Connected to "Air Purifier" @ 192.168.xxx.xxx!
then i get errors:
[25/11/2021, 17:24:26] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Current Air Purifier State': Unhandled error thrown inside read handler for characteristic: device.power is not a function. See https://git.io/JtMGR for more info.
[25/11/2021, 17:24:26] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Target Air Purifier State': Unhandled error thrown inside read handler for characteristic: device.mode is not a function. See https://git.io/JtMGR for more info.
[25/11/2021, 17:24:26] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Air Quality': Unhandled error thrown inside read handler for characteristic: device.pm2_5 is not a function. See https://git.io/JtMGR for more info.
[25/11/2021, 17:24:26] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'PM2.5 Density': Unhandled error thrown inside read handler for characteristic: device.pm2_5 is not a function. See https://git.io/JtMGR for more info.
[25/11/2021, 17:24:26] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Filter Life Level': Unhandled error thrown inside read handler for characteristic: device.filterLifeLevel is not a function. See https://git.io/JtMGR for more info.
[25/11/2021, 17:24:26] [homebridge-xiaomi-mi-air-purifier] This plugin threw an error from the characteristic 'Filter Change Indication': Unhandled error thrown inside read handler for characteristic: device.filterLifeLevel is not a function. See https://git.io/JtMGR for more info.

same issue


chore(evaluator): add and fix typing annotations

Stack from ghstack (oldest at bottom):

#383
-> #382

@gramalingam could you take a look? Thanks!


Generated lineups are not in sequence by projection

I use:
lineup_generator = optimizer.optimize_lineups(lineups)
for lineup in lineup_generator:
...
And noticed that generated lineups are not in sequence by projected points.
It might look like this:
270.234
269.782
270.145
269.401
What might be the reason for that?
On one hand, its not difficult to sort them after all of them generated. But could it be an indication of a bug? Although the number of lineups I will need already given in the parameter 'lineups' I might stop the 'for' loop earlier and end up with not the best set of lineups.
Or is it internal thing in the Pulp solver? Maybe it runs several threads and sometimes returns worse lineup first and better lineup after?

  When I have randomness turned off the lineups are in sequence by projected points and the top lineup matches what I would get with a simple, excel-based solver.

No randomness.
I also just figured that I can't sort generated lineups because the method above is used for late swap, so the sequence is important, otherwise contest entries will not match and such lineups might be rejected.

Optimize_lineups method returns lineups in the same order as list of passed lineups. This method takes each lineup from list, lock players with started games and optimize lineup like in optimize method. So projection for lineup depends on how many players have running games(locked). It's impossible to get the most optimal lineup before regenerating all the lineups. So if projections ordering is important you should get all lineups and after that sort it.

Yes, but in this specific case there is no locked players. All games are in the future. Which means that every new generated lineup must be worse than previous (or equal).

In this case all lineups should be ordered, maybe it's a bug with detection of players with running games. You can check players that counted as players with running games   with this code: players = [player for player in optimizer if player.is_game_started]

It seems the problem is in the way the game start time compared to start time:
Latest code has this:
time_now = datetime.now().replace(tzinfo=timezone(get_timezone()))
While I think it must be like that:
time_now = datetime.now(starts_at.tzinfo).replace(tzinfo=timezone('US/Eastern'))


Mysql wrapper - support async hooks in mysql requests

:tada: This PR is included in version 1.25.3 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.25.3 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


The TestNG version is "[WORKING]

TestNG Version

Note: only the latest version is supported

Expected behavior
Actual behavior
Is the issue reproducible on runner?

[ ] Shell
[ ] Maven
[ ] Gradle
[ ] Ant
[ ] Eclipse
[ ] IntelliJ
[ ] NetBeans

Test case sample

Please, share the test case (as small as possible) which shows the issue

Contribution guidelines
Incase you plan to raise a pull request to fix this issue, please make sure you refer our Contributing section for detailed set of steps.

duplicated issue

Close the issue for duplicated reason.


improve documentation

Contains no changes in business logic, just documentation and slight refactoring.

remove unused code blocks
update copyright years in license header
describe the purpose of methods
describe required untyped parameters for functions

Please help me proof-read this before merging.
I have the most doubts about SignedKeyRegistration and KeyRegistration, could you check if the comment is correct or can be improved?

Stale branch


Check if FK & CK are trusted

Validate for FK & CK that should be trusted!
NOTE: The dbatools minimum version update
The dbatools commands used on this check are avaiable since v0.9.329. This should be the minimum version for this tests to work.
Please confirm you have 0 failing Pester Tests

[x] There are 0 failing Pester tests

Changes this PR brings

Check if Foreign Keys (FK) & Check constraints (CK) are trusted!

Why?
This can have a huge performance impact on queries.
SQL Server won’t use untrusted constraints to build better execution plans.
Also to avoid data violation.

Thanks @SQLDBAWithABeard!
Changed dbatools minimum version.
Fixed descriptions.
Please double-check the It titles.

Thank you @ClaudioESSilva :-D


Syntax highlighting

Add syntax highlighting, such as detecting and bolding matrices, allowing error highlighting. The rules should be specified at runtime to allow dynamic response to parsers.

An example branch shows how this can be done following the QSyntaxHighlighter example and attaching a highlighter to every Text object. However, the use case I envision of this feature is closely tied to parsing mathematical expressions, which is too far outside the project scope at this time.


Issues with 'category_id' on COCO and Confidence score

I am new to object detection and I have been experimenting with this repository for the past few months. I've found two small issues.

The category ids produced by the detectors in mmdetection are different from the ones used in the COCO dataset (the ids from COCO skip some numbers while in mmdet they go from 0 to 80). This is easily fixed but I was wondering if there is something I am doing wrong in my inference code.

 Do these detections hurt the AP performance? Is there any thresholding applied to the detections in order to improve the AP?

@LourencoVazPato

The mismatch between the ids in mmdetection and COCO dataset is due to the categories of ''stuff'' things, such as air, road, which are used in semantic segmentation but cannot be counted and used in object detection and instance segmentation. Therefore, you must map the ids in COCO to a continuous sequence to train the model, and later remap it to the original ids to evaluate the results.
The results with low confidence won't hurt the AP performance. I recommend you to read the mAP in PASCOL VOC to understand the process.


Review tooling questions - how much time spent with tool

For users who use both an IDE and a text editor or a debugger and println debugging, it would be good to know the relative amount of time users spend with each class of tool. (Also might be good to distinguish println debugging from logging or tracing).

Also, we ask about rustdoc, and it would be good to know about usage of docs.rs (or other pre-built docs) vs actively using rustdoc


STRING_SPLIT not supported in SQL DW version 130

SELECT compatibility_level  FROM sys.databases WHERE name = 'DWH';
select STRING_SPLIT ( string , separator )
compatibility_level
130
Msg 195, Level 15, State 10, Line 42
'STRING_SPLIT' is not a recognized built-in function name.

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

ID: 77b3e27b-a3ee-da83-1d41-1fafd96228cb
Version Independent ID: cc43ad4b-92ac-477f-a92d-1487c82ebe70
Content: STRING_SPLIT (Transact-SQL) - SQL Server
Content Source: docs/t-sql/functions/string-split-transact-sql.md
Product: sql
Technology: t-sql
GitHub Login: @MikeRayMSFT
Microsoft Alias: mikeray

@Willem-J-an Thank you for the feedback.
The syntax for this statement cannot be used within the SELECT, try in the FROM clause, such as:
SELECT value FROM STRING_SPLIT('Lorem ipsum dolor sit amet.', ' ');

Closing the issue now, please comment below if there are any issues.

Thanks for the above @msebolt - could there be any other reason why this function does not work?    When I execute:
SELECT compatibility_level FROM sys.databases WHERE name = 'EFL';
SELECT value FROM STRING_SPLIT('Lorem ipsum dolor sit amet.', ' ');
I get:
compatibility_level
130
Msg 208, Level 16, State 1, Line 2
Invalid object name 'STRING_SPLIT'.
Thanks in advance for any hints.

@WilliamAntonRohm For awareness.

@Willem-J-an, @squiggel1 -- thank you for your feedback.  Please consider these resources:

SQL Server on Microsoft Q&A
DBA Stack Exchange
Stack Overflow


Material Design Lite (MDL) Support

Hi, thanks for this awesome app.
That would be nice, if we could use copy the class for the material design lite as well.
Such as .mdl-color--blue-300 or .mdl-color-text--blue-300
You can see more here http://blog.jonathanargentiero.com/material-design-lite-color-classes-list
It should be easy to implement that. Something like ".mdl-color--{color}-{number}" and ".mdl-color-text--{color}-{number}"
My suggest for the menu would be "MDL" and "MDL Text"
I'm happy to give try if you are interested on that.

Yeah, that could be useful. Go ahead! I'll probably end up changing the menu with arrows on top to be a drop down to start supporting more modes.

This would actually be pretty nice


Fix macOS test failures by registering components in the core library

🦟 Bug fix
Fixes #2204
Needs https://github.com/gazebo-tooling/release-tools/pull/1051
Summary
A better solution to the problem of components being registered by plugins is in https://github.com/gazebosim/gz-sim/pull/1836, but backporting that to citadel was not trivial. The solution in this PR is to force-register all built-in components in the core library by including the components.hh header (only for macOS). This fixes all of the gz-sim tests mentioned in #2204 locally.
Checklist

[ ] Signed all commits for DCO
[ ] Added tests
[ ] Updated documentation (as needed)
[ ] Updated migration guide (as needed)
[ ] Consider updating Python bindings (if the library has them)
[ ] codecheck passed (See contributing)
[ ] All tests passed (See test coverage)
[ ] While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

Not sure why EntityFeatureMapFixture is failing, but it's also failing on the stable CI, so I'll go ahead and merge.


A patch to use with CRA

I'm trying to use this library in my project excalidraw-claymate.
There was some issues installing from npm, and I finally made it work with local build.
Here's the patch file I created, for someone interested.
diff --git a/package.json b/package.json
index 6657759..7f09b01 100644
--- a/package.json
+++ b/package.json
@@ -3,6 +3,7 @@
   "version": "0.0.1",
   "description": "Convert SVG to Excalidraw’s file format",
   "main": "dist/bundle.js",
+  "types": "svg-to-excalidraw.d.ts",
   "files": [
     "dist/bundle.js",
     "svg-to-excalidraw.d.ts"
@@ -16,7 +17,6 @@
     "fix:other": "yarn prettier -- --write",
     "lint:check": "eslint .",
     "lint:write": "eslint . --fix",
-    "postinstall": "husky install",
     "prettier": "prettier \"**/*.{css,scss,json,md,html,yml}\" --ignore-path=.eslintignore",
     "test": "yarn test:typecheck && yarn test:code && yarn test:other",
     "test:code": "eslint --max-warnings=0 --ignore-path .gitignore --ext .js,.ts,.tsx .",
diff --git a/webpack.config.js b/webpack.config.js
index 69e348f..377fc54 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -10,7 +10,7 @@ const babelLoaderConfig = {
       "@babel/plugin-proposal-class-properties",
       "@babel/plugin-proposal-object-rest-spread",
     ],
-    presets: ["@babel/typescript"],
+    presets: ["@babel/preset-env", "@babel/typescript"],
   },
 };

@dai-shi Very cool that you are integrating this into excalidraw-claymate! Thanks for the bug report. What are the errors you are seeing?

yarn install failed -> husky not found
type definition not found
yarn build is ok, but running app failed -> dist/bundle.js has optional chaining

@dai-shi Thanks for the description of the issues. I've created a PR to hopefully address your issues.


(GH-426) Pin Pester 4 version

Description
The Pester tests fail to run (locally) if Pester v5 is installed. Pin Pester to latest version 4.
Related Issue
#426
Motivation and Context
This allows the Pester tests to run locally. And will also run when the in the automated build (when they are enabled).
How Has This Been Tested?
While working on #438 I noticed the Pester tests were failing as I had Pester v5 installed. When switching to Pester v4 everything worked as expected.
Types of changes

[X] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[X] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[X] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

@pauby this has been addressed as part of the work in getting build to work on AppVeyor, and as a result, no longer required.


debian-apt: cache_valid_time without update_cache

Reading ansible doc cache_valid_time used without update_cache will
not update apt cache.

http://docs.ansible.com/ansible/apt_module.html

If update_cache is specified and the last run is less or equal than cache_valid_time seconds ago, the update_cache gets skipped.

Doc example :
# Only run "update_cache=yes" if the last one is more than 3600 seconds ago
- apt: update_cache=yes cache_valid_time=3600

This commit add update_cache flag to ensure apt is updated to setup java.
I didn't see how to contrib part in your readme. I did the pull request on develop branch is ok for you or I need to do in on master ?
Regards,

@gaelL this is perfect. thank you! I'll make new release...


Documentation bug

On some pages  the "concepts|configuration|api..." menu is missing. I don't think this is intentional but I might be wrong.

doesn't look right indeed, guess it needs a fix

@renzhentaxi Please tell us which browser and also post Console errors, if any.

I am able to reproduce too on latest chrome, land on documentation the menu is missing, switch on left-hand side to any subsequent section and menu appears


Prepare for Erlang/OTP 22

Closes #502

Verified locally on Erlang/OTP 22.0 and 22.0.1.

Looks great - would you mind adding 22.0 and dropping 19 from the .travis.yml file in this PR too?

The .travis.yml update is done, too.

Thanks so much!

I'll need to roll a new release later today

Released 3.7.0 to hex and tagged here. Thanks!


Improve quality of results of MegaBoom design

Description
After learning more about Chipyard+MegaBoom and how it is built with commercial tools.
Here is the order to things to improve quality of results best as I know:

Build BoomTile with set_clock_latency roughly equal to average clock insertion latency. Single clock.
Set synchronous reset to false path, for now.
Flatten BoomTile and get macro placement to do a decent job without hierarchical analysis, will certainly require macro placement constraints file. Syntax TBD.
Build L2 cache(InclusiveCache) as a macro in the same way as BoomTile, with source latency.
Update clock tree synthesis to take macro insertion latency into account
Build ChipTop flattened.
Yosys / OpenROAD will need register retiming and cloning as the Chipyard MegaBoom design depends on it.  Commercial tools get to 1000ps clock period on 28nm.

There is an asynchronous FIFO crossing between BoomTile and L2, which both connects to a system bus.  With this asynchronous FIFO, the skew of the clock tree insertion latency of BoomTile and L2 won't matter w.r.t. the ChipTop pins. I tried and failed to find a macro that had this asynchronous FIFO inside of it. It turns out that TilePRCIDomain, if configured with an asynchronous FIFO crossing, only has one half of the FIFO; the ChipTop design really has to be flattened the way that RTL is structured.
Some screenshots from bazelisk build BoomTile_route BoomTile_route_orfs and bazel-bin/logs/asap7/BoomTile/base/route.sh gui_route:

Suggested Solution
Keep improving OpenROAD
Additional Context
No response

@rovinski @tspyrou @maliberty @louiic @precisionmoon I thought it was useful to write up a feature request that gives some context to the individual improvements in the pipeline.

Other than the items that are already open I'm not clear what you are requesting.  Retiming is a large task and would be a yosys task so you would have to get their interest in it.

Other than the items that are already open I'm not clear what you are requesting. Retiming is a large task and would be a yosys task so you would have to get their interest in it.

There is no request here, but I thought it would be useful to have a public writeup that ties together why these individual improvements are requested.


[WIP] Add using std::pow to model code generator (Issue #1809 in math)

Submission Checklist

[ ] Run unit tests: ./runTests.py src/test/unit
[ ] Run cpplint: make cpplint
[x] Declare copyright holder and open-source license: see below

Summary
This is an alternate fix to https://github.com/stan-dev/math/pull/1810.
Work in progress, don't merge. It shouldn't work with mingw as it is anyway.
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company): Columbia University
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses:

Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

Hahahahaha well this took me a while to figure out why this didn't bring in a copy of std::pow:
generate_using("std::log", o);

Oof, take 2.

Do the tests here use the old or new compiler?

This is testing against the math in develop. So it has a pow implementation only for mingw.

(So we'd expect the tests here to pass everywhere but Windows)

Can we merge this?

I think this is the way to go, but let's wait and see if there are any disagreements (https://discourse.mc-stan.org/t/using-std-pow-inside-stan-math-namespace/13975/14).
If I get nothing back by tonight I'll merge this, put up a math pull to remove the mingw pow stuff, ping you to check out how to do this in stanc3, and set up some time in the future for us all to talk through the interaction of the std and stan::math namespaces.

Cool beans!


[Dev][Archery] Remove JIRA remnants from archery

Describe the enhancement requested
This is a follow up from:

https://github.com/apache/arrow/issues/44934

To remove the related JIRA code from archery.
Component(s)
Archery, Developer Tools, Documentation
Component(s)
Archery, Developer Tools

Issue resolved by pull request 45091
https://github.com/apache/arrow/pull/45091


Simplify initializer injection policy

current
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  annotations:
    policy.sidecar.istio.io: policy.sidecar.istio.io/force-on
  name: my-deployment
# etc ...

proposed
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  annotations:
    sidecar.istio.io/inject-override: true
  name: my-deployment
# etc ...

sidecar.istio.io/inject-override becomes a tristate boolean with the following semantics.
# Override default global policy and inject sidecar. Has no affect if global policy is `opt-out`.
sidecar.istio.io/inject-override: true

# Override default global policy and do not inject sidecar. Has no affect if global policy is `opt-in`.
sidecar.istio.io/inject-override: false

# No annotation (i.e. missing key) or unknown value results in default behavior.

/cc @frankbu, @linsun

This looks good to me, but maybe it would be a little better to name it sidecar.istio.io/inject since true means inject, and false means don't inject. The name sidecar.istio.io/inject-override could be interpreted to mean "override the specified cluster injection policy", yes (true) or no (false).

The name sidecar.istio.io/inject-override could be interpreted to mean "override the specified cluster injection policy", yes (true) or no (false).

That is what it means :) It overrides the default injection policy of the cluster. This was my original intent for using force-on/force-off instead of a boolean - to make the intent explicit.

I understand, but my point is that there are two possible interpretations of the values true and false.
Option 1
true => do inject when the default policy is to not inject
false => don't inject when the default policy is to inject
Option 2
true => invert the default policy (if default is inject, then don't, if default is don't inject, then do)
false => do what the default policy says.
I was thinking that the name -override might be a little less obvious that the behavior is Option 1. Either way, I think it's fine.

It could be just me... i have mentally associated opt-out to opt-out injection thus no injection.  opt-in means yes i want the injection.  BTW, what would be the default values for these after user installed istio?
i like sidecar.istio.io/inject better.  i think given it is specified in the deployment, it will be considered an override by default to the cluster level config.
BTW, do you intend to allow user to specify this at the deployment level?  I asked because i could have a deployment but i'm not exposing it as a service.

opt-out at the cluster level means that users need to "opt out" if they don't want injection. opt-in is the opposite. opt-out is the default according to the doc in Jason's code.
Deployment is one of the resources that injection applies to, whether or not there is an exposed service.

yes Jason explained to me on slack... i got it but i have to look up many times before i can get used to it since my mental model is not there yet. :-(
Also, i understand deployment is the resource that injection applies to.... conceptually, you only want the injection if you actually expose the deployment as the service, else, i could have a envoy side car injected but no use.

+1 to switch the meaning of opt-in and opt-out as proposed by @linsun , I also need to check many times to understand it.

Also, i understand deployment is the resource that injection applies to.... conceptually, you only want the injection if you actually expose the deployment as the service, else, i could have a envoy side car injected but no use.

This is not possible unless the user explicitly annotates the resource with "force-off". Services may be created after the deployments that implement them are created. Also, outbound traffic is still proxied to other Istio services even if the deployment workload itself doesn't expose a service itself.

i have mentally associated opt-out to opt-out injection thus no injection. opt-in means yes i want the injection. BTW, what would be the default values for these after user installed istio?

Opt-out would eventually be the default, e.g. sidecar is injected into resources except those explicitly opted out via per-resource annotation.

@ayj agree to make opt-out by default, but still a bit confused when for opt-out and opt-in, how about using disabled and enabled instead? The logic in my mind is as following, what do you think?
const (
	// InjectionPolicyOff disables the initializer from modifying
	// resources. The pending 'status.sidecar.istio.io initializer'
	// initializer is still removed to avoid blocking creation of
	// resources.
	InjectionPolicyOff InjectionPolicy = "off"

	// InjectionPolicyDisabled specifies that the initializer will not
	// inject the sidecar into resources by default for the
	// namespace(s) being watched. Resources can enable injection using the
	// "policy.sidecar.istio.io" annotation with value of
	// policy.sidecar.istio.io/force-on.
	InjectionPolicyDisabled InjectionPolicy = "disabled"

	// InjectionPolicyEnabled specifies that the initializer will
	// inject the sidecar into resources by default for the
	// namespace(s) being watched. Resources can disable injection using the
	// "policy.sidecar.istio.io" annotation with value of
	// policy.sidecar.istio.io/force-off.
	InjectionPolicyEnabled InjectionPolicy = "enabled"

	// DefaultInjectionPolicy is the default injection policy.
	DefaultInjectionPolicy = InjectionPolicyEnabled
)

func injectRequired(namespacePolicy InjectionPolicy, obj metav1.Object) bool {
	var resourcePolicy string

	annotations := obj.GetAnnotations()
	if annotations == nil {
		resourcePolicy = istioSidecarAnnotationPolicyValueDefault
	} else {
		var ok bool
		if resourcePolicy, ok = annotations[istioSidecarAnnotationPolicyKey]; !ok {
			resourcePolicy = istioSidecarAnnotationPolicyValueDefault
		}
	}

	var required bool
	switch namespacePolicy {
	case InjectionPolicyDisabled:
		if resourcePolicy == istioSidecarAnnotationPolicyValueForceOn {
			required = true
		}
	case InjectionPolicyEnabled:
		if resourcePolicy != istioSidecarAnnotationPolicyValueForceOff {
			required = true
		}
	}

	status, ok := annotations[istioSidecarAnnotationStatusKey]

	// avoid injecting sidecar to resources previously modified with kube-inject
	if annotations != nil && checkDeprecatedAlphaAnnotation {
		if _, ok = annotations[deprecatedIstioSidecarAnnotationSidecarKey]; ok {
			required = false
		}
	}

	glog.V(2).Infof("Sidecar injection policy for %v/%v: namespace:%v resource:%v status:%q required:%v",
		obj.GetNamespace(), obj.GetName(), namespacePolicy, resourcePolicy, status, required)

	if !required {
		return false
	}

	// TODO - add version check for sidecar upgrade

	return !ok
}

With above logic, I think we can still use policy.sidecar.istio.io/force-on and policy.sidecar.istio.io/force-off @ayj

Looks good to me. Maybe we change InjectionPolicy to DefaultInjectionPolicy at the same time , otherwise disabled without referring to your comment seems like it would disable the initializer all together. We could also adopt  @frankbu's option 1 suggestion to use true/false with sidecar.istio.io/inject.
That would give us the following truth table.

off => no injection regardless of annotation, initializer only removes itself from pending list, deprecated/removed if k8s supports per-namespace config natively
disabled, no annotation => nothing
disabled, false annotation => nothing
disabled, true annotation => inject!
enabled, no annotation => inject!
enabled, false annotation => nothing
enabled, true annotation => inject!

@frankbu, @linsun - thoughts?

@ayj +1 with above logic.

Maybe we change InjectionPolicy to DefaultInjectionPolicy at the same time , otherwise disabled without referring to your comment seems like it would disable the initializer all together.

Can you please explain more for above comments? did not catch that much.

To me InjectionPolicy=disabled suggestions that we won't ever inject whereas DefaultinjectionPolicy=disabled just means we won't by default but that can be overridden per-deployment.

@ayj Do you mean I need to update the comments as following for DefaultInjectionPolicy = InjectionPolicyEnabled?
const (
	...
	// InjectionPolicyEnabled is the default injection policy.
	DefaultInjectionPolicy = InjectionPolicyEnabled
)

LGTM. Default injection policy is one of off|enabled|disabled, and to override enabled/disabled, use annotation sidecar.istio.io/inject=true|false.

@ayj Do you mean I need to update the comments as following for DefaultInjectionPolicy = InjectionPolicyEnabled?

I was referring to changing the name of the type itself, e.g.
type DefaultInjectionPolicy string
const (
    DefaultInjectionPolicyOff      DefaultInjectionPolicy = "off"
    DefaultInjectionPolicyEnabled  DefaultInjectionPolicy = "off"
    DefaultInjectionPolicyDisabled DefaultInjectionPolicy = "off"
)

Fixed by https://github.com/istio/pilot/pull/1208


Add Support for Nothing OS

Optimizing and refining the module to work seamlessly on stock Nothing OS for Nothing Devices like Phone 1 and 2 would be appreciated!

From my personal testing on Nothing ph(1) Pixelify works great on NothingOS.

Running Pixelify on NOS 2.5.1 on a Phone (2) works great


Problem install on macOs Monterey

Hello,
I'm running on macOs Monterey, Python 3.9.6
I'm trying to install PyPortfolioOpt, managed to install cvxpy and cvxopt, but running now in a problem, it seems to be linked to CMake and qdldl :
Collecting osqp>=0.4.1
  Using cached osqp-0.6.2.post8.tar.gz (227 kB)
  Installing build dependencies ... error
  error: subprocess-exited-with-error

  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [156 lines of output]
      Collecting oldest-supported-numpy
        Using cached oldest_supported_numpy-2022.11.19-py3-none-any.whl (4.9 kB)
      Collecting setuptools>=40.8.0
        Using cached setuptools-67.6.0-py3-none-any.whl (1.1 MB)
      Collecting wheel
        Using cached wheel-0.40.0-py3-none-any.whl (64 kB)
      Collecting setuptools_scm>=6.2
        Using cached setuptools_scm-7.1.0-py3-none-any.whl (43 kB)
      Collecting qdldl
        Using cached qdldl-0.1.5.post3.tar.gz (69 kB)
        Preparing metadata (setup.py): started
        Preparing metadata (setup.py): finished with status 'done'
      Collecting numpy==1.21.0
        Using cached numpy-1.21.0-cp39-cp39-macosx_11_0_arm64.whl (12.1 MB)
      Collecting tomli>=1.0.0
        Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
      Collecting typing-extensions
        Using cached typing_extensions-4.5.0-py3-none-any.whl (27 kB)
      Collecting packaging>=20.0
        Using cached packaging-23.0-py3-none-any.whl (42 kB)
      Collecting scipy>=0.13.2
        Using cached scipy-1.10.1-cp39-cp39-macosx_12_0_arm64.whl (28.9 MB)
      Building wheels for collected packages: qdldl
        Building wheel for qdldl (setup.py): started
        Building wheel for qdldl (setup.py): finished with status 'error'
        error: subprocess-exited-with-error

        × python setup.py bdist_wheel did not run successfully.
        │ exit code: 1
        ╰─> [50 lines of output]
            running bdist_wheel
            running build
            running build_ext
            Traceback (most recent call last):
              File "/private/var/folders/gn/sd8hz76j17l47t6f3qcw19080000gn/T/pip-install-yoancfsg/qdldl_904eb7c6bd2a485ab56192affafec6e0/setup.py", line 81, in build_extensions
                check_output(['cmake', '--version'])
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 424, in check_output
                return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 505, in run
                with Popen(*popenargs, **kwargs) as process:
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 951, in __init__
                self._execute_child(args, executable, preexec_fn, close_fds,
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1821, in _execute_child
                raise child_exception_type(errno_num, err_msg, err_filename)
            FileNotFoundError: [Errno 2] No such file or directory: 'cmake'

            During handling of the above exception, another exception occurred:

            Traceback (most recent call last):
              File "<string>", line 2, in <module>
              File "<pip-setuptools-caller>", line 34, in <module>
              File "/private/var/folders/gn/sd8hz76j17l47t6f3qcw19080000gn/T/pip-install-yoancfsg/qdldl_904eb7c6bd2a485ab56192affafec6e0/setup.py", line 113, in <module>
                setup(name='qdldl',
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
                return distutils.core.setup(**attrs)
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 148, in setup
                dist.run_commands()
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 966, in run_commands
                self.run_command(cmd)
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
                cmd_obj.run()
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 299, in run
                self.run_command('build')
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
                self.distribution.run_command(command)
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
                cmd_obj.run()
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/command/build.py", line 135, in run
                self.run_command(cmd_name)
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
                self.distribution.run_command(command)
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
                cmd_obj.run()
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 79, in run
                _build_ext.run(self)
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/command/build_ext.py", line 340, in run
                self.build_extensions()
              File "/private/var/folders/gn/sd8hz76j17l47t6f3qcw19080000gn/T/pip-install-yoancfsg/qdldl_904eb7c6bd2a485ab56192affafec6e0/setup.py", line 83, in build_extensions
                raise RuntimeError("CMake must be installed to build qdldl")
            RuntimeError: CMake must be installed to build qdldl
            [end of output]

        note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed building wheel for qdldl
        Running setup.py clean for qdldl
      Failed to build qdldl
      Installing collected packages: wheel, typing-extensions, tomli, setuptools, packaging, numpy, setuptools_scm, scipy, oldest-supported-numpy, qdldl
        Running setup.py install for qdldl: started
        Running setup.py install for qdldl: finished with status 'error'
        error: subprocess-exited-with-error

        × Running setup.py install for qdldl did not run successfully.
        │ exit code: 1
        ╰─> [52 lines of output]
            running install
            running build
            running build_ext
            Traceback (most recent call last):
              File "/private/var/folders/gn/sd8hz76j17l47t6f3qcw19080000gn/T/pip-install-yoancfsg/qdldl_904eb7c6bd2a485ab56192affafec6e0/setup.py", line 81, in build_extensions
                check_output(['cmake', '--version'])
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 424, in check_output
                return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 505, in run
                with Popen(*popenargs, **kwargs) as process:
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 951, in __init__
                self._execute_child(args, executable, preexec_fn, close_fds,
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1821, in _execute_child
                raise child_exception_type(errno_num, err_msg, err_filename)
            FileNotFoundError: [Errno 2] No such file or directory: 'cmake'

            During handling of the above exception, another exception occurred:

            Traceback (most recent call last):
              File "<string>", line 2, in <module>
              File "<pip-setuptools-caller>", line 34, in <module>
              File "/private/var/folders/gn/sd8hz76j17l47t6f3qcw19080000gn/T/pip-install-yoancfsg/qdldl_904eb7c6bd2a485ab56192affafec6e0/setup.py", line 113, in <module>
                setup(name='qdldl',
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
                return distutils.core.setup(**attrs)
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/core.py", line 148, in setup
                dist.run_commands()
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 966, in run_commands
                self.run_command(cmd)
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
                cmd_obj.run()
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/command/install.py", line 61, in run
                return orig.install.run(self)
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/command/install.py", line 562, in run
                self.run_command('build')
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
                self.distribution.run_command(command)
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
                cmd_obj.run()
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/command/build.py", line 135, in run
                self.run_command(cmd_name)
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/cmd.py", line 313, in run_command
                self.distribution.run_command(command)
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/dist.py", line 985, in run_command
                cmd_obj.run()
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 79, in run
                _build_ext.run(self)
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/distutils/command/build_ext.py", line 340, in run
                self.build_extensions()
              File "/private/var/folders/gn/sd8hz76j17l47t6f3qcw19080000gn/T/pip-install-yoancfsg/qdldl_904eb7c6bd2a485ab56192affafec6e0/setup.py", line 83, in build_extensions
                raise RuntimeError("CMake must be installed to build qdldl")
            RuntimeError: CMake must be installed to build qdldl
            [end of output]

        note: This error originates from a subprocess, and is likely not a problem with pip.
      error: legacy-install-failure

      × Encountered error while trying to install package.
      ╰─> qdldl

is there a way to solve this ?
Thanks !

I guess this issue relate to https://github.com/robertmartin8/PyPortfolioOpt/issues/426, it is a problem of cmake on macos. Please check that and confirm the issue. Many thanks.


⚠ Spryr has degraded performance

In 0b095c2, Spryr (https://spryr.com) experienced degraded performance:

HTTP code: 200
Response time: 4753 ms

Resolved: Spryr performance has improved in b272dc2 after 7 minutes.


Write content for November 2019 Question: Allow for Alternative Initiative Signatures for Persons with Disabilities Amendment

https://ballotpedia.org/Maine_Allow_for_Alternative_Initiative_Signatures_for_Persons_with_Disabilities_Amendment_(2019)

Question title
Description (will display on homepage)
The gist
Ballot question (exact text of the question)
Yes means
No means
Tell me more
Follow the money
The money will be used to
The money will be coming from
Pros
Cons
Who cares
Support
Opposition
Further reading
References
Tags
Election date

Testing if this works

Testing again

@elburnett I fleshed out the template a little bit more and added the link to the full text of the question.  It doesn't post edits to comments to Slack, so if you want people to know you've made edits that are ready to review, add a comment letting us know you made edits.
Can you also keep in mind things it would be helpful to add to the template for future questions as you're filling it out?

We need to get this content written.  Last year, people starting coming to the website in September.  I have time to get it started today.

Draft content is in the issue description.  Does anyone have time to review?

Here it is on the site.  I'd still like to get some other eyeballs on this, so let me know if you have any feedback.
https://maineballot.org/november 2019 election/Q1_AltSignature/

The new bond issue is now question 1, so this one needs to become question 2.


0.7.0 fails even if there is no error

When running this action, the workflows fails, even if there's no evident error and all the actions are checked:

The job is configured like this:
jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
        with:
          # Access token with `workflow` scope is required
          token: ${{ secrets.ACTION_GITHUB_TOKEN }}

      - name: Run GitHub Actions Version Updater
        uses<EMAIL_ADDRESS>        with:
          # Optional, This will be used to configure git
          # defaults to `github-actions[bot]` if not provided
          #committer_username: 'test'
          #committer_email<EMAIL_ADDRESS>          # Optional, allows customizing the commit message and pull request title
          # Both default to 'Update GitHub Action Versions'
          commit_message: 'Github Actions versions have changed'
          pull_request_title: 'Github Actions versions have changed'
          # Access token with `workflow` scope is required
          token: ${{ secrets.ACTION_GITHUB_TOKEN }}
          release_types: major

Hi @ASarco, Thanks for reporting the issue. I have tried to reproduce this using the same configuration but I did not see this error.
Can you please provide some more details?
Such as:

Is the repository private or public?
Did this happen only once or every time?

If possible can you provide the full raw log?

Hi @saadmk11,
Yes it happens every time.
It's a private repo.
It used to work fine with the previous version 0.5.6, but I needed to be alerted only on major releases.
Happy to provide you with the full raw log, bout how do I get it?

Hi @saadmk11, Yes it happens every time. It's a private repo. It used to work fine with the previous version 0.5.6, but I needed to be alerted only on major releases.
Happy to provide you with the full raw log, bout how do I get it?

Click on View Raw Logs on the Jobs page.

4_Run GitHub Actions Version Updater.txt
Looking at that log, seems like the error is:
FileNotFoundError: [Errno 2] No such file or directory: '.github/workflows/kubernetes-test.yaml'
But there is no such a file in .github/workflows/ :

Where is the action picking the .yaml files from?

4_Run GitHub Actions Version Updater.txt Looking at that log, seems like the error is: FileNotFoundError: [Errno 2] No such file or directory: '.github/workflows/kubernetes-test.yaml' But there is no such a file in .github/workflows/ :  Where is the action picking the .yaml files from?

The Action is Using GitHub's List repository workflows API https://docs.github.com/en/rest/actions/workflows#list-repository-workflows
We probably need to skip the file if it does not exist.

Same issue in the private repo with a file that no longer exists.

This bug should be fixed on v0.7.1. Please try it out and re-open the issue if the bug exists. :)


Typo in MudDrawer.razor.cs code

Bug type
Component
Component name
MudDrawer
What happened?
Missing "L" in "BreakPointListener"
Expected behavior
Just a typo on a few lines, like Line 269
Reproduction link
https://github.com/MudBlazor/MudBlazor/blob/dev/src/MudBlazor/Components/Drawer/MudDrawer.razor.cs#L269
Reproduction steps

...
Relevant log output
No response
Version (bug)
Latest
Version (working)
No response
What browsers are you seeing the problem on?
Other
On what operating system are you experiencing the issue?
Other
Pull Request

[ ] I would like to do a Pull Request

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Hello,
I apologize, but I couldn't locate the typo you mentioned. It seems that the line points to the "dev" branch and the the file has already been modified. Additionally, it would be great if the community could submit pull requests to address such errors, rather than waiting for the core team members to identify them.
Closing the matter.


Drag and drop file into menubar crashes application

I tried dragging and dropping a .txt file into the menubar application. The GUI immediately went completely black and is unresponsive. The error messages are hidden by the black screen as well.
Error: Asked for /Users/hotmdev5/Desktop/ratemtests.txt but it was not precompiled!
    at FileChangedCache.getCacheEntryForPath (/Applications/IPFS Desktop.app/Contents/Resources/app/node_modules/electron-compile/lib/file-change-cache.js:218:15)
    at /Applications/IPFS Desktop.app/Contents/Resources/app/node_modules/electron-compile/lib/file-change-cache.js:127:41
    at Generator.next (<anonymous>)
    at step (/Applications/IPFS Desktop.app/Contents/Resources/app/node_modules/electron-compile/lib/file-change-cache.js:27:191)
    at /Applications/IPFS Desktop.app/Contents/Resources/app/node_modules/electron-compile/lib/file-change-cache.js:27:437
    at new Promise (<anonymous>)
    at /Applications/IPFS Desktop.app/Contents/Resources/app/node_modules/electron-compile/lib/file-change-cache.js:27:99
    at FileChangedCache.getHashForPath (/Applications/IPFS Desktop.app/Contents/Resources/app/node_modules/electron-compile/lib/file-change-cache.js:177:7)
    at /Applications/IPFS Desktop.app/Contents/Resources/app/node_modules/electron-compile/lib/compiler-host.js:298:51
    at Generator.next (<anonymous>)```

Closing as unrelated to the newer version.

@hacdias drag and drop is not working for me on 0.6.0 pre-release. Was that feature removed?

@daviddias yes, it was removed. But the steps to drag-n-drop are the same: open menubar -> Click on Files -> drop to the files window. The only difference is that the Files window is part of Web UI, hence separated from the main menubar window.


Update odh-manifests to ecde1d4 for v1.14 release

Signed-off-by: Landon LaSmith<EMAIL_ADDRESS>
Description
Update odh-manifests submodule to https://github.com/red-hat-data-services/odh-manifests/commit/ecde1d4de816fa1413f7126832a76e954d4b9bc8
How Has This Been Tested?

Merge criteria:

[ ] The commits are squashed in a cohesive manner and have meaningful messages.
[ ] For commits that came from upstream, [UPSTREAM] has been prepended to the commit message.
[ ] JIRA link(s): RHODS-4236
[ ] The Jira story is acked.
[ ] Live build image:
[ ] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[ ] The developer has manually tested the changes and verified that the changes work

/lgtm


Refactor subquery from queryRelation to queryStatement

What type of PR is this：

[ ] bug
[ ] feature
[x] enhancement
[ ] others

Which issues of this PR fixes ：

Fixes #4480
Fixes #4481
Problem Summary(Required) ：

Replace the queryRelation stored in the original subquery with QueryStatement. Because queryRelation is an abstract class, it cannot be directly visited, but queryRelation contains the public parts of query (CTE, SORT). The logic of this part is unified in visitQueryStatement. The substitution here can avoid the wrong use of visit access

run starrocks_fe_unittest

run starrocks_fe_unittest

[FE PR Coverage check]
:heart_eyes: pass : 80 / 92 (86.96%)
file detail

path
covered line
new line
coverage

:large_blue_circle:
com/starrocks/sql/optimizer/transformer/SqlToScalarOperatorTranslator.java
0
1
00.00%

:large_blue_circle:
com/starrocks/sql/analyzer/ExpressionAnalyzer.java
5
10
50.00%

:large_blue_circle:
com/starrocks/sql/analyzer/AST2SQL.java
3
4
75.00%

:large_blue_circle:
com/starrocks/sql/ast/AstVisitor.java
7
9
77.78%

:large_blue_circle:
com/starrocks/analysis/Subquery.java
5
6
83.33%

:large_blue_circle:
com/starrocks/sql/parser/AstBuilder.java
5
6
83.33%

:large_blue_circle:
com/starrocks/sql/optimizer/transformer/SubqueryTransformer.java
15
16
93.75%

:large_blue_circle:
com/starrocks/sql/analyzer/QueryAnalyzer.java
7
7
100.00%

:large_blue_circle:
com/starrocks/sql/optimizer/transformer/RelationTransformer.java
8
8
100.00%

:large_blue_circle:
com/starrocks/sql/analyzer/AnalyzerUtils.java
6
6
100.00%

:large_blue_circle:
com/starrocks/sql/ast/SubqueryRelation.java
6
6
100.00%

:large_blue_circle:
com/starrocks/sql/analyzer/AggregationAnalyzer.java
2
2
100.00%

:large_blue_circle:
com/starrocks/sql/ast/ViewRelation.java
6
6
100.00%

:large_blue_circle:
com/starrocks/sql/ast/CTERelation.java
3
3
100.00%

:large_blue_circle:
com/starrocks/sql/common/UnsupportedException.java
2
2
100.00%


WkWebView does not allow PUT method in iOS devices using ionic3

Earlier I was using UIWebViewEngine in my ionic 3 projects but this was resulting in slow scrolling of list in iOS devices. After going through http://jayantpaliwal.com/2017/07/tips-for-ionic-app-to-perform-better-in-ios/ I changed UIWebViewEngine to WkWebViewEngine, my scrolling issue got fixed, but now a new issue has raised. When performing a PUT request from an iOS device my server is giving "Method PUT is not allowed by access-control-allow-methods" but this is working fine in android device.
When I roll back to UIWebViewEngine, it is working fine but scrolling issue raised again.
Please suggest your solutions. Do we have do configuration in backed OR frontend

WKWebView requires you to properly configure CORS in your server. See https://ionicframework.com/docs/faq/cors


WIP: Allow Django 4.2 (and 4.2rc1).

Hi @liminspace,
Please take a look at this PR.  AFAIK Django 4.2 doesn't break this package.

+1 4.2 officially released please update your package

Hi guys, thanks for your activity. I'll update the package this week.

Version 1.1 has been released.


Bar plot: proportion markers on the Map Viz Tool should display counts

Discussed in 5/2/2022 EDA UX meeting.
Bar plot: proportion markers have a proportion ranging from 0-1 under the x-axis, which looks odd and is confusing (especially when all values are included, “1” is displayed on every marker). For example: "age group" in SCORE seasonal.
We decided that -- instead of displaying the proportion for the bar plot: proportion markers -- we will display counts making up each marker graphic. This is in line with what is being displayed for both bar plot: count markers and also pie markers.
Previous discussion can be found in this closed ticket: https://github.com/VEuPathDB/web-eda/issues/1025
NOTE FOR TESTERS: for the first time the back end's sampleSizeTable responses are parsed "in anger" by the front end. The parser needed some work and may fail (with pink errors) for other visualizations in edge cases (main cases have been tested). Please report any issues!

I may be able to work for this but you can also do that @bobular if you have time: because I will be off from this Wed to the weekend.

Having a go at this now.

Closed because this ticket's PR #1137 was branched into #1186 and that has been merged. So, by extension, so has this. Sorry for the confusion.  I couldn't merge the earlier PR due to back end changes.

Tested with SCORE Mozambique ("Age group" and "S. haematobium, by microscopy") and it looks good!


Fix ValueError: string argument should contain only ASCII characters; on PowerShell

Interestingly, the following two commands (genkey followed by encrypt) are working in cmd, but not PowerShell.
> cconf genkey > a.key
> cconf encrypt --keyfile a.key apples
Traceback (most recent call last):
  File "c:\program files\python38\lib\base64.py", line 37, in _bytes_from_decode_data
    return s.encode('ascii')
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\program files\python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\program files\python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "...\cconf.exe\__main__.py", line 7, in <module>
  File "...\cconf\cli.py", line 172, in main
    execute(**vars(options))
  File "...\cconf\cli.py", line 161, in execute
    encrypt(config, **options)
  File "...\cconf\cli.py", line 69, in encrypt
    log(cipher.encrypt(options["value"][0]))
  File "...\cconf\ciphers.py", line 82, in encrypt
    self._load_keys()
  File "...\cconf\ciphers.py", line 77, in _load_keys
    self._keys = read_keys(fileobj)
  File "...\cconf\ciphers.py", line 30, in read_keys
    fernets.append(Fernet(key))
  File "...\cryptography\fernet.py", line 33, in __init__
    key = base64.urlsafe_b64decode(key)
  File "c:\program files\python38\lib\base64.py", line 131, in urlsafe_b64decode
    s = _bytes_from_decode_data(s)
  File "c:\program files\python38\lib\base64.py", line 39, in _bytes_from_decode_data
    raise ValueError('string argument should contain only ASCII characters')
ValueError: string argument should contain only ASCII characters

This happened to Elia and I as well. It seems to be because PowerShell defaults to unicode and adds the utf-16 bom. The bom is not valid ASCII which causes that error.

When generating the key in Powershell, using the command cconf genkey > name_cconf.key, Powershell will write the key in Unicode as opposed to ASCII. We can see this by inspecting the file with a hex editor:

The start of the file contains FF FE, is the Unicode BOM as Josh posted above. This also explains why null characters (00) are placed after every character as Unicode's default encoding is 16 bit. Looking at the , we see this is confirmed as well:

Out-File and the redirection operators > and >> create UTF-16LE, which notably differs from Set-Content and Add-Content.

If we utilize the Set-Content command like so: Set-Content -Path .\fake.key -value (cconf genkey), our output is in good ol' ASCII. I doubt most people would want to write that instead of the simply using the > operator though.

A user can update their default encoding: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_character_encoding?view=powershell-7.4#changing-the-default-encoding
Adding $PSDefaultParameterValues['Out-File:Encoding'] = 'ascii' to my Powershell Profile causes our output to go back to normal when using cconf genkey > name_cconf.key:

I think this is less a problem with cconf, and more a problem with Powershell configuration.

How about an -o option for specifying a filename, e.g. cconf genkey -o secret.key? Then we can bypass the issue of > writing UTF-16.


approle: Add AppRole authentication method

This commit add the ability to authenticate on the approle endpoint.
On a shared concourse ci, you may not want to use a common certificate which will give the same rights to every pipelines/teams.
Using a specific policy for a role allow to have more granular ACL across your pipelines.
To not break default behavior and existing pipelines, I kept the aws-ec2 authentication as default.
Fix #5

If you want to make some tests against this patch, here is the container to use : https://hub.docker.com/r/cycloid/concourse-vault-resource/

Awesome, thanks for implementing this.


Allow Trusted Intermediary clients not to have an email address

Description
This makes the email address field optional when adding a new client in the TI dashboard. Because we already support guest accounts without an email address, it works to simply remove the validation enforcing a value for the email address.
Additionally, this changes the input type of the email field to an email type. This adds some validation to ensure that if a value is entered, it looks like an actual email address.
Checklist
General
Read the full guidelines for PRs here

[x] Added the correct label: < feature | bug | dependencies | infrastructure | ignore-for-release | database >
[ ] Created unit and/or browser tests which fail without the change (if possible)
[ ] Performed manual testing (Chrome and Firefox if it includes front-end changes)
[ ] Extended the README / documentation, if necessary

Instructions for manual testing
Add new clients as a TI, both with and without email addresses and ensure all the flows work correctly.
Issue(s) this completes
Fixes https://github.com/civiform/civiform/issues/4908

This is really cool!!

Can you please add a Browser test to create a Client without email and check if it's getting created successfully?


I want to connect my app with a backend via ddp

I have managed to consume data from an http backend but now I am looking to connect to a supported meteor that its connection type is ddp and I can not perform the queries in the same way as http, someone has managed to implement the plugin that comes out on the official flutter website ? https://pub.dartlang.org/packages/ddp? or managed to connect in some other way to a backend via ddp?

If pub.dartlang.org doesn't provide such a package, there probably isn't one yet.
Doesn't Meteor also support GraphQL? (never tried Meteor myself and have no related knowledge)

I have never used graphql but I will investigate a little

So.. there is this package https://pub.dev/packages/ddp from https://github.com/haoguo/ddp
That claims to be a ddp package for dart/flutter. have you tried it?

This package has issues and It looks like author don't use github anymore.

Closing as this appears to be a request for help with project-level code rather than a feature request, so would be suited for one of the resources at https://flutter.dev/community#community-grid rather than the issue tracker.


Any Support for Azure Shell?

There does not seem to be a Connect-IPPSession on the cloud shell?

@ashah7 Please give the detail of the document you are referring to. Thanks.

@ashah7 We appreciate any feedback that improves the content in the Microsoft docs but we haven't had any response from you so we are going to close this issue.
Please feel free to re-open this issue if you see an improvement is required in the specific area of this documentation. We will certainly update this documentation with that valuable information. Thanks again, for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


Force require order in JS to be respected

Hi,
Is there any way I can force the order in which JS files are required to be respected. It seems like things are placed in some order I do not have control over. I have code in a
$(document).ready(function() {
..
}

That depends on some JS to be included, which it is, but below that function.
require('./wow.min');
require('./main');

I expect the code of main to be below that of wow.min in my public/js/app.js file, but it isn't.

It's an issue with the WOW library. It doesn't do well with packaging tools.


Rok cesnovar gpu setup

Submission Checklist

[X] Run unit tests: ./runTests.py test/unit
[X] Run cpplint: make cpplint
[X] Declare copyright holder and open-source license: see below

Summary:
Makes GPU stuff work on Linux. Merge this on top of
https://github.com/stan-dev/math/pull/720
Intended Effect:
Avoid linker errors
How to Verify:
./runTests.py test/unit -f opencl
Side Effects:
None
Documentation:
None
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company): Trustees of Columbia University
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses:

Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

@bgoodri should this be merged into the GPU setup branch or should we merge the GPU branch and then this branch?

I think either would do but merging it into another existing branch would
lessen the burden on whoever eventually merges it.
On Mon, Apr 30, 2018 at 1:03 PM, Steve Bronder<EMAIL_ADDRESS>wrote:

@bgoodri https://github.com/bgoodri should this be merged into the GPU
setup branch or should we merge the GPU branch and then this branch?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/stan-dev/math/pull/849#issuecomment-385462402, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADOrquuzcz9Iosh09rG33cGlNu2Ca5f7ks5tt0PxgaJpZM4Tr8J0
.

This was merged with the other PR. I'm not actually sure how to close this PR. I don't see a close button.


Set Website and Phone as default flags on Office

Don't think I've ever made a pull request on iD, but this should be good I think
Adding Website and Phone as default flags instead of optional ones on 'Office' (issue #7865  )

@quincylvania could you help me figure out why the build is failing? the only thing I changed were those fields :thinking:

The CI failure looks unrelated.

@thibaultmol Looks great, thanks!!


NTR: green manure exposure

Can green manure exposure be added as a subclass of natural fertilizer exposure

Proposed name and def'n:
[Term]
id: PECO:0001069
name: green manure exposure
def: "A natural fertilizer exposure (PECO:0007087) which is the application of green manure." []
comment: Green manure is created by leaving uprooted or sown crop parts to wither on a field so that they serve as a mulch and soil amendment. The plants used for green manure are often cover crops grown primarily for this purpose. {xref="Wikipedia:Green_manure"}

Thanks I think this is fine.


Issue1293: Updated region detection for appstream service scans

Context
Address concerns in #1293
The service does not exist in all AWS regions, so results were unreliable.
Description
Added logic to the individual scans to compare the AWS Regions available to the account with the AWS Regions the service is available in to ensure only valid regions are scanned.
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

I'm closing this PR because the problem here is that these checks are not handling correctly the timeout errors returned by AWS AppStream service.


bug

videoporno-25152@nc1159 ~ $  php /var/www/videopornoitalia.it/htdocs/admin/scraper_cron.php
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '--dump-json', 'https://it.xhamster.com/movies/7263980/la_mia_vicina.html']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2<IP_ADDRESS>
[debug] Python version 3.4.5 -<EMAIL_ADDRESS>[debug] exe versions: ffmpeg 3.2.4, ffprobe 3.2.4
[debug] Proxy map: {}
ERROR: Unable to extract title; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 761, in extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 427, in extract
ie_result = self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/xhamster.py", line 85, in _real_extract
webpage, 'title')
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 768, in _html_search_regex
res = self._search_regex(pattern, string, name, default, fatal, flags, group)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 759, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract title; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '--dump-json', 'https://it.xhamster.com/movies/7259962/la_sorellina_vergine.html']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2<IP_ADDRESS>
[debug] Python version 3.4.5 -<EMAIL_ADDRESS>[debug] exe versions: ffmpeg 3.2.4, ffprobe 3.2.4
[debug] Proxy map: {}
Array
(
[title] => La Sorellina Vergine
[url] => http://2.xhcdn.com/key=bE6KDHwQt3Wdp5uIl6lSFg,end=1488040759,limit=3/data=<IP_ADDRESS>-dvp/speed=150k/initial_buffer=3540368/7259962.mp4
[description] => La Sorellina Vergine
[keywords] =>
)
--2017-02-25 13:39:19--  http://2.xhcdn.com/key=bE6KDHwQt3Wdp5uIl6lSFg,end=1488040759,limit=3/data=<IP_ADDRESS>-dvp/speed=150k/initial_buffer=3540368/7259962.mp4
Resolving 2.xhcdn.com... <IP_ADDRESS>
Connecting to 2.xhcdn.com|<IP_ADDRESS>|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://ip47689061.ahcdn.com/key=gkITc9lQoNwq2iVIt7fPcg,end=1488040759,limit=3/data=<IP_ADDRESS>-dvp/state=uS7l/buffer=750000:3540368,4559.6/speed=150000/reftag=5412162/1/21/6/47273436/7259962.mp4 [following]
--2017-02-25 13:39:19--  http://ip47689061.ahcdn.com/key=gkITc9lQoNwq2iVIt7fPcg,end=1488040759,limit=3/data=<IP_ADDRESS>-dvp/state=uS7l/buffer=750000:3540368,4559.6/speed=150000/reftag=5412162/1/21/6/47273436/7259962.mp4
Resolving ip47689061.ahcdn.com... <IP_ADDRESS>
Connecting to ip47689061.ahcdn.com|<IP_ADDRESS>|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 254546527 (243M) [video/mp4]
Saving to: ‘/var/www/videopornoitalia.it/htdocs/content/58b17af789a92.mp4’
         /var/www/videoporno   1%[>

On your serveur youtub-dl binary is up to date :
@nc1159 ~ $ youtube-dl -U
youtube-dl is up-to-date (2<IP_ADDRESS>)

Questo video è visibile solo dagli amici di marcoalfa123456

sorry I do not understand why you have closed the ticket I have a problem with youtube-dl
Il Sabato 25 Febbraio 2017 14:20, Sergey M<EMAIL_ADDRESS>ha scritto:

Questo video è visibile solo dagli amici di marcoalfa123456
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

This is what reported by https://it.xhamster.com/movies/7263980/la_mia_vicina.html.


Create SphericalShell

All things checked plus it doesn't return a negative value
Problem Statement->Problem of Spherical Shell
Problem Link: https://edabit.com/challenge/iBqJcagS56wmDpe4x
Description
Write here what you have changed
Issue No.- #

Type issue number after hash(#36)

Checklist

[ ] Yes, this task assigned to me.
[x] My code follows the style guidelines(Clean Code) of this project
[x] I have performed a self-review of my own code
[x] My Filename is in camelCase format
[x] I have added Problem statement, Problem link in file.

Problem Link: https://edabit.com/challenge/iBqJcagS56wmDpe4x

issue assigned to someone else


JavaDoc?

Would it be possible for you to generate a JavaDoc for cscore and add it to the main WPILibJ JavaDoc?
If adding it to the main JavaDoc is impossible, is there a way I could download it?
Thanks!

I know it's not the same, but while you're waiting, the RobotPy cscore API is very similar to Java's: http://robotpy.readthedocs.io/projects/cscore/en/latest/api.html

I mostly just want a JavaDoc so I can view it in Eclipse.
Thanks for finding the Python docs.

Formatting fixed in #66 and will be published with the next release.


re Disable dynamic import detection for one line or for whole project

Hi, is this problem related or should be here as main?
https://github.com/vitejs/vite/issues/16241

Sorry, this is not what vite-plugin-dynamic-import should do.

@yejimeiming what do you mean? How can I solve this issue?

Perhaps you should seek help from Vite.


Fixed Next.js Config

Please describe the changes this PR makes and why it should be merged:
Status

[x] Code changes have been tested against prettier, or there are no code changes
[x] I know how to update typings and have done so, or typings don't need updating

Semantic versioning classification:

[ ] This PR changes the codebase

[ ] This PR includes breaking changes (methods removed or renamed, parameters moved or removed)
[ ] This PR changes the internal workings with no modifications to the external API (bug fixes, performance improvements)

[x] This PR only includes non-code changes, like changes to documentation, README, etc.

Can you adjust to this syntax?

Done!

LGTM!


Json fields

:books: Documentation preview :books:: https://mrmoe--144.org.readthedocs.build/en/144/

Codecov Report

:exclamation: No coverage uploaded for pull request base (json@1f302f8). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             json     #144   +/-   ##
=======================================
  Coverage        ?   98.01%
=======================================
  Files           ?       35
  Lines           ?     1764
  Branches        ?        0
=======================================
  Hits            ?     1729
  Misses          ?       35
  Partials        ?        0