gedit 47.0, libgedit-gtksourceview 299.2.1, libgedit-tepl 6.10.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for libgedit-gtksourceview is: Source code editing widget for GTK
meta.homepage for libgedit-gtksourceview is: https://github.com/gedit-technology/libgedit-gtksourceview
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 299.2.1 in filename of file in /nix/store/pgsmj27bf8njydgdnwja6r338d2qybfk-libgedit-gtksourceview-299.2.1

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

5 total rebuild path(s)

5 package rebuild(s)

First fifty rebuilds by attrpath

gedit
gnome-latex
libgedit-gtksourceview
tepl

Instructions to test this update (click to expand)

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

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

Or:
nix build github:r-ryantm/nixpkgs/42d64f001222e4232213abf44647eb686902c9e0#libgedit-gtksourceview

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/pgsmj27bf8njydgdnwja6r338d2qybfk-libgedit-gtksourceview-299.2.1
ls -la /nix/store/pgsmj27bf8njydgdnwja6r338d2qybfk-libgedit-gtksourceview-299.2.1/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

9 packages built:

gedit
gedit.devdoc
gnome-latex
libgedit-gtksourceview
libgedit-gtksourceview.dev
libgedit-gtksourceview.devdoc
tepl
tepl.dev
tepl.devdoc

Maintainer pings
cc @bobby285271 for testing.

https://discourse.gnome.org/t/some-news-for-gedit/17894
Note that gedit does not follow GNOME release cycle.


Equalizer decrease direction

Hello, thank you for sharing the effects that you wrote for the RGB shades! I was able to get them to run without any difficulty. I'd like to learn more about how you coded the equalizerSide effect. I played around with the for() loops and the variable increment / decrement for about a half hour but could not get it to do what I want. Here's the section of code I'm referring to:
  else if(dir2 == DECREASE){
    for(int x=7 ; x>=0 ; x--){
      for(int y=kMatrixHeight ; y>=0  ; y--){
        if(x==XOffset)
          leds[XY(x,y)] = CRGB(0,0,0);
      }
    }
      for(int x=8 ; x<=kMatrixWidth ; x++){
//      for(int x=kMatrixWidth ; x>=8 ; x--){ //Reverse direction of Decrease?
        for(int y=kMatrixHeight ; y>=0  ; y--){
//      for(int y=0 ; y<=kMatrixHeight  ; y++){
        if(x==kMatrixWidth-1-XOffset)
          leds[XY(x,y)] = CRGB(0,0,0);
      }
    }
    XOffset--;
  }

I'd like to see the decrease (clearing of columns) start from the outside and progress inward, instead of starting at the inside and progressing outward. Is there a simple change that would achieve this effect?
Thanks,
-Garrett

Sorry for really really late answer, I've been swarmed with work lately and had no time to have a look. Anyway, I'll try to have a look at it as soon as possible! I'm glad to hear that getting the effects to work was no trouble, and glad you liked them!


Cleanup plugin lib, continued

based off #559; that should be reviewed first.
This is an initial attempt to separate out the document handling portions of the state cache into their own type, which can be used on its own by simple plugins.
This has reminded me of the need for #184; getting that implemented would make our cache implementations much easier. I intend to revisit that now, it seems like a good time.
Eventually this new cache should implement get_line, offset_for_line, and line_for_offset, but this is a good checkpoint.
progress towards #472 and #558

yep bits of this are a bit clunky; i'm focusing on doing the refactor incrementally, with intermediate steps still building / usable. This is definitely one of those slightly ungainly middle steps.


CLOUD-431 ability to use instance store volumes on AWS

On AWS you'll be able to specify the attached volumes type as ephemeral. In case of ephemeral volume the size if not required as they have a fix size. Due to this exception it is required to use a custom validation other than @Min @Max. Any other case the validation is exactly the same as before.
@martonsereg @doktoric please review

Jenkins build failed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/738/

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/739/

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/740/

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/742/

LGTM


BUG: stats: Fix the variable that is checked to skip a test.

See https://github.com/scipy/scipy/pull/18414/files#r1199640826

When I notice that CI has finished, I'll merge.


xgboost4j_2.12:1.7.6 's (ml/dmlc/xgboost4j/java/XGBoostJNI.XGBoosterPredict) much slower than 0.90 in some model

When the concurrency exceeds 100, the function ml/dmlc/xgboost4j/java/XGBoostJNI.XGBoosterPredict occupies more than 49% of the CPU computation time.
this model featureNum = 11, and the model file is attached. which is .json file by 1.7.6 saved
6cdf5ed2e74d9cb614a293dbb1b91dc4_xgb_model_20230331_1_7_6.json

@trivialfis Was the implementation for the predict function changed substantially?

From 0.9 to 1.7.6, yes. Specifically, in later versions, there's a block-based parallelism.

It stands to reason that the prediction speed of the model should be faster. But we found that prediction took longer.

Are you calling the prediction on a single sample or small batch of samples? On that case, it can be slower.

Are you calling the prediction on a single sample or small batch of samples? On that case, it can be slower.

Make predictions on a single sample

Are you calling the prediction on a single sample or small batch of samples? On that case, it can be slower.

Make predictions on a single sample. Our scenario is to predict every time a piece of data comes in, so it is a single sample prediction. Is there any way to improve the prediction speed using 1.7.6, in the case of a single sample.

Hmm, for JVM packages, we might have to build out a new streaming inference library.
@wbo4958 Are you familiar with the JVM land for inference?


More -compressednormaltype

SDKMESH uses Direct3D 9 input layouts, so currently the exporter lacks support for the following compression normal types which are supported on Direct3D 11:

DXGI_FORMAT_R11G11B10_FLOAT
DXGI_FORMAT_R9G9B9E5_SHAREDEXP

Added DXGI_FORMAT_R11G11B10_FLOAT support (Biased).


Timed preprocessing

For the March '21 round (1.0?) we would like to see consideration of more timed preprocessing in the datacenter scenarios. specifically for the image models and for 3D-UNet. For edge, it makes sense that the submitter gets to choose the format because it's often coming in from a camera pipeline, but for datacenter it will typically be some form of compressed data (e.g. jpeg).
Let's discuss in the WG.

I am broadly supportive of this change. In a perfect world, we would do this at the same time we switch to loadgen-over-network, but I don't think we have time this round for loadgen-over-network. For consistency, should we time all pre-processing?

Proposal:

For datacenter only & for R50, SSD-R34 and 3D UNET: input is now jpeg images, output is the same as before.

WG comments:
This is for data center only, under the theory that data center inputs are usually compressed. OTOH, edge inputs are often raw.
Also, pre-processing should be added to all benchmarks (already present in RNN-T, none needed in many other benchmarks).
This is a good topic for more discussion.

As Scott pointed it, this is unfair for inference only chip vendors. It's really hard to interpret a result with third party image decompressor playing huge role if preprocessing is timed. Only GPU have the compatibility to handle both at the same time, so if MLPerf promote this, does this mean MLPerf WG prefer GPU over inference only chips?

need to consider if that will further narrow the pool of potential submitters
better to get use case from the vision advisory board
will hear from David's survey on the v0.7 submitters and non-submitters

Only GPU have the compatibility to handle both at the same time, so if MLPerf promote this, does this mean MLPerf WG prefer GPU over inference only chips?

MLPerf ought to reward good designs. Image decompression is an important part of inference for many workloads. It is appropriate that better architectures with more capabilities have higher performance as measured by MLPerf.

It's really hard to interpret a result with third party image decompressor playing huge role if preprocessing is timed.

The only performance that benefits customers is end-to-end performance. If a chip is decompression limited, it is misleading to publish numbers that ignore this limitation. MLPerf ought to publish performance numbers that most clearly reflect real world performance. There are already high performance open source image decompression libraries. It is unlikely anyone will get an advantage by optimizing them. Submitters with dedicated hardware for image decoding ought to be rewarded for their ingenuity.
Hopefully, measuring preprocessing time will guide submitters toward measuring systems with realistic balances of decompression and inference capacity.

WG: will update with survey results next week.

@TheKanter  will follow up on data center specific submitters.

I think we are out of time to land this for 1.0. I propose merging with Loadgen over network and aim for Inference 1.1. Dilip, what do you think?

Agreed on all counts.


change package name to talkR

In this PR we match the repository name change to talkR in the DESCRIPTION file.
Closes #5

on review, talkr (all lowercase) is better — see discussion in #5

Excellent! I changed the repo name and updated the DESCRIPTION in this PR :)

approved — I'll leave it to you @bvreede to merge!

Perfect!! :) Merging!


Wrong type argument: commandp, +term/open

I get the above error when trying to open a terminal using SPC-o-t.
Same thing happens for Imenu sidebar.
Working on a fresh developer branch. I can open term using M-x just fine and I alreadz tried make autoload.
Cheers
Jan

Did you run make (or bin/doom refresh) after enabling :emacs term and :emacs imenu?

Also, please run M-x doom/info and paste it in here.

Hi, thanks for your reply!
I found the option to enable Iemacs term in init.example.el. However, I followed your new installation instructions for the developing branch, in which I must no longer cp init.example.el init.el.
Do I have to enable these options at a different place?
(I can still post M-x doom/info, but I'm fairly confident that you are correct about the :emacs term option)
Cheers

On the develop branch (and onwards), personal configuration goes into ~/.doom.d (or ~/.config/doom, if it exists). So to enable :emacs term, you'll want to look at ~/.doom.d/init.el (which is where init.example.el is now copied to).
Hope that helps!

Perfect, thank you so much, this resolves the issue for me!
Quick note on org-mode and the agenda: Do you have some system in place that would collect todo items and show them in the agenda?
I have some settings that I previously used in my manual emacs config, but I strongly suspect that there already exists a more elegant way to handle this in your project..
Currently tasks will show up in a file in ~/org/, but are not visible in the agenda.
Cheers

For those who might see this later:
(after! org
  (setq org-agenda-files (list "~/org/todo.org" "~/org/notes.org")))


Timeout with latest version

Issue Description
Hi,
since the last 4 days I'm unable to deploy from my github action due timeout on pritnul client.
I'm getting this
Establishing connection: [#####---------------------------------------------] checking 1 out of a maximum of 10 allowed attempts.
Establishing connection: [##########----------------------------------------] checking 2 out of a maximum of 10 allowed attempts.
Establishing connection: [###############-----------------------------------] checking 3 out of a maximum of 10 allowed attempts.
Establishing connection: [####################------------------------------] checking 4 out of a maximum of 10 allowed attempts.
Establishing connection: [#########################-------------------------] checking 5 out of a maximum of 10 allowed attempts.
Establishing connection: [##############################--------------------] checking 6 out of a maximum of 10 allowed attempts.
Establishing connection: [###################################---------------] checking 7 out of a maximum of 10 allowed attempts.
Establishing connection: [########################################----------] checking 8 out of a maximum of 10 allowed attempts.
Establishing connection: [#############################################-----] checking 9 out of a maximum of 10 allowed attempts.
Establishing connection: [##################################################] checking 10 out of a maximum of 10 allowed attempts.
Timeout reached! Exiting...

I've solved rolling back to the version 1.1.12 of the client that's fine for now, but I think is important to you to know that something between the 1.1.12 and the lastest one does't work (or better, in my case doesn't).
Thanks

It has been used with the following parameters:

Runner Virtual Environments:

[ ] Linux

[ ] Ubuntu 22.04
[ ] Ubuntu 20.04

[ ] macOS

[ ] macOS 12
[ ] macOS 11

[ ] Windows

[ ] Windows 2022
[ ] Windows 2019

VPN Modes:

[x] OpenVPN (ovpn)
[ ] WireGuard (wg)

Client Versions:

[ ] Installed from the package manager
[ ] Version specific

[ ] 1.3.3637.72

Start Connection: If the connection is started on the setup step.

[ ] True
[ ] False

Runner Types:

[x] Tested on GitHub-hosted runner

[ ] Tested on Self-Hosted runner
If it runs on a self-hosted runner:

[ ] Manage Self-hosted
[ ] Action Runner Controller (ARC) (a Kubernetes Operator)

Hello @imperugo
Thank you for using the GitHub Actions I created and raising the first issue from who uses it.
I haven't seen critical issues now with the latest updates I release from the days. My testing works well.
I have two scenarios to ensure that GitHub Actions Metadata syntax works well, such as the uses: section.

I ran the test on this repository.
https://github.com/nathanielvarona/pritunl-client-github-action/actions/workflows/connection-tests.yml?query=branch:v1
I also tested my newly created public test repository that simulated the uses: nathanielvarona/pritunl-client-github-action@v1, ensuring it works for anyone.
https://github.com/nathanielvarona/github-actions-uses-public-tests/actions/workflows/pritunl-client-github-action.yaml?query=branch:main

I had experienced this kind of issue before, especially creating a couple number of connections like in my tests.

When a Pritunl Server Allow Multiple Devices is enabled, and multiple established connections you have made in a certain period of time, the Pritunl server might receive Too Many Authentication Attempts.

I resolved it by adjusting the Pritunl Server settings
sudo pritunl clear-auth-limit
sudo pritunl set app.auth_limiter_ttl 60
sudo pritunl set app.auth_limiter_count_max 100

Better try to check first your Pritunl Server logs.
Check out https://docs.pritunl.com/docs/too-many-authentication-attempts
By the way, I updated the issue based on the Issue Template I recently merged.
https://github.com/nathanielvarona/pritunl-client-github-action/blob/main/.github/ISSUE_TEMPLATE/issue_template.md

adding @avramenkovladyslav who configured the VPN and knows better than me the information you need.
Thanks

What I've noticed is that with the version 1.1.12 it works after tentative number 11 and the latest versione stop at tentative number 10.

I see.
On v1.1.12 and older releases, we have a Connection Timeout of 30 by default.
On your side, the Pritunl Client and VPN Server are usually fully established by 11~ probes.
However, earlier releases I made have a Connection Timeout of 10 by default.
https://github.com/nathanielvarona/pritunl-client-github-action/compare/v1.1.12...v1.1.23?diff=split#diff-81f73a96810eaaa67034ef131ec342dbf6b4e99f5a2c962b13e08315dc1a822fL15
The resolution is to increase your Connection Timeout.
- name: Setup Pritunl Profile
  id: pritunl-connection
  uses: nathanielvarona/pritunl-client-github-action@v1
  with:
    profile-file: ${{ secrets.PRITUNL_PROFILE_FILE }}
    ...
    client-version: 1.3.3637.72
  env:
    CONNECTION_TIMEOUT: 30   # <-- Increase here based on your client-server needs.

Reference: https://github.com/nathanielvarona/pritunl-client-github-action#overriding-default-wait-established-connection-timeout
Globalize Environment Variable for CONNECTION_TIMEOUT would also work like in my Connections Tests.
Example: https://github.com/nathanielvarona/pritunl-client-github-action/blob/main/.github/workflows/connection-tests.yml#L31-L32

Hello again @imperugo,
I recently released the v1.2.0 in which the connection timeout is defaulted to 30.
If you want to increase it, ignore the use of the Environment Variable and use the new Inputs instead.
Example:
- name: Setup Pritunl Profile and Start VPN Connection
  uses: nathanielvarona/pritunl-client-github-action@v1
  with:
    profile-file: ${{ secrets.PRITUNL_PROFILE_FILE }}
    ...
    ...
    established-connection-timeout: '60'

Let me know if this works for you Pritunl Infra.
Thanks,

@nathanielvarona Thanks, it worked


Derive macros break with where clauses

Test case:
#[derive(bincode::Encode)]
struct Test<T>
where
    T: Clone,
{
    a: T,
}

Output:
error: expected one of `{`, lifetime, or type, found `,`
 --> src/main.rs:3:10
  |
3 | #[derive(bincode::Encode)]
  |          ^^^^^^^^^^^^^^^ expected one of `{`, lifetime, or type
  |
  = note: this error originates in the derive macro `bincode::Encode` (in Nightly builds, run with -Z macro-backtrace for more info)

error: proc-macro derive produced unparseable tokens
 --> src/main.rs:3:10
  |
3 | #[derive(bincode::Encode)]
  |          ^^^^^^^^^^^^^^^

There is an attribute you can use called bounds, I only just noticed we've not documented this.
There is an example in tests/issues/issue_431.rs that uses borrow_decode_bounds. There are these 4 attributes:

bounds, used by all 3 derives
decode_bounds, used by #[derive(Decode)]
borrow_decode_bounds, used by #[derive(BorrowDecode)]
encode_bounds, used by #[derive(Encode)]

You can check target/test_Encode.rs to see what bounds would be needed.
This is assuming either virtue or bincode-derive doesn't do something weird

You’re right, the following compiles:
#[derive(bincode::Encode)]
#[bincode(encode_bounds = "T: bincode::Encode + Clone")]
struct Test<T>
where
    T: Clone,
{
    a: T,
}

I still think it would be nice for bincode to just automatically support where bounds, but if it must be unsupported could the error message be improved?

It appears it does attempt to support automatic bounds.

Bincode is still generating syntactically invalid code in this situation. That's a bug independent of whether encode_bounds exists.


Investigate/fix web HTTPS tests in OSX

The dotnet-dev-certs tool doesn't seem to work in Fedora24 and OSX, so it's disabled in the CI smoke tests. We don't think we need to support Fedora24 at this point, so OSX is the important one to fix.

AFAIK, dotnet-dev-certs isn't supported on Linux at all: https://github.com/dotnet/cli/issues/9008

My impression from using it is that it generates the cert fine and ASP.NET Core projects can use the generated cert, but dotnet-dev-certs can't automatically trust the dev cert. I assume you need trust to actually visit the https site you're hosting--I haven't tried that.

This doesn't repro on Fedora28.


[BUG] (v0.0.0): Voices in a single part, but different staves are not formatted together

Expected behavior
When there is a single part with multiple staves, I expect notes to horizontally align based on what beat they start on.
Actual behavior
A clear and concise description of what actually happened.
Screenshot
vexml
incorrect (see measures 3 and 4)

MuseScore4
correct

Hints

This is likely closely related to #181. See the hints there.

multi_stave_single_part_formatting.zip (This is an .mxl file but I had to rename the ext for GitHub).

[x] Attach the MusicXML file used to produce the bug.

[x] Attach the error messages.

[x] Include any vexml code references where the bug may be.

@jaredjj3 same here, the voices of the different staves have to be joined.

SG, that's what I plan to do after I ensure the measures are the same width.

If you are using the min width you also have to join them in advance. The alignment between voices in different staves and in different instrument do influence on the minimum width.

That's a really good point. So when calculating minimum widths, I need to include all parts, join all their voices, then pre calculate the width. Right now, each MeasureFragment doesn't know anything about the other parts. I think there's a solution where I prescribe measure widths instead of calculating them twice at seed and render times.

I do not think that this is posible. Imagine one chord with many accidentals this will push the note to the right. The notes aligned with this one on other pparts will also have to be pushed even with no accidentals to keep the alingment.

https://jsfiddle.net/fj6g9bxc/71/
This produces the correct result:
new Formatter().joinVoices([voice1]).formatToStave([voice1, voice2], stave1);

However, this produces the incorrect result:
new Formatter().joinVoices([voice1, voice2]).formatToStave([voice1, voice2], stave1);

It looks like I shouldn't join the voices before formatting to the stave, but this seems to conflict with the advice you gave me. What's the correct way to do this?

You have to join all the voices making one call to joinVoices per staff. The formatter needs to know if the voices are in the same staff which sets more constraints due to overlaps or on different ones where the notes can be aligned without considering overlap.
https://jsfiddle.net/7uy45swg/

@rvilarl, this is very helpful, thank you. I have what I need to fix this now.


fix: removed invalid tab on EOF

This hopefully fixes the /etc/cont-init.d/30-freescout: line 290: syntax error: unexpected end of file

Nice catch on my botched release! Thanks for this.

Tagged as 1.15.38
## 1.15.38 2022-03-11 <blendsdk@github>

   ### Changed
      - Fix invalid EOF introduced from 1.15.37


Investigate usage of string replace in place of RexExp exec loops

Motivation
Reducing bundle size with nearly intact performance.
Basic example
https://twitter.com/leaverou/status/1288287409025814528

After doing some benchmarks, it turns out that the performance is not as good as I initially thought.


cloudflare-warp: update the source to comply with the new URL

The source for downloading the cloudflare-warp package has been updated upstream, rendering the previous URL invalid (returns 404). This commit aims to fix that and comply with the changes from cloudflare.
Description of changes

Things done

Built on platform(s)

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

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

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

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

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

[ ] Fits CONTRIBUTING.md.

Thanks for your contribution.
There is already a PR to fix URL, #238421.


Request to correct info in the "Delete other subscriptions"

Hello, regarding the statement below, in the "Delete other subscriptions" section, I feel this info is outdated. I request you to check if this statement is still true at this point and if not, please modify accordingly.
The only subscription types that you can manually delete are free trial and pay-as-you-go subscriptions. All other subscription types are deleted only through the subscription cancellation process. In other words, you can't delete a subscription directly unless it's a free trial or pay-as-you-go subscription. However, after you cancel a subscription, you can create an Azure support request to ask to have the subscription deleted immediately.

I think the customer can delete other types of subscriptions such as CSP or EA as well, not only the "free trial and pay-as-you-go subscriptions."
Thank you
-Sayaka
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: e76ce485-5a06-add0-76a3-b823fb6c3c7a
Version Independent ID: af78deae-d409-6261-a817-b504965d1988
Content: Cancel your Azure subscription
Content Source: articles/cost-management-billing/manage/cancel-azure-subscription.md
Service: cost-management-billing
Sub-service: billing
GitHub Login: @bandersmsft
Microsoft Alias: banders

@v-sashig
Thanks for your feedback! We will investigate and update as appropriate.

@bandersmsft To review and take appropriate action.

@v-sashig https://learn.microsoft.com/azure/cost-management-billing/manage/cancel-azure-subscription?source=docs#delete-subscriptions was recently updated for new delete subscription functionality.
What we have documented should be accurate. Please check the article's current text to see if you can delete your subscription, using the information we have currently documented. Thanks.
Feel free to reopen this issue if there is any inaccuracy.
#please-close


Adding support to attribute declaration

Consider having this additional way of declaring the directive.
In my scenario we must work with directives declarations as
attributes rather than elements or classes.

'autocomplete' as an attribute could conflict with the standard html attribute


docs: Refine Ui design

Design a "Plan B" for backup

@potatowagon What's the status of this issue?

@pyokagan before you start this work please have a look of the new command formats and update the Quick Start session in UserGuide

@potatowagon before you start this work please have a look of the new command formats and update the Quick Start session in UserGuide


Add delete commands

Close #383

Notice: CI is broken, waiting for https://github.com/fractal-analytics-platform/fractal-server/pull/408 to be merged&released

CI is broken due to https://github.com/fractal-analytics-platform/fractal-server/issues/409


chap7

On Windows:
from .app import create_app, db
from .app.models import User, Role
OR:
from flasky.app import ...
Traceback (most recent call last):
File "C:/GitHub/flasky/chap7/flasky/manage.py", line 6, in
from .app import create_app, db
SystemError: Parent module '' not loaded, cannot perform relative import

Or:
from app import xxx

Should I use top-level packges relationship?

The top level directory is not a package, so you cannot use the relative import. At that level you can only use absolute (from app import ...).

from app import ...
Now, there have other questions.
I do not understand where the procedure refers to this tuple.
Thanks!
C:\GitHub\flasky\venv\Scripts\python.exe C:/GitHub/flasky/chap7/flasky/manage.py
Traceback (most recent call last):
File "C:/GitHub/flasky/chap7/flasky/manage.py", line 32, in
manager.run()
File "C:\GitHub\flasky\venv\lib\site-packages\flask_script_init_.py", line 412, in run
result = self.handle(sys.argv[0], sys.argv[1:])
File "C:\GitHub\flasky\venv\lib\site-packages\flask_script_init_.py", line 350, in handle
app_parser = self.create_parser(prog)
File "C:\GitHub\flasky\venv\lib\site-packages\flask_script_init_.py", line 193, in create_parser
command_parser = command.create_parser(name, func_stack=func_stack, parent=self)
AttributeError: 'tuple' object has no attribute 'create_parser'

This seems to be an issue with how you have defined a command in manage.py, but without seeing your manage.py I cannot tell you exactly what the problem is.


add epwing support for kotowaza

Introduction
This is a dictionary I have wanted to use for a while which did not work with rikaisama nor some other old desktop epwing reader application. With the exception of a very small number of cases noted below, all the useful information contained in the epwing can be extracted.
This dictionary apparently is still being produced and sold by 三省堂 as part of the 新明解 dictionaries, however the title contained in the epwing merely says 故事ことわざの辞典. This epwing may be of a much older revision before the 新明解 label.
Regexes
Almost all of the headings are remarkably clean. The heading text is simply the proverb or idiom, with a reading for every word.

哀哀(あいあい)たる父母(ふぼ)我(われ)を生(う)みて苦労(くろう)せり

However, there are headings which contain alternate forms.
The approach taken in the implementation of the extractor is to determine all reduced forms of the expression. A reduced form of an expression is one which has no word alternatives. Then for each reduced form, all possible readings are determined for that particular form.
The following is an example parse of a simple case where there are three possible variations of a proverb.
-- 今参(いままい)り＝二十日(はつか)〔＝百日(ひゃくにち)・三日(みっか)〕 -> 今参(いままい)り＝二十日(はつか) or 今参(いままい)り百日(ひゃくにち) or 今参(いままい)り三日(みっか)
Below is the information about possible scenarios regarding alternate forms.
Word alternatives are indicated by the ＝ character. Every ＝ with non-bracketed text that follows is paired with alternatives enclosed by 〔＝ and 〕. There are 886 headings with word alternatives enclosed by 〔＝ and 〕. There are 886 headings with such alternatives.

燕雀(えんじゃく)＝安(いずく)んぞ〔＝何(なん)ぞ〕＝鴻鵠(こうこく)〔＝大鵬(たいほう)〕の＝志(こころざし)〔＝心(こころ)〕を知(し)らんや

There is 1 heading that is an exception to the ＝ indicator and has no alternatives:

勝地(しょうち)は＝主(ぬし)なし

A quick google search for 勝地は主なし does not come up with any exact matches but instead 勝地定主無し comes up which appears to have the same meaning. Nevertheless, this single exception is left unhandled so as not to unnecessarily complicate the regex.
Alternatives are also specified with the ・ character. This can denote alternatives for readings (the most common case).
There are 197 headings with reading alternatives enclosed by ().

鰯(いわし)の頭(かしら・あたま)も信心(しんじん)から

There are at most 3 reading alternatives listed and this is the case for exactly 1 heading.

藪(やぶ)に馬鍬(まぐわ・まんぐわ・うまぐわ)

The ・ character can also denote alternatives for words enclosed by 〔＝ and 〕.
There are 26 headings with additional word alternatives denoted by the ・ character.

泣(な)く子(こ)も目(め)を＝開(あ)く〔＝見(み)る・見よ〕

There are at most 3 additional word alternatives denoted by the ・ and this is the case for exactly 3 headings.

内弁慶(うちべんけい)外(そと)＝味噌(みそ)〔＝菜虫(なむし)・すばり・鼠(ねずみ)〕
下手(へた)の長糸(ながいと)、上手(じょうず)の＝小糸(こいと)〔＝手糸(ていと)・一寸(いっすん)・一尺(いっしゃく)〕
雪(ゆき)は豊年(ほうねん)の＝瑞(しるし)〔＝例(ためし)・貢(みつぎ)・貢物(みつぎもの)〕

There are exactly 9 headings where for a group of words (the primary and its alternatives), the primary word has more than one reading.

倚門(いもん)の＝望(ぼう・のぞみ)〔＝情(じょう)〕
口(くち)は禍(わざわい)の＝門(かど・もん)〔＝元(もと)〕

There are exactly 2 headings which contain word alternatives which also contain reading alternatives.

乞食(こじき)に＝筋(すじ)〔＝種(しゅ・たね)〕無(な)し"
孫(まご)飼(か)わんより＝犬(いぬ)の子(こ)〔＝犬子(えのこ・えのころ)〕飼え

This case is left unhandled so as not to unnecessarily complicate the regex.
There are exactly 2 headings with word alternatives where readings do not immediately follow a kanji.

男(おとこ)の子(こ)は＝父(ちち)〔＝男・男親(おとこおや)〕に付(つ)く
藪(やぶ)に＝功(こう)の者(もの)〔＝功・功者(こうしゃ)〕

This case is left unhandled so as not to unnecessarily complicate the regex.
Glyph Tables
Thankfully, none of the bitmap glyphs are ever referenced in the dictionary entries.
Tags
Putting aside the fact that there is no grammatical metadata included in the entries, I do not think it is necessarily a good idea to try and apply deinflection on proverbs. In any case, there is no feasible way to determine grammatical metadata for the entries.

Excellent work, I was pretty interested in this dictionary as well, but didn't have the time to hook it up 👍
Thanks again for the codes and clear explanation!


Bug Fix to angular distributions in VH.

This PR right now is also a test to see if circle Ci will work on this new PR. I intend to make this bug fix a new tag of v7.4.1.

There are changes in the ZH and WH files. I suppose this is expected. What do the angular distributions look like now? Changes are in both leptonic and hadronic decays, would you please show the resulting cos theta2 and phi angles for the VH topology (5 plots, separate for Z->ll, Z->nunu, W->lnu, Z->qq, W->qq').

One more request: For only one Z and W decay, would you please also generate fa3VH=0.5, phia3VH=0 and fa3VH=0.5, phia3VH=pi/2 and show angular distributions for those as well? phia3=0 vs pi/2 behave differently in cos theta2 vs phi angles, and a swap in writing outgoing particles would be visible only on those plots. Please add them to the list of reference checks as well.

There are changes in the ZH and WH files. I suppose this is expected. What do the angular distributions look like now? Changes are in both leptonic and hadronic decays, would you please show the resulting cos theta2 and phi angles for the VH topology (5 plots, separate for Z->ll, Z->nunu, W->lnu, Z->qq, W->qq').

One more request: For only one Z and W decay, would you please also generate fa3VH=0.5, phia3VH=0 and fa3VH=0.5, phia3VH=pi/2 and show angular distributions for those as well? phia3=0 vs pi/2 behave differently in cos theta2 vs phi angles, and a swap in writing outgoing particles would be visible only on those plots. Please add them to the list of reference checks as well.

Equal-mixture coefficients for VH a3:
g4=0.144057 (ZH), g4=0.1236136 (WH) + g1=1


Kobo Glo HD support

Hi!
Amazing project, thanks so much for doing this.
I've got a rooted (got SSH and all) Kobo Glo HD device here that I'd be curious to see run more free software. If there's anything I can do to help development, please do let me know... i would need to open up the thing to change the SD card for tests, but I was thinking of doing that anyways to get Wikipedia in there... ;)

Hi. It would be useful to know whether it uses a soldered eMMC or removable uSD for internal storage. You could also check the layout of the internal storage to see if it matches the one used by the i.MX507-based devices and described in the README.
After that, you could try to build and run the kernel source provided by kobo. UART access would greatly help with this. Check whether it includes any proprietary drivers (WiFi is the usual suspect) and replace them with open sources ones from linux-backports. Check whether it includes or depends on additional firmware blobs which could be removed.
Check whether my implementation of kobo_hwconfig works on it. After that, you would be able to give the okreader rootfs a try.

On 2017-03-30 07:16:00, Cosmin Gorgovan wrote:

Hi. It would be useful to know whether it uses a soldered eMMC or removable uSD for internal storage.

I believe the internal storage is removable, but you need to open the
case first, according to this at least:
http://goodereader.com/blog/electronic-readers/the-kobo-glo-hd-has-an-sd-card
https://www.mobileread.com/forums/showthread.php?t=261362
I haven't tried this myself yet, I'm worried about cracking the case. :)

You could also check the layout of the internal storage to see if it matches the one used by the i.MX507-based devices and described in the README.

Hmm... well, I've got a shell on the thing, so I'm happy to check this
further... How can i inspect this? fdisk? parted?
This can act as a high-latency shell if you want. Just send me the
commands you want. I also know how to compile and deploy arm binaries
from debian, FWIW. :)

After that, you could try to build and run the kernel source provided by kobo. UART access would greatly help with this. Check whether it includes any proprietary drivers (WiFi is the usual suspect) and replace them with open sources ones from linux-backports. Check whether it includes or depends on additional firmware blobs which could be removed.
Check whether my implementation of kobo_hwconfig works on it. After that, you would be able to give the okreader rootfs a try.

Cool, I'll look into this when I pry the case open. :) It's nice to have
a roadmap!

You could also check the layout of the internal storage to see if it matches the one used by the i.MX507-based devices and described in the README.
Hmm... well, I've got a shell on the thing, so I'm happy to check this further... How can i inspect this? fdisk? parted?

I'd suggest dd-ing the first 20MB or so (dd if=/dev/mmcblk0 of=/mnt/onboard/dump bs=1M count=20) and then copying the file to a computer for analysis. You can use fdisk or parted to see the offset of the first partition. To find the kernel image and maybe some other files (u-boot?), try binwalk. The HWCONFIG block uses the string HW CONFIG  as a header signature IIRC.

@anarcat I've ended up ordering a Glo HD since I'm pretty keen on getting okreader running on the i.MX6-based devices (and checking out the newer eink screens). Don't expect instant bring-up; I'll keep this thread updated.

Awesome! Let me know when you want me to run some tests then. :)

Thank you very much for your work, @lgeek.
I also have a Kobo Glo HD, so if you need to test your work on another device you can tell me. I don't have any technical knowledge, though, but I can try to help.

Is there anything I could do to help with this? I have a Kobo Glo HD around as well

Any update @lgeek on getting a Kobo Glo HD?

@almostalive There's experimental support in the glohd_bringup branch, which works for me. It's missing u-boot and I need to do some cleanup, but I didn't have time recently.

@lgeek: either way, thanks for the work you already did. Could you give maybe give some high level steps on how to start playing with the glohd_bringup branch like you are doing right now? Don't be afraid to RTFM me, I am willing to learn :wink:

@lgeek that is awesome. I will try it out soon! Couple of questions though. For u-boot did you use the one that is on the uSD or did you build it from the source located here https://github.com/kobolabs/Kobo-Reader/blob/master/hw/imx6sl-glohd/uboot.tar.bz2 ? If you built it yourself, did you need to change any of the source code to have it boot up with okreader? Also what config did you use for make? I'm thinking its mx6sl_ntx_lpddr2_config but I'm not sure. I think that is all the questions I have for u-boot.
Also does your koreader repo have any changes not found the offical koreader repo? Asking since I'll be building it from source might aswell try out the latest commits sometime.
The last real questions is, you mention formating the system partition, is there anything on the 3rd partition that needs to stay or could it be reformatted as well and possibly changed to a different fs like ext4?
I'm guessing a Raspberry Pi 2 running debian should be fine for building this albiet slow.

@jellelicht I've also updated the README in that branch, it should get you started.
@almostalive I haven't replaced the u-boot image. My koreader fork doesn't have any additional commits, but I also haven't tested the upstream head in this environment. Make sure you use the okreader build script to package koreader, because it replaces some Nickel-specific scripts with okreader versions.
No data from the third (data) partition is needed, but keeping it vfat allows you to continue mounting the device on Windows in case you care about that. Also, because of the hacky way in which that partition is writable both by the device and the host computer, a journaled FS might have a higher likelyhood of getting in an inconsistent state. Don't forget to update the fstab, by the way.
The only potential issue with building on RPi2 is that it might not have enough memory. A while ago, 1 GB used to be enough, but lately I've only built okreader on systems with 4GB+ RAM. Try disabling parallel make (the -j flag) in build.sh if you run into related issues.

Thanks for the info. The u-boot image was my biggest concern before starting the build and since I don't have to worry about it, I'm going to give this a try sometime this weekend.
For koreader I figured I would of course build everything right from your scripts and repos first just so I know everything works. Then eventually replace the koreader submodule path with upstream to play with, while still using your scripts.
I don't have a Windows pc so I don't care about that. Just wanted to make sure nothing important was there.
I'll give it a couple tries on rpi2 and if that fails, I'll see if I can setup a cross compile enviroment on my main pc running Arch and modify the scripts as needed. If neither of those works then qemu.
Thank you for this and I'll let you know how it goes.

built and installed. sorry it took so long to reply. pure jessie or stretch both failed on the raspbery 2 but ubuntu 16.04 server worked fine. I'm drunk so I can't remember the exact errors.
On building, you use<EMAIL_ADDRESS>for submodules. I had to change that to 'https://github.com' to pull them because i would get ssh errors. i used --depth 1 when updating the submodules which made the imx6-linux folder not properly work. getting pass those two things where easy.
After installing okreader on my glo hd, I notice it was faster but had two problems.  Trying to connect via wifi says "Failed to initialize network control client: Failed to connect to wpa_supplicant control socket: /var/run/wpa_supplicant/eth0"  from koreader. And plugging in vai usb shows nothing on my linux machines. I can chrage but I can't acess the sd card from usb.

i'm probably really too late for this, but:
[root@(none) ~]# lsmod
dhd 242221 0 - Live 0x7f004000
sdio_wifi_pwr 486 0 - Live 0x7f000000
lowmem 905 0 - Live 0x7f04f000 (P)

i haven't tried the binary analysis yet, that seems a bit beyond my skillset for now. i did crack the case open to change the SD card to a larger one so that Wikipedia works better though, so I'm likely to try this again soon.
thanks!

@almostalive Both problems could be caused by a failure to load the kernel modules, either because they're not available in /lib/modules or because of a version mismatch with the kernel image. To start with, could you check that the modules built in linux-okreader-modules-imx6 and that the packages is installed on your rootfs?

@lgeek the problem was sort of a mismatch with the kernel version. The folder was /lib/modules/3.0.35 so I decided to dd the first 15M to see what binwalk would say about the kernel - image name: "Linux-3.0.35+". so changed it to /lib/modules/3.0.35+ and gave it a try. It all worked!!!

Yeah, we've made a bit of progress since then :)

So is there anything else you'd need from me here? i got an image I could work on here... from what @almostalive is saying here, it looks like "it all worked" - does that mean we can boot okreader here now?
After being frustrated by Nickel (Kobo's native interface) for a full day, I'm eager to ditch that stupid OS in favor of something more open that i could run wallabako on...

@anarcat I've been using the version from the glohd_bringup branch on my Glo HD since May last year. I've not tried using wallabako.

@lgeek so it works! that's nice to hear... i'll probably give it a try then!
i wasn't expecting anyone to use wallabako with okreader just yet: i still need to figure out how it all fits together... this probably belongs more in https://github.com/koreader/koreader/issues/2621, so don't worry about that just yet. :)
unless you think wallabako should be somehow integrated more directly into okreader instead of being a koreader plugin?

@anarcat

I have tried reverse-engineering the Kobo database format, and it's a
real mess. The content table, for example, has about 90 columns,
most of which are basically useless. There are multiple rows per book,
one per book but also one per chapter per book (instead of having,
say, a separate chapters) table.

Fun. :-)

What does one need to do exactly with the partitions on the SD card after building okreader? The README is quite clear on most other steps, but this section about partitions 1 and 3 mostly left me confused :confused:


Sequel::Error: schema parsing returned no columns, table probably doesn't exist

https://rollbar.com/vizzuality/CartoDB/items/8182/
2
File "app/models/table.rb", line 846 in schema
3
File "app/models/table.rb", line 143 in is_raster?
4
File "app/models/table.rb", line 1415 in row_count_and_size
5
File "app/models/carto/user_table.rb", line 31 in row_count_and_size
6
File "app/models/carto/user_table.rb", line 23 in size
7
File "app/models/carto/visualization.rb", line 54 in size
8
File "app/queries/carto/offdatabase_query_adapter.rb", line 56 in block (2 levels) in get_results
9
File "app/queries/carto/offdatabase_query_adapter.rb", line 55 in sort
10
File "app/queries/carto/offdatabase_query_adapter.rb", line 55 in block in get_results
11
File "app/queries/carto/offdatabase_query_adapter.rb", line 52 in each
12
File "app/queries/carto/offdatabase_query_adapter.rb", line 52 in get_results
13
File "app/queries/carto/offdatabase_query_adapter.rb", line 45 in results
14
File "app/queries/carto/offdatabase_query_adapter.rb", line 39 in count
15
File "app/controllers/carto/api/visualizations_controller.rb", line 42 in index

Ok, checked the code and this is safe, it is inside a rescue block that just returns 0 as size & row size in case of exceptions (but also notifies to RB). This is a dead table being listed.


Add Diagnostic clear method for AST nodes in Toml Parser

Purpose
Adds the feature to clear diagnostics for every node in the Toml AST.
Related Issues
#28158
Check List

[x] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[ ] Added necessary tests

[ ] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

Closing infavor of https://github.com/ballerina-platform/ballerina-lang/pull/28170

Closing infavor of https://github.com/ballerina-platform/ballerina-lang/pull/28170


how can i packaged to other path(not c://)

because of i create 2 electron project , so i want to run package one of then to other path
but if i first package one , then package another one
the second project will cover the first
(poor English, wish you can read)

I'm not sure I understand very well what the issue is, but can't you package one, then move the files and then package the other one?

yes i packaged one ,then i got > ElectronReact Setup .exe
in this step,i moved that in onther path
then i packaged the other
ok ,problem is , i install first ‘exe’ file ,will install to path C://
and install the next , the next one will cover the first
maybe i can install the first one and move it to other way
install step is for users ,so i wish i can choose path to install

Oh, gotcha! Check this: https://www.electron.build/configuration/win
Add this to your package.json to allow the user to select an install location:
"nsis": {
      "oneClick": false,
      "allowToChangeInstallationDirectory": true
    },

Beware that build.win.target has to be equal to "nsis", like so:
"win": {
      "target": [
        "nsis"
      ]
    },

wow!  thx


Can you point me to the right direction? ERROR getting EnelX Server from Telnet.

First, thanks for the time and effort put in this project.
juicebox machine ip address is <IP_ADDRESS>
juicepassproxy is running with all the correct mqtt infos
adguard instance is running on <IP_ADDRESS>
I've been using putty to login the juicebox machine,
list command is showing udp-prod3-usa.enelx.com (nslookup showing <IP_ADDRESS>)
I did set wlan.static.dns <IP_ADDRESS> (which is adguard ip)
save
AdGuard rewrite

Container logs

What am I doing wrong? I'd really appreciate any help. Thank you.

use the FQDN or *.enelx.com  in adguard and not the IP

It is likely not working due to your Adguard setting (as noted by @devzwf). From your Adguard screenshot, change Domain from <IP_ADDRESS> to juicenet-udp-prod3-usa.enelx.com.

As for the Telnet Error in the Docker log: It looks like it is falling back to the defaults and for now those should work ok, however I'd like to understand why it is Erroring to try to improve it.
a. Can you share your Docker Compose
b. Can you get to a bash prompt in the Docker Container? docker compose exec juicepassproxy bash If so:
c. Can you connect to the JuiceBox by typing telnet <juicebox_ip>?
d. What do you see if you enter /juicepassproxy/telnet_get_server.expect <juicebox_ip>?

the error was due to my dumbness ... ignore it , when i build the the image for unraid i forgot to include telnet_get_server.expect
it is now fixed


Glossary

Would it be possible to add a glossary that maps the variables/arguments with short, cryptic names to their full names? For beginners like me that would be very helpful in understanding (and thus building on) what the code is doing.

Hey, sure thing 🙂
I've created a draft here (the glossary is at the bottom of the page), could you let me know if I've covered everything?
https://github.com/electricsquare/raymarching-workshop/blob/86e73487688fdd5108a09c99246bf16e054bf31b/readme.md

@ajweeks Awesome, I've added a comment to https://github.com/electricsquare/raymarching-workshop/pull/4


Feature check national

Codecov Report

Merging #6 (6a38cc1) into master (0523e9a) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##             master       #6   +/-   ##
=========================================
  Coverage     90.90%   90.90%
+ Complexity       36       35    -1
=========================================
  Files             8        8
  Lines            77       77
=========================================
  Hits             70       70
  Misses            7        7

Impacted Files
Coverage Δ
Complexity Δ

src/Traits/NationalId.php
100.00% <100.00%> (ø)
10.00 <0.00> (-1.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 0523e9a...6a38cc1. Read the comment docs.


Pregenerate interfaces

Currently when using the new resolver syntax its impossible to put your resolvers in the same package as the generated code.
This is because the user written resolver code depends on the generated interfaces which is not present during generation. This means the package cant be compiled, which codegen will try to do if there are any models (generated or user defined) in the package.
This PR creates empty interface stubs for all possible resolvers, eg:
// If you are see this file it means code generation has failed.
//
// It is created to satisfy all interfaces that might be generated, before codegen runs. This ensures that any code
// relying on these interfaces will still compile without the generated code, so that we can load the packages during
// codegen.

package todo

import "github.com/vektah/gqlgen/graphql"

func MakeExecutableSchema(resolvers Resolvers) graphql.ExecutableSchema {
	return nil
}

func NewExecutableSchema(resolvers ResolverRoot) graphql.ExecutableSchema {
	return nil
}

type (
	Resolvers    interface{}
	ResolverRoot interface{}

	MyMutationResolver interface{}
	TodoResolver       interface{}
	MyQueryResolver    interface{}
)

when codegen finishes the file is replaced with the real interfaces.
Fixes #152
Thoughts @mastercactapus?

Hmm, I hadn't thought of that; we had problems even with the old interface and having them share a package. So we opted to keep them separate early on without too much thought. (namely, type assertion var _ Resolvers = &App{}, as well as regenerating while still implementing the resolver methods).
With the stubs, I think we could still get an error when we do more than just return types (i.e. if any of the user provided code calls methods on the interfaces). It also still depends on the current package compiling when the only dependency is actually the schema and stuff referenced by types.json. While it would solve most cases in all likelihood, there are still edge cases that won't have a good workaround (other than commenting/moving code temporarily).
We also have the issue that if the interface is changed in any way, we would have the same problem (since the types would no longer fulfil all methods of the interface).

In another approach, some tools (like gofmt or gorename) seem to follow a: "don't change anything unless it's going to work"-principal. I noticed gqlgen deletes the old files (thus introducing a compile break) before actually doing the generation work.
Commenting out lines 41-42 in codegen.go get's us partly there -- assuming the code currently compiles, it will continue to do so until we gen & replace.
	// _ = syscall.Unlink(cfg.ExecFilename)
	// _ = syscall.Unlink(cfg.ModelFilename)

We still need to cleanup models_gen.go if it is no longer needed, but we could move that to AFTER code generation. BUT, this still has the problem of: If you add a method, first generate works, but second fails (until you add the new resolver method), because it would no longer compile.

We could also try generating code in a separate/temporary package and then move the result to make things more-or-less atomic. That would make it possible to generate & re-generate code even if the user is not finished implementing all resolvers in the current package. It should work with types.json since that references the full package name (and thus not dependant on where this "temporary" package exists) -- only that the type-packages compile and are thus readable.
It gives the benefit of keeping the generated interface & friends in an isolated package, but without explicitly requiring users to do so.
Having said all that, there's still somewhat of a circular dependency when the generated code depends on stuff in the package it's meant to output too. The only real way to avoid that would be to put all generated code in it's own package after all. That, and to require users to NOT implement types used by the generated code in the same package that uses the generated code, as Go does not like circular dependencies.
In that case, users would either use the generated models (for graphql layer), or types from the application, keeping the graphql/glue stuff on it's own.
Maybe relevant:

Don't use a single package for all your APIs.
Many well-intentioned programmers put all the interfaces exposed by their program into a single package named api, types, or interfaces, thinking it makes it easier to find the entry points to their code base. This is a mistake. Such packages suffer from the same problems as those named util or common, growing without bound, providing no guidance to users, accumulating dependencies, and colliding with other imports. Break them up, perhaps using directories to separate public packages from implementation.
-- https://blog.golang.org/package-names

Overall, personally, I'd advocate for putting the generated code in a separate package (and thus only exposing the public methods) so that generation & re-generation is durable without any circular dependencies. But there are also things we can do to preserve the current behavior, and yet make it less prone to compile errors.
Really, I see two main use-cases:

single-package apps; everything (server, API, types & gen) in a single package
multi-package apps; separate packages for things like users, graphql, the main package, etc..

For the all-in-one, fixing regeneration (e.g. don't delete until the end) might be enough.
For multi-package, keeping the gen. code independent would probably be best.

TL;DR; What about:

Having generated code output to its own package
Using a temporary package while generating
Don't touch/remove/update any existing code (generated or otherwise) until generation is complete & succeeds

Overall, personally, I'd advocate for putting the generated code in a separate package (and thus only exposing the public methods)

Yeah, I agree, but single package apps are useful. This probably gets better with a generated skeleton that sets up a multi package layout.
Ok, lets give not deleting a try. I think it makes working on gqlgen a bit harder because you cant start from a clean slate easily, but thats probably just a sign that the examples should be using a mutli-package layout.

Ended up going a third way, just delay showing errors until after the code has been generated - https://github.com/vektah/gqlgen/pull/166


Add GLTF format support

GLTF seems to become commonly used format for 3D models as FBX, its support should be added.

https://github.com/gltf-rs/gltf


satish comments

@ebridge - note the change in mgc, let's update R code too?
@satish - thanks for keeping us honest! this is why we need tests in our code, and why the python code will soon be better than both R and MATLAB (python will have extensive testing, and continuous integration :)
On Sun, Nov 11, 2018 at 6:00 PM Cencheng Shen<EMAIL_ADDRESS>wrote:
Satish,
Thank you for bringing this to my attention -- that was an unexpected bug from the previous scale change!
I just fixed it and pushed the change, it should work as intended now. Let me know if you notice other issues!
Best,
Cencheng
On Sun, Nov 11, 2018 at 5:38 PM Satish Palaniappan<EMAIL_ADDRESS>wrote:
Okay, I do understand that we are talking about the case where, X & Y are NOT dependent and the optimal scale should be [0,0] then.  But the code change made here: https://github.com/neurodata/mgc-matlab/blob/master/Code/MGCSmoothing.m#L25, not only does this, but also will also return [0, 0] if the data is linear and IS correlated, instead of the optimal scale. Because I tried the same change in the Python version and this is what the behavior was. Maybe something else is going wrong.
Satish Palaniappan,
Graduate Student (Masters in Computer Science),
Johns Hopkins University.
GitHub |  LinkedIn |  Resume/CV | Google Scholar
From: joshua vogelstein<EMAIL_ADDRESS>Date: Sunday, November 11, 2018 at 5:30 PM
To: Satish Palaniappan<EMAIL_ADDRESS>Cencheng Shen<EMAIL_ADDRESS>Cc: Junhao Xiong<EMAIL_ADDRESS>Subject: Re: quick question
you are wrong.
we are concerned with the case that X & Y are NOT dependent,
and what the code outputs as the optical scale in that scenario.
we think it should be [0,0].
make sense?
On Sun, Nov 11, 2018 at 4:41 PM Satish Palaniappan<EMAIL_ADDRESS>wrote:
Hi Jovo!
Sure, I will make the change in mgcpy.
But, I have a question, if both the data are linear and are highly correlated, then I was under an understanding that, the optimal scale should default to the global scale, but how will, making this change: https://github.com/neurodata/mgc-matlab/blob/master/Code/MGCSmoothing.m#L25, do that for us. This change will return just [0, 0] as the optimal scale in the case I just told. Correct me if I am wrong.
Thanks,
Satish Palaniappan,
Graduate Student (Masters in Computer Science),
Johns Hopkins University.
GitHub |  LinkedIn |  Resume/CV | Google Scholar
From: Junhao Xiong<EMAIL_ADDRESS>Date: Friday, November 9, 2018 at 11:04 AM
To: Satish Palaniappan<EMAIL_ADDRESS>Cc: jovo Vogelstein<EMAIL_ADDRESS>Subject: Fw: quick question
Forwarded to Satish to see how we can update this in our code.
Best,
Bear
From: joshua vogelstein<EMAIL_ADDRESS>Sent: Friday, November 9, 2018 9:45 AM
To: Cencheng Shen
Cc: Michael Milham; Eric Bridgeford; Junhao Xiong
Subject: Re: quick question

R: https://github.com/neurodata/mgc/blob/034795d039d85f29a31d0353a33054ebd739df11/R/MGCDistTransform.R#L73
mgc-matlab: https://github.com/neurodata/MGC-paper/blob/953019aafdfebead6c5cdd92442809638ce27936/Code/MGC/MGCDistTransform.m#L69


TLS not working with gRPC

gRPC client that tries to talk to gRPC servers via Ambassador returns:
[2018-03-28 09:43:34.588][262][debug][connection] source/common/ssl/ssl_socket.cc:132] [C34] SSL error: 268435703:SSL routines:OPENSSL_internal:WRONG_VERSION_NUMBER

This configuration is known to work with both NGINX gRPC beta, and GCP TCP load balancers.
cc: @clmssz

Output of openssl s_client -debug -tlsextdebug -connect yourgrpchost:443:
https://pastebin.com/raw/mbXrVSfs

More information:
In wotking production we have : gRPC client -> GCP TCP LB -> backend (gRPC + TLS)
We tried it successfully with : gRPC client -> NGINX (TLS with grpc_proxy -> grpcs://backend) -> backend (GRPC + TLS)
For ambassador I tried it both with a gRPC and a gRPC + TLS backend, and the error is the same.

openssl s_client -debug -tlsextdebug -tls1_2 -connect yourgrpchost:443
https://pastebin.com/raw/x2wCpxZv

Ok, the issue was on my side, client was fallbacking on insecure mode during my tests without me noticing (mobile) ... Thanks for the help guys !

Glad to know it's working!
Datawire folks, in general, as we set up better gRPC test harnesses we need to be sure to cover the various permutations between plaintext client vs TLS client with no cert validation vs TLS client with cert validation, and plaintext server vs TLS server (and really we need to throw mTLS in there as well). I've been finding that the various pieces seem finicky and prone to annoyingly silent failures. :(

Closing as covered by #815.


Allow registering an app as a file handler

Hey there,
i want to develope a simple editor with tauri. Currently i'm wondering how i can react on fileOpenEvents (resp. whether there are even such things..). In Electron i could do the following:
ipcRenderer.on('open-file', (e, url) => this.openFile(url));
Can you tell me what the corresponding tauri way is?
Thanks in advance

did u mean file/directory selection dialog？

No... Imagen i've created my app (it's named 'myCoolApp'). Then i want to right click on a file on my desktop an select 'open with' -> myCoolApp. In that case, somehow the app (after started by the operation system) has to know what to do (in my case open the correct file). With electron you can register the above mentioned open-file-event-handler and react on the open action (by opening the file).
I want to do that with a tauri app

maybe not support yet #544

hope this can help you @ehhc

add this in setup:

select 'open with' -> my-app

app will get args

I've updated the title to what I think more closely resembles your problem. If that does't seem accurate to you, let me know.

For Windows, you can do this in the installer. My project has this functionality; here are the relevant blocks of code:
https://github.com/WilliamVenner/gmpublisher/blob/master/src-tauri/msi/msi.wxs#L60-L80
https://github.com/WilliamVenner/gmpublisher/blob/master/src-tauri/msi/msi.wxs#L43-L47
https://github.com/WilliamVenner/gmpublisher/blob/master/src-tauri/tauri.conf.json#L42-L46
Good luck!!

#544

Could you please paste some code how to use this?

hope this can help you @ehhc

add this in setup:

select 'open with' -> my-app

app will get args

Could you please paste some code to see how it could be implemented?

Could you please paste some code to see how it could be implemented?

First of all, this is an old repo (2y), so many things about Tauri have changed in the meantime but the last comment before yours already has code snippets that show exactly how this can be archived. There is nothing new to add here.

@JonasKruckenberg i opend this issue some time ago. So -- at least for me -- it's not relevant anymore. I understand that it still might be relevant for others, but with the solution given by the comment of @WilliamVenner (https://github.com/tauri-apps/tauri/issues/918#issuecomment-840815713) it might be a good idea to close this issue. Should i do it? Or do you contributors want to do it (I'm not sure whether that matters for the githube issue workflow/statistics/whatever)..

If this issue is solved for you then feel free to close this issue. One can always create a new issue after all.

I have the same demand for append right click to open with function to my Tauri app.


Undesired page breaking

PDF and RTF are leaving some undesired empty pages.

Fixed in <IP_ADDRESS>19.


\literate{} breaks with underscores

Eg, taking the abc.jl literate file in the coder demo and changing it to mypost.jl with \literate{_assets/literate/mypost.jl} in the markdown file, all is well:
[ Info: 👀 tracking new file _assets/literate/mypost.jl
[ Info: 💥 file _assets/literate/mypost.jl changed
[ Info: ✅ Website updated and ready to view
[ Info: 💥 file posts/genefamilies-speedup.md changed
[ Info: ⌛ processing posts/genefamilies-speedup.md
[ Info: ⏯ evaluating cell autocell1...
[ Info: ⏯ evaluating cell autocell2...
[ Info: ⏯ evaluating cell autocell3...
[ Info: ... [process] ✔ (δt = 1.4s), wrote __site/posts/genefamilies-speedup/index.html

But changing to my_post.jl, and \literate{_assets/literate/my_post.jl}:
[ Info: ⌛ processing posts/genefamilies-speedup.md
┌ Warning: \literate{...} Couldn't find a literate file at path </home/kevin/Repos/blog.bonham.ch/assets/literate/mypost.jl> (resolved from
│ 'assets/literate/mypost.jl').
└ @ Xranklin /home/kevin/.julia/packages/Xranklin/8HELJ/src/convert/markdown/lxfuns/literate.jl:53
[ Info: ... [process] ✔ (δt = 59ms), wrote __site/posts/genefamilies-speedup/index.html

It looks like the html parsing happens first, so it gets ... stuck in the middle. Presumably, this would affect other functions too?

thanks for flagging this, I'll investigate

Thank you!


properly detect if "init" hasn't been run

The only reason you "must" run init is to ensure --profile=dist works. I don't think there's any way to ask cargo if that profile is defined, so there are three options:

parse the Cargo.tomls and try to find the definition (will erroneously fail if the profile is specified totally globally... but also that won't work when checked in anyway so they're still wrong?)
??? is there some info in cargo-metadata about defined profiles ???
parse the error message from rustc/cargo for the "hey the dist profile doesn't exist" to provide a better diagnostic

i think parsing the cargo-toml here feels right to me though i'll admit i didn't even consider that someone would define the profile globally. is that a thing people commonly do? regardless, if a globally defined profile won't work, it stands to reason that not being able to detect it by reading the cargo.toml is a feature.
as an aside "cargo-metaprofile" is available on crates.io


Rename tdMgr to asgMgr

@zongzw I would post a similar comment to your last renaming pr.... This pr is to made the changes that you did not make in your last renaming change set. If your points is "we are necessary to have one asg service object, but we are not necessary to have one asg manager object", it will make others confused. Or reverting your last renaming pr is another option....

@zongzw I would post a similar comment to your last renaming pr.... This pr is to made the changes that you did not make in your last renaming change set. If your points is "we are necessary to have one asg service object, but we are not necessary to have one asg manager object", it will make others confused. Or reverting your last renaming pr is another option....

Yeah, my mistake in last PR. My expect is to have on asg datasource, but different services&managers.
I plan to revert last PR, and post a new one to change datasource name only. What do you think.

@zongzw I would post a similar comment to your last renaming pr.... This pr is to made the changes that you did not make in your last renaming change set. If your points is "we are necessary to have one asg service object, but we are not necessary to have one asg manager object", it will make others confused. Or reverting your last renaming pr is another option....

Yeah, my mistake in last PR. My expect is to have on asg datasource, but different services&managers.
I plan to revert last PR, and post a new one to change datasource name only. What do you think.

So my mistake is merging your renaming pr too quickly....  Usually my personal thinking is to make code structure become simple, in order to let most persons understand it easier. If your new idea would be more complex than the current code structure, I might vote NO perhaps, but that will depend on your new code... Now, I would 60% select to merge this, 40% select revert your last renaming pr. Maybe you can take a little more time to think over your new idea, and post a new change set.

So my mistake is merging your renaming pr too quickly.... Usually my personal thinking is to make code structure become simple, in order to let most persons understand it easier. If your new idea would be more complex than the current code structure, I might vote NO perhaps, but that will depend on your new code... Now, I would 60% select to merge this, 40% select revert your last renaming pr. Maybe you can take a little more time to think over your new idea, and post a new change set.

The complex is relative, I think.
I don't think my idea is new, also I don't think my idea is too complex to understand for you, for anyone. Only that you don't want to understand it.
IF...ELSE is simple, but it doesn't solve our problem. As if you know design pattern, I think your view to it may be changed.
To me now, it's clear, not because it's written by myself, but because it applies to the standard of designing.
If you think my design is not a good solution, think of a better one to replace it.

Already merged by another commit 93affaeb3d350a059583d421b9ea67973862f524


Add a white Font icon

Font is an abstract class, so it uses a gray icon now. But some places used the class icon and aren't supposed to look disabled. Fixes this:

That's exactly what I was referring to in https://github.com/godotengine/godot/pull/80184#issuecomment-1664315117 😛

These icons may be used for things other than node types in the editor. And in those cases it is very likely important that icons have their assigned color palette

Ooh, I see now. I got confused with the English, I thought you meant that in the future, they might be used for something else (as in, a feature or sth). But I think it's fine to split off into multiple icons for the different contexts.
Alright, wait a sec, I'll check if there might be other icons with this issue.

Mesh also popped up in a few other places. It used to be yellow, now I made the new variant white (afaik this seems fine, given the context, but I'm not heavy on 3D scene importing)
IMO it's best to have "de facto" class icons that are shown everywhere the same, even if it is slightly more taxing. I think otherwise we'd have to think about all the places modulation is needed or not.


Use CommonJS require to import NPM modules like in Electron?

Is it possible to use require like in Electron to import NPM modules in the browsing context?
If such feature doesn't exist, is it possible to write code for the feature in JS? Or would it require C++ in the lower levels?
Are carloFunctions defined with Window.exposeFunction able to return references? Or only serializable data? I can see how to implement require if it returns references.

There is no require in the browser context and there is no good way to emulate require in the user land JS.
I also would like to keep the web side as close to the real web as possible.
carloFunction is only useful for small and demo apps. It only returns serialized types.
RPC is what should be used for real world applications. Check out how app.load gets and returns rpc handles that can be used across the world. That's how front-end gets instances of the backend objects and vice versa. Check out the bundled examples (and tests), they are all using the rpc.


Import JSON Schemas

The PR implements the JSON Schema import feature. A first version of this feature will probably be merged before the full semantics of JSON Schema can be capture, mainly because it is not possible to express some of the JSON Schema constraints in TreeLDR for now.
Progress

[x] $id
[x] $ref
[x] Read schema type
[x] Generate TreeLDR structure layout on properties
[x] Generate literal layout on const
[x] Generate regular expression layout on pattern
[x] Generate native layout on format (for formats already known by TreeLDR)

[x] Add treeldr:native property to declare native layouts.
[x] Handle the treeldr:native property in the compiler

[ ] Generate enumeration layout on oneOf.
[x] Handle required properties constraint.
[x] Handle array item schema constraint using schema:multipleValues
[ ] Throw a proper error for unsupported JSON Schema features.
[x] Add an option in the command line interface to load JSON Schemas.

Unresolved questions

[ ] Should the generated layout be associated to a TreeLDR type (and if so, how), or should TreeLDR accept "orphan" layouts (not associated to any type, and thus without semantics).
[ ] TreeLDR require for every layout and enumeration variant to be named, so it can generate code in any target language. How do we define the name of a JSON Schema?

For now, a name for the schema is inferred from the $id value, or the title value.


Unable to release ios build

Describe the bug
A clear and concise description of what the bug is.
I built an app that works fine on debug. The release build is ok also. but when the process failed when I try to post the app to appstoreconnect
To Reproduce
Steps to reproduce the behavior:

Make archive
upload with Transporter or any CI/CD platform

Expected behavior
A clear and concise description of what you expected to happen.
I expect the build be uploaded
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

OS:  any IOS

Happening to me also. Can't release. Fix needed ASAP

Hello @woueziou @ahndwon, can you share the flutter doctor -v and which version of Xcode you are using?

Hi all.  I use Xcode 15.0 and my flutter doctor -v output below
[✓] Flutter (Channel stable, 3.13.6, on macOS 14.0 23A344 darwin-arm64, locale en-TG)
• Flutter version 3.13.6 on channel stable at /Applications/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ead455963c (3 weeks ago), 2023-09-26 18:28:17 -0700
• Engine revision a794cf2681
• Dart version 3.1.3
• DevTools version 2.25.0
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
• Android SDK at /Applications/android
• Platform android-33, build-tools 32.0.0
• ANDROID_HOME = /Applications/android
• Java binary at: /usr/bin/java
• Java version Java(TM) SE Runtime Environment (build 20.0.2+9-78)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15A240d
• CocoaPods version 1.13.0
[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
[✓] VS Code (version 1.83.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.74.0
[✓] Connected device (2 available)
• Wzx (mobile)    • 00008110-00110DCA3A0A801E • ios          • iOS 17.0.3 21A360
• macOS (desktop) • macos                     • darwin-arm64 • macOS 14.0 23A344 darwin-arm64
[✓] Network resources
• All expected network resources are available.
! Doctor found issues in 2 categories.

I'm updating my system and Xcode, hope I can try to reproduce this issue TMR.

Please this bug prevents me from submitting. I would like to have alternative or a work around. please !!

I'm updating my system and Xcode, hope I can try to reproduce this issue TMR.

@woueziou Which version of agora_rtc_engine you are using?

I found that this problem appeared in 6.2.3. We will release a hotfix version ASAP. For a workaround, you can downgrade to  6.2.2 first.

I found that this problem appeared in 6.2.3. We will release a hotfix version ASAP. For a workaround, you can downgrade to 6.2.2 first.

I already downgraded but same result

@woueziou Which version of agora_rtc_engine you are using?

the last one. but It started with 6.2.2

It's weird, I have confirmed that the CFBundleShortVersionString in 6.2.2 should be corrected.

Can you try clean it and retry?

It's weird, I have confirmed that the CFBundleShortVersionString in 6.2.2 should be corrected.
Can you try clean it and retry?

Ok let me check again.

Hello,
This is the agroa package in my pubspec

I made :

flutter clean
pod deintegrate
flutter pub get
pod install
This is the output to the pod install :

Analyzing dependencies
firebase_core: Using Firebase SDK version '10.15.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '10.15.0' defined in 'firebase_core'
Downloading dependencies
Installing AgoraIrisRTC_iOS (4.2.3-build.3) <--- Agora
Installing AgoraRtcEngine_iOS (4.2.3) <--- Agora
Installing CryptoSwift (1.8.0)
Installing FMDB (2.7.5)
Installing Firebase (10.15.0)
Installing FirebaseCore (10.15.0)
Installing FirebaseCoreInternal (10.16.0)
Installing FirebaseInstallations (10.16.0)
Installing FirebaseMessaging (10.15.0)
Installing Flutter (1.0.0)
Installing GoogleDataTransport (9.2.5)
Installing GoogleUtilities (7.11.5)
Installing MapboxCommon (23.5.0)
Installing MapboxCoreMaps (10.13.1)
Installing MapboxMaps (10.13.1)
Installing MapboxMobileEvents (1.0.10)
Installing PromisesObjC (2.3.1)
Installing Sentry (8.11.0)
Installing SentryPrivate (8.11.0)
Installing Turf (2.7.0)
Installing agora_rtc_engine (6.2.3) <----- Agora Engine
Installing app_links (0.0.1)
Installing camera_avfoundation (0.0.1)
Installing device_info_plus (0.0.1)
Installing firebase_core (2.17.0)
Installing firebase_messaging (14.6.9)
Installing flutter_callkit_incoming (0.0.1)
Installing flutter_local_notifications (0.0.1)
Installing flutter_native_splash (0.0.1)
Installing flutter_ringtone_player (0.0.1)
Installing geocoding_ios (1.0.5)
Installing geolocator_apple (1.2.0)
Installing image_picker_ios (0.0.1)
Installing iris_method_channel (0.0.1)
Installing mapbox_maps_flutter (0.4.5)
Installing nanopb (2.30909.0)
Installing package_info_plus (0.4.5)
Installing path_provider_foundation (0.0.1)
Installing permission_handler_apple (9.1.1)
Installing sentry_flutter (0.0.1)
Installing share_plus (0.0.1)
Installing shared_preferences_foundation (0.0.1)
Installing sign_in_with_apple (0.0.1)
Installing sqflite (0.0.3)
Installing url_launcher_ios (0.0.1)
Installing vibration (1.7.5)
Installing video_player_avfoundation (0.0.1)
Installing webview_flutter_wkwebview (0.0.1)
Generating Pods project
Integrating client project
Pod installation complete! There are 28 dependencies from the Podfile and 48 total pods installed.
I made an archive.
I try to validate it. and this happened

I think you should remove the ^ to force specify the version: agora_rtc_engine: 6.2.2

Yup.  I let you know when validate again

@littleGnAl  is ok. the build passed the validation process. Thanks


CLOUDSTACK-9857: With this change if agent dies the systemd will catc…

…h it properly and show process as exited

@blueorangutan package

@borisstoyanov a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

Packaging result: ✔centos6 ✔centos7 ✔debian. JID-611

ping @DaanHoogland @PaulAngus @rhtyd for review

trivial enough: LGTM

@karuturi we have 2 LGTMs on this trivial PR, I guess we can proceed and merge it.

LGTM. @abhinandanprateek should we retarget this PR to 4.9? Thanks.
@karuturi let's merge this before next 4.10 RC

LGTM

@rhtyd @karuturi here is the cherry picked PR on 4.9 https://github.com/apache/cloudstack/pull/2029

LGTM, @karuturi this is ready for merging.


Format/size detection performance improvements

Adds fast, lua-based format detection and dimension reading for common image formats, falling back to ImageMagick when needed. This avoids spawning external processes for basic operations, making things noticeably snappier, especially when using image.nvim's API from other plugins (my use-case).

Extended built-in format detection using magic numbers instead of relying on ImageMagick
Direct header parsing for image dimensions (PNG, JPEG, WebP, GIF, BMP, ICO, HEIC, AVIF)
Added test suite with sample images and edge cases
Set up basic GitHub Actions CI for running tests

The lua implementations are significantly faster but slightly less forgiving with malformed files compared to ImageMagick. We fall back to the existing methods when lua-based parsing fails, so everything should be backward compatible. More test images might be beneficial, especially for heic/avif formats.
Benchmarking the time to run from_image:

With magick_rock:

For a 2880 x 1800 PNG file:

Before: 283.36ms
After: 0.50ms

For a 208 x 209 PNG file:

Before: 4.96ms
After: 0.36ms

With magick_cli:

For a 2880 x 1800 PNG file:

Before: 294.32ms
After: 0.48ms

For a 208 x 209 PNG file:

Before: 32.82ms
After: 0.16ms

Similar speedups for other formats.
Note: most of the logic in dimensions.lua was generated with Anthropic's Claude.

Absolutely amazing effort, thank you so much on behalf of everyone!


UMD support (unpkg.io)

I'd like to make a CodePen using react-mapbox-gl, but I can't.
Can you bundle your code (i.e. with Rollup) so I can include it as a

Hey @krabbypattified , thank you for the suggestion, react-mapbox-gl used to be UMD compliant but I actually removed Webpack as it was lot of overhead to me and I don't think many peoples are using it as a global dependency today. I am open to the discussion though if there is a real need I can work on it.
Alternatively you can use webpackbin


EACCES: permission denied, mkdir '/Users/Chadtech/.elm-install/elm-install-0.3.1-osx'

Hi,
I am having some difficulty installing this. with the command sudo npm install elm-github-install -g, I get an access error. Npm tells me the install fails on scripts/install.js. I am on a mac.

Hey, sorry for the late response. If you are having trouble installing from either rubygems or npm there are binaries uploaded in the releases page for every release: https://github.com/gdotdesign/elm-github-install/releases

Didn't get a response for 30 days, closing.


Missing module tmdbsimple

When running manual.py, I get the following error message.
File "./manual.py", line 12, in
import tmdbsimple as tmdb
ModuleNotFoundError: No module named 'tmdbsimple'

Feel like I shouldn't have to ask this but did you install tmdbsimple?
This is a basic python error when you haven't installed the module
https://github.com/mdhiggins/sickbeard_mp4_automator/issues/1237


UBI Parameters are displayed and they should not be

The GUI interface is displaying the UBI parameters when it should not be.

@hdoupe said:

The [TaxBrain] GUI interface is displaying the UBI parameters when it should not be.

All I know is that @MattHJensen activated the UBI policy parameters in Tax-Calculator pull request 1599.

Thanks @martinholmer, but we need the CPS to use those parameters.  We haven't had time to put that up yet.

@hdoupe, my understanding based on conversation with with @andersonfrailey is that the CPS is not needed for the UBI parameters. My work in #1614 confirms this: https://github.com/open-source-economics/Tax-Calculator/pull/1614/files#diff-496bf0f0853ae02da9e238398f213913L4473

@MattHJensen Ok, I see.  That makes sense.  You just can't simulate the benefits repeal, correct?

You just can't simulate the benefits repeal, correct?

Correct.

Cool, so we will leave the parameters up?

Cool, so we will leave the parameters up?

Yep.

Great thanks.


Headers Causing Problems

Hi , when calling socket.connect() on server im getting this , its going as a get request its not pure websocket
GET / HTTP/1.1
Connection: Upgrade
Host: IP:6363
Origin: ws://IP:6363
Upgrade: websocket
Sec-WebSocket-Version: 13
Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits; server_max_window_bits=15

what may cause the problem ? how can i remove all headers ?

I'm facing same issue.

You need the headers to connect to a WebSocket server. The main advantage of WebSocket is they use HTTP to "upgrade" the connection so it can work over the same port/system/server as HTTP. Are you trying to Starscream as a normal TCP/IP socket?

You have to have those headers to start a WebSocket connection as defined in RFC6455.
https://tools.ietf.org/html/rfc6455#section-1.3
You can already set additional custom headers in Starscream.
If you are just wanting to write random data, you can use a plain TCP socket. There are numerous resources online for how to get started with that.


Add tutorial on device/dtype

Related to DYN-79.

@gautierronan since we are moving on JAX this tutorial isn't required anymore. Do you agree to close it?


Applying options to a backend when using DragDropContext

Hello. I'm using an old version of react-dnd. I'd like to be able to pass the scrollAngleRanges option to the TouchBackend, but I don't see how DragDropContext lets me do that.
For my purposes, upgrading to the newer version of react-dnd is not worth the trouble. Do I have to patch the touch backend to manually set the scroll angle ranges? Or is there a way to set it when using  DragDropContext

<DndProvider backend={TouchBackend} options={options}>


"autovaluegson.mutableAdaptersWithDefaultSetters" not working.

Hi,
We updated to 1.0.0, but apparently the processor option "autovaluegson.mutableAdaptersWithDefaultSetters" does not work anymore?
how can we generate default setters for the type adapters in 1.0.0?
Thanks

Per the release notes, this support was removed in 1.0


Error when loading the pre-trained checkpoints

I'm trying to load the pre-trained checkpoints in train_Sony.py. The checkpoints load fine in the test_Sony and test_Fuji scripts.
This is the error. Why does the model load fine in test but not in train? The train script needs the Adam optimizer. How can this be fixed so that I can continue learning from the pre-trained checkpoints?
OP_REQUIRES failed at save_restore_v2_ops.cc:184 : Not found: Key Variable/Adam not found in checkpoint
Traceback (most recent call last):
  File "/home/my/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1278, in _do_call
    return fn(*args)
  File "/home/my/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1263, in _run_fn
    options, feed_dict, fetch_list, target_list, run_metadata)
  File "/home/my/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1350, in _call_tf_sessionrun
    run_metadata)
tensorflow.python.framework.errors_impl.NotFoundError: Key Variable/Adam not found in checkpoint
	 [[Node: save/RestoreV2 = RestoreV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, ..., DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2/tensor_names, save/RestoreV2/shape_and_slices)]]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/my/anaconda3/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1725, in restore
    {self.saver_def.filename_tensor_name: save_path})
  File "/home/my/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 877, in run
    run_metadata_ptr)
  File "/home/my/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1100, in _run
    feed_dict_tensor, options, run_metadata)
  File "/home/my/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1272, in _do_run
    run_metadata)
  File "/home/my/anaconda3/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1291, in _do_call
    raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.NotFoundError: Key Variable/Adam not found in checkpoint
	 [[Node: save/RestoreV2 = RestoreV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, ..., DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2/tensor_names, save/RestoreV2/shape_and_slices)]]

Caused by op 'save/RestoreV2', defined at:
  File "train_Sony.py", line 112, in <module>

I came across the same error and I think it might be related to the variables initialization within the AdamOptimizer. Have you fixed it?

Please I'm facing a problem when i load the pretrained model , specially when it reads the checkpoint
this is the error .. how did you kindly solve it please ??
NotFoundError (see above for traceback): Key MODEL/conv7/kernel/Adam_3 not found in checkpoint
[[Node: save/RestoreV2_69 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2_69/tensor_names, save/RestoreV2_69/shape_and_slices)]]


Android Basics: Fragments Navigation component

URL of codelab
In which task and step of the codelab can this issue be found?
Describe the problem
Steps to reproduce?

Go to...
Click on...
See error...

Versions
Android Studio version:
API version of the emulator:
Additional information
Include screenshots if they would be useful in clarifying the problem.

First word of 3rd paragraph of before you begin, it has to be "fragment" instead of "fragmen"

Thanks for filing! This issue has now been fixed


Restart DALI Backend when it Breaks

Hello!
When an image of invalid type pass though the DALI pipeline (eg gif), triton server breaks and outputs the following:
Current pipeline object is no longer valid and then the whole server has to be restarted. Even though we can filter the data before they go though, I would like to have the option either to not completely break the pipeline and continue to the next sample, or a way to automatically restart the pipeline.
Here is the code sample for my DALI pipeline (in case we can introduce some try/except blocks):
def setup_dali(
    input_name='DALI_INPUT_0',
    image_dim=[800, 1600],
    batch_size=1,
    num_threads=4,
    device='cpu',
    device_id=0,
    output_dir='./out/',
):

    pipeline = dali.pipeline.Pipeline(
        batch_size=batch_size,
        num_threads=num_threads,
        device_id=device_id
    )

    with pipeline:
        data = fn.external_source(name=input_name, device="cpu")
        # image preprocess
        images = fn.image_decoder(data, device=device)
        images = fn.resize(images, size=image_dim, mode="not_larger", max_size=image_dim)
        images = fn.pad(images, fill_value=0, shape=[image_dim[0], image_dim[1], 1])
        images = fn.transpose(images, perm=[2, 0, 1])
        images = fn.cast(images, dtype=dali.types.FLOAT)
        # input shape
        input_shape = np.float32((image_dim[0], image_dim[1], 1))
        # original shape
        shapes = fn.peek_image_shape(data)
        shapes = fn.cast(shapes, dtype=dali.types.FLOAT)
        # gather outputs
        out = [
            images,
            input_shape,
            shapes
        ]
        pipeline.set_outputs(*out)

    os.makedirs(os.path.dirname(output_dir), exist_ok=True)
    pipeline.serialize(filename=os.path.join(output_dir, 'model.dali'))

Thank you for your time!

@ioangatop ,
Thank you for pointing that out!
Could you tell me, which dali_backend version are you using? Recently there was a enhancement for the backend behaviour after a fail. Could you please follow the docker build instructions and verify if the issue persists?

Hi @szalpal,
I test it on  both ``tritonserver-20.10andtritonserver-20.12` images which I believe already incorporate it.

I build the docker image from the instructions and I can verify that the issue still persists.
Here is the full log of the error:
tritonclient.utils.InferenceServerException: in ensemble 'detector', runtime error: Critical error in pipeline:
Error when executing CPU operator ImageDecoder encountered:
Error in thread 0: [/opt/dali/dali/operators/decoder/host/host_decoder.cc:41] [/opt/dali/dali/image/image_factory.cc:101] GIF format is not supported
Stacktrace (8 entries):
[frame 0]: /opt/tritonserver/backends/dali/dali/libdali.so(+0x8ef0e) [0x7f8717189f0e]
[frame 1]: /opt/tritonserver/backends/dali/dali/libdali.so(dali::ImageFactory::CreateImage(unsigned char const*, unsigned long, dali::DALIImageType)+0x4bf) [0x7f87172917cf]
[frame 2]: /opt/tritonserver/backends/dali/dali/libdali_operators.so(+0x7aa84b) [0x7f86debc084b]
[frame 3]: /opt/tritonserver/backends/dali/dali/libdali_operators.so(+0x440b79) [0x7f86de856b79]
[frame 4]: /opt/tritonserver/backends/dali/dali/libdali.so(dali::ThreadPool::ThreadMain(int, int, bool)+0x217) [0x7f8717263ae7]
[frame 5]: /opt/tritonserver/backends/dali/dali/libdali.so(+0x8ad9bf) [0x7f87179a89bf]
[frame 6]: /usr/lib/x86_64-linux-gnu/libpthread.so.0(+0x9609) [0x7f88d10f0609]
[frame 7]: /usr/lib/x86_64-linux-gnu/libc.so.6(clone+0x43) [0x7f88d0943293]
. File:
Stacktrace (7 entries):
[frame 0]: /opt/tritonserver/backends/dali/dali/libdali_operators.so(+0x416a8e) [0x7f86de82ca8e]
[frame 1]: /opt/tritonserver/backends/dali/dali/libdali_operators.so(+0x7ab42b) [0x7f86debc142b]
[frame 2]: /opt/tritonserver/backends/dali/dali/libdali_operators.so(+0x440b79) [0x7f86de856b79]
[frame 3]: /opt/tritonserver/backends/dali/dali/libdali.so(dali::ThreadPool::ThreadMain(int, int, bool)+0x217) [0x7f8717263ae7]
[frame 4]: /opt/tritonserver/backends/dali/dali/libdali.so(+0x8ad9bf) [0x7f87179a89bf]
[frame 5]: /usr/lib/x86_64-linux-gnu/libpthread.so.0(+0x9609) [0x7f88d10f0609]
[frame 6]: /usr/lib/x86_64-linux-gnu/libc.so.6(clone+0x43) [0x7f88d0943293]

Current pipeline object is no longer valid.

@ioangatop ,
Thanks for checking! Indeed, I confirmed the error. We'll handle it

Hi @ioangatop,
FYI, I've just posted a PR #25 with a fix for this. Thanks for reporting!