BackgroundJob.schedule got 8 arguments, expected 11

Trying to run your example code.
import BackgroundTask from 'react-native-background-task'

BackgroundTask.register(() => {
    console.log('Hello from a background task');
    BackgroundTask.finish()
});

register: function(task, {
    period = 9000, // 15 minutes
    timeout = 30,
  } = {}) {
    // Cancel any existing tasks, as we can only have one to match iOS, and we
    // have no way to tell whether the function has changed or not.
    RNBackgroundJob.cancelAll()

    // Register the headless task
    const fn = async () => { task() }
    AppRegistry.registerHeadlessTask(JOB_KEY, () => fn)

    // Schedule it to run as a periodic task
    AppState.getCurrentAppState(
      ({ appState }) => {
        RNBackgroundJob.schedule(
          JOB_KEY,
          timeout,
          period,
          true, // persist after restart
          appState === 'active',
          RNBackgroundJob.ANY, // network type
          false, // requires charging
          false, // requires device idle
        )
      },
      () => { console.error(`Can't get AppState`) }
    )
  },

Error seems to be correct. You are only giving 8 params.

Thanks for reporting.  The API has changed in react-native-background-job (the native Android library currently used) v1.1.3.  This was initially written against v1.1.0.
If you install v1.1.2 or lower of that library, I think you'll avoid this error.
Or you can make the same changes this user has: https://github.com/HealthReady/react-native-background-task/commit/e302b796ec4193662ab23bfb19f71864e6d25433
However, as the readme points out, this project is basically just a proof of concept at this point.  I would only recommend using it as a starting point for your own implementation.  It is something I will be needing for my RN projects, but haven't yet got round to properly implementing or integrating.  Hopefully I will be able to devote proper attention to this during the next few weeks.

@timrijckaert Native implementation should be ready soon: #5 which removes the 3rd party dependency.


Rich markup in Zsh completion help lines

Discussed in https://github.com/tiangolo/typer/discussions/821

Originally posted by tiangolo May  2, 2024
First Check

[X] I added a very descriptive title here.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I searched the Typer documentation, with the integrated search.
[X] I already searched in Google "How to X in Typer" and didn't find any information.
[X] I already read and followed all the tutorials in the docs and didn't find an answer.
[X] I already checked if it is not related to Typer but to Click.

Commit to Help

[X] I commit to help with one of those options 👆

Example Code
import typer
from typing_extensions import Annotated

app = typer.Typer(rich_markup_mode="rich")

@app.command()
def hello(
    name: Annotated[
        str, typer.Option(help="The [bold]cool[/bold] name of the [green]user[/green]")
    ],
):
    """
    Say [bold]hi[/bold] to the user.
    """
    print(f"Hello {name}")

@app.command()
def goodbye(
    name: Annotated[
        str, typer.Option(help="The [bold]cool[/bold] name of the [green]user[/green]")
    ],
):
    """
    Say [bold]goodbye[/bold] to the user.
    """
    print(f"Goodbye {name}")

if __name__ == "__main__":
    app()

Description

Create this script in main.py

In Zsh, start running it with the typer command, start typing: typer main.py run , then hit tab to trigger autocompletion, it shows the two commands, which is correct:

goodbye

hello

But their Zsh help string includes the Rich markup content:
$ typer main.py run <tab>

goodbye  -- Say [bold]goodbye[/bold] to the user.
hello    -- Say [bold]hi[/bold] to the user.

It should show plaintext without [bold] markup parts... or better, it should render those parts and show them in actual green color (using the terminal color codes, etc, the stuff Rich does).
Operating System
Linux, macOS
Operating System Details
This applies mainly to Zsh, the behavior might be similar or different in PowerShell. It only applies in shells that can show autocompletion of commands with help sections.
Typer Version
Typer version: 0.12.3
Python Version
any
Additional Context
No response

PR up for review: https://github.com/fastapi/typer/pull/877


Create index

In order to improve query performance, we can create indexes on

user
source
start
end

MongoDb automatically indexes only _id.
@sboettcher has reported up to 30sec latency while requesting get_all_subjects_json on REST-Api and CPU usage to 100% for MongoDb container process. get_all_subjects_json function relays on two queries based on distinct.

I am also now frequently getting 504 Gateway Time-out, even when just requesting last_received_sample, when querying multiple requests in parallel.

@afolarin was the indexing done? Or do we need to do it?

As far as I remember all the indexing necessary to avoid the DISTINCT was done. This is though doesn't affect the FIND queries.

closing


[SDD-FIQA] Inconsistent recognition model with quality label

Hello, thanks for sharing your excellent work!
Since the pseudo labels I generated are a little bit far from intuition, I'd like to compare my generated pseudo labels with yours. I found that you have shared a recognition model in the repo, and the link for the trained quality model. But from the file name, the labels of the quality model is not generated from the shared recognition model? Could you help share the recognition model used to generate the pseudo labels for the shared quality model (R50)? Thanks!

Can you share me the structure of folder in param 'data_root' in gen_datalist.py, i'm not sure about my structure. About the question i think the author want to use simple recognition model to train.

Can you share me the structure of folder in param 'data_root' in gen_datalist.py, i'm not sure about my structure. About the question i think the author want to use simple recognition model to train.

In fact I don't know the structure the author uses. I directly follow the format of MS1M of ArcFace version, and implement the author's method on that.


Added function get_reversed_word_index in imdb dataset

The rationale for this PR is to provide an easy way to obtain the reversed word index.
Without it the user should first get the word index with the function get_word_index and then iterate inverting the keys and the values. However the conversion is not straightforward due to an existing offset of the index given by special words such as oov (out of vocabulary) and start (which marks the beginning of a sentence).
With this modification the user does not have to know about the offset of 3, which is very tricky considering alsoe that even the official tensorflow documentation does not take into consideration this aspect.

@gbaned If I would like write some unit tests for the datasets/imdb, where shall I write it? Is there already a test for the function get_index?If so, where?


WI-73896: Fix T_BAD_CHARACTER annotation

Could you please completely remove the PHPDoc? T_BAD_CHARACTER token previously already existed in PHP, but was removed in PHP 7.0. After that it was reintroduced in PHP 7.4. So saying that it is only available since 7.4 not entirely correct.

Apologies for the delay, I've made the requested change and rebased.


Register to bid doesn't let you to go

Enter e-mail, prompted for password, pressing arrow button to edit email doesn't do anything.

In this picture the user wants to go back and edit email.


Adjustments: Removing lunch, time in & out, and converting it into a single button

Add also notification that asks if the employee is allowed to overtime after finishing.
Also add warning if user stops the time when the time is not meant.

Added flowchart

To do:
Completely destroy the freakin form for the timer


Voice Chat drops packets to the point server crashes when running mod

Hi,
I installed this mod recently on the newest 1.21 build and found that when we were near each other the voice chat coming out of a radio would get choppy and then soon after the server would warn me that voice chat packets are being dropped and simplevoicechat was lagging. Eventually the TPS of my server would tank and it would crash. Is this a known issue with any solutions?

This is the first I'm hearing of this, can you please upload the log to https://mclo.gs/ and send the link.

here are the server logs when it crashed
https://mclo.gs/8eYDlNM
here's the crash log:
https://mclo.gs/DcNnSU8

Interesting, is this consistently happening or did it only happen the one time?

I've just released patch v1.1.1, let me know if this fixes the issue.

Just tested out Patch 1.1.1 and while it seems more stable we just had an instance of the voice chat server crashing forcing a server restart to restore voice chat functionality.
Logs: https://mclo.gs/ECH3joe

Oh that's weird, I've never seen just the voice server crash. What was happening before it crashed? I haven't been able to reproduce this locally yet.

Me and my friend were just talking by our animal farm and we both had radios turned on but not transmitting. It's possible its a SVC bug this time but tonight was the only instance I've had of that happening

Alright, I've released patch 1.1.2 which should fix it for good now.  That's the hope atleast.

Has this resolved the issue you were having @DatMousii?


Timeplan for migration

Hello,
is there a time plan for migrating the code of the Eclipse Kuksa.val Databroker to this repository?
I am asking because I am wondering which repository to reference when writing future documentation etc.

@eriksven - @argerus intends to start with it now

See #2

Migration finished


compiling error

First of all, thanks for sharing the boilerplate!
I had this issue below when running npm run dev:gatsby
✖ ｢wdm｣:
ERROR in ./src/pages/blog/index.js
Module not found: Error: Can't resolve '../../components/Layout' in '/home/henry/code/gatsby-starter-reasonml/src/pages/blog'
 @ ./src/pages/blog/index.js 9:0-45 13:29-35
 @ ./.cache/sync-requires.js
 @ ./.cache/app.js
 @ multi (webpack)-hot-middleware/client.js?path=/__webpack_hmr&reload=true&overlay=false ./.cache/app

ERROR in ./src/pages/404.js
Module not found: Error: Can't resolve '../components/Layout' in '/home/henry/code/gatsby-starter-reasonml/src/pages'
 @ ./src/pages/404.js 8:0-42 11:29-35
 @ ./.cache/sync-requires.js
 @ ./.cache/app.js
 @ multi (webpack)-hot-middleware/client.js?path=/__webpack_hmr&reload=true&overlay=false ./.cache/app

ERROR in ./src/pages/index.js
Module not found: Error: Can't resolve '../components/Layout' in '/home/henry/code/gatsby-starter-reasonml/src/pages'
 @ ./src/pages/index.js 8:0-42 12:29-35
 @ ./.cache/sync-requires.js
 @ ./.cache/app.js
 @ multi (webpack)-hot-middleware/client.js?path=/__webpack_hmr&reload=true&overlay=false ./.cache/app

ERROR in ./src/templates/blog-post.js
Module not found: Error: Can't resolve '../components/Layout' in '/home/henry/code/gatsby-starter-reasonml/src/templates'
 @ ./src/templates/blog-post.js 13:0-42 30:31-37
 @ ./.cache/sync-requires.js
 @ ./.cache/app.js
 @ multi (webpack)-hot-middleware/client.js?path=/__webpack_hmr&reload=true&overlay=false ./.cache/app
ℹ ｢wdm｣: Failed to compile.

Oh hi, thank you for checking it out!
From a clone of this project the steps to run are:
npm install
npm run dev:bsb
npm run dev:gatsby

The current steps in the README.md are for when I make a PR so that this becomes an official gatsby starter, sorry about the confusion!
I was working on this a few weeks ago, I got a little side tracked with other projects but last I recall there was an issue with building the project, so I didn't proceed with adding it to the starters, yet. But I can take a look later this week.

It seems the issue was a silly typo by me. It should have been
import Layout from '../../components/layout' rather than import Layout from '../../components/Layout'


Usage as a framework to build your own tool named other than ktk/ktkd?

@radu-matei Hi, thanks a lot for sharing a great project 👍
AFAICS, this toolkit is intended to be a "skeleton" to build your own tool named other than ktk(d), right?
More concretely, I suppose you would need to do the followings in order to build your own tool:

Clone this repository
Replace every occurence of ktk(d) to yourtool(d)
Write code
Publish and then deploy

There seems like a little gap compared against well-known workflows of running a new or a init command to start your own project based on a framework e.g. rails new <yourapp>, helm create <yourchart>, ks init myapp(ksonnet).
Assuming that the above guess is correct, it would be even more great if you could do something like:

Run ktk init <your tool name>

Would produce all the files required for the tool including Makefile, go source files, etc.

Run cd <your tool name>
Write code
Publish and then deploy

in order to start developing your own tool.
Regards,
Yusuke

Hi, @mumoshu and thanks for the issue!
Yes, that is indeed counter-intuitive and counter-productive (I actually renamed recently and it was awful) - I just never got around to start building this.
This should also be the place where you opt in for SSL, RBAC and other settings passed as flags to ktk init.
Will start looking at this probably this week, would appreciate any help or feedback along the way.
Once I start on a branch / PR for this will reply here.
Thanks,
Radu M

@mumoshu - as far as I understand right now, this would require some form of Golang code generation, is that correct?
How would you see this implemented?
Thanks,
Radu M

Removed most of the hard-coded occurences of ktk/d from code in https://github.com/radu-matei/kube-toolkit/commit/ecf686f2f01aab794596ae038578625ee86748eb
Essentially, now you have generic names like clientand server, and extending this shoud be a lot easier.
Still, the initial idea was of a generate command, so I'm keeping this open, feel free to jump in with any ideas 😄
Radu M

@radu-matei Hi - Thanks for your efforts!

this would require some form of Golang code generation, is that correct?

Yes, I believe so.

How would you see this implemented?

I'd suggest separating this project into two parts. A reusable library and a project template(or skeleton) which could be bundled into the ktk binary.

Removed most of the hard-coded occurences of ktk/d from code

This sounds like a great step forward!
I don't yet have a complete plan towards the goal.
In the meantime, I would just like to add #27 so that we don't need to force users rewrite Makefile for projects created from kube-toolkit.

Just took some time to think about this.
I would suggest to start with a plan like:

Creating a package named examples/demo(demo could be anything. open to any idea!) in the top level

Which would include the implementation of the demo ktk app, including everything under cmd/, pkg/client, pkg/server, pkg/rpc, pkg/version
And try implementing ktk init which generates a brand-new app based on the demo app, but rewriting all the package names in .go files.
We could graduate this into a skeletons/demo or maybe templates/demo in the future, possibly making all the package name occuerences in .go files to placeholders package __REPLACE_ME__ f you prefer to do so.

Leave pkg/k8s, pkg/portforwarder as is. They look like reusable to me at glance.

Oops, the partiall fix ... line in my commit comment seems to have closed this issue unexpectedly :)

Oh, reopening :)


React's "minified copy of the development build" warning after upgrading to 4.6.1

Issue description
After upgrading to 4.6.1 from 4.5.0, I'm seeing the following warning message when running my tests in Jest:
    console.error node_modules/reactstrap/dist/reactstrap.min.js:1
      Warning: It looks like you\'re using a minified copy of the development build of React. When deploying React apps to production, make sure to use the production build which skips development warnings and is faster. See https://fb.me/react-minification for more details.

I get this simply by importing Button (or other components) from reactstrap, even without actually using it in my JSX code.
Related changes I made on my end is to use react-transition-group and no longer react-addons-css-transition-group and react-addons-transition-group.
Was there a built related change that might've caused this?

version #4.6.1
components: Button

Steps to reproduce issue

Upgrade to 4.6.1.
import a component like Button.

same here

same as #429

This duplicates #430 so I'll close this issue.


Update Prompt Version Precision Cutoff

The window that prompts a user to update cuts off the version in such a way that may lead to confusion.  See attached.
The window currently begs the question "Why should I upgrade, I appear to have a version newer than the one advertised?"

Could we put whole version in sparkle:shortVersionString?

As mentioned in the closed issue that had referenced this one, I saw an even greater difference in version numbers, 8.1.235 → 8.0:

I was told that actually it was offering me 8.1.280.  The only indication of that was in the description, which was written as 8.1.0280 (with a leading "0" on the last segment).
Overall, very confusing as to what version the user should expect to receive as a result of the update.

The latest update should show you the Vim patch version (instead of 8.0) so it's clear what you are getting, and the release notes would cover the MacVim portion of what features are added.


feat: initialize code base

Welcome to Codecov :tada:
Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.
Thanks for integrating Codecov - We've got you covered :open_umbrella:


⚠ ClamAV has degraded performance

In c197e73, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 586 ms

Resolved: ClamAV performance has improved in 46e9d0e.


Scrap posts insights of the active user

What would you like to be added:
Scrap posts insights of the active user. Process:

Scroll/click in a post
Click "View Insights"
Scrap data to a json file
Go to the next post

The function could have as parameters:

Update: bool, if False, scraps all posts. If True, scraps only new posts (control by the json file).
Number of posts: int, defines how many posts the user wants data from.

Why is this needed:
Instagram makes available trough its app an considerable am mount of post insights: Likes, Comments, Shares, Saves, Profile Visits, Reach, Impressions, etc.
These infos (besides likes and comments) are not available through the instagram graph api endpoints or web version, although they are important and clearly influence instagram recommendation and feed ranking algorithm.
Being able to scrap them from the mobile version would mean a big analytical advance to me.

Had to delay that to a next release :/

Just use https://business.facebook.com/creatorstudio/home
Faster, official, cleaner.


A lot of people

I saw an image with ∙ 47 people today. The emoji_map only supports up to 👥 7 people.

May be worthwhile to switch the map to regex
On Thu, Jan 5, 2017, 1:30 AM Alper Nebi Yasak<EMAIL_ADDRESS>wrote:

I saw an image with ∙ 47 people today. The emoji_map only supports up to 👥
7 people.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ageitgey/show-facebook-computer-vision-tags/issues/26,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFcNXOv5CxdxCF63_u7p0Fi84uxtHZM8ks5rPLhBgaJpZM4Lbfw2
.

--
—
Ofek Gila

fixed this issue in pull request(#29)

This should be fixed now.


Differentiated sign up and login on the backend and added delay to th…

…e error on index.ts

Yo Paul! Thanks for this. Overall, not bad for a first pass! I did go in a refactor a bit of the logic. Some of it is semantics, but before I merge this I want to go over this on Sunday in a bit of detail. Please review my recent commit to this branch by clicking on the commit diff above. Or just look at this link:
https://github.com/cafeDeDevs/phlint_app/pull/5/commits/432b5cbed9c813d1cdf80c80b350b58da85d0b89

Alright! This pull request looks good! Pulling into main. From now on we'll be pulling from and pulling into dev, just FYI.


Memory leak on macOS Catalina

See sfackler/rust-native-tls#171, which also contains the test program for the leak. Cargo.lock says:
[[package]]
name = "security-framework"
version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "64808902d7d99f78eaddd2b4e2509713babc3dc3c85ad6f4c447680f3c01e535"
dependencies = [
 "bitflags",
 "core-foundation",
 "core-foundation-sys",
 "libc",
 "security-framework-sys",
]

[[package]]
name = "security-framework-sys"
version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "17bf11d99252f512695eb468de5516e5cf75455521e69dfe343f3b74e4748405"
dependencies = [
 "core-foundation-sys",
 "libc",
]

Note that I have limited access to macOS machines, and can't run GUI tools such as Instruments.

I managed to do some work on a Catalina machine and run a test program with MallocStackLogging=1. The program is basically that in the original bug report, but instead of opening connections indefinitely, it opens 300 connections and goes to sleep. I used heap and malloc_history to capture the logs.
heap_16209.log
malloc_history_16209.log
Perhaps someone who knows macOS better than me might find them informative.

I think it's Apple's code that is leaking.
The leaked memory is allocated in the call to SSLHandshake, but for every handshake the corresponding SslStream's drop is called. The handshake belongs to SslContext, which has drop implemented by core foundation crate, so this should be correct, or everything would leak everywhere.
I've checked that the stream context has retain count == 1 in fn drop, so it should definitely get released by us.


feat: create scheduler (resolves #646)

Added new command deploy:initial which is where we will put everything that we need to run at boot time. Then we only add this command into entrypoint script and make all changes within this command.
Made update to entrypoint script.
Added new command db:refresh which chains migrate:fresh & db:seed commands.
Added schedule to run command db:refresh to run nightly on environments tagged with staging or local.

Also wondering where the schedule is run on the staging environment?

Currently we aren't running a cron to hit scheduler in staging. We would need to open an issue and have Jure implement one into the Kube.

Reverted workflows, the changes seemed to cause testing failures.
Removed --step from migrate:fresh.
Removed test for commands.


[1.10.2] EnderIO 3.1.193 Soul Vial issue w/Mo' Creatures

Issue Description:
Basically the soul vial wont work on a tamed mob in mo'creatures unless i'm in creative mode. (Tested on Grizzly Bear[has to be cub to be tamed]). As far as i'm aware it works on all untamed mobs.
What happens:
Nothin happens, it won't go in the soul vial. If I go into creative mode it works but then there is duplicate versions of that mob.
What you expected to happen:
The soul vial to pick up the mob.
Steps to reproduce:

Spawn Grizzly Bear until a cub/small one appears
Cheat in Soul Vial and steak
Use steak on cub to tame it and give it a name.
Get out of creative mode
Try using soul vial on tamed mob
...

Affected Versions (Do not use "latest"):

EnderIO: 3.1.193
EnderCore: <IP_ADDRESS>-beta
Minecraft: 1.10.2
Forge: <IP_ADDRESS>6
Custom Mob Spawner(need for Mo' Creatures): 3.10.1
Mo' Creatures: 10.0.6

Your most recent log file where the issue was present:
https://pastebin.com/KDKfxJKf

Check the spawner config file if these are black listed.

what is the file name for the spawner config sorry?


MIPS/MIPSel port

Describe the solution you'd like
I'd like to be able to install NPM on my EdgeRouter X, which uses a MIPSel architecture.
Describe alternatives you've considered
There's no obvious way to install NPM by hand.

The MIPS architecture is not officially supported, and due to low demand will most likely never be. So to use it on your MIPS based device, you would have to compile the docker image for this platform yourself. If you want to do this, the buildx script might be a good starting point.
In the further future it might become easier to run this on MIPS because of the switch to Go in v3.


Regression Test Appendix E Correlation Test Data

The scope of this ticket shall be regression testing the following functionality for Appendix E Correlation Test Data (Both Global-view and Workspace):

Import (Import from File and Import from Historical)
Export
Evaluate
Add
View
Edit
Remove

Note: Test both Heat Input from Oil and Gas separately

Completed regression testing and reported few bugs found for new tickets


Content-Type: Not passed in the Request Headers

From @securityvoid on February 14, 2017 16:44
Hello,
It does not appear that "Content-Type" is handled so that it shows up under:
req.headers
This appears to be true for both Azure Functions Cli and the actual Azure deployments. (Not sure if this means I should open this issue elsewhere).
Interesting this data does appear to be within:
context.bindingData
I can parse this out, but can someone please explain why Content-Type wouldn't be passed with the rest of the headers?
I've got a form-data object that I need to parse to extract a file upload. There are packages that will do this automatically (e.g. busboy), if I pass in the Content-Type/boundary.
It seems weird to me that this wouldn't be included in the details.
Copied from original issue: Azure/azure-functions-cli#68

I do think this should be moved to the runtime repo https://github.com/Azure/azure-webjobs-sdk-script

/cc @fabiocav @mathewc


--standalone option for ng new CLI command

Command
new
Description
Since Angular v14, we have had a new feature called Standalone Components. I recently started using them and they are really very helpful. The only problem I faced was setting up the framework to use Standalone components, like removing the root module, and passing required modules (e.g. RouterModule, HttpClientModule, etc) to bootstrapApplication using importProvidersFrom.
I guess that will be really helpful if we can create a new app itself with these configurations. Let's say we use --standalone with ng new, then no root module should be created, the main.ts file should have bootstrapApplication instead of bootstrapModule, and whatever we need by default should be provided in bootstrapApplication.
Describe the solution you'd like
Suggested command: ng new <APP_NAME> --standalone
Describe alternatives you've considered
No response

Duplicate of  #23976


[Magit] hl-line sometimes doesn't work

So this issue is kind of hard to explain, but I'll try my best.
I have tried to investigate further, but I thought I'd check with other doom-theme users here first and see if I'm the only facing this problem (in which case it's probably some other part of my config that's messing up).
Issue:
In a magit buffer, sometimes the hl-line will not show. I have experimented with a lot of different themes, and this only happens with doom-themes.
Steps to reproduce:

Have your theme set to a doom-theme
Disable global-hl-line-mode, and any other hl-line mode hooks you have hooked to (e.g. prog-mode, dired-mode etc.).
Restart Emacs.
Visit a magit buffer. Step 2 is needed because we don't want hl-line-mode to be invoked "in any of the buffers before we arrive at our first magit buffer"
hl-line doesn't show up.

Expectations
Magit is supposed to show hl-line no matter what. Unless one explicitly disables hl-line in a magit buffer, which I didn't.
Other phenomena
If I invoke hl-line anywhere in any buffer before entering the first magit instance, magit will show hl-line as expected, even if those buffers seemingly have nothing to do with magit.

Sorry for the late response. https://github.com/hlissner/emacs-solaire-mode/commit/b6cc22e2178f405b444cb7e89d8d5705e67f1905 may have fixed this, if you're using solaire-mode. Let me know if that isn't the case and I'll reopen this.

Hi @hlissner thanks for getting back. Actually I wasn't using solaire-mode, so I'm afraid the issue is caused by something else..


Refactor components to functional from start to namespace form3

No-Issue

Closing, I had to start from scratch again - solved in https://github.com/ansible/ansible-hub-ui/pull/3330.


Crash when adding custom recipes with Modtweaker 2 to the Thermionic Fabricator from Forestry

https://gist.github.com/Dream-Master/8eef3a54e2b005060c22#file-gistfile1-txt
Post on Modtweaker 2 Site
https://github.com/jaredlll08/ModTweaker2/issues/80

Problem are solved.

get again some crashes today.
(i change some recipes with Modtweaker 2)
https://gist.github.com/Dream-Master/709645de51bd19a4d75a#file-gistfile1-txt

Problem solved again sorry.


200 response as text/plain while 401 response application/json -- allowed?

Description
200 response as text/plain while 401 response application/json -- allowed?
If so, then there seems to be a bug somewhere, because when I do this, the 200 response gets forced to json.
Background:
I've got a big api that's been working great for more than a year. The only part we need to talk about is the /auth path. If clients post an appropriate secret (and args) in a json request to /auth, they get a 200 response with a plain-text JWT. All good.
As I was improving the yaml definition, I decided to flesh out the error responses -- replacing the simple descriptions with actual json objects that match what the api provides to clients. I.e., the error responses in something like this:
openapi: 3.0.3
paths:
  /auth:
    post:
      operationId: auth_generate_session_token
      x-openapi-router-controller: swagger_server.controllers.authorization_controller
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuthRequest'
      responses:
        "200":
          description: JWT token
          content:
            text/plain:
              schema:
                type: string
              x-content-type: text/plain
      responses:
        "401":
          description: Unauthorized -- Various possible reasons

... got changed to something like this:
        "401":
          $ref: '#/components/responses/Unauthorized'

But of course, here's what that really ends up being:
        "401":
          description: Unauthorized -- Various possible reasons
          content:
            application/json:
              schema:
                # $ref: '#/components/schemas/Error'
                type: object
                description: Default error
                properties:
                  status:
                    type: integer
                    minimum: 100
                    maximum: 599
                    description: HTTP Status Code
                    example: 404
                  title:
                    type: string
                    description: HTTP Error Title (usually 1-3 words)
                    example: Not Found
                  detail:
                    type: string
                    description: HTTP Error Detailed Description
                    example: App does not exist

Expected behaviour vs Actual behavior
When I make this change to the openapi yaml definition (changing 401 response from simple description-only to a json object), the server's 200 responses go from plain-text to json, so instead of something like:
# (curl -v output)
< HTTP/2 200
< server: nginx
< date: Mon, 12 Jul 2021 19:57:24 GMT
< content-type: text/plain; charset=utf-8
< content-length: 231
<
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.xxxTCXY

... I get something like:
# (curl -v output)
< HTTP/2 200
< server: nginx
< date: Mon, 12 Jul 2021 19:51:21 GMT
< content-type: application/json
< content-length: 234
<
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.xxx707w"

I.e., the string is wrapped in quotes with a newline added.
Steps to reproduce
If I comment out the whole content block from the 401 response, so that only the description is there, all is well. As soon as I enable json for one response code, it forces the 200 response to also be json. Is this expected? Is there anything I can do about it?
Additional info:
$ python --version
Python 3.6.8

$ pip show connexion | grep "^Version\:"
Version: 2.8.0

PS: I posted a thread about the openapi spec in the smartbear community forums. Not sure if anything will come of that.

Thanks for the report @ryran.
Lack of support for multiple mime types on a single endpoint is a known limitation of connexion (#593) which we would like to solve in a next major version. I'll close this one to centralize the discussion in the existing issue.


Change some warnings to errors

These warnings are over three years old, so maybe we can adjust it to an error.

r? @alexcrichton
(rust-highfive has picked a reviewer for you, use r? to override)

@bors: r+
Thanks!

:pushpin: Commit 6f214ac7520d71c480dbe93e3874f14cfdaf594b has been approved by alexcrichton

:hourglass: Testing commit 6f214ac7520d71c480dbe93e3874f14cfdaf594b with merge 680eadccbe5eee4299efa3a6dc7b4deb54a6a1ac...

:sunny: Test successful - checks-actions
Approved by: alexcrichton
Pushing 680eadccbe5eee4299efa3a6dc7b4deb54a6a1ac to master...


Goetheschule Essen

Website: www.goetheschule-essen.de

@TillOttmann First stage of verification passed, official domain is goetheschule-essen.de as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@TillOttmann Thank you for your patience while waiting for a review and processing your request. Pull request merged.


allow disabling cache via process.env

some environments, like Vercel, will throw an error and abort if fs access to .cache is detected - and we may not have control of the jiti call if used in dependencies

Actually we are already writing to node_modules/.cache for nuxt. Do you have a log to check?

Yes - check out https://vercel.com/danielroe/jiti-tests/3t01ahmk1 - you may need to trigger the error by:
curl https://jiti-tests-3t01ahmk1.vercel.app/api/js/csrf

Dammit! It is in production runtime...
Actually only reason of using node_modules/.cache is ability to debug easier (otherwise we could use os.tempdir())

Should be addressed in 0.1.16: https://github.com/nuxt-contrib/jiti/blob/master/CHANGELOG.md#0116-2020-11-23


UsageText to be passed from Command to App in startApp

What type of PR is this?

[x] bug
[ ] cleanup
[ ] documentation
[ ] feature

What this PR does / why we need it:
startApp function assigns Command fields to App fields, but UsageText field is missing. Because of that, this field is not presented correctly when viewing help for command having subcommands.
Which issue(s) this PR fixes:
I have found no open issues.
Release Notes
UsageText is now correctly displayed when viewing help for commands with subcommands

Bumping. Can someone take a look? Change is trivial, but it would help the project I am working on.

@rliebz thanks!


[FEA] Supporting image loader for trivial formats (Jpeg, Jpeg 2000, PNG)

Is your feature request related to a problem? Please describe.
cuCIM is currently supporting some generic Digital Pathology-related image formats (generic RGB tiled TIFF, Philips TIFF, etc).
cuCIM can easily support trivial image formats JPEG/JPEG2000 as decompression libraries are already included for TIFF format decompression). PNG format is also a popular image format that is good to support.
Describe the solution you'd like

JPEG/JPEG2000

Use jpeg-turbo/openjpeg library for CPU-based Jpeg/Jpeg2000, use nvJpeg and nvJpeg2000 for gpu-based decompression.

PNG

I thought about leveraging libspng(https://libspng.org/) for decoding PNG in the future in cuCIM but we can try to use wuffs for
loading PNG to get 1.50x ~ 2.75x gain compared with libpng.

https://nigeltao.github.io/blog/2021/fastest-safest-png-decoder.html
https://github.com/google/wuffs/tree/v0.3.0-rc.2/release/c

Hi
I am interested in having support for PNG.
Thanks


[FIX] Fix channel-picking in _calculate_head_pos_ctf

This PR consists of exactly one character of code, which had to be removed from the matching pattern in order to match CTF headloc channels of data loaded with the clean_names option set to True. See comment in #4088.

Thanks @jeythekey

Welcome. I guess no whats_new.rst needed for that?

Yes as it's a private function. If enough people use it successfully we should make it public.

Yes, I would definitely vote for making it at least semi-public in the meantime (e.g. only mention it in the docstring somehwere). It took me a long journey to find this functionality (because it is nowhere clearly documented, where exactly the headloc-data comes from and you have no clue if you are not using an Electra system).

We could make it public but say that it's currently experimental status. We could do the same with _calculate_chpi_positions. But really before that we should see how much those can be deduplicated.


manual_control.py keyboard input doesn't response CARLA 0.8.2

Hello,
I try to run the manual_control.py. Everything is so far so good except there is no response with the keyboard control input. Does anyone have the same issue?
Thank you for your help!

Solved it! Select pygame window then the keyboard will response.


feat: add egctl only client version

xref: #1085

cc @zirain

Codecov Report

Merging #1089 (c2e4db2) into main (4dd36a5) will decrease coverage by 0.15%.
The diff coverage is 0.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##             main    #1089      +/-   ##
==========================================
- Coverage   62.70%   62.55%   -0.15%
==========================================
  Files          72       72
  Lines        9424     9431       +7
==========================================
- Hits         5909     5900       -9
- Misses       3111     3125      +14
- Partials      404      406       +2

Impacted Files
Coverage Δ

internal/cmd/egctl/version.go
0.00% <0.00%> (ø)

internal/provider/kubernetes/helpers.go
79.72% <0.00%> (-2.03%)
:arrow_down:

internal/provider/kubernetes/controller.go
49.66% <0.00%> (-0.68%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Adding New Weapon?

I want to add new weapon, can u help me please? Thanks from now.

To add a new weapon you need to create a blueprint class derived from "SWeaponInstant" and then modify the weapon properties according to the weapon type.


segfault on -m mp

Hi,
I compiled skewer wihout any issues on our home-made linux system.
Running skewer then on two 55GB fastq files results in a segfault after a few seconds.
skewer -m mp -i mpg_L4499-4_MySuperProjectXXX_AGTCAA_L002_R1_001.fastq mpg_L4499-4_MySuperProjectXXX_AGTCAA_L002_R2_001.fastq
Parameters used:
-- 3' end adapter sequence (-x): AGATCGGAAGAGCACACGTCTGAACTCCAGTCAC
-- paired 3' end adapter sequence (-y):   AGATCGGAAGAGCGTCGTGTAGGGAAAGAGTGTA
-- junction adapter sequence (-j):  CTGTCTCTTATACACATCTAGATGTGTATAAGAGACAG
-- maximum error ratio allowed (-r):   0.100
-- maximum indel error ratio allowed (-d):   0.030
-- minimum read length allowed after trimming (-l):   18
-- file format (-f):    Sanger/Illumina 1.8+ FASTQ (auto detected)
-- minimum overlap length for junction adapter detection (-k): 0
-- redistribute reads based on junction information (-i):   yes
Fri Jun 12 11:06:47 2015 >> started
|>                                                 | (0.02%)Segmentation fault

Omitting the second fastq file does not result in a segfault.
This is 256GB / 48 core machines. Ressources should suffice .. any idea?
best,
Sven

Could you send me part of the data that cause this segmentation fault?


[Feature] Autoscaling of application

Is your feature request related to a problem? Please describe.

for some scenario in games, we would like to bind a game pod and some IaaS resource as a whole application, in some time we need to autoscaling these applications.
Describe the solution you'd like

I've noticed that there is a solution of using KEDA for the autoscaling of some containerized based workload. I would rather to know if there is any native design for the autoscaling of applications.core.oam.dev?
like just use application as pod and we can have a layer for the autoscaling of it?
Describe alternatives you've considered

Additional context

Thank you for your answer in advance.

This is related with https://github.com/kubevela/kubevela/issues/3840 by @fourierr , he's working on that. After that issue finished, I think fourierr will give a solution on autoscaling.

In my scenario, the autoscaler is working on workload(deployment), just like HPA or KEDA.
From your description, the autoscaler needs to autoscaling the application, it seems that a group of workload will be autoscaling simultaneously.
I think this is a brand-new scene is different from KEDA or k8s HPA

This is related with https://github.com/kubevela/kubevela/issues/3840 by @fourierr , he's working on that. After that issue finished, I think fourierr will give a solution on autoscaling.

Thank you for providing the information. And I think the situation is a little bit different.
Just as @fourierr mentions

From your description, the autoscaler needs to autoscaling the application, it seems that a group of workload will be autoscaling simultaneously.

Yes, here we indeed have some terraform/crossplane cr that is composed together, and there is some topology mapping with the workload so they should be scaled up simultaneously.
because it's comes from our internal demand, I will do some POC first. After that I'm glad if we can have some contribution back to upstream.

@scarlet25151 Hello, are there any progress on your PoC?

@scarlet25151 Hello, are there any progress on your PoC?

Hi @wonderflow, for now we have a dedicate controller named applicationset controller internally to managed the autoscaling of applications. And we are in the refactor so it would be adoption to the latest version, it may need some time for the refactor.


Pass accessibilityLabel to Button

accessibilityLabel must be set to elements for testing applications on android in Appium framework

It is extremely unpleasant this PR is not processed for 8 months.


Update base64Test.cpp

Co-Authored-By: JK Park<EMAIL_ADDRESS>Co-Authored-By: SeongHo Park<EMAIL_ADDRESS>Co-Authored-By: Sujin Kim<EMAIL_ADDRESS>Co-Authored-By: dlwlstks96<EMAIL_ADDRESS>Co-Authored-By: suyeon<EMAIL_ADDRESS>Co-Authored-By: eunzinn<EMAIL_ADDRESS>Co-Authored-By: Dohyun Lee<EMAIL_ADDRESS>Co-Authored-By: Hyeseong Lee<EMAIL_ADDRESS>Updated base64Test.cpp.😀
I fixed a test case
from
TestParamType(std::vector<u_int8_t>{ 0xc0, 0xde, 0xba, 0x5e, 0xba, 0x11 }, "MDeLpeLoR")

to
TestParamType(std::vector<u_int8_t>{ 0xc0, 0xde, 0xba, 0x5e, 0xba, 0x11 }, "wN66XroR")

Please do double-check! @ycs1m1yk

Good 👍👍👍👍👍👍

A lot of test cases are gathered! Everyone is so cool! 😆

@YoungSeokHong @kuro11pow2
It would be nice to include an exception case for the case where 0 is entered in #107!


initial pan

Thanks for that great library! Why do you set the initial pan to 100? Is there a way to compensate for that, so that the element starts in its original position?
Thanks!

Hi @mortegro, I don't see any reason for this. We can set it to 0 by default and allow initial zoom and pan to be passed through props. Will that work for you?

Added initialPanX, initialPanY and initialZoom in new version.

Works perfect! Thanks a lot!


Refactor code, move to C++ and improve error handling

This pull request starts by adding a .clang-format file, so that the code can be refactored into a common coding style easily.
It then improves error handling inside the I2CLcd class and inside the Jhd1313m1 class, by throwing exceptions from the constructor if something goes wrong and by returning appropriate mraa_result_t values from methods. This way the user will be warned if the expected device type is not found on  the I2C bus or if the device does not respond.
It also removes the I2C helper functions which are no longer required (it is not necessary to call mraa_i2c_address every transaction, as these functions were doing).
The PR also moves the code from using the MRAA C API to the C++ API, which makes resource management easier. For example the mraa_i2c_context now automatically gets closed when the sensor object goes out of scope or gets deleted.
It also replaces the #define statements inside the header files with const members of the namespace. This ensure that they are only available inside the lcd namespace, preventing potential clashes in the future.
Finally it adds the ssd.h header to the sources list in CMakeLists.txt, it seemed to be missing from there.
In the future the extra error handling could be extended to the other LCD classes as well.
I have tested this code on all the screens, using an Edison.

Acked-by: Brendan Le Foll<EMAIL_ADDRESS>

Thanks for the lcd improvements and for the clang format file! Running a clang format on the entire library is on our TODO list so this should be straightforward now.
Merged in 124a9eb41d81be9124b0f1d8cd2d63f676a43ea9


Adds PROJECT field to 'odo list' output

What type of PR is this?
/kind feature
(Honestly not sure what the kind is here. Should it be enhancement?)
What does does this PR do / why we need it:
$Title
Which issue(s) this PR fixes:
Fixes #2219
How to test changes / Special notes to the reviewer:
Before:
$ odo list --path ~/src
APP     NAME         TYPE       SOURCE                      STATE          CONTEXT
app     backend      java       target/wildwest-1.0.jar     Pushed         /home/dshah/src/Wild-West-Backend
app     frontend     nodejs     ./                          Pushed         /home/dshah/src/Wild-West-Frontend
app     node         nodejs     ./                          Not Pushed     /home/dshah/src/nodejs-ex

Now:
$ odo list --path ~/src
APP     NAME         PROJECT        TYPE       SOURCE                      STATE          CONTEXT
app     backend      myproject      java       target/wildwest-1.0.jar     Pushed         /home/dshah/src/Wild-West-Backend
app     frontend     myproject      nodejs     ./                          Pushed         /home/dshah/src/Wild-West-Frontend
app     node         newproject     nodejs     ./                          Not Pushed     /home/dshah/src/nodejs-ex

/approve


github: fix concurrency groups for push events

Due to bb6783020701, the concurrency groups aren't working properly for 'push' events. This commit fixes the concurrency group so that pushes to a branch don't stop runs from other branch pushes.
Fixes: bb6783020701 (".github: fix workflows for on push")

/test-backport-1.14


Cannot install this plugin with elasticsearch 6.5.4

-> Downloading file:///home/ubuntu/development/elasticsearch-analysis-vietnamese/target/releases/elasticsearch-analysis-vietnamese-6.5.4.zip
[=================================================] 100%??
ERROR: This plugin was built with an older plugin structure. Contact the plugin author to remove the intermediate "elasticsearch" directory within the plugin zip.
Could you please re-structure the plugin?

Hi @duydo, could you please tell me whether this repo is still maintenance or not?
Thanks

@minhnhat2807 This repo is still maintained but recently I've been busy with other stuff so I cannot spend time on this project.
The current repo is not compatible with ES version 6.x. If you cannot wait for upgrading from me, you can fork and contribute to this plugin.


ORT does find/analyse all files in a repo

Describe the bug
In an unmanaged project, I was expecting all files to be included in the scan results, but this is not the case.
To Reproduce
Steps to reproduce the behavior:

git clone git@github.com:erlang/otp.git
bin/ort analyze -i ~/otp -o ~/otp -f JSON
bin/ort scan -f JSON -i ~/otp/analyzer-result.json -o ~/otp (takes ~40 min)
See that licenses for *.css files are not found in the scan results

Expected behavior
I expected all files in an unmanaged repo to be categorised with a license.
The *.css files do not appear inside the ort path scan_results.summary.licenses (scan-result.json),
but they do appear in the section that mentions:
 files: [ {
        "path" : "lib/common_test/priv/ct_default.css",
        "sha1" : "f4487fc4908e382cafb4137f4c4b02447939f2eb"
      }, { ...}]

File lib/common_test/priv/ct_default.css cannot be found anywhere in the results of the scan (scan-result.json), except for the sha1.
"lib/common_test/priv/jquery.tablesorter.min.js" does not appear in the scan results either, except for its sha1.

I think this is a bug, otherwise, how could one be sure that all files have been scan and have a license?
Is there an option that forces all files to be included in the scan with a license, even if the license is UNKNOWN?

Console / log output
    "config" : {
      "excludes" : {
        "paths" : [ {
          "pattern" : "lib/compiler/scripts/smoke-build",
          "reason" : "TEST_OF",
          "comment" : "This directory contains test projects which are not relevant."
        }, {
          "pattern" : ".ort/**",
          "reason" : "TEST_OF",
          "comment" : "This directory is not relevant."
        }, {
          "pattern" : ".ort.yml",
          "reason" : "OTHER",
          "comment" : "This directory is not relevant."
        }, {
          "pattern" : ".ort/evaluator.rules.kts",
          "reason" : "TEST_OF",
          "comment" : "This directory is not relevant."
        }, {
          "pattern" : "HOWTO/**",
          "reason" : "OTHER",
          "comment" : "This directory is not relevant."
        }, {
          "pattern" : "system/COPYRIGHT",
          "reason" : "OTHER",
          "comment" : "This file contains all licenses used in Erlang/OTP. Not relevant"
        }, {
          "pattern" : "CONTRIBUTING.md",
          "reason" : "OTHER",
          "comment" : "This file contains needs to specify its license"
        } ]
      },
...
"scanners" : {
      "Unmanaged::otp:8bf3d2eb3de18341150d43b7e7b6dd60eaafc080" : [ "ScanCode" ]
    },
    "files" : [ {
      "provenance" : {
        "vcs_info" : {
          "type" : "Git",
          "url" : "git@github.com:kikofernandez/otp.git",
          "revision" : "8bf3d2eb3de18341150d43b7e7b6dd60eaafc080",
          "path" : ""
        },
        "resolved_revision" : "8bf3d2eb3de18341150d43b7e7b6dd60eaafc080"
      },
      "files" : [ {
    "path" : "lib/common_test/priv/ct_default.css",
        "sha1" : "f4487fc4908e382cafb4137f4c4b02447939f2eb"
      }, {
        "path" : "lib/common_test/priv/jquery-latest.js",
        "sha1" : "ee48592d1fff952fcf06ce0b666ed4785493afdc"
      }, {
        "path" : "lib/common_test/priv/jquery.tablesorter.min.js",
        "sha1" : "89ca6c6f8d67f4c339daa6081daf7b4ce2b5308c"
      },...]

Environment
Output of the ort requirements -l commands command:
Hoplite is configured to infer which sealed type to choose by inspecting the config values at runtime. This behaviour is now deprecated in favour of explicitly specifying the type through a discriminator field. In 3.0 this new behavior will become the default. To enable this behavior now (and disable this warning), invoke withExplicitSealedTypes() on the ConfigLoaderBuilder.
 ______________________________
/        \_______   \__    ___/ The OSS Review Toolkit, version 37.0.0,
|    |   | |       _/ |    |    built with JDK 21.0.4+7-LTS, running under Java 21.0.5.
|    |   | |    |   \ |    |    Executing 'requirements' as 'xxxx' on Linux
\________/ |____|___/ |____|    with 8 CPUs and a maximum of 7948 MiB of memory.

Environment variables:
ORT_CONFIG_DIR = /home/xxxx/.ort/config
ORT_DATA_DIR = /home/xxxx/.ort
HOME = /home/xxxx
SHELL = /bin/bash
TERM = xterm-256color
JAVA_HOME = /usr/lib/jvm/jdk-21.0.5-oracle-x64

Looking for ORT configuration in the following file:
        /home/xxxx/.ort/config/config.yml

Scanners:
        - Askalono: Requires 'askalono' in no specific version. Tool not found.
        - BoyterLc: Requires 'lc' in no specific version. Tool not found.
        - Licensee: Requires 'licensee' in no specific version. Tool not found.
        * ScanCode: Requires 'scancode' in version >=3.0.0. Found version 32.2.1.

PackageManagers:
        - Bazel: Requires 'bazel' in version >=7.0.0. Tool not found.
        - Bower: Requires 'bower' in version >=1.8.8. Tool not found.
        - Cargo: Requires 'cargo' in no specific version. Tool not found.
        - CocoaPods: Requires 'pod' in version >=1.11.0. Tool not found.
        - Composer: Requires 'composer' in version >=1.5.0. Tool not found.
        - Conan: Requires 'conan' in version >=1.44.0 and <2.0.0. Tool not found.
        - GoMod: Requires 'go' in version >=1.21.1. Tool not found.
        * Npm: Requires 'npm' in version >=6.0.0 and <11.0.0. Found version 10.5.0.
        - NuGetInspector: Requires 'nuget-inspector' in no specific version. Tool not found.
        - Pipenv: Requires 'pipenv' in version >=2018.10.9. Tool not found.
        - Pnpm: Requires 'pnpm' in version >=5.0.0 and <10.0.0. Tool not found.
        - Poetry: Requires 'poetry' in no specific version. Tool not found.
        - Pub: Requires 'dart' in version >=2.10.0. Tool not found.
        * PythonInspector: Requires 'python-inspector' in version >=0.9.2. Found version 0.12.0.
        - Sbt: Requires 'sbt' in no specific version. Tool not found.
        - Stack: Requires 'stack' in version >=2.1.1. Tool not found.
        - SwiftPm: Requires 'swift' in no specific version. Tool not found.
        - Yarn: Requires 'yarn' in version >=1.3.0 and <1.23.0. Tool not found.

VersionControlSystems:
        * Git: Requires 'git' in version >=2.29.0. Found version 2.34.1.
        - GitRepo: Requires 'repo' in no specific version. Tool not found.
        - Mercurial: Requires 'hg' in no specific version. Tool not found.

Prefix legend:
        - The tool was not found in the PATH environment.
        + The tool was found in the PATH environment, but not in the required version.
        * The tool was found in the PATH environment in the required version.

ScanCode license texts found in '/home/xxxx/Code/venv/lib64/python3.10/site-packages/licensedcode/data/licenses'.

Not all tools requirements were satisfied:
        ! Some tools were not found at all.

And specify (relevant parts of) your ORT configuration (config.yml):
ort:
  enableRepositoryPackageCurations: true
  forceOverwrite: true

  advisor:
    osv:
      serverUrl: "https://api-staging.osv.dev"

  scanner:
    skipConcluded: false

  analyzer:
    allowDynamicVersions: true
    # enabledPackageManagers: [Unmanaged]
  #   # A flag to control whether excluded scopes and paths should be skipped during the analysis.
    skipExcluded: true

    config:
      # A map from scanner plugin types to the plugin configuration.
      ScanCode:
        options:
          # Command line options that affect the ScanCode output. If changed, stored scan results that were created with
          # different options are not reused.
          # commandLine: '--copyright --license --info --strip-root --timeout 300'

          # Command line options that do not affect the ScanCode output.
          commandLineNonConfig: '--processes 8'

          # Use per-file license findings instead of per-line ones.
          preferFileLicense: true

Additional context
None

I expected all files in an unmanaged repo to be categorised with a license.

That expectation might be wrong, depending on the exact understanding. ORT does not generally store license information for all files, but only stores files with license / copyright findings. Any file not listed as part of the findings implicitly has an SPDX license of NONE.
However, main license files, like a LICENSE file in the root of a repository, can be regarded to implicitly declare licenses for files that do not contain license information themselves. While ORT is able to infer such license information, it's not stored explicitly in its data model.

The *.css files do not appear inside the ort path scan_results.summary.licenses (scan-result.json)

This means (if there is no bug) that the scanner in use, here ScanCode, did not find any license information in those files.

but they do appear in the section that mentions:

That's expected. While not every file contains license information, you can calculate the SHA1 of every file.

I think this is a bug, otherwise, how could one be sure that all files have been scan and have a license?

It's not a bug AFAICT. You could for example write a rule that uses the file list to check that every file for which a SHA1 was calculated also appears in the list of license findings. Of course, that only makes sense if your policy demands that each and every file must contain license information on its own.

Is there an option that forces all files to be included in the scan with a license, even if the license is UNKNOWN?

Not really. This kind of mapping would be the responsibility of a reporter. You could write one, or introduce an option to an existing one, that explicitly lists files with no findings with a license of NONE instead of omitting them.
This might be a valid addition to the SPDX reporter.

That expectation might be wrong, depending on the exact understanding. ORT does not generally store license information for all files, but only stores files with license / copyright findings. Any file not listed as part of the findings implicitly has an SPDX license of NONE.

Ok, I fully understand. What about the following:
If I set a curation for a whole folder in my .ort.yml file, for the files that do not have a license and should, e.g.,
"curations" : {
        "license_findings" : [ {
          "path" : "lib/common_test/priv/**",
          "concluded_license" : "MIT",
          "reason" : "INCORRECT",
          "comment" : "The scanner incorrectly categorises the folder license"
        }, {

when I run the report, is the report going to include all files under that path to be set with the license I said? (these files did not have a license and now I curated them).
So far, I think those files are still not shown in the report even when I have curated them, so the curation only works for the files whose license was detected to be something, and the report skips the files with license NONE (even when it has been curated to not be NONE).

is the report going to include all files under that path to be set with the license I said?

No. License finding curations only correct the license findings that are explicitly contained in the ORT result file.

those files are still not shown in the report even when I have curated them

That expected for files that were not originally in the ORT result file.

the curation only works for the files whose license was detected to be something

Correct.

Thanks for the informatio

Can we somehow put the outcome of the discussion into a concrete feature request (as a separate, clean issue)? If not, are we good to close the issue?

Great idea. New ticket as feature enhancement:

https://github.com/oss-review-toolkit/ort/issues/9435


Operator fails to install Knative Eventing when Kafka specified

It seems that there has been some recent changes which causes Knative Operator to fail installing Knative eventing when Kafka source is specified. This worked a week ago. Strange is that it now it doesn't work neither for 1.8 nor 1.7 version.
In the pod there is following error:
{"severity":"ERROR","timestamp":"2022-11-01T23:56:53.738229144Z","logger":"knative-operator","caller":"controller/controller.go:566","message":"Reconcile error","commit":"0c153ec-dirty","knative.dev/pod":"knative-operator-54c47c9ccc-4xsbl","knative.dev/controller":"knative.dev.operator.pkg.reconciler.knativeeventing.Reconciler","knative.dev/kind":"operator.knative.dev.KnativeEventing","knative.dev/traceid":"df2aef9f-85fc-4c4e-bcfe-7480d4263792","knative.dev/key":"default/knative-eventing","duration":"7.220543133s","error":"failed to apply (cluster)rolebindings: clusterrolebindings.rbac.authorization.k8s.io \"kafka-controller\" is forbidden: user \"system:serviceaccount:default:knative-operator\" (groups=[\"system:serviceaccounts\" \"system:serviceaccounts:default\" \"system:authenticated\"]) is attempting to grant RBAC permissions not currently held:\n{APIGroups:[\"*\"], Resources:[\"configmaps\"], Verbs:[\"delete\" \"get\" \"list\" \"watch\" \"update\" \"create\" \"delete\"]}\n{APIGroups:[\"*\"], Resources:[\"events\"], Verbs:[\"patch\" \"create\"]}\n{APIGroups:[\"*\"], Resources:[\"nodes\"], Verbs:[\"get\" \"list\" \"watch\"]}\n{APIGroups:[\"*\"], Resources:[\"pods\"], Verbs:[\"list\" \"update\" \"get\" \"watch\"]}\n{APIGroups:[\"*\"], Resources:[\"pods/finalizers\"], Verbs:[\"get\" \"list\" \"create\" \"update\" \"delete\"]}\n{APIGroups:[\"*\"], Resources:[\"secrets\"], Verbs:[\"list\" \"get\" \"update\" \"watch\"]}\n{APIGroups:[\"*\"], Resources:[\"serviceaccounts\"], Verbs:[\"get\" \"list\" \"watch\" \"update\" \"create\" \"delete\"]}\n{APIGroups:[\"*\"], Resources:[\"services\"], Verbs:[\"get\" \"list\" \"watch\" \"update\" \"create\" \"delete\"]}\n{APIGroups:[\"apps\"], Resources:[\"statefulsets/scale\"], Verbs:[\"get\" \"list\" \"watch\" \"update\" \"patch\"]}\n{APIGroups:[\"internal.kafka.eventing.knative.dev\"], Resources:[\"consumergroups\"], Verbs:[\"create\" \"get\" \"list\" \"watch\" \"patch\" \"update\" \"delete\"]}\n{APIGroups:[\"internal.kafka.eventing.knative.dev\"], Resources:[\"consumergroups/finalizers\"], Verbs:[\"update\" \"delete\"]}\n{APIGroups:[\"internal.kafka.eventing.knative.dev\"], Resources:[\"consumergroups/status\"], Verbs:[\"create\" \"get\" \"list\" \"watch\" \"patch\" \"update\" \"delete\"]}\n{APIGroups:[\"internal.kafka.eventing.knative.dev\"], Resources:[\"consumers\"], Verbs:[\"create\" \"get\" \"list\" \"watch\" \"patch\" \"update\" \"delete\"]}\n{APIGroups:[\"internal.kafka.eventing.knative.dev\"], Resources:[\"consumers/finalizers\"], Verbs:[\"update\" \"delete\"]}\n{APIGroups:[\"internal.kafka.eventing.knative.dev\"], Resources:[\"consumers/status\"], Verbs:[\"create\" \"get\" \"list\" \"watch\" \"patch\" \"update\" \"delete\"]}\n{APIGroups:[\"rbac.authorization.k8s.io\"], Resources:[\"clusterrolebindings\"], Verbs:[\"watch\"]}","stacktrace":"knative.dev/pkg/controller.(*Impl).handleErr\n\tknative.dev/pkg@v0.0.0-20220818004048-4a03844c0b15/controller/controller.go:566\nknative.dev/pkg/controller.(*Impl).processNextWorkItem\n\tknative.dev/pkg@v0.0.0-20220818004048-4a03844c0b15/controller/controller.go:543\nknative.dev/pkg/controller.(*Impl).RunContext.func3\n\tknative.dev/pkg@v0.0.0-20220818004048-4a03844c0b15/controller/controller.go:491"}

The manifest is following:
apiVersion: v1
kind: Namespace
metadata:
  name: knative-eventing
---
apiVersion: operator.knative.dev/v1beta1
kind: KnativeEventing
metadata:
  name: knative-eventing
  namespace: knative-eventing
spec:
  # ...
  source:
    kafka:
      enabled: true

Note that if I comment out the kafka source (and thus leave default rabbitmq source to be installed) everything installs correctly.

I also experience the same bug.
Didn't check it before but today tried to install kafka source and got the same RBAC error.

Same issuer


Accessing data with blosc-hdf5-plugin in windows 10

Hello,
I am trying to access the events data using the blosc-hdf5-plugin package but it is not available for anaconda installed in Windows. Is there any way to access data using the given code in windows? I am getting the following error without it as pointed in another issue-->
Traceback (most recent call last):
File "", line 1, in
File "h5py_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "C:\Users\Ashwin\anaconda3\envs\optical_flow\lib\site-packages\h5py-2.10.0-py3.6-win-amd64.egg\h5py_hl\dataset.py", line 573, in getitem
self.id.read(mspace, fspace, arr, mtype, dxpl=self._dxpl)
File "h5py_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py\h5d.pyx", line 182, in h5py.h5d.DatasetID.read
File "h5py_proxy.pyx", line 130, in h5py._proxy.dset_rw
File "h5py_proxy.pyx", line 84, in h5py._proxy.H5PY_H5Dread
OSError: Can't read data (can't open directory)
Thanks in advance!

Thank you. This worked for me.


Fix for #4275

Not ready to merge.

Updated alt to last-location
Fetch alt from location in config

Doesn't quite seem to be fetching the correct last alt from the last-location cache file on startup.

I love to merge simple clean fix. No risk for me. Lol


etcdserver: add starvation detector to monitor raft routines

We have seen raft routine starvation issues when etcd is under heavy load. It is really hard to locate the issue without a lot of effort.
This pull request is the first step towards monitoring raft routines behavior. We will expose related metrics to prometheus as well as sends out internal marker message to collect the actual in-process raft processing end to end latencies for each raft processing stages.

@yichengq Can you try this out as you already got a reproducible starvation scenario... I will go ahead fix the tests if this makes sense to you.

Close in favor of #4646


Collision issue with Arcade and Google Chrome?

I built a tiny platformer with Phaser 2.4.7 and Arcade Physics. If you jump against a wall while pressing an arrow key, you will get stuck in the walls instead of falling. You can play the game here.
I have this issue only on Google Chrome (Mac). On Safari and Firefox it works fine.
Here's how the level is created:
var level = [
	[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1],
	[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1],
	[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1],
	[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1],
	[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
];

this.walls = game.add.group();
this.walls.enableBody = true;

for (var i = 0; i < level.length; i++) {
	for (var j = 0; j < level[i].length; j++) {
		if (level[i][j] == 1) {
			var wall = game.add.sprite(70+20*j, 50+20*i, 'wall');
			this.walls.add(wall);
			wall.body.immovable = true;
		}
	}
}

There is a problem with the left wall.
go touch on the left wall and try to jump you will see that

@halilcakarr There is though. When you hold down left and up next to a wall the character gets stuck.

Using one large sprite, instead of multiple tiles, is exactly how it should be fixed. Or convert it to a Tilemap, and then it'll create one large edge for the side of the wall.
I suspect it only happens in Chrome because it's polling at a different rate to FF, and causing more updates, so it's finding the edges more precisely.

Going to close this one off, it's just a limitation of Arcade Physics, and there's no easy fix for it.


feat: add a debug logger for a better develop experience

Because

We need a simple interface to log structs and maps prettily.
Current jsonl logger format is difficult to read while developing

This commit

Implement a logger that can auto-adjust to and expand any type of object

hi @YCK1130
Thanks for doing this!
Want to check have you checked how to integrate this better logger into pipeline-backend?
If this logger can be integrated to our current logger, it will be super helpful for all developers.

Hi @chuang8511, I have tried to integrate my logging functions into Zap. However, the Zap logger only accepts strings and its predefined fields, which contradicts the intention to automatically expand the data structure. Therefore, the only solution is to wrap the Zap logger in our own logger and process the input into a string before logging. I'm not sure if this meets the requirements.

Therefore, the only solution is to wrap the Zap logger in our own logger and process the input into a string before logging.
Seems ok for me.
I think the main point is that we can make the log clearer and complete for the developers.

In this case, we may need to take out the logger to a new repository to avoid the import cycle.


Feature request: support for energy module in 2021.8.0

Is it possible to add the following sensor attributes to support the new energy integration that is added in HA version 2021.8.0?
https://developers.home-assistant.io/blog/2021/05/25/sensor_attributes/

Agree this would be good to have the three required attributues added to the energy sensor please.  I have been able to hack it for the moment by adding the following to the customize.yaml file:
sensor.aircon_daily_energy:
  state_class: measurement
  last_reset: '1970-01-01T00:00:00+00:00'
  device_class: energy

But it's quite the hack because the energy consumption is reset daily by panasonic_cc (I don't know what impact that has yet). I haven't figured out yet what time of day it resets at (local midnight, UTC midnight) nor I don't think we can use templates in a customization so that means it will stay a hack until it can be added to panasonic_cc.
Note: If it resets at the same time every day, then I imagine it could be managed through creating a new attribute on thge sensor and updating it every time the do_update_energy() call is made within panasonic.py?

you could probably also use "homeassistant.util.dt.utc_from_timestamp(0)"
as suggested by Pascal in:
https://github.com/binsentsu/home-assistant-solaredge-modbus/issues/22#issuecomment-893401501

I also support this feature request. However after upgrading to 2021.9.1, it looks like the state_class needs to be 'total_increasing' rather than 'measurement':
The following entities do not have the expected state class 'total_increasing'

Agree this would be good to have the three required attributues added to the energy sensor please. I have been able to hack it for the moment by adding the following to the customize.yaml file:
sensor.aircon_daily_energy:
  state_class: measurement
  last_reset: '1970-01-01T00:00:00+00:00'
  device_class: energy

I'm running Home Assistant 2021.9.6 and after applying the above, so far so good - my aircon power usage is now being tracked on the Energy tab :)

To workaround, if you utilise the state_class: total_increasing you no longer required last_rest in customize.yaml, which I understand is the preferred modification.
sensor.panasonic_daily_energy:
  state_class: total_increasing
  device_class: energy
The long term fix is to get the state_class and device_class associated with the sensor in panasonic_cc

A lot of the time it can not load the sensor at all, i also need to disable the power sensor or the whole integration wil not load.. Don't know why..
After adding this it again does not load at all.

I've just tried again in over a week, and it actually loaded the integration with the energy sensor enabled, but more often that not in the last month, like you I've had to disable the option just to get the integration to load and allow me to show / control the actual A/C unit.

Exactly that, but it also does not work in the original panasonic cloud phone app..
I reset the airco from the power and than it mostly works.

The biggest problem is the Panasonic Cloud, especially the energy request which can take a very long time. And by doing so it brings down the entire HA component.
I'm working on a complete rewrite of the component that is not reliant on the pcomfortcloud lib... but unfortunately I haven't had much time to work on it.

Thanks for the update :)

@sockless-coding Let me know if you want help with refactoring the code. I recently bought 2 aircons, so I will probably bump into the same issues :)

I created https://github.com/sockless-coding/panasonic_cc/pull/58 to add the state and device class.

@sockless-coding
And just to add an idea for a possibly simple solution: From what I understand the api call for the energy consumption is a) slow und b) does not work if HA is connected to a different IP than the device itself.
As the energy data is not time critical wouldn't it be possible to a) try to retrieve it less often with b) a larger time-out span? If it then comes back empty one could simply try to connect to a different IP address and see if that works.
I looked into getting the energy data with a local solution, but finding an engery meter for 5-10 kW heat pumps isn't that easy, so using the cloud would be great.

any working solution yet?
I can not get this to work anymore:
sensor.office_aircon_daily_energy:   state_class: total_increasing   device_class: energy

Already been addressed in newer versions


Add SQS sample

@maciejwalkowiak, I remember you mentioned you had something for this, is there anything I can help with?

I'll submit a PR in upcoming days.

I am taking it back. If you have time please take over the sample 😅

@maciejwalkowiak , does this sample fits?

@rajadilipkolli it looks like a potential candidate for sample covering more integrations, but in this specific issue we mean a sample tailored for SQS similar to other samples in https://github.com/awspring/spring-cloud-aws/tree/main/spring-cloud-aws-samples. Also it's meant for the new SQS implementation in 3.0 version.


Support reading/writing scipy.sparse.csr_matrix type from/to hdf5 files.

The h5py wrapper code did not support writing scipy.sparse.csr_matrices which is inconvenient because SourceEstimate.compute_morph_matrix returns a csr_matrix.

This does not look like an exact drop-in update of our _h5io.py with the one from https://github.com/h5io/h5io/blob/master/h5io/_h5io.py, which it probably should be. Can you just copy-paste it?

[Current coverage][cc-pull] is 86.34%

Merging [#3334][cc-pull] into [master][cc-base-branch] will increase coverage by 0.01%

@@             master      #3334   diff @@
==========================================
  Files           336        336
  Lines         57384      57384
  Methods           0          0
  Messages          0          0
  Branches       8734       8734
==========================================
+ Hits          49545      49551     +6
+ Misses         5172       5168     -4
+ Partials       2667       2665     -2

[][cc-pull]

Powered by Codecov. Last updated by [64a9c91...66fed33][cc-compare]
[cc-base-branch]: https://codecov.io/gh/mne-tools/mne-python/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/mne-tools/mne-python/compare/64a9c91c6cab7c34fada862cb825a5cb6add51a7...66fed337c538f783423500afa1c0440be88b8edb
[cc-pull]: https://codecov.io/gh/mne-tools/mne-python/pull/3334?src=pr

Yes, didn't realize this was just copied from that repo.

Yeah, everything from mne/externals is just a copy (or close to it anyway)

h5io's implementation does not appear to support csc, so if you want you could open a PR there for it

The file you linked to seems to support both CSR and CSC.

Whoops, I thought it was CSR only.

this is just a copy paste?

Yes.

Argh, need to modify h5io to nest its pandas import (which it should probably do anyway)

Do you want me to do it?

Sure if you're up for it

Change should be made in upstream h5io repo, then moved here

Sounds good. Will do now. I'm assuming there's a test in h5io to catch this also?

One of the CIs runs with pandas and another without IIRC

I just committed the version of h5io/_h5io.py that was just merged into h5io. The AppVeyor test seems to be failing on something unrelated to this, but I'm not sure what it is.

@Eric89GXL if you're happy

FYI https://github.com/mne-tools/mne-python/issues/3292 should thus now be possible.

Thanks @nfoti


GPL-861-1

Closes #278
Changes proposed in this pull request:

Allow creating plates from multiple labs

bump contents of .release-version -> 2.5.4, the check release version bump github actions should have picked this up but I assume it hasnt because your .release-version file is old?

Deprecated by: https://github.com/sanger/lighthouse/pull/286


Adding a callback after animation has been completed

I'd like to be able to register a callback with MotiView so that after an enter or exit animation is done, it will call a custom function.
Is this possible to do?

Use the onDidAnimate prop:
https://github.com/nandorojo/moti/api/props
https://moti.fyi/animations#listen-to-animation-changes

If you want to listen to exits, pass onExitComplete to AnimatePresence.

sweet. I didn't know about exitTransition. Thanks!


Provide a full sample solution

The samples provided are rather simple projects.
I'd like to see a "full" solution consisting of the MVC main project, "new" ClassLibrary projects, "old" ClassLibrary projects (assuming the target is dnx451 or dnx46 here, not core) and a unit test project.
There doesn't have to be a lot of business logic, just a sample how all those bits come together.
Especially the unit test part is important for me since I couldn't figure it out yet :)
Since you reached RC and we can start doing production work I think it's important to extend the samples to reflect a real world project/solution instead of dummy-single-project-solutions used during testing.

Others have asked about this, and the team has responded that the Music Store sample is a kind of flagship sample that has a bit of everything in it: https://github.com/aspnet/MusicStore ... which even includes tests: https://github.com/aspnet/MusicStore/tree/master/test/MusicStore.Test
For xUnit, you may have seen these, but in case not, check out: http://xunit.github.io/docs/getting-started-dnx.html and the official doc at https://docs.asp.net/en/latest/testing/unit-testing.html
I'm not sure on the "flagship" class library project. Actually, the official docs don't seem to even have a placeholder specifically for them. There is a lot of discussion on aspects: Search repos (open and closed issues) for "class library" and helpful issues come back.

Ah, completely missed that… helpful indeed.
Is this the right place to ask if we are all doing xUnit tests now? I thought I read something about MSTest support coming in VS 2015, so since I’m now on 2015 I tried to set it up that way and failed.

Yes ... it's cross-plat, so I think that was one of the key reasons things went xUnit. I've gotten into xUnit myself, and I think it's awesome. It's very easy to setup and use. The xUnit repo has a lot of good issues raised and answered by the team.
For your question about MSTest, ask it over in that repo ... you'll find that the experts and key MS folks in each area monitor repos in their own areas most closely, so xUnit questions go best in the xUnit repo issues, and you'll probably get a quick answer ... sometimes 10 seconds after you post!

There's this but it hasn't been updated for RC1 https://www.nuget.org/packages/MSTest.Runner.Dnx/1.0.0-alpha8

Ah, of course, cross-plat. Sometimes I'm so amazed all my stuff runs on Linux I subconsciously expect really ALL my stuff running everywhere by vNext magic ;)
@davidfowl thanks and hope you'll be on the next standup again


AudioRecorder license ?

Hello,
Your project is very intersting (SDL is the point for me,for portability reasons) and I'm close to start testing your code in miniDart (see : https://framagit.org/ericb/miniDart ), but I don"t know the license for your code.
MIT would be perfect, but since ffmpeg is used, it could be difficult to do better than LGPL. Of course, all sources are mentionned in miniDart README, to valorize the respective authors.
Last, and FYI, I'm currently using GPL, but the goal is to protect my work. Later, I'll probably change for LGPL, to allow integration of any part in propriatory software.
Thanks in advance !  :-)

OK, I saw you added a license. If I use it, I'll add a word there + you'll be listed
Thank you !

The answer is MIT license.
Closing.


Script: updates-arch-yay

A script that shows the total available updates for Arch Linux using yay. Includes optional click actions to display a notification of available updates and another to display a GUI list of available packages and trigger the update of those the user selects.

It would be best if we could integrate yay into the existing scripts. That's not really possible at the moment. There is a bug: #81 - That's why we can't do much right now except offer the script in the issue.

This one does a lot more than the other ones that just display a count if you take a look at the readme

It's a little out of the scope of what we're doing here in this repository.
The idea is to write scripts that can be displayed on polybar.


Scoped CSS is inherited incorrectly when use component as root of another component

Version
2.6.10
Reproduction link
https://github.com/lusarz/scoped-css-inheritance-issue
Steps to reproduce

Create generic component (VPanel) with slot, and .title class
Use VPanel as root of specific component (VSamplePanel)
Define div with class .title inside specific component

What is expected?
Div with class .title created inside VSamplePanel shouldn't inherit styling from VPanel (font-size in provided example)
What is actually happening?
Div with class .title inside VSamplePanel inherits styling from VPanel (font-size: 48px).

I need to create some generic components like card, panel etc in project. I don't want to care about name of classes used in these generic components when writing it's instances.

Duplicate of https://github.com/vuejs/vue/issues/7548

Thank you @posva for closing. I was sure that someone met this issue before me, but I couldn't find appropriate issue in github :)

Yeah, I understand, it's sometimes really hard to find the duplicates, even for me

I think you managing it very well!

Thank you 🙂


Bug RSACryptoServiceProviderImpl.Codeunit.al fixed in 18.x (#15342)

Is the bug (#15342) also fixed in version 18.x?

@JesperSchulz

Thanks


object NoneType can't be used in 'await' expression

Whenever I try to use adlfs version 2024.4.1 (only version I've ever used) my code works but on exit/cleanup it generates the following stack trace:
Traceback (most recent call last):
File "/usr/lib/python3.10/weakref.py", line 667, in _exitfunc
f()
File "/usr/lib/python3.10/weakref.py", line 591, in call
return info.func(*info.args, **(info.kwargs or {}))
File "/home/david_kusner/dmk_python/lib/python3.10/site-packages/fsspec/asyn.py", line 103, in sync
raise return_result
File "/home/david_kusner/dmk_python/lib/python3.10/site-packages/fsspec/asyn.py", line 56, in _runner
result[0] = await coro
File "/home/david_kusner/dmk_python/lib/python3.10/site-packages/adlfs/utils.py", line 78, in close_credential
await file_obj.credential.close()
TypeError: object NoneType can't be used in 'await' expression
Here is some sample code that exhibits this issue. It also happens if I acquire an AzureBlobFileSystem and work with that. Note that code works -- I can read the file and print out its contents. The stack trace occurs immediately afterwards. I haven't found any way to supress it. I'm not using any async here, so not sure why an 'await' is involved.
import fsspec
from azure.identity import AzureCliCredential
from adlfs import AzureBlobFileSystem
creds = AzureCliCredential()
storage_options = {"credential": creds}
adlFile =<EMAIL_ADDRESS>with fsspec.open(adlFile, **storage_options) as f:
print(f.read())

Saw a suggestion to use azure.internal.aio library in issue #431, which I did with success. Stack trace no longer happens with async AzureCliCredential.

I am no expert to async, but when removing the await here:
https://github.com/fsspec/adlfs/blob/5c24b2e886fc8e068a313819ce3db9b7077c27e3/adlfs/utils.py#L78
it solved the issue ...

Closing in favor of https://github.com/fsspec/adlfs/issues/431.


Error handling doesn't exist for API call limits

Please allow error handling for when an Alpha Vantage API usage limit is reached. Ie. When you get messages like this:
{     "Note": "Thank you for using Alpha Vantage! Our standard API call frequency is 5 calls per minute and 500 calls per day. Please visit https://www.alphavantage.co/premium/ if you would like to target a higher API call frequency." }
This particular error looks like should be caught here:
https://github.com/RomelTorres/alpha_vantage/blob/4e0b5057e520e3e3de69cf947301765817290121/alpha_vantage/alphavantage.py#L164
Right now it's assumed that the data field with a key defined by data_key exists. This currently throws an uncaught KeyError exception (which it should).
And here's a partial call stack showing the exception being thrown:
File "C:\.......\alphavantage.py", line 178, in _format_wrapper data = call_response[data_key] KeyError: 'Time Series (Daily)'

Running into the same problem. Proper error handling would help a lot.

Maybe this is the problem with it only finds 1-2 of 3 sensors randomly when restarting.

Any suggestions for improving this?

This is a great issue to raise... I was running into the same issue. Looks like it has been fixed and will be in the next release. Wohoo!


Add channel args to enable user agent string for Objective-C

Hi @jcanizales.  This should fix #4068 and the duplicate #2524.  Later patches could build on this to fix #2433. Possibly demonstrates a similar pattern that could be used for #4585.  The Objective-C tests pass for me locally.  Have only tested helloworld example with insecure host so far.  Just wanted to get this in front of you to take a look before I continue work on it like adding tests, etc.

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

Can one of the admins verify this patch?

I'm going to give it a first pass focussing on the design from a user perspective.

I like that you've introduced channel args for any channel, rather than the ad-hoc way it was done before, because it's going to be used for a few more of the features remaining.
I wonder though if we can't just use a dictionary for them, and have a -[NSDictionary grpc_channelArgs] to return the C structure off its contents.

NSDictionary should be sufficient, I could switch the code to use that.  I was thinking ahead to GRPC_ARG_POINTER arg type, but I don't think there is a use case for an end-user setting a property that would require that right?

Did some more research.  In testing it looked like the grpc_channel_args was looked at in the default thread, not necessarily main.  So there was a bug since the arg wrapper (or dictionary) could go out of scope and freed before gRPC could use it.  So instead I'm going to make a patch that stores the args in the channel wrapper and collapses the Unsecured/Secured subclasses.

Re: GRPC_ARG_POINTER, yeah I don't think we'll use it. But if we do, I reckon we'll find a nice way to put pointer args in a dictionary.

Still need to address renaming of the method to set the user agent and removing the per-host configuration for it.  But I did do a refactoring to remove the different sub-classes of channel and added retaining of the channel args in the channel itself (to fix it being freed to early).

Looks great!

Just waiting for Travis.

Testing doesn't look like it's going to be trivial, as we don't have an interop test that echoes the user agent. We should, though.
@yang-g: Is it possible to have the interop C/C++ server echo back to the client the user-agent header it received?

Oh, I totally forgot that we have to set our own part of the user agent!
And I imagine different libraries using GRPCCall will want to set their own part, for their respective calls. So I guess that's the use case for a different agent per host.

Ok.  So, I'll put the per-host user agent back in.  To me that felt better storing it in an instance of something rather than a simulated class member variable.

For user agent integration tests would we be adding something simple like a received_headers message within HelloReply?


Can't generate vector tile with layer 'maximum zoom' more than 20

I used the following command to generate an .mbtiles file from a .geojson file input_file.txt . But the option '-z22' seemed to have no effect!
tippecanoe -z22 --force -o slottest.mbtiles -l counties /home/limh/PycharmProjects/json2geojson/static/geo_json_cache/2019-12-05-09-30-24_LMVHFEFZ1KA660326_7_1_out.geojson
I couldn't generate an .mbtiles file with layers more than 20! When I launched the .mbtile in tileserver-gl, it told me that the maxzoom is still 20. And when I zoom in over the maximum zoom level 20, the data disappeared in the map!

What can I do to increase the upperlimit of the maximum zoom value to more than 20? (Is that a default upperlimit?)
In fact, I want the tile to be displayed in a way that what the Leaflet does - when one zooms in over the 'maxzoom' level (of which the default value is 18), it still shows the tile image available from the last possible zoom level but scales it up (though it looks blur but it is much better than showing nothing!!)
Any suggestions?

I used the following command to generate an .mbtiles file from a .geojson file input_file.txt . But the option '-z22' seemed to have no effect!
tippecanoe -z22 --force -o slottest.mbtiles -l counties /home/limh/PycharmProjects/json2geojson/static/geo_json_cache/2019-12-05-09-30-24_LMVHFEFZ1KA660326_7_1_out.geojson
I couldn't generate an .mbtiles file with layers more than 20! When I launched the .mbtile in tileserver-gl, it told me that the maxzoom is still 20. And when I zoom in over the maximum zoom level 20, the data disappeared in the map!

What can I do to increase the upperlimit of the maximum zoom value to more than 20? (Is that a default upperlimit?)
In fact, I want the tile to be displayed in a way that what the Leaflet does - when one zooms in over the 'maxzoom' level (of which the default value is 18), it still shows the tile image available from the last possible zoom level but scales it up (though it looks blur but it is much better than showing nothing!!)
Any suggestions?

Again I figured out the answer. One can tune down the '--full-detail' and '--low-detail' (default values are 12) to increase the maxzoom level set by '-z' options. But the upperlimit of maxzoom is 24. It should also be noted to set  '--full-detail' and '--low-detail' with the same number and not too small to have polygons correctly rendered and shown in the map. The following options are recommanded:
tippecanoe -z22 --full-detail=10 --low-detail=10 --force -o overlapped_polygon.mbtiles -l counties /home/limh/PycharmProjects/json2geojson/static/geo_json_cache/2019-12-05-09-30-24_LMVHFEFZ1KA660326_7_1_out_v3.geojson


NPM link like functionality

http://justjs.com/posts/npm-link-developing-your-own-npm-modules-without-tears simplifies development of projects where you are also working on their dependencies by not requiring you to push and build a package before using it.
The npm implementation relies heavily on symlinks, which is not going to be appropriate for windows.
Would it be practical to use an additional paket.link file alongside packet.dependencies that maps remote lookups to filesystem paths?
   nuget SomeDependency ==> ~/code/SomeDependency
   github ryansroberts/SomeProject ==> ~/code/SomeProject

These would then be checked before the actual dependency resolving gubbins kicks in and supply the package / file to be copied into the consuming project.
Could probably use some globbing to make it a little more forgiving than having to exactly specify the location of the local dependency. Possibly also append .gitignore, as it would be nasty if committed

this sounds pretty interesting.

This would be a really great feature to have, we use it all the time in npm. One possibility for Windows is to use mklink to simulate the same functionality.

I wonder how this could work? If we link a project then we would need to make changes to the csproj file and the sln, right? we would also need to link transitive projects.

I think this is solved by paket.local? Please let us know if not.


macOS install packages should be signed

Verification

[X] This issue's title and/or description do not reference a single formula e.g. brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.

Provide a detailed description of the proposed feature
The macOS packages that are being built with Github Actions (https://github.com/Homebrew/brew/pull/14265) should be signed with an Apple Developer certificate to strengthen security and lower barriers to installation.
The current installer package is telling users that it cannot be opened because it is from an unidentified developer.

Sure, there are workarounds for performing this installation anyway, but this message will ward off many potential installations.
What is the motivation for the feature?
To strengthen security and lower barriers to installation
How will the feature be relevant to at least 90% of Homebrew users?
It will make it easier for macOS users to install the product.
What alternatives to the feature have been considered?
Writing more documentation about how to work around the errors displayed by macOS. This will still result in excess support requests.

Duplicate of https://github.com/Homebrew/install/issues/739


2022-04-28 Variants Data Update

Use this one.

obsolete with...https://github.com/cagov/covid-static-data/pull/2210


Found unconventional releases

Problem

GitHub repo release version doesn't match with npm package release version.
Even thought there is automated flow define to make them auto release we are not using them.

Proposed solution
Enable automated release and both the problem will be resolved. more over, developer can be independent to release new version and don't wait for anyone to release for them.
Note: New possible issue is release version convention. so I would prefer to prepare a guideline for that.
Steps
npm account owner need to go to npm tokens (https://npmjs.com/settings/[[username]]>/tokens) page (if the package owner is @promatik  then possible page link is https://npmjs.com/settings/promatik/tokens)
generate new token for auto release.
then go to (repo secret manage page)[https://github.com/immera/mccm-frontend/settings/secrets/actions] and add new secret with name AUTOMATED_PUBLISH and put the secret value there.
once this is done everything when we release new tag in github reppo it will automatically release the new version in the npm. (we need to make sure when we release new version at the same time also need to maintain the same version in the package.json. because npm will pick up version from package.json)

The key was added.


Fix Display of Measurements on DatasetDetail

The Measurements on the DatasetDetail page are being rendered incorrectly when there are multiple.
Using the ALES_L2_OST_JASON2_V1 dataset as an example:

It should look like PO.DACC:

With two exceptions:

Each individual phrase should be a link to search for that phrase in MUDROD
Do not display anything if the value is "None"

Complete https://github.com/mudrod/mudrod/pull/208


Update sp-serveroption-transact-sql.md

Hi SQL Server Docs Team,
I've done the following changes:

Added missing option name, and its description, for @optname.
Added code example of using @optname='name' to rename a linked server connection.
Corrected the data type and size of the @optvalue parameter.

Best regards,
Vlad

@markingmyname
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@VladDBA, I'm in the process of refreshing this entire folder, so this is helpful, thank you. We'll incorporate your changes into a future PR.

Hi @rwestMSFT,
I've realized that there was another missing option called provider string for the @optname parameter, so I added it and its description.
Also fixed a small typo that I've introduced with this PR. Sorry about that :)

@VladDBA Our internal PR is still in progress, so it's no big deal to adopt the additional changes. Thanks!


Slidebars in ReactJS

ReactJS strips off the canvas and off-canvas attributes by default so the plugin does not work.
The plugin doesn't seem to support the targetting of ID's/classnames (or i am just misreading stuff)
Course of action?

Just found out that adding the keyword "is" to the element will render the attribute just fine.
In my opinion its still beter to at least prefix the "canvas" and "off-canvas" attributes with "data-"
Example code of working React code, in case someone else needs it:
<div is off-canvas="id-1 left reveal">
and <main is canvas="container">


pkg/bisect: estimate confidence in the result

Estimate reproducer's flakiness more carefully, as it can help us get better results.
During config minimization, do not let reproducibility drop too low.
For each test() run, estimate our confidence in the result. For now, only consider the false negative case: if we got no crashes, it's likely that the bug is there, but the reproducer was not lucky enough. Given an estimate of reproduction likelihood, we can easily calculate the chance of an invalid result: (1-probability)^runs.
Combine all individual test() confidences into Result.Confidence. If the resulting Confidence is too low, ignore the bisection result.

Motivation: bisection results like this https://syzkaller.appspot.com/x/bisect.txt?x=1340a3f0a80000

I've decreased the cut-off in syz-ci to 0.5 (just in case, probably we'll increase it later), so approvals have gone away.
PTAL.

I'm thinking now we should probably be more eager to set the flaky flag -- even if we noticed once that there are < 50% of bad run results, it's already enough to treat the reproducer as flaky for the rest of the bisection process.


Download public folder

I have a link https://mega.nz/folder/XXXXXXXX#7sXQ0wW59-B_JJHyOU3a-A to a directory with files, how can I download through this library, if not, can you tell me a way that bypasses data transfer restrictions in 5GB?

Probably a duplicate of #10.
I posted the code I used to get and download files from public folders using this library's crypto module on https://stackoverflow.com/questions/64488709/how-can-i-list-the-contents-of-a-mega-public-folder-by-its-shared-url-using-meg/68639204#68639204