fix(server) HEVC black screen on some linux config

Fix for https://github.com/alvr-org/ALVR/issues/2202
After a bit of bisection, I found out that reverting this line fixed the blackscreen issue on my config.
WARN: even though I found that it fixes the issue I do not precisely understand why it does so.

So, from what I understand, the gop_frame is the frequency of intra_frame sending. I guess we have a very large number as it is not very usefull in the context of ALVR.
However it might be advised to ask @galister if reverting this modif is ok

May I ask what distro?

I am on arch

Tbh I don't understand why it's that ridiculously high anyways

Because we want to insert idrs/I frames when we want to not at the end of gop so higher sized gop means less "unexpected" idr/I frames

Ik, but int max is still ridiculous

Would this insert I frames or IDR frames? Because if it's I frames I see no issue with possibly wrongly inserting one every ~4 minutes at 120 fps

May  I ask if you have any news here ?
Newbie question : you that "I" frames were ok, so I guess that IDR are not. What is the different between the two and how do they impact with alvr ?

May I ask if you have any news here ?
Newbie question : you that "I" frames were ok, so I guess that IDR are not. What is the different between the two and how do they impact with alvr ?

I frames are frames that aren't encoded as differences to previous frames. IDR frames do this but also don't allow any frames before the I frame to be referenced. This will cause pixelated frames because without all the encoding tricks only a pixelated frame can satisfy the bitrate requirements for an IDR frame.

I would add, the workaround should be documented with a comment explaining the reasons behind it.

updated

Needs rebasing


Dracula theme for Chatterino

Made this theme for Chatterino! 😁
https://github.com/iSpace202/Dracula-for-Chatterino/

Hey, that's very cool! ✨
I just sent you an invitation to join the organization.
I also cloned your repository for Dracula's organization, so you can go ahead and delete or archive yours:

Your repository.
New repository.

Thanks for building this! 🎉


CreateAnd*Patch now GETs the object if it already exists

How to categorize this PR?

/area dev-productivity
/kind task
What this PR does / why we need it:
As discussed in https://github.com/gardener/gardener/pull/4027#issuecomment-851942595 and ff.
/invite @timebertt
Release note:

NONE

/squash


[FEATURE]  Want to add our Contributor page in the website

Description
Details
Is your feature request related to a problem? Please describe.
Our Contributors page in the website
Describe the solution you'd like
We can add a Contributors page in the website. which is shows the name and the profile image of the contributor.and the number of commits is done by the contributor
Screenshots
No response
Additional information
No response

This is not needed for this project. Pls work on other good issues.


Refactor starting equipment choices

What does this do?
This PR refactors starting equipment resources, replacing an arbitrary number of choice_n attributes with a single choices array for each class' starting equipment entry.
This achieves several things:

Computer-friendliness - The existing format requires the data consumer to read the number choices_to_make, and then iterate over the attributes of the pattern choice_n - this is effectively a long-winded implementation of a JSON array; hence, this PR replaces these attributes with a single array, allowing for much more straight-forward reading by the client code.
Code Reusability - By using choice structures for each set of choices to be made, instead of arrays, the logic involved in selecting an item can be reused for selecting which choice should be made by the user.
Remove unnecessary choices - Previously, in an attempt to remain consistent, where there was a choice between 1 specific item, or any item from an equipment category, both options would be supplied in a choice structure. This PR removes unnecessary choice structures, by replacing them with single equipment objects, or arrays of equipment objects, where more than one item must be chosen, e.g. when a ranged weapon comes with ammunition.

How was it tested?
ESLint to validate JSON.
Here's a fun image for your troubles

Other than those changes, I think this looks great. I like the use of Equipment categories as well.

@bagelbits I'm fine with it as I merged it 😁

Nice


SQL Generation for Custom Changes no longer working in 4.22.0

Search first

[X] I searched and no similar issues were found

Description
Since #4054 custom sql changes do no longer generate code if they are run with updateSQL mode, applying the changes with update works fine.
Steps To Reproduce
I've created a reproduction case here:
https://github.com/tarioch/liquibase-issue
When running mvn liquibase:updateSQL it doesn't generate the custom sql change, with a version before #4054 it works fine and generates it.
Expected/Desired Behavior
Custom SQL Change is also generated in updateSQL mode
Liquibase Version
4.22.0
Database Vendor & Version
No response
Liquibase Integration
No response
Liquibase Extensions
No response
OS and/or Infrastructure Type/Provider
No response
Additional Context
No response
Are you willing to submit a PR?

[ ] I'm willing to submit a PR (Thank you!)

Hi @tarioch , how are you?
Liquibase version 4.23.0 just came out, so I ran your code with the updated version, and I was able to get it to work.
Just in case, I created my own custom changeset to run alongside yours, and the code for both was created:

As you can see, the code for two custom changesets is generated.
In conclusion, try updating to the latest Liquibase version, and it should work for you.
I will be closing this ticket, though be sure to reopen it if the issue persists.

Hi @tati-qalified
looking at your screenshot the issue is still present. The sql for the custom change is missing. The insert into the changelog was always there, the issue is that the actual custom sql change is missing in generation mode.

So on 4.20.0 the produced sql is
-- *********************************************************************
-- Update Database Script
-- *********************************************************************
-- Change Log: changelog.xml
-- Ran at: 6/29/23, 12:57 PM
-- Against: null@jdbc:sqlite:example.db
-- Liquibase version: 4.20.0
-- *********************************************************************

-- Create Database Lock Table
CREATE TABLE DATABASECHANGELOGLOCK (ID INTEGER NOT NULL, LOCKED BOOLEAN NOT NULL, LOCKGRANTED TEXT, LOCKEDBY VARCHAR(255), CONSTRAINT PK_DATABASECHANGELOGLOCK PRIMARY KEY (ID));

-- Initialize Database Lock Table
DELETE FROM DATABASECHANGELOGLOCK;

INSERT INTO DATABASECHANGELOGLOCK (ID, LOCKED) VALUES (1, 0);

-- Lock Database
UPDATE DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = 'vwmazapxvd-1 (<IP_ADDRESS>)', LOCKGRANTED = CURRENT_TIMESTAMP WHERE ID = 1 AND LOCKED = 0;

-- Create Database Change Log Table
CREATE TABLE DATABASECHANGELOG (ID VARCHAR(255) NOT NULL, AUTHOR VARCHAR(255) NOT NULL, FILENAME VARCHAR(255) NOT NULL, DATEEXECUTED TEXT NOT NULL, ORDEREXECUTED INTEGER NOT NULL, EXECTYPE VARCHAR(10) NOT NULL, MD5SUM VARCHAR(35), DESCRIPTION VARCHAR(255), COMMENTS VARCHAR(255), TAG VARCHAR(255), LIQUIBASE VARCHAR(20), CONTEXTS VARCHAR(255), LABELS VARCHAR(255), DEPLOYMENT_ID VARCHAR(10));

-- Changeset changelog.xml::1::Liquibase
-- WARNING The following SQL may change each run and therefore is possibly incorrect and/or invalid:
exec myDummy();

INSERT INTO DATABASECHANGELOG (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('1', 'Liquibase', 'changelog.xml', CURRENT_TIMESTAMP, 1, '8:e7c4a15d2f0309bb7124d88c1e74eb80', 'customChange', '', 'EXECUTED', NULL, NULL, '4.20.0', '8036244405');

-- Release Database Lock
UPDATE DATABASECHANGELOGLOCK SET LOCKED = 0, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1;

using 4.23.0, it looks like this
-- Create Database Lock Table
CREATE TABLE DATABASECHANGELOGLOCK (ID INTEGER NOT NULL, LOCKED BOOLEAN NOT NULL, LOCKGRANTED TEXT, LOCKEDBY VARCHAR(255), CONSTRAINT PK_DATABASECHANGELOGLOCK PRIMARY KEY (ID));

-- Initialize Database Lock Table
DELETE FROM DATABASECHANGELOGLOCK;

INSERT INTO DATABASECHANGELOGLOCK (ID, LOCKED) VALUES (1, 0);

-- Lock Database
UPDATE DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = 'vwmazapxvd-1 (<IP_ADDRESS>)', LOCKGRANTED = CURRENT_TIMESTAMP WHERE ID = 1 AND LOCKED = 0;

-- Create Database Change Log Table
CREATE TABLE DATABASECHANGELOG (ID VARCHAR(255) NOT NULL, AUTHOR VARCHAR(255) NOT NULL, FILENAME VARCHAR(255) NOT NULL, DATEEXECUTED TEXT NOT NULL, ORDEREXECUTED INTEGER NOT NULL, EXECTYPE VARCHAR(10) NOT NULL, MD5SUM VARCHAR(35), DESCRIPTION VARCHAR(255), COMMENTS VARCHAR(255), TAG VARCHAR(255), LIQUIBASE VARCHAR(20), CONTEXTS VARCHAR(255), LABELS VARCHAR(255), DEPLOYMENT_ID VARCHAR(10));

-- *********************************************************************
-- Update Database Script
-- *********************************************************************
-- Change Log: changelog.xml
-- Ran at: 6/29/23, 12:59 PM
-- Against: null@jdbc:sqlite:example.db
-- Liquibase version: 4.23.0
-- *********************************************************************

-- Changeset changelog.xml::1::Liquibase
-- WARNING The following SQL may change each run and therefore is possibly incorrect and/or invalid:
INSERT INTO DATABASECHANGELOG (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('1', 'Liquibase', 'changelog.xml', CURRENT_TIMESTAMP, 1, '9:cac71f1adc2b0955308a7cd9786eca3f', 'customChange', '', 'EXECUTED', NULL, NULL, '4.23.0', '8036372463');

-- Release Database Lock
UPDATE DATABASECHANGELOGLOCK SET LOCKED = 0, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1;

As you can see the actual custom sql change is missing
-- Changeset changelog.xml::1::Liquibase
-- WARNING The following SQL may change each run and therefore is possibly incorrect and/or invalid:
exec myDummy();

@filipelautert - could you check and see if this is a new error in the Java API?

PR https://github.com/liquibase/liquibase/pull/4424 that was merged on 4.25.0 was aimed to fix this. Could you confirm it works @tarioch ?

Yes, I can confirm that now it's fixed, thank you very much


AMBARI-23445 Refactor metrics_alert to support multiple nameservices

What changes were proposed in this pull request?
(Please fill in changes proposed in this fix)
How was this patch tested?
mvn -pl ambari-server -DskipSurefireTests test
on sid-nn cluster
It contains a fix also for the unit test part of https://issues.apache.org/jira/browse/AMBARI-23449
(Please explain how this patch was tested. Ex: unit tests, manual tests)
(If this patch involves UI changes, please attach a screen-shot; otherwise, remove this)
Please review Ambari Contributing Guide before opening a pull request.
@swagle Please review

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1660/
Test PASSed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1682/
Test FAILed.
Test FAILured.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1686/
Test PASSed.

This value is used in other alerts. It is not correct solution that you fixed it only for one alert. While other remain broken.

example is namenode_webui_alert


[TEST] POC for column/row/metadata block

Codecov Report

:exclamation: No coverage uploaded for pull request base (multi_stage_query_engine@07a0bdf). Click here to learn what that means.
The diff coverage is n/a.

@@                     Coverage Diff                     @@
##             multi_stage_query_engine    #8583   +/-   ##
===========================================================
  Coverage                            ?   15.24%
  Complexity                          ?      303
===========================================================
  Files                               ?     1678
  Lines                               ?    87476
  Branches                            ?    13242
===========================================================
  Hits                                ?    13339
  Misses                              ?    73149
  Partials                            ?      988

Flag
Coverage Δ

unittests2
15.24% <0.00%> (?)

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

Continue to review full report at Codecov.

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


install Atom with software installer in Fedora 34.

install Atom with software installer in Fedora 34.
I use Filezilla for ftp for edit files, i can’t chose Atom.
edit > settings > file editting
please help me.
Originally posted by @yanikturgeon in https://github.com/atom/atom/discussions/22585

Maybe this tutorial will help?
https://filezillapro.com/docs/v3/advanced/how-to-set-text-editor-in-three-different-ways/
Atom is usually located at /usr/share/atom/atom. You can set your editor as /usr/share/atom/atom in the Filezilla settings.
(Or for Atom Beta, Nightly or Dev editions, you can set it to: /usr/share/atom-beta/atom... /usr/share/atom-nightly/atom... /usr/share/atom-dev/atom.)

Maybe this tutorial will help?
https://filezillapro.com/docs/v3/advanced/how-to-set-text-editor-in-three-different-ways/
Atom is usually located at /usr/share/atom/atom. You can set your editor as /usr/share/atom/atom in the Filezilla settings.
(Or for Atom Beta, Nightly or Dev editions, you can set it to: /usr/share/atom-beta/atom... /usr/share/atom-nightly/atom... /usr/share/atom-dev/atom.)

Thanks for your reply. Much appreciated.
Sadly on Fedora 34 the executable file of Atom is not located in /usr/share/atom/atom.

Thanks again for your help.

You can just run the command which atom in any terminal window to see where it's installed.

Thanks
Much appreciated.
When I run the command, I get:
which atom/usr/bin/which: no atom in
(/home/yanik/.local/bin:/home/yanik/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/lib/snapd/snap/bin)
But I do have Atom Installed
Still not sure...
Thanks
On Mon, Jul 5, 2021 at 10:53 AM ricardograca-scratch @.***>
wrote:
You can just run the command which atom  in any terminal window to see where
it's installed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

In my case (Ubuntu 20.04) it's in /usr/bin/atom, but it seems you don't have Atom installed in any of the paths in the PATH variable, so it's probably not in that location in your case. My guess is that you didn't install using the rpm package available on: https://github.com/atom/atom/releases so it's in some other location.

Thanks, I'll check it out.
On Mon, Jul 12, 2021 at 11:34 AM ricardograca-scratch @.***>
wrote:
In my case (Ubuntu 20.04) it's in /usr/bin/atom, but it seems you don't have
Atom installed in any of the paths in the PATH  variable, so it's probably not
in that location in your case. My guess is that you didn't install using the rpm
package available on: https://github.com/atom/atom/releases  so it's in some
other location.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.


Add gas adjustment feature

In GoZ Phase 1, I saw some people having difficulty calculating gas consumption. And, it is actually hard to almost everyone to calculate the gas consumption before sending tx.
Using the fixed gas for every tx might be wasteful and might be risky in the case that gas consumption for tx is not constant (for example, transactions that relay packets, the commitment length of the packet may change in each case).
So, supporting the gas adjustment feature is useful to many cases.
When people set the chain config as
- key: genesis
  chain-id: test
  rpc-addr: http://<IP_ADDRESS>:26657
  account-prefix: cosmos
  gas: 200000
  gas-adjustment: 1.15
  gas-prices: 0.0025utest1
  default-denom: utest1
  trusting-period: 15m

the gas will be ignored because the gas adjustment is set, and relayer will simulate the gas before sending tx and gas will be set as a multiplier of simulated gas * gas adjustment automatically.

I just realized that this PR duplicates #253.

Closing this in favor of https://github.com/iqlusioninc/relayer/pull/253


Cannot run pack.sh in macOS 11.6

I cannot run this command from eval/pack.sh in my macOS 11.6.
openssl enc -aes-256-cbc -salt -in submissions/"${1}"-metadata.json \
  -out submissions/"${1}"-metadata.json.enc -pass file:submissions/"${1}".key.bin -pbkdf2

I found that I can run it after removing -pbkdf2 parameter, but I don't know if it will be evaluated properly.

It seems to be due to the fact that the default openssl in macOS is LibreSSL, which does not support pbkdf2. I switched to the openssl in miniconda and updated my PRs.


Map-Component does not show marker when location selected

Description of the bug

When using component Map , there is a bug when selecting a location on the map where the marker icon does not appear, rather a text with "marker" instead. The network log seems to indicate that the component tries to access a random png form the altinn cdn that returns 404
GET https://altinncdn.no/toolkits/altinn-app-frontend/3/a0c6cc1401c107b501ef.png 404
GET https://altinncdn.no/toolkits/altinn-app-frontend/3/2b3e1faf89f94a483539.png 404
...
Steps To Reproduce

create a test form that uses the Map component
{      "id": "RANDOM_UUID",      "type": "Map",      "textResourceBindings": {        "title": "locationText"      },      "dataModelBindings": {        "simpleBinding": "Location"      },      "required": true,      "readOnly": false    },
deploy or run the form locally
click on a location in the map window
observe that the normal map parker icon does not load, rather the text "marker"
check the network debugger and see that the component looks for the marker icon in the wrong place.

Additional Information
No response

Running app-frontend-react locally and serving the css from localhost:8080 on altinnd-design-system 0.6.0 renders the marker icon OK without the failed call to altinncdn

Root cause: deploy to cdn only takes altinn-app-frontend.js and altinn-app-frontend.css , discarding everything else in the dist - folder, while webpack bundles the required png - files in the dist - folder as well.

Closing and opening in correct project


what this!, return a empty object?

import {
  JsonConvert,
  JsonObject,
  JsonProperty,
  OperationMode,
  ValueCheckingMode,
} from "json2typescript";

@JsonObject("User")
class User {
  @JsonProperty("username", String)
  username: string;
  @JsonProperty("password", String)
  password: string;
}

const json: object = {
  username: "admin",
  password: "admin",
  other: "other",
};

const jsonConvert = new JsonConvert();
jsonConvert.operationMode = OperationMode.LOGGING;
jsonConvert.ignorePrimitiveChecks = false;
jsonConvert.valueCheckingMode = ValueCheckingMode.DISALLOW_NULL;

const result = jsonConvert.deserializeObject(json, User);
console.log(result, result.username);

return

Receiving JSON object:
{ username: 'admin', password: 'admin', other: 'other' }
Returning CLASS instance:
User {}
----------
User {} undefined

I wrote it against the official code?   What did I do wrong?
Why ?

ts-node 执行代码
版本 "json2typescript": "^1.4.1",

Hello @imohuan and thank you for your question!
I think everything is correct except a little detail:

Important note: You must assign any (valid) value or undefined to your property at initialization, otherwise our mapper does not work and will simply ignore the property.

(from the docs)
Try this and it should work:
@JsonObject("User")
class User {
  @JsonProperty("username", String)
  username: string = "";
  @JsonProperty("password", String)
  password: string = "";
}

thanks!
** Maybe I didn't see it **


Missing ETCS field

Versions (Do not change)

Frontend: v0.13.0
Authentication Management: v0.12.0
Course Management: v0.12.2
User Management: v0.12.0
Matriculation Management: v0.12.1
Certificate Management: v0.12.0
Examination Regulations Management: v0.12.3

Describe the bug
There is no etc field in the course creation of the admin.
To Reproduce
Steps to reproduce the behavior:

Login as Admin
Open the create a course menu
Look at the missing field

Expected behavior
There should be an etcs field
Desktop (please complete the following information):

OS: Windows
Browser: Chrome

This was a design decision, we are aware of. We did not implement the field (for lecturers too), as we planned to get the ECTS information from the ExReg at some point. This is now obsolete, hence we will add the field


 What else would you like changing? I don't see your comments anywhere....

Sorry, forgot to publish the review :)

@rickhewes , look nice! I will merge your PR and release a new version in a few days

@factyy I have another addition re CHUNK_SIZE. Maybe hold off releasing another version. Let me get the pull request going.

Ok, lets do it this way


Try using Mesa LLVMpipe for no-GPU testing

@bjorn3 mentioned in https://github.com/EmbarkStudios/rust-gpu/issues/134#issuecomment-716101846 that Mesa's LLVMpipe can be a possibility for headlessCI testing.
Did some quick investigation and LLVMpipe has traditionally supported OpenGL but has recently merged in early Vulkan support ("Vallium"). It likely isn't that mature yet but it would be really interesting to try out and see it this can be an additional path for us for doing software-based testing of our graphics shaders, esp. targetting Linux CI.
Would be great if someone can simply try out just running our current Vulkan example program & shader with latest LLVMpipe and see if it works, or what issues there are with it, and report back here.

(This was discussed on Discord. Putting it here as a matter of record)
Another option would be SwiftShader: https://github.com/google/swiftshader. It is conformant implementation of the Vulkan Spec (at least on 64-bit Linux) as described here: https://www.khronos.org/conformance/adopters/conformant-products#submission_403
I'll try to compile the latest commit and run the current examples against it.

SwiftShader doesn't seem to an ideal candidate for running headlessCI tests right now.
The following capabilities are currently unsupported:

VulkanMemoryModel (5345)
VariablePointers (4442)

/home/nipun/swiftshader/src/Pipeline/SpirvShader.cpp:388 WARNING: UNSUPPORTED: Unsupported capability 5345
/home/nipun/swiftshader/src/Pipeline/SpirvShader.cpp:388 WARNING: UNSUPPORTED: Unsupported capability 4442
/home/nipun/swiftshader/src/Pipeline/SpirvShader.cpp:720 WARNING: UNSUPPORTED: SPIR-V Extension: SPV_KHR_vulkan_memory_model
/home/nipun/swiftshader/src/Pipeline/SpirvShader.cpp:467 WARNING: UNREACHABLE: FunctionParameter should have already been lowered.
/home/nipun/swiftshader/src/Pipeline/SpirvShader.cpp:725 WARNING: UNSUPPORTED: ReturnValue
/home/nipun/swiftshader/src/Pipeline/SpirvShader.cpp:467 WARNING: UNREACHABLE: FunctionParameter should have already been lowered.
/home/nipun/swiftshader/src/Pipeline/SpirvShader.cpp:467 WARNING: UNREACHABLE: FunctionParameter should have already been lowered.
/home/nipun/swiftshader/src/Pipeline/SpirvShader.cpp:467 WARNING: UNREACHABLE: FunctionParameter should have already been lowered.
/home/nipun/swiftshader/src/Pipeline/SpirvShader.cpp:725 WARNING: UNSUPPORTED: ReturnValue
/home/nipun/swiftshader/src/Pipeline/SpirvShader.cpp:467 WARNING: UNREACHABLE: FunctionParameter should have already been lowered.
/home/nipun/swiftshader/src/Pipeline/SpirvShader.cpp:467 WARNING: UNREACHABLE: FunctionParameter should have already been lowered.
Segmentation fault (core dumped)

Both the ash example and the wgpu example generates warnings about this. The ash example crashes the moment it is launched, but the wgpu example runs despite the warnings.

Using VK_ICD_FILENAMES=/nix/store/n2kzvhfcsvrxyh11ma5frpdll4gn3dns-swiftshader-2020-11-20/share/vulkan/icd.d/vk_swiftshader_icd.json cargo run --bin example-runner-wgpu (specifically at https://github.com/google/swiftshader/commit/6d612051c083238db89541be4fbb2d624a9baef4) I get:
    Finished dev [unoptimized + debuginfo] target(s) in 0.19s
     Running `target/debug/example-runner-wgpu`
SPIR-V ERROR: 0:0 PushConstant id '8' is missing Block decoration.
From Vulkan spec, section 14.5.1:
Such variables must be identified with a Block decoration
  %shared__ShaderConstants = OpTypeStruct %uint %uint %float

SPIR-V WARNING: 0:0 PushConstant id '8' is missing Block decoration.
From Vulkan spec, section 14.5.1:
Such variables must be identified with a Block decoration
  %shared__ShaderConstants = OpTypeStruct %uint %uint %float

Segmentation fault (core dumped)

I was getting the same exact output with the packaged swiftshader-2020-06-17 (https://github.com/google/swiftshader/commit/763957e6b4fc1aa360ab19c4109b8b26686783e8), which is why I tried switching it to the latest revision, but that clearly didn't fix anything. I'm also not seeing any difference between the wgpu and ash runners.
@nipunG314 Do you happen to know what exact SwiftShader and Rust-GPU revisions you used to get those warnings?
Maybe the changes to the examples (or the SPIR-V backend, or any of the post-processing etc.) made it worse (or better but still hitting warnings + crashes).

It froze my system and led to a crash. My system is over 5 years old, so it may not be an issue on more modern computers.

I noticed it's compiling LLVM, and I guess something goes wrong with --parallel (sigh it's probably nesting makes incorrectly), but also you may need a bunch of RAM to link LLVM, if not compile it. -j4 is a decent stopgap, but ideally this kind of thing would be built on a dedicated build server, not a regular dev machine.
I can get away with having Nix offload the build to the multi-user EPYC server I use for hacking on rustc, but if Rust-GPU starts using SwiftShader for testing, we should probably have some sort of CI build (unless Google has prebuilds somewhere I'm missing?), for the cases where distro builds are missing / outdated (and for non-Linux).

With a debug build (cmake -DCMAKE_BUILD_TYPE=Debug -DSWIFTSHADER_WARNINGS_AS_ERRORS=0), I get:
/build/SwiftShader-6d61205/src/Vulkan/VkShaderModule.cpp:34 ABORT: ASSERT(spirvTools.Validate(getCode()))

But I'm not sure how related it is, and this happens before those warnings, and there's no additional output presented.

After building a proper unoptimized debug build, and combining that with -DCMAKE_CXX_FLAGS=-DNDEBUG to remove the above ASSERT, I can finally see the cause of the crash: this load-bearing assertion doesn't fire (because ASSERT is a noop in release builds), and apparently the iterator over instructions assumes insns isn't empty.
The same assert is also in the caller (but also doesn't fire, for the same reason), and I'm guessing running the SPIRV-Tools Optimizer failed silently.

As suspected, SPIRV-Tools' Optimizer::Run returns false on failure, but SwiftShader ignores the return value.
However, it's unclear why validation failed
Oh, I missed that one of the "warnings" is actually ERROR. So getting SwiftShader to work is blocked on either solving #247, or patching it to disable validation (and hope that SPIRV-Tools can still work).

Decided to try patching it to disable validation, and it works! (the extra true is the skip_validation parameter)

Both wgpu and ash work just as well, with the same set of warnings:
/build/SwiftShader-6d61205/src/Pipeline/SpirvShader.cpp:388 WARNING: UNSUPPORTED: Unsupported capability 5345
/build/SwiftShader-6d61205/src/Pipeline/SpirvShader.cpp:388 WARNING: UNSUPPORTED: Unsupported capability 4442
/build/SwiftShader-6d61205/src/Pipeline/SpirvShader.cpp:721 WARNING: UNSUPPORTED: SPIR-V Extension: SPV_KHR_vulkan_memory_model
/build/SwiftShader-6d61205/src/Pipeline/SpirvShader.cpp:388 WARNING: UNSUPPORTED: Unsupported capability 5345
/build/SwiftShader-6d61205/src/Pipeline/SpirvShader.cpp:388 WARNING: UNSUPPORTED: Unsupported capability 4442
/build/SwiftShader-6d61205/src/Pipeline/SpirvShader.cpp:721 WARNING: UNSUPPORTED: SPIR-V Extension: SPV_KHR_vulkan_memory_model

So we can probably start using unmodified SwiftShader once #247 is addressed.

And the usual on a headless server:
Xvfb :0&
x11vnc -display :0 -localhost&
DISPLAY=:0 VK_ICD_FILENAMES=.../share/vulkan/icd.d/vk_swiftshader_icd.json cargo run --bin example-runner-wgp

seems to be working as well!

Filed two tickets on the SwiftShader repo, one for VariablePointer support and one for VK_KHR_memory_model support (https://issuetracker.google.com/issues/176819537 and https://issuetracker.google.com/issues/176819536)

Filed two tickets on the SwiftShader repo, one for VariablePointer support and one for VK_KHR_memory_model support (https://issuetracker.google.com/issues/176819537 and https://issuetracker.google.com/issues/176819536)

Looks like at least the VK_KHR_vulkan_memory_model issue has been fleshed out further and some type of support in, but the VK_KHR_vulkan_memory_model issue the devs had some more questions.
Would be so nice to be able to get in some initial headless CI testing of Rust GPU in this repo!
And if it can work here for our example/test shaders, wonder what would be needed for our more advanced Ark Rust shaders

One thing that I've noticed more recently is Mesa's lavapipe (see this Phoronix article, or the Mesa 20.3 changelog), especially as I was trying to get a (mixed vendor) multi-GPU setup working, and it was always present - and I suspect it might be easier to get access to in CI, we just need offscreen render tests and a distro with recent Mesa packages, IIUC.
Though testing both SwiftShader and lavapipe wouldn't be a bad idea, we could require that at least one of them passes, in case their limitations start showing (or we trigger bugs in them etc.).

Speaking of the multi-GPU setup, I didn't get to play a lot with it, but I did get it to the point where I have an Intel iGPU, and two dGPUs (both of them small low-profile cards, mostly so that I don't waste a lot of power nor need an expensive/loud PSU):

Nvidia Kepler (Quadro K600)
AMD GCN1 / Oland (Radeon R5 240)

(click to open a screenshot from `vulkaninfo`, showing all 3 GPUs)

The machine has no persistent storage and boots off the network (from my main workstation), and I could easily set something up to run a test via SSH with no monitors attached - but I need to change the runners to support offscreen rendering first.
If you want to follow along, I've kept my configuration in https://github.com/LykenSol/GPU-TestBox.


Ability to set dev or production branches for KDM references

Manual process today right before and after the release:
Create a PR that moves from development branches to production branches for kontainer-driver-metadata (KDM).
Update variables in settings/settings.go

KDMBranch - Branch where KDM is pointed to

Update arguments in package/Dockerfile

CATTLE_KDM_BRANCH - Branch where KDM is pointed to

Update the environment variable in Dockerfile.dapper

CATTLE_KDM_BRANCH - Branch where KDM is pointed to and this is used for CI to download files

Update the command to identify the directory and current branch instead of using flags.
The user will go to the local rancher repo, switch to the base branch and will not need to set the current set kdm branch, the command needs to automatically identify these infos.
rancher_release-darwin-arm64 set-kdm-branch-refs --new-kdm-branch DEMO --create-pr

Additional:

The command should print out the current value it detects and the new value to be applied; it will be more convenient to print out the filenames after changes are done.
Operators usually make changes and submit PR from a dedicated branch instead of the default release-v2.7/v2.8, so when create-pr is set, it should create & make PR from a new branch automatically in the background.


[TC-WNCV-4.x] Yamls are missing: Advanced Commands Test Cases

Problem
<what's wrong or missing, please include any applicable:

GoTos Positions commands need testing, see below

3.4.1. [TC-WNCV-4.1] GoToLiftPercentage Long-Run Verification with server as DUT
3.4.2. [TC-WNCV-4.2] GoToTiltPercentage Long-Run Verification with server as DUT
3.4.3. [TC-WNCV-4.3] GoToLiftPercentage Limits Verification with server as DUT
3.4.4. [TC-WNCV-4.4] GoToTiltPercentage Limits Verification with server as DUT

Will close this https://github.com/project-chip/connectedhomeip/issues/14230 once fixed/added


Enforce autoplacement of wells in the data loaded with .open_projectfile_data

Our Well package doesn't support a layer specified by the user. iMOD5 does support this.
To fix this, we might require something like a LayeredWell object, congruent with the HFB package.
Requirements

If necessary, force autoplacement of wells, for example by setting layer number to 0 in the dictionary loaded with open_projectfile_data
Log warning that we are not supporting placing wells to a specified layer
If filter_top and filter_bottom are not present in the data, throw error upon calling from_imod5_data.

Autoplacement was already enforced, warning messages and error have been added in #1104


[Question] How to actually open UWPHook?

I know that sound stupid, but I have no idea how to actually use UWPHook, as there is no EXE or something obvious for me to use.
Sorry.

Go into this page: https://github.com/BrianLima/UWPHook/releases
Download "release.zip"
unzip it and place all the files in a folder on your pc
Run UWPHook.exe
No need to apoligize :D

Thanks so much.  Somehow I missed that!  Looks great by the way.

Update: The original zip didn't have the exe, must be an error when downloading.  Or most likely I deleted it on accident.


GridEngine and Parasol batch systems assume file job store

Both access config.jobStore, assume it points to a directory and attempt to create a file in there.

Do you mean grid engine instead of mesos?

Indeed. Fixing ...

This should be an enhancement. I'll tweak the title a bit.


[ISSUE #6677]Client Method RebalanceImpl#computePullFromWhere is marked with @Deprecated replace with computePullFromWhereWithException

Which Issue(s) This PR Fixes

Fixes #6677
Brief Description

Client Method RebalanceImpl#computePullFromWhere is marked with @Deprecated replace with computePullFromWhereWithException

Codecov Report

Merging #6678 (a902155) into develop (7903c70) will decrease coverage by 0.07%.
The diff coverage is 50.00%.

@@              Coverage Diff              @@
##             develop    #6678      +/-   ##
=============================================
- Coverage      43.04%   42.98%   -0.07%
+ Complexity      9019     9008      -11
=============================================
  Files           1109     1109
  Lines          78591    78597       +6
  Branches       10226    10227       +1
=============================================
- Hits           33831    33785      -46
- Misses         40527    40576      +49
- Partials        4233     4236       +3

Impacted Files
Coverage Δ

...e/rocketmq/client/impl/consumer/RebalanceImpl.java
31.30% <33.33%> (-0.06%)
:arrow_down:

...mq/client/impl/consumer/RebalanceLitePullImpl.java
61.33% <100.00%> (-9.90%)
:arrow_down:

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


v46.0: cannot find MSVC on 32 bits python

on a 32 bits win7  with python 3.6 32 bits and MSVC 2017, setuptools v 46.0 cannot find MSVC:
 error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
It worked OK with setuptools 45.2 (did not test with 45.3), and 46.0 is working with python 64 bits on a 64 bits machine.

linking related issues:
Update docs for required compilers for Windows
setuptools fails to build a windows python 3.5 C extension on GitHub Actions (msvc)
PR included in 46.0 (I drafted that following a comment by @zooba in the first linked issue):
Use CPython 3.8.0 mechanism to find msvc 14+
I probably missed something but I don't see what...
I only have CI at my disposal to test and it's working with all major CI providers as part of cibuildwheel tests (where CPython 2.7, 3.5, 3.6, 3.7 & 3.8, both 32-bit and 64-bit) and I added some tests here in setuptools.
Unfortunately, I can't reproduce the specific environment so unable to reproduce the issue.
@EccoTheFlintstone, could you please check if you're seeing a similar issue with CPython 3.8 32-bit (once using setuptools, once only using distutils). If you don't have a similar issue with cp38-distutils only, then I definitely missed something in the backport.


remove hoist as it's not being used

If you add it here it can be removed from next-server. Otherwise it's needed.
https://github.com/zeit/next.js/blob/canary/packages/next/build/webpack.js#L35


Fixed test phpunit.

Q
A

Is bugfix?
✔

New feature?
❌

Breaks BC?
❌

BC and Rector are not happy.


The services.yml playbook fails due to some Undefined variable which can't be JSON-encoded

TASK [kube_prometheus : copy kube-prometheus values into temporary file] *********************************************************************************************************************************************************************
fatal: [metalk8s-master-01 -> <IP_ADDRESS>]: FAILED! => {
    "changed": false,
    "msg": "AnsibleError: Unexpected templating type error occurred on (deployExporterNode: False\ngrafana:\n  extraVars:\n    - name: 'GF_SERVER_ROOT_URL'\n      value: '%(protocol)s://%(domain)s/api/v1/namespaces/kube-ops/services/kube-prometheus-grafana:http/proxy/'\n  service:\n    labels:\n      kubernetes.io/cluster-service: \"true\"\n      kubernetes.io/name: \"Grafana\"\n\nprometheus:\n  externalUrl: '/api/v1/namespaces/kube-ops/services/kube-prometheus:http/proxy/'\n  service:\n    labels:\n      kubernetes.io/cluster-service: \"true\"\n      kubernetes.io/name: \"Prometheus\"\n  replicaCount: 2\n{% if kube_prometheus_secret|default %}\n  secrets:\n{% for secret in kube_prometheus_secret %}\n  - {{ secret }}\n{% endfor %}\n{% endif %}\n  storageSpec:\n    volumeClaimTemplate:\n      spec:\n        accessModes: [\"ReadWriteOnce\"]\n        resources:\n          requests:\n            storage: {{ prometheus_storage_size }}\n\nalertmanager:\n  externalUrl: '/api/v1/namespaces/kube-ops/services/kube-prometheus-alertmanager:http/proxy/'\n  service:\n    labels:\n      kubernetes.io/cluster-service: \"true\"\n      kubernetes.io/name: \"Alertmanager\"\n  replicaCount: 2\n\nexporter-kube-etcd:\n  etcdPort: 2379\n  endpoints: {{ groups.etcd | map('extract', hostvars, ['ansible_default_ipv4', 'address'])|list|to_json }}\n  scheme: https\n  # Linked to the secret of prometheus\n{% if exporter_kube_etcd_certFile|default %}\n  certFile: {{ exporter_kube_etcd_certFile }}\n{% endif %}\n{% if exporter_kube_etcd_keyFile|default %}\n  keyFile: {{ exporter_kube_etcd_keyFile }}\n{% endif %}\n): Undefined is not JSON serializable"
}

NO MORE HOSTS LEFT ***************************************************************************************************************************************************************************************************************************

or less verbose:
Undefined is not JSON serializable

The problem appears to be in the template, there's the following:
  endpoints: {{ groups.etcd | map('extract', hostvars, ['ansible_default_ipv4', 'address'])|list|to_json }}

However, when adding a debug step for
groups.etcd | map('extract', hostvars, ['ansible_default_ipv4', 'address'])|list
we get
[Undefined, Undefined, Undefined]
FWIW, my cluster has 3 separate nodes for etc, not sure that's relevant though.

The service.yaml has gather_facts: False so ansible is not aware of the ansible_default_ipv4 of different servers. Putting to true is not the solution either: it will gather facts only about kube-master node (and we are interested in (etcd group)
on solution:
- hosts: etcd:k8s-cluster
  tasks:
      - debug: msg="whatever, but gather_facts is True here"

- hosts: kube-master
  [ the rest of the playbook ]

Or moving the first part in on playbook included in all other


fix client API change

Fix the client instantiation following API changes, following the changes in: https://github.com/SubstraFoundation/substra/pull/177

https://github.com/SubstraFoundation/substra/pull/177


TEROS pipeline - improve speed and memory consumption, outlier detection

See my comments in #23

Would it be useful to discuss this @ahopple ?

@bpbond @ahopple if this is good to go, can we merge so I can pull from it for the qa/qc document (issue #50 )

Let's just merge

Thank you @stephpenn1  - this was my PR obviously so please tell me if anything is unclear.


Issue on page /S34_vacuum_perception.html

I believe this is supposed to say inference instead of inferemce.

Fixed, thanks !!!! (might take a while before this updates on book site).


Generics Cleanup

Attempt to fix most of the issues with raw generics.
SubRoutinePool still has issues with casting to the right ProblemControllerProvider. If you have an idea how to fix that, let me know @schweikart.

Can you rebase onto develop?

@schweikart I rebased the branch


python setup.py egg_info did not run successfully.

Hi
I run the following script
pip install -r requirements.txt
but I get error
`Collecting deepspeed>=0.14.0 (from -r requirements.txt (line 21))
Using cached deepspeed-0.14.4.tar.gz (1.3 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
D:\miniconda3\envs\wenet\Lib\site-packages\torch\nn\modules\transformer.py:20: UserWarning: Failed to initialize NumPy: No module named 'numpy' (Triggered internally at ..\torch\csrc\utils\tensor_numpy.cpp:84.)
device: torch.device = torch.device(torch._C._get_default_device()),  # torch.device('cpu'),
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\Jason\AppData\Local\Temp\pip-install-2lhkoh0b\deepspeed_4d132ab59b764e1db3964df21ed112da\setup.py", line 181, in
abort(f"Unable to pre-compile {op_name}")
File "C:\Users\Jason\AppData\Local\Temp\pip-install-2lhkoh0b\deepspeed_4d132ab59b764e1db3964df21ed112da\setup.py", line 53, in abort
assert False, msg
^^^^^
AssertionError: Unable to pre-compile async_io
DS_BUILD_OPS=1
 [WARNING]  async_io requires the dev libaio .so object and headers but these were not found.
 [WARNING]  If libaio is already installed (perhaps from source), try setting the CFLAGS and LDFLAGS environment variables to where it can be found.
 [WARNING]  One can disable async_io with DS_BUILD_AIO=0
 [ERROR]  Unable to pre-compile async_io
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.`
Among them, I found an error message prompt
UserWarning: Failed to initialize NumPy: No module named 'numpy'
What version of NumPy should I install？
When I tried to install numpy version 2.0.0，When I re-execute the following command
pip install -r requirements.txt
Got an error message containing the following message:
Among them, I found an error message prompt NumPy 1. x cannot be run in NumPy 2.0.0 as it may crash.
my environment
windows10 22H2
`python -m pip list
Package           Version

filelock          3.13.1
fsspec            2024.2.0
Jinja2            3.1.3
MarkupSafe        2.1.5
mpmath            1.3.0
networkx          3.2.1
numpy             2.0.0
pip               24.0
setuptools        70.1.1
sympy             1.12
torch             2.2.2+cu121
torchaudio        2.2.2+cu121
typing_extensions 4.9.0
wheel             0.43.0`

This issue has been resolved, there was an issue when installing deepspeed in windows environment. After cloning the deepspeed code and compiling it manually, deepspeed was successfully installed. After the installation is successful, run the pip install -r requirements.txt command again


Unable to power board with wall plug, but computer USB-C works!

I've been programming and testing the board using a USB-C cable connected to my computer - typical setup.. nothing fancy (Apple iMac, USB port on the keyboard)
BUT, when I connect the SAME cable to any wall wart (power adapter), the board fails to load or it loads the initial image (setup())  and doesn't run the loop().
I've tried several 5v wall power adapters, and which prove good when powering other USB-C devices, with the same cord I'm testing the display with.. ..
Any thoughts?

Further testing, I used the same USB-C cable and a large battery bank (used for charging cell phones on the go).. and the display works.
So, in closing,.. no 5v power adapter, regardless of wattage capability, will power the display fully.
Anyone else having this issue? Any suggestions?

Thank you! Great suggestion.. I uploaded a known good sketch, set GPIO15 to HIGH, it powered on PC USB as well as Wall Plug just fine.. no issues.
I will work with the programmer to address the code and see if we can find what is causing this..
On Apr 24, 2023, at 12:51 PM, Terry Stainton @.***> wrote:
I want to help but It seems an impossible situation! I have several for 7 months(!) and they will power from anything, including iPhone white cube chargers, so, I wonder if there is some upload in your LilyGO T-Display S3 that is the problem?
Have you uploaded a simple known good sketch that that used to run when you got it?
What do you think has changed?
-Terry
—
Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/T-Display-S3/issues/143#issuecomment-1520589446, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN4QDAGXNBRPOCVXRVO6ITXC24TFANCNFSM6AAAAAAXIZI2BI.
You are receiving this because you authored the thread.

Good news!
I have a community resource on GitHub here:
Https://github.com/teastainGit/LilyGO-T-display-S3-setup-and-examples
You may find something useful!
Cheers !
Terry

On Apr 24, 2023, at 2:41 PM, Jesse Matlock @.***> wrote:

Thank you! Great suggestion.. I uploaded a known good sketch, set GPIO15 to HIGH, it powered on PC USB as well as Wall Plug just fine.. no issues.
I will work with the programmer to address the code and see if we can find what is causing this..
On Apr 24, 2023, at 12:51 PM, Terry Stainton @.***> wrote:
I want to help but It seems an impossible situation! I have several for 7 months(!) and they will power from anything, including iPhone white cube chargers, so, I wonder if there is some upload in your LilyGO T-Display S3 that is the problem?
Have you uploaded a simple known good sketch that that used to run when you got it?
What do you think has changed?
-Terry
—
Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/T-Display-S3/issues/143#issuecomment-1520589446, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN4QDAGXNBRPOCVXRVO6ITXC24TFANCNFSM6AAAAAAXIZI2BI.
You are receiving this because you authored the thread.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.

May I ask a question? I can't get the Lilygo T Display to mount in my MacBook Air. Any ideas? I have installed both drivers mentioned in the GitHub. I can see the device in the USB tree. Thanks.

You have a 'TTGO' (!) not a LilyGO T-Display S3.
So use my GitHub repository with that in mind!
What programming environment are you using?

Hello @teastainGit
It's very kind of you to reply. The box says T display. My issue is getting it to mount on my MacBook Air. Are you saying I'm using the wrong drivers because I don't know what the board is?
I'll take another look, thank you.

Hello @teastainGit
It's very kind of you to reply. The box says T display. My issue is getting it to mount on my MacBook Air. I installed the drivers which are in GitHub pdf for this device.
But it won't mount.
Thank you

https://github.com/Xinyuan-LilyGO/T-Display-S3/assets/59874838/da7875c0-90be-46db-86b5-3d3062f29830

https://github.com/Xinyuan-LilyGO/TTGO-T-Display

Hi @teastainGit
Thanks for your reply. I see. Sorry about that. Lots to learn and I misunderstood. No combination of button holds and clicks makes a difference. This is an M1 Macbook Air. Thanks for your help.
Rich

With a modern Mac, one does not usually go to the Settings USB page to check if your ESP32 is connecting.
Are you using Arduino IDE ?
You can watch live connection, loss of connection right here:

and

Hi, that's what I expected. I was surprised I had to install drivers (I installed them both). It won't mount. I will show up in the terminal (twice) and in the USB tree (once) plus twice in Arduino. I have mashed it up somewhere.

The 'Board Info' feature on Arduino IDE where it tries to "Guess  Your Board"  is useless for ESP32 and serves as an upsetting distraction, solely.
Have looked at the Arduino IDE  "Select Other Board and Port"? whilst connecting, as I showed?
Also M1 Macs are very fussing about USB versus Thunderbolt. MY LilyGO products only connect using TB cables in the TB ports on the back...my older non S3 boards only connect to the native USB ports on the back.

Hi @teastainGit I cracked it. It was my understanding of GitHub and libraries which you helped me fathom. A clean install made all the difference. Thanks very much! It was very kind of you. A huge leap forward in  my grasp of it.

Great to hear!!!
Cheers, -Terry

Thanks again @teastainGit
I'm just an artist with an interest in tech. You have helped greatly


header for all request

is there anyway to put same header for all request?

Can you explain a little bit?

how deserializeList works can you explain pelase ?

Hi,
All the deserialization code is in the class called Deserializer.java.
Response.deserializeList calls the deserializeArrayList function in
Deserializer.java. It simply uses Gson.fromJson() to convert the JSON
string to an ArrayList of the given class type.
Thanks & Regards,
Ravindu Wijewickrama
On Sun, Jul 21, 2019 at 10:18 PM androidlover5842<EMAIL_ADDRESS>wrote:

how deserializeList works can you explain pelase ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ravindu1024/velocity/issues/3?email_source=notifications&email_token=ACTYMOH5SME75NLAQOH2J5LQARHZPA5CNFSM4E6KRWS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2OCDYI#issuecomment-513548769,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACTYMOAPRLHUZZTFE5IRWFTQARHZPANCNFSM4E6KRWSQ
.

okay thanks

@ravindu1024 how do i post this type of from-data using object class since there is only function to post hashmap or jsontype format :(

Hi,
I'm sorry it doesn't have a functionality like that. Its quite difficult to
do as well since it needs to something similar to GSON (using reflection)
to get the fields inside your object. You'd have to manually create a
HashMap<String, String> or add the values one by one using withFormParam.
Thanks & Regards,
Ravindu Wijewickrama
On Fri, Jul 26, 2019 at 12:08 AM androidlover5842<EMAIL_ADDRESS>wrote:

@ravindu1024 https://github.com/ravindu1024 how do i post this type of
from-data using object class since there is only function to post hashmap
or jsontype format :(
[image: Screenshot from 2019-07-25 19-36-01]
https://user-images.githubusercontent.com/16255290/61881043-9923a400-af13-11e9-8bcf-e3de7eedf221.png
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ravindu1024/velocity/issues/3?email_source=notifications&email_token=ACTYMOCZRCZZXO7HYALN343QBGXUNA5CNFSM4E6KRWS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2ZSUPI#issuecomment-515058237,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACTYMOFMLKNJZFX5D4I67KLQBGXUNANCNFSM4E6KRWSQ
.

i managed to do :) seems to working fine for now.
    if (postModel!=null)
        try {
            JSONObject jobj = new JSONObject(new Gson().toJson(postModel));
            Iterator<String> iterator=jobj.keys();
            while (iterator.hasNext())
            {
                String key=iterator.next();
                String val=jobj.getString(key);
                if (val!=null)
                    stringObjectHashMap.put(key,val);
            }
        } catch (JSONException e) {
            e.printStackTrace();
        }

    Velocity.get(url)
            .withRequestMethod(method.name())
            .withBody(stringObjectHashMap)


Allows underscores in URL hosts

Underscore is a valid character in the host portion of a URL but the simply URL validation regex does not currently support it. Ideally this would be using urllib or urlparse but since that module changed from 2 to 3 the simple fix is to just update the regex.
This fixes issue #53

Coverage remained the same at 95.85% when pulling fa2593dad1947497d829aada17e772a37e37f22c on colinjeanne:host-underscores into c45c0f8ae029254642db036cf06058ec9e302098 on onelogin:master.


Google audio set

Hello @antoine77340 ,
I wanted to know if it would be viable to run your models on the google audio set data.
The data is stored as tfrecords. The number of classes in the data is 527. What changes do you think I should make in the script/ architecture to get your models running?
Thanks in advance.

I can tell that I made a test ,In witch I used audioset for audio feature extraction and google frame feature extractor.
I tested the accuracy of the willow model I trained (I trained the model on the youtube 8m tfrecords) on the self-extracted tfrecords features (audioset + frame feature extractor) and got pretty good results.

did you choose little-endian or big-endian for the audioset feature extraction ? and why ?


Add underline styling to hyperlinks

Related Issue
Close #7138
Description
Provides an underline styling for the hyperlinks in (1) the schema explorer and (2) the accessibility note written in some pages. (1) was accomplished by adding a new class to the content div of the schema explorer (then styling that class). (2) was accomplished by adding the styling directly to that note.
Thought the styling is redundant for the accessibility note in the schema explorer, CSS gracefully cascades the styling sheets and only applies the styling once.
Microsoft Reviewers: Open in CodeFlow

/azp run android-ci.yml


Rewrite PhyloPic Provider API Script to use new ImageStore class

The old version can be found at src/cc_catalog_airflow/dags/provider_api_scripts/PhyloPic.py. The script should be rewritten with the following goals:

The new script should be at src/cc_catalog_airflow/dags/provider_api_scripts/phylopic.py (note the capitalization change from the old script name).
The new script should have a test suite at src/cc_catalog_airflow/dags/provider_api_scripts/test_phylopic.py.
The new script must use the new ImageStore class (Import this from src/cc_catalog_airflow/dags/provider_api_scripts/common/storage/image.py).
The new script should use the new DelayedRequester class (Import this from src/cc_catalog_airflow/dags/provider_api_scripts/common/requester.py).
The new script must not use anything from src/cc_catalog_airflow/dags/provider_api_scripts/modules/etlMods.py. (That module is deprecated)
The new script must take a --date parameter when run as a script, giving the date for which we should collect images. The form should be YYYY-MM-DD (so, the script can be run via python thingiverse.py --date 2018-01-01).
The new script must provide a main function that takes a date parameter of the same form, and does the exact same thing that running the script from the CLI with the date parameter would do.
The new script should conform to PEP8.  Please use pycodestyle (available via pip install pycodestyle) to check for compliance.
The new script should use smaller, more testable functions than the old version.
The test suite for the new script may break PEP8 rules regarding long lines where appropriate (e.g., long strings for testing).
For an example of how all this should look, see the new Wikimedia Commons script at src/cc_catalog_airflow/dags/provider_api_scripts/wikimedia_commons.py.
Also see the Wikimedia Commons Provider API Script test suite at src/cc_catalog_airflow/dags/provider_api_scripts/test_wikimedia_commons.py.

Hi, @mathemancer Can I work on this issue?

@akshgpt7 Please do.  I've marked it as 'in progress'


netlify.toml update for initial project build

Description of what you did:
I modified the netlify.toml to use a publish ="build" opposed to publish = "frontend/build".  "frontend/build" was causing issues with the netlify deployment.
https://github.com/udilia/create-social-network/issues/13
My PR is a:

[ ] 💥 Breaking change
[x] 🐛 Bug fix
[ ] 💅 Enhancement
[ ] 🚀 New feature

Main update on the:
None of the below.  It is to the project root netlify.toml

[ ] api
[ ] frontend
[ ] lib

Hi @liester thanks for this PR!


Machine name needs to be lowercase

Vagrant-azure crashes with 'run_instance.rb:104:in call': undefined method vm_name' for nil:NilClass (NoMethodError)'  The VM and cloud service seem to be created, but not useable by vagrant afterward (vagrant status shows the instance as 'not created')
Relevant output and call stack:

INFO interface: info: Add Role? - false
 INFO interface: info: ==> default: Add Role? - false
==> default: Add Role? - false
Creating deploymnent...
Creating cloud service [redacted cloudservicename].
Storage Account [redacted storagegroupname] already exists. Skipped...
Deployment in progress...
# # # # # # succeeded (200)
ERROR warden: Error occurred: undefined method `vm_name' for nil:NilClass
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: undefined method `vm_name' for nil:NilClass
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
ERROR warden: Error occurred: undefined method `vm_name' for nil:NilClass
 INFO warden: Beginning recovery process...
 INFO warden: Calling recover: #<Vagrant::Action::Builtin::Call:0x7b4e540>
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO warden: Beginning recovery process...
 INFO warden: Recovery complete.
 INFO environment: Running hook: environment_unload
 INFO runner: Preparing hooks for middleware sequence...
 INFO runner: 1 hooks defined.
 INFO runner: Running action: #<Vagrant::Action::Builder:0x4c3b288>
C:/Users/username/.vagrant.d/gems/gems/vagrant-azure-1.0.4/lib/vagrant-azure/action/run_instance.rb:104:in `call': undefined method `vm_name' for nil:NilClass (NoMethodError)
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/action/warden.rb:34:in `call'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/action/warden.rb:34:in `call'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/action/warden.rb:34:in `call'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/action/builder.rb:116:in `call'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/action/runner.rb:69:in `block in run'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/util/busy.rb:19:in `busy'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/action/runner.rb:69:in `run'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/action/builtin/call.rb:51:in `call'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/action/warden.rb:34:in `call'
        from C:/Users/username/.vagrant.d/gems/gems/vagrant-azure-1.0.4/lib/vagrant-azure/action/connect_azure.rb:35:in `call'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/action/warden.rb:34:in `call'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/action/warden.rb:34:in `call'
        from C:/Users/username/.vagrant.d/gems/gems/vagrant-berkshelf-2.0.0.rc3/lib/berkshelf/vagrant/action/configure_chef.rb:22:in `call'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/action/warden.rb:34:in `call'
        from C:/Users/username/.vagrant.d/gems/gems/vagrant-berkshelf-2.0.0.rc3/lib/berkshelf/vagrant/action/load_shelf.rb:27:in `call'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/action/warden.rb:34:in `call'
        from C:/Users/username/.vagrant.d/gems/gems/vagrant-berkshelf-2.0.0.rc3/lib/berkshelf/vagrant/action/set_ui.rb:11:in `call'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/action/warden.rb:34:in `call'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/action/builtin/env_set.rb:19:in `call'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/action/warden.rb:34:in `call'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/action/builtin/handle_box.rb:56:in `call'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/action/builtin/handle_box_url.rb:9:in `call'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/action/warden.rb:34:in `call'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/action/builder.rb:116:in `call'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/action/runner.rb:69:in `block in run'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/util/busy.rb:19:in `busy'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/action/runner.rb:69:in `run'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/machine.rb:157:in `action'
        from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.5.3/lib/vagrant/batch_action.rb:72:in `block (2 levels) in run'
        from C:/Users/username/.vagrant.d/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `call'
        from C:/Users/username/.vagrant.d/gems/gems/logging-1.8.2/lib/logging/diagnostic_context.rb:323:in `block in create_with_logging_context'

need to update the readme


Accessing Form Elements: Names to Avoid

Request type

[ ] Please close this issue, I accidentally submitted it without adding any details
[ ] New documentation
[x] Correction or update

Details
The section in https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement#Accessing_the_forms_elements  states:

You can also get the form's element by using its name attribute as a key of the form, but using elements is a better approach—it contains only the form's elements, and it cannot be mixed with other attributes of the form.

It should be noted that some names will interfere with normal access to the form’s properties and elements.
For example:

name="id" will take precedence over the form’s id attribute when referencing form.id. This would be true of any other form properties.
name="elements" will render the form’s elements collection inaccessible, as form.elements will now reference one particular element only.

To avoid such problems with element names:

Always use the elements collection to avoid ambiguity
Never use elements as an element name.

I would be happy to add this myself if it’s OK.

@manngo this would be a useful addition, and I'd be happy for you to add it. Thanks!

@chrisdavidmills Thanks for your comment. I have submitted the addition, but have requested a review as I’m new at doing this sort of thing.

@manngo I've reviewed it, and it looks fine. Thanks for the contribution!


[Fix] change policy name, update test data

Review Error for dustMason @ 2018-11-27 17:42:26 UTC
User must have write permissions to review


migrating lhs and rhs selectors to typescript

Summary
migrating lhs and rhs selectors to typescript
Ticket Link
MM-23619

/update-branch

Creating a new SpinWick test server using Mattermost Cloud.

Mattermost test server created! :tada:
Access here: https://mattermost-webapp-pr-5180.test.mattermost.cloud

Account Type
Username
Password

Admin
sysadmin
Sys@dmin123

User
user-1
User-1@123

Test server destroyed

/update-branch


SPM support broken?

When installing via SPM I get the following error:
/Package.swift has no Package.swift manifest for version 1.0.0 in https://github.com/TelegramMessenger/TelegramStickersImport

Looks like Package.swift is missing?

Fixed at https://github.com/TelegramMessenger/TelegramStickersImport/pull/3/files?file-filters[]=.swift


chore(keymap): Reorganize definitions

I'm not sure why the keybindings are defined like this in https://github.com/ayamir/nvimdots/commit/501927194a93cca989c3ebf0adbbb8041e51494f. @ayamir Any hints?

Just from readme of toggleterm.nvim. Have not test it with our current keymap. Of course, this pr is ok.


Generation stopped working

Describe your environment

GPU: mps
CPU arch: arm
OS: macOS
Branch: development
Commit: 4f247a3672474bd9c46060bab6087dbf9e2531f3

Describe the bug
Generating just now produces noise for ddim sampler. See Screenshot for detailed parameters of the prompt.

This is fixed in current development and release-candidate-2


[extractor/vbox7] improve extraction

Please follow the guide below

You will be asked some questions, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your pull request (like that [x])
Use Preview tab to see how your pull request will actually look like

Before submitting a pull request make sure you have:

[x] Searched the bugtracker for similar pull requests
[x] Read adding new extractor tutorial
[x] Read youtube-dl coding conventions and adjusted the code to meet them
[x] Covered the code with tests (note that PRs without tests will be REJECTED)
[x] Checked the code with flake8

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[x] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[ ] Bug fix
[x] Improvement
[ ] New extractor
[ ] New feature

Description of your pull request and other information
Can supersede #18698
Resolves #14685, resolves #26063 (though the log is wrong), resolves #26218, resolves #27575
PR #29669 is not required (works without it), but desirable to parse malformed JSON-LD for some videos (#26063 or #26218).
vbox7.com returns GPAC generated MPD. youtube-dl currently cannot parse this MPD (causes KeyError). On the other hand, vbox7.com provides mp4 formats to Safari, iOS and old Win's (conditions in canPlayDash() in jquery.vboxmediaplayer.v5.js).
I changed the extractor to try parsing MPD first (may succeed if vbox7.com or youtube-dl future changes) and use mp4 formats as fallbacks.
Edit: Confirmed that PR #14648 can parse MPD used here.
Edit: Made PR #30279 and GPAC generated MPD can be parsed.
thumbnail url extraction would cause exception if webpage was not set, so I moved its position into if block.

This needs to be urgently fixed - on February 22nd Vbox7 will be privating nearly all their videos. Archivists and regular users need an easy way to back up videos/channels, whether individually or en masse.
https://www.reddit.com/r/Archiveteam/comments/19d6ou7/video_platform_vbox7_is_about_to_restrict_access/


add support of set apparmor and seccomp to generate

Signed-off-by: Wang Qilin<EMAIL_ADDRESS>

@wangkirin Can u reduce the loop complexity in this PR?

@zenlinTechnofreak I have re-org the code ,plz review again :)


[a51-vault-balance] Add a51-vault-balance strategy

Fixes # .
Changes proposed in this pull request:

a51-vault-balance

Update this branch with the latest changes plz :)

@ChaituVR, updated.


Filters not applied on copy

When using the script in automatic mode ffmpeg is sometmes invoked with the command line options to copy the audio or video sources. Unfortunately the copy option bypasses the filter application pipeline causing filters to silently not be applied. I suggest changing the default behavior to always re-encode if and only if one or more audio/video filters are applied. Ex autprocess.ini:
# will not always be applied.
audio-filter = dynaudnorm

The correct command line arguments to apply this filter regardless of the source encoding would be:
ffmpeg -i <file.mp4> -af "dynaudnorm" <out.mp4>

Added this feature
df0d597b2e55bd8807ffec5d58988fa0a6777f73


Add writable memory check

Adds a writable memory field check to Allocation.
NOTE: My CMAKE is messed up again so I am creating this PR to see whether the pipeline compiles
Fixes #180

Also: I think you can probably fix the compile errors by rebasing/merging onto latest master.


Doc Features: Application shutdown

Begin documenting application features with describing application shutdown.

[X] The title of my pull request is a short description of the changes
[X] This PR relates to some issue: relates to #255

Thanks for the contribution! It's a good first step to document the application features.


feat: traffic split

Please answer these questions before submitting a pull request

Why submit this pull request?

[ ] Bugfix

[x] New feature provided

[ ] Improve performance

[ ] Backport patches

Related issues
#289

New feature or improvement

Describe the details and related test reports.

This PR supports the traffic split in ApisixRoute.

Backport patches

Why need to backport?

Source branch

Related commits and pull requests

Target branch

Codecov Report

Merging #308 (d08cfec) into master (f45203e) will decrease coverage by 1.54%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #308      +/-   ##
==========================================
- Coverage   53.00%   51.46%   -1.55%
==========================================
  Files          33       34       +1
  Lines        2394     2460      +66
==========================================
- Hits         1269     1266       -3
- Misses        965     1034      +69
  Partials      160      160

Impacted Files
Coverage Δ

pkg/kube/translation/apisix_route.go
28.41% <0.00%> (ø)

pkg/kube/translation/plugin.go
0.00% <0.00%> (ø)

pkg/kube/translation/util.go
0.00% <0.00%> (ø)

pkg/seven/state/solver.go
2.00% <0.00%> (-2.00%)
:arrow_down:

test/e2e/e2e.go

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 f45203e...d08cfec. Read the comment docs.


Google map freezes sometime directly after starting.

I am developing an app using cordova-plugin-googlemap. Map works fine but some time it freezes and not allow to drag marker,slide map and other event.
Code is written below -
drag.txt
Please someone help to solve this issue.Thanks in advance for your help and cooperation.
@wf9a5m75

Please share your project files on github.
Not just html, but also css, js framework, everything.

Hi ,
PFA.
Attached is the source code of the project. i used onsenui and monaca IDE to develop this project.
map check.zip

git please ....

Let me confirm one thing. Do you really use the latest version?
I guess you download the maps plugin, and upload it to the monaca.
In this case, you use old version.
I recommend you install the plugin using URL, not uploading.

i used URL to install Plugin in monaca
URL is "https://github.com/mapsplugin/cordova-plugin-googlemaps.git"

Do you mean you use the v1.4? Since you don't specify the #multiple_maps branch.

yes i used V1.4

I see. The v1.4 will be shutdown soon. Please use the v2.0.

is this issue due to version ?
if yes then please provide v2.0  link which i can use to import plugin in monaca.

In order to use the v2.0 in monaca, just specify https://github.com/mapsplugin/cordova-plugin-googlemaps#multiple_maps

I will shutdown the v1.4 at least in this month.

ok
Thanks for you help.i will update the version and let you know the status about this issue.

tips
Download the master.zip from this repository.
https://github.com/mapsplugin/cordova-plugin-googlemaps-sdk
Then upload it to the monaca. This saves the build time even if you use only Android.

Thank You so much.

ping

Since there is no update, I close this issue.

Please am using ionic 4 and building android phone. The same thing happens to me on android phone but on browser it works perfectly.


Setting confidence score to None/null instead of zero if unavailable

Currently, it seems that the confidence scores (low and up) are set to zero if they are unavailable in the analysis. It would be better if we can set it to None in python and output null in JSON. It is more meaningful semantically and helps solve this web interface bug I am fixing.
The bug is caused by the logic that confidence score points are only plotted when they are not zero (because my assumption is zero means they are not available). I missed the corner case where zero confidence scores can also be caused by a bucket with a score of zero. This could be fixed easily if SDK outputs null instead of zero.

I can do this.

@neubig Thanks for the reply and taking on the issue! Looking forward to the PR. If at any moment you need to prioritize other matters, I'm happy to work on it too. 😀


Use Azure pipelines CI

following a discussion started in #12 I am opening this issue here to discuss about use Azure Pipelines for CI
cc @mbjoseph

Friends, I'm closing all of the open issues, given that we have a complete redo of the template now! 🚀! Thank you all for this discussion!! Please reopen this if I'm closing it in error.


Allow more fine-grained offboard control

It has been requested - from what I remember - several times that it is possible to have better control around the auto-sending of offboard messages, and the way the mode is changed automatically.
Also see https://github.com/PX4/PX4-Autopilot/pull/18160 for more background.
This issue is to collect the requirements/wishlist.

I'm looking for a way to create PX4 MAVSDK tests to test offboard being lost. Currently, I only see the stop() function as a way to stop sending setpoints, however that also changes the flight mode which is problematic since it prevent's the offboard lost failsafe from happening. Also in the offboard failsafe tests, I would like to verify the correct flight mode was executed and not the hold mode selected by MAVSDK.

I need to send offboard set points to enable switching into offboard mode with the Remote Control. Currenty this is not really possible, as https://github.com/mavlink/MAVSDK/blob/7244ace0d7b223e8e7618d8736769f4f2a2ef1f3/src/plugins/offboard/offboard_impl.cpp#L757-L790 checks if the current flight mode is equal to Offboard and if not the sending of setpoints is canceled.
So I would suggest another function, similar to start, which enables the sending of setpoints without beeing in the Offboard flight mode.

I don't get that. What's the use-case of sending offboard setpoints without being in offboard mode?

Being able to switch into offboard mode using the RC and not MAVSDK

Switching into offboard mode (in this case via RC) is prohibited by PX4 until setpoints are received.

The vehicle must be already be receiving a stream of target setpoints (>2Hz) before this mode - can be engaged.
MAVSDK however requires the vehicle to already be in offboard mode in order to start streaming setpoints. Thus, switching into offboard mode via RC is not possible.

Just an idea: Since it's to specifically test an unplanned error case it might be useful to not build the functionality of the error case of losing offboard setpoints into the API but construct the test with artificial packet drops e.g. by using mavlink passthrough and then using the function intercept_outgoing_messages_async() to at some point drop the offboard setpoint messages. Maybe that's harder and less nice, not sure yet.

I think we could just add a config option where you can select whether you want automatic mode switch or not.

@MaEtUgR it's a good idea but it would mean I have to implement such a test, I assume.

I think we could just add a config option where you can select whether you want automatic mode switch or not.

Sounds good, I think that would work fine for me.

This issue has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there:
https://discuss.px4.io/t/switch-into-offboard-mode-with-rc-switch-detect-it-with-mavsdk-python/37335/2


Extensions using htmlLanguageParticipants don't activate vscode.html-language-features

Does this issue occur when all extensions are disabled?: Yes (apart from the extension I'm testing)

VS Code Version: 1.71.0 784b0177c56c607789f9638da7b6bf3230d47a8c x64
OS Version: 5.19.7-arch1-1

Steps to Reproduce:

Create an extension using htmlLanguageParticipants (you can see the code I'm using at samuelcolvin/jinjahtml-vscode#118)
Load that extension into a debug window
Open a language that has htmlLanguageParticipants enabled for it (I'm using jinja-html)
Notice that HTML language participant support is not working
Switch language mode to the html language provided by vscode.html-language-features, causing that extension to load
Switch back to a language using htmlLanguageParticipants
Notice that HTML language participant support is working now

It looks like the built in Handlebars extension may mitigate this by adding a language activation for handlebars to the package.json of the html-language-features extension but this seems hacky and probably not ideal for third party extensions.
Ext Host Logs:
On startup:
[2022-09-09 18:12:00.110] [exthost] [info] Extension host with pid 359485 started
[2022-09-09 18:12:00.110] [exthost] [info] Skipping acquiring lock for /home/matt/.config/Code/User/workspaceStorage/5f95745873455f863d9a75ba9df82c4a.
[2022-09-09 18:12:00.203] [exthost] [info] ExtensionService#_doActivateExtension vscode.microsoft-authentication, startup: false, activationEvent: 'onAuthenticationRequest:microsoft'
[2022-09-09 18:12:00.314] [exthost] [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch, startup: true, activationEvent: '*'
[2022-09-09 18:12:00.318] [exthost] [info] ExtensionService#_doActivateExtension vscode.git-base, startup: true, activationEvent: '*', root cause: vscode.git
[2022-09-09 18:12:00.323] [exthost] [info] ExtensionService#_doActivateExtension vscode.ipynb, startup: true, activationEvent: '*'
[2022-09-09 18:12:00.351] [exthost] [info] ExtensionService#_doActivateExtension vscode.git, startup: true, activationEvent: '*'
[2022-09-09 18:12:00.497] [exthost] [info] ExtensionService#_doActivateExtension vscode.github, startup: true, activationEvent: '*'
[2022-09-09 18:12:00.550] [exthost] [info] Eager extensions activated
[2022-09-09 18:12:00.569] [exthost] [info] ExtensionService#_doActivateExtension vscode.emmet, startup: false, activationEvent: 'onStartupFinished'
[2022-09-09 18:12:00.611] [exthost] [info] ExtensionService#_doActivateExtension vscode.merge-conflict, startup: false, activationEvent: 'onStartupFinished'
[2022-09-09 18:12:00.659] [exthost] [info] ExtensionService#_doActivateExtension vscode.github-authentication, startup: false, activationEvent: 'onAuthenticationRequest:github'
[2022-09-09 18:12:00.747] [exthost] [warning] [vscode.emmet] Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for 'emmet.includeLanguages', provide the URI of a resource or 'null' for any resource.

When opening a Jinja HTML file:
nothing new
Switching to built in HTML language:
[2022-09-09 18:12:10.034] [exthost] [info] ExtensionService#_doActivateExtension vscode.html-language-features, startup: false, activationEvent: 'onLanguage:html'

Hm, you are right. I initially thought we could just add an extensionDependency, but
a. that does not do activation (i just tried)
b. would force the handlebars/whatever extension to run on the same extension host as the rich html extension, which is not what we want.
You currently have add source code to your extension and activate the vscode.html-language-features in code
@alexdima Is there some other way to trigger an activation of an extension in a declarative way?

Thanks for the response! That's good to know, maybe I can use that as a temporary solution.
My thought on this is the htmlLanguageParticipants field pretty much implies that the html extension should activate. I think it'd be good ergonomics to have it do that by default, but I'm not familiar enough with Code's plugin architecture to know if that's feasible. Either way, thank you for looking into this!

My thought on this is the htmlLanguageParticipants field pretty much implies that the html extension should activate when a language using it is opened.

Good suggestion, yes, we could auto-activate the HTML extension so it can track the open editors to see if a participant language is used.


Hi there Johann! Thanks for the starterkit, works like a charm! Thanks again for the great work!
I have one question though: after building the site there's a <script> container left in the body tag exposing the titles, templates and listing statuses of all the top level pages as JSON, even the unpublished/hidden ones.
Is this on purpose? Because it leaves all the top level pages' info fully exposed to the public regardless if they're hidden pages or not. Like if I had a page I wanted to hide from the public, its URL etc. is still visible to the public and therefore still accessible (if set to "unlisted").
Or am I building it wrong?
Example:
<script id="site-data" type="application/json">
   {"children":[{"uri":"arbeiten","title":"Arbeiten","isListed":true,"template":"arbeiten","childTemplate":"arbeit"},
   {"uri":"publikationen","title":"Publikationen","isListed":true,"template":"publikationen","childTemplate":"publikation"},
   {"uri":"biografie","title":"Biografie","isListed":true,"template":"biografie","childTemplate":null},
   {"uri":"kontakt","title":"Kontakt","isListed":true,"template":"kontakt","childTemplate":null},
   {"uri":"error","title":"Error","isListed":false,"template":"error","childTemplate":null},
   {"uri":"home","title":"Home","isListed":false,"template":"home","childTemplate":null}],"languages":[],"title":"123"}
</script>

Hi there, thanks for the verbose issue and your compliment. I'm excited you're using my starterkit for one of your projects!
You're doing everything right. The <script id="site-data" type="application/json"> is required to populate the Vue Router with routes upon the first request. Inlining the top-level children of the site is more performant than calling an additional route upon first request just for routes data.
In a traditional Vue SPA all routes would have to be defined for the router by hand, which are visible publicly as well. Example:
const router = new VueRouter({
  routes: [
    { path: '/foo', component: Foo },
    { path: '/bar', component: Bar }
  ]
})

In this boilerplate, the routes will be dynamically generated by spa-site.json and parsed by the Vue Router.
By the way, the frontend navigation or a sitemap will also "expose" routes. It's not something to hide necessarily.
I agree tho, some unlisted pages might want to be hidden from sitemaps etc. and in the same way from the routing JSON. But that's not possible at the moment: Every route has to be matched with its Vue component (view) on the Vue initialization. All other routes will fall back to the default template.
If you truly want to unlisted pages, you can adapt the spa-site.php by:
return [
    'children' => array_values(
        site()
            ->children()
-            ->published()
+            ->filter(fn($child) => $child->isHomePage() || $child->isListed())
            ->map(fn($child) => [
            // ...

Keep in mind, that with this change unlisted pages will keep to be accessible, but will not work if they use templates other than default.
Hope that answers your question.
Would be happy if you drop me a line once the project is live. Eager to see it. 🙂

Hi there, thanks for the verbose issue and your compliment. I'm excited you're using my starterkit for one of your projects!
You're doing everything right. The <script id="site-data" type="application/json"> is required to populate the Vue Router with routes upon the first request. Inlining the top-level children of the site is more performant than calling an additional route upon first request just for routes data.
In a traditional Vue SPA all routes would have to be defined for the router by hand, which are visible publicly as well. Example:
const router = new VueRouter({
  routes: [
    { path: '/foo', component: Foo },
    { path: '/bar', component: Bar }
  ]
})

In this boilerplate, the routes will be dynamically generated by spa-site.json and parsed by the Vue Router.
By the way, the frontend navigation or a sitemap will also "expose" routes. It's not something to hide necessarily.
I agree tho, some unlisted pages might want to be hidden from sitemaps etc. and in the same way from the routing JSON. But that's not possible at the moment: Every route has to be matched with its Vue component (view) on the Vue initialization. All other routes will fall back to the default template.
If you truly want to unlisted pages, you can adapt the spa-site.php by:
return [
    'children' => array_values(
        site()
            ->children()
-            ->published()
+            ->filter(fn($child) => $child->isHomePage() || $child->isListed())
            ->map(fn($child) => [
            // ...

Keep in mind, that with this change unlisted pages will keep to be accessible, but will not work if they use templates other than default.
Hope that answers your question.
Would be happy if you drop me a line once the project is live. Eager to see it. 🙂

Hi Johann, thanks for your very swift reply! Makes perfect sense 😃  I'll leave it then.
While I have you here, do you maybe know what might cause this debug error? (Sorry if this is a silly question, it's my first Vue project.)
No hashed build asset found for style.css. Make sure it's bundled by Vite.
in:
public static function pathToAsset (string $filename): string
    {
        $hashedFilename = static::useManifest()[$filename] ?? null;
        if ($hashedFilename === null) {
            throw new Exception("No hashed build asset found for {$filename}. Make sure it's bundled by Vite.");
        }

        return static::useAssetsDir() . '/' . $hashedFilename;
    }

at:
/site/plugins/kirby-spa-adapter/classes/SpaAdapter.php
Thanks!

Hi Johann, thanks for your very swift reply! Makes perfect sense 😃  I'll leave it then.
While I have you here, do you maybe know what might cause this debug error? (Sorry if this is a silly question, it's my first Vue project.)
No hashed build asset found for style.css. Make sure it's bundled by Vite.
in:
public static function pathToAsset (string $filename): string
    {
        $hashedFilename = static::useManifest()[$filename] ?? null;
        if ($hashedFilename === null) {
            throw new Exception("No hashed build asset found for {$filename}. Make sure it's bundled by Vite.");
        }

        return static::useAssetsDir() . '/' . $hashedFilename;
    }

at:
/site/plugins/kirby-spa-adapter/classes/SpaAdapter.php
Thanks!

If it's your first Vue project I recommend you read the docs and test a Vue setup outside of my starterkit, because the starterkit itself build upon some amount of Vue knowledge.
Could you pull the latest changes? style.css has been renamed to index.css since Vite 2. So just rename it in the spa-index.php.
I've made some changes over the last couple of days. Would be best to start off fresh.

If it's your first Vue project I recommend you read the docs and test a Vue setup outside of my starterkit, because the starterkit itself build upon some amount of Vue knowledge.
Could you pull the latest changes? style.css has been renamed to index.css since Vite 2. So just rename it in the spa-index.php.
I've made some changes over the last couple of days. Would be best to start off fresh.

I made the Mozilla Vue tutorial project and watched other tutorials. It's working well so far. 😃
https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/Vue_getting_started
Yeah, I'll post a link. Anyways, thanks and have nice new year!

I made the Mozilla Vue tutorial project and watched other tutorials. It's working well so far. 😃
https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/Vue_getting_started
Yeah, I'll post a link. Anyways, thanks and have nice new year!