Using chafa.py gives (Format Conversion Error)

Migrating this to it's own issue from https://github.com/joouha/euporie/issues/67. Plotting with chafa.py installed gives a (Format Conversion Error).

Sure thing! See below:
2023-05-03 13:55:28 DEBUG   [euporie.core.terminal.send:115] Sending query '\x1bPtmux;\x1b\x1b]10;?\x1b\x1b\\\x1b\x1b]11;?\x1b\x1b\\\x1b\x1b]4;0;?\x1b\x1b\\\x1b\x1b]4;1;?\x1b\x1b\\\x1b\x1b]4;2;?\x1b\x1b\\\x1b\x1b]4;3;?\x1b\x1b\\\x1b\x1b]4;4;?\x1b\x1b\\\x1b\x1b]4;5;?\x1b\x1b\\\x1b\x1b]4;6;?\x1b\x1b\\\x1b\x1b]4;7;?\x1b\x1b\\\x1b\x1b]4;8;?\x1b\x1b\\\x1b\x1b]4;9;?\x1b\x1b\\\x1b\x1b]4;10;?\x1b\x1b\\\x1b\x1b]4;11;?\x1b\x1b\\\x1b\x1b]4;12;?\x1b\x1b\\\x1b\x1b]4;13;?\x1b\x1b\\\x1b\x1b]4;14;?\x1b\x1b\\\x1b\x1b]4;15;?\x1b\x1b\\\x1b\\' for Colors
2023-05-03 13:55:28 DEBUG   [euporie.core.terminal.send:115] Sending query '\x1b[14t' for PixelDimensions
2023-05-03 13:55:28 DEBUG   [euporie.core.terminal.send:115] Sending query '\x1bPtmux;\x1b\x1b[c\x1b\\' for SixelGraphicsStatus
2023-05-03 13:55:28 DEBUG   [euporie.core.terminal.send:115] Sending query '\x1b[s\x1bPtmux;\x1b\x1b_Gi=4294967295,s=1,v=1,a=q,t=d,f=24;AAAA\x1b\x1b\\\x1b\\\x1b[u\x1b[2K' for KittyGraphicsStatus
2023-05-03 13:55:28 DEBUG   [euporie.core.terminal.send:115] Sending query '\x1bPtmux;\x1b\x1b[>q\x1b\\' for ItermGraphicsStatus
2023-05-03 13:55:28 DEBUG   [euporie.core.terminal.send:115] Sending query '\x1b[?1016$p' for SgrPixelStatus
2023-05-03 13:55:28 INFO    [euporie.core.app.open_file:567] Opening file my-notebook.ipynb
2023-05-03 13:55:28 DEBUG   [euporie.core.app.get_file_tabs:537] File my-notebook.ipynb has mime type: application/x-ipynb+json
2023-05-03 13:55:28 DEBUG   [euporie.core.tabs.notebook.__init__:86] Loading notebooks my-notebook.ipynb
2023-05-03 13:55:28 DEBUG   [euporie.core.kernel.start:375] Imported `ipykernel` to prevent import deadlock
2023-05-03 13:55:28 DEBUG   [euporie.core.kernel.start_:275] Starting kernel
2023-05-03 13:55:28 INFO    [euporie.core.kernel.start_:313] Started kernel python3
2023-05-03 13:55:28 DEBUG   [euporie.core.kernel.post_start_:338] Waiting for kernel to become ready
2023-05-03 13:55:29 DEBUG   [euporie.core.kernel.post_start_:346] Kernel 210bf477-d6c0-4b11-8ba7-cf758c479487 ready
2023-05-03 13:55:29 DEBUG   [euporie.core.kernel.poll:395] Waiting for shell messages
2023-05-03 13:55:29 DEBUG   [euporie.core.kernel.poll:395] Waiting for iopub messages
2023-05-03 13:55:29 DEBUG   [euporie.core.kernel.poll:395] Waiting for stdin messages
2023-05-03 13:55:29 DEBUG   [euporie.core.tabs.base.kernel_started:234] Running 0 kernel tasks
2023-05-03 13:55:29 DEBUG   [euporie.core.history.load:55] Loaded 97 items from kernel history
2023-05-03 13:55:47 ERROR   [euporie.core.convert.core._convert:266] An error occurred during format conversion
Traceback (most recent call last):
  File "euporie-venv/lib/python3.9/site-packages/prompt_toolkit/cache.py", line 40, in get
    return self._data[key]
KeyError: (60, (9, 22))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "euporie-venv/lib/python3.9/site-packages/prompt_toolkit/cache.py", line 40, in get
    return self._data[key]
KeyError: (60, (9, 22))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "euporie-venv/lib/python3.9/site-packages/prompt_toolkit/cache.py", line 40, in get
    return self._data[key]
KeyError:<PHONE_NUMBER>907528482, 'base64-png', 'formatted_text', 60, 19, '#F0F0F0', None, None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "euporie-venv/lib/python3.9/site-packages/prompt_toolkit/cache.py", line 40, in get
    return self._data[key]
KeyError:<PHONE_NUMBER>907528482, 'base64-png', 'ansi', 60, 19, '#F0F0F0', None, None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "euporie-venv/lib/python3.9/site-packages/euporie/core/convert/core.py", line 261, in _convert
    output = _CONVERSION_CACHE.get(
  File "euporie-venv/lib/python3.9/site-packages/prompt_toolkit/cache.py", line 43, in get
    value = getter_func()
  File "euporie-venv/lib/python3.9/site-packages/euporie/core/convert/formats/common.py", line 163, in chafa_convert_py
    return canvas.print(fallback=True).decode()
  File "euporie-venv/lib/python3.9/site-packages/chafa/chafa.py", line 2560, in print
    term_info = term_db.detect()
  File "euporie-venv/lib/python3.9/site-packages/chafa/chafa.py", line 1829, in detect
    glib = ctypes.CDLL(_lib_glib)
  File "/usr/lib/python3.9/ctypes/__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libglib-2.0.so: cannot open shared object file: No such file or directory
2023-05-03 13:55:47 ERROR   [euporie.core.convert.core._convert:269] Failed to convert `'iVBORw0KG` from `base64-png` to `formatted_text` using route `['base64-png', 'png', 'pil', 'ansi', 'formatted_text']` at stage `ansi`
2023-05-03 13:55:47 ERROR   [euporie.core.convert.core._convert:266] An error occurred during format conversion
Traceback (most recent call last):
  File "euporie-venv/lib/python3.9/site-packages/prompt_toolkit/cache.py", line 40, in get
    return self._data[key]
KeyError: (60, (9, 22))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "euporie-venv/lib/python3.9/site-packages/prompt_toolkit/cache.py", line 40, in get
    return self._data[key]
KeyError: (60, (9, 22))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "euporie-venv/lib/python3.9/site-packages/prompt_toolkit/cache.py", line 40, in get
    return self._data[key]
KeyError:<PHONE_NUMBER>907528482, 'base64-png', 'formatted_text', 60, 19, '#F0F0F0', None, None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "euporie-venv/lib/python3.9/site-packages/prompt_toolkit/cache.py", line 40, in get
    return self._data[key]
KeyError:<PHONE_NUMBER>907528482, 'base64-png', 'formatted_text', 60, 19, '#F0F0F0', None, None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "euporie-venv/lib/python3.9/site-packages/euporie/core/convert/core.py", line 261, in _convert
    output = _CONVERSION_CACHE.get(
  File "euporie-venv/lib/python3.9/site-packages/prompt_toolkit/cache.py", line 43, in get
    value = getter_func()
  File "euporie-venv/lib/python3.9/site-packages/euporie/core/convert/formats/formatted_text.py", line 132, in ansi_to_ft
    elif (lexer := detect_lexer(markup, path)) is not None:
  File "euporie-venv/lib/python3.9/site-packages/euporie/core/lexers.py", line 39, in detect_lexer
    lexer = guess_lexer(text)
  File "euporie-venv/lib/python3.9/site-packages/pygments/lexers/__init__.py", line 320, in guess_lexer
    _text, _ = guess_decode(_text)
  File "euporie-venv/lib/python3.9/site-packages/pygments/util.py", line 289, in guess_decode
    text = text.decode('utf-8')
AttributeError: 'list' object has no attribute 'decode'
2023-05-03 13:55:47 ERROR   [euporie.core.convert.core._convert:269] Failed to convert `'iVBORw0KG` from `base64-png` to `formatted_text` using route `['base64-png', 'png', 'pil', 'ansi', 'formatted_text']` at stage `formatted_text`

It appears that is that you don't have glib2 installed, which chafa.py apparently requires

After further investigation I found the glib-locating code in chafa.py. It seems it fails to find glib on my machine:
$ python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctypes.util
>>> ctypes.util.find_library('libglib-2.0')
>>>

Either way, this doesn't appear to be a euporie issue so I will close this. Thanks!

Thanks to @twrightsman this has been resolved with chafa.py v1.1.2. :orange_heart:


Heading change

Seems more appropriate to name this "Release Rules" than "Release Annotations".

Codecov Report

Merging #380 (e740215) into main (9b562d5) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

@@            Coverage Diff            @@
##              main      #380   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           67        67
  Lines         1831      1831
=========================================
  Hits          1831      1831


CentOS Stream based sclorg postgres & redis images

Currently, we're using Centos 7 based postgres & redis images.
In https://quay.io/organization/sclorg there are CentOS Stream 8 and 9 based postgres and redis images:

https://quay.io/repository/sclorg/postgresql-13-c8s (since sclorg/postgresql-container#437)
https://quay.io/repository/sclorg/postgresql-13-c9s
https://quay.io/repository/sclorg/redis-6-c8s
https://quay.io/repository/sclorg/redis-6-c9s

Would be nice to do this together with #327
EDIT: https://fedoramagazine.org/community-container-images-available-for-applications-development/

looks like a great December/Christmas task :)


⚠ Bofrost.de has degraded performance

In 2cc26e9, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1031 ms

Resolved: Bofrost.de performance has improved in 9217dd2 after 6 minutes.


Translate the about page into Spanish

The content for the about page is located here…
https://github.com/foodoasisla/site/blob/master/es/about.md
And you can view the page here…
https://foodoasis.la/es/about/
Halina can help with the translation.

Once the site is redeveloped we will re-translate it.


Corrected first letter requirements

Closes: #1
Updated validations.py python script.
Fixed the behavior of validate_user function in validations.py.
Fixes #1

It's a good idea to open an issue first for discussion.

[ ] Tests pass
[ ] Appropriate changes to README are included in PR

@googlebot I fixed it.


Converting graphs with both public and private inputs

From this comment thread: https://github.com/mortendahl/tf-encrypted/pull/352#discussion_r241010696
We'll probably want to be able to convert graphs where some Placeholders represent private inputs and some represent public ones.  We may want to wait for a use case where this matters before putting effort into it.

What should we do with this one @jvmancuso? Is it something we should consider during #470 or #469?

I'd say #469 over #470

Is it something we should do now? (I’m leaning towards not since we don’t have concrete uses atm)

Probably not, it's important to consider if we're going to do a larger refactor but unnecessary for keras work


fix ambiguous controller path

Make sure that:

[ ] You have read the contribution guidelines.
[ ] You submit test cases (unit or integration tests) that back your changes.
[ ] Your local test passed ./mvnw clean install -Dmaven.javadoc.skip=true.

Codecov Report

Merging #4167 (6971b3d) into master (1c5cf16) will decrease coverage by 0.24%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #4167      +/-   ##
============================================
- Coverage     70.21%   69.97%   -0.25%
+ Complexity     7157     7125      -32
============================================
  Files           965      965
  Lines         26934    26934
  Branches       2399     2397       -2
============================================
- Hits          18913    18848      -65
- Misses         6569     6630      +61
- Partials       1452     1456       +4

Impacted Files
Coverage Δ

.../apache/shenyu/admin/controller/TagController.java
17.64% <ø> (ø)

...ava/org/apache/shenyu/admin/utils/SessionUtil.java
78.94% <0.00%> (-15.79%)
:arrow_down:

...ache/shenyu/plugin/grpc/cache/GrpcClientCache.java
87.50% <0.00%> (-12.50%)
:arrow_down:

...a/org/apache/shenyu/common/utils/VersionUtils.java
35.71% <0.00%> (-10.72%)
:arrow_down:

...henyu/plugin/grpc/resolver/ShenyuNameResolver.java
54.25% <0.00%> (-9.58%)
:arrow_down:

.../apache/shenyu/admin/model/dto/BatchCommonDTO.java
50.00% <0.00%> (-7.15%)
:arrow_down:

...apache/shenyu/admin/model/dto/AuthPathWarpDTO.java
57.14% <0.00%> (-7.15%)
:arrow_down:

...enyu/admin/service/impl/PermissionServiceImpl.java
34.61% <0.00%> (-6.42%)
:arrow_down:

...org/apache/shenyu/admin/model/dto/AuthPathDTO.java
58.82% <0.00%> (-5.89%)
:arrow_down:

...rg/apache/shenyu/plugin/rewrite/RewritePlugin.java
66.66% <0.00%> (-5.56%)
:arrow_down:

... and 32 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


toMatchSnapshot(filepath)

The current jest snapshot tests are annoying in the context of jest (and I presume relay as well) because they put things inside of quotes and add some small wrapper code to make it parse as js and it generates those snapshots in some __ directory.
I've been thinking about this problem for a while and I think I finally have a solution: add the ability to specify the filename as an argument of toMatchSnapshot().
Current
/* file.js */
expect(value).toMatchSnapshot()

/* __snapshots__/file.js.snap */
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`file.js 1`] = `
value
`;

Suggestion
/* file.js */
expect(value).toMatchSnapshot('file.snap')

/* file.snap */
value

Discussion
I'm not 100% sure how to remove unused snapshot files when they are no longer in use.

Yeah, we cannot do this, precisely for the reason you mentioned about consistency between snapshot files and tests. If we had to apply static analysis to get this information, it would break down in a bunch of ways and make this really hard :(

Something that might help: https://github.com/facebook/jest/pull/4183

I'm happy not having unused snapshot files being removed automatically to be honest.

Is there a way to observe if jest is running with -u from within a test in order to implement this proposal in userland?

Not currently. I don't think it's reasonable to deploy something at Facebook that doesn't clean up after itself. We'd have multiple thousand snapshot files at FB at this point if we didn't have the consistency check :(

Hey, I've created this matcher that allows specifying snapshot location in the following way:
expect(value).toMatchSpecificSnapshot('path/to/file.snapshot')

Hope it will help.


Add more tests for PERMAS

So, it looks like you enable tests for more cell types, and then disable some for all mesh formats via
        if cell_type in ["triangle6", "tetra10"]:
            pass
        else:
            assert numpy.allclose(data, mesh.cells[cell_type])

Better: Just don't enable the permas tests for triangle6, tetra10.

How can I disable permas tests solely for triangle6 and tetra10?

Closing in favor of #491.


When open front camera ?

 if (cameraView.Cameras.Count > 0)
 {
     cameraView.Camera = cameraView.Cameras.First(f => f.Position == CameraPosition.Front);
     MainThread.BeginInvokeOnMainThread(async () =>
     {
         await cameraView.StopCameraAsync();
         await cameraView.StartCameraAsync();
     });
 }

Using this code try to open front camera that give this error

Android.Hardware.Camera2.CameraAccessException
Message=CAMERA_DISCONNECTED (2): checkPidStatus:2127: The camera device has been disconnected

@Hardikzinzala - did you get a solution to this problem?


Support for filters

Thanks for this library! It would be nice if you could supply a filter func for filtering certain migrations. Use case:
In the Migrations\Update folder
public class Update_CreateStateTable : Migration {
... // Do "updatey" stuff (create tables, rename columns, etc..)
}

In the Migrations\Seed folder
public class Seed_States : Migration {
...// Seed all states
}

In the Migrations\TestData folder
public class Test_Users : Migration {
...// Seed all test users
}

Then I could provide the following filters to run different scenarios:
This would run only my Update scripts
Func<string, bool> filterOutSeedAndTestScripts = x => !x.Contains("Seed") && !x.Contains("Test");
This would run only my Seed scripts
Func<string, bool> filterOutTestAndUpdateScripts = x => !x.Contains("Update") && !x.Contains("Test");
This would run only my Test scripts
Func<string, bool> filterOutSeedAndUpdateScripts = x => !x.Contains("Update") && !x.Contains("Seed");

Can you do this with a custom IMigrationProvider?

Note that the framework isn't really suited to seed scripts or test data -- it expects to see a linear sequence of migrations, and it expects to be able to undo each and every one of them.  That's not really the case with seed / test data -- you might apply one set of seed data, or you might apply another set: you don't incrementally build up the seed data over the course of many migrations.
I would do seeding by executing scripts against the database outside of the migration framework.

Yeah I thought about it afterwards (about how it would work with the linear progression), it wouldn't fit well with the typical model. Thanks for the response, I will probably just ramp up a little custom library to handle  seed / test data.

If you end up publishing something, let me know and I can link to it - I've had a couple of other people ask about seeding too.
On 27 October 2017 16:32:59 BST, Josh Williams<EMAIL_ADDRESS>wrote:

Yeah I thought about it afterwards (about how it would work with the
linear progression), it wouldn't fit well with the typical model.
Thanks for the response, I will probably just ramp up a little custom
library to handle  seed / test data.
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/canton7/Simple.Migrations/issues/29#issuecomment-340005450


Add license file

According to readme, this repo is licensed under Apache-2.0. However, the license file is missing. Without the license file, this repo is not truly open source. Please consider adding license file to the repo.

Thanks for your suggestion. The LICENSE has been added in 9bd07


Break up Java PostCommit a bit

Noticed in https://scans.gradle.com/s/u7e7etdouunmy/timeline that Dataflow integration tests are linearized and most of the time. This will make a small improvement by running V1 and V2 tests in parallel and separating those from the IO ITs.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Choose reviewer(s) and mention them in a comment (R: @username).
[x] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pullxrequest to the issue.
[x] Update CHANGES.md with noteworthy changes.
[x] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

R: @tysonjh OR @suztomo
Just hitting up a lot of people until someone cares enough to take a look :-)
The Java PostCommit is central to a number of current issues and it will really be nice to split it.
I was thinking this was a quick fix and I would follow it by splitting the Dataflow ITs further if it seemed necessary. The Dataflow ITs with GCP IOs are by far the biggest sink in the "Java PostCommit". The other tests are under 20 minutes. And the two Dataflow jobs should be 1 hour each instead of 3.


refactor cli args

configs/*.yaml files you can skip from check because they are autogenerated

Thank you, that's a huge amount of work!

New naming is a blast!


Patch 2

Re-enabled auto tess buyer after fixing TypeScript errors
Removed dead code that caused an error when clicking on plastic talisman

Looks good. Thank you for fixing these bugs! :)

Looks good. Thank you for fixing these bugs! :)


#19054 use global store for native tasks; do not fix file names patte…

use the global store for native tasks;
do not fix file name patterns after loading
Please check the following:

[x] settings saving between native clients wizards using (restore, backup, MySQL, Postgres)
[x] case from the ticket
[x] again https://github.com/dbeaver/dbeaver/issues/21283
[x] like https://github.com/dbeaver/dbeaver/issues/21283 but for "Execute script" for PostgreSQL

verified


Preserve Directory Structure

Is your feature request related to a problem? Please describe.
Currently all .h files are copied to opdir.. This destroys the directory structure of include files.
Describe the solution you'd like
Take in a base folder and maintain directory structure relative to this folder.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

@palanik1 ok to close?


Fix Dockerfile: start_proxy.sh not found

The backend docker container exits with the error /bin/sh: 1: ./start_proxy.sh: not found when deployed with docker-compose up.
The start_proxy.sh script seems to be put into the /app/data directory, which is overwritten (I think) on startup. Moving the script up one directory works for me.
Edit:
/app/data is a mounted directory. Therefore, the contents (start_proxy.sh) of this directory are missing after startup.
https://github.com/UST-QuAntiL/qhana-backend/blob/e52ee9a46555f13bd95cb02ef0ab41b60fb37064/docker-compose.yml#L8-L9

I moved the corresponding lines, but kept the install_proxy.sh script in /app.
To make sure the issue is not caused by some file structure on my machine I ran a fresh container in an empty directory:
docker run --volume ./experimentData:/app/data ghcr.io/ust-quantil/qhana-backend:main

If this still can't reproduce  the issue, it may be caused by my setup. I tested it on Windows (WSL2).

I can reproduce the problem with your command. Before that I used docker compose which doesn't seem to override the /app/data folder when the volume gets mounted.

The workdir for the final ballerina command should still be /app/data so that relative path will end up in the data folder for ballerina.

I get the following error: /app/start_proxy.sh: line 8: Caddyfile.template: No such file or directory You can try to switch the workdir to /app before the CMD line at the end.

My mistake, I tested without setting the LOCALHOST_PROXY_PORTS environment variable. Now, the start_proxy.sh is called from a subshell in the /app directory.
https://github.com/UST-QuAntiL/qhana-backend/blob/d9937b61a0594fd50b641a981ec7bc2aeb32d1af/Dockerfile#L69
Is that a reasonable solution?


AN (and related INFO fields) should be of 'Number=1'

Although the VCF 4.2 spec does not provide specific information about the count of expected values, it is implied through the definition of AN ("Total number of alleles in called genotypes"), that there would be one AN value per VCF row. The VCF4.3 spec is more explicit about the reserved info keys, and actually does clarify that AB should be of Number=1
AN fields in the gnomad r2.0.2 were of Number=1, but in r2.1, they are Number=A (but it looks like there are only ever one value for these per row.

Hi @bpow. This repository is for the gnomAD browser. Questions and concerns with the dataset and VCF files can be directed to https://github.com/macarthur-lab/gnomad_qc.
I've moved this issue to macarthur-lab/gnomad_qc#5


Add back extended mode mouse event parsing with fifo

Wow. Thanks a lot for this!

Happy to help!


Remove implicit downcasts from flutter_tools

Remove 750 implicit downcasts from flutter_tools
Description
An implicit downcast is currently allowed in the Dart language, it looks something like this:
dynamic x;
String y = x;

This is equivalent to an as cast - the only difference is the syntax (and at one point the generated code for AOT which the tool does not use).
dynamic x;
var y = x as String;

The problem with implicit casts arises when they are used accidentally. The most common example in forgetting to toList an Iterable. This is allowed because we perform an implicit downcast from Iterable<T> to List<T>.
final List<String> ys = xs.map((x) => x.toString())); // Oops no .toList()
requiresListString(ys); // Fails at runtime.

Most recently when pushing updates to the devicelab agent, I had to repeat the process 3 times due to implicit cast errors that I had accidentally introduced!
Since the analyzer has introduced the capability to disable implicit casts, I believe we should take advantage of this for the flutter_tool. correctness here is paramount, and while we're working to measure and improve test coverage, I don't believe it is sufficient to catch all errors.
Introducing this change exposed a handful of bugs, my personal favorite:
int.parse(args['some_arg'] ?? 22);

Furthermore, it identifies several areas of the tool that rely heavily on runtime typing being correct, namely the Context/injection system, Arguments, and the ApplicationPackage class. These should all receive follow up refactors to be made more type safe, so that the explicit casting can be removed.
Related Issues
https://github.com/dart-lang/sdk/issues/31410
Tests

This is an analyzer/syntax change.

Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I signed the CLA.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I updated/added relevant documentation (doc comments with ///).
[x] All existing and new tests are passing.
[x] The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require Flutter developers to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change (Please read Handling breaking changes). Replace this with a link to the e-mail where you asked for input on this proposed change.
[x] No, this is not a breaking change.

To make this easier to review it might make sense to do it in bits, first the ones that involve Context, then the ones that involve Json, etc.

add2app macos strange failure:
	45  XCTest                              0x0000000124d23ccb __27-[XCTestSuite performTest:]_block_invoke + 365
	46  XCTest                              0x0000000124d234a3 -[XCTestSuite _performProtectedSectionForTest:testSection:] + 55
	47  XCTest                              0x0000000124d23766 -[XCTestSuite performTest:] + 296
	48  XCTest                              0x0000000124d6c1a2 -[XCTest runTest] + 57
	49  XCTest                              0x0000000124d9be86 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 171
	50  XCTest                              0x0000000124d9bfa7 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.80 + 68
	51  XCTest                              0x0000000124d3bbc1 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 585
	52  XCTest                              0x0000000124d9bbfa -[XCTTestRunSession runTestsAndReturnError:] + 623
	53  XCTest                              0x0000000124d086b6 -[XCTestDriver runTestsAndReturnError:] + 422
	54  XCTest                              0x0000000124d8c9cd _XCTestMain + 1478
	55  libXCTestBundleInject.dylib         0x000000010f1c1bb8 __copy_helper_block_ + 0
	56  CoreFoundation                      0x00000001121be62c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
	57  CoreFoundation                      0x00000001121bdde0 __CFRunLoopDoBlocks + 336
	58  CoreFoundation                      0x00000001121b8654 __CFRunLoopRun + 1284
	59  CoreFoundation                      0x00000001121b7e11 CFRunLoopRunSpecific + 625
	60  GraphicsServices                    0x0000000115fab1dd GSEventRunModal + 62
	61  UIKitCore                           0x000000011b1b581d UIApplicationMain + 140
	62  ios_add2app                         0x000000010ef91450 main + 112
	63  libdyld.dylib                       0x0000000115218575 start + 1
)
Test Case '-[FlutterTests testHybridView]' failed (7.755 seconds).
Test Suite 'FlutterTests' failed at 2019-04-15 11:18:48.429.
	 Executed 3 tests, with 6 failures (6 unexpected) in 27.094 (27.127) seconds
Test Suite 'ViewControllerRelease' started at 2019-04-15 11:18:48.431
Test Case '-[ViewControllerRelease testReleaseFlutterViewController]' started.
Test Case '-[ViewControllerRelease testReleaseFlutterViewController]' passed (3.616 seconds).
Test Suite 'ViewControllerRelease' passed at 2019-04-15 11:18:52.050.
	 Executed 1 test, with 0 failures (0 unexpected) in 3.616 (3.619) seconds
Test Suite 'ios_add2appTests.xctest' failed at 2019-04-15 11:18:52.052.
	 Executed 4 tests, with 6 failures (6 unexpected) in 30.710 (30.752) seconds
Test Suite 'All tests' failed at 2019-04-15 11:18:52.054.
	 Executed 4 tests, with 6 failures (6 unexpected) in 30.710 (30.757) seconds

Test session results and logs:
	/Users/anka/Library/Developer/Xcode/DerivedData/ios_add2app-csiwhdwugybmwjeggtidemdjpolj/Logs/Test/Test-ios_add2appTests-2019.04.15_11-17-03--0700.xcresult

2019-04-15 11:19:16.724 xcodebuild[14376:33144] [MT] IDETestOperationsObserverDebug: 110.034 elapsed -- Testing started completed.
2019-04-15 11:19:16.724 xcodebuild[14376:33144] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2019-04-15 11:19:16.724 xcodebuild[14376:33144] [MT] IDETestOperationsObserverDebug: 110.034 sec, +110.034 sec -- end
Failing tests:
	-[FlutterTests testDualFlutterView]
	-[FlutterTests testDualFlutterView]
	-[FlutterTests testFullScreenCanPop]
	-[FlutterTests testFullScreenCanPop]
	-[FlutterTests testHybridView]
	-[FlutterTests testHybridView]
** TEST FAILED **

Testing started on 'iPhone X'
🕐 ELAPSED TIME: 0:03:44.631328 for ../../../build_and_test.sh  in dev/integration_tests/ios_add2app:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
ERROR: Last command exited with 65 (expected: zero).
Command: ../../../build_and_test.sh
Relative working directory: dev/integration_tests/ios_add2app

Unfortunately add2app-macos is super flaky

To make this easier to review it might make sense to do it in bits, first the ones that involve Context, then the ones that involve Json, etc.

I'm happy to split this up in a way that can be aided by tools, such as a directory based approach?
splitting it up based on subject matter is going to require me verifying every cast multiple times

Closing in favor of smaller refactors


Coordinate ASP.NET Core and .NET logging documentation

See https://github.com/dotnet/docs/issues/4567 for details.
This issue is blocked until the non-ASP.NET documentation is written.

Closing because I added to https://github.com/dotnet/docs/issues/4567 a proposal for a different approach.  If that is accepted, I'll create new issues for it.


Create validate-reflection-test in Parallel Test Group

Change Description
heifner pointed out in issue 7761 that the validation reflection check has been removed from Buildkite, and that this check is currently failing on develop.
I have created a validate-reflection-test as a part of the parallel test group which calls the validation reflection script the same way it had been called previously. Now this check will be run on Buildkite, the upcoming Travis CI pipeline for the community, and locally. Making it a unit test also reduces the complexity of the pipelines and prevents pipeline changes from disabling it.
Tested
Tested working in build 15108, which correctly failed on the unit tests as expected.
See Also

Issue 7761
Issue 7762
Pull request 7764 against eos:develop

Consensus Changes

[ ] Consensus Changes
None.

API Changes

[ ] API Changes
None.

Documentation Additions

[ ] Documentation Additions
None.

Only going to add this to develop.


[xstate] Actor typing improvements

Addresses #1534

@Andarist Just made some massive improvements to the types, can you re-review?


Compression violates semantic security

As documented in Ben Laurie's blog (http://www.links.org/?p=1277), compression before encryption violates semantic security.
Though both actions are not mandated in the spec, it does mandate compress-then-encrypt ordering.
I am not saying that there is a manifested attack against ACIs due to this. But I do think that in light of recent events, if we could avoid such trap, perhaps we should.

Wow. What a read. I guess this problem is broadly unknown in the development community.
While there is a theoretical flaw here, there's also 30+ years of Unix habits distributing compressed tarballs. That encryption occurs as an outermost layer seems... obvious and unavoidable.
If you can think of an avoidance strategy, I'd love to hear it: what would the suggested fix be?

Doesn't encrypting before compression make compression useless? Good encryption should obscure the repeating parts that compression works with, making the encrypted file statistically closer to noise, so the compression ratio would be much worse after compression. I would expect that encrypting uncompressed data would bring the compression ratio close enough to 1 that we can just skip the compression (and the spec allows you to do that if you wish so).
As pointed out by @globalcitizen, there is a lot of precedent for encrypting compressed data, most obvious being in-transit protection by TLS when transferring compressed data. SSH transport layer also compresses payload before encryption (see https://tools.ietf.org/html/rfc4253#section-6.2).
Given that a lot of plaintext in the image is common - not only at the beginning of the image, but also in the middle (think base system files, common libraries, etc), one could possibly argue that compression can prevent known plaintext attacks or make them harder. Given that the compression can be done with different utilities, and it is not known before decryption which one is used (if any), and which compression level has been used, the metadata leak seems to be obscured by that.
If one is concerned by this particular issue, the spec allows using uncompressed tarballs, so compression can be prohibited within the organization (or disabled in particular implementation). Compressing after encryption is useless, so – unless I'm missing some very clever trick – this issue can be noted in the spec, and the implementation may include a configuration option that would disable compression support.

I agree that there is no benefits to compression after encryption due to increased entropy. So the "fix" is most likely a "Security considerations" section similar to section 6 in RFC 3749 (https://tools.ietf.org/html/rfc3749#section-6).

I am not an expert in these matters but the fact that you can simply not compress your image if you wish solves the problem in the spec for those who want to avoid compression. But, honestly, the type of data that appc will generally contain benefits greatly from compression.
@namn If you want to add a note and link to the rfc3749 discussion in the SPEC around this consideration please do.

Doing compression as part of an encryption suite violates semantic security. But if we view compression as distinct prior step so that plaintext is compressed data, well then there are no problems.

+1 to @eyakubovich 's take
@namn would you mind coming up with a proposal for a security considerations section?

Addressed by #402


Figure out a better way to inform people of new changes!

why write all this code if nobody's gonna know about the new features? :(

Solved via support server


How can I set type "cross-fields" in MultiMatchQuery ?

Hello,
I try to set "cross-fields" in MultiMatchQuery
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-multi-match-query.html#type-cross-fields
I don't find this parameter, do you know if it's possible to set it ?
Thanks,
Antoine

You should be able to set this via the type method, but for some reason, elastic.js restricts this to only have the values of boolean, phrase or phrase_prefix (https://github.com/fullscale/elastic.js/blob/master/src/query/MultiMatchQuery.js#L283). If I remove this validation, I am able to successfully run a cross-fields search. ElasticSearch docs say valid values include best_fields, most_fields, cross_fields, phrase, phrase_prefix. I would guess that this was changed at some point and elastic.js hasn't been updated to match. I will try and submit a pull request for this.

As a hack, you can trick elastic.js in to thinking you're passing in a query object by giving it something like:
{
	_type: function () { return 'query'; },
	toJSON: function () { return {multi_match: this.multi_match}; },
	multi_match: {
		query: queryParams.query,
		fields: [ 'artist_name', 'title' ],
		zero_terms_query: 'all',
		type: 'cross_fields',
		operator: 'and'
	}
}

Looks like there is already a PR to fix this: https://github.com/fullscale/elastic.js/pull/84


got 401 after login when running mvn -Dspring.profiles.active=github spring-boot:run

2015-05-06 15:45:48.441 DEBUG 50098 --- [nio-9999-exec-4] g.c.AuthorizationCodeAccessTokenProvider : Retrieving token from https://github.com/login/oauth/access_token
2015-05-06 15:45:48.506 DEBUG 50098 --- [nio-9999-exec-4] g.c.AuthorizationCodeAccessTokenProvider : Encoding and sending form: {grant_type=[authorization_code], code=[19e74b246a6499498f57], redirect_uri=[http://localhost:9999/dashboard/login], client_id=[89630a412fa314777dc2], client_secret=[c7a29ec26ec7805e78b496ea67cc13e5a9b8bcf0]}
2015-05-06 15:45:49.582 DEBUG 50098 --- [nio-9999-exec-4] uth2ClientAuthenticationProcessingFilter : Authentication request failed: org.springframework.security.authentication.BadCredentialsException: Could not obtain user details from token
2015-05-06 15:45:49.583 DEBUG 50098 --- [nio-9999-exec-4] uth2ClientAuthenticationProcessingFilter : Updated SecurityContextHolder to contain null Authentication

You need to register a client with a redirect URI at localhost:9999 (if that's the port you are testing on).

Thank you! Spent several days, I'm familiar with spring-security-oauth2 now.


joinWith() not working as expected

I have two models User and Group. User has two roles: Manager and Employee.
If user is Manager it can create group(one manager can create only one group), if it is Employee - it can be abble to be assigned to only one group.
This is user group relation in user AR:
public function getGroup()
{
    switch ($this->role_id) {
        case Role::ROLE_MANAGER:
            return $this->hasOne(Group::className(), ['manager_id' => 'id']);
        default:
            return $this->hasOne(Group::className(), ['id' => 'group_id'])
                ->viaTable('groups_has_users', ['user_id' => 'id']);
    }
}

For example, I want to get all users (if user is manager - the group should be instance of group created by manager and if employee - group should be instance of assigned to employee group).
User::find()
    ->joinWith('group')
    ->where(['in', User::tableName().'.id', [2, 3])
    ->asArray()
    ->all();

But for manager group property will be empty (for employees the group is correct). That's why because this query will be generated:
SELECT "users".*
FROM "users"
LEFT JOIN "groups_has_users" ON "users"."id" = "groups_has_users"."user_id"
LEFT JOIN "groups" ON "groups_has_users"."group_id" = "groups"."id"
WHERE "users"."id" IN (2, 3)

So I found what, when yii call getGroup() to create relations, the $this->role_id property is empty and default condition of switch is executed.

You can not define one relation to be through different keys. How would you translate that into one SQL query? You have to create two relations wich will then result in the correct join query for each type of user.

Sorry, I not understand, why do you mean by different keys?
$manager = User::findOne(2)->group and $employee = User::findOne(3)->group works correctly, because in this case $this->role_id is not empty and switch() works correctly.

for lazy loading on one record this will work but it is not possible to use it in joinWith() i.e. eager loading, because it is not possible to create an SQL query from it.

Thanks for explanation.


[app] Unable to run react native following instruction

Upon running react-native run-ios I get `Warning: Failed childContext type: Invalid prop/context 'relay' supplied to 'ApplicationMain', expected 'null' to be an object conforming to the 'RelayEnvironment' interface.
And all I get is a blank screen. The webapp works fine though

I can second this issue, i'm looking for answers but i'v had no luck so far!

When you see blank screen, what color is it? Is there no text whatsoever?

That's the error I get

This is what I get when running the app, and also a redux 'Possible unhandled promise rejection (id: 0)'

All right. Two questions:

Can you run npm run update-ip localhost and npm run dev-reset and try the whole thing again and see if it works?
When you dismiss, is the screen completely white and blank?

Just as a side note, the warning, while it should eventually be dealt with, is harmless. The real issue is you don't see the rest.

Okay so I did run both commands and then react-native run-android to install it again, and react-native start, but again it's blank.
Although when I first  cloned the repo I had to replace
    @Override     protected List<ReactPackage> getPackages() {       return Arrays.<ReactPackage>asList(           new MainReactPackage(),             new KeychainPackage(),             new KeychainPackage()       );     }
with
protected List<ReactPackage> getPackages() {     return Arrays.<ReactPackage>asList(             new MainReactPackage(),             new KeychainPackage());
because I was getting a red box with something about Keychain module overriding RNKeychainManager

Hmmmm this is frustrating. I have the feeling it might be that something went wrong when upgrading to the latest RN version. I will attempt to download a fresh copy and test with it. Can't reproduce with my current local copy.

I did just as the setup instructions said. Also I upgraded Node to 6.5 'cause I had 4.x
Thanks for checking into it @thelordoftheboards

Is it possible that you logged into the native app with a certain user account, and that account was subsequently deleted from the database? This is not yet supported until a better network layer is used.

I haven't created any users from the webapp nor the native app. And I
haven't touch the db either
On Wednesday, August 31, 2016, Alex C<EMAIL_ADDRESS>wrote:

Is it possible that you logged into the native app with a certain user
account, and that account was subsequently deleted from the database? This
is not yet supported until a better network layer is used.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/codefoundries/UniversalRelayBoilerplate/issues/219#issuecomment-243683530,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAVNnH4v7NmgWrzaMgfMcWH4bw78wtiDks5qlS9ygaJpZM4JxKNA
.

--
Dilip Ramírez
Animador/Web Developer freelance
http://artstation.com/artist/dukuo
Fono: +56 9 90724198

You got a fresh copy and it worked?
On Wednesday, August 31, 2016, Dilip Ramirez<EMAIL_ADDRESS>wrote:

I haven't created any users from the webapp nor the native app. And I
haven't touch the db either
On Wednesday, August 31, 2016, Alex C<EMAIL_ADDRESS><javascript:_e(%7B%7D,'cvml','notifications@github.com');>> wrote:

Is it possible that you logged into the native app with a certain user
account, and that account was subsequently deleted from the database? This
is not yet supported until a better network layer is used.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/codefoundries/UniversalRelayBoilerplate/issues/219#issuecomment-243683530,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAVNnH4v7NmgWrzaMgfMcWH4bw78wtiDks5qlS9ygaJpZM4JxKNA
.

--
Dilip Ramírez
Animador/Web Developer freelance
http://artstation.com/artist/dukuo
Fono: +56 9 90724198

--
Dilip Ramírez
Animador/Web Developer freelance
http://artstation.com/artist/dukuo
Fono: +56 9 90724198

All right. Just checking. I have not had a chance to do a fresh copy yet. It is pretty late here, I will be able to try some time tomorrow afternoon/evening PST.

And I thank you profusely. Here's late too, hope tomorrow we can sort this
out. Good night!
On Wednesday, August 31, 2016, Alex C<EMAIL_ADDRESS>wrote:

All right. Just checking. I have not had a chance to do a fresh copy yet.
It is pretty late here, I will be able to try some time tomorrow
afternoon/evening PST.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/codefoundries/UniversalRelayBoilerplate/issues/219#issuecomment-243684325,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAVNnDEKOhTmYHm5lWO5QNmFqUZlhCORks5qlTBKgaJpZM4JxKNA
.

--
Dilip Ramírez
Animador/Web Developer freelance
http://artstation.com/artist/dukuo
Fono: +56 9 90724198

Oops, turned out I checked in incorrect route file sorry.

I believe the routing problem will fix the issues.

If the routing fix does not fix the issues, please re-open

well now the warning is gone, but the screen is still blank
On Wed, Aug 31, 2016 at 4:22 PM, Alex C<EMAIL_ADDRESS>wrote:

If the routing fix does not fix the issues, please re-open
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/codefoundries/UniversalRelayBoilerplate/issues/219#issuecomment-243872154,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAVNnCXCKAm0zVh2NGOzYxpHbmCqQWWqks5qldRwgaJpZM4JxKNA
.

--
Dilip Ramírez
Animador/Web Developer freelance
http://artstation.com/artist/dukuo
Fono: +56 9 90724198

Well, now it displays "Error while fetching data from the server. Retry?" so I guess I have to setup Cassandra now

You can also configure to run in-memory. However, your user accounts will be gone when you restart, and the mobile app will fail when you got invalid account in keychain: https://github.com/codefoundries/UniversalRelayBoilerplate/issues/167
You can also use DynamoDB with docker now ...

So I installed Cassandra (finally, PITA.) and I keep getting the error of "Error while fetching data from the server. Retry?" and the invalid relay prop type!

Well, first, let's reopen the issue.

Does the web version work?
Have you tried running npm update-ip?
Have you tried npm run dev-reset?

Yes to all of em'. Now i'm just getting a blank screen (was that the starting point?)

Does run-ios work, or both run-android and run-ios do not work?

I'm on Linux so I can't run run-ios

I'm back to the "Error while..."

Would trying on a device be an option? I am not sure what is going on to be honest, and also never ran it on Linux so not sure what the specifics are ...

I get this (Samsung Galaxy S4 running Lollipop)
On Sep 2, 2016 5:31 AM, "Alex C"<EMAIL_ADDRESS>wrote:

Would trying on a device be an option? I am not sure what is going on to
be honest, and also never ran it on Linux so not sure what the specifics
are ...
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/codefoundries/UniversalRelayBoilerplate/issues/219#issuecomment-244328703,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAVNnNBdgWA8BZwUURQ0fWBQIvrLUkmIks5ql-z9gaJpZM4JxKNA
.

?

hold on I attached the screenshot from the device through the e-mail chain

(https://cloud.githubusercontent.com/assets/347548/18117221/918903bc-6f23-11e6-85f5-6dd1a2afc8de.png)

Well it's the same but in the device

yeah let's ignore the warning it's ok ..... i just don't get why can't you connect to the server :(

Okay so I might be doing some step wrong. What is required to run on android? Do I need to have Cassandra running on my dev machine? I just cloned the repo and configured the IPs and that's all.

btw I successfully created the DB in my local Cassandra installation

Hit me up on https://twitter.com/Lordoftheboards tomorrow we can try to do screen share and look, at this point I am not sure. Never run it on Linux so not sure if this is the issue.

Will do. But let me get his off my mind. What am I supossed to see with a successful react-native run-android ?
:/

I would imagine should be the same as for the iOS version, login dialog with navigation pane on the left.

Are you able to run-android a proyect directly from the repository ?
On Fri, Sep 2, 2016 at 3:17 PM, Alex C<EMAIL_ADDRESS>wrote:

I would imagine should be the same as for the iOS version, login dialog
with navigation pane on the left.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/codefoundries/UniversalRelayBoilerplate/issues/219#issuecomment-244450271,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAVNnA_HHTNykzKJJN2ehB10d4oHxsvhks5qmGg9gaJpZM4JxKNA
.

--
Dilip Ramírez
Animador/Web Developer freelance
http://artstation.com/artist/dukuo
Fono: +56 9 90724198

FYI  I did a fresh install and setup today with Cassandra locally on Windows 10. The web site looks ok, but running "react-native run-android" directly to usb connected Samsung Android 6.0.1. I also had to modify the @Override and am now seeing the same server connection error as @DilipRamirez  On the FB device troubleshooting page they mention connecting to the dev server over wifi I couldn't immediately get that to work. I'll look into this more as well tomorrow. thanks

My first task after Labor Day will be to test it myself again.

Well, when I do it this time I can not even compile it for some reason, and that was working last time I checked.
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> A problem occurred configuring project ':react-native-device-info'.
   > Could not resolve all dependencies for configuration ':react-native-device-info:_debugCompile'.
      > Could not find any matches for com.google.android.gms:play-services-gcm:+ as no versions of com.google.android.gms:play-services-gcm are available.
        Searched in the following locations:
            file:/Users/alex/.m2/repository/com/google/android/gms/play-services-gcm/maven-metadata.xml
            file:/Users/alex/.m2/repository/com/google/android/gms/play-services-gcm/
            https://jcenter.bintray.com/com/google/android/gms/play-services-gcm/maven-metadata.xml
            https://jcenter.bintray.com/com/google/android/gms/play-services-gcm/
            file:/Users/alex/Documents/Projects/URB_TestMaps/UniversalRelayBoilerplate/node_modules/react-native/android/com/google/android/gms/play-services-gcm/maven-meta
data.xml
            file:/Users/alex/Documents/Projects/URB_TestMaps/UniversalRelayBoilerplate/node_modules/react-native/android/com/google/android/gms/play-services-gcm/
            file:/usr/local/opt/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-gcm/maven-metadata.xml
            file:/usr/local/opt/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-gcm/

It seems I might need to reinstall the Android SDK.

I will upgrade to 0.33 and re-test from scratch.

While the application in Android looks absolutely horrifying, it is running for me pretty well from Android Studio after a few upgrades:

I will commit the updates and @DilipRamirez I implemented the change you suggested about keychain, apparently some weird behavior with react-native link.
@DilipRamirez @dgmills914 : Do you have Android studio to test with?

I believe that the issues are resolved and I am closing this issue.


Selection cleared in vim mode

When using vim mode (NeoVintageous in my case), I cannot get the message to apply to my selection. When I select something, then go to New Message, the selection clears, and no context is sent to ChatGPT. It works only if I use vim's visual select mode.
https://github.com/yaroslavyaroslav/OpenAI-sublime-text/assets/7758/7c31818a-6275-45c4-bcb4-fe5c8a64dcf5
P.S. This is on latest version (4.0.0)

And what's the assistant mode is used here (panel, append, insert, edit)?
And to clarify neovim is the package, right?

@yaroslavyaroslav The mode is "replace", the package for vim mode is NeoVintageous, and I select by switching to insert mode (i) and pressing or shift+up, shift+down.

Yeah, now I'm able to reproduce that, but luckily 😅 the problem is not on my side. NeoVintageous drops selection on a focus change in that particular case. And this is exactly what happening when input panel appears from the bottom. So at the time when plugin reads from a buffer selection it's empty, nothing to say about the time when it's starting to write.
You could check it yourself by switching between two groups from one to another and then to compare it with (v) selection behaviour.
So I'm afraid I could only suggest you to raise this issue in their repo, I mean if it's not the desired behaviour in this mode ofc (not into vim stuff).

Makes sense, I posted an issue there. 🤞🏻

Closing this so far.


Terminal text is highlighted

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version:  1.85.2
OS Version:  Windows 11

Steps to Reproduce:

Launched VSCode and connected to a Linux instance using SSH
After couple of commands, the text is continuosly getting in highlight mode as below

This type of thing is typically because the program in the terminal tells the terminal to change the background color. To validate this, you can enable trace logging mode before this happens and check what the sequences are when it happens. https://github.com/microsoft/vscode/wiki/Terminal-Issues#enabling-trace-logging

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


[Feature] To be able to have the same marker symbols in tooltips than in chart

What problem does this feature solve?
In line charts, one can have different symbol markers on his different lines, which is great for accessibility. Unfortunately, I have found no way to retrieve the symbol used in a line in order to put it in the tooltip of the chart. That would allow to have tooltips stating such things as:

"RedDiamond" sales: 300$
"BlueSquare" purchases: 250$

when hovering the mouse over the chart.
I've tried:
formatter: function(paramsRaw) {
  let text = '';
  paramsRaw.forEach(param => {
    text += `${param.marker}<br>`;
  })
  return text;
}

But 'marker' always gives me the round bullet (fortunately, with the right colour), which defeats the accessibility I aim at when using symbols.
N.B.: I use only one symbol type on each line, even when there is more than one value on the line.
Cf.: symbols example where the legend uses the right symbols but not the tooltip
What does the proposed API look like?
Maybe to have a 'symbol' property in the params of the tooltip formatter function would be enough, like so:
formatter: function(paramsRaw) {
  let text = '';
  paramsRaw.forEach(param => {
    text += `${param.symbol}<br>`;
  })
  return text;
}

This way, if you want to access the round marker you can (for example when a single line has several symbols) and when you want to access a line which has several markers using symbols, you can access them, too.

You should store this information before passing it to option.

I'm not sure to know what you mean, sorry. Could you show me a code snippet?

Here is a demo.

I'm sorry but I wasn't asking for the symbol names in the tooltip. Rather what I'm trying to achieve is to have a symbol itself as a reminder of a line meaning in a line chart.
Let's say I have a line which represents eggs with a value of 3 and a green triangle as a symbol, and another line which represents bacon with a value of 5 and a red circle as a symbol. Then, I'd like to have in the tooltip :
"the drawing of the green triangle": 3 eggs
"the drawing of the red circle": 5 slices of bacon
Just as in the legend where the drawing of the symbols are used to enrich the legend.

Hello,
Is there any news there, please? Or shall I reverse the problem and provide my own SVGs to eCharts and then display them as HTML in the tooltips (just as in the example using the 'marker' property)?
The greatest advantage of letting eCharts roll his own is that the end result is more than correct and that it applies in my app to a lot of charts at once as we have factorised eCharts code. Plus it would benefit to other users with the same need.
On the other side, if I provide the symbol as SVGs as seen here: SVG path data it will be even more flexible but every user of the lib is forced to do so without you providing us the right property. Hence, my current request.
Thanks a lot in advance!

@AntidotUser, that would be a nice new feature indeed. And also consistent with the legend icons.
Here is a workaround with custom SVGs - Demo.

Thanks a lot for the demo code: it demonstrates elements of the API that I did not know about. I'll do like this & wait for the feature to become official. Congratulations for such a neat piece of software and thanks for the hard work.

Thank you for the kind words 💖
Actually there is no need to use internal calls. Here is a simplified version - Demo.

Ho you're welcome. Thanks, that's even better. It's most appreciated.

Ho thanks again, this is even better. Cheers!


Failed during "Crawling initial file list"

Hi,
it failed during crawling, however, it succeeded many times previously.
I tried many increments with no help??
Thanks in advance.

hi. same issue. any answers?

Same issue. Brand new site. Just imported data from WordPress.com. Also, unable to find the group on Slack ... the links provided go to an error page.

Hi all, I've simplified things in V7 of the plugin, for which there are early alpha builds available to test here: https://github.com/WP2Static/wp2static/releases/tag/7.0-alpha-003
Main requirements change is PHP >= 7.2
There will be a few other extensions required, but if you're able to activate, there's a new Diagnostics screen and better logging of errors by default. Please let me know how you go.

Hi all, I've simplified things in V7 of the plugin, for which there are early alpha builds available to test here: https://github.com/WP2Static/wp2static/releases/tag/7.0-alpha-003

@leonstafford I've updated php version to 7.4 and am experiencing the same error. I'm happy to try out alpha builds of v7, but unfortunately the link is broken, and I don't see any tags or releases in this repository. Can you provide a new link?
Thank you!

@leonstafford Experiencing the same issue.  Same as @jasminexie the link to the alpha version is broken.

Same issue here, cannot activate the plugin.

Should be fixed now in v7. Please let us know if you still have any issues.


docs: add deprecation warning for the base64 icons

Preview environments are getting posted here, as soon as they are ready!


Should the name be different?

It doesn't help you drive (code), but it helps you read. Names I thought of:

steno explain
stenography glasses
steno lens
steno map

imo the name stenography is also a little long, maybe steno would do?

Upon further reflection, I've decided to keep the name. Autopilot isn't so much that the developer is having an "autopilot" experience, but the parser layer is running the Stenography layer automatically, as opposed to developers running it manually on self chosen code blocks.
As for Steno, I call it that a lot based on parlance, but the business is registered and trademarked as Stenography :)


HIGH Security Vulnerability in hapi-fhir-test-utilities

hapi-fhir-test-utilities has a dependency on net.sourceforge.htmlunit which has a dependency on xalan:xalan.
xalan:xalan:2.7.2 has a HIGH security vulnerability and was last updated on July 24, 2014. see
Results from a WHITESOURCE security scan:

Artifact ID: xalan
Group ID: xalan
Library Version: 2.7.2
Library Path: /root/.gradle/caches/modules-2/files-2.1/xalan/xalan/2.7.2/d55d3f02a56ec4c25695fe67e1334ff8c2ecea23/xalan-2.7.2.jar
Type: MAVEN_ARTIFACT
Description: The Apache Xalan Java XSLT library is vulnerable to an integer truncation issue when processing malicious XSLT stylesheets. This can be used to corrupt Java class files generated by the internal XSLTC compiler and execute arbitrary Java bytecode. The Apache Xalan Java project is dormant and in the process of being retired. No future releases of Apache Xalan Java to address this issue are expected. Note: Java runtimes (such as OpenJDK) include repackaged copies of Xalan.
Suggested Fix: No suggested fix

Heya! Greatly appreciate the report.  The test utilities are test-scoped, and not shipped in production code. Since there seems to be no remediation immediately available, do you have any recommendations? Do you think it would be safe to just remove the dependency?

Someone should look at hapi-fhir-server-openapi because the test utilities are not scoped to test only. That's how we stumbled onto this issue. I'll add a new issue to resolve this.
The scanning tool we use apparently does not make distinctions between "test" and "production" dependencies, so we cannot make use of the test utilities package in our project.
Since the test utilities has a dependency on HtmlUnit and HtmlUnit has the dependency on Xalan, the only thing I can think of is to find an alternative to HtmlUnit that does not contain a dependency on Xalan. I'm not familiar with these tools, but a quick Google search (htmlunit alternative java) identified https://github.com/dhamaniasad/HeadlessBrowsers with numerous suggestions.

Whoops! That is definitely an oversight, that should be a test scoped dep for sure.

I'll submit a patch to to fix this for 6.1.0
On Mon, Aug 8, 2022, 7:30 AM James Agnew @.***> wrote:

Whoops! That is definitely an oversight, that should be a test scoped dep
for sure.
—
Reply to this email directly, view it on GitHub
https://github.com/hapifhir/hapi-fhir/issues/3885#issuecomment-1208206657,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AANEA4JRSBXOOALB7GSG6FTVYEKWXANCNFSM55XISJVQ
.
You are receiving this because you commented.Message ID:
@.***>

This is fixed by https://github.com/hapifhir/hapi-fhir/pull/4306 if someone could review.

Having a peek now. Looks like I.... did not fix this for 6.1.0 🤦🏻


request help: ignore the artifacts after make build

make build generates apisix-ingress-controller, which is not ignored by git.

We should change the .gitignore file.

The ./apisix-ingress-controller should be changed to apisix-ingress-controller.

Sovled by #239 .


Code issue when validating the test vectorf for MOPS Aircraft and Control Model

When running A/C model test vectors,  the following four issues were found. All the A/C Model test vectors can run pass with the corrections in the code below.

In BadaWithCalc::getMaxThrust() in BadaWithCalc.cpp,  the input parameter “h” is meter, but Transition altitude, etc in struct engine_thrust are feet. So the input parameter "h" should be converted to feet.

In function BadaWithCalc::getConfigForDrag() , the input parameter "double alt" and the variable "altAtFAF" are defined as meter, it should be converted to feet in this function per defination in MOPS Appendix H (Algorithm H.8 Get Configuration for Increased Drag).

In function StateModel::init() in StateModel.cpp, the finalAltitude was set to the first h_ref[m] in VFP.
void ThreeDOFDynamics::init(double mass_percentile, Units::MetersLength altAtFAF_in, …)
{
…
altAtFAF = Units::MetersLength(altAtFAF_in);

In FimAcTv-T~W_JET6_VFP.csv, the first h_ref[m] was set as finalAltitude (3962meters). This will set the FAF to 10000ft, where the flap will be changed in BadaWithCalc::getConfigForDrag(), so the test FimAcTv-T~W _JET6 failed.
TTG[sec]	DTG[m]	h_ref[m]	Vias_ref[m/s]	hdot_ref[m/s]
0	0	3962.399994	87.45556	0
Current our solution is hardcoded with altAtFAF with 3000feet.

The vector preCal_Wpt  in FlightManagementSystem::update() in FlightManagementSystem.cpp are pushed from HPT_1 to HPT_8. So the constraint_dist are vectored starting from the endpoint in function TrajectoryFromFile::calculateWaypoints() . So precalcWaypoints[ix].constraints.constraint_dist is greater than precalcWaypoints[ix-1].constraints.constraint_dist, the condition below will always be failed.

for (int ix = 1;(ix<precalcWaypoints.size());ix++) {
if ((currDist < precalcWaypoints[ix-1].constraints.constraint_dist) &&
(currDist >= precalcWaypoints[ix].constraints.constraint_dist))
{
this->NextWp = ix;
break;
}
Current our solution is
for (int ix = 1;(ix<precalcWaypoints.size());ix++) {
if ((currDist >= precalcWaypoints[ix-1].constraints.constraint_dist) &&
(currDist < precalcWaypoints[ix].constraints.constraint_dist))
{
this->NextWp = 8-ix;
break;
}

Hi @HonJinghua :

Yes, that unit conversion is correct.
Yup, that unit conversion is also correct.
Hmm.....I'm not comfortable with your hard-coded solution. I re-ran this test case & do not find any problems with the final output. In our simulation, the aircraft switched drag modes (from 0 to 1) at around alt = 4025 meters. The transition was triggered because v_cas dropped below the BADA approach max speed. Please re-examine your implementation to see if you missed anything in the getConfigForDrag calculation.
I'm not sure about this one. I will need to examine it more thoroughly before I can respond.

For #3,we find the root cause. The implementation for getConfigForDrag per MOPS Algorithm H.8. For JET6, but the JET6 additional parameter defined in MOPS table G-5 in Appendix G are not set into BADA data.
The original data in BADA data parameters are set to 0 by default, why not put into BADA data directly? the other vendor will not meet this kind of issue:)

Good, I'm glad you were able to find the root cause!
Yes, you are correct that JET6 has an extra parameter value that is NOT provided by EUROCONTROL. That data is provided by a separate organization and so is outside of our control. We cannot modify it for you, which is why it was specifically mentioned in the MOPS Appendix G. I'm glad your simulations are working better for you now. I'll close this comment now.

Sorry, just realize this was the wrong one to close. I've reopened it and will provide an answer for 4) above soon.

Stuart,
For the #3, do you think if JET6 additional parameter can be included in BADA Data as well? So maybe other vendors don’t need to further investigate this issue if not aware of this at beginning.
Thanks,
Jinghua
From: Stuart Bowman<EMAIL_ADDRESS>Sent: 2015年7月8日 21:42
To: mitre/FMACM
Cc: Zheng, Jing Hua (Ex Ch01)
Subject: Re: [FMACM] Code issue when validating the test vectorf for MOPS Aircraft and Control Model (#5)
Sorry, just realize this was the wrong one to close. I've reopened it and will provide an answer for 4) above soon.
—
Reply to this email directly or view it on GitHubhttps://github.com/mitre/FMACM/issues/5#issuecomment-119582637.

Well, as I've already stated, we don't have control over that data. But, we can bring up your concern with the committee and we will do that soon.

@HonJinghua : I'm going to turn question 4) above into new issue #6 and close this one.


SPARKC-341 change index names to 'handled' names

Build against Scala 2.10 finished with success

Build against Scala 2.11 finished with success

Build against Scala 2.11 finished with success

Build against Scala 2.10 finished with failure

Build against Scala 2.10 finished with success

+1, old +1 lost on the old commit :)


discord-canary: 0.0.84 -> 0.0.85

Motivation for this change
Things done

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

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

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Getting an error when starting this, hence the WIP:
DiscordCanary 0.0.85
(node:9630) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Fontconfig warning: "/etc/fonts/fonts.conf", line 86: unknown element "blank"
Starting app.
Removing old directory  0.0.84
Another instance exists. Quitting.
/nix/store/j24zhd4x0sfzw2593b39ad0dqkf185ib-discord-canary-0.0.85/opt/DiscordCanary[9630]: ../../third_party/electron_node/src/node_platform.cc:435:std::shared_ptr<PerIsolatePlatformData> node::NodePlatform::ForIsolate(v8::Isolate *): Assertion `data' failed.
[1]    9630 abort      discord

Turns out that was just an unlucky random bug, it seems to start up fine after that.
Note that with Discord, the old versions no longer work once an update has been released, so merging this quickly would be nice.

Agreed, given this is a minor version bump and that old versions become unusable without warning, I will merge immediately.

merged as of e2a407bb01b51b922c9fd4d2ff9a044dd773a36d
wouldn't let me automerge so I just did it manually


Anyone able to get TensorRT running with StreamDiffusion on an RTX 2050 (with 4GB VRAM)?

I have a build with everything needed for SD+TRT is installed, but when I run SD with TensorRT enabled, I encounter memory issues.
I believe it's possible for these issues to be gotten around by using an ONNX converter (per @yoinked-h on GitHub).

Regular to ONNX conversion can be done on CPU

You need to use torch cpu and launch with --skip-torch-cuda-test --no-half --precision full

You need to remove the cuda imports temporarily from trt.py in /scripts

In export_onnx.py you need to replace device.devices to "cpu", devices.dtype to torch.float and remove "with devices.autocast():"

But at this point, with a vanilla build of SD + TensorRT (10.0), I get the following error:
Using TensorRT...

Compiling TensorRT UNet...
This may take a moment...

Found cached model: engines\stabilityai/sd-turbo--lcm_lora-True--tiny_vae-True--max_batch-2--min_batch-2--mode-img2img\unet.engine.onnx
Found cached model: engines\stabilityai/sd-turbo--lcm_lora-True--tiny_vae-True--max_batch-2--min_batch-2--mode-img2img\unet.engine.opt.onnx
Building TensorRT engine for engines\stabilityai/sd-turbo--lcm_lora-True--tiny_vae-True--max_batch-2--min_batch-2--mode-img2img\unet.engine.opt.onnx: engines\stabilityai/sd-turbo--lcm_lora-True--tiny_vae-True--max_batch-2--min_batch-2--mode-img2img\unet.engine
[libprotobuf WARNING **************************************************************************\externals\protobuf\3.0.0\src\google\protobuf\io\coded_stream.cc:604] Reading dangerously large protocol message.  If the message turns out to be larger than<PHONE_NUMBER> bytes, parsing will be halted for security reasons.  To increase the limit (or to disable these warnings), see CodedInputStream::SetTotalBytesLimit() in google/protobuf/io/coded_stream.h.
[libprotobuf WARNING **************************************************************************\externals\protobuf\3.0.0\src\google\protobuf\io\coded_stream.cc:81] The total number of bytes read was<PHONE_NUMBER>
[I]     Configuring with profiles: [Profile().add('sample', min=(2, 4, 64, 64), opt=(2, 4, 64, 64), max=(2, 4, 64, 64)).add('timestep', min=(2,), opt=(2,), max=(2,)).add('encoder_hidden_states', min=(2, 77, 1024), opt=(2, 77, 1024), max=(2, 77, 1024))]
[W] profileSharing0806 is on by default in TensorRT 10.0. This flag is deprecated and has no effect.
[I] Building engine with configuration:
    Flags                  | [FP16]
    Engine Capability      | EngineCapability.STANDARD
    Memory Pools           | [WORKSPACE: 4095.50 MiB, TACTIC_DRAM: 4095.50 MiB, TACTIC_SHARED_MEMORY: 1024.00 MiB]
    Tactic Sources         | []
    Profiling Verbosity    | ProfilingVerbosity.LAYER_NAMES_ONLY
    Preview Features       | [PROFILE_SHARING_0806]
[E] 2: [virtualMemoryBuffer.cpp::nvinfer1::StdVirtualMemoryBufferImpl::resizePhysical::140] Error Code 2: OutOfMemory (no further information)
[W] Requested amount of GPU memory<PHONE_NUMBER> bytes) could not be allocated. There may not be enough free memory for allocation to succeed.
[W] UNSUPPORTED_STATE: Skipping tactic 0 due to insufficient memory on requested size of<PHONE_NUMBER> detected for tactic 0x0000000000000000.
[E] 2: [virtualMemoryBuffer.cpp::nvinfer1::StdVirtualMemoryBufferImpl::resizePhysical::140] Error Code 2: OutOfMemory (no further information)
[W] Requested amount of GPU memory<PHONE_NUMBER> bytes) could not be allocated. There may not be enough free memory for allocation to succeed.
[W] UNSUPPORTED_STATE: Skipping tactic 0 due to insufficient memory on requested size of<PHONE_NUMBER> detected for tactic 0x0000000000000000.
[E] 2: [virtualMemoryBuffer.cpp::nvinfer1::StdVirtualMemoryBufferImpl::resizePhysical::140] Error Code 2: OutOfMemory (no further information)
[W] Requested amount of GPU memory<PHONE_NUMBER> bytes) could not be allocated. There may not be enough free memory for allocation to succeed.
[W] UNSUPPORTED_STATE: Skipping tactic 0 due to insufficient memory on requested size of<PHONE_NUMBER> detected for tactic 0x0000000000000000.
[E] 2: [virtualMemoryBuffer.cpp::nvinfer1::StdVirtualMemoryBufferImpl::resizePhysical::140] Error Code 2: OutOfMemory (no further information)
[E] 2: [virtualMemoryBuffer.cpp::nvinfer1::StdVirtualMemoryBufferImpl::resizePhysical::140] Error Code 2: OutOfMemory (no further information)
[E] 2: [virtualMemoryBuffer.cpp::nvinfer1::StdVirtualMemoryBufferImpl::resizePhysical::140] Error Code 2: OutOfMemory (no further information)
[E] 2: [virtualMemoryBuffer.cpp::nvinfer1::StdVirtualMemoryBufferImpl::resizePhysical::140] Error Code 2: OutOfMemory (no further information)
[W] Requested amount of GPU memory (325058560 bytes) could not be allocated. There may not be enough free memory for allocation to succeed.

If anyone has gotten further, and can share the way it's working, it would be greatly appreciated. I'd like to be able to use my pre-production laptop to write TouchDesigner code without having to be tethered to my production machine. And even though I don't need to see super high frame rates in those cases, it would be nice to get past 2fps (frame rate without TensorRT on my machine), to know what noise map setting and step scheduling settings will work best when I ship my project files if possible.

To clarify, running SD without TensorRT works fine. SD-Turbo works fine. And other optimized (tensor-based) models work fine. The memory problem only comes up under SD + TensorRT builds.


Create a pool of google maps objects to get around memory leak

Cool library.  I suggest an enhancement to get around a know google maps memory leak (http://stackoverflow.com/questions/21142483/google-maps-js-v3-detached-dom-tree-memory-leak).
I think the best fix would be to see if there are any available google maps objects for reuse.  If not, create one.  On unmount return the google map object to the pool after the call to _set_map(null).

Feel free to submit a PR. Close for now
We're also looking for maintainers. Involve in #266 to help strengthen our community!


How I parse and formate date dd/mm/yyyy to datepicker  show mm/dd/yyyyy

Buefy version: 0.6.1
Vuejs version: 0.6.1
OS/Browser: safari
Description
How I parse and formate date dd/mm/yyyy to datepicker only show mm/dd/yyyyy

Pass a custom function as date-formatter attribute, you could control what date displays.
And set date-parser, you could customize how the date was parsed.
With date-fns, the implementation could be something like(I only know JSX syntax, so you could see manual handling of input event. However it's not the point):
import {parse, format, subWeeks, startOfToday} from 'date-fns'

// ...

<b-datepicker
  label="input date"
  on-input={v => this.date= v}
  value={this.date}
  date-formatter={d => format(d, 'M/D/YYYY')}
  date-parser={dateString => /* your own logic to deal dd/mm/yyyy */}
  min-date={subWeeks(startOfToday(), 1)}
  max-date={startOfToday()}
>

The doc(see The API section): https://buefy.github.io/#/documentation/datepicker
BTW, @rafaelpimpa how do you think about allowing unlimited date range, i.e. make min-date and max-date optional ?

@frantic1048 Range is optional

@jtommy I see. I may pass invalid argument before thus consider it is required.

The above syntax doesn't work with Vue 2.5

i have
v-model="startdate"
currently ${this.startdate} is displayed "Wed Apr 24 2019 00:00:00 GMT-0700 (Pacific Daylight Time)" I want it to display "2019-04-24"
what do i do?

@amirhkhadem if you would like to display it on the input you have to use :date-parser prop, Either if you would like to set it to var you have to use :date-formatter. You can simply call a function with this  props.


This will fix the PHP commenting issue

I don't think this fixed the issue, in blade I'm getting the HTML comment styles instead of the Blade comment styles

Yeah, I now have the same. I had it working... thats why I made the PR 😢

@djekl @jdavidbakr Comment toggle issue has been resolved. I've just pushed a new release <IP_ADDRESS>. You can try it now.
Here is the screenshot of my blade test.

So far so good!  Thanks again!

I have run into something else that is now broken - previously I was able to tab and create HTML elements, i.e.:
.test [tab]

would expand to

but this is not working now.  I feel like this might be another package that handled that, but it was working with the previous version of laravel-blade and is no longer working.

@jdavidbakr This issue has been resolved. You can upgrade the package v<IP_ADDRESS> :)

@zaynali53 - thank you for all the effort you're putting into getting this package working - I feel like we're in a bit of a circular vortex though, the comments in my blade file have reverted back to html style.

Here is what I'm getting with the same content of your test you have above

{{-- {{ trans('page.content') }} --}}

@jdavidbakr i've updated the scopes as some of them were conflicting with each other and now html scope will use html comment and blade scope will use blade comment as it should be so if your cursor is in the html scope then it'll generate it's corresponding comment.
Because: Sublime comment settings uses scope to detect where to use what comment.
For example
@include('master')| will generate html comment (html scope)
@include('maste|r') will generate blade comment (blade scope)

@zaynali53 I see, although I prefer the previous behavior as I would prefer to keep my comments in my blade file from being delivered in to the client in the HTML.

@jdavidbakr I agree. This feature was added due to this request https://github.com/Medalink/laravel-blade/issues/125#issuecomment-225416940

@zaynali53 any way it could be an option to turn on or off in the preferences?  If you're on my side as the developer I think the default action should be how it was previously and the change from request #125 could be enabled via an option.

@jdavidbakr I've just revert back to the blade comment. So now that would be the default comment.


crash in WebRTC CreateTurnPoint

On one of my testing devices (iPhone 6 with 8.4.1) I have been able to reliably crash my app when connecting. The error message is the same one described here: https://code.google.com/p/webrtc/issues/detail?id=4827. Strangely, it doesn't happen on my other iPhone 6.
It looks like they've since fixed the issue. I'm attempting to build it now, but I figured I'd let you know about it too.

Thanks. Once #54 is done this bug will be automatically fixed (given that it does not depend on the plugin code but on the libwebrtc library. So let's close this issue in favor of #54.


Running Mac plugin_test_ios on an arm Mac times out

I tried running the Mac plugin_test_ios build on arm64 Macs, but the tests timed out at 30 minutes:
https://ci.chromium.org/p/flutter/builders/try/Mac plugin_test_ios/13856?
In prod the same test is only taking 14 minutes: https://ci.chromium.org/p/flutter/builders/prod/Mac plugin_test_ios/6575

The new ARM builder has 8 cores and the old bot that ran the one passing in 14 minutes had 12 cores.

Likely the same as https://github.com/flutter/flutter/issues/119750, closing.


go get -v github.com/derekparker/cmd/dlv failed

Please answer the following before submitting your issue:
Note: Please include any substantial examples (debug session output,
stacktraces, etc) as linked gists.

What version of Delve are you using (dlv version)? want to install
What version of Go are you using? (go version)? go1.7.3 windows/amd64
What operating system and processor architecture are you using? win7 64
What did you do? install
What did you expect to see? successful
What did you see instead? failed

go get -v github.com/derekparker/cmd/dlv
github.com/derekparker/cmd (download)
cd .; git clone https://github.com/derekparker/cmd C:\GoWorks\src\github.com\derekparker\cmd
Cloning into 'C:\GoWorks\src\github.com\derekparker\cmd'...
remote: Repository not found.
fatal: repository 'https://github.com/derekparker/cmd/' not found
package github.com/derekparker/cmd/dlv: exit status 128

it's go get -v github.com/derekparker/delve/cmd/dlv

sorry, I copied error path
actually, I followed this Installation on Windows but still failed, then I git clone the whole project and go install locally.
and this path is also not found

https://github.com/derekparker/delve/cmd/dlv

anyway, currently it work well now. thanks. :)


Unable to link Mathematica

I am unable to link Mathematica with Spinparser, I am facing following error.

Hi, it sees that Mathematica cannot correctly locate the spinparser.m file, which contains the function definitions. Please make sure that the file exists in the path opt/mathematica/spinparser.m relative to your installation directory of SpinParser.
Next, you should add the absolute search path of the directory opt/mathematica to Mathematica, e.g. by invoking the command AppendTo[$PATH, "/path/to/your/spinparser/installation/opt/mathematica"]. Note that in the Screenshots which you shared you only added the relative path opt/mathematica.

Hi,Thanks  , it worked.

Hi,Thanks  , it worked.


Is it possible to turn the figure axes display off?

Is it possible to turn the display of figure axes (and labels) off?
I'm finding that the figure axes and labels obscure my data pretty significantly when I try and look at it at certain angles. Even better would be a toggle to switch the axes on and off
I've been searching but am not entirely sure if it's possible right now. I was hoping for a keyword argument to ipv.figure(), or a matplotlib-like axis off. But I'm having trouble figuring this out. I'm happy to work on a pull request, but would probably need some pointers on the right place to get started. Any advice is appreciated!

Yes, see https://ipyvolume.readthedocs.io/en/latest/api.html
box_off and axes_off

Ah, big thank you!
It seems if I call the style attributes after figure instantiation (but not before) then it works great. I can also change styles after rendering with ipv.volshow()/ipv.quickvolshow()
import ipyvolume as ipv
aquarius = ipv.datasets.aquariusA2.fetch()

fig = ipv.figure()
ipv.pylab.style.box_off()
ipv.pylab.style.axes_off()
ipv.volshow(aquarius.data)
ipv.show()

One of my colleagues will also be very happy to hear how easy it is to make black backgrounds (also in the pylab.style) so this actually answers more than one question for us. Thanks!

Great! :)


[WIP] Feature: refactor OpenGL implementation

This is a major rework of OpenGL internals within Kivy to:

support ANGLE on Windows (see https://github.com/kivy/kivy/pull/4343 for the initial motivation)
not statically link to a OpenGL library for each graphics python extension
make an OpenGL backend interface available to use for each graphics python extension
implement multiple backend such as

sdl: use SDL_GL_GetProcAddress to look at start all the GL symbols
static: wire OpenGL functions at link time during compilation. This can fail if the platform miss some OpenGL functions.
mock: empty implementation of all GL functions
debug: wrapper around the current loaded backend to print the call and results
angle: redirect to sdl, but since the Windows require 3 lines to be executed for ANGLE, we need to make it look like a backend

Changes:

all c_opengl_* are gone
all modules now just use kivy.gragphics.cgl directly
all backends are declared like kivy.graphics.cgl_<NAME>
ship GLES/KHR headers
USE_OPENGL_MOCK, USE_GLEW, are gone.

Environment:

KIVY_GL_BACKEND: {sdl,static,mock}
KIVY_GL_DEBUG: {0,1}

Examples:
# Run with mock
KIVY_GL_BACKEND=mock python ...

# Run in debug mode
KIVY_GL_DEBUG=1 KIVY_GL_BACKEND=sdl python ...

# Run with ANGLE (windows only)
KIVY_GL_BACKEND=angle python ...

TODO:

tests on all platforms
implement GLEW backend
fixes debug backend (it prints, but nothing is displayed on screen)
enhance debug to print OpenGL call to a file (can be cool for unit tests)
fixes missing GLES functions

in the examples: KIVY_GL_BACKEND=1 to run with angle on windows, didn't you mean KIVY_GL_BACKEND=angle ?

Yes, thanks, fixed.

I was playing around with it and looks great. I added some changes on top of this branch to get glew working and you can see it here: https://github.com/kivy/kivy/pull/4397.

fixes debug backend (it prints, but nothing is displayed on screen)

Yeah, I noticed that. I tried printing to debug in the cython code but it didn't print. I had to print it to Logger for it to show.

enhance debug to print OpenGL call to a file (can be cool for unit tests)

That is a good idea. Although maybe being able to set a callback is better? That way we can pass a print function or what I think may be a better default - Logger.debug.

@Kovak @thopiekar This moves the gl headers (including config.h/pxi) fro  kivy/graphics to kivy/include. It also creates a new module at kivy/graphics/cgl_backend.
Docs on how to use this is at https://github.com/kivy/kivy/blob/master/kivy/graphics/cgl.pyx#L1.
Also, this should be tested on android, ios, rpi, and mali. Those are the OSs with potential issues. But it should be an easy fix I believe if there are issues.

Hi,
Would:
import os
os.environ['KIVY_GL_BACKEND'] = 'angle'

before importing kivy 1.9.2 dev be sufficient to test this?
I am mostly interested in getting around the bug where it says minimum version is openGL 2.0 and it thinks I have 1.1.

angle is only available for 3.5+ and you need to download kivy.deps.angle. But yeah, os.environ['KIVY_GL_BACKEND'] = 'angle' is how you'd use it.

But that would only work on the current GitHub kivy master branch rather than the one you get through the usual pip install kivy right?

Yes. You can also get it using the nightly wheels: https://kivy.org/docs/installation/installation-windows.html#nightly-wheel-installation. Just remember to upgrade all the kivy.deps.xxx you have installed to their latest versions from pypi.

Sorry, I think it's actually angle_sdl2, not angle.

I get:
[CRITICAL] [Window      ] Unable to find any valuable Window provider.
sdl2 - ValueError:  angle_sdl2 is not a recognized GL backend

with angle_sl2 and the latest nightly build.
I also get a similar:
[CRITICAL] [Window      ] Unable to find any valuable Window provider.
sdl2 - ValueError:  angle is not a recognized GL backend

with os.environ['KIVY_GL_BACKEND'] = ' angle'. What am I doing wrong?
Vlad

Your strings start with a whitespace.

Silly me, thanks. Now it seems to use ANGLE but I still have the OpenGL 1.1 problem. Potentially off topic to this conversation thread, but is there anyway to just disable that check?

From what i understand gl 2.0 does not need to be enforced with the angle backend, please open an issue @jimanvlad if that is not the case.


[Feature request] Add the new note silently or in a new tab

Hi,
I find the replacement of the current tab view with the added clip a bit annoying. Would it be possible to add the note silently or in a new tab without replacing the current ne?

Hi there!
I can't quite understand the problem you're encountering. Can you phrase it differently?


flutter_news_template - packages:news_blocks_ui Error: dart(argument_type_not_assignable) and version bump to intl: ^0.18.0

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce

Install the Flutter News Template.
1.1 Run mason add -g flutter_news_template.
Generate the app:
2.1 Run mason make flutter_news_template.
Set Template configuration:
3.1 What is the user-facing application name? (Daily Globe)
3.2 What is the application bundle identifier? (com.flutter.news.template)
3.3 Who are the code owners? (separated by spaces) (@TylerByte666)
3.4 What flavors do you want your application to include?
❯ ◉  development
◯  integration
◯  staging
◉  production
Error shows up in VS Code dart analyzer for file packages:new_blocks_ui/lib/src/html.dart

The argument type 'void Function(String?, Map<String, String>, Element?, dynamic)' can't be assigned to the parameter type 'void Function(String?, Map<String, String>, Element?)?'

This is related to the import 'package:url_launcher/url_launcher.dart' being used on line 28
onLinkTap: (url, context, attributes, element) {
  if (url == null) return;
  final uri = Uri.tryParse(url);
  if (uri == null) return;
  launchUrl(uri).ignore();
},

Expected results

No error for that dart file.
Android app can compile.

Actual results
Before change:
Fails to build for android when you run debug through VS Code.
Android app does not compile.
Builds fine with cli:
flutter run \ --flavor development \ --target lib/main/main_development.dart

Android app compiles.
After change:
The app does not compile due to dependencies version failing when running flutter pub-get:
intl: ^0.17.0
I fixed that by bumping both daily globe pubpec.yaml and packages:app_ui/pubspec.yaml to:
intl: ^0.18.0
Then it fails to compile again:
Launching lib/main/main_development.dart on sdk gphone64 x86 64 in debug mode...
main_development.dart:1
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
: Error: The argument type 'void Function(String?, RenderContext, Map<String, String>)' can't be assigned to the parameter type 'void Function(String?, RenderContext, Map<String, String>, Element?)?'.
html.dart:24
- 'RenderContext' is from 'package:flutter_html/html_parser.dart' ('../../../../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_html-3.0.0-alpha.6/lib/html_parser.dart').
html_parser.dart:1
 - 'Map' is from 'dart:core'.
- 'Element' is from 'package:html/dom.dart' ('../../../../../AppData/Local/Pub/Cache/hosted/pub.dev/html-0.15.1/lib/dom.dart').
dom.dart:1
        onLinkTap: (url, context, attributes) {
Target kernel_snapshot failed: Exception
2

FAILURE: Build failed with an exception.

* Where:
Script 'C:\Src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1159

* What went wrong:
Execution failed for task ':app:compileFlutterBuildDevelopmentDebug'.
> Process 'command 'C:\Src\flutter\bin\flutter.bat'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 16s
Exception: Gradle task assembleDevelopmentDebug failed with exit code 1

I need some guidance please:

I have added sample code for the change but it breaks.
I am also unsure as to why the widget is also being passed as a parameters.
Please show me the correct way of fixing the errors if my fixes are wrong. I can do a PR if allowed.

Thank you.
Code sample
packages:new_blocks_ui/lib/src/html.dart line 24 - 29
onLinkTap: (url, context, attributes, element) {
  if (url == null) return;
  final uri = Uri.tryParse(url);
  if (uri == null) return;
  launchUrl(uri).ignore();
},

I fixed it by removing the element param for onLinkTap():
packages:new_blocks_ui/lib/src/html.dart line 24 - 29
onLinkTap: (url, context, attributes) {
  if (url == null) return;
  final uri = Uri.tryParse(url);
  if (uri == null) return;
  launchUrl(uri).ignore();
},

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[√] Flutter (Channel stable, 3.10.0, on Microsoft Windows [Version 10.0.19044.2965], locale
    en-NA)
    • Flutter version 3.10.0 on channel stable at C:\Src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 84a1e904f4 (8 days ago), 2023-05-09 07:41:44 -0700
    • Engine revision d44b5a94c9
    • Dart version 3.0.0
    • DevTools version 2.23.1

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at C:\Users\TylerByte\AppData\Local\Android\sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-9505619)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.3.3)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.3.32825.248
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2022.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-9505619)

[√] VS Code (version 1.78.2)
    • VS Code at C:\Users\TylerByte\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.54.0

[√] Connected device (4 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 13 (API 33)
      (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows
      [Version 10.0.19044.2965]
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome
      113.0.5672.93
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge
      112.0.1722.39

[√] Network resources
    • All expected network resources are available.

• No issues found!

cc @marwfair @kaiceyd

Hi @TylerByte666. Thanks for filling this issue. I am able to reproduce on the latest stable and master channels.

Hey Kevin, would you please pass this to the right team member to look at it? Or would you please let me know who I can pass this to?

Still having this problem. Could write a hack around it, but would rather not.

Hi, still having this issue not sure why this was closed?

Hi, still having this issue not sure why this was closed?

Hey @TylerByte666 ! This issue was resolved on version 1.0.5 of the mason brick of the toolkit. In order to upgrade your project to the latest version (1.0.6) please follow the steps on this documentation page.

Thank you so much, it was an ID10T error from my side :P


Get rid of apt-key warning during installation

discovered by @mseabornIBM in https://github.com/pyrsia/pyrsia/pull/541#discussion_r849754527
wget -qO - https://pyrsia.io/public.key | apt-key add -
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).

Closing manually


Updating to newest babel

Updated to babel 7, and changed presets in babelrc

Close and reopen in hopes to fix Jenkins hooks that no longer exist


RFE: allow defining columns without an expression

That is, and Add overload without parameters. Useful for eg, a column that will display Details/Edit links.

Yes, this is something I will add in the major next release together with the new extensions.

And you can actually add links in side the Add method or you are doing something different?

what I end up doing is something like this:
col.Add(m => m.Id)
    .RenderedAs(item => Html.ActionLink(Trans.T("Edit"), "Edit", new { id = item.Id }))

The expression here is totally superfluous.

Yes, but you can do
col.Add(m => Html.ActionLink(Trans.T("Edit"), "Edit", new { id = m.Id }))