Outdated dependencies / vulnerabilities

I'm evaluating Azure TimeSeries right now as a solution for our tenant based IoT product. It's great to have a JS library, where I can create our dashboards on the fly in our SPA. I have checked the package.json and found a lot of outdated dependencies:
npx npm-upgrade:
New versions of active modules available:

  array-includes              ^3.0.3   →    ^3.1.1
  awesomplete                 ^1.1.2   →    ^1.1.5
  @types/awesomplete          ^1.1.8   →   ^1.1.10
  d3                         ^4.13.0   →   ^5.15.0
  @types/d3                  ^4.13.0   →    ^5.7.2
  d3-interpolate-path         ^1.1.1   →    ^2.1.1
  moment-timezone            ^0.5.21   →   ^0.5.27
  npm                         ^6.4.0   →   ^6.13.7
  promise-polyfill            ^7.1.0   →    ^8.1.3
  css-loader                ^0.28.11   →    ^3.4.2
  file-loader                ^1.1.11   →    ^5.0.2
  mini-css-extract-plugin     ^0.4.4   →    ^0.9.0
  node-sass                   ^4.9.3   →   ^4.13.1
  sass-loader                 ^6.0.7   →    ^8.0.2
  style-loader               ^0.19.1   →    ^1.1.3
  ts-loader                   ^5.2.2   →    ^6.2.1
  typescript                  ^3.7.2   →    ^3.7.5
  url-loader                  ^1.1.0   →    ^3.0.0
  webpack                    ^4.20.2   →   ^4.41.5
  webpack-cli                 ^3.1.2   →   ^3.3.10
  webpack-dev-server          ^3.1.9   →   ^3.10.3`

Also there are some vulnerabilities (run npm audit to see more details):
found 37 vulnerabilities (12 low, 2 moderate, 23 high) in 16153 scanned packages

Are there any plans to update this project?

I've gone ahead and fixed the vulnerabilities from npm audit as part of this commit. Those will go out with the next version of the SDK (1.3.6, currently in beta).
I'm gonna hold off on upgrading the outdated dependencies unless there is a compelling reason to upgrade any of them.  I'm open to a discussion on which ones to upgrade and why if you feel strongly about it.
Thanks for bringing this up, I'd been meaning to get around to it!

Closing this issue as we have updated the necessary packages via npm audit fix and there is no new conversation


New release for eo-0.42.0

A new release eo-0.42.0 of the EO-to-Java compiler has been published on Maven Central. Don't forget to make a release here, asking @rultor about it.

PR-Codex overview
This PR updates the version from 0.41.3 to 0.42.0 across various files in the org.eolang package, reflecting improvements and enhancements in the codebase. It also adds test cases and modifies some existing tests for better functionality.
Detailed summary

Updated version from 0.41.3 to 0.42.0 in multiple files.
Added tests package declarations in various test files.
Enhanced existing test cases and added new tests.
Modified code in several .eo files for better functionality and performance.
Improved comments and documentation across the codebase.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@rultor release, tag is 0.42.0

@yegor256 Done! FYI, the full log is here (took me 4min).


Stealing this project

Dear community and @0x0abd,
I don't like to steal projects, but after two years of inactivity by the author for this beautiful project, I think there's an indication that the project has been abandoned. As a community, we're looking for a new maintainer who can fork the project and take over maintenance. In the meanwhile, many bugs are already fixed in (a branch of) my fork at https://github.com/alberthendriks/Dbgereum, which includes the bug fix by malikDaCoda (https://github.com/malikDaCoda/Dbgereum). I also supply my patches to him, so that our repos should usually be in sync, while the original here stays behind. I think neither of the two of us (or certainly not me) has the intention to become a long-term maintainer, but until such a maintainer stands up it's probably best to use one of our projects instead of this one.

Thank you very much for your work, I really need this tool now, but unfortunately the author has not updated it for a long time, fortunately you continue to maintain it, really thank you!


ETCD Catch NPE and ETCD Owner

Issue #, if available:
Description of changes:
Fixes issue deleting ETCD CAPI Machines.
Testing performed:
Tested via EKS-A and ETCD deleted.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/lgtm


Support for AzureCliCredential

Environment
Applies to development towards all services.
Summary
The starter kits do not (AFAIK) allow use of the local currently logged in user to authenticate to Azure services. Cf https://github.com/Azure/azure-sdk-for-java that has DefaultAzureCredential that will in turn try different mechanisms, including AzureCliCredentials.
For development purposes it would be smooth if spring boot could authenticate as the developer seamlessly when on his or her local development environment.
Cf #823
Reproduce steps
N/A
Expected Results
N/A
Actual Results
N/A

Hi @sitase
Thanks for your proposal.
Our starter kits now support three authentication ways:

service principal.
certificate.
managed identity.

It indeed doesn't support "AzureCliCredential". But in my opinion, the starter kits are designed for the microservice scenario rather than the client scenario. In regards to the microservice scenario, there seems no need to use the  "AzureCliCredential" to do authentication. So we need to discuss its reasonability about adding this auth mechanism into starter kits. We will give you a response later, please stay tuned.

I explained myself badly. When you develop a microservice, you need to be able to run it locally to test and debug. The rights to do so should derive from the local user having a dev role for the project. I.e. the rights to access an azure service in the dev environment should be assigned to the msi of deployed microservices in the dev environment AND the members of the development team. To achieve the latter, without sharing static credentials (service principals) you need to support AzureCliCredentials.

Okay, got your point, we will discuss it and respond to you later.


Investigate possibility of automatically removing embeds when sending links through bot

This embed from medium is pretty annoying, it would be nice to have it automatically removed when we're sending links through the bot.
This issue is to just research to see if this is possible by digging into the Discord API

Are we looking for a solution that disable all the embed of the links that were sent through the bot?
I've looked up the solution to disable specific link, by wrapping them with <link>.
Before

After

Not too sure if this is the solution that you want though.
More information can be found here - how do I disable auto-embed

Are we looking for a solution that disable all the embed of the links that were sent through the bot?
I've looked up the solution to disable specific link, by wrapping them with <link>.
Before

After

Not too sure if this is the solution that you want though.
More information can be found here - how do I disable auto-embed

@DaeguDude I think you've solved it! Great work!

@I3uckwheat No worries :)
If there's a list of commands that we don't want the embeds on I'm happy to work on it to change accordingly

@DaeguDude Please make issues for them first, you may assign yourself, but lets spread some work out to give other's opportunities :)


chore(main): release 0.15.1

:robot: I have created a release beep boop
0.15.1 (2023-07-21)
Documentation

improve cartpole docs (#242) (0519d69)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/rickstaa/stable-gym/releases/tag/v0.15.1 :sunflower:


Create custom header

#481
ex w/ subtitle:

passing subtitle:

@albullington mucked around with the solution we discussed where we'd simply update the headerTitle - that ended up not working because react-navigation doesn't allow you to change header height so the subtitle would get cut off.
Apparently the header shadow does work on the UI library page, but just not on the group photos page. No idea why though.
I even plugged in the UI library component into the group photos screen and the shadow still wouldn't show. My only guess is that it's related to being a nested navigator?
I think most asks are done, just the box shadow is the issue

I think I've spent a little too long wracking my brain around this shadow issue. I think I'm ready to try some other options...
this lib seems promising and will try it if you think it's reasonable.

react-native-fast-shadow looks promising to me too. I'd say give it a go, and if it doesn't work I'll re-review & open a different issue for the Android box shadow. On Seek we ended up using a sort of hacky solution (using an image for the shadow), so I'm sure we can eventually find a workaround.

@albullington same issue with react-native-fast-shadow unfortunately. I think most other third party shadow libraries do what you ended up doing for seek or something very similar


refactor(esl-media-query): deprecate ESLMediaRuleList.parse

Relates to: #2377

:tada: This issue has been resolved in version 4.18.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This issue has been resolved in version 5.0.0-beta.24 :tada:
The release is available on:

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Item jumps to and fro while the mouse pointer is held still

This seems to happen when mouse pointer is positioned near the middle of an item (item height + placeholder padding).

$($0).offset() when the element has no padding: {top: 241.78125, left: 228}
$($0).offset() when the element has 25px top padding: {top: 237.78125, left: 228}
JQUERY WAT R U DOING AHAHA STAHP!

Ah, it's because of margin collapsing!

@lolmaus I'm running into the same issue.  Would you mind sharing how you resolved this?


Update OWNERS

Remove RiRa12621 from Owners

/assign @lisa

@lisa can i have LGTM as well?

/lgtm


Fix message parsing when TransferTransaction has not message property

SDK side fix for https://github.com/nemtech/catapult-rest/issues/21
:warning: the e2e tests do not work I think

Pull Request Test Coverage Report for Build 334

0 of 0   changed or added relevant lines in 0 files are covered.
10 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.5%) to 79.202%

Files with Coverage Reduction
New Missed Lines
%

src/model/namespace/NamespaceId.ts
2
80.0%

src/service/NamespaceService.ts
8
21.43%

Totals

Change from base Build 326:
-0.5%

Covered Lines:
1494

Relevant Lines:
1773

💛  - Coveralls


Add LocationDeleter tool

Add the LocationDeleter tool to the examples repo, along with documentation.
This will help customers who are testing integrations that create many things using the Provisioning API, but get something misconfigured on the first few attempts and now need to delete the locations, time-series, or field visits that the public APIs do no allow you to delete.

Fixed by #55


Add pre-commit to format all JS files for indentation

@ashutosh1919 , please assign this to me.

@Sachin-chaurasiya Also note that once you raise PR for this, what I will do:

I will manually run command to format all files.
I will push it. You will need to sync your PR with new files.

This will help in consistency for all future PRs.


Add some changes

Hi, I have some problems with code change. I want to disable orderBook loading, only trades. But i cant build it. I found some bitcoinexchangefh.exe file in Python scripts folder. How can I change it with my code changes? Thx.

It's related to #108 and requires the change in setup.py. Will resolve soon.


Microsoft Defender Threat Intelligence Repackaging

Required items, please complete
Change(s):

Workbook addition in the solution

Reason for Change(s):

With reference to the pr #7730

Version Updated:

2.0.3

Looking into this

Hi @v-prasadboke, please check validation failures. Thanks


libpqxx: Add dependency on doxygen and xmlto

Motivation for this change
Unable to build hydra due to this error when building libpqxx:
if test -x "/cvmfs/lhcbdev.cern.ch/nix/store/mdxz9iba3irpy37jabkfx3aqra3wvpgb-doxygen-1.8.14/bin/doxygen"; then \
  /cvmfs/lhcbdev.cern.ch/nix/store/wgfllczzdy62a5q1wm1ibk2v1lvvqprw-coreutils-8.29/bin/mkdir -p html/Reference; \
  /cvmfs/lhcbdev.cern.ch/nix/store/mdxz9iba3irpy37jabkfx3aqra3wvpgb-doxygen-1.8.14/bin/doxygen Doxyfile; \
  touch reference-stamp; \
else \
  echo >&2; \
  echo >&2 "*****************************************************"; \
  echo >&2; \
  echo >&2 "Doxygen not found."; \
  echo >&2 "Install it, or configure with --disable-documentation"; \
  echo >&2; \
  echo >&2 "*****************************************************"; \
  exit 1; \
fi

*****************************************************

Doxygen not found.
Install it, or configure with --disable-documentation

*****************************************************
make[1]: *** [Makefile:484: reference-stamp] Error 1

Things done

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

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

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

@GrahamcOfBorg build libpqxx

Failure on x86_64-darwin (full log)
Partial log (click to expand)
Package ‘libpqxx-6.1.0’ in /Users/graham/nix-borg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/grahamc-ndnd/pkgs/development/libraries/libpqxx/default.nix:24 is not supported on ‘x86_64-darwin’, refusing to evaluate.

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

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

Success on x86_64-linux (full log)
Partial log (click to expand)
make[1]: Leaving directory '/tmp/nix-build-libpqxx-6.1.0.drv-0/source'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/crcdg1srjj4dzz999qbfldnqpmcn1knn-libpqxx-6.1.0
shrinking /nix/store/crcdg1srjj4dzz999qbfldnqpmcn1knn-libpqxx-6.1.0/lib/libpqxx-6.1.so
strip is /nix/store/b0zlxla7dmy1iwc3g459rjznx59797xy-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/crcdg1srjj4dzz999qbfldnqpmcn1knn-libpqxx-6.1.0/lib  /nix/store/crcdg1srjj4dzz999qbfldnqpmcn1knn-libpqxx-6.1.0/bin
patching script interpreter paths in /nix/store/crcdg1srjj4dzz999qbfldnqpmcn1knn-libpqxx-6.1.0
/nix/store/crcdg1srjj4dzz999qbfldnqpmcn1knn-libpqxx-6.1.0/bin/pqxx-config: interpreter directive changed from " /bin/sh" to "/nix/store/zqh3l3lyw32q1ayb15bnvg9f24j5v2p0-bash-4.4-p12/bin/sh"
checking for references to /tmp/nix-build-libpqxx-6.1.0.drv-0 in /nix/store/crcdg1srjj4dzz999qbfldnqpmcn1knn-libpqxx-6.1.0...
/nix/store/crcdg1srjj4dzz999qbfldnqpmcn1knn-libpqxx-6.1.0

Success on aarch64-linux (full log)
Partial log (click to expand)
make[1]: Leaving directory '/build/source'
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/xbh730sifzllgbwk7v49dvljv924d88b-libpqxx-6.1.0
shrinking /nix/store/xbh730sifzllgbwk7v49dvljv924d88b-libpqxx-6.1.0/lib/libpqxx-6.1.so
strip is /nix/store/lvx1acn1ig1j2km8jds5x3ggh3f2wa8v-binutils-2.28.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/xbh730sifzllgbwk7v49dvljv924d88b-libpqxx-6.1.0/lib  /nix/store/xbh730sifzllgbwk7v49dvljv924d88b-libpqxx-6.1.0/bin
patching script interpreter paths in /nix/store/xbh730sifzllgbwk7v49dvljv924d88b-libpqxx-6.1.0
/nix/store/xbh730sifzllgbwk7v49dvljv924d88b-libpqxx-6.1.0/bin/pqxx-config: interpreter directive changed from " /bin/sh" to "/nix/store/lnws52qanbi5vz8qg24v4ym57nznfndg-bash-4.4-p12/bin/sh"
checking for references to /build in /nix/store/xbh730sifzllgbwk7v49dvljv924d88b-libpqxx-6.1.0...
/nix/store/xbh730sifzllgbwk7v49dvljv924d88b-libpqxx-6.1.0


Add CI release build (without proprietary FPGA toolchains)

Automatically performs and uploads release builds, without any bitstreams built through proprietary toolchains.
This is not a vendor lock-in, given that only the regular Nix-based release build is started. It's rather convenient for people who don't have Nix installed though.

Check to see whether bors works.
bors ping

bors r+


Error while getting token

Hi,
Followed everything and got push notification working ion Android but in iOS I'm getting this error:
Error Domain=com.google.fcm Code=505 "No APNS token specified before fetching FCM Token" UserInfo={NSLocalizedFailureReason=No APNS token specified before fetching FCM Token}

@andiosdev Please check this issue, I wrote solution there: https://github.com/mirzemehdi/KMPNotifier/issues/3

@chen-lihan still getting the error. Not sure if it's the reason for not receiving notification in iOS.
APNS device token not set before retrieving FCM Token for Sender ID '-----'.Be sure to re-retrieve the FCM token once the APNS device token is set.
Declining request for FCM Token since no APNS Token specified
Error while getting token: Error Domain=com.google.fcm Code=505 "No APNS token specified before fetching FCM Token" UserInfo={NSLocalizedFailureReason=No APNS token specified before fetching FCM Token}

@andiosdev ,ohh!
Could you check your ios code?
i forgot it . i add this line on application block .
application.registerForRemoteNotifications()
class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate {
    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

        FirebaseApp.configure()

        NotifierManager.shared.initialize(configuration: NotificationPlatformConfigurationIos(showPushNotification: true, askNotificationPermissionOnStart: false)

        )
        application.registerForRemoteNotifications()
`

And Notice Your APNS KEY Is Correct

I have similar code in my AppDelegate and still error exists. Where do I check if my APNK Key is correct?

@andiosdev
Your Firebase And Apple Developer Account Page

@chen-lihan
Thank you. I was to able to get this running.
@mirzemehdi
I don't know what I missed but I'm getting this error "Cannot find 'NotifierManager' in scope" inside iOSApp.swift.
I have the following imports:
import SwiftUI
import ComposeApp
import FirebaseCore
import FirebaseMessaging

@andiosdev maybe for ios part you didn't export library in app build gradle file, that's why it is not visible in swift side

listOf(
        iosX64(),
        iosArm64(),
        iosSimulatorArm64()
    ).forEach { iosTarget ->
        iosTarget.binaries.framework {
            export(libs.kmpnotifier)
            baseName = "sample"
            isStatic = true
        }
    }

Closing this issue due to inactivity. If this is still an issue or need a help, please feel free to reopen the issue and provide additional context or updates. Thank you.


[MRG] Adjust sEEG plotting

fixes #4912

I took your code with fixed color and I adjusted the scale which also was in the issue. Now it looks like this:

How can I submit the changes?

Thx @makkostya. Looks great!
You can bring your changes in 3 different manners (that I can think of) :
1 - Submit a PR yourself to mne-python and I'll close this one.
2 - Submit a PR to my fork (preferably to my color branch )
3 - I give you rights to my fork and you can directly push to the branch.

2 is ok for me

This PR is ready for review. cc: @agramfort, @mathurinm

travis is not happy

Hopefully it will, now !

thx @makkostya and @massich !


Positive patches creation error

Hi @tommydino93,
I am new to Python and Github communities so please excuse me if my question is naive or inexperience in anyway.
When I try to follow your code, I got an error during the dataset_creation process, the positive patches creation to be specific (the negative patches creation process runs smoothly). The following error are one example when I try to run on 1 sample only (sub-075). The error seems like it is due to the fact that the code cannot create a temporary patch for the first lesion_1 unlike the negative patch. Do you have any idea why it leads to this problem? I copy the error below.
Thank you in advance for your kind reply if possible.
Began extraction of positive patches...
-------------------------- sub-075_ses-20100502_Lesion_1 --------------------------
Traceback (most recent call last):
File "E:\Projects\Cerebral_Aneurysm_Segmentation\Aneurysm_Detection-main\dataset_creation\create_dataset_patches_neg_and_pos.py", line 606, in
main()
File "E:\Projects\Cerebral_Aneurysm_Segmentation\Aneurysm_Detection-main\dataset_creation\create_dataset_patches_neg_and_pos.py", line 583, in main
create_patch_ds(bids_dataset_path,
File "E:\Projects\Cerebral_Aneurysm_Segmentation\Aneurysm_Detection-main\dataset_creation\create_dataset_patches_neg_and_pos.py", line 486, in create_patch_ds
Parallel(n_jobs=n_parallel_jobs, backend='loky')(delayed(extract_positive_patches)(all_subdirs[idx],
File "c:\Users\ADMIN\anaconda3\envs\tensorflow-gpu\lib\site-packages\joblib\parallel.py", line 1863, in call
return output if self.return_generator else list(output)
File "c:\Users\ADMIN\anaconda3\envs\tensorflow-gpu\lib\site-packages\joblib\parallel.py", line 1792, in _get_sequential_output
res = func(*args, **kwargs)
File "E:\Projects\Cerebral_Aneurysm_Segmentation\Aneurysm_Detection-main\dataset_creation\create_dataset_patches_neg_and_pos.py", line 363, in extract_positive_patches
nib.save(patch_mask_obj_translated_scale_1, os.path.join(pos_patches_masks_path, patch_mask_name_transl_scale_1))
File "c:\Users\ADMIN\anaconda3\envs\tensorflow-gpu\lib\site-packages\nibabel\loadsave.py", line 163, in save
img.to_filename(filename, **kwargs)
File "c:\Users\ADMIN\anaconda3\envs\tensorflow-gpu\lib\site-packages\nibabel\filebasedimages.py", line 307, in to_filename
self.to_file_map(**kwargs)
File "c:\Users\ADMIN\anaconda3\envs\tensorflow-gpu\lib\site-packages\nibabel\nifti1.py", line 2219, in to_file_map
super().to_file_map(file_map, dtype)
File "c:\Users\ADMIN\anaconda3\envs\tensorflow-gpu\lib\site-packages\nibabel\analyze.py", line 1037, in to_file_map
hdrf = hdr_fh.get_prepare_fileobj(mode='wb')
File "c:\Users\ADMIN\anaconda3\envs\tensorflow-gpu\lib\site-packages\nibabel\fileholders.py", line 74, in get_prepare_fileobj
obj = ImageOpener(self.filename, *args, **kwargs)
File "c:\Users\ADMIN\anaconda3\envs\tensorflow-gpu\lib\site-packages\nibabel\openers.py", line 182, in init
self.fobj = opener(fileish, *args, **kwargs)
File "c:\Users\ADMIN\anaconda3\envs\tensorflow-gpu\lib\site-packages\nibabel\openers.py", line 91, in _gzip_open
gzip_file = DeterministicGzipFile(filename, mode, compresslevel, mtime=mtime)
File "c:\Users\ADMIN\anaconda3\envs\tensorflow-gpu\lib\site-packages\nibabel\openers.py", line 72, in init
fileobj = self.myfileobj = ty.cast(io.FileIO, open(filename, modestr))
FileNotFoundError: [Errno 2] No such file or directory: 'E:/Projects/Cerebral_Aneurysm_Segmentation/Aneurysm_Detection-main/output_dataset_path_temp\Data_Set_Dec_01_2023_unique_identifier\Positive_Patches_Masks\sub-075_ses-20100502_Lesion_1\patch_pair_1\sub-075_ses-20100502_Lesion_1_patch_pair_1_transl_mask_patch.nii.gz'

Hi @KuroTetsuya ,
Thanks for your interest here!
It's the first time I see this kind of error. It looks like the patch
sub-075_ses-20100502_Lesion_1_patch_pair_1_transl_mask_patch.nii.gz
is not created, and therefore you get the No such file or directory.
Can you try to set n_parallel_jobs=1? maybe it's an issue of the parallel processing, though I doubt it.
Also, how does your config.json file look like?

Hi @tommydino93,
Thank you so much for replying.
Please see the attached image for the setting of the config.json file.

During the creation of the patches, I had already been setting the n_parallel_jobs=1, thus I can confirm that it is not due to the parallel processing. Still, it is a mystery why the problem only occur when the ds_patch function reach the positive patch creation step. I did call the extract_positive_patch function separately instead of calling the whole python file like your instruction, and surprisingly, it works. I will return if there is more progress to discuss.
Thank you very much.

ok, great to hear it works if you run it independently. I'm closing this. Feel free to re-open or reach out in case you have other issues.
Happy coding!


[issue-28] Upgrade housekeeping

Coverage increased (+0.003%) to 74.096% when pulling 9c5e5a5021892e9b53dc75e260c7dc253726f572 on issue-28 into 48a57a0844123b8c746dd2673f1ba4dddcff21d9 on master.


splitIntoParagraphs returns different results in Python 3

splitIntoParagraphs(text) from Text.py will return different results in Python 3 compared to Python 3.
To reproduce, parse this discussion. Python 2 will split r666211285 four times whereas Python 3 won't split it once.
Edit: Looks like the Python 3 parser rather leaves out the last revisions 666211285 and 666211285. Furthermore, they are not sorted by revisions (which was the case with Python 2 and the former version of the Mediawiki-Utils API).

Looks like I just had an earlier XML dump from that discussion which must have been faulty. Hence, this ticket will be closed. Nevertheless, it might be a good idea to sort the revisions by ID before processing them, to be on the safe side.


User Roles

Description
A user with an applicant, partner, and reviewer user roles is unable to access submissions when these submissions are in the 'external reviewer' stage. A majority of user have different user accounts on the platform. In certain edge cases a user account is used for multiple roles.

@fourthletter  Is the user the applicant of this particular application?

The user is not the applicant of this particular application.

I can not replicate this.
Can it be that the reviewer is not assigned to the submission and you have made settings so they then can not see it?

Thank you for looking into this. I could discuss more during our next stand up.

A user account that is an 'applicant' and 'reviewer' cannot access submissions as a reviewer and does not appear in the reviewer pick list.

On September 21 we discussed revising the Reviewer User Group to prevent this role from submitting an application on Hypha.


Change icon in services section

I'm really newbie using hugo. Im trying to set my web using the agency theme. I would ask you about how change the icons in the services section. I would like to use an  image or icon storage in my folder.
Thanks in advance for you help!

They can be changed within the config.toml. They use icons from an icon set. https://github.com/digitalcraftsman/hugo-agency-theme/blob/master/exampleSite/config.toml#L92
So a custom one is not easily done, but usually there are enough to choose from.
It's using fontawesome v4: https://fontawesome.com/v4.7.0/


Skip running 'pylint' on '_generated' files.

Note that the bigtable section of the CircleCI output is now actually readable.


Issue CRUD operations.

The user has projects and each project has issues.
Each issue information is related to classes Issue, IssueTime, PriorityLabel, each one representing a table in the database.
The user can create, read, update and delete an issue.

All basic CRUD operations are implemented for issue objects. However, no front-end, security layer or tests up to this points. The front-end page is in the issue #17; The security, in the issue #15; and tests,  in the issue #19.


Bug: Update VueJS sample

The VueJS sample is throwing an eslint configuration error.

Closing. Bug fixed in https://github.com/Esri/jsapi-resources/pull/345


Activating Open Collective

Hi, I'm making updates for Open Collective. Either you or another core contributor signed this repository up for Open Collective. This pull request adds financial contributors from your Open Collective https://opencollective.com/monotorrent ❤
What it does:

adds a badge to show the latest number of financial contributors
adds a banner displaying contributors to the project on GitHub
adds a banner displaying all individuals contributing financially on Open Collective
adds a section displaying all organizations contributing financially on Open Collective, with their logo and a link to their website

P.S: As with any pull request, feel free to comment or suggest changes.
Thank you for your great contribution to the Open Source community. You are awesome! 🙌
And welcome to the Open Collective community! 😊
Come chat with us in the #opensource channel on https://slack.opencollective.com - great place to ask questions and share best practices with other Open Source sustainers!

I'm happy enough placing this information in the README, but I don't particularly like calling out backers as financial backers. I renamed the label to leave it a little more neutral :)
Thanks!


Add linux armhf/arm64 support

build box86/box64 to run wine
install wine 7.0.2

Thanks for the contribution!
Could you please fix the CI and add a section about the ARM version in REAMDE?

It seems like https://github.com/ldgabet/docker-box-wine is another version providing arm support. Would be nice to see this merged!

@tobiasdiez, thanks for continuing to discuss this PR!
I'd love to add this support; however, I think it needs:

Make the CI pass
Add an introduction & documentation to the README so that other developers can understand how it works and how to use it

Because I have no experience running wine with ARM, I have very limited knowledge about this PR, which means I need more information to gain enough confidence to merge it, too.
It would be beneficial if you could help to test this PR and make sure everything is correct.

As I have only limited experience with wine (and docker in general), I'm not really in the position to help actively. But I'm happy to try out and test a new version.
As for the documentation, I think it follows relatively closely https://github.com/ptitSeb/box64/blob/main/docs/X64WINE.md.


Something wrong in the paper

Thanks for your impressive work.
I think Eq. (3) in your paper is wrong.
As mentioned in your paper, you want to minimize the conditional entropy term and maximize the entropy of the empirical label distribution. So I think Eq. (3) should be formulated as follows:

By the way, the implementation of your code is the same as above.

We wish to maximize the loss in Eq. 3. This is reflected in the optimization in Eq. 11, where we minimize the form you mention.

I don`t notice the maximize in the paper. You are right.


Problem handling the decaying polling rate in the asynchronous execution policy

An error such as the following can appear:
./bin/reframe: unexpected error: math domain error
Traceback (most recent call last):
  File "/scratch/shared/leone/jenscscs/reframe-ci-leone-5d81168/reframe/frontend/cli.py", line 413, in main
    runner.runall(checks_matched, system)
  File "/scratch/shared/leone/jenscscs/reframe-ci-leone-5d81168/reframe/frontend/executors/__init__.py", line 176, in runall
    self._runall(checks, system)
  File "/scratch/shared/leone/jenscscs/reframe-ci-leone-5d81168/reframe/frontend/executors/__init__.py", line 246, in _runall
    self._policy.exit()
  File "/scratch/shared/leone/jenscscs/reframe-ci-leone-5d81168/reframe/frontend/executors/policies.py", line 288, in exit
    desired_rate = pollrate(t_elapsed, real_rate)
  File "/scratch/shared/leone/jenscscs/reframe-ci-leone-5d81168/reframe/frontend/executors/policies.py", line 88, in __call__
    self._init_poll_fn(init_rate)
  File "/scratch/shared/leone/jenscscs/reframe-ci-leone-5d81168/reframe/frontend/executors/policies.py", line 82, in _init_poll_fn
    self._c = math.log(self._a / (self._thres*self._b)) / self._decay
ValueError: math domain error

Problem can be reproduced on Leone.
Internal issue: https://madra.cscs.ch/scs/reframe/issues/580

The bug lies in the calculation of  self._a which can become negative. This happens when self._b which is initialized with self._min_rate is larger than the given init_rate.

I suggest checking self_a for values lower than 0 and assign a minimum value in that case.


Parity with restic arguments?

I've noticed some commands don't work the same way as they do in restic.
Examples:
--json missing on: repoinfo, forget
--iexclude missing on backup
stats has been renamed to repoinfo (?)
Is it intended for these gaps to be fixed eventually? It would make it a lot easier to use as a drop-in replacement.

CLI compatibility is not intended.
See also #540 (I think this issue is a duplicate of this).
About missing --json options : Can you open separate issues?
About --iexclude: You can get this functionality use --iglob with negative patterns (prefix them by !).
About stats vs repoinfo: These commands are actually very different an cannot be compared.  If you are still missing any information, please open an issue.

Good to know, thanks. I was using an outdated version, but will create new tickets for each missing --json I find.
As for --iglob it still gives me an error. Am I missing something obvious?
Args are:
[
    "--iglob=!/home/ineluki/Codez/int/restic-ui3/data/repo",
    "--json",
    "backup",
    "--exclude-caches",
    "--tag=/home/ineluki/Videos/animals",
    "-r=/home/ineluki/Codez/int/restic-ui3/data/repo",
    "/home/ineluki/Videos/animals"
]

stderr is:
error: unexpected argument '--iglob' found
tip: 'backup --iglob' exists

--iglob is only available for the backup comnand and must therefore come after backup. Same with --json. Only global options can come before vor after the comnand.

After the two missing --json options are now separate issues, I'm closing this as duplicate of #540.


RTC clock drifts ahead and causes Adafruit IO error "data created_at may not be in the future"

On one of my Enviro boards the RTC drifts ahead and eventually causes an error while uploading readings to Adafruit IO.
The last reading is rejected with the error "422 Unprocessable Entity: data created_at may not be in the future" and a banner appears on the Adafruit IO web site.
I have patched main.py to resync the clock when any upload error is returned (I don't think that there is a way to tell this specific error from other 422 error conditions).
This is my patch, but it should be improved:
    # if we have enough cached uploads...
    if enviro.is_upload_needed():
      enviro.logging.info(f"> {enviro.cached_upload_count()} cache file(s) need uploading")
      if not enviro.upload_readings():
+        # try to resync RTC to avoid errors caused by drifting clock
+        # (422 Unprocessable Entity: data created_at may not be in the future)
+        enviro.sync_clock_from_ntp()
        enviro.halt("! reading upload failed")

At the next upload cycle the issue is gone, but periodically it will happen again when the RTC drifts enough time ahead. To avoid the issue completely the RTC should be resynced periodically.

Hi @lornova. Have a look at this pull request I raised last month: https://github.com/pimoroni/enviro/pull/132
It has handling for this error case, as well as periodic RTC updating. It's not merged yet as I was hoping more people would test it to confirm it's good. Perhaps you can give it a try if you have time?

Hi @lornova. Have a look at this pull request I raised last month: #132
It has handling for this error case, as well as periodic RTC updating. It's not merged yet as I was hoping more people would test it to confirm it's good. Perhaps you can give it a try if you have time?

Hi @ZodiusInfuser, I've been using your patch for a while, but unfortunately the issue comes back very quickly:

MQTT ERROR: error saving data to lornova/groups/enviro, data created_at may not be in the future

Apparently the RTC is drifting very quickly. So I suggest to use a lower default resync setting (currently is 1 week, I would probably lower it to 2 days).

Hi @lornova, thanks for testing the patch (which is now part of the main firmware). Hmm, I really would have thought that 1 week would have been enough to correct any drift before that error occurs. I'd ideally like more testing to be done before changing the default value. Is that 2 days based on your experiments or just a feeling?
Fortunately, it's not too bad if the error occurs, as the firmware detects it and automatically resyncs. The failed upload will then get uploaded successfully the next time the board wakes, whereas beforehand there was no handling.

Well it's more than a feeling, as I got the error back after two days... But of course that's not a statistically significative sample...
In my case it is a bad error, because I have 4 enviro devices running (2 indoor, 1 urban, 1 weather), all with a reading_frequency of 15 minutes and an upload_frequency of 1 hour. I synchronized them to upload to Adafruit IO (which has a data rate limit of 60 data points per minute) at the 4 differents quarter of the hour. If one device gets the "data created_at may not be in the future"  will overlap with the next device, so I will get the data throttling issue...

I see. I'm still not sure if the default value needs to be changed, but for your needs the timing can be changed by editing your board's config.py to reduce the resync_frequency.
As for your upload schedule, I will say that its optimistic to expect all of your boards to remain staggered as you have them. Uploads can fail due to external factors, which will cause the staggering to shift. The enviro firmware does detect when data throttling occurs though, so your readings will get uploaded eventually, just perhaps not at the exact time you want.
Maybe support for staggered times should be added 🤔. I'm not sure what the specific requirements would be though. If you have clear ideas for this, you're welcome to have a go and raise a pull request.

"support for staggered times should be added" - I'd love for this to be added as an option. I'd love for my uploads to be scheduled for h:02 & h:32 for a couple of reasons.

I'd like to move them away from the readings which we know that the WiFi chips increase the temperature on those upload readings.
I'd like to have set times so that failed readings don't force me to have to go and press the poke button to get my readings back to the right upload times. I'm trying to tweet off the basis of my readings, I want to do this each hour on the data that I've had over the last hour, and having this set would be a great help.

@ZodiusInfuser would you like me to log this as a separate issue?

@MrDrem Yes please. Would be good to have it visible so community can discuss what features they actually want. No promises that I'll be able to get to it any time soon, but perhaps an enterprising customer would fancy the challenge ;)

Just to say that I regularly get the "error "422 Unprocessable Entity: data created_at may not be in the future". It occurs unpredictably, but often MUCH sooner than a week. Most often it's less than a day with my board. So I'd suggest ressetting the clock every few hours, if not simply do it with every WiFi connect.


Make ParamMap Array<[key, value]>.

In this PR, I will add a very small optimization to RegExpRouter.
It turns out that iterating through the results of Object.keys is little bit expensive, so I change ParamMap to a list of keys and values (a.k.a Association List).
https://gist.github.com/usualoma/6d22fdb1b64e7ae8f4d6fe2d204b9208
I don't think this optimization will make any visible difference to the router benchmarks.
FYI
I also tried optimize by using lastIndexOf() instead of indexOf(), but failed. Because lastIndexOf() is slow.
https://blog.taaas.jp/tips/v8lastindexof/

Thank you!


capture Image and Record Video together

Hii, this package is really helpful.
I want to know if it is possible to record video and capture Images together on Android?
For example long press on capture button can record video.

This feature not supported for now.


Test fails with CS0246

Source Location: PropertyTypeAnalyzerTests.cs
One of the tests fails with CS0246 with argument IReadOnlySet<>.
Need to find out reason and fix it.

resolved.
Added .net5 reference assemmbly to test body.


RFC-Conformity depends on Implementation

We should document, that some conformity rules can only be implemented by the express/fastify/koa-etc. layer.
Maybe we should collect the MUST rules for meeting the conformity requirements but are (currently?) out of scope of the oauth2-server.

the authorization endpoint MUST support the GET method. probably alot of people only implement the post but not the get method.

   The authorization server MUST support the use of the HTTP "GET"
   method [RFC2616] for the authorization endpoint and MAY support the
   use of the "POST" method as well.

https://datatracker.ietf.org/doc/html/rfc6749#section-3.1

TLS is also necessary, which is not enforced by the oauth2-server

   The authorization server MUST require the use of TLS as described in
   Section 1.6 when sending requests using password authentication.

https://datatracker.ietf.org/doc/html/rfc6749#section-2.3.1

Brute-Force Protection for the endpoints is also a MUST regarding the RFC.

   Since this client authentication method involves a password, the
   authorization server MUST protect any endpoint utilizing it against
   brute force attacks.

This is a very good idea, because it would help client implementations to write their own compliance suite much more efficiently.

We should create a documentation like COMPLIANCE.md for that.


Package request: harlequin

Project description

The SQL IDE for Your Terminal.
Metadata

homepage URL: https://harlequin.sh/
source URL: https://github.com/tconbeer/harlequin
license: mit
platforms: unix, linux, darwin

Add a :+1: reaction to issues you find important.

related: #256516

For anyone trying to get this running whilst we wait for this package:
> nix-shell -p pipx python3Packages.pyarrow

[nix-shell:~]$ pipx install harlequin
[nix-shell:~]$ ~/.local/bin/harlequin

+1


The predicate pushdown misses the where filter condition

Change Logs
Data file pruning adds filter conditions
Impact
If pruning doesn't work, many useless files will be loaded.
Risk level (write none, low medium or high below)
NA
Documentation Update
NA
Contributor's checklist

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

Closing this PR as this does not seem to be an issue. @renshangtao : Please reopen if this is not the case.


OCPP 2.0.1 call payloads RequestStartTransactionPayload and RequestStopTransactionPayload are missing

Hi,
it seems like call.py does NOT have a RequestStartTransactionPayload or a RequestStopTransactionPayload, just a StartTransactionPayload and a StopTransactionPayload.
There IS a schema for RequestStartTransactionPayload and RequestStopTransactionPayload but NOT for StartTransactionPayload or StopTransactionPayload.
call_result.py however does have a RequestStartTransactionPayload & RequestStopTransactionPayload.
I linked the exact lines in call.py and call_result.py along with the schemas I'm referring to.
This leads to the following problem.
Using call.RequestStartTransactionPayload(...) yields an AttributeError, because there is no function called RequestStartTransactionRequest. (Code Example 1)
Using call.StartTransactionPayload(...) yields an occp.exceotions.ValidationsError, because there is no schema for StartTransactionRequest. (Code Example 2)
Code Example 1:
request = call.RequestStartTransactionPayload(
        request_start_id=some_id,
        id_token=some_token
)
-----------------------------------------------------
AttributeError: module 'ocpp.v201.call' has no attribute 'RequestStartTransactionPayload'

Code Example 2:
request = call.StartTransactionPayload(
        request_start_id=self.transaction_id,
        id_token=self.id_token
)
-----------------------------------------------------
ocpp.exceptions.ValidationError: Failed to load validation schema for action 'StartTransaction': [Errno 2] No such file or directory: 'C:\\...\\ocpp\\v201/schemas/StartTransactionRequest.json'

Same goes for RequestStopTransactionRequest.
I tried renaming the RequestStartTransactionRequest.json to StartTransactionRequest.json but that just caused more errors.
I found a very similar issue closed many months ago, but the code there is running on v2.0.
For v2.0 it should be fixed.
The documentation says the CSMS is supposed to send the RequestStartTransactionRequest and the CP is supposed to [...]Respond. So you have to use call.RequestStartTransactionRequest() right?
Please feel free to correct me if I made any mistakes.
Thanks!

Thanks for reporting this issue. You're right. The prefix Request is missing for call.RequestStopTransaction and call.RequestStartTransaction.

Thanks for reporting this issue. You're right. The prefix Request is missing for call.RequestStopTransaction and call.RequestStartTransaction.


EscapeAnalysis: handle SILUndef values

fixes a crash
rdar://problem/50279857

@swift-ci smoke test and merge

@compnerd I think this is the fix for what you were saying on the lldb bots.


Full performance report

Introduction
The following is a report on the overall performance of https://gratipay.com/. I hope by sharing this we can get more people involved in improving the performance of the website and keep track of what is done and needs doing.
Note: Target values may not be attainable. They are simply there to demonstrate that there is room for improvement.
Table of Contents

Page load performance is fast
Site is progressively enhanced
Network connection is secure
Mobile-friendly
Modern protocols
CSS
JavaScript
Best practices

1. Page load performance is fast
Users notice if sites and apps don't perform well. These top-level metrics capture the most important perceived performance concerns.
First meaningful paint: 9689.3ms
First meaningful paint measures when the primary content of a page is visible.

[ ] Target: 1,600ms

Perceptual Speed Index: 5186
Speed Index shows how quickly the contents of a page are visibly populated.

[ ] Target: 1250

First Visual Change: 916ms
Last Visual Change: 14079ms
Estimated Input Latency: 1706ms
The score above is an estimate of how long Gratipay takes to respond to user input, in milliseconds. There is a 90% probability that a user encounters this amount of latency, or less. 10% of the time a user can expect additional latency.

[ ] Target: 50ms

Time To Interactive: 14186.8ms
Time to Interactive identifies the time at which Gratipay appears to be ready enough to interact with.

[ ] Target: 5,000ms

Critical Request Chains: 27
The Critical Request Chains below show you what resources are required for first render of this page.
Longest request chain (shorter is better): 3
Longest chain duration (shorter is better): 8296.49ms
Longest chain transfer size (smaller is better): 449.78KB
/ (gratipay.com)
|-- css/fonts.css (cloud.typography.com)
|-- 244520/1BA9B830F035F9E44.css (downloads.gratipay.com) - 4556.72ms, 800.64KB
|-- /gratipay.css (assets.gratipay.com) - 1110.17ms, 466.45KB
|-- /AAEAAAABc3MwMQAIAAAAAQAAAAIABgAOAAYAAAABABAAAQAAAAEAKAABAAgAAQA... () - 6743.56ms, 449.78KB
|-- /AAEAAAABc3MwMQAIAAAAAQAAAAIABgAOAAYAAAABABAAAQAAAAEAKAABAAgAAQA... () - 6794.16ms, 449.78KB
|-- School-Idol-Tomodachi/image (gratipay.com) - 4990.14ms, 452.32KB
|-- Timefounder/image (gratipay.com) - 5047.67ms, 451.41KB
|-- KnightTouchBar-2000/image (gratipay.com) - 5090.69ms, 451.35KB
|-- cagatay/image (gratipay.com) - 5105.57ms, 451.58KB
|-- roomify/image (gratipay.com) - 5140.21ms, 454.40KB
|-- fonts/icomoon.woff (assets.gratipay.com) - 5154.81ms, 454.29KB
|-- Screna/image (gratipay.com) - 5163.51ms, 457.72KB
|-- Zerodark-theme/image (gratipay.com) - 5226.16ms, 454.64KB
|-- Laravel-Mage2-Ecommerce/image (gratipay.com) - 5248.63ms, 452.58KB
|-- simple-redis-cache/image (gratipay.com) - 5275.46ms, 451.24KB
|-- simple-redis-store/image (gratipay.com) - 5289.77ms, 451.24KB
|-- 8AAQAAAAFzczAxAAgAAAABAAAAAgAGAA4ABgAAAAEAEAABAAAAAQAoAAEACAABAA... () - 6998.27ms, 449.78KB
|-- UAParser.js/image (gratipay.com) - 5341.00ms, 453.24KB
|-- The-Void-Linux-Distribution/image (gratipay.com) - 5376.20ms, 453.18KB
|-- /banner.jpg (assets.gratipay.com) - 5397.64ms, 493.92KB
|-- datatamers/image (gratipay.com) - 5412.02ms, 451.39KB
|-- atom-autocomplete-lua/image (gratipay.com) - 5435.16ms, 451.33KB
|-- Conductor/image (gratipay.com) - 5477.47ms, 453.06KB
|-- /tipr.min.js (assets.gratipay.com) - 7553.90ms, 450.58KB
|-- /bootstrap-dropdown.js (assets.gratipay.com) - 7644.22ms, 451.74KB
|-- /chosen.jquery.min.js (assets.gratipay.com) - 7859.21ms, 457.54KB
|-- /gratipay.js (assets.gratipay.com) - 7982.02ms, 463.90KB
|-- /jquery.min.js (assets.gratipay.com) - 8296.49ms, 487.34KB

Other:
2 resources delayed first paint by 703ms:
https://assets.gratipay.com/gratipay.css?etag=t7Tkt7Jp52vWje7Wgmm-Sg~~ (delayed first paint by 405ms)
https://cloud.typography.com/6540672/615104/css/fonts.css (delayed first paint by 298ms)

[x] Page contains some content when its scripts are not available

2. Site is progressively enhanced
Progressive enhancement means that everyone can access the basic content and functionality of a page in any browser, and those without certain browser features may receive a reduced but still functional experience.

[ ] Test website for cross browser compatibility on real browsers.

3. Network connection is secure
Security is an important part of the web for both developers and users. Moving forward, Transport Layer Security (TLS) support will be required for many APIs.

[x] Site is on HTTPS
[x] Site redirects HTTP traffic to HTTPS

4. Mobile-friendly
Users increasingly experience Gratipay on mobile devices, so it's important to ensure that the experience can adapt to smaller screens.

[ ] Use theme-color meta tag.
[x] HTML has a viewport .
[x] Content is sized correctly for the viewport.

5. Modern protocols

[ ] Serve gratipay.com over HTTP/2.
[ ] Serve team images over HTTP/2.

https://gratipay.com/ (http/1.1)
https://gratipay.com/School-Idol-Tomodachi/image?size=small (http/1.1)

6. CSS
The following elements do not have sufficient colour contrast:
#content > .tabs > table:nth‐of‐type(1) > tbody > tr:nth‐of‐type(n) > .item > .details.room‐
for‐numbers > .i
#content > .tabs > table:nth‐of‐type(1) > tbody > tr:nth‐of‐type(n) > .item > .details.room‐
for‐numbers > .status
#content > .tabs > table:nth‐of‐type(1) > tbody > tr:nth‐of‐type(n) > .item > .details.room‐
for‐numbers > .status > a
#content > .tabs > table:nth‐of‐type(1) > tbody > tr:nth‐of‐type(n) > .item > .details.room‐
for‐numbers > .status > a > .status‐icon.approved
#content > .tabs > table:nth‐of‐type(1) > tbody > tr:nth‐of‐type(n) > .item > .details.room‐
for‐numbers > .ctime
#content > .tabs > table:nth‐of‐type(1) > tbody > tr:nth‐of‐type(n) > .item > .details.room‐
for‐numbers > .owner
#content > .tabs > table:nth‐of‐type(1) > tbody > tr:nth‐of‐type(n) > .item > .details.room‐
for‐numbers > .owner > .owner
#content > .tabs > table:nth‐of‐type(1) > tbody > tr:nth‐of‐type(n) > .item > .numbers.mono >
tbody > tr:nth‐of‐type(2) > td:nth‐of‐type(2)
#content > .tabs > table:nth‐of‐type(1) > tbody > tr:nth‐of‐type(n) > .item > .numbers.mono >
tbody > tr:nth‐of‐type(2) > td:nth‐of‐type(3)

7. JavaScript

[ ] Minify JavaScript files.

https://assets.gratipay.com/gratipay.js?etag=Y59-7dhkyAPyCn-tcouk5w~~
https://assets.gratipay.com/bootstrap-dropdown.js?etag=dl7yT22DdV0LK-kWZQEv4w~~

8. Best practices

[ ] Every image element has an alt attribute.
[ ] Divide Projects page into individual pages. Currently it's one big page. (#4234)

https://github.com/gratipay/gratipay.com/pull/4234 is part of 8, but all projects are still being loaded.

Are the italics portions our current times/metrics?
How did you set those targets? Are they standard?

Are the italics portions our current times/metrics?
How did you set those targets? Are they standard?

https://gratipay.slackarchive.io/gratipay/page-55/ts-1486065489005059

Modern protocols

We can't do this for dynamic pages, since Heroku doesn't support HTTP/2 yet. However, we can do this for assets served via the CDN (where it is definitely important, given the number of small requests)


Tap here to see the ongoing campaigns: Wrong wording

Sounds misleading when it is already enabled.

How about "See ongoing campaigns"?
Btw, "Display Nearby Notifications" has the same problem, so both can probably be fixed together. :)

I find this clearer:

What about "Turn on to see the ongoing campaigns" ?

How about "Turn on to See ongoing campaigns"?

"Tap here" can be removed and then it makes sense "See the ongoing campaigns" and for nearby notifications "See the nearest place that needs pictures".
Or the summary of the menu items can be dynamically changed depending on whether the toggle is on or off.

Well generally toggle switches have such description's of the switches beneath them.
So may be, we can change to "Once enabled" or "Turning on the switches"

"Tap here" can be removed and then it makes sense "See the ongoing campaigns" and for nearby notifications "See the nearest place that needs pictures".

This would be my vote. :)

Do we have more opinions on this?

@nicolas-raoul Are you OK with "See the ongoing campaigns"? If you are, we can allow the student to proceed with this, I think it is very beginner-friendly. ;)

OK! :-)

I would like be to this assigned @nicolas-raoul

@JobGetabu It is yours, looking forward to your pull request :-)

@JobGetabu It is yours, looking forward to your pull request :-)

Pull request

Thanks!
Would you mind doing the same for "Display nearby notification" by the way?

No, I don't mind.
I'll fix that and pick up another issue
Thanks
On Mon, Mar 25, 2019, 12:56 PM Nicolas Raoul<EMAIL_ADDRESS>wrote:

Thanks!
Would you mind doing the same for "Display nearby notification" by the way?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/commons-app/apps-android-commons/issues/2441#issuecomment-476125838,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AVeUnzyrDQEkqKGzq5JmhohpFPrMcj3Vks5vaJ1cgaJpZM4a2RZE
.


Working version of new interpolation

This PR changes the interpolation of the diagnostic cycles so that cv steps are interpolated on time instead of voltage. This is important so that enough points are included for feature extraction.

@d-cogswell My concern is that many of the existing featurization methods rely on a specific number of data points that are evenly spaced throughout the voltage window (its the primary reason for interpolating). So if we add a dt condition to the interpolation we will effectively break most of those functions. Same would be true of adding the first and last data point.
What I can do instead is add a summary statistic that is computed for the diagnostic steps that are CV or CCCV. If you have some code that is computing the relevant information from the raw data, we can just call that function during the structuring method and include the values that it computes. That way the method has the cycle type information, and access to the raw data at the same time.


proposal: x/net/html: ParseOption to set maxBuf

Proposal Details
Abstract
This proposal suggests introducing an option to set the MaxBuf parameter in the html.Parse function to control memory usage when parsing large HTML documents.
Background
Currently, html.Parse in the Go standard library calls ParseWithOptions internally, leading to a chain of function calls: html.Parse -> ParseWithOptions -> p.parse() -> p.tokenizer.Next() -> readByte(). Within readByte(), there is a logic block:
if z.maxBuf > 0 && z.raw.end-z.raw.start >= z.maxBuf {
    z.err = ErrBufferExceeded
    return 0
}

This logic is activated only if maxBuf is set. However, there is no way to set MaxBuf when using html.Parse or ParseWithOptions.
Problem
When parsing very large HTML documents, such as this page, memory usage can increase significantly due to the inability to set MaxBuf.
Solution
To address this, I propose introducing a function similar to ParseOptionEnableScripting to allow users to set MaxBuf.
Implementation
A sample implementation using reflection is provided below. This implementation, though functional, uses unsafe methods and reflection, which are not ideal for production code:
func ParseOptionSetMaxBuf(maxBuf int) html.ParseOption {
    funcValue := reflect.MakeFunc(
        reflect.FuncOf([]reflect.Type{reflect.TypeOf((*html.ParseOption)(nil)).Elem().In(0)}, nil, false),
        func(args []reflect.Value) (results []reflect.Value) {
            parserValue := args[0].Elem()
            tokenizerField := parserValue.FieldByName("tokenizer")
            tokenizerPtr := reflect.NewAt(tokenizerField.Type(), unsafe.Pointer(tokenizerField.UnsafeAddr())).Elem().Interface()
            if tokenizer, ok := tokenizerPtr.(interface { SetMaxBuf(int) }); ok {
                tokenizer.SetMaxBuf(maxBuf)
            }
            return nil
        },
    )
    var option html.ParseOption
    reflect.ValueOf(&option).Elem().Set(funcValue)
    return option
}

This implementation can be used as follows:
html.ParseWithOptions(bytes.NewReader(data), util.ParseOptionSetMaxBuf(len(data)*3))

To properly address the issue, I propose the following function to be added to the standard library:
func ParseOptionSetTokenizerMaxBuf(maxBuf int) ParseOption {
    return func(p *parser) {
        p.tokenizer.SetMaxBuf(maxBuf)
    }
}

Testing has shown that setting maxBuf to at least 1.04 times the body length ensures normal operation.
Feasibility
Adding a function similar to ParseOptionEnableScripting to allow users to set MaxBuf would provide a safe and efficient way to control memory usage when parsing large HTML documents, avoiding the use of unsafe methods and reflection.
Environment

Go version: 1.21
OS: Tested on Ubuntu 22.04 and Windows 11

Related: #63177 to set the entire Tokenizer

CC @neild @bradfitz


ImageMagick fails on clean macOS

Completely wiped and reinstalled macOS on my Intel MacBook.
Running magick (or any other ImageMagick command like convert or identify) fails with this error:
$ tea +imagemagick.org magick
dyld[7042]: Library not loaded: /usr/local/opt/libxext/lib/libXext.6.dylib
  Referenced from: <281DAF0C-0079-3626-960D-4CFE9D1AA752> /Users/vladde/.tea/imagemagick.org/v<IP_ADDRESS>/bin/magick
  Reason: tried: '/usr/local/opt/libxext/lib/libXext.6.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/libxext/lib/libXext.6.dylib' (no such file), '/usr/local/opt/libxext/lib/libXext.6.dylib' (no such file), '/Users/vladde/.tea/zlib.net/v1.2.13/lib/libXext.6.dylib' (no such file), '/Users/vladde/.tea/libpng.org/v1.6.39/lib/libXext.6.dylib' (no such file), '/Users/vladde/.tea/ijg.org/v9.5.0/lib/libXext.6.dylib' (no such file), '/Users/vladde/.tea/imagemagick.org/v<IP_ADDRESS>/lib/libXext.6.dylib' (no such file)

That bin might predate some major changes; I'll trigger a rebuild to see.

Works like a charm after rebuild!
$ tea +imagemagick.org magick --version
Version: ImageMagick 7.1.0-61 Q16-HDRI x86_64 6b11831de:20230205 https://imagemagick.org
Copyright: (C) 1999 ImageMagick Studio LLC
License: https://imagemagick.org/script/license.php
Features: Cipher DPC HDRI
Delegates (built-in): bzlib jng jpeg png zlib
Compiler: gcc (4.2)

Before I close this issue, are there other tools that require a rebuild? Can we check this somehow – or maybe just full send it and rebuild everything?

@jhheider yeah can we either rebuild or delete everything from before a certain date? Fore every report like this we get there are 100 users who just quit tea altogether and tell their friends that tea is just junk.


Add windows/arm64 support

Go 1.17 supports building for windows/arm64, however the build for that platform currently fails:
 # github.com/go-ole/go-ole
vendor/github.com/go-ole/go-ole/com.go:238:21: undefined: VARIANT
vendor/github.com/go-ole/go-ole/com.go:247:22: undefined: VARIANT
vendor/github.com/go-ole/go-ole/connect.go:79:72: undefined: VARIANT
vendor/github.com/go-ole/go-ole/connect.go:90:76: undefined: VARIANT
vendor/github.com/go-ole/go-ole/connect.go:105:69: undefined: VARIANT
vendor/github.com/go-ole/go-ole/connect.go:115:73: undefined: VARIANT
vendor/github.com/go-ole/go-ole/connect.go:129:69: undefined: VARIANT
vendor/github.com/go-ole/go-ole/connect.go:139:73: undefined: VARIANT
vendor/github.com/go-ole/go-ole/connect.go:173:84: undefined: VARIANT
vendor/github.com/go-ole/go-ole/idispatch.go:26:90: undefined: VARIANT
vendor/github.com/go-ole/go-ole/idispatch.go:26:90: too many errors

Also see https://github.com/go-ole/go-ole/issues/216 and https://github.com/go-ole/go-ole/pull/217.
Once that is resolved/merged and we updated the vendored copy of go-ole, we should be able to provide windows/arm64 release binaries.
Originally posted by @tklauser in https://github.com/cilium/cilium-cli/issues/509#issuecomment-910704622

Hi just to let you know, this issue was fixed in https://github.com/go-ole/go-ole/commit/8b1f7f90f6b1728609c9694f2cff140d34fd91f8, just not tagged to a release/version yet.

Thank you for the update @Erisa!


Fix visual disorder

Draining HP at x4 effectiveness will make the main description text go wild to the right while the percentage of the related move goes for an additional line, ruining the view. This fix reduces recoveryText's length so even if the percentage went really high, nothing would be messed up.
To understand what the issue is about, try Giga Draining with Abomasnow on a Swampert for example.
EDIT : and no, no formatting issue.

Sorry, found out everything was ok. My bad. ^^""

Or not, after all.

Sorry I can’t test rn can you just screenshot what you’re fixing?

Before
After

Thanks!

@Ntonio36

EDIT : for anyone seeing this past October 2017, the images are unavailable.

Have you considered just attaching the pictures to GitHub so it's not a problem?

Before

After

Like this (also I cropped it so it could be easier to see which part you fixed)

@Zarel thank you !


Add exercise showing the use of the visibility levels

The PRIVATE/INTERFACE/PUBLIC visibility levels are covered in one episode, but the differences between the 3 are not immediately obvious. In particular, the use of INTERFACE to express transitive dependencies only can be challenging to understand. Add one or more exercises showing the when to use each.

I think it would be good to iterate on these when they appear before they explained (maybe just by saying that these are visibility levels and they will be talked about later). I had a question on one of the breakout rooms.

Yep, I had a question on them too and also questions on what exactly INTERFACE means and whether it is actually ever used in practice.


Are abbreviations being used properly to filter FPs?

See https://github.com/UCDenver-ccp/translator-concept-recognition/issues/8

Also see this example

Another example:  The query for was MONDO:0016241 = alternating hemiplegia of childhood
AHC should have been matched to acute hepatitis C as shown in the sentence.

Update: in all of the examples shown above, the correct short-to-long form abbreviation pair was correctly extracted from the document. Therefore, there must be an issue with the way the abbreviations are being used in the post-processing of the concept recognition output.

Update: acute hepatitis C was not present in the version of MONDO that was used to extract disease mentions, although it does appear in the ontology at this time.
hepatitis C is present, but hepatitis C is not a synonym for the concept. The closest is hepatitis type C. There is hepatitis C viral infection - so maybe we can alter the synonyms by removing viral infection.


Added more tests

Added some tests for coverage

Coverage increased (+0.8%) to 96.625% when pulling a76cf296072409d677c6ec49cbc04c9008b89ff3 on vprince1:feature-tests into e7a7504b79befaa25282baee7f4fa3405423a12b on binduwavell:master.

Coverage increased (+0.8%) to 96.625% when pulling 1e847044dc1c45432a7c126c4cea46a20ea4fbac on vprince1:feature-tests into e7a7504b79befaa25282baee7f4fa3405423a12b on binduwavell:master.

Made changes as per your comments...

Looks good, thanks @vprince1


watchEffect can't collect dependencies in setTimeout function

Vue version
3.2.47
Link to minimal reproduction
https://play.vuejs.org/#eNpdj8FugzAMhl/FygUqELAeq4C2w96gx1xYagZaSCJwuk0o7z7TsqrtIbES//9n/4t48744BxQHIWc9DZ5gRgq+URaG0buJYIEJuxy+W9L9Vt67DjVBhG5yIyTsT5RVVjs7E2gXLOEE9epLq52yd5403UHdwMJ4FtrZGSyM+0yTYz/M/HNC4Io/qAPhCZw1v3xpTBgD62rHYUQXHjhPpLtpSf6/TXFuTcALJOawr6p1r8hHltfYHJgfhKM3LeEaH2S/bzb7AZblFixGWXLrIvkIRM7CqzaD/qqV2DRZpkSTvcjy2metLG9sEf8AhsmAKA==
Steps to reproduce
click the button +1
In setTimeout function is accessed counter.vaule, but watchEffect can't collect a dependency on counter.value, the result is that the callback function passed into watchEffect is not executed when counter.value is changed

What is expected?
The watchEffect callback function calls back when counter.value is changed
What is actually happening?
This  callback functionis executed only once
System Info
No response
Any additional comments?
No response

This is expected and documented.

While you don't use await, setTimeout callbacks are still asynchronous.


Mismatched dtype in cat operator

🚀 Model / language coverage
The following code results in a
RuntimeError: Expected dtype thunder.dtypes.float32 but found thunder.dtypes.int64_!

error in cats implementation. It seems we end up confused about the proper dtype of the second tensor.
#!python3
import torch
import thunder
import einops

def foo(input_ids, inputs_embeds):
  batch_size, sequence_length, hidden_size = inputs_embeds.shape

  media_features = torch.randn((2,1,1,256,5120), dtype=torch.float16)
  num_images_per_sample = media_features.size(1)
  num_patches = media_features.size(3) * media_features.size(2)

  media_end_id = 32005
  sorted_media_end_positions_mask, media_end_positions_mask_sort_idx = (
      # NOTE: to(torch.long) is needed because PyTorch does not have sort for boolean tensors on CUDA
      (input_ids == media_end_id).to(torch.long).sort(dim=-1, descending=True, stable=True)
  )

  padded_media_indices = torch.where(
    sorted_media_end_positions_mask.to(torch.bool),
    media_end_positions_mask_sort_idx - num_patches + 1,
    sequence_length
  )
  padded_media_indices = padded_media_indices.unsqueeze(-1) + torch.arange(
    num_patches, device=padded_media_indices.device
  ).repeat(*padded_media_indices.shape, 1)
  padded_media_indices = padded_media_indices.reshape(batch_size, -1)
  padded_media_indices = einops.repeat(padded_media_indices, 'b s -> b s h', h=hidden_size)

  second = torch.zeros((batch_size, num_patches, hidden_size), device=inputs_embeds.device)
  # Note: thunder can be made to work by explicitly setting the dtype:
  #   second = torch.zeros((batch_size, num_patches, hidden_size), dtype=torch.float32, device=inputs_embeds.device)
  #print(f"ii dt:shape={inputs_embeds.dtype}:{inputs_embeds.shape}")
  #print(f"2nd dt:shape={second.dtype}:{second.shape}")
  updated_input_embeds = torch.cat(
    (inputs_embeds, second), dim=1
  )
  return updated_input_embeds

at = torch.zeros((2,384), dtype=torch.int64)
bt = torch.randn((2,384, 5120), dtype=torch.float32)

foo(at, bt)

thfoo = thunder.jit(foo)
thfoo(at, bt)

As the comment in the zeros line indicates, thunder can be coerced into compiling this by explicitly adding a dtype to the zeros call. However, it seems the bug is more global than just zeros, as our zeros works perfectly on its own:
>>> def z1(x: torch.Tensor) -> torch.Tensor:
...     return torch.zeros([2,1,2], device=x.device)
...
>>> abc
tensor([[[1., 1.],
         [1., 1.]],

        [[1., 1.],
         [1., 1.]]])
>>> abc.shape
torch.Size([2, 2, 2])
>>> abc.dtype
torch.float32
>>> z1(abc).dtype
torch.float32
>>> th_z1 = thunder.jit(z1)
>>> th_z1(abc).dtype
torch.float32
>>> assert z1(abc).dtype == th_z1(abc).dtype
>>>

Pitch
This came about while using Nik's patch to try to get #343 to work. Nik and I still need some iteration on his patch, so there's no guarantee that this will be the next bug after #124, but it's plausibly a blocker.
cc @apaz-cli @tfogal

Note that PyTorch upcasts automatically when given tensors of varying dtype while Thunder currently errors. When I tried to add this (clumsily) #41 , it seemed that I hit some inconsistency in torch eager vs. compile.

Note that PyTorch upcasts automatically when given tensors of varying dtype while Thunder currently errors.

Ahh, yeah, I suspected something is off there; thanks for the confirmation!
But I think something more insidious is going on here---when run in eager, the types match. i.e.:   print(f"dtypes: {inputs_embeds.dtype}, {second.dtype}") says 'float32' twice in eager mode, but 'float32, int64' in thunder.
If we were to actually do #41, it should get us through this but would actually end up masking the deeper bug.

The actual issue here is that, the factory functions like zeros and ones rely on full which infers it's dtype based on fill value (when dtype is not passed)
https://github.com/Lightning-AI/lightning-thunder/blob/a3e432f7174019b2eda85865890d5f7342a993c2/thunder/clang/__init__.py#L275-L277
Also, this is hidden during execution with torchex as it does the correct thing of reading the value from torch.get_default_dtype-
https://github.com/Lightning-AI/lightning-thunder/blob/a3e432f7174019b2eda85865890d5f7342a993c2/thunder/executors/torchex.py#L486
Minimal Repro (output is float but in trace we see that proxy has integer dtype):
import torch
import thunder

def foo(x: torch.Tensor) -> torch.Tensor:
    o = torch.zeros((2,1,2), device=x.device)
    return o

jfoo = thunder.jit(foo)
o = jfoo(torch.randn(3, 3))
print(o.dtype)
print(thunder.last_traces(jfoo)[0])

Output
torch.float32

import thunder
import thunder.core.devices as devices
import thunder.torch as ltorch
import torch
from thunder.executors.torchex import no_autocast

@torch.no_grad()
@no_autocast
def computation():
  # /home/kkalambarkar/lightning-thunder/scratchpad/test.py:63:             o = torch.zeros((2,1,2), device=x.device)
  o = ltorch.zeros((2, 1, 2), device=devices.Device("cpu"), dtype=None)  # o: "cpu i64[2, 1, 2]"
    # o = ltorch.full((2, 1, 2), 0, device=devices.Device("cpu"), dtype=None)  # o: "cpu i64[2, 1, 2]"
      # o = prims.full((2, 1, 2), 0, device=devices.Device("cpu"), dtype=dtypes.int64_)  # o: "cpu i64[2, 1, 2]"
  return o

I think this is a duplicate of https://github.com/Lightning-AI/lightning-thunder/issues/621

triage review:

subtlety: do we want to record the default dtype at call and re-trace when it changes? (put it in CacheInfo, record dtypes in calls to factory primitives). Yes, agreement that this is the way to go.
another option is to query the default type during execution (this would be super hard, because dtypes are constexpr today)


Drupal: Add FAQ paragraph. Enable it on situation CT.

Trello card: https://trello.com/c/ySzmS8QF/39-paragraph-faq
What about the paragraph translation? What approach do we choose? Symetric or asymetric?

I think symetric should be fine

obsolete


tessen: unstable-2022-08-04 -> 2.2.0

Description of changes

Changelog: https://git.sr.ht/~ayushnix/tessen/tree/v2.2.0/item/CHANGELOG.md
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 223147 run on x86_64-linux 1

1 package built:

tessen


Encryption

Change in the json key for the encryption limit

Codecov Report

Merging #309 into release-1.14 will not change coverage.
The diff coverage is n/a.

@@               Coverage Diff               @@
##             release-1.14     #309   +/-   ##
===============================================
  Coverage           41.15%   41.15%
  Complexity            762      762
===============================================
  Files                 110      110
  Lines                7423     7423
  Branches              843      843
===============================================
  Hits                 3055     3055
  Misses               4043     4043
  Partials              325      325

Impacted Files
Coverage Δ
Complexity Δ

...n/java/org/sunbird/common/models/util/JsonKey.java
0% <ø> (ø)
0 <0> (ø)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1b889a8...4a97a10. Read the comment docs.


I'm not quite sure if this problem is from my side or yours but please take a look at this

(node:6912) UnhandledPromiseRejectionWarning: TypeError: db.fetch is not a function
at getpoints (C:\Users\H P\Documents\GitHub\Test\node_modules\ez-games.js\src\games.js:75:31)
at Object.points (C:\Users\H P\Documents\GitHub\Test\node_modules\ez-games.js\ez-games.js:9:18)
at Object.execute (C:\Users\H P\Documents\GitHub\Test\src\commands\games\point.js:19:34)
at Client. (C:\Users\H P\Documents\GitHub\Test\src\events\message.js:14:34)
at Client.emit (events.js:315:20)
at MessageCreateAction.handle (C:\Users\H P\Documents\GitHub\Test\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (C:\Users\H P\Documents\GitHub\Test\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (C:\Users\H P\Documents\GitHub\Test\node_modules\discord.js\src\client\websocket\WebSocketManager.js:384:31)
at WebSocketShard.onPacket (C:\Users\H P\Documents\GitHub\Test\node_modules\discord.js\src\client\websocket\WebSocketShard.js:444:22)
at WebSocketShard.onMessage (C:\Users\H P\Documents\GitHub\Test\node_modules\discord.js\src\client\websocket\WebSocketShard.js:301:10)
(Use node --trace-warnings ... to show where the warning was created)
(node:6912) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:6912) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

define db + its problem from the package and sorry for late respone,
if u have any good packages idea give me at my disc server discord.gg/devs
ill be updating this package soon to slove 99% of the problems.

ah its okay now
On Tue, Apr 6, 2021 at 6:08 PM DarkBoy-js @.***> wrote:

define db + its problem from the package and sorry for late respone,
if u have any good packages idea give me at my disc server discord.gg/devs
ill be updating this package soon to slove 99% of the problems.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/DarkBoy-js/ez-games.js/issues/1#issuecomment-813999940,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ASV2TNZPCUTPJMNAL3FLQMDTHLMRXANCNFSM4XY2E6DA
.


GH-40733: [Go] Require Go 1.21 or later

Rationale for this change
Bumping to require Go 1.21 or later as 1.20 is EOL

GitHub Issue: #40733

@github-actions crossbow submit -g go


ESET getting flagged

Hi, ESET detected the payload , upx just made it worse lol :(

EXE release is not recommended use the DLL


error in demo 66 & on-prem http handler

and btw, missing parenthesis closing the SWITCH in the on-prem http handler code.

fixed both errors with https://github.com/abap2UI5/abap2UI5/pull/366


CD proposal

Set up automatic deployment.
Now the deployment process is manual, so once we apply any changes to the source code we have to ask @KyleOps to perform the system rollout. After this task is completed the continuous delivery pipeline should be set up.
Below I provide my vision of a step-by-step guide on how to accomplish the goal and responsible people

[ ] Setup docker image publishing to GitHub registry https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions @projkov
[ ] Remove ingress configuration from https://github.com/hl7au/au-fhir-core-inferno/tree/master/infra/aws-impl
Ingress is used by other services like SMILE CDR and ontoserver so it should be managed on the higher level of infrastructure confirmation @ir4y
[ ] Create an AWS service account with access to @KyleOps
terraform s3 bucket https://github.com/hl7au/au-fhir-core-inferno/blob/master/infra/aws-impl/provider.tf#L29C3-L34C4
inferno namespace of EKS fhir-k8s-dev cluster
[ ] Add AWS service account key and secret to the repository secret @brettesler-ext
[ ] Add Github Action step to apply the configuration on each push to the main branch @ir4y

I think there is not enough information in this ticket for me to understand what is actually intended in terms of eventual deployment.
However, I see that this is a deployment topic, and this is generally poorly served by Github, as it has limited integration of registries, in particular for Helm and Terraform and very little support for observability or GitOps. For this reason, I suggest that we develop the automated deployment in Gitlab, which provides these features and allows us to concentrate assets in a single location and increase the ability to track from issue to deployment and monitor.
It will also simplify credential management and by that increase safety, as Gitlab uses tokens scoped to the lifetime of the pipeline, reducing leaks. I am raising this last point as we should build the security properties for business-as-usual into deployment at this time. They tend to be challenging to add later.
Note that disruption would be small, as this will not affect current product deliverables and associated pipelines, which arrive as OCI containers. All CI/CD infrastructure for these products will remain as is.
Here are the features in Gitlab I am referring to, that I believe are not available in Github:

https://docs.gitlab.com/ee/user/packages/container_registry/
https://docs.gitlab.com/ee/user/packages/helm_repository/
https://docs.gitlab.com/ee/user/infrastructure/iac/
https://docs.gitlab.com/ee/integration/vault.html
https://docs.gitlab.com/ee/user/clusters/agent/gitops.html
https://docs.gitlab.com/ee/user/clusters/create/

I have experience in applying these features.

Hi @jgsuess thank you for your feedback. All your ideas make perfect sense. To be honest I also prefer Gitlab and use it a lot for other projects.
However, I am not sure how we can leverage it for the current project since it is under sparked and hl7au and driven by the community.
Do you envision creating a fork of this repo on gitlab.com?
If we go this way, @brettesler-ext could you please clarify the process, do we need community approval for this kind of action?
Another question is how we are going to maintain the Terraform project for the AWS cloud infrastructure including Ontoserver and SmileCDR configuration. Should it be open-source and publicly available to all SPARKED participants? I tend to think, that it should be.
Happy to continue this conversation letter today on the call.

I would like to avoid making changes to the source code locations as they currently are. They are sanctified and organised. I think my approach would be to use a downstream repository and add the respective implementation files for DevOps there. This means that the local repository would remain unchanged, and no DevOps artifacts would enter here. Alternatively, and preferred, I would have this repository publish binary artifacts and consume them on the Gitlab side. This has the advantage that versioning and packaging are required, providing a clean process boundary.

@KyleOps thank you for implementing the action for k8s deployment.
Now we have a CI/CD pipeline up and running.
Once the issue with public access to GitHub package https://github.com/hl7au/au-fhir-core-inferno/pkgs/container/au-fhir-core-inferno is resolved I would like to add the following list of enhancements:

[ ] Adjust CI to follow https://github.com/hl7au/au-fhir-core-inferno?tab=readme-ov-file#release-management. The pipeline should be triggered when a new GitHub release is created

on:
  release:
    types: [created]

[ ] The release tag  should be passed to Terraform to replace the default tag in the module variable https://github.com/hl7au/au-fhir-core-inferno/blob/master/infra/modules/au_fhir_inferno/input.tf#L17

This issue is done and can be closed. Approved by @ir4y  2024.07.16


Ruff removing import code, that may fail

ruff 0.0.253
Unused import inside try and except block which catch ModuleNotFoundError error, should not be removed(ruff check . --fix do this, without any config file)
     @staticmethod
     def check_orjson():
         try:
-            import orjson
             return True
         except ModuleNotFoundError:
             return False

Interesting, this is arguably correct but I can see why we'd want to avoid this -- the ModuleNotFoundError is arguably a "usage" of the import.

I found this when trying to add basic ruff support for Bottles app, in my project I only once ever used such code.
When looking at https://github.com/search?l=Python&p=1&q=ModuleNotFoundError&type=Code, I see that this is used a lot


Keyboard shortcut to show/hide the Graph UI panel

Since the Graph UI panel occupies a lot of space, it will be useful to have a keyboard shortcut for instantaneous access to it, just like F10 and F11 toggle the notebook list and the note list.

@treymo Can I work on this?

@Ravichandra-C Go for it!

Keyboard Shortcut F8 is added. @treymo Can we close this issue?

Closed, thanks @Ravichandra-C !!


[site support request] SRF.ch temporarily rewatchable livestreams

[x] I'm reporting a new site support request
[x] I've verified that I'm running youtube-dl version 2021.12.17
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that none of provided URLs violate any copyrights
[x] I've searched the bugtracker for similar site support requests including closed ones

Example URLs
https://www.srf.ch/play/tv/-/video/rad-luettich-bastogne-luettich?urn=urn:swisstxt:video:srf:1740962
youtube-dl -v https://www.srf.ch/play/tv/-/video/rad-luettich-bastogne-luettich?urn=urn:swisstxt:video:srf:1740962
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.srf.ch/play/tv/-/video/rad-luettich-bastogne-luettich?urn=urn:swisstxt:video:srf:1740962']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: ffmpeg git-2020-03-06-cfd9a65, ffprobe git-2020-03-06-cfd9a65
[debug] Proxy map: {}
[generic] rad-luettich-bastogne-luettich?urn=urn:swisstxt:video:srf:1740962: Requesting header
WARNING: Falling back on generic information extractor.
[generic] rad-luettich-bastogne-luettich?urn=urn:swisstxt:video:srf:1740962: Downloading webpage
[generic] rad-luettich-bastogne-luettich?urn=urn:swisstxt:video:srf:1740962: Extracting information
ERROR: Unsupported URL: https://www.srf.ch/play/tv/-/video/rad-luettich-bastogne-luettich?urn=urn:swisstxt:video:srf:1740962
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\YoutubeDL.py", line 815, in wrapper
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\YoutubeDL.py", line 836, in __extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\common.py", line 534, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpupik7c6w\build\youtube_dl\extractor\generic.py", line 3489, in _real_extract
youtube_dl.utils.UnsupportedError: Unsupported URL: https://www.srf.ch/play/tv/-/video/rad-luettich-bastogne-luettich?urn=urn:swisstxt:video:srf:1740962

Description

Youtube-dl works perfectly fine for SRF's "Play SRF" on demand platform, but unfortunately I can't get it to work for those former livestreams, which are still available to watch for a day or two on the website after the sports event, but are not added to the on demand platform afterwards.
Is it possible to add Youtube-dl support for those as well? Thanks.

The problem URL has an extra srf: before the numeric id.
Try this:
--- old/youtube_dl/extractor/srgssr.py
+++ new/youtube_dl/extractor/srgssr.py
@@ -166,7 +166,7 @@ class SRGSSRPlayIE(InfoExtractor):
                             [^/]+/(?P<type>video|audio)/[^?]+|
                             popup(?P<type_2>video|audio)player
                         )
-                        \?.*?\b(?:id=|urn=urn:[^:]+:video:)(?P<id>[0-9a-f\-]{36}|\d+)
+                        \?.*?\b(?:id=|urn=urn:[^:]+:video:(?:(?P=bu):)?)(?P<id>[0-9a-f-]{36}|\d+)
                     '''

     _TESTS = [{

The stream link, as listed, should be inside some manifest (.mpd, .m3u8) that is retrieved from a valid JSON API (not giving 404). This can't be traced from UK owing to geo-block but a HAR saved from the developer tools in a successful in-region browser test should show what's happening.
I see we should also handle https://www.srf.ch/play/tv/sendung/... pages, which is possible by searching for urn=urn:... and redirecting to the resulting urn. Also, I presume that the Flash formats are history and should be skipped, giving this resulting diff:
--- old/youtube_dl/extractor/srgssr.py
+++ new/youtube_dl/extractor/srgssr.py
@@ -81,6 +81,11 @@ class SRGSSRIE(InfoExtractor):

         return media_data

+    # Don't actually try to extract these obsolete formats
+    # TODO: add a skip_protocols=['f4m'] kwarg to _extract_akamai_formats()
+    def _extract_f4m_formats(self, manifest_url, video_id, **kw):
+        return []
+
     def _real_extract(self, url):
         bu, media_type, media_id = re.match(self._VALID_URL, url).groups()
         media_data = self._get_media_data(bu, media_type, media_id)
@@ -156,6 +161,7 @@ class SRGSSRIE(InfoExtractor):
         }

+#https://www.srf.ch/play/tv/sendung/para-graf?id=be3b48a9-5ee6-48b3-a270-bdbe1ea1f2e2
 class SRGSSRPlayIE(InfoExtractor):
     IE_DESC = 'srf.ch, rts.ch, rsi.ch, rtr.ch and swissinfo.ch play sites'
     _VALID_URL = r'''(?x)
@@ -164,9 +170,10 @@ class SRGSSRPlayIE(InfoExtractor):
                         (?P<bu>srf|rts|rsi|rtr|swissinfo)\.ch/play/(?:tv|radio)/
                         (?:
                             [^/]+/(?P<type>video|audio)/[^?]+|
-                            popup(?P<type_2>video|audio)player
+                            popup(?P<type_2>video|audio)player|
+                            sendung/[^/]+?/?
                         )
-                        \?.*?\b(?:id=|urn=urn:[^:]+:video:)(?P<id>[0-9a-f\-]{36}|\d+)
+                        \?.*?\b(?:id=|urn=urn:[^:]+:video:(?:(?P=bu):)?)(?P<id>[0-9a-f-]{36}|\d+)
                     '''

     _TESTS = [{
@@ -249,4 +256,11 @@ class SRGSSRPlayIE(InfoExtractor):
         bu = mobj.group('bu')
         media_type = mobj.group('type') or mobj.group('type_2')
         media_id = mobj.group('id')
+        if media_type is None:
+            webpage = self._download_webpage(url, media_id, fatal=False) or ''
+            urn = self._html_search_regex(
+                r'''urn=urn:(%s:(?:video|audio):[0-9a-f-]+)['"]''' % re.escape(bu[:3]),
+                webpage, media_id, fatal=False)
+            if urn:
+                return self.url_result('srgssr:%s' % (urn, ), 'SRGSSR')
         return self.url_result('srgssr:%s:%s:%s' % (bu[:3], media_type, media_id), 'SRGSSR')


Getting a blank page on the first page load

Description

In the iOS Safari browser, I keep getting a blank page on the first load, usually right after a deployment when the server cache is refreshed after fetching new data from the Google Docs.
The page is only rendered after refreshing the page.
Expected Behaviour

The page should have been rendered ok the first load of the page, without requiring any refresh.
Additional Information

A blank page in the browser usually indicates an unhandled runtime error.
We might need to add a Sentry integration to gather more information about the bug. KawalCOVID19 has a Sentry License to integrate with.

In the MacBook Safari browser I also get a blank page on the first load

Someone should take a look on this seriously.
Maybe can be start with provide a video, or any errors you can catch, the service worker conditions, the network call on DevTools or any other informations.
I just don't think we can ignore this kind of bug.

@iamyuu, could you please provide some screenshots and screen recordings while reproducing it on your macOS Safari browser issues? I can't reproduce it on my local machine.
You should be able to get the fresh URL every time a build is successful on Netlify. You can get the link to the unique deployment preview URLs by visiting any Pull Request and click on the deployment log, then click the Preview button right on top of the log section, as illustrated in this video:
https://user-images.githubusercontent.com/6315466/126722625-3c381ab1-3c1b-451c-aabf-2ae16b94241a.mov

I've tried several deployment previews and also tried clearing the cache but still can't reproduce it (again), sorry can't help.

I'm not sure it'll be exactly the same, but I found a similar case when visiting jointoucan.com using Safari, first loading getting blank, and after I refresh content will appear
Here is what I found in the console:


Import autosuggestion doesn't work (TS 4.0.3)

TypeScript Version:  4.0.3
Import autosuggestion stoped work in a project. Doesn't work with the 4.1 dev too.

This is a full trace log  from output
https://gist.github.com/whitecolor/19e6ded72a8eb90a874beff468a5b552
There some errors Error: Debug Failure. Alias targets of default exports must have a parent don't know if it relates.

It does look like that’s related, but I would need a full working repro to be able to do anything here, since most auto imports do in fact work in 4.0.3 😄

I have debugged it.
It was due to this module:
import { LocalStorage } from 'node-localstorage'

if (typeof localStorage === 'undefined' || localStorage === null) {
  console.log('localStorage')
  const localStorage = (global.localStorage = new LocalStorage('./.tmp/scratch'))
  localStorage.clear()
}

export default global.localStorage // this line cauzed it.

So when I removed line:
export default global.localStorage

It started to work, so something went wrong with default export with global, so it seems the error in the log relates because there was no one after the fix.

Great, thanks for narrowing it down!

@whitecolor I actually still can’t reproduce this. Can you please provide a full repro? I.e., tsconfig.json, package.json, and all source files. A link to a repository would be great.

@andrewbranch
https://github.com/whitecolor/ts-global-expor-issue
go to test2.ts


GitHub Media Store: don't swallow upload errors

GitHub Media Store catches and logs upload errors to the console. We should probably not suppress these so that we can pass them to cms.alerts

@dwalkr did you fix this?

nope


ReferenceError: LeaderLine is not defined

I added the leader-line.min.js file in my Vue project directory and given its path in index.html.
Now, when I am initiating its constructor, it is throwing an error that LeaderLine is not defined.
new LeaderLine(
document.getElementById(start_wr),
document.getElementById(end_wr),
);
@anseki

Hi @Nehasoni988, thank you for the comment.
The loading the library might have failed, or your code might have tried to access to the library before that was loaded.
The library can be accessed after that was loaded.
For example: https://jsfiddle.net/w3mcryte/

Okay, got it.
Thanks!

I'm glad if I could help you. :smile:
Could you close this issue if it was solved?

Sure, :-)


Update new-teams-bulk-install-client.md

Fixes https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness/issues/10442
Corrected slash (punctuation mark)

@JoanneHendrickson
PR has been copyedited and is ready for final review, could you please check and merge? Thanks!


Make the IdentityUser class implement an IIdentityUser interface

Would it be possible to make the IdentityUser class implement an IIdentityUser interface, and for the other ASP .NET Identity classes to expose and reference instances of the IIdentityUser interface instead of the IdentityUser class?
The way it is now, my ApplicationUser class lives in my Persistence namespace because it inherits IdentityUser, which resides in Entity Framework. I need to reference the ApplicationUser class in controllers such as AccountsController and ManageController, which means that now my controllers are tightly coupled to Entity Framework too. I would prefer to make my controllers dependent on my Core library, and be persistence ignorant.
I love Entity Framework and ASP .NET Core Identity and want to use both, but I also want to be loosely coupled to them so that I can, if I want, remove Entity Framework but still use ASP .NET Core Identity.
How about....
Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUser
...implements...
Microsoft.AspNetCore.Identity.IIdentityUser
where TKey : IEquatable
...so that my ApplicationUser class can continue to inherit from Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUser....
....but my controllers can instead reference any implentation of Microsoft.AspNetCore.Identity.IIdentityUser
...then they can reference only MyProject.Core and not have to reference MyProject.Persistence.
Please could anybody advise if this is a good idea. If not, why not, and what's the alternative way?
Many thanks for your consideration
Benjamin

This is the issue we are using to track some refactoring we will do.  We aren't going to be adding an interface, as we like the ability to work with any kind of POCO.
That said, we will probably be moving IdentityUser to some kind of base common Provider package that the EF package will derive from, so you won't be forced to pull in EF just to have access to IdentityUser
Closing as dupe of : https://github.com/aspnet/Identity/issues/883

Thanks for the explanation, Haok.
I read about #883 and other related issues with great interest. Is there a way I can receive a notification when this is addressed so I can try out the new version and see if it solves my problem? Advice would be appreciated.


Can't copy prover ID

When I try to copy prover ID, it automatically opens my profile instead of copying the ID

soution #88


Doesn't compile under Linux

I'm getting
/build/.build/checkouts/jmespath.swift/Sources/JMESPath/Variable.swift:118:96: error: type 'JSONSerialization.WritingOptions' has no member 'fragmentsAllowed'
            guard let jsonData = try? JSONSerialization.data(withJSONObject: array, options: [.fragmentsAllowed]) else {

What version of swift are you compiling with?

GitHub CI says swift:5.2 docker image works and I tested it locally as well. What is the output of swift --version

I am getting the same issue with Vapor docker images, specifically vapor/swift:5.2.

Ok swift:5.2 work fine but vapor/swift:5.2 doesn't. I'm guessing .fragmentsAllowed appeared in a patch release of swift 5.2 and it never managed to make it into the vapor images. I'll ask on the Vapor discord.

The vapor swift docker images are no longer maintained. You should be able to use the swift:5.2 image instead of vapor/swift:5.2. Unless @proggeramlug says he is using another docker image in the next couple of days I am closing this

I had no idea the Vapor Swift Docker images are not maintained, their documentation still recommends you use vapor/swift:5.2.
I switched to using the latest official Swift image, swift:5.5.1, and that fixed the issue.
Thanks for the very quick replies @adam-fowler ! 👏

@CLoutas Thanks for the heads-up about the docs, I'll take care of updating that right now!

No worries, thanks for looking into this, great to see that we got to the bottom of it so quickly! 👍


Various UX improvements

[ ] Improve documentation around non-git folders
[ ] Search Result pane: automatically selecte the first file,  UP/DOWN keys support
[ ] Better way to display help(Keyboard shortcuts, hints)
[ ] Better way of selecting files, maybe new shortcuts like: selecting specific file to do some actions like delete those files in bulk, bulk selecting all files, etc..
[ ] Fix  to change search and replace modes.
[ ] Better documentation around dialogs, and why there are confirmation dialogs.

Just noticed this project on my Gihub wall, a really nice addition to the TUI tools out there! ❤
I gave it a small test drive and the file selection pane feels really nice, I'd only consider replacing the delete action with a toggle action - that makes it IMO more visual and allows e.g. reselecting files in case a user changes their mind.
The preview pane left me wanting some additional context lines shown, like grep/ripgrep does with the -C <N> flag.

Thanks 🙏,
Yes, i'm planning on adding selecting on both the search list, and the preview pane, it's better UX for sure.
Also, nice suggestion on the context, i will add that to this list.

Thanks for making this fantastic TUI app!
I want to make a wish to support quickly jumping between the panels by number rows like what LazyGit does 🙏🏼

Thanks 🙏,
I initially supported that and removed it because there would be a conflict between inputs in the number.
What i can do for now is a modifier + number(eg: ctrl + 2).
Would that work?

Sounds great for me!