Error "core_document" does not exist

Facing this error when running the command:
docker-compose run --rm jarbas python manage.py loaddatasets
tryed with and without sudo and same error occur.
Here is the error:
django.db.utils.ProgrammingError: relation "core_document" does not exist
I noticed that the file db.sqlite3 is not created.
as @cuducos pointed out:
Is your .env overriding docker-compose.yml's DATABASE_URL by any chance?
In my local .env I just replaced the line 5:
DATABASE_URL=sqlite:///db.sqlite3
by this:
DATABASE_URL=postgres://jarbas:mysecretpassword@db/jarbas
same error.

Just to clarify: once you fix the conflict in the DATABASE_URL settings did you rebuild the image so it executed the migrate in the right database?
Once that's sorted, I'd like to hear from you: what can we do (in terms of settings and documentation) to avoid this confusion?
Many thanks

Yes.
with that command:

docker-composer build --no-cache

rebuild the whole container and downloaded all prerequisites.
Looking for console msg of error I found that this table is not in migration
here is the log:

Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying admin.0001_initial... OK
Applying admin.0002_logentry_remove_auto_add... OK
Applying contenttypes.0002_remove_content_type_name... OK
Applying auth.0002_alter_permission_name_max_length... OK
Applying auth.0003_alter_user_email_max_length... OK
Applying auth.0004_alter_user_username_opts... OK
Applying auth.0005_alter_user_last_login_null... OK
Applying auth.0006_require_contenttypes_0002... OK
Applying auth.0007_alter_validators_add_error_messages... OK
Applying auth.0008_alter_user_username_max_length... OK
Applying core.0001_initial... OK
Applying core.0002_add_indexes... OK
Applying core.0003_remove_some_indexes... OK
Applying core.0004_add_receipt_url... OK
Applying core.0005_add_receipt_url_last_update... OK
Applying core.0006_lazy_backend_receipt_url... OK
Applying core.0007_add_suppliers... OK
Applying core.0008_optimize_char_field_lengths... OK
Applying core.0009_add_latitude_and_longitude... OK
Applying core.0010_extract_receipt... OK
Applying core.0011_subquota_description_length... OK
Applying core.0012_use_date_not_datetime... OK
Applying sessions.0001_initial... OK

this table "core_document" is not in the list of migrations, maybe that could be the error. Perhaps missing some migration.
It gives me the same error:

File "/usr/local/lib/python3.5/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "core_document" does not exist
LINE 1: SELECT COUNT(*) AS "__count" FROM "core_document"

by the way I left the database url untouched, just like that:

DATABASE_URL=sqlite:///db.sqlite3

So you still have conflicts in your settings (docker-compose.yml
has one value, .env has another).
Remove DATABASE_URL from .env, let docker-compose.yml alone handle
DATABASE_URL and let me know how it goes ; )
On Fri, 9 Dec 2016 at 12:52 danizavtz<EMAIL_ADDRESS>wrote:

Yes.
with that command:
docker-composer build --no-cache
rebuild the whole container and downloaded all prerequisites.
Looking for console msg of error I found that this table is not in
migration
here is the log:
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying admin.0001_initial... OK
Applying admin.0002_logentry_remove_auto_add... OK
Applying contenttypes.0002_remove_content_type_name... OK
Applying auth.0002_alter_permission_name_max_length... OK
Applying auth.0003_alter_user_email_max_length... OK
Applying auth.0004_alter_user_username_opts... OK
Applying auth.0005_alter_user_last_login_null... OK
Applying auth.0006_require_contenttypes_0002... OK
Applying auth.0007_alter_validators_add_error_messages... OK
Applying auth.0008_alter_user_username_max_length... OK
Applying core.0001_initial... OK
Applying core.0002_add_indexes... OK
Applying core.0003_remove_some_indexes... OK
Applying core.0004_add_receipt_url... OK
Applying core.0005_add_receipt_url_last_update... OK
Applying core.0006_lazy_backend_receipt_url... OK
Applying core.0007_add_suppliers... OK
Applying core.0008_optimize_char_field_lengths... OK
Applying core.0009_add_latitude_and_longitude... OK
Applying core.0010_extract_receipt... OK
Applying core.0011_subquota_description_length... OK
Applying core.0012_use_date_not_datetime... OK
Applying sessions.0001_initial... OK
this table "core_document" is not in the list of migrations, maybe that
could be the error. Perhaps missing some migration.
It gives me the same error:
File "/usr/local/lib/python3.5/site-packages/django/db/backends/utils.py",
line 64, in execute
return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "core_document" does not exist
LINE 1: SELECT COUNT(*) AS "__count" FROM "core_document"
by the way I left the database url untouched, just like that:
DATABASE_URL=sqlite:///db.sqlite3
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/datasciencebr/jarbas/issues/60#issuecomment-266031847,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AEg388OOs7YCmjJY9WQVB6KoSv0XsMCDks5rGWsvgaJpZM4LI6Bh
.

BTW, core_document is there (check core.0001_initial ; )

I was debugging and noticed maybe a problem.
When i finish to build all the instances of the docker-compose. I receive this msg from terminal:

jarbas_db_1 is up-to-date
jarbas_elm_1is up-to-date
jarbas_jarbas_1 is up-to-date
jarbas_nginx_1 is up-to-date

But when i run the command:

docker-compose ps

it gives me this status:

jarbas_db_1       /docker-entrypoint.sh postgres   Up       5432/tcp
jarbas_elm_1      cp -r jarbas/frontend/stat ...   Exit 1
jarbas_jarbas_1   gunicorn jarbas.wsgi:appli ...   Up
jarbas_nginx_1    nginx -g daemon off;             Up       443/tcp, <IP_ADDRESS>:80->80/tcp

Maybe that could be the problem because this error ocur just in the instance jarbas_elm

Starting jarbas_elm_1
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
psycopg2.ProgrammingError: relation "core_document" does not exist
LINE 1: SELECT COUNT(*) AS "__count" FROM "core_document"

I'm struck on the same error.

This is not an error. The Elm container generates the app.js and passes away. That's the way it is. Have you tried what I suggested you before? That's what is at the core of your problem.

Yes i 've tryed, same error occur, i just deleted the line containing the databaseurl.
@cuducos There is one strange thing, there is a container for a postgres version 9.6
But the migration of the database is being done in a postgres 9.4 as i can see in the logs.

Creating
config file /etc/postgresql-common/createcluster.conf with new version
Creating config file /etc/logrotate.d/postgresql-common with new version
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
Removing obsolete dictionary files:
invoke-rc.d: policy-rc.d denied execution of start.
Setting up postgresql-9.4 (9.4.9-0+deb8u1) ...
Creating new cluster 9.4/main ...
config /etc/postgresql/9.4/main
data   /var/lib/postgresql/9.4/main
locale C
port   5432
update-alternatives: using /usr/share/postgresql/9.4/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode
invoke-rc.d: policy-rc.d denied execution of start.
Setting up postgresql (9.4+165+deb8u1) ...
Setting up postgresql-contrib-9.4 (9.4.9-0+deb8u1) ...
Setting up postgresql-contrib (9.4+165+deb8u1) ...
Setting up psmisc (22.21-2) ...
Processing triggers for systemd (215-17+deb8u5) ...
Processing triggers for libc-bin (2.19-18+deb8u6) ...
---> cb0608062cd0
Removing intermediate container 46337cb51b5e
Step 6 : COPY .env /code/.env
---> 926c6defb73f
Removing intermediate container 48f68116157f
Step 7 : COPY manage.py /code/manage.py
---> 41eaa51e9e26
Removing intermediate container c82de3d4ad0b
Step 8 : COPY jarbas /code/jarbas
---> abdd18e5e19a
Removing intermediate container 2be8a95b4375
aV5SWNF6

Step 9 : WORKDIR /code
---> Running in ee573a3934d7
---> 309a1ac71361
Removing intermediate container ee573a3934d7
Step 10 : RUN python manage.py migrate

--> here goes the migration. and it runs with success..
I think is better try without the docker stuff.

@danizavtz can you try this:

docker-compose rm db
check if env vars are same on .env and docker-compose.yaml
docker-compose up -d

@danizavtz, please, sorry for my bad answer, testing here the same error occurred, I am try to discover the problema and I will return with the solution.

@danizavtz I found the solution:
Before run docker-compose run --rm jarbas python manage.py loaddatasets run this: docker-compose run --rm jarbas python manage.py migrate
look this my test:
$ docker exec jarbas_jarbas_1 python manage.py loaddatasets
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/site-packages/django/db/backends/utils.py", line 64, in execute
    return self.cursor.execute(sql, params)
psycopg2.ProgrammingError: relation "core_document" does not exist
LINE 1: SELECT COUNT(*) AS "__count" FROM "core_document"
                                          ^

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "manage.py", line 22, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.5/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.5/site-packages/django/core/management/__init__.py", line 359, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.5/site-packages/django/core/management/base.py", line 294, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.5/site-packages/django/core/management/base.py", line 345, in execute
    output = self.handle(*args, **options)
  File "/code/jarbas/core/management/commands/loaddatasets.py", line 22, in handle
    print('Starting with {:,} documents'.format(Document.objects.count()))
  File "/usr/local/lib/python3.5/site-packages/django/db/models/manager.py", line 85, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "/usr/local/lib/python3.5/site-packages/django/db/models/query.py", line 369, in count
    return self.query.get_count(using=self.db)
  File "/usr/local/lib/python3.5/site-packages/django/db/models/sql/query.py", line 476, in get_count
    number = obj.get_aggregation(using, ['__count'])['__count']
  File "/usr/local/lib/python3.5/site-packages/django/db/models/sql/query.py", line 457, in get_aggregation
    result = compiler.execute_sql(SINGLE)
  File "/usr/local/lib/python3.5/site-packages/django/db/models/sql/compiler.py", line 835, in execute_sql
    cursor.execute(sql, params)
  File "/usr/local/lib/python3.5/site-packages/django/db/backends/utils.py", line 64, in execute
    return self.cursor.execute(sql, params)
  File "/usr/local/lib/python3.5/site-packages/django/db/utils.py", line 94, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/usr/local/lib/python3.5/site-packages/django/utils/six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "/usr/local/lib/python3.5/site-packages/django/db/backends/utils.py", line 64, in execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "core_document" does not exist
LINE 1: SELECT COUNT(*) AS "__count" FROM "core_document"
                                          ^

george@george-ubuntu:~/workspace/datasciencebr/jarbas$ docker-compose run --rm jarbas python manage.py migrate
Creating volume "jarbas_staticfiles" with default driver
Creating volume "jarbas_db" with default driver
Creating volume "jarbas_assets" with default driver
Starting jarbas_elm_1
Creating volume "jarbas_staticfiles" with default driver
Creating volume "jarbas_db" with default driver
Creating volume "jarbas_assets" with default driver
Operations to perform:
  Apply all migrations: admin, auth, contenttypes, core, sessions
Running migrations:
  Applying contenttypes.0001_initial... OK
  Applying auth.0001_initial... OK
  Applying admin.0001_initial... OK
  Applying admin.0002_logentry_remove_auto_add... OK
  Applying contenttypes.0002_remove_content_type_name... OK
  Applying auth.0002_alter_permission_name_max_length... OK
  Applying auth.0003_alter_user_email_max_length... OK
  Applying auth.0004_alter_user_username_opts... OK
  Applying auth.0005_alter_user_last_login_null... OK
  Applying auth.0006_require_contenttypes_0002... OK
  Applying auth.0007_alter_validators_add_error_messages... OK
  Applying auth.0008_alter_user_username_max_length... OK
  Applying core.0001_initial... OK
  Applying core.0002_add_indexes... OK
  Applying core.0003_remove_some_indexes... OK
  Applying core.0004_add_receipt_url... OK
  Applying core.0005_add_receipt_url_last_update... OK
  Applying core.0006_lazy_backend_receipt_url... OK
  Applying core.0007_add_suppliers... OK
  Applying core.0008_optimize_char_field_lengths... OK
  Applying core.0009_add_latitude_and_longitude... OK
  Applying core.0010_extract_receipt... OK
  Applying sessions.0001_initial... OK

george@george-ubuntu:~/workspace/datasciencebr/jarbas$ docker-compose run --rm jarbas python manage.py loaddatasets
Creating volume "jarbas_staticfiles" with default driver
Creating volume "jarbas_db" with default driver
Creating volume "jarbas_assets" with default driver
Starting jarbas_elm_1
Creating volume "jarbas_staticfiles" with default driver
Creating volume "jarbas_db" with default driver
Creating volume "jarbas_assets" with default driver
Starting with 0 documents
Loading https://s3-sa-east-1.amazonaws.com/serenata-de-amor-data/2016-08-08-current-year.xz
/usr/local/lib/python3.5/site-packages/django/db/models/fields/__init__.py:1430: RuntimeWarning: DateTimeField Document.issue_date received a naive datetime (2016-02-15 00:00:00) while time zone support is active.
  RuntimeWarning)

Intersting, @gwmoura!

Before running docker-compose run --rm jarbas python manage.py loaddatasets run this: docker-compose run --rm jarbas python manage.py migrate

The migrate command should be ran by the Dockerfile — any idea why it's not running/it's not effective?

@cuducos I think it's occurs because the migrate command is runned on build process, I'm gonna do more tests to discover a solution.

You are correct @gwmoura! That migrate work well with sqlite, but breaks with postgres. I will send a PR soon to solve that.

Thanks @gomex 😁
Em qua, 14 de dez de 2016 20:36, Rafael Gomes<EMAIL_ADDRESS>escreveu:

You are correct @gwmoura https://github.com/gwmoura! That migrate work
well with sqlite, but breaks with postgres. I will send a PR soon to solve
that.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/datasciencebr/jarbas/issues/60#issuecomment-267190914,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABEQYaCYsuHMKbXs-7oVmjy_Q9T2tLpgks5rIH1vgaJpZM4LI6Bh
.

--
George Moura
(71) 98788-6089
Desenvolvedor Web e Mobile
www.georgemoura.com.br http://www.georgemoura.com.br/

@gomex the problem can be here on jarbas/settings.py
# Database
# https://docs.djangoproject.com/en/1.10/ref/settings/#databases

default_db = 'sqlite:///' + os.path.join(BASE_DIR, 'db.sqlite3')
DATABASES = {
    'default': config('DATABASE_URL', default=default_db, cast=parse)
}

setting the ENV DATABASE_URL to postgres, before the build, can solve

About SQLite and Postgres:
Actually this snippet pasted by @gwmoura is a bug created by 7365807 (from this commit and on Postgres is required due to the usage o jsonb column type). However this might not explain why @danizavtz was having troubles in the first place (this commit was merged to master yesterday). Yet the DATABASE_URL is set to Postgres before the build in the docker-compose.yml, isn't it @gomex? What am I getting wrong here?
Regarding the bug I think I'm going to remove default_db and the default argument from jarbas/settings.py to kind of force people to set their databases explicitly as envvar or in .env file.
@danizavtz I', still waiting for you to share the output of:
$ cat .env | grep DATABASE_URL
$ cat docker-compose.yml | grep DATABASE_URL
$ echo $DATABASE_URL

Here is the output:

at .env cat .env
vazio
cat docker-compose.yml | grep DATABASE_URL
DATABASE_URL=postgres://jarbas:mysecretpassword@db/jarbas
echo $DATABASE_URL
vazio

@gwmoura it works.
Followed your instructions I could download all data, and migrations run with success

Yet the DATABASE_URL is set to Postgres before the build in the docker-compose.yml, isn't it @gomex? What am I getting wrong here?

The problem is that ENV from docker-compose is not use by build time. Just when the container is running after image is done! We need to fix that.

The problem is that ENV from docker-compose is not use by build time. Just when the container is running after image is done! We need to fix that.

As the Postgres address is hardcoded anyway, can we just move it from docker-compose.yml to Dockerfile? Or then when Docker Compose bring them up the DATABASE_URL will be missing?

I created a PR to solve that: https://github.com/datasciencebr/jarbas/pull/70

Many thanks, @gomex. Fingers crossed here, @danizavtz ; )

Did you solve your problem @danizavtz ?

@gomex how to initialize the project with the docker?
I could finish the instructions to migrate the database and run all the commands, but when I run the browser using the address:

localhost:80

I do no see the default page with the data.
Should I run another command?

@gomex how to initialize the project with the docker?
I could finish the instructions to migrate the database and run all the commands, but when I run the browser using the address:

Do you use linux? If your answer is yes, you can use make:
make run.devel

If you don't use linux, please read the README file.

It works.
In step 6, caused an error (after i run the command make run.devel).
I still have to keep the .env file.
See the log.
(without the .env file)

Removing intermediate container ed54ea997431
Step 6 : COPY .env /code/.env
ERROR: Service 'jarbas' failed to build: lstat .env: no such file or directory
Makefile:2: recipe for target 'run.jarbas' failed

after I put the .env file correctly i could see the localhost:80 page. Thanks.

Good to know @danizavtz! Many thanks for reporting the bug.
In ended up that this last bug was the other one you reported (#59), so we catch up there.
@gomex Once more thanks for the follow up, for the PR that fixed the issue and for the support ; )


Paused video automatically starts playing when WIFI is being connected

Description
When a video from the Mediathek is paused and a WIFI connects, the video starts playing.
This even happens when the app is in the background and the phone is locked.
Example
An example will illustrate the severity of the problem:
I was watching a video in the app at home over WIFI. Then paused the video and went to work. On the way I had no internet.
In the middle of a meeting, the phone connected to the work WIFI. The paused video automatically started playing in the background at full volume! I had to search for my phone, enter my pin code to unlock it, search for the app and press the pause button to make it stop.
That was quite an uncomfortable situation.
Thank god, there is no pr0n is the Mediathek. The effect would be devastating!
How to reproduce

Play random video from the Mediathek
Pause the video
Disconnect WIFI
Connect WIFI
Effect: Video starts playing without any user interaction

System Information

OS: LineageOS 14.1-20181005-jfltexx (Android 7.1.2)
App: Zapp 1.11.1 (via F-Droid)

Thank you very much for your detailed bug report!
I had the same issue at night during sleep, but was not able to reproduce it. There will be a major rewrite of the player functionality which will hopefully fix this issue.


Adding password reseting functionality

Also you may have missed the non-line comments in my original review. There remain feature issues with email flooding.

Sorry, my mistake: I never posted those comments.  So here goes.
There is a trivial email-flooding attack on this implementation.  If I know<EMAIL_ADDRESS>has an account, I can flood the lakeFS server with "forgot password" requests.  This has a >>10x amplification factor (I send >> 10x fewer bytes than lakeFS will, possible even 100x fewer).
What can I attack with this?

<EMAIL_ADDRESS>mailbox.
The operator (who will get notified of abuse)
lakeFS (which may get cut off from emailing by the email provider)
lakeFS (which may end up being marked as spam by its users)

Typically features such as this one have a rate-limiter built into them.  We can either use an existing rate-limiter or write our own -- maybe initially even just in memory.  But something has to prevent unlimited password reset requests.

LGTM, please create an issue and address the missing test code.


feat(scripts): add component release script

Replaces the manual component release process with a single shell script that executes in a "dry run" mode by default.
Documentation changes are in deis/workflow#535.
Requires deis/deisrel#137.

@vdice I shamefully gave on up TDD-ing this while reading the bats docs, but having tests would obviously be preferable. Ditto for new_workflow_charts.sh.
There's no rush to merge this, so let's do write some tests for it.

Replaced by deis/deisrel#140.


[ci] allow running vm based e2e tests on the CI

What does this PR do?

run ssh-agent before running new e2e tests on the CI
register the ssh private key associated to the public key registered in agent-qa key store

Motivation

VM e2e tests require an ssh connection to setup the instances with Pulumi, the ssh key must be registered in the runner ssh agent, otherwise Pulumi ssh connection does not work
Additional Notes

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

Reviewer's Checklist

[ ] If known, an appropriate milestone has been selected; otherwise the Triage milestone is set.
[ ] Use the major_change label if your change either has a major impact on the code base, is impacting multiple teams or is changing important well-established internals of the Agent. This label will be use during QA to make sure each team pay extra attention to the changed behavior. For any customer facing change use a releasenote.
[ ] A release note has been added or the changelog/no-changelog label has been applied.
[ ] Changed code has automated tests for its functionality.
[ ] Adequate QA/testing plan information is provided if the qa/skip-qa label is not applied.
[ ] At least one team/.. label has been applied, indicating the team(s) that should QA this change.
[ ] If applicable, docs team has been notified or an issue has been opened on the documentation repo.
[ ] If applicable, the need-change/operator and need-change/helm labels have been applied.
[ ] If applicable, the k8s/<min-version> label, indicating the lowest Kubernetes version compatible with this feature.
[ ] If applicable, the config template has been updated.

We could not have it working without ssh agent,  could you address me to doc links on how it should be configured?


Gap filling doesn't seems to work Java "OutOfBoundsException" error

Basic information

My operating system: Windows 10 Home Version 21H1
My MZmine version: 3.0.21 beta
My CPU: Intel Core i7-9700K
RAM: 32 GB at 3200 MHz

What happened
First I had problems with RANSAC alignment module. I uninstalled and install it again. When RANSAC it's completed, I tried to perform a GAP Filling but I always get this error message:
"Unhandled exception in task Gap filling RANSAC using RT and m/z range: java.lang.IndexOutOfBoundsException (NativeConstructorAccessorImpl.java:-2)
And anything happens after that.
MMZmine parameters for Gap Filling:

Error screenshot:

Thank you in advance for your help and support.

Thanks for the report, documented the error in another issue.

Seemed to not be in the tested functions.
I would also recommend the peak finder, which is a bit more advanced but should also perform better.

Seemed to not be in the tested functions. I would also recommend the peak finder, which is a bit more advanced but should also perform better.

I would try peak finder. Thank you so much


Selected category in menu reorder when equal number of items

When selecting an item from the menu widget which has a similar number of items as other items in the menu, it is reordered which is rather unexpected

Thanks for the bug report, we will have a look asap


Allow generation of unlabelled trees from the command-line

A label model is currently mandatory.

Fixed with d520bcc


Automatically execute setup

The issue I was having was when trying to use assertly-sinon with this. I had to execute Assert.setup() prior to registering the addon. This wasn't documented so instead added checks to automatically execute setup prior to registering an addon so the defaults are there. If the addon were to add modifiers, Assert.registry would be there and therefor setup wasn't going to get executed in the constructor.
I think having the defaults already setup prior to registering any addons would be beneficial.

The OP you mentioned is a bit interesting. That doesn't sound right to me and so would be a bug...

I think I see now - we probably need that same if check inside register() when it is about to process an addon function


Romario

Criação da tabela com estatisticas dos dispositvos.

Reviewing your code I noticed some problems, they may be related to the lack of updating of your branch, or even because of the use of "git add .". We are studying what will be the best approach to resolve conflicts.


opentype-sanitizer: 9.1.0 -> 9.2.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/khaledhosny/ots/releases.
meta.description for opentype-sanitizer is: Sanitizing parser for OpenType fonts
meta.homepage for opentype-sanitizer is: https://github.com/khaledhosny/ots
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 9.2.0 with grep in /nix/store/1jz7nwaxa7s7cd4imffvv863ashf06m4-opentype-sanitizer-9.2.0
found 9.2.0 in filename of file in /nix/store/1jz7nwaxa7s7cd4imffvv863ashf06m4-opentype-sanitizer-9.2.0

Rebuild report (if merged into master) (click to expand)

11 total rebuild path(s)

11 package rebuild(s)

First fifty rebuilds by attrpath

fontbakery
opentype-sanitizer
python311Packages.fontbakery
python311Packages.gftools
python311Packages.notobuilder
python311Packages.ots-python
python312Packages.fontbakery
python312Packages.gftools
python312Packages.notobuilder
python312Packages.ots-python

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/1jz7nwaxa7s7cd4imffvv863ashf06m4-opentype-sanitizer-9.2.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A opentype-sanitizer https://github.com/r-ryantm/nixpkgs/archive/ada8ac66a944e247aca1fdd4a5c055eb0670eb49.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/ada8ac66a944e247aca1fdd4a5c055eb0670eb49#opentype-sanitizer

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/1jz7nwaxa7s7cd4imffvv863ashf06m4-opentype-sanitizer-9.2.0
ls -la /nix/store/1jz7nwaxa7s7cd4imffvv863ashf06m4-opentype-sanitizer-9.2.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review

x86_64-linux

:x: 4 packages failed to build:

python311Packages.notobuilder
python311Packages.notobuilder.dist
python312Packages.notobuilder
python312Packages.notobuilder.dist

:white_check_mark: 13 packages built:

fontbakery (python312Packages.fontbakery)
fontbakery.dist (python312Packages.fontbakery.dist)
opentype-sanitizer
python311Packages.fontbakery
python311Packages.fontbakery.dist
python311Packages.gftools
python311Packages.gftools.dist
python311Packages.ots-python
python311Packages.ots-python.dist
python312Packages.gftools
python312Packages.gftools.dist
python312Packages.ots-python
python312Packages.ots-python.dist

Maintainer pings
cc @danc86 for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

Add a :+1: reaction to pull requests you find important.

@NixOS/nixpkgs-merge-bot merge


Training data not available

Hi,
Does it possible to share training data as well?
Thanks in advance

Hi @grigvardanyan, due to the project funding agreement, we are not able to share the training data. We will update once data release is possible.


Move bls and kzg specific types to their specific modules

Motivation

Description

solves #849
Closes #issue_number

This is super weird. I changed my branch.


:bug: transformers_default_cfg is not in use

https://github.com/nicolay-r/quick_cot/blob/f3b194c1678197b8ffdacfa754d6b3d91fff6b68/infer.py#L56-L80

Duplicated to #16 now


Appstudio update test-component-pac-ecti

Pipelines as Code configuration proposal
To start the PipelineRun, add a new comment with content /ok-to-test
For more detailed information about running a PipelineRun, please refer to Pipelines as Code documentation Running the PipelineRun
To customize the proposed PipelineRuns after merge, please refer to Build Pipeline customization

Pipelines as Code CI/test-component-pac-ecti-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
6 seconds
init

✅ Succeeded
17 seconds
clone-repository

✅ Succeeded
19 seconds
sast-snyk-check

✅ Succeeded
1 minute
build-container

✅ Succeeded
29 seconds
inspect-image

✅ Succeeded
29 seconds
deprecated-base-image-check

✅ Succeeded
10 seconds
sbom-json-check

✅ Succeeded
51 seconds
clamav-scan

✅ Succeeded
4 minutes
clair-scan

✅ Succeeded
7 seconds
show-summary

✅ Succeeded
7 seconds
show-sbom

Pipelines as Code CI/test-component-pac-ecti-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
6 seconds
init

✅ Succeeded
17 seconds
clone-repository

✅ Succeeded
1 minute
build-container

✅ Succeeded
19 seconds
sast-snyk-check

✅ Succeeded
29 seconds
inspect-image

✅ Succeeded
29 seconds
deprecated-base-image-check

✅ Succeeded
10 seconds
sbom-json-check

✅ Succeeded
4 minutes
clair-scan

✅ Succeeded
51 seconds
clamav-scan

✅ Succeeded
7 seconds
show-sbom

✅ Succeeded
7 seconds
show-summary

Pipelines as Code CI/test-component-pac-ecti-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
5 seconds
init

✅ Succeeded
19 seconds
clone-repository

✅ Succeeded
26 seconds
sast-snyk-check

✅ Succeeded
24 seconds
build-container

✅ Succeeded
9 seconds
inspect-image

✅ Succeeded
16 seconds
clair-scan

✅ Succeeded
44 seconds
clamav-scan

✅ Succeeded
8 seconds
deprecated-base-image-check

✅ Succeeded
8 seconds
sbom-json-check

✅ Succeeded
9 seconds
show-sbom

✅ Succeeded
8 seconds
show-summary


Resolve unused code warnings on non-x86

The LRF SIMD module is effectively empty on non-x86 targets.

Coverage remained the same at 82.727% when pulling d306f89ab4ddd974b9b1ddde731047e1a23d15fa on barrbrain:non-x86-unused into 6a0dcbe6f82b8dffe2dc57378d0b2bab00993f0f on xiph:master.


Adding example that shows how to generate cover letter from cv

Summarise a CV (resume.txt) then generate a cover letter from this CV - user will be prompted to enter a job description and this will also be used when generating the cover letter.

Excellent project - thanks so much for contributing and sharing this!


Update app-insights-platforms.md

Reworked the page, split out CMS integrations, clear up duplicates, and generalized Export section (into Export and Data Analytics)
Added a link to upcoming post from Alooma

Hi @OlegAnaniev-MSFT, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no contribution license agreement is required at this point. Real humans will now evaluate your PR.

TTYL, AZPRBOT;

I merged these changes into a new PR: https://github.com/Azure/azure-content-pr/pull/18235
Sandbox: https://acom-sandbox.azurewebsites.net/en-us/documentation/articles/app-insights-platforms/?rnd=1
Oleg, please close this one.


Fix windev.ps1 self-elevation logic and refactor code

Type of Change

[ ] New feature
[x] Bug fix
[ ] Documentation update
[x] Refactoring
[ ] Hotfix
[ ] Security patch
[x] UI/UX improvement

Description
Problem
WinUtil Dev currently doesn't launch correctly when run as a non-elevated user.
The following error occurs when running irm https://christitus.com/windev | iex without elevation:

Changes
Summary

Updated windev.ps1 to use Invoke-RestMethod <url> -OutFile <file_path> instead of using Invoke-RestMethod directly.
Updated windev.ps1 to use Start-Process instead of Invoke-Expression when launching the downloaded WinUtil script.
Updated windev.ps1 to no longer re-download WinUtil every time; now it only re-downloads when releases are modified.

Testing
I conducted thorough testing using both local execution and remote execution.
For remote execution, I used npm's http-server package to serve the script's directory with the following command:
http-server -c-1 C:\Users\#####\NoSync\Projects\Cryostrixx\forks\winutil\.staging\fix-windev-admin-elevation.
Results
Local Execution
Command: .\windev.ps1
Result: WinUtil launches successfully with no errors.

Command: .\windev.ps1 -Config "C:\Users\#####\Documents\Configs\winutil.json"
Result: WinUtil launches successfully and imports my config with no errors.

Remote Execution
Command: iex "& { $(irm http://<IP_ADDRESS>:4300/windev.ps1) }":
Result: WinUtil launches successfully with no errors.

Command: iex "& { $(irm http://<IP_ADDRESS>:4300/windev.ps1) } -Config 'C:\Users\#####\Documents\Configs\winutil.json'"
Result: WinUtil launches successfully and imports my config with no errors.

Impact

Revised the synopsis at the top of the script to clarify changes and provide basic usage examples.
Implemented the Get-WinUtilReleaseTag function to return the latest matching tag for WinUtil.

Supports both stable and pre-release tags, falling back to the latest tag when no releases are found.

Implemented the Get-WinUtilReleaseURL function to return the download URL for the latest release of WinUtil.

Supports stable and pre-release URLs, and uses the latest release URL when no releases are found.

Implemented the Get-LatestWinUtil function to download WinUtil to winutil.ps1 in the $env:TEMP directory.
Implemented the Get-WinUtilUpdates function for updates, ensuring WinUtil is only re-downloaded when modified:

Supports upgrading WinUtil if the version of the remote script is newer than the version of the downloaded script.
Supports downgrading WinUtil if the version of the remote script is older than the version of the downloaded script.

Implemented the Start-LatestWinUtil function for smoother launching of WinUtil using the appropriate process:

Windows PowerShell/PowerShell Core running in Windows Terminal.
Windows PowerShell/PowerShell Core running as a standalone app.

Corrected the argument support to allow passing the arguments -Run, -Config, and -Debug correctly.

Issues related to PR

Fixes #2765

Additional Information
None.
Checklist

[x] My code adheres to the project's coding and style guidelines.
[x] I have performed a self-review of my own code.
[x] I have commented on my code, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to the documentation.
[x] My changes generate no errors/warnings/merge conflicts.

Hello, @momcilovicluka! Thank you for the feedback! I wanted to let you know that I plan to retain a small amount of my original comments and code, but I’m currently working on adding your suggestions to the script.

Hello, @momcilovicluka! I implemented your changes, thanks so much for the feedback! I've requested a review so you can take a look at them.

Hello, @momcilovicluka! I've finalized the PR with four out of the five changes you suggested, if the changes look good to you can you please approve them?

Hi @Cryostrixx 👋. Thank you for the kind words, you are really wholesome. I turned of the pc for the day as it's nighttime in my timezone, but I'll make sure to review first thing in the morning. I assume you already tested the changes in different ways to ensure everything is working correctly, so you can work on something else in the meantime. I'll review in about 8 hours.

Hi @Cryostrixx 👋. Thank you for the kind words, you are really wholesome. I turned of the pc for the day as it's nighttime in my timezone, but I'll make sure to review first thing in the morning. I assume you already tested the changes in different ways to ensure everything is working correctly, so you can work on something else in the meantime. I'll review in about 8 hours.

You're correct, I did that testing during development, I had to simulate the condition for the testing but considering the rest of it works it's safe to say pre-releases would work as well.


Add Dimitri to turbo-orchestrator.

Description
Adding our newest core teammate!

Merging past these hanging checks. It looks like @mehulkar is working on those in #8730 and they're unrelated to the changes in this PR.


Fix sim test log and enable metrics

Motivation
2 fixes from developing gossip pull queues
Description

Fix typo in sim test log
Allow to enable metrics with ENV
Log stdout file path

CC: @nazarhussain

Seems good but let's get this PR merged first https://github.com/ChainSafe/lodestar/pull/5120, as it will create a lot of conflicts.

Seems good but let's get this PR merged first #5120, as it will create a lot of conflicts.

But this PR is just 12 lines

@dapplion @nazarhussain is anyone going to fix the conflicts?

@nazarhussain Would you mind taking over this PR and re-apply on the new logic?

Stale PR, closing for now. @nazarhussain please re-open if this fixes have not still landed


Multile web roles in Azure Cloud Service

Hi,
We used the Orchard.Azure.sln to deploy Orchard to Azure Cloud service with two roles enabled. We configurated the Azure Media Storage, Output cache and db cache correctly according to the documentation at http://docs.orchardproject.net/Documentation/Deploying-Orchard-to-Windows-Azure
The issue we found is that the enabled modules in two roles do not seem to be synchronized (We enabled Module ImportExport in role1, but if we keep hitting F5, if we hit the second web role instance, we can see this module is not listed on the sidebar menu.)
Is this a known issue?

Yes, you'll need to make such change propagate somehow. You can use the built-in Message Bus module on Orchard 1.9+ for this or https://orcharddistributedevents.codeplex.com/ if you're on prior versions.
So this is not an issue but the documentation should be updated.


Align Installation Error

I'm facing an issue when trying to install the ALIGN tool. I've also attached the image of the error below. Thanks for any help offered.
Error:
subprocess-exited-with-error
× Building wheel for align (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> See above for output.
Python Version: 3.9.7
GCC Version: 9.3.0
Pip version: 23.1.2
Commands:

cd ALIGN-public
python -m venv general
source general/bin/activate.csh
python -m pip install pip --upgrade
pip install -v .

You mentioned the python version you are using is 3.9.7. The install uses version 3.7 in the log image you shared. Can you please check the version of python used to create the virtual environment?

It was my mistake. My gcc and g++ variables were not set up correctly and thus getting these pointed to the correct directories fixed the problem. All is installed correctly now :) Thanks for the help!


view update before installing

It would be great to be able let user view diff of auto-update before  it's applied. I'm always worried about security in oh-my-zsh. If somebody gets into your github account, many many computers can be affected.
Yes, it does ask if I want to perform update, but how can I make a reasonable decision if I know nothing about it.
Also, thanks for great work.

+1


Additional Dunning (DK3, X2C, & wCV for actinides, X2C for H-Ar)

cc-pVnZ-DK3, -X2C, and wCV variants for actinides (available on ccRepo)
Includes some -PP basis sets for Th, Pa, U
Also includes X2C for H-Ar

Completed in 9d8411f7338a3a9c71c26f0632f4fd501e1c64ad


add xss filter.

#2400

Current coverage is 40.19% (diff: 0.00%)

Merging #2401 into master will decrease coverage by 0.04%

@@             master      #2401   diff @@
==========================================
  Files          1629       1629
  Lines         57077      57083     +6
  Methods       11103      11103
  Messages          0          0
  Branches       7866       7869     +3
==========================================
- Hits          22967      22946    -21
- Misses        34110      34137    +27
  Partials          0          0

Powered by Codecov. Last update 870ffa4...37063f3


Product menu should display at first position in Catalog grid.

Framework Version: 0.1.6

Framework  Version: 0.1.6

Fixed


Bump up rails dependency to rails 8

Finished in 0.1537 seconds (files took 0.51763 seconds to load)
21 examples, 0 failures

Fixes https://github.com/instrumentl/rails-cloudflare-turnstile/issues/187

Superceded by https://github.com/instrumentl/rails-cloudflare-turnstile/pull/191
Would be nice to get a new release published which includes this change.


Don't expose error

When a resource has been moved, the share link should no longer be valid.
Don't expose error.

Good idea! Thanks for this 😄


Make initial value of signal() optional in types

Better matching the type of useState() in preact/hooks.

@marvinhagemeister Hi, could you please take a look?

Resolved in #578 🎉


influx cli: cannot create auth: Error: Id must have a length of 16 bytes.

➜  influxdb git:(add-docker) ✗ ./bin/darwin/influx auth create --write-bucket node_metrics_v1
Error: Id must have a length of 16 bytes.
See 'influx auth create -h' for help

Looks like this only happens if use the wrong command line flag. the following works fine (write-bucketS):
./bin/darwin/influx auth create --write-buckets node_metrics_v1

Had the same issue, makes it impossible to create a token scoped to a single bucket via the CLI


Use serde custom serialization to handle SequencesSketch

Hi Jim!
As discussed this is a small PR that uses the capabilities of serde for custom serialization instead of manually having to create a dedicated extra struct and doing the conversion manually. The serde field attributes are documented here: https://serde.rs/field-attrs.html

Hi Martin,
This looks awesome. I tested it and it seems to work fine. Merging; thanks!


Improve Responsiveness for the Website

When opening the website on a Mobile, the information separating lines should've been in between in the "Quickly find all your Information" section, rather than on the side.
The logos over here can have more bottom-padding for a better look.

Some padding can be given here as well in between the "Learn More" and "Get in Touch" buttons.

Hello @hanzalahwaheed , I would love to work on this.

@akash0708 Yes, you can start if someone assigns it to you. I'm actually not a Maintainer.

Thanks for creating an issue, @hanzalahwaheed and @akash0708. The website is not open source, and we will fix this in the coming versions of the website. May I know the width of the device that you're using? @hanzalahwaheed So that we can test it in the future versions of the website.

@srbhr I tested it on the Chrome Web tools' Pixel 5

You could also look at the following responsiveness issues :

For the following image, you could something like removing the sticky property where the user reaches the footer section

Hi @hanzalahwaheed ,
Our public website isn't part of our repo, but we appreciated you pointing this out! We've passed it on to the folks who maintain the site. Adjustments may appear in future versions of the website. Closing this out.


Updates the EKS deployment guide to use certbot-charm

Using the certbot-charm charm simplifies the TLS certificate generation significantly. Additionally, it's no longer necessary to generate the certificate before the hostname is in use.

/cc @pedroleaoc


[patrol_cli] compatibility_checker.dart get's stuck when patrol is not installed

Steps to reproduce
I had a setup where patrol was installed with one flutter version, but wasn't with the one that was used when patrol ran. (I had 2 different versions with fvm).
I think it could be reproduced like this:

don't install patrol in pubspec.yamls dev_dependencies
(run flutter pub get if necessary)
run patrol test

Actual results
patrol get's stuck
Logs

Logs
`patrol test -v -d emulator-5554`
```
Verbose mode enabled. More logs will be printed.
$ flutter --suppress-analytics --no-version-check pub deps --style=list

```

Patrol version
patrol_cli: 2.6.2
Patrol Doctor output

Patrol Doctor output
Patrol doctor:
Patrol CLI version: 2.6.2
Android:
• Program adb found in /usr/bin/adb
• Env var $ANDROID_HOME is not set. (See the link: https://developer.android.com/tools/variables#set)

Flutter Doctor output

Flutter Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 3.19.0-0.3.pre, on Ubuntu 22.04.3 LTS 5.19.0-051900-generic, locale de_DE.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Chrome - develop for the web
[✗] Linux toolchain - develop for Linux desktop
    ✗ clang++ is required for Linux development.
      It is likely available from your distribution (e.g.: apt install clang), or can be downloaded from https://releases.llvm.org/
    ✗ ninja is required for Linux development.
      It is likely available from your distribution (e.g.: apt install ninja-build), or can be downloaded from https://github.com/ninja-build/ninja/releases
    ✗ GTK 3.0 development libraries are required for Linux development.
      They are likely available from your distribution (e.g.: apt install libgtk-3-dev)
[✓] Android Studio (version 2023.1)
[✓] VS Code (version 1.85.2)
[✓] Connected device (3 available)
[✓] Network resources

! Doctor found issues in 1 category.

Hi @DrBu7cher. Thanks for opening the issue. I was able to reproduce it. I think we should check if the patrol is in the dependency of the project we try to run it with, before actually executing the tests.

I opened a PR to fix it already. You are already checking for it, the check just has a minor flaw.

I see it now 👍


update build.gradle in demo-react-native

I was having some issues running the demo (stuff from react-native was not being found during build), and this seems to fix it. Note that this is the same value as in https://github.com/wix/detox/blob/master/examples/demo-react-native-jest/android/build.gradle which was generated with a newer version of RN
steps to reproduce:

clone repo and cd to the example folder
run yarn
run detox build --configuration android.emu.debug output:

vojta@Vojta-MacBook-Pro demo-react-native (master)$ detox build --configuration android.emu.debug
pushd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && popd
~/dev/temp/Detox/examples/demo-react-native/android ~/dev/temp/Detox/examples/demo-react-native

> Configure project :app
WARNING: The option 'android.enableAapt2' is deprecated and should not be used anymore.
Use 'android.enableAapt2=true' to remove this warning.
It will be removed at the end of 2018..

> Configure project :detox
WARNING: The option 'android.enableAapt2' is deprecated and should not be used anymore.
Use 'android.enableAapt2=true' to remove this warning.
It will be removed at the end of 2018..

> Task :detox:compileMinReactNative44DebugJavaWithJavac
/Users/vojta/dev/temp/Detox/examples/demo-react-native/node_modules/detox/android/detox/src/main/java/com/wix/detox/ReactNativeSupport.java:11: error: cannot find symbol
import com.facebook.react.ReactApplication;
                         ^
  symbol:   class ReactApplication
  location: package com.facebook.react
/Users/vojta/dev/temp/Detox/examples/demo-react-native/node_modules/detox/android/detox/src/main/java/com/wix/detox/ReactNativeSupport.java:63: error: cannot find symbol
        return ((ReactApplication) context).getReactNativeHost().getReactInstanceManager();
                 ^
  symbol:   class ReactApplication
  location: class ReactNativeSupport
/Users/vojta/dev/temp/Detox/examples/demo-react-native/node_modules/detox/android/detox/src/main/java/com/wix/detox/ReactNativeSupport.java:96: error: cannot find symbol
                instanceManager.recreateReactContextInBackground();
                               ^
  symbol:   method recreateReactContextInBackground()
  location: variable instanceManager of type ReactInstanceManager
/Users/vojta/dev/temp/Detox/examples/demo-react-native/node_modules/detox/android/detox/src/main/java/com/wix/detox/ReactNativeSupport.java:139: error: cannot find symbol
                                instanceManager.removeReactInstanceEventListener(this);
                                               ^
  symbol:   method removeReactInstanceEventListener(<anonymous ReactInstanceEventListener>)
  location: variable instanceManager of type ReactInstanceManager
Note: /Users/vojta/dev/temp/Detox/examples/demo-react-native/node_modules/detox/android/detox/src/main/java/com/wix/detox/espresso/MultiTap.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors

> Task :detox:compileMinReactNative44DebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.

after making the change this works fine for me

@vonovak, I'll take a look at it soon. How did you build the project in this particular setup btw? Could you elaborate a bit more on how to reproduce the issue you had?

hi! sorry for not being more detailed. I have updated the description

Thanks


Unable to open an ipynb when .NET interactive is installed

Describe the bug
Please provide as much information as you can.
Please complete the following:
Which version of .NET Interactive are you using? There are a few ways to find this out:

In a notebook, run the #!about magic command.
At the command line, run dotnet interactive --version.

OS

[ ] Windows 10
[x] macOS
[ ] Linux (Please specify distro)
[ ] iOS
[ ] Android

Browser

[ ] Chrome
[ ] Edge
[ ] Firefox
[ ] Safari

Frontend

[ ] Jupyter Notebook
[ ] Jupyter Lab
[ ] nteract
[x] Visual Studio Code
[ ] Visual Studio Code Insiders
[ ] Other (please specify)

Screenshots
If applicable, add screenshots to help explain your problem.
Fresh machine:

Install Jupyter extension
Install .NET Interactive extension
Open a Python ipynb, and i get an error message & the ipynb does not open.

This is a combination of issues, specifically #1292 where a .NET SDK isn't installed (and we don't display a good message for that), and microsoft/vscode-jupyter#5477 which causes custom metadata to not be written to disk which led us to add our own custom .ipynb handler that confuses the VS Code file associations.
If #1292 is addressed and/or a .NET SDK is installed and a non-.NET notebook is opened with our extension, we'll tell the user that the notebook doesn't look like one of ours and should probably be re-opened.

Please feel free to close this issue if its a duplicate.


Don't install wget package in Docker container

Should have been done in 1c81df3.

ping @AbletonDevTools/gotham-city

Should have been done in 82815d705167bf9ed2dd447a7b25a416c08d6fc5.

@ala-ableton I guess so. 😅 Anyways, I've amended & force pushed.

LGTM :+1:


How to catch ruby Exceptions in a c extension

What is the proper way to use MRB_TRY / CATCH in a c extension?
Currently have to store temporary state in a mrb_gv which would normally be on the stack.

Those macros are for mruby's internal use. To catch a mruby exception simply check the mrb->exc member. If it's not NULL it contains the last exception raised. Then you can use mrb_funcall(mrb, mrb_obj_value(mrb->exc), ""backtrace", 0) to get the backtrace of that exception.

@beoran
When the block which gets called here https://github.com/Asmod4n/mruby-simplemsgpack/blob/master/src/mrb_msgpack.c#L183 raises a exception i never get the chance to check for mrb->exc, the loop ends and the function gets jumped out, or am i missing something here?

Oh, you want to catch exceptions raised from an mrb_ yield? AFAIK that's not supported yet, but I could be mistaken. Maybe someone else knows? @matz , could you enlighten us please?

What i basically need is a ensure "block", no matter what happens, i allways have to call msgpack_unpacked_destroy at the end of the c func or memory leaks happen.

Maybe we should provide mrb_protect() as CRuby does.

Yes, please. :-)

yay :)

Those macros are for mruby's internal use. To catch a mruby exception simply check the mrb->exc member. If it's not NULL it contains the last exception raised. Then you can use mrb_funcall(mrb, mrb_obj_value(mrb->exc), ""backtrace", 0) to get the backtrace of that exception.

Is there anything that needs to be reset after an exception is thrown? It appear that if I get and exception during mrb_load_nstring_cxt consecutive calls will fail.

mrb->exc = NULL; should work. Probably we'd better prepare API functions for the purpose.

That did indeed work. I tried that yesterday after digging into mruby's own source code and saw that being done. Though i wasn't sure if anything else should be set.
I also saw that mrb_protect exist. Though I got linking errors when trying to use it. I guess that's something I need to explicitly include when building Ruby? I also wasn't entirely use how to use it.
I am familiar with Ruby's C API however, I was trying to refer to how protect is used there. But even there I've never been too sure on how to handle the protect wrappers when I have multiple arguments. Any docs or examples that show best practice on this?
So far I've been referring to this guide for the C API (with vanilla Ruby):
http://silverhammermba.github.io/emberb/c/
That give a rather nice breakdown of common how to's. Anything similar to mruby?

mrb_protect is implemented in a separate mruby gem which you have to enable to make it link. The docs are here: https://github.com/mruby/mruby/tree/master/doc but perhaps a bit low level.

In mruby 3.1, mrb_protect_error() was added.
Its usage is almost the same as mrb_protect(), but it can be directly given a C pointer as user data.
This API function is included in mruby core, so no GEM preparation is required.


Extra variant for doesNotMatch

Feature summary
org.assertj.core.api.AbstractCharSequenceAssert#matches(java.lang.CharSequence)
and
org.assertj.core.api.AbstractAssert#matches(java.util.function.Predicate<? super ACTUAL>)
exists but its counterpart doesNotMatch only has
org.assertj.core.api.AbstractCharSequenceAssert#doesNotMatch(java.lang.CharSequence)
and doesn't have
org.assertj.core.api.AbstractAssert#doesNotMatch(java.util.function.Predicate<? super ACTUAL>)
Example
assertThat(actualString)
    .matches(it -> it.startsWith("foo"))
    .doesNotMatch(it -> it.endsWith("bar")); // nope, not available

May I add it?

Can I work on this issue?


how to use fontawesome?

hi,
Thanks for your job.
I want to use fontawesome font in pixi.js, could you add this feature?

I will check it maybe on Saturday  and I will leave you feedback for it

Sorry I don't think that this is in any way related with the idea of this boilerplate


Added proto alias for protobuf

proto is the extension for protobuf files, and is used in other syntax highlighters as the language id.

@RunDevelopment do have a spare moment to look at this quick PR?  Prism is a really popular choice and I'd love to make this easier for users.


Broken lightboxes on website

The lightboxes on the project website are broken, because they contain a tags with a href attribute that does not include image/ (e.g. href="nyc_taxi_full.png" rather than href="image/nyc_taxi_full.png").

Thanks a lot! Fixed by 3ebf2502cd1a1b89b1d2736d8a3e5b61e4380f06.


[WIP][Transction][buffer] Add a transaction buffer client

Motivation
The transaction buffer has many operations. Use a client to make those operations easy for others. The client will provide those operations. Such as, check transaction status, create transaction meta, commit and abort the transaction.

@sijie  Sure. I will update it. Thank you for your reminder.

@sijie This pr is ready to review. Please take a look when you have time.
And this pr is base on the transaction buffer operation. So it needs to wait for the transaction buffer pr.

Ah. I misunderstand the transaction client. I will close this pr and reopen a new pr to complete it.


Avoid forced log in the DMatrix binary loader.

Close https://github.com/dmlc/xgboost/issues/11075 .

cc @david-cortes


Is it possible to preview next item?

Is it possible to preview the next item, like in example underneath?

Hi
Sorry, but now - there is no such possibility.
But I'm working on this..

Thnx for your reponse! Looking forward to see this feature. :)

I have been working on this feature..) but I haven't got a lot of spare time..)
I need implement this classes (Moving items during user's interaction)
https://github.com/AndreiMisiukevich/CardView/blob/master/PanCardView/Processors/BaseSceneFrontProcessor.cs
https://github.com/AndreiMisiukevich/CardView/blob/master/PanCardView/Processors/BaseSceneBackProcessor.cs

If using SceneView (I know we aren't meant to be yet). You can change the InitialBackPositionPercentage to a value lower than 0.6 in the Scene Processors and it will give the preview ability your after provided the Cards themselves are of a decent size (in my case 90% width and height of screen)

I using SceneView, set the InitialBackPositionPercentage at 0.9 or lower give you that result
This is my code example
                     var cardCarousel = new SceneView(                         new PanCardView.Processors.BaseSceneFrontProcessor{ InitialBackPositionPercentage = 0.88 },                          new PanCardView.Processors.BaseSceneBackProcessor{InitialBackPositionPercentage = 0.88}                         )                     {                         Items = CardListFilter,                         ItemTemplate = typeof(CardCarouselControl)),                         CurrentIndex = default(int),                         Padding =new Thickness(20,0),                         HorizontalOptions = LayoutOptions.FillAndExpand                     };

Ive expanded on this bit more and started using a MultiProcessor, essentially a Processor that wraps a collection of child processors and runs each one in order.
I'll pull it out from my main project over the weekend and put it in my local repo to stick a pull request in for @AndreiMisiukevich

@thedjnova sounds interesting)

@thedjnova hi) Don't forget to rebase on top of master origin) because today i changed code a little.
Thanks

Any updates on this? Need this feature to for this:

Can i use the scene view to archive this? (scrolling between items on one row)

Hi, I'm still waiting for PR ...

Okay but it is possible with Scene view?

It will be possible, if somebody creates PR )

@thedjnova do you remember about your promise ?)))

sorry guys been overloaded.
In honesty when I look at it it isn't actually an improvement, its purely using whats already there in the right way.
I created scene processors that held a lists of other scene processors for front and back which I set as the scene processors for the control.
Those Multiprocessor containers cycle each method of the child processors in order.
Simply create one for Scaling and Translate and add them to the multiprocessor list in its constructor.

Could you share your code? I will think, how we would to embed this

https://github.com/AndreiMisiukevich/CardView/pull/44

@Phenek it would be awesome, if you will help me))

@Phenek
https://github.com/AndreiMisiukevich/CardView/blob/master/PanCardView/Processors/BaseSceneBackProcessor.cs
and
https://github.com/AndreiMisiukevich/CardView/blob/master/PanCardView/Processors/BaseSceneFrontProcessor.cs
we need to fix these two classes

I think, we need juste one View processor.
Using two seems to display one item twice at the same time.

@phenek, hmm, why do you think so?
Front processor responds only for front view, back — only back views

To see it -> just increase the AnimationLength to 5000ms in both processors
Then you can see that the currentView is still in use by the front processor,
when the back processor is initialising it.

I think we just need one processor that will move each recycled view in the same way.
Created new views or recycle old one when passing from -x to x translation.
It could be a different class than CardsView

@Phenek yes, i agree with it.. really i though about creating separate class =)
If you wish, we can start to develop it together xD

@AndreiMisiukevich, Yes!
I will start this week-end and, on my availables evenings.
It will be on my fork on a branch "feature/CoverFlow" something like that.

Андрей, добрый вечер. Скажите, пожалуйста, есть ли возможность изменить стиль indicatorsControl из xaml? У меня белый фон и по дефолту белые точки - сливается. Я целый вечер убил на то, чтобы попытаться изменить стиль, создавая его в c#, моих знаний не хватает.

@Tiotenshi https://github.com/AndreiMisiukevich/CardView/issues/54

@Tiotenshi так так на русском ?!
@AndreiMisiukevich So I looked, For now I tried just with pan gesture without any processors.
I have 5 Recycled (Content)View, that I put all at the center x=0(So I will know which one is more at the center when translated).
Then I translate them at equal distance from 0 to  x = width back to -x = -Width until 0
Then when translating all got the same translation direction at the same time.
So I got the logic but I will need a containerView for each recycled views, which will have the following property:

The Index of the ItemsSource
The posX (at start & updated at end gesture),
A tmpPosX (particular case when pan gesture is running when drag from +x to -x then reback to +x)

This containerView will inherit from ContentView Could be named as "CoverContainer" "CoverView" "CoverCell" "CoverContent"?
Are you agree about this Container or Have you an another Idea?
let me know.

@Phenek i think, it's great idea for name)
I'm look forward this PR =)

Hey What's up?
I can give you a preview here on my fork
I will not do a PR right now.
I have a lot of issues to fix and some features to add on this component.
But enjoy and give me your feedback ))))

@Phenek looks awesome!)
I like it))

i was wating for this feature ! Great !

@AndreiMisiukevich
Do you have an idea to not show View translated out of the contentPage?
If a view is an half inside and an half outside, just the half inside should be visible by the user.
I'm asking cause it's an issue on iOS part when sliding pop back from a navigation controller.

@Phenek maybe it can help https://docs.microsoft.com/en-us/dotnet/api/xamarin.forms.layout.isclippedtobounds?view=xamarin-forms

Nice that made the trick!
Thanks

Hey now I'm on the HandlePanApply when touchEnd.
And I'm searching a way to perform the translate animation by checking the position of each view,
to know if any view need to be recycled or displayed.
the new displayed Views have to be added to the animation at runtime for the end.
All my recycler logic depend of the translationX of the displayedViews.
Here -> CoverFlow Repo
Do you have any design idea to handle this?

@Phenek sorry, now i have no enough time for diving to this issue :(
Have you found any solution?

For now I had a HandlePanApply func like so:
        public void HandlePanApply(List<View> displayedViews, double dragX, AnimationDirection direction, List<View> recycledViews)
        {
            var maxTranslate = CoverFlow.MaxGraphicAxis + CoverFlow.MarginBorder;

            Animation a = new Animation();

            foreach (var v in displayedViews)
            {
                var translate = v.TranslationX + dragX;
                if (Math.Abs(translate) > maxTranslate)
                {
                    var diff = Math.Abs(translate) - maxTranslate;
                    var coef = 1 - (diff / Math.Abs(dragX));
                    a.Add(0, coef, new Animation(f => v.TranslationX = f, v.TranslationX, -(int)direction * maxTranslate, Easing.Linear, () =>
                    {
                        if (direction == AnimationDirection.Prev) // Movement --> right
                            CoverFlow.ItemMaxOnAxis = CoverFlow.VerifyIndex(CoverFlow.ItemMaxOnAxis - 1);
                        else if (direction == AnimationDirection.Next)  // Movement <-- Left
                            CoverFlow.ItemMinOnAxis = CoverFlow.VerifyIndex(CoverFlow.ItemMinOnAxis + 1);
                        v.IsVisible = false;
                        recycledViews.Add(v);

                        /* Unworking code here but have to be done
                        // Remove Views from displayed List
                        CoverFlow.RemoveUnDisplayedViews();

                        // RecyclerView
                        var recycledView = CoverFlow.RecyclerView(direction);

                        // Add animation at runtime
                        a.Add((diff / dragX), 1, new Animation(f => v.TranslationX = f, v.TranslationX, translate, Easing.Linear, null));
                        */
                    }));
                }
                else
                    a.Add(0, 1, new Animation(f => v.TranslationX = f, v.TranslationX, translate, Easing.Linear, null));
            }
            a.Commit(CoverFlow, "SimpleAnimation", 60, 800, Easing.Linear, finished: (d,b) => CoverFlow.RemoveUnDisplayedViews());
        }

@Phenek i think for first release it would be acceptable =) everybody would be happy to have something working haha)

@Phenek what exactly is working wrong?

My Problem is that I'm searching a way to perform the translate animation by checking the position of each view, to know if any view need to be recycled or displayed.
the new displayed Views have to be added to the animation at runtime.
And for now it's not like I want it be.
There is the PR #116 with some comments in code.
If you want some click or selection events on Items just do them on your Item Templates.
No need to charge the code for now.

@Phenek Hi
I think we should rename CoverFlow to SceneView (Remove old sceneview)
And maybe try to release it)

@Phenek i appreciate any new pull requests

@Phenek
Ok, maybe CoverFlowView would be acceptable name?
As for recycledView, i'm going to refactor code (fix naming convention (_constructor method), remove redundant code etc.)
I didn't dive to code so much, but as for recycler ...
So, you can check TranslateX and Width, and if TranslateX + Width/2 doesn't intersect with ScreenSize, we can reuse this view =)
Sorry if i said something stupid xD
Good job!)

@Phenek btw, where are you from?

Я французский, который немного жил в Питере ))).
и ты Белорусский?
At first CoverFlowView was my first idea, so Ok

@Phenek
=) Да, я белорус)
Ok, let's go ahead in English. I though, that you are native Russian speaker, because i'm not PRO in English and it would have better performance in communication =)
Ok, great, no problem

When is this awesome feature available?

@jaspervanmegroot good question.
I'll try to find time for refactoring on this weekend.. probably, i'll create pre-release package then

Really excited about this feature!

Hello there,
I would like to add a moving command (next or prev) with arrows today.
Arrows need a SelectedIndex property but CoverFlowView will never get it,
because it can display more than 5 items at the same time.
I think ArrowControl should have a command on tap, but shouldn't use SelectedIndex Property
Also, the Left & Right ArrowControl should be in samples and not in the nugget.
Did you had time to make a quick idea about combining recyclerLogic and animation on CoverFlowView?

@Phenek hi
Unfortunately, I have extremely little time for open source now :(
I haven't refactored code yet.

Okay just to inform you the CoverFlow is unstable,
because I'm forcing Recyclerlogic on touchEnd before animation.
it's could crash the application.
We need to fix this before adding other properties.
Let me know when you will get some time, I'm on stanby.

@Phenek when you go ahead with new part of PR's, could you please refactor code too and write code regarding to my convention? =)
So)

All Methods starts from capital letter, camel case(CreateItem())
All fields starts from _ , camel case(_age, _userName)
Write private keyword directly, please
Class structure is next, from top to bottom (events, static fields, constructors, properties, public methods, protected methods, private methods)

Thanks a lot for you contribution !)

@Phenek i think, we should refactor code totally, then create package without recycling
And then try to solve recycling issue for improving package, what do you think?

@Phenek frankly speaking, i can't understand, what exactly is wrong and how to solve it )

Looking foward to test this new feature.
Nice job! 👍

@ZeMidF10 =) @Phenek  is workin on it =) Good job

@AndreiMisiukevich No news ? :)

@MaxenceMax, unfortunately, I still have to take a break of a month and a half on Open Source.
But I did not finish with this feature, I think about it every day

@Phenek @MaxenceMax
Hm, from my point of view somebody can try with pre-release version of CoverFlowView :)
Why not?)

Yeah @MaxenceMax you can try it now.

@Phenek hey
Could you please answer the question of @SagarPanwala RE #142 ?


Calling Information on a Range duplicated from the Selection unselects the selection

Calling Information on a Range duplicated from the Selection unselects the selection

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

ID: ba3d05b6-68ae-4be8-b683-ce5f2e220fd8
Version Independent ID: 9de06d64-f33e-51ff-17ea-3c7796e2ed5c
Content: Range.Information Property (Word)
Content Source: api/Word.Range.Information.md
Product: word
GitHub Login: @o365devx
Microsoft Alias: o365devx

@ccbosch Are you still experiencing this issue? If so, please re-open this issue with more information about how to solve it. Thanks.


config.known_publish_date_tags Fails

When trying to apply a customized publish_date_tags for HTML extraction, it failed hard.
This could be one of the reasons why the code never gets to what I added to the known_publish_date_tags. However, when I commented out the two if statements locally, it still gave me the 'default' article:published_time as the publish date output.
class PublishDateExtractor(BaseExtractor):
    def extract(self):
        # check the opengraph and ReportageNewsArticle dictionary for the
        # publication date first.
        if "article:published_time" in self.article.opengraph:
            return self.article.opengraph["article:published_time"]
        if self.article.schema and "datePublished" in self.article.schema:
            return self.article.schema["datePublished"]

So can you explain to me what you mean by "fails hard"? If the article has an opengraph date than that should be the "best" date to return.
As for when you commented out the two if statements, I am unsure how that would have returned that date as it doesn't use the opengraph data to pull it out unless that if statement is present. Perhaps there was an issue with using your local copy of the code?
To be able to help more, I would need an example of what you are attempting, including the new pattern to add and the url you are trying to parse.

So can you explain to me what you mean by "fails hard"? If the article has an opengraph date than that should be the "best" date to return.
As for when you commented out the two if statements, I am unsure how that would have returned that date as it doesn't use the opengraph data to pull it out unless that if statement is present. Perhaps there was an issue with using your local copy of the code?
To be able to help more, I would need an example of what you are attempting, including the new pattern to add and the url you are trying to parse.

Thank you for the quick follow-up! :)
This basically means that the scrapper skips any user-customized PublishDatePattern, if the opengraph has a pushlished_time available, and it will never get to extract the date pattern that users added.
I tried both
config.known_publish_date_tags = PublishDatePattern(attr = "property", value = "article:modified_time", content = 'content')
config._known_publish_date_tags = PublishDatePattern(attr = "property", value = "article:modified_time", content = 'content')
No matter what I added, the undesired published_time was returned.

Generally the opengraph data is the most correct data. If you can think of a good way to see if there are user described values and handle those first, I would be open to any Pull Requests. Unfortunately, I do not have time to work much on this project but am happy to help as much as I can.

@Yanyul can you provide an example URL that I can look at about this issue? I may have an idea on how it could be resolved. Thanks!

So it looks like the modified time that you are looking for is in the opengraph data (see code example below).
With the data here, that could be everything you need, or, perhaps, a modified_date could be added as a property of the article. Besides in the opengraph data, I am unsure of other methods to find the modified time.
Thoughts?
url='https://www.draysbay.com/2021/2/18/22289391/predicting-rays-opening-day-roster-2021'
with Goose() as goose:
    article = goose.extract(url=url)
    print(article.opengraph)  # all the opengraph data
    print(article.opengraph.get("article:modified_time"))  # a string of the modified time

closing as the modified time is provided in opengraph data.


fix：插件面板固定后画布未自适应

English | 简体中文
PR
PR Checklist
Please check if your PR fulfills the following requirements:

[x] The commit message follows our Commit Message Guidelines
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)
[ ] Built its own designer, fully self-validated

PR Type
What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

Background and solution

What is the current behavior?

Issue Number: #191
What is the new behavior?
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

需要解决 calculateSize、bindEvents、unbindEvents 之间循环引用的问题

已修复


Create FAQ

At the suggestion of @gamecat69, create a frequently asked questions page to save people repeating each other in the Discord!
Very much a WIP but I'm opening this PR now so that anyone can suggest questions to add to it

I've just added the section in troubleshooting for the module not reaching 10V as this was referred to in the FAQ, so makes sense to include in this PR


Use special judge

First of all, thank you for your project.
I would like to get an English method of the problem creation about when I check "use special judge". 😊

#include <stdio.h>

#define AC 0
#define WA 1
#define ERROR -1

int spj(FILE *input, FILE *user_output);

void close_file(FILE *f){
    if(f != NULL){
        fclose(f);
    }
}

int main(int argc, char *args[]){
    FILE *input = NULL, *user_output = NULL;
    int result;
    if(argc != 3){
        printf("Usage: spj x.in x.out\n");
        return ERROR;
    }
    input = fopen(args[1], "r");
    user_output = fopen(args[2], "r");
    if(input == NULL || user_output == NULL){
        printf("Failed to open output file\n");
        close_file(input);
        close_file(user_output);
        return ERROR;
    }

    result = spj(input, user_output);
    printf("result: %d\n", result);

    close_file(input);
    close_file(user_output);
    return result;
}

int spj(FILE *input, FILE *user_output){
    /*
      parameter:
        - input，your input file pointer
        - user_output，user output file pointer
      return:
        - if the answer is correct, return AC else return WA
        - if something unexpected happened in your judge function, you can return ERROR

      demo:

      int a, b;
      while(fscanf(f, "%d %d", &a, &b) != EOF){
          if(a -b != 3){
              return WA;
          }
      }
      return AC;
     */
}

I'll try to test. thanks a lot. 👍


Support for Image Fusion such as PET/CT or Pixel Image Overlays

I was wondering what the status of fusion support is. Noticed a stale support question (#502) but wasn't sure if there has been resolution. This feature could also be used to support heat map outputs from prediction models (#1989).
Ideally, the cornerstone layers API could be leveraged to solve this, but it does not seem like the OHIFCornerstoneViewport will play nice with the layers API.
Is there a suggested pathway to support features like #502 and #1989?

Thing is @ArturRod, following the layers example, it works quite fine but when you those images load with additional images, you can`t scroll over it. Is there a way to handle this?

Hi @PattersonOfficial
AHe is currently consulting to see if this was possible, as it is only allowed with one CT and one PET image. It does not support multiple image stacks at this time. (At least if modifying cornerstone)
I'm waiting to see if someone can help me ... (https://github.com/cornerstonejs/cornerstone/issues/560)
What I did find is this, I will try to implement it if possible. But it would be better if they added something from cornertonejs.
http://www.dvisionlab.com/Larvitar/examples/layers.html

This is so helpful Arturo. I have been working with a company that seeks to implement this and I have been on it for so long I thought I might be cut. Thank you so much for reaching out. If you do find a way, please don`t forget me. Best regards. Sent from Mail for Windows From: Arturo RodrigoSent: Tuesday, November 9, 2021 10:18 AMTo: OHIF/ViewersCc: Benjamin Akrong; MentionSubject: Re: [OHIF/Viewers] Support for Image Fusion such as PET/CT or Pixel Image Overlays (#2313) Hi @PattersonOfficialAHe is currently consulting to see if this was possible, as it is only allowed with one CT and one PET image. It does not support multiple image stacks at this time. (At least if modifying cornerstone)I'm waiting to see if someone can help me ... (cornerstonejs/cornerstone#560)What I did find is this, I will try to implement it if possible. But it would be better if they added something from cornertonejs.http://www.dvisionlab.com/Larvitar/examples/layers.html—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.

@ArturRod thanks for the feedback. The thing that keeps me wondering is that the second image that I add to the layer overlays quite well onto the main layer(image) except that the main image can still be scrolled through but the overlay image disappears when scrolling through the layer... Any advice?

Hi @PattersonOfficial
From what you tell me, the layers are superimposed on you, but can you tell me that the main view remains as it is, being able to move, right?
I think what you have to do is remove the view that is previously there and then generate the layers, since otherwise the main view remains together with the layers, so it allows you to move the image.

https://user-images.githubusercontent.com/26417112/141091721-fef2cfe5-e188-4274-bc7d-992c34ed97c3.mp4
@ArturRod  so basically the base image is already loaded automatically, then using cornerstone.addLayer(element, image); I add the overlay. The base layer is still scrollable but the overlay image disappears even though the layer is still there.
There are 2 things I want to achieve and that is

Make sure that overlay image is also scrollable
Sync it so that once we scroll, both images scroll in a sync

@PattersonOfficial Hi again.
2 layers have to be loaded, with a 'standard' view and 1 layer does not work, since 2 layers have to be loaded.
One for PET and one for CT. From what you show me in the video, load 1 layer on the main viewer, in the example that I tried (https://rawgit.com/cornerstonejs/cornerstone/master/example/layers/index.html) you have to load 2 layers, one with each image and its color and opacity options.
The problem is that currently addLayer does not allow loading a stack of images.
So try using this other method: (http://www.dvisionlab.com/Larvitar/examples/layers.html).

@ArturRod I really appreciate your efforts and everything. Thank you so much for everything

This is already supported in master in TMTV mode
Try viewer-dev.ohif.org instead of viewer.ohif.org
Our viewer.ohif.org is deployed from release branch while viewer-dev.ohif.org is our master  branch
Read more about branch explanations here https://docs.ohif.org/development/getting-started#developing


Add stale troy RFC from legacy tremor-rfcs repo

Signed-off-by: Darach Ennis<EMAIL_ADDRESS>

Note - this RFC will be updated based on our recent redesign conversation a week ago this week


[Bug]: Auth0 invalid state

Contact Details
No response
What happened?

Seems like even when I'm already logged in, sometimes navigating to a profile page opens a new window prompting for authentication, at which it usually ends up in this "invalid state".
Reproduction steps

Go to https://gieffektivt.no/
Navigate to min-side
A new login window opens
Authenticate with touch id
See "Invalid state"

However:

Go to https://gieffektivt.no/min-side
Login window opens in the same tab
Authenticate with touch id
No "Invalid state"

What device are you seeing the problem on?
Desktop
What browsers are you seeing the problem on?
Chrome
Relevant log output
None

Furthermore, I'm logged out after refreshing the page

This is an Arc quirk, we'll check back on this at a later stage


Re-gyb sorting (#9818)

Cherry-pick of #9818
Explanation: To reduce code size, the duplication using gym of the sort algorithms (one using Comparable and one taking a closure) was collapsed into one implementation. This passed PR benchmarks, but later was discovered to have performance impact other cases.
Scope: Affects the implementation of the stdlib sort algorithms.
Radar: rdar://problem/31939398
Risk: Low. This is a revert, albeit not the automated one as the source has changed slightly since (mainly elimination of Iterator. for Element).
Testing: Passed compiler regression tests covering sorting.

@swift-ci please test

@swift-ci please benchmark

@swift-ci Please test

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - 1042fa936aaf4d6f133f4e31314072168cacf858
Test requested by - @natecook1000

@swift-ci please clean test linux platform

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - 1042fa936aaf4d6f133f4e31314072168cacf858
Test requested by - @airspeedswift

@swift-ci please test linux platform


Question - Is there something like onImageLoadedListener()?

I am trying to get its pixel size (width/height) immediately right fter importing image source from asset/ ,but I don't get what is expected.
SubsamplingScaleImageView imageView = (SubsamplingScaleImageView)findViewById(id.imageView);
imageView.setImage(ImageSource.asset("squirrel.jpg"));
Log.d("log", "imageView.getSWidth() + "/" + imageView.getSHeight());
This returns 0/0.
Seems like this is because the image is not loaded when I call Log.d(...).
The workaround for me is to use postDelayed like
imageView.postDelayed(new Runnable() {
@Override
public void run() {
if (imageView.isReady()) {
Log.d("log", imageView.getSWidth() + "/" + imageView.getSHeight());
}
}
}, 1000);
But Instead of this, is there a better way to get the size?
Hope there is load Listener or something...

Yes, it's all in the wiki.


UpdateBy does not return an error when a channel is rejected by the peer

Error introduced in aa252f6b2c6a260dc225ab7d658774bf889961a1
UpdateBy function is expected to return a PeerRejectedError when a channel is rejected by the peer. This was working as expected until version 8066e90363e1c37345c51156726d2e3ee9529cfd and stopped working in aa252f6b2c6a260dc225ab7d658774bf889961a1.
On having a closer look, the cause of this bug is use of a defer statement in updateGeneric function.
The defer statements checks if any error has occurred. If yes, then discardUpdate is invoked and error of the discardUpdate call replaces the actual error.
Possible solution:
Error from discardUpdate can be ignored, because a comment in discardUpdate function says it should never error.

The title states "[…] when a channel is rejected […]". Did you mean update instead here?
DiscardUpdate can only error if there is no update to be discarded.
So either:

Revert the hunk to how it was before
Change DiscardUpdate to return nothing

We could add a test to prevent further regression but that would probably be a lot of effort.

The particular hunk aa252f6b2c6a260dc225ab7d658774bf889961a1 contain many other changes. So I feel, the concerned part alone can be fixed.
Can i then proceed with option 2 (change DiscardUpdate to return nothing or should I just leave DiscardUpdate as such and simply ignore the error from it in this location ?
@ggwpez

Nice catch. I made a bug fix proposal in #126 .

Closed in #126


Add ScholarshipPoints

This deletion process is a bit of a runaround, but their policies and confirmation emails indicate a reasonable erasure of personal identifying data.

Got another one ready for ya


Add "Draft Mode" for documents

Add a field to the front matter
---
path: "/guides/userguides/why-i-left-the-woods"
date: "2019-05-14"
title: "Why I Left the Woods"
subTitle: ""
draft: true
---

Then for local, and dev environments show the "draft" = true items in the navigation if they are added to the sitemap.
For integration, staging, and prod, do not show the draft documents in the navigation even if they are listed in the site map.
This lets us avoid having branches per environment and the associated merging while also enabling us to create stub doc for people to work on.
So that we do not have to go back and add the draft to all the other documents, if it is not specified on a doc, we assume its "false".  So any existing docs will show in all environments.
We will still need to use pull requests for modifying documents. The "Draft Mode" will smooth out the flow of having new docs sit on a branch until they are completed and reviewed.

This sounds like an excellent idea. Is there an example of this implemented on dev already? Or is this something you're planning on rolling out?
Thanks!

Planning on rolling out.. wanted to see if the team was ok with it before moving along to far.

Awesome. Well, I'm certainly in favor of anything that makes something simpler.


Create Django.txt

Updated on April 20th, the contents include all the files of Django between version 3.0.5 and 2.1

Source?

I've done it (like the Drupal one)

Thnaks!


AirPcap Support

Adum_264[CodePlex] AirPcap Support in pcap.net would make pcap even better than it is

Brickner[CodePlex] Hi Adum_264,
Have you purchased AirPcap?
I haven't purchased it since it's quite expensive, and that is why I can't support it yet.
Boaz.


Extracting the title information from produced div

In order to create my custom component like <Callout type={type} title={title}>{children}</Callout>, the options className and containerTag are too handy, but also I needed two things to do:

to extract the title information from the div structure that produced by this plugin;
to remove the inner title div if exists.

And, I face difficulty about playing with the div structure provided by this plugin in especially typescript and react since the react children can be string | number | true | ReactElement<any, string | JSXElementConstructor<any>> | ReactFragment | ReactPortal | ReactNode[], and it is cumbersome to play with the type of children.
In order to make our job easier; my proposal is to give an option about the title, either:

to produce the title in inner div (as a default, as it is in the current) or,
to provide the title info in the title property of the first outer div without having the inner title div.

use(container, {
  className: string, // default to "remark-container",
  containerTag: string, // default to "div"
  isTitleProperty?: boolean // optional like first two options; default to false  <------ my proposal
})

If the isTitleProperty is set the true then the plugin will produce the HTML structure like below:

  Container Body (children)

if there is no title provided in the markdown, then:

  Container Body (children)

If you approve my proposal, we as developers can create a Custom component in easy way by extracting the title info.

Hi @talatkuyuk, thank you for reporting the issue!
I like your idea and I think it's worth too, so how about make it more usable generally:)
In https://github.com/koka831/remark-custom-container/issues/138, we discussed about a render/transform function as an option, and now I propose two new transform APIs, container and title.
with these options, developer may choose high/low level API for their usage.
interface

container is an option to construct custom container element.

if not given, default to constructContainer in https://github.com/koka831/remark-custom-container/blob/9ff8e12f3244e69217a8b3a9e84836c48817c3dd/src/index.ts#L41-L55 .

title is an option to construct custom title element.

if not given, default to constructTitle in https://github.com/koka831/remark-custom-container/blob/9ff8e12f3244e69217a8b3a9e84836c48817c3dd/src/index.ts#L57-L66
this is useful in your usecase, you may set container function and title to null so that you can avoid additional/default title element.

use(container, {
  className?: string, // high-level API
  containerTag?: string, // high-level API
  // the new APIs / provide low-level options so that developer may create custom component.
  container?: (children: Node<Data>[], className: string, title?: string) => Parent,
  title?: (title: string) => Paragraph,
})

example
So, in your usecase, add title attribute to the container element, looks like that:
(I added title: title line to the default renderer)
use(container, {
  // override `title` to `null` to avoid duplicate title in the container
  title: null,
  container: (children, className, title) => {
    return {
      type: "container",
      children,
      data: {
        hName: "div", // maybe some other html tag,
        hProperties: {
          // `hProperties` accepts custom attributes to the container.
          // so you may pass `title` attribute like that.
          title: title,
          className: [ // here you may set className of the container element.
            "remark-container",
            className.toLowerCase()
          ],
        },
      },
    };
  },
})

then it will convert:
::: warn custom title

inner content

:::

into:

inner content

drawbacks
I think it's bit more general, but make it difficult to use too.
This is just my opinion so I' willing to discuss more detail, and hope to find a good drop-off point between versatility and practicality.

Thank you very much for elaborating the issue.
The last edit in your comment (return  the data object only) is sufficient for flexibility, I suppose.

It's (just) out of curiosity, @talatkuyuk would you like to implement it?

Of course, I will open a PR.

@koka831 Hi, I've started the implement it.
But, I realized that the options className and containerTag are doing their jobs is very well.  The new option container is not doing other than overwriting both options apart from adding additional properties. And, the hName and the hProperties keys in the return data object is a little bit opinionated, error proned, and may cause unintended errors if not provided properly.
Instead of providing the container option, we can provide a similar callback function but for adding additional properties in order to give desired flexibility.
additionalProperties?: (className: string, title?: string) => Record<string, unknown>;

For example, if provided like below
additionalProperties: (className, title) => {
  title: title,
  ["data-type"]: className.toLowercase()
};

the outer container HTML element is going to have additional "title" and "data-type" properties.
For the title option, I would like to name it as titleElement?: boolean; (default true), since it is an option for adding or removing inner HTML div element contains the title.
In this way, the breaking change is not going to be required by the users, giving the same flexibility level for the users.

may cause unintended errors if not provided properly.

Ah, it's a good point. I think your suggestion looks compact and have enough flexibility.
One thing, titleElement? might be better to be Record<string, unknown> | null to accept additional properties and can be set to null.

In this way, the breaking change is not going to be required by the users, giving the same flexibility level for the users.

I agree. Thank you for the suggestion, LGTM.

I opened a PR for the issue: #146

released v1.3.0 https://www.npmjs.com/package/remark-custom-container/v/1.3.0


[CI] Node affinity based on labels not hostname

This change allows node affinity-depending tests use custom labels
instead of kubernetes.io/hostname.

This change is

test-me-please

test-me-please

Coverage decreased (-0.03%) to 45.515% when pulling fe4a52ff37f58009e9bcfe9794c10c6c65c3077b on pr/variable-node-names into 3ebadc3a0c3fa9fd3a8b9b80ffdfab7e38dd0f08 on master.

test-missed-k8s

test-me-please

test-missed-k8s

test-missed-k8s

test-missed-k8s

test-me-please


Add TLS support, improve Cadet.before(), add convenience template function

This pull requests makes the following changes to Cadet:

Use httpd.write() instead of io.write() to support TLS (closes issue #1)
Alter the function signature and invocation of Cadet.before() so that a script implementing its own before() function can modify the response.  As an example, this is useful for implementing a generic error handler.
Add a Cadet.render_file_write() convenience method to render and write a template in one go.

I have some other changes in my fork, and in some private repos where I'm experimenting with Cadet but so far these are the clean, well-tested changes that I believe may be desirable upstream.
Let me know what you think,
Travis

I FINALLY have time to look at this. :(
'master' has been updated in the meanwhile, can you please rebase this branch off of it? Thanks

You got it! I have rebased it from the current master.
Thanks for reviewing!

Hi @christiank, just noticed this was still open. Anything else needed?
Thanks


Fix and winnow down use-case notebooks

Description

Related Issues

Checklist

[ ] Is this code covered by new or existing unit tests or integration tests?
[ ] Did you run make test successfully?
[ ] Do new classes, functions, methods and parameters all have docstrings?
[ ] Were existing docstrings updated, if necessary?
[ ] Was external documentation updated, if necessary?

Additional Notes or Comments

Codecov Report
Attention: 44 lines in your changes are missing coverage. Please review.

Comparison is base (cbe6b32) 78.22% compared to head (b34bdd0) 81.07%.
Report is 60 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1099      +/-   ##
==========================================
+ Coverage   78.22%   81.07%   +2.85%
==========================================
  Files         101       98       -3
  Lines        6351     6404      +53
==========================================
+ Hits         4968     5192     +224
+ Misses       1383     1212     -171

Files
Coverage Δ

superduperdb/__init__.py
100.00% <100.00%> (ø)

superduperdb/__main__.py
71.42% <100.00%> (ø)

superduperdb/container/component.py
82.92% <100.00%> (+2.92%)
:arrow_up:

superduperdb/container/encoder.py
89.83% <100.00%> (ø)

superduperdb/container/serializable.py
97.95% <100.00%> (+2.83%)
:arrow_up:

superduperdb/db/filesystem/artifacts.py
75.86% <100.00%> (ø)

superduperdb/db/mongodb/artifacts.py
80.00% <100.00%> (ø)

superduperdb/server/client.py
75.18% <100.00%> (-0.18%)
:arrow_down:

superduperdb/server/server.py
83.05% <100.00%> (-0.15%)
:arrow_down:

superduperdb/container/artifact.py
96.36% <92.85%> (-1.51%)
:arrow_down:

... and 9 more

... and 5 files with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


[Request] print party damage to chat with keyboard shortcut

This is a feature from the old hello world overlay.l on nexus. Now it's called, An overlay that shows lots of stuff.
You could open chat and press F5 to print party damage. While some may consider it toxic when hunting with randoms, it's fun for competing with friends.

That's in the future updates list already, just not a priority since it was added recently.