🐛[BUG]: ARCO download timeout

Version
Latest from Github
On which installation method(s) does this occur?
Source
Describe the issue
When trying to inference the example workflow from https://github.com/NVIDIA/earth2studio/issues/91#issuecomment-2229512188, I get the following error while the script is downloading data:
2024-07-17 05:28:22.207 | INFO     | earth2studio.run:ensemble:294 - Running ensemble inference!
2024-07-17 05:28:22.247 | INFO     | earth2studio.run:ensemble:302 - Inference device: cuda
2024-07-17 05:28:23.070 | DEBUG    | earth2studio.data.arco:fetch_array:200 - Fetching ARCO zarr array for variable: u10m at 2022-01-01T12:00:00
2024-07-17 05:28:24.931 | DEBUG    | earth2studio.data.arco:fetch_array:200 - Fetching ARCO zarr array for variable: v10m at 2022-01-01T12:00:00
<cut output for many variables>
2024-07-17 05:30:19.831 | DEBUG    | earth2studio.data.arco:fetch_array:200 - Fetching ARCO zarr array for variable: z300 at 2022-01-01T12:00:00
Fetching ARCO data:  49%|████████████████████████▋                         | 36/73 [01:57<02:04,  3.36s/it]Traceback (most recent call last):
  File "/root/earth2studio/earth2studio/data/arco.py", line 172, in create_data_array
    async for t, v, data in unordered_generator(  # type: ignore[misc,unused-ignore]
  File "/root/earth2studio/earth2studio/data/utils.py", line 251, in unordered_generator
    async for task in _limit_concurrency(func_map, limit):
  File "/root/earth2studio/earth2studio/data/utils.py", line 286, in _limit_concurrency
    done, pending = await asyncio.wait(pending, return_when=asyncio.FIRST_COMPLETED)
  File "/usr/lib/python3.10/asyncio/tasks.py", line 384, in wait
    return await _wait(fs, timeout, return_when, loop)
  File "/usr/lib/python3.10/asyncio/tasks.py", line 491, in _wait
    await waiter
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/asyncio/tasks.py", line 456, in wait_for
    return fut.result()
asyncio.exceptions.CancelledError

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

Traceback (most recent call last):
  File "/root/earth2studio-ensemble/ensemble-test.py", line 15, in <module>
    io = ensemble(
  File "/root/earth2studio/earth2studio/run.py", line 308, in ensemble
    x0, coords0 = fetch_data(
  File "/root/earth2studio/earth2studio/data/utils.py", line 70, in fetch_data
    da0 = source(adjust_times, variable)
  File "/root/earth2studio/earth2studio/data/arco.py", line 115, in __call__
    xr_array = asyncio.run(
  File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "/usr/lib/python3.10/asyncio/tasks.py", line 458, in wait_for
    raise exceptions.TimeoutError() from exc
asyncio.exceptions.TimeoutError

It looks like the ARCO data source hardcodes https://github.com/NVIDIA/earth2studio/blob/cb1c2306467f013601fc606596a2a5da1de4fa5d/earth2studio/data/arco.py#L85
so maybe that is the issue? If to, making the timeout longer and/or user configurable would probably solve the problem.

Yeah, I put in the fixed time out to have a cap on the download. Figured 100s would be long enough for people but we can increase to say 10 minutes. The idea was to push people away from very large requests into memory in one go. But rather split it up with multiple calls. But if you are timing out even for just 73 channels, then we can bump it up.
Of course in the mean time you can change it via:
ds = ARCO()
ds.async_timeout = 1200

If this continues to be a bigger problem, I'll change this to use an environment variable instead similar to the model packages, but I expect 10 minutes to be sufficiently enough time for the models we have.

Yes, I got a timeout for one timestep and 73 channels. Thanks for the change, that should fix it for me given that I managed to download about 50% of the data before it timed out.


Reformat some long lines using the latest version of black

The latest black beta is more aggressive about
splitting across multiple lines.
We have chosen to stay updated to the latest
version for now so this commit applies those
reformats.
It also forces using the new version in our
requirements.txt so that there's no disparity
between what we run locally and in PR checks.

Codecov Report

Merging #60 into master will not change coverage.
The diff coverage is 80.00%.

@@           Coverage Diff           @@
##           master      #60   +/-   ##
=======================================
  Coverage   65.12%   65.12%
=======================================
  Files         101      101
  Lines        4238     4238
  Branches      258      258
=======================================
  Hits         2760     2760
  Misses       1407     1407
  Partials       71       71

Impacted Files
Coverage Δ

additional_codes/models.py
18.75% <ø> (ø)

commodities/import_handlers.py
12.65% <ø> (ø)

commodities/models.py
26.59% <ø> (ø)

commodities/tests/test_business_rules.py
94.73% <ø> (ø)

commodities/tests/test_importer.py
70.58% <ø> (ø)

common/forms.py
59.67% <ø> (ø)

common/serializers.py
32.69% <ø> (ø)

common/tests/factories.py
99.58% <ø> (ø)

common/tests/test_util.py
100.00% <ø> (ø)

common/tests/util.py
85.89% <ø> (ø)

... and 14 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1e27151...5363891. Read the comment docs.


support qwen compatible mode

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 35.96%. Comparing base (ef31e09) to head (1c79942).
Report is 42 commits behind head on main.

Additional details and impacted files

@@            Coverage Diff             @@
##             main    #1205      +/-   ##
==========================================
+ Coverage   35.91%   35.96%   +0.05%
==========================================
  Files          69       69
  Lines       11576     9500    -2076
==========================================
- Hits         4157     3417     -740
+ Misses       7104     5767    -1337
- Partials      315      316       +1

see 67 files with indirect coverage changes

cc @CH3CHO


[Bug] Keyboard  shortcut "⌘ /" interferes with the core Chrome/Firefox shortcuts

Reproducible in vscode.dev or in VS Code Desktop?

[X] Not reproducible in vscode.dev or VS Code Desktop

Reproducible in the monaco editor playground?

[ ] Not reproducible in the monaco editor playground

Monaco Editor Playground Code
No response
Actual Behavior
There is an issue with the behaviour of the keyboard shortcut on Mac. The "Comment / uncomment line* shortcut  ⌘ /". interferes with the core Chrome/Firefox keyboard shortcuts. When pressed (⌘ + Shift + /) the browser opens Help>Search dialogue from the menu in both browsers.
Installing chrome shortcut extensions does not help, as they just disable those key combination.
Expected Behavior
(⌘ + Shift + /) should comment/uncomment line, instead of opening browser menu.
Additional Context
No response

AFAIK, the default keybindings are designed for windows on a qwerty keyboard. I had the same issue as you on linux/firefox with ctrl+/.
There is a KeyboardLayoutService service in vscode which is responsible to transform the keybindings based on the OS and the keyboard layout, but unfortunately, this service is not present in Monaco.
One solution I can suggest is to use @codingame/monaco-vscode-api to put back the vscode services into monaco:
import getKeybindingServiceOverride from 'vscode/service-override/keybindings'

monaco.editor.createEditor(domNode, options, {
   ...getKeybindingServiceOverride(),
})

It's maybe overkill, and I can't garantee it'll solve your issue but you can give it a try
⚠ it only works with the ESM version of monaco editor

There is not a lot we can do on our side. The browser eats up ⌘ + Shift + / on macOS by default, therefore it cannot be used by websites. We don't have plans to find another alternative default keybinding here, but you can do so on your page via monaco.editor.addKeybindingRule


Update README.md fix firebirdsql and rustlang links

fix firebirdsql and rustlang links

Pull Request Test Coverage Report for Build 247997292

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-13.1%) to 36.935%

Totals

Change from base Build 240584658:
-13.1%

Covered Lines:
1521

Relevant Lines:
4118

💛  - Coveralls

Pull Request Test Coverage Report for Build 247997292

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-13.1%) to 36.935%

Totals

Change from base Build 240584658:
-13.1%

Covered Lines:
1521

Relevant Lines:
4118

💛  - Coveralls


adopt font window icon controls

fixes #82193

@misolori, this is the adoption, but the icons seem to be inverted in most cases


Audit and reports

Switched all program 'debug prints' to LOGGER a module.
Now all endpoints that make changes to the database is logger on a file
And, optionally, on the syslog.
Logs have the format 'user X [created/deleted/updated] Y'
Now permissions have a name field. This avoid a bug on initialConfig script, where the hardcoded IDs conflicts with the autoincrement ID.
Also, added fields created_by on all Models. The field hold the ID of the user who created the entry.
Updated the tests.
This PR closes dojot/dojot#117

The local and global logs is a remain from the 'log on a file' idea.
Audit logs must be stored for years, so they go to the syslog/logfile.
Developers logs, like connection errors don´t need to be stored for so long.
So I just send they to stdout.
Now with the 'default to STDOUT' this idea have no effect.
Should all logs be sent to flaskAlchemyInit.py global log function?


Election Map

@dtinth the puzzle #31 is still not solved.

@rapee @Director99
You can decide the name and the structures for props you want to use na krub. The general idea is that the component decides the shape of the props that’s necessary to display all data. This is the “presentational component”.
Then we can create a “container component” to bridge the component to the data source.
See this article for more info: Presentational and Container Components

@dtinth 2 puzzles #31, #71 are still not solved.

@dtinth the puzzle #71 is still not solved; solved: #31.

@dtinth 2 puzzles #31, #71 are still not solved.

@dtinth the puzzle #31 is still not solved; solved: #71.

@dtinth all 2 puzzles are solved here: #31, #71.

All puzzles solved, closing


meta-lxatac-bsp: arm-trusted-firmware-a: use git instead of tarball URL

Starting in at least late april 2024 (as indicated by this thread on the DistroKit mailing list) the old snapshot URL started responding with HTTP 401 Unauthorized errors.
Replace the tarball URL with a git URL on the same server.

I've assigned @Emantor now because he initially added the arm-trusted-firmware-a.inc (in the before-the-public-history times) and likely knows where it came from and where to check for upstream fixes.

This came from meta-arm, my suggestion would be to pull in meta-arm as well to use arm-trusted-firmware-a.inc from the layer instead of copying and modifying it.

Oh my. I would have prepared the two-line solution proposed here, but if pulling in meta-arm is the cleaner solution I guess that's the way to go.
I will prepare a separate commit that pulls in meta-arm and uses the trusted-firmware-a.inc from that.

I've opened an issue to discuss what we want to do regarding the TF-A: #157.
Until that's decided merging this PR allows building meta-lxatac from scratch again, which is a good thing.


Move doc.go contents into README.md

The README.md format is far more flexible in terms of content features and markdown than as compared to Go's native formatting.  Additionally, since Go's pkgsite framework will render the README.md for the visitor automatically, there need only be one copy.
Move the entirety of doc.go into README.md, clean-up formatting, add images and get rid of doc.go.

Done


Font oversampling scales the font size

Godot version
4.0dev
System information
Windows 10 and Manjaro Linux 21.2.6
Issue description
When enabling oversampling in the font import settings, the font size changes based on the oversampling factor:

Interestingly, this only happens when the font size is equal to the default font size. When changing the font size via the theme override, it looks normal for all values != 16:

Steps to reproduce

Create a Label.
Import an arbitrary font.
Change the oversampling factor via the font import settings.
Add a font override to your Label and use the imported font there.

Minimal reproduction project

CC @bruvzg @Calinou


Doc Request: Image showing how hexagons are composed

This request is for an image, perhaps accompanied by description, showing how hexagons are composed and indexed within each other. If such exists, someplace, it is for making it more findable.

That's a great suggestion - the docs definitely need more images. You might be interested in https://observablehq.com/@nrabinowitz/h3-indexing-order, which visually demonstrates the indexing order.


[Improvement-13868][K8S Task] Support the custom labels for k8s task

Purpose of the pull request

This PR is a partial job of https://github.com/apache/dolphinscheduler/issues/13868.

Brief change log

Support define customized labels in web UI, and add these labels when building K8S job.

Verify this pull request

Add some UT.

Codecov Report

Merging #14067 (7141976) into dev (3bad68a) will increase coverage by 0.17%.
The diff coverage is 63.92%.

:exclamation: Current head 7141976 differs from pull request most recent head 7c79171. Consider uploading reports for the commit 7c79171 to get more accurate results

@@             Coverage Diff              @@
##                dev   #14067      +/-   ##
============================================
+ Coverage     38.21%   38.39%   +0.17%
- Complexity     4435     4468      +33
============================================
  Files          1220     1228       +8
  Lines         42706    42654      -52
  Branches       4735     4709      -26
============================================
+ Hits          16322    16376      +54
+ Misses        24577    24464     -113
- Partials       1807     1814       +7

Impacted Files
Coverage Δ

...nscheduler/api/configuration/AppConfiguration.java
93.93% <ø> (ø)

...inscheduler/api/controller/ExecutorController.java
17.94% <ø> (ø)

...lphinscheduler/api/controller/LoginController.java
51.72% <0.00%> (-16.46%)
:arrow_down:

...che/dolphinscheduler/api/python/PythonGateway.java
16.94% <0.00%> (ø)

...inscheduler/api/service/impl/UsersServiceImpl.java
70.74% <ø> (-0.05%)
:arrow_down:

...e/dolphinscheduler/common/constants/Constants.java
75.00% <ø> (ø)

...cheduler/common/constants/DataSourceConstants.java
0.00% <ø> (ø)

...atasource/snowflake/SnowflakeDataSourceClient.java
0.00% <0.00%> (ø)

.../org/apache/dolphinscheduler/spi/enums/DbType.java
0.00% <0.00%> (ø)

...duler/plugin/storage/hdfs/HdfsStorageOperator.java
18.90% <0.00%> (-0.76%)
:arrow_down:

... and 18 more

... and 63 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

I am not familiar with front end, may I ask is this custom-label a mandatory field?

Hi, @rickchengx , do you mean whether user must define customized label or not? No, user can define a k8s task without any customized label, just like local parameter.

Hi, @rickchengx , would you like to help review backend-part of this PR?


Update google-auth-library-credentials to 1.29.0

About this PR
📦 Updates com.google.auth:google-auth-library-credentials from 1.8.1 to 1.29.0
📜 GitHub Release Notes - Version Diff
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.google.auth", artifactId = "google-auth-library-credentials" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.google.auth", artifactId = "google-auth-library-credentials" }
}]

labels: library-update, early-semver-minor, semver-spec-minor, commit-count:1

Superseded by #403.


Support mongoid 7

when is this merging?, would be great if you could merge as soon as possible, Thanks in advance

Longer not merged.
Close PR, because this PR is old.


refactor: Use early return pattern to avoid nested conditions

Signed-off-by: jongwooo<EMAIL_ADDRESS>Issue #1012
Description
Return early is the way of writing functions or methods so that the expected positive result is returned at the end of the function and the rest of the code terminates the execution (by returning or throwing an exception) when conditions are not met.
In actionUtils.ts:
AS-IS
export function isCacheFeatureAvailable(): boolean {
    if (!cache.isFeatureAvailable()) {
        if (isGhes()) {
            logWarning(
                `Cache action is only supported on GHES version >= 3.5...`
            );
        } else {
            logWarning(
                "An internal error has occurred ..."
            );
        }
        return false;
    }

    return true;
}

TO-BE
export function isCacheFeatureAvailable(): boolean {
  if (cache.isFeatureAvailable()) {
    return true;
  }

  if (isGhes()) {
    logWarning(
      `Cache action is only supported on GHES version >= 3.5...`
    );
    return false;
  }

  logWarning(
    "An internal error has occurred ..."
  );
  return false;
}

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[x] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation (add or update README or docs)

Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.

Can you run npm run build?


Prevent multiple instances

Prevent multiple competing instances by having the application check whether it is the only instance when it is run.

Does this stop me from opening more than one instance of the spdif-ka utility because the Mutex is looking for another Mutex named "Globalspdif-ka_mutex"?  From what I can tell a new Mutex is instantiated without ownership and a specified name and then a wait of zero milliseconds is specified.

My understanding of the way this works is that a new mutex is created with the name "Global\spdif-ka_mutex". Any subsequent instance that is launched while the first instance is still running will try to immediately (waiting zero milliseconds) acquire a lock on a mutex using that same name. Because it is already in use, it will immediately fail to do so.

Thanks for adding this.  I'll merge it in and start testing with it.


Create same migrations for different database systems

Hello!
I did look around, but did not find yet a recommended way to create the same migrations for different database systems.
The use case is the following: a project that is developed on Windows with SQL Server, but also needs to be tested on Linux with a different database system like SQLite, PostgreSQL, ...
So the same migrations should be applied to databases on different db systems.
Now if we create a migration like:
dotnet ef migrations add myMig
The migration code seems to be only created for one database (*.Designer.cs files contain database specific types).
Now it would be nice if there were some kind of way to generate the same migrations for multiple database system. E.g. similar to the scaffold command where the providers (e.g. Microsoft.EntityFrameworkCore.SqlServer) can be specified.

@p- See this section in the docs: https://docs.microsoft.com/en-us/ef/core/managing-schemas/migrations/providers

@ajcvickers Great! That's exactly what I was looking for, but unfortunately didn't find it. Thanks!


Add bshepar, kajinamit, rabi to dataplane-approvers

Rename owners alias to dataplane-approvers
Add bshepar, kajinamit, rabi to dataplane-approvers

Didn't get here on time but [1] edpm-approver under reviewers also need a rename,
https://github.com/openstack-k8s-operators/dataplane-operator/pull/161/files#diff-c393dd2b18a8a597d895940893e574d6895122c4bf3ce6e2a78dbd9ca0cdd66fR7


Fix bug in task insertion when task.meta=None

Close  #770

As expected, the new test failed before updating app/models/workflow.py, and passed after https://github.com/fractal-analytics-platform/fractal-server/pull/772/commits/1f3268ce3855141fca5bf8a2e0f47f949f8abe91.
Merging.


Update manpage generator: process new nested CLI

#138
Manpage generator can't handle nested subparsers. Let's fix it.

I believe this was fixed in commit https://github.com/projectatomic/atomic-reactor/commit/8bd9d1360d878fd0c117b13f52b090876760c3c0 => closing this issue.


[Backward incompatible change] Modify metadata string

This PR modifies the way we store metadata string for both surface and adsorbates.
We additionally now store adsorbate db filename.
We can't store bulk db filename, as we use precomputed paths.

LGTM


Issues with moving past connecting phase

I just got this working but now it only shows the starting screen where it says connecting to my WiFi, then it will say Connected. After that the screen goes blank and comes back up with the start screen saying connecting to my WiFi

Do you have a valid api key?

Yes, I have a valid api key

please check WiFi connection

Without the output from your serial console it's unlikely we'll be able to help you.

Serial Monitor:
Connecting to WiFi "SSID"/"Password"
......Connected...Initializing touch screen...
ISR not in IRAM!
Abort called

stack>>>

ctx: cont
sp: 3ffffd90 end: 3fffffc0 offset: 01b0
3fffff40:  009c1001 3ffef778 3ffef778 4020a569
3fffff50:  3ffe9001 fffef778 00000000 3ffef894
3fffff60:  3fffdad0 000000ff 3ffe8534 401004c6
3fffff70:  014000f0 3ffef778 3ffe8534 40205320
3fffff80:  3fffdad0 3ffef778 3ffef4f0 40201cdc
3fffff90:  feefeffe feefeffe feefeffe feefeffe
3fffffa0:  3fffdad0 00000000 3ffef864 4020bfac
3fffffb0:  feefeffe feefeffe 3ffe859c 401007b1
<<<stack<<<
ets Jan  8 2013,rst cause:2, boot mode:(3,6)
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v8b899c12
~ld
15
I checked, rechecked and checked again the settings.h to make sure my WiFi was correct and it is.

ISR not in IRAM!

As per https://docs.thingpulse.com/guides/wifi-color-display-kit/#install-the-esp8266-toolchain you should be using ESP8266 Arduino core 2.4.2. It appears that you're on a newer version.
The issue is caused by the XPT2046 touch library which doesn't support newer versions yet. Please leave a comment with https://github.com/PaulStoffregen/XPT2046_Touchscreen/pull/24 to motivate the author to finally release the fix that he committed months ago.

Hello Marcelstoer,  I have a similar error with my  esp8266-weather-station-color.
but I have the following error.
ets Jan  8 2013,rst cause:4, boot mode:(3,6)
wdt reset
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
vbb28d4a3
~ld
15
Connecting to WiFi TP-Link_2CD1/xxxxxxxxx
......Connected...Initializing touch screen...
Mounting file system...
SPIFFS opened: OK
.
Current time:<PHONE_NUMBER>
DST Rules Updated:
DST Start: Sun Mar 29 02:00:00 2020
DST End:   Sun Oct 25 02:00:00 2020
Time difference for DST: 7200
[HTTP] Requesting resource at http://api.openweathermap.org:80/data/2.5/weather?id=3530597&appid=e607fead7e3d643fe06b080b84bce4c9&units=metric&lang=en
[HTTP] connected, now GETting data
start document
[HTTP] Requesting resource at http://api.openweathermap.org:80/data/2.5/forecast?id=3530597&appid=e607fead7e3d643fe06b080b84bce4c9&units=metric&lang=en
[HTTP] connected, now GETting data
start document
Free mem: 19880


I still don't see it in package control?

I see you submitted it in May, and I don't see it...?

me  too! 2020/5/18

Same. @csurfer I really like your implementation of this and I would like my team to use it. Would you be opposed to me forking your implementation (since I need to add support for tabs indent) and publishing it to Package control? I will make sure to credit you of course!


How do I show the total value (datasets.data values) of legendtemplate

i add legendtemplate, 'datasets[i].data' and 'datasets[i].points' undefined veriable error.
How do I show as the picture.

This is a question related to using Chart.js in the real world. We recommend you to also post this question to stackoverflow.com and tag with CHARTJS in order to get the most attention to your question.
If you do, please link from here to there and vice versa to get the most eyes on this.

closing, unresponsive, no JSBIN, no SO link


updated netbeans to 8.1

Thank you for the contribution. It was merged directly as 51d3856ba5985b0d76fa8be2e681f7bac853af58 to keep commit history cleaner. Your contribution is still credited to you.


fix(typescript): fix typings .d.ts file

The typings .d.ts file is in the "module" format? (I don't fully understand this but I think this is correct)
The Logger interface that is exported extends the Bunyan interface instead of being Bunyan.
The Logger interface has the sampledLogger method.
Import Bunyan with import require.

Coverage remained the same at 98.413% when pulling eee85dde856154ac10a9bd9fea2a19e8f75581bc on fix-typescript-typings-file into ebbbf490fb7e7d62a983184529eef6ea17566770 on master.

Coverage remained the same at 98.413% when pulling eee85dde856154ac10a9bd9fea2a19e8f75581bc on fix-typescript-typings-file into ebbbf490fb7e7d62a983184529eef6ea17566770 on master.


Can't apt update: NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY 648ACFD622F3D138

After following these steps on a fresh osmc install on a raspberry pi zero, I can't install wireguard on the last step because apt update fails:
$ sudo apt update
Hit:1 http://mirrordirector.raspbian.org/raspbian buster InRelease
Get:3 http://deb.debian.org/debian unstable InRelease [153 kB]
Hit:2 http://ftp.fau.de/osmc/osmc/apt buster InRelease
Err:3 http://deb.debian.org/debian unstable InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY 648ACFD622F3D138
Reading package lists... Done
W: GPG error: http://deb.debian.org/debian unstable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 04EE7237B7D453EC NO_PUBKEY 648ACFD622F3D138
E: The repository 'http://deb.debian.org/debian unstable InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

OS version:
$ cat /etc/debian_version
10.7
$ cat /etc/os-release
PRETTY_NAME="Open Source Media Center"
NAME="OSMC"
VERSION="November 2020"
VERSION_ID="2020.11-1"
$ cat uname -r
4.19.122-2-osmc

I'll comment if I find a solution.

I was able to get around the above issue by doing:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 04EE7237B7D453EC
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138

I can know update but installing wireguard fails with the following output.
$ sudo apt install wireguard-dkms wireguard-tools wireguard
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  dkms
Suggested packages:
  python3-apport menu openresolv | resolvconf
Recommended packages:
  fakeroot linux-headers-686-pae | linux-headers-amd64 | linux-headers-generic | linux-headers
The following NEW packages will be installed:
  dkms wireguard wireguard-dkms wireguard-tools
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 414 kB of archives.
After this operation, 2,339 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian unstable/main armhf wireguard-dkms all 1.0.20201221-1 [254 kB]
Get:3 http://deb.debian.org/debian unstable/main armhf wireguard-tools armhf 1.0.20200827-1 [77.8 kB]
Get:4 http://deb.debian.org/debian unstable/main armhf wireguard all 1.0.20200827-1 [8,104 B]
Get:2 http://mirror.umd.edu/raspbian/raspbian buster/main armhf dkms all 2.6.1-4 [74.4 kB]
Fetched 414 kB in 1s (300 kB/s)
Selecting previously unselected package dkms.
(Reading database ... 50380 files and directories currently installed.)
Preparing to unpack .../archives/dkms_2.6.1-4_all.deb ...
Unpacking dkms (2.6.1-4) ...
Selecting previously unselected package wireguard-dkms.
Preparing to unpack .../wireguard-dkms_1.0.20201221-1_all.deb ...
Unpacking wireguard-dkms (1.0.20201221-1) ...
Selecting previously unselected package wireguard-tools.
Preparing to unpack .../wireguard-tools_1.0.20200827-1_armhf.deb ...
Unpacking wireguard-tools (1.0.20200827-1) ...
Selecting previously unselected package wireguard.
Preparing to unpack .../wireguard_1.0.20200827-1_all.deb ...
Unpacking wireguard (1.0.20200827-1) ...
Setting up dkms (2.6.1-4) ...
Setting up wireguard-dkms (1.0.20201221-1) ...
Loading new wireguard-1.0.20201221 DKMS files...
Building for 4.19.122-2-osmc
Building initial module for 4.19.122-2-osmc
Error! Bad return status for module build on kernel: 4.19.122-2-osmc (armv6l)
Consult /var/lib/dkms/wireguard/1.0.20201221/build/make.log for more information.
dpkg: error processing package wireguard-dkms (--configure):
 installed wireguard-dkms package post-installation script subprocess returned error exit status 10
Setting up wireguard-tools (1.0.20200827-1) ...
wg-quick.target is a disabled or a static unit, not starting it.
dpkg: dependency problems prevent configuration of wireguard:
 wireguard depends on wireguard-modules (>= 0.0.20191219) | wireguard-dkms (>= 0.0.20200121-2); however:
  Package wireguard-modules is not installed.
  Package wireguard-dkms is not configured yet.

dpkg: error processing package wireguard (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 wireguard-dkms
 wireguard
E: Sub-process /usr/bin/dpkg returned an error code (1)

The make log shows a segmentation fault.
$ cat /var/lib/dkms/wireguard/1.0.20201221/build/make.log
DKMS make.log for wireguard-1.0.20201221 for kernel 4.19.122-2-osmc (armv6l)
Thu 31 Dec 2020 01:23:53 AM EST
make: Entering directory '/usr/src/rbp2-headers-4.19.122-2-osmc'
  CC [M]  /var/lib/dkms/wireguard/1.0.20201221/build/main.o
Segmentation fault
make[1]: *** [scripts/Makefile.build:304: /var/lib/dkms/wireguard/1.0.20201221/build/main.o] Error 139
make: *** [Makefile:1522: _module_/var/lib/dkms/wireguard/1.0.20201221/build] Error 2
make: Leaving directory '/usr/src/rbp2-headers-4.19.122-2-osmc'

The error persists after a reboot. Not sure how to proceed.

Thanks for the sources keys, feel free to do a pull request for this!
I've tested this guide with a RPI 3B so I cannot reproduce nor confirm this, sometimes make errors appears if you overclock your pi too much, if so try doing the installation with stock frequencies and voltages.

Thanks, I'll open a PR.
I'm not overclocking and I tried unplugging a usb keyboard just to rule it out, but I get the same error. I'm guessing the problem is related to this using the osmc image for raspberry pi zero/zero w/1 rather than the 2/3/3+. I'm going to look around and see if I can find any other possible solutions to try, but in the meantime let me know if you have any ideas.

I found a solution, I don't have time right now but when I do I''ll open a PR with separate instructions for pi zero.

Well done! Thank you very much and happy holidays!

Well done! Thank you very much and happy holidays!


(Array) .pop_front, .pop_back & .remove return values instead of void

.pop_front, .pop_back & .remove now return values instead of void. Things
that don't work or I didn't know how to properly handle:

.pop_front & .pop_back shows in the help menu Object as return value.
I know this is incorrect but if not Object than what? Cause it
can't be void. It needs to be a generic type that includes all the
Array types

.remove works OK as long as it has something to return, if the index
is out of bounds it just terminates the application and gives this
error:
ERROR: operator[]: Condition ' p_index<0 || p_index>=size() ' is true. returned: aux
At: core/vector.h:144

That's because I used ERR_FAIL_INDEX_V inside of DVector::remove(),
but I don't know how else to implement this.

@razvanc-r It's not very important, but your git email configured in ~/.gitconfig is not attached to your GitHub account, so you're not recognized as the commit author. You can fix it by adding this email as a secondary email for your GitHub account.

Seems fine, but only make it for pop_front() and pop_back(), for remove() I believe it's not only not needed but kind of dangerous to do this

OK, I think I did ok... should be good for integration. Thanks

ADDFUNC0(ARRAY,OBJECT,Array,pop_back,varray());
ADDFUNC0(ARRAY,OBJECT,Array,pop_front,varray());
These you should safely be able to leave as NIL instead of Object, though I'm not sure if there is any way to specify that return type is variant

Reverted to ARRAY,NIL in ADDFUNC0. I've searched if there's a way to add Variant as a return type and I think there are some built-in functions that have a return type of Variant, such as the class Marshalls.base64_to_variant, but I wasn't able to find anything for ADDFUNC0 that could help me.


Training on mutiple nodes

Thanks for your great work. If there are two machines (each with 8 V100 GPUs) connected with ethernet, without slurm management, then how to run the code with your stated 16 V100 config?

I don't think it's good to run multiple nodes connected with ethernet. Data transfer through ethernet is too slow.
I think you can directly run the training on single machine (with 8 GPUs) with a smaller batch size, e.g.
python main.py /path/to/imagenet/ --epochs 1000 --batch-size 1024 --learning-rate 0.25 --lambd 0.0051 --projector 8192-8192-8192 --scale-loss 0.024
or
python main.py /path/to/imagenet/ --epochs 1000 --batch-size 512 --learning-rate 0.3 --lambd 0.0051 --projector 8192-8192-8192 --scale-loss 0.024
It should give similar results.

@jingli9111 Thanks very much for your reply. Anyway, the concern is that it might be too slow to train on a single machine.

@d-li14 The provided main.py script internally uses multiprocessing. In order to use two nodes without slurm, best is to get rid of the multiprocessing.spawn command in the main, and merge the main function with main_worker. I have attached the kind of main function I have for your reference at the bottom.
Once you have that code structure, use multiproc.py from NVIDIA to execute the code (https://github.com/NVIDIA/DeepLearningExamples/blob/master/PyTorch/Classification/ConvNets/multiproc.py). It takes the --nnodes parameters, which should be set to 2, as well as --nproc_per_node which should be set to 8. Since we need a way for the two nodes to communicate, you have to assume one node to be the master, and note its IP address. Once you have the IP address, just use that IP address with --master_addr ... for both nodes. So the final command will look something like: python ./multiproc.py --nnodes 2 --nproc_per_node 8  --master_addr ...  main.py /path/to/imagenet/ --epochs 1000 --batch-size 2048 --learning-rate 0.2 --lambd 0.0051 --projector 8192-8192-8192 --scale-loss 0.024
def main():
    args = parser.parse_args()
    args.ngpus_per_node = torch.cuda.device_count()

    # Initialize the distributed environment
    args.gpu = 0
    args.world_size = 1
    args.local_rank = 0
    args.distributed = int(os.getenv('WORLD_SIZE', 1)) > 1
    args.rank = int(os.getenv('RANK', 0))

    if "SLURM_NNODES" in os.environ:
        args.local_rank = args.rank % torch.cuda.device_count()
        print(f"SLURM tasks/nodes: {os.getenv('SLURM_NTASKS', 1)}/{os.getenv('SLURM_NNODES', 1)}")
    elif "WORLD_SIZE" in os.environ:
        args.local_rank = int(os.getenv('LOCAL_RANK', 0))

    if args.distributed:
        args.gpu = args.local_rank
        torch.cuda.set_device(args.gpu)
        torch.distributed.init_process_group(backend="nccl", init_method="env://")
        args.world_size = torch.distributed.get_world_size()
        assert int(os.getenv('WORLD_SIZE', 1)) == args.world_size
        print(f"Initializing the environment with {args.world_size} processes | Current process rank: {args.local_rank}")

    if args.rank == 0:
        args.checkpoint_dir.mkdir(parents=True, exist_ok=True)
        stats_file = open(args.checkpoint_dir / 'stats.txt', 'a', buffering=1)
        print(' '.join(sys.argv))
        print(' '.join(sys.argv), file=stats_file)

    gpu = args.gpu
    torch.backends.cudnn.benchmark = True

@shoaibahmed Thanks a lot for your reply and detailed instructions! I will try it.

does anyone know how much GPU memory does it consume with a batch size 1024? I am running out of memory even with 1024 batch size on 8 V100

does anyone know how much GPU memory does it consume with a batch size 1024? I am running out of memory even with 1024 batch size on 8 V100

Me too. The largest batch size I was able to fit on 8 V100 (with 16GB of memory) was 512, which used around 11GB of memory per gpu.


[SONARMSBRU-113] Fixed issue creating .jar file in VS2015

Also fixed miscellaneous build warnings
Building in VS2015 created a .jar file twice the size of the one created when building in VS2013 due to the inclusion of various TFS dlls. The packaging project was explicitly copying the files to be include into the zip to a specific folder. However, it was also specifying this folder as the output folder for the project. This meant that all of the project dependencies were being copied into the "zip" folder.
In VS2015, the TFS2013 assemblies are considered to be dependencies that need to be copied locally since they aren't part of the VS2015 distribution.

LGTM and manually tested.
The zip size went down from ~800 KB to ~500 KB. The following assemblies are no longer packaged: Microsoft.WITDataStore.dll, Microsoft.TeamFoundation.WorkItemTracking.Client.DataStoreLoader.dll and CSharpPluginPayload.dll (whatever that was)
Moreover, the *.pdb files of our assemblies are also no longer included. Is this change intended @duncanpMS ?

LGTM

@dbolkensteyn - the .pdb deployment happens if you build in DEBUG configuration. The files do not get copied in RELEASE. This is by original design and should help debugging directly on the build agent if needed.

Thanks @dbolkensteyn.
We shouldn't have been re-shipping those Microsoft assemblies; they should already be on the client either as part of the VS installation or because the TFS OM has been installed.
CSharpPluginPayload.dll shouldn't have been included either. The plugin packaging project is a C# project which created an empty dll with this name.

Thanks for the infos


Widened Back button's clickable area on mobile

Back button was really tricky to tap so I added paddings to the component and adjusted all its instances.
@keybase/react-hackers

I kicked off another build. You updated the storyshots. So, I'm not sure why it failed (on storyshots).

Maybe try updating your storyshots again? It's still failing.

@adamjspooner done! ^


Use custom column resizing plugin.

BEFORE

resizing one column might make the table wider than the page's width
resizing one column might affect multiple width of other columns.

DEMO: https://cdn.summitlearning.org/assets/czi_prosemirror_0_0_1_1_20190321135443_index.html

AFTER

the table 's width is constraint within page's width.
user now can resize the left and right margin of the table.

DEMO: http://cdn.summitlearning.org/assets/czi_prosemirror_0_0_1_1_20190426231825_index.html

Which commits should we be looking at? This PR is including a lot of things that have already merged in.

@velveret : please take a look at https://github.com/chanzuckerberg/czi-prosemirror/pull/46/commits/ceda9b7a56d86abde188d301218d593a761d0d77
this branch had pulled more commits from master to resolve merge conflict but you should only look at that one commit only.
Thanks.


[ZEPPELIN-1075] Merge NoteInterpreterLoader into InterpreterFactory

What is this PR for?
Removing redundant codes between NoteInterpreterLoader and InterpreterFactory, reducing the cost to add new features, and making refactoring on InterpreterFactory easy
What type of PR is it?
[Refactoring]
Todos

[x] - Remove NoteInterpreterLoader and move the functionality into InterpreterFactory

What is the Jira issue?

https://issues.apache.org/jira/browse/ZEPPELIN-1075

How should this be tested?
Must pass all tests
Screenshots (if appropriate)
Questions:

Does the licenses files need update? No
Is there breaking changes for older versions? No
Does this needs documentation? No

After passing the test, I'll fix some style again.

CI becomes green. I'll fix style of some codes.

Merging there's no more discussion


dedupe StaticGazeteer definition in matching.py does not consider missing country values in data model

Overview
When reviewing api/matching.py:train_gazeteer and comparing it with the dedupe missing data documentation it becomes obvious that country data are defined as Exact not allowing for missing values.
fields = [
            {'field': 'country', 'type': 'Exact'},
            {'field': 'name', 'type': 'String'},
            {'field': 'address', 'type': 'String'},
        ]

As some of records may contain no meaningful country data and geocoding takes place after matching it seems useful to add the missing data in the country record definition, else, all missing value records would be treated as if originating from the same country.
Is your feature request related to a problem? Please describe.
There exist duplicate entries where one record most likely contained no valid country, and matching did not consider that existing erroneous country entry.
Describe the solution you'd like
fields = [
            {'field': 'country', 'type': 'Exact', 'has missing': True},
            {'field': 'name', 'type': 'String'},
            {'field': 'address', 'type': 'String'},
        ]

Additional Context
N/A

We currently do not use has missing because we require all submitted data include a country.
We enforce this requirement on API POSTs via the FacilityCreateBodySerializer
https://github.com/open-apparel-registry/open-apparel-registry/blob/1b9578b155765819f765ea214d8ce41dea86d90c/src/django/api/views.py#L1411-L1412
https://github.com/open-apparel-registry/open-apparel-registry/blob/1b9578b155765819f765ea214d8ce41dea86d90c/src/django/api/serializers.py#L1373
For uploaded lists this is validated by the parsing step, where we call full_clean
https://github.com/open-apparel-registry/open-apparel-registry/blob/1b9578b155765819f765ea214d8ce41dea86d90c/src/django/api/processing.py#L250-L253
which end up production a validation error dues to the non-null country_code field
https://github.com/open-apparel-registry/open-apparel-registry/blob/1b9578b155765819f765ea214d8ce41dea86d90c/src/django/api/models.py#L754-L761
The only data we have with an empty country_code has either not been parsed, or failed the parsing step.
opensupplyhub=> select status from api_facilitylistitem where country_code = '' group by status;
    status
---------------
 ERROR_PARSING
 UPLOADED

Adding the context which was missing
The driver for this is to prevent (dedupe) model drift. Specifically, if the geocoder has a bias, and there was a difference between user specified country and geocoder determined country, it makes no sense to prefer one or the other.
So, in these cases, it may be preferrable to leave the country blank, this way, the dedupe model would learn the "miscellaneous" address rules, and not be contaminated by geocoding/country issues.


Update datadopy used in tests

We need to not use the broken decorator release.

@therve LGTM. We probably could tie to a real release URL now since the datadog-py has no release with UDS support yet comment isn't valid anymore afaik but it's not a blocker.

We don't have a release with the decorator fix though.

@therve fair enough - I thought the replaced hash was from an older version of the repo that worked rather than a newer branch with a fix


x/mobile/bind: Android app with Go library and targetSdkVersion=23 crashes on Android 6

I have some prototype app with Go library, built with gomobile bind command.
Until today I was building it with targetSdkVersion=22 and all worked fine, include Android 6.
Today I decided to rebuild it with targetSdkVersion=23 and got an Exception on my Nexus with Android 6:

E/AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/my.app.package/lib/arm/libgojni.so: has text relocations
E/AndroidRuntime:     at java.lang.Runtime.loadLibrary(Runtime.java:372)
E/AndroidRuntime:     at java.lang.System.loadLibrary(System.java:1076)
E/AndroidRuntime:     at go.LoadJNI.(LoadJNI.java:5)
E/AndroidRuntime:     at java.lang.Class.classForName(Native Method)
E/AndroidRuntime:     at java.lang.Class.forName(Class.java:324)
E/AndroidRuntime:     at java.lang.Class.forName(Class.java:285)
E/AndroidRuntime:     at go.Seq.(Seq.java:23)
E/AndroidRuntime:     at go.http.Http.CreateRequest(Http.java:13)
E/AndroidRuntime:     at com.infor.ion.mobile.communication.response.PendingResponseImpl.call(PendingResponseImpl.java:124)
E/AndroidRuntime:     at com.infor.ion.mobile.communication.response.PendingResponseImpl$1.run(PendingResponseImpl.java:61)
E/AndroidRuntime:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
E/AndroidRuntime:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
E/AndroidRuntime:     at java.lang.Thread.run(Thread.java:818)

I think, the problem is very similar to
http://stackoverflow.com/questions/32346402/libavcodec-so-has-text-relocations

gomobile version +83be1bf Thu Oct 8 21:24:20 2015 +0000 (android); androidSDK=C:\Android\android-sdk\platforms\android-23

In case I run same app, but built with targetSdkVersion=22, on same device, it shows me just warnings:

W/linker: /data/app/my.app.package/lib/arm/libgojni.so: is missing DT_SONAME will use basename as a replacement: "libgojni.so"
W/linker: /data/app/my.app.package/lib/arm/libgojni.so has text relocations. This is wasting memory and prevents security hardening. Please fix.

It seems it's related to #9210 which is blocked by #12581
cc @crawshaw

@ekrivenja I believe this is fixed. Could you run get -u golang.org/x/mobile/cmd/gomobile && gomobile init and rebuild? If that doesn't fix this, please reopen this issue.

gomobile version +82d11f2 Tue Oct 13 19:59:19 2015 +0000 (android); androidSDK=C:\Android\android-sdk\platforms\android-23
Sorry, but the issue is still there, same exception with targetSdkVersion=23, same warnings with with targetSdkVersion=22

@crawshaw, I cannot reopen this issue, because you closed it, I think.

reopened it.

What do you mean "Go tip"? I don't understand, sorry.

It means the development version which is not released yet.
What does 'go version' command say?
The fix is in the source tree now and will be officially available with 1.6.
To test the fix, you can follow the instruction here
https://golang.org/doc/install/source
And use the master branch.

@hyangah, thank you, now I understand. I thought only gomobile was fixed.
I am using Go 1.5.1 now.
 go version go1.5.1 windows/amd64
I'll try master branch.

Master branch was used
go version devel +9358f7f Fri Oct 16 15:51:49 2015 +0000 windows/amd64
In case of  targetSdkVersion=22 I see only one warning now
W/linker: /data/app/my.app.package/lib/arm/libgojni.so: is missing DT_SONAME will use basename as a replacement: "libgojni.so"
In case of  targetSdkVersion=23, no warnings, no exceptions.
It is fixed, thank you!
Closing this issue.


justDays= "yes", not working

using
justDays: "yes",

does not result in any changes.
Neither does:
using
justDays: true,

Thanks for your great work though so far!

If you set CountUp to "yes" it works, idk why


feature: do not check case for css properties

Summary
Summarize the changes briefly, including which issue/ticket this resolves. If it closes an existing Github issue, include "Closes #[issue number]"
Treats CSS properties case insensitively within filters. Specifically treats: margin-left: auto and Margin-left: auto as the same thing. Currently there isn't any way to define a whitelist of CSS properties (at least that I can tell).
I acknowledge that this would likely be a breaking change, so I think I'll need to add a configuration option to enable/disable this check, and I'll need to add the documentation for this too.
What are the specific steps to test this change?
For example:

Run the website and log in as an admin
Open a piece manager modal and select several pieces
Click the "Archive" button on the top left of the manager and confirm that it should proceed
Check that all pieces have been archived properly

There is a test case for it, but to be specific:

Allow the style attribute
Define some allowed CSS property (e.g. margin-left)
Try input with a different casing of margin-left (e.g. Margin-left)

What kind of change does this PR introduce?
(Check at least one)

[ ] Bug fix
[x] New feature
[ ] Refactor
[ ] Documentation
[ ] Build-related changes
[ ] Other

Make sure the PR fulfills these requirements:

[x] It includes a) the existing issue ID being resolved, b) a convincing reason for adding this feature, or c) a clear description of the bug it resolves

No open issue from what I can find, but I wanted to raise the issue with a pull request, rather than just create an issue. I do acknowledge that likely the PR in its current state will need some changes (specifically: backwards compatibility/a configuration option). The goal of this is to allow case insensitive filters for allowed properties, so that MARGIN-LEFT: auto; would be treated the same as margin-left: auto; if the option was enabled.

[x] The changelog is updated
[ ] Related documentation has been updated
This hasn't been done, but if we add an option for this, I'll write some documentation about that option.
[x] Related tests have been updated

If adding a new feature without an already open issue, it's best to open a feature request issue first and wait for approval before working on it.
Other information:
Given that there is no open issue for this feature, I'd like to suggest that this be used as a discussion point, with the goal of either: making additional updates if accepted, or closing the PR without anything being merged if what I'm suggesting doesn't match the goals of the repository.

I've created an issue that captures the work described here: #528


finding the RGB(or hex) of an already placed pixel

I tried to take a picture i had on my computer and wanted to see what each pixel's info would be.

There is a method for accomplishing this, but it is painstakingly slow.
This feature would probably be very nice to have. Perhaps a specific 'pixel info' eyedropper extension?
This would not only display select a pixel's color hex-code, but also how many times it appears on this frame, across all frames, across all layers, and across all frames & layers (depending on what modifier keys are held).
Expansively, this could tap into the potential for a 'select all pixels of one color' tool, which would save hours of effort for certain processes.

On Jan 29, 2021, at 11:37 AM, isndfn<EMAIL_ADDRESS>wrote:
I tried to take a picture i had on my computer and wanted to see what each pixel's info would be.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/piskelapp/piskel/issues/989, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALXQG3IIEZTDPUA5CS3ZYBDS4LP5HANCNFSM4WZEMWUQ.

There is a method for accomplishing this, but it is painstakingly slow.
This feature would probably be very nice to have. Perhaps a specific 'pixel info' eyedropper extension?
This would not only display select a pixel's color hex-code, but also how many times it appears on this frame, across all frames, across all layers, and across all frames & layers (depending on what modifier keys are held).
Expansively, this could tap into the potential for a 'select all pixels of one color' tool, which would save hours of effort for certain processes.

On Jan 29, 2021, at 11:37 AM, isndfn<EMAIL_ADDRESS>wrote:
I tried to take a picture i had on my computer and wanted to see what each pixel's info would be.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/piskelapp/piskel/issues/989, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALXQG3IIEZTDPUA5CS3ZYBDS4LP5HANCNFSM4WZEMWUQ.

seems like a duplicate of 956


Goal

The player neither has goals nor things he can fight against / do

ARE YOU KIDDING ME????

All of that will be implemented don't worry


object doc comments

typescript types can document fields like so:
/** this is my object */
export interface MyObject {
  /** this is my field */
  my_field: string
}

and deno will generate the following:
interface MyObject
  this is my object

  my_field: string
    this is my field

however, defining a javascript object like so:
/** this is my object */
export const MY_OBJECT = {
  /** this is my field */
  my_field: string
}

only documents the variable declaration:
const MY_OBJECT
  this is my object

is it possible to support object field doc comments? There are lots of use cases for static objects defined in modules. Ultimately my personal use case is to take advantage of the zod validation library while still relying on handy deno doc generation https://github.com/colinhacks/zod/issues/457
E.g. supporting deno doc zod-validators.ts which look like this:
import { z } from<EMAIL_ADDRESS>
/** this is my object */
const MyObject = z.object({
  /** this is my field */
  my_field: z.string()
})
export type z.infer<typeof MyObject>

currently this just prints
type MyObjectType = z.infer<typeof MyObject>

I am going to declare this as a duplicate of #92.  The "root" problem here is that we don't infer the type of variables assigned object literals, and therefore don't parse out any related JSDoc.  When addressing #92 we will ensure JSDoc blocks are moved into the inferred object literal types.


feat: expose notify

Hi!
I would love to add notifier.nvim as a destination for routing messages from ui_attach with Noice
This PR simply exposes the notify function.

Hi !
It is a great idea but this plugin in actually written in teal, so you'll have to edit the teal file an then compile everything ! Sorry for the inconvenience !

My bad. Didn't see. Updated!
Teal looks pretty cool. Need to look into it further :)

Teal looks pretty cool. Need to look into it further :)

It is ! Helps with developping lua.


[REQ] re-add that one feature where you double-click the bloxstrap icon and it comes up the settings

Acknowledgement of preliminary instructions

[X] I have read and acknowledged the preliminary instructions.

What idea do you have?
the title says for itself
there used to be a feature where you could double-click the bloxstrap icon and it came up the settings

Open Settings and go to the Shortcuts tab


image_picker doesn't work in release mode

Image_picker works fine in debug mode (connected to a real device:
Poco F2 Pro MIUI 12.5 Android 11).
However it doesnt work if I do flutter run --release or if I build a release apk.
the Error that always pops op is the following:
[+14311 ms] E/flutter (18149): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: PlatformException(error, null, null, java.lang.NullPointerException
[   +1 ms] E/flutter (18149):   at java.util.Objects.requireNonNull(Objects.java:220)
[   +1 ms] E/flutter (18149):   at java.util.Arrays$ArrayList.<init>(Arrays.java:3738)
[        ] E/flutter (18149):   at java.util.Arrays.asList(Arrays.java:3725)
[   +1 ms] E/flutter (18149):   at io.flutter.plugins.imagepicker.f.a(Unknown Source:16)
[   +1 ms] E/flutter (18149):   at io.flutter.plugins.imagepicker.f.b(Unknown Source:15)
[        ] E/flutter (18149):   at io.flutter.plugins.imagepicker.e$a.a(Unknown Source:2)
[        ] E/flutter (18149):   at io.flutter.plugins.imagepicker.e.D(Unknown Source:6)
[        ] E/flutter (18149):   at io.flutter.plugins.imagepicker.e.I(Unknown Source:10)
[   +1 ms] E/flutter (18149):   at io.flutter.plugins.imagepicker.ImagePickerPlugin.g(Unknown Source:236)
[   +1 ms] E/flutter (18149):   at c.a.c.a.i$a.a(Unknown Source:17)
[   +1 ms] E/flutter (18149):   at io.flutter.embedding.engine.e.b.c(Unknown Source:57)
[   +1 ms] E/flutter (18149):   at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(Unknown Source:4)
[   +1 ms] E/flutter (18149):   at android.os.MessageQueue.nativePollOnce(Native Method)
[   +3 ms] E/flutter (18149):   at android.os.MessageQueue.next(Unknown Source:17)
[   +1 ms] E/flutter (18149):   at android.os.Looper.loop(Unknown Source:77)
[   +1 ms] E/flutter (18149):   at android.app.ActivityThread.main(Unknown Source:101)
[        ] E/flutter (18149):   at java.lang.reflect.Method.invoke(Native Method)
[   +1 ms] E/flutter (18149):   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(Unknown Source:11)
[        ] E/flutter (18149):   at com.android.internal.os.ZygoteInit.main(Unknown Source:313)
[   +1 ms] E/flutter (18149): )
[        ] E/flutter (18149): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:597)
[        ] E/flutter (18149): #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:158)
[        ] E/flutter (18149): <asynchronous suspension>
[        ] E/flutter (18149): #2      MethodChannelImagePicker.getImage (package:image_picker_platform_interface/src/method_channel/method_channel_image_picker.dart:188)
[   +1 ms] E/flutter (18149): <asynchronous suspension>
[        ] E/flutter (18149): #3      _AddBookPageState.getImage (package:booktimeline/addBook.dart:204)
[        ] E/flutter (18149): <asynchronous suspension>
[        ] E/flutter (18149):

it pops up everytime I click my "get image from gallery" or get image from camera" button.
Full log is here (copied from vscode debug console while running "flutter run --release -v):
log.txt
My AndroidMainfest.xml:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.booktimeline">
    <queries>
        <intent>
            <action android:name="android.media.action.IMAGE_CAPTURE" />
        </intent>
    </queries>

   <application
        android:label="booktimeline"
        android:icon="@mipmap/ic_launcher">
        <activity
            android:name=".MainActivity"
            android:launchMode="singleTop"
            android:theme="@style/LaunchTheme"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
            android:hardwareAccelerated="true"
            android:windowSoftInputMode="adjustResize">
            <!-- Specifies an Android theme to apply to this Activity as soon as
                 the Android process has started. This theme is visible to the user
                 while the Flutter UI initializes. After that, this theme continues
                 to determine the Window background behind the Flutter UI. -->
            <meta-data
              android:name="io.flutter.embedding.android.NormalTheme"
              android:resource="@style/NormalTheme"
              />
            <!-- Displays an Android View that continues showing the launch screen
                 Drawable until Flutter paints its first frame, then this splash
                 screen fades out. A splash screen is useful to avoid any visual
                 gap between the end of Android's launch screen and the painting of
                 Flutter's first frame. -->
            <meta-data
              android:name="io.flutter.embedding.android.SplashScreenDrawable"
              android:resource="@drawable/launch_background"
              />
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>

        <activity
            android:name="com.yalantis.ucrop.UCropActivity"
            android:screenOrientation="portrait"
<EMAIL_ADDRESS>

        <!-- Don't delete the meta-data below.
             This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
        <meta-data
            android:name="flutterEmbedding"
            android:value="2" />
    </application>
</manifest>

results of "flutter doctor -v" :
[√] Flutter (Channel stable, 2.2.3, on Microsoft Windows [Version 10.0.19042.685], locale de-DE)
    • Flutter version 2.2.3 at E:\_flutter\src\flutter
    • Framework revision f4abaa0735 (3 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\flipg\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: C:\Program Files\AdoptOpenJDK\jdk-<IP_ADDRESS>-hotspot\bin\java.exe
    • Java version OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.10+9)
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

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

[!] Android Studio
    • Android Studio at E:\programme\AndroidStudio
    • 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
    X android-studio-dir = E:\programme\AndroidStudio
    X Android Studio not found at E:\programme\AndroidStudio
    • Try updating or re-installing Android Studio.
    • Consider removing your android-studio-dir setting by running:
      flutter config --android-studio-dir=

[√] VS Code (version 1.58.2)
    • VS Code at C:\Users\flipg\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.24.0

[√] Connected device (3 available)
    • Redmi K30 Pro (mobile) • 9f4fe6f • android-arm64  • Android 11 (API 30)
    • Chrome (web)           • chrome  • web-javascript • Google Chrome 91.0.4472.164
    • Edge (web)             • edge    • web-javascript • Microsoft Edge 91.0.864.71

Hi @Finn1510, Thanks for filing the issue, I am able to reproduce the issue while picking the image via camera on the latest stable channel, but not on the master channel with the latest image_picker: ^0.8.2, The plugin works fine on the master channel in release mode.
You may switch to the latest master channel  by running
flutter channel master
flutter upgrade

until the fix lands on the stable channel.

code sample
import 'dart:io';
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:image_picker/image_picker.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: MyHomePage(title: 'Flutter ImagePicker Demo'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _increment() {}

  Widget imageBuilder(File file, int index) {
    if (file != null && file.path.isNotEmpty) {
      return Image.file(
        File(
          file.path,
        ),
        fit: BoxFit.cover,
      );
    } else {
      return imagePlaceHolder(index);
    }
  }

  Future<XFile?> pickImage(ImageSource source) async {
    final image = await _picker.pickImage(
        source: source,
        maxWidth: 800,
        maxHeight: 800,
        preferredCameraDevice: CameraDevice.rear);
    return image;
  }

  Widget imagePlaceHolder(int index) {
    return Container(
      // padding: EdgeInsets.only(right),
      alignment: Alignment.center,
      decoration: BoxDecoration(
        border: Border(
            right: index % 2 == 0 ? BorderSide() : BorderSide.none,
            bottom: BorderSide()),
      ),
      child: Icon(Icons.add_a_photo),
    );
  }

  final _picker = ImagePicker();

  List<File> images = [];

  @override
  void initState() {
    // TODO: implement initState
    super.initState();
    List.generate(4, (x) => images.add(File('')));
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Expanded(
              child: GridView.builder(
                itemCount: 4,
                gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
                    crossAxisCount: 2),
                itemBuilder: (context, index) => GestureDetector(
                    onTap: () async {

                      final image = await pickImage(
                           ImageSource.camera);
                      setState(() {
                        images[index] = File(image!.path);
                      });
                    },
                    child: imageBuilder(images[index], index)),
              ),
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () {},
        tooltip: 'Increment',
        child: Icon(Icons.add),
      ),
    );
  }
}

logs
E/flutter (30519): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: PlatformException(error, null, null, java.lang.NullPointerException
E/flutter (30519):      at java.util.Objects.requireNonNull(Objects.java:220)
E/flutter (30519):      at java.util.Arrays$ArrayList.<init>(Arrays.java:3738)
E/flutter (30519):      at java.util.Arrays.asList(Arrays.java:3725)
E/flutter (30519):      at io.flutter.plugins.imagepicker.f.a(Unknown Source:16)
E/flutter (30519):      at io.flutter.plugins.imagepicker.f.a(Unknown Source:15)
E/flutter (30519):      at io.flutter.plugins.imagepicker.e$a.a(Unknown Source:2)
E/flutter (30519):      at io.flutter.plugins.imagepicker.e.j(Unknown Source:6)
E/flutter (30519):      at io.flutter.plugins.imagepicker.e.d(Unknown Source:10)
E/flutter (30519):      at io.flutter.plugins.imagepicker.ImagePickerPlugin.a(Unknown Source:245)
E/flutter (30519):      at b.a.c.a.i$a.a(Unknown Source:17)
E/flutter (30519):      at io.flutter.embedding.engine.e.b.a(Unknown Source:57)
E/flutter (30519):      at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(Unknown Source:4)
E/flutter (30519):      at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter (30519):      at android.os.MessageQueue.next(MessageQueue.java:335)
E/flutter (30519):      at android.os.Looper.loop(Looper.java:193)
E/flutter (30519):      at android.app.ActivityThread.main(ActivityThread.java:8061)
E/flutter (30519):      at java.lang.reflect.Method.invoke(Native Method)
E/flutter (30519):      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656)
E/flutter (30519):      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
E/flutter (30519): )
E/flutter (30519): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:597)
E/flutter (30519): #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:158)
E/flutter (30519): <asynchronous suspension>
E/flutter (30519): #2      MethodChannelImagePicker.getImage (package:image_picker_platform_interface/src/method_channel/method_channel_image_picker.dart:188)
E/flutter (30519): <asynchronous suspension>
E/flutter (30519): #3      _MyHomePageState.pickImage (package:counter_app/main.dart:52)
E/flutter (30519): <asynchronous suspension>
E/flutter (30519): #4      _MyHomePageState.build.<anonymous closure>.<anonymous closure> (package:counter_app/main.dart:102)
E/flutter (30519): <asynchronous suspension>
E/flutter (30519):
E/flutter (30519): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: PlatformException(already_active, Image picker is already active, null, null)
E/flutter (30519): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:597)
E/flutter (30519): #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:158)
E/flutter (30519): <asynchronous suspension>
E/flutter (30519): #2      MethodChannelImagePicker.getImage (package:image_picker_platform_interface/src/method_channel/method_channel_image_picker.dart:188)
E/flutter (30519): <asynchronous suspension>
E/flutter (30519): #3      _MyHomePageState.pickImage (package:counter_app/main.dart:52)
E/flutter (30519): <asynchronous suspension>
E/flutter (30519): #4      _MyHomePageState.build.<anonymous closure>.<anonymous closure> (package:counter_app/main.dart:102)
E/flutter (30519): <asynchronous suspension>
E/flutter (30519):
E/flutter (30519): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: PlatformException(already_active, Image picker is already active, null, null)
E/flutter (30519): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:597)
E/flutter (30519): #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:158)
E/flutter (30519): <asynchronous suspension>
E/flutter (30519): #2      MethodChannelImagePicker.getImage (package:image_picker_platform_interface/src/method_channel/method_channel_image_picker.dart:188)
E/flutter (30519): <asynchronous suspension>
E/flutter (30519): #3      _MyHomePageState.pickImage (package:counter_app/main.dart:52)
E/flutter (30519): <asynchronous suspension>
E/flutter (30519): #4      _MyHomePageState.build.<anonymous closure>.<anonymous closure> (package:counter_app/main.dart:102)
E/flutter (30519): <asynchronous suspension>
E/flutter (30519):
E/flutter (30519): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: PlatformException(already_active, Image picker is already active, null, null)
E/flutter (30519): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:597)
E/flutter (30519): #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:158)
E/flutter (30519): <asynchronous suspension>
E/flutter (30519): #2      MethodChannelImagePicker.getImage (package:image_picker_platform_interface/src/method_channel/method_channel_image_picker.dart:188)
E/flutter (30519): <asynchronous suspension>
E/flutter (30519): #3      _MyHomePageState.pickImage (package:counter_app/main.dart:52)
E/flutter (30519): <asynchronous suspension>
E/flutter (30519): #4      _MyHomePageState.build.<anonymous closure>.<anonymous closure> (package:counter_app/main.dart:102)
E/flutter (30519): <asynchronous suspension>
E/flutter (30519):

flutter doctor -v
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-arm, locale en-GB)
    • Flutter version 2.2.3 at /Users/mahesh/Documents/flutter
    • Framework revision f4abaa0735 (3 weeks ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • 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.8+10-b944.6916264)

[✓] IntelliJ IDEA Community Edition (version 2021.1.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 57.0.5
    • Dart plugin version 211.7233

[✓] VS Code (version 1.58.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.24.0

[✓] Connected device (3 available)
    • iPhone 12 Pro Max (mobile) • 6A434744-B348-4FB3-AB10-131292174456 • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-14-4 (simulator)
    • macOS (desktop)            • macos                                • darwin-arm64   • macOS
      11.4 20F71 darwin-arm
    • Chrome (web)               • chrome                               • web-javascript • Google
      Chrome 91.0.4472.164

• No issues found!

[✓] Flutter (Channel master, 2.4.0-5.0.pre.166, on macOS 11.4 20F71 darwin-arm, locale en-GB)
    • Flutter version 2.4.0-5.0.pre.166 at /Users/mahesh/Documents/flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2dc11a85ff (4 hours ago), 2021-07-22 17:56:03 -0700
    • Engine revision fbbb3b3f7b
    • Dart version 2.14.0 (build 2.14.0-343.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • 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.8+10-b944.6916264)

[✓] IntelliJ IDEA Community Edition (version 2021.1.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 57.0.5
    • Dart plugin version 211.7233

[✓] VS Code (version 1.58.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.24.0

[✓] Connected device (4 available)
    • sdk gphone arm64 (mobile)  • emulator-5554                        • android-arm64  • Android 11 (API 30)
      (emulator)
    • iPhone 12 Pro Max (mobile) • 6A434744-B348-4FB3-AB10-131292174456 • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-14-4 (simulator)
    • macOS (desktop)            • macos                                • darwin-arm64   • macOS 11.4 20F71
      darwin-arm
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome
      91.0.4472.164

• No issues found!

Hi @maheshmnj Thanks for replying that quick! I switched to the latest master channel but unfortunately I still get the same error as before. I also tried it with your code sample on a different machine
also running flutter master and still got the error.

could you please paste the output of flutter doctor -v on your master channel.

output of flutter doctor -v
[√] Flutter (Channel master, 2.4.0-5.0.pre.181, on Microsoft Windows [Version 10.0.19042.685], locale de-DE)
    • Flutter version 2.4.0-5.0.pre.181 at E:\_flutter\src\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5478470d99 (3 days ago), 2021-07-24 14:38:05 -0400
    • Engine revision 05884794d2
    • Dart version 2.14.0 (build 2.14.0-350.0.dev)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\flipg\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
    • All Android licenses accepted.

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

[√] Android Studio (version 4.2)
    • 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.8+10-b944.6842174)

[√] VS Code (version 1.58.2)
    • VS Code at C:\Users\flipg\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.24.0

[√] Connected device (2 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 91.0.4472.164
    • Edge (web)   • edge   • web-javascript • Microsoft Edge 92.0.902.55

• No issues found!

@Finn1510 I am able to reproduce the issue on the latest master channel as well using Xiaomi k20 Pro in release mode. The app works fine in debug mode but while taking a picture via the camera in release mode the exception is thrown.

code sample
import 'dart:io';
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:image_picker/image_picker.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: MyHomePage(title: 'Flutter ImagePicker Demo'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key? key, required this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void _increment() {}

  Widget imageBuilder(File file, int index) {
    if (file != null && file.path.isNotEmpty) {
      return Image.file(
        File(
          file.path,
        ),
        fit: BoxFit.cover,
      );
    } else {
      return imagePlaceHolder(index);
    }
  }

  Future<XFile?> pickImage(ImageSource source) async {
    final image = await _picker.pickImage(
        source: source,
        maxWidth: 800,
        maxHeight: 800,
        preferredCameraDevice: CameraDevice.rear);
    return image;
  }

  Widget imagePlaceHolder(int index) {
    return Container(
      // padding: EdgeInsets.only(right),
      alignment: Alignment.center,
      decoration: BoxDecoration(
        border: Border(
            right: index % 2 == 0 ? BorderSide() : BorderSide.none,
            bottom: BorderSide()),
      ),
      child: Icon(Icons.add_a_photo),
    );
  }

  final _picker = ImagePicker();

  List<File> images = [];

  @override
  void initState() {
    // TODO: implement initState
    super.initState();
    List.generate(4, (x) => images.add(File('')));
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Expanded(
              child: GridView.builder(
                itemCount: 4,
                gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
                    crossAxisCount: 2),
                itemBuilder: (context, index) => GestureDetector(
                    onTap: () async {

                      final image = await pickImage(
                           ImageSource.camera);
                      setState(() {
                        images[index] = File(image!.path);
                      });
                    },
                    child: imageBuilder(images[index], index)),
              ),
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () {},
        tooltip: 'Increment',
        child: Icon(Icons.add),
      ),
    );
  }
}

Logs
q Quit (terminate the application on the device).
E/flutter (23676): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: PlatformException(error, null, null, java.lang.NullPointerException
E/flutter (23676):      at java.util.Objects.requireNonNull(Objects.java:220)
E/flutter (23676):      at java.util.Arrays$ArrayList.<init>(Arrays.java:3738)
E/flutter (23676):      at java.util.Arrays.asList(Arrays.java:3725)
E/flutter (23676):      at io.flutter.plugins.imagepicker.f.a(Unknown Source:16)
E/flutter (23676):      at io.flutter.plugins.imagepicker.f.a(Unknown Source:15)
E/flutter (23676):      at io.flutter.plugins.imagepicker.e$a.a(Unknown Source:2)
E/flutter (23676):      at io.flutter.plugins.imagepicker.e.j(Unknown Source:6)
E/flutter (23676):      at io.flutter.plugins.imagepicker.e.d(Unknown Source:10)
E/flutter (23676):      at io.flutter.plugins.imagepicker.ImagePickerPlugin.a(Unknown Source:245)
E/flutter (23676):      at b.a.c.a.i$a.a(Unknown Source:17)
E/flutter (23676):      at io.flutter.embedding.engine.e.b.a(Unknown Source:57)
E/flutter (23676):      at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(Unknown Source:4)
E/flutter (23676):      at android.os.MessageQueue.nativePollOnce(Native Method)
E/flutter (23676):      at android.os.MessageQueue.next(MessageQueue.java:335)
E/flutter (23676):      at android.os.Looper.loop(Looper.java:193)
E/flutter (23676):      at android.app.ActivityThread.main(ActivityThread.java:8061)
E/flutter (23676):      at java.lang.reflect.Method.invoke(Native Method)
E/flutter (23676):      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656)
E/flutter (23676):      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
E/flutter (23676): )
E/flutter (23676): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:597)
E/flutter (23676): #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:158)
E/flutter (23676): <asynchronous suspension>
E/flutter (23676): #2      MethodChannelImagePicker.getImage (package:image_picker_platform_interface/src/method_channel/method_channel_image_picker.dart:188)
E/flutter (23676): <asynchronous suspension>
E/flutter (23676): #3      _ImagePickerSampleState.pickImage (package:counter_app/image_picker.dart:34)
E/flutter (23676): <asynchronous suspension>
E/flutter (23676): #4      _ImagePickerSampleState.build.<anonymous closure>.<anonymous closure> (package:counter_app/image_picker.dart:83)
E/flutter (23676): <asynchronous suspension>
E/flutter (23676):
E/flutter (23676): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: PlatformException(already_active, Image picker is already active, null, null)
E/flutter (23676): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:597)
E/flutter (23676): #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:158)
E/flutter (23676): <asynchronous suspension>
E/flutter (23676): #2      MethodChannelImagePicker.getImage (package:image_picker_platform_interface/src/method_channel/method_channel_image_picker.dart:188)
E/flutter (23676): <asynchronous suspension>
E/flutter (23676): #3      _ImagePickerSampleState.pickImage (package:counter_app/image_picker.dart:34)
E/flutter (23676): <asynchronous suspension>
E/flutter (23676): #4      _ImagePickerSampleState.build.<anonymous closure>.<anonymous closure> (package:counter_app/image_picker.dart:83)
E/flutter (23676): <asynchronous suspension>
E/flutter (23676):
E/flutter (23676): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: PlatformException(already_active, Image picker is already active, null, null)
E/flutter (23676): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:597)
E/flutter (23676): #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:158)
E/flutter (23676): <asynchronous suspension>
E/flutter (23676): #2      MethodChannelImagePicker.getImage (package:image_picker_platform_interface/src/method_channel/method_channel_image_picker.dart:188)
E/flutter (23676): <asynchronous suspension>
E/flutter (23676): #3      _ImagePickerSampleState.pickImage (package:counter_app/image_picker.dart:34)
E/flutter (23676): <asynchronous suspension>
E/flutter (23676): #4      _ImagePickerSampleState.build.<anonymous closure>.<anonymous closure> (package:counter_app/image_picker.dart:83)
E/flutter (23676): <asynchronous suspension>

Are there any updates? Release builds seem to be still broken on both master and stable channels while debug ones work fine

yeah a while back after upgrading the package it started working for me again too


Make OffsetX/Y negative for bottom/right positions

OffsetX and OffestY work great with default position (top-left)

But these options shift overlay beyond the screen when custom position enabled.
For example, bottom-left:

Or top-right:

I think the best solution would be to invert the offset values. For example, OffsetY = 20 in UI would internally become OffsetY = -20 when Position = bottom-left. If it is possible of course

I've adjusted the range of the offset, and now it is [-2160, 2160]. You can adjust the values according to your needs. However, I believe that even [0, 2160] is sufficient to meet the requirements. Theoretically, you can move the HUD to any location on the screen using offsetx + offsety, without the need to configure the position.

This range change will take effect in the next plugin update.


missing fonts

On initial load, scalysans.otf and scalysanscaps.otf are error404 not found.

Hmm. I'll dig around and see what would be causing that. Thanks for the report!

I made a change to how the ScalySans fonts were being referenced and it appears to have fixed the issue for me as of version 0.9.6. I'd love it if you could let me know if it's fixed for you as well. Thanks!

Love your work here! With the latest update, I'm now seeing BookInsanity.otf showing error404 aborted. Additionally there seems to be some errors with the CSS which results in the journal interface remaining open even when the journal itself is saved/closed.
![journal test](https://user-images.githubusercontent.c

om/77705375/152707112-3b120f48-47c7-48d4-87fb-5ef6040dfd2c.PNG)

Updated to 1.2.1. BookInsanity still throwing 404 error, which seems to be preventing the opening of a couple of the templates. Also, the Settings panel will remain open when the journal is closes unless manually closed by the user. Good luck, it's super cool!

I cannot reproduce the things you're seeing. I suspect you have another mod conflicting with it. COuld you try just enabling apsj and see if it still has the problem? Or better yet, install Find the Culprit and have it divide and conquer to figure out what is causing the problem.

will do

This issue moved to apsj4mej project.


db test update error

Error: {"status":409,"name":"conflict","message":"Document update conflict"}
Not sure what is going on see: test/db.spec.js

fixed this by using pouchdb-upsert


get error on function send

Hello, there. i started working with your code for trading with xtb api.
but always get an error,
just trying to login in i get this error:
self.ws.send(msg) -> AttributeError: 'Connect' object has no attribute 'send'
trying to get other version of websockets but get the same error.

Hello,
do pip install websocket-client. :)

I seem to get connection refused, because too much requests.
the api code doesn't seem to have any async to make intervals.
would it be enough to use async in the main code script?


[DO NOT MERGE] Gen1 Request Forwarding to Gen2

Description
Turn gen1 cloud function into a proxy between client and gen2, when enabled by config.

moved to https://github.com/celo-org/social-connect/pull/46


Small refactoring to support 'HttpError'.

MM you might want to try embedding Error inside HttpError, and then you can save (some of) the hassle


Ignore commits/PRs from Bot type accounts

There is a user type called "Bot" on Github and Dependabot is that type that of account. When we are checking for recent commits on repositories, we should ignore ones that are made by a Bot account.
NB: This will work for Dependabot, but there isn't a guarantee it will solve all our woes. The Snyk bot account does not seem to have been created as a type Bot.

Python code now uses the last commit date to decide if repo should be archived or not and ignores the dependabot branches See https://github.com/ministryofjustice/operations-engineering/blob/27619f257c2e4787ae6d0df1b9baf9e78631f3ed/scripts/python/archive-repositories.py#L43


SARAALERT-1425: Support ability for users to read history in API

Description
Jira Ticket: SARAALERT-1425
Adds the ability for users to access history items via the api, returning FHIR Provenance resources (IG: https://www.hl7.org/fhir/provenance.html). They can be accessed directly by local ID using /fhir/r4/Provenance/[:id], can be searched for by Patient, and are part of the $everything for patients to which they belong.
-api_controller.rb: the meat of the changes, adds functionality to show specific histories and search for them via the api, as well as adding them as content to the $everything endpoint for patients.
-fhir_helper.rb: adds code to convert our histories into FHIR Provenance resources.
Checklists
Submitter:

[ ] This PR describes why these changes were made.
[ ] This PR is into the correct branch.
[ ] This PR includes the correct JIRA ticket reference.
[ ] Code diff has been reviewed (it does not contain: additional white space, not applicable code changes, debug statements, etc.)
[ ] If UI changes have been made, Chrome Dev Tools Lighthouse accessibility test has been executed to ensure no 508 issues were introduced.
[ ] Tests are included and test edge cases
[ ] Tests have been run locally and pass (remember to update Gemfile when applicable)
[ ] Test fixtures updated and documented as necessary

@ :

[ ] Code is maintainable and reusable, reuses existing code and infrastructure where appropriate, and accomplishes the task’s purpose
[ ] The tests appropriately test the new code, including edge cases
[ ] You have tried to break the code
[ ] If applicable, you have tested changes against a large database, and considered possible performance regressions

@ :

[ ] Code is maintainable and reusable, reuses existing code and infrastructure where appropriate, and accomplishes the task’s purpose
[ ] The tests appropriately test the new code, including edge cases
[ ] You have tried to break the code
[ ] If applicable, you have tested changes against a large database, and considered possible performance regressions

@ :

[ ] Code is maintainable and reusable, reuses existing code and infrastructure where appropriate, and accomplishes the task’s purpose
[ ] The tests appropriately test the new code, including edge cases
[ ] You have tried to break the code
[ ] If applicable, you have tested changes against a large database, and considered possible performance regressions

IG documentation: https://github.com/SaraAlert/saraalert-fhir-ig/pull/13.

I've fixed most of the static analysis errors, but my changes have moved fhir/r4/api_controller.rb over rubocop's limit for acceptable size of a class by 19 lines. I know some files disable that metric and I think it makes sense to make the api controller one of them, but I don't want to push that change without advance approval.

I've fixed most of the static analysis errors, but my changes have moved fhir/r4/api_controller.rb over rubocop's limit for acceptable size of a class by 19 lines. I know some files disable that metric and I think it makes sense to make the api controller one of them, but I don't want to push that change without advance approval.

Yeah this is fine, that class has been over and under the limit a few times. I'm working on some refactors that should hopefully get it back under, but fine to go over for now.

Did not mean to re-request @ngfreiter, misclick


Date assertion

It would be nice to have a date assertion that worked like the following:
(new Date()).should.be.a.Date();

Is there any specific reason to not support it? Would you guys accept a PR for it?
Thanks.

There is no specific reason - I just forgot about it. Yep, PR welcomed.


Fix memory leak when clean or remove from vector

Fix #117

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

9 of 9 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1791

Relevant Lines:
1791

💛  - Coveralls


add support for true-query and false-query

The cts layer grew two new queries last year, cts:true-query and cts:false-query. Erik has pushed them through to the Client layer by way of true-query and false-query elements for structured query. We should probably surface them through the queryBuilder inteface in the Node.js API.

Added test on nodejs-documents-query.js

@kcoleman-marklogic, if you could review the jsdoc stuff for this, that would be great.


Refresh K8up CLI greeting and copyright notice

Context
The greeting of the CLI is boilerplatey, let's have a proper greeting there.
Current greeting:
k8up - A new cli application

Also the copyright notice is wrong.
Implementation Ideas
Change the greeting into:
k8up - Kubernetes Backup Operator

And also update the copyright notice to match the website:
(c) k8up Authors 2021-2023

Make the date dynamic.

I am willing to submit a pr.

I am willing to submit a pr.

There is no need to ask, just submit the PR


MQTT event: invalid value 'charging-status-changed'

While running home assistant integration following warning printed in the logs:
2024-11-02 12:01:38.718 DEBUG (MainThread) [myskoda.mqtt] Received PUBLISH (d0, q0, r0, m0), '97bee240-dd09-4d56-8d8b-xxxxxxxx/TMBAXXXXXX/service-event/charging', ...  (237 bytes)
2024-11-02 12:01:38.718 DEBUG (MainThread) [myskoda.mqtt] Message (service-event) received for TMBAXXXXXX on topic charging: b'{"version":1,"traceId":"38385019-410c-4634-b9a0-xxxxxxxxxx","timestamp":"2024-11-02T10:01:38Z","producer":"SKODA_MHUB","name":"charging-status-changed","data":{"userId":"97bee240-dd09-4d56-8d8b-xxxxxxxxxxx","vin":"TMBAXXXXXX"}}'
2024-11-02 12:01:38.718 WARNING (MainThread) [myskoda.mqtt] Exception parsing MQTT event: Field "name" of type ServiceEventName in ServiceEventCharging has invalid value 'charging-status-changed'

Is this a bug?

This is a new message we have not yet seen, thanks for reporting this! 👍

@fursov is this the complete event you got, you did not remove anything from the logs?

@fursov is this the complete event you got, you did not remove anything from the logs?

yes, that is all, I only mangled VIN.
Log from just now with everything around:
2024-11-04 09:14:23.339 DEBUG (MainThread) [myskoda.mqtt] Received PINGRESP
2024-11-04 09:14:38.330 DEBUG (MainThread) [myskoda.mqtt] Sending PINGREQ
2024-11-04 09:14:38.366 DEBUG (MainThread) [myskoda.mqtt] Received PINGRESP
2024-11-04 09:14:52.324 DEBUG (MainThread) [myskoda.mqtt] Received PUBLISH (d0, q0, r0, m0), '97bee240-dd09-4d56-8d8b-xxxxxxxx/TMBAXXXXXXX/service-event/charging', ...  (237 bytes)
2024-11-04 09:14:52.325 DEBUG (MainThread) [myskoda.mqtt] Message (service-event) received for TMBAXXXXXXX on topic charging: b'{"version":1,"traceId":"0ca71ebf-0209-4dc8-a072-xxxxxxxx","timestamp":"2024-11-04T07:14:51Z","producer":"SKODA_MHUB","name":"charging-status-changed","data":{"userId":"97bee240-dd09-4d56-8d8b-xxxxxxxx","vin":"TMBAXXXXXXX"}}'
2024-11-04 09:14:52.325 WARNING (MainThread) [myskoda.mqtt] Exception parsing MQTT event: Field "name" of type ServiceEventName in ServiceEventCharging has invalid value 'charging-status-changed'
2024-11-04 09:14:53.361 DEBUG (MainThread) [myskoda.mqtt] Sending PINGREQ
2024-11-04 09:14:53.394 DEBUG (MainThread) [myskoda.mqtt] Received PINGRESP
2024-11-04 09:15:08.379 DEBUG (MainThread) [myskoda.mqtt] Sending PINGREQ
2024-11-04 09:15:08.419 DEBUG (MainThread) [myskoda.mqtt] Received PINGRESP

OK, thanks for the info!