Task 14: Upgrade on table migration extension error

I received an error on https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/upgrade/upgrade-to-microsoft-base-app
task 14 - previous version does not exist. (This is the table migration.)
I ignored it since I had already synced it (sync-navapp) and the data was migrated.
Task 15 upgrades to the other extensions worked without errors.
Does table migration extension need the upgrade:
Start-NAVAppDataUpgrade -ServerInstance BC160 -Name "TableMigration" -version <IP_ADDRESS>
previous version is <IP_ADDRESS>
Or can I ignore it?

I found I have another problem - the routine did not have a problem with table extensions and the fields getting prefixes in the upgrade because the field numbers stayed the same.
It did not handle the tables though - it did not look at table numbers - it looked at table names, so my ISV (GCX ) and custom (PTE ) did not work - it could not find the tables - is there a way to have it handle table extension migration by having it use the table numbers instead?

For task 14 - previous version does not exist. (This is the table migration.), it should have been published under Task 9: Publish symbols and DestinationAppsForMigrations
It needs to be upgraded, otherwise the schema will not be completed.
You cannot add prefixes, the system unfortunately requires both ID and Name to match. Rename of the tables is possible in C/AL I believe, C/AL works on the IDs. If these do not match, the C/AL tables will be left behind (not get the guid).

The tables moved, but not the data - it did drop the original tables - I did do a force which is maybe why it dropped the add-on tables.
I will see if I can handle the renames in C/AL then.

If you have force synced the tables, that would drop all the data. Only solution is to either rename оr upgrade with COPY while on 14, or to obsolete and loop over all fields in AL.

@davmac1 - If you have more questions I would recommend to continue here: https://www.yammer.com/dynamicsnavdev/#/threads/inGroup?type=in_group&feedId=5059035. There is more people that can help both from MS and Partner channel, plus I'm getting updates sooner. Let me know if you have problems joining.


chore: modify multi-hop table driven tests

Closes: #XXX
What is the purpose of the change
With modifications to the osmo multi-hop fee reduction logic, we needed to also modify the table driven tests. This PR simplifies the current table driven test logic as well as implements the new fee logic.

@p0mvn I made some relatively significant changes to accommodate for that fourth test case. If you could give it another quick glance it would be much appreciated!

@ValarDragon I can get this added tomorrow!

awesome!

@ValarDragon was able to combine four asset pool tests and two asset pool tests, and was also able to test the osmo fee reduction with four asset pools now after the test refactor. Will merge today if no further comments!


Bug: yOffset  is set based on maxYOffset

This:
if (yOffset < -maxXOffset) {

https://github.com/AlynxZhou/alynx-live-wallpaper/blob/master/app/src/main/java/xyz/alynx/livewallpaper/GLES30WallpaperRenderer.java#L303C9-L303C37
https://github.com/AlynxZhou/alynx-live-wallpaper/blob/master/app/src/main/java/xyz/alynx/livewallpaper/GLES20WallpaperRenderer.java#L301C24-L301C34

Yes, should be fixed.

Thing is, I thought this was the reason for this issue:
https://github.com/AlynxZhou/alynx-live-wallpaper/issues/21
On the way I've also noticed that the range of y-offset could be weird, because the minimal value can be larger than the maximal value.
I thought about it more, and I still don't understand what causes it.
I have found out though, that there is a possible issue of multi-threads, because the live wallpaper service is usually working on UI thread, yet the drawing part of OpenGL is always on a background thread.
You should have some protection between the two. Check on each function if it's on UI thread or not, add annotations of "UiThread" and "WorkerThread" to help you figure out when such issues happen.
If you wish, I've prepared a forked version of this repository, in Kotlin:
https://github.com/AndroidDeveloperLB/alynx-live-wallpaper
And I was so concerned about the scrolling that I've asked how to fix it on StackOverflow, including trying to prepare a POC just for this purpose alone:
https://stackoverflow.com/q/76608433/878126


Empty type declarations

Imaging I have the following type declaration
/**
 * Database connection configuration data structure for a single
 * environment.
 */
export type DbEnvConfig = {
    url: string;
    dialect: string;
};

As result I get this representation in generated documentation:
DbEnvConfig
DbEnvConfig: object
Defined in index.ts:12
Database connection configuration data structure for a single environment.

Type declaration

If I will add indexes to type:
/**
 * Database connection configuration data structure for a single
 * environment.
 */
export type DbEnvConfig = {
    [name: string]: string;
    url: string;
    dialect: string;
};

I would see this:
DbEnvConfig
DbEnvConfig: object
Defined in index.ts:12
Database connection configuration data structure for a single environment.

Type declaration

 - [name: string]: string

So I missing all the properties defined for a type. For me it looks like a critical bug (I dunno if is suggested to be expected behavior). In such a case documentation itself loses its meaning, as the most critical information is missing from it. Better to look on the source code then...

I suspect that it is due to missing support of type definitions. I assume defining this as an interface would be simple workaround until this feature is fixed.
/**
 * Database connection configuration data structure for a single
 * environment.
 */
export interface DbEnvConfig {
    [name: string]: string;
    url: string;
    dialect: string;
}

Probably related but I get similar behavior for this:
 putDelegates(data: { a: string, b: string, c: string[], d?: string }, callback?: cback<any>): Promise<any> {
}

The generated doc shows "data" as "object" not providing any hint on the allowed elements.
I could create an interface but I've hundreds of methods with different inputs. Wouldn't really be a use case for interfaces.

@vekexasia I think that is a separate issue. Per #497 it should be giving some basic info by default. If you want more details you should use an interface.

Similar experience when using "excludeNotExported": true:
export type Avatar = {
  name: string,
  hairColor: string,
  eyeColor: string,
}

Typedoc output:

Typedoc output with "excludeNotExported": true:

#1103 should fix this.

In 0.20 the alias with the index signature renders as:

This isn't entirely correct, as it's missing the index signature, but it is closer to the desired output.


duckdb: increase file descriptors for installCheck

fixes https://github.com/NixOS/nixpkgs/issues/303226
seems like update https://github.com/NixOS/nixpkgs/pull/297147 caused hydra build to run out of file descriptors tho ofborg builds were just fine.
Description of changes

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

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

thanks!


Port the library to Godot 4.0

Efforts should be made to port the library to Godot 4.0.
Godot 4.0 brings many features, but a lot of breaking changes. Even the editor itself is in alpha, so stability is not even guaranteed.

I made some progress.
https://github.com/adamscott/gd-YAFSM/tree/port-4.0
There's still issues still, like duplicating states, but it does not crash and burn. For now.
A master build is needed as some breaking changes were introduced since last alpha 4. All controls rect_ properties were renamed to remove the prefix.

Thank you!
Feel free to open a pull request for your works, so it can be tested or even contributed by others.

Hi everyone, I opened a (hopefully) fully functional g4 port based on #47 -> https://github.com/imjp94/gd-YAFSM/pull/50
Feel free to check it out. Let me know if it's best to merge it in #47, close it and discuss all of it there, or what else, I'm at your complete disposal :)


Response is now an undeclared type in Swift3 updates

Using the latest release with the swift 3 support, the following code show an error of "Use of undeclared type Response". Any migration breaking changes we should follow?
.responseObject { (response: Response<User, NSError>) in

Yes, Alamofire updated the response object. Please use the following:
.responseObject { (response: DataResponse<WeatherResponse>)


Canary docs updating page returns 500 server error

In looking through the current canary docs (Commit) the /concepts/updating page (Production URL) is broken & returns a 500 internal server error.
I have tried to reproduce this locally but had no success. Maybe this the issue has already been resolved & the fix is yet to be deployed?

Thanks for reporting this. We should really add a check to our docs that verifies that all links are correct on the CI in the future.


Deploy script pointing deployed version to deploying python

After running the deploy script for v7.0.0 from /scratch/ffv81422/hyperion/ I found that /dls_sw/i03/software/bluesky/hyperion/.venv/bin/python was pointing at /scratch/ffv81422/hyperion/ instead of the central python 3.10 instance.
I believe this may have been because I had run the deploy script with module load python/3.10 already done, we should make sure in this case it still works

Closing in favour of https://github.com/DiamondLightSource/hyperion/issues/703


Story about range's copyFrom method

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/excel/excel-add-ins-ranges.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/excel/excel-add-ins-ranges.md
:white_check_mark:Succeeded

docs/images/excel-range-copyfrom-skipblanks-after.png
:white_check_mark:Succeeded

docs/images/excel-range-copyfrom-skipblanks-before.png
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/excel/excel-add-ins-ranges.md
:white_check_mark:Succeeded

docs/images/excel-range-copyfrom-skipblanks-after.png
:white_check_mark:Succeeded

docs/images/excel-range-copyfrom-skipblanks-before.png
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/excel/excel-add-ins-ranges.md
:white_check_mark:Succeeded

docs/images/excel-range-copyfrom-skipblanks-after.png
:white_check_mark:Succeeded

docs/images/excel-range-copyfrom-skipblanks-before.png
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/excel/excel-add-ins-ranges.md
:white_check_mark:Succeeded

docs/images/excel-range-copyfrom-skipblanks-after.png
:white_check_mark:Succeeded

docs/images/excel-range-copyfrom-skipblanks-before.png
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Replace success image in bundle file,no works

I just replace the success image in bundle,but it not works.It's just show black checkmark in the view.

Do not replace an icon in the bundle. Use setSuccessImage etc.


EMA Getter in DDPG not getting called?

The function EMA Getter isn't getting called in the DDPG code? correct me if im wrong, but show where it is?

It is called by this two line:
a_ = self._build_a(self.S_, reuse=True, custom_getter=ema_getter)   # replaced target parameters
q_ = self._build_c(self.S_, a_, reuse=True, custom_getter=ema_getter)

thanks. also i tried hooking up an environment of myself on your fantastic DDPG Algorithme, everything "works" so far, the loop runs smoothly, but the weights aren't updating.... i know you useally don't bother with personal help not surrounding the project, but do you maybe know what it may caused? i didn't changed anything algorithme wise in the code.

Please be so kind to delete this issue for me, thank you in advance.


Shader Parsing With Comments Above Version Declaration

In the case that comments are written above a version declaration for a GLSL shader, the parser does not work as expected.
For example,
// Author: Noah Serr
#version 450 core
...
will not parse correctly.

Fixed in commit f5ea745


Create PatternBuilder Regex printer combinators

Completely @skeate’s idea: create PatternBuilder combinators for constructing regex’s which can be used as Schemable combinators within Arbitrary.
Will greatly reduce the amount of code necessary, and eliminate many of the string combinator modules to be moved to the schemas folder for re-export in the schemas directory.
The final idea is to have two imports, the first with all predefined Schemas, the second with interpreters:
import * as S from ‘schemable-ts-types/schemas’
import * as I from ‘schemable-ts-types/interpreters’

const User = S.Struct({
  id: S.UUID({ version: 5 }),
  email: S.Email,
  username: S.ASCII,
  favouriteColour: S.HexColor
})

export type User = S.TypeOf<typeof User>

const decodeUser = I.interpret(I.Decoder)(User)
const guardUser = I.interpret(I.Guard)(User)
const eqUser = I.interpret(I.Eq)(User)
const taskDecoderUser = I.interpret(I.TaskDecoder)(User)
const arbitraryUser = I.interpret(I.Arbitrary)(User)

closing as it's merged in 1.0 branch


Overhaul of Adapter Development Contributing Docs

Description & motivation

cordon the adapter docs into a "Contributing" subsection
Add two new pages:

a landing page for adapter development: "What Are Adapters?"
a guide for publicizing and promoting a new adapter (written by the singular @jasnonaz)

lots of additional context, re-outlining, and code formatting.

Questions

should this new Contributing/Adapter_Development subsection live in Guides? @gwenwindflower
Does it make sense that clicking on the sidebar section heading "Adapter Development" brings up the first doc in the series: What are adapters?? Or, should it have an overview page with the "What are adapters?" page explicitly listed in the sidebar? Perhaps both? @gwenwindflower
Should maintaining your new adapter be a standalone page? What about Pre-Requisite Data Warehouse Features?
What information about adapter verification should go in this docs guide?

Preview
Direct link to preview adapter docs subsection:
https://deploy-preview-1727--docs-getdbt-com.netlify.app/docs/contributing/adapter-development/1-what-are-adapters

Checklist
If you added new pages (delete if not applicable):

[x] The page has been added to website/sidebars.js
[x] The new page has a unique filename

If you removed existing pages (delete if not applicable):

[x] The page has been removed from website/sidebars.js
[x] An entry has been added to _redirects

I did a quick read through so I can't speak to typos, so only speaking from an intent / structure perspective.
I really like the new layout. It's much more approachable by making the "Adapter development" a contained section.

should this new Contributing/Adapter_Development subsection live in Guides?

It should live with Contributing. So unless you want to move the entire Contributing section?

Does it make sense that clicking on the sidebar section heading "Adapter Development" brings up the first doc in the series?

Not really. I'm thinking we should mirror the behaviour of the rest of the ToC, with section headers just opening the sub section with no navigation taking place. So that new landing page should be a page in itself, first on the list.

Should maintaining your new adapter be a standalone page?

I would start with no (not enough content), but add a link from the verification page to it somehow.

@matthewshaver @jtcohen6 thanks for your help here! I think we're almost there

I imagine there's more work in a follow-up PR to actually update the "Available Adapters" / "Supported Data Platforms" page with information about which adapters are validated and what that means. The audience there will be any user of dbt, including very new ones, who want to know if they should start building a dbt project to run on X platform.

See #1945 and a forthcoming PR where we combine the dbtlabs-, vendor-, and community-supported tables into one section with three new columns: "verified?" "latest verified version" and "maintained by"


Yoyos stay out when you switch to another hotbar slot while continuing to hold right click

Yoyos stay out when you switch to another inventory slot while right clicking. They will also keep staying out when you release right click on another hotbar slot, and you can use other items (e.g a sword) while the yoyo stays out. The yoyo only retracts when you switch back to the hotbar slot of the yoyo and right click again.

This also makes the yoyo not take durability damage.


Lazydocker

Codecov Report

Merging #11 (3dde221) into master (02c1922) will decrease coverage by 3.34%.
The diff coverage is 7.27%.

@@            Coverage Diff             @@
##           master      #11      +/-   ##
==========================================
- Coverage   15.68%   12.33%   -3.35%
==========================================
  Files          10       13       +3
  Lines         102      154      +52
==========================================
+ Hits           16       19       +3
- Misses         83      132      +49
  Partials        3        3

Flag
Coverage Δ

unittests
12.33% <7.27%> (-3.35%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

core/docker/gpg.go
0.00% <0.00%> (ø)

core/github/release.go
0.00% <0.00%> (ø)

core/golang/golangci-lint.go
0.00% <0.00%> (ø)

targets/docker/lazydocker/install.go
0.00% <0.00%> (ø)

targets/golang/magefile.go
0.00% <ø> (ø)

core/lazydocker/install.go
7.69% <7.69%> (ø)

core/http/download.go
40.00% <100.00%> (ø)

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 02c1922...3dde221. Read the comment docs.


Issue when importing mediapipe

Hi,
When importing mediapipe on Mac ARM64, im facing the following issue:
`>>>
import mediapipe as mp
objc[17608]: Class CaptureDelegate is implemented in both /Users/sandeeppvn/opt/miniconda3/envs/640/lib/python3.10/site-packages/mediapipe/.dylibs/libopencv_videoio.3.4.16.dylib (0x100d98860) and /Users/sandeeppvn/opt/miniconda3/envs/640/lib/python3.10/site-packages/cv2/cv2.abi3.so (0x16650e538). One of the two will be used. Which one is undefined.
objc[17608]: Class CVWindow is implemented in both /Users/sandeeppvn/opt/miniconda3/envs/640/lib/python3.10/site-packages/mediapipe/.dylibs/libopencv_highgui.3.4.16.dylib (0x1009d8a68) and /Users/sandeeppvn/opt/miniconda3/envs/640/lib/python3.10/site-packages/cv2/cv2.abi3.so (0x16650e588). One of the two will be used. Which one is undefined.
objc[17608]: Class CVView is implemented in both /Users/sandeeppvn/opt/miniconda3/envs/640/lib/python3.10/site-packages/mediapipe/.dylibs/libopencv_highgui.3.4.16.dylib (0x1009d8a90) and /Users/sandeeppvn/opt/miniconda3/envs/640/lib/python3.10/site-packages/cv2/cv2.abi3.so (0x16650e5b0). One of the two will be used. Which one is undefined.
objc[17608]: Class CVSlider is implemented in both /Users/sandeeppvn/opt/miniconda3/envs/640/lib/python3.10/site-packages/mediapipe/.dylibs/libopencv_highgui.3.4.16.dylib (0x1009d8ab8) and /Users/sandeeppvn/opt/miniconda3/envs/640/lib/python3.10/site-packages/cv2/cv2.abi3.so (0x16650e5d8). One of the two will be used. Which one is undefined.
Traceback (most recent call last):
File "", line 1, in
File "/Users/sandeeppvn/opt/miniconda3/envs/640/lib/python3.10/site-packages/mediapipe/init.py", line 17, in
import mediapipe.python.solutions as solutions
File "/Users/sandeeppvn/opt/miniconda3/envs/640/lib/python3.10/site-packages/mediapipe/python/solutions/init.py", line 17, in
import mediapipe.python.solutions.drawing_styles
File "/Users/sandeeppvn/opt/miniconda3/envs/640/lib/python3.10/site-packages/mediapipe/python/solutions/drawing_styles.py", line 20, in
from mediapipe.python.solutions.drawing_utils import DrawingSpec
File "/Users/sandeeppvn/opt/miniconda3/envs/640/lib/python3.10/site-packages/mediapipe/python/solutions/drawing_utils.py", line 25, in
from mediapipe.framework.formats import detection_pb2
File "/Users/sandeeppvn/opt/miniconda3/envs/640/lib/python3.10/site-packages/mediapipe/framework/formats/detection_pb2.py", line 5, in
from google.protobuf.internal import builder as _builder
ImportError: cannot import name 'builder' from 'google.protobuf.internal' (/Users/sandeeppvn/opt/miniconda3/envs/640/lib/python3.10/site-packages/google/protobuf/internal/init.py)
`
My System details:
Mac Air M1 2020
macOS Ventura 13.0.1
Using Miniconda ARM64 Mac Version
Python 3.10.8
mediapipe-silicon: 0.8.11
protobuf: 3.19.0
Kindly help how to resolve this issue.

same problem, so minimal documentation. at least write 'How to use' this library

@sandeeppvn Could it be a problem with MacOS Ventura? I just tried it on MacOS Monterey (12.6) with conda and python 3.10 and the import worked. I currently did not update to Ventura and Github still does not support Actions to test on newer systems.
Otherwise, I just googled the error message ImportError: cannot import name 'builder' from 'google.protobuf.internal' and found the following thread: stackoverflow/71759248. To test this out, just uninstall protobuf and reinstall it with pip install "protobuf>=3.11,<4".
@mrezzaaa This is a drop-in replacement library which does not change anything regarding the usage of Mediapipe.

@giorgiop Did you re-install the protobuf package as suggested?

MacBook Pro 16" 2021 with an Apple M1 Max CPU running macOS Ventura 13.0.1
python 3.10.8
protobuf 3.20.1

@giorgiop Thanks for the information. I am still not able to reproduce and I do not have the feeling this is a problem of mediapipe-silicon, because the issue itself occurs with many google packages as you can read here. And if you have protobuf installed with tensorflow, the builder.py is maybe missing as described here.
Could you please check if protobuf is correctly installed and that you can import the builder.py? You can check that by using the following command:
python -c "from google.protobuf.internal import builder2; print('works')"

Hi, I have the same problem.
Here is my environment:

MacBook Pro 16inch, 2021 with Apple M1 Pro ( macOS Monterey v12.6)
Python 3.10.5 (installed with pyenv)
Poetry 1.3.2
venv
protobuf 3.20.3 (automatically installed when you try this command poetry add mediapipe-silicon)

python -m venv venv && source venv/bin/activate
poetry init
poetry add mediapipe-silicon
python -c "import mediapipe as mp"

And I tried this command python -c "from google.protobuf.internal import builder; print('works')", it worked fine.

I tried changing the package management tool from Poetry to pip, but the same problem occurred.
python -m venv venv && source venv/bin/activate
pip install mediapipe-silicon
python -c "import mediapipe as mp"

@satoooh Thank you for the information. Do you think it is a problem with Ventura? I am currently still on Monterey, so I can not really test it. Otherwise, could you check in the site-packages, if there is a mediapipe folder or how pip installed mediapipe-silicon?

I am facing the same issue with protobuf, did anyone found solution for it?
My System details:
Mac Air M1 2020
macOS Ventura 13.0.1
Protobuf 3.17.3

@alifiya13 Could you try to update to the following protobuf version: pip install protobuf==3.20.1?


dragonbox_to_chars.h should have a static const int with minimum buffer size guaranteed to be enough

essentially, the same as DtoaMinBufferLength from https://github.com/abolz/Drachennest/blob/master/src/dragonbox.h (although the value given there seems a bit large but i haven't looked into it)
this would be much more reliable and usable than relying on what the README says:
char buffer[31];   // Should be long enough

that way, users can write:
char buffer[dragonboxBufferLen];

and it'll guarantee no buffer overflow, etc

Fair enough.

Added an inline constexpr variable template max_output_string_length and updated README.me accordingly.


cannot download through Android app

Download is in the queue but doesn't start. I'm using pixel 6 and android 13. Thank you.

What does doesn't start mean? The speed is always 0B/s? If so, you can check Advanced Setting - Open Log and paste latest log related to your case to see if there exists any errors. If not, it's due to your network i think, you can improve your network like using a proxy server.

Ok I got it. I didn't have the folder permission set. Also, this is a separate issue, but is it possible to download the pics altogether as an archive? (Not the download archive option). Thank you

Default download folder may work well, customized download folder may lead to some strange errors in some specific devices on Android.

is it possible to download the pics altogether as an archive? (Not the download archive option)

Sorry, but this is technically impossible.


Publish new version

Can you publish a new version of this crate to crates.io? I'd like a new release which contains #18.
It might also be a good idea to tag released versions with annotated tags (git tag -a …). GH will auto-detect these as "releases" and add them to your releases page.

Sorry about the wait. Published and tagged with 41a239c14eb2fcaaed81ecd7b22af132613def07


🌱 CI: Don't run PAT E2E on dependabot merges

Don't run GitHub PAT E2E tests on dependabot merges to the main branch since those merges don't have access to environment secrets.
github.actor is dependabot when using dependabot merge; when the PR approver also merges the PR, they are the github.actor.
See: https://github.blog/changelog/2021-02-19-github-actions-workflows-triggered-by-dependabot-prs-will-run-with-read-only-permissions/

This PR is intended to fix build failures like: https://github.com/ossf/scorecard/actions/runs/5147547179/jobs/9268078821
Where the github.actor is dependabot and the secret for GH_AUTH_TOKEN isn't available in the environement.


Behavior of @api depends on order that YARD processes files

I'd like to report a bug with @api tag.  The documentation of the @api tag says:

If it is applied on a namespace (module or class), it will automatically be applied to all children objects of that namespace unless it is redefined on the child object.

However, that description doesn't seem to reflect the way that the @api tag actually behaves, which depends on what order YARD processes files.
To reproduce the bug, I used jruby 1.7.15 in Windows and yard <IP_ADDRESS>.  I made a directory with the following four files:
File foo_a.rb:
module Foo
  class A
  end
end

File foo_b.rb:
# @api public
module Foo
  class B
  end
end

File foo_c.rb:
module Foo
  class C
  end
end

File .yardopts:
foo_a.rb
foo_b.rb
foo_c.rb
--api public

Since the module Foo is marked as being in the public API (in foo_b.rb), I would expect to see Foo::A, Foo::B, and Foo::C all show up in the generated documentation when I run the command yard (with no arguments).  Instead, when I run that command, the docs only show B and C, and they don't show A.
If I change .yardopts so that foo_b.rb is the first file, then I do get the expected results.  If I change .yardopts so that foo_b.rb is last, then both A and C are missing from the documentation.
I haven't looked at the code, but it seems like YARD is deciding too early a class is public or not.  I think it should read all the files in, construct the namespace hierarchy, and then evaluate which things are public and which things are not.  The result shouldn't depend on the order that YARD processes the files.  In general, if there is ever a situation where the order of the files matters, I think YARD should emit a warning about it and give the user some way to fix it.

Marking this as closed (see CONTRIBUTING.md for reason why this was closed) since it is a feature request with no PR. I would be willing to look at a PR to add @api tags more intelligently.

I would suggest keeping this issue open until it is fixed.  That way people can easily see what issues the project has, instead of having to look in the closed issues list, which will contain things that not actually real issues.

Okay, I reread your comment more carefully and it seems like you consider this to be a request for a new feature.  I consider it to be a bug report, so I think it should be re-opened.  There is a mismatch between what the documentation says and how @api tag actually works, and the order in which files are processed affects how YARD behaves.

The only "bug" here is the loose usage of the term automatically when describing transitive tag behavior. I've changed this, but this will not change the behavior of transitive tags. Transitive tags are behaving as intended (applying immediately on the object). Changing the behavior to apply on all objects would require a whole new code path and logic.


Issue regarding Section 317-javascript-performance

Article that needs changed
re-flow, repainting, and jank
Proposed change
Not sure
Justification for proposal
What exactly do these words mean? We should use more descriptive and professional terms here. These sound like slang.

Reflow and repaint are browser vendor terms to describe updating the dom and updating the visual display.
Jank is webdev slang to describe jarring page animations.
I can add links to pages describing these terms.


Docs: features

Pull request checklist
Please check if your PR fulfills the following requirements:

[ ] Tests for the changes have been added (for bug fixes / features)
[X] Docs have been reviewed and added / updated if needed (for bug fixes
/start features)

Pull request type
Please check the type of change your PR introduces:

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[X] Documentation content changes
[ ] Other (please describe):

What is the current behavior?
What is the new behavior?

Add docs under feature topic

Does this introduce a breaking change?

[ ] Yes
[X] No

Other information

@codebender828 The doc page for Global Styles is missing (https://chakra-ui.com/docs/features/global-styles) but I'm not sure how this is implemented in the Vue version. How is this done?
And if you have time, could you please review the docs so it's 100% correct. Thanks! 🙏


fixing in-requirements.txt for previously add mistralclient into st2api

Introducing dependencies without adding them into appropriate in-requirements.txt can cause inconsistency of packages in the future https://github.com/StackStorm/st2/commit/0ae8fd08bda9ff40d14bb6a79fb92f187e542a9d#diff-8d5ef5953c18fe21054d0958e6e79160R20. @m4dcoder
New packaging has separate components which are st2api, st2common, st2actions etc.
These components are bundled with their own separate virtual environment, thus missing including dependency into specific in-requirements.txt will result in "missing module", even if the global (toplevel) requirements.txt contain it...

/cc @m4dcoder

+1

Yep, +1


NEEEEEEEEE

Issue Type: Performance Issue
BOTASFJHHJ BU79GGUIGBHJV
VS Code version: Code 1.60.1 (Universal) (83bd43bc519d15e50c4272c6cf5c1479df196a4d, 2021-09-10T17:09:14.403Z)
OS version: Darwin x64 19.6.0
Restricted Mode: No

@joelverhagen


Bad shape for unary energy (Need (2,<PHONE_NUMBER>), got (39677, 26564))

My Code:
def mask_smoothen(img, mask, nclasses):

	mask = mask.astype(np.float32) #mask.astype(np.uint8)
	image = img
	height, width, channels = image.shape

	d = dcrf.DenseCRF2D(height, width, nclasses)

	labels = mask.T

	U = unary_from_softmax(labels)
	U = np.ascontiguousarray(U)
	print(U.dtype, U.shape)

	d.setUnaryEnergy(U)

	d.addPairwiseBilateral(sxy=80, srgb=13, rgbim=image, compat=10)

	Q = d.inference(5)

	fine_mask = np.argmax(Q, axis=0).reshape(height, width)

	return fine_mask

I get the error "Bad shape for unary energy (Need (2,<PHONE_NUMBER>), got (39677, 26564))"
My image and masks are large: 39677 x 26564
Can some one help me understand what is happening here.

The readme says that you need to flatten it to the shape (NUM_CLASSES, H*W). Hope that helps!

resize you pic maybe


Add more features in the application using weather api

Share the screenshot of the working website.

@devjainofficial Assign me this issue please?

@devjainofficial Adding air quality index would be a nice feature, right?

I have attached the screenshot. Here please take a look.

Sorry, I forgot I already added the air quality index. Please add something different that is not on the current website.


Document how to create presumptions

I did some research into this today. Weak exceptions don't currently exist, but we might implement them in #374 . No need to document that. Conservative and aggressive exceptions are both possible, but in law aggressive exceptions tend to be stated as a combination of an exception and a presumption that the thing that triggers the exception is true, absent evidence to the contrary.
To implement "a thing flies, if it is a bird, and no exception applies; an exception applies if there is no evidence a thing is not a penguin", in law you would usually see a presumption that things are penguins, and the other two rules are normal.
So I think the only thing that we really need to do to give people access to all of the ways that exceptions are usually expressed in laws is to make sure there is documentation about how to create a presumption.
Editing the title to that effect.

we know that A is in the category penguin
when we know that not(known false(A is in the category penguin))


Move share button and put settings on all pages

Settings button + tooltip + hotkey

Account

Share button for collections

Account & Preferences in documents

Fixes INS-408, Fixes INS-410, Fixes INS-411

Looks great! Just one question regarding whether the share button should be hidden while not logged in or not.


doc: net: Update NAT options for Internet connectivity

The host NAT options for QEMU/native_sim Internet connectivity needs updating.

Hi @jukkar, thank you for this PR, which helped me to get a working internet connection in Qemu!
However, there was one thing I had to change: At least on my system, after following the guide on Networking with QEMU, the name of the network interface isn't zeth, but tap0.
Isn't the interface only named zeth when using the net-setup.sh script, while with the ./loop-socat.sh and ./loop-slip-tap.sh, which the guide for Qemu advises to use, the interface would usually be named tap0?

Isn't the interface only named zeth when using the net-setup.sh script, while with the ./loop-socat.sh and ./loop-slip-tap.sh, which the guide for Qemu advises to use, the interface would usually be named tap0?

Hi @sense-Jo, there are two guides for setting up qemu, one is with tap0 https://docs.zephyrproject.org/latest/connectivity/networking/qemu_setup.html#networking-with-qemu and the other is with zeth https://docs.zephyrproject.org/latest/connectivity/networking/qemu_eth_setup.html#networking-with-eth-qemu
So both zeth or tap0 are valid interfaces. We try to guide people to use zeth instead, as it is somewhat easier to setup in the host side.

@jukkar I can see that there are multiple options of connecting a Zehpyr (Qemu) application to a network.
I just now understood that NAT/masquerading is required for both Qemu networking options, and apparently required as well when using the native_* targets.
Thus I wonder if it would make sense to move the instructions on NAT/masquerading to a separate page, maybe under Networking and titled something like "Internet access from hosted applications"?

Thus I wonder if it would make sense to move the instructions on NAT/masquerading to a separate page, maybe under Networking and titled something like "Internet access from hosted applications"

Could you propose a PR for that, we can then review and see what it looks like.


Allow setting memory limits from SDK

We have --memory-limit option, but there is no easy way to use it when you're inside Python or Rust.
We need to add this to both APIs and do a way better job documenting this feature!

Missing documentation is tracked by #1138

Eventually it should go in the blueprint store, I think

Let's start by fixing this for rr.spawn and perhaps add a UI for it


How to rename a variable and continue importing all

Describe the bug
`
//a.js
export function a() {}
export function b() {}
...
// AutoImport
AutoImport({
imports: [
{
'a.js': [
'a': 'A'
]
}
]
})
`
At this point, b and other variables cannot be imported
How to continue importing b and other variables without renaming them?
Reproduction
Perhaps this is not necessary
System Info
win10

Used Package Manager
npm
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guide.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
[X] The provided reproduction is a minimal reproducible of the bug.

I am wondering if it would be a good idea to provide a callback that allows users to confirm whether the alias feature is needed. Currently, I am duplicating the configuration for the items that are being used.

I have obtained the configuration information for Vue from unimport and applied some filtering. This is necessary because the h variable is automatically imported into the local package, causing variable conflicts.
const { builtinPresets } = require("unimport");

AutoImport({
  imports: [
    {
      vue: builtinPresets.vue.imports
        .filter((v) => v !== "h")
        .concat([["h", "HAliasName"]]),
    },
  ],
}),

I have obtained the configuration information for Vue from unimport and applied some filtering. This is necessary because the h variable is automatically imported into the local package, causing variable conflicts.
const { builtinPresets } = require("unimport");

AutoImport({
  imports: [
    {
      vue: builtinPresets.vue.imports
        .filter((v) => v !== "h")
        .concat([["h", "HAliasName"]]),
    },
  ],
}),

Thank you, but this is essentially exhaustive and does not have universality


Another issue in getting emails_data given new style thread id

I understand that old style thread ids, that is those of the form data-legacy-thread-id are deprecated and probably shouldn't be used for new code. So I am trying to use the new style thread id, those of the form data-thread-id="#thread-f:1639328810092166278" and I am using it this way: gmail.new.get.email_data("thread-f:1639328810092166278") and this returns null because as I read in https://github.com/KartikTalwar/gmail.js/issues/558, this method will only return non-null when the email has already been seen and hence been held in a cache.
This doesn't work for my use cases and I am not sure what is the proper way to go forward but here are some ideas:

Find a way to force download the email, that is what the old style seems to be doing in a sync way (hence the warnings and deprecation). Perhaps there is an async version that will be okay given new style thread ids?

Pass the new style thread id to a backend server and there download the email, but this way opens up 100x more potential issues because I am not sure how to provide authorization for the backend to access email accounts other than my own (OAuth2 would add a lot of complexity to my project)

Somehow do open the email but do it in a shadow DOM along with some CSS, perhaps with z-index -1, so that there is no visual but the act of opening will trigger the appropriate code that forces the downloading of email content.

Appreciate guidance about what the best way forward would be, I am leaning towards 1, but in any case would like a code sample showing how: given new style thread id, get email content of a never before opened email.

I am using it this way: gmail.new.get.email_data("thread-f:1639328810092166278")

Use gmail.get.new.thread_data().

I am using it this way: gmail.new.get.email_data("thread-f:1639328810092166278")

Use gmail.get.new.thread_data(id) instead. That should solve your issues.
Note: This will return a thread-object which is slightly different (contains the entire thread, not just a single email).

I am using it this way: gmail.new.get.email_data("thread-f:1639328810092166278")

Use gmail.get.new.thread_data(id) instead. If you want the thread-data, that should solve your issues. Note: This will return a thread-object which is slightly different (contains the entire thread, not just a single email).
Edit: Is there any reason you are using the thread-id instead of the new style email-id (msg:236432678, etc)? To me it sounds like that's what you are really interested in.

gmail.new.get.email_data("thread-f:1639328810092166278") and this returns null

This method fails silently when the ID email-id can't be found and returns null. For your case it will always return null, because you are not providing an email-id.
Maybe we should add code to explicitly error out if we detect a case like yours, where a non-email-id is incorrectly provided.
Does that sound reasonable? Any opinions?

Thanks for the reply.  Indeed, looks like the new style message id is what I want.  However, getting the new style message id works for read emails.  Is there a way to get the new style message id on never opened emails?  If so, how do I pass an unread email node to api.new.get.email_id() ?

Gmail aggressively preloads email-data. If it’s listed in the inbox-view, it’s probably available in the cache.
How to decide what email ids to get sounds like something which emerges from the extension-design, and not gmail.js.

Old issue is old. Closing.


nanopolish eventalign didn't work with R9.5 data

Hi,
I tried nanopolish eventalign with read data of a library prepared with rapid barcode kit (SQK-RBK001) read by R9.5 flowcell, but aborted with calming "Unknown model type string". I tried a fast5 file produced metrichor with 1D barcode module and extracted fastq by nanopolish extract. Then aligned to reference fasta file by graphmap, confirmed alignment in sam file, produced bam file, sorted and indexed, as follows:
$ nanopolish --version
nanopolish version 0.7.1
Written by Jared Simpson.

Copyright 2015-2017 Ontario Institute for Cancer Research
$ nanopolish extract -q -t template . > testread.fastq
$ graphmap align -r ../../reference/ref.fasta -d ./testread.fastq -o testread.sam
[19:21:44 BuildIndexes] Loading reference sequences.
[19:21:44 SetupIndex_] Building the index for shape: '11110111101111'.
[19:21:44 Create] Allocated memory for a list of 2279332 seeds (128 bits each) (0.00002 sec, diff: 0.01165 sec).
[19:21:44 Create] Memory consumption: [currentRSS = 19 MB, peakRSS = 19 MB]
[19:21:44 Create] Collecting seeds.
[19:21:44 Create] Minimizer seeds will be used. Minimizer window is 5.
[19:21:44 Create] [currentRSS = 19 MB, peakRSS = 19 MB] Sequence: 1/2, len: 4558[19:21:44 Create] [currentRSS = 44 MB, peakRSS = 44 MB] Sequence: 2/2, len: 4558663, name: 'CP009644.1'
[19:21:44 Create] Final memory allocation after collecting seeds: [currentRSS = 105 MB, peakRSS = 105 MB]
[19:21:44 Create] Sorting the seeds using 2 threads.
[19:21:44 Create] Generating the hash table.
[19:21:45 Create] Calculating the distribution statistics for key counts.
[19:21:45 Create] Index statistics: average key count = 1.395361, max key count = 171.000000, std dev = 0.955996, percentil (99.00%) (count cutoff) = 6.000000
[19:21:45 Create] Memory consumption: [currentRSS = 462 MB, peakRSS = 462 MB]
[19:21:45 SetupIndex_] Finished building index.
[19:21:45 SetupIndex_] Storing the index to file: '../../reference/Eco_ER2796.fasta.gmidx'.
[19:21:45 Index] Memory consumption: [currentRSS = 462 MB, peakRSS = 462 MB]

[19:21:45 Run] Hits will be thresholded at the percentil value (percentil: 99.000000%, frequency: 6).
[19:21:45 Run] Minimizers will be used. Minimizer window length: 5
[19:21:45 Run] Automatically setting the maximum allowed number of regions: max. 500, attempt to reduce after 0
[19:21:45 Run] Reference genome is assumed to be linear.
[19:21:45 Run] Only one alignment will be reported per mapped read.
[19:21:45 ProcessReads] Reads will be loaded in batches of up to 1024 MB in size.
[19:21:45 ProcessReads] Batch of 1 reads (0 MiB) loaded in 0.00 sec.<PHONE_NUMBER>99776 bases)
[19:21:45 ProcessReads] Memory consumption: [currentRSS = 462 MB, peakRSS = 462 MB]
[19:21:45 ProcessReads] Using 2 threads.
[19:21:45 ProcessReads] [CPU time: 0.03 sec, RSS: 457 MB] Read: 1/1 (100.00%) [m: 1, u: 0]

[19:21:45 ProcessReads] Memory consumption: [currentRSS = 457 MB, peakRSS = 463 MB]

[19:21:45 ProcessReads] All reads processed in 0.03 sec (or 0.00 CPU min).
$ samtools view -bS testread.sam | samtools sort -o testread_sorted.bam
$ samtools index testread_sorted.bam
$ nanopolish eventalign -t 1 --scale-events -n -r testread.fastq -b testread_sorted.bam -g ../../reference/Eco_ER2796.fasta > testread_eventalign.tsv
Unknown model type string: , please report on github.

I tried fast5 produced just after sequencing by MinKNOW (without Metrichor), and also tried the fast5 produced from rapid kit (SQK-RAD002) and R9.5 flowcell and got the same result. Thus, the barcoding or Metrichor is probably not the cause. I checked the source code of nano polish and the error message is supposed to print the name of model type, so it looks like it failed recognizing the model type. Is this the issue specific for R9.5 data?
I attached the example of fast5, the one produced after Metrichor 1D barcoding. It would be great if we could figure out why this happened.
MyComputer_20170630_FAH06608_MN19594_sequencing_run_flowcell_FAH06608_metlib_1st_rapid_barcode_41082_read_997_ch_309_strand.fast5.zip

Hi,
You need to basecall the reads with albacore before giving them to nanopolish. It does not work with local basecalling because some information is missing. I'll leave this issue open as a note to emit a useful error message in this case.
Jared

Hi,
Thanks for the response and it worked by using fast5 basecalled by albacore. "-b albacore" option was required in nanopolish extract to make nanopolish eventalign work. I leave commands just in case.
$ read_fast5_basecaller.py -t 4 -s albacore_bc -i ./uploaded/fast5/pass -f FLO-MIN107 -k SQK-RBK001 --barcoding -o fast5 -r
$ nanopolish extract -b albacore -q -t template ./fast5/ > testread.fastq

Thanks again!
Yoshi

In commit 4f1983a a more useful error message will be reported in this case. Thanks for the report.


The getter 'page' was called on null - When receiving FCM Notification (App terminated)

Describe the bug
I've got an error which seems related to the getPages from GetMaterialApp But the error occurs ONLY when the app is opened from a FCM Notification that contains "data" attribute.
If i remove the "data" attribute the app opens fine. But i need this data to redirect the app in the right Page when user opens the notification. This woks when app is in background.
I put some logs in the app (can't set a breakpoint because i'm testing the notification when app terminated) I can see that my services are called. But it crashes on getPages.
This code works fine but only in this precise scenario, the app crashes at launch.
Reproduction code
main.dart

void main() async {
  // Initialize services (method below)
  await initServices();

  runApp(
      GetMaterialApp(
        // Where the problem occurs
        getPages: Routes.getRoutes(),
        home: SplashScreenPage(),
        // Other attributes (also tried to add 'initialRoute'
      ),
    );

  /// The method i use to initialize some services (Hive db / Firebase ...)
  Future<void> initServices() async {
      // This is a custom service when i handle the notification when i receive it (onResume, onLaunch ...)
      // But the problem occurs even if i remove this service
      Get.put(FirebaseNotificationsService());
      // Some other services (with putAsync)
  }
}

routes.dart
class Routes {
  static List<GetPage> getRoutes() {
    return [
      // Home route
      GetPage(
        name: '/home',
        page: () => MainTabAppLayout(),
      ),
      // ... More routes
    }
}

FCM Notification payload:
{
    "notification": {
        "body": "this is a body",
        "title": "this is a title"
    },
    "priority": "high",

    "data": {
        "click_action": "FLUTTER_NOTIFICATION_CLICK",
        "route": "recipes"
    },
    "to": "token"
}

To Reproduce
Steps to reproduce the behaviour:

Install firebase_messaging: ^7.0.3  on Android (by following the steps in the firebase_messaging Readme)
Use getPages as i did
Open your app normally and check everything works fine
Now kill the app, send a push notification (with Postman) And open your app by clicking this notification
You'll get the error The getter 'page' was called on null.

Expected behaviour
Expected to have the same behaviour as when the app opens without a notification
Flutter Version:
Flutter version 1.22.5
Framework revision<PHONE_NUMBER> (9 weeks ago), 2020-12-10 11:54:40 -0800
Dart version 2.10.4

Getx Version:
get: ^3.25.0
Describe on which device you found the bug:
OnePlus6

Hey,
I assume that you run a logic to redirect to the right page after receiving an FCM notification message while the app is in the background.
Maybe check over there (in the redirection logic) if everything is initialized properly,  because The getter 'page' was called on null. may not refer to GetPages, but also to an object with a page property.
Also, you cannot perform UI task on the background handler and it must be a global function. Check that too.

Yeah, maybe the 'page' refers to another part of code.
Just to be more specific, you mention 'when app is in background' . When this is the case it works fine. My problem is when the app is "terminated"
Thank you i'll try your advices

@odcey any updated? i have same issue. My problem is when app is TERMINATED, and then The getter 'page' was called on null


Adding contacts to internal diffusion regions of stacked transistors

GF45 requires contacts (and thus M1) on the internal S/D diffusions for DRC to pass.

Looks good to me - you can merge this


Make IOBase a context manager

This allows the following:
with open('README.md') as fp:
    fp.read()

This does not close the file, as there's no close method yet. See #547 .
Fixes #648

Codecov Report

Merging #649 into master will increase coverage by 0.05%.
The diff coverage is 42.1%.

@@            Coverage Diff             @@
##           master     #649      +/-   ##
==========================================
+ Coverage   40.81%   40.86%   +0.05%
==========================================
  Files          76       76
  Lines       17345    17358      +13
  Branches     4474     4484      +10
==========================================
+ Hits         7079     7093      +14
+ Misses       8366     8358       -8
- Partials     1900     1907       +7

Impacted Files
Coverage Δ

vm/src/stdlib/io.rs
29.58% <42.1%> (+2.56%)
:arrow_up:

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 010969f...8f6257b. Read the comment docs.


Add SmallRuby

I'm adding SmallRuby, an university research project here at Faculty of Information Technologies at Czech Technical University in Prague, Czech Republic. It's been dead for a while, but we have hopes to resurrect it and play with it more (we're working on the parser right now). But until then, I would list it as discontinued ruby. Thanks!

Great. Thanks. Cheers.


Measure test coverage

Original issue: https://charm.cs.illinois.edu/redmine/issues/1512

It would be helpful to know the coverage that our tests provide for the core functionality.
One commonly available toolset for this is the GCC coverage feature for recording of coverage, the gcov tool for profiling, and the lcov tool to generate more human readable summary data.
The process is then:
./build LIBS netlrts-linux-x86_64 smp -j8 --suffix coverage --coverage
cd netlrts-linux-x86_64-smp-coverage/test; make -j8 OPTS+="--coverage";
cd ../tmp; make test;

That will create many files of the form sourcename.gcda in the tmp dir.
Repeat the make test set for each machine target one wishes to see, combined into an aggregated result run the test and accumulate the results.
Such as for non-smp, smp, and whichever choices of --with-production or other build time selections make sense to composite.
Coverage will be accumulated into the cwd (machineblah/tmp) for each of those runs.
They can then be processed by visualization and reporting tools of various kinds.  The simplest to use is probably lcov.
run lcov to process that data and accumulate it
cd yourAccumulationDirectory;
lcov --capture --directory machineblah/tmp --rc lcov_branch_coverage=1 --output-file smp-cov.info
lcov --add-tracefile smp-cov.info --output-file total.info

For each of the targets you want aggregated.
When you have accumulated it all, process the aggregate
genhtml total.info --rc lcov_branch_coverage=1 --output-directory youroutputdir

This will generate an html summary that will allow you to browse through the coverage along the directory heirarchy of your source on a file by file basis.

Original author: Anirudh Manoj
Original date: 2017-07-24 19:41:25

I've added a commit - b134360992dc073e510f47cf7b1e47bd749b3161 - which adds a couple of coverage scripts.
Run the coverage script inside the coverage folder:
cd coverage/
./coverage

The ck-convcore-summary.C file takes a tracefile created by lcov and parses out the coverage information about ck.C and convcore.c specifically, since those are important files to have coverage for.
The coverage script automates the entire process, using ck-convcore-summary.C as well. There are two outputs from the script:

summary.txt holds very brief summary about all files and ck.C and convcore.c separately. For now, there's a bunch of output from genhtml at the beginning of the file that we will want to remove later.
The cov-html folder which holds the html version of the tracefiles. This is available in the coverage folder as soon as the script is run and holds specific data about which lines in the files are covered and which lines aren't covered by tests and examples.

The coverage script does not follow the process stated above in the original post. gcov is very specific in not being thread-safe. There has been support recently, presumably in gcc 6.0+, but on gcc 5.4 and earlier, the last command with lcov which accumulates the tracefiles will fail. To circumvent this, I have accumulated the tracefiles with genhtml instead, which will not fail due to the thread-related errors. This will not make the errors go away, but will allow us to get some form of coverage, if not thorough.
For now, coverage includes netlrts-linux-x86_64 and multicore-linux-x86_64, has been tested and works on these two. To add builds to the coverage, add the names of the systems to BUILDS variable at the top of the coverage script, along with any flags that need to be passed to the ./build command with that build.
The ultimate aim of coverage would be to have the coverage script run along with the nightly build and run all the builds. At the end, display the summary details from the summary.txt and make the html version of the coverage available for viewing.

Original date: 2018-05-30 16:41:49

~~https://charm.cs.illinois.edu/gerrit/#/c/charm/+/2844/~~ https://github.com/UIUC-PPL/charm/commit/5e4e1abbd4c48806c639575537b5b98d52c0aa29 has the updated patch
It will build charm with --coverage, run make test on tests and examples, then assemble the results using lcov and provide browsable analysis using gen-html.
By default it checks netlrts-linux-x86_64-smp, but any number of targets can be run by putting them on the command line. The total coverage for ck.C and convcore.c is summarized in summary.txt
The verbose file by file result can be browsed in coverage/netlrts-linux-x86_64-smp-cov-html/tmp/index.html or by platform name from the command line arguments coverage/[platform-name]-cov-html/tmp/index.html
Once this is merged we can automate this to run with daily or weekly frequency via jenkins or cron and provide a link to the top level coverage url in our wiki.

Original date: 2018-09-06 20:54:27

Currently tracked over time here: http://charm.cs.illinois.edu/autobuild/coverage/rrdimages/


Request to Drive with ADC has insufficient authentication scopes.

Ubuntu 20
aux_data/Create_GDrive_folder.py line 140
│ googleapiclient.errors.HttpError: <HttpError 403 when requesting
│ https://www.googleapis.com/drive/v3/files?q=name%3D'genai-marketing-assets'&pageSize=10&fields=nextPageToken%2C+files(id%2C+name)&supportsAllDrives=true&includeItemsFromAllDrives=true&alt=json
│ returned "Request had insufficient authentication scopes.". Details:
│ "[{'message': 'Insufficient Permission', 'domain': 'global', 'reason':
│ 'insufficientPermissions'}]">

Sorry @simoneeti.
We are facing some issues with the terraform script.
Please use the manual steps for now ...


58134d21-52a6-404f-9248-0372b4029478

this is for automated testing

5a467b51-2b8c-475d-bd7d-169ebe111309


Script cleanup

Small PR to clean up the  classifier_training_regression.py script including special case for the "Mestrado" source.
Run python scripts/classifier_training_regression.py list to test.

@qiminchen : I'll merge this now. LMK if you have any comments and I can fix in new PR.


variables created/saved in value kernel not showing up in variable explorer

VS Code Version: 1.74.3
Ext Version: v1.0.3611020
Tool Version: 1.0.360602+9bf026dabac44a6256a65168fa93dcb7e2edcca4
Steps to reproduce:

Use value kernel + input to save a variable
Check variable explorer

This has been fixed.


Supply content type from headers

The content type for post requests is always application/json, to make it dynamic now its read from headers. This will enable in future to add body with different content type.

The content type for post requests is always application/json, to make it dynamic now its read from headers. This will enable in future to add body with different content type.

The PR description isn't clear ("is always application/json" does that mean before or after the pr?). Looking at what the new code does:

EventTypeResourceReal: sets the content type to application/json for all post calls, which is all calls, so it's done in one place.
EventResourceReal: sets the content type to application/json for all post calls, which are some calls, so it's done with method context.
SubscriptionResourceReal: sets the content type to application/json for all post calls, which are some calls, so it's done with method context.

The last two would have been clearer with a private preparePostOptions() and ResourceOptions.contentType(options, contentType) to allow the calling context to set it (presumably we're going to need that). The current optionsWithJsonContent isn't much better than calling options.header("Content-Type",...) directly since the content type is hard coded to application/json in a place where there's no context. None of these have any tests afaics.
OkHttpResource: seems to be the important change. I think options.headers().get should work because it's called in the context of having an entity but it seems fragile to missing setting the header higher up. The test coverage around the code setting up the POST calls would need to be good, so it's a pity the *Real class changes didn't arrive with tests.
Ok let's merge this, I want to make some small changes on it directly. Then we can publish and get to the next round of PRs.


Feature/add task reports

Add an endpoint that allows a task to be reopened
Add an endpoint that generates a task report, with filters for completed, incomplete, reopened, and opened tasks with the mentor and mentor manager attached to the tasks

@askinss
I did not create an endpoint dedicated solely to re opening a task .


How to use open-DIBR on custom data?

Hi, would you like to provide the solution to apply the open-DIBR on custom data? Thank you.

Thank you for your question. Once you have gone through the information in the wiki, you can follow these steps on your own dataset:

I assume you have a set of color images/videos.
To estimate the intrinsics and extrinsics, you can use a program like COLMAP. For example, if you do the "automatic reconstruction" and then the "export as txt" steps, you get a cameras.txt and images.txt file. These contain the intrinsics, as well as the position and quaternion rotation of each view. Quaternions can be converted to euler angles (OpenDIBR expects degrees). Note that COLMAP uses its own axial system, of course.
You will need to estimate the depth of each view, and save these as images or videos, as explained in the wiki.
Lastly, the JSON file that serves as an input for OpenDIBR. The main thing here is that OpenDIBR by default expects the position and rotation to be in the OMAF axial system. You could change this by commenting out these 2 lines in src/ioHelper.h:

omafToOpenGLPosition(/*out*/pos);
omafToOpenGLRotation(/*out*/rot);

Now, the program assumes that everything uses the OpenGL axial system. The only difference with the COLMAP axial system is that the Y and Z axes are flipped, as described here:
The local camera coordinate system of an image is defined in a way that the X axis points to the right, the Y axis to the bottom, and the Z axis to the front as seen from the image.

Good luck!

Thank you for your question. Once you have gone through the information in the wiki, you can follow these steps on your own dataset:

I assume you have a set of color images/videos.
To estimate the intrinsics and extrinsics, you can use a program like COLMAP. For example, if you do the "automatic reconstruction" and then the "export as txt" steps, you get a cameras.txt and images.txt file. These contain the intrinsics, as well as the position and quaternion rotation of each view. Quaternions can be converted to euler angles (OpenDIBR expects degrees). Note that COLMAP uses its own axial system, of course.
You will need to estimate the depth of each view, and save these as images or videos, as explained in the wiki.
Lastly, the JSON file that serves as an input for OpenDIBR. The main thing here is that OpenDIBR by default expects the position and rotation to be in the OMAF axial system. You could change this by commenting out these 2 lines in src/ioHelper.h:

omafToOpenGLPosition(/*out*/pos);
omafToOpenGLRotation(/*out*/rot);

Now, the program assumes that everything uses the OpenGL axial system. The only difference with the COLMAP axial system is that the Y and Z axes are flipped, as described here:
The local camera coordinate system of an image is defined in a way that the X axis points to the right, the Y axis to the bottom, and the Z axis to the front as seen from the image.

Good luck!

Hi, it means if I directly use the extrinsic estimated by the colmap, I just need to first comment out "omafToOpenGLPosition(/out/pos);
omafToOpenGLRotation(/out/rot);" , and then use the (yaw,-pitch,-roll）in degrees manner as rotation and translation vector in extrinsic as position? I try to do this, but I still can not get the accurate results. Would any error in my process? Thank you.

Hi, I try again as suggested, however,it fails again. My cam0.txt obtained from Colmap is"
extrinsic
0.9035241017720426 0.1361853302602666 -0.4063222284578162 0.6076596851880361
-0.14753390484111226 0.9890510502492781 0.003430294904769749 -1.0556048763956647
0.40234058264032635 0.05684695086547881 0.913723415338548 3.1168299879119425
0.0 0.0 0.0 1.0
intrinsic
9437.10149965672 0.0 1920.0
0.0 9437.10149965672 1080.0
0.0 0.0 1.0
3.016967 0.000530 3746.133176 5.002564", and I transfer those parameters into the position=[0.6076596851880361,-1.0556048763956647,3.1168299879119425],  rotation= [ 23.97401149099494,          -0.21509864240681023, 98.57148976914], Focal= [9437.10149965672,9437.10149965672], and Principle_point= [1920,1080]. Would there any error with me? Thank you very  much.

Hi, I try again as suggested, however,it fails again. My cam0.txt obtained from Colmap is"
extrinsic
0.9035241017720426 0.1361853302602666 -0.4063222284578162 0.6076596851880361
-0.14753390484111226 0.9890510502492781 0.003430294904769749 -1.0556048763956647
0.40234058264032635 0.05684695086547881 0.913723415338548 3.1168299879119425
0.0 0.0 0.0 1.0
intrinsic
9437.10149965672 0.0 1920.0
0.0 9437.10149965672 1080.0
0.0 0.0 1.0
3.016967 0.000530 3746.133176 5.002564", would you like to help me how to transform those parameters to the accurate position,rotation, focal, principle_point? Thank you.Looking forward to your reply.

Hi, I try again as suggested, however,it fails again. I have provided some examples in attachment.
attachment.zip
Would you like to help me how to transform those parameters to the accurate position,rotation, focal, principle_point? Thank you.Looking forward to your reply.

Hello again. I pushed an update to OpenDIBR to support 3 axial systems: OMAF, COLMAP and OPENGL. I've also created a python script for your DTU dataset (that seems to be prepared for something like MVSNet) to generate the input .json file for OpenDIBR. You can download it, as well as the .json file, from here.
If I run the latest commit of OpenDIBR with this json, it works:
RealtimeDIBR -i some_folder -j some_folder/example_colmap.json --cam_speed 1

There is still some misalignment, but I think this is because of how OpenDIBR reads in the depth map. It uses the "Depth_range" = [near, far] from the .json file to convert the 8-bit depth to a Z-depth:
depth = 1.0 / (1.0f / far + depth * ( 1.0f / near - 1.0f / far));

I assumed that the last 2 values in cams/00000000_cam.txt are these [near, far], but I could be wrong. It all depends on how the depth PNGs were normalized.


simpler syntax for joins on labels with different names

Background
When doing joins, I usually encounter cases where I want to join through a label that has different names on each side. For example, suppose I have:

A container_fs_reads_total metric with a pod label
A some_custom_pod_info metric with a exported_pod label

To join them, I would do something like:
container_fs_reads_total{}
* on(pod) group_left
label_replace(some_custom_pod_info{}, "pod", "$1", "exported_pod", "(.*)")

I find this query verbose for what it's doing, and it usually (if not always), requires me to go through the docs to remind me what the arguments of label_replace are.
I believe this scenario with mismatching label names is common for two reasons:

(a) Label conflicts and Prometheus honor_labels=false,
(b) Different sources just naming the same thing differently. Some examples I've seen: node vs instance, user vs user_id.

Proposal
It would be nice if the syntax for this use case was simplified. Some options:

Introduce a label_rename function, that's basically syntax sugar for label_replace: label_rename(m, "a", "b") expands to label_replace(m, "b", "$1", "a", "(.*)").

This would help a bit, though the query would still be quite verbose. On the flip side, a label_rename function could be useful on its own.

Extend the join syntax to support joins through labels with different names. Syntax could be <binop> on (a as b).

Credits to @colega for this suggestion.

See related

https://github.com/prometheus/prometheus/issues/3094
https://github.com/prometheus/prometheus/issues/2204
https://github.com/prometheus/prometheus/issues/14984
https://github.com/prometheus/prometheus/issues/959

I'm constantly struggling with the inability to express in PromQL the equivalent of the SQL FROM a INNER JOIN b ON (a.x = b.y)
This would be a significant help, as label_replace quickly becomes horribly unreadable especially if multiple label renamings are required, and PromQL has no way to store reusable snippets for re-use between queries (https://github.com/prometheus/prometheus/issues/14984) and no equivalent of SQL Common Table Expressions (CTEs, "WITH" queries) for re-using query fragements within one query.
It's unrealistic to expect a consistent label scheme across a widely used monitoring stack. Even kube-state-metrics, a single commonly used component, does not reliably stick to a single consistent label scheme within its own metrics.
A label_rename that took a variadic list of label pairs would help a bit, for sure.
label_rename(series, tolabel1, fromlabel1, tolabel2, fromlabel2, ...)

but ideally, label matching would be extended to support matching expressions. Borrowing from Kusto, this might be expressed with $left and $right placeholders, like:
container_fs_reads_total{}
* on($left.pod = $right.exported_pod)
  group_left(some_info_label)
  group by (exported_pod, some_info_label) (
    some_custom_pod_info{}
  )

It would continue to support a comma-separated list of such expressions, which would be ANDed.
In an ideal world this would not be limited to equality, either, and would support functions and expressions, such that one could write things like:
* on ($left.pod = $right.pod || $left.uid = $right.exported_uid)

which is presently impossible because the label matching conditions on Prometheus label matching expressions are always ANDed. Supporting arbitrary scalar expressions would be an ideal eventual goal, so things like regexp label pattern matching could be embedded in the join expression, but since PromQL has almost no scalar manipulation functions this would be a "reserved for future expansion" sort of thing.

On a side note, see the added group_by with a repetition of both the join-key labels and the info-labels? This is necessary to prevent the query from breaking if there are duplicates for some_custom_pod_info due to e.g. a restart of the workload that emits them. See the info() experimental function for something that may in future help with this once generalised: https://github.com/prometheus/prometheus/pull/15233

As this is touching both the "what's the trade-off between yet another function and syntactic sugar level" topic as well as the "what do we want to do about joins" topic, I have added an agenda item to the dev summit to get an idea from the crowd in which direction we should move here.