async_task just exec code inside wrapped function when set Q_CLUSTER sync: True

Hi,
Im facing the behaviour that every time I run an function wrapped inside "async_task", its just getting executed /called when i have the config sync: True inside my Q_Cluster settings dict.
What I have done:

played a lot with the Q_CLUSTER fields since that issue come on but nothing helped.
checked for every task run the db entries -> they are all marked as successfull

I have prepared a basic gist file with the simplified workflow and config:
https://gist.github.com/wired87/5e64fc79d3aa84cdad87ef7803f508ce
Also have posted the issue on stack (for future readers case it get an answer there):
https://stackoverflow.com/questions/78570366/django-q-in-python-anywhere-ignores-every-functionality-inside-of-it-but-finishe
I was thinked about on wrap the task function also inside a sync_to_async? But in every tutorial i saw that its a common way to pass sync fucntions to aync_task so i havent tried it for now.
I apreciate every reply. Im running out of ideas

"sync": True has nothing to do with the keyword "async" within python. This Setting is for debugging/development purposes, where you dont want to create a dedicated cluster process in a new shell. If you have sync=True your async_task() will be executed directly in the caller process (for example in python.manage.py runserver). If it is set to false it will be pushed to the given queue (in your example redis). From there the cluster in the seperate process will look every few seconds if a new task was pushed and processes it.

Hmm ok so ths means the error isnt related to dj-q but on redis ( my broker ). My wanted behaviour is that the task runs normal in the background while the rest of my code can do its own stuff ( parallel ).
Do you had / heard about such a problem in the past? ( while sync: False it runs the task and finish it succesfully but the code inside of it willl not be executed. There is no error comming up  and my redis storage is not full. On sync:Treue thebahaviour is what i expect but it whaits till the code inside is finished (what takes waaay to long))
I had never problems with redis (also using dj-q and redis just about a month now lol) but this behaviour is super strange .
I just searched the whole day but cant find anythng about in the www also chat or gem does not know.

checked for every task run the db entries -> they are all marked as successfull

Does the amount of time it takes make sense?
Can you check the logs of django-q2?

Does the amount of time it takes make sense?
Unfortunately not ( start and finished imediately - same minute )
Can you check the logs of django-q2?
Yeah sure, here is an example block:
Jun  4 06:48:39 06:48:39 [Q] INFO Process-1:20 processing [alaska-butter-glucose-maine]
Jun  4 06:48:48 06:48:48 [Q] INFO Processed [alaska-butter-glucose-maine]
I also restructured my code to get 100% sure that there runs everything well inside but the problem comes 100% from not calling the fucntion / not execute anything inside.
I have suimmarized my changes i the following gist:
https://gist.github.com/wired87/00cb0b0c8f1edd7c996152cd9bae6595


Why are fillables for Models non-static?

Laravel Version: 5.2.39
PHP Version: 5.6.20

Description:
What led me to this question:
I was creating a function that checks if the model exists based on attributes, but I wanted to check if the given attributes exist in the model. In this case I only want my function to check attributes that are fillables, but i'd have to instantiate the model to access the fillables array.
public static function exists($attributes) {
    if ($attributes) {
      return self::wheres($attributes)->count('id');
    }
 }

I know the find function exists, but i do not require the data itself, only the count('%') as aggregate
This question could also apply for these properties: $attributes, $guarded ... basically anything that shouldn't be changed in an instance of the model.

Please use the forums to post questions, we try to keep this repo for bug reporting only. Thank you :)


[SPARK-27796][MESOS] Remove obsolete spark-mesos Dockerfile example

What changes were proposed in this pull request?
Remove obsolete spark-mesos Dockerfile example. This isn't tested and apparently hasn't been updated in 4 years.
How was this patch tested?
N/A

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/10883/
Test PASSed.

Test build #105630 has started for PR 24667 at commit ab63617.

Thank you, @srowen . Since this PR is irrelevant to the Jenkins testing, I'll merge this to the master and retrigger https://github.com/apache/spark/pull/24664 .

Test build #105630 has finished for PR 24667 at commit ab63617.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/105630/
Test PASSed.


Interesting projects

Interesting project, does it also support re-packing into json?
Looks a lot like the gron tool.

Not quite sure what you mean my repacking, nevertheless the output is valid json just like the input!

Also see https://github.com/twpayne/flatjson which has the additional nice properties of:

The output is valid JavaScript which recreates the original JSON input.
The reverse transformation (flat to nested) is also supported.

Or just use jq:
jq -n --stream '[inputs | select(length == 2) | {(.[0] | join(".")): .[1]}] | add' file.json


Qc report generation tools

@peristeri: why did you close this PR?

@jcohenadad Yes, the branch needs trimming before merging. It seems that the contributor had problems with synchronizing with master which causes hundreds of commits to be re-applied. I would prefer they create a new branch and submit a single commit, it would be simple and clean.


Update to lodash v4.17.19

Hi all,
This PR to update to newest lodash version to get ride of prototype pollution high vulnarability

Lots of changes, should be backward compatible though.

Hi @bithavoc
Thanks for your support!
Do you know when there will be a new release?

@DamasFoux 🚀  https://github.com/bithavoc/express-winston/releases/tag/v4.0.4


Update compass-mixins to a fork with "compact" function fix

This fork of compass-mixins includes this fix. It looks like the official compass mixins repo might not be being maintained at the moment, but this could easily be reverted if the fix is merged into the official compass mixins repo.
With this fix clappr will build fine with the latest version of node-sass, so once this is merged https://github.com/clappr/clappr/pull/970 should be good to go as well.

Refs: https://github.com/Igosuki/compass-mixins/pull/86

Coverage remained the same at 70.024% when pulling f4af2d87d8514453930d036b685475c03730b02c on fixed-compass-mixins into bc0340b6942b98b69e6b8a86d63bb8a4d2e45122 on master.

@tjenkinson I think @bernardocamilo is also working on a solution for this.

As we all discussed, we decided to use the solution proposed in #989, instead of keeping a fork of compass-mixins. Closing this PR.
Thanks, @tjenkinson!


How to filter Semantic annotation?

Habitat-Lab: v0.2.4
Habitat-Sim: v0.2.4
Habitat is under active development, and we advise users to restrict themselves to stable releases. Are you using the latest release versions of Habitat-Lab and Habitat-Sim? Your question may already be addressed in the latest versions. We may also not be able to help with problems in earlier versions because they sometimes lack the more verbose logging needed for debugging.
Master branch contains 'bleeding edge' code and should be used at your own risk.
Docs and Tutorials
Did you read the docs? https://aihabitat.org/docs/habitat-sim/
yes
Did you check out the tutorials? https://aihabitat.org/tutorial/2020/
yes
Perhaps your question is answered there. If not, carry on!
question Questions and Help
Hi!
I want to filtering out some classes in HM3D dataset. But edit %Datasetname%.semantic.txt doesn't work
Dataset
data/scene_datasets.hm3d/minival/00800-TEEsavR23oF/ there are four files
TEEsavR23oF.basis.glb
TEEsavR23oF.basis.navmesh
TEEsavR23oF.semantic.glb
TEEsavR23oF.semantic.txt
And I would like to filter just remain ceiling annotation.
When I delete other annotations in TEEsavR23oF.semantic.txt, habitat_sim.Simulator generate empty class and printed like
[21:50:57:044332]:[Metadata] AttributesManagerBase.h(357)::buildAttrSrcPathsFromJSONAndLoad : No Glob path result for ./data/scene_datasets/hm3d/train/00017-oEPjPNSPmzL/*.basis.scene_instance.json
And edit annotations to other class in TEEsavR23oF.semantic.txt also doesn't work.
I think It is related in *.basis.scene_instance.json in hm3d_annotated_basis.scene_dataset_config.json but I can't find those .basis.scene_instance.json file locally.
Is there any method to filter annotations??
Thanks for your help in advance !

Hey @jemo-mh,
A brief overview of the annotations for HM3D:

TEEsavR23oF.basis.glb is the RGB render mesh only
TEEsavR23oF.semantic.glb is the same geometry, but contains semantic texture paints (with unique colors for each instance).
TEEsavR23oF.semantic.txt maps per-instance colors to semantic classes and regions.

I'm not sure exactly what you are trying to do with this filtering.
You could:

Post-process the semantic images to remove or change pixels of particular class colors before using them for your application.
Change the TEEsavR23oF.semantic.txt to map particular instances to other classes (e.g. "ceiling" to "unknown").


TypeScript declaration file missing

Hi, I'm updating my Vue3 application to use TS. I get this error:
TS7016: Could not find a declaration file for module '@vueform/slider'. <EMAIL_ADDRESS>implicitly has an 'any' type.   Try npm i --save-dev @types/vueform__slider if it exists or add a new declaration (.d.ts) file containing "declare module '@vueform/slider';"
npm i --save-dev @types/vueform__slider didn't find anything.
What can I do about this ? Thanks !

This project is built using only js, you could add the file slider.d.ts next to shims-vue.d.ts with the following content :
 declare module '@vueform/slider'

I already tried that, but the warning/error was/is still present. Maybe a vscode/vetur issue ?

For me I just restarted the npm run serve command

I also had to restart vscode, now the warning is gone.


3.4

This PR contains changes for Version 3.4 which are:

default port for Connection class
remove Anaconda badges (drop conda-forge support)

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1670

Relevant Lines:
1768

💛  - Coveralls


Go to definition goes to stub files instead of actual definitions

Type: Bug
User.objects.get_or_create()

On the operator 'Go to Definition' for get_or_create it takes you to the declaration stub instead of the source code.
Steps to reproduce:

Setup a dummy Django project with a User table and virtual env and install dependencies
import a User model or any other model
write User.objects.get_or_create() and click into get_or_create

You will get navigated to the pyi file instead of the source code from the Django library.
Extension version: v2023.6.30
VS Code Version: 1.79.2
Commit: 695af097c7bd098fbf017ce3ac85e09bbc5dda06
Date: 2023-06-14T08:58:33.551Z (1 wk ago)
Electron: 22.5.7
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 22.5.0

@eshahbaz1, thanks for the issue. At runtime, Django is dynamically adding the QuerySet.get_or_create method to the Manager class. The Django stubs that are bundled with Pylance claim that get_or_create is a member of BaseManager, but it's not. I assume that they added it there as a work around for this dynamic behavior, so, for example, get_or_create would show up in completion suggestions. When you go to definition, Pylance can't navigate to QuerySet.get_or_create because it has no way of knowing that that's what is being called at runtime.
If you feel that the stubs should represent this in a different way, please file an issue at https://github.com/sbdchd/django-types/issues


PYTHONPATH and MYPYPATH cannot be specified in env: directive

Currently this code does not work:
-   case: mypy_path_from_env
    main: |
        from pair import Pair

        a: Pair
        reveal_type(a)  # N: Revealed type is 'pair.Pair'
    env:
        - MYPYPATH=./pytest_mypy_plugins/tests/fixtures

Because currently pytest-mypy-plugins does not respect this way of defining variables.

Closed by https://github.com/typeddjango/pytest-mypy-plugins/pull/44


Fix link to JS samples

Fix link to JS samples as it has been linked to .NET samples

@mrbullwinkle
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

#sign-off


Add Rmds copying line to transfer-rendered-files.yml github action

Summary
Based on this commit that included changes @carriewright11 made on a different repository; I'm copying those changes to the github actions file here.
This makes it so by default the Rmd files will also be copied to a repository's Leanpub repo (when it is set up).
Closes https://github.com/jhudsl/DaSL_Course_Template_Leanpub/issues/16

Looks good - I think I also had to make it so .bib files were forced to copy - because after the initial copy it was telling me that it didn't want to overwrite the .bib files.. I think we might also need to add the _bookdown.yml file.


aniseed.eval tests sometimes fail

I'm not sure why, but since I updated Fennel I sometimes see this:
SUFFIX="test/fnl/foo.fnl" scripts/test.sh
[aniseed.string-test] OK 6/6 tests and 29/29 assertions passed
[aniseed.eval-test/repl] Expected (with pr) '[40]' but received 'nil'
[aniseed.eval-test/repl] Expected (with pr) '[25]' but received 'nil'
[aniseed.eval-test/repl] Expected (with pr) '{}' but received 'nil'
[aniseed.eval-test/repl] Expected (with pr) '{}' but received 'nil'
[aniseed.eval-test/repl] Expected (with pr) '[60]' but received 'nil'
[aniseed.eval-test/repl] Expected (with pr) '[35]' but received 'nil'
[aniseed.eval-test] FAILED 2/3 tests and 30/36 assertions passedfoofoo
bar[aniseed.nvim.util-test] OK 2/2 tests and 7/7 assertions passed
[aniseed.macros-test] OK 1/1 tests and 3/3 assertions passed
[aniseed.fs-test] OK 3/3 tests and 8/8 assertions passed
[aniseed.core-test] OK 36/36 tests and 123/123 assertions passed
[aniseed.compile-test] OK 1/1 tests and 4/4 assertions passed
[total] FAILED 51/52 tests and 204/210 assertions passed
Makefile:26: recipe for target 'test' failed
make: *** [test] Error 1

Exited with code exit status 2

I've seen things like this before and last time it was a LuaJIT bug... so it could be that again. The only way to fix it is to reword the Fennel code, or it was last time. Gross!

Oh I fixed this! :D


Disable Community Patch version URL for AWS VPN Client

Disabled appNewVersion URL that was using beta2.communitypatch.com since Community Patch was shutdown.

Thank you!


Second call to the function loadDeferredProviders() was removed

The second call to loadDeferredProviders() does nothing since all the deferred providers were
already loaded inside the bootstrap() function.
Also, bootstrap function doc block was changed.

:-1:

Deferred providers could be registered by other service providers at runtime.

The bootstrap function will handle this case.

On each time the call() function is called during the application live time, the bootstrap function is also called, so if there are any new providers were registered they will be loaded inside the bootstrap function.

Deferred providers could be registered by other service providers at runtime.

It's almost impossible to add additional deferred providers on runtime, unless you extends Application and make additional public method to append the deferred services array list.


[WIP] Setup rollup

It started at #14 a long time ago.
I added a really basic setup of rollup. All that is done right now is just replacing hand-written IIFE with the one that rollup adds. Exports are still manual. Should I continue at this point or something doesn't look right already? I probably should add non-phony make target for simple-markdown.js. Is it correct?

This looks ok to me—I'd like to replace the custom umd export at the end with an export default SimpleMarkdown and let rollup do it's thing there.
I think we should add a make target as you say. I'm open to migrating to npm scripts in the future, but would like to do that all at once when we do. Unfortunately I believe the make target may have to be phony because I've had issues with non-phony targets and timestamps not being updated by some git operations. I'm probably missing something here, but thankfully phony targets aren't very expensive for a small project like this.

Added some integrations with make & npm prepublish, and switched to es6 exports so we can use all of rollup's umd instead of my homegrown one; thanks! (37a72f1)
I have some ideas for where this could go that might be useful if you're interested! Or if you have ideas, I'm interested in hearing or seeing them!
That said, I want to make sure that with any infrastructure changes we:

keep meeting the product use-cases (flow & typescript support, easy to include in webpack, node, or raw html, etc.)
are getting actionable benefits from the new system.

If we could eventually support es6 named exports for tree shaking like you suggested in #55, I think that would be really neat and match the above criteria. I'm not totally sure how to ensure that typescript and flow play well with both versions, but it's probably doable. You probably have other ideas as well :).

Awesome 👍


Column specific event.

Hey , Thanks for this awesome calendar ! I have a Taxi calendar app with 3 taxis available. The availability of each of the taxis is displayed on the calendar day view. Each of the 3 taxis is displayed in different colors.
The taxis are listed in order of colors on the day view page. For example , if Taxi 1 is red, taxi 2 is green, taxi 3 is yellow.The day view page would show the red event first, then the green event then the yellow event. However, if for instance, Taxi 1 is not available, taxi 2 and 3 are shown only. How can i have the green events under the green column (Taxi 2). Yellow under yellow and red under red. (each taxi have his own column).
Is there a way to accomplish this ? If not, do you have an idea on how to accomplish this ?

@Dofarian
To display each event in different color is easy, you can use dayviewNormalEventTemplateUrl option to customize the css styles applied to the event.
The tricky part is you want to stick one event in a particular column.
The calendar calculate the event width by dividing total event number in this timeslot.
I think one way is you always pass three events to the calendar, but set the background of the unavailable event to transparent.
For example,
Case 1: all three taxis are available, then simply pass three events to the calendar, and apply different color on different taxi (you can pass an extra field to distinguish the event, then use ng-class to set different class)
Case 2: Taxi1 is not available, but Taxi2 and 3 are available, still pass three events, but make the background of the first event transparent


Fix seth/rebar_lock_deps_plugin/issues/16.

Consider a directory layout like this:
apps/lexer/rebar.config
     parser/rebar.config
     codegen/rebar.config
deps/*/rebar.config
rel/
rebar.config

The top-level rebar.config specifies {sub_dirs, ["rel", "apps/*"]},
and each rebar.config has its own set of deps.
rebar_lock_deps_plugin does not lock the dependencies specified in the
apps/{lexer,parser,codegen}/rebar.config files. This is a major issue
for certain projects of mine.
This difficulty arises because rebar_lock_deps_plugin apparently does
not scan sub_dir directories for dependencies. Since rebar itself
does scan sub_dir directories for dependencies, it seems reasonable
to expect that rebar_lock_deps_plugin would do it, too.

Hiya. Thanks for this PR.
Would you be willing to add a small test case that could be used to verify the behavior? I know the current test coverage isn't great, but no time like the present to improve that :)
A few minor comments and since I merged your other fix this now needs a rebase. But I like the idea of teaching the plugin how to handle nested projects as you have.


Bug: Changing env file won't take effect

PHP Version
7.4
CodeIgniter4 Version
4.1.5
CodeIgniter4 Installation Method
Composer (using codeigniter4/appstarter)
Which operating systems have you tested for this bug?
Windows
Which server did you use?
apache
Database
MariaDB 10.2
What happened?
I cloned codeigniter and changed the environment settings to fit the development environment but these changes are not applied.
Steps to Reproduce
Clone CodeIgniter Change the environment settings, for example, set CI ENVIRONMENT on development Then run the project No changes have been made
Expected Output
Making changes to the env file as explained in the documentation should affect the development environment
Anything else?
I think this is a tiny problem and I can fix it.

See

https://codeigniter4.github.io/CodeIgniter4/installation/running.html#set-to-development-mode
https://codeigniter4.github.io/CodeIgniter4/general/configuration.html#dotenv-file


[BUG][TubeMQ] All images can not work when using go example

What happened
I want to run the example code  in tubemq-client-go， when i run tubemq using docker run -p 8080:8080 -p 8715:8715 -p 8123:8123 -p 2181:2181 --name tubemq -d inlong/tubemq-all:latest  ,and then I run the code in example in tubemq-client-go, with error reporting .

What you expected to happen
run example code with right behavior
How to reproduce

docker run -p 8099:8099 -p 8080:8080 -p 8715:8715 -p 8123:8123 -p 2181:2181 --name tubemq -d inlong/tubemq-all:latest
run example  code  in tubemq-client-go

Environment
版本	Windows 10 家庭中文版
版本号	21H2
安装日期	2021/11/6
操作系统内部版本	19044.1645
体验	Windows Feature Experience Pack 120.2212.4170.0
InLong version
1.1.0
InLong Component
InLong TubeMQ
Are you willing to submit PR?

[ ] Yes, I am willing to submit a PR!

Code of Conduct

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

@TszKitLo40 PTAL, thanks.

@bigdaronlee163 Do you run the code in  https://github.com/apache/incubator-inlong/blob/master/inlong-tubemq/tubemq-client-twins/tubemq-client-go/example/consumer.go? It is just an example for the users. which means you may need to replace by the correct address by yourself. The address is <IP_ADDRESS>:8099?topic=test_1&group=test_group. So you need to change the port to the correct TubeMQ port, and you also need to make sure that there is a topic  called test_1 and a group called test_group in the corresponding TubeMQ server.

yes, I run the code https://github.com/apache/incubator-inlong/blob/master/inlong-tubemq/tubemq-client-twins/tubemq-client-go/example/consumer.go. But I run the tubemq images with docker and export port according to  https://inlong.apache.org/zh-CN/docs/modules/tubemq/quick_start . After tubemq-all container running, I create test_topic and test_group in <IP_ADDRESS>:8080， there is still error when running the code https://github.com/apache/incubator-inlong/blob/master/inlong-tubemq/tubemq-client-twins/tubemq-client-go/example/consumer.go.

The topic name should be test_1 instead of test_topic.

yes, I run the code https://github.com/apache/incubator-inlong/blob/master/inlong-tubemq/tubemq-client-twins/tubemq-client-go/example/consumer.go. But I run the tubemq images with docker and export port according to https://inlong.apache.org/zh-CN/docs/modules/tubemq/quick_start . After tubemq-all container running, I create test_topic and test_group in <IP_ADDRESS>:8080， there is still error when running the code https://github.com/apache/incubator-inlong/blob/master/inlong-tubemq/tubemq-client-twins/tubemq-client-go/example/consumer.go.

@TszKitLo40

The topic name should be test_1 instead of test_topic.

Maybe you also need to provide the log the TubeMQ server. @gosonzhang PTAL

Is your master address <IP_ADDRESS>:8099? @bigdaronlee163

Is your master address <IP_ADDRESS>:8099? @bigdaronlee163

yes , I will submit log soon

gc.log.2022-05-08-06-53-23.0.current.log
master.log
broker.log
gc.log.2022-05-08-06-53-19.0.current.log
there are logs， but I donot find any exception.

I will try java client to test the running tubemq-all

It may be the lack of data producers.....


Implement container_name support

Fixes #28 — This implements container_name support as in docker-compose 1.4.

Went with option 1 - a service with a custom name simply can't be scaled beyond 1 container. We let the Docker daemon enforce that.

This does the same as docker-compose : if container_name is present and we do a scale on it should fail but this will come from the docker side. This means one container will start, and as libcompose does not (yet ?) stop running containers in case of failure, it would stays up.
There is room for improvement in the integration tests, but that probably will be for another PR.
Signed-off-by: Vincent Demeester<EMAIL_ADDRESS>

Hey @vdemeester, I reviewed this one, it's almost good to be merged, could you just resolve conflicts?

@aduermael done :wink: (Github should add a "not mergeable" in the my Pull-Request view :sweat_smile:).

@vdemeester thanks! @gaetan is testing currently. :)

LGTM 🐥

LGTM


Explicitly handle when WebXR AR sessions are rejected

Currently, we have implicit handling for rejected WebXR AR sessions. We should have explicit handling, possibly including some kind of event to notify the page content that we failed to activate AR.

Done (via ar-status).


ExactEigensolver crashes with signal 11: SIGSEGV

Informations

Qiskit Aqua version: 0.4.1
Python version: 3.7.3
Operating system: Linux Ubuntu 18.04.2 LTS

What is the current behavior?
All notebooks using ExactEigensolver crash for me. For notebooks, the kernel dies. Running py files, I find an exit code 139 (interrupted by signal 11: SIGSEGV). I have reduced the problem to a minimal example below.
Steps to reproduce the problem
I installed a fresh qiskit_aqua using pip today, April 1. My operating system is Linux Ubuntu 18.04.2 LTS. My python is 3.7 and the package version numbers are:
qiskit                      0.8.0
qiskit-aer                0.1.1
qiskit-aqua             0.4.1
qiskit-chemistry      0.4.2
qiskit-ignis              0.1.0
qiskit-terra              0.7.1
minimal example:
from qiskit_aqua.algorithms import ExactEigensolver
from qiskit_aqua import Operator

pauli_dict = {'paulis': [{"coeff": {"imag": 0.0, "real": 0.3}, "label": "ZX"}]}

qubitOp = Operator.load_from_dict(pauli_dict)

exact_eigensolver = ExactEigensolver(qubitOp, k=1)
ret = exact_eigensolver.run()
print('The exact ground state energy is: {}'.format(ret['eigvals'][0].real))

The above code reproduces the error and gives
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
What is the expected behavior?
The expected output is the lowest eigenvalue of the operator.
Suggested solutions
I don't know a solution as it is unclear what causes the crash. I found that a diagonal operator does not give any problems, i.e. run the above with ZZ or any sum of I's and ZI's etc and it works fine. That means the QAOA notebooks don't give issues, just the chemistry ones for example.

@manoelmarques thanks for checking; I have re-installed all packages including numpy and scipy and now it works for me too. I think there must have been some problem with underlying linear algebra packages, which are probably only called when the matrix to diagonalize is not yet diagonal, hence the strange behaviour.
"Unfortunately" I was not able to reproduce the error again. I will close this issue now.


WATCHDOG_EXPIRED on New Masternode (12.1 testnet)

I sent 1000 Dash to a new address, spun up a masternode, issued a Start Missing and the status was immediately WATCHDOG_EXPIRED.  I logged into the masternode and have the following status.
{
"vin": "CTxIn(COutPoint(0000000000000000000000000000000000000000000000000000000000000000,<PHONE_NUMBER>), coinbase )",
"service": "<IP_ADDRESS>:19999",
"status": "Node just started, not yet activated"
}
WATCHDOG EXPIRED is showing from the wallet, the masternode itself, and another non-masternode daemon.
I think the status should be PRE_ENABLED.

If you're running sentinel on the masternode it should switch to PRE_ENABLED within 2 minutes.

I am running sentinel and it's still WATCHDOG_EXPIRED. It has been more than 15 minutes now.

Are you sure you're running the current version of sentinel ?

Pretty sure. Here is some more information.
Ubuntu 14.04.5 LTS
Sentinel from https://github.com/nmarley/sentinel.git (and up-to-date)
dashd updated about an hour ago.


Added Mackenzista

I’m adding 3 images for context:
The university’s domain for students’ email is: mackenzista.com.br.


Add support for partial document updates in azcosmos

Feature Request
I recently learned about Cosmos DB supporting partial document update. Being able to patch documents from our Go service would greatly simplify our data model, as it is the perfect tool to support some of our use cases. Other SDKs, such as .NET and Java SDKs, have support for this since almost a year ago.
Any plans on adding a PatchItem method to ContainerClient and TransactionalBatch?

Duplicate of https://github.com/Azure/azure-sdk-for-go/issues/18682

sorry, clearly my search on existing issues wasn't great.

No worries! If that's ok we can close this one, the future work is tracked through the other

sure!


add external links info footer

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes #11
Type of Change

grid sheets
social links
contact information
copyright information

Screenshots (if applicable)

Additional Information

Name: Maksym
Branch: footer-external-links

Hi, great work, there are some merge conflicts, please look into it

The conflict was resolved.


Keri agent crashes when one or more witness receipts are missing

Steps to reproduce

Reset
Do not start witness
Start Keri agent
Run boot, unlock, incept
Running GET /oobi/alias causes Keri agent to crash

This also happens if I start only two witness nodes (eg. only was and wel witnesses). Or if witness nodes are "slow" and GET /oobi/alias happens before receipts are received.
keripy is at revision ed016a06c56a1faaff26f2cca24b8b9e385ffc54
$ rm -rf ~/.keri

$ kli agent vlei &

$ curl -s -X POST "http://localhost:5620/boot" -H "accept: */*" -H "Content-Type: application/json" -d "{\"name\":\"alias1\",\"passcode\":\"DoB2-6Fj4x-9Lbo-AFWJr-a17O\",\"salt\":\"0ACDEyMzQ1Njc4OWxtbm9aBc\"}" | jq

$ curl -s -X PUT "http://localhost:5620/boot" -H "accept: */*" -H "Content-Type: application/json" -d "{\"name\":\"alias1\",\"passcode\":\"DoB2-6Fj4x-9Lbo-AFWJr-a17O\"}" | jq

$ sleep 3

$ curl -s -X POST "http://localhost:5620/ids/alias1" -H "accept: */*" -H "Content-Type: application/json" -d "{\"transferable\":true,\"wits\":[\"BBilc4-L3tFUnfM_wJr4S4OJanAv_VmF_dJNN6vkf2Ha\",\"BLskRTInXnMxWaGqcpSyMgo0nYbalW99cGZESrz3zapM\",\"BIKKuvBwpmDVA4Ds-EpL5bt9OqPzWPja2LigFYZN2YfX\"],\"toad\":2,\"icount\":1,\"ncount\":1,\"isith\":1,\"nsith\":1}" | jq

$ curl -i -s "http://localhost:5620/oobi/alias1?role=witness" -H "accept: */*"

Keri agent quits, output and stack trace is
$ kli agent vlei

******* Starting Agents for vLEI scenairo testing on ports:

    RootGARs:  5620, 5621
    ExtGARs:   5622, 5623
    IntGARs:   5624, 5625
    QARs:      5626, 5627
    LARs:      5628, 5629
    Person:    5630

*******

ERR: 'http'
Traceback (most recent call last):
  File "/home/uroot/.local/bin/kli", line 33, in <module>
    sys.exit(load_entry_point('keri', 'console_scripts', 'kli')())
  File "/home/uroot/keripy/src/keri/app/cli/kli.py", line 27, in main
    raise ex
  File "/home/uroot/keripy/src/keri/app/cli/kli.py", line 22, in main
    directing.runController(doers=doers, expire=0.0)
  File "/home/uroot/keripy/src/keri/app/directing.py", line 728, in runController
    doist.do(doers=doers)
  File "/home/uroot/.local/lib/python3.10/site-packages/hio/base/doing.py", line 156, in do
    self.recur()  # increments .tyme runs recur context
  File "/home/uroot/.local/lib/python3.10/site-packages/hio/base/doing.py", line 275, in recur
    tock = dog.send(self.tyme)  # yielded tock == 0.0 means re-run asap
  File "/home/uroot/.local/lib/python3.10/site-packages/hio/base/doing.py", line 922, in do
    self.done = self.recur(tyme=tyme)  # equv of doist.recur
  File "/home/uroot/.local/lib/python3.10/site-packages/hio/base/doing.py", line 1026, in recur
    tock = dog.send(tyme)  # yielded tock == 0.0 means re-run asap
  File "/home/uroot/.local/lib/python3.10/site-packages/hio/base/doing.py", line 922, in do
    self.done = self.recur(tyme=tyme)  # equv of doist.recur
  File "/home/uroot/.local/lib/python3.10/site-packages/hio/base/doing.py", line 1026, in recur
    tock = dog.send(tyme)  # yielded tock == 0.0 means re-run asap
  File "/home/uroot/.local/lib/python3.10/site-packages/hio/base/doing.py", line 922, in do
    self.done = self.recur(tyme=tyme)  # equv of doist.recur
  File "/home/uroot/.local/lib/python3.10/site-packages/hio/base/doing.py", line 1026, in recur
    tock = dog.send(tyme)  # yielded tock == 0.0 means re-run asap
  File "/home/uroot/keripy/src/keri/app/indirecting.py", line 786, in eventDo
    client, clientDoer = agenting.httpClient(self.hab, self.witness)
  File "/home/uroot/keripy/src/keri/app/agenting.py", line 598, in httpClient
    up = urlparse(urls[kering.Schemes.http])
KeyError: 'http'

Suggestion
GET /oobi/alias should return oobi uri list with those witnesses whose receipts have been received. List may initially be empty or shorter than configured number of witnesses.

Agent removed from KERIpy for WebOfTrust/KERIA


[DOC] How to extend the guides.xml with additional config

@wouterj can you help with where in the symfony docs should we link about this Configuration Tree Builder?

@garvinhicking would be happy about your review

@wouterj can you help with where in the symfony docs should we link about this Configuration Tree Builder?

This would be the best guide for that: https://symfony.com/doc/current/components/config/definition.html


Reload not working

Installed version 0.4.0
When trying to reload I get the following error
I double checked by deleting the integration and setting it up again
Logger: homeassistant.config_entries
Source: helpers/entity_component.py:166
First occurred: 9:29:32 PM (1 occurrences)
Last logged: 9:29:32 PM

Error setting up entry Bibliotheek.be for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 125, in async_setup_entry
    return await component.async_setup_entry(entry)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 166, in async_setup_entry
    raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!

hmm, strange. Can you delete the integration and and perform setup again after restart of HA?

Setting up works fine, I choose reload on the integration page trying to force a refresh. Still getting this error.


can be used in stable diffusion?

how?tks

You can find all of the details of ReLoRA in our paper: https://arxiv.org/abs/2307.05695


feat: use crane as tool instead of elaborate docker setup

:tada: This PR is included in version 1.1.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


[Cypress automation tests failing on ARM64]

Describe the bug
Cypress integration tests on ARM64 are failing
To Reproduce
Steps to reproduce the behavior:
The below test is failing with Security and No Security
https://localhost:9200/index*,sample*,opensearch_dashboards*
We attempted to make an http request to this URL but the request failed without a response.
We received this error at the network level:
Error: connect ECONNREFUSED <IP_ADDRESS>:9200
The request we sent was:
Method: DELETE
URL: https://localhost:9200/index*,sample*,opensearch_dashboards*

See error

Managed indices
can edit rollover_alias
"before each" hook for "successfully":
AssertionError: Timed out retrying after 60000ms: Expected to find content: 'Rows per page' but never did.

Because this error occurred during a before each hook we are skipping the remaining tests in the current suite: Managed indices
at Context.eval (http://<IP_ADDRESS>:5601/__cypress/tests?p=cypress/integration/managed_indices_spec.js:182:8)
Expected behavior
Successful run of the two failed tests.
Desktop (please complete the following information):

OS: ARM64

This was addressed in this PR, to support custom endpoints in cypress tests even when security is enabled - https://github.com/opensearch-project/index-management-dashboards-plugin/pull/33


Fix readiness and liveness probes

Fix orion-ld logig for the probes
Add probes for PEP proxy

@wistefan I tried to contribute back the changes to the original repo, but I am not allowed to do so.: https://github.com/openshift-helm-charts/charts/pull/485
So, if you want them there, you might need make to the PR yourself....


Anime king

Source name
Anime king
Source link
https://anime-king.com
Language
Arabic
Other details
No response
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a title with source name.
[X] I have checked that the extension does not already exist on the website extensions list or the app.
[X] I have checked that the extension does not already exist by searching the GitHub repository and verified it does not appear in the code base.
[X] I will fill out all of the requested information in this form.

Duplicate of #1001


[EventRequest] PurchPost.Codeunit.al (codeunit 90 "Purch.-Post") AU

Hi MS,
Please help us in migrating our verticalized solution by adding below events in PurchPost.Codeunit.al Codeunit.
Standard Code (Screenshot from PostPurchLine Function)
..
PostItemTrackingLine(PurchHeader, PurchLine);
    case Type of
        Type::"G/L Account":
            PostGLAccICLine(PurchHeader, PurchLine, ICGenJnlLineNo);
        Type::Item:
            PostItemLine(PurchHeader, PurchLine, TempDropShptPostBuffer);
        Type::Resource:
            PostResourceLine(PurchHeader, PurchLine);
        Type::"Charge (Item)":
            PostItemChargeLine(PurchHeader, PurchLine);
    end;

    if (Type <> Type::" ") and ("Qty. to Invoice" <> 0) then begin
        AdjustPrepmtAmountLCY(PurchHeader, PurchLine);
        FillInvoicePostBuffer(PurchHeader, PurchLine, PurchLineACY, TempInvoicePostBuffer, InvoicePostBuffer);
        InsertPrepmtAdjInvPostingBuf(PurchHeader, PurchLine, TempInvoicePostBuffer, InvoicePostBuffer);
    end;

..
Modified Code
..
PostItemTrackingLine(PurchHeader, PurchLine);
    case Type of
        Type::"G/L Account":
            PostGLAccICLine(PurchHeader, PurchLine, ICGenJnlLineNo);
        Type::Item:
            PostItemLine(PurchHeader, PurchLine, TempDropShptPostBuffer);
        Type::Resource:
            PostResourceLine(PurchHeader, PurchLine);
        Type::"Charge (Item)":
            PostItemChargeLine(PurchHeader, PurchLine);
    end;

    OnPostPurchLineOnAfterPostByType(PurchHeader, PurchLine, GenJnlPostLine);

    if (Type <> Type::" ") and ("Qty. to Invoice" <> 0) then begin
        AdjustPrepmtAmountLCY(PurchHeader, PurchLine);
        FillInvoicePostBuffer(PurchHeader, PurchLine, PurchLineACY, TempInvoicePostBuffer, InvoicePostBuffer);
        InsertPrepmtAdjInvPostingBuf(PurchHeader, PurchLine, TempInvoicePostBuffer, InvoicePostBuffer);
    end;

..
Event Signature
..
[IntegrationEvent(false, false)]
local procedure OnPostPurchLineOnAfterPostByType(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line")
begin
end;
..
NOTE : The same event is requested earlier by me for NA and W1 localization . This time we needs it for AU localization.
Thanks
SUD

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

HI @JesperSchulz ,
Thanks for adding this event, but i am not able to find the requested parameter.
[IntegrationEvent(false, false)]
local procedure OnPostPurchLineOnAfterPostByType(PurchHeader: Record "Purchase Header"; var PurchLine: Record "Purchase Line"; **var GenJnlPostLine: Codeunit "Gen. Jnl.-Post Line"**)
begin
end;

Can you please add this parameter into this event?
Thanks
SUD

@SUD-D365, any chance you could create a new issue, where you reference this one? Once processed and closed, the issues fall of the radar of the team that is processing them. Sorry to bother you with rigid processes, but this way of getting trailing problems fixed has proven to be by far the most efficient :-) Thanks!

Ok thanks, I have just created #12653


Change return format of images with properties

JetBrains change format for images with proprieties at YouTrack, so we need to add some changes at jira2markdown

All changes applied at https://github.com/catcombo/jira2markdown/pull/37


Purchase Failed in sandbox with Unknown Error

Description
I was attempting to make a purchase in the sandbox but was greeted with an unknown error:
[Error: #0 (unknown): Product purchase failed]
  const handlePurchase = async () => {
    try {
      const id = 'pairsessentials';
      const locale = 'en';

      const paywall = await adapty.getPaywall(id, locale);
      const products = await adapty.getPaywallProducts(paywall);
      const profile = await adapty.makePurchase(products[0]);
      console.log(profile);
      } catch (error) {
        console.log(error);
      }
    }

Version
^2.6.0
What platforms are you seeing the problem on?
iOS
System info
System:
  OS: macOS 13.2.1
  CPU: (10) arm64 Apple M2 Pro
  Memory: 55.05 MB / 16.00 GB
  Shell:
    version: 5.8.1
    path: /bin/zsh
Binaries:
  Node:
    version: 18.16.0
    path: /usr/local/bin/node
  Yarn:
    version: 1.22.19
    path: /usr/local/bin/yarn
  npm:
    version: 9.5.1
    path: /usr/local/bin/npm
  Watchman:
    version: 2<IP_ADDRESS>
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.12.1
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 22.4
      - iOS 16.4
      - macOS 13.3
      - tvOS 16.4
      - watchOS 9.4
  Android SDK: Not Found
IDEs:
  Android Studio: Not Found
  Xcode:
    version: 14.3.1/14E300c
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 11.0.19
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.72.4
    wanted: 0.72.4
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: Not found
  newArchEnabled: Not found
iOS:
  hermesEnabled: true
  newArchEnabled: false

Hey! Does this persist? Apple recently had problems maintaining sandbox servers... @samuelzxu

@divanc I think that the iOS 17 update has broken something with the library. It consistently fails on iOS 17 across all devices when running on iOS hardware (iPhone, iPad) but it works on iOS 16.

@samuelzxu
That is awful, if your purchases fail on iOS 17! I've just tried Adapty 2.6.0 on iOS 17.0, it seems fine for me. Our next release will be thouroughly tested on a spectre of iOS 17 devices, but I haven't seen any Swift API changes that might cause these problems.
Do you have failing purchases on a real device with debug build? I don't think simulator can validate purchases


bad inference prediction results from ResNet50 ONNX models

I'm getting bad inference results from ResNet ONNX models. The image of the cat used in the example is reported as a pool table when using ResNet v1 or v2. This was initially reported in issue #284 Has this been resolved or is there a workaround?
I'm running AWS DLAMI v24.1 on p3.2xlarge.
MSS v 1.05
(mxnet_p36) [ec2-user@ip-172-31-47-248 ~]$ pip show mxnet-model-server
Name: mxnet-model-server
Version: 1.0.5
Summary: Model Server for Apache MXNet is a tool for serving neural net models for inference
Home-page: https://github.com/awslabs/mxnet-model-server
Author: MXNet SDK team
Author-email<EMAIL_ADDRESS>License: Apache License Version 2.0
Location: /home/ec2-user/anaconda3/envs/mxnet_p36/lib/python3.6/site-packages
Requires: model-archiver, Pillow, future, psutil

I've followed the directions in the model zoo and ResNet50 v1 and v2 both show terrible predictions. I'm guessing the input image isn't being fed properly to the models.
Command to start the model server
mxnet-model-server --start --models squeezenet=https://s3.amazonaws.com/model-server/model_archive_1.0/squeezenet_v1.1.mar resnet50-v1=https://s3.amazonaws.com/model-server/model_archive_1.0/onnx-resnet50v1.mar

Inference requests:
$ curl -X POST http://<IP_ADDRESS>:8080/predictions/squeezenet -T kitten.jpg
[
  {
    "probability": 0.8582226634025574,
    "class": "n02124075 Egyptian cat"
  },
  {
    "probability": 0.09160050004720688,
    "class": "n02123045 tabby, tabby cat"
  },
  {
    "probability": 0.037487514317035675,
    "class": "n02123159 tiger cat"
  },
  {
    "probability": 0.0061649843119084835,
    "class": "n02128385 leopard, Panthera pardus"
  },
  {
    "probability": 0.003171598305925727,
    "class": "n02127052 lynx, catamount"
  }

$ curl -X POST http://<IP_ADDRESS>:8080/predictions/resnet50-v1 -T kitten.jpg
[
  {
    "probability":<PHONE_NUMBER>6132812,
    "class": "n03982430 pool table, billiard table, snooker table"
  },
  {
    "probability":<PHONE_NUMBER>6933594,
    "class": "n03942813 ping-pong ball"
  },
  {
    "probability":<PHONE_NUMBER>3027344,
    "class": "n03661043 library"
  },
  {
    "probability":<PHONE_NUMBER>1601562,
    "class": "n02788148 bannister, banister, balustrade, balusters, handrail"
  },
  {
    "probability":<PHONE_NUMBER>3496094,
    "class": "n03065424 coil, spiral, volute, whorl, helix"
  }

@tahouse : The result is indeed very funny. I think we might need to look into the resnet-50 model. To unblock yourself, I would recommend taking any resnet-50 model (from MXNet or PyTroch) and using the model-archiver tool to create your own model file to be loaded onto MMS. In the mean time, we can take a look into the issues with the model.

Thanks for the response. I've tried using the model archiver with a Gluon Vision pretrained model. I followed the tutorial for SqueezeNet -- replacing with an exported ResNet50 model. The Model Archiver never completes and the output .mar file grows until I kill the process (got up to 30 GB before I killed the process). Maybe the handler needs modification?

@tahouse : Could you share the reproducible steps? Since its a pretrained model, please provide the exact steps of how you prepared the model artifacts and how you ran model-archiver tool.


Update versioneer.py to address issue #105

Using Peter's suggestion (@psferguson) to address the issue in versioneer.py that causes issues with recent Python versions. I've tested this and confirmed it resolves the issue.

Thanks @willcerny! Is this backward compatible (at least to earlier version of Python 3)?

Not sure why the build isn't triggering. I'm going to merge this and we can fix it if the tests break.

Looks like it succeeded:
https://github.com/DarkEnergySurvey/ugali/actions/runs/12377300863
I should add 3.12 to the list of versions that are tested.


Implement equality for the Settings object.

In #452 we merged a patch that resolved a functional issue, but the test relied on implementation details of one of our classes (h2.settings.Settings). It would be preferable if we could avoid that, which is best done by implementing equality for that object.
There isn't urgency on this, this would largely be a convenience feature. However, it would be nice to land this before we ship 2.6.0. This is a great patch for someone who doesn't know much about HTTP/2 but wants some OSS Python to do, as this is a nicely well-defined bit of functionality: implement the equality interface for Python 2 and 3, test it, and then fix up the test merged in #452 to use it.
Anyone who wants to may take a shot at this patch.

@Lukasa, Hey,beginner here, could you please give me details, I would like make my first PR.

@bhavishyagopesh So what you'd need to do for this is as follows:

Look into how Python implements equality for user-defined objects. Generally this is done by specifying two magic methods: __eq__ and __ne__.
You'd need to implement this for the Settings class.
You'd then want to write some tests to confirm that equality works as expected.

What further detail would you need? I'm inclined to not want to initially give too much assistance so that you can do as much work on your own as possible, but if you need further help I'm happy to give it.

@Lukasa,Thanks,I will first try on my own, and in case I get stuck , I'll ask you.

@Lukasa, as you said,I added eq and ne but I couldn't understand how to write test.And also, I'm facing issues running test_h2_upgrade.py .

So to write tests you'll want to write them in the test_settings.py file. You can see several other tests in there. You want to write tests that confirm that Settings objects that should be equal are equal, and those that aren't equal aren't.
Note: to run the tests, you'll need to use a tool called tox. Using that tool may help fix your testing problems.

I wrote tests in test_settings.py, and ran tox, it showed an error involving '_validate_setting'.So should I send the pull request?

You certainly can do, and we can use the output from the CI suite to check what's going on.

I made the pull request...

tox is showing AssertionError with

"assert not s1 == s2"

not s1==s2

Resolved by #464 and #465.


Support Correlation IDs

@KrzysztofCwalina commented on Fri Jan 18 2019
We need the ability to correlate multiple requests that are part of a larger logical operation. For example, all Get requests that are part of a single polling interval in the ConfigurationWatcher

@maririos commented on Fri Feb 01 2019
Per our conversation, moving the issue out of Preview 1

@maririos commented on Mon Feb 04 2019
Notes from meeting with service team:

Can flow into the service (as the service is a middleware)
Correlation ID is cross service

Is this still relevant?

Yes. correlation id is something we need to support. @pakrym  did some work on Azure.Base to include it.
I don't think we are using it on AzConfig yet, but I have to double check.
At least add a test or something

I added support for RequestId only, we don't have anything for CorrelationId but it's still relevant.

Thanks for the clarification!

Moved to Azure.Core label and this should be done in a central way.

Moved to Azure.Core label and this should be done in a central way.

I believe we have a story here. Please confirm and then close.


Zombie chrome processes after killing container.

Expected behavior
Universe should clean up containers when done.
Actual behavior
Running ps on the host OS shows several zombie Chrome processes using all the CPU. kill -9 doesn't do anything. So it's really a Linux/Docker bug, but maybe we can shut down the container more gracefully or something.
nobody   11374 23.4  0.0      0     0 ?        Zl   02:50   7:27 [chrome] <defunct>
nobody   27072 16.7  0.0      0     0 ?        Zl   02:58   4:03 [chrome] <defunct>
nobody   27877 94.8  0.0      0     0 ?        Zl   01:38  98:32 [chrome] <defunct>
nobody   27889  0.0  0.0      0     0 ?        Z    01:38   0:00 [chrome] <defunct>
nobody   28143 16.7  0.0      0     0 ?        Zl   02:58   3:59 [chrome] <defunct>
nobody   28522 15.8  0.0      0     0 ?        Zl   02:58   3:45 [chrome] <defunct>
nobody   30523 25.6  0.0      0     0 ?        Zl   02:59   5:55 [chrome] <defunct>

Versions
Linux devbox-10-6-72-158.sci.openai.org 3.13.0-74-generic #118-Ubuntu SMP Thu Dec 17 22:52:10 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

-lxc (0.1)
autobahn (0.17.1)
constantly (15.1.0)
docker-py (1.10.3)
docker-pycreds (0.2.1)
fastzbarlight (0.0.14)
Glances (2.7.1)
go-vncdriver (0.4.19, /experiment/go-vncdriver)
gym (0.7.0, /experiment/gym)
incremental (16.10.1)
mpi4py (2.0.0)
numpy (1.11.0)
olefile (0.43)
Pillow (4.0.0)
pip (9.0.1)
protobuf (3.1.0.post1)
psutil (5.0.1)
pyglet (1.2.4)
PyYAML (3.12)
requests (2.10.0)
rethinkdb (2.3.0.post6)
scipy (0.18.1)
setuptools (20.7.0)
six (1.10.0)
tensorflow (0.12.1)
Twisted (16.6.0)
txaio (2.6.0)
ujson (1.35)
universe (0.21.1, /experiment/universe)
universe-perfmon (0.0.0, /experiment/universe-perfmon)
websocket-client (0.40.0)
wheel (0.29.0)
zope.interface (4.3.3)

Docker version 1.12.5, build 7392c3b

To be clear, the processes survive the container's termination? And the zombie processes are actually eating CPU? (Both are surprising to me.)

@gdb Yep. They're on tlb-1.devbox.sci right now.
On a previous instance of this happening, I thought all the containers were not running.
They're zombies, with the main thread waiting on exit and another thread deep in au_xino_delete_inode. So probably some AUFS deadlock. Perhaps this: https://github.com/docker/docker/issues/26942
nobody     445 47.8  0.0      0     0 ?        Zl   05:04 397:00 [chrome] <defunct>
nobody    6323 23.0  0.0      0     0 ?        Zl   05:58 178:52 [chrome] <defunct>
nobody    7264 25.4  0.0      0     0 ?        Zl   07:39 172:04 [chrome] <defunct>
nobody    8417  8.9  0.0      0     0 ?        Zl   06:20  67:50 [chrome] <defunct>
nobody   13876 49.3  0.0      0     0 ?        Zl   05:25 399:07 [chrome] <defunct>
nobody   18852 48.9  0.0      0     0 ?        Zl   05:13 401:45 [chrome] <defunct>
nobody   19917 59.4  0.0      0     0 ?        Zl   06:27 444:08 [chrome] <defunct>
nobody   20217 52.7  0.0      0     0 ?        Zl   05:13 433:08 [chrome] <defunct>
nobody   25424 45.5  0.0      0     0 ?        Zl   03:59 407:45 [chrome] <defunct>
nobody   27202 59.3  0.0      0     0 ?        Zl   06:32 440:33 [chrome] <defunct>
nobody   29921 23.9  0.0      0     0 ?        Zl   05:33 191:41 [chrome] <defunct>

Example proc state:
==> /proc/445/stack <==
[<ffffffff8106a24f>] do_exit+0x6df/0xa50
[<ffffffff8106a63f>] do_group_exit+0x3f/0xa0
[<ffffffff8106a6b4>] SyS_exit_group+0x14/0x20
[<ffffffff8173575d>] system_call_fastpath+0x1a/0x1f
[<ffffffffffffffff>] 0xffffffffffffffff

==> /proc/445/task/9103/stack <==
[<ffffffff81151325>] generic_file_aio_write+0x45/0xa0
[<ffffffff811bdd8a>] do_sync_write+0x5a/0x90
[<ffffffffa0421887>] do_xino_fwrite+0x57/0x90 [aufs]
[<ffffffffa0421c8e>] xino_fwrite.part.27+0xe/0x10 [aufs]
[<ffffffffa0421d8d>] xino_fwrite+0x6d/0x80 [aufs]
[<ffffffffa043f254>] au_xigen_inc+0x54/0xa0 [aufs]
[<ffffffffa0422b1d>] au_xino_delete_inode+0x18d/0x210 [aufs]
[<ffffffffa0433c07>] au_iinfo_fin+0xc7/0x1d0 [aufs]
[<ffffffffa041dc02>] aufs_destroy_inode+0x12/0x30 [aufs]
[<ffffffff811d9848>] destroy_inode+0x38/0x60

Fixed by upgrading kernel (our devboxes started with a very old kernel until the first reboot.)


allow_warnings during pod push

adds option to allow warnings during pod push.
for example when using ssh repo's (internal) pod push complains about
- WARN  | source: Git SSH URLs will NOT work for people behind firewalls configured to only allow HTTP, therefore HTTPS is preferred.

Looks good, thanks @hjanuschka :+1:


afl-unicorn define those same macros, leading to spurious warnings.

afl unicorn will be completely replaced

ah sorry :)

np


Pr fix keyframe

关键帧bug 修改

this pr need some cleaning up. a "fix" doesnt have 387 files changed. can you make a pr with just the changes needed for this bug fix and nothing else?

I believe this PR should be declined and closed due to lot of conflicts without explicit fix here.


How to determine what field to index on?

I understand that table_data_index allows me to determine what letters are show in the index, but how do I determine what index a field has? I dont use the default title property.

@cbetta I usually just assign letters to table sections and use those. Something like:
@my_cell_data.map{|c| c[:my_title_attribute][0]}.uniq.sort # => [ "B", "F", "G", "I", "Q" ]

Make sure to actually provide those table sections in your table_data method, rather than dumping them all into one section. Cocoa Touch will expect to jump to a section with that letter as a title.

ah, so I should use sections in my tabe_data? Got an example of that?

https://github.com/clearsightstudio/ProMotion/blob/eaa02d023389454e54e40c3113e1febd50240bd3/lib/ProMotion/table/extensions/indexable.rb#L7
It will automatically get the first letter of all the section titles if you don't use the table_data_index method :)
Just set indexable and then set the section titles and BAM! You're done!

Example here: https://github.com/clearsightstudio/ProMotion/blob/master/app/test_screens/table_screen_indexable.rb

Ah, so that's what I missed. I didnt add my code in sections. Tnx!

:+1: Glad we could help!

:heart: to ProMotion :)


Option to set show_in_menus default to True

At the moment the show_in_menus field defaults to False so the user has to manually tick the 'Show in menus' checkbox in the Promote panel for each new page that is created. However, I can't think of any sites that I've ever been involved with developing where the default scenario was for new pages to be excluded from menus. It would seem more logical then for the default to be True, with the onus being on the user to unselect the checkbox if they want to hide the page.
(Alternatively it might actually make more sense if the checkbox was labelled 'Hide from menus' and was unchecked by default.)

The core team has discussed this today - we're in favour of adding an option on a per-page-model basis to specify whether "show in menu" is initially checked for that page type.

Hey @gasman I would like to take this on.
Here is my proposed solution (wanted to check before I submitted a PR).
Please advise any changes or issues to be resolved with this, mainly around the naming of show_in_menus_default and whether it should be a class variable, method (with self) or a static method.
I have not yet got this tested with a custom testapp model, but will ensure that is in place before submitting.
wagtail/wagtailcore/models.py
    # can be overridden per page model basis
    # Note: I assumed a simple variable would be sufficient, not a function, please advise.
    show_in_menus_default = False
    show_in_menus = models.BooleanField(
        verbose_name=_('show in menus'),
        default=show_in_menus_default,
        help_text=_("Whether a link to this page will appear in automatically generated menus")
    )

wagtail/wagtailcore/tests/test_page_model.py
# will put at the end of the file
class TestShowInMenusDefaultOption(TestCase):
    """
    This tests that a page model can define the default for 'show_in_menus'
    """
    fixtures = ['test.json']

    def test_show_in_menus_default(self):
        # Check that the model default is always False
        page = Page(title='My Awesome Page', slug='my-awesome-page')
        show_in_menus_field = page._meta.get_field('show_in_menus')

        # Check that the model's field accesses the model attribute
        self.assertFalse(show_in_menus_field.default)

        # Check that the vale is available
        self.assertFalse(page.show_in_menus_default)

    def test_show_in_menus_default_override(self):
        Page.show_in_menus_default = True
        # This should be the different page model
        page = Page(title='My Awesome Page', slug='my-awesome-page')
        show_in_menus_field = page._meta.get_field('show_in_menus')

        # Check that the model's field accesses the model attribute
        # This fails currently, need to use a custom model to test this fully
        self.assertTrue(show_in_menus_field.default)

        # Check that the vale is available
        self.assertTrue(page.show_in_menus_default)

wagtail/tests/testapp/models.py
# will put at the end of the model
# having trouble with this part, need to work within a local test version for building migrations
class AlwaysShowInMenusPage(Page):
    show_in_menus_default = True

Hey there. What's the status of this one? Be cool to set this option by default true for a specific model.

Hi @lb-,
# can be overridden per page model basis
# Note: I assumed a simple variable would be sufficient, not a function, please advise.
show_in_menus_default = False
show_in_menus = models.BooleanField(
    verbose_name=_('show in menus'),
    default=show_in_menus_default,
    help_text=_("Whether a link to this page will appear in automatically generated menus")
)

I don't think this will work. The line default=show_in_menus_default will be evaluated immediately in the scope of the Page class - overriding show_in_menus_default in a subclass will have no effect, because show_in_menus has already been defined (with default=False) by that point.
More generally: the definition of the show_in_menus field is shared between all page types, so I don't think it's possible for it to have different defaults at different times.
One thing that might work is setting the field in Page.__init__, something like:
if 'show_in_menus' not in kwargs:
    self.show_in_menus = self.show_in_menus_default

Hi @gasman - thanks for the feedback, I'll give that a go and set up a test model also. Might not be for another week and a bit though.

@gasman took a bit longer for me to get back to this but I have submitted a pull request with the changes, let me know if you need anything else revised.

Isn't this one resolved with the latest release (1.11)?

Indeed. Fixed by 18cb0245fc0329e3218bd6f372a961557d4be713.


Where to find the source-code of the External Sensor Interface (ESI)?

Hello,
Our lab is currently trying to integrate more physically accurate Radar systems, with different modulations.
Therefor i was quite happy when i found out that the ESI did exist.
But i still haven't found the source code anywhere. Does anybody know what happened to the project, if it got discarded or is now available in a different name.
Described here
Thx

+1 My understanding (from the discord) is that the ESI was halted due to funding issues. If the work-in-progress code is available, would love to take a look also.

Is there any update regarding funding and current development state of the external sensor interface?


Fix timezone bug when clicking heatmap

I click date block in heatmap, but gitea shows the actions in other date. There are two actions in 2021-03-23 00:10 (GMT+8) and 2021-03-23 00:21 (GMT+8), but only if I click 2021-03-22, the actions in 2021-03-23 would be displayed (see the below screenshot).

I enabled sql log, then and I find the query date range is<PHONE_NUMBER> (2021-03-23 08:00:00 in GMT+8) to<PHONE_NUMBER> (2021-03-24 07:59:59 in GMT+8) when I click "2021-03-23" in heatmap (see the below log). The time zone of the container which runs gitea is GMT+8. I runns the official docker image gitea/gitea:1.14.0-rc2.
2021/03/24 14:47:11 ...m.io/xorm/core/db.go:286:afterProcess() [I] [SQL] SELECT `id`, `user_id`, `op_type`, `act_user_id`, `repo_id`, `comment_id`, `is_deleted`, `ref_name`, `is_private`, `content`, `created_unix` FROM `action` WHERE user_id=? AND is_deleted=? AND created_unix>=? AND created_unix<=? ORDER BY `id` DESC LIMIT 20 [1 false<PHONE_NUMBER><PHONE_NUMBER>] - 1.064742ms

You can reproduce this bug when the time zone of your server/container is not UTC.

I don't think this is the right fix. This problem has several layers (I don't fully understand it, I hope I summarize correctly):

all activities assume the same server timezone, meaning they potentially store the incorrect time for users in other timezones
the heatmap assumes timestamps in user's / browser timezone, but we pass in timestamp that is the start of day in server timezone. (or maybe the heatmap assumes UTC? need to doublecheck)
the click event uses the timestamp from the heatmap, which is incorrect due to (2)

If I understand correctly, your changes would adress problem (3).. but it doesn't consider the browser timezone.
Imho the correct fix would be to actually only store UTC timestamps in the DB (and convert already stored timestamps on activities to UTC via a migration).
To address problem (1), a user setting indicating their local timezone could be added (defaulting to server timezone).
This is a longstanding issue with several proposed patches in the comments, did you take a look at this? https://github.com/go-gitea/gitea/issues/6087

I don't think this is the right fix. This problem has several layers (I don't fully understand it, I hope I summarize correctly):

all activities assume the same server timezone, meaning they potentially store the incorrect time for users in other timezones
the heatmap assumes timestamps in user's / browser timezone, but we pass in timestamp that is the start of day in server timezone, meaning the activities show up on the wrong day in the heatmap (or maybe the heatmap assumes UTC? need to doublecheck)
the click event uses the timestamp from the heatmap, which is incorrect due to (2)

If I understand correctly, your changes would adress problem (3).. but it doesn't consider the browser timezone.
Imho the correct fix would be to actually only store UTC timestamps in the DB (and convert already stored timestamps on activities to UTC via a migration).
To address problem (1), a user setting indicating their local timezone could be added (defaulting to server timezone)
This is a longstanding issue with several proposed patches in the comments, did you take a look at this? #6087

I think it is really worth to do the work in #6087, but this pr and #13935 has nothing to do with #6087. #13935 just makes heatmap clickable, and passes "Date" parameter (converted to UTC time zone in frontend) to backend.
I think what the server should do in this pr and #13935 is just converting the "Date" parameter to unix time correctly, and this pr makes this job correct.

To really fix all time zone issues, we need to:

remove the server time zone setting
and make sure all data sent and received by the server is always in UTC

so essentially the server must not be aware of a time zone and if client wants to send/display another time zone, they need to convert from/to UTC when talking with the server.

🚀


Allow return of raw datapoints

We need a function to return non-bucketet data

Related to united-manufacturing-hub/united-manufacturing-hub#1329
There should be a toggle for the time bucket query option. If the toggle is on than the user can access a dropdown menu with the unit of measure (minutes, hours, etc) and numeric input fot the quantity. If the toggle is off than no time bucket will be used for the query

Issue blocked by https://github.com/united-manufacturing-hub/united-manufacturing-hub/issues/1335

Closed by united-manufacturing-hub/united-manufacturing-hub#1342


Type definitions

Issue
https://github.com/reasonml-community/reductive/issues/24, (revamp of https://github.com/reasonml-community/reductive/pull/42)
Description of changes
Adds type definitions discussed in https://github.com/reasonml-community/reductive/issues/24, also adds liftedStoreEnhancer for store composion (a.k.a lifting) usecase.
Purpose
Add clarify to types used in reductive.
Additional info:
I feel liftedStoreEnhancer deserves explanation. Existing mechanisms for composition in reductive are:

middleware (enhancer parameter in createStore): alters the behavior of the dispatch.
store enhancer (storeCreator composition): adds sugar to a store creator. Often used to hook external sources to dispatch action to the store.

The 'classical' storeEnhancer has a signature
type storeEnhancer('action, 'state) =
  storeCreator('action, 'state) => storeCreator('action, 'state);

While it allows to manipulate initial state and reducer, the resulting state creator state type is same as original's which does not allow to support composition. Composition gets handy when we want to compose multiple redux apps together, the definition is:
type liftedStoreEnhancer('action, 'state, 'enhancedAction, 'enhancedState) =
  (
    ~reducer: reducer('action, 'state),
    ~preloadedState: 'enhancedState,
    ~enhancer: middleware('enhancedAction, 'enhancedState)=?,
    unit
  ) =>
  store('enhancedAction, 'enhancedState);

Hypothetical example:
Let's use composite to isolate routing and localization from the core business logic.
module BaseState = {
  type t = {
    session: string
  };
};

type state = ReductiveLocale.withLocale(
  ReductiveRouter.withRouter(
    BaseState.t
  )
);

module Action = {
  type t = [
    | `DummySetSession(string)
    | `DevToolsUpdate(state)
    | ReductiveRouter.routerActions
    | ReductiveLocale.localeActions
  ];
};

let initial: state = {
  locale: Locale.En,
  state: {
    route: ReductiveRouter.initialRoute,
    state: {
      session: ""
    }
  }
};

let storeCreator: Reductive.liftedStoreEnhancer(Action.t, BaseState.t, Action.t, state) =
  ReductiveRouter.enhancer
  @@ ReductiveLocale.enhancer
  @@ devToolsEnhancer
  @@ Reductive.Store.create;

let store = storeCreator(
  ~reducer=Reducers.root,
  ~preloadedState=initial,
  ~enhancer=ReductiveObservable.middleware(epicFeeder |. Rx.BehaviorSubject.asObservable),
  ())

above store creator 'lifts' original reducer with a chain of higher-order-reducers about it, and supplies the resulting lifted initial state.
Reducers.re:
let root = (
  state: State.t,
  action
) =>
  switch(action){
  | `DummySetSession(sessionDummy) => {
    ...state,
    session: sessionDummy ++ "DUMMY"
  }
  | _ => state
  };

Lifted store enhancers are respectfully defined as:
ReductiveRouter.re
type withRouter('state) = {
  route: ReasonReact.Router.url,
  state: 'state
};

type routerActions = [
  | `RouterLocationChanged(ReasonReact.Router.url)
  | `RouterPushRoute(string)
];

let initialRoute = ReasonReact.Router.dangerouslyGetInitialUrl();

let routerReducer = reducer => (state, action) =>
  switch(action){
  | `RouterLocationChanged(route) => {
    ...state,
    route
  }
  | _ => {
    ...state,
    state: reducer(state.state, action)
  }};

let interceptPushRoute = (store, next, action) => {
  next(action);
  switch(action){
  | `RouterPushRoute(path) => ReasonReact.Router.push(path)
  | _ => ()
  };
}

let enhancer = storeCreator => (~reducer, ~preloadedState, ~enhancer=?, ()) => {
  let store = storeCreator(
    ~reducer = routerReducer @@ reducer,
    ~preloadedState,
    ~enhancer=?Some(
      enhancer
      |. Belt.Option.mapWithDefault(
        interceptPushRoute,
        middleware => ((store, next) => interceptPushRoute(store) @@ middleware(store) @@ next)
      )),
    ());

  ReasonReact.Router.watchUrl(url =>
    Reductive.Store.dispatch(
      store,
      `RouterLocationChanged({ ...url, path: url.path })
  )) |> ignore;

  store
};

ReductiveLocale.re
type withLocale('state) = {
  locale: Locale.locale,
  state: 'state
};

type localeActions = [
  `SetLocale(Locale.locale)
];

let localeReducer = reducer => (state, action) =>
  switch(action){
  | `SetLocale(locale) => {...state, locale }
  | _ => {...state, state: reducer(state.state, action)}
  };

let enhancer = (storeCreator) => (~reducer, ~preloadedState, ~enhancer=?, ()) =>
  storeCreator(
    ~reducer=localeReducer @@ reducer,
    ~preloadedState,
    ~enhancer?,
    ());

@MargaretKrutikova: what do you think?

Any chance for any feedback here?


Remove unsafe from Word parsing

This removes all of the unsafe used in the set of from_bytes functions. Due to the the presence of the assert_eq!() call, try_into().unwrap() compiles to the exact same code because the bounds check gets erased by the optimizer.
That said, the codegen without the manual bounds check results in removing over half of the instructions and cleaning up the function assembly itself too, so I removed them as well.
You can see the comparison here on Godbolt.

Thanks for taking a look. That's indeed much cleaner without the unsafe part :)


Add index generation system that uses offsets into the WACZ itself.

This proposed new py-wacz command allows you to generate a CDXJ file where the filenames and offsets refer to the WACZ itself rather than the WARC files within.
The idea is that we should be able to store the WACZ files directly without unpacking them, and use this modified CDXJ data to ingest into OutbackCDX. This should mean we can play back WACZ files as easily as we can WARCs.
Currently DRAFT:

In case I've missed something and this is a terrible idea?
Because perhaps the operation should be given a different name than just 'index'? Not sure it's the best name.
Because it needs a way to override the path prefix, and possibly even the actual WACZ name, depending on the use case.
And it should probably have some tests!

This is a pretty ingenious idea!

The CI errors don't seem to  be related to my patch?
pydantic.errors.PydanticUserError: A non-annotated attribute was detected: `version = '0.1.0'`. All model fields require a type annotation; if `version` is not meant to be a field, you may be able to resolve this error by annotating it as a `ClassVar` or updating `model_config['ignored_types']`.

Not sure what to do about that.


Windows download/config issue

When downloading files on windows it nevers creates the file with a file extension (e.g. .pdf)
Even when specify file type via config or CLI it just saves them as a file (no extension)

Hello!
Could you please provide a screenshot? Or maybe you're talking about #13 ?

It came to be that windows is really bad at handling paths with whitespaces 😞


fix: minor dev dependency updates

Description

Checklist

[ ] npm test passes
[ ] npm run build works
[ ] tests are included
[ ] documentation is changed or added

Looks like we're hitting this issue here also: https://github.com/highlightjs/highlight.js/issues/1984


libretro.pcsx2: init at unstable-2021-11-27

Motivation for this change
I was having difficult to package this core on #146958, however with the help of @jnetod I finally got it right.
Tested and working.
Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Help wanted, it is failing because it can't find the library: http://ix.io/3GhS

I tried to list all files from /build directory: http://ix.io/3Gi2
It is not building the libretro_pcsx2.so file for some reason. I think it is missing some cmakeFlags to enable building a library. However I don't have a clue what this flag should be.
I am basing the current cmakeFlags from those:

https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=libretro-pcsx2-git
https://docs.libretro.com/development/cores/core-specific/pcsx2/

Also, I tried to use cmake --build instead Makefile too, however it still didn't work (same issue). And cmake --build . --target pcsx2_libretro --config Release doesn't work because pcsx2_libretro is missing.

CC @aanderse

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

2 packages built:

libretro.pcsx2
retroarchFull

Tested with Tekken Tag Tournament:

@aanderse Done.

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

4 packages built:

libretro.dolphin
libretro.pcsx2
libretro.swanstation
retroarchFull

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

6 packages built:

libretro.beetle-saturn
libretro.dolphin
libretro.flycast
libretro.pcsx2
libretro.swanstation
retroarchFull


Pause on last slide

Hi, on this particular project I'm working on, we'd like to have the slider autoplay through the slides, but stop on the last one.  Is it possible to pause Slick on the last slide?  I have autoplay set to true and and infinite set to false.  I'm trying to use the slickPause method if the last slide in my carousel has the class of 'slick-active'... although it doesn't seem to be working.
$('.pages .slider').slick({
autoplay: true,
autoplaySpeed: 5000,
infinite: false,
});
if($('.slide.user').hasClass('slick-active')){
slickPause();
}

Thanks! Just what I was looking for.

What if the number of slides varies?

What if the number of slides varies?

@tatianafrank you can use the length of the slide


📢 Note: bilibili issues here only!

本repo仅用于处理bilibili相关的问题。如有关于Media Extended本体的问题，请在此开issue，谢谢！
This repo is only used for issues related to bilibili video playback, if you have any issue about Media Extended, please open new issues here. Thanks!

BiliBili definition is too low. What should I do?

@limrli see #5


Voyager wih the Laravel Telescope (Laravel Eco system, not only the Telescope)

Laravel version
9.40.1
PHP version
8.0.13
Voyager version
1.6
Description of problem
In the fresh project, when you install "tcg/voyager": "^1.6" & "laravel/telescope": "^4.9", your User model have extends \TCG\Voyager\Models\User, and the Telescope not work with it and show error. If you change to 'User' extends 'Authenticatable', the Telescope work, but Voyager not work :) It would be cool if you can do something with the model so that it works just
Proposed solution
I wanted the 'tcg/voyager' to work with the 'laravel/telescope' and other laravel eco products immediately after installation. Thx!
Alternatives considered
No response
Additional context
No response

Please describe the problem you're having, ideally with any error messages you see and where.  It may be easier to join our slack group to discuss further

If you go through the entire Voyager install process (including leaving the user model extending the Voyager User class), and THEN change it to Authenticatable, there's no way this would be the error you get.  This looks like you're trying to install Voyager with the User class already changed to something else.
The Voyager User model extends Authenticatable anyway, so it really shouldn't matter unless Telescope requires that you extend from some other class (which AFAIK it doesn't).  In which case, you can just manually configure your User model to match what the Voyager User model is doing for you. https://github.com/the-control-group/voyager/blob/1.6/src/Models/User.php#L12
You'll have to troubleshoot further because this isn't the issue you think it is.  Make sure you go through the entire Voyager install process and THEN install telescope (or vice versa), don't try to install them in parallel.

Voyager work perfectly and I have installed it many times, and this time it is installed completely. And it was installed first!
Yeah i now, when Voyager User model extends Authenticatable, but other models, used in this model (on screenshot), methods get error :(

In any case, I will try to somehow solve this problem and write it off here.

Again, you're welcome go join our slack group for more assistance troubleshooting.

Again, you're welcome go join our slack group for more assistance troubleshooting.

Thank you! Someday I will join, unfortunately I can’t yet due to sanctions

Again, you're welcome go join our slack group for more assistance troubleshooting.

Ok, i fix this. I update the laravel user model as screenshot

Voyager work perfectly

Telescope work perfectly

Horizon work perfectly

mb add this manual, what are add for this work fine?)


Add policy_name label to Flux Meter metrics

Why

Would help prevent clashes of same Flux Meter name used across policies

How

Add policy_name label to the metric
Add policy_name filter in PromQLs generated via blueprints

The addition of policy_name in FluxMeter metics label and in its PromQL queries in blueprints was handled as part of - https://github.com/fluxninja/aperture/commit/71957f6293e4d5cff0cd81ce4f92f2962e1e95c8

Handled in https://github.com/fluxninja/aperture/pull/2180


Fosshub - Changing to use core extension

@majkinetor this is the changes I was talking to you about.
Trying to change the Fosshub extension to use the new Get-WebContent helper method that was added to the chocolatey-core.extension.
However, when I try to run .\update.ps1 in the audacity folder locally having made these changes, I get the following:

So I changed the update.ps1 to include this:
import-module .\..\..\extensions\chocolatey-core.extension\extensions\Get-WebContent.psm1

But this then resulted in the following:

If you have a minute, can you look into what might be going on here?
Thanks!

I pushed a new version of AU that fixes this problem. I got new errors tho, but those are not related to GetWeb-Content:
Set-Content : Could not find a part of the path 'C:\Users\majkinetor\AppData\Local\Temp\chocolatey\audacity\<IP_ADDRESS>61023\ro3ojwdm.1kb.istext'.
At C:\Users\majkinetor\AppData\Local\Temp\chocolatey\au\chocolatey\helpers\functions\Get-WebFile.ps1:205 char:13
+             Set-Content -Path "$fileName.istext" -Value "$fileName ha ...
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\MAJKIN...jwdm.1kb.istext:String) [Set-Content], DirectoryNotFoundException
    + FullyQualifiedErrorId : GetContentWriterDirectoryNotFoundError,Microsoft.PowerShell.Commands.SetContentCommand

Download of ro3ojwdm.1kb (1,24 KB) completed.
Attempt to use original download file name failed for 'Audacity.html'.
Copying audacity
  from 'Audacity.html'
Copy-Item : Cannot find path 'C:\work\_chocolatey\chocolatey-coreteampackages\automatic\audacity\Audacity.html' because it does not exist.
At C:\Users\majkinetor\AppData\Local\Temp\chocolatey\au\chocolatey\helpers\functions\Get-ChocolateyWebFile.ps1:350 char:5
+     Copy-Item $url -Destination $fileFullPath -Force

@majkinetor when you say you pushed a new version, what does that mean?  Can I update through PowerShell Gallery?

No, download latest artifact, unpack it and run install.ps1.
Alternativelly, you can git clone au locally and ./build -Install.

@majkinetor okay, installed locally, after updating my clone.  Thanks!
Any thoughts on this new error then?  Is that a package issue? Or something else?

Didn't have time to investigate it yet.

Okay, not a problem.

10 [ M:1 D:0 A:0 ?:1 ]  16-10-29 17.37.31  C:\work\_chocolatey\chocolatey-coreteampackages\automatic\qbittorrent
FosshubChanges~> .\update.ps1
qbittorrent - checking updates using au version 2016.10.29
nuspec version: 3.3.7
remote version: 3.3.7
No new version found, but update is forced
New version is available
Automatic checksum started
WARNING: C:\Users\MAJKIN~1\AppData\Local\Temp\chocolatey\qbittorrent\<IP_ADDRESS>61029\4hf3nxgy.a2d is of content type text/html; charset=utf-8

Download of 4hf3nxgy.a2d (-1 B) completed.
Downloading qBittorrent 32 bit
  from 'https://download.fosshub.com/Protected/expiretime=1477755537;badurl=aHR0cDovL3d3dy5mb3NzaHViLmNvbS9xQml0dG9ycmVudC5odG1s/343790ce2028d24e7d99b8dbc3a4a8c405a2ceeae49c7f0c9b5fb390bc432c05/qBittorrent/qbittorrent_3.3.7_setup.exe'

Download of qbittorrent_3.3.7_setup.exe (15,7 MB) completed.
Package downloaded and hash calculated for 32 bit version
Updating files
  $Latest data:
    Checksum32      (String)    49ae9a0adfc3272bec38822c528f732d9495b79a2a7ca934f8c6635237b15d07
    ChecksumType32  (String)    sha256
    NuspecVersion   (String)    3.3.7
    PackageName     (String)    qbittorrent
    URL32           (String)    https://www.fosshub.com/qBittorrent.html/qbittorrent_3.3.7_setup.exe
    Version         (String)    <IP_ADDRESS>61029

  qbittorrent.nuspec
    setting id:  qbittorrent
    using Chocolatey fix notation: 3.3.7 -> <IP_ADDRESS>61029
  .\tools\chocolateyInstall.ps1
    (^[$]checksumType\s*=\s*)('.*') = $1'sha256'
    (^[$]fosshubUrl\s*=\s*)('.*') = $1'https://www.fosshub.com/qBittorrent.html/qbittorrent_3.3.7_setup.exe'
    (^[$]checksum\s*=\s*)('.*') = $1'49ae9a0adfc3272bec38822c528f732d9495b79a2a7ca934f8c6635237b15d07'
Attempting to build package from 'qbittorrent.nuspec'.
Successfully created package 'C:\work\_chocolatey\chocolatey-coreteampackages\automatic\qbittorrent\qbittorrent.<IP_ADDRESS>61029.nupkg'
Package updated

@majkinetor  Doh! Thanks for taking a look at this, and fixing it up.
I have just rebased this PR to bring it up to date with the latest master branch, and I was confused to find that the commit where I moved the packages to use the new core extension was removed.  When I checked, it looks like it already got merged into master.
This happened here:

Not entirely sure how that managed to happen, but it looks like it got pulled in when you were merging the jitsi package.
All that was left in this PR was the single commit that is still here, where you changed example.com to the correct $linkUrl variable, and another commit from you about removing accidential commit.  This commit was deleting the jitsi update.ps1 file, which I don't think we want to happen, so I removed that commit from this PR.

@majkinetor also, I still don't get the above update.ps1 to work locally, I still see the Get-WebContent error.  Have you done anything else different on your machine to get it to work?
I have updated to the latest AU version, thinking that you added something in there, but still no joy.

I was moving between branches and when quickly testing your stuff back then I accidentally pushed some of my unreleated work - so its probably merged because of it.... sorry.  I took care that it doesn't happen in the future, current branch is now VERY visible in shell.
I will recheck again to see if I can reproduce.

@majkinetor said...
current branch is now VERY visible in shell.

What changes have you made?

@majkinetor said...
I will recheck again to see if I can reproduce.

Thank you, appreciate it!

What changes have you made?

SImilar to [posh-git] but in my prompt function within my profile.d. (https://github.com/majkinetor/powershell_profile.d/blob/master/10_prompt.ps1#L13-L29).

Fixed in au.


Compile error

I downloaded a fresh copy of the repo and then followed the instructions under  but I still got the following errors.  I'm using VS2022 Version 17.12.0 (the one with .NET9, but I also have Microsoft SDK Version 8.0.404 installed.
I really want to use the SidePanel so I'm hoping this can be fixed soon.
Thanks for your great work...
The "ApplyCompressionNegotiation" task failed unexpectedly.
System.InvalidOperationException: Fingerprint for 'C:\Users\trader\Desktop\Blazor.BrowserExtension.Samples-main\Messaging\src\obj\Debug\net8.0\browserextension\build\BackgroundWorker.js' is not defined.
at Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset.Validate()
at Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset.FromTaskItem(ITaskItem item)
at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext()    at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer)    at Microsoft.AspNetCore.StaticWebAssets.Tasks.ApplyCompressionNegotiation.Execute()    at Microsoft.Build.BackEnd.TaskExecutionHost.Execute()    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() The "ApplyCompressionNegotiation" task failed unexpectedly. System.InvalidOperationException: Fingerprint for 'C:\Users\trader\Desktop\Blazor.BrowserExtension.Samples-main\Sidepanel\src\obj\Debug\net8.0\browserextension\build\browserextension.config.json' is not defined.    at Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset.Validate()    at Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset.FromTaskItem(ITaskItem item)    at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext()
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer)
at Microsoft.AspNetCore.StaticWebAssets.Tasks.ApplyCompressionNegotiation.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext()
The "ApplyCompressionNegotiation" task failed unexpectedly.
System.InvalidOperationException: Fingerprint for 'C:\Users\trader\Desktop\Blazor.BrowserExtension.Samples-main\SidebarUsingIframe\src\obj\Debug\net8.0\browserextension\build\browserextension.config.json' is not defined.
at Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset.Validate()
at Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset.FromTaskItem(ITaskItem item)
at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext()    at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer)    at Microsoft.AspNetCore.StaticWebAssets.Tasks.ApplyCompressionNegotiation.Execute()    at Microsoft.Build.BackEnd.TaskExecutionHost.Execute()    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() The "ApplyCompressionNegotiation" task failed unexpectedly. System.InvalidOperationException: Fingerprint for 'C:\Users\trader\Desktop\Blazor.BrowserExtension.Samples-main\SidebarUsingContentScripts\src\obj\Debug\net8.0\browserextension\build\browserextension.config.json' is not defined.    at Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset.Validate()    at Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset.FromTaskItem(ITaskItem item)    at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext()
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer)
at Microsoft.AspNetCore.StaticWebAssets.Tasks.ApplyCompressionNegotiation.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext()
The "ApplyCompressionNegotiation" task failed unexpectedly.
System.InvalidOperationException: Fingerprint for 'C:\Users\trader\Desktop\Blazor.BrowserExtension.Samples-main\NewTabPage\src\obj\Debug\net8.0\browserextension\build\browserextension.config.json' is not defined.
at Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset.Validate()
at Microsoft.AspNetCore.StaticWebAssets.Tasks.StaticWebAsset.FromTaskItem(ITaskItem item)
at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext()    at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer`1 comparer)
at Microsoft.AspNetCore.StaticWebAssets.Tasks.ApplyCompressionNegotiation.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext()

Does adding a global.json config to force using .Net 8 work?

No!
Her’s my global .json, which I’ve added to the same folder as Sidpanel.csproj:
{
"sdk": {
"version": "8.0.404"
}
}
I’m using the latest VS2022.
Thanks for your help….
From: mingyaulee @.>
Sent: Friday, November 22, 2024 3:55 AM
To: mingyaulee/Blazor.BrowserExtension.Samples @.>
Cc: Louis S. Berman @.>; Author @.>
Subject: Re: [mingyaulee/Blazor.BrowserExtension.Samples] Compile error (Issue #8)
Does adding a global.json config to force using .Net 8 work?
—
Reply to this email directly, view it on GitHubhttps://github.com/mingyaulee/Blazor.BrowserExtension.Samples/issues/8#issuecomment-2493227727, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABACOHGZYPGSLIXIMHMRMQD2B3WOZAVCNFSM6AAAAABSILXIBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJTGIZDONZSG4.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

I see the same issue with .NET 8

I also encounter the same error with the latest VS Version 17.12.1. I'm getting the error message in both  .Net 8 and .Net new projects.

I encountered the same issue and can confirm using the global.json file worked.  I used the following command to generate it:
dotnet new globaljson --sdk-version 8.0.307
Ran it in the same directory as the solution file and restart visual studio.

I tried southgate-rob's fix but sdk 9.0.100 which i got from running dotnet --version and it did not fix the problem. Prior to finding this thread I opened another on the actual package repo itself.

@bradleyables22 you need to set the SDK version to a .NET 8 version as the error is caused by the .NET 9 SDK as far as I understand it anyway.


lock refresh problem in btree

[btree_node_mgr.ipp:62] [btree=btree] Node lock and refresh failed

It happens when a fiber is slow.
Option 1: set ret = btree_status_t::retry  in
btree_status_t Btree< K, V >::do_put(const BtreeNodePtr& my_node, locktype_t curlock, ReqT& req)
when upgrade_node_locks returns cp_mismatch so that Btree< K, V >::put(ReqT& put_req)  makes another attempt
Option 2:  If btree put/remove is unable to upgrade the node, ask the caller to retry. So in the UT, if it cp_mismatch happens , the caller retries until it happens.


Enable users to create custom commands opening new notes with templates

🚀 The feature, motivation and pitch
I wanted to create a note template which acts as my journaling template, since the command available for a daily note is ObsidianToday, which is the only command that creates a note with todays date as title, i was wondering if it is possible to create commands like lets call it "OpenNewJournalEntry", that offers the same feature as ObsidianToday, but enables adding of custom tags, and a custom template
Alternatives
I was able to create a command in lua as keymap, but it doesnt work with obsidian.nvim together (especially opening the note like ObsidianNew or ObsidianToday does, in the obsidian vault working directory), this is the function i came up with, but i would love a connection with obsidian.nvim, to open it up in the correct folder after creating it.
 vim.api.nvim_create_user_command("OpenDailyNote", function()
        local date_format = "%Y-%m-%d"
        local obsidian_vault_dir = "~/Documents/second-brain/"
        local daily_folder = obsidian_vault_dir .. "NOTES/JOURNAL"
        local template_path = obsidian_vault_dir .. "Templates/JournalTemplate.md"
        local date = os.date(date_format)
        local note_path = vim.fn.expand(daily_folder .. "/" .. date .. ".md")
        local id = tostring(os.time())
        if vim.fn.filereadable(note_path) == 0 then
          vim.fn.mkdir(vim.fn.expand(daily_folder), "p")
          local front_matter = table.concat({
            "---",
            "id: " .. id,
            "title: " .. date,
            "tags: [journaling]",
            "---",
            "",
          }, "\n")
          local file = io.open(note_path, "w")
          file:write(front_matter)
          if template_path and #template_path > 0 then
            local template = io.open(template_path, "r")
            if template then
              local content = template:read("*all")
              file:write(content)
              template:close()
            end
          end
          file:close()
        end
      end, {}),

Additional context
No response

Hey @escapingSamsara, I would like to expand the template functionality at some point to also handle frontmatter, but in the meantime you could probably accomplish this elegantly using obsidian.nvim's Lua API. As an example, I have similar use case where I programmatically create notes corresponding to research papers. This the command I wrote to do that:
vim.api.nvim_create_user_command("NewPaper", function(ev)
  local obsidian = require "obsidian"

  ---@type obsidian.Client
  local client = obsidian.get_client()
  local corpus_id = assert(tonumber(ev.args))

  -- Get paper metadata.
  local data = get_paper_metadata(corpus_id)
  local note_title = data.title .. " (paper)"

  -- Create new note and add metadata.
  local note = client:new_note(note_title)
  note:add_tag "paper"
  note:add_alias(data.title .. " (paper)")
  note:add_field("corpus_id", data.corpus_id)
  note:add_field("url", data.url)
  note:add_field("tldr", data.tldr.text)
  note:save()

  -- Insert link to the note.
  insert_text(client:format_link(note, { label = note_title }))
end, { nargs = 1 })

------ Util functions ------

local get_paper_metadata = function(corpus_id)
  local curl = require "plenary.curl"

  local response = curl.get {
    url = string.format("https://api.semanticscholar.org/graph/v1/paper/CorpusId:%s?fields=tldr,title,url", corpus_id),
    accept = "application/json",
  }
  assert(response.status == 200)
  local data = vim.json.decode(response.body)
  data.corpus_id = corpus_id
  return data
end

local insert_text = function(text)
  local curpos = vim.fn.getcurpos()
  local line_num, line_col = curpos[2], curpos[3]

  -- Convert text to lines table so we can handle multi-line strings.
  local lines = {}
  for line in text:gmatch "[^\r\n]+" do
    lines[#lines + 1] = line
  end

  vim.api.nvim_buf_set_text(0, line_num - 1, line_col, line_num - 1, line_col, lines)
end

hi !
adding : client:open_note(note) works perfectly ! thanks for adding that in :)
i do have my daily_notes template set to this, but i did not assume that the command uses the ObsidianToday functionality under the hood, which is used by daily_notes i thought. i was thinking the created command would use an empty default note
would you mind explaining why this is different ?

It recognizes that the note title is in your specified date format for daily notes, so treats it as a daily.