V2: RunValueLogGC(): Value log GC attempt didn't result in any cleanup

Hi @ostafen  - I'm noticing every 5 minutes a RunValueLogGC(): Value log GC attempt didn't result in any cleanup in the logs  - I know where it comes from in the code but ... I'm suspecting that the GC maybe not working as expected. To test I inserted 7.2GB of data yesterday (300k documents), and then deleted all the documents (so it's "empty" now). I's been > 24 hours now and I still have 7.2GB. Accessing the database is much slower than usual (probably because it now scans through 7GB of "empty" data to eventually return nothing, so the deleted data definitely appears to impact performance). I've inserted some more documents, deleted those etc etc (hoping some action would cause it to start working and prune the database), but it doesn't seem to be doing anything. All I see are those error messages on the 5 minute interval. I saw somewhere that you use a discard ratio of 0.5, however I would think that this situation should be a 100% discard ratio (or maybe 99.99%).
Are you able to shed some light as to how this is supposed to work exactly, and whether there is anything I can do in Mailpit (or CloverDB) to "help" it reclaim space once a whole lot of data is deleted? I know you said "if you try to perform several insertion and deletion sequences, you will reach a point where disk space is reclaimed", however I can't seem to get that to work despite there being 300,000 less documents in two separate catalogues. I have considered closing the database and physically deleting the files, then recreating, but that seems like a very extreme solution.
Any ideas / suggestions? Thanks!
Lastly (a separate "issue"), that error output appears to be hard coded, in that any app using CloverDB will display those errors  regardless. Ideally I would prefer to hide it (or see it only in debug/verbose mode) rather than always displaying it. I know the output is coming from a goroutine - but would you confider (at some stage) a clover "flag" to be able to turn that particular GC error message off?

Hi, @axllent, thank you for reporting this. Regarding the first point, I'll do some experiment and try to figure out what the problem is.
Regarding the logging problem, I was planning to use introduce a logging library (such as zap or logrus) and allow to set the logging level externally. Since you need it, it is something I will introduce in the next few days.

 Please don't stress about the error message output, I don't need that soon, I just though I would mention it because I was talking about the GC stuff anyway :) As for the GC not reducing space however, that would be greatly appreciated. I don't know if it is useful, but I am using indexes, and looping through 2500 deletes at a time.

@axllent: I think I figured out the problem: it seems that badger computes stats on the files only when the db is closed.
So, as soon the server is running, even if the GC is called, he will reclaim no space, since stats are not updated.
Try to shutdown your server and restart it to see if space is reclaimed

@ostafen I've tried that many times over the last week, and even with this particular database today but it doesn't help unfortunately. 5 minutes after restarting I just get those gc "error" messages

package main

import (
	"log"
	"time"
	"github.com/ostafen/clover/v2"
)

func checkErr(err error) {
	if err != nil {
		log.Fatal(err)
	}
}

func main() {
	db, err := clover.Open("./db", clover.WithGCReclaimInterval(time.Second*5))
	checkErr(err)
	defer db.Close()

	has, err := db.HasCollection("test")
	checkErr(err)

	for i := 0; i < 10; i++ {
		if !has {
			err = db.CreateCollection("test")
			checkErr(err)

			n := 100000
			for i := 0; i < n; i++ {
				doc := clover.NewDocument()
				doc.Set("timestamp", time.Now().UnixNano())
				_, err := db.InsertOne("test", doc)
				checkErr(err)
			}
		}
		checkErr(db.DropCollection("test"))
	}
}

Try to run this script several time. In another terminal, run the following command to monitor the size of the db:
watch ls -l db

What I see is that, at each Open(), db reaches a near-zero size

But here you are dropping the collection, not just deleting the documents from it. Sorry, I'm in bed now, so I'll have to test tomorrow (it's after midnight :))

I'll experiment some more tomorrow then, thanks 👍

@ostafen I am beginning to suspect that it may have something to do with the 0.5 GCDiscardRatio ratio clover uses (in a few GH issues on badger users were told to try values as low as 0.01).  Internally I don't know exactly how badger works, and what (exactly) that ratio impacts in terms of its GC logic, but I suspect it may be the key here.  I don't think there is any way for an app to override that 0.5 GC value in CloverDB either (like clover.WithGCReclaimInterval() can ~ could this please be added)? I am beginning to think that value (0.5) means half of the "empty" space needs to be refilled before GC prunes deleted data.
In your test you are repeatedly inserting and deleting the same number of documents, and they are all very small. In my case, the document data is much bigger (physical emails), and we're not inserting and deleting the the same total number each time.
I have mocked up a more relative test which adds a +-10KB (10k bytes) string to a field as well as the timestamp. Initially it inserts 100k documents (approx 1GB db in total), then deletes them, and then 10x inserts & deletes 1,000 documents. https://gist.github.com/axllent/6d7f01846a184743838992965355bf79
When I run this test, yes I do see the size of the data sometimes reducing a little, but ultimately it leaves >1GB on disk (note: the test will create approximately 1.1GB of disk data). For the test I even added a 30 second pause at the end to let GC run a few times after just to make sure. Maybe this helps?

I am beginning to think that value (0.5) means half of the "empty" space needs to be refilled before GC prunes deleted data.

Discard Ratio refers to the amount of space in percentage that could be reclaimed for a log file in order to be selected during GC.  Try to hardcode this value inside Clover in the option file to setting it to a lower value con solve your problem (I will export a function to allow to set it as an option)

You are right - setting it to 0.01 did not actually change anything in my test - it still remains at > 1GB, even when I close and reopen the empty DB. It sounds like this is completely out of your control, so not much (if anything) you can do here. As you say - eventually it should reclaim space - it's not very efficient at doing so :)
I think that I'll maybe implement zstd compression for the raw emails (stored in the database) to try save some space moving forward as this should at least save some space both in memory and on disk. The raw emails are not used for searching / filtering, they are simply parsed when an email is opened in the UI.
Feel free to mark this as resolved, unless you want to leave it here if you're going to add any functionality. Thanks again @ostafen :)

The irony of it all is I just checked the database directory of Mailpit which was still running from yesterday (which had several gigs of "empty" data), and it's now down to to almost nothing.... LOL. I'll make a metal note that pruning can take > 24 hours....

You could also try to reduce the frequency the garbage collector is called to see if space is reclaimed more often.
Anyway, the real problem is that badger doesn't give any warranty about this, so we should not make assumptions about disk size.

Plus the fact that I think need to close and re-open my database after a DeleteAll(), something I would have preferred not to do. I do have some ideas though, but it involves locking all DB access when closing and reopening it, and each database function relying on a sync.RWMutex{} - I'm sure that will take a performance hit, but more testing (for me) to do!

I don't suggest you to go for this approach, since you introduce a dependency in your code related to an internal implementation detail of clover (the fact that it uses badger), a part from making the code more complicated. Moreover, even if you take this approach, disk size could remain high

Hi all :) trying out the last version of the v2 branch and i got this error. The real issue is that inside clover storage, it's managed with a Fatal error. So as a result, my application exits every 5 mins with no way to recover from errors.
Is there a way to fix it? should i opening a PR with to allow for a non-fatal error log?


fix: Return original document title when leaving a dashboard

SUMMARY
This PR replaces the document title back to the original one when leaving the dashboard. This is to make sure that the dashboard title does not remain in the browser tab while moving to different pages without reloading.
This is not a definitive solution but a quick fix for the problem reported in #16254. As we move toward eliminating page reloads, the need for a title management implementation arises. In fact, the titles are currently only managed server-side, with the Dashboard page being the only exception.
BEFORE
https://user-images.githubusercontent.com/60598000/129903630-e99f92f6-733b-4566-82a9-b7f9ff09a715.mp4
AFTER
https://user-images.githubusercontent.com/60598000/129903675-df40022d-e4d8-443a-82cf-8e198e1eb8f1.mp4
TESTING INSTRUCTIONS

Go to the Dashboards' list
Open a Dashboard and observe the browser tab title
Go back to the Dashboards' list and make sure the browser tab title has changed

ADDITIONAL INFORMATION

[x] Has associated issue: Fixes #16254
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

/testenv up

LGTM. I wonder if we should start using document titles more to make it easier to distinguish between tab contents?

We should  definitely look into this

LGTM. I wonder if we should start using document titles more to make it easier to distinguish between tab contents?

I know this is a while ago, but was this ever picked up/is planned? I couldn't find something from my search.


Change of backbone

Is it possible to use a backbone model that is not listed in the directory. When I tried to implement it its telling its not present in the registry. I even tried adding it to the registry also still its not working out. What to do?

Yes, it's possible to add your own module, but you will need to modify several places.
Can you show me what changes have you made?

Closing due to stalel. Please reopen if you have more questions.


Support differently-scoped resources

Refactoring
Support multiple resources scopes, and output each into different sections of the schema

@Tiano2017, @ifeoluwaokunoren FYI

@fearthecowboy Looks like CI is not being picked up, but I don't have the permission to check on it. Mind checking what's gone wrong?


Unexpected behavior of room leaving

I found that in the released 1.0.6,  leaving a room will result in leaving not only the room but also rooms after it. For example, a user is now in room 'A', 'B' and 'C'. Leaving room 'B' will leave the user in room 'A' only (both 'B' and 'C' disappear).
By checking the code, lib/socket.js, I found:
Socket.prototype.leave = function(room, fn){
  // ...
  self.rooms.splice(self.rooms.indexOf(room, 1));
  // ...
  return this;
};

I guess there is a missing argument (in order to leave the specific room only).
self.rooms.splice(self.rooms.indexOf(room, 1), 1);

:up:
I have the same issue, do you have a fix for this bug?


Add the possibility to set diagonal matrices as gain in the controllers

cc @isorrentino

Closed by https://github.com/ami-iit/lie-group-controllers/pull/12


[silgen] Update another 33 SILGen tests for running with the ownership verifier enabled.

[silgen] Update another 33 SILGen tests for running with the ownership verifier enabled.
Now ~45% of the SILGen tests run with the ownership verifier enabled.
rdar://33358110

@swift-ci smoke test and merge

@swift-ci smoke test and merge

@swift-ci smoke test and merge


Use animal sniffer maven plugin to check java 8 signature

Hi, after a first bad attempt with the animal sniffer plugin I tried again with much more determination.
It turns out that it wasn't that complicated to exclude the java16 directory from the sniffing.
It is much less intrusive than the attempt with the release parameter given that it almost works out of the box.
I know we have decided to try the matrix workflow approach, but this seems a much more proper check. And this time it doesn't have any performance trade off :D
Let me know what you think!
Bye!

@EvaristeGalois11 I tried it out and it seems to work very well. It's nice to have fast feedback as opposed to waiting for workflows to complete.
The PR looks great, thank you!

@EvaristeGalois11 ironically, this change seems to cause Deploy Snapshots to fail, which runs tests using Java 8 :)
https://github.com/instancio/instancio/actions/runs/4761421093/jobs/8462705824#step:4:6992

Yep I did noticed in fact that the deploy workflow was broken. It's very strange, it seems that the presence of the animal sniffer plugin caused maven to try resolving every dependencies of the report-aggregate project. I'm clearly missing a key piece here.
I'll try to fix it as soon as i can sorry about that

@EvaristeGalois11 no worries at all. It's part of the CI game :) I agree, it's an odd issue though. Let me know if I can help with dummy PRs to test the changes, or anything else.


Running tests in devcontainer creates unignored files

When working in a devcontainer, running tests creates a core file and test directory which are not included in the .gitignore file. Would be great to add them.

My mistake, a partial run of the tests left some artifacts that should simply be removed.


Update README.md

Codecov Report

Merging #8 (61dbd9b) into main (1bc4f00) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main       #8   +/-   ##
=======================================
  Coverage   86.51%   86.51%
=======================================
  Files          23       23
  Lines        1876     1876
=======================================
  Hits         1623     1623
  Misses        198      198
  Partials       55       55

Continue to review full report at Codecov.

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

/ok-to-test


Fixed unresponsive Netty on unaccepted request

When an request is not accepted the next ChannelHandler is not invoked and Netty does nothing with the request. This change hands a not accepted request to the next ChannelHandler in the pipeline.

Thanks for the fix!


Fix documentation for Test.Hspec.Monadic

I forgot all about updating the documentation! Thanks sol, I'm sure anyone learning hspec will really appreciate having correct documentation.


Remove invalid symbol

There's an invalid symbol in a SCSS file. This PR removes it.

Same as #1730, #1672

@Eonasdan are you there? 😄

this was already fixed


SSH key delete does not delete a key actually

The title may be incorrect. It may be "SSH key backup always detects there is a ssh key".

please check the new version.
https://github.com/themactep/thingino-firmware/commit/09e5c5daa2b646faa467fc2793d682248f49f099

Not solved yet on a42f6e065a58f.

Did you compile the new firmware? Your screenshots are from the old one. Changes only committed, the will be included in tomorrow CI build.

I uploaded total 6 screen shots. The last screen shot shows the latest git
sha, I believe. I will check later today.
On Mon, Dec 30, 2024, 10:22 Paul Philippov @.***> wrote:

Did you compile the new firmware? Your screenshots are from the old one.
Changes only committed, the will be included in tomorrow CI build.
—
Reply to this email directly, view it on GitHub
https://github.com/themactep/thingino-firmware/issues/390#issuecomment-2564933897,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAWALMXT2SSHKU2QQ5Q2DH32ICN37AVCNFSM6AAAAABUHVPDTKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRUHEZTGOBZG4
.
You are receiving this because you authored the thread.Message ID:
@.***>

a42f6e065a58f is "cameras: reorder parameters after renaming." which is later than 09e5c5daa2, "webui: rewrite ssh host key back up form.".

I tested, it works. Reopen if it does not for you.


sanitise startup logging #34

Codecov Report

Merging #35 into master will decrease coverage by 0.65%.
The diff coverage is 90%.

@@            Coverage Diff             @@
##           master      #35      +/-   ##
==========================================
- Coverage   94.35%   93.69%   -0.66%
==========================================
  Files           7        7
  Lines         354      365      +11
  Branches       45       48       +3
==========================================
+ Hits          334      342       +8
- Misses         20       23       +3

Impacted Files
Coverage Δ

src/logger.js
95.83% <100%> (+1.38%)
:arrow_up:

src/HelixServer.js
85.54% <100%> (-0.18%)
:arrow_down:

src/HelixProject.js
94.16% <80%> (-2.03%)
:arrow_down:

Continue to review full report at Codecov.

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


Add Fuzzy Matching Feature to Enhance Duplicate Detection

Description
Currently, the tool relies on strict hashing to identify duplicate files, which works well for exact duplicates. However, many users might encounter near-duplicate files—files that are not identical but share high content similarity (e.g., different versions of documents, edited images).

Fixes #84

Implemented Fuzzy Duplicate Detection Method
The fuzzy matching feature would:

Use similarity metrics (such as Jaccard index or Levenshtein distance) to detect files with slight differences.
Help identify near-duplicates, reducing redundancy and improving storage efficiency.
Allow users to set a similarity threshold to control the sensitivity of the fuzzy matching.

I have already implemented an initial version of this feature by creating a new fuzzy.py file. This includes a method find_fuzzy_duplicates that uses fuzzy matching to detect near-duplicates.
Key Changes:

Introduced fuzzy matching logic to detect near-duplicate files based on content similarity.
Added an optional --fuzzy flag to the CLI to enable this feature.
Allows users to specify a similarity threshold for fine-tuned results.

Why This Is Beneficial:

Expands the tool's use cases to handle not just exact duplicates but near-duplicates as well.
Provides a more flexible, user-friendly duplicate management experience.
Helps free up more storage space by eliminating similar files that might have been missed with strict hashing.

@anushka4124 try to run this in a directory with almost 20000+ files and add a screenshot so that we can see how much time does it take to run and verify it's working

As I mentioned in your issue, no PR can be accepted without the issue having being assigned first. REJECTED.
Make a new PR with the changes requested.


Adding required modules for precursor charge prediction

WIll carry over the changes to the feature branch in the upstream dlomix repository and do the modifications and refactoring there:

separate classes for different models
stick to keras Model subclassing and do not override Keras functions
streamline the dataset class with the other tasks


Tax rate label not translated

Hello!
I don't know if this is an issue about Woocommerce or about this plugin.
On my cart page the only word not traslated in Japanese is the tax rate label.
I see in Italian "Imposta di consumo".
Is there a way to translate it in Japanese?
Also che checkout page contain words not translated.
For example:
the labels:
product-name and product-total
cart-subtotal
order-total
and place-order button
Many thanks

Can you reproduce this issue on default Wordpress theme (eg Storefront)?
Can you reproduce this issue when all other plugins are disabled except WooCommerce, Polylang and Hyyan WooCommerce Polylang Integration?
What product versions and settings are you using when this issue occurs?

PHP:
WordPress:
WooCommerce:
Polylang: [state if using Polylang PRO]
Hyyan WooCommerce Polylang Integration:
Browser:

Steps to Reproduce

What I Expected
What Happened Instead

within the system there are actually 2 types of label:

WooCommerce, Settings, Tax, Tax Options, Price display suffix.
This IS translateable and can be found in Languages, Strings translations, WooCommerce Taxes

WooCommerce, Settings, Tax, Tax Options, Standard rates
These are not translateable and do not need to be translated because they should use the correct tax name for the country (country specific not language specific).

For example, if you are in UK the tax is "VAT", if you are in Spain the tax is "IVA", in France the equivalent tax is "TVA", in Australia the tax is called "GST":  which tax will be applied depends on the country more than the language.
You may not need to translate the Price display suffix either.
For example, if you are VAT registered in UK, then you may be charging VAT to shoppers in other EU countries (UK VAT at UK tax rates, not the equivalent IVA or TVA - unless you also have a warehouse and tax obligation in those countries).   In this case it would be incorrect to translate the tax as IVA or TVA since it is VAT that is being charged, not IVA/TVA.


Highlight path in d3 tree is not working in IE

I created tree layout as in JSFiddle example http://jsfiddle.net/oo66o0q0/15/. Requirement is path should highlighted in red and with extra width when user click on node's right click menu "Highlight Route" option. This is working in chrome correctly but in IE highlighted route color becomes black. If I remove markers then it works in IE as well. How to resolve this issue in IE but not removing markers?

Please use Stack Overflow tag d3.js to ask for help. Although I make an effort to assist everyone that asks, I am not always available to provide help promptly or directly. Stack Overflow provides a better collaborative forum for self-help: tens of thousands of D3-related questions have already been asked there, and some answered questions may be relevant to you.
When asking for help, please include a link to a live example that demonstrates the issue, preferably on bl.ocks.org. It is often impossible to debug from code snippets alone. Isolate the issue and reduce your code as much as possible before asking for help. The less code you post, the easier it is for someone to debug, and the more likely you are to get a helpful response.
If you have a question about D3’s behavior and want to discuss it with other users, also consider the d3-js Google Group or joining the d3-js Slack.
Thank you! 🤗


Release 1.5.0

We are not controlling releases of cultivar through github at this time. There are no controls in place internally to manage it and it has not been vetted for an external 1.5 version.

See issue #24.


[METADATA UPDATE] Global metadata changes

This Pull Request was generated automatically as part of a global effort to improve metadata quality. Please review and merge this Pull Request within 5 days. If you have any questions or concerns about these metadata updates, please contact<EMAIL_ADDRESS>If you are not the correct contact for this content and repository, please notify<EMAIL_ADDRESS>Fixing#572708 Remove ms.service value functions
If this Pull Request is not merged within 14 days, it will be automatically merged by our system to ensure the timeliness of the metadata update.Please notify<EMAIL_ADDRESS>if you would like Pull Requests for metadata updates to merge automatically in future.
After you accept changes of metadata used in reports and they're merged, standard dashboards and reports will reflect new values, so you'll need to use new filter values.If you have any custom dashboards or Kusto queries, you might need to update those also.
Why we make metadata updates
Metadata updates are a normal part of business.For example, we update our metadata to reflect a new product name when a product is rebranded.Metadata updates require content to be updated because some metadata values(slugs) are included in the content(YAML header).
For metadata used internally, these updates make reports cleaner, easier to use, more consistent, and more reflective of current business.For metadata exposed to Learn Platform users, these updates ensure our users are exposed to up-to-date information consistent with their overall Microsoft experience.
Frequently Asked Questions
Why does this Pull Request appear to be made by the Repository Owner? We open Pull Requests two different ways.For Git Repos with a permissioned Service Account, we open the request from our org's Service Account.For Git Repos that we either do not have Service Account permission for or the repo is in Azure Dev Ops(ADO) we are able to open the Pull Requests in an automated way, but only with the PR creator as the Repo owner.

Docs Build status updates of commit 524527a:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-ref-services/latest/functions.md
:white_check_mark:Succeeded
View (azure-java-stable)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Renaming a Mono Godot project causes script assembly to not be loaded

Godot version:

v3.2.3.stable.mono.official
OS/device including version:

Windows 20H2
1030 GT, unsure of driver version
GLES3
Issue description:

Rename a project in the Godot project menu, and try to run the project. Scripts will not be loaded.
When trying to rename the project in the Godot project menu, a lot of warnings appear in the console.

Steps to reproduce:

Open the provided minimum reproduction project
Try to run it, and observe the error about the assembly not being loaded
Close the project
Rename it to "Rename test"
Open the project
Try to run it, observe "READY!" being printed in the console as the scripts are loaded this time

Minimal reproduction project:

Rename test.zip
Hopefully this hasn't been reported already.
(And sorry for the issue spam! Hopefully this minimal reproduction project is small enough.)

Duplicate of https://github.com/godotengine/godot/issues/27030 (same cause).


WeChat blocked in bad_user_agents.regex

Hello,
WeChat seems to be on your "bad_user_agents" list:
https://raw.githubusercontent.com/crowdsecurity/sec-lists/master/web/bad_user_agents.regex.txt
This is a WeChat user-agent:
User-Agent: Mozilla/5.0 (Linux; Android 12; moto g(30) Build/S0RCS32.41-10-19-3; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/86.0.4240.99 XWEB/4263 MMWEBSDK/20220604 Mobile Safari/537.36 MMWEBID/6045 MicroMessenger/<IP_ADDRESS>7(0x28001843) WeChat/arm64 Weixin GPVersion/1 NetType/WIFI Language/en ABI/arm64
The bad_user_agents.regex.txt file contains following line:
\bMicroMessenger\b
This seems to be the reason for blocking the IP/Client after a few requests.
Here is a list of WeChat User Agents, all of them contain the word "MicroMessenger":
https://developers.whatismybrowser.com/useragents/explore/software_name/wechat/

Repository not maintained.
To everyone who has the same problem🙁:
cscli scenarios remove crowdsecurity/http-bad-user-agent
systemctl reload crowdsec

This is bad feedback @buixor

Hey 👋🏻
This is a little tricky as some people may not want these useragents. You can add this exception yourself by just editting the text file within the data directory to remove it  but thats "what you class as a false positive" as others may not see it as one.
I will talk with the team about this

Hey we pushed #49 but how the data files work this update wont be repulled so you MUST do
cscli scenarios install crowdsecurity/http-bad-user-agent --force

You must include the force option as by default crowdsec tries to not download it if the file exits


Reloading accessories every 4 minutes

I was just browsing around and saw homebridge restart which seemed odd. right after that restart I saw this plugin reload all of my devices as expected. I then scrolled up through the log and sas that it was reloading all of my accessories from cache every 4 minutes. Is this normal behavior? Everything is working well but the log is kinda crazy and has so much noise. I have 24 Wyze devices. Just wanted to see if there are any thoughts on this.
Thanks

What is your refresh interval

The default of 60000. Which doesn’t match with the 4 minutes but does the refresh put so much traffic on the log? Does it really need to be every minute? Is that looking for new devices or states as well. Lots of questions. Sorry.

On Jan 30, 2023 at 8:37 AM,  <jfarmer08 @.***)>  wrote:
What is your refresh interval
—
Reply to this email directly,   view it on GitHub (https://github.com/jfarmer08/homebridge-wyze-smart-home/issues/77#issuecomment-1408646144), or   unsubscribe (https://github.com/notifications/unsubscribe-auth/ALLAX27YX63VR7MWZMJXHFDWU67Z3ANCNFSM6AAAAAAUHAWKQA).
You are receiving this because you authored the thread.Message ID:  @.***>

The refresh is looking for new devices along with the state of any known device.

So the plugin is check states every 60 seconds.

Is there any way to disable this option in the logs? Would a PR for such a thing be welcome?

PRs are welcomed, but what would you like to see?


fix(IAM Identity): regen service after API definition updates

PR summary
This PR contains a regen of the IAM Identity service after recent API definition updates.
PR Checklist
Please make sure that your PR fulfills the following requirements:

[x] The commit message follows the Angular Commit Message Guidelines.
[x] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] New tests
[ ] Build/CI related changes
[ ] Documentation content changes
[ ] Other (please describe)

What is the current behavior?

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

cc: @pooraniss-ibm

:tada: This PR is included in version 0.13.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


[Improvement-13803][UI] The select on the page of the workflow relation can filter options by inputing workflow name.

Purpose of the pull request
This PR will close #13803.
Brief change log

Verify this pull request
This change added tests and can be verified as follows:

Manually verified the change by testing locally.

Now it can filter:

It can display the full name of the workflow by the tooltip.

Codecov Report

Merging #13805 (f9d4621) into dev (21ca8dd) will decrease coverage by 0.09%.
 Consider uploading reports for the commit d60321b to get more accurate results

@@             Coverage Diff              @@
##                dev   #13805      +/-   ##
============================================
- Coverage     39.16%   39.08%   -0.09%
+ Complexity     4446     4437       -9
============================================
  Files          1132     1132
  Lines         42176    42125      -51
  Branches       4760     4721      -39
============================================
- Hits          16519    16463      -56
- Misses        23837    23860      +23
+ Partials       1820     1802      -18

Impacted Files
Coverage Δ

...r/api/service/impl/ProcessInstanceServiceImpl.java
59.92% <0.00%> (ø)

...server/master/runner/MasterSchedulerBootstrap.java
0.00% <ø> (ø)

...erver/master/runner/StreamTaskExecuteRunnable.java
0.00% <0.00%> (ø)

...r/server/master/runner/task/BaseTaskProcessor.java
16.60% <0.00%> (-0.07%)
:arrow_down:

...remote/command/task/WorkflowHostChangeRequest.java
0.00% <0.00%> (ø)

...emote/command/task/WorkflowHostChangeResponse.java
0.00% <0.00%> (ø)

...nscheduler/service/process/ProcessServiceImpl.java
30.46% <0.00%> (+0.07%)
:arrow_up:

...worker/message/TaskExecuteResultMessageSender.java
0.00% <0.00%> (ø)

...orker/message/TaskExecuteRunningMessageSender.java
0.00% <0.00%> (ø)

...server/worker/message/TaskRejectMessageSender.java
0.00% <0.00%> (ø)

... and 20 more

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


Only "flyway_schema_history" table and I don't find my tables in the DB - Flyway | pgadmin | Quarkus

Hi everybody, Hi @axelfontaine ,
I'm using Flyway and pgadmin for the 1st time. I don't get my tables inside the created DB (PostgreSQL docker container pgadmin4) with Quarkus.
The only table that I had is the "flyway_schema_history" !!!
how can I fix those errors and get my asked tables ? thanks
Which version and edition of Flyway are you using?
    implementation group: 'io.quarkus', name: 'quarkus-flyway', version: '2.8.0.Final'
    implementation group: 'io.quarkus', name: 'quarkus-jdbc-postgresql', version: '2.8.0.Final'
    implementation group: 'org.postgresql', name: 'postgresql', version: '42.3.3'
    implementation("io.quarkus:quarkus-flyway")
    implementation("org.flywaydb:flyway-sqlserver")
    implementation("io.quarkus:quarkus-jdbc-postgresql")

If this is not the latest version, can you reproduce the issue with the latest one as well? (Many bugs are fixed in newer releases and upgrading will often resolve the issue)
-> I'm using Gradle
-> I'm using PostgreSQL -> docker container pgadmin4
-> I'm using Windows 10
What did you do? (Please include the content causing the issue, any relevant configuration settings, the SQL statement(s) that failed (if any), and the command you ran)
in the "V1__CREATE_DATABASE.sql" file
   CREATE TABLE DomesticDeviceInfoOutMiTO
   (
       miDeviceId INT NOT NULL PRIMARY KEY,
       deviceName VARCHAR(30) NOT NULL,
       deviceState INT,
       deviceSType INT,
       deviceTemperature INT,
   );

   CREATE TABLE issue
   (
       requestId   INT NOT NULL PRIMARY KEY,
       subject     VARCHAR(30) NOT NULL,
       description VARCHAR(200),
       timestamp   TIMESTAMP,
       status      VARCHAR DEFAULT 'OPEN',
       lastUpdate  TIMESTAMP,
   );

in the "docker-compose.yml" file:
   quarkus.datasource.db-kind= postgresql
   quarkus.datasource.username= username
   quarkus.datasource.password= password
   quarkus.datasource.jdbc.url=jdbc:postgresql://localhost:5432/db-mcs-thirdparty
   quarkus.flyway.migrate-at-start=true
   quarkus.flyway.baseline-on-migrate=true
   quarkus.flyway.out-of-order=true
   quarkus.flyway.baseline-version=1

What did you expect to see?
-> I expect to see the tables writen in my script file: two tables & a running application in DevMode without errors
-> I see instead:
--------> a "flyway_schema_history" table created in the DB

--------> errors in my git-bash

Looks like a  SQL problem.
It seems to work if you remove the trailing commas.


bug fix

Updated to follow the spec (http://www.w3.org/TR/XMLHttpRequest/)

Yeah, I concerned about that!.... Because the original cocos's XMLHttpRequest notifies network error events. But According to the spec(http://www.w3.org/TR/XMLHttpRequest/), The readyStatus value is one of following values UNSENT(0), OPENED(1), HEADERS_RECEIVED(2), LOADING(3), DONE(4). And there is no error or timeout state. And the event that changes to UNSENT should not be notified. That means no notification.

It should be an "onerror" callback, and I didn't added it. Sorry about that! I didn't notice about this issue. I will add it soon!

Thanks. I need this feature in my project, when will you send another PR for this feature?

My plan is finish it until tomorrow.

Great. I will be waiting for this fix. :)

https://github.com/cocos2d/cocos2d-js/pull/1483


[Site Request] musescore.com

Checklist

[X] I'm reporting a new site support request
[X] I've verified that I'm running yt-dlp version 2021.09.02
[X] I've checked that all provided URLs are alive and playable in a browser
[X] I've checked that none of provided URLs violate any copyrights
[X] The provided URLs do not contain any DRM to the best of my knowledge
[X] I've searched the bugtracker for similar site support requests including closed ones

Example URLs

Single audio: https://musescore.com/classicman/fur-elise
Single audio: https://musescore.com/user/8927976/scores/1993341

Description
The mp3 files seem to be stored in https://s3.ultimate-guitar.com, however I'm not sure how to parse them from the original URL.

mp3 can be obtained by making a req to https://musescore.com/api/jmuse?id=<id>&index=0&type=mp3&v2=1
Id is either in the webpage or in the url, it seems to be always numeric.
Should yt-dlp support the score images aswell?

General
Complete name                            : C:\Users\Ashish\Downloads\Fr_Elise.mp3
Format                                   : MPEG Audio
File size                                : 2.42 MiB
Duration                                 : 2 min 38 s
Overall bit rate mode                    : Constant
Overall bit rate                         : 128 kb/s
Writing library                          : LAME3.10

Audio
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 3
Format settings                          : Joint stereo / MS Stereo
Duration                                 : 2 min 38 s
Bit rate mode                            : Constant
Bit rate                                 : 128 kb/s
Channel(s)                               : 2 channels
Sampling rate                            : 44.1 kHz
Frame rate                               : 38.281 FPS (1152 SPF)
Compression mode                         : Lossy
Stream size                              : 2.42 MiB (100%)
Writing library                          : LAME3.10

https://musescore.com/static/musescore/scoredata/g/7c367716ea7e9fad53ef1de034c13e5c21111b86/space.jsonp?revision=1611563453&no-cache=1630997137
This is supposed to give the coordinates according to time for score highlighting
I guess this can be considered as description

@Ashish0804 No, Musescore has its own description field, and _search_json_ld should extract it.
example: https://musescore.com/user/14734071/scores/4212281
and the expected description is Same as https://www.youtube.com/watch?v=1XiCTzB-51U

@nao20010128nao how should be handle score highlight coordinates then? Any ideas?
I guess we can append to description? 🤔

@Ashish0804 I don't think anyone want it for yt-dlp, since yt-dlp is not Musescore client

yeah that makes sense aswell


Add cavefish atlas :fish:

Description
What is this PR

[ ] Bug fix
[x] Addition of a new feature
[ ] Other

Why is this PR needed?
We'd like to support @RobKozol 's cavefish atlas.
What does this PR do?
Adds a packaging script for the cavefish atlas.
Some notes:

I've downsampled everything to 2x2x2 micron, so we don't have to download GBs of data through the atlas API - is that reasonable? (the alternative is to keep the atlas anisotropic, and upsample the isotropic annotations instead, I guess?)
I noticed the original reference images have slightly different dimensions:

(211, 1024, 1948) SPF2_cartpt_ref
(211, 1024, 1946) SPF2_terk_ref

For now, I've ever so slightly fudged the downsampling factors to make them both match the (isotropic) annotation image dimensions exactly.
This is what it looks like currently in grid view (row-wise from top left: root mesh, Pons mesh, Prepontine mesh; annotations, main (terk) reference, additional (cartpt) reference)

It passes our general internal validation for atlases.
References
Closes #259
How has this PR been tested?
Visual inspection and running atlas validation locally.
Is this a breaking change?
No
Does this PR require an update to the documentation?
We should add the cavefish atlas to the list of available atlases on the website (https://github.com/brainglobe/brainglobe.github.io/issues/192)
Checklist:

[x] The code has been tested locally
[n/a] Tests have been added to cover all new functionality (unit & integration)
[n/a] The documentation has been updated to reflect any changes
[x] The code has been formatted with pre-commit

@alessandrofelder can this be merged now? I noticed the readme needs to be updated too.


Instagram agent / OAuth 2.0 questions

IFTTT is removing support for pulling favorites from Instagram, I believe due to new rate limits on API calls. This breaks the workflow I use the most. I like to capture images I favorite on Instagram into Google Drive as an image reference library for art projects.

Is anyone currently working on an Instagram agent that would support pulling photos favorited by an authenticated user (not the user's photos other people have favorited)?

If not...

Instagram uses OAuth 2.0. Is this version of Oauth currently supported by Huginn?

Does it seem likely that the Twitter favorites agent would be a good model for implementing an Instagram favorites agent? Instagram API Documentation

Thanks!!

Hey @bleakstew. I don't know of an Instagram agent right now, but I suspect it wouldn't be hard for someone to build.  Yes, Huginn has good OAuth 2.0 support through omniauth.

Thanks. Well I'm going to leave this open a few more days in case someone
else wants to chime in. I have a bit of a learning curve ahead of me to
code my own agent. My background is Perl rather than Ruby. And I am still
learning how to use git. However, it seems like an excellent chance for me
to build some new skills!

Let us know if you start building it and have questions :smile:

Going to take a stab at this.


Is Intel Graphic need to install libvdpau-va-gl to enable 3d support?

As the title. Because the NPAPI Flash Plugin only use vdpau to support the 3D and hw encode

Short answer is "no".
PepperFlash as opposed to NPAPI Flash is designed to run in a sandbox, where all communication with outer world is performed through PPAPI. That means PepperFlash won't even try to directly open files in a filesystem, or access hardware acceleration APIs like VDPAU. Chrome sandbox simply won't allow that. This is why PPAPI is so huge — it comprises almost everything plugin would need.
There are interfaces for 2d and 3d (OpenGL|ES2) graphics, which are implemented. And there are interfaces for hardware video decoding, which are currently not.
So since VDPAU is not involved, you don't need libvdpau-va-gl.
Before I started, I can't say for sure which hw decode interface I'll choose. If for some reason it will be VDPAU, then libvdpau-va-gl would help.


Updates dependencies for security vulnerabilities

This PR updates the package-lock to fix some security vulnerabilities.
Before:

After:

Let's be honest, nobody's going to PR the package-lock file on this one. I'm going to merge away.


Document the metrics provided by chains controller

Feature request
At present, the Chains controller metrics aren't documented.  Document them so that end users can leverage them.

/assign @sudhishmk

/assign @sudhishmk


math/big error on arm

When attempting to build on arm, I get this:
src/github.com/mattn/anko/builtins/math/big/big.go:19: constant<PHONE_NUMBER> overflows int
and the build fails.

Could you please show me your code reproduce?

No code, just running go get github.com/mattn/anko

Hmm, it seems a bug of go. could you please file issue on https://github.com/golang/go/issues/new ?

But I can do workaround that removing the part of line until go fix the issue. Could you please try to figure out what line should be removed.

Line 19 of big.go

Yes, it's only 1 line?

Yep

removed math.MaxPrec temporary (until fixing this go/arm issue), and I keep to open this issue until it.

@njaremko Could you please file your issue? https://github.com/golang/go/issues/new

This may not have been an issue with Go, nor with arm. Maybe this was just issue with a 32 bit system.
From Big:
MaxPrec = math.MaxUint32 // largest (theoretically) supported precision; likely memory-limited
So a unit32 const was being put into a int which was an int32, which means the value was too big.
Maybe now everything will be fine now that we are using the new packages? I do not have a 32 bit system to test. Anyone have a 32 bit system to test?

@mattn any thoughts?


Declination should have 9 divisions, not 10

Summary:
Between the celestial equator and the pole, there are 90 degrees, therefore the should be 9 divisions, not 10.
Steps to reproduce:
Open the app, find the pole and the equator, enable the grid, count the divisions.
Expected behavior:
9 divisions, i.e.

a dot for the North pole,
8 rings around it in the North
the equator,
another 8 rings in the south,
a dot for the south pole

Observed behavior:
One ring too many in both North and South
Device and Android version:
Irrelevant
Screenshots:
None.

Fixed in https://github.com/sky-map-team/stardroid/pull/343

Thanks for the bug report!


doc: fix doxy syntax for hiding internal symbols

EXCLUDE_SYMBOLS uses spaces as seperator and not commas.
Signed-off-by: David B. Kinder<EMAIL_ADDRESS>

Codecov Report

Merging #6576 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #6576   +/-   ##
=======================================
  Coverage   53.45%   53.45%
=======================================
  Files         437      437
  Lines       41391    41391
  Branches     7934     7934
=======================================
  Hits        22127    22127
  Misses      16044    16044
  Partials     3220     3220

Continue to review full report at Codecov.

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

recheck


List fixes WIP

Switching to v5
Using StaticData.Get in place of Definition.Get
Fixes to CacheOrRetrieveList
Cache fixing


README.md File is Looking very bad , i want to made it easy to understand.

Description
Want to add more features by which the readme file become easily undestable and requires all features of the project.
Screenshots

Checklist

[X] I have checked the existing issues.
[X] I follow Contributing Guidelines of this project.
[X] I am a GSSOC'24 contributor.
[ ] I am a IWOC'24 contributor.
[ ] I am a JWOC'24 contributor.
[ ] I am a SWOC'24 contributor.

Code of Conduct

[X] I agree to follow this project's "Code of Conduct".

No need of this @piyushsahujtp


Misc fixed to Streamlit demo

Hello!
I built a Space demo hosting your Streamlit example (link at https://huggingface.co/spaces/osanseviero/doctr). It works great and is much faster than I expected.
I did face some issues during the development. I hope this PR fixes them:

You suggest to install doctr in the requirements but I think that's actually an unrelated package, it should be python-doctr.
But then out.pages[0].synthesize() threw an error saying Page class has no synthesize method. This was introduced in #472 so I don't think it's in the recent release.

Given 1 and 2, and that #472 will probably be soon in a release, maybe we could change requirements.txt to install python-doctr[tf] instead of installing directly from GitHub. WDYT?

Thanks for your input! I changed the requirements as you suggested and removed the TF requirements since they are part of the extras.
I'm glad you liked the demo!

@osanseviero by any chance, is there a markdown badge or something similar for huggingface spaces demo?
That could be a cool thing to include in the README in another PR :grin:

For reference: cf #426


fix typo error

Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Make sure there is a JIRA issue filed for the change (usually before you start working on it).  Trivial changes like typos do not require a JIRA issue.  Your pull request should address just this issue, without pulling in other changes.
[ ] Each commit in the pull request should have a meaningful subject line and body.
[ ] Format the pull request title like [JAV-XXX] Fixes bug in ApproximateQuantiles, where you replace JAV-XXX with the appropriate JIRA issue.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Run mvn clean install to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

fix #359

Coverage increased (+0.01%) to 86.951% when pulling 0ef53004343b82560d325d76d0ce734248cb9da7 on Huan2012:liuruihuan into b162b317e0024f27053010a8aa018f265ccc2515 on ServiceComb:master.


HK13 - Restrict nether portals in safe zone only

Address #13
Test cases:

Check that players CAN'T create portals in safe zone overworld
AND in the same area with scale factor /8 in the Nether world
Only humans can light portals (no dispensers or fireballs)

Testing has showcased that I broke commands blocking for some reason)


[Feat]: Use Typer instead of Argparse

Using typer over argparse comes with several benefits, especially in terms of ease of use, readability, and functionality. Here’s a detailed comparison to highlight the advantages:
1. Type Hints and Automatic Type Checking
Typer:

Uses Python's type hints for arguments, which allows for automatic type checking and conversion.
Provides more readable and self-documenting code.

Example:
import typer

def main(name: str, age: int):
    typer.echo(f"Name: {name}, Age: {age}")

if __name__ == "__main__":
    typer.run(main)

Argparse:

Requires explicit type conversion and handling.
Code can become more verbose and less readable.

Example:
import argparse

parser = argparse.ArgumentParser()
parser.add_argument("name", type=str)
parser.add_argument("age", type=int)
args = parser.parse_args()

print(f"Name: {args.name}, Age: {args.age}")

2. Automatic Help Messages
Typer:

Automatically generates help messages using type hints and function signatures.
Provides detailed usage information without extra code.

Example:
python script.py --help

Output:
Usage: script.py [OPTIONS] NAME AGE

Arguments:
  NAME  [required]
  AGE   [required]

Options:
  --help  Show this message and exit.

Argparse:

Requires manual addition of help messages.
Can become cumbersome for complex applications.

Example:
python script.py --help

Output:
usage: script.py [-h] name age

positional arguments:
  name
  age

optional arguments:
  -h, --help  show this help message and exit

3. Readability and Conciseness
Typer:

More concise and readable, leveraging function signatures.
Reduces boilerplate code and enhances maintainability.

Example:
import typer

def main(name: str, age: int):
    typer.echo(f"Name: {name}, Age: {age}")

if __name__ == "__main__":
    typer.run(main)

Argparse:

Can be more verbose, especially for complex argument parsing.
Requires separate definitions for argument parsing and handling.

Example:
import argparse

parser = argparse.ArgumentParser()
parser.add_argument("name", type=str)
parser.add_argument("age", type=int)
args = parser.parse_args()

print(f"Name: {args.name}, Age: {args.age}")

4. Multiple Commands
Typer:

Easily handles multiple commands using Typer class.
Provides a clean and structured way to manage commands.

Example:
import typer

app = typer.Typer()

@app.command()
def hello(name: str):
    typer.echo(f"Hello {name}")

@app.command()
def goodbye(name: str):
    typer.echo(f"Goodbye {name}")

if __name__ == "__main__":
    app()

Argparse:

Requires subparsers, which can be more complex to set up.
Increases code complexity for managing multiple commands.

Example:
import argparse

parser = argparse.ArgumentParser()
subparsers = parser.add_subparsers(dest='command')

hello_parser = subparsers.add_parser('hello')
hello_parser.add_argument('name', type=str)

goodbye_parser = subparsers.add_parser('goodbye')
goodbye_parser.add_argument('name', type=str)

args = parser.parse_args()

if args.command == 'hello':
    print(f"Hello {args.name}")
elif args.command == 'goodbye':
    print(f"Goodbye {args.name}")

5. Integration with Modern Python Features
Typer:

Seamlessly integrates with async functions, dependency injection, and other modern Python features.
Encourages the use of Pythonic idioms and practices.

Argparse:

Lacks native support for async functions and other advanced features.
May require additional libraries or workarounds for modern Python features.

Conclusion
Typer provides a more modern, concise, and readable way to create CLI applications. It leverages Python's type hints for automatic type checking, generates detailed help messages, and supports multiple commands and modern Python features effortlessly. On the other hand, argparse is more verbose and requires manual handling of many features that typer provides out of the box.
For these reasons, using typer can significantly enhance your productivity and code maintainability when building command-line interfaces in Python.

Since its a single command application i think we don't need a whole library like typer


Can't move .html file without breaking

When converting to html, the presentation only works when I open from where the .html file was created. If I try to move the file or save the contents to another .html file, it opens a blank webpage.

I figured it out. I was trying to transport the .html to a USB so I can present it, I'm a High School Math teacher. I had to copy the assets over to the USB as well, then everything worked.
Thanks for a great program!

Hi @Glovba, I am happy you found a solution!
Indeed, one needs to move the assets too. Maybe that should be documented somewhere…
If you encounter any other issue regarding portability, please reach out to me :)


Fix setup.py install

From #344, there seem to be issues running sudo python3 setup.py install. The error is
error: can't copy 'statick_tool/rsc/plugin_mapping': doesn't exist or not a regular file

This is probably because plugin_mapping is a directory and not a file. We should fix setup.py so that the install command works.

I was unable to re-create this issue. However, I did not have a machine available for testing as a regular user. The way I tested was to use Docker, which I have installed on an Ubuntu 20.04 host and configured such that my regular user can run.
On host:

docker pull ubuntu
docker run -it ubuntu bash

On Docker (as root):

apt update
apt install git python3 python3-pip
git clone https://github.com/tdenewiler/statick
cd statick
pip3 install -r requirements.txt
python3 setup.py install
statick --help

I see the Statick help output. I see the binary at /usr/local/bin/statick. I see the package files at /usr/local/lib/python3.8/dist-packages/statick_tool/.

If anyone wants to take a crack at this in the future, please feel free.

I am able to recreate the issue if I use the ubuntu:xenial docker and follow your steps. Xenial uses python 3.5 instead of 3.8 so maybe it's something to do with that.

I tried this again today, based on another report of local installs not working. I ran into errors as well. I'll try to provide a fix for local installs.

The steps that are working for some of us are similar to the original steps with a small change to the command to install Statick. Instead of installing from local sources, we can install using pip and a git repository. You can specify a non-default branch as well.
On host:

docker pull ubuntu
docker run -it ubuntu bash

On Docker (as root):

apt update
apt install -y git python3 python3-pip
python3 -m pip install git+https://github.com/sscpac/statick.git
statick --help

The final command should show all of the available arguments to Statick. Additionally, you should find which statick shows that Statick is installed to /usr/local/bin/statick.
To use a custom branch you could do something like python3 -m pip install git+https://github.com/user/statick.git@custom-branch. The custom-branch could be a branch name or a commit hash.
https://pip.pypa.io/en/stable/reference/pip_install/#git
https://stackoverflow.com/questions/20101834/pip-install-from-git-repo-branch

Alternate installation instructions have been added to README.


Warn: maintainer-script-calls-systemctl

Fix lintian warning:
https://lintian.debian.org/tags/maintainer-script-calls-systemctl.html
Replace systemctl with deb-systemd-invoke

How this could be fixed manually?

It needs to be changed in the plugin. This plugin will auto-generate some maintainer-script parts, which will generate the warning above.

Okay I searched over all the code and there are no references of systemctl, like you said it will be generated, but didn't study all of this project so I had asked.
Thank you

Ah. You're right. Can't find it either.


[BUG]

When I request a token from faucet, I get an error " You have already requested within the specified time. Please wait 1 hour and 9 minutes before making another request"

Hello,
Thank you for submitting your issue. Could you please provide more information about the transaction? This will enable us to assist you more effectively.

Have you received the token in your wallet?
Which chain and token did you use to request from the faucet?


Wrongly configured inheritance does not generate warning but generates wrong SQL

I have a few entities that use inheritance (TPH) and I noticed that, if you make a small mistake when configuring navigation properties, EF Core will generate wrong SQL, instead of throwing an error or warning at runtime.
class MyContext : DbContext
{
	public DbSet<MedicalRecord> MedicalRecords { get; set; }

	protected override void OnModelCreating(ModelBuilder modelBuilder)
	{
		modelBuilder.Entity<Animal>()
			.HasDiscriminator(e => e.Type)
			.HasValue<Cat>(10)
			.HasValue<Lion>(20);

		modelBuilder.Entity<MedicalRecord>()
			.HasOne(mr => mr.Cat).WithMany(e => e.MedicalRecords)
			.HasForeignKey(mr => mr.CatId);
	}
}

public abstract class Animal
{
	public int Id { get; set; }
	public int Type { get; set; }
}

public class Cat : Animal
{
	public ICollection<MedicalRecord> MedicalRecords { get; set; }
}

public class Lion : Animal {}

public class MedicalRecord
{
	public int Id { get; set; }

	// Medical records are related to cats (not lions).
	public int CatId { get; set; }
	public Cat Cat { get; set; }
}

Working case
The code above works correctly, and if I try to get all the medical records, including for each one the "Cat", it generates the correct SQL:
_context.MedicalRecords.Include(mr => mr.Cat).ToList();

SELECT mr."Id", mr."CatId", "mr.Cat"."Id", "mr.Cat"."Type"
FROM "MedicalRecords" AS mr
INNER JOIN "Animal" AS "mr.Cat" ON mr."CatId" = "mr.Cat"."Id"
WHERE "mr.Cat"."Type" = 10

Wrong case
The problem happens if the inverse navigation property MedicalRecords is moved from the Cat class to the Animal base class. This is clearly wrong, but EF Core does not generate any warning or error and instead it generates wrong SQL:
SELECT mr."Id", mr."CatId", mr."LionId", "mr.Cat"."Id", "mr.Cat"."Type"
FROM "MedicalRecords" AS mr
INNER JOIN "Animal" AS "mr.Cat" ON mr."CatId" = "mr.Cat"."Id"
WHERE "mr.Cat"."Type" = 10

The column LionId does not exist.
Expected behaviour
I would expect EF Core to generate a runtime exception and not generate wrong SQL.
While in this example it might be easy to spot the cause of the problem, in real cases it could be way harder, particularly if the inverse navigation property was added at a later time.
Further technical details
EF Core version: 2.2.4
Database Provider: Npgsql.EntityFrameworkCore.PostgreSQL

The generated SQL is "invalid" since column LionId does not exist. But unless running the query EF has no way of knowing that LionId does not exist in database. The configuration does not seem necessarily wrong to generate warning.


Decompiler shows return address and stack arguments

Describe the bug
The decompiler view is showing the return address for function calls being pushed onto the stack. In addition, it also every argument being pushed onto the stack as a local variable before the function call.
I did try selecting a different compiler, such as clang (which was not used to compile), and for some functions, the decompiler view was correct. I compared the pcode, which turns out was still exactly the same in every instance.
To Reproduce
Import an x86:LE:32:default gcc binary and auto analyze.
Some functions starting at main() will exhibit the above behavior.
I cannot upload the binary as it is proprietary, however I have seen it in several different instances with unrelated binaries.
Expected behavior
Decompiler does not show return address or stack arguments.
Correct:
foo(0x1234);

Incorrect:
*(int *)(pppiVar13 + -0x14) = 0x1234;
*(undefined *)(pppiVar13 + -0x14) = 0x8048123;
foo(*(uint *)(pppiVar13 + -0x14));

Screenshots

Attachments
None
Environment (please complete the following information):

OS: Ubuntu 20.04
Java Version: OpenJDK 11.0.16
Ghidra Version: 10.1.5
Ghidra Origin: official Github repo

Additional context
None

Seeing return addresses in the decompiled code is a good indication that the decompiler's stack analysis has gone awry.
Typically, this is caused by:

A callee which the compiler knew never returned (such as exit or abort), but this fact is not known to the decompiler.
The function (and/or one or more of its callees) does not have the correct calling convention and/or prototype assigned to it.
The function has a callee that manipulates the stack in a way inconsistent with its assigned calling convention.  For example, a callee related to exception handling which does something to the stack such that the stack pointer does not point where it "should" after the call returns.

All of the information mentioned above is needed for correct decompilation.  Oftentimes, Ghidra must use heuristics to determine it.  Sometimes the user must supply additional information or correction.
The first step is to check whether there were any errors encountered during analysis which might be relevant.  Are there any error bookmarks?
Then check that the callees have had their correct signatures saved to the Ghidra database (see https://github.com/NationalSecurityAgency/ghidra/issues/4640#issuecomment-1268758144 for details), and look for any callees which are non-returning functions but which haven't been marked as such in Ghidra.  Finally, you could also check for callees which are manipulating the stack in odd ways.  This situation can normally be handled by applying the correct "call fixup" or marking the callee as "In line".  All of these attributes can be assigned by right-clicking on a function's signature in the decompiler window.
My guess is that selecting a different compiler when you imported the program changed the calling conventions that were assigned by default in such a way that the return addresses didn't show up in the decompiled code. If you were lucky, this change also resulted in more correct decompilation, but there's no guarantee.
I don't think there's much more I can offer without more information.  Happy troubleshooting! :smiley:

Thanks for the advice. I looked at everything you said, including bookmarks, calling conventions, and control flow, which all seemed to be correct. However, I did notice one thing: I enabled the stack depth in the listing view, and every function that had decompiler issues ended with a '- ? -'. Some functions executed register arithmetic and loaded that into ESP, which is where the '- ? -' started, but other functions load a register into ESP just before the ret and only had '- ? -' on the last instruction.
For example
000 PUSH EBP
004 MOV EBP, ESP
004 SUB ESP, 0x14
018
...
004 POP EBP
000 LEA ESP, [ECX - 4]
-?- RET

Second example:
000 PUSH EBP
004 MOV EBP, ESP
004 SUB ESP, 0x14
018 SUB ESP, [EBP + param_2]
-?-
...
-?- RET

In the first instance, considering the stack depth is calculated at runtime, is there a way to tell ghidra that? I tried to manually set a stack depth change of n bytes, but it only changed the current instruction to '- ? - - n' and didn't propagate to the following instructions.
For the second instance of the last instruction not knowing the stack depth, perhaps manually setting it as well would fix the rest of the decompilation. Once again, not sure how to do that.

Modifying the stack depth change only changes the listing's view of the stack and not the decompilers' (which I admit is a bit confusing).  The exception is modifying the purge of a callee, which can be done by modifying the stack depth change of a call instruction and selecting "Global" in the subsequent pop-up.
I experimented a bit with some code that manipulates a dynamically-sized array on the stack. The decompiled code did not contain an offending assignment but the stack field in the listing did contain "-?-".  But, it's possible that the cause of the question marks in your case is also what's responsible for the decompiler problems.
Here are some additional things you might try:

Indirect calls in the binary might need to have the correct overriding signatures applied (which you can do by right-clicking on an indirect call in the decompiler window).  For direct calls the recommended course of action is to commit the correct signature on the callee, but for indirect calls an override is the only option.  Same for varargs functions.
Are there any system calls in the binary?  These would probably be done with INT 0x80 or perhaps CALL dword ptr GS:[0x10] instructions.  If so, these should be resolved to the actual call performed so that the decompiler knows the correct signatures and whether or not each system call returns.  In the CALL dword ptr GS:[0x10] case you can run the script ResolveX86OrX64LinuxSystemCallsScript.java.  In the INT 0x80 case you'd have to modify that script slightly.
If many of the functions in question have the same warning comments at the top of the decompiled code that might be something to go on.
You could try importing and analyzing the binary again, but in the Analysis Options window, select the Demangler GNU analyzer and uncheck Apply Function Calling Conventions and Apply Function Signatures.  I noticed some weirdness in this area while troubleshooting.  From your screenshots it looks like this might not be relevant but it's probably worth a try.
You could try running the Decompiler Parameter ID analyzer as well.  I think it is off by default for x86 gcc binaries.
You could try adjusting the types of local variables in the functions of interest.  In particular, I found some examples with problematic local variables that could be fixed by changing the type of a different local variable from a two-element array to a pointer (the second element was never used, not sure why it assigned that type initially).
There's a script called FindPotentialDecompilerProblems.java that will decompile all functions, looks for likely errors, and display them to you in a table. This might be useful.

I recommend starting by examining the smallest functions with these problematic local variables.  I wrote a script to find all such instances and display them in a table, which will help with this. I should probably commit it, but it won't make the 10.2 release.
Hope this was at least partly helpful. I'm not sure there's much more I can do, but while investigating your issues I found a few areas where the code can be improved, so thanks for that!

I'm still seeing this problem on quite a few x86 binaries I'm analyzing. Here is a sample, see 0804996b after auto analysis.
info.gz

I should note that I tried all of the suggestions above as well to no avail.

Based on the earlier discussion, I added a script to help diagnose this issue:  DecompilerStackProblemsFinderScript.java.
If you're building from master you should have it.  It's too new to be in a release, but you can download it and add it to your ghidra_scripts directory or to <ghidra_install_dir>/Ghidra/Features/Decompiler/ghidra_scripts
When you run the script, it will decompile all functions and display a table of these problematic stack writes.  If you right-click on the name of a column in this table, select Add/Remove Columns, and then check the Function Size column, you can sort the problematic writes by the size of the containing function.  Smaller functions are generally easier to diagnose.
One additional thing to look for in these functions is JMP instruction whose targets are functions but which do not have CALL_RETURN flow overrides applied.  If a flow override has been applied you'll see a note under the instruction in the listing.  If one hasn't been applied, you can apply one manually by right-clicking on the instruction and selecting Modify Instruction Flow....  This may help in certain cases.

I built Ghidra from source, imported the sample I provided above, and ran the DecompilerStackProblemsFinderScript.java script which reported "No problematic writes found". In addition, I see no JMP instructions pointing outside the example function at 08049839. I can try to find more example binaries if that would help.

Did you have a selection (green highlight) when you ran the script?  If there's a selection the script will only search in the selected addresses.  Otherwise it will search the entire program.

I tried with and without a selection, no problems found.

I will see if I can create something from source that has the same decompiler problems.

So I finally figured out a/the cause of this issue. When an external caller cleanup function with stack purge is called, the caller is seemingly unaware of any stack purge. Once I set the stack purge globally in the program importing said function, the decompiler cleans itself up.
So for example if my imported function is __thiscall, and finishes with a RET 0x4 instruction, I can (globally) set the stack purge for the imported function to 4.


Inference code for Streaming Aware neural network models doesn't work with TF2.3

Thank you for this work. I believe the inference code has been tested on a nightly build and some files like use internal/private ops that aren't available anymore.
from kws_streaming.models import models
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-5-0cb1216f5109> in <module>()
----> 1 from kws_streaming.models import models

3 frames
/content/google-research/kws_streaming/layers/random_shift.py in <module>()
     17
     18 from kws_streaming.layers.compat import tf
---> 19 from tensorflow.python.keras.utils import control_flow_util  # pylint: disable=g-direct-tensorflow-import
     20 from tensorflow.python.ops import array_ops  # pylint: disable=g-direct-tensorflow-import
     21

ImportError: cannot import name 'control_flow_util'

Thank you for evaluating kws_streaming lib!
Yes, it is tested with tf nightly builds to guarantee compatibility with the latest tf version. Recently there was a refactor in tf.keras, in which 'tf_utils' was replaced by 'control_flow_util'. That is why kws_streaming was evaluated on tf version 2.4.0-dev20200917 as described in experiments. I would suggest to follow instructions in experiments, or install tf_nightly.
If you prefer to use tf 2.3, then I would suggest to replace "from tensorflow.python.keras.utils import control_flow_util" by "from tensorflow.python.keras.utils import tf_utils" it should work with older version of tf.

Yes, it is tested with tf nightly builds to guarantee compatibility with the latest tf version.

Ahh okay. Git it. That makes sense. Thank you. I will check again with 2.4.rcx and will close this issue if everything goes fine.

Hi, I switched to 2.4 and most of the code is working but there are some flags that are missing in the inference notebook. When I am loading the weights in these lines:
# create model with flag's parameters
model_non_stream_batch = models.MODELS[flags.model_name](flags)

# load model's weights
weights_name = 'best_weights'
model_non_stream_batch.load_weights(os.path.join(train_dir, weights_name))

I am getting this error:
AttributeError                            Traceback (most recent call last)
<ipython-input-28-a170e05f648d> in <module>()
      1 # create model with flag's parameters
----> 2 model_non_stream_batch = models.MODELS[flags.model_name](flags)
      3
      4 # load model's weights
      5 weights_name = 'best_weights'

1 frames
/content/google-research/kws_streaming/models/svdf.py in model(flags)
    104     # it is a self contained model, user need to feed raw audio only
    105     net = speech_features.SpeechFeatures(
--> 106         speech_features.SpeechFeatures.get_params(flags))(
    107             net)
    108

/content/google-research/kws_streaming/layers/speech_features.py in get_params(flags)
    274     """
    275
--> 276     if flags.time_shift_ms != 0.0 and flags.sp_time_shift_ms != 0.0:
    277       raise ValueError('both time_shift_ms and sp_time_shift_ms are set '
    278                        'only one parameter should be used: '

AttributeError: 'Namespace' object has no attribute 'sp_time_shift_ms'

Hi, I switched to 2.4 and most of the code is working but there are some flags that are missing in the inference notebook. When I am loading the weights in these lines:
# create model with flag's parameters
model_non_stream_batch = models.MODELS[flags.model_name](flags)

# load model's weights
weights_name = 'best_weights'
model_non_stream_batch.load_weights(os.path.join(train_dir, weights_name))

I am getting this error:
AttributeError                            Traceback (most recent call last)
<ipython-input-28-a170e05f648d> in <module>()
      1 # create model with flag's parameters
----> 2 model_non_stream_batch = models.MODELS[flags.model_name](flags)
      3
      4 # load model's weights
      5 weights_name = 'best_weights'

1 frames
/content/google-research/kws_streaming/models/svdf.py in model(flags)
    104     # it is a self contained model, user need to feed raw audio only
    105     net = speech_features.SpeechFeatures(
--> 106         speech_features.SpeechFeatures.get_params(flags))(
    107             net)
    108

/content/google-research/kws_streaming/layers/speech_features.py in get_params(flags)
    274     """
    275
--> 276     if flags.time_shift_ms != 0.0 and flags.sp_time_shift_ms != 0.0:
    277       raise ValueError('both time_shift_ms and sp_time_shift_ms are set '
    278                        'only one parameter should be used: '

AttributeError: 'Namespace' object has no attribute 'sp_time_shift_ms'

thank you for reporting it! I will update colab example in couple of days

thank you for reporting it! I will update colab example in couple of days

I fixed colab examples, please update it and let me know if you have any issues.

I fixed colab examples, please update it and let me know if you have any issues.

Sure. Thanks. Let me try to run it again

Sure. Thanks. Let me try to run it again

@rybakov I tried it again and now the flag for wav is missing.
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-27-28f17008ce2c> in <module>()
      1 # prepare mapping of index to word
----> 2 audio_processor = data.input_data.AudioProcessor(flags)
      3 index_to_label = {}
      4 # labels used for training
      5 for word in audio_processor.word_to_index.keys():

/content/google-research/kws_streaming/data/input_data.py in __init__(self, flags)
    186   def __init__(self, flags):
    187     wanted_words = flags.wanted_words.split(',')
--> 188     if flags.wav:
    189       file_ext = '*.wav'
    190     else:

AttributeError: 'Namespace' object has no attribute 'wav'

@rybakov I tried it again and now the flag for wav is missing.
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-27-28f17008ce2c> in <module>()
      1 # prepare mapping of index to word
----> 2 audio_processor = data.input_data.AudioProcessor(flags)
      3 index_to_label = {}
      4 # labels used for training
      5 for word in audio_processor.word_to_index.keys():

/content/google-research/kws_streaming/data/input_data.py in __init__(self, flags)
    186   def __init__(self, flags):
    187     wanted_words = flags.wanted_words.split(',')
--> 188     if flags.wav:
    189       file_ext = '*.wav'
    190     else:

AttributeError: 'Namespace' object has no attribute 'wav'

I guess you run only inference colab and test models from older example: these models are not compatible any more and have to be re-trained.
Please update all colabs and run them in order:
00_check_data.ipynb
01_train.ipynb
02_inference.ipynb

I guess you run only inference colab and test models from older example: these models are not compatible any more and have to be re-trained.
Please update all colabs and run them in order:
00_check_data.ipynb
01_train.ipynb
02_inference.ipynb


Add Ladle stories, and performed some refactoring

Issue #, if available:
Description of changes:
Refactor ChatPage, ChatListDrawer and related components.
useChat

Add conversationError

Move the error handling code to ChatPage

Remove dependencies

useNavigate
useTranslation
useSnackbar

ChatMessage

Move the action handling code to ChatPage

Submit feedback

Move the code to get related documents to ChatPage
Remove dependencies

useChat

InputChatContent

Move the appearance control code to ChatPage

hasRegenerate / disabledRegenerate
hasContinue / disabledContinue
isLoading

Remove dependencies

useChat

TextInputChatContent

Move the appearance control code to ChatPage

hasRegenerate / disabledRegenerate
isLoading

Remove dependencies

useChat

ChatListDrawer

Move the action handling code to AppContent

Delete conversation
Update conversation title

Move the appearance control code to AppContent

isAdmin

Remove dependencies

useNavigate
useUser

Menu

Move the action handling code to AppContent

Select language
Clear conversations

Remove dependencies

useNavigate
useConversation

AppContent

Accept the action handling code from Menu and ChatListDrawer

Select language
Clear conversations
Delete conversation
Update conversation title

ChatPage

Accept the code to get related documents from ChatMessage
Accept the appearance control code from InputChatContent and TextInputChatContent
Accept the error handling code from useChat

Add Ladle stories

Agent

InputChatContent
InputChatContentHasRegenerate
ProcessingIndicator
Tools

ChatListDrawer (using msw: mock service wrapper)

Admin
NonAdmin

ChatMessage

Conversation

Helper

Shortcuts

InputChatContent

Ideal
HasRegenerate
HasContinue

InputText

Text
URL
Date
Number

ListItemBot

MyBots
RecentlyUsedSharedBots
ApiManagement
Analytics

ModalDialog

AddApiKey
ClearConversations
DeleteApi
DeleteApiKey
DeleteBot
DeleteConversation
Feedback
InstructionsSamples
SelectLanguage

Performed refactoring

ShareBot

PopoverMenu

ChatHeader

Progress
Select

Ideal
Clearable

Textarea

Ideal
NoBorder

Fixed story name

Skelton -> Skeleton

Indeal -> Ideal

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@wadabee has の can へのリネームを行いました。useMemo に関して質問させて頂いたので、ご確認お願いします 🙇


Save Vector layer on completion of draw

Hi,
I have built on top of this example to add an Editbar to draw shapes into a vector layer. This has been done by adding to the control component example.
I have also added a MapdataService to handle the updating of these geographical features with an aim of sending the updated data as a GeoJSON to another part of the application for storing and later reloading. I think this is nearly there but it is unclear to me how to detect the updated shape can be signaled to the service in order to add to the observable subject which the service handles.
Basically my strategy is to call updateData() in the MapdataService with the appropriate data sending the entire vector layer each time a shape completion or deletion has taken place. What I am unclear upon is how to detect that the vector has been updated and then access its geography.
There is a stackblitz here with my code example:
https://stackblitz.com/edit/ol-ext-angular-extend?file=src%2Fapp%2Fmap%2Fmapdata.service.ts
Thanks,
Paul

You have to listen to events addfeature, removefeature and changefeature on your source to register changes on its features and add it to a queue to save it on your server...
const changes  = {
  add: [],
  del: [],
  upd: []
}

source.on('addfeature', (f) => {
  changes.add.push(f);
});
source.on('removefeature', (f) => {
  changes.del.push(f);
});
source.on('changefeature', (f) => {
  changes.upd.push(f);
});

Then check the changes before sending to your server.
PS:

you also have to check if an object has been added or modify before delete and so.
look at examples using WFS-T with openlayers to see how to achieve this...
you can look at the undo/redo interaction: undoInteraction._undoStack lets you get all features modifications.

Thanks. I will have a good look at that approach and report back. I was hopeful that I could access all the drawn vectors and grab them all at once each time a geometry is drawn (and load them with editable features on start). If I understand you correctly then this is not a valid approach and I need to manage the creation and deletion of each individual shape separately. All the geometries ultimately belong to a single multi-part geometry in my current use case.
If it helps make it clearer I am trying to load a multi-paart geography from a GeoJSON, edit it and then return the edited completeJSON back to the main application. From what I understand to do this I would need to use your logic to build up this Geometry model, write to GeoJSON and then store.
I vas thinking there might be something like vectorSource.onChange((e) => {GeographySubject.next(e.getGeoJson()}) . If I read you right I am probably "barking up the wrong tree", i.e not following a workable strategy.

You can also send the whole data to your server in bulk when clicking on a save button...

Thanks. I have added the Save button to the Stackblitz example in the control section. When clicked the button has access to a mouseEvent object  - The problem I have is that I cannot see the Geometry in that object and I am not sure how to access an object in another way which contains the Geometry.
In simple terms - If the Geometry changes then I want to send the whole Geometry to an Observable for the rest of the app to subscribe to. To do that I need to pick up automatically that the geometry has changed then send all of it. I can see (or at least I can) how the add/del/upd approach can work but it seems like a lot of code to maintain for simply sending a completed Geometry. I think you are suggesting a simpler way - I just don't quite understand.
Thanks

Just get features collected in your source...
vector.getSource().getFeatures()

Hi,
That;s a great help. The "penny has dropped". I will explain in case it helps anyone else.
I tried that initially (vector.getSource().getFeatures()) in the edit.getInteraction('DrawPolygon').on(['drawend'], function(e){........} part of the code. I got confused as I saw an empty array. The piece I did not understand is that the geometry is not added until after onDrawEnd has been completed. The array therefore contains all the geometry up to the last one drawn - This makes perfect sense now.
Putting the getFeatures(0 as part of a function on the Save Button works perfectly. I don't think I tried this as I do not want the user to have to push a button in order to push the saves to the back end.
The remaining part of the jigsaw is whether there is a callback I can hook into which occurs after the vector is updated. It seems like I can use the following for this if it is any use for anyone else. The object mapdataService is a service I use to transmit the data and should be changed as appropriate.
vector.on('change', function(e){
console.log('VECTOR change',e);
console.log('VECTOR change - features',vector.getSource().getFeatures());
const geoJsonValue = new GeoJSON().writeFeatures(vector.getSource().getFeatures());
mapdataService.updateData(geoJsonValue);
});

Many thanks for your help. This can be closed now.
Paul

Hi,
drawend event is trigger before the object is created as it lets the user choose what to do with the drawing (accept or not, fill attributes, etc). You have to delay the action using a setTimeout to get it run.
change event is fired when a change occurs (when the feature is inserted). That's why it runs for you.
Using a modify interaction or deleting an object will also trigger a change and save the data...

Thanks. Much appreciated.


Add eslint-plugin-import as a default plugin

eslint-plugin-import has some useful default rules to prevent things like cyclic dependencies and importing dependencies that aren't in your package.json dependency list.
https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-default-export.md also seems good to avoid having the name of the import drift from the name of the module after refactoring

Related: https://basarat.gitbook.io/typescript/main-1/defaultisbad

Closing this one, it's done over at https://github.com/agiledigital-labs/eslint-config-agile-digital


Simplify security configuration

Lots of this security configuration was actually unnecessary. We can permit access to everything because all sensitive data is secured behind endpoints that enforce security themselves with pre and post-authorize annotations.
Signed-off-by: Lee Dobryden<EMAIL_ADDRESS>

LGTM - Lee & Lee


Accordion component

The CDS needs a version of the USWDS accordion component that has been updated to use CDS colors and fonts. Be sure to consider the accessibility guidelines listed in the USWDS component documentation.

[ ] investigate accordion iconography

@mario-duran  I need to see what is the option available in bootstrap and then I can add it in Figma

[ ] add component to kitchen sink page
[ ] update in figma


Don't get typings for projects with disabled language services

Port https://github.com/Microsoft/TypeScript/pull/18315 to release-2.5.

@amcasey,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


build.gradle.kts "No set method providing array access"

I recently downloaded the template, and I got an error in the build.gradle.

I can still run the Minecraft Client fine, but this is bugging me. Any ideas?

Are you sure you downloaded the entire template? Please use the template as intended, by generating a repository and cloning it (or by using a zip file and then manually running ./make-my-own.sh). In either case, your IDE is probably wrong about this being an issue. If it is a real issue, please provide a log that is generated when doing a proper import, or one that is generated by ./gradlew build.

Closing because of lack of response. Please reopen with the requested information if you still need help.


Toggle documentation from within function parentheses

Can't toggle the documentation for print() it if my cursor is within the parentheses.

So I was thinking about this the other day, and imho this isn't really worth it since the logic for determining which docs to get would get pretty complicated and you could just move the cursor to the side.
If someone wants to implement this feature, feel free to do so, but I don't think I will ;)


Creating new pgp key timed out

Cannot create new pgp key. It's always timed out.
my log id: decf647a8766864e85297d1c

Does it work to do keybase pgp gen from the command line?

It was timing out using command line. The app will just stuck there pretending it's still working on it.
Then I tried with command line again and entered my passphrase and it just worked somehow.

@michaelize can you check if the pop-up for the Keybase app somehow goes into the background?
It opened up for me, but did not go into the foreground.
Switching to the app manually fixed it for me. (This is on OSX.)

I'm not sure if I can reproduce the bug since I got it working already.

A few things  of  note for anyone else running  into this issue.

I  didn't realize that the  CLI tool requires the  GUI to be running.
I  was running on  OS X and didn't see any  prompts pop  up.  I'm not sure  if running  the cli command inside of a scree/tmux session may  have an impact?

If you  get this I  would check the keybase GUI app see if there is a pop up.  If not restart keybase and  try again.  That fixed the  issue for me.

I didn't notice the pop-up window was on my 2nd monitor


Creating API contract with Design-first or Code-first Approach

Is your feature request related to a problem? Please describe.
As now days development teams widely use API description formats like Swagger (OpenAPI) to describe an API contracts, which brings a question whether a dev team should design an API contract first or write code first and generate api contract out of it.
Describe the solution you'd like
Add a section in playbook to describe both API development approaches.
Describe alternatives you've considered
Add links of some existing reliable source blog posts within a section in playbook.

@cpeeyush, thanks for your patience while we discussed guidance on where this contribution should go. We now have a new structure brought in as part of PR #678 where we will have a design folder (design fundamental) and within this we will have "design reviews" and "design patterns".
You will also see that there will be some updates to #642 which will be adding the REST API Guidance to the design patterns section in the next few days. Your contributions on laying out aspects to consider and a pros/cons comparison of both Design-first and Code-first Approaches would be very welcome and would fit nicely as a section within the REST API Guidance that @bderusha is working on.
Happy to sync to provide more guidance and will reach out by chat as well!


statistics - missing spanish translation

this is in intro statistics Spanish (statistics recipe)
osbooks-introduccion-estadistica-bundle/introducción-estadística - for you Alan

[x] Displays OK with current code & content


Bug: On Linux, The prompts in Connect-Keeper echo the input if the input is longer than the terminal's width

When using Connect-Keeper in PowerShell on Linux: if your input is longer than the length of the terminal, the line is echoed back per character you enter (see image).
The main problem is when it asks for the SSO Token, which is 576 (?) characters. Pasting it in will cause a lot of echoing, which locks the terminal for a 5-10 seconds while it processes the output.

https://github.com/Keeper-Security/keeper-sdk-dotnet/assets/168429125/58f8d727-35b8-433f-91d4-1870b56bf420
Specs
OS: RHEL 7 and Fedora 40
Terminal: Gnome terminal, Kitty, Putty and the terminal in Visual Studio Code
Powershell version: 7.3.12 and 7.4.3
PowerCommander: 0.9.10 and 0.9.11
This is not a problem on Windows, as far as I can tell.

This issue was reported long time.
https://github.com/PowerShell/PowerShell/issues/11636
The PowerCommander will use PSReadLine module if it is installed.

PSReadLine is installed by default in the PowerShell Core version of Powershell.
I'm not sure what you mean that PowerCommander uses PSReadLine to read the input, as PSReadLine doesn't have any functions that mimic "Read-Host". PSReadLine is designed to provide shell-like editing on the CLI, and MS hasn't implemented a way to use it to read input.
Well, it does have one, but it adds everything it reads into the shell history, which doesn't seem very secure.


Autocomplete event names on JS side

JS relies heavily on strings which can lead to typo issues.
The idea would be to look for events that Rust emits in the code so we have a list of available events on JS side.
Maybe even show some error waves under invalid names like following
Rust

JS

Thanks to MGlolenstine for the idea. :+1:

if you are using typescript heres something i made for glowsquid-launcher/glowsquid
import { invoke as tauriInvoke } from "@tauri-apps/api";
import type { Object } from "ts-toolbelt";

type FunctionType = (arg: Record<string, unknown>) => unknown;

interface InvokeMap extends Record<string, FunctionType> {
  "do_something"(args: {argument: string}): string;
}

export default function invoke<
  T extends InvokeMap,
  C extends Object.SelectKeys<
    T,
    FunctionType
  >,
>(c: C, args: Parameters<T[C]>[0] ): Promise<ReturnType<T[C]>> {
  return tauriInvoke(c, args);
}

you get errors during compile time and autocomplete inside vscode


dataset about RGB frames

Hello! when i open your link in "Pre-processed Data".  I didn't  find the RGB frames files. How can I download the RGB files?

As the same discussion was done in #3, so I will close this issue.


Fixed Instagram authentication error

Facebook's account on Instagram has changed username, this fixes the problem

Thanks


EKF: Allow reset of yaw to EKF-GSF later in flight

Problem
Currently the main EKF will only make use of the yaw estimator if a gps fusion timeout happens within 30 seconds after takeoff. Given that the estimator works quite well we should enable it always as it could save the vehicle in the case of a mag failure (broken cable, mag coming loose, ...)
Solution
This change enables a yaw reset later in flight but  with some limitations:

The criteria is modified, requiring a complete loss of position and velocity observation for the current nav reset interval
The total number of resets is limited to 3.
Resets can't be less than 5 seconds apart
Resets won't be performed if GPS signal has been lost in the immediate past
Resets won't be performed if the loss of navigation preceded commencement of flight (we may need to modify that criteria to handle a race condition)

Testing
A fixed wing simulation using gazebo was performed with a distant waypoint. ekf2_main.cpp was modified to rotate the compass 90 deg after takeoff to make the compass yaw. innovation checks fail. The Z gyro bias offset parameter was then set to 0.01 to cause a buildup in yaw error. When error reached approx 60 degrees an RTL was commanded. When the turn back commenced, global position loss casued temporary activation fo the failsafe, followed by a yaw reset and recovery:
INFO  [navigator] RTL LAND activated
INFO  [navigator] RTL: landing at mission landing.
INFO  [navigator] RTL: using mission landing
WARN  [commander] Failsafe enabled: no global position
INFO  [commander] Failsafe mode activated
WARN  [navigator] Global position failure: fixed bank loiter
INFO  [commander] Failsafe mode deactivated
INFO  [navigator] RTL LAND activated
INFO  [ecl/EKF] 436040000: reset velocity to GPS
INFO  [ecl/EKF] 436040000: reset position to GPS
INFO  [ecl/EKF] 436040000: Emergency yaw reset - mag use stopped
WARN  [commander] Stopping compass use! Check calibration on landing
Test log : https://logs.px4.io/plot_app?log=ad7170b5-69e9-430a-9c58-cf00eaebd863

A second SITL test was performed using the gazebo multirotor simulation. EKF2_DECL_TYPE = 0 and EKF2_MAG_DECL = 90 was used to produce a flyaway condition immediately after takeoff in position mode. The reset was rapid as before:
INFO  [ecl/EKF] 580000: GPS checks passed
INFO  [ecl/EKF] 1780000: EKF aligned, (baro hgt, IMU buf: 18, OBS buf: 14)
INFO  [ecl/EKF] 1780000: reset position to last known position
INFO  [ecl/EKF] 1780000: reset velocity to zero
INFO  [ecl/EKF] 5168000: reset position to GPS
INFO  [ecl/EKF] 5168000: reset velocity to GPS
INFO  [ecl/EKF] 5168000: starting GPS fusion
INFO  [commander] ARMED by Arm/Disarm component command
INFO  [commander] Takeoff detected
INFO  [ecl/EKF] 27200000: reset velocity to GPS
INFO  [ecl/EKF] 27200000: reset position to GPS
INFO  [ecl/EKF] 27200000: Emergency yaw reset - mag use stopped
WARN  [commander] Stopping compass use! Check calibration on landing
Log here: https://logs.px4.io/plot_app?log=14a0b150-18a6-4c39-b14d-93dd88c0d59d


Error while creating headless server

It seems not possible to create a new map with the standard and required mods
0.000 Error Util.cpp:83: "coal" is not a valid autoplace control name.
While searching I came across this issue:
https://github.com/factoriotools/factorio-docker/issues/114

I am not sure what for changes I have to make.
Did I have to set everything to 0 or delete the whole line?

Like this:
"autoplace_controls":
    {
      "enemy-base": {"frequency": "normal", "size": "normal", "richness": "normal"}
    },

I've added the info the the Sea Block FAQ page. https://mods.factorio.com/mod/SeaBlock/faq


Quaternion (quat_t) operations

Description
Tracks the implementation of various operations used with the quat_t type
Rationale
This keeps track of the implementation of the operations listed below, which involve quaternions and other data types (e.g. vectors, matrices, etc.).
List of Operations

[x] Normalization
[x] Conjugate
[x] Inverse
[x] quaternion addition
[x] quaternion substraction
[x] quaternion multiplication
[x] quaternion-vector operations
[x] quaternion-matrix operations

Finished implementation some time ago. There's a missing feature related to interpolation using slerp. Will add it in the following version update.


website down?

i can't get to the website.  www.open3mod.com.  anyone else?

I can navigate to the website. Next time the website is not accessible use a 'website down' checker and include a screenshot of the result.

it is