Allow getting version despite deps missing

Also gets rid of the use of deprecated methods

@takluyver opinions?

@takluyver what do you think?

Hi @flying-sheep, sorry it's taken me ages to look at these PRs (this and #374). I know I'm rather neglecting my role as a maintainer of Flit - when I get a bit of time to do non-work programming, there's generally something more either more fun or where I feel I can make more concrete progress in a small chunk of time.
I like this idea better than #374. I don't love it - putting the __version__ definition above any significant imports is a bit of a 'one weird trick', but it makes getting the version work in more situations without the module having to do anything Flit specific, and I can see it can give better error messages when it fails, which is always good. I see it uses something new in Python 3.5, though - I'm still trying to support 3.4 in flit_core at present. Bumping the minimum Python version for flit_core means leaving any modules which want to support that version stuck on an older flit_core, which is a support headache, so I'm quite slow to do so, but even so, maybe it's time to let 3.4 go now.
I hope you won't mind if I take this chance to run an idea past you for making getting the version number more flexible. This is for discussion, at the moment, rather than implementation, but it's been bouncing around in my head for a while. I'll start with an illustration:
[tool.flit.version]
method = "import"
module = "foobar.version"

I.e. you would specify whether to use static analysis or execution, and which module defines the version. Questions I'm not sure about:

Import a module or exec a file? Exec-ing allows a foobar/version.py to be run without foobar/__init__.py, but importing is obviously how modules are normally loaded, and I place quite a high value on interacting with user code in normal, predictable ways.

I could make both methods available, but I've always tried to avoid adding too many options, so I don't want to do this.

Should it have an option to look for another name besides __version__?
Should static analysis be able to handle tuples like version_info = (3, 2, 0, 'beta')?
Should I go all in and allow specifying a function to call to retrieve the version number?

I imagine that you'll want maximum flexibility & power on all of these questions, whereas my instinct is to keep things simpler. I'm thinking through how many options I want to enable here. :slightly_smiling_face:
I'm also thinking that if I do go for this, then the current behaviour of trying static analysis and then falling back to running code will eventually go away (after a suitable deprecation), and you will have to specify explicitly that you want it to import/exec code to get the version number.

Sounds great that you are thinking about tackling this!
I’m personally not maintaining things too far back: The slowest Linux distros are on something like 3.7 these days … idk what reasons exist to support 3.4 for things that aren’t build tools. In flit’s case, “this is a build tool and other people still use 3.4” is an entirely valid reason if that’s how it is.

I imagine that you'll want maximum flexibility & power on all of these questions, whereas my instinct is to keep things simpler.

I love simplicity! Power and simplicity aren’t mutually exclusive: Allowing people to call into whatever and clearly telling them that it’s not a flit bug if things go wrong is maximally powerful and very simple.
I personally want whatever solution allows my packages to robustly tell the truth about their version. And hardcoding a version isn’t the truth, unless you manually bump that version in every commit (which isn’t realistic).

Questions I'm not sure about: […]

So what use cases do exist?

some hardcode __version__
some call code which depends on build-system.requires

The problem with use case 2 is that flit executes the root module before it installs all dependencies, which means that people with use case 2 can’t both use flit and import anything in their root module (unless they use my hack).
To truly support use case 2, we need to give people a way to execute the version-generating code without executing the root module, or install all dependencies before executing the root module (#141)
There’s three ways to run code without (fully) executing the root module:

This PR: Try to execute the root module and pick __version__ out even when an ImportError happened
Specify an out-of-module script/module to run/import (could be either a third party module or a standalone script living next to the module)
Exec-ing a in-module script as if it wasn’t a submodule


Error to pickle.load(results_files)

Hello,
Thanks for your sharing code. I successfully run "bash batch/job_template.sh" as instructed and got the "breastcancer_fold_0_results.p" file, but failed to run "results = pickle.load(infile)"  and it gave me the following error.

I wonder how to deal with this error, looking forward for your reply! Thanks!

Thanks for letting me know. It looks like there was a bug when saving the coefficient set object. I have changed the code so that it can no longer be saved anymore. This should resolve the issue.
Just FYI, the job_template.sh file is really for batch computing (e.g., on the cloud / EC2). If you're using it on your computer, I'd advise working off one of the scripts in examples/


Adds HTML name attribute support for RadioGroup

Overview
Currently the RadioGroup component automatically generates a string prefix 'RadioGroup' for the HTML name attribute on input type radio. This PR is about to add a name prop support for the component so the developer can set the attribute on their own and have more controls of form radio buttons on both client side and server side.
A recent issue can be found here.
Screenshots (if applicable)
Before this change

After this change

Documentation

[ ] Updated Typescript types and/or component PropTypes
[ ] Added / modified component docs
[ ] Added / modified Storybook stories

Testing
Added new unit test and run test on local

#1522

Hi @brandongregoryscott Would you mind reviewing this PR? Thank you!


[test](index compaction)Add index compaction exception fault injection cases

What problem does this PR solve?
Problem Summary:

Add skip index compaction logic when index compaction encounters exceptions
Optimize fault injection regression cases

Release note
None
Check List (For Author)

Test

[x] Regression test
[ ] Unit Test
[ ] Manual test (add detailed scripts or steps below)
[ ] No need to test or manual test. Explain why:

[ ] This is a refactor/code format and no logic has been changed.
[ ] Previous test can cover this change.
[ ] No code files have been changed.
[ ] Other reason

Behavior changed:

[x] No.
[ ] Yes.

Does this need documentation?

[x] No.
[ ] Yes.

Check List (For Reviewer who merge this PR)

[ ] Confirm the release note
[ ] Confirm test cases
[ ] Confirm document
[ ] Add branch pick label

run buildall

run buildall


Change theme documentation to say social.yml vs social.yaml Resolves #45

This PR resolves issue #45

Thanks for your help, but the documentation is starting to lag behind reality quite a bit, and I almost see no point in editing
We plan to completely rewrite it in the near future.


Cordova Google Maps : error on build

Hi there,
My build was working and then I added cordova-plugin-googlemaps, and now I got this message when I am trying to build for android :
`Dex: Error converting bytecode to dex:
Cause: com.android.dex.DexException: Multiple dex files define Lcom/google/firebase/FirebaseException;
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Lcom/google/firebase/FirebaseException;`
Looks like googlemaps and firebase plugin are not working together.
I read that I have to exclude some dependencies ? How can I do that ?
Thanks !

Hello @tgensol , I just fixed it by simply adding a cordova plugin:

It looks like this problem is related to "having more than 64k method calls", witch you can have when using cordovaLibs.
You can add in your config.xml, like this:
<plugin name="me.tonny.cordova.plugins.multidex" spec="https://github.com/jwall149/cordova-multidex" />
Or add via npm, like
ionic plugin add https://github.com/jwall149/cordova-multidex --save


Investigate CodeQL

Increase the robustness of angular apps.
References:

https://github.com/Sage-Bionetworks/Synapse-React-Client/blob/develop/.github/workflows/codeql.yml

The concept of CodeQL is to build a special database from the code of an application, then scan the code by running CodeQL queries that scan the database. There are public repositories of CodeQL queries (.ql) that can be pulled and run on the database generated from your source code.

A short video introduction to CodeQL
GitHub documentation on how to enable code scanning with CodeQL

Supported languages:
C/C++
C#
Go
Java
JavaScript/TypeScript
Python


Expose tags for EditSteps insert before tags command

Fix for #2268

Make sure tags are exposed on all steps/dialogs
fix $schema url with correct case so schema validation works in vs code
cleaned up to have baseInpuSchema and baseDialogSchema to make it easier to define common shared properties
Fixed SequenceContext to correctly look up step for EditSteps InsertBeforeTags and added unit test to verify it
added more code cleanup and comments
Updated computed app.schema

NOTE: Change To SequenceContext was worked out with deep consultation from Stevenic, rest of it is just schema foo, comments and unit tests.


[Feature] Format values on statistics page

Just makes the statistics more readable instead of showing the plain json response.
This is my first time doing anything in vue, let me know if I did something stupid. :sweat_smile:

Could you provide a screenshot of how this looks like until I can review it? Thanks!

Sure! This is what it looks like now.


ReactExtJSWebpackPlugin documentation

The ReactExtJSWebpackPlugin plugin should document all config options and defaults.  Currently, you need check the source code to see this info.
module.exports = class ReactExtJSWebpackPlugin {

    /**
     * @param {Object[]} builds
     * @param {Boolean} [debug=false] Set to true to prevent cleanup of build temporary build artifacts that might be helpful in troubleshooting issues.
     * @param {String} sdk The full path to the Ext JS SDK
     * @param {String} [toolkit='modern'] "modern" or "classic"
     * @param {String} theme The name of the Ext JS theme package to use, for example "theme-material"
     * @param {String[]} packages An array of Ext JS packages to include
     * @param {String[]} overrides An array with the paths of directories or files to search. Any classes
     * declared in these locations will be automatically required and included in the build.
     * If any file defines an Ext JS override (using Ext.define with an "override" property),
     * that override will in fact only be included in the build if the target class specified
     * in the "override" property is also included.
     * @param {String} output The path to directory where the Ext JS bundle should be written
     * @param {Boolean} asynchronous Set to true to run Sencha Cmd builds asynchronously. This makes the webpack build finish much faster, but the app may not load correctly in your browser until Sencha Cmd is finished building the Ext JS bundle
     * @param {Boolean} production Set to true for production builds.  This tell Sencha Cmd to compress the generated JS bundle.
     */
    constructor({
        builds={},
        debug=false,
        watch=false,
        test=/\.jsx?$/,
        /* begin single build only */
        output='extjs',
        sdk,
        toolkit='modern',
        theme='theme-triton',
        packages=[],
        overrides=[],
        asynchronous=false,
        production=false
        /* end single build only */
    })

These are documented in the readme under packages/reactor-webpack-plugin:
https://github.com/sencha/extjs-reactor/tree/master/packages/reactor-webpack-plugin

Thanks for pointing this out.


Get shared NFS volume with mote setup on staging

Currently, in production, we have a shared NFS volume between value01/02 and mote. Meetbot on value dumps the logs after a meeting is finished into the NFS volume, and sends a fedora message. Mote consumes that message, and processes the new logs from the NFS volume.
However, in staging, there was no shared volume, as we previously didnt run staging versions of the bots.
We need to set up this shared volume, get it mounted on mote staging, maubot staging, and value01/02 staging.

I think this should be all set now?


SQL : update collection field by rid fails due to parsing error

orientdb 1.7.8
The SQL update command fails due to a parsing error.  The manual has an example that does not work:
http://www.orientechnologies.com/docs/1.7.8/orientdb.wiki/SQL-Update.html
UPDATE Account REMOVE addresses=#12:0
It fails because there isn't a space after the "=".
Here's an example:
create class person
create class car
insert into car (make) values ('Honda')
insert into car (make) values ('Ford')
insert into person (name,cars) values ('John', ( select from car ) )
select expand(cars) from person
----+-----+-----
#   |@RID |make
----+-----+-----
0   |#13:0|Honda
1   |#13:1|Ford
----+-----+-----
update person remove cars=#13:1
Error: com.orientechnologies.orient.core.sql.OCommandSQLParsingException: Error on parsing command at position #25: Found unexpected keyword '=#13:1' while it was expected '[=, WHERE]'. Use UPDATE <class>|cluster:<cluster>> [SET|ADD|PUT|REMOVE|INCREMENT|CONTENT {<JSON>}|MERGE {<JSON>}] [[,] <field-name> = <expression>|<sub-command>]* [LOCK <NONE|RECORD>] [UPSERT] [RETURN <COUNT|BEFORE|AFTER>] [WHERE <conditions>]
Command: update person remove cars=#13:1
---------------------------------^

But this will work:
update person remove cars= #13:1
Updated record(s) '1' in 0.001000 sec(s).

Fixed in v 2.1.0
Closing
Thanks
Luigi


Update netty-codec, ... to 4.1.104.Final

About this PR
📦 Updates

io.netty:netty-codec
io.netty:netty-transport-native-epoll
io.netty:netty-transport-native-kqueue

from 4.1.101.Final to 4.1.104.Final
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "io.netty" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "io.netty" }
}]

labels: library-update, commit-count:1

Superseded by #180.


add ref dev to publishDev

Codecov Report

Merging #26 (60c5723) into main (1d07495) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #26   +/-   ##
=======================================
  Coverage   79.20%   79.20%
=======================================
  Files          17       17
  Lines         351      351
=======================================
  Hits          278      278
  Misses         73       73

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 0c0e379...60c5723. Read the comment docs.


Docker Meemo won't start?

Hi,
I'm having an issue where meemo won't start, and in portainer, it just shows as "starting" and nothing else. As a result, I can't access the web interface.
I can issue commands to local:
docker exec meemo ./meemo/admin user-add -u yourUser -p yourPassword --display-name yourUser
Using local auth file:  /users.json
User already exists
Log:
https://pastebin.com/eZYCVYaC
Thanks
Guy
https://i.ibb.co/71BWfCT/up.png

Changed:
image: mongo
to
image: mongo:4.4.6
Everyting works fine


Creating Relationships from AddCalculatedTableColumn

I am trying to create a relationship from two columns that are generated from a calculated table. For some reason, I can create relationships from addcalculatedtablecolumn on calculated tables created from "DATATABLE(" functions, but not those from "Distinct" or "Summarize" functions.
Part 1) Calculated Table Script
var GLColumn = (Model.Tables["G L"].Columns["Unique GL ID"] as CalculatedColumn);
var GLTable =
Model.AddCalculatedTable(
GLTableName,
"Distinct(" + GLColumn.DaxObjectFullName + ")");
var SearchTable =
Model.AddCalculatedTable(
SearchTableName,
"SUMMARIZE(" +
"'" + GLColumn.Table.Name + "'" +
"," + enter +
GLColumn.DaxObjectFullName +
"," + enter +
DescriptionColumn.DaxObjectFullName +
"," + enter +
AccountColumn.DaxObjectFullName +
"," + enter +
AmountColumn.DaxObjectFullName + enter +
")");
var TestTable =
Model.AddCalculatedTable(
"Model Measures",
"DATATABLE("Test",STRING,"Test2",STRING,{{"Alpha","Beta"},{"Gamma","Theta"}})");
Part 2) CalculatedTableColumn Script
var rel_GL =
GLTable.AddCalculatedTableColumn(
GLColumn.Name,
GLColumn.DaxObjectName,
"",
DataType.String);
var rel_Search =
SearchTable.AddCalculatedTableColumn(
GLColumn.Name,
GLColumn.DaxObjectName,
"",
DataType.String);
var rel_Test =
TestTable.AddCalculatedTableColumn(
GLColumn.Name,
GLColumn.DaxObjectName,
"",
DataType.String);
Part 3
Only relationships created using "TestTable" works. The rest all do not work and throw up the error:
"Relationship[xxxxx] uses an invalid column ID xxxx" (I do not know how to find out which Column ID that refers to.
Is there a difference between how "AddCalculatedTableColumn" should be used between Distinct / Summarize calctables vs "Datatable" calctables?
I can provide additional data if needed.

I think I found a workaround using "SelectColumns" to manually allocate a column name to each column so that addcalculatedtablecolumn is picking up the right name.

The problem is that the AS engine may internally use a different value for the SourceColumn property of the CalculatedTableColumn than the one you assign in your script (GLColumn.DaxObjectName). Therefore, the engine is actually dropping the column added by you, and instead inserting a new column based on the DAX expression. If you want to use AddCalculatedTableColumn you have to make sure that the SourceColumn value you assign (2nd argument) must be identical to what the engine would use based on the DAX expression of the calc table.


(Fix) Fix undefined for maxValue validator  in case there is no token selected

Description

Working on #1013 I found that was possible to add a value on the send funds modal without selecting an asset

This prs fixs that by disabling the review button:

@Agupane I don't understand how disabling a button would prevent an error in the validator. No matter if the button is disabled or not, you can still type inside the input, right?

Yep, I disabled the input, my bad explaining sorry

Why disable the input over fixing the validator?

Why disable the input over fixing the validator?

It's most natural. The validation that is failing needs to check the availability of funds to be sure the amount is correct. So either you'll be giving a false positive or a false negative.
This way you guide the user through the form filling process.

@fernandomg I don’t agree. I think more natural is to let user type whatever he wants first and this can be achieved my minimum effort of adding another if statement inside the validator

E.g I may want to send a specific amount of funds I copied from somewhere and the first thing I want to do is to paste it so I can copy paste an address. I think being more lean is better

Travis automatic deployment:
https://pr1031--safereact.review.gnosisdev.com/app

Travis automatic deployment:
https://pr1031--safereact.review.gnosisdev.com/app

I have an issue.
Being able to put the number first and the asset second creates an issue where you can put more amount of tokens that you actually have

Check the validation of the amount after setting the token.
Or, my suggestion, put a "you must select a token" if you put anything in the "amount" field.
https://pr1031--safereact.review.gnosisdev.com/app/#/safes/0x9913B9180C20C6b0F21B6480c84422F6ebc4B808/balances

Travis automatic deployment:
https://pr1031--safereact.review.gnosisdev.com/app

There is another issue.
If you copy/paste an address in the Reciever field the review button will never enable. you have to pick it from the display given by the address book
Is expected that I should be able to copy/paste an address.
https://pr1031--safereact.review.gnosisdev.com/app/#/safes/0x9913B9180C20C6b0F21B6480c84422F6ebc4B808/balances

Fixed @francovenica

Travis automatic deployment:
https://pr1031--safereact.review.gnosisdev.com/app

Looks good to me now.


Bug? - GB version 'Financially Voided BACS' missing from Source Code Setup

Describe the bug
A field that was relied upon in the UK (GB) version was 'Financially Voided BACS' found in Table 242 Source Code Setup - this has been removed but is essential to my solution..!!  I presume this is a bug because there is still a field (37) 'Financially Voided Check' in the Source Code Setup table so if you were clearing out BACS fields you should have replaced with a 'Financially Voided Electronic Payment' field and not simply deleted a field essential for the UK market!
To Reproduce
Steps and to reproduce the behavior:

Go to '...'

AL Code to reproduce the issue
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
5. Versions:

AL Language:

Business Central:

<IP_ADDRESS>

Let's get the issue to a team who will fix and backport it, as this repository is only for issues related to the latest developer preview environment for Dynamics 365 Business Central. We suggest that you open a support case or file a bug in Collaborate, to ensure that all Business Central users benefit from your catch as soon as possible.
To open a support case, you can:

Open a support request to CSS through the PartnerSource portal
Contact your Service Account Manager (SAM) in your local subsidiary to understand what is included in your contract as of support incident and PAH (Partner Advisory Hours). Your SAM might also direct you "step by step" how to open a support request or how to get credentials, if this is the first time for you or your company

If you file the bug in Collaborate, remember to include steps to reproduce the issue, and the Business Central build number and country version you're using.


GeoOps Issues with Large Workloads

I have been testing GeoOps and I love it, but i have a problem with GeoOps maps not loading when i use workloads which have more entities, I have 4 screenshots showing the problem.
Essentially, I create a map, assign a workload which only has one entity and it works fine. As soon as i assigned a larger workload GeoOps breaks on me.
Assigning test workload with one host

If I edit this small workload, with one that has more entities:

And i try and reload the map it breaks

If i assign the larger workload when building the map, it won't load when i click view map. This only seems to work with tiny workloads.

@amarbarot thanks for the detailed issue. We're prioritizing this work to be addressed soon.

Thanks @tangollama
I've been trying different combination of workloads, can't really pinpoint what the tipping point is, a workload with 100 hosts seems to work, anything above 250 breaks it.
Must be a limit somewhere stopping large workloads from loading.

@tangollama Any news on any progress or when this will be looking into?, I want us to start using it for production monitoring.

@amarbarot Hi, I'm putting my hands on this issue now and will try to return with some solution ASAP :)

Thanks @madecki
Hopefully you are seeing the same issue on your side also.
The idea is we want a workload per state, each workload will have at-least 1000 entities. We need the dashboard to long

Design/issue notes:

It appears that we're running into the documented limit on the number of entities in an actor.entities(guid) nerdgraph request,
So, we need to chunk the request in 25-entity pages,
And deal with the result on the back end

Steps

Turn this const into a function that generates multiple entities with aliases. I recommend query1: entities..., query2: entities for each 25-entity "page" https://github.com/newrelic/nr1-workload-geoops/blob/master/nerdlets/shared/services/queries.js#L141
In here (https://github.com/newrelic/nr1-workload-geoops/blob/master/nerdlets/shared/components/AlertableEntitiesByGuidsQuery.js#L139) recombinate the results based on the convention of how you've had to chunk the data.

cc: @devfreddy @madecki

So do i need to download this again and try again?


Don't silently use Node executables of a different version

I just debugged for hours why on earth my .exe keeps crashing when created with pkg but not nexe and then I found the very simple solution:
I'm using a feature that was introduced in node v10.6.0 (and am currently using v10.8.0) but pkg simply used v10.4.1 - no error, warning, nothing.

Is it possible to specify a locally build node executable for pkg to use instead of the downloaded one ?

I found the very simple solution

@s-h-a-d-o-w what was the solution, it isn't obvious to me. Also, is there a way to find out which version it has packaged? Thanks.

Apologies, I misspoke. I meant "reason".
You could try passing --build to pkg, so that it builds from source. I assume (!) that it would fetch the sources for the node version you are currently using. Note that building may take 1 hour depending on your machine and the last time I did it with nexe (maybe pkg's build pipeline works differently), it made my machine unusable - very aggressive CPU usage.
(Edited my original post)

Thanks, and for the tips. I wasn't aware of nexe . How do they compare - any notable pros and cons of one or the other?

You're welcome.
Not really, what I like and dislike about either one is quite balanced.
I'd recommend to try them both and see which works best for you.


Add flag for PST approval (security team)

Change-Id: I568554486f6c872d6f4bc3fe965258a9e4bad67f
Signed-off-by: Lon Hohberger<EMAIL_ADDRESS>

Thanks! Tagged v1.2.6 with this change.


How much time for writes to reflect in read-replicas?

what is the time taken for new writes to be available in read replicas?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 7a2961d1-4448-11b7-2dc2-3b738bd70939
Version Independent ID: 206eb022-25c4-66d7-7285-0d53a84956e3
Content: Azure SQL Database - read queries on replicas
Content Source: articles/sql-database/sql-database-read-scale-out.md
Service: sql-database
GitHub Login: @anosov1960
Microsoft Alias: sashan

@mrigank-kishore Thanks for the inquiry. The data should be available for read operations within a short time but there are some factors as described here: Read-Only Routing

Read-only routing may take longer than connecting to the primary. The longer wait is because read-only routing first connects to the primary, and then looks for the best available readable secondary. Due to these multiple steps, you should increase your login timeout to at least 30 seconds.

Regards,
Mike

@mrigank-kishore Does this answer your question? We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


Feat : add speak synthesizer using Web Speech API

Memutar audio untuk kode radio ketika di-klik menggunakan Speech API.
Already tested using:

Google chrome 8x.xx, Firefox 81.xx (Manjaro Linux & windows 10)
Google chrome & Firefox (Android 9 MIUI10, Android 8 AOSP)
Safari (iOS 13.7)
and it plays audio

Forget to mention #6

Oke thx mas.
Btw, this is a cool project and I'm planning to add more "Materi" wkw, so imma gonna flood you with notification hahaha.

I am very welcome, just make sure you create an issue first.
so we can understand the context before you create a PR


Update to 3.0.0a13

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

@conda-forge-admin, please rerender

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe/recipe.yaml) and found it was in an excellent condition.
I do have some suggestions for making it better though...
For recipe/recipe.yaml:

ℹ noarch: python recipes should usually follow the syntax in our documentation for specifying the Python version.

For the test.requires section of the recipe, you should usually use python ${{ python_min }} for the python entry.
If the package requires a newer Python version than the currently supported minimum version on conda-forge, you can override the python_min variable by adding a Jinja2 set statement at the top of your recipe (or using an equivalent context variable for v1 recipes).

This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/12473365123. Examine the logs at this URL for more detail.

Hi! This is the friendly automated conda-forge-webservice.
I tried to rerender for you, but it looks like there was nothing to do.
This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/12473373250. Examine the logs at this URL for more detail.


Show global Update Notification only when at least one ready package can be updated

Is your feature request related to a problem? Please describe.
Currently, we show the update notification on the package overview whenever there is a package where latestVersion != spec.version, not taking the status into account.
Describe the solution you'd like
Take package status into account, such that the notification only appears when at least one package is ready.
Describe alternatives you've considered
Not implementing this could cause confusion, but it's probably not such a big deal.
Additional context
#329 #344

won't fix


Error  getint()

I have some troubles to get the integer in a variable. My firebase is like this;

if Imake getInt("Count") I get the number, but if I want the "Count" inside "36" and I make a getInt("12/36/Count") it dosen´t works someone can help me?

Can you please share your code?


Windows support

I use a mix of Linux and Windows machines. On Windows, I use MSys to get a useable shell.
It would be great if homeshick could work in this environment. Apart from failing to parse the git version string (it's "1.9.4.msysgit.2"), the only thing that I see that would need changing is symbolic link creation. Since Vista, Windows supports symlinks, so it's possible: http://stackoverflow.com/questions/18641864/git-bash-shell-fails-to-create-symbolic-links#25394801

I agree that Windows support would be quite nice, but symlinking is not the only requirement. We also need a way to replace readlink and other various tools.
I'd be open to merging a PR that passes all the unit tests, but I myself will have a hard time maintaining it, since I do not work with Windows at all.

Closing due to lack of activity (I assume this means lack of interest as well).
Feel free to re-open if you have a working version. Depending on the extent of the modifications I might merge, otherwise it will definitely get a mention in the wiki and the README.

@andsens I am porting this into Powershell to use on my windows hosts. https://stash.firekitten.net/Firekitten/homepsick
I am targeting powershell 7 which can be run on other platforms, and doing my best to keep it platform agnostic.  But its purpose is definitely to allow someone to use it along side homeshick with their windows hosts using the same repos and methodology.
If you are interested in discussing at all or having any input, please let me know.

What a brilliant effort @KitKat31337 :-D
Something like #77 would definitely be helpful in this case. The current version of homeshick is kind of "done". Meaning I still fix bugs and merge some minor features, but nothing major will change. At some point I might do a refactor and do the argument parsing with docopt.sh, but that's quite a bit in the future. Unfortunately it doesn't seem like anybody ported docopt to PS :-/
Once you think your port is done enough, let me know and I will link to it from the README. And don't hesitate to ask if I can help in any way (that doesn't involve coding PS (I suck at that :-) ). Maybe open a new issue to discuss everything.

@andsens
Strictly speaking its functional-ish already, but requires you to link all the functions manually as I have not made a module manifest yet.  I have the ability to clone a castle, and to link a castle.  Next up I will have the ability to pull from git to update castle, which is the basic bare bones MVP (at least for me).  At that time I plan to make the module manifest so you can do a one line import and use all the functions.  I will look at #77 more, just OS Filtering seems pretty simple.

@andsens I moved the project over to github to make it simpler for people to colloaborate if they wanted to fork and PR.
https://github.com/KitKat31337/homepsick


[stable/spinnaker] Allow service-settings to be extended with kubernetes configuration

What this PR does / why we need it:
This extends the spinnaker service-settings-configmap to support custom kubernetes configuration. For reference https://www.spinnaker.io/reference/halyard/custom/#custom-service-settings
The use case I am trying to support is adding custom annotation to Spinnaker services, such as those required by kiam. I first tried using the additionalProfileConfigMaps setting but found that while it was mounted into the halyard pod, it was not applied. I then tried this approach which worked.
Special notes for your reviewer:
In its current form this PR is more of a POC to get feedback on the approach, as I am not sure if this is the correct way to solve the use case. If it is, Ill expand the service-settings to allow for all services to be configured, update docs, etc
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[ ] Variables are documented in the README.md

/assign @viglesiasce

It seems like this PR would solve the issues in #12032 #12520 and #12719

/lgtm

/test pull-charts-e2e

@paulczar @dwardu89 can you give the /ok-to-test?

Hi @darend. Thanks for what you;ve done in this PR
Please have a look at latest state of #13049 - it allows to add custom settings for any Spinnaker service in a pretty generic way (not only for kubernetes block). What do you think about that?

Hi @darend. Thank you for what you've done in this PR!
Please have a look at latest state of #13049 - it allows to add custom settings for any Spinnaker service in a pretty generic way (not only for kubernetes block). What do you think about it?

Thanks @legal90 , that is a cleaner and more extensible solution. Ill wait for the maintainers to chime in, and can then close this PR

Replaced by https://github.com/helm/charts/pull/13049


Make ejecting from devices configurable in ball search.

Added functionality and test.
The test case adapts a previous test, test_ball_search_iterations_and_give_up_with_new_ball, but changes the config file, adds relevant asserts, and removes irrelevant asserts and simplifies the advancing of time and running in the test.

fixes #1204

Perfect. Thanks!


playground: show real go runtime version in About document

I found it shows wrong Go version when the "About" button clicked.
It says go1.14.14 while runtime.Version() returns go1.15.8 as of now.

The actual go runtime version is available in the GO_VERSION env var set by Dockerfile.

@googlebot I signed it!


Add CONTRIBUTING.md with snapshot test documentation

This change resolves issue #24 by adding CONTRIBUTING.md which includes documentation on snapshot testing.

Hi @liamnichols, thanks for the feedback. I'm appreciative of the guidance :) I've moved CONTRIBUTING.md to the project root, made the requested changes on "expected diffs" and pushed the commit to this PR. Please let me know if there's anything else needed on this PR. Also, if/when other issues arise please free to let me know. I'm trying to build up my experience collaborating on open source Swift projects, and this is a cool one!

Also, if/when other issues arise please free to let me know. I'm trying to build up my experience collaborating on open source Swift projects, and this is a cool one!

I'll tag issues with the good first issue label ... if any interest you, feel free to comment on it to let me know that you want to work on it and I'll try to give any advice if necessary 🙇
If you want to get notified, you can watch the repo in GitHub about any future activity too 👍🏼


Add command to check all files for bit rot

Coverage decreased (-0.2%) to 91.824% when pulling 9ad73581986eaa95bebee4e837392e3642eb7fde on regen-stats into a82114818f152a48410b22652cf9dba701ce7ce1 on master.

Coverage increased (+0.03%) to 92.075% when pulling 7c3f323c449c49539e3b9d895f3de265148f5012 on regen-stats into a82114818f152a48410b22652cf9dba701ce7ce1 on master.


Standardize report api names

Which in turn allowed simplifying some of the report code.  Pulled the report lists out and moved them up to the apps.

Even nicer. I wanted to keep it very localized so did it all in Reports.tsx.
Filtering the reports array is the cleaner vernacular.
Ship it!


ZFS kernel panic in 21.05

Describe the bug
My NAS runs 21.05.20210721.63ee5cd (Okapi), with the stable ZFS package (version 2.0.5-1). Yesterday, it kernel-panicked in ZFS block management code.
I traced the panic back to openzfs/zfs#11531, which was fixed by https://github.com/openzfs/zfs/commit/a81b812495a20623a49c797d255ee5d89fc38790 and released in ZFS 2.1.0, but not backported to 2.0.x.
I filed https://github.com/openzfs/zfs/issues/12494 to request a backport + 2.0.6 release upstream, so that downstream distros can pull the fix without having to upgrade a stable OS release to ZFS 2.1. I have no idea if the OpenZFS project continues maintaining prior minor releases for a while, or if they'll say that downstream distros should import the patch if they care.
Filing this bug to track either importing ZFS 2.0.6 if such a release happens, or to consider backporting the panic fix into NixOS as a downstream patch on 2.0.5.
Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
  - linuxPackages.zfs
  - linuxPackages.zfsStable
# a list of nixos modules affected by the problem
module:

For reference: https://github.com/openzfs/zfs/pull/12346 is a PR that backports two critical fixes (the crash mentioned above, and a persistent data corruption bug) for a prospective 2.0.6. It's not clear yet whether a 2.0.6 will actually happen, but that's the current upstream status.

FYI zfsUnstable on 21.05 points to a stable ZFS 2.1, so if you can upgrade to a newer ZFS, but want to remain on a stable NixOS, that might be a workaround for you.

Sure, but that's adopting a major new release of ZFS on a stable storage system. I'd be much happier with a targeted fix against a more mature release. For this particular dataset, I don't want to be the first to find the exciting new 2.1 bugs :)

Perfectly understandable & reasonable, just wanted to make sure you're aware of this option :)

21.05 is EOL


Add struct members that IntelliJ plugin expects to exist

The IntelliJ plugin assumes that source_jar and source_jars are both
present on the jars struct. This sets those to empty values, so the
IntelliJ plugin does not fail.

test this please (ci bot)

test this please (ci bot)
ci.bazel.build timed out in bazel fetch

Thanks for looking at it

Thank you for tackling it :)


Error: spawn node_modules\typescript\bin\tsc ENOENT

Hi, I'm attempting to use this and I get the following error:
PS C:\test-tsc> node test.js
[node-typescript-compiler] spawning C:\test-tsc\node_modules\typescript\bin\tsc --help

{ Error: Spawn : got err event : Error: spawn C:\test-tsc\node_modules\typescript\bin\tsc ENOENT
    at fail (C:\test-tsc\node_modules\node-typescript-compiler\index.js:56:17)
    at ChildProcess.spawn_instance.on.err (C:\test-tsc\node_modules\node-typescript-compiler\index.js:65:5)
    at emitOne (events.js:125:13)
    at ChildProcess.emit (events.js:221:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:207:12)
    at onErrorNT (internal/child_process.js:389:16)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9) stdout: '', stderr: '' }
(node:10532) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Spawn : got err event : Error: spawn C:\test-tsc\node_modules\typescript\bin\tsc ENOENT
(node:10532) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js
process with a non-zero exit code.
{ Error: Spawn : got event close with error code "-4058" & signal "null"
    at fail (C:\test-tsc\node_modules\node-typescript-compiler\index.js:56:17)
    at ChildProcess.spawn_instance.on (C:\test-tsc\node_modules\node-typescript-compiler\index.js:80:6)
    at emitTwo (events.js:135:13)
    at ChildProcess.emit (events.js:224:7)
    at maybeClose (internal/child_process.js:943:16)
    at Socket.stream.socket.on (internal/child_process.js:363:11)
    at emitOne (events.js:125:13)
    at Socket.emit (events.js:221:7)
    at Pipe._handle.close [as _onclose] (net.js:558:12) stdout: '', stderr: '' }

package.json
{
  "name": "test",
  "version": "1.0.0",
  "description": "",
  "main": "test.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "devDependencies": {
    "node-typescript-compiler": "^1.1.1",
    "typescript": "^3.0.1"
  }
}

test.js
const tsc = require('node-typescript-compiler')

return tsc.compile({
    'help': true
})

node.test.js

It seems node-typescript-compiler has a hard time finding the "tsc" executable. Did you install "typescript" as a dependency?
cf. the README

node-typescript-compiler requires the typescript module as a sibling, not included so you can choose version. (though node-typescript-compiler will intelligently try to locate global typescript if it can't be found as a sibling

Hi @Offirmo, I did run npm install.
I have just tried with Typescript 2.9.2 and I get the same error. It must be something with my environment.
I have also tried creating a package.json script with node test.js and I get the same error.
Any suggestions?
Thank you.

Sorry I'm going on holiday 2 weeks.
I checked TS 3 and the tsc executable is at the correct place...

Hi mates,

this tool moved to another repo: https://github.com/Offirmo/offirmo-monorepo/tree/master/4-tools/node-typescript-compiler
I just pushed v2.1.1 with better error reporting. Also you can use "verbose: true" which was previously undocumented. Check the doc.

I'll close this issue, please reopen in the other repo.


Update color tokens for theming support

General Support Request
In order to make Auro components themeable, we need to make sure there are no hard-coded and correct semanticly named tokens within the component. There also needs to be investigation around border rules which have a combination of size and color tokens, making them more complex, as well as background-color and color rules.
Possible Solution
Work with designers to figure out what tokens need updated values or renamed.
Additional context
This work stems from theming work happening to all Auro components:

https://github.com/AlaskaAirlines/AuroDesignTokens/issues/147

Rules and tokens to be edited can be found in the comments.
Exit Criteria
All hardcoded values and tier 1 tokens (brand tokens), are removed and replaced by semanticly named tier 2 and 3 tokens

Tier 1

Background-color: var(--ds-color-brand-neutral-100, $ds-color-brand-neutral-100);
Background-image: linear-gradient(to right,var(--ds-color-brand-neutral-100, $ds-color-brand-neutral-100) 10%,var(--ds-color-brand-neutral-200, $ds-color-brand-neutral-200) 40%,var(--ds-color-brand-neutral-100, $ds-color-brand-neutral-100) 60%);

Need design to revise the semantic tokens being used within the tokens.scss file.


Iterations with Microsoft re/ Deployment on Azure

A project-issue with many sub-issues.

[x] Test & review the Azure deployment templates & docs we got from Microsoft - Issue #503
[x] More to come.

I'm closing this issue because it's really part of issue #498 --- Azure is one of the "two clouds." I'll move issue #503 under issue #498


[Feature Request] BetterF3 Support

While the setting which allows you to see which specific shader you're using via shift clicking the SSS button is nice, it would also probably be good for those used to the old system to have the current shader listed within F3, especially when using the BetterF3 mod.
Also would be ideal to have this backported to 1.18.2 considering that's the last major version without mojang's chat report addition.

(it would also be nice if additions of SSS can be backported in general)


[New Feature]: Log each request and response with relevant details for deriving metrics

Description
Logging each request and response with a timestamp, status, response time, etc, is useful for observability purposes. This is especially useful for deriving metrics from logs. Such logs need to be generated from all transports, and should have the ability to enable or disable logging via a configuration.
This is applicable to both Ballerina and MI.
e.g. logs for HTTP:
[timestamp] <request|response>
[2024-07-27T11:31:06] request b76a4c42-8eaa-466b-b471-fbfa4cb759bf GET /sales /accounts
[2024-07-27T11:31:06] response 9e01c068-97c9-44be-8424-5643eb4852 GET /sales /accounts 200 2489
Describe your problem(s)
No response
Describe your solution(s)
No response
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response

I think this is already implemented: https://ballerina.io/learn/by-example/http-trace-logs/


I'm unsure that tests in test/integration/default are ever used

All the integration tests are in test/integration/default, but none of the test suites in test kitchen have the name default.  So, I think:

postgresql_spec.rb needs to be moved to test/integration/postgresql/serversspec
mysql_spec.rb needs to be moved to test/integration/mysql/serverspec
spec_helper.rb needs to be moved to test/integration/helpers/serverspec

Can anyone tell my what that should not be so?
Thanks

These should get moved into dirs for each test suite

Hey tas50,
The reason I have not done a pull request for my little change is that testing for centers 7.1 is broken when running against the postgresql 4.0 cookbook, which was released 3 days ago.  However, the existing tests also fail for the same reason.
Set the version dependency to "~> 3.0"  ?
Wait for 4.0 to get fixed?
Can we merge in something that does not pass CI cleanly considering it will be no more broken than the existing code that will not pass CI cleanly?
Thoughts?

This got fixed with https://github.com/chef-cookbooks/database/pull/189.


Support for headless service

Hello,
We are currently working on deploying RDMA-based applications in the Kubernetes cluster. RDMA runs over secondary-network interfaces, which makes multus-service very useful for us. The problem is that we must use headless type service for RDMA communication (because RDMA doesn't work well with NAT). I see that multus-service doesn't yet support headless services. Do you plan to support it? If yes, do you have an estimation of when this will be supported?

Hi @adihorowitz , thank you for the report.
Multus-service does not support headless service as you noted. To support headless service, it requires to change Kubernetes  (not multus-service, yeah. actually Kubernetes endpoint/endpointslice controller) to skip to add Pods IP address (i.e. eth0 IP address of Pod) into endpoint/endpointslice.
Currently multus-service is designed to utilize Kubernetes resource as much as possible, hence multus-service utilize Kubernetes endpointslice, Kubernetes service object and Kubernetes well-known label, service.kubernetes.io/service-proxy-name. This label enables kube-proxy to skip to add forwarding (i.e. iptables rules) and makes us to provide multus service without Kubernetes service forwarding plane, eth0 IP address for forwarding.
But still now, Kubernetes endpoint/endpointsclice controller automatically add eth0's IP address into endpoint/endpoint slice and this IP address is automatically added into CoreDNS for headless service. So if you try headless service with multus-service, CoreDNS may return eth0 IP address, added by Kubernetes controller. That is why multus-service does not support headless service.
To support headless service, we need to find a way to prevent Kubernetes controller to add eth0 IP address into endpointslice, however, currently Kubernetes does not provide a way to do that. There are several activities related, such as https://github.com/kubernetes-sigs/kpng/issues/349 so let's see.

Hi @s1061123, I was trying to work-around this issue by configuring an init container to query the DNS server, and keep only the secondary IP addresses (then pass the chosen IP to the main container). But I suspect that in the very beginning, there could be a situation where the coreDNS will return a DNS record that includes only the primary address - because the second endpointslice which is managed by multus-service-controller hasn't been created yet (a "race-condition" kind of scenario). What do you think? Is my explanation seems reasonable?

I'm not clear what you said yet.
When multus-service (i.e. Kubernetes service with label) is created, at that time, multus interface endpointslices are created by multus-service-controller (as you told) and primary interface is also created by kubernetes endpointslice controller. So your situation seems weird and it seems to be bug (I mean correct multus-service should have both).
Could you please how to repro that? (i.e. there is only primary interface in endpointslice)

Yes, the multus-service eventually will have both multus-controlled endpointslice and k8s-controlled endpointslice. But I wonder if there could be some very short amount of time where one of the endpointslices were configured and the other hasn't been configured yet (it is still in the process of configuration by the controller). In this short amount of time, if the init container queries the DNS server, the coreDNS will return only the primary network IP taken from the first endpointslice.

I see. yeah, we need a time to add endpointslices but it is expected. We may change some timer value for tuning, but we cannot add endpointslice with Pod IP before its pod is launched (because we cannot get pod IP before the pod's launch).

Right. Let me keep in mind this and try to tune the parameters of multus-service-controller. Thank you for the feedback!

Let me also mention that even though secondary network interface endpointslices are added, CoreDNS may return primary network interface IP address because CoreDNS do round-robin selection for IP in the endpointslice list (which contains parimary network interface IP address as well as secondary network interface address).

@adihorowitz just FYI (see above)

Thanks. I don't use the CoreDNS round-robin, my client gets the set of IP addresses and does the load-balance locally.


Label not available in package

As mentioned in this Hub thread, label stgHelpHouseholdRecType is not available in package because it isn't referenced in Apex:
https://powerofus.force.com/_ui/core/chatter/groups/GroupProfilePage?g=0F980000000D6uj&fId=0D58000002tIbzj

Included in beta release 1.15 (Beta 2)

**lurch: add

Tracking W-011090

Included in production release version 1.15


SOLIDPOD: How to use state management in terms of code refactoring

Description
State management seems to be a quite useful feature to manage the state of your Widget even across different screens. Investigate on how to use this in SolidPod.

This post provides a brief summary of many different state management approaches. Have a look if interested.
Navigating the Flutter State Management Maze: A Comprehensive Guide
https://medium.com/@aniszaouam5/navigating-the-flutter-state-management-maze-a-comprehensive-guide-bd2c5bccd238

Need to confirm that what type of data we can store it into state management.


empty page if there are no interested events

A simple informational text (saying there are no events interested in) that also has a link to the homepage would suffice.

commit id : cc308672ca251a20e94f613af6ec4689dda65549


Migrate from Popper 1.x to 2.x

Migrate from Popper 1.x to 2.x.
Maybe this can be done for Bootstrap 5?
https://popper.js.org/docs/v2/migration-guide/

Duplicate of #29842.


Adapt projecting pointcloud for different LIDAR sensor?

Hi @TixiaoShan,
Thanks for sharing this package.
I have a question about the function projectPointcloud. In this line, you hardcoded two numbers for identifying the column index of a point:
if (horizonAngle <= -90)
        columnIdn = -int(horizonAngle / ang_res_x) - 450;
      else if (horizonAngle >= 0)
        columnIdn = -int(horizonAngle / ang_res_x) + 1350;
      else
        columnIdn = 1350 - int(horizonAngle / ang_res_x);

If I understand correct, those numbers 450,1350 are somewhat related to the Velodyne VLP-16. They will probably not fit for other LIDAR, whose horizontal resolution is not 0.2 as the VLP-16. For example, the OS1-16 from Ouster has a horizontal resolution at 0.18, which creates a slightly bigger range image 16x2000.
I wonder if you could help me understand the logic behind this these number so that I can adapt them to different LIDAR sensor?
I appreciate your help!

@tuandle
You are correct. If the resolution of the lidar is not 0.2, then you need to change the code. In this code, we wanted to let the point from the front of the lidar (12 o'clock) be at the center of the image. The point at 7 o'clock is at the left side of the image. The point at 5 o'clock is at the right side of the image. You don't have to obey this (front points projected to the center) as long as the points are correctly projected.

Thanks for your help!

Hi @TixiaoShan
I would like to ask for your help again. I adapted the function projectPointCloud to fit my lidar. However, I am not sure how to verify that I project it correctly.
Looking at your code, I have a question about the way you calculate the horizontal angle.

In my drawing, if I understand correctly, you use atan2(x,y) here  to calculate the horizontal angle for point p_i. According to my drawing, should we use atan2(y,x) to calculate the angle gamma as the horizontal angle for point p_i?
And how do we verify that the all the points are projected properly? I visualize the rangeMat image from your function and get this (I am using your same_position.bag):

So how do you know that you project the cloud correctly to rangeMat?
I appreciate your help!
Thanks again!

@TixiaoShan any help? I saw that you briefly mentioned the point cloud projecting quality while using a different LIDAR here #3 .
Could you give me any hints how to access the projection quality?

@tuandle Can you share a bag file? I will take a look into that.

@TixiaoShan Thanks for your help. Here is the link. The Lidar is Ouster OS1-64.
The configuration for it is as folllows:
// Ouster 64
extern const int N_SCAN = 64;
extern const int Horizon_SCAN = 2000;
extern const float ang_res_x = 0.18;
extern const float ang_res_y = 0.52;
extern const float ang_bottom = 16.6 + 0.1;
extern const int groundScanInd = 20;

@tuandle
I am working on it. A quick question, is the terrain in the bag all flat, or it's a slope?

@tixiaoshan
I think it’s fairly flat because the bag is recorded with the lidar on top
of a car moving along a city road.
On Sat, Nov 17, 2018 at 16:49 Tixiao Shan<EMAIL_ADDRESS>wrote:

@tuandle https://github.com/tuandle
I am working on it. A quick question, is the terrain in the bag all flat,
or it's a slope?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/RobustFieldAutonomyLab/LeGO-LOAM/issues/38#issuecomment-439626699,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARm-NBjD9jgonxQjRsjI0oQQve-I04ERks5uwDATgaJpZM4YOuVS
.

@tuandle
Do you have a bag that has IMU data in it? I know ouster lidar has built-in imu.

@TixiaoShan Yes, I obtained the same result. I will upload the bag with imu reading shortly. However, I doubt it can be useful because 1) the imu is a cheap one, so it doesn't have orientation readings; 2) I believe the imu coordinate is not aligned with the lidar.

@TixiaoShan Here is the new link to the ouster bag with IMU readings.

@TixiaoShan Thanks for your help. Here is the link. The Lidar is Ouster OS1-64.
The configuration for it is as folllows:
// Ouster 64
extern const int N_SCAN = 64;
extern const int Horizon_SCAN = 2000;
extern const float ang_res_x = 0.18;
extern const float ang_res_y = 0.52;
extern const float ang_bottom = 16.6 + 0.1;
extern const int groundScanInd = 20;

I have a 16-lidar with the same resolution, and I change the ang_res_x into 0.18, but I got a kdtree error:
featureAssociation: /build/pcl-6_P28C/pcl-1.7.2/kdtree/include/pcl/kdtree/impl/kdtree_flann.hpp:136: int pcl::KdTreeFLANN<PointT, Dist>::nearestKSearch(const PointT&, int, std::vector<int>&, std::vector<float>&) const [with PointT = pcl::PointXYZI; Dist = flann::L2_Simple<float>]: Assertion point_representation_->isValid (point) && "Invalid (NaN, Inf) point coordinates given to nearestKSearch!"' failed.
[featureAssociation-5] process has died [pid 1069, exit code -6, cmd /home/roland/catkin_ws/devel/lib/lego_loam/featureAssociation __name:=featureAssociation __log:=/home/roland/.ros/log/4400251c-0f2b-11e9-9666-303a64706e80/featureAssociation-5.log].
log file: /home/roland/.ros/log/4400251c-0f2b-11e9-9666-303a64706e80/featureAssociation-5*.log
`
How do you solve this problem, looking forward for your reply, thanks.

Hi @tuandle
I tried to download your os1_imu.bag, however there's no TF inside the bag. Will result with errors.


I cannot get this to work. An established connection was aborted by the software in your host machine

I set up the raven.conf file in the Raven AppData folder just as the suggested example given in the wallet-groomer readme file.
Is there something else that I am suppose to do so the wallet-groomer can find my Raven wallet?

Ok, I resolved the previous problem, I was typing https:// for the host and not http://
But now I get this message when I accept the fee transaction following executing the groomer script.


Added cache to dateparser

Description
PR to add the code developed as part of C4GT" 23
Changes
Added the code developed as part of C4GT" 23
To DO

[x] Add caching to dateparser

Hey, try using this

Hey @Midas847 two small things on this front

Can you publish a performance benchmark for this? You can update the last test to do this.
Can you make caching optional as part of the constructor?

Hey @ChakshuGautam I made caching as optional and added the performance benchmark for this.

Is it improving speed. Can wr see some benchmarks?

Hey @ChakshuGautam , so this is the one without caching:

This is the one with caching:

It's slower than the older code that was generating 1M/second.

Closing this out since this approach didn't result in the expected outcome.
Thanks a lot for the PR @Midas847.


Clean up: remove redundant '\n' in Create

Signed-off-by: Lei Jitang<EMAIL_ADDRESS>\n in warnings = append(warnings, "IPv4 forwarding is disabled.\n") is
redundant since https://github.com/docker/docker/blob/master/api/client/create.go#L124 has output with \n
[l00284783@localhost docker]$ docker run -ti busybox
WARNING: IPv4 forwarding is disabled.

/ #

LGTM

LGTM


flat_option -> flatten

by following std::option::Option
https://doc.rust-lang.org/std/option/enum.Option.html#method.flatten

Oh, yikes, I merged this on my phone and I thought I wouldn't be able to if there were failing tests... :grimacing:


[Feature Request] Demo Mode + Custom UI Settings

Currently, when you run /Applications/Utilities/Nudge.app/Contents/MacOS/Nudge -demo-mode, it shows the default language, image, and other UI settings.  With how customizable Nudge's UI is, it would be helpful to add an extra flag to the demo-mode that would also display any settings being applied by configuration profiles or other such deployed settings.

Sorry, but the effort to do this is just not worth the effort for me. If you are wanting to try out your configs, you should just run Nudge as is.
There is a -bundle-mode option I use for testing within Xcode and it has a bundled JSON to test things, but it is technically no different than just deploying a local json and using that for your config and just makes it easier on me for development purposes.
Demo mode was one of the first flags I created to just showcase the UI and take screenshots, but it serves no real purpose.


Confusing translation for bug rapport

Microsoft PowerToys version
0.77.0
Utility with translation issue
System tray interaction
🌐 Language affected
Dutch
❌ Actual phrase(s)
Fout melden
✔ Expected phrase(s)
Foutenrapport
ℹ Why is the current translation wrong
When I rightclick on the Powertoys system tray icon, I see the text: "Fout melden". This is confusing because I expect this to take me to the GitHub page where I can report a bug. It translates to "Report bug". A better translation would be "Foutenrapport", which translates to bug rapport. The term Foutenrapport is also used in the bug looking like icon when you left click on the system tray.

I agree. Factually these are two very different actions.

https://dev.azure.com/GlobalCollaborationService/Global Collaboration Service Project/_workitems/edit/411300 /loc

Yup, agree!

This isn't a wrong translation. The English text has the same problem.


Add "Histogram" tool in pdsview.

Ginga has a very good widget for Histogram.py which can be used to add histogram support tool in our image viewer or we can make our own by taking its reference.  I have modified some of the histogram tool utilities like line color, grid off, plot style etc. in the conda env 'ginga27' and 'ginga34' on my PC.


npm: latest is pointing to 2.5.21

npm: latest is pointing to 2.5.21, instead of 3.0.x

That's really odd.  I suppose they are doing that by date rather than by version number.  I released v2.5.21 and v3.0.9 on the same day, but perhaps arbitrarily in the opposite order.
Let me see if this can be fixed without a v3.0.10 release.

Looks like npm dist-tag add<EMAIL_ADDRESS>latest fixed it.  Sorry for the trouble!


[Distributed] Prevent overloading on async in distributed methods, for wire compat

Resolves rdar://96179707 ([Distributed] mangling conflicts prevent overloading on async in DAs)
I'll add more discussion here but the code already has quite a bit of it.
This relates to:

https://github.com/apple/swift/pull/59831
rdar://96179707 ([Distributed] mangling conflicts prevent overloading on async in DAs)
ABI and wire compatibility concerns, which is I think it is important do do this ban, and not implement the https://github.com/apple/swift/pull/59831  change actually, but always mangle based on the thunk -> i.e. make all of them async throws (include YaK in the mangling).

@swift-ci please smoke test

Whoops, this test missing on main caused some issues -- so I'm going to merge this, so we have 5.7 parity, and I'm going to file a radar for following up on @xedin's comment https://github.com/apple/swift/pull/59880/#discussion_r914109871
Radar: rdar://100166877

@swift-ci please test and merge


Next version TODO

Next version of the scripts should include (at least) the following modifications:

[x] Fix (or remove) specific workspace windows
[x] Improve terminal theme and colors
[x] Include and set desktop background
[x] Change calls to launcher calls

Done in 1e5fead


Unable to use SSL offloader (Haproxy)

Using Haproxy with OPNsense against cypherpunkpay, but getting mixed content warnings (weird gui, blocked stylesheets) and 404 on /charge.
Any way to properly reverse proxy without using "built-in" caddy etc?

Please try this (it's for nginx but I hope you will be able to translate to your reverse proxy):
https://cypherpunkpay.org/installation/troubleshooting
Let me know if successful!

I have tried both Caddy and Nginx which both yielded the same results.
I serve a lot of locally hosted http content through the Haproxy setup, and never change any settings on the firewall/proxy.
I am not familiar with requests etc, but to me, it looks like http-content is force-requested by cypherpunkpay

CypherpunkPay believes the request came as HTTP so it renders http:// links.
Your Haproxy needs to set X-Forwarded-Proto header to inform downstream web servers that request came as https://. Here is how to do it:
https://cri.dev/posts/2020-05-26-Upgrade-HTTP-requests-with-X-Forwarded-Proto-Header-in-HAProxy/
Please also make sure you have this line in the [server] section in your /etc/cypherpunkpay.conf (the default):
trusted_proxy_headers = x-forwarded-for x-forwarded-host x-forwarded-proto x-forwarded-port
Please let me know if it helped!

Alternatively, add url_scheme = https to the [server] section in your /etc/cypherpunkpay.conf.
This will force https in CypherpunkPay regardless of upstream protocol headers.
Let me know!

This solved it.
I wouldn't know if this'll cause any security implications, but everything works so far.
I'll get to test payments, but so far so good.
Thank you for this amazing software, and great support.

I wouldn't know if this'll cause any security implications, but everything works so far.

No security implications with url_scheme = https.
The only implication is that if you point your web browser directly to the local network address of your CypherpunkPay (like 192.168...) then it won't work because it will still force https. But you most likely won't ever need this.


Implement research paper 2

[ ] Implement research paper 2

Initial (V1) model with wordnet and bert network model done


SubclassMetadata type refers to schema that doesn't exist

The library defines a SubclassMetadata type that refers to a schema that doesn't exist in the asdf-standard repo.  Should we add one?

This is related to https://github.com/spacetelescope/gwcs/issues/128 and #563, the desire to serialize subclasses of a known type.
Agree we should add one, though I don't know what is involved.


Respect defaults in photoprism.in

I'm a lazy person that would like to use /usr/local/bin/photoprism from the command line without having to pass in all the args and paths already configured in /etc/rc.conf, so I was glad to find that I could put all the configuration in /etc/photoprism/defaults.yml:
https://docs.photoprism.app/getting-started/config-files/defaults/
That works for calling /usr/local/bin/photoprism, but doesn't work for the rc.d script. Even though the port installation says it should, if I set photoprism_defaultsyaml:
https://github.com/huo-ju/photoprism-freebsd-port/blob/main/files/pkg-message.in#L9-L11
The problem is that, although a defaults YAML file can be specified, the rc script actually overwrites some configurations to empty. Ex: --assets-path=${photoprism_assetspath} expands to --assets-path=  and sets the path to empty, even if it is specified in your YAML configuration file (but not in /etc/rc.conf).
I could duplicate configurations between /etc/rc.conf and /etc/photoprism/defaults.yml, but I'd prefer to have the RC script always respect the defaults.
With the changes from this PR, one could create a /etc/photoprism/defaults.yml file with all the configuration they need and call /usr/local/bin/photoprism from the command line and have the rc script read the file and apply its settings with only photoprism_enable="YES" in their /etc/rc.conf.
I'm no SH/BASH wizard, I have tested my changes, but I suspect they could be simplified to something more idiomatic.

lgtm, Thanks!


Readme badges improvements

I would also say it could just use a few less badges but that's up to you

I don't know what I was thinking back then but yeah this definitely has way more badges than needed


How to show it? at button pressed?

I'm trying to pop the Calender to make the user select his range of days but it didn't pop up that's my code
  Future<void> _showDatePickerDialog(BuildContext context) async {
    final List<DateTime>? pickedDates = await showDialog<List<DateTime>>(
      context: context,
      builder: (BuildContext context) {
        return Dialog(
          child: SizedBox(
            width: MediaQuery.of(context).size.width,
            child: CalendarDatePicker2WithActionButtons(
              config: CalendarDatePicker2WithActionButtonsConfig(
                firstDayOfWeek: 1,
                calendarType: CalendarDatePicker2Type.range,
                selectedDayTextStyle: const TextStyle(
                  color: Colors.white,
                  fontWeight: FontWeight.w700,
                ),
                selectedDayHighlightColor: Colors.purple[800],
                centerAlignModePicker: true,
                customModePickerIcon: const SizedBox(),
              ),
              value: [DateTime.now()],
              onValueChanged: (dates) {},
            ),
          ),
        );
      },
    );

    if (pickedDates != null) {
      // Handle picked dates
    }
  }

I got Exception
 A RenderFlex overflowed by 2.3 pixels on the right.

I found the answer ty all
showCalendarDatePicker2Dialog


Changed to the new web site groovy-lang.org

Merged: bb46d8b39dc85991cf94caae66aab53a66ff6fca
Thanks!

Merged: bb46d8b39dc85991cf94caae66aab53a66ff6fca
Thanks!


Node Handler check, is not handling mjs file extension

Description
The node handler check is not handling the file extension for esm modules (mjs) correctly, so you always see as an error in aws lambdas, and this is misleading
[NR_EXT] Startup check failed: Missing handler file newrelic-lambda-wrapper.handler
Steps to Reproduce

have a mjs file as a handler
the check will tell that the handler is not found as it only looks for js files

Expected Behavior

handle mjs files

I'm happy to provide a pr to fix this issue

This should be resolved in the more recent layers. Please update and try again.


Chrome: (Preview / Share) Display is very blurry

When viewing a project in a browser the resulting screens are very blurry on Chrome, but not on Safari. This happens on both retina and non-retina screens. Only when viewed at exactly 100% of the designed resolution the result is (sometimes) not blurry. This is however never possible to enforce when sharing.
I am wondering why this is happening and if there is anything that could be done about it. Either by editing the design/export or by changing something in Framer itself.

The examples in the gallery also have this issue, see for example https://share.framerjs.com/rysvoazf50xq/ (not mine)
Attached is a screenshot of this problem

A quick Google search seems to explain that this is an issue with how Chrome is scaling images. The workaround appears to be to share your prototype using "no device." Then it won't scale.

Apparently text can be fixed with antialiasing added: https://github.com/koenbok/Framer/issues/408
I can't confirm either solution, and the antialiasing one doesn't seem to work for me.


python3Packages.graph-tool: 2.32 -> 2.43

Motivation for this change
https://github.com/NixOS/nixpkgs/issues/151469
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
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Some dependencies such as boost and cgal should be moved from propagatedBuildInputs to buildInputs, but I'm too lazy to do and test that right now.

Thank you!


Skip middleware for certain handlers/routers/paths

Is there a preferred way of enabling a middleware only for a specific set of handlers?
Say, I want secret handler to require auth and health_check to be accessible without one:
from starlite import Request, get

from my_app.security.auth import Token, User

@get(path="/secret")
async def secret(request: Request[User, Token]) -> str:
    """Should require auth"""
    return user.username

@get(path="/")
def health_check() -> str:
    """Should not require auth"""
    return "healthy"

One way I found is checking for path inside the middleware and return AuthenticationResult(user=None, auth=None) if auth is not required, but I find it a bit quirky.
Ideally, I'd do something like this:
...

@get(path="/secret")
@authenticate
async def secret(request: Request[User, Token]) -> str: ...

@get(path="/")
def health_check() -> str: ...

or, perhaps
...

regular_router = Router(path="/", route_handlers=[health_check])
auth_router = Router(path="/", route_handlers=[secret], middleware=[AuthMiddleware])

Can you please show the example of the working solution that you found by checking path in the middleware?

Thanks for opening the issue, I think this is a problem that we need to solve. It would be very common for services to have a mix of authn and open routes.
IMO, having an allow-list of routes defined in a single location that can bypass authn could be perceived as beneficial, compared to having that logic dispersed throughout the code base.
If we were to go the decorator route, I think i'd prefer @skip_auth or something like that, so it was explicitly opt out, rather than in. Also, it would probably be better to have @get(..., skip_auth=True), i.e., extend the existing route decorators.
So if you can provide that example of the middleware with path inspection built in, I think we should discuss that first as as we could include an example in the docs of the pattern without having to modify any Starlite code, just as a first step.
Then, we can consider if/how we should modify Starlite to make the experience for something like this nicer.

If we were to go the decorator route, I think i'd prefer @skip_auth or something like that, so it was explicitly opt out, rather than in. Also, it would probably be better to have @get(..., skip_auth=True), i.e., extend the existing route decorators.

I am not sure this approach is right either since your only thinking about a single middleware.
What if I want 3 middlewares on a certain controller or single endpoint.
@Bobronium approach is good start on the Router, however it would be good to apply to a single route, group of routes or globally.
I use laravel framework quite heavily for work and that approach works quite well. You can read more about its middleware.
I've keen to build something in a python framework using either starlite or fastapi just to see how it compares and get back into python since I am so rusty.

What if I want 3 middlewares on a certain controller or single endpoint.

Three layers of authentication middleware?

Sorry, thought whilst we looking at it be a good idea to look at the bigger picture :)

Absolutely no problem, and it is a discussion worth having.
At the moment we resolve the middleware stack on app initialization time and the whole stack is run before the route handler is resolved. But perhaps the middlewares could be resolved per handler like we resolve out all the other configs, we resolve the handler first and then get the middleware stack from it, execute the stack and finally call the handler.
There would have to be a bit of a reorganization of the way the inbound requests are handled to accommodate it, and I don't know what I don't know about it either, so there's a good chance there's some complication I'm missing. I might have a play around with a POC.

My thinking as well. I think this is the way to go - allow middleware definitions per route handler, controller, router or app.
We need to consider some things in general -

The more middlewares are added, the slower request processing is, because this is in effect a bunch of chained async calls. We thus need to resolve this stack in an optimal way per route handler and cache the resolved stack.

Not necessarily in the same scope, but still pertinent maybe: We should consider how to add data regarding middlewares to the OpenAPI docs. An example would be adding an authentication entry for some routes based on middlewares.

Can you please show the example of the working solution that you found by checking path in the middleware?

from dataclasses import dataclass
from starlette.requests import HTTPConnection

from starlite import AbstractAuthenticationMiddleware, AuthenticationResult, NotAuthorizedException

from myapp.security.jwt import decode_jwt_token

API_KEY_HEADER = "X-API-KEY"

@dataclass
class User:
    id: int
    username: str

USERS = {
    1: User(1, 'bob'),
    2: User(2, 'bab'),
}

class JWTAuthenticationMiddleware(AbstractAuthenticationMiddleware):
    async def authenticate_request(self, request: HTTPConnection) -> AuthenticationResult:
        """
        Given a request, parse the request api key stored in the header and retrieve the user correlating to the token
        """
        if request.base_url.path in {"/"}:
            return AuthenticationResult(user=None, auth=None)

        # retrieve the auth header
        auth_header = request.headers.get(API_KEY_HEADER)
        if not auth_header:
            raise NotAuthorizedException()

        token = decode_jwt_token(encoded_token=auth_header)

        user = USERS.get(token.uid)
        if not user:
            raise NotAuthorizedException()

        return AuthenticationResult(user=user, auth=token)

While we're here, I think auth middleware example in the docs is incomplete, since it doesn't consider how user would get the token.
One way is having a handler that doesn't require auth, but expects other type of credentials in the body, hence this issue :)

I think auth middleware example in the docs is incomplete

Docs contributions are gratefully accepted:)

I added a draft PR here -> https://github.com/starlite-api/starlite/pull/173, please checkout the code and add comments (see the description).


datatime, guid does not initialize default value

Add DateTime.Parse() and others in ValueGenerator

See PR https://github.com/RSuter/NJsonSchema/pull/913


Bot look API

          Ok, after reading the other comments I want to give some more detail about my reasoning to do it this way.

When the client changes its local pitch/yaw value, the server still has the old values, so sending a dig towards the new block under the cursor may trigger Anticheat, since it's not yet looked-at server-side.
Additionally, a bot may change the pitch to have one value in one place of the code, and assign a different pitch in another place. Waiting for the pitch to be updated means that at the moment the Action resolves, the pitch has the desired value.
Originally posted by @Gjum in https://github.com/RosegoldMC/rosegold.cr/pull/45#discussion_r1155184896

I don't understand exactly what your hesitation of the API is, it's the same functionality just using a different syntax that happens to feel more natural imho

Grepsedawk mentioned his use case where pitch/yaw are updated every tick:
until condition
  bot.yaw = 90
  bot.pitch = 60
  bot.dig
  bot.wait_tick
end

The problem with doing it like this is that #dig will use the newly set yaw and pitch to calculate the block under the cursor, which the server will not actually consider to be under the cursor until after wait_tick has returned, because the PlayerDigging packet is sent before the PlayerPositionAndLook packet, and thus we may cause an anticheat violation.
With the current API the same example looks like this:
until condition
  bot.look(90, 60) # waits until next physics tick, ie. for look to be sent to server
  bot.dig # actually waits for dig completion already
end

Another issue with directly assigning yaw/pitch/anything else in Player state is that several fields (yaw, pitch, x, y, z) are actually read while reading packets or sending packets, so they would have to be tracked somewhere else. IMO "queuing" the desired new state in physics is better in this regard than "remembering" the old state.
Directly assigning the new state also doesn't give any indication if an already assigned new state is being overwritten; in contrast, #look(new_look) can throw an error when a new look is already queued, either into the caller of the old look action or the new one, whichever makes more sense.

I think that this code knocks identical functionality to what look(y, p) does, and is what was in my head the whole time, but I'm open to further discussion
I wasn't talking about actually assigning pitch/yaw directly, but rather extending the look API so that pitch/yaw can be set at the bot level.
I was thinking this, which retains the same functionality:
https://github.com/RosegoldMC/rosegold.cr/pull/56/files#diff-24f1216b3649208f2f48a795bc62ff8eedcfade4002a27cb20fe021d1502007cR58-R68
For certain bots it can be annoying to track pitch/yaw separately, this just provides an interface to set one or the other utilizing the same methods you've described

I'm ok with adding the pitch=/yaw=/look= methods with the same underlying safe functionality (as you did in #56). :+1: It may be a tiny bit problematic to encourage setting yaw/pitch separately like this, though, because we then wait for two physics ticks instead of one. Maybe in the future we split pitch and yaw into separate actions, and have look= create both.


fix image file paths

Docs Build status updates of commit b7caddb:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

msteams-platform/task-modules-and-cards/cards/cards-format.md
:white_check_mark:Succeeded
View

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


feat(config): support istanbul-api instrumentation configuration

Add a configuration option to provide istanbul-api instrumentation configuration

With the new istanbul-api our symlinked monorepo packages are no longer being added to our coverage reports. Although istanbul-api has now been deprecated so I was tempted to try and move to the newer istanbul packages. This change was quicker and easier though. I could try to upgrade the dependencies in another PR if that's something that would be wanted?

Codecov Report

Merging #73 into master will increase coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #73      +/-   ##
==========================================
+ Coverage    97.7%   97.72%   +0.01%
==========================================
  Files           2        2
  Lines         131      132       +1
==========================================
+ Hits          128      129       +1
  Misses          3        3

Impacted Files
Coverage Δ

src/reporter.js
97.8% <100%> (+0.02%)
:arrow_up:

Continue to review full report at Codecov.

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

Requested changes all done. Thanks for taking a look at the PR.

Released as 2.1.0 🎉


[UX] Double clicking on a battle should bring up the battle view?

Design idea

Hi @edisontim, I am a ui/ux designer and a blockchain developer, I can come up with an idea on how to tackle this issue. Kindly assign

currently a double click will show the entity details
let's see how it feels during next playtest and adapt then


Failed to load mono

I got this image running last night and was able to connect, just to test it out.  I'm using Core OS in Google Cloud.
Today after the update I wiped my VM and tried to run this image again, but it crashes on boot, causing a boot loop.  The logs are below, but the relevant line seems to be
Unable to load mono library from /opt/valheim/server/valheim_server_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so

Sep 16 22:16:14 supervisord: valheim-server DEBUG - [664] - Server config is name: My Server, port: 2456/udp, world: Earth, public: 1, mod: none
Sep 16 22:16:14 supervisord: valheim-server DEBUG - [664] - Waiting for server to listen on UDP port 2456
Sep 16 22:16:14 supervisord: valheim-server I0916 22:16:14.047445     675 main.go:76] Configuring Valheim server log filter
Sep 16 22:16:14 supervisord: valheim-server I0916 22:16:14.047596     675 main.go:96] Removing log lines starting with '(Filename:'
Sep 16 22:16:14 supervisord: valheim-server I0916 22:16:14.047625     675 main.go:89] Removing log lines matching ' '
Sep 16 22:16:14 supervisord: valheim-server I0916 22:16:14.047643     675 main.go:125] Removing invalid UTF-8 chars: true
Sep 16 22:16:14 supervisord: valheim-server I0916 22:16:14.047665     675 main.go:122] Removing empty log lines: true
Sep 16 22:16:14 supervisord: valheim-server I0916 22:16:14.047690     675 main.go:96] Removing log lines starting with 'src/steamnetworkingsockets/clientlib/steamnetworkingsockets_lowlevel.cpp'
Sep 16 22:16:14 supervisord: valheim-server Found path: /opt/valheim/server/valheim_server.x86_64
Sep 16 22:16:14 supervisord: valheim-server Unable to load mono library from /opt/valheim/server/valheim_server_Data/MonoBleedingEdge/x86_64/libmonobdwgc-2.0.so
Sep 16 22:16:14 supervisord: valheim-server Failed to load mono
Sep 16 22:16:14 supervisord: valheim-server DEBUG - [664] - Valheim server with PID 668 stopped
Sep 16 22:16:14 supervisord: valheim-server INFO - Releasing PID file /var/run/valheim/valheim-server.pid
2021-09-16 22:16:14,062 INFO exited: valheim-server (exit status 0; not expected)
2021-09-16 22:16:14,062 INFO reaped unknown pid 670 (exit status 0)
2021-09-16 22:16:14,063 INFO reaped unknown pid 671 (terminated by SIGTERM)
Sep 16 22:16:14 supervisord: valheim-server INFO - Shutdown complete
2021-09-16 22:16:14,064 INFO gave up: valheim-server entered FATAL state, too many start retries too quickly
2021-09-16 22:16:18,070 INFO reaped unknown pid 674 (exit status 0)
2021-09-16 22:16:19,072 INFO reaped unknown pid 673 (exit status 0)
Sep 16 22:17:01 CRON[696]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)
Sep 16 22:17:01 CRON[697]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Sep 16 22:17:01 CRON[696]: pam_unix(cron:session): session closed for user root

I had a tmpfs volume mounted at /opt/valheim.  Removing this mount fixed the problem.


找到一个workflow json的bug

  json_value_t *test_val = json_value_create(JSON_VALUE_OBJECT);
  json_object_t *test_obj = json_value_object(test_val);
  json_object_append(test_obj, "test", JSON_VALUE_NUMBER, 123);
  json_object_append(test_obj, "recv", JSON_VALUE_STRING, "json");

  print_json_value(test_val, 0);

打印出来是
{
    "test": 0,
    "recv": "json"
}

https://stackoverflow.com/questions/12587860/va-arg-double-return-each-time-an-invalid-value
In your case, the function is expecting a double parameter, but you're trying to pass in an int. The compiler does not do any promotion here from int to double, so undefined behavior results. You need to always pass in a double value here, either as an explicit double constant value such as 1.0, or perform the conversion using a typecast.

关于json存储int
The integer type is used for integral numbers. JSON does not have distinct types for integers and floating-point values. Therefore, the presence or absence of a decimal point is not enough to distinguish between integers and non-integers. For example, 1 and 1.0 are two ways to represent the same value in JSON.

确实，我这里好像判断不了你传的是int还是double，因为用了不定参数。你只能写成123.0或123lf。

👌


Update to repo Name

Hey guys!
Holly here from Teamwork.com. I was hoping to you could please update the name on the read me and title for this?

TeamworkPM to Teamwork.com?

We would greatly appreciate it :)
Have a great day,
Holly

@loduis could you please rename the repository name as I don't have the permission to or give me the permission to do so.

Hi @simonschaufi What name do you want me to place?

I would suggest Teamwork.comPhpApi

I think is best "teamwork-project-management"
You can see the project of teamwork.
https://www.teamwork.com/

Well, "Teamwork.com" is the official name so imho "com" should also be part of it.

Thank you. Could you also please update the description below the repo name in english?

PHP API for Teamwork.com
and delete all the rest.


How does vue compile to jsx?

I am interested in helping provide a feature!
Yes
Which generators are impacted?

[ ] All
[ ] Angular
[ ] HTML
[ ] Qwik
[ ] React
[ ] React-Native
[ ] Solid
[ ] Stencil
[ ] Svelte
[X] Vue
[ ] Web components

What problem does this feature solve?
How does vue compile to jsx?
What does the proposed API look like?
How does vue compile to jsx?
Additional Information
No response

Not support yet,  we discussed before https://github.com/BuilderIO/mitosis/discussions/1021

This is really necessary, as many components are completely unwieldy without jsx functionality

As @kingzez mentioned, this is not supported yet. It is not a high-priority thing to do, because the syntax of the Mitosis output does not matter. It is a build artifact that developers don't need to look at. What does matter is:

Mitosis syntax (for DX)
performance & external UX of generated output

In this case, as far as I know, adding support for JSX output in Vue does not add any new features or benefits to people who create or consume Mitosis components. It is purely syntactic sugar, so I am not concerned about adding support anytime soon.


Memory Store production environment problem.

I installed latest versions of admin bro and components. I got this error
Warning: connect.session() MemoryStore is not
designed for a production environment, as it will leak
memory, and will not scale past a single process.

Dependencies
"dependencies": {
    "@sendgrid/mail": "^6.5.5",
    "admin-bro": "^2.4.2",
    "admin-bro-expressjs": "^2.0.5",
    "admin-bro-mongoose": "^0.5.2",
    "bcryptjs": "^2.4.3",
    "body-parser": "^1.19.0",
    "config": "^3.3.1",
    "cookie-parser": "^1.4.5",
    "cors": "^2.8.5",
    "express": "^4.17.1",
    "express-fileupload": "^1.1.6",
    "express-formidable": "^1.2.0",
    "express-mongo-sanitize": "^2.0.0",
    "express-rate-limit": "^5.1.3",
    "express-session": "^1.17.1",
    "express-validator": "^5.3.1",
    "google-auth-library": "^6.0.1",
    "helmet": "^3.22.1",
    "hpp": "^0.2.3",
    "jsonwebtoken": "^8.5.1",
    "mongoose": "^5.9.18",
    "mongoose-fuzzy-searching-v2": "^3.0.2",
    "mongoose-paginate-v2": "^1.3.9",
    "multer": "^1.4.2",
    "node-fetch": "^2.6.0",
    "nodemailer": "^6.4.8",
    "nodemailer-sendgrid-transport": "^0.2.0",
    "normalize-url": "^5.0.0",
    "request": "^2.88.2",
    "xss-clean": "^0.1.1"
  },

Os is Debian 10 Linux.
My admin.js file
const AdminBro = require("admin-bro");
const AdminBroExpress = require("admin-bro-expressjs");
const AdminBroMongoose = require("admin-bro-mongoose");
const mongoose = require("mongoose");
const bcrypt = require("bcryptjs");
const User = require("../../models/User");
const profile = require("../../models/Profile");
AdminBro.registerAdapter(AdminBroMongoose);

const adminBro = new AdminBro({
  databases: [mongoose],
  resources: [User, profile],
  rootPath: "/admin",
});

// const router = AdminBroExpress.buildRouter(adminBro);
// Build and use a router which will handle all AdminBro routes
const router = AdminBroExpress.buildAuthenticatedRouter(adminBro, {
  authenticate: async (email, password) => {
    const user = await User.findOne({ email });
    if (user) {
      if (user.role === "root") {
        const matched = await bcrypt.compare(password, user.password);
        console.log(user.role);
        if (matched) {
          return user;
        }
      }
    }
    return false;
  },
  cookiePassword: "some-secret-password-used-to-secure-cookie",
});
module.exports = router;

My admin js settings in server.js file
app.use("/admin", formidableMiddleware());
app.use(/^\/(?!admin).*/, express.json({ extended: false }));

How can i solve this problem thank you.

Hi - yep that is true with memory store. You will need to change it to something else. I see that you use Mongo so it would make sense to use it. I recently recorded a video explaining how to do that: take a look here: https://www.youtube.com/watch?v=wOSPDtvJcyQ (at the end).


Version (or alternative) for Windows?

Hey :)
Do you know if any similar alternative exist for Windows?
If not, do you plan to make a Win version of later?
Thanks a lot.
Best,
-a-

Addressed in the FAQ:

Is there a Windows app?
Not at the moment.

I wouldn't expect one, happy searching.


Is --otg supposed to work over tcpip?

[x] I have read the FAQ.
[x] I have searched in existing issues.

Environment

OS: Window 10
scrcpy version: 2.0
installation method: manual
device model: Xiaomi Redmi Note 4
Android version: 9

Describe the bug
Confused about " It may only work over USB." in the help for the --otg switch.
Is the --otg mode supposed to work over tcpip? I'm getting the following errors:
scrcpy --otg
scrcpy 2.0 https://github.com/Genymobile/scrcpy
INFO: Killing adb daemon (if any)...
INFO: USB device:  (1f4d:a803)
WARN: On this platform, libusb does not have hotplug capability; device disconnection will not be detected properly
ERROR: REGISTER_HID: libusb error: Entity not found
WARN: Register HID keyboard failed

It could not work over TCP/IP. It can only detect USB devices connected via… USB.

Ok, thanks. Sorry if this is a silly question, but since remote control works over tcpip, wouldn't it be trivial to offer the option to turn off the video mirroring of that code to provide a keyboard/mouse-only functionality over tcpip?

wouldn't it be trivial to offer the option to turn off the video mirroring of that code to provide a keyboard/mouse-only functionality over tcpip?

In OTG mode, the mouse is relative and the cursor appears on the device.
In normal control mode, only click positions are injected, so you need to see where you click. Without video, you can't.

Sorry, I may be misunderstanding and this will therefore be another silly question: "so you need to see where you click. Without video, you can't" ...Do you mean the user has to see where to click? In case it wasn't clear, I'm talking about a scenario where you'd be looking at the actual screen of the android device but you'd be controlling it, over tcpip, using a mouse and keyboard physically attached to the controlling device.

Do you mean the user has to see where to click?

Yes. With the default control mode (without --hid-mouse or --otg), you have no mouse pointer on the device. The position where the click must be injected is computed from the mirroring window size and the computer mouse pointer location. Without mirroring window, there is no location to click.

I think I get it now: the controlling side computes the position of the mouse from the actual incoming video stream data?...I guess you could not actually display that video stream but it wouldn't save on bandwidth, which would be my main goal. Thanks.

In other words, when you move your mouse:

in HID/OTG mode (USB only), it moves the cursor on the Android device
in "default" injection mode, it moves the cursor on the computer.

In the second case (when the cursor moves on the computer), you need to see something to click on (the device video stream), otherwise, where would you click?

Using Linux uhid may solve this problem


Proxy aggregation is slow and should be using multiple threads for aggregating streams

Duplicate #1116
v6.0-beta.30 now includes a change to allow more threads to perform proxy aggregation


Fix array params with non-string items

When using a schema where the items of an array have type integers:

the value conversion failed to use the correct item type
the validator validated the originalValue (before splitting) instead of each of the items individually

I'm very sorry this PR is a mess (no new test and breaks existing tests).
Just for the issue then: I'm using a Swagger 2.0 spec containing:
      parameters:
        - name: tags
          in: query
          type: array
          collectionFormat: pipes
          items:
            type: integer

Without the changes in this PR I can not use a URL  like list?tags=1|2|3 because it tries to validate the type of 1|2|3 is an integer in the validator.

Which version of swagger-tools are you using<EMAIL_ADDRESS>has support for collectionFormat and has a number of tests that show it works right: https://github.com/apigee-127/swagger-tools/blob/master/test/2.0/test-middleware-swagger-metadata.js#L519

I'm using<EMAIL_ADDRESS>I've written a failing test on a separate branch: https://github.com/bvleur/swagger-tools/commit/b07f80e9dc1f96cf2d659b5355d22c8cbb40a84c
Is this test okay?
The result I get is a failing test with, and to me it seems it is actually failing on the validator middleware, but I might be wrong of course.

I actually fixed this here: https://github.com/apigee-127/swagger-tools/commit/47e98943a96bd76b79edf9dc09fe0a9d9461419a  Long story short, we were passing the original value to code that didn't know how to handle collectionFormat.  When we started passing req.params[paramName].value to the validation code instead of req.params[paramName].originalValue, your test (my version) is not reproducible.  When I commit the test, I'll close this.