Added Databricks scanner. #146

Description
Added Databricks scanner
Issue reference
We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.
Please reference the issue this PR will close: #146
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list:

[x] Code compiles correctly
[x] Created/updated tests
[x] Unit tests passing

Codecov Report

Merging #160 (a4dfe07) into main (2bad783) will increase coverage by 0.01%.
The diff coverage is 46.66%.

:exclamation: Current head a4dfe07 differs from pull request most recent head 4745db0. Consider uploading reports for the commit 4745db0 to get more accurate results

@@            Coverage Diff             @@
##             main     #160      +/-   ##
==========================================
+ Coverage   45.90%   45.92%   +0.01%
==========================================
  Files          64       66       +2
  Lines        3056     3131      +75
==========================================
+ Hits         1403     1438      +35
- Misses       1641     1681      +40
  Partials       12       12

Files
Coverage Δ

internal/scanners/dbw/rules.go
100.00% <100.00%> (ø)

internal/scanners/dbw/dbw.go
0.00% <0.00%> (ø)


Byte dance.tik tok effect house <IP_ADDRESS>4 ea4a8da5 507b 43e4 8a8d d50dcde0993f

[ ] Have you signed the Contributor License Agreement?
[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?
[ ] This PR only modifies one (1) manifest
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.4 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: codeflow:open?pullrequest=https://github.com/microsoft/winget-pkgs/pull/113296&drop=dogfoodAlpha

Add interactive only installer policy

Manifest: The manifest file path must match PackageIdentifier and PackageVersion properties from manifest. actual 'manifests\b\ByteDance\TikTokEffectHouse\<IP_ADDRESS>4', expected 'manifests\b\ByteDance\TikTokEffectHouse\2.6.2'

Manual Validation ended with:

Manual Validation ended with:

Add interactive only label


Implement expired cache items maintenance

The cleanup database operation is simple and straightforward. What I don't like is that how the maintenance code is triggered:

starting a new task on each operation on a high load system can lead to many unnecessary tasks and increased load
the maintenance code is coupled to the cache operations

I would rather build on IHostedService and a randomized interval to limit concurrency on horizontally scaled systems.

The cleanup database operation is simple and straightforward. What I don't like is that how the maintenance code is triggered:

starting a new task on each operation on a high load system can lead to many unnecessary tasks and increased load
the maintenance code is coupled to the cache operations

I would rather build on IHostedService and a randomized interval to limit concurrency on horizontally scaled systems.

I agree that the triggering can be more professional to support high load system (i just follow the same pattern from ~/src/SqlServerCache.cs#L228). I'm updating to use BackgroundService.


Warn when 'Get-' prefix was omitted.

PR Summary
Fixes #926
Warn when 'Get-' prefix was omitted. . Rename some variables to make the code clearer
The rule PSAvoidUsingCmdletAliases is used for this case to keep things simple.
PR Checklist
Note: Tick the boxes below that apply to this pull request by putting an x between the square brackets. Please mark anything not applicable to this PR NA.

[x] PR has a meaningful title

[x] Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[x] User facing documentation needed
[x] Change is not breaking
[x] Make sure you've added a new test if existing tests do not effectively test the code changed
[ ] This PR is ready to merge and is not work in progress. It is ready but I would like to wait a few days if there is any community feedback.

If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready

Good point, a similar culprit is service. I can handle that case. I think we should not warn in this case and assume that the user knows what he/she is doing.

Good point, a similar culprit is service. I can handle that case. I think we should not warn in this case and assume that the user knows what he/she is doing. I also added a test for it and tested it locally using an Ubuntu 16.04 (LTS) VM.


Dropdown Alignment Issues After Upgrading from Angular 12 to Angular 15

Is this a regression?

[ ] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
Angular 12
Description
I recently upgraded my web application from Angular 12 to Angular 15. Since the upgrade, I've encountered issues with the alignment of all dropdowns—they are no longer positioned correctly.
Here are the specifics:

Previous Angular Version: 12
Current Angular Version: 15
Previous CDK Version: "@angular/cdk": "^12.0.0"
Current CDK Version: "@angular/cdk": "^15.2.9"

For better understanding, I have attached two images:

Before Upgrade: [Image showing correct alignment]

After Upgrade: [Image showing misaligned dropdowns]

Has anyone faced similar issues after upgrading Angular and the CDK? What steps can I take to resolve this alignment problem?
Thank you in advance for your help!
Reproduction
StackBlitz link:
Steps to reproduce:
1.
2.
Expected Behavior
Expected Outcome: I was expecting the dropdowns to maintain their previous alignment and positioning after the upgrade. Specifically, I anticipated that the upgrade process would be smooth without affecting the layout of existing components.

Actual Behavior

Environment

Angular: 15.2.11
CDK/Material: "^15.2.9"
Browser(s):Chrome Version 126.0.6478.182 (Official Build) (64-bit)
Operating System (e.g. Windows, macOS, Ubuntu):Windows

Hello, we reviewed this issue and determined that it doesn't fall into the bug report or feature request category. This issue tracker is not suitable for support requests, please repost your issue on StackOverflow using tag angular.
If you are wondering why we don't resolve support issues via the issue tracker, please check out this explanation.


Warnings about failed blueprint validations

prestigeplus.zip
I was going through each mod I have one by one to see which was giving errors and warnings by itself at startup (though I also had ModMenu, Mewsifer Console, and Mewsifer Console Menu. And often TT Core and Base since many mods rely on those). This gave many warnings about failed blueprint validations.
To reproduce go to ModFinder and have active this mod and only ModMenu, Mewsifer Console, Mewsifer Console Menu, TT Core and TT Base. Then start WotR and wait until get to main start screen. The warnings and error should be in the console by then.

Thank you! How can I open the file?

No problem. If you open the zip file it will have a .mew file which you can read in Mewsifer Console. Here is the Github page to it: https://github.com/Pathfinder-WOTR-Modding-Community/MewsiferConsole It's pretty useful. It has instructions there how to see live logs as you play the games as well as to open saved file versions like mine. If you use ModFinder just search Mewsifer Console and Mewsifer Console Menu.


Add the Gitpod Ready-to-code system

If you like the idea, I'd like to work on this. 🙂

Sounds good.
I'm waiting for your PR.
Thanks.


#1185 - Integration Test for Kafka/ElasticSearch

Must proceed https://github.com/nashtech-garage/yas/pull/1182 first


Add new entries

This library looks great!  I'm trying to figure out how I would add new entries to a crontab and then write the resulting struct back out to the filesystem.  I think the CrontabFile struct needs an add_entry() function unless there's something in the library that already does this?

Actually, the library was created for the https://github.com/systemd-cron/systemd-cron-next project and can only read and parse crontab files. You are free to make a PR for the functionality you want, of course.

I see.  No problem I'll put up a PR when i have some time.  Thanks!


Add OpenBSD Instructions

Wow, I didn't know we were on OpenBSD! Thank you!

It's only been added a few days ago :-)


Any way to make it fullscreen borderless?

Currently you can play genshin on fullscreen borderless either by adding it to steam with the launch command -popupwindow or create a shortcut to the .exe and using that command as well. I was wondering how would I go about to play borderless with the fps unlocker

#1

I am able to do this by creating a shortcut to the unlock fps exe with the same command
Target "C:\Games\unlockfps.exe -popupwindow"


The app for android should be published on the PlayStore?

The Android application should be published in PlayStore for notifications to work?
From Firebase to the app, the notification works great, but from the "Send Test" in Azure to the app don´t. I´m doing exactly what the video does.
I put the API Key on the GCM section on Notification Settings
Published the BackEnd on Azure
Any plus requirement?
Should the API be published so that the Test Send in Azure works?

Hi,
the answer for first question is no, the app doesn't need to be published on PlayStore to be able to receive push notifications.


Update intrinsics descriptions

Thanks sir.

#build_preview

#build preview

#build_preview

Not sure if the index files should be changed manually to add OUT_OF_RANGE.md to the intrinsics. The index pages in the previous rendition of the web page had  markdown index pages in the same directory as the procedure descriptions which were changed when a new procedure was added. Not sure exactly what the process should be now. Have a few more like
o XOR
o REDUCE
x OUT_OF_RANGE
o COSHAPE
o FAILED_IMAGES
o GET_TEAM
o IMAGE_STATUS
o LCOBOUND
o STOPPED_IMAGES
o TEAM_NUMBER
o UCOBOUND
o RANDOM_INIT
that need added. If anyone else would like to create these, please indicate it.

The procedure to add new files we would have to make a md file put in inside the _pages folder then add an entry in the index.md of intrinsics folder. Thanks sir.

@p-costa -- sorry for duplicating your changes. I was doing a bulk review and missed you had already done SIGN till I was making the fork. I had to change over to the new methods and spent quite a bit of time focused on setting up and understanding (a work in progress) the new infrastructure.
Now that a new stable platform is available there are still the missing procedures listed above and descriptions of the standard modules and reviews of the current documents.
You got far enough to actually make changes, so I hope you have time to make other contributions. I have really been hoping this would be a community project. I am hoping we can built up more complete documentation for co-arrays and atomic functions in particular, as that is probably the weakest section at this point but I initially focused on getting enough of a description of everything to get this published -- I know there is still plenty of room for improvements :>

Thank you @urbanjost! I should have looked better and realized that there was more work to do. And since you are the original author of the manpages, I thought it would be best to simply let you take over on these specific changes. I am always happy to contribute to these efforts, and I hope I will have many chances to give my inputs, which will likely be tiny compared to what all you CC'd in this thread have already contributed.
And thank you very much for putting these intrinsic manpages together, by the way, they are really useful!

x OUT_OF_RANGE --done, needs added to index

I added the new page to the respective index in https://github.com/fortran-lang/webpage/commit/b1345136c4a06dce2d5f67248c0f1cad3691dc52.

Thanks for changing the index. I was not positive this was the (only) file to change.  I will add that as an example to my notes.


查看 bandwidth_occupier.service，发现状态为inactive，这样的状态是正常运行了带宽限制功能么？

systemctl status bandwidth_occupier.service

● bandwidth_occupier.service - Bandwidth Occupier Service
Loaded: loaded (/etc/systemd/system/bandwidth_occupier.service; disabled; vendor preset: disabled)
Active: inactive (dead) since Sat 2023-10-07 07:21:26 GMT; 40min ago
Process: 28304 ExecStart=/bin/bash /usr/local/bin/bandwidth_occupier.sh (code=exited, status=0/SUCCESS)
Main PID: 28304 (code=exited, status=0/SUCCESS)
Oct 07 07:20:58 host2 systemd[1]: Started Bandwidth Occupier Service.
Oct 07 07:20:58 host2 bash[28304]: /usr/local/bin/bandwidth_occupier.sh: line 11: warning: setlocale...TF-8)
Oct 07 07:20:58 host2 bash[28304]: /usr/local/bin/bandwidth_occupier.sh: line 11: warning: setlocale...TF-8)
Oct 07 07:21:02 host2 bash[28304]: /bin/sh: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8)
Oct 07 07:21:26 host2 bash[28304]: --2023-10-07 07:21:26--  http://lg-hou.fdcservers.net/10GBtest.zip
Oct 07 07:21:26 host2 bash[28304]: Resolving lg-hou.fdcservers.net (lg-hou.fdcservers.net)... <IP_ADDRESS>
Oct 07 07:21:26 host2 bash[28304]: Connecting to lg-hou.fdcservers.net (lg-hou.fdcservers.net)|23.23...80...
Hint: Some lines were ellipsized, use -l to show in full.

bandwidth_occupier.service 受 bandwidth_occupier.timer 控制 你后台监控到流量正常消耗了就行


Set cursor on WgpuCanvas

followup from #595
I was just looking into how to set or hide the cursor on all the GUI backends, I can do this after the big #618 :rocket:
my idea is just to have a settable property: canvas.cursor = "name", we make a lookup table that maps "name" to the corresponding cursor for that GUI backend.

Other aspects that m8ght be interesting is setting the cursor position in xy


TN-1163 updated test_demographics.py for py2/py3 compatability

Hello @John0Randolph! Thanks for submitting the PR.

In the file tests/test_demographics.py, following are the PEP8 issues :

Line 143:16: E127 continuation line over-indented for visual indent

Don't forget to tag py3! :)


Add rule management

Fixes #2 and partially addresses #7. You can now create and delete rules, as well as view matching issues for each rule. @probablycorey I could use your help to get rid of setState calls in favor of the Redux way of managing state.
View and delete your filters:

Add a filter:

View notifications matching a rule:

I just tried this out and it is AWESOME!!!
I'm going to merge this and open up a new PR that tries to move the state setting into redux.


Using global_fixtures prevents use of set_fixture_class

I'm finding that if you

have a model that has a module name or otherwise violates the standard active record naming conventions,
and its fixtures are global,

then I'll get an error like this (for a tags.yml fixture file for
example):
Unable to load tag, underlying cause No such file to load -- tag
activesupport-3.2.12/lib/active_support/dependencies.rb:317:in `rescue in depend_on'
activesupport-3.2.12/lib/active_support/dependencies.rb:312:in `depend_on'
activesupport-3.2.12/lib/active_support/dependencies.rb:225:in `require_dependency'
activerecord-3.2.12/lib/active_record/fixtures.rb:767:in `try_to_load_dependency'
activerecord-3.2.12/lib/active_record/fixtures.rb:782:in `block in require_fixture_classes'
activerecord-3.2.12/lib/active_record/fixtures.rb:779:in `each'
activerecord-3.2.12/lib/active_record/fixtures.rb:779:in `require_fixture_classes'
activerecord-3.2.12/lib/active_record/fixtures.rb:762:in `fixtures'
rspec-rails-2.14.0/lib/rspec/rails/fixture_support.rb:26:in `block in <module:FixtureSupport>'

Normally when a model runs contrary to the naming conventions, active record fixtures can be told the class name of a fixture file using ActiveRecord::TestFixtures.set_fixture_class. This is documented here: http://guides.rubyonrails.org/active_record_basics.html#overriding-the-naming-conventions.
And I think this would work in rspec if I weren't using global fixtures. However with global fxitures there doesn't seem to be a way to use this api between when Rspec::Rails::Rails::FixtureSupport is included and when line #26 of lib/rspec/rails/fixture_support.rb is run which loads all the fixtures.
Seems like a solution would be to have rspec configuration for set fixture class similar to fixture_path, use_transactional_fixtures and use_instantiated_fixtures?

@cupakromer is this still valid? @ajh can you provide a reproduction case against RSpec rails master and a rails 4.x version?


Opinionated language labels

I suggest that we take an opinionated approach for the language of labels.

Instead of including all possible languages in the tiles, we just include the languages which get rendered by the default style. If people need another language, it should be easy for them to modify the tiles.
If a place={city,town,village,etc} speaks multiple languages, we take up to 2 languages if the characters are latin. Example: Bozen Bolzano which is {name:de} {name:it} (German and Italian).
If a place={city,town,village,etc} speaks a language which is not represented by latin letters, we take the English name name:en and the name in the most common language of the place. Example Mumbai मुंबई which is {name:en} {name:mr} (English and Marathi).
If multiple languages exist, we break the line between the two languages.

I think it will be quite fun figuring out what the most spoken language is in every town :)

Twitter might be a good source for geolocation to language conversion.
https://labs.mapbox.com/labs/twitter-gnip/languages/#3/27.68/-34.45


Latest beta was mistakenly published as latest

I'm submitting a bug report
Webpack version:
1.10.x/2.x
Please tell us about your environment:
OSX 10.x
Current behavior:
npm view webpack yields:
{ ...
  'dist-tags': { latest: '2.1.0-beta.25', beta: '2.1.0-beta.24' },
  ...
}

Expected/desired behavior:
2.1.0-beta.25 should have been published with the beta tag instead of latest. latest should remain at 1.13.2.
Could you please fix the tags so that npm install webpack doesn't install 2.x?

+1 for this. Now everything broken and v2 examples lacking.

Am on this right now. Thank you very much for reporting. I don't think this was intentional.

CC @webpack/collab-team

Now everything broken

@DJviolin let's be constructive. It's just a small tag mistake; you can always run npm install webpack@1 until it gets fixed.
@TheLarkInn thanks for the quick reply. You just need someone with npm privs to run:
$ npm dist-tag add<EMAIL_ADDRESS>latest
$ npm dist-tag add<EMAIL_ADDRESS>beta

Alright I fixed it! :-D

@TheLarkInn thanks so much for the quick NPM adjustment, you're my hero! I know the beta is obviously the future, so on a slightly unrelated note, do you know of any good examples / tutorials showing how to config something like the Babel loader with Webpack@V2?

http://webpack.js.org/how-to/set-up-hmr-with-react/ This may assist from our new docs page. Some of the versions in the npm install script need to be updated, (maybe you can submit a pr :smirk:)


Improve switching the remus/romulus Catalogue API deployments

Spun out as a separate issue from #1304; replaces #1316.

Closing as out of date.


Integration Test - Release - 2022/01/27 08:49:45

Auto create for integration test. IssueCommandFlow

#pri1

Just type '#pri3'

#pri3

#assign PRMergerTest1

#assign NonAllowedUser

The following users don't have valid GitHub IDs, or are not collaborators on this repo: nonalloweduser

#reassign PRMergerTest2

#reassign NonAllowedUser

The following users don't have valid GitHub IDs, or are not collaborators on this repo: nonalloweduser

GitHub user PRMergerTest1 has been removed from the MicrosoftDocs organization, so they were automatically removed as an assignee.

#please-close

#unassign PRMergerTest1

#unassign NonAllowedUser


Error using snipping feature

what this is?
[00:35:36] Updated PokemonGo-Map to 37.791534, -122.389811
[00:35:38] Moving towards pokestop Party Octopus of Ursidae Animal Family against Skateboarding. - 0.05km (attraction of lure 0.05km)2016-08-11 00:35:39,567 [       cli] [INFO]
2016-08-11 00:35:39,568 [       cli] [INFO] Ran for 0:00:28
2016-08-11 00:35:39,568 [       cli] [INFO] Total XP Earned: 25  Average: 3244.92/h
2016-08-11 00:35:39,568 [       cli] [INFO] Travelled 0.00km
2016-08-11 00:35:39,568 [       cli] [INFO] Visited 0 stops
2016-08-11 00:35:39,568 [       cli] [INFO] Encountered 1 pokemon, 0 caught, 0 released, 0 evolved, 0 never seen before
2016-08-11 00:35:39,569 [       cli] [INFO] Threw 1 pokeball
2016-08-11 00:35:39,569 [       cli] [INFO] Earned 0 Stardust
2016-08-11 00:35:39,569 [       cli] [INFO]
2016-08-11 00:35:39,569 [       cli] [INFO] Highest CP Pokemon:
2016-08-11 00:35:39,569 [       cli] [INFO] Most Perfect Pokemon:
Traceback (most recent call last):
File "pokecli.py", line 530, in
main()
File "pokecli.py", line 96, in main
bot.tick()
File "/root/PokemonGo-Bot/pokemongo_bot/init.py", line 472, in tick
if worker.work() == WorkerResult.RUNNING:
File "/root/PokemonGo-Bot/pokemongo_bot/cell_workers/move_to_fort.py", line 80, in work
lng
File "/root/PokemonGo-Bot/pokemongo_bot/step_walker.py", line 28, in init
self.steps = (self.dist + 0.0) / (speed + 0.0)
ZeroDivisionError: float division by zero
2016-08-11 00:35:39,612 [sentry.errors] [ERROR] Sentry responded with an error: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128) (url: https://app.getsentry.com/api/90254/store/)
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/raven/transport/threaded.py", line 174, in send_sync
super(ThreadedHTTPTransport, self).send(data, headers)
File "/usr/local/lib/python2.7/dist-packages/raven/transport/http.py", line 47, in send
ca_certs=self.ca_certs,
File "/usr/local/lib/python2.7/dist-packages/raven/utils/http.py", line 66, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/lib/python2.7/dist-packages/future/backports/urllib/request.py", line 494, in open
response = self._open(req, data)
File "/usr/local/lib/python2.7/dist-packages/future/backports/urllib/request.py", line 512, in _open
'_open', req)
File "/usr/local/lib/python2.7/dist-packages/future/backports/urllib/request.py", line 466, in _call_chain
result = func(*args)
File "/usr/local/lib/python2.7/dist-packages/raven/utils/http.py", line 46, in https_open
return self.do_open(ValidHTTPSConnection, req)
File "/usr/local/lib/python2.7/dist-packages/future/backports/urllib/request.py", line 1284, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib/python2.7/httplib.py", line 1057, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line 1097, in _send_request
self.endheaders(body)
File "/usr/lib/python2.7/httplib.py", line 1053, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 895, in _send_output
msg += message_body
UnicodeDecodeError: 'ascii' codec can't decode byte 0x9c in position 1: ordinal not in range(128)
2016-08-11 00:35:39,614 [sentry.errors.uncaught] [ERROR] [u'ZeroDivisionError: float division by zero', u'  File "pokecli.py", line 530, in ', u'  File "pokecli.py", line 96, in main', u'  File "pokemongo_bot/init.py", line 472, in tick', u'  File "pokemongo_bot/cell_workers/move_to_fort.py", line 80, in work', u'  File "pokemongo_bot/step_walker.py", line 28, in init']
run.sh: 18: read: Illegal option -s
Thu Aug 11 00:35:39 WIB 2016 Pokebot Stopped

i dont know how to use sniping feature. why always give me errors when to try. here is no guide how to use it. installation step or anything. btw, i'm already success to install pokemon go map. and how to implement to the bot. no one can help me step by step. lol :/

I'm working through it in my spare time, patience is a virtue

I'm assuming you're using the most recent versions of both repos? also: please post your config.json

this is my config
`{
"auth_service": "google",
"username"<EMAIL_ADDRESS>"password": "xxx",
"location": "37.791534, -122.389811",
"gmapkey": "GOOGLE_MAPS_API_KEY",
"libencrypt_location": "",
"tasks": [
{
"type": "HandleSoftBan"
},
{
"type": "CollectLevelUpReward"
},
{
"type": "IncubateEggs",
"config": {
"longer_eggs_first": true
}
},
{
"type": "TransferPokemon"
},
{
"type": "EvolvePokemon",
"config": {
"evolve_all": "NONE",
"evolve_cp_min": 300,
"evolve_speed": 20,
"use_lucky_egg": false
}
},
{
"type": "RecycleItems",
"config": {
"min_empty_space": 15,
"item_filter": {
"Pokeball":       { "keep" : 100 },
"Potion":         { "keep" : 10 },
"Super Potion":   { "keep" : 20 },
"Hyper Potion":   { "keep" : 30 },
"Revive":         { "keep" : 30 },
"Razz Berry":     { "keep" : 100 }
}
}
},
{
"type": "CatchVisiblePokemon"
},
{
"type": "CatchLuredPokemon"
},
{
"type": "SpinFort"
},
{
"type": "MoveToMapPokemon",
"config": {
"address": "http://localhost:5000",
"max_distance": 500,
"min_time": 60,
"min_ball": 50,
"prioritize_vips": true,
"snipe": true,
"snipe_high_prio_only": true,
"snipe_high_prio_threshold": 400,
"update_map": true,
"mode": "priority",
"map_path": "raw_data",
"catch": {
"==========Legendaries==========": 0,
"Aerodactyl": 1500,
"Snorlax": 1500,
"Dragonite": 1500,
"Charizard": 1500,
"Arcanine": 1500,
"Vaporeon": 1500,
"Muk": 1500,
"Flareon": 1500,
"Slowbro": 1500,
"Venusaur": 1500,
"Blastoise": 1500,
"Gyarados": 1500,
"Exeggutor": 1500,
"Dragonair": 1500,
"Lapras": 1500
}
}
},
{
"type": "MoveToFort"
},
{
"type": "FollowSpiral"
}
],
"map_object_cache_time": 5,
"forts": {
"avoid_circles": true,
"max_circle_size": 50
},
"websocket_server": false,
"walk": 0,
"action_wait_min": 1,
"action_wait_max": 4,
"debug": false,
"test": false,
"health_record": true,
"location_cache": true,
"distance_unit": "km",
"reconnecting_timeout": 15,
"evolve_captured": "NONE",
"catch_randomize_reticle_factor": 1.0,
"catch_randomize_spin_factor": 1.0,
"logging_color": true,
"catch": {
"any": {"catch_above_cp": 0, "catch_above_iv": 0, "logic": "or"},
"// Example of always catching Rattata:": {},
"// Rattata": { "always_catch" : true }
},
"release": {
"any": {"release_below_cp": 0, "release_below_iv": 0, "logic": "or"},
"// Example of always releasing Rattata:": {},
"// Rattata": {"always_release": true},
"// Example of keeping 3 stronger (based on CP) Pidgey:": {},
"// Pidgey": {"keep_best_cp": 3},
"// Example of keeping 2 stronger (based on IV) Zubat:": {},
"// Zubat": {"keep_best_iv": 2},
"// Also, it is working with any": {},
"// any": {"keep_best_iv": 3},
"// Example of keeping the 2 strongest (based on CP) and 3 best (based on IV) Zubat:": {},
"// Zubat": {"keep_best_cp": 2, "keep_best_iv": 3}
},
"vips" : {
"Any pokemon put here directly force to use Berry & Best Ball to capture, to secure the capture rate!": {},
"any": {"catch_above_cp": 1200, "catch_above_iv": 0.9, "logic": "or" },
"Lapras": {},
"Moltres": {},
"Zapdos": {},
"Articuno": {},
    "// S-Tier pokemons (if pokemon can be evolved into tier, list the representative)": {},
    "Mewtwo": {},
    "Dragonite": {},
    "Snorlax": {},
    "// Mew evolves to Mewtwo": {},
    "Mew": {},
    "Arcanine": {},
    "Vaporeon": {},
    "Gyarados": {},
    "Exeggutor": {},
    "Muk": {},
    "Weezing": {},
    "Flareon": {}

}

}
`

@Ph4i1ur3

Your "walk": is set to 0. This is a no-no. I'd recommend 4.16

@Ph4i1ur3 when i try to change the location on pokemon go map, it didn't load. it just stuck on the first place. its like hard to move different location :|

it doesnt move because ur walk speed is set to 0 (i.e 0 km/h), make this any number above 0.00 and your problem should disappear because the crash is due to:
self.steps = (self.dist + 0.0) / (speed + 0.0) ZeroDivisionError: float division by zero


[BUGFIX] Replace STL regex with Boost for MinGW bug

Submission Checklist

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

Summary
Depending on the user's locale, using std::regex with the MinGW GCC in RTools will result in a memory leak and the program hangs.
This has previously been reported as bug to MinGW here, but it is still an issue.
For Stan, this can cause a hang when parsing JSON data (seen recently as the cause of this downstream issue). We can instead use the Boost Regex headers as a drop-in replacement, which I've verified resolve the issue.
Intended Effect
Avoid hanging under certain locales
How to Verify
Side Effects
N/A
Documentation
N/A
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company): Andrew Johnson
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses:

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

GCC bug listing here as well: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98723

Awkward, but it looks like I don't have permissions for stan:

Can I get a grown-up to merge this for me?

@andrjohns, merged! That looks like an oversight.
@WardBrian, can we give @andrjohns permissions?

So far as I can tell he has them:

Maybe it was a github hiccup?

Thanks for checking! I hope it was. @andrjohns please let people know if it happens again!


update smart_open for pipe

https://github.com/megvii-research/megfile/issues/100

Codecov Report

Merging #102 (752b5c7) into main (9be8286) will decrease coverage by 0.39%.
The diff coverage is 85.71%.

@@            Coverage Diff             @@
##             main     #102      +/-   ##
==========================================
- Coverage   90.82%   90.43%   -0.40%
==========================================
  Files          33       33
  Lines        3696     3700       +4
==========================================
- Hits         3357     3346      -11
- Misses        339      354      +15

Impacted Files
Coverage Δ

megfile/smart_path.py
94.57% <50.00%> (-0.71%)
:arrow_down:

megfile/fs_path.py
100.00% <100.00%> (ø)

megfile/pathlike.py
88.74% <100.00%> (+0.07%)
:arrow_up:

megfile/errors.py
85.31% <0.00%> (-2.83%)
:arrow_down:

megfile/lib/s3_buffered_writer.py
96.82% <0.00%> (-1.59%)
:arrow_down:

megfile/lib/fnmatch.py
98.71% <0.00%> (-1.29%)
:arrow_down:

megfile/s3.py
90.75% <0.00%> (-0.64%)
:arrow_down:

megfile/utils/__init__.py
78.75% <0.00%> (-0.63%)
: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 9be8286...752b5c7. Read the comment docs.

要直接把 PathLike 直接定义成包括 int 吗？

感觉就只有 fs 需要 int，其他的不需要，所以我没放 PathLike，你怎么看


Could not auto fix react/jsx-indent problem

144:17  error    Expected indentation of 14 space characters but found 16  react/jsx-indent
code:
            <Breadcrumb.Item>
                <Link to="/">山西省</Link>
            </Breadcrumb.Item>

and: .eslintrc
{
  "extends": "eslint-config-airbnb",
  "parser": "babel-eslint",
  "rules": {
    "spaced-comment": [1],
    "no-unused-vars": [1],
    "no-empty": [1],
    "react/wrap-multilines": [1],
    "react/no-multi-comp": [1],
    "no-constant-condition": [1],
    "react/jsx-no-bind": [1],
    "react/prop-types": [1],
    "arrow-body-style": [0],
    "react/prefer-stateless-function": [1],
    "semi": [1],
    "no-param-reassign": 0,
  },
  "ecmaFeatures": {
    "experimentalObjectRestSpread": true
  }
}

package.json:
  "scripts": {
    "lint": "eslint --ext .js,.jsx src",
    "lintf": "eslint --ext .js,.jsx src --fix",
  }

All package related to eslint in devDependencies in package.json:
    "eslint": "^2.7.0",
    "eslint-config-airbnb": "^9.0.1",
    "eslint-plugin-import": "^1.8.1",
    "eslint-plugin-jsx-a11y": "^1.3.0",
    "eslint-plugin-react": "^5.1.1",

After running npm run lintf, the error shows and the code stays the same. --fix dit not auto fix react/jsx-indent.
Any Ideas?

Most rules in general don't have autofixers, so that's not a surprise.
This seems like it might be a bug with components referenced off an object (ie, with a dot).

Yes, but in https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-indent-props.md it says that could be fixable

Ah, good point.
@rrandom can you try the same example but use English (specifically, ASCII) text as the element contents? I'm wondering if it's a unicode code point issue (versus code units)

@ljharb Sadly, the same. Could not fix.
import React, { PropTypes } from 'react';

const Routes = ({ history }) => {
  return (
  <div>Hello, world! </div>
  );
};
export default Routes;

even with single file
.\node_modules\.bin\eslint src\routes\index.jsx --fix

  3:19  warning  'history' is defined but never used                     no-unused-vars
  5:3   error    Expected indentation of 4 space characters but found 2  react/jsx-indent

✖ 2 problems (1 error, 1 warning)

It is the jsx-indent-props rule that is fixable, not the jsx-ident rule (yet)

This may be fixed now...


Installation instructions for standalone fmriprep are out of date, causing crashes.

We've recently updated our standalone fmriprep installation fmriprep 1.5.8 (and will now go to 20.0.x) from 1.4.1.  We have found that AROMA processing crashes with the following error:
`
Node Name: fmriprep_wf.single_subject_017_wf.func_preproc_task_session3_wf.ica_aroma_wf.ica_aroma
File: /data/latncase/MDD_STRESS/fmriprep/test_ERISONE2/derivatives/fmriprep/sub-017/log/20200227-134551_1da3a78f-5ea2-4ce5-90ee-b7f94ab0e167/crash-20200228-001011-mai14-ica_aroma-2e188a62-9b80-471c-8dbc-0dfcb69d4583.txt
Working Directory: /data/latncase/MDD_STRESS/fmriprep/work/fmriprep_wf/single_subject_017_wf/func_preproc_task_session3_wf/ica_aroma_wf/ica_aroma
Inputs:
TR: 2.0
args: -np
compress_report: auto
denoise_type: nonaggr
dim:
environ: {}
feat_dir:
fnirt_warp_file:
in_file:
mask:
mat_file:
melodic_dir:
motion_parameters:
out_dir: out
out_report: ica_aroma_reportlet.svg
report_mask:
Traceback (most recent call last):
File "/PHShome/bbf2/software/anaconda3/envs/fmriprep158/lib/python3.7/site-packages/nipype/pipeline/plugins/legacymultiproc.py", line 67, in run_node
result["result"] = node.run(updatehash=updatehash)
File "/PHShome/bbf2/software/anaconda3/envs/fmriprep158/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 516, in run
result = self._run_interface(execute=True)
File "/PHShome/bbf2/software/anaconda3/envs/fmriprep158/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 635, in _run_interface
return self._run_command(execute)
File "/PHShome/bbf2/software/anaconda3/envs/fmriprep158/lib/python3.7/site-packages/nipype/pipeline/engine/nodes.py", line 741, in _run_command
result = self._interface.run(cwd=outdir)
File "/PHShome/bbf2/software/anaconda3/envs/fmriprep158/lib/python3.7/site-packages/nipype/interfaces/base/core.py", line 397, in run
runtime = self._run_interface(runtime)
File "/PHShome/bbf2/software/anaconda3/envs/fmriprep158/lib/python3.7/site-packages/nipype/interfaces/base/core.py", line 792, in _run_interface
self.raise_exception(runtime)
File "/PHShome/bbf2/software/anaconda3/envs/fmriprep158/lib/python3.7/site-packages/nipype/interfaces/base/core.py", line 723, in raise_exception
).format(**runtime.dictcopy())
RuntimeError: Command:
ICA_AROMA.py -tr 2.000 -np -den nonaggr -i /data/latncase/MDD_STRESS/fmriprep/work/fmriprep_wf/single_subject_017_wf/func_preproc_task_session3_wf/ica_aroma_wf/smooth/vol0000_xform-00000_merged_smooth.nii.gz -m /data/latncase/MDD_STRESS/fmriprep/work/fmriprep_wf/single_subject_017_wf/func_preproc_task_session3_wf/bold_std_trans_wf/_key_MNI152NLin6Asym/mask_std_tfm/ref_bold_corrected_brain_mask_maths_trans.nii.gz -meldir /data/latncase/MDD_STRESS/fmriprep/work/fmriprep_wf/single_subject_017_wf/func_preproc_task_session3_wf/ica_aroma_wf/melodic -mc /data/latncase/MDD_STRESS/fmriprep/work/fmriprep_wf/single_subject_017_wf/func_preproc_task_session3_wf/bold_hmc_wf/normalize_motion/motion_params.txt -o /data/latncase/MDD_STRESS/fmriprep/work/fmriprep_wf/single_subject_017_wf/func_preproc_task_session3_wf/ica_aroma_wf/ica_aroma/out
Standard output:
------------------------------- RUNNING ICA-AROMA -------------------------------
--------------- 'ICA-based Automatic Removal Of Motion Artifacts' ---------------
Standard error:
usage: ICA_AROMA.py [-h] -o OUTDIR [-i INFILE] [-mc MC] [-a AFFMAT] [-w WARP]
[-m MASK] [-f INFEAT] [-tr TR] [-den DENTYPE] [-md MELDIR]
[-dim DIM]
ICA_AROMA.py: error: unrecognized arguments: -np
Return code: 2
`
The '-np' option does not exist in ICA-AROMA-0.4.1beta (what is listed in the documentation).
This error does not occur on the containerized version of fmriprep.  Comparing the Dockerfile to the documented requirements, it seems that:

ICA-AROMA-0.4.5 is the appropriate version.
bids-validator should be version 1.4.0, not 1.1.0.
c3d is no longer a dependency.

I've fixed a local copy of installation.rst (and an unrelated typo in CONTRIBUTING.md), and would be happy to do a pull request with the fix.
Blaise

@bbfrederick A PR would be most welcome. Thank you for working through this.
We've talked a couple times about trying to make ICA-AROMA a bit more friendly to install and use (basically put on PyPI), but none of us has had the bandwidth to take on another maintenance project.

PR submitted.
You could make wget a prerequisite, then have a script that just fetches the appropriate precompiled binaries from wherever as an intermediate step.  But yeah, somebody would have to write and test it.
I'm a complete convert to the containerized distribution.  Unfortunately, I use two HPC's and one won't allow me to use it in singularity because of security concerns (Them: "We don't have the bandwidth to hand check every version of every container for malicious software."  Me: "That's the whole point of singularity - it doesn't let me do anything I couldn't do already, so why would you have to check it?"  Them: "Well, we don't know that.  We have to do a careful examination of the issue and we don't have the bandwidth to do that either".)  I opened a ticket to install it in July of 2019, and they're still "looking into it".  Actually, they just closed my ticket, so I guess they aren't.
The second cluster would be fine with me installing it, except the entire cluster runs on Centos 6 (singularity needs Centos 7 minimum) and they have no timeline for upgrading (SMH).
So standalone it is for the time being.


Error when saving policy in No Code UI

When I try to save a policy in the no code UI I key a server error:

Traceback (most recent call last):
  File "/environments/policykit/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/environments/policykit/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/environments/policykit/lib/python3.8/site-packages/django/contrib/auth/decorators.py", line 21, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "/policykit/policykit/policyengine/views.py", line 986, in create_policy
    new_policy = new_policytemplate.create_policy(user.community.community)
  File "/policykit/policykit/policyengine/models.py", line 1768, in create_policy
    self.create_policy_variables(policy, {})
  File "/policykit/policykit/policyengine/models.py", line 1734, in create_policy_variables
    variable["default_value"] = variable["default"]["value"] if isinstance(variable["default"], dict) else variable["default"]
KeyError: 'default'

The line where this error occurred is one where there were some conflicts between what was in the no-code branch and what was added to main.
The no code branch added this method called create_policy_variables:
https://github.com/leijie-wang/policykit/blob/48c5f2992a51957075a9db64abecce3928e83691/policykit/policyengine/models.py#L1691-L1710
Since it branched off, there was a method that was also called create_policy_variables that was added:
https://github.com/policykit/policykit/blob/6e99d1545ee4a44434731a49c53647313e9da000/policykit/policyengine/models.py#L1604-L1618
I tried to merge them when I merged master into the branch, but apparently messed up somehow:
https://github.com/policykit/policykit/blob/c7935071d88b41d26a65bf0cf620d89bce05dbf3/policykit/policyengine/models.py#L1722-L1741

Note that currently trying to add a policy in the no code UI like this:

will raise this error. However, a policy is still added to the database like this:

In this incomplete state, I think it was overriding all other policies and causing the bug we saw cc @amyxzhang

I see! So not a logic bug with our engine - that's good to know.
@leijie-wang can you also take a look at this bug? the no code UI is not working (saving a policy specifically) right now.

I did some testing and identified the issue here.

the library of policy templates is only reloaded once and for all when we explicitly add a reload parameter to the link "https://policykit.org/no-code/main?reload=true". I have reloaded the templates.
The value of the policy variable has a limit of 100, which is too short for some very long messages. I have increased its value.
I will later upload the new branch to this repo.

Thank you @leijie-wang! Let me know when you have a branch added to fix this or if you want me to take it over.

The slack response was down again. I fixed it by removing some blank policies (the same issue as before), that I suspect may be created by the bug in the no code UI? Basically half creating a policy then bailing out?
ubuntu@ip-xxx:/policykit/policykit$ sudo /environments/policykit/bin/python manage.py shell
Metagov App Ready. Installed plugins: ['slack', 'opencollective', 'github', 'sourcecred', 'loomio', 'discord', 'discourse', 'randomness']
Python 3.8.10 (default, Sep 11 2024, 16:02:53)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.11.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: from policyengine.models import Policy

In [2]: Policy.objects.filter(name="test")
Out[2]: <QuerySet [<Policy: Platform Policy: test>, <Policy: Platform Policy: test>, <Policy: Platform Policy: test>, <Policy: Platform Policy: test>, <Policy: Platform Policy: test>, <Policy: Platform Policy: test>, <Policy: Platform Policy: test>, <Policy: Platform Policy: test>, <Policy: Platform Policy: test>, <Policy: Platform Policy: test>, <Policy: Platform Policy: test>, <Policy: Platform Policy: test>, <Policy: Platform Policy: test>]>

In [3]: Policy.objects.filter(name="test").delete()

@leijie-wang thanks for #673 and reloading the templates.
I tried to make a new policy in the no code UI and still got an error: https://policykit.sentry.io/share/issue/7e9a459feb7646c0a0ebe0446123ed86/
When I look at where it crashed, it seems like maybe the default_value length also needs to be increased:

Moreover, I wonder if it makes sense to create these policies inside a transaction, so that if part of it fails we aren't left with a half-created policy like we have today, which will then cause issues triggering other policies.
It seems like one way we could do that is by setting ATOMIC_REQUESTS to True, so that every HTTP request will be in its own transaction. This will have some performance impact so says the docs, but it might be worth it for peace of mind. Alternatively, we could at least make sure this policy creation code is atomic.

OK I just trid to make a policy in the no code UI and it finally worked! Closing this. Thanks @leijie-wang


clustering

Mention somewhere that we can do clustering but a totally unsupervised approach not an appropriate/adaquete data analyses for spatial proteomics. It is still useful.... for clustering of markers, ref mrkHClust

Added a small section but may need work

Also need to export from pRoloc.


How I can increase the height of calendar cell

Hello everyone, I am working on JTAppleCalendar using with swift3.0. Now I want to increase the cellHeight only. I am not able to get any way to increase it. So please guide me how I can do it.
Thanks

cellSize is modified by 2 things.

the height of the calendarView if you have a horizontal scrolling calendar.
the width of the calendarView if you have a vertical scrolling calendar.
the cellSize property on the calendarView

Let me know if you are still stuck.
Keep in mind these video tutorials help


Release v1.5.0

Release Notes
Another day, another release. These are the release notes for the version v1.5.0.
Features

feat: add autoupgrade flag and enable stdout logging (#40) (Chris Golden)(2fa80eb)

Other Changes

ci: version bump to v1.4.3-dev (Lacework)(c60cdfa)


[Android] Always get all Push-Notifications however you start the App

We use Push-Notifications to transport Data. Therefore we are required to catch them all™.
This PR is not for merging - its an dirty fix for our Problem.
Problem https://github.com/wix/react-native-notifications/issues/232
On Android getInitialNotification() contains the one Notification you clicked or no Notifiation at all if you start the App manually and Pushs are present.
On the other Hand all Notifications are cleared whatsoever.
Since we use Pushs as Data-Transport for Privacy reasons we need them all.
Solution
InitialNotificationHolder now has an ArrayList of all incomming Notifications look here
setAsInitialNotification is now called upon constructing the PushNotification rather then doing it conditionally in digestNotification look here
All User-Canceled Notifications are now also transfered to the App when its started the next time (which might be also a shortcomming)
Shortcomings
We use java.util.ArrayList which might be a bad idea
If you click on the Notification it is now twice in the Array transfered to React-Native.
This is not cool - but we want you Experts to look into this and tell us the best Solution rather then
implementing a Hashmap Javaside - which makes the code more complicated - and we are aware that our solution might not be THE solution.
Maybe it would be wise to seperate the functionality into two functions:

getInitialNotification()
getAllNotifications()

Further read:

https://github.com/wix/react-native-notifications/issues/143
https://github.com/wix/react-native-notifications/issues/6
https://github.com/wix/react-native-notifications/issues/126
https://github.com/wix/react-native-notifications/issues/66
https://github.com/wix/react-native-notifications/pull/185
https://github.com/wix/react-native-notifications/blob/master/docs/notificationsEvents.md#-android
https://developer.android.com/reference/android/app/Notification.html#extras
https://github.com/kaloncheung124/react-native-notifications/commit/1f10e052a526dcdecdaa000e32ca087f77936049
https://github.com/mattermost/mattermost-mobile/blob/master/android/app/src/main/java/com/mattermost/rnbeta/CustomPushNotification.java#L78
https://stackoverflow.com/questions/28091784/multiple-pending-intents
https://stackoverflow.com/questions/7370324/notification-passes-old-intent-extras
https://stackoverflow.com/questions/3168484/pendingintent-works-correctly-for-the-first-notification-but-incorrectly-for-the#comment3283736_3168653

Grüße Ulf & Team DEMOCRACY
Rel: https://github.com/demokratie-live/react-native-notifications/commit/2ef1623664f48631a3008274fe966a0cfe917ea6
Rev: https://github.com/demokratie-live/react-native-notifications/tree/android-initial-all-notifications

Update:

Use of Hashmap to avoid double entries in getInitialNotifications()
Set Byte value opened if user clicks a Notification -> This allows manual handling of  clicked Notifications on Android 8Event not fired when App is closed)
Expose clearAllNotifications() to React to allow manual clear

Solves or helps following Issues:

https://github.com/wix/react-native-notifications/issues/238
https://github.com/wix/react-native-notifications/issues/232
https://github.com/wix/react-native-notifications/issues/183
https://github.com/wix/react-native-notifications/issues/166
https://github.com/wix/react-native-notifications/issues/126

getAllNotifications() and clearAllNotifications() should give more flexibility to use this library, please implement them.


Update smoothed to 1.0.0

Please update my adapter ioBroker.smoothed to version 1.0.0.
This pull request was created by https://www.iobroker.dev c0726ff.

@mcm1957 Bluefox asked in a pr to Set 0.5.0 to stable....
Some things e.g. License => licenseinformation
Core >= 3.0.4 to >= 3.0.6 changelog and Build Version 1.0.0

RE-CHECK!

@mcm1957 is there something to do for me?

@mcm1957 is there something to do for me?

https://github.com/ioBroker/ioBroker.repositories/pull/3454#issuecomment-2029902329

@mcm1957
OK. like This Comment
The changes only are: changes in io-Package and adapter-core Version, like there are hints in the last PR of Version 0.5.0


Improve Dynamic Programming Resources

Aim to enhance the resources and examples related to Dynamic Programming in this repository. This could involve:

Adding new examples that cover a wider range of problems.
Improving existing explanations and comments for clarity.
Including visual aids or diagrams to better illustrate concepts.
Creating a dedicated section for common Dynamic Programming patterns.
Adding unit tests for the existing Dynamic Programming solutions to ensure accuracy.

Expected Outcome: A more comprehensive and user-friendly set of resources for learners and contributors interested in Dynamic Programming.
@UTSAVS26
You can add level label. After my PR submission!

Work on the PR I will add the labels directly onto it.

Assign me!! @UTSAVS26


Trying to compile sample code on the v2.0.0-preview branch fails

When switching to the v2.0.0-preview branch and trying to compile the helloworld or httpreq examples with make clean all fails with:
SDK version is not correct. The same SDK should be used for enclave building and signing.
The SDK version for building enclave could be obtained by below command:

           $ strings {Enclave.so} | grep SGX_TSTDC_VERSION

Error happened while signing the enclave.

I haven't tried the others yet, but this happens with any of the BUILD_STD settings, either no, cargo, or xargo.
I have the latest packages installed as per the guide here (I believe). Is there a specific version, dependency, or similar that I need in addition to it? Compiling on v1.1.4 does work without issue.

Thank you for using version v2.0.0-preview. Please install intel sgx sdk 2.16 and use  sgx_sign to re-sign enclave.


fix redux-saga usage for 0.14.8

It was failing here with this error.
Error: join(task): argument 0 is not a valid Task object
(HINT: if you are getting this errors in tests, consider using createMockTask from redux-saga/utils)

@emil-alexandrescu thank you for the PR. possible to update the redux-saga version to ^0.14.8 as well?

I closed this PR by mistake and disabled to reopen. So had to open another PR @xkawi


default handle-signals=yes

#333 added the ability to set handle-signals. The default value is no, this issue is to address the suggestion of defaulting to yes.

It appears that neither setting is ideal, but the current default (no) is less intrusive to non-Julia Python code.
Here is a Python session with the default (no), where I pressed Ctrl-C after each sleep:
PS>python -X juliacall-handle-signals=no
>>> import juliacall, time
>>> juliacall.Base.sleep(10)
...
KeyboardInterrupt
>>> juliacall.Base.seval("sleep(10)")
...
KeyboardInterrupt
>>> time.sleep(10)
...
KeyboardInterrupt
>>>

In all cases, a KeyboardInterrupt was raised and it returned to the prompt. In the second case (seval), the exception was raised after 10 seconds (i.e. after the Julia code finished) whereas the other two cases raised immediately as desired.
Here are some sessions with the proposed yes:
PS>python -X juliacall-handle-signals=yes
>>> import juliacall, time
>>> juliacall.Base.sleep(10)
PS>python -X juliacall-handle-signals=yes
>>> import juliacall, time
>>> juliacall.Base.seval("sleep(10)")
Traceback (most recent call last):
PS>python -X juliacall-handle-signals=yes
>>> import juliacall, time
>>> time.sleep(10)
PS>

In all cases, pressing Ctrl-C immediately kills the Python process. This is especially undesireable in the case of time.sleep(10) which doesn't even call into Julia. Hence merely importing JuliaCall can cause unrelated code to behave differently - and there is probably code out there which relies heavily on KeyboardInterrupt to be raised.
These experiments were done on Windows, suggesting that on Windows at least, we keep the current default.
I don't know how other OSes behave yet - *nix has different signal mechanisms.

Anybody has a temporary workaround for this?


Introduce a variable to specify the name of the shown battery

In my Laptop (Lenovo T470) there are two batteries. The battery indicator shows the state of BAT0 by default. This battery only gets discharged after BAT1 is empty an it is much smaller. So the state of BAT1 is of more interest to me.
The implementation is pretty easy and the first I had come up with. Maybe there is a more elegant way. Also, this works only for the upower interface.

Add docs? How do users figure out what value they need for SPACESHIP_BATTERY_NAME?

I've added frozen label, since it's blocked by 3.0's breaking changes (see #148).

A lot has changed since this PR was opened. Please, reopen against the new master if it still useful for you.


Fix version checking hang in offline deployment

Add timeout to version check
Fix #558

I think timeout=10 is a bit long but in some cases necessary, please feel free to suggest other values

I think timeout=10 is a bit long but in some cases necessary, please feel free to suggest other values

Thanks @makseq for your prompt answer!

Thanks @makseq for your prompt answer!


[feature request] secure a CII Best Practices badge

https://bestpractices.coreinfrastructure.org/en
For CNCF requirements

https://bestpractices.coreinfrastructure.org/en/projects/5072
CII badge is added, thanks !


Multiple curves exported with Loose Edges seem to share geometry

Describe the bug
When exporting a model with multiple Curves and "Loose Edges" - all curves seem to share lines from the curve furthest down (last) in the Outliner.
To Reproduce
Steps to reproduce the behavior:

Add two or more BezierCurves
Export as GLTF
Enable "Loose edges"
Drop .gltf into https://gltf.report/ - the curve shapes are all the same instead of unique

Expected behavior
I was expecting each curve to retain its individual shape from Blender.
Screenshots
Four unique curves added in Blender:

What it looks like after exporting:

.blend file/ .gltf
If applicable, a zipped folder containing a .blend file for exporter issues and a .gltf file for importer issues. Please take care to include all resources, such as textures in the .zip file.
multiple-curves.zip
Version

OS: macOS Monterrey 12.0.1 (Apple M1 Max)
Blender Version: 3.0.0, 3.0.1

Confirmed for 3.0 and 3.1 RC
But this is solved in current master branch, this will be solved in 3.2


[Bug]: wrong response of fast_round if there are two leaders

Description about the bug
In #582, the test case will failed, we should fixed it.
/// FIXME: two leader
/// TODO: fix in subsequence PR
#[traced_test]
#[tokio::test]
#[should_panic]
async fn test_unary_fast_round_with_two_leader() {
    let connects = init_mocked_connects(5, |id, conn| {
        conn.expect_propose().return_once(move |_req, _timeout| {
            let resp = match id {
                // The execution result has been returned, indicating that server(0) has also recorded the command.
                0 => ProposeResponse::new_result::<TestCommand>(&Ok(TestCommandResult::new(
                    vec![1],
                    vec![1],
                ))),
                // imagine that server(1) is the new leader
                1 => ProposeResponse::new_result::<TestCommand>(&Ok(TestCommandResult::new(
                    vec![2],
                    vec![2],
                ))),
                2 | 3 => ProposeResponse::new_empty(),
                4 => return Err(CurpError::key_conflict()),
                _ => unreachable!("there are only 3 nodes"),
            };
            Ok(tonic::Response::new(resp))
        });
    });
    // old local leader(0), term 1
    let unary = Unary::<TestCommand>::new(connects, None, Some((0, 1)));
    let res = unary
        .fast_round(ProposeId(0, 0), &TestCommand::default())
        .await
        .unwrap()
        .unwrap();
    // quorum: server(0, 1, 2, 3)
    assert_eq!(res, TestCommandResult::new(vec![2], vec![2]));
}

Version
0.6.0 (Default)
Relevant log output
No response
Code of Conduct

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

By introducing leader_id and term in ProposeRequest, we may fix that bug.


Add reset to GlobalTracer

Related to https://github.com/opentracing/opentracing-java/issues/170.
At the moment there is no reset method on GlobaLTracer which makes testing hard. The solution might be to fork jvm or use test-jar. However most people don't know that there is a test-jar. The test jar is also not a preferred way to provide these type of functionality.
If the reset API is well documented I don't think it will be misused.
cc @bobmcwhirter

The original proposal had a reset functionality and the consensus then was that having at-most-once semantics for the GlobalTracer were desirable.
Adding a reset can cause issues in a running application by addition of a new library whose author misunderstood or didn't read the documentation. These kind of issues are not my favorite to solve!
My opinion: Adding functionality to production code to facility testing is bad practice and should be avoided.

Can this one be closed?

The request originate in a use-case for running multiple tests within a single JVM, where each test attempts to crank up the whole system, including setting the global tracer, and then tearing it down.

Do you need to have each test to use a different tracer instance? If you need to replace the tracer instance, wouldn't be more suitable to create a wrapper like this and register that with the GlobalTracer?
public class MutableTracer implements Tracer {
    private Tracer delegate;

    public MutableTracer(Tracer delegate) {
        this.delegate = delegate;
    }

    @Override
    public ScopeManager scopeManager() {
        return delegate.scopeManager();
    }

   ... // other delegated methods

    public void replace(Tracer tracer) {
        this.delegate = tracer;
    }
}

I agree with @yurishkuro.
The suggestion of @jpkrohling sounds simple enough as a workaround.
And you could further always use the test-jar dependency of opentracing-util as a last resort.

Hey @pavolloffay
Wondering about your opinion on this - it feels like there's agreement to not add this method. Let us know ;)


fix: Redirect user to edit url after a successful page creation

Description
Added the wizard property edit_mode_on_success and defaulted it to True to redirect newly created pages to edit mode instead of preview mode. The related documentation was updated.

Related resources

#7688

Checklist

[X] I have opened this pull request against develop-4
[X] I have added or modified the tests when changing logic
[X] I have followed the conventional commits guidelines to add meaningful information into the changelog
[x] I have read the contribution guidelines  and I have joined #workgroup-pr-review on Slack to find a “pr review buddy” who is going to review my pull request.

Hey @sakhawy ! This looks good to me! Just one thing: Should we also test that we get the preview URL if edit_mode_on_success is false?

@fsbraun Thanks! Done.


”Lunca Ilvei” is listed in the drop-down menu

Description:
"Lunca Ilvei" is listed in the drop-down menu alongside its corresponding county and commune, according to the law.
Precondition:
The website is up an running.

Step 1
Type "Lunca Ilvei" in the search bar.

Expected results
The location is listed in the drop-down menu as "Lunca Ilvei, Bistrița-Năsăud (Lunca Ilvei)".


Remove poi from map (company names etc.)

Hi,
I tried to find a solution for this, but wasn't able to find a way to remove the company names etc. from the map. In the javascript API it can be done with:
var noPoi = [
    {
        featureType: "poi",
        stylers: [
            { visibility: "off" }
        ]
    }
];

  map.setOptions({styles: noPoi});

Can this be done with the Cordova plugin?
Thanks in advance!

Since this plugin uses Google Maps API Android v2 and Google Maps SDK for iOS, they are not implemented the styledMapTyle feature. So it's not possible technically.

Ok thanks for your response!


Retry uploading artifact when it fails with a 504 response

This PR aims to reduce the cases of result artifact upload failing because of a 504 response code. From anecdotal experience, this happens quite a lot. Sometimes multiple times in a 1000 repository MRVA run.
I have experimentally tested what happens when we re-upload the same artifact after an error, and the behaviour is that it overwrites rather than appending to any existing content. Therefore it should be safe to retry on errors like this, but to limit the risk I've kept the retrying behaviour to just a 504 response.
The first commit is just pulling code out from download.ts into separate files so it is easier to re-use. Then the second commits adapts uploadArtifact to use RetryHelper.

I think the CI failures are because the node version on the actions runner has updated enough to cause issues. We haven't noticed because we haven't updated this repo in so long. I'll look into it tomorrow and open a separate PR to fix it.


RPC docs: fix broken links to tags >= v22.0

Since v22, the patch number is omitted in git tags, unless it is non-zero.
  version  -> tag
  0.21.0   -> v0.21.0
  22.0.0   -> v22.0
  24.0.1   -> v24.0.1

This breaks the "Documentation exported from Bitcoin Core 28.0.0" link on the RPC documentation page: https://bitcoincore.org/en/doc/28.0.0/ (and other >= v22 pages)
Fix this by automatically removing the patch if both the minor and patch numbers are zero. This creates some inconsistency in that on the same page we'll refer to both "28.0.0" and "28.0", but that seems unavoidable if we don't want to break permalinks.
Alternatives considered:

for affected version, update the btcversion field in existing RPC docs and in generate.go, but that would change a bunch of permalinks, making them not very perma
for affected versions, introduce a new git_tag field and update generate.go to produce that alongside btcversion, but it's a lot more involved than the automatic parsing in this PR
add the x.x.0 tags in bitcoin/bitcoin and update the release process going forward, but I think there'd be hesitancy adding new tags just for this

Fixes #1071

Concept ACK
Thanks for fixing this! If anyone happens to have a nix-shell for building the website I'm happy to test, otherwise I am not sure when I would have time to fully verify it.

Did you have a look at other possible uses of page.btcversion?

Yeah, I outlined this in the PR description. It is used for permalinks, for example. That's why I'm not changing it in this approach. Or do you mean something else?

ACK 24e7f4522494774ce841cb8d7178bd43e7117460


added Laverna to list

Adding the open source note taking / organizing (Evernote-like) app Laverna as they just added Electron support. It's not mentioned on their site yet, but is on their Github releases

:wave: @bnvk! Thanks!


Nodejs bindings

Problem description
According to the Supported APIs, Nodejs will be supported. But it is missing right now.
Problem location
./nodejs/
Suggestions for an improvement

I want to contribute to the Nodejs bindings of the Pravega client.
Changes will be spilt into several PRs:

StreamManager #354
ReaderGroup and EventReader
EventWriter and Transaction
ByteStream?
CI/CD (Github Actions and Npm publish)

The binding uses neon-bindings instead of wasm-bindgen.
The reason is that the latter targets pure rust logic w/o touching sys and net. It can do everything pure js scripts can do. But for sys and net, they are not allowed in the browser. Touching the system files requires a proxy using the File System Access API and making a TCP connection is somewhat impossible in the browser. Workarounds will be a WebSocket proxy at the Pravega server-side to translate WebSocket to TCP.
This is what I get when I tried the wasm-bindgen:
$ wasm-pack build --target nodejs
[INFO]: Checking for the Wasm target...
[INFO]: Compiling to Wasm...
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package:   /home/thekingofcity/pravega-client-rust/pravegactl/Cargo.toml
workspace: /home/thekingofcity/pravega-client-rust/Cargo.toml
   Compiling socket2 v0.4.4
   Compiling slab v0.4.5
   Compiling futures-io v0.3.21
   Compiling regex-syntax v0.6.25
   Compiling fnv v1.0.7
   Compiling cfg-if v0.1.10
   Compiling base64 v0.13.0
   Compiling percent-encoding v2.1.0
error[E0583]: file not found for module `sys`
   --> /home/thekingofcity/.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.4/src/lib.rs:124:1
    |
124 | mod sys;
    | ^^^^^^^^
    |
    = help: to create the module `sys`, create file "/home/thekingofcity/.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.4/src/sys.rs" or "/home/thekingofcity/.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.4/src/sys/mod.rs"

error: Socket2 doesn't support the compile target
   --> /home/thekingofcity/.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.4/src/lib.rs:127:1
    |
127 | compile_error!("Socket2 doesn't support the compile target");
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0432]: unresolved imports `crate::sys::sa_family_t`, `crate::sys::sockaddr`, `crate::sys::sockaddr_in`, `crate::sys::sockaddr_in6`, `crate::sys::sockaddr_storage`, `crate::sys::socklen_t`, `crate::sys::AF_INET`, `crate::sys::AF_INET6`
 --> /home/thekingofcity/.cargo/registry/src/github.com-1ecc6299db9ec823/socket2-0.4.4/src/sockaddr.rs:6:5
  |
6 |     sa_family_t, sockaddr, sockaddr_in, sockaddr_in6, sockaddr_storage, socklen_t, AF_INET,
  |     ^^^^^^^^^^^  ^^^^^^^^  ^^^^^^^^^^^  ^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^  ^^^^^^^^^  ^^^^^^^ no `AF_INET` in `sys`
  |     |            |         |            |             |                 |
  |     |            |         |            |             |                 no `socklen_t` in `sys`
  |     |            |         |            |             no `sockaddr_storage` in `sys`
  |     |            |         |            no `sockaddr_in6` in `sys`
  |     |            |         no `sockaddr_in` in `sys`
  |     |            no `sockaddr` in `sys`
  |     no `sa_family_t` in `sys`
7 |     AF_INET6,
  |     ^^^^^^^^ no `AF_INET6` in `sys`

Similar error and discussion could be found at WebAssembly with Rust problem compiling wasm.

Also, the neon has an (example)[https://github.com/neon-bindings/examples/blob/06c505d9ec9353ab38e22d8dfd83e54cd2f2ae1b/examples/async-sqlite/index.js] of how to construct a class in JS, this passage suggests a way of doing so without prototypes or classes.

JavaScript Pop Quiz #6: Which Do Experienced JavaScript Developers Prefer—Prototypes or Classes?
You guessed it, that’s another trick question—experienced JavaScript developers tend to avoid both when they can.
...

I update the code in https://github.com/pravega/pravega-client-rust/pull/355/commits/678caf312d059221897e36ac018eb58e0f208d28 to be composition and the code should look modern now. ✨

Every feature mentioned in this issue is implemented in the related issue. The first stage of Nodejs binding should be complete.
Say Hi to @pravega/pravega and its documentation. 🎉


ReadMe Shield for Github Actions

Make a banner at the top of the ReadMe that says if the tests are passing or not. This will be the one Privacy Pioneer is using.

The code for the shield is here, I tagged it wrong when committing so it doesn't show in the issue. I want to check it says what we want before we push to main.
The new addition is "Node.js CI: Passing"

The merge, closing


Strange behaviors in reassembly

I've found reassembly module exists strange behavior, which seems to exhibit different behavior compared to the tcpassembly module.
According to issue, reassembly is intended as the successor to tcpassembly. However, upon testing, I found that reassembly behaves oddly, whereas tcpassembly functions as expected.
Here are two minimal code snippets to reproduce the issue:
For tcpassembly:
package main

import (
	"log"

	"github.com/google/gopacket"
	"github.com/google/gopacket/layers"
	"github.com/google/gopacket/pcap"
	"github.com/google/gopacket/tcpassembly"
)

// tcpassembly.StreamFactory
type streamFactory struct{}

// tcpassembly.Stream
type tcpStream struct{}

func (factory *streamFactory) New(netFlow gopacket.Flow, tcpFlow gopacket.Flow) tcpassembly.Stream {
	log.Printf("New stream found: %v:%v->%v:%v\n", netFlow.Src(), tcpFlow.Src(), netFlow.Dst(), tcpFlow.Dst())
	return &tcpStream{}
}

func (stream *tcpStream) Reassembled(reassemblies []tcpassembly.Reassembly) {}

func (stream *tcpStream) ReassemblyComplete() {}

func main() {
	// Open a pcap file
	handle, err := pcap.OpenOffline("./test.pcap")
	if err != nil {
		log.Fatal(err)
	}
	defer handle.Close()

	// Create a pool of TCP streams
	pool := tcpassembly.NewStreamPool(&streamFactory{})
	assembler := tcpassembly.NewAssembler(pool)

	// Loop through packets in the file
	packetSource := gopacket.NewPacketSource(handle, handle.LinkType())
	for packet := range packetSource.Packets() {
		if tcpLayer := packet.Layer(layers.LayerTypeTCP); tcpLayer != nil {
			tcp, _ := tcpLayer.(*layers.TCP)
			assembler.AssembleWithTimestamp(packet.NetworkLayer().NetworkFlow(), tcp, packet.Metadata().Timestamp)
		}
	}

	// Flush remaining packets
	assembler.FlushAll()
}

Output:
2024/05/26 16:11:34 New stream found: <IP_ADDRESS>:22-><IP_ADDRESS>:51734
2024/05/26 16:11:34 New stream found: <IP_ADDRESS>:22-><IP_ADDRESS>:50112
2024/05/26 16:11:34 New stream found: <IP_ADDRESS>:50112-><IP_ADDRESS>:22
2024/05/26 16:11:34 New stream found: <IP_ADDRESS>:51734-><IP_ADDRESS>:22
2024/05/26 16:11:34 New stream found: <IP_ADDRESS>:36888-><IP_ADDRESS>:443
2024/05/26 16:11:34 New stream found: <IP_ADDRESS>:443-><IP_ADDRESS>:36888

For reassembly:
package main

import (
	"log"

	"github.com/google/gopacket"
	"github.com/google/gopacket/layers"
	"github.com/google/gopacket/pcap"
	"github.com/google/gopacket/reassembly"
)

// reassembly.StreamFactory
type streamFactory struct{}

// reassembly.Stream
type tcpStream struct{}

// Assemble context
type AssemblerContext struct {
	CaptureInfo gopacket.CaptureInfo
}

func (c *AssemblerContext) GetCaptureInfo() gopacket.CaptureInfo {
	return c.CaptureInfo
}

func (factory *streamFactory) New(netFlow, tcpFlow gopacket.Flow, tcp *layers.TCP, ac reassembly.AssemblerContext) reassembly.Stream {
	log.Printf("New stream found: %v:%v->%v:%v SYN: %v, ACK: %v, FIN: %v, RST: %v, Seq: %v, Ack: %v\n",
		netFlow.Src(), tcpFlow.Src(), netFlow.Dst(), tcpFlow.Dst(),
		tcp.SYN, tcp.ACK, tcp.FIN, tcp.RST, tcp.Seq, tcp.Ack)
	return &tcpStream{}
}

func (stream *tcpStream) Accept(tcp *layers.TCP, ci gopacket.CaptureInfo, dir reassembly.TCPFlowDirection, nextSeq reassembly.Sequence, start *bool, ac reassembly.AssemblerContext) bool {
	return true
}

func (stream *tcpStream) ReassembledSG(sg reassembly.ScatterGather, ac reassembly.AssemblerContext) {
	// Handle reassembled segments
}

func (stream *tcpStream) ReassemblyComplete(ac reassembly.AssemblerContext) bool {
	// Complete handling for the stream
	return true
}

func main() {
	// Open a pcap file
	handle, err := pcap.OpenOffline("./test.pcap")
	if err != nil {
		log.Fatal(err)
	}
	defer handle.Close()

	// Create a pool of TCP streams
	pool := reassembly.NewStreamPool(&streamFactory{})
	assembler := reassembly.NewAssembler(pool)

	// Loop through packets in the file
	packetSource := gopacket.NewPacketSource(handle, handle.LinkType())
	for packet := range packetSource.Packets() {
		if tcpLayer := packet.Layer(layers.LayerTypeTCP); tcpLayer != nil {
			tcp, _ := tcpLayer.(*layers.TCP)
			assembler.AssembleWithContext(packet.NetworkLayer().NetworkFlow(), tcp, &AssemblerContext{
				CaptureInfo: packet.Metadata().CaptureInfo,
			})
		}
	}

	// Flush remaining packets
	assembler.FlushAll()
}

Output
2024/05/26 16:21:52 New stream found: <IP_ADDRESS>:22-><IP_ADDRESS>:51734 SYN: false, ACK: true, FIN: false, RST: false, Seq:<PHONE_NUMBER>, Ack: 332436703
2024/05/26 16:21:52 New stream found: <IP_ADDRESS>:22-><IP_ADDRESS>:50112 SYN: false, ACK: true, FIN: false, RST: false, Seq:<PHONE_NUMBER>, Ack: 7564907
2024/05/26 16:21:52 New stream found: <IP_ADDRESS>:36888-><IP_ADDRESS>:443 SYN: true, ACK: false, FIN: false, RST: false, Seq: 956211534, Ack: 0
2024/05/26 16:21:52 New stream found: <IP_ADDRESS>:36888-><IP_ADDRESS>:443 SYN: false, ACK: true, FIN: false, RST: false, Seq: 956212383, Ack: 832772637

In the test pcap, reassembly seems to call the New function multiple times for the same stream, which is unexpected. Also, the New function should be triggered by the first packet of a stream, but it being called with a sequence number 956212383 that is not the first in the stream.
test.pcap.zip

If ReassemblyComplete should return true, the lask ACK will be recognized as new stream. Because if ReassemblyComplete return true, this connection will be remove from connection pool.
func (a *Assembler) closeHalfConnection(conn *connection, half *halfconnection) {
	if *debugLog {
		log.Printf("%v closing", conn)
	}
	half.closed = true
	for p := half.first; p != nil; p = p.next {
		// FIXME: it should be already empty
		a.pc.replace(p)
		half.pages--
	}
	if conn.s2c.closed && conn.c2s.closed {
		if half.stream.ReassemblyComplete(nil) { //FIXME: which context to pass ?
			a.connPool.remove(conn)
		}
	}
}

so, i suggest use code before. Also you can see the example file examples/reassemblydump/main.go
func (t *tcpStream) ReassemblyComplete(ac reassembly.AssemblerContext) bool {
	// do not remove the connection to allow last ACK
	return false
}

Another problem is that the tcpassembly package splits a TCP connection into two streams, but in the reassembly package, the connection between the client and the server is maintained internally as one TCP stream.

@sud0why Thanks a lot. I found the reassembly package difficult to work with and decided not to pursue fixing the issue, as the design seemed a bit unconventional and hard to grasp. Instead, I stayed with tcpassembly.
I’m not sure why the reassembly package treats the connection as a single TCP stream, but I believe it’s more natural to consider a TCP connection as two streams, given the bidirectional nature.
By the way, aside from the reassembly issues, the protocol decoder also has its problems. I tried using the TLS layer decoder, but it doesn’t even have a parser for the ServerHello TLS record.
I’ll be moving on to other projects…


Memory leak in DEBUG mode

Flask-SQLAlchemy record all SQL queries in debug mode. I agree it is useful to debug but it also consume all my memory in long running processes. E.g. a celery task importing a lot of data to my database.
I suggest a hard limit to record only last N queries.
Also, if I just set SQLALCHEMY_RECORD_QUERIES=False, it is ignored because it always record in debug mode.

But I'll make sure it's in for 3.0.

Shouldn't it be re-opened then and added to the 3.0 milestone?

Given that it's been 4 years and we are still not in the version 3, would it be possible to consider some workaround for this in the version 2? Disabling debug globally every time you want to test larger batch job gets quite annoying after a while. (Also disabling global debug also disables everything else that might be useful in the testing, not just query recording)


Added implementation for Blackjack game in python

Added blackjack game in python

I've added blackjack jame project in python. For running/executing the game for testing purpose, it can be done through this google colab notebook: https://colab.research.google.com/drive/1vJ_X9AGqUuMxYxJ7aqvDLAlhwyWEXc_2?usp=sharing
Please merge the project. Thanks!
Close #3438

Checklist:

[x] I have mentioned the issue number in my Pull Request.
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have created a helpful and easy to understand README.md

@MohitGupta121 Can it be merged now?

We already have this game


.d.ts files don't have outputs

Fixes #25355

Interesting note: I had missed the esModuleInterop param from the announcement, and adding it actually made json imports work for me. Is that expected? (2.9.1)


[30] allow test user to copy out XMLrunner reports

@alanking Oops, I actually did that. It's meant for 4-2-stable of course, then I can cherry pick to main later.  Is there a way we can move this PR to the right place,  @trel ?

I think if you just rebase on main here and remove the README change, it will apply cleanly...
Alternatively, you can close this PR and open a new one for main after it's been merged and cherry-picked.
Up to you.

i think i can redirect a PR... hold please...

ooh neat.  i think it worked.

Sweet, thanks! # em

Ok, #'d and a little explanation added to the commit as well.

Thanks. Please cherry-pick to main

Ok, #'d and a little explanation added to the commit as well.

in general, try to avoid this... so we have agreement on what is in a commit before it gets #'d.

Will do in the future.  Wasn't trying  to sneak anything in but thought it should be said.

yep, got it.


Cli reply text overlap

This occasionally occurs on window cmd, but it works good on powershell.

Yeah, this was fixed in https://github.com/bsdayo/BingChat/pull/25
Could you dotnet tool update dotnet-bingchat and try again?

I just updated and tried again, but it still occurs... Also reproduced on powershell just now.

Nevermind, I'm blind :D This is with bubble theme, the linked PR fixed the line one...


Rely on internal exceptions

Current coverage is 100% (diff: 100%)

Merging #38 into master will not change coverage

@@           master   #38   diff @@
===================================
  Files           5     6     +1
  Lines          90    91     +1
  Methods         0     0
  Messages        0     0
  Branches        0     0
===================================
+ Hits           90    91     +1
  Misses          0     0
  Partials        0     0

Powered by Codecov. Last update 77e2e16...2456312


Create a health check to ensure adb power service is up and running

Tests keep failing on Linux bots when adb power service is not  available.
A health check needs to be added to quarantine the bot when no power service is detected.
Related issue: https://github.com/flutter/flutter/issues/75983

This is already on review.

This has been implemented and validated in staging pool.


corrected several wrong macro names

Scope & Purpose

fixed a few wrong macro names
removed dead code, protected by wrong macro names
renamed a few macros from TRI_ to ARANGODB_

[x] Bug-Fix for devel-branch (i.e. no need for backports?)

Related Information
(Please reference tickets / specification etc )

[ ] There is a GitHub Issue reported by a Community User:
[ ] There is an internal planning ticket:
[ ] There is a JIRA Ticket number (In case a customer was affected / involved):
[ ] There is a design document:

Testing & Verification
This change is a trivial rework / code cleanup without any test coverage.
https://jenkins01.arangodb.biz/view/PR/job/arangodb-matrix-pr/6172/

https://jenkins01.arangodb.biz/view/PR/job/arangodb-matrix-pr/6187/


Using Autoware Docker Containers without Source Code Included

Hi AutowareAI team is the Case 2 tutorial already available from this tutorial website?? https://github.com/Autoware-AI/autoware.ai/wiki/Generic-x86-Docker#case-3-creating-a-custom-autoware-docker-container?

I am trying to use the most recent Open Planner version as Hatem-Darweesh suggested me https://github.com/Autoware-AI/core_planning/issues/52 to overcome the collision avoidance issue: https://github.com/Autoware-AI/autoware.ai/issues/2387
However I am struggling to install this from source ( I will probably crash the system as it is said here, in image tutorial below:)

I decided to work around the DockerFile and set to it get the autoware.ai.repos from a local folder and not from wget. In addition I have changed the dowload of the modules: common, core_planning, and perception modules from master version to open_planner 1.15 branche,:

and then I have build the docker image with:
./build.sh   ./run.sh -t local
However error raises and then a standard local-cuda-melodic image is created instead my customized with the modules from Hatem-Darshee github repos.
How could I get these forked repo modules (common, planning and percpetion) from Hatem and the other modules from master?
Or at least create a base-container (CASE 2 of tutorial) as I asked in the title of my question?

Hi @marcusvinicius178 . I am looking for a way to modify my Dockerfile like you to accept other repos. could you please tell me how you fixed it at last?

Sure Dude! Just follow my answer here: https://answers.ros.org/question/376512/fork-autoware_ai-repository-and-create-docker-image/
Please ignore the first part (step A) of this answer...Just follow the Step B.
If you have some trouble during the process please let me know.

I I face into a trouble since in the autoware.ai repository which I cloned it into a desired folder, there is no install folder to run setup.bash file from it. I mean this part: ~/generic$ source /home/$USERNAME/Autoware/install/local_setup.bash or there is no repository to contain this file: or roslaunch runtime_manager runtime_manager.launch
my desired folder just contain these:

what should I do?

Hey man I think I have also done this....you tried to install AutowareAI CASE2 right? I mean work locally where your modifications should remain....
I can just say that doing this way you will not have success....at least I did not...this is why I opened this issue....
when you build Autoware in a local folder the runtime manager is not found and other modules also not...If you see Autoware team wrote that they would update the tutorial but still did not. That is why I said, just ignore the step A from the link I sent you above....follow the CASE3 of this tutorial: https://github.com/Autoware-AI/autoware.ai/wiki/Generic-x86-Docker#case-3-creating-a-custom-autoware-docker-container
with the modifications I said on the link I sent you: https://answers.ros.org/question/376512/fork-autoware_ai-repository-and-create-docker-image/
This guy "Hatem Darweesh worked locally with AutowareAI repo as you can check our discussion here: https://github.com/Autoware-AI/core_planning/issues/52#issuecomment-910097419
Just look at his video he does not use Docker: https://www.youtube.com/watch?v=BS5nLtBsXPE
I do not know how he achived that you can just ask him. I prefer to work with Docker in order to do not crash my system...anyway you can try what be best for your case.
Good Lucky

Thanks @marcusvinicius178 for such a great discussion. just something in your description in  https://answers.ros.org/question/376512/fork-autoware_ai-repository-and-create-docker-image/
make me confused. first when you said using
./run.sh -b home/desired_empty_folder
your desired_empty_folder those not contain any folder such as install, autoware, src, build etc because every time I use -b after ./run.sh and set a directory, after running the container, it includes the files which was already on that desired directory. and from every where I cloned autoware.ai github directory, it does not contain install and build folders to let me run autoware software.
when I just use ./run.sh , I go into a container which include src, build, install, Autoware folders and I have the chance of running autoware software. but if I want to use my desired_empty_folder for ./run.sh command, inside the container I can just access  folders which are inside  desired_empty_folder.
Second, you said that after running the autoware container with ./run.sh, inside it, use these commands:
~/generic$ cd /home/$USERNAME/Autoware
~/generic$ wget https://raw.githubusercontent.com/Autoware-AI/autoware.ai/1.14.0/autoware.ai.repos
~/generic$ source /home/$USERNAME/Autoware/install/local_setup.bash
~/generic$ vcs import src < autoware.ai.repos
~/generic$ source /opt/ros/$ROS_DISTRO/setup.bash
~/generic$ colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release
~/generic$ source /home/$USERNAME/Autoware/install/local_setup.bash >> /home/$USERNAME/.bashrc
if it is inside the container and after using ./run.sh, why before $ sign, the directory is ~/generic$ so I had a doubt if you are not inside the autoware container while these commands are going be run inside generic folder of the docker before using ./run.sh.
Thanks again for your help to solve this problem.

Thanks @marcusvinicius178 for such a great discussion. just something in your description in https://answers.ros.org/question/376512/fork-autoware_ai-repository-and-create-docker-image/
make me confused. first when you said using
./run.sh -b home/desired_empty_folder
your desired_empty_folder those not contain any folder such as install, autoware, src, build etc because every time I use -b after ./run.sh and set a directory, after running the container, it includes the files which was already on that desired directory. and from every where I cloned autoware.ai github directory, it does not contain install and build folders to let me run autoware software.
when I just use ./run.sh , I go into a container which include src, build, install, Autoware folders and I have the chance of running autoware software. but if I want to use my desired_empty_folder for ./run.sh command, inside the container I can just access folders which are inside desired_empty_folder.
Second, you said that after running the autoware container with ./run.sh, inside it, use these commands:
~/generic$ cd /home/$USERNAME/Autoware
~/generic$ wget https://raw.githubusercontent.com/Autoware-AI/autoware.ai/1.14.0/autoware.ai.repos
~/generic$ source /home/$USERNAME/Autoware/install/local_setup.bash
~/generic$ vcs import src < autoware.ai.repos
~/generic$ source /opt/ros/$ROS_DISTRO/setup.bash
~/generic$ colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release
~/generic$ source /home/$USERNAME/Autoware/install/local_setup.bash >> /home/$USERNAME/.bashrc
if it is inside the container and after using ./run.sh, why before $ sign, the directory is ~/generic$ so I had a doubt if you are not inside the autoware container while these commands are going be run inside generic folder of the docker before using ./run.sh.
You are right. This is my mistake I was typing the step by step in ROS answers but did not copy from my terminal directly do you understand? Actually just forget there is this Generic folder on these commands...I wrote this tutorial when I was trying to use the Docker with Local folder but as you are facing now issues with this CASE2, I also gave up to use this method. I will repeat again. Try CASE3. As you can check the Autoware.Ai team did not update the CASE2 you wish to use. So just use case 3 as I said, any changes you do in your local folder, you must just push this local folder you have with GitHub, it will be synchronized. Do you know to use git? I can make a tutorial video to show you how using Docker with Autoware and your modifications if you wish... tomorrow maybe...I post here.

And if you take a time to read all the files inside the generic folder ( The docker files and the .sh files), read one by one with calm....as I did...you will understand how the logic works....then you can try all the CASE Autoware provided in your terminal you check what's going on the steps from Docker file that are happen as well as .sh. There are very good, cheap and very quick courses in: https://youtu.be/dJIwrMPwojo
Just do the Docker and the Git Course on your Android it is pretty fast, ( I believe in 1 or 2 days) you finish and get the main concepts.
Finally just try to understand the flags Ater issue:
./run.sh -h
The ./build.sh is the best compilation/build option because it contains the last release code (Master="1.15" version). Later just use ./run.sh -t local
To enter this built image you have done with /. build.sh if you use any other option, such as ./run.sh without flags you will check that other images will be built with other content that will be pulled....this is what the ./run.sh does, it takes a default image that AUTOWARE team decided to let as default ...
The ./run.sh -b /example_directory will result in building the AUTOWARE basic libraries/tools/Environment in this folder....but I really don't know why the other modules are missing...they need to fix or update this tutorial I think. Or there must be additional steps to be done that you can find looking in the internet ( Maybe an old tutorial of old Autoware from Nayoga University before going to Apex.Ai domain, may be lost in some place)
If you use any other ./run.sh -t 1.14 or other release you won't get the updates of master "branch" and won't see the modules fixed with the most updated codes.
That is what I can say...

Thanks again for your help to solve this problem.

Hi @marcusvinicius178 . Did you succeed to make a tutorial video? It will be so helpful for somebody like me.

Hi @baharkhabbazan yes I did it this weekend:
https://youtu.be/ewlMbr_XrEA
Good Lucky!

@marcusvinicius178 good job with the tutorial video,
can you make it public and "not for kids" so I can share it.
Regards,

Hi @marcusvinicius178  I did exactly what you have done on this tutorial and it went well. Thanks a lot for helping me to solve this issue after several weeks.

Hi @baharkhabbazan glad to hear.
Thanks Mr. @hatem-darweesh sorry for the delay I am working hard on my thesis. I have changed, just check if you can share it now please.

Great, it works, good luck with your thesis.

How to restart Autoware every time if it is build inside Docker (created using the steps mentioned in this.
Please explain step-by-step.


Geocode accuracy approximately 500metre varying from actual coordinates

### Affected Rich Results:
Restaurant
Organisation
LocalBusiness

This feature removed in  01f0260c56be88b3b8445792e34826a7c935a543 as outcome is not optimal.


Please add the GLFW native API

http://www.glfw.org/docs/latest/glfw3native_8h.html
Rationale: This allows to get hold of the platform-specific window handle of the GLFW-created window in order to customize the window.
Concrete use-case: Make the window semi-transparent using WS_EX_LAYERED and SetLayeredWindowAttributes (if LWJGL3 provides the latter).

Oh, and please add User32.SetLayeredWindowAttributes() :)

Sorry, didn't see the native API is in another GLFWNativeWin32 class and not GLFW :(


vscode with urls: vscode://file return error "Unable to open file : resource is not available"

Issue Type: Bug
I use a local html file that I keep open in my browser  (chrome) which lists several links in this format:
python
All my links worked fine until a couple of days (weeks?) ago.
It may follow a vscode update or a Windows Update.
How can I troubleshoot this?
VS Code version: Code 1.32.1 (05f146c7a8f7f78e80261aa3b2a2e642586f9eb3, 2019-03-08T00:51:49.278Z)
OS version: Windows_NT x64 10.0.17134

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-2760QM CPU @ 2.40GHz (8 x 2395)

GPU Status
2d_canvas: enabledchecker_imaging: disabled_offflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwarerasterization: unavailable_offsurface_synchronization: enabled_onvideo_decode: enabledwebgl: enabledwebgl2: enabled

Memory (System)
7.90GB (4.00GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (19)

Extension
Author (truncated)
Version

Bookmarks
ale
10.2.2

project-manager
ale
10.3.2

transformer
dak
1.6.0

jupyter
don
1.1.5

xml
Dot
2.4.0

auto-close-tag
for
0.5.6

macros
ged
1.2.1

gc-excelviewer
Gra
2.1.29

beautify
Hoo
1.4.9

vscode-favorites
how
1.4.0

vscode-opn
lfu
1.1.2

python
ms-
2019.2.5558

cpptools
ms-
0.21.0

PowerShell
ms-
1.11.0

debugger-for-chrome
msj
4.11.3

vscode-fileutils
sle
2.13.5

vscode-autohotkey
sle
0.2.2

vscode-arduino
vsc
0.2.25

local-history
xyz
1.7.0

I just discovered this as well. If I downgrade to v1.31.1 they work as expected, so it's something in 1.32.

https://github.com/Microsoft/vscode/issues/69998


Enable container publication to GitHub Container Registry.

🗣 Description

Adds the ability for the images generated in the actions workflows to be pushed to the Github Container Registry.
Images are now pushed to both registries.
💭 Motivation and Context

DockerHub is increasingly hostile towards open projects and the teams that support them.

team size limits
image pull limits
image retention limits

This is a hedge against DockerHub spontaneously disabling support for all free projects, and a stepping stone towards adding ECR support.
🧪 Testing

Tested locally and in CI.  And in a personal project.
A package has already been generated and published to registries as a result of this branch:

https://github.com/orgs/cisagov/packages/container/package/example
https://hub.docker.com/r/cisagov/example

All cisagov packages in a single location:

https://github.com/orgs/cisagov/packages

📷 Screenshots (if appropriate)

✅ Checklist

[x] This PR has an informative and human-readable title.
[x] Changes are limited to a single goal - eschew scope creep!
[x] All relevant type-of-change labels have been added.
[x] I have read the CONTRIBUTING document.
[x] These code changes follow project standards.
[x] All relevant repo and/or project documentation has been updated to reflect
the changes in this PR.
[x] All new and existing tests pass.

Waiting for the Krakening... pass it on.


Cookies also have a version number.

Hi,
Pac4j implementation of cookies was missing the version field.

+1
This change, of course, does not bring anything new until the specific web contexts implement it.

Ah yes, you are right, I forgot to do so ^^ I will add what is needed!

@leleuj here it is for the pac4j repository.


[BUG] Remove AOSS data sources from the data source picker

What is the bug?
Since Security is not supported in serverless, we should remove these options from the picker.
How can one reproduce the bug?
Add a serverless collection as a datasource. It shows up in the security dashboards datasource picker, when it is really not supported.
What is the expected behavior?
They should not be shown
What is your host/environment?

OS: [e.g. iOS]
Version [e.g. 22]
Plugins

Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.

[Triage] This is an issue around multiple data sources and serverless so going to mark as triaged.


Cordova IOS support, bad podspec

The podspec is malformed, you cannot use it in other platforms like cordova. here is information:
https://stackoverflow.com/questions/50124893/this-target-might-include-its-own-product-for-nib-in-dependency
https://github.com/CocoaPods/CocoaPods/issues/7704
How soon can I expect a fix?

Unfortunately, I don't work with Cordova so I really can't help with this issue. You seem experienced with the Cordova platform, kindly help out if possible.
Meanwhile, I'll be closing this issue as the podspec works in Xcode projects as intended. Feel free to reopen if you still need help.


restrict POST/PUT/DELETE requests to local requests

For reference see: https://bugzilla.redhat.com/show_bug.cgi?id=1312443

:+1: untested, but great approach to the problem.


Gauge logs shouldn't be written to wd

Expected behavior
When i run, gauge --update java in a non-gauge project directory, it adds logs to my working directory. This pollutes my dir.
Actual behavior
Logs should be written to a specific location, say ~/.gauge/logs.
Steps to reproduce

mkdir foo && cd foo
gauge --update java
ls shows gauge logs.

Gauge version
Gauge version: 0.4.1

Closed


[WIP][Xcodeproj] Allow blue folders with source code files on generated Xcode project

Current logic doesn't add directories which contain source files as blue folders. This PR changes the logic to add any directory that is not a reserved directory (sources, source, src, srcs, tests, packages) as a blue folder.
I created some helper functions to determine if a directory is a reserved directory. This is my first PR so I'm not familiar with the codebase. I think these functions should be moved to a better place, maybe become static functions on a correspondent struct or class. Maybe receive an AbsolutePath instead of String. I think PackageModel would be the best module?

The only place I saw the mention of the allowed sources directory is here:
https://github.com/apple/swift-package-manager/blob/master/Sources/PackageLoading/PackageBuilder.swift#L291
So if we add those functions to PackageBuilder and use them on the line mentioned above and on the function changed is this PR we won't have any sync problems.

LGTM, thanks!


MailManager extension in afterResolving() for better service ordering

See #72
This change helps, because:

it won't use service mail.manager until it's actually needed,
just like fedeisas/laravel-mail-css-inliner, which makes the service order important,
which is wrong by default (fedeisas/... before spatie/...), but with extra.laravel.dont-discover in composer.json I can manually change that.

So mail preview's afterResolving runs before css inliner's afterResolving, so it can register the preview transport before the mailer is created.

Seems we hit a little GitHub bug, because I've merged this PR and released the changes.
Thanks for your work on this! 👍


2021-7-27 recommend

https://github.com/writefreely/writefreely
https://github.com/microsoft/CBL-Mariner
https://github.com/ivanceras/svgbob
https://github.com/kroitor/asciichart
https://github.com/openfaas/faas
https://github.com/uellenberg/REXS

a7f338a9197fb667f865eaa5d22f216445cb342f


[Help] OnBeforeEditEvent exists?

Hi! I leave you a question that I have not been able to resolve.
I have a grid and I need that when pressing enter on a cell, before going to editing mode, it changes its value to 1000 and then, the user can edit it.
I haven't found the right event. Something like an onBeforeEdit event.
If anyone could help me I would appreciate it.
Thank you so much.

I already resolved it. Thank you.


Add virtual-scroller to listbox

The sheer number of DOM items is a performance issue, why only keeping a few items in the DOM at a time is necessary, so called virtual-scrolling or list virtualization. I've been struggling to find one that doesn't add lots of child-elements, in a way that ruins with the accessibility.
Looking at the Listbox of PrimeVue, I saw that they manage to get it working quite nicely -- and expose the virtualscroller used internally.

Fixed in c6827ac4bcb7843d20606d8122dfce9f0b7fbf88..3952259807f91cd27906427cb01bd836ee9b874f