Add property-based tests for cross-products

PR targetting the branch for #65

[x] Add linearity and anti-symmetry test
[x] Document that cross-products may overflow on large vectors
[x] Restrict the generated vectors to avoid overflow (pulled in #69)
[ ] Fix the exposed numerical instabilities in cross-products.

PS: #65 was merged without this, so it should be re-targetted against master

There is a failure of the linearity test, as well. I assume this is the instability you've referred to before?

@astronouth7303 @pathunstrom I was poking at making the cross-product more numerically stable, when I realised that there's nothing that uses it anymore since #68 was merged.
I kinda feel like removing the feature outright might be sensible, since providing a well-behaved cross-product is pretty hard.  What do you think?

This seems reasonable, since this only exists because you needed it for some algorithm.
Is there something external that you'd want it for? Intersections? Sidedness?

It can be used for sidedness, yes.  If someone decides they need it, it would be pretty easy to bring it back.

PS: Just pushed some local changes I had, for the record, but if you confirm we can remove the feature, I would rather do that.

@astronouth7303 Mmmh, cross-product is also nice to check if vectors are aligned.
(x and y are aligned iff x ^ y ≃ 0)

@pathunstrom The dot product is a bit more annoying to use for that purpose, IMO (you have to normalize & such).  OTOH, I just realised this makes no sense, we have a perfectly fine Vector2.angle method, which is probably the better way to check whether things are aligned.

Replying to @astronouth7303's comments on #80 (I think it would be better to keep the conversation here) :

What algorithms depend on (or significantly benefit from) cross product, even ones not included in this library?

Nothing in the library use cross-product, and I can't think of anything I would want in a game that benefits from it; for general geometry, cross-product is pretty convenient for computing the area of triangles or parallelograms between 2 vectors (area_plg = 2*area_triangle = abs(a ^ b)).

Can we characterize the instability? Is it something that only appears at extremes or are there perfectly reasonable vectors that have major problems?

Yes, the instability occurs when there are near-parallel vectors, IIRC.
It keeps occurring even if I crank up the relative tolerance to 0.01 (i.e. tolerate 10% error) and with small (but not ludicruously-small) vectors.

That's a pretty significant instability (10% will probably have noticeable effects in a game) for normal vectors. I think that qualifies cross product as a foot-gun and it should probably be removed on that premise.

@pathunstrom your vote?

I'm all for keeping foot guns out of the ppb name space.

:heart:


Add two new death statistics

Hi!
I wanted a mod to track how many times I've died the current gaming session, especially in the current screen/room, i.e. a value that resets to 0 on screen transitions.
I couldn't find a mod that showed these stats, but this one was close, so I added the functionality.
I don't know if you're interested in adding it to the released mod or not, but I figured I'd open a PR and check!

I also added two timers, that I didn't add to the PR as they might not really fit with the mod's purpose. They show the time since the last reset of the new stats, i.e. time since last level load, and time since last transition, shown in mm:ss or h:mm:ss formats (the latter if it's >= 1 hour).
I pushed that in a separate branch here just in case.

Sure, I'd pull it in.
I just noticed that I haven't put a license here - I intend to put the standard MIT license. Do you agree to put your contributions under the same terms?

Absolutely, that's fine. You don't really need to put any copyright to me at all, just add a LICENSE file with your name. :)

Alright, got the new counters in. Also did a bit of polishing work on the mod now. I'm not sure whether I want more timers in the mod yet, I'll give it some more thought.

My fork has diverged a bit more by now, especially after your polishing, but I don't really intend to share the mod (and perhaps not the code either) publicly. By now it saves per-screen death stats and play time to SaveData, but you can only view those stats while you're on that screen, so it's only really useful while playing through a difficult section -- as I've been doing for a while now, finishing up all the B-sides, and then perhaps C-sides.
Regarding polishing, it's also rather hacky, but good enough for me to play with at least :)


demo: show how to avoid  an…

…d lack of FOREGROUND_SERVICE permission in demo
more detail please refer to https://stackoverflow.com/questions/45940861/android-8-cleartext-http-traffic-not-permitted
Closes #1171

I can't get point about cleartext HTTP traffic not permitted. could you please more detail about that refer to the commit you provide, and if it will affect the real case if people use FileDownloader, please add it to the readme doc.
p.s. change the MR title from refactor to demo.

Okay, what about other URLs declared on the Contacts?

This is a sample for solving this issue in demo, so there is no need to cover all URLs in Constant.

赞。


Create a GPG-signed tag if user.signingkey is present

This patch implements #4540 .

👍 other than the one tiny comment

@indirect r?

user.signingkey is not what usually used to know if a commit needs a sign or not. I believe commit.gpgsign is more accurate with the intentions to sign a tag. We could also use tag.forceSignAnnotated and just let git use its default behavior (that will be creating a annotated and signed that) not passing the -a option.

Git uses this setting to sign tags already:

git 2.9 (June 2016) will use user.signingKey to force signing annotated tags as well as commits: commit 61c2fe0.

@eagletmt since git already signs annotated tags if user.signingKey is present, why is this change to Bundler needed?
@rafaelfranca user.signingkey is the correct config setting according to the GitHub docs: https://help.github.com/articles/telling-git-about-your-gpg-key/. Setting commit.gpgsign merely tells git to automatically sign each commit you create (effectively adding -s to all invocations of git commit).

Oops! I misunderstood the git commit, sorry.
@rafaelfranca yep, you're totally right. 😆
@eagletmt you can get this behavior by setting git config tag.forcesignannotated true. I think this means it does not need to be a setting in Bundler. Do you agree?

I think this means it does not need to be a setting in Bundler. Do you agree?

I think we still need to remove the -a option that Bundler adds because that option disable the signature.
tag.forceSignAnnotated
           A boolean to specify whether annotated tags created should be GPG signed. If --annotate is specified
           on the command line, it takes precedence over this option.

I didn't know tag.forceSignAnnotated. Removing -a seems sufficient to me 😌
We can remove -a without changing the current behavior because -m implies -a.

If -m  or -F  is given and -a, -s, and -u  are absent, -a is implied
https://www.kernel.org/pub/software/scm/git/docs/git-tag.html

totally changed my patch to simply removing -a option.

👍 @homu r+

:pushpin: Commit 253fe8b has been approved by indirect

:hourglass: Testing commit 253fe8b with merge 9ab10d6...

:sunny: Test successful - status


[Codeless Conduct] - Open Track - Data/Analytics

Prize Title
Open Track - Data/Analytics
Prize Bounty
2000 USDC
Challenge Description
Open track submissions allow you to experiment and build on something that you learned during Codeless Conduct. It’s an opportunity to get creative and work on your own ideas. Is there something that really inspired you during the marketing workshop? Cool, feel free to explore how this can add value to web3! 🚀
Submission Requirements - Data/Analytics Track
To keep quality and scope consistent for open track bounties, every submission for the data/analytics track must fit into one of the following buckets

Analyze the impact of Airdrops and Farming rewards on token price.
Understand the drivers of price movements with respect to the token-holder distribution, e.g. are token prices more or less volatile when the gini-coefficient is high (high granularity might be necessary)
Build a dashboard to visualize/analyze hodl waves for any ERC-20 token (e.g. see https://unchained.com/hodlwaves/)
Build a dashboard to visualize/analyze the MVRV score for any ERC-20 token (see e.g. https://charts.woobull.com/bitcoin-mvrv-ratio/)
Create a dashboard that analyzes the value flows from and to Gnosis Safe accounts. How many $s are being traded daily via Gnosis Safe? How many $s are being borrowed/lent via Gnosis Safe every day?
Create an NFT Project Dashboard & Query tool
Map out Bridge usage to and from L1 blockchains
Map out L2 Gas Consumption on Ethereum

What are particularly interest insights you have discovered while working on this bounty? Summarize some of your discoveries.
We will only accept submissions that are new projects. They cannot be something you have previously worked on before this hackathon (and if we are not certain that this is the case, we have to exclude the submission to keep it fair).
Judging Criteria

Our selected panel of judges will be using quadratic voting to assign a total of 100 vote credits spread across the submissions that they like the most. The prize pool will be split pro rata across submissions with at least 5% of total positive votes.

Winner Announcement Date

March 11th 2022

Resources
Below are some ideas for general submission pertaining to data/analytics...
DATA / ANALYTICS

Dashboard creation

NFT Project Dashboard & Query tool
Bridge usage
L2 Gas Consumption

Hi @nichanank,
it seems I got wrong on submission. I am sorry for the inconveniences.
here is the link for my work, if you didnt find it on the submission form which I normally place on demo video link field.
Go here==>: https://docs.google.com/document/d/12gDoOLUb4Fgr2ngDyA1vUf-GXPbideo8pO36wTQq0As/edit?usp=sharing
thanks


Return all new patient UUIDs upon successful bulk file upload

So upon success of http://<IP_ADDRESS>:8000/admin/uploader/uploadedfile/add/ a page should be returned that includes all of the add (or referenced) patient UUIDs such that they can be referenced in the future.
This would have to be a 1-1 mapping with the order of patient entries found in the uploaded file .
Or perhaps we can even add these to uploader.models.UploadedFile or history http://<IP_ADDRESS>:8000/admin/uploader/uploadedfile/25/history/.
See https://github.com/ssec-jhu/biospecdb/pull/29#discussion_r1268447156

Visits are tracked by the uploaded bulk data file that created them so this is no longer needed.


Harvester cli with run, manage and config command refactored to use cobra

Pull Request check list

[X] Proper tests/regressions included?
[ ] Documentation updated?

Affected functionality

Description of change

Which issue this PR fixes

Thanks for caring care of this @n-th 🙏 It looks really good 💯
I left some nit questions mostly about error handling, subcommands, and the execution path.

We're still seeing duplicated error messages when executing the CLI. Could you please fix that @n-th ?


One of the test questions has grammar errors.

Original question on the test: "The police was not made to protect the people, but to uphold the status-quo by force."
Correct phrasing: "The police were not made to protect the people, but to uphold the status quo by force."
Potentially better phrasing: "The police were not created to protect the people, but to uphold the status quo by force."

Makes sense.


fix: typo in readme header

Description

Type of Change

[x] Non-module change (e.g. CI/CD, documentation, etc.)
[x] Azure Verified Module updates:

[ ] Bugfix containing backwards compatible bug fixes

[ ] Someone has opened a bug report issue, and I have included "Closes #{bug_report_issue_number}" in the PR description.
[ ] The bug was found by the module author, and no one has opened an issue to report it yet.

[ ] Feature update backwards compatible feature updates.
[ ] Breaking changes.
[x] Update to documentation

Checklist

[x] I'm sure there are no other open Pull Requests for the same update/change
[ ] My corresponding pipelines / checks run clean and green without any errors or warnings
[ ] I did run all  pre-commit checks

This is only docs-related and doesn't impact the terraform module itself.

@tobiasehlert thank you for you PR


SNS - Changes for IMUs to work

Slight modifications which gets the IMU-20948 to work with our code on the beagleboneblack.

Codecov Report

Merging #152 (3592d55) into master (516a539) will decrease coverage by 0.03%.
The diff coverage is 11.11%.

@@            Coverage Diff             @@
##           master     #152      +/-   ##
==========================================
- Coverage   38.20%   38.16%   -0.04%
==========================================
  Files          69       69
  Lines        3942     3946       +4
==========================================
  Hits         1506     1506
- Misses       2436     2440       +4

Impacted Files
Coverage Δ

src/sensors/imu.cpp
49.35% <0.00%> (-0.33%)
:arrow_down:

src/utils/io/spi.cpp
9.52% <16.66%> (-0.29%)
: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 516a539...3592d55. Read the comment docs.


Fixed email rendering bug in Android gmail client

refs https://github.com/TryGhost/Ghost/pull/18587/files and https://github.com/TryGhost/Ghost/pull/17475/files

In October 2022, juice introduced a change that began inlining width: auto; and height: auto from CSS on image tags, resulting in width="auto" and height="auto" being added to image tags in our email renderer (https://github.com/Automattic/juice/commit/cb62062794e07cf4c0f30b16bd2c6b31b8144c41)
The change in juice broke our email rendering in Outlook. The two referenced commits above were attempts to work around this new behavior, but ultimately each attempt fixed one issue while creating another issue
This commit reverts our previous attempts to work around this new behavior in juice, and instead forks juice to revert to its original behavior, which does not inline width and height attributes if they are set to auto
Long-term it would be better to make the behavior configurable in the upstream juice repo so we don't have to maintain a fork, but this should fix the email renderer in the meantime

Closed in favor of https://github.com/TryGhost/Ghost/commit/3a4417ebd6bcd4ed7b827dc2493a8f4273b9580b so we don't have to fork juice


Is is okay that I have only 182 packages to install?

Develop branch
I didn't install anything by myself

I comment
; (package-initialize)

this line in .emacs.d/init.el and again can install all packages


Try to speedup testing by using ramdisks

Is your feature request related to a problem? Please describe.
The database creation takes quite some time. We should try to speed this up by using ramdisk.
Describe the solution you'd like
Figure out the current mounts and what the runner uses as the temporary directory. Maybe /tmp already is a tmpfs and used when doing the import smoke tests.
Otherwise, do something like sudo mount -t tmpfs -o size=2G /tmp
Describe alternatives you've considered
N/A
Additional context
N/A

Test speed is virtually unchanged. Abandoning this.


Add testing suite for web extension

There are no current tests for the browser extension. Browser extension tests can be added to the existing cypress tests.
https://docs.cypress.io/api/plugins/browser-launch-api#Add-browser-extensions

Updating with additional requirements:

[ ] regression tests by feature (some features already covered in core test suite)
[ ] integration tests per browser (currently covering Edge, Mozilla, Firefox)

Trying to organize Cypress files to get them to work with typescript.

Closed by #466


Discord Bot: Add timeout to channel lock with arg

unlock timeout default = 5 minutes
make timeout an arg (timeout:15m)

Implemented.
https://github.com/tetsuo-ai/tetsuo-discord-engage/pull/8


ScoreP Fixes

With this I'm able to compile scorep with CUDA 7.0 and ScoreP 3.0. However I'm not able to run it:
Invalid buffer pointer, error stack:
MPI_Irecv(148): MPI_Irecv(buf=(nil), count=24120, MPI_DOUBLE, src=1, tag=5, MPI_COMM_WORLD, request=0x1a3edb0) failed
MPI_Irecv(118): Null buffer pointer

[keschcn-0006:mpi_rank_1][error_sighandler] Caught error: Segmentation fault (signal 11)
srun: error: keschcn-0006: task 0: Exited with exit code 1
srun: Terminating job step 1792402.0
srun: Job step aborted: Waiting up to 32 seconds for job step to finish.
slurmstepd: error: *** STEP 1792402.0 ON keschcn-0006 CANCELLED AT 2017-06-02T12:40:05 ***
srun: error: keschcn-0006: task 1: Segmentation fault (core dumped)

To be able to use scorep, i need to move up -lmpi -lmpicxx before -lcuda -lcudart ... otherwise i segfault at runtime.
[keschcn-0002:mpi_rank_0][error_sighandler] Caught error: Segmentation fault (signal 11)

make + scorep :ok:
module purge
module load craype-haswell craype-network-infiniband
module load Score-P/3.0-gmvapich2-17.02_cuda_7.5_gdr
cd src/
make clean
export SCOREP_WRAPPER=on
make -f makefile-kesch

After relinking manually, code will work:

export SCOREP_TOTAL_MEMORY=1G
export SCOREP_ENABLE_TRACING=true
export SCOREP_CUDA_ENABLE=1
srun -p debug --gres=gpu:1 -N1 -n1 --ntasks-per-node=1 -t5 \
./GNU4.9.3_MVAPICH2-GDR2.2_CUDAV7.5.17.keschln-0003

vampir  scorep-20170606_1022_5822281186057301/traces.otf2

You need to find a way to do the same within cmake.

I manually changed the linker line and executed it by hand:
/scratch/spoerrip/proj_comm_overlap_bench/comm_overlap_bench_scorep/build/src> /apps/escha/UES/RH6.7/easybuild/software/GCC/4.9.3-binutils-2.25/bin/g++ -L/lib64 -std=c++11 -g -lpthread CMakeFiles/comm_overlap_benchmark.dir/main.cpp.o CMakeFiles/comm_overlap_benchmark.dir/MPIHelper.cpp.o CMakeFiles/comm_overlap_benchmark.dir/Repository.cpp.o CMakeFiles/comm_overlap_benchmark.dir/Options.cpp.o CMakeFiles/comm_overlap_benchmark.dir/comm_overlap_benchmark_generated_HorizontalDiffusionSA.cu.o CMakeFiles/comm_overlap_benchmark.dir/comm_overlap_benchmark_generated_Kernel.cu.o CMakeFiles/comm_overlap_benchmark.dir/comm_overlap_benchmark_intermediate_link.o -o comm_overlap_benchmark -Wl,-rpath,/opt/mvapich2/gdr/2.1/cuda7.0/gnu/lib64: /opt/mvapich2/gdr/2.1/cuda7.0/gnu/lib64/libmpicxx.so /opt/mvapich2/gdr/2.1/cuda7.0/gnu/lib64/libmpi.so /global/opt/nvidia/cudatoolkit/7.0.28/lib64/libcudart_static.a -ldl /usr/lib64/librt.so

and I'm still getting a segfault when executing the executable.

Addendum: With this I get a segfault when I run with two jobs, if I run with 1 jobs I get no segfault...

Summarized:

If I change the linker line to your recommendation, I'm able to run with one job, but not with 2.
With the current setup I get segfaults with 1 and 2 jobs.

I can get a trace with:
srun -p debug --gres=gpu:2 -N1 -n2 --ntasks-per-node=2 \
-t5 ./GNU4.9.3_MVAPICH2-GDR2.2_CUDAV7.5.17.keschln-0003

ok, with this commit above I'm able to compile with CMake and run it:
./build_kesch_scorep.sh

G2G=1 jobs=2 ./run_kesch_scorep.sh works
G2G=2 jobs=2 ./run_kesch_scorep.sh does not work (segfault)


university addition

tarrant county college addition

tarrant county college addition

@shrutinehra This domain is blacklisted because the college allows to register an email address there even if you are not a student of the college. If you are the student of this college, please apply with official document ("OFFICIAL DOCUMENT" tab at https://www.jetbrains.com/shop/eform/students).


Update Copy-DbaAgentSchedule.Tests.ps1 with Integration Test

Type of Change

[ ] Bug fix (non-breaking change, fixes #)
[ ] New feature (non-breaking change, adds functionality)
[ ] Breaking change (effects multiple commands or functionality)
[ ] Ran manual Pester test and has passed (`.\tests\manual.pester.ps1)
[ ] Adding code coverage to existing functionality
[X] Pester test is included
[ ] If new file reference added for test, has is been added to github.com/sqlcollaborative/appveyor-lab ?
[ ] Nunit test is included
[ ] Documentation
[ ] Build system

Purpose

Approach

Commands to test

Screenshots

Learning

So Copy-DbaAgentSchedule copies all schedules and does not allow for a specific one to be copied.  How can I determine if Instance 2 has any Agent Schedules so I know how many total their will be after I add my test.

Why not do a BeforeAll inside the Context block to gather the current number of Agent Schedules before running the copy in the test. That would ensure you know how many before moving. Or you could also write it to be Something like $results | Should Be Greaterthan 1

Thanks much! It says fail but it's another test. Thanks so much, please keep em coming!


Can you provide the SFT training set?

Can you provide the SFT training set? Or just release part of each category. I'd appreciate a lot !!!

Thanks for your interests. We would release SFT set soon.


embed::timeout_timer

timeout timer is a way to keep track of the amount of time left for an operation to run. For example, consider a WiFi driver that uses UART to operate. Consider the following pseudo code (using exceptions simply as a shorthand):
void get_request(/* parameters */, std::chrono::nanoseconds p_timeout)
{
  try {
    timeout_timer timer(p_timeout);
    write(/*...*/);
    read(/*...*/, timer.get_time_left());
    write(/*...*/);
    read(/*...*/, timer.get_time_left());
    write(/*...*/);
    read(/*...*/, timer.get_time_left());
    write(/*...*/);
    read(/*...*/, timer.get_time_left());
  } catch (embed::error::timeout e) {
    // Do something about it, maybe?
  }
  return;
}

The idea is that as embed::this_thread::uptime() ticks along the amount of wait time decreases for every call and once it hits zero or becomes negative, the read operations should return an timeout error. This ensures that the whole operation does not exceed (too far) beyond the timeout given and does not limit the overall time it takes to perform the operation.
This can all be handled by doing some arithmetic and using embed::this_thread::uptime().

With the removal of the global uptime/sleep functions the usage will have to change
timeout_timer timer(counter, timeout);
timeout_timer timer(timer, timeout);

The timeout_timer should have a template specialization for counter and timer.

Timeout timer should also handle overflow conditions with the counter class.

PR https://github.com/libembeddedhal/libembeddedhal/pull/259 has implementations for embed::timer and other interfaces. This issue will be resolved by starting out only with only implementations of embed::counter. The rationale here is due to the fact that embed::counter has a property where multiple timeout types can be derived from them at once, where as embed::timer can only support one timeout type at a time.


[Feature Request] Drag Queen Name Generator

To be able to follow in the footsteps of famous Drag Queens, like Eggz Benedict, Hedda Lettuce, and Penny Tentiary, it's high time that we get a Drag Queen Name of our own. This feature is meant to help us find our name by generating one for us!
Implementation details
You're free to think of any way to code the generator. It could be a simple generator that picks a name from a list or an interactive quiz that makes sure the user gets a name that fits them!

[ ] Collect names and create some kind of static resource to store them
[ ] Design the generation process (see above)
[ ] Code the command following the contributors docs
[ ] Make a Pull Request detailing your implementation, preferably including screenshots as well

Note: Make sure to keep the names in the list SFW.
Additional information

Keep us updated on your progress by leaving comments!
Make sure to give you commits a descriptive commit message
Please note the style guide and conventions listed in the various contrib documents
If you want to include graphics, make sure they have a permissive license

Do the names have to make sense? making a random generator for names that are good puns would be tricky. If they dont have to make sense, I'd do this.

I would like to take on this issue. Could you please assign it to me.

I've got a list of 247 sfw drag queen names, which should be enough for now. This cog shouldn't take much longer to finish.


update org.activiti.dependencies:activiti-dependencies to 7.1.28

UpdateBot pushed maven dependency: org.activiti.dependencies:activiti-dependencies to: 7.1.28

UpdateBot commands:
updatebot push-version --kind maven org.activiti.dependencies:activiti-dependencies 7.1.28 org.activiti.api:activiti-api-dependencies 7.1.26 org.activiti.core.common:activiti-core-common-dependencies 7.1.26 org.activiti.build:activiti-parent 7.1.14

Covered by https://github.com/Activiti/activiti-examples/pull/108


Add support for AKS pod identity

Description:
[Add description of the task]
Done Checklist:
[Remove items that are not required for task]

[ ] Code changes reviewed & signed off
[ ] Existing documentation is updated (readme, .md's)
[ ] New documentation needed to support the change is created
[ ] Code changes checked into master
[ ] All existing automated tests (unit and/or e2e) pass successfully, new tests added as needed
[ ] CI completes successfully
[ ] CD completes successfully
[ ] New changes in smoke test for 48hrs

@aflinchb I am currently getting this error from the container running typescript
No authentication type specified, defaulting to MSI.
{"name":"bunyanLog","hostname":"helium-ts-84cf54b568-pb92w","pid":18,"level":50,"err":{},"corr_id":"10616dab-2735-4815-9e60-f7b681d6ced4","msg":"Failed to get required Cosmos DB secrets from KeyVault","time":"2020-03-12T18:27:52.301Z","v":0}
{"name":"bunyanLog","hostname":"helium-ts-84cf54b568-pb92w","pid":18,"level":50,"err":{},"corr_id":"10616dab-2735-4815-9e60-f7b681d6ced4","msg":"Failed to get required Cosmos DB secrets from KeyVault","time":"2020-03-12T18:27:52.301Z","v":0}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>start: `node dist/server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/appuser/.npm/_logs/2020-03-12T18_27_52_309Z-debug.log

This cluster is running csharp with the same setup and no issues, so it has to be in the keyvault provider for node that may have an issue


I cannot use misaka math extension

isso) root@fobos:/home/xan# Traceback (most recent call last):
  File "/opt/isso/bin/isso", line 11, in <module>
    sys.exit(main())
  File "/opt/isso/local/lib/python2.7/site-packages/isso/__init__.py", line 261, in main
    run_simple(host, port, make_app(conf), threaded=True,
  File "/opt/isso/local/lib/python2.7/site-packages/isso/__init__.py", line 167, in make_app
    isso = App(conf)
  File "/opt/isso/local/lib/python2.7/site-packages/isso/__init__.py", line 91, in __init__
    self.markup = html.Markup(conf.section('markup'))
  File "/opt/isso/local/lib/python2.7/site-packages/isso/utils/html.py", line 94, in __init__
    parser = Markdown(conf.getlist("options"))
  File "/opt/isso/local/lib/python2.7/site-packages/isso/utils/html.py", line 65, in Markdown
    lambda ext: getattr(misaka, 'EXT_' + ext.upper()), extensions), 0)
  File "/opt/isso/local/lib/python2.7/site-packages/isso/utils/html.py", line 65, in <lambda>
    lambda ext: getattr(misaka, 'EXT_' + ext.upper()), extensions), 0)
AttributeError: 'module' object has no attribute 'EXT_MATH'

Perhaps it is because isso needs misaka 1.0.2 and latest misaka is 2.1.0? Extension math-explicit (math_explicit) does not work too

I just merged the PR to upgrade misaka to it's version >2. Could you test again?

@blatinier How can I do that? I installed via pip Did you upgrade pip version?

Pip version has not been upgraded lately. You should install from source.
Clone the branch master of this repository and install it using these instructions: https://posativ.org/isso/docs/install/#install-from-source

I'm in production. I'd prefer to wait until pip version is uptodate
On Tue, 01 May 2018 14:38:05 -0700
Benoît Latinier<EMAIL_ADDRESS>ha escrit:

Pip version has not been upgraded lately. You should install from source.
Clone the branch master of this repository and install it using these instructions: https://posativ.org/isso/docs/install/#install-from-source
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
https://github.com/posativ/isso/issues/396#issuecomment-385798549

Pip version is probably going to stale for a moment. Posativ has not enough time for publishing so since it's OK in master I close.

A pain


Pause event raised just before ended event

Hi,
We're trying to detect user interactions with the media player but we can't distinguish between the user clicking pause and the pause event that gets raised just before a new video is loaded and played.
What we have
We have fullscreen background video that can play a list of videos. When the end event is raised we use setSrc() then play() to play the next. This all works as expected - the ended event is raised which we pick up on and set the source to the next vid and play it.
Also, when the user pauses a video the side nav slides out. When they click play, it slides out of the way.
The issue
Initially we controlled the nav visibility by the play, paused events. But this doesn't work due to a pause event being raised just before the ended event - thus we can't guarantee it was the user clicking pause.
Instead, I tried picking up on the user clicking the button with the following selectors:
$('button', '.mejs-playpause-button .mejs-pause') and
$('button', '.mejs-playpause-button .mejs-play')
However, while the video plays/pauses as you'd expect, our event handler is never called.
The Question
Is the pause event supposed to be raised just before the ended event?
If so, is there a way of distinguishing between the pre-ended pause event and a user instigated pause?
Cheers

@jaggeh Closing old issues. If you'd like to reopen this, let us know. Thanks!


The Game doesn't upload to sprig

Describe the bug
When I click on Run On Device after like 15-20 minutes also game couldn't be uploaded it takes literally a lot of time and also doesn't tells any update
To Reproduce
Steps to reproduce the behavior:

Connect your sprig
Click on 'Run on Device'
See error

Expected behavior
The editor should upload the game within a few seconds to my sprig
Actual behavior
It doesn't even upload sometimes or uploads very slowly without any updates
Screenshots

It gets stuck on this

could you open developer console?
i got this same problem when trying to run a game on my sprig, but changing to a different computer solved it for me.


Some follow up questions!

Hi!
Firstly thank you for sharing this great work!
I wanted to ask a few questions.

I wanted to use this repo to do a synthetic to real DA! Do you think it would be possible to reuse this approach for the same? Any insights or leads on this front would be appreciated!
I see you used a multi GPU setup (8?) for the whole pipeline! I haven't gone through the entire code base but would it be even possible to get the pipeline running on a single GPU system (obviously with a reduced batch size)?

Thanks

Sure. I think ST3D can be a solid baseline.
We use 4 GPUs by default. We haven't tried single GPU for training. However, I think it can also work with single GPU.

Hey!
Thanks for your reply!
I will do my share of the investigation! Closing this issue, but will use this in the future for asking such questions!
Thanks


nginx_refacorting leaks memory  after reloading nginx

Hi,
I test Nginx1.8.0 with nginx_refactoring branch module .and find memory leak still exists after reloading nginx.
This is my configurations:
nginx.conf:
http {
server {
    listen       80;
    server_name  localhost;

    location / {
      ModSecurityEnabled on;
      ModSecurityConfig modsecurity.conf;
      proxy_pass http://localhost:8080;
    }
}

}
modsecurity.conf:
SecDebugLog             /var/log/modsec_debug.log
SecDebugLogLevel        9
SecRuleEngine On
include /usr/local/nginx/conf/modsecurity-crs/modsecurity_crs_10_setup.conf
include /usr/local/nginx/conf/modsecurity-crs/base_rules/modsecurity_crs_41_sql_injection_attacks.conf
I will be glad to provide other information if necessary.
Thanks

Hi @LanShi,
Thanks for the report.
This issue is known. Patch proposed at #815, but not finished yet.
Also leaking file descriptors, as described here: #838

We face the said memory leak with ModSec 2.9.0 compiled from code with Nginx 1.8.0. We are running Nginx+ModSec in pair with Consul-template, which reloads Nginx config anytime when backend service config changes in Consul. Our Nginx servers are running out or memory after 100-200 config reloads, which totally breaks the stability of our (pretty dynamic) infra.
So I am wondering why, after one year, the fix is still not present in a stable branch.. What blocks the release of this fix?
I will be glad to help, e.g. I can help with reproducing this issue by providing a Docker image with erroneous Nginx + Modsec with reproducer script.
I am not a C++ pro, but I can try to help with patching and testing existing stable codebase also..

Hi @daniilyar-confyrm,
I answered your comments in the pull request. Btw, did you had the chance to test the pull request?

@zimmerle, I tested the 'nginx_refactoring' branch under the load at the real env.
It was working well in our dynamic infra and satisfied us from the performance perspective.
But using this branch at PROD is not acceptable for us because except for the said fix there is a lot of other changes not qualified by community. So I am going to fork the 2.9.0 version and try applying only critical fixes to it (fix for memory leak and probably FDs leak)

Hi @daniilyar-confyrm
I have tested the https://github.com/daniilyar/ModSecurity and use nginx 1.9.12 and its work great on reload, however i have tried the restart of nginx and it seem some leak happened.  the Semaphore Arrays was not release when restart was done.  would you be able to confirm on your build if such issue does not exist. As i might just have screw up the complilation
--prefix=/etc/nginx --sbin-path=/local/opt/nginx/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-mail --with-mail_ssl_module --with-file-aio --with-ipv6 --with-cc-opt='-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --with-http_geoip_module --add-module=../ModSecurity-master/nginx/modsecurity --with-debug
restart_log.txt

@heatburn, thank you, I will take a look in nearest days

@daniilyar-confyrm
I have run a couple of test and it appears that the issue happened when the configtest is run. The init script i am using to restart include a configtest -q before stop and start. Manually running nginx -t yield same issue.

Won't fix in 2.x and fixed in libmodsecurity
Further information available here - https://github.com/SpiderLabs/ModSecurity-nginx


Clicking Learn More on a Component Go to Homepage

https://github.com/magicuidesign/magicui/assets/16276358/9d6c0b50-a7a5-4b24-86fa-f81f4997bbfd

They are merely "demo components", they don't/shouldn't take you anywhere specific by design🖖🏽...

this is a good call out still
it's not intuitive for people at first glance that the components are just demos
we need to make it more clear somehow, or just remove the buttons


Trigger completion after dot

This PR makes ghcide request a completion every time a dot is pressed. So if you do Prelude., you get the entire list of functions defined in that module.
There's some additional logic to check for the case id ., where you want to use (.) as the function composition operator. Simply stated, if before the dot we find nothing, and the completion is triggered by that same press of the dot, we give nothing back in return.

We could be a list more clever, but in cases like id. (without a space before the dot) -- where id would be taken as the "module" -- we just return no completions because there's no module named id. So the logic seems enough to me.


time-series: add timezone selector to timeseries histogram

re: https://github.com/CartoDB/cartodb/issues/12088
this will eventually point to master, when https://github.com/CartoDB/deep-insights.js/pull/555 is merged

cartodb PR: https://github.com/CartoDB/cartodb/pull/12464
deep-insights.js PR: https://github.com/CartoDB/deep-insights.js/pull/562
cartodb.js PR: https://github.com/CartoDB/cartodb.js/pull/1695

[x] add support to local timezone toggle
[x] tests

acceptance
when toggling the local timezone switch the timestamps in the chart should convert to local timezone, by default they should be in UTC, or in case another timezone is set, those timestamps should be in that timezone
the local timezone is not persisted, so whenever the visitor refresh the page the local timezone is reset to disabled

retest this, please


Show emotes emojis after colon

What should be added?
Show emotes and emojis after colon like in FFZ

Why should it be added?
Autocompletion with colon is more consistent than with tab

Looks very similar to #591

Duplicate of #375


Edited profile information does not seem to be stored

Hi,
I have tried multiple times to update my profile information. If I save my changes and don't leave my profile page I can push edit and I see my changes. However, if I navigate somewhere else on the page my changes disappear.

I just confirmed the bug. Sorry for the trouble, @Hofsmo, and thank you for reporting the issue. I'll try to get this fixed later tonight.

@neagle Many thanks for the quick reply. Btw. the bug has not really been bugging me too much I just wanted to let you know. And thanks for creating gokibitz it has been very useful for my go studies.

Thanks for saying so, @Hofsmo! 😄
I'm glad the bug wasn't much of an issue, but I hate for things like that to persist, so your taking the time to report it was a big help. This should be taken care of on live now. Let me know if you have any other issues.


Xnero: Watch direct\s*pest(?!.com)

Xnero requests the watch of the watch_keyword direct\s*pest(?!\.com). See the MS search here and the Stack Exchange search in text, in URLs, and in code.

direct\s*pest(?!\.com) has been seen in 1 true positive, 0 false positives, and 0 NAAs.


麻烦支持下OSS 创建软连接:  ObjectCreated:PutSymlink

https://yq.aliyun.com/articles/680958

Done
https://github.com/awesome-fnf/oss-unzip/commit/3df2a3377ef37a1c96ba14783ba31711ff423793#diff-f82031d035f05e41771af021f974bacb


[VENG DH] Fel-Scarred (hero talent tree)?

I don't see any Fel-Scarred related support in the .simc file, only Aldrachi Reaver (hero talents). I was thinking about adding the Fel-Scarred talents and abilities in myself by reverse-engineering your code, but then I saw on your (2024-09-04) release notes that you had added support for VDH based on wowhead's tanking guide - and the wowhead tanking guide suggests Fel-Scarred.
Before I struggle through it myself, do you have the Fel-Scarred version anywhere? Or support coming for it?
Thanks.

It should already support both hero talents based on the Wowhead guide. There seems to be a bug in Hekili currently that shows Fel-Scarred abilities even when they are not available, but I haven't had time to track that down yet.


Bug detected wile checking TCP Spec file

Checking the tcp.rflx on Branch https://github.com/Componolit/RecordFlux-specifications/blob/issue_27_options/ results in
Parsing tcp.rflx
Processing TCP
------------------------------ RecordFlux Bug ------------------------------
RecordFlux 0.5.0-pre (parser 0.2.1)
/home/isa/Projects/RecordFlux-specifications/venv/bin/rflx check tcp.rflx
Traceback (most recent call last):
File "/home/isa/Projects/RecordFlux-specifications/venv/lib/python3.7/site-packages/rflx/cli.py", line 92, in main
args.func(args)
File "/home/isa/Projects/RecordFlux-specifications/venv/lib/python3.7/site-packages/rflx/cli.py", line 116, in check
parse(args.files)
File "/home/isa/Projects/RecordFlux-specifications/venv/lib/python3.7/site-packages/rflx/cli.py", line 162, in parse
model = parser.create_model()
File "/home/isa/Projects/RecordFlux-specifications/venv/lib/python3.7/site-packages/rflx/specification/parser.py", line 1325, in create_model
self.__evaluate_specification(error, spec_node.spec, spec_node.filename)
File "/home/isa/Projects/RecordFlux-specifications/venv/lib/python3.7/site-packages/rflx/specification/parser.py", line 1368, in __evaluate_specification
filename,
File "/home/isa/Projects/RecordFlux-specifications/venv/lib/python3.7/site-packages/rflx/specification/parser.py", line 786, in create_message
cache,
File "/home/isa/Projects/RecordFlux-specifications/venv/lib/python3.7/site-packages/rflx/specification/parser.py", line 1099, in create_proven_message
skip_verification or cache.is_verified(unproven_message)
File "/home/isa/Projects/RecordFlux-specifications/venv/lib/python3.7/site-packages/rflx/model/message.py", line 1342, in proven
skip_proof=skip_proof,
File "/home/isa/Projects/RecordFlux-specifications/venv/lib/python3.7/site-packages/rflx/model/message.py", line 584, in init
self.verify()
File "/home/isa/Projects/RecordFlux-specifications/venv/lib/python3.7/site-packages/rflx/model/message.py", line 601, in verify
self.__prove_field_positions()
File "/home/isa/Projects/RecordFlux-specifications/venv/lib/python3.7/site-packages/rflx/model/message.py", line 1157, in __prove_field_positions
[*facts, *self.type_constraints(is_multiple_of_element_size)]
File "/home/isa/Projects/RecordFlux-specifications/venv/lib/python3.7/site-packages/rflx/expression.py", line 200, in check
return Proof(self, facts)
File "/home/isa/Projects/RecordFlux-specifications/venv/lib/python3.7/site-packages/rflx/expression.py", line 53, in init
solver.add(self.__expr.z3expr())
File "/home/isa/Projects/RecordFlux-specifications/venv/lib/python3.7/site-packages/rflx/expression.py", line 306, in z3expr
z3expr = self.expr.z3expr()
File "/home/isa/Projects/RecordFlux-specifications/venv/lib/python3.7/site-packages/rflx/expression.py", line 1623, in z3expr
left = self.left.z3expr()
File "/home/isa/Projects/RecordFlux-specifications/venv/lib/python3.7/site-packages/rflx/expression.py", line 974, in z3expr
return left % right
File "/home/isa/Projects/RecordFlux-specifications/venv/lib/python3.7/site-packages/z3/z3.py", line 2411, in mod
_z3_assert(a.is_int(), "Z3 integer expression expected")
File "/home/isa/Projects/RecordFlux-specifications/venv/lib/python3.7/site-packages/z3/z3.py", line 96, in _z3_assert
raise Z3Exception(msg)
z3.z3types.Z3Exception: Z3 integer expression expected

I cannot reproduce the issue (with current RecordFlux main at d3dbe70). How did you install RecordFlux?
However, I get an error message in your specification:
Parsing tcp.rflx
Processing TCP
model: error: contradicting condition in "TCP::Packet"
tcp.rflx:23:13: model: info: on path: "Source"
tcp.rflx:24:13: model: info: on path: "Destination"
tcp.rflx:25:13: model: info: on path: "Seq_Number"
tcp.rflx:26:13: model: info: on path: "Ack_Number"
tcp.rflx:27:13: model: info: on path: "Data_Offset"
tcp.rflx:28:13: model: info: on path: "Reserved"
tcp.rflx:29:13: model: info: on path: "URG"
tcp.rflx:30:13: model: info: on path: "ACK"
tcp.rflx:31:13: model: info: on path: "PSH"
tcp.rflx:32:13: model: info: on path: "RST"
tcp.rflx:33:13: model: info: on path: "SYN"
tcp.rflx:34:13: model: info: on path: "FIN"
tcp.rflx:35:13: model: info: on path: "Window"
tcp.rflx:36:13: model: info: on path: "Checksum"
tcp.rflx:37:13: model: info: on path: "Option"
tcp.rflx:39:13: model: info: on path: "Padding"
tcp.rflx:41:13: model: info: on path: "Data"
tcp.rflx:28:13: model: info: unsatisfied "Reserved'Last = (Data_Offset'Last + 1 + 6) - 1"
tcp.rflx:29:13: model: info: unsatisfied "URG'Last = (Reserved'Last + 1 + 1) - 1"
tcp.rflx:30:13: model: info: unsatisfied "ACK'Last = (URG'Last + 1 + 1) - 1"
tcp.rflx:31:13: model: info: unsatisfied "PSH'Last = (ACK'Last + 1 + 1) - 1"
tcp.rflx:32:13: model: info: unsatisfied "RST'Last = (PSH'Last + 1 + 1) - 1"
tcp.rflx:7:10: model: info: unsatisfied "Data_Offset < 2**4"
tcp.rflx:33:13: model: info: unsatisfied "SYN'Last = (RST'Last + 1 + 1) - 1"
tcp.rflx:34:13: model: info: unsatisfied "FIN'Last = (SYN'Last + 1 + 1) - 1"
tcp.rflx:35:13: model: info: unsatisfied "Window'Last = (FIN'Last + 1 + 16) - 1"
tcp.rflx:36:13: model: info: unsatisfied "Checksum'Last = (Window'Last + 1 + 16) - 1"
tcp.rflx:37:13: model: info: unsatisfied "Option'Last = (Checksum'Last + 1 + 2**5) - 1"
tcp.rflx:39:13: model: info: unsatisfied "Padding'Last = (Option'Last + 1 + (2**32 - Data_Offset * 4)) - 1"
tcp.rflx:41:13: model: info: unsatisfied "Data'Last = (Padding'Last + 1 + (Message'Size - Data_Offset * 4)) - 1"
tcp.rflx:21:10: model: info: unsatisfied "Message'Last >= Data'Last"
tcp.rflx:23:13: model: info: unsatisfied "Source'Last = (Message'First + 16) - 1"
tcp.rflx:21:10: model: info: unsatisfied "Message'Size = Message'Last - Message'First + 1"
tcp.rflx:24:13: model: info: unsatisfied "Destination'Last = (Source'Last + 1 + 16) - 1"
tcp.rflx:25:13: model: info: unsatisfied "Seq_Number'Last = (Destination'Last + 1 + 32) - 1"
tcp.rflx:26:13: model: info: unsatisfied "Ack_Number'Last = (Seq_Number'Last + 1 + 32) - 1"
tcp.rflx:27:13: model: info: unsatisfied "Data_Offset'Last = (Ack_Number'Last + 1 + 4) - 1"
tcp.rflx:39:13: model: error: size of opaque field "Padding" not multiple of 8 bit (Source -> Destination -> Seq_Number -> Ack_Number -> Data_Offset -> Reserved -> URG -> ACK -> PSH -> RST -> SYN -> FIN -> Window -> Checksum -> Option -> Padding)

I get that error now too, but after changing some Sizes regarding the Option field. If I change it back to the version uploaded to the branch, the bug still exists.
I installed RecordFlux inside the venv.

I get that error now too, but after changing some Sizes regarding the Option field. If I change it back to the version uploaded to the branch, the bug still exists.
I installed RecordFlux inside the venv.

The issue seems to come from the exponentiation in the Size expression. You can work around it by using the literal number until we analyzed and fixed the problem. The other issue (opaque field is not multiple of 8 bit) is independent and must be fixed in your specification.

The exception is raised for a Z3 expression a % b, if a is not an integer. In the concrete case a is 2**5. We could prevent this error by simplifying the expression 2**5 before converting it to Z3.

The exception is raised for a Z3 expression a % b, if a is not an integer. In the concrete case a is 2**5. We could prevent this error by simplifying the expression 2**5 before converting it to Z3.

Why does the following code not trigger the exception then?
$ python3
Python 3.7.3 (default, Jan 22 2021, 20:04:44)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import z3
>>> z3.IntVal(2)**z3.IntVal(3)%z3.IntVal(8)
2**3%8

I have the suspicion that we have a different issue which would just be covered by the proposed fix.

In my case an exception is raised for your code:
% python
Python 3.9.4 (default, Apr 20 2021, 15:51:38)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import z3
>>> z3.IntVal(2)**z3.IntVal(3)%z3.IntVal(8)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "venv/lib/python3.9/site-packages/z3/z3.py", line 2411, in __mod__
    _z3_assert(a.is_int(), "Z3 integer expression expected")
  File "venv/lib/python3.9/site-packages/z3/z3.py", line 96, in _z3_assert
    raise Z3Exception(msg)
z3.z3types.Z3Exception: Z3 integer expression expected

Maybe it depends on the Z3 version?
% z3 --version
Z3 version 4.8.10 - 64 bit

$ z3 --version
Z3 version 4.8.6 - 64 bit

Interesting. When upgrading I get the exception, too. I still don't understand why this happens now (the assertion is not new in the Z3 code base).


Replace id in url with a slug of some kind

Currently the id is shown in the url for developers, notifications and conversations (maybe more, I haven't checked all).
I think it would improve things to see a slug of some sort instead of the id, both because the id doesn't have any meaning really, but more importantly I don't think it is a good strategy to show how many conversations and developers there are in the system already.
I would be willing to work on this feature if needed.

I don't think it is a good strategy to show how many conversations and developers there are in the system already.

Honest question: why not? I already mention on /developers how many developers are on the site.

@arni1981, I'm going to close this since it's been almost 3 weeks since I've heard back. Feel free to reopen it if you'd like to continue the discussion!


Remove coffeescript from dependencies

@davegw Thanks for the PR and sorry for the absurd delay!

All good 👍


[ERROR]: Typo in DiskANN config

Is there an existing issue for this?

[X] I have searched the existing issues.

Issue
On page https://milvus.io/docs/disk_index.md, PQCodeBudgetGBRatio is typed as PQCodeBugetGBRatio twice.
Suggestion
No response
Anything else?
No response

On the same page it mentions "Use only Euclidean Distance (L2) or Inner Product (IP) to measure the distance between vectors.", but DiskANN supports Cosine as well.


Support custom parameterized SQL APIs

https://www.notion.so/rilldata/Support-custom-parameterized-SQL-APIs-256cf2afe851443da46ed861836aa4c0

Closed by various PRs merged over the past week


Older macOS versions?

Area for Triage:
Apple
Question, Bug, or Feature?:
Question/Feature

I'm not sure if this really is the right place to ask, but it seems to me like the most fitting one: Are there any plans to add environments for older macOS versions? While trying to move release building for my qutebrowser project to GitHub Actions, I noticed that only macOS 10.15 is available. From my experience, a binary built on macOS 10.15 will not work correctly on older versions (but the reverse works fine), so I'm currently building on macOS 10.13 High Sierra (which is the oldest version I want to support). Thus, this currently keeps me from automating building of releases, unfortunately.

Hi @The-Compiler !
For Github Actions, we're not planning to add macOS versions older than Catalina, but it may change in the future. However, we're support macOS 10.14 for Azure DevOps.

Hello, @The-Compiler.
According to https://github.com/actions/virtual-environments/issues/461, we have no plans to add previous versions in the nearest time.

For anyone also looking into this to build Python-packages or use PyInstaller to build an .app: Python actually offers support for this, by setting the MACOSX_DEPLOYMENT_TARGET environment variable.
However, it is not possible using the Python versions installed on the GA workers, because they are compiled on macOS 10.15 or newer.
Simply getting the official Python installer make the magic work! 🥳
Just make sure to use python3 and pip3 in your commands.
jobs:
  build_macos:
    name: Build macOS binary
    runs-on: macos-latest
    env:
      # We need the official Python, because the GA ones only support newer macOS versions
      # The deployment target is picked up by the Python build tools automatically
      PYTHON_VERSION: 3.9.1
      MACOSX_DEPLOYMENT_TARGET: 10.9
    steps:
    - uses: actions/checkout@v2
    - name: Cache Python download
      id: cache-python-download
      uses: actions/cache@v2
      with:
        path: python.pkg
        key: ${{ env.PYTHON_VERSION }}
    - name: Get Python
      if: steps.cache-python-download.outputs.cache-hit != 'true'
      run: curl https://www.python.org/ftp/python/${PYTHON_VERSION}/python-${PYTHON_VERSION}-macosx10.9.pkg -o "python.pkg"
    - name: Install Python
      run: sudo installer -pkg python.pkg -target /
    - name: Install Python dependencies
      run: |
        python3 --version
        pip3 install --upgrade -r requirements.txt

For anyone also looking into this to build Python-packages or use PyInstaller to build an .app: Python actually offers support for this, by setting the MACOSX_DEPLOYMENT_TARGET environment variable.
However, it is not possible using the Python versions installed on the GA workers, because they are compiled on macOS 10.15 or newer.
Simply getting the official Python installer make the magic work! 🥳
Just make sure to use python3 and pip3 in your commands.
jobs:
  build_macos:
    name: Build macOS binary
    runs-on: macos-latest
    env:
      # We need the official Python, because the GA ones only support newer macOS versions
      # The deployment target is picked up by the Python build tools automatically
      PYTHON_VERSION: 3.9.1
      MACOSX_DEPLOYMENT_TARGET: 10.9
    steps:
    - uses: actions/checkout@v2
    - name: Cache Python download
      id: cache-python-download
      uses: actions/cache@v2
      with:
        path: python.pkg
        key: ${{ env.PYTHON_VERSION }}
    - name: Get Python
      if: steps.cache-python-download.outputs.cache-hit != 'true'
      run: curl https://www.python.org/ftp/python/${PYTHON_VERSION}/python-${PYTHON_VERSION}-macosx10.9.pkg -o "python.pkg"
    - name: Install Python
      run: sudo installer -pkg python.pkg -target /
    - name: Install Python dependencies
      run: |
        python3 --version
        pip3 install --upgrade -r requirements.txt

@Safihre could you add http://unlicense.org/ to your comment so that anyone can use the snippet in their project? I think otherwise it is implicitly published as MIT: https://opensource.stackexchange.com/a/7900

@StefanLobbenmeier Done. Maybe bit outdated.
I included a link to our current workflow, which has some nice other tricks of how to compile PyInstaller, Cffi and Cryptography for macOS 10.9 and above.
https://github.com/sabnzbd/sabnzbd/blob/0347907044ee2a8b060c9a53ca362c8210f6e83b/.github/workflows/build_release.yml#L80

Ahh so you managed to get both a universal binary and support for older macOS versions?

@StefanLobbenmeier Yes indeed, we have a release that's fully universal2 version that also supports 10.9+. In package.py there's a [check] (https://github.com/sabnzbd/sabnzbd/blob/0347907044ee2a8b060c9a53ca362c8210f6e83b/builder/package.py#L345) to see if each binary (executable but also the Python extensions) is universal2. Because I learned the hard way that often only when a specific line of Python code is executed, it will crash on M1 due to missing ARM support in some extension.
Anyone is indeed free to see how we do it and modify it for their projects.


Run Hasura Console from GitPod

Need to start hasura console with the ${gp-url} variable that tells the Hasura URL as given by GitPod
Hasura tries to connect to localhost:xx93 for websocket. Either there is a setting for this, or it's a bug to tell hasura or to try to fix for them

It doesn't really work as the console tries to connect to the 9693


Euler Subgraph

Description
This PR adds a new subgraph to the collection: Euler Finance.
Status
Subgraph is currently syncing over at https://subgraphs.messari.io/subgraph?endpoint=https://api.thegraph.com/subgraphs/id/QmepXEh4ptj4TXezwc6o4yrAtQ56mDNWZSsGKSTzZo9Ttj&tab=protocol

Great job on this one! Would you be able to put together a smart contract interaction chart similar to the ones here?
https://github.com/messari/subgraphs/tree/master/docs/images/protocols
The .drawio files can be loaded into https://www.diagrams.net/


generate type definition file for static environment variables for functions

Problem
Customers may not be aware of environment variables available for Lambda runtimes when writing function code.
Issue number, if available:
Changes
Use node.addValidation as a mechanism to generate a type definition file for each function after synthesis

The file is generated as /.amplify/function-env/<function-name>.ts
Add paths to tsconfig.json generated by create amplify so customers can import types with import { env } from '@env/<function-name>';

Type definition file contents:
/** Lambda runtime environment variables, see https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-runtime */
export const env = process.env as {
/** The handler location configured on the function. */
_HANDLER: string;

/** The X-Ray tracing header. This environment variable changes with each invocation. */
_X_AMZN_TRACE_ID: string;

/** The default AWS Region where the Lambda function is executed. */
AWS_DEFAULT_REGION: string;

/** The AWS Region where the Lambda function is executed. If defined, this value overrides the AWS_DEFAULT_REGION. */
AWS_REGION: string;

/** The runtime identifier, prefixed by AWS_Lambda_ (for example, AWS_Lambda_java8). */
AWS_EXECUTION_ENV: string;

/** The name of the function. */
AWS_LAMBDA_FUNCTION_NAME: string;

/** The amount of memory available to the function in MB. */
AWS_LAMBDA_FUNCTION_MEMORY_SIZE: string;

/** The version of the function being executed. */
AWS_LAMBDA_FUNCTION_VERSION: string;

/** The initialization type of the function, which is on-demand, provisioned-concurrency, or snap-start. */
AWS_LAMBDA_INITIALIZATION_TYPE: string;

/** The name of the Amazon CloudWatch Logs group for the function. */
AWS_LAMBDA_LOG_GROUP_NAME: string;

/** The name of the Amazon CloudWatch Logs stream for the function. */
AWS_LAMBDA_LOG_STREAM_NAME: string;

/** AWS access key. */
AWS_ACCESS_KEY: string;

/** AWS access key ID. */
AWS_ACCESS_KEY_ID: string;

/** AWS secret access key. */
AWS_SECRET_ACCESS_KEY: string;

/** AWS Session token. */
AWS_SESSION_TOKEN: string;

/** The host and port of the runtime API. */
AWS_LAMBDA_RUNTIME_API: string;

/** The path to your Lambda function code. */
LAMBDA_TASK_ROOT: string;

/** The path to runtime libraries. */
LAMBDA_RUNTIME_DIR: string;

/** The locale of the runtime. */
LANG: string;

/** The execution path. */
PATH: string;

/** The system library path. */
LD_LIBRARY_PATH: string;

/** The Node.js library path. */
NODE_PATH: string;

/** For X-Ray tracing, Lambda sets this to LOG_ERROR to avoid throwing runtime errors from the X-Ray SDK. */
AWS_XRAY_CONTEXT_MISSING: string;

/** For X-Ray tracing, the IP address and port of the X-Ray daemon. */
AWS_XRAY_DAEMON_ADDRESS: string;

/** The environment's time zone. */
TZ: string;
};

DX:

Corresponding docs PR, if applicable:
Validation
Local project with type definition file generated:

Confirmed DX from types
Lambda executes successfully

Checklist

[ ] If this PR includes a functional change to the runtime behavior of the code, I have added or updated automated test coverage for this change.
[ ] If this PR requires a change to the Project Architecture README, I have included that update in this PR.
[ ] If this PR requires a docs update, I have linked to that docs PR above.
[ ] If this PR modifies E2E tests, makes changes to resource provisioning, or makes SDK calls, I have run the PR checks with the run-e2e label set.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

import type { LambdaEnv, StorageHandler } from "@aws-amplify/backend"
import type { myFunction } from "./resource"

declare global {
  namespace NodeJs {
    interface ProcessEnv extends LambdaEnv<typeof myFunction["environment"]> {}
  }
}

export const handler: StorageHandler = async () => {}

Josef has some thoughts on this, lets talk about this tomorrow at standup @rtpascual (do not merge before that)

@edwardfoyle Yes this will be in a follow up task with the work for ensuring resource access environment variables are included in the typedef files.

oh duh, that's not implemented yet :)


[FT] Add tool usage benchmarks

Issue encountered
Lighteval does not allow evaluating models on tool usage.
Solution/Feature
Add benchmarks for tool usage

Add benchmarks for tool usage
Are there any? What do you suggest?


Calling ApplicationView.GetForCurrentView throws an error

Describe the bug

Calling ApplicationView.GetForCurrentView() in App.OnLaunched() throws this error:
System.Runtime.InteropServices.COMException: 'Element not found. (0x80070490)'

Steps to reproduce the bug

Steps to reproduce the behavior:

Create a Blank, Packaged WinUI 3 C# app
Add the following code to beginning of the App.OnLaunched method in App.xaml.cs

ApplicationView.PreferredLaunchViewSize = new Size(500, 800);
ApplicationView.PreferredLaunchWindowingMode = ApplicationViewWindowingMode.PreferredLaunchViewSize;
ApplicationView.GetForCurrentView().SetPreferredMinSize(new Size(500, 800));

Expected behavior

App launches without an uncaught exception.
Version Info

NuGet package version: 3.0.0-preview1.200515.3

Windows 10 version
Saw the problem?

Insider Build (xxxxx)

November 2019 Update (18363)
Yes

May 2019 Update (18362)

October 2018 Update (17763)

April 2018 Update (17134)

Fall Creators Update (16299)

Creators Update (15063)

Device form factor
Saw the problem?

Desktop
Yes

Mobile

Xbox

Surface Hub

IoT

Additional context

This issue does not occur when using the non-WinUI C# Desktop App project template.

We're also seeing this in react-native scenarios.  See:  https://github.com/microsoft/react-native-windows/issues/5232

This is failing because there is no CoreWindow for the calling thread yet. I think it's illegal to call ApplicationView functionality in an app's constructor since the app seems to get constructed before the CoreWindow.

filed https://github.com/MicrosoftDocs/winrt-api/issues/1698

Acknowledged. The same happing here. I wish to repaint the title bar to harmonize with the theme but it throws the exception;
ApplicationViewTitleBar titleBar = ApplicationView.GetForCurrentView().TitleBar;

            if (IsDarkTheme())
            {
                titleBar.ButtonForegroundColor = Colors.White;
            }
            else
            {
                titleBar.ButtonForegroundColor = Colors.Black;
            }

More than a year and a half, is there any news about this issue?

This is by design, all corewindow APIs are not supported in WinAppSDK. See https://docs.microsoft.com/windows/apps/desktop/modernize/desktop-to-uwp-supported-api#apis-that-have-dependencies-on-uwp-only-ui-features

How can be modify the appearance on the title bar on WinUI 3 Desktop then?

@Slion  it looks like you would have to extend it yourself: https://docs.microsoft.com/en-us/windows/winui/api/microsoft.ui.xaml.window.extendscontentintotitlebar?view=winui-3.0

Thanks for the tip @NPadrutt. I had seen that API since but only now got around trying it.
Here it what it should look like in C#:
    public sealed partial class MainWindow : Microsoft.UI.Xaml.Window
    {
        public MainWindow()
        {
            this.InitializeComponent();
            Title = "My App Title";
            ExtendsContentIntoTitleBar = true;
            SetTitleBar(iTitleBar);
        }

I've added the following title bar as the first row in my XAML grid. Row height was set to auto.
It matches exactly the height off other standard title bars:
        <StackPanel x:Name="iTitleBar" Grid.Row="0" Orientation="Horizontal" Padding="8,5,5,6" >
            <Image Source="icon.ico" Width="16" Height="16" />
            <TextBlock Text="My App Title" Padding="10,0,0,0"/>
        </StackPanel>

However there is surely a more standard way to do that. What's notably annoying is that the title text color is not dimmed together with the window control buttons when the window loses focus.


Updating docstrings and adding groupby examples

Hello @kozlov-alexey! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file sdc/datatypes/hpat_pandas_dataframe_functions.py:

Line 1896:121: E501 line too long (159 > 120 characters)

In the file sdc/datatypes/hpat_pandas_series_functions.py:

Line 5624:121: E501 line too long (159 > 120 characters)

So, what are we doing with this one?


Simple user defined token

To support Lua bytecode: it can be fast without parsing Lua source code.


No unsafe slicing

 Issue by cgaebel
Tuesday Dec 16, 2014 at 02:16 GMT
For earlier discussion, see https://github.com/rust-lang/rust/issues/19901
This issue was labelled with: A-collections, A-libs, I-wishlist, P-low in the Rust repository

There's currently no version of slice, slice_from, slice_to, slice_mut, slice_from_mut, slice_to_mut, split_at that doesn't bounds check.

Triage: Fixed by #1679


Introduce the abacus collection replica daemon

Fix https://github.com/dmwm/CMSRucio/issues/471

There was some discussion around this, I think, but do we want to merge this and turn on the daemon?


I don't understand the exercise 5 of chapter 2

This is the code:
param_grid = [{
    'preparation__num__imputer__strategy': ['mean', 'median', 'most_frequent'],
    'feature_selection__k': list(range(1, len(feature_importances) + 1))
}]

grid_search_prep = GridSearchCV(prepare_select_and_predict_pipeline, param_grid, cv=5,
                                scoring='neg_mean_squared_error', verbose=2)
grid_search_prep.fit(housing, housing_labels)

prepare_select_and_predict_pipeline is the following pipeline:
preparation_and_feature_selection_pipeline= Pipeline([
    ('preparation', full_pipeline),
    ('feature_selection', TopFeatureSelector(feature_importances, k))
])

What I don't understand is how does GridSearchCV know that preparation__num__imputers__strategy  refers to a hyperparameter of the SimpleImputer transformer  and feature_selection__k  refers to the hyperparameter k of the TopFeatureSelector transformer.
I would appreciate a response, this is something that I am not able to understand despite trying.

Hi @arnau6610 ,
Great question! The Pipeline class uses a naming convention whereby double underscores __ are used a bit like / separators in file paths. So you can think of preparation__num__imputer__strategy a bit like a file path preparation/num/imputer/strategy. Specifically, it refers to the strategy hyperparameter of the estimator named imputer within the pipeline named num within the pipeline named preparation. Thanks to this naming convention, you can refer to arbitrarily nested hyperparameters in a pipeline object.
Similarly, feature_selection__k is a bit like the path feature_selection/k: it's the hyperparameter k of the estimator named feature_selection.
Hope this helps.

This should have been included at least in a footnote somewhere...

@jamesonrader , oh great catch, you're right, I really thought I wrote it somewhere in the book, but it seems that I forgot, sorry about that. I replaced the "Don't forget..." tip at the end of the Grid Search section with this:

Remember that you can treat some of the data preparation steps as hyperparameters. For example, you could build an end-to-end pipeline (including all the steps from preprocessing to predictions), and use grid search to tune several hyperparameters simultaneously, including not only model hyperparameters, but also preprocessing hyperparameters. The grid search could automatically find out whether or not to add a feature you were not sure about (e.g., using the add_bedrooms_per_room hyperparameter of your CombinedAttributesAdder transformer). It may similarly be used to automatically find the best way to handle outliers, missing features, feature selection, and more.
When running grid search on a pipeline (or any other estimator which contains other estimators, such as a ColumnTransformer), each hyperparameter's name must be prefixed by the estimator's name in the pipeline, followed by two underscores. For example, "imputer__strategy" refers to the strategy hyperparameter of the estimator named "imputer". This also works recursively (e.g., a__b__c refers to the hyperparameter c of the estimator named "b" inside the estimator named "a").

Thanks for helping me improve the book! 👍


feat: configurable metrics path

Pull Request Test Coverage Report for Build<PHONE_NUMBER>7
Details

11 of 11 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+1.4%) to 72.34%

Totals

Change from base Build<PHONE_NUMBER>3:
1.4%

Covered Lines:
102

Relevant Lines:
141

💛  - Coveralls


Dwarf EH: complete the table generation

The generated tables appear to be correct now.

Next is doing the druntime side of things.

Next is doing the druntime side of things.

Need help with bindings, etc?

I appreciate the offer, I need __dmd_personality_v0 and _d_throw. I set up the tables to be functionally the same as gdc generates, which should make things easier to develop and debug.

Auto-merge toggled on

noice


Feature for batch create order

I saw in the readme file, that the support for the batch create order is not there.
I would like to add that support for you.
Let me check the code and look at the feasibility.

I welcome the change


Add a "New Stencila Session" link on the Jupyter landing page UI

Analogous to RStudio, we would like a UI item to start a new substance session, see https://raw.githubusercontent.com/rocker-org/binder/master/img/rstudio-session.jpg

Closed by https://github.com/minrk/jupyter-dar/commit/8e8f3676cd6b4616c4b5cd1bca7a40c6fe399613


1.0.5.hotfix1

We should bump this a 1.0.5.hotfix1 to make it pass quay.io vulnerability scan

Approved


[Bug] ModuleNotFoundError: No module named 'cdd'

I installed the morl-baseline:
pip install swig
pip install stable-baselines3
pip install gymnasium
pip install gymnasium[box2d]
pip install mo-gymnasium
pip install morl_baselines

but today I try to implement this example here and got the following error:
ModuleNotFoundError  Traceback (most recent call last)
[<ipython-input-4-a1412a7cdb9c>](https://localhost:8080/#) in <cell line: 1>()
----> 1 from morl_baselines.multi_policy.gpi_pd.gpi_pd import GPIPD

1 frames
[/usr/local/lib/python3.10/dist-packages/morl_baselines/multi_policy/linear_support/linear_support.py](https://localhost:8080/#) in <module>
      4 from typing import List, Optional
      5
----> 6 import cdd
      7 import cvxpy as cp
      8 import numpy as np

ModuleNotFoundError: No module named 'cdd'

Is this known? Shouldn't be automatically installed by installing morl_baselines?

Fixed after installing python-cdd
!pip install python-cdd


No Dot Mod

Your Discord Name
hearth1an#7222
Mod uniqueName
hearth1an.NoDotMod
Mod name
No Dot Mod
GitHub repository URL
https://github.com/hearth1an/NoDotMod
Tags
tweaks
Author display name
hearth1an
Parent uniqueName
hearth1an.NoDotMod
Utility mod
Is utility
Alpha Mod
None

Why does it use New Horizons?

Idk maybe it was added as accident


fix Fix Jemalloc Cache Memory Tracker

Proposed changes
Metadata should not be counted as cache.

run buildall

run buildall

run buildall


More helpful output from bare invocation of hermes

Currently I encounter this:
$ hermes
unknown command: nil

and:
$ hermes --help
unknown command: "--help"

May be something analogous to the following would be friendlier and better from a discoverability perspective:
$ hermes build --help
usage: build [option] ...

Build a hermes package.

 Optional:
     --build-host VALUE                      Transparently build on a remote host.
 -e, --expression VALUE                      Expression to build, defaults to the hpkg file name.
 -h, --help                                  Show this help message.
 -m, --module VALUE                          Path to the module in which to run 'expression'.
 -n, --no-out-link                           Do not create an output link.
 -o, --output VALUE=./result                 Path to where package output link will be created.
 -j, --parallelism VALUE=1                   Pass a parallelism hint to package builders.
     --ttl VALUE                             Only allow garbage collection of the package after ttl seconds.

Yeah definitely, The reason this didn't get in yet is because I want the man pages to match the command outputs exactly. I'm not sure the best way to do it.

This should be resolved now.


PodRoutingStorage is hardcoded to use a MemoryMapStorage

https://github.com/solid/community-server/blob/e1ed9c823e2943c2d71e9220f9dd086a0752bb9a/config/identity/pod/dynamic.json#L51-L55
This should instead be configured like the storages in https://github.com/solid/community-server/blob/e1ed9c823e2943c2d71e9220f9dd086a0752bb9a/config/storage/key-value/memory.json

It has to be of course since the values are objects, nvm


Question: Would like to see an example for Kotlin-DSL for in-task download

Example usage in Kotlin-DSL for the following Gradle example
task myTask << {
    //do something ...
    //... then download a file
    download {
        src 'http://www.example.com/index.html'
        dest buildDir
        overwrite false
    }
    //... do something else
}

Ok figured out something that works
tasks.register("myCoolTask"){
    // do task stuff up here
    download.configure(delegateClosureOf<DownloadAction> {
            src("http://this.is.my.download.url")
            dest("path/to/dest")
            onlyIfModified(true)
    })
}


Update build-constraints.yaml

Added new author and (first) project.
Thanks a lot for including this project to stackage LTS.

@snoyberg Thanks for pulling and catching the unintentional inclusion - (didn't see there was a commit between my fork and pull request.)


Create Gitlab,Flask,Heroku.md

A guide on how to seamlessly integrate GitLab CI/CD, Flask, and Heroku
NOTE:

Please fill out the template below

Did you read the instructions in the README?

Y

Have you read the instructions in CONTRIBUTING?

Y

Have you written this article by yourself? Have you taken inspiration from anywhere and then written it in your words?

I figured most of this out on my own, and drew inspiration from this article as well

@ksmarty nice! Wanted an article like this. Merging it. :tada:


upgrade to sbt 1.3

y'all would be justified in deciding this isn't mergeable until 1.3 final is out
but in the meantime I'd like to see if it passes on your CI, that would be useful data for me in the context of some community build work I'm doing (trying to unfreeze tsec there and simplify our config tweaks)
/cc @eed3si9n

green on 2.12, test failures on 2.11 and 2.13. I'm unfamiliar with the code, so the nature of the errors is unclear to me.
that concludes the experiment...


Fix assigning new created customer to the order

Fix assigning new created customer to the order
test FP: https://github.com/Vendic/koene/pull/192
Problem description:
current module is creating new customer account on sales_model_service_quote_submit_before event.
Also in same observer it is setting new customer id to quote, so that it be saved to order also.
But customer id setting to order happens before sales_model_service_quote_submit_before event dispatched. Because of that, order was not getting customer id.
Proposition:
I also noticed that it is setting "Not logged in" customer group in quote (with comment to make configuration for this)
I think it would be nice just to set default customer group in that place (from Stores -> Configuration -> Customers -> Customer Configuration -> Create New Account Options -> Default Group)
@Tjitse-E what do you think?

@kis28viktor  good idea!


move JS hashing to be specifically in the client app and imported int…

…o the prod app via a build step
References #1069
Type
🚑 Health
An evolution on the good work from @gestchild around file hashing.
Decoupling the server and client apps (the coupling being at the JSON files created by the client compile step).
Also introducing the idea of injecting prod config (pronfig?)
This has a few benefits:

being able to use things like livereload
quicker compile times in dev
injecting config will allow us to deploy the assets anywhere (S3?)

@wellcometrust/experience-dev - thoughts happily welcome, as I think this is just a step in an asset plan.
@alexwlchan - any advice on best practice for python I/O would be super useful too (not expected though).
## TODO

[ ] Move over critical-css.njk compilation (hmmm, not sure how)
[ ] ?Potentially move other prod config to this new stategy

@wellcometrust/experience-dev It'd be good to get a review on this.
We can then think about deploying to S3 (or similar) thus moving the static serving of assets out of Koa (which has so much unnecessary I/O in Node).


Broken links in README.rst

Looks like the link to the tutorials in the main readme:
https://github.com/GenericMappingTools/gmt-python/blob/master/README.rst
is pointing to a location that's not redirecting:
https://www.gmtpython.xyz/tutorials
though I can navigate to them here:
https://www.gmtpython.xyz/latest/tutorials/index.html

@wckoeppen thanks for spotting that! It's actually all the links in the README.
I recently (#187) changed the documentation layout to prepare for future releases. I should have done this from the start.
Would you like to try editing the README yourself?

Whoops, yes, I could have done that. Though now it looks like you already have a branch with the corrected links.

That was a "whoops" on my part. I started and then thought that you might want to do it. I haven't finished it yet if you want to take a shot. Need to check if these links appear anywhere else.

No pressure if you don't feel like it, though. I'm just happy to help people get involved however they can.


did you add blend mode too?

i wanted a blend mode too and when background is transparent then also blend should work,
just like we have https://github.com/whatisjery/react-fluid-distortion
but there is a problem in this library that there is no blend mode when background =false.

Blend mode is not planned as of now, but if you want to implement it feel free to open a PR


remove JCenter from all build configurations

JCenter is shutting down.
They will stop accepting new uploads this month (the end of March 2021) and will stop serving downloads entirely in 2022.
So by 2022, we'll want to have removed all the jcenter() entries from the repository configurations in our gradle files. (Both build.gradle.* and everything in build-logic.)
The reason we didn't just do that immediately is because we don't know if all our dependencies are available on other servers yet!
The process for fixing this is something like:

remove jcenter from our configurations

replace it with mavenCentral() if that config doesn't have it already

attempt to build. Note which dependencies fail.
for each one, investigate

has that project moved to another server that we need to add to our configuration?
have they announced a plan to move, but aren't finished yet?
is the project without a maintainer?

has it been picked up by a new organization?
should we mirror its old releases to our own repository?
should we maintain a fork of the project?
should we drop the dependency and use something else?

Related reading:

general documentation on gradle repository configuration: https://docs.gradle.org/current/userguide/declaring_repositories.html
gradle's instructions on how to migrate your dependencies: https://blog.gradle.org/jcenter-shutdown

oh hey, there's some jcenter stuff in groovy too: https://github.com/MovingBlocks/Terasology/blob/1426b6b47363d5b3a080eaf51801c12cb72cd9fb/config/groovy/common.groovy#L6-L7

 Replace jCenter in all repositories


The Kernel crashed while executing training model

Dear developers,
This is really good package and useful tools for scRNA-seq analysis. But I found it's kinda hard to train the model on M1 Mac.
Every time I execute model.train(), returned like this;
The Kernel crashed while executing code in the the current cell or a previous cell. Please review the code in the cell(s) to identify a possible cause of the failure. Click here for more info. View Jupyter log for further details.
Canceled future for execute_request message before replies were done
Can you help me with this? I do appreciate your valuable time.
Thanks

Can you provide any traceback and versions of software you are using? Are you using use_gpu=True?

Same issue. I guess it is due to the memory limit set in jupyterlab. If I run the code in python envs directly, the kernel didn't crash but proceed very slowly.  GPU seems not be used here.

Closing as this issue is now stale. If there are future problems please reach out on our discourse forum.


"Unable to find a valid app" error when trying to package webpack build

After building app for MacOS and running app I get the following error:
Uncaught Exception:
Error: Unable to find a valid app
    at Object.<anonymous> (/Users/lukejagodzinski/workspace/node/rename/release-builds/Rename-darwin-x64/Rename.app/Contents/Resources/electron.asar/browser/init.js:121:9)
    at Object.<anonymous> (/Users/lukejagodzinski/workspace/node/rename/release-builds/Rename-darwin-x64/Rename.app/Contents/Resources/electron.asar/browser/init.js:173:3)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Function.Module.runMain (module.js:605:10)
    at startup (bootstrap_node.js:167:16)
    at bootstrap_node.js:589:3

What I'm doing is first building app with webpack and trying to package such an app but without success.

What am I doing wrong?

I solved my problem. In the dist directory there need to be package.json file too.

Hello, I have the same problem with you, but there is package. Json in my dist directory, error is still reported。

@lukejagodzinski  Hello, I have the same problem with you, but there is package. Json in my dist directory, error is still reported.

I had the same issue too and I had a package.json present. Running:
electron-packager ./dist --out=./dist/ would result in no app/ in the package (i.e. my app was silently not being packaged). If I instead first changed into ./dist, all is well again:
cd dist
electron-packager .


Client: slate generator refactory

[ ] review code and update it to open Pype.club
[ ] implement to Settings
[ ] support thumbnail after review and burning
[ ] support slate per representation
[ ] support PSD template

linked to https://github.com/pypeclub/client/issues/119 slate part

related pr https://github.com/pypeclub/OpenPype/pull/26


Discussion: curio vs trio?

It has come to my attention that our currently hand-rolled concurrency framework for handling services is subpar, especially around working w/ cancellations. @pipermerriam mentioned one possible improvement here which would be the adoption of the curio (https://github.com/dabeaz/curio) framework for async IO.  I was looking at the framework and ran across a (slightly?) newer project called trio (https://github.com/python-trio/trio).
I'm wondering if anyone has any thoughts or comments on this approach in general (moving to what seems like a very solid concurrency library) or if anyone has heard anything about trio that may help us decide which is worth exploring further. At a cursory glance, it seems trio aims to patch up some difficulties found in the usage of curio (e.g. avoiding the problem where the async keyword spills everywhere, having clearer semantics around what is a cancellable or scheduleable point and what isn't), however given how little experience we all collectively have w/ async APIs I don't know if we have good standards for what works better. (and hence, I'm curious to hear your experiences).

I'd like to toss out the idea of building a small plugin with each and seeing what happens.  This gives us some objective experience to base the decision from.

A long time ago: https://github.com/ethereum/trinity/issues/31
/cc @jannikluhn

I'm going with curio sans any objections (but I'm very open to them if anyone wishes to raise them).  I'll plan on starting with the isolated plugins and expanding outwards from there, likely tackling the networking process last.

cc @carver @lithp @ralexstokes @cburgdorf  (and @hwwhww and folk.  We'll leave you guys alone while we figure it out and then probably infect your code once we have things mostly figured out)

Guess we settled with trio. Closing.


Deleting a user account

Q
A

Bug report?
[ ]

Feature request?
[ ]

Support request?
[X ]

Hi, could you please point out how to delete a user. The docs only speak about user roles and activation, de-activation but I'd like to completely delete a user. Is this possible and how. Thanks in advance!

Hello,
In Cocorico admin most of entities deletion is not enabled.
If you want to allow user deletion from admin you just have to comment this line : Cocorico/UserBundle/Admin/UserAdmin.php:459:  $collection->remove('delete');
You will then have a delete button in User form.

Thanks that solves my problem!


[question]: Docker container

Hi Team!
Does anyone had a chance to run medooze inside the docker container?
What could be possible issues/drawbacks?
Thanks a lot.

I have no personal experience with docker, so it would be worthy know if anyone has tried it and what is their feedback.
Regarding the issues, from what I have read, setting up NAT for a whole block of udp ports may be difficult. And performance may be lowered as well (depending on your workload that may be fine).

It works fine if you run it with host networking. I'm running medooze on Kubernetes.

would it be possible to get a simple howto on how to deploy a server using the media server with Kubernetes/Docker?

Sure. I use the standard nodejs dockerfile:
FROM node:11

WORKDIR /usr/src/app

COPY package*.json ./
RUN npm install

COPY . .

CMD ["npm", "start"]

And this kubernetes config:
apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: medooze
spec:
  selector:
    matchLabels:
      name: medooze
  template:
    metadata:
      labels:
        name: medooze
    spec:
      hostNetwork: true
      containers:
        - name: medooze
          image: <your-medooze-image>

The trick is to bypass container networking by using hostNetwork: true. The standard docker networking uses an iptables rule per port forwarded. This isn't practical with large port ranges. Enabling host networking lets docker bind ports on the host instead.
You can do somthing similar without kubernetes by passing --network host when using docker run.

For large scale infrastructures and running multiple media servers on one host it would be a pain to do this since there would be a large amount of error for port conflicts (without some form of controller). For development and testing however it's perfect.

I am going to close this issue, but should we keep this information in a wiki or something? Anyone willing to contribute it?

Is it possible clusterize this? To support thousands of viewers/streams.

As a workaround running Docker on Docker Desktop for Windows - which don't support --network host mode - I've used
setPortRange and UDP-port range in docker run command:
MediaServer.setPortRange(25000,25500);
And with the docker run command:
-p "25000-25500:25000-25500/udp"
https://medooze.github.io/media-server-node/#mediaserver


Add TS declarations of Workbook properties

Summary
Related to #1655

Test plan

Try to set Workbook's properties e.g. workbook.title = 'some title'; should not  throw TS2339

Cannot get text in cell DataType = Date


Added PR template

Partially solves #191. I used a small part of @gradio-app/gradio's template and made changes. @skops-dev/maintainers feel free to add other things on top.
(Also I think this is all you need to do if you want a template, I followed this tutorial https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/creating-a-pull-request-template-for-your-repository let me know if there's anything I need to do on top) We can do the same for issues as well.

@adrinjalali I added more stuff. Feel free to tell me to add anything else if you want it.


⚠ PrivateHD has degraded performance

In bdb08a1, PrivateHD ($PHD) experienced degraded performance:

HTTP code: 200
Response time: 2116 ms

Resolved: PrivateHD performance has improved in dc0b5eb.


Can u help me solve my question？

I have successfully run train_net.py and test_net.py, but some fault comes when I am trying to run the code of demo.py,
There is no input directory for loading network from faster-rcnn.pytorch/models/vgg16/pascal_voc/vgg16/pascal_voc
I got the train models by train_net.py and put them into faster-rcnn.pytorch/models/vgg16/pascal_voc/vgg16/pascal_voc, I don't know where I am wrong

models should be under
faster-rcnn.pytorch/models/vgg16/pascal_voc/
not
faster-rcnn.pytorch/models/vgg16/pascal_voc/vgg16/pascal_voc/


Error message classification using data-* attributes

Is your feature request related to a problem? Please describe.
As DataView becomes an integral part of the Obsidian ecosystem, a growing number of other plugins are using it behind the scenes. Such plugins would benefit from having information about errors displayed by DataView encoded in the rendered HTML of a DataView display.
Describe the solution you'd like
For example, when the following error is displayed..

.. It would be convenient for the underlying HTML to contain an attribute such as data-error-type, like this:

Dataview: No results to show for task query.

Then a plugin using DataView can more easily handle the display of specific error messages in ways that make sense in the context of that plugin.

This is one possible way of doing this, though it probably would be a little frustrating to use since dataview blocks render asynchronously. The way I would recommend would be to explicitly split up the view into separate "query" (using dv.query()) and "render" (using dv.taskList after checking the query result).
Another API alternative would simply be to add support for overriding the behavior on empty.


Debug hotfix (#1592)

This PR introduces a new util called debug. It enables debug for every module — that means debug messenges will always be shown (which isn't cool).
At this moment, I have no idea why debug isn't enables automatically.

#1596 provides a better solution.


Replace Models_ with Model in operationIds, fix typo in Model_BatchClosedListEntityModel

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information

[ ] The title of the PR is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
[ ] Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
[ ] If applicable, the PR references the bug/issue that it fixes.
[ ] Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

[ ] I have read the contribution guidelines.
[ ] My spec meets the review criteria:

[ ] The spec conforms to the Swagger 2.0 specification.
[ ] The spec follows the guidelines described in the Swagger checklist document.
[ ] Validation tools were run on swagger spec(s) and have all been fixed in this PR.

@stevengum97  -- I'm going to close this PR - I'm just trying to figure out how to PR with you with out including the history


python3-webrtc-noise-gain: bump version to fix musl compilation (main)

Update to a later (unreleased) version which includes a patch to fix
compilation on musl. This has the following changes on top of v1.2.3:
    * Add armv6/armv7 docker builds
    * setup.py: Include other BSDs in elif clause matching freebsd
    * Fix compile on musl
    * Fix build on FreeBSD.

friendly ping. Any problem with this? (The mickledore version was merged already in #102)


Resjson support

Add RESJSON support for configuration
Add async package generation
Add vscode debug endpoint

@MrMeison,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


11624 - Making changes for oracle linux

11624
General requirements

Information in the workshop is adequate and updated
Code is correct and working
Links are correct
Make sure you enter the help email link in your manifest.json
Please make sure WMS URLs are updated as needed after your PR is approved

Checklist - Refer to the QA document for the complete list
Please confirm that the following is completed before submitting your PR

[-] All filenames are lower case (including folders, images, files, etc.)
[-] Filenames are descriptive
[-] Your workshop folder structure should be similar to the one used in the sample workshop (https://github.com/oracle-livelabs/common/tree/main/sample-livelabs-templates/sample-workshop)
[-] Are you using multiple versions (desktop/, sandbox/, tenancy/)? Make sure that each of them contains a manifest.json and an index.html
[-] Image references in markdown contain an alternate text

Just resolved the conflicts


Provide additional info on devise_scope usage

After using devise_scope instead of devise_for I found I no longer had access to Devise helpercurrent_user.
After searching I found this issue to be the answer to the problem:: https://github.com/plataformatec/devise/issues/2840
The issue is also reporter here: https://github.com/plataformatec/devise/issues/3069
I think this simple comment will clarify the issue and help other users in case they run into the same issue.

Thanks


[Event Hubs] event handler callback supports on_event_batch (list of events)

Is your feature request related to a problem? Please describe.
It was widely discussed whether the event handler should receive a batch of events or a single event.
Currently in 5.0.0 GA JS' event handler accepts a list of events while other three languages use singe event.
In Dec 2019, Elena reached out to 11 customers that used eventhubs preview. Receiving batch was one of the main wishes from customers. (Elena's email was sent on 12/16/2019 with title "Event Hubs SDK - customer outreach")
Describe the solution you'd like
Currently Python has EventHubConsumerClient.receive(on_event, **kwargs).
The new feature will add new method receive_batch(on_event_batch, **kwargs) into EventHubConsumerClient. It calls the user callback on_event_batch(partition_context, event_batch).
For flow control, the **kwargs will have three parameters - prefetch for link credit size, max_batch_size and max_wait_time.
max_batch_size is the expected size of the list of events within the max_wait_time.
max_wait_time determines the longest waiting time between two calls of user callback on_event_batch.  receive_batch accumulates events up to max_batch_size and call on_event_batch within max_wait_time and call the callback with the list of events (could be an empty list).
A 0 max_wait_time means not to wait and call the callback function immediately with at most one fetch from the event hub. If the number of pre-fetched events is larger than the max_batch_size, there is no need to fetch. Otherwise fetch only once from the event hub and call the callback with up to max_batch_size events.
Usually on_event_batch should have a list with size max_batch_size. But it may have an empty list of events or fewer than max_batch_size list.
A user can call both receive and receive_batch from one EventHubConsumerClient.
API is like
class EventHubConsumerClient(ClientBase):

    ...

    async def receive_batch(
        self,
        on_event_batch: Callable[["PartitionContext", List["EventData"]], Awaitable[None]],
        max_batch_size: int,
        max_wait_time: float,
        *,
        partition_id: Optional[str] = None,
        owner_level: Optional[int] = None,
        prefetch: int = 300,
        track_last_enqueued_event_properties: bool = False,
        starting_position: Optional[
            Union[str, int, datetime.datetime, Dict[str, Any]]
        ] = None,
        starting_position_inclusive: Union[bool, Dict[str, bool]] = False,
        on_error: Optional[
            Callable[["PartitionContext", Exception], Awaitable[None]]
        ] = None,
        on_partition_initialize: Optional[
            Callable[["PartitionContext"], Awaitable[None]]
        ] = None,
        on_partition_close: Optional[
            Callable[["PartitionContext", "CloseReason"], Awaitable[None]]
        ] = None
    ) -> None:

Sample code
# create the consumer client
consumer_client = EventHubConsumerClient.from_connection_string(
    conn_str=CONNECTION_STR,
    consumer_group=CONSUMER_GROUP,
    eventhub_name=EVENTHUB_NAME,
)

# define the callback
async def on_event_batch(partition_context, event_batch):
    if len(event_batch) > 0:
        # do something
    else:  # event_batch size is 0
        # do something else

# call the receive_batch
async with consumer_client:
    await consumer_client.receive_batch(on_event_batch, prefetch=300, max_batch_size=100, max_wait_time=3)

Describe alternatives you've considered

Make `EventHubConsumerClient.receive(on_event, **kwargs) to have a "batch" mode. on_event can accept either an single event or a batch. But this will add complexity to specific users. A single user will use either receive_batch, or receive. Plus, max_batch_size will be meaningless for singe event callback.

Additional context
None

released in 5.1.0b1 https://pypi.org/project/azure-eventhub/5.1.0b1/

It would be useful to document this and say "There is no performance difference."