'Text files equal' is test functionality and is included in release functionality

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

Duplicate - closing.


[FEATURE REQ] Publish reference doc for Azure Identity support in Spring Cloud Azure PostgreSQL

Context
With Azure Identity feature enabled in #29780, the reference doc to introduce the function should also be published in our Spring Cloud Azure Reference Doc.
Goal
Add a section in the Spring Cloud Azure Reference Doc to introduce the feature of all supported Azure Identity credentials and configuration, content should contain

Feature description
Working principle
Supported configuration
Code/Configuration snippet example

Closed in https://github.com/MicrosoftDocs/azure-dev-docs-pr/pull/3491


Support for ACME/Letsencrypt

If no keystore exists one is generated. Set TCP listeners to use encryption. Sett http listeners to use http2/alpn.

Client implementation here. https://github.com/shred/acme4j/blob/master/README.md

created separate repository for this issue. https://github.com/codingchili/acme-phyre

certificate retrieval should not be  handled by the framework. Environments are to be configured to automatically handle this. May use existing acme clients.


Come up with an approach to keep track of AWS costs for each PDS Node

💡 Description
At the moment, we have many AWS components / services of Nucleus deployed in a single AWS account. The services such as MWAA are shared between PDS Nodes to reduce costs. However, as a result we do not see billing reports for each PDS Node. It is required to come up with an approach to keep track of AWS costs for each PDS Node.
⚔ Parent Epic / Related Tickets
No response

Organizing and tracking costs using AWS cost allocation tags
https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/cost-alloc-tags.html

Created MCP ticket https://jaas.gsfc.nasa.gov/servicedesk/customer/portal/2/GSD-3688
The above ticket is in the status "Ready for Change Manager Review".

The ticket https://jaas.gsfc.nasa.gov/servicedesk/customer/portal/2/GSD-3688 was approved by change review and three cost allocation tags were implemented. The tags were not visible in cost reports and there is a conversation going on in https://jaas.gsfc.nasa.gov/servicedesk/customer/portal/2/GSD-3688

@ramesh-maddegoda need support from AWS.


corrected errors

If this is for Hacktober, there are actual useful things that can be done. Please don't just send PRs shuffling the docs.

Script kiddies arrived at GitHub?


Proxy settings and version

@drewbailey so this seems much like the other pull request but with a version bump. which one is the right one? please remove the extra request if you can. thanks

Hey, I no longer have context for this change 😁, and don't have a need for it any longer. Please feel free to close or use changes as you see fit, cheers.


Update SearchAndRescue

New version

Version 9 to version 4? That'll need an epoch.

I added the epoch the minute after: https://github.com/Olympic1/NetKAN/commit/0e04b1c0488f4a3a4acc4fb200c157320d92a55b


Membership inconsistency

Today when you search for user's membership, you are recursive going up tree of membership,
For example, in this case:
group 1
----group 2
--------user 1
If you call findUser for user1 with include membership you will get group1 + group 2.
But when you call search group, you get the member key which contains only the direct members.
For example, in this case if you call findGroup for group1 you will only get group2 but you won't get user 1.
This creates inconsistency in the results because this connection should go the same way in both directions (user to group or group to users).
I think that the right solution for this is to add a parameter to the find* method that defines how many level you go up/down.
If a specific number is too complicated to implement we can start by parameter like:
Direct members/membership or recursive members/membership.
This will define if you only want to get the direct level or you want to go up/down to all the levels recursivly.
thoughts?

Closing due to inactivity.


pull request for e2e test at 01/21/2017 14:26:18

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


Caching request responses to prevent hitting rate limits

Description
GitHub API has rate limits, and sometimes when using starcli it takes up to 10+ secs to see the output, we should cache the responses based on options (like topic/stars/dates etc) somewhere so that when the user uses the same options again within say 1 minute, it can just fetch the cached info instead of sending the request again
Why is it necessary? (or how would it make it better)
This improves the execution speed/performance
how do you think should it be implemented? (If possible)
Every time search is called we cache the response together with the options used, so when the same options are used again we output the cached data instead

Caching could be done, but how should we implement it, would simple caching in form of a text file be ok, or would we want something like redis?

I think a html/json/xml file will be ok, we should implement caching after #68 is implemented because this will probably take longer to work out what to do

Hi there! I would like to contribute for Hacktoberfest 2020. Is this issue still up for grabs?

Yes it's up for grabs, thanks for your interest

If it is still up for grabs, I'd like to work on it.

Hey, @hedythedev I have added a pull request for this issue. Please have a look.
Sorry that I didn't confirm it here first but it seemed that this issue was not solved even after few requests for grabs so thought it will be good to directly create a pull request.


SAK-40542: enable JSONP for a few entities

https://jira.sakaiproject.org/browse/SAK-40542
We control the server and the script, so there should be no harm in enabling JSONP for these entities.
Also adds first and last name to the membership entity provider, and fixes a bug when a call to /direct/membership/site/.xml improperly returns JSON instead of XML.

Given that were moving to using JWT's I don't see the need for this PR. Also it doesn't mention why this is needed just that its need for a few entities, one would ask why would a few entities need this? Side stepping CSRF with JSONP probably a bad idea IMO, going to need to provide much more information than what has been given.

I think I'll just extract the bug fix and the first/last name bit into a new PR. Thanks.


June Release: Update how-to-select-update-package.md

@EthanChangAED : Thanks for your contribution! The author(s) have been notified to review your proposed change.


📎 Implement lint/noApproximativeNumericConstant, clippy/approx_constant

Description
approx_constant
Want to contribute? Lets us know you are interested! We will assign you to the issue to prevent several people to work on the same issue. Don't worry, we can unassign you later if you are no longer interested in the issue! Read our contributing guide and analyzer contributing guide.
Other suggested name: useNumericConstants

I'd like to try contribute this one

It's all yours @nikeee

While implementing this rule, how about an additional rule like noComputedKnownConstant that warns when the user does something like Math.sqrt(2) instead of Math.SQRT2 or Math.log10(Math.E) instead of Math.LOG10E?


Minor code tidy for cargo gifts

About the PR

Thanks to metalgearsloth's review of #16556, I've implemented their suggestions here.
Just a straight refactoring in addition to slightly smaller (large) pizza party and more expensive air crate.

Media

[X] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Changelog

Nothing worth mentioning.

Please suggest pricing for emergency oxygen crates
Existing Emergency breathing crate was $500.
I took out 3 Emerg Oxy bottles and put in 3 Full Nitro bottles. There were already 3 Full oxy tanks in there.
How much should the price be on this crate? $600?
I added Large Emergency breathing crate, which is exactly the same items, but 4x as much of each. I priced this at $2000 (4x $500) but was asked to increase it. It's currently $2600.
Should the small crate be $1000 and the large one $4000? Something else? I don't know what prices are sensible here.
Thanks
@metalgearsloth @AJCM-git


Hide series before first draw

Summary
Be able to set series hidden by default at startup would be appreciated.
API Changes
[ADD] hiddenAtStart param to the SERIE section for charts configuration.
series:[{
  hiddenAtStart: true,
  data: [23, 51, ... , 43]
}]

Intended Use Case
As @junedchhipa suggested in this thread, I tried to programmatically hide series generally unused by the users. But this means that charts have to be fully drawn at startup, and redrawn each time a serie is hidden.
This is a huge problem of performance for charts with a large amount of data and/or series. Obviously, deferring the action to the user is not an option.

Data used: 4 series of 247 values each + 12 series of 244 values each

I believe this is still an issue. In my particular case, the animations get glitched by immediately hiding some series right after rendering.

hidden will be a series prop in 3.53.0
series = [{
    hidden: true,
    data: [...]
}]

https://apexcharts.com/docs/hide-series-on-initial-render-in-a-multi-series-chart/

@junedchhipa Thanks for releasing it so quickly after some quick questions.


Wallet not rescanning in delegate after block production disabled

Performed a delegate_withdraw_pay in an inactive delegate that had block production enabled. Then disabled block production and issued a rescan command, but it didn't find the transfer (just returned "OK" immediately). Had to lock and unlock the wallet for it to properly rescan and find the transfer.

Too old; and I doubt this is still a problem after recent scanning changes: 1d67a9bca519b8e417f3d2507324a98a7e2e3a1d


Fix deadlink in heading "Memory Model"

The heading was linking to https://dlang.org/spec/memory-model which does not exist. I guess it should have been an anchor link instead.

The build error looks unrelated. (You could try git commit -a with no changes then force pushing to trigger the tests again).

@ntrel On second read I think I misunderstood and you wanted me to force commit the same single commit 😅, but the checks seem to pass now and you should just be able to sqash merge this change to keep the history clean.

@ntrel On second read I think I misunderstood and you wanted me to force commit the same single commit 😅, but the checks seem to pass now and you should just be able to sqash merge this change to keep the history clean.

Great. I don't have merge rights though. (Sorry I meant git commit --amend).

Thanks


Add MeeseeksDev / Lumberbot (App) to GitHub page

c.f. https://github.com/scientific-python/MeeseeksDev

Sorry, I forgot that I could just hit @scientific-python/tools-team for review.


chore: fix infra

Prune docker after deployment
Fix Preview SSL
Fix missing docker network

:tada: This PR is included in version 1.48.0 :tada:
The release is available on:

v1.48.0
GitHub release

Your semantic-release bot :package::rocket:


TINYINT value casted as string when using MySQL 5.7

I noticed a strange issue with illuminate/database 5.2.32 when using MySQL 5.7.11 and PHP 5.5.9. TINYINT values are casted as a string rather than an integer in PHP. On my local development machine with illuminate/database 5.2.32, MySQL 5.6.29 and PHP 5.6.19 this is not the case. I'm not sure if MySQL 5.7 is at the source here but that's the most significant difference between the two environments.

Do you have the mysql native driver installed?

@wout Some updates about that?

Sorry for the delayed response guys.
I'll have to check on that because the MySQL 5.7 has been installed by another party.

@wout @billmn any update about this issue? Was anyone able to replicate the issue on a recent laravel release?

@themsaid Thanks for the follow-up. The project I'm using it in is currently on hold but will be picked up pretty soon. So when I get to it I'll let you know.

Well I think the problem here can't be related to laravel, it might be a problem with PHP or MySQL.
I'm closing this for now, but please feel free to ping me if you ever got the chance to replicate the problem.


Assigning two task to the same node with global mode in docker v1.12.3

Description
There are 3 nodes in my swam cluster, and all of the nodes are managers.
I deployed a service with the global mode. It was normal at first, but  when I rebooted all of the node one by one, two tasks were assigned to the leader manager node and runed normally.

Steps to reproduce the issue:

deploy a service with the global mode
reboot all of the node one by one

Describe the results you received:
two tasks are assigned to the leader manager node and run normally.
Describe the results you expected:
one task is assigned to the leader manager node
Additional information you deem important (e.g. issue happens only occasionally):
Output of docker version:
# docker version
Client:
 Version:      1.12.3
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   63b4274
 Built:
 OS/Arch:      linux/amd64

Server:
 Version:      1.12.3
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   63b4274
 Built:
 OS/Arch:      linux/amd64

Output of docker info:
# docker info
Containers: 99
 Running: 52
 Paused: 0
 Stopped: 47
Images: 34
Server Version: 1.12.3
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 525
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: null bridge host overlay
Swarm: active
 NodeID: 4g39opkw2s5smktjjvpd91rer
 Is Manager: true
 ClusterID: 7xyleuxvs3qvvbwk8qkilu46k
 Managers: 3
 Nodes: 3
 Orchestration:
  Task History Retention Limit: 5
 Raft:
  Snapshot Interval: 10000
  Heartbeat Tick: 1
  Election Tick: 3
 Dispatcher:
  Heartbeat Period: 5 seconds
 CA Configuration:
  Expiry Duration: 3 months
 Node Address: <IP_ADDRESS>
Runtimes: runc
Default Runtime: runc
Security Options: apparmor
Kernel Version: 4.4.0-31-generic
Operating System: Ubuntu 14.04.5 LTS
OSType: linux
Architecture: x86_64
CPUs: 8
Total Memory: 7.796 GiB
Name: paas-controller-193-168-0-168
ID: WIWO:PYNI:O2L7:UPA3:UIF5:5P5S:IALU:S5CI:R6XM:ZKDM:CYAE:B3P7
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 325
 Goroutines: 766
 System Time: 2017-04-17T20:28:00.141533524+08:00
 EventsListeners: 45
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Insecure Registries:
 <IP_ADDRESS>:5555
 <IP_ADDRESS>:6666
 <IP_ADDRESS>/8

Additional environment details (AWS, VirtualBox, physical, etc.):

Is it still an issue in 17.04?

Thanks @AkihiroSuda.  We still have not used the v17.04. Is it an issue already identified in v1.12.3?

Let me close this ticket for now, as it looks like it went stale.


patchelf: add patch: false alarm for non overlapping sections

Motivation for this change
Starting with version 0.12, patchelf sometimes returns an error complaining about overlapping sections.  The build of tsm-client reports the following error message

unsupported overlap of SHT_NOTE and PT_NOTE

see https://github.com/NixOS/nixpkgs/issues/106257
There is a patch available in this patchelf pull request: https://github.com/NixOS/patchelf/pull/230
The pull request at hand adds the patch to the nixpkgs patchelf build recipe.  This fixes the tsm-client package, maybe more.
Note on local tests
Due to lack of machine power, I cannot fully test this commit.  It tries to rebuild stdenv again, and would even try to build the whole world to obtain a NixOS system for testing.
However, I tested the patch by building the attached recipe with current nixos-unstable (83cbad92d73) and also with current nixos-20.09 (3a02dc9edb2).  This generates a working patchelf alone, then uses a modified autoPatchelfHook to inject the fixed patchelf into the PATH of the tsm-client build.  It makes tsm-client build correctly (on unstable and on 20.09).
Note that the attached recipe below can also be used as a workaround to build a working tsm-client.
tsm-client-fix.nix.txt
Notifying patchelf maintainer: @edolstra
Things done
See the note on local tests above.

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS: x86_64
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip": too much
[x] Tested execution of all binary files (usually in ./result/bin/): indirectly tested, by building tsm-client
[x] Determined the impact on package closure size (by running nix path-info -S before and after): 39,441,192 Bytes + 240 Bytes = 39,441,432 Bytes (this is the increase measured with the patchelf build by the attached recipe)
[x] Ensured that relevant documentation is up to date: no changes needed
[x] Fits CONTRIBUTING.md.

Oh no.  This patch was actually intended for staging.  But I also see a branch called staging-patchelf.  Not sure which one is correct.  Should I re-create the pull request with one of those branches?  Sorry for the confusion!

Are you sure it fixes the problem? My testing of https://github.com/NixOS/patchelf/issues/255 shows that the error still persists

Are you sure it fixes the problem? My testing of NixOS/patchelf#255 shows that the error still persists

No.  Sorry!  I probably glanced over the error messages too quickly and failed to spot the difference.  I just tested https://github.com/NixOS/patchelf/issues/255 and the error persists with the patch attached in the pull request at hand.
However, it does fix the tsm-client build.  So these are likely two different bugs.
I'll update the commit message and the text of my pull request accordingly.

This is part of patchelf 0.13.


chore: golang-demo to 0.0.1

chore: Promote golang-demo to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@unpacket: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

promotion-build
b0c4008de1989f2925916b7cb4c2b8f2af74832a
link
/test this

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


Add script for integrating locale into an existing cdclient.sqlite DB

Originally I was going to write a script that does both fdb&locale -> sqlite conversion, but that was more cumbersome than expected, and also wasn't very useful for existing cdclient.sqlite DBs.
This script is likely still not fully efficient, taking more than a minute to run on my machine whereas the fdb->sqlite script takes a second. Maybe this can be optimized in the future. For now I'm submitting this as is to have some implementation out so LU-X SQL API changes are unblocked.

Lint is failing on a file my PR didn't even touch? Is this an instance of a new version of clippy introducing new lints?

Lint is failing on a file my PR didn't even touch? Is this an instance of a new version of clippy introducing new lints?

Looks like it


Issue154.awinters.1

Pull request questions
Which issue does this address
resolves #154
Why was change needed
material icons and roboto web fonts were unable to load in air-gapped environments
What does change improve

I figured I might as well just append this to 2.2.3 since I was about to release tag @docktermj


Added fail-safe check to catch MissingWebViewPackage Exception.

Summary
The check implemented in PR #29089 is flawed as the exception class name and message depends on the OS version as well as the OEM. In OxygenOS running android 11, it comes out as RuntimeException and the check fails and hence the crash occurs again. But on observing closely, its clear that the exception message is consistent across OEMs with similar strings appearing in them that have been included in the if check.
Hence there is a simple fix to this issue, by checking the message instead of the exception class.
Here is the snippet:
private @Nullable CookieManager getCookieManager() {
    if (mCookieManager == null) {
      possiblyWorkaroundSyncManager(mContext);
      try {
        mCookieManager = CookieManager.getInstance();
      } catch (IllegalArgumentException ex) {
        // https://bugs.chromium.org/p/chromium/issues/detail?id=559720
        return null;
      } catch (Exception exception) {
        String message = exception.getMessage();
        // We cannot catch MissingWebViewPackageException as it is in a private / system API
        // class. This validates the exception's message to ensure we are only handling this
        // specific exception.
        // The exception class doesn't always contain the correct name as it depends on the OEM
        // and OS version. It is better to check the message for clues regarding the exception
        // as that is somewhat consistent across OEMs.
        // For instance, the Exception thrown on OxygenOS 11 is a RuntimeException but the message contains the required strings.
        // https://android.googlesource.com/platform/frameworks/base/+/master/core/java/android/webkit/WebViewFactory.java#348
        if (message!=null &&
            (message.contains("WebView provider")
              || message.contains("No WebView installed")
                || message.contains("WebView"))) {
            return null;
        } else {
          throw exception;
        }
      }
    }

    return mCookieManager;
  }

Changelog
[General] [Added] - A fail proof check to catch any crash involving webview:
if (message!=null && (message.contains("WebView provider") || message.contains("No WebView installed") || message.contains("WebView")))
[General] [Removed] - Flawed check to catch WebViewProvider crash:
if (message != null && exception.getClass().getCanonicalName().contains("MissingWebViewPackageException"))
Test Plan
This code has been tested rigorously on OnePlus Nord CE 5G (Oxygen OS 11.0) and Realme X (Realme UI 2.0) both running on Android 11 and reproducing the crash on a hybrid (Native android + ReactNative) app that showed this crash in production being dependent on WebViews. I have implemented an entire patched fork of 0.67.2 to fix this issue in our app.
How to test:
Launch any app that has a webview.
Go to settings->apps->Android System Webview -> disable.
Resume/Restart the app.
In this fix:
Open a webview and notice that the app will not crash.
In current version:
App crashes on startup as the exception escapes the catch block.
Even if it survives startup (did on Realme X), it will crash once you try to open a webview.

Thanks for looking into this. It looks like that check (contains any of WebView provider, No WebView installed, WebView) has some redundancy and could be rewritten as message.contains("WebView").
If #29089 (comment) is correct, that's not guaranteed to catch all of these cases, where the name might contain WebView but the message doesn't. I'm not an android dev, but it also seems quite wide to me and open to false positives, though maybe that's not so much an issue in this situation.
Combining the old check and yours would certainly be wide enough, but maybe too wide, ie.
exception.getClass().getCanonicalName().contains("MissingWebViewPackageException") ||
(message != null && message.contains("WebView")))

Looks like @sota000 dealt with this previously and might have some thoughts here?

@rh389 I added the first 2 checks only to prevent false positives and added a fail-save in case exception does not contain a clear message. We are only using the message.contains("Webview") in the patch used in our app because that is the only use case for our app's features and we have seen 2 different types of messages in our crash logs.
I only tried to make the check slightly less generic.

I only tried to make the check slightly less generic.

Appreciate that was that was the intention, but the end result is that the error will be suppressed if and only if the message contains WebView. Because the other two strings themselves contain WebView, they're strictly stronger conditions and serve no purpose when you || them together with the weak check.

I only tried to make the check slightly less generic.

Appreciate that was that was the intention, but the end result is that the error will be suppressed if and only if the message contains WebView. Because the other two strings themselves contain WebView, they're strictly stronger conditions and serve no purpose when you || them together with the weak check.

Hey @rh389, I have updated the PR with the new check

        if (exception.getClass().getCanonicalName().contains("MissingWebViewPackageException") ||
            (message!=null && (message.contains("WebView provider") ||
              message.contains("No WebView installed")))) {
            return null;

Appreciate that was that was the intention, but the end result is that the error will be suppressed if and only if the message contains WebView. Because the other two strings themselves contain WebView, they're strictly stronger conditions and serve no purpose when you || them together with the weak check.

That's a good point @rh389 👍
I believe we can merge this. I believe there might be some linting issue to address as the formatting looks a bit odd. But from the content point of view we're good to go 👍


First attempt at using SQL with PHP.

This is not complete in any way but I wanted to show how far (or little) I have gotten. I'm not confident I'm on the right path. These main questions stick out to me at this time.

Where does this file need to go?

I thought this would work well under the Application folder with all the commands but I'm not sure how the CLI will interact with this file.

How to test this file so I know which sql commands work and which ones don't?

The three SQL queries work. I ran into an issue with the columns being to wide making the tables look messy. I couldn't find a way to truncate the string if it reached a certain point so I used setMaxWidth until I can find a better solution.

[ ] Update Readme (Forgot to do this.)

If you are interested in truncating a string, checkout the php function substr().

This looks like solid code. Great for an MVP of this feature. There is some tightening that could be done -- see my comments.
I'll look a little more in detail later, but had a few minutes and thought I'd give it a once-over.
Great work.

I plan on looking into traits in the morning to diversify my skillset.

I'm happy where the sql scripts are for the time being. Also, updated readme detailing technical stuff about casing and only reviewed/updated the application directory to meet that criteria as of now.


Tasmota Smartplugs freeze with newest Plugin

Hi grzegorz914,
first, thanks for the great Homebridge Plugin :)
I recently recognized a freeze of my smartplugs running Tasmota after upgrading to the latest v0.10.31 plugin version.
So the plugs are not responding anymore - meaning the web interface is not loading, the buttons on the device is not working, etc. But they are connecting to Wifi. Restarts and Resets are not working. Only after disabling the Homebridge Plugin, the device are working just as normal.
From the logs I can see that Homebridge is putting several pings to the devices per second. From what I see it is 25 per second and then 15s later the next 25.
Used plugin: v0.10.31
Tasmota version: 13.1
I don't know the version that I had before, but probably v0.10.20-somtehing (this was working fine)
Is this a know issue? Can I provide some more infos / logs?
Thanks and Best, Sebastian

Can you post the debug log, go to plugin settings, advanced settings>>system>>debug, enable it and get the whole log.

Thanks for the quick response. Will do that and post the logs here tomorrow.

The logs seem normal from what I can see (no errors / warnings / timeouts).
The logs for the smartplug are every 5s the following:
(I attached the full log anyway)
[7/30/2024, 1:51:32 PM] [homebridge-tasmota-control] Device: <IP_ADDRESS> Smartplug-Babycam, debug: Requesting status.
[7/30/2024, 1:51:32 PM] [homebridge-tasmota-control] Device: <IP_ADDRESS> Smartplug-Babycam, debug: Power status: {
  "POWER": "OFF"
}
[7/30/2024, 1:51:32 PM] [homebridge-tasmota-control] Device: <IP_ADDRESS> Smartplug-Babycam, debug: Sensors status: {
  "Time": "2024-07-30T13:51:31",
  "ENERGY": {
    "TotalStartTime": "2023-10-28T20:42:01",
    "Total": 0.129,
    "Yesterday": 0.011,
    "Today": 0,
    "Power": 0,
    "ApparentPower": 0,
    "ReactivePower": 0,
    "Factor": 0,
    "Voltage": 0,
    "Current": 0
  }
}

I guess this is normal, right?
The first issues with the devices came up like 2-3 days after I installed the update for the plugin. So I will update the logs here when the device is frozen again.
homebridge-tasmota-control.log.txt

Now I feel totally stupid. The described behavior was occurring three times, and I was trying different ways to resolve it (uninstall plugin, reset Tasmota devices, etc.). Now that I opened the issue, all works as expected for a couple of days now. So I will close the issue. If in the future the devices will freezes again, I collect all the logs and would open a new one.


Autoconfigure default MessageVerifierReceiver and MessageVerifierSender implementations for Kafka

The former implementation was deleted in commit: fa51d6a076be8c5dc620ea6e226ad6c87dc2c0ac Maybe by a mistake? @marcingrzejszczak

No, we removed all the mock versions of receivers. This issue is about doing autoconfigs like the ones created here or here.

So the issue is currently, that Kafka has no implementation to verify contracts. The developer adding 'org.springframework.cloud:spring-cloud-starter-contract-verifier' needs to write his own implementation of Receivers, as they are gone, and there is no notice about it. They are gone from version 4 at least, so people migrating to spring boot 3.2 need to also write their own implementation of kafka KafkaStubMessages because without it all their contract tests related to kafka fail. If that is just what was intended, please point me to the place where those crucial parts of the code are implemented, as otherwise I need to just write that part on my own.

Here is the stack issue about it: https://stackoverflow.com/questions/77661101/spring-boot-3-migration-spring-cloud-starter-contract-verifier-and-messageverifi

That's correct, we write about this in the migration path

Thanks a lot, that is pretty much clear now.

hello, is there any plans to implement this feature? it would be nice if spring itself can provide a real kafka based verifier.


Invoke project save buffers before search in project

Describe the feature
When running SPC s p to search a project unsaved buffers are still shown when they match the searched item. It would be nice to have an option to enable saving all project buffers before searching the project. There exists already a function in projectile to save all buffers.
System information

emacs   version    26.3
        features   XPM JPEG TIFF GIF PNG RSVG SOUND DBUS GSETTINGS GLIB NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD
        build      Feb 09, 2020
        buildopts  (--prefix=/nix/store/9d0pziyxmkh4rb96kwg8g025rdlwcqjd-emacs-26.3 --disable-build-details --with-modules --with-x-toolkit=gtk3 --with-xft CFLAGS=-DMAC_OS_X_VERSION_MAX_ALLOWED=101200)
        windowsys  x
        daemonp    server-running
doom    version    2.0.9
        build      HEAD -> develop af9d8257f 2020-02-09 04:33:17 -0500
        dir        ~/.doom.d/
system  type       gnu/linux
        config     x86_64-pc-linux-gnu
        shell      /run/current-system/sw/bin/zsh
        uname      Linux 5.5.1 #1-NixOS SMP Sat Feb 1 09:33:01 UTC 2020 x86_64
        path       (/run/wrappers/bin ~/.nix-profile/bin /etc/profiles/per-user/bastian/bin /nix/var/nix/profiles/default/bin /run/current-system/sw/bin /nix/store/9d0pziyxmkh4rb96kwg8g025rdlwcqjd-emacs-26.3/libexec/emacs/26.3/x86_64-pc-linux-gnu)
config  envfile    nil
        elc-files  0
        modules    (:completion (company +childframe) (ivy +childframe +icons) :ui doom doom-dashboard doom-quit fill-column hl-todo modeline nav-flash neotree ophints (popup +all +defaults) vc-gutter vi-tilde-fringe window-select workspaces :editor (evil +everywhere) file-templates fold multiple-cursors rotate-text snippets :emacs dired electric ibuffer vc :checkers syntax spell grammar :tools direnv editorconfig (eval +overlay) gist (lookup +docsets) lsp magit pass :lang cc common-lisp data emacs-lisp kotlin (markdown +grip) nix (rust +lsp) sh (org +dragndrop) :config (default +bindings +smartparens))
        packages   (n/a)
        elpa       (n/a)
        unpin      (n/a)

I'll consider it, but in the meantime, SPC b S will save all open buffers. Otherwise, you could advise +default/search-project:
(advice-add #'+default/search-project :before (lambda (&rest _) (evil-write-all nil)))

Ty for the lisp script :)

Didn't know that it is that easy, probably enough and doesn't need any further integration.


Shares doesnt work.

Tried views. It works fine. But when I try shares it clicks share inserts the link and presses search but it doesnt actually press the share black button. Please see the attached image. It only goes upto pressing search and then exits back to the home page. In the console the error reads Á generic error has occured

".

Issue is fixed! Please try it and let us know.
P.S : looks like zefoy is sometimes updating its source code which will cause a malfunction in the code. Your opened issues in this repository will let me know when an issue appears so I can fix it, so thank you for your contribution!


(SIMP-5502) Refactor due to breaking changes

Refactored the module to work with Puppet > 5.5.6

Puppet 5.5.7 broke the Type/Provider interface in the 'group' type so
required an emergency refactor
The offending commit chain starts around https://github.com/puppetlabs/puppet/pull/7111

SIMP-5502 #close

:hourglass_flowing_sand: https://gitlab.com/simp/puppet-gpasswd/pipelines/34218048

:hourglass_flowing_sand: https://gitlab.com/simp/puppet-gpasswd/pipelines/34221324

:heavy_check_mark: https://gitlab.com/simp/puppet-gpasswd/pipelines/34227179


[SOLVED] Manjaro linux: Steam root not a directory: /home/death/.local/share/Steam

This path is wrong for Manjaro and believe for Arch too.
The path is:
~/.steam/steam/

I see... that we have command to set a steam root folder.
So for Manjaro is:
protonutils config steam_root ~/.steam/steam

Thanks for reporting!
I cannot see why the Steam client is not installing itself in .local/share/Steam on Manjaro. I tested it again with a fresh RPM install on Fedora and it is using that directory (but linking .steam/steam to it).
However, for now I think it is fine to adjust the path in the config on Manjaro.


need method to identify resources needing updated

[Enter feedback here]
This document discusses how to update the resource to the new method, but could you please add a way to identify what resources need to be updated?

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

ID: c6aa27f8-8a42-83eb-0a97-91036edd0a30
Version Independent ID: e4486268-a3fe-533b-d95e-5a207082f846
Content: Migrate from the HTTP Data Collector API to the Log Ingestion API - Azure Monitor
Content Source: articles/azure-monitor/logs/custom-logs-migrate.md
Service: azure-monitor
Sub-service: logs
GitHub Login: @guywi-ms
Microsoft Alias: guywild

@cchapin2020
Thanks for your feedback! We will investigate and update as appropriate.

@cchapin2020 Thanks very much for your enquiry and apologies for the delayed response. We've added the following information to the article to address the issue you raised:

Thanks for the valuable feedback!
#please-close


Consider replacement json marshalling system

I thought there was an issue for this, but I can't seem to find it.
Off the top of my head, there's two compelling reasons to consider this:

Generate errors on finding a disallowed field
Performance - we spend most of our time marshalling/converting/unmarshalling.

I just ran across this, which may be relevant: https://github.com/rainingclouds/autobindings

+1
On Thu, Feb 26, 2015 at 1:58 PM, Daniel Smith<EMAIL_ADDRESS>wrote:

I thought there was an issue for this, but I can't seem to find it.
Off the top of my head, there's two compelling reasons to consider this:

Generate errors on finding a disallowed field
Performance - we spend most of our time
marshalling/converting/unmarshalling.

I just ran across this, which may be relevant:
https://github.com/rainingclouds/autobindings
--
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/issues/4872.

Do you think this is plausible for 1.0?  Instinct says not/...

IMO, post 1.0.

Dupe of #3338


SAK-30838 Lesson tool activity not working in Oracle

Okay, easiest way to test this is to merge and have verify on nightly. Thanks for the fix!


feat: modal width attribute

Adds width attribute to pfe-modal with three options: small, medium, and large. Default is large.
Related issues

(#526) Set options for pfe-modal width

Preview

Link(s) to demo page(s) where this element can be viewed:

Link

What has changed and why

elements/pfe-modal/docs/index.md - adds examples of modal width
elements/pfe-modal/src/pfe-modal.scss - adds width attr to host
elements/pfe-modal/test/pfe-modal.spec.js - migrates unit tests to WTR and adds tests for width attr

Testing instructions

[ ] Test case 1

Go to demo linked aboe
Scroll to "Attributes"
Click buttons to open sized modals

Browser requirements
Your component should work in all of the following environments:

[ ] Latest 2 versions of Edge
[ ] Internet Explorer 11 (should be useable, not pixel perfect)
[ ] Latest 2 versions of Firefox (one on Mac OS, one of Windows OS)
[ ] Firefox 78 (or latest version for Red Hat Enterprise Linux distribution)
[ ] Latest 2 versions of Chrome (one on Mac OS, one of Windows OS)
[ ] Latest 2 versions of Safari
[ ] Android mobile device (such as the Galaxy S9)
[ ] Apple mobile device (such as the iPhone X)
[ ] Apple tablet device (such as the iPhone Pro)

Ready-for-merge Checklist

[x] Expected files: all files in this pull request are related to one request or issue (no stragglers or scope-creep).
[x] Tests have been updated to cover these changes.
[ ] Browser testing passed.
[ ] Changelog updated.
[x] Documentation (README.md, WHY.md, etc.) updated or added.
[ ] Link to the demo recording:
[ ] Approved by designer.

Merging
Please squash when merging and ensure your commit message uses conventional commit formatting.
Be sure to share your updates with the<EMAIL_ADDRESS>mailing list!

maintainers: I migrated the tests in _test.js to wtr in .spec.js. I didn't yet delete the _test.js file though, since I'm not quite sure yet how it fits into the larger testing regime. guidance is appreciated.

maintainers: I migrated the tests in _test.js to wtr in .spec.js. I didn't yet delete the _test.js file though, since I'm not quite sure yet how it fits into the larger testing regime. guidance is appreciated.

That works!  the old _test.js can be removed.

I updated the tests to check all three modes on each of the four screen widths described in README.md. @heyMP please double check the test cases.

Thanks Benny!  Verifying tests now.


Sending WATCH_NAMESPACE="" results in error log

Bug Report
What did you do?
I am using operator-sdk to create an operator, and I want it to be deployed globally, so I have used WATCH_NAMESPACE="" to look globally. But I am using sdk.ExposeMetricsPort() which further calls k8sutil.GetWatchNamespace() which logs an error level=error msg="Failed to initialize service object for operator metrics: WATCH_NAMESPACE must not be empty", however I want it to be empty.

Are you writing your operator in ansible, helm, or go?
Golang

Possible Solution
I believe WATCH_NAMESPACE should be able to set to "" or the log should not be error level rather info

I am going to close this as we have fixed the issue.
please re-open if this is not the case.
/close


add an embedded openstreetmap map

at the directions section

We tried to include an embedded map but when you are in mobile view you can't scroll in the page because you actually scroll in the map.


[Bug Fix Request] Request for Correction of Incorrect Folder Path

Hello,
I've encountered an execution issue in the run_evaluation_llm4decompile_singleGPU.py file due to an incorrect folder path. Specifically, the folder path referenced on line 12 is incorrect.

Before correction: "../decompile-eval/decompile-eval.json"
After correction: "../decompiler-eval/decompile-eval.json"

Here is the code link: https://github.com/albertan017/LLM4Decompile/blob/8447a5c83d74f92c1fd1972e440ad1d4526bd5fd/evaluation/run_evaluation_llm4decompile_singleGPU.py#L12
Due to the incorrect path, an error occurs when trying to execute the script as it cannot find the specified folder. I would greatly appreciate it if you could correct the folder path accurately.
Thank you.

Thank you! We've changed all instances of "decompiler" to "decompile" to maintain consistency. Your assistance is greatly valued!


Reverse a linked list

Input:
LinkedList: 1->2->3->4->5->6
Output: 6 5 4 3 2 1
Asked In: Accolite,  Adobe,  Amazon,  Cisco,  Cognizant,  D-E-Shaw, and many more.

Please assign me this issue under SWOC tag

Please assign me this issue under SWOC tag

I want to work on this. If it is available please let me know

I want to work on this. If it is available please let me know

I would be like to work on this!

I would be like to work on this!

@Rishikeshrajrxl please get started with both the iterative and recursive method of reversing a LinkedList

@Rishikeshrajrxl please get started with both the iterative and recursive method of reversing a LinkedList

@Abhijit2505  pls assign me this issue, I can do this in C, C++ & Python.

I would be like to work on this!  @Abhijit2505 pls assign me this issue, I can do this in C, C++

Check pr #122


Women and Men Character Equipment Support

We need women and men players too. This can probably be done with swapping out the graphics but it needs a player selection option at the start. Also women need their own set of armour and equipment to match their body shape too. I am I did it where on Unreal with easyrpg that an the same equipment armour item can be equipped and the male gets male graphics and the female gets female graphics, they both had their own armour / equipment art sets that items could have like a check for it worked with new races in theory too for it was beyond just 2 choices but could be expanded endlessly if wanted. (From Discord).

Out of scope for this project or near future roadmap, closing this ticket


imp: ease nixpkgs dependency ban by using divnix/nixpkgs.lib light fork

This enables us to use latest nixpkgs library functions without the "penalty" and confusion of accessing nixpkgs propper.

Completely get your point, I set up that library in general for projects that try to avoid importing nixpkgs, but suffer from so many library functions not yet available as builtins.
It's meant to alleviate a bit the burdon of reimplementing library functions across the aisle.
See: https://discourse.nixos.org/t/cheaper-nixpkgs-lib-for-flake-users/12444?u=blaggacao
No issues with barring this from entering fup.

I think one other thing to consider about flake-utils(-plus) is that the lack of nixpkgs dependency is also somewhat of a principle. I think its cool that in the entire flake ecosystem, there will be these two - maybe more - repositories that never depend on something else. And while it doesn't seem like such a big deal right now, I think as flakes get bigger it could become more important. I'm not sure we have to worry about cyclic dependencies with flakes. But either way its just good practice for software ecosystems to have projects that act as a base/pillar upon which anyone can work on without having to think about what that project is dependent on.


refactor: tidy up plugin-legacy

Description

Additional context

What is the purpose of this pull request?

[ ] Bug fix
[ ] New Feature
[ ] Documentation update
[ ] Other

Before submitting the PR, please make sure you do the following

[ ] Read the Contributing Guidelines.
[ ] Read the Pull Request Guidelines and follow the Commit Convention.
[ ] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
[ ] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
[ ] Ideally, include relevant tests that fail without this PR but pass with it.

Sorry @Simon-He95, the refactoring looks good but we prefer to avoid introducing history changes that aren't fixes or a refactor simplifying more than the branching/return structure. Thanks for taking a look, and I hope we see you on other PRs in the future (I suggest working on triaging first and focusing on fixes instead of refactoring).


Proposing adding a line to CNAME w/ Teams

https://github.com/MicrosoftDocs/microsoft-365-docs/issues/1722

@pebaum - PR has been copy edited and is ready for final review. This is based on issue #1722.
Thank you.
cc: @kenwith


RFC: -l for uprobes

Fixes https://github.com/iovisor/bpftrace/issues/673
Same syntax and semantics as listing for USDT:
List by absolute binary path
# bpftrace -l 'uprobe:/lib/x86_64-linux-gnu/libc.so.6'
uprobe:/lib/x86_64-linux-gnu/libc.so.6:free_derivation
uprobe:/lib/x86_64-linux-gnu/libc.so.6:derivation_compare
uprobe:/lib/x86_64-linux-gnu/libc.so.6:__gconv_release_step.part.1
uprobe:/lib/x86_64-linux-gnu/libc.so.6:free_modules_db
...

List by absolute binary path, with filter
# bpftrace -l 'uprobe:/lib/x86_64-linux-gnu/libc.so.6:usle*'
uprobe:/lib/x86_64-linux-gnu/libc.so.6:usleep
uprobe:/lib/x86_64-linux-gnu/libc.so.6:usleep

List by binary path, with PATH lookup:
# sudo ./src/bpftrace -l 'uprobe:slack'
uprobe:slack:_cgo_f7895c2c5a3a_Cfunc_freeaddrinfo
uprobe:slack:crosscall2
uprobe:slack:_fini
uprobe:slack:_cgo_d76b870879f1_Cfunc_free
uprobe:slack:x_cgo_mmap
uprobe:slack:_cgo_release_context
uprobe:slack:__libc_csu_init
uprobe:slack:_cgo_90cee26748d5_Cfunc_mygetpwnam_r
...

List by pid
# bpftrace -l -p PID
...
uprobe:/snap/slack/13/usr/lib/slack/slack:_ZN2gl10Uniform1ivEiiPKi
uprobe:/snap/slack/13/usr/lib/slack/slack:_ZThn32_N4atom3api3App7OnLoginE13scoped_refptrINS_12LoginHandlerEERKN4base15DictionaryValueE
uprobe:/snap/slack/13/usr/lib/slack/slack:_ZN4mate9ConverterIN3gfx5PointEvE4ToV8EPN2v87IsolateERKS2_
...

List by pid, filter uprobe only
# bpftrace -l 'uprobe:*' -p PID
uprobe:/snap/slack/13/usr/lib/slack/slack:_ZN2gl10Uniform1ivEiiPKi
uprobe:/snap/slack/13/usr/lib/slack/slack:_ZThn32_N4atom3api3App7OnLoginE13scoped_refptrINS_12LoginHandlerEERKN4base15DictionaryValueE
uprobe:/snap/slack/13/usr/lib/slack/slack:_ZN4mate9ConverterIN3gfx5PointEvE4ToV8EPN2v87IsolateERKS2_
...

I might have missed some use cases. Will add some tests before merging if there's no objections on the behavior here.

cc @brendangregg @ajor @dalehamel @tyroguru

@mmarchini looks great! I had thought about implementing something similar when I noticed it was missing while working on the USDT stuff - you beat me too it :)
This behaves how I would expect it to and seems mostly consistent with how we do it for USDT.
Perhaps we should update the USDT listing to try and search the PATH as well (for consistency), though since I generally work with containers I haven't found the path searching to have much utility, as bpftrace is rarely in the same filesystem namespace of the thing I'm trying to instrument.

Will add some tests before merging if there's no objections on the behavior here.

Not sure if you just meant unit tests, but would be great to have some runtime tests for this too :). I think some of the uprobe runtime tests were broken for me locally (maybe the bash I use is different?) perhaps we could include a couple of test programs with predictable symbols and use that instead of bash (or whatever we are using now) for more deterministic runtime tests for uprobes, similar to what is done for USDT

@mmarchini - this is amazing! I love it! Thanks hugely for this. I have given it a very quick test and it seems great but if you can merge it ASAP that would be great as this has come up a number of times just in the last week alone in my exchanges with people internally.

+1, looks super useful to me

Looks great, thanks. (and I can't merge it while it's draft).
(PS. Matheus is out for a few days, so he may not un-draft it until next week).

Matheus is out for a few days, so he may not un-draft it until next week

That's fine i think, he mentioned wanted to add a few tests anyways :)

Would like to merge this soon. Any objections?


Conda install with cuda

How can I install haibitat-sim through conda with cuda?
It doesnt work when I install with headless and It will report"must build habitat-sim with cuda for gpu2gpu-transfer"

Too little information to help you. Please consider asking on slack to the community.

How can I install haibitat-sim through conda with cuda? It doesnt work when I install with headless and It will report"must build habitat-sim with cuda for gpu2gpu-transfer"

Have you found the solution? I met the same question as well

"must build habitat-sim with cuda for gpu2gpu-transfer"

Thanks for you reply. I installed the habitat-sim with conda headless, but when I run task relaed code, it will report"must build habitat-sim with cuda for gpu2gpu-transfer". So should I need install from source and add ''--with-cuda'' to solve it?

Yep

Yep

Unfortunately, it didn't work in my computer, I will open a new issue to ask for help.

Yep

Unfortunately, it didn't work in my computer, I will open a new issue to ask for help.

我遇到了相同的问题，这个问题你解决了吗？

解决了，最终是用source来build的，本地机器一直没弄好，用远程的服务器重建了一个环境搞好了

Yep

Unfortunately, it didn't work in my computer, I will open a new issue to ask for help.

我遇到了相同的问题，这个问题你解决了吗？

解决了，最终是用source来build的，本地机器一直没弄好，用远程的服务器重建了一个环境搞好了


Privacy Policy

Can you provide a Privacy Policy.

There is no privacy policy because this is the open source project, not the actual live service. You can use this project how you wish under the license terms.

Can you add a Privacy Policy to the live project though?


Allow for multiple basis sets in auxiliary dictionaries

This also moves the cc-pVXZ-F12-OPTRI+ basis sets to the proper place

Codecov Report

Merging #289 (b43a8c2) into master (b29fd1c) will decrease coverage by 0.01%.
Report is 11 commits behind head on master.
The diff coverage is 71.42%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files


How to use translated slugs as IDs?

I'm developing an app with translatable models, which means some resources have attributes in
more than one language .
In the database, each translatable model has a translations table, which has:

A foreign key to the model table
A 'locale' column
Columns for each translated attribute

For example, the 'posts' resource has a 'slug' attribute, which has different values on different languages, and therefore the 'slug' column resides in the the 'post_translations' table.
Now, I want to use the translated 'slug' attribute as the ID for the 'posts' resource.
I modified the schema's getId method, and the adapter's $primaryKey property, as per the documentation.
Since the $primaryKey property I set on the adapter is not a field of the 'post' eloquent model, I have to perform a join operation (between the 'posts' and 'post_translations' tables) before any query that involves the adapter's $primaryKey property is performed.
My solution was performing the join operation by adding a global scope to the 'post' model, which I consider inefficient, since the join will be performed with each query related to the 'post' model.
What is the best practice for using the slug as ID in this kind of scenario?

Interesting question!
So my advice would be against translating resource ids. The resource id is like a constant, it shouldn't really change. Remember that what you use as the resource id, you have to use this consistently throughout your API - so if the post resource is in a relationship, the id in that relationship must also match the id on the resource.
How I'd approach this depends on the use case. If you have no expectation that API clients would access multiple locales at once, I'd scope the API by locale. I.e.:
GET http://example.com/api/en/posts/1 would get post 1, which would be translated as English.
GET http://example.com/api/en/posts?filter[slug]=my-first-post would get a post that had an English slug of my-first-post.
It would then be up to the client as to which locale API it is connecting to.
If you really must have a resource id that is specific to the locale, then rather than using the slug I'd suggest using the primary key and the locale, rather than the translated slug. E.g. 123-en or en-123 would mean the post 123 translated with locale en. The advantage with this is that wherever you receive it you do not need to do the database join - you just extract the 123 bit of the id and use it directly.
Remember that the classic use of slugs is to give a human friendly URL. For example, you want a human to see http://example.com/blog/my-first-post in their browser. This doesn't really apply to an API though - because the end-user doesn't see the API requests.
So if for example visiting that blog URL in your browser triggers an API request, behind the scenes the browser can send either of these two request, which of course the user doesn't see:

http://example.com/api/en/posts?filter[slug]=my-first-post which return a post with id 123; or
http://example.com/api/posts?filter[slug]=my-first-post which returns a post with id 123-en.


feat(streaming): use refill cache on write policy for streaming hash_…

…join
I hereby agree to the terms of the Singularity Data, Inc. Contributor License Agreement.
What's changed and what's your intention?
Currently, when insert a row in streaming hash join actor, we do not cache it.
In this pr, we start to refill cache when insert a row.
Checklist

[x] I have written necessary rustdoc comments
[x] I have added necessary unit tests and integration tests
[x] I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features).
[x] All checks passed in ./risedev check (or alias, ./risedev c)

Related PR
https://github.com/risingwavelabs/risingwave/pull/3983

Here are some points worth mentioning.

why refilling cache when writing is valuable:

Assume we have stream A as the left side and stream B as the right side in a join actor.
When join receives a new key from stream A, it needs to read from the table of B to match rows. If we refill the cache when writing, then this read from A will be a cache hit(if not evicted). If we do not refill, we need to read once from the remote storage, which takes a long time.

why we do not cache when writing in the past:

The point is that if we want to cache it when inserting a row, we need to first read once from the remote to fetch the previous result and then merge the old result with the new row. Since we still need to read from the remote compared with not refilling, refilling the cache when writing only makes this read happens when writing instead of when matching. And if the newly inserted row is never matched by the keys from another side, this refilling is a waste of memory.

why we change our idea now to refill when writing:

As this PR is merged, the bloom filter has a much lower false positive. It means if a key does not exist in the table, the read operation will be finished much more quickly because it has fewer possibilities to read the data block. And the bloom filter is cached in memory. As a result, reading a non-existed key will be almost a memory operation. But reading an existing key is still a remote IO operation. So refilling when writing policy outperforms now.

why not make this a configurable policy?

We do not want to expose this to users. It's a burden for users to understand.

Does refilling the cache when writing always outperform?

No, it performs well on datasets like nexmark, which has good locality, which means the rows written from one stream will quickly be matched by the keys from another stream. But for some datasets that have no locality, like TPCH, not refilling is better.
For now, since we take nexmark as the main benchmark dataset and streaming datasets usually have some locality, we use the refilling of the cache when writing policy.
Ideally, we should be able to adjust this policy automatically based on dataset patterns.

Sort of confused as why we change our idea now to refill when writing seems to not address this refilling is a waste of memory.
I mean the waste is much cheaper due to #7339, but still a waste?

Sort of confused as why we change our idea now to refill when writing seems to not address this refilling is a waste of memory. I mean the waste is much cheaper due to #7339, but still a waste?

Yes, it may still waste memory, especially if the inserted key is not matched by the keys from another side, before being evicted. But for dataset like nexmark, the inserted key should be touched quickly. In this secnario, it would not be a waste.

The refilling is most valuable when inserting a join key that does not exist before, and is less useful when the join key already exist. So it would be better is we can have a bloom filter API from storage, so that we can only write then the join key does not exist (in bloom filter). cc @hzxa21  @wenym1

The refilling is most valuable when inserting a join key that does not exist before, and is less useful when the join key already exist. So it would be better is we can have a bloom filter API from storage, so that we can only write then the join key does not exist (in bloom filter). cc @hzxa21 @wenym1

Good idea, then the entire strategy (refilling only when degree 0 -> 1) always makes things better, with no downside completely I suppose? (only this bloom filter API call is extra, which is a pure in-memory operation)

The refilling is most valuable when inserting a join key that does not exist before, and is less useful when the join key already exist. So it would be better is we can have a bloom filter API from storage, so that we can only write then the join key does not exist (in bloom filter). cc @hzxa21 @wenym1

+1. I will submit a PR for that.

log size is significantly large (2.0M). Please disable unnecessary logs.

The refilling is most valuable when inserting a join key that does not exist before, and is less useful when the join key already exist. So it would be better is we can have a bloom filter API from storage, so that we can only write then the join key does not exist (in bloom filter). cc @hzxa21 @wenym1

+1. I will submit a PR for that.

https://github.com/risingwavelabs/risingwave/pull/7489


Locale switcher's active locale is not selected if loading a fallback language

If a user visits findthemasks.com?locale=fr-FR the app correctly renders in French however because we store the locale as fr in locales.js the current language is not rendered.
We should reuse some of the language detection code to select the fallback language correctly and the switcher should display "French"

Is this still a bug?


[docs] Showcase tcespal

Added my site https://tcespal.com on the showcase page

[X] I have followed (at least) the PR section of the contributing guide.

Meets the 'non-material' eligibility criteria.
Please could you make the image 900 x 675, tweak the jpeg quality to keep the image size under 100KB, and run it through imageoptim or equivalent?

Please could you make the image 900 x 675,

The latest images have been 1200 x 900 to render well on high resolution screen.

Thanks for pointing this out, I updated the image :)


MDF Compatability

If we are running mssql in a Linux Docker container, can we attach a host system Windows MDF file?
That is, are the files binary compatible for mssql between windows and linux?
I really do not want to have to backup and restore the Windows MDF into the Linux container in order to use it.

Yes, .bak and .mdf/.ldf are binary compatible between SQL Server on Windows and Linux.  Note: you will need to use WITH MOVE if you are moving from one OS to the other because the file path syntax is different.
Here's an example:
https://github.com/twright-msft/mssql-test-scripts/blob/master/BackupRestore/RestoreWideWorldImporters.sql

Thank you for that information.
Just to clarify.
If my MDF is in C:\Data on the Windows host system and I have shared C with the Linux Docker container.
Can I then attach the Linux mssql directory to the Host MDF without moving/restoring the database?

So I mapped as per the document https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-setup-docker
Mount a host directory as data volume
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=<YourStrong!Passw0rd>' -p 1433:1433 -v :/var/opt/mssql -d microsoft/mssql-server-linux
I am using C:/Data
When I go to attach, I see the host mdf listed in /var/opt/mssql/. I select it and the database details shows the Data and Log. However, when I click OK, I get "Attach database failed...". "A file activation error occurred. The physical file name of \var\opt\mssql\mydatabase.mdf may be incorrect".
Notice that the / became a \ in the Error message.

I wrestled with this for a bit, then found this blog post, and following that worked for me for this:
https://mathaywardhill.com/2017/05/08/how-to-attach-a-sql-server-database-in-a-linux-docker-container/

Thanks @cbmcvey!
@genifycom - Please reopen if you are still having issues with this.

Just had the issue myself. In case any one else comes across this, the solution is to change the backslashes (from the attach script generated by SSMS) to forwarded slashes:
USE [master] GO CREATE DATABASE [DatabaseName] ON  ( FILENAME = N'/sql/NameOfMDFFile.mdf' ), ( FILENAME = N'/sql/NameOfLogFile.ldf' )  FOR ATTACH GO
In the above example I have /sql mounted as a folder on my host Windows machine machine


[BUG] Compile error when installing in docker

Describe the bug
When installing in docker I'm getting:
    /usr/local/lib/python3.8/dist-packages/torch/include/c10/util/irange.h(54): warning #186-D: pointless comparison of unsigned integer with zero
              detected during:
                instantiation of "__nv_bool c10::detail::integer_iterator<I, one_sided, <unnamed>>::operator==(const c10::detail::integer_iterator<I, one_sided, <unnamed>> &) const [with I=std::size_t, one_sided=true, <unnamed>=0]"
    (61): here
                instantiation of "__nv_bool c10::detail::integer_iterator<I, one_sided, <unnamed>>::operator!=(const c10::detail::integer_iterator<I, one_sided, <unnamed>> &) const [with I=std::size_t, one_sided=true, <unnamed>=0]"
    /usr/local/lib/python3.8/dist-packages/torch/include/ATen/core/qualified_name.h(73): here

    /tmp/pip-req-build-gk5z7125/autogptq_cuda/autogptq_cuda_kernel_64.cu(61): error: no suitable conversion function from "__half_raw" to "int" exists

    /tmp/pip-req-build-gk5z7125/autogptq_cuda/autogptq_cuda_kernel_64.cu(1298): error: identifier "__hfma2" is undefined

    /tmp/pip-req-build-gk5z7125/autogptq_cuda/autogptq_cuda_kernel_64.cu(1298): error: identifier "__hfma2" is undefined

    /tmp/pip-req-build-gk5z7125/autogptq_cuda/autogptq_cuda_kernel_64.cu(1432): error: identifier "__hfma2" is undefined

    /tmp/pip-req-build-gk5z7125/autogptq_cuda/autogptq_cuda_kernel_64.cu(1432): error: identifier "__hfma2" is undefined

    /tmp/pip-req-build-gk5z7125/autogptq_cuda/autogptq_cuda_kernel_64.cu(1550): error: identifier "__hfma2" is undefined

    /tmp/pip-req-build-gk5z7125/autogptq_cuda/autogptq_cuda_kernel_64.cu(1550): error: identifier "__hfma2" is undefined

    /usr/local/lib/python3.8/dist-packages/torch/include/c10/util/irange.h(54): warning #186-D: pointless comparison of unsigned integer with zero
              detected during:
                instantiation of "__nv_bool c10::detail::integer_iterator<I, one_sided, <unnamed>>::operator==(const c10::detail::integer_iterator<I, one_sided, <unnamed>> &) const [with I=size_t, one_sided=false, <unnamed>=0]"
    (61): here
                instantiation of "__nv_bool c10::detail::integer_iterator<I, one_sided, <unnamed>>::operator!=(const c10::detail::integer_iterator<I, one_sided, <unnamed>> &) const [with I=size_t, one_sided=false, <unnamed>=0]"
    /usr/local/lib/python3.8/dist-packages/torch/include/c10/core/TensorImpl.h(77): here

While installing on host machine it works fine.
Hardware details
A100
Software version
auto-gptq: I've tried both 0.2.2 and 0.3.0 and also these versions from sources.
Docker image: nvcr.io/nvidia/pytorch:22.12-py3
Pytorch: I've tried with prebuilt 1.14.0 and manually installed 2.0.1+cu118
NVIDIA CUDA: 11.8.0 both in docker and in host machine.
Python: 3.8.10
To Reproduce

Setup docker container with nvcr.io/nvidia/pytorch:22.12-py3 image
Connect to container bash and try to install pip install auto_gptq==0.2.2

Expected behavior
auto_gptq installs successfully with cuda extension

This is how I build AutoGPTQ 0.2.2 in my Docker container
# Install AutoGPTQ, overwriting the version automatically installed by text-generation-webui
ARG AUTOGPTQ="0.2.2"
ENV CUDA_VERSION=""
ENV GITHUB_ACTIONS=true
ENV TORCH_CUDA_ARCH_LIST="8.0;8.6+PTX;8.9;9.0"
RUN pip3 uninstall -y auto-gptq && \
    pip3 install --no-cache-dir auto-gptq==$AUTOGPTQ

Note that I haven't tested this with the new AutoGPTQ 0.3.0 release yet. But you mentioned 0.2.2 specifically and the above should definitely work for that.

With your docker image it works as expected. Thank you.


Celo Rosetta Node not syncing and responding to Curl queries  - v0.9.1

I have a celo rosetta node which i have upgraded from 0.8.5 to 0.9.1.
For few days it was syncing fine and responding to curl queries but suddenly stopped .
Checking from the celo.log file i found that its not able to find peers .and static-nodes.json is deprecated. @piersy  Can you please help here
sudo docker run -d --name rosetta --rm -v "$PWD:/data" -v "${PWD}/logs:/logs" -p 8080:8080 us.gcr.io/celo-testnet/rosetta:latest
run
--geth.syncmode full
--geth.gcmode archive
--geth.network mainnet

Static-Node.json content
["enode://71e0261305352e35ed966945e07bca4c2a70a116dec4e91d22f2df1b3fc46a895b177a0161f1ffcc90e2e2dc4d3275bd2bf88b2be9e23f1b42406929702a27af@<IP_ADDRESS>:30303","enode://8487a519a1b871ae15fc9478fa1f3e6f4e16ee7ab6413158f0b1361a63d02ae44dfa8f1c352fcd4bd86a8455a2872b6c7941c47ebe8bc9680a0daa7b27116759@<IP_ADDRESS>:30303","enode://50ff65ab602d6288de3fae1ddb490dc63515fdeee607f51b8969db5bfcaa2d0ce26899071a82e2e316de4e8b768f1673945e591c34b8df333cbcb85951cfa942@<IP_ADDRESS>:30303","enode://febc17c8bfdafdac57b7c264c2a300a5b1a49d28d20aa1a61754b023a58bb9623804a6c8966c1255c03663725a57ca09f143cd4c4f6a24f06796c5ed7bdc01fd@<IP_ADDRESS>:30303","enode://e6a28651cfe953d397fc34be0fb077cd7c8b4c9e841fb3b7770acce3207d8b2133386a6df62d23b96fc7add023b233986c0a494c15948cc44a9cc873a779efac@<IP_ADDRESS>:30303","enode://4c393c7ee1555b12c11377d3722a7b37e68fcdadc11e4da28c8ad4b28367422a2890c48874c167e128f3bb1edff319a4cdbc327b0218246be51750014bee1297@<IP_ADDRESS>:30303","enode://5e0f4e3aaa096e2a2db76622b335cab4d3224d08d16cb11e8855a3a5f30c19d35d81a74b21271562e459495ab203c2f3a5a5747a83eb53ba046aeeb09aa240ff@<IP_ADDRESS>:30303","enode://d810b00775d3cc8b20fc0bb6fa1efefc222f56263bcc21109df714d856df5165eb41a5ad48603dc8108f5c09f103899a56fdae1d6756cc130d5222ab102ebd90@<IP_ADDRESS>:30303","enode://5180aa5e77289b4429888e79c7d0c9e8cda8bf9c2604ed114d4829d443bc61db71fa8e8c46c4eaa7eac17030f51dd5834b75d6634deb197d515d4f19d31787d6@<IP_ADDRESS>:30303","enode://f9484ead9f7ac4797e1db19a8258c5356be8dc617e1f91c4748f7fa9ba6ede65f70261a7a1052cef7ae84d9a615a5b97a07ef0c6f3c20e4292279fc94412a7a8@<IP_ADDRESS>:30303"]
Curl query log for latest block:
{"code":502,"message":"Celo node rpc request failed","retriable":false,"details":{"context":"not found:HeaderByNumber@not found"}}

I have a celo rosetta node which i have upgraded from 0.8.5 to 0.9.1.
For few days it was syncing fine and responding to curl queries but suddenly stopped .
Checking from the celo.log file i found that its not able to find peers .and static-nodes.json is deprecated. @piersy Can you please help here
sudo docker run -d --name rosetta --rm -v "$PWD:/data" -v "${PWD}/logs:/logs" -p 8080:8080 us.gcr.io/celo-testnet/rosetta:latest run --geth.syncmode full --geth.gcmode archive --geth.network mainnet

Static-Node.json content
["enode://71e0261305352e35ed966945e07bca4c2a70a116dec4e91d22f2df1b3fc46a895b177a0161f1ffcc90e2e2dc4d3275bd2bf88b2be9e23f1b42406929702a27af@<IP_ADDRESS>:30303","enode://8487a519a1b871ae15fc9478fa1f3e6f4e16ee7ab6413158f0b1361a63d02ae44dfa8f1c352fcd4bd86a8455a2872b6c7941c47ebe8bc9680a0daa7b27116759@<IP_ADDRESS>:30303","enode://50ff65ab602d6288de3fae1ddb490dc63515fdeee607f51b8969db5bfcaa2d0ce26899071a82e2e316de4e8b768f1673945e591c34b8df333cbcb85951cfa942@<IP_ADDRESS>:30303","enode://febc17c8bfdafdac57b7c264c2a300a5b1a49d28d20aa1a61754b023a58bb9623804a6c8966c1255c03663725a57ca09f143cd4c4f6a24f06796c5ed7bdc01fd@<IP_ADDRESS>:30303","enode://e6a28651cfe953d397fc34be0fb077cd7c8b4c9e841fb3b7770acce3207d8b2133386a6df62d23b96fc7add023b233986c0a494c15948cc44a9cc873a779efac@<IP_ADDRESS>:30303","enode://4c393c7ee1555b12c11377d3722a7b37e68fcdadc11e4da28c8ad4b28367422a2890c48874c167e128f3bb1edff319a4cdbc327b0218246be51750014bee1297@<IP_ADDRESS>:30303","enode://5e0f4e3aaa096e2a2db76622b335cab4d3224d08d16cb11e8855a3a5f30c19d35d81a74b21271562e459495ab203c2f3a5a5747a83eb53ba046aeeb09aa240ff@<IP_ADDRESS>:30303","enode://d810b00775d3cc8b20fc0bb6fa1efefc222f56263bcc21109df714d856df5165eb41a5ad48603dc8108f5c09f103899a56fdae1d6756cc130d5222ab102ebd90@<IP_ADDRESS>:30303","enode://5180aa5e77289b4429888e79c7d0c9e8cda8bf9c2604ed114d4829d443bc61db71fa8e8c46c4eaa7eac17030f51dd5834b75d6634deb197d515d4f19d31787d6@<IP_ADDRESS>:30303","enode://f9484ead9f7ac4797e1db19a8258c5356be8dc617e1f91c4748f7fa9ba6ede65f70261a7a1052cef7ae84d9a615a5b97a07ef0c6f3c20e4292279fc94412a7a8@<IP_ADDRESS>:30303"]
Curl query log for latest block:
{"code":502,"message":"Celo node rpc request failed","retriable":false,"details":{"context":"not found:HeaderByNumber@not found"}}

This is resolved now . Can be closed


⚠ Hakai ERDDAP has degraded performance

In 0ac47eb, Hakai ERDDAP (https://catalogue.hakai.org/erddap/index.html) experienced degraded performance:

HTTP code: 200
Response time: 20841 ms

Resolved: Hakai ERDDAP performance has improved in 2d34cf5 after 16 minutes.


Command failed with exit code 1: npm install

I meet an issues about: Command failed with exit code 1: npm install
but I do not know why Error: Command failed with exit code 1: npm install
at makeError (C:\Users\Yohager\AppData\Local\npm-cache_npx\c00c242a51a5200e\node_modules\execa\lib\error.js:59:11)

Close for now.


Trying to install ramda types via typings, but ccan

I am trying to install ramda types using ' > typings install ramda ', but by default its installing the 0.21 version. Have tried various commands and variations (for instance, changing the version manually , but it won't install the latest version).
Problem: I can't find pathSatisfies typings in the current version which i am using (0.21).

Made a PR here. Thanks for noting this.
Out of curiosity @blakeembrey, I see it's using fixed commits; so people wouldn't like just fix the newest version to our master branch huh?

@tycho01 Fixed commits was always a conscious decision in Typings. Sadly, it's also one of the issues I have with the NPM @types I'd like to solve. The reason you'd want fixed commits over automatically incrementing commits is that type definitions (especially third-party definitions) can be subject to breaking within the same semver source release. If projects automatically update, it means random CI breakages for dependents or worse, it means no one ever removes broken code because it "might break some one".
As NPM @types will eventually be replacing typings, my time isn't spent solving these problems anymore 😄

Preventing breaking huh. Time to break it before locking us out of publishing newer versions!

Made a new one there. I could be misinterpreting best practice, feel free to comment.

@tycho01 Sorry, there might have been a misunderstanding 😄  Internally with Typings, you can release whatever you want on the registry and it won't break users, it just prints a notice next time they install. It's pinned to the commit (more specifically, it's pinned to the timestamp it was added to the registry). That means you can release as many versions of 1.0.0 as you'd like, they still increment on the Typings registry and the old ones just get "hidden". (e.g. http://api.typings.org/entries/env/node/versions?deprecated=true).


postgresql: optional prometheus metrics exporter

This PR adds the option to run a side-car Prometheus metrics exporter for postgres. It requires no additional configuration and can be enabled be setting metrics.enabled=true

@k8s-bot ok to test

I change a minor detail: the metrics image is now specified as metrics.image and metrics.imageTag. I think this is more in line with the postgres image itself.

cc @swordbeta - Chart maintainer

rebased on master and bumped chart to 0.3.0

Rebased on master. ping @swordbeta

Whats the hold up? Are we still waiting on @swordbeta? /cc @viglesiasce

@databus23 going to test today for UX and will report back. Since we havent heard from @swordbeta in a while would you be willing to mark yourself as a maintainer of this chart? If so please add yourself to the Chart.yaml.

@viglesiasce Sure. I added myself. Is there a document about the review process. Not sure what's the difference between. What's expected of a code and of a UX review?


Use cross-env so react-recaptcha can install, build and be tested on Windows.

@appleboy Any reason why this pr can't be merged?

@hbowden Thanks.

Thanks to you as well.


Document ALL-CAPS methods in the MOP

The problem
As indicated by @lizmat in #3146, there's no single place that documents all these MOP methods.
Suggestions
Probably, create a new page for them. At any case, document, or centralize, or link:

[ ] DUMP
[ ] DUMP-PIECES
[ ] DUMP-OBJECT-ATTRS
[ ] AT-POS
[ ] ASSIGN-POS
[ ] DELETE-POS
[ ] EXISTS-POS
[ ] BIND-POS
[ ] AT-KEY
[ ] DELETE-KEY
[ ] EXISTS-KEY
[ ] ASSIGN-KEY
[ ] BIND-KEY
[ ] FALLBACK (this one is documented in the typesystem), actually

These are the ones I've been able to find looking at Mu, Array and others. There might be others...

These ones:

AT_POS_SLOW
AT_POS_CONTAINER
ASSIGN_POS_FAST_PATH
ASSIGN_POS_SLOW_PATH

Are private methods, and implementation details of AT-POS and ASSIGN-POS on Array. Same for INDEX-OOR I think...

OK, I'll delete these ones.

The actual list that needs to be documented I think, is:
The Positional role:
AT-POS
ASSIGN-POS
DELETE-POS
EXISTS-POS
BIND-POS
The Associative role:
AT-KEY
DELETE-KEY
EXISTS-KEY
ASSIGN-KEY
BIND-KEY

What about FALLBACK and, at least, DUMP?


Added optional (off by default) chunk treesitter support

This adds treesitter support to anything that uses the utils.get_chunk_range function via a new function called utils.get_chunk_range_ts.
This is disabled by default, the mod will need to have use_treesitter enabled in order to use this.
This does however fix the issues mentioned with whitespace languages (such as lua and python) not having proper context highlighting

Lua

Python

OK, I have now merged it. Thank you very much for your contribution~


No setup.py?

How does one install this package ?
Since this is a dependency for the current python-3 only versions of ipython, I need it. I'm using spack to build ipython and it's required dependencies from scratch. But since I can't find a relevant setup.py for this dependency, I'm unsure how one would automate the build for this package.
Here is the output of the failed build ( note that ^/bhl refers to the python installation on my system, ^ is the API for specifying a dependency and bhl refer to the first 3 characters of the Directed Acyclic Graph which spack makes for each package to uniquely specify it) :
[sajid@xrmlite packages]$ spack install py-backcall ^/bhl
==> bzip2 is already installed in /home/sajid/packages/spack/opt/spack/linux-centos7-x86_64/gcc-8.1.0/bzip2-1.0.6-5t7eiv6q6weyhyufgn6nm3t2yz4oqjbk
==> ncurses is already installed in /home/sajid/packages/spack/opt/spack/linux-centos7-x86_64/gcc-8.1.0/ncurses-6.0-zgqtbecq23nyxop5gnizfxacsytcn2x2
==> readline is already installed in /home/sajid/packages/spack/opt/spack/linux-centos7-x86_64/gcc-8.1.0/readline-7.0-emw45ab2kvite7cv62jcltwzzx5bvjce
==> gdbm is already installed in /home/sajid/packages/spack/opt/spack/linux-centos7-x86_64/gcc-8.1.0/gdbm-1.14.1-nntb2idfx2tvgkyizo6tgzmjhsgtnydu
==> zlib is already installed in /home/sajid/packages/spack/opt/spack/linux-centos7-x86_64/gcc-8.1.0/zlib-1.2.11-sh7mgsynw6uq2lkaqsv4ty5zerjfu7ww
==> openssl is already installed in /home/sajid/packages/spack/opt/spack/linux-centos7-x86_64/gcc-8.1.0/openssl-1.0.2n-ysm6u7hvbdqowutu2bwc3bs7qp6zm464
==> sqlite is already installed in /home/sajid/packages/spack/opt/spack/linux-centos7-x86_64/gcc-8.1.0/sqlite-3.22.0-so3okzmetdhxme3oewed24vd6cv66mql
==> python is already installed in /home/sajid/packages/spack/opt/spack/linux-centos7-x86_64/gcc-8.1.0/python-3.6.5-bhlbfycqieed3z4hkfm6zi5qa5fcv5mw
==> py-setuptools is already installed in /home/sajid/packages/spack/opt/spack/linux-centos7-x86_64/gcc-8.1.0/py-setuptools-39.0.1-vwpdnjgkmdqezqjnexr5pxwg4g4l5iwu
==> Installing py-backcall
==> Using cached archive: /home/sajid/packages/spack/var/spack/cache/py-backcall/py-backcall-0.1.0.tar.gz
==> Staging archive: /home/sajid/packages/spack/var/spack/stage/py-backcall-0.1.0-k32647qaqvi4bq3unuinykm3f35zknf2/master.tar.gz
==> Created stage in /home/sajid/packages/spack/var/spack/stage/py-backcall-0.1.0-k32647qaqvi4bq3unuinykm3f35zknf2
==> No patches needed for py-backcall
==> Building py-backcall [PythonPackage]
==> Executing phase: 'build'
==> Executing phase: 'install'
==> Error: ProcessError: Command exited with status 1:
    '/home/sajid/packages/spack/opt/spack/linux-centos7-x86_64/gcc-8.1.0/python-3.6.5-bhlbfycqieed3z4hkfm6zi5qa5fcv5mw/bin/python3.6' '-s' 'setup.py' '--no-user-cfg' 'install' '--prefix=/home/
sajid/packages/spack/opt/spack/linux-centos7-x86_64/gcc-8.1.0/py-backcall-0.1.0-k32647qaqvi4bq3unuinykm3f35zknf2' '--single-version-externally-managed' '--root=/'
See build log for details:
  /home/sajid/packages/spack/var/spack/stage/py-backcall-0.1.0-k32647qaqvi4bq3unuinykm3f35zknf2/backcall-0.1.0/spack-build.out

The output of spack-build.out :
[sajid@xrmlite backcall-0.1.0]$ cat spack-build.out
==> Executing phase: 'build'
==> '/home/sajid/packages/spack/opt/spack/linux-centos7-x86_64/gcc-8.1.0/python-3.6.5-bhlbfycqieed3z4hkfm6zi5qa5fcv5mw/bin/python3.6' '-s' 'setup.py' '--no-user-cfg' 'build'
running build
running build_py
creating build
creating build/lib
creating build/lib/backcall
copying backcall/__init__.py -> build/lib/backcall
copying backcall/backcall.py -> build/lib/backcall
copying backcall/_signatures.py -> build/lib/backcall
==> Executing phase: 'install'
==> '/home/sajid/packages/spack/opt/spack/linux-centos7-x86_64/gcc-8.1.0/python-3.6.5-bhlbfycqieed3z4hkfm6zi5qa5fcv5mw/bin/python3.6' '-s' 'setup.py' '--no-user-cfg' 'install' '--prefix=/home/sajid/packages/spack/opt/spack/linux-centos7-x86_64/gcc-8.1.0/py-backcall-0.1.0-k32647qaqvi4bq3unuinykm3f35zknf2' '--single-version-externally-managed' '--root=/'
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: option --single-version-externally-managed not recognized

The error message there looks like a bug in spack - it's passing a setuptools-only flag to a setup.py in the tarball from PyPI which doesn't use setuptools. It's not the only package to have done this:
https://github.com/spack/spack/pull/3587#issuecomment-289932563
Within the repo, packaging is now done with flit, so to install from the repo you would need to ensure flit is installed, and then run flit install inside the directory. PyPI tarballs will continue to have setup.py for a while, until PEP 517 is well supported in pip.

Thanks! I changed the base type to python package and removed the py-setuptools dependency and now it works!


N boxes / N selected widget to a status bar

Example showing the number and label of the selected box:


algomation website link expired

https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/sorting/quick-sort/QuickSortInPlace.js
code in line 7
The algomation visualization website is expired, It's now come be a gambling website

Fixed in 6c335c5d833fd2a68342cf3648a3174bed8c01ad


Next Stack Club meeting tomorrow at 9AM PST (Friday Nov. 9th)

Stack-club members,
We will have our next Stack Club zoom meeting tomorrow, Friday, Nov. 9th. At the moment, we don't plan to have any specific notebook walk-throughs.  We will start with a stand-up round, where you can mention your progress, and what you'd like to accomplish during the session, with possible more extended discussion of problems you might have encountered.  And, we will continue hacking for the rest of the period.
The usual zoom coordinates: Friday, 9AM PST, using http://stanford.zoom.us/j/946390572;
if you are connecting from outside of the US, note that California returned to the Standard Time last weekend.
--Alex, Greg and Phil

Reminder:  We are meeting in a few minutes.  --Greg


Reproudce DINO-R50  and get a higher result as 49.9 with batch_size=1 and nGPU=8

I reproduce DINO with dino_r50_4scale_12ep.py and set batch_size=1.  I use max_iter=90000 x 2  and drops learning rate at 165000th iteration. Then, I got a result higher than  this repo reports. Since this result (49.9) is obviously better than the current result (49.2) so there may be something wrong with my setting? Or this may be a better training setting than the default one (batch size=2).
[11/30 21:53:00 d2.evaluation.fast_eval_api]: COCOeval_opt.accumulate() finished in 4.95 seconds.
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.499
 Average Precision  (AP) @[ IoU=0.50      | area=   all | maxDets=100 ] = 0.674
 Average Precision  (AP) @[ IoU=0.75      | area=   all | maxDets=100 ] = 0.546
 Average Precision  (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.326
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.531
 Average Precision  (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.645
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=  1 ] = 0.380
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets= 10 ] = 0.659
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.731
 Average Recall     (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.573
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.772
 Average Recall     (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.883
[11/30 21:53:00 d2.evaluation.coco_evaluation]: Evaluation results for bbox:
|   AP   |  AP50  |  AP75  |  APs   |  APm   |  APl   |
|:------:|:------:|:------:|:------:|:------:|:------:|
| 49.890 | 67.436 | 54.627 | 32.601 | 53.056 | 64.499 |

I reproduce DINO with dino_r50_4scale_12ep.py and set batch_size=1. I use max_iter=90000 x 2 and drops learning rate at 165000th iteration. Then, I got a result higher than this repo reports. Since this result (49.9) is obviously better than the current result (49.2) so there may be something wrong with my setting? Or this may be a better training setting than the default one (batch size=2).
[11/30 21:53:00 d2.evaluation.fast_eval_api]: COCOeval_opt.accumulate() finished in 4.95 seconds.
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.499
 Average Precision  (AP) @[ IoU=0.50      | area=   all | maxDets=100 ] = 0.674
 Average Precision  (AP) @[ IoU=0.75      | area=   all | maxDets=100 ] = 0.546
 Average Precision  (AP) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.326
 Average Precision  (AP) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.531
 Average Precision  (AP) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.645
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=  1 ] = 0.380
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets= 10 ] = 0.659
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=   all | maxDets=100 ] = 0.731
 Average Recall     (AR) @[ IoU=0.50:0.95 | area= small | maxDets=100 ] = 0.573
 Average Recall     (AR) @[ IoU=0.50:0.95 | area=medium | maxDets=100 ] = 0.772
 Average Recall     (AR) @[ IoU=0.50:0.95 | area= large | maxDets=100 ] = 0.883
[11/30 21:53:00 d2.evaluation.coco_evaluation]: Evaluation results for bbox:
|   AP   |  AP50  |  AP75  |  APs   |  APm   |  APl   |
|:------:|:------:|:------:|:------:|:------:|:------:|
| 49.890 | 67.436 | 54.627 | 32.601 | 53.056 | 64.499 |

wow! nice results~, I was wondering whether do you set a larger train.max_iter or not~, would you like to provide your checkpoints and config for us by pull request,  we are very welcome to new contributors : )

@FelixCaae Your result is normal. You use a smaller total batch size of 8 and more training iterations which leads to a better performance in the early stage of training. However, if you continue to run it until convergence, the result should be no higher than the result with a total batch size of 16. Actually, we have observed the same phenomenon when training other models.

As there is no more activity, I am closing the issue~ Feel free to reopen it if necessary. Or you can leave a new issue if you meet some other problems.


django-simple-history integration missing "History" link on object admin page

Hey there! I think this project is awesome! I was implementing it with django-simple-history into my Django application and noticed that the object page does not link to the history page like it would if using the default Django Admin. This can be seen on the demo site:
Object Page: https://demo.unfoldadmin.com/admin/formula/driver/56/change/
History Page: https://demo.unfoldadmin.com/admin/formula/driver/56/history/
There is no link between the two (unless I'm blind).
When using the default admin a small "history" button would show up that would link users to /history:

Is there something I need to configure to get this button to show up?

Here.

You can also use custom row actions or detail actions

@lukasvinclav I'm on version 0.14.0 and also finding this. On version 0.13.0, the link showed up where @xblzbjs is showing above. Additionally I'm getting the same issue with the django-guardian object permissions button. I've added the required unfold apps in the INSTALLED_APPS setting as described in the readme and collected static but to no avail.

The fix #174 was already released so you can update. Regarding links, user related links are staying in the user dropdown but global links are in the new release available right above the main changelist table. You can find example here in the demo:
https://demo.unfoldadmin.com/admin/formula/driver/56/change/

Thanks!

Thanks for fixing this! @lukasvinclav


Backend Code to Add

It contains the following Code:
-> Sign-Up
-> Login
-> Question and Answer Model to store them,
USING REST_API

Code with commit "Backend" and "update views.py" have been added.