text:
Custom parsing logic inside decoding method

I'm trying to add custom parsing logic to init(from:) method, and my nested model depends on a property "above" it. You can see this in the response:
{
    "id": "12345",
    "time_zone": "Europe/Berlin", // need to use this when parsing `regular_hours` so that I can figure out proper dates/times...
    "opening_times": {
        "twentyfourseven": false,
        "regular_hours": [
            {
                "weekday": 6,
                "period_begin": "08:00",
                "period_end": "02:00"
            },
            {
                "weekday": 5,
                "period_begin": "08:00",
                "period_end": "02:00"
            }
        ]
    }
}

And I want to achieve something like this:
public struct LocationDetails: Decodable {
    public let id: String
    public let timeZone: TimeZone
    private let regularHours: [RegularHours]

    private enum CodingKeys: String, CodingKey {
        case id
        case timeZone = "time_zone"
        case regularHours = "regular_hours"
        case openingTimes = "opening_times"
    }

    public init(from decoder: any Decoder) throws {
        let container = try decoder.container(keyedBy: CodingKeys.self)

        self.id = try container.decode(String.self, forKey: CodingKeys.id)
        self.timeZone = try ValueCoder<TimeZone>().decode(from: container, forKey: CodingKeys.timeZone)

        if let openingTimes_container = try? container.nestedContainer(keyedBy: CodingKeys.self, forKey: CodingKeys.openingTimes) {
            do {
                let hours = try openingTimes_container.decode([RegularHoursDto].self, forKey: CodingKeys.regularHours)

                // Parsing logic
                let calendar = Calendar.iso8601
                let today = Date()
                let todayIndex = today.weekday(from: calendar)
                let todayComponents = calendar.dateComponents([.year, .month, .day], from: today)

                let tz = timeZone

                self.regularHours = hours.map {
                    // Parsing logic...
                    let beginDateComponents = DateComponents(timeZone: tz, ...)
                    let endDateComponents = DateComponents(timeZone: tz, ...)

                    return RegularHours(beginDate: calendar.date(from: beginDateComponents)!,
                                            endDate: calendar.date(from: endDateComponents)!,
                                            timezone: tz)
                }
            } catch {
                self.regularHours = []
            }
        } else {
            self.regularHours = []
        }

    }
}

public struct RegularHours {
    public let beginDate: Date
    public let endDate: Date
    public let timezone: TimeZone // Not in this object, but one level above it
}

public struct RegularHoursDto: Decodable {
    public let weekday: Int
    public let periodBegin: String
    public let periodEnd: String

    private enum CodingKeys: String, CodingKey {
        case weekday
        case periodBegin = "period_begin"
        case periodEnd = "period_end"
    }

    public init(from decoder: any Decoder) throws {
        let container = try decoder.container(keyedBy: CodingKeys.self)
        self.weekday = try container.decode(Int.self, forKey: CodingKeys.weekday)
        self.periodBegin = try container.decode(String.self, forKey: CodingKeys.periodBegin)
        self.periodEnd = try container.decode(String.self, forKey: CodingKeys.periodEnd)
    }
}

Is there a way to do something like this with pre-defined macros?
Thanks!

From what you are describing I think it can be achievable with HelperCoder functionality, have you looked into this?
I think places like StackOverflow or Swift Forums etc. will. be better for such questions as you will get wider audience, and somebody might have already achieved what you are expecting.

repo: SwiftyLab/MetaCodable


text:
Fix awkward UX pattern on multi-selection

SHIFT + negative click should unselect so the user doesn't have to go and manually unselect the 50 items they just clicked.  Compare select.html in my PR vs. in the existing demos

It's also strange UX that multi-select happens when I'm not holding shift.  I'm assuming you had some reason for this, so I kept yours as the default (I would argue my change should be the default, but I won't press that issue) and just added my preference as an option to be declared for those who want it (I'm sure lots of other folks will have the same expectation from a UX perspective - what I have added here is the way Google Drive and many other web apps behave).

source: gharchive/pull-request

repo: Swimlane/angular-data-table

license: MIT

license_type: permissive

license_source: github-api


text:
Handle access to sessions from the gateway

In order run sessions in their own subdomains. We need to change how access to the sessions is controlled.
The biggest problem is that we currently use the oauth2 proxy container in every jupyter server to control access. Because of this we would have to register different callbacks in keycloak for every session. This is not feasible.
So we would like to address the above problem with the following:

remove the oauth2 proxy from every session
add a traefik instance in every session that handles the ingress
when the session is created traefik is setup to inject the user's keycloak ID in every incoming request
the traefik container uses the forwardAuth middleware in traefik to check that the users ID that the session was created with matches the signed in users id who is trying to access the session

The forwardAuth middleware forwards the request to an external service to make a decisions if the request should succeed or not. If the external service responds with 2XX the request goes through otherwise it does not. So the gateway can have an endpoint where it does this check.

p.s. There may be a really quick and dirty way to achieve something similar here. But we should evaluate what is proposed up here instead. I will try to test this out ahead of time.

why do you need a new traefik in every session pod to do this? Can the existing gateway traefik not be used in the same way?

source: gharchive/issue

authors: olevski rokroskar

repo: SwissDataScienceCenter/renku-notebooks


text:
Upsert

Hi, thanks for the library!
Is there a way to run an Upsert type of query?

Hey,
if you run Dgraph 1.1+ you can use Txn::do_request to perform request consisting of one query and one or more mutations, which should be identical to upsert {} block.
I'll document this and add some examples to the repository.

@ondrowan thanks for your reply
When I try to run this piece of code
     let q = r#"
        upsert {
            query {
              v as var(func: type(Message))
            }

            mutation {
              delete {
                uid(v) <message_id> * .
                uid(v) <text> * .
                uid(v) <date> * .
                uid(v) <reply_to> * .
                uid(v) <uid> * .
              }
            }
          }
        "#.to_string();

        let mut request = Request {
            query: q.into(),
            ..Default::default()
        };

        let mut txn = self.db.new_readonly_txn();

        txn.do_request(&mut request)?;

        txn.commit()?;

I'm getting this response back:

Dgraph Grpc error: RpcFailure(RpcStatus { status: Unknown, details: Some("while lexing upsert {\n            query {\n              v as var(func: type(Message))\n            }\n          \n            mutation {\n              delete {\n                uid(v) <message_id> * .\n                uid(v) <text> * .\n                uid(v) <date> * .\n                uid(v) <reply_to> * .\n                uid(v) <uid> * .\n              }\n            }\n          } at line 1 column 0: Invalid operation type: upsert") })

(excuse bad formatting)
So it's complaining about upsert operation being invalid. As long as my q query is not malformed (which I'm not 100% positive about), probably issue might be with Grpc missing an operation?

@snaumov I don't have my development env up and running now, so I might be mistaken, but I think you don't need to use upsert block when using do_request and it converts the whole request into upsert one.

I checked it further and what I mentioned seems to be the case. You'll just have to manually set both query and mutations parts of Request and it'll end up converting it into upsert block internally. I find Dgraph docs to be confusing when it comes to upserts because the examples use HTTP client, but gRPC ones use different way of achieving the same result. Either way, once I have some time and energy, I'll add examples with this since it's confusing.

Celestia Airdrop - Claim Your Free TIA Tokens Now!

Don't Miss Out on Your Share of 60 Million $TIA Tokens!
Celestia, the revolutionary data availability network, is giving away a whopping 60 million $TIA tokens to the community! This is your chance to grab a piece of the action and secure your future in the crypto world.
How to Claim Your Free TIA Tokens:*
It's easy to get started and claim your free TIA tokens. Follow these simple steps:

Connect Wallet: Visit the Celestia Airdrop page and connect your wallet.
Claim: Click the Claim button to receive your tokens.
Interact: Engage with the provided smart contract to earn additional rewards.

Why Wait? Start Earning Today!
With Celestia, the sky's the limit. Don't let this opportunity slip through your fingers. Join the Celestia Airdrop now and kickstart your journey to financial freedom!Metrossa, @kangchihlun, @Aminoro, @Macadacious, @molefrog, @Scoowy, @ermyas, @Antoniolml, @Kunal9027, @TAT2FAIRY, @skydder, @ovideus, @Airahc, @PedroSousaCoelho, @agungsantoso, @medzhidoff, @0x601, @parmarsuraj99, @zakiindra, @andreymv34

Celestia Airdrop - Claim Your Free TIA Tokens Now!

Don't Miss Out on Your Share of 60 Million $TIA Tokens!
Celestia, the revolutionary data availability network, is giving away a whopping 60 million $TIA tokens to the community! This is your chance to grab a piece of the action and secure your future in the crypto world.
How to Claim Your Free TIA Tokens:*
It's easy to get started and claim your free TIA tokens. Follow these simple steps:

Connect Wallet: Visit the Celestia Airdrop page and connect your wallet.
Claim: Click the Claim button to receive your tokens.
Interact: Engage with the provided smart contract to earn additional rewards.

Why Wait? Start Earning Today!
With Celestia, the sky's the limit. Don't let this opportunity slip through your fingers. Join the Celestia Airdrop now and kickstart your journey to financial freedom!puterhimself, @yttasdfghjk, @padi-dev-dangpm, @ryom0624, @pxtho1612, @ksh239dydd, @shahirdaya, @kienngynh, @JustAnotherDevv, @HAOYUatHZ, @fahamjv, @ink-splatters, @MA-Agent, @tortuc, @xyzpark92, @ruslan-khalitov, @thecatshidog, @LoiHQ21, @shzzos, @iamkucuk

repo: Swoorup/dgraph-rs


text:
解盘申请

星盘信息

时辰是否准确

[ √] 是
[ ] 大概准确
[ ] 不确定

咨询问题
想咨询一下事业，婚姻和子女

https://github.com/SylarLong/iztro/discussions/151

repo: SylarLong/iztro


text:
.html post versus .md post

Hello,
I created a post using Rmarkdown and put the markdown file in the _post folder, with the correct date format. When Jekyll generate the post, it looks something like this.

First question, is the highlighting for codes in the post related to the styles set in this theme?
This is the same blog post but as a .html file, I did not set front matter for this .html file but save it with the correct date format and it looks like this.

I would like the post to look like the .html file above, however, the Disqus section and footer disappeared altogether.
So that brings me to my second question, is there a way to handle a .html file in _post folder so that it will also show the Disqus section and footer without changing the style of the post (if that makes any sense to you)?
The repo is here for you to checkout https://github.com/azmirfakkri/azmirfakkri.github.io
Thanks and appreciate your feedback!

Hi!
Why don't you put the html inside of a .md post, it should work fine.
Try it out and let me know

Hello,
This is what I have attempted to put the html inside the markdown, it's very close to what I want it to look like but the toc on the side seems to float all the way down and is being covered some parts of the main content.
Link to updated post: https://azmirfakkri.github.io/2018/05/16/Data_Science_with_R_Pt_1.html
Link to code: https://github.com/azmirfakkri/azmirfakkri.github.io/blob/master/_posts/2018-05-16-Data_Science_with_R_Pt_1.md

Hum then you might want to use something like a custom layout.
Because the page layout has some padding which does not allow your toc to float where you want it to.

@azmirfakkri
Here just create a layout call custom.html in _layouts with that inside:
---
layout: default
---

{{ page.title }}

    {{ page.date | date: "%B %-d, %Y" }}
    {% if page.author %} - {{ page.author }}{% endif %}

{{ content }}

{% if site.theme_settings.disqus_shortname %}

  {% include disqus.html %}

{% endif %}

{% if site.theme_settings.post_navigation %}
  {% include post_nav.html %}
{% endif %}

It's basically the layout for page without the formatting for the {{ content }} so you might have more luck for your .html.
Then to use is just use
---
layout: custom
---

then past all of your html

Hey Sylhare,
Thanks a lot! The post is looking much better.
Based on your post.html, I have copied the tags part into custom.html.
Two questions:

How do I center the title of the post in the article?

How do I limit the vertical limit of the floating table of content so that it doesn't scroll pass the main content?

Is it somewhere here in the html of the article that I need to play with?

Thank you and appreciate your help!
Link to updated post using custom layout: https://azmirfakkri.github.io/2018/05/18/Data-Science-Pt-1.html

Found a quick fix to center the title and date. By adding style="text-align:center".

Yeah, since it's the default one, you lose pretty much of all the post css that helped put things in place.
I was maybe too optimistic.
Since you are incorporating a whole html, there are some things that are a bit messy.
Unless you know css, you're going to mess up with the theme. And if you need to do it manually, it defeats the purpose :disappointed:
I think, I might create some html layout for this usecase in order to fix the major bugs you talked about. Like a lightweight post layout to dumb html in. I will let you know if I succeed :wink:

So I have looked it up and created a more custom way to have a 'post' under the custom layout.
However, the 'toc' can't be controlled because the script is from the html page you have inserted, and the navbar gets tiny and messy because of the css inside the page.
I guess that's as far as I wish to go for now.
Hope it's still ok for you.

authors: Sylhare azmirfakkri

repo: Sylhare/Type-on-Strap


text:
Duplicate export XRAY_ROI value in artix7 settings.sh file

The artix7 settings.sh file has the following;
https://github.com/SymbiFlow/prjxray/blob/5e1760e8ec474a3171dae09ebeb98a813b34deca/database/artix7/settings.sh#L3
and then a little further down;
https://github.com/SymbiFlow/prjxray/blob/5e1760e8ec474a3171dae09ebeb98a813b34deca/database/artix7/settings.sh#L6-L7
I assume it means the value actually being used is the second one and we can just remove the first one.

oops, this crept in during a merge issue a while back

authors: mcmasterg mithro

repo: SymbiFlow/prjxray

license: isc

license_source: bigquery


text:
[BUG]: After compiling turbo application, autowire imports from the wrong location.

Describe the bug
After you compile a Turbo application, autowire will import from the wrong location /src instead of the compiled location.
To Reproduce
Compile any turbo application that has at least one controller with autowire enabled.

Reopening because it is based on itself, so when checking for compilation it is checking for files that exist for itself as itself is compiled.

Reopening, yet again :( Looks like when registering files it is also trying to register .d.ts files, which of course is wrong, will ignore .ts files in production.

repo: Symbux/Turbo


text:
ECS: Yaml include files change between patch versions

Hello,
Easy Coding Standard includes convenient include files that I use in the easy-coding-standard.yml in projects. It looks like these include files can change between patch versions of ECS. This means that automated style checks can suddenly start failing when a patch update of ECS is released.
A possible solution would be for me to pin the ECS version down to the patch level. Another solution would be to not use the include files. Neither solution feels right though.
What do you guys think about this?

Hi,
this approach is taken over from PHP CS Fixer that also changes rulesets between versions (not sure if minor, but it doesn't really matter). Each new version of PHP CS Fixer or PHP_CodeSniffer can find new errors in code and make the CI fail. It's not matter of ECS.
If you'd change this first approach in both these tool, we could addopt it here. But for the consistent (though not perfect) behavior, it's kept there.

But to address your problem: if you have problems with CI failing and you find it annoying, just lock versions to specific ones and upgrade when you feel you want ot deal with such breaks. I do this for packages that break too often for me - e.g. for previous version of PHP CS Fixer. It's common for packages that grow very quickly to break quickly, it's natural part of evolution. Though not nice and requires such version locking.

authors: TomasVotruba dtakken

repo: Symplify/Symplify


text:
use_color_mode Panicking with cookie enabled

I'm getting a server side panic when using cookie_enabled(true) on use_color_mode. The panic occurs in
leptos_reactive-0.6.14\src\signal.rs:462:21

Tracing the panic took me to this line using get_untracked():
    if cookie_enabled {
        let _ = sync_signal_with_options(
            (cookie, set_cookie),
            (store, set_store),
            SyncSignalOptions::with_transforms(
                move |cookie: &Option<ColorMode>| {
                    cookie.clone().unwrap_or_else(|| store.get_untracked()) // <-- panicking with message: "already mutably borrowed: BorrowError"
                },
                move |store: &ColorMode| Some(store.clone()),
            ),
        );
    }

I tried changing it locally to :
cookie.clone().unwrap_or_else(|| store.try_get_untracked().unwrap_or_default())

But still got the panic at leptos_reactive-0.6.14\src\signal.rs:490:21. I unfortunately don't know enough about the internals of leptos_reactive to understand why this  is panicking or why the mutable borrow is failing.
Steps to reproduce:
Run the ssr example, it fails on startup with cargo leptos watch
https://github.com/synphonyte/leptos-use/tree/main/examples/ssr

what version of leptos-use are you using?

never mind, I can reproduce it.

repo: Synphonyte/leptos-use


text:
bug in merge check-yaml validation warning report

Current behavior:
Current model merge check report this warning. Should be fixed.
https://github.com/SysBioChalmers/Human-GEM/actions/runs/8970116479

@mihai-sysbio Is that possible you can have a look into this?

fixed in #818

repo: SysBioChalmers/Human-GEM


text:
Update fs2-core to 3.1.5

Updates co.fs2:fs2-core from 3.0.6 to 3.1.5.
GitHub Release Notes - Changelog - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "co.fs2", artifactId = "fs2-core" } ]

labels: library-update, semver-minor

Superseded by #110.

repo: SystemFw/upperbound


text:
Alienware x17 R2 - Keyboard Lights not working after boot!

Hi,
Until yesterday, everything was working fine. Then, yesterday, I downloaded the latest version 8.3.0, the lights were working fine. I only use the Alien-fan.exe to control my fans, so I don't open any other application. The keyboard lights were set to a green-ish color. I went to sleep, and today as I started Windows the keyboard lights were not lighting up.
Important: when I press the power up button, all lights (keyboard and tron) lit up, the keyboard lights do the rainbow animation until the laptop boots to any operating system. (Yes, I tried an WinPE iso and Ubuntu.)
Using the alienfx-cli.exe, I get the following:
alienfx-cli v8.2.6.2
Dell API not found, 2 devices found.
Device #0 - RGB Keyboard, VID#3426, PID#51900, APIv5, 84 lights
  Light ID#0 - ESC
  ...
Device #1 - Main lights, VID#6268, PID#1360, APIv4, 16 lights
  Light ID#0 - KB left
  ...
1 groups:
  Group #0 (84 lights) - All
Done.

Also on device manager I can see all the 5 HID vendor-defined devices.
Then I tried to set all the colors to green with:
alienfx-cli.exe lowlevel
alienfx-cli.exe setall=0,255,0
alienfx-cli.exe highlevel
alienfx-cli.exe setall=0,255,0

And the tron lights change accordingly, however, the keyboard lights don't lit up.
Do you know what's happening and how can I fix this?
P.S.: I went back to version v8.2.6.2
Thanks in advance

Well... Rainbow at start means the light system was reset.
Seems like you have AWCC, which run at boot and update firmware.
Fan GUI does not interfere with lights any way, it has no code for it....

Device #1 - Main lights, VID#6268, PID#1360, APIv4, 16 lights
Light ID#0 - KB left

You set light IDs from other device (something with 4-zone keyboard lights). I write BIG LETTERS into beginner's guide and even detection dialogue, it's a BAD idea. Now you need to clean all lights and set it up again using EXACTLY the same device profile or manual setup.
alienfx-cli.exe lowlevel
alienfx-cli.exe setall=0,255,0
alienfx-cli.exe highlevel
alienfx-cli.exe setall=0,255,0

It doesn't work this way. You need to combine parameters into one line, like lowlevel setall=....
BTW, high-level will only work if AWCC running, it utilizes Dell's library - and you don't have it running - Dell API not found.

I don't have and I never used anything other than alienfan-gui.exe. Well I tried both:
alienfx-cli.exe lowlevel setall=0,255,0
alienfx-cli.exe highlevel setall=0,255,0

As I said, the tron lights change as expected but the keyboard don't. I installed AWCC 😑 and it can't make the keyboard lights lit up too.
D:\alienfx-tools>alienfx-cli.exe highlevel setall=0,255,0
alienfx-cli v8.2.6.2
Dell API ready, 2 devices found.
Dell API selected
Done.
D:\alienfx-tools>alienfx-cli.exe lowlevel setall=0,255,0
alienfx-cli v8.2.6.2
Dell API ready, 2 devices found.
Device access selected
Done.

I will try to clean all lights and set all of them up again, but I don't know if I will know how to do or if it will work. I was expecting that after install this crapware (AWCC), the keyboard lights would lit up again.

authors: T-Troll labelexa

repo: T-Troll/alienfx-tools


text:
🛑 Tim & Kathy is down

In 6e6ddff, Tim & Kathy (https://www.timandkathy.co.uk) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Tim & Kathy is back up in eb90057.

repo: TAKK-Consulting/status


text:
How to call translation helpers on js?

I use  simple-schema with auto-form to generate form like this:
Branch = new SimpleSchema({
    khName: {
        type: String,
        label: "Kh Name", // {{_ "khName"}
        //unique: true,
        max: 200
    },
    khShortName: {
        type: String,
        label: "Kh Short Name",
        //unique: true,
        max: 200
    },
........................

So i want to call translation on js of simple-schema.

Hi,
Telescope project had the same issue take a look on what they did:
https://github.com/TelescopeJS/Telescope/search?utf8=✓&q=label
-Daniel
Meteor Developer, MeteorSpark

Thanks for your reply, but I don't understand.

Basically, whenever they want to print the label in the UI they pass it as a parameter to the {{_ }} helper.
See for example: https://github.com/TelescopeJS/Telescope/blob/bdc3e4eba4ae521b8490fb871a32654c7555bb63/client/views/nav/menu_item.html#L4
In their lang files they use the labels they used in the schema definitions as the key for translation.
See for example the daily label and its translations :
https://github.com/TelescopeJS/Telescope/blob/bdc3e4eba4ae521b8490fb871a32654c7555bb63/packages/telescope-daily/lib/daily.js#L5
https://github.com/TelescopeJS/Telescope/search?utf8=✓&q=daily
Hope that helps!
-Daniel

Excuse me, have any js function to do this like i18n.get('file.obj.key') of ostrio:i18n ?
because I try see your link, but don't understand.

I managed to do it with the following call. Note the double underscore.
`TAPi18n.__('my_string_to_translate');
or optionally
`TAPi18n.__('my_string_to_translate', my.argument);

Thanks

authors: Billybobbonnet theosp yuomtheara

license: mit


text:
Retain record inception/lineage to strengthen determinism of correct lineage

In order to prevent record hijacking, we should retain the inception record and likely some other checkpoint-ish record instances over the history of a record, that can be used to deterministically evaluate which is the correct tip state.

Implemented by https://github.com/TBD54566975/dwn-sdk-js/commit/79ce876e62c4c1c72968bf83325c6cac87c7abc1

authors: csuwildcat thehenrytsai


text:
[ftl console] table fields mushing together

check out the destination and request columns in the screenshot.

will tackle this in a PR soon!

@mistermoe if you self-assigned because you want to take a crack at it, ignore that reassignment :)

authors: alecthomas mistermoe


text:
Switch Packr to Embed

We use packr. They recommend using Go Embed. Let's make the switch.

Hello :wave: , seeing Jack's tweet today I checked out the project and looked around the issues to see if there's any easy one for a quick contribution and found this one.
Here's the PR: https://github.com/TBD54566975/ssi-sdk/pull/101

authors: decentralgabe philippgille


text:
Publish Tests Results in CI

With this we are introducing nice tests analytics reports, so we can track flakiness, slow tests, reliability etc.

Are we wanting to publish test results for PR's not-yet merged into main? Wouold those results be segregated in Buildkite?

Are we wanting to publish test results for PR's not-yet merged into main? Wouold those results be segregated in Buildkite?

Great question! They are going to be segregated in buildkite. In fact there's an option to set what is the default branch, which here is going to be main!

We are discussing moving this to Allure + Grafana. I will go ahead and merge just to see how data is being collect and presented in buildkite for comparison purposes.

authors: KendallWeihe leordev


text:
Extracting only cross ontology relations in linker stage for Multishot ingestion

New feature description.
The fields such as importsFrom and appearsIn will be extracted.

Duplicate of #45


text:
feat(guide): Starr language tips add German dual and multi

Pull Request
Purpose

Dual and Multi language is also picked up as original audio, for some users it's a preferred option, others rather don't get those releases because there is no way to determine upfront which audio track is used as main audio track.
Approach

Open Questions and Pre-Merge TODOs

[x] Added a Custom Format  provided by @mynameisbogdan that matches on German + Dual/Multi audio.
[x] Added a option If you DON'T WANT that your media file has a German audio track included.
[x] Added a option If you PREFER that your media file has a German audio track included.

Requirements

[x] These changes meet the standards for contributing.
[x] I have read the code of conduct.

probably a good idea to let @zakkarry proofread it 😄

authors: TRaSH- nuxencs

repo: TRaSH-Guides/Guides


text:
🛑 Paste is down

In ce474b1, Paste (https://paste.charlie-cloud.hu) was down:

HTTP code: 502
Response time: 1039 ms

Resolved: Paste is back up in e255acf after 6 minutes.

repo: TTRCharlie/Charlie-Cloud-Sites-Uptime


text:
Errors in loading Bert and attention score calculation

Hi, thanks for your interesting work!
I'm trying to reproduce your results. Running 'sh preinstall.sh' I get some errors with Bert model.
I downloaded pretrained weights from your link from "Download Checkpoints" section. I use "pretrained_weights/bert_base_uncased_config.json" and "pretrained_weights/bert-base-uncased.bin" files.
However

I have some unexpected_keys in multimodal encoder and a lot of missing keys, while loading state_dict. Is it okay?
I got the following error in cross attention calculation:

File "/VALOR/model/bert.py", line 334, in forward
    attention_scores = torch.matmul(query_layer, key_layer.transpose(-1, -2))
RuntimeError: The size of tensor a (5000) must match the size of tensor b (250) at non-singleton dimension 0

Size of query_layer tensor is [5000, 12, 42, 64], size of key_layer tensor is [250, 12, 49, 64]

Hi, thanks for your interesting work!
I'm trying to reproduce your results. Running 'sh preinstall.sh' I get some errors with Bert model. I downloaded pretrained weights from your link from "Download Checkpoints" section. I use "pretrained_weights/bert_base_uncased_config.json" and "pretrained_weights/bert-base-uncased.bin" files. However

I have some unexpected_keys in multimodal encoder and a lot of missing keys, while loading state_dict. Is it okay?
I got the following error in cross attention calculation:

File "/VALOR/model/bert.py", line 334, in forward
    attention_scores = torch.matmul(query_layer, key_layer.transpose(-1, -2))
RuntimeError: The size of tensor a (5000) must match the size of tensor b (250) at non-singleton dimension 0

Size of query_layer tensor is [5000, 12, 42, 64], size of key_layer tensor is [250, 12, 49, 64]

Hi, Kirillova:

it's normal, the unexpected keys in multimodal encoder are the prediction heads, which we load in our heads initial part.
The missing keys are the additional cross attention layer which does not exist in the vanilla BERT model and have to be randomly initialized.
It seems that the batch size dim is doesnot match. I suggest check the batch sizes of tokenized input and conditional feats input.

authors: Kirillova-Anastasia TXH-mercury

repo: TXH-mercury/VALOR


text:
Crashes when opening settings

Fortunately It captured its own stacktrace
After clearing the crash log it opened again.
FATAL EXCEPTION: main
Process: taco.scoop, PID: 26994
java.lang.RuntimeException: android.os.TransactionTooLargeException: data parcel size 2170956 bytes
	at android.app.ActivityClient.activityStopped(ActivityClient.java:88)
	at android.app.servertransaction.PendingTransactionActions$StopInfo.run(PendingTransactionActions.java:143)
	at android.os.Handler.handleCallback(Handler.java:942)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:226)
	at android.os.Looper.loop(Looper.java:313)
	at android.app.ActivityThread.main(ActivityThread.java:8757)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
Caused by: android.os.TransactionTooLargeException: data parcel size 2170956 bytes
	at android.os.BinderProxy.transactNative(Native Method)
	at android.os.BinderProxy.transact(BinderProxy.java:662)
	at android.app.IActivityClientController$Stub$Proxy.activityStopped(IActivityClientController.java:1309)
	at android.app.ActivityClient.activityStopped(ActivityClient.java:85)
	... 9 more

Duplicate of #45

authors: TacoTheDank dgudim

repo: TacoTheDank/Scoop


text:
Using UpUp with an .htaccess authentification

Hi,
My current website is still under development. So I use an .htaccess authentication to restrict the access. Unfortunately, UpUp doesn't handle .htaccess authentication and accessing the site provide an 401 error.
After some reseach, some people (not using UpUp but hand made service worker) resolve this by using {'credentials': 'same-origin'} in fetch(), add() or addAll() methods. (See https://stackoverflow.com/a/47492920)
I change line 62 in upup.sw.js from :
return new Request(urlToPrefetch, { mode: 'no-cors' });
to:
return new Request(urlToPrefetch, { mode: 'no-cors', credentials: 'same-origin' });
And after clearing the cache, it seems to work.
If this is the correct way to make UpUp working with .htaccess authentication, maybe this option could be added in the code.
Let me know if this sounds interesting
Cheers.
Laurent.

Version used: 1.1.0
Browser Name and version: Chrome Version 75.0.3770.80 (Build officiel) (64 bits)
Operating System and version (desktop or mobile): Windows 10 Pro

I check again.
Unfortunately, the problem is still here.
Any idea?

In fact, after checking, it is still not working...
Any idea about using UpUp with htaccess auth ?

It should work in Chrome 77 which adds Service workers support basic HTTP authentication.

Still not working. Got a blank page at first load with Chrome Version 79.0.3945.79 ((64 bits)

authors: LrntL moneytoo

repo: TalAter/UpUp


text:
Faucet not working

I have tried multiple times and the faucet will not send the MATIC/POLYGON

Sorry, I was out for summer, fixed

authors: Macinbeh TamtamHero

repo: TamtamHero/polygon-faucet


text:
Uncaught TypeError: Cannot read property 'includes' of null  at filterTypes.js:45

Describe the bug (required)
When any column has null value, filter includes throws error.
filterTypes.js:45 Uncaught TypeError: Cannot read property 'includes' of null
    at filterTypes.js:45
    at Array.some (<anonymous>)
    at filterTypes.js:43
    at Array.filter (<anonymous>)
    at ge (filterTypes.js:42)
    at useFilters.js:225
    at Array.reduce (<anonymous>)
    at n (useFilters.js:197)
    at useFilters.js:194
    at Object.pi [as useMemo] (react-dom.production.min.js:162)

Provide an example via Codesandbox! (required)
https://codesandbox.io/s/sharp-burnell-89sif?file=/src/App.js
Steps To Reproduce (required)
Steps to reproduce the behavior:

Go to first name search box
type some character
Scroll down to browser console you will see above mentioned uncaught error.

Expected behavior (Recommended)
It shouldn't break the code, should ignore rows having null values.
Desktop (please complete the following information):

OS: Osx
Browser chrome
Version latest

I added a PR for a possible fix of this https://github.com/tannerlinsley/react-table/pull/3021 .

I added a PR for a possible fix of this https://github.com/tannerlinsley/react-table/pull/3021 .

While we wait for PR to be merged, a temporary/workaround solution around this could be overriding the Cell Render function in the table's columns configuration as
{   accessor: 'id',   Header: 'ID',   Cell: instance => instance?.cell?.value || '', },
I did check the data that I was feeding to the table and some of them were null and was causing the filters to break.
This allows me to handle null data in the table while having various Column filters from repo's example section.
Also, I don't have a lot of data on my table right now, say less than 100 cells.

@Keshavdulal, @fseitun, @aruprakshit did this fix ever get merged to resolve the issue? Still seem to be running into the problem currently and need either a fix or some sort of workaround

It doesn't look it has been merged yet.
It's still on the "Needs Triage" column of the projects' kanban board.
I somehow managed to work with the workaround I mentioned above and haven't really worked much with react-table since last year.

https://github.com/TanStack/react-table/blob/v7/examples/filtering/src/App.js
Workaround is to make a custom includes function by copying the custom ‘filterGreaterThan’ filter in the docs changing >= to ===

authors: Keshavdulal WillGoad aruprakshit sicarius97

repo: TanStack/react-table


text:
Error in Nested File Routing: Component Suspension Issue and Resolution with Suspense

Describe the bug
In the context of nested file routing, if only the components "component," "pendingComponent," and "errorComponent" are specified, the application may encounter a break with the following error: "A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition."
This issue can also occur with a page and index route. However, it appears to be resolved when the "rootRoute" is enclosed in Suspense or when the "wrapInSuspense" option is set to true. Was this behavior intentionally designed or is it a side effect?
Your Example Website or App
https://stackblitz.com/edit/github-zao5vf-2n13mx?file=src%2Froutes%2F__root.tsx
Steps to Reproduce the Bug or Issue

Set up a project with nested file routing.
Define only the components "component," "pendingComponent," and "errorComponent" without including a root route.
Observe the application break with the error: "A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition."
Note that the issue persists when using a page and index route as well.

Expected behavior
Expectation: The App should not break.
Screenshots or Videos

Platform

OS: [e.g. macOS, Windows, Linux]
Browser: [e.g. Chrome, Safari, Firefox]
Version: [e.g. 91.1]

Additional context
No response

By default, each nested route is not wrapped in suspense because you should have control over suspense boundaries and fallbacks. If you plan on suspending in one of your routes

Provide at least one of the parent routes with a pendingComponent, which is used to enable suspense around the route and also is used as the suspense fallback.
Use wrapInSuspense: true, which will wrap the route in suspense

@tannerlinsley Nested routes themselves might not be wrapped in Suspense, however the Outlet in the root route still wraps child matches in one. What is the intention behind that?https://github.com/TanStack/router/blob/77116e45bfe3a42b600814607cda9845f0a51ae2/packages/react-router/src/Match.tsx#L289-L293

authors: lukasgeiter sohamnandi77 tannerlinsley

repo: TanStack/router


text:
Update react-router features in comparison.md

Recent react-router release (v7) adds a few type-safety improvements. See https://github.com/remix-run/react-router/blob/release-next/CHANGELOG.md#typesafety-improvements

I want to hold off on making any changes in our docs till the RRv7 team goes to Release Candidate. I'm confident that they've got a good type-safety story for their big V7 release, but I'd first want to see what their DX for types looks like.
Currently, our global registering method allows the user to use Router without having to declare their types. Pedro's recent tweet on their current iteration of RRv7 looks to still require the user to declare the parameters on the component, loader, etc, from the generated file. Plus, we still haven't seen what the Link to completion looks like.
Till the wizards working on RRv7 have moved to the release candidate phase, I'm holding off on making changes here.

authors: SeanCassiere abgita


text:
Solid Table: Examples from docs cause unnecessary rerenders of components when data updates

Describe the bug
When implementing a table as shown in the examples in the documentation site, a change to the underlying data causes every row and cell in the table to rerender (instead of updating in a fine grained manner). This is noticeably slow in a real world use case where table edits are supposed to navigate to the next row.
I've noticed that if I use Key instead of For elements, the rows don't rerender, but the cells still do. Only replacing flexRender with a manual <Switch / Match > implementation prevents the cells from rerendering. This however breaks other features, such as row selection & column ordering.
In the screenshot you can see the output of changing first name of a row in each case.
Your minimal, reproducible example
https://codesandbox.io/p/github/raymondboswel/solid-table-rendering-example
Steps to reproduce

Open the codesandbox link.
Open the devtools console
Click the Update button for each table
Notice that in the last case, the Cell component isn't re-executed.

Expected behavior
As a user I expect fine grained updates in the table, in order to have decent table performance.
How often does this bug happen?
Every time
Screenshots or Videos

Platform
Chrome / Linux
react-table version
8.9.3
TypeScript version
No response
Additional context
No response
Terms & Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

Your description of the bug sounds awfully similar to what I reported for Svelte in #4962.
Just a heads up. I am no JS/Solid/Svelte expert. I can't debug it more.

Hi @sledgehammer999 - I'm not sure what the fix is, but I think the cause is that flexRender recreates the components. Libraries with VDOM like React do that all the time anyways, but the VDOM buffers the actual DOM updates, so it's not super expensive, whereas Svelte & Solid write to the DOM when a component is created, so it's a lot more costly.

I thought that, Svelte at least, was able to tell exactly which values/components had changed and update only those elements directly. AFAICT, flexRender() for Svelte just returns a JS class(not an instance) which is a subclass/derived class of SvelteComponent.
I could be wrong though. In any case, sorry for hijacking your thread. You don't have to reply to this comment.

repo: TanStack/table


text:
Web端截图

现象
点击截图后是打开了Snipaste的网页，这个下载下来是zip包，可以做到点击截图后调用Snipaste吗？
日志

Web是不能直接截图的，只有PC可以直接截图，PC的截图功能在开发中。

authors: michilla tangtaoit

repo: TangSengDaoDao/TangSengDaoDaoServer


text:
Crashes on windows 7 64bit

Does not even open the program(Crashes never opens). Downloaded the latest Framework and still had the same issue. Kinect is working with all other apps

Hi Eric, This project targets .NET Framework 4.5. Do you have the 4.5 version installed on your PC?(Which can be an older version than what you have installed) If not, you can install it and try. Or you can still reinstall it if you already have it, this could be an issue specifically happens for .NET 4.x application on Windows 7.
Download link: https://www.microsoft.com/en-us/download/details.aspx?id=30653

Right I have .NET 4.7 installed. Immediately closes without opening a gui


text:
🛑 Thera-Client is down

In 8a280b1, Thera-Client (https://ops.therapiaclient.com/client/sign_in) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Thera-Client is back up in 7d3844e.

repo: TapiTechSolutions/upptime


text:
DynamicLightsReforged 1.18.2 doesn't work with JEI

Describe the bug
The JEI item display doesn't work with DynamicLightsReforged 1.18.2
To Reproduce
Steps to reproduce the behavior:

Install JEI with DynamicLightsReforged and Rubidium for 1.18.2.
Create a world.
Look at the JEI item page that doesn't show.

Expected behavior
To see the items.
Screenshots

Additional context
I like Rubidium with these addons while optifine doesn't work with Twilight Forest.

It seems like REI works .

Do you have Rubidium Extras? Because that's a "feature": https://github.com/TeamDeusVult/MagnesiumExtras/issues/13

repo: TeamDeusVult/DynamicLightsReforged


text:
Fix target header in horizontal layout

Move it to the outer table, so it is aligned across all targets. Fixes #99 - this is how it looks now in case targets don't fit in one line:

Current coverage is 96.61% (diff: 100%)

Merging #103 into master will increase coverage by 0.01%

@@             master       #103   diff @@
==========================================
  Files            31         31
  Lines          1472       1477     +5
  Methods           0          0
  Messages          0          0
  Branches        284        286     +2
==========================================
+ Hits           1422       1427     +5
  Misses           25         25
  Partials         25         25

Diff Coverage
File Path

•••••••••• 100%
eli5/formatters/html.py

Powered by Codecov. Last update fa3dd06...7b59caf

Thanks!

authors: codecov-io kmike lopuhin


text:
How does this mod work in 1.20.1?

I loaded this mod up in a modpack but I am a bit confused as to how it operates and infects an entire world. The "sculk tomb" is a tiny pocket underground that spawns the sculk spreader seemingly randomly like any other structure, not the massive dungeon depicted on the wiki. The sculk its self does not spread unless:
A: a sculk spreader initially created it. This means a deep dark biome with sculk won't spread as far as I can tell, only these rarely generated structures
and
B: will only spread if the chunk the structure spawns in is loaded. This means that unless I get extremely unlucky I won't notice it in typical gameplay since I would need to be on top of a spreader building my base by pure chance.
Because the structure rarely spawns, and when it does due to a player exploring, it will likely be unloaded just as fast making a real threat unlikely. Case in point: I played regular survival for a bit and randomly found a place for a base. There was no sculk tomb structure nearby and therefore I never noticed the effects of this mod.
Furthermore is there no configuration file? I can't find it in serverconfig or the config folder nor did clothconfig find one anywhere. Let me know if I am mistaken with my understanding of how this mod works and if I am missing a way to configure it. If I found a bug I can make a proper issue report, I just wanted to make sure I am not mistaken. Nonetheless, the mod looks very cool and I look forward to figuring it out!

I regret if I come off as ignorant or sassy. I changed the title to try and reflect that I am genuinely trying to get up to date information for 1.20.1 as the mod seems to have changed.

Update: answered my own question. I had the release version of 1.20.1 which has no main tomb but just makes those small nodes. If you update to the latest beta, it makes the tomb. Once the tomb is opened it creates nodes (these are documented on the wiki) that forceload (chunkload) themselves as they spread through the world. This means it initially starts at 0,0 but slowly grows outward.
I also found in the latest version that those small little caves of spreaders do not spawn. This means the only vector for the infection is at the world spawn.

Thanks for the feedback. I will improve our documentation to better reflect the changes in the newer updates. Apologies as I have been very busy.

authors: Mikeatron-User StormCircuit

repo: TeamPeril/Sculk-Horde


text:
🛑 esmailelbob.xyz is down

In 1371b76, esmailelbob.xyz (https://pipedapi.esmailelbob.xyz/healthcheck) was down:

HTTP code: 0
Response time: 0 ms

Resolved: esmailelbob.xyz is back up in d71dbc0.

repo: TeamPiped/piped-uptime


text:
🛑 privacydev.net is down

In bcb5b30, privacydev.net (https://api.piped.privacydev.net/healthcheck) was down:

HTTP code: 502
Response time: 643 ms

Resolved: privacydev.net is back up in e8003b0 after 9 minutes.


text:
🛑 il.ax is down

In b5e10ea, il.ax (https://pa.il.ax/healthcheck) was down:

HTTP code: 0
Response time: 0 ms

Resolved: il.ax is back up in 9e0da46 after 11 minutes.


text:
🛑 il.ax is down

In 9a783e0, il.ax (https://pa.il.ax/healthcheck) was down:

HTTP code: 0
Response time: 0 ms

Resolved: il.ax is back up in 62e79aa after 8 minutes.


text:
🛑 il.ax is down

In a17c9a7, il.ax (https://pa.il.ax/healthcheck) was down:

HTTP code: 0
Response time: 0 ms

Resolved: il.ax is back up in 2285481 after 8 minutes.


text:
🛑 privacydev.net is down

In 326fbce, privacydev.net (https://api.piped.privacydev.net/healthcheck) was down:

HTTP code: 0
Response time: 0 ms

Resolved: privacydev.net is back up in a118704 after 20 minutes.


text:
🛑 il.ax is down

In afad6b9, il.ax (https://pa.il.ax/healthcheck) was down:

HTTP code: 0
Response time: 0 ms

Resolved: il.ax is back up in 8c74e6a after 10 minutes.


text:
🛑 esmailelbob.xyz is down

In dd56f5c, esmailelbob.xyz (https://pipedapi.esmailelbob.xyz/healthcheck) was down:

HTTP code: 0
Response time: 0 ms

Resolved: esmailelbob.xyz is back up in 601d989.


text:
🛑 kavin.rocks (Official) is down

In 44e0606, kavin.rocks (Official) (https://pipedapi.kavin.rocks/healthcheck) was down:

HTTP code: 502
Response time: 142 ms

Resolved: kavin.rocks (Official) is back up in b35ee38.


text:
🛑 projectsegfau.lt is down

In bc63e8f, projectsegfau.lt (https://api.piped.projectsegfau.lt/healthcheck) was down:

HTTP code: 502
Response time: 4037 ms

Resolved: projectsegfau.lt is back up in 5c05a56 after 35 minutes.


text:
🛑 rivo.lol is down

In 0487576, rivo.lol (https://pipedapi.rivo.lol/healthcheck) was down:

HTTP code: 0
Response time: 0 ms

Resolved: rivo.lol is back up in 68c99f9 after 10 minutes.


text:
🛑 Gail Webber is down

In 3601cfb, Gail Webber (https://gailwebber.com) was down:

HTTP code: 500
Response time: 306 ms

Resolved: Gail Webber is back up in 5d2fa92 after 17 minutes.

repo: TechSavagery/uptime-monitoring


text:
🛑 Matthews Vineyard is down

In 7d40d49, Matthews Vineyard (https://matthewsvineyard.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Matthews Vineyard is back up in ea0f61f after 1 day, 22 hours, 20 minutes.


text:
Adding the Calculator functionality

Hey @TechSpiritSS .
I've tried adding a calculator functionality to it.
Note :- It can only perform operation on 2 numbers at a time.
It will take 2 numbers as input and then ask which type of operation to be performed.
It can perform operations such as addition, subtraction, subtraction, division, multiplication, modulo, AND, OR on the two given numbers.
I hope it helps.
P.S :- Please go thoroughly through the script.js file because I've made significant changes in it.
Thanks :)

Sure mate go for it 👍

Hey @TechSpiritSS . I've made a calculator for this terminal. But I'm not able to create the pull request. This message is being showed "Can’t automatically merge. Don’t worry, you can still create the pull request". And also I've done significant changes in your code. And I'm sure that it may conflict with other commits. Hence I would like to request you to please create a NEW BRANCH and then I'll make a pull request to that branch , if you are comfortable with it. Because I've done significant enough changes to it, and I don't want you to get confused in your project  due to the changes made by me.
Also If you want to see the calculator, Here's the link to my forked repo:
https://github.com/KanishkDadhich/Terminal-Portfolio
Thanks: :)

Sure. I'll look into this

Hey @TechSpiritSS I would like to try Implement this feature.
Im thinking Ill use the inbuild Javascript Eval() function instead of the method @KanishkDadhich used.

Sure go for it 🚀
but create a seperate JS file as main file is getting a little messy now.

authors: BhagatHarsh KanishkDadhich TechSpiritSS

repo: TechSpiritSS/Terminal-Portfolio


text:
[README.md] Copy Editing

I've edited the README.md file a little.
Unfortunately, I had a few problems.
I'm writing this via a browser and running my system off a CD while I rebuild my system due to a bad sector on my hard drive. But should be back to normal in a couple of hours.
I was also hindered by my MacBook Pro being out of service right now, and I'm only using my Linux desktop, so I couldn't try anything out. Of course, I didn't really have a system to install them on at all last night due to the bad sector.
I have a couple of suggestions:

I would really examine this commit, since I was really pressed for time, couldn't try it out, didn't have time to look at the code, and generally just had to use the original README.md for all of my information.

I would recommend adding more information regarding the configuration file. Perhaps include an inline example. I think this would help a great deal.

I also think a little more information about the:

$ watchtower install
$ watchtower load_bootloader
and
$ watchtower install_bootloader
$ watchtower reload_bootloader
commands would be great.
Hope this helps. It looks like a great project.

Hey Mike, Thank you and I'm really sorry to hear about your hard drive, hope you didn't lose any important data, I'll review this tonight and probably squash them into a single commit.

Thanks, I sent you a private message, but wanted to add that you might want to really review lines 35/38 of the diff, where I wrote about the default date range display for the project page detail. I wasn't sure if that was correct, and didn't have time to look at the code.

Ok Mike I'll do that, thanks again

authors: eMxyzptlk mhutchin


text:
Add Step component

API
Types
Step
A single step

    Shipping

<Step.Group>
  <Step>Shipping</Step>
</Step.Group>
// or
const items = [
  {text: 'Shipping'}
];

<Step.Group steps={items}>

Groups
Steps
A set of steps

Shipping

Choose your shipping options

Billing

Enter billing information

Confirm Order

<Step.Group>
  <Step icon='truck'>
    <Step.Title>Shipping</Step.Title>
    <Step.Description>Shipping</Step.Description>
  </Step>
  <Step active icon='payment'>
    <Step.Title>Billing</Step.Title>
    <Step.Description>Confirm Order</Step.Description>
  </Step>
  <Step disabled icon='info' title='Confirm Order' />
</Step.Group>
// or
const items = [
  {icon: 'truck', title: 'Shipping', description: 'Shipping'},
  {active: true, icon: 'payment', title: 'Billing', description: 'Confirm Order'},
  {disabled: true, icon: 'info', title: 'Confirm Order'},
];

<Step.Group steps={items}>

Ordered
A step can show a ordered sequence of steps

Shipping

Choose your shipping options

...

<Step.Group ordered>
  <Step completed>
    <Step.Title>Shipping</Step.Title>
    <Step.Description>Shipping</Step.Description>
  </Step>
</Step.Group>
// or
const items = [
  {completed: true, title: 'Billing', description: 'Confirm Order'},
];

<Step.Group ordered steps={items}>

Vertical
A step can be displayed stacked vertically

...

<Step.Group vertical>...</Step.Group>
<Step.Group vertical steps={items}>

Content
Description
A step can contain a description
Already described
Icon
A step can contain an icon
Already described
Link
A step can link
// Case 1

// Case 2
...

// Case 1
<Step link>...</Step>

// Case 2
<Step active href='http://google.com'>...</Step>
<Step active onClick={handler}>...</Step>

States
Active
A step can be highlighted as active
Already described
Completed
A step can show that a user has completed it
Already described
Disabled
A step can show that it cannot be selected

<Step disabled>...</Step>

Variations
Stackable
A step can stack vertically only on smaller screens
Vertical
A step can be displayed stacked vertically

...

<Step.Group stackable='tablet'>...</Step.Group>
<Step.Group stackable='tablet' steps={items}>

Fluid
A fluid step takes up the width of its container

...

<Step.Group fluid>...</Step.Group>

Attached
Steps can be attached to other elements

...

<Step.Group attached='top'>...</Step.Group>

Evenly Divided
Steps can be divided evenly inside their parent

Equal Width
<Step.Group widths='equal'>
  <Step />
  <Step />
</Step.Group>

Explicit Widths
<Step.Group widths={2}> // or widths='two'
  <Step />
  <Step />
</Step.Group>

Size
Steps can have different sizes

...

<Step.Group size='mini'>...</Step.Group>

Fixes #183

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

Merging [#335][cc-pull] into [master][cc-base-branch] will decrease coverage by 1.24%

@@             master       #335   diff @@
==========================================
  Files            62         59     -3
  Lines           777        729    -48
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
- Hits            711        658    -53
- Misses           66         71     +5
  Partials          0          0

Powered by Codecov. Last updated by [c5b0425...82f1e37][cc-compare]
[cc-base-branch]: https://codecov.io/gh/TechnologyAdvice/stardust/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/TechnologyAdvice/stardust/compare/c5b0425234cbc7b0718a86560425f44ae46c6581...82f1e37d16f0940ac8c422775c4beeefd78a4fd1?src=pr
[cc-pull]: https://codecov.io/gh/TechnologyAdvice/stardust/pull/335?src=pr

Refactored this fragment, it might be more understantable now :+1:

I see, it looks like we're abstracting away the Step.Content by creating this automatically.  I'm on the fence about this one still.  I'll have to give this some more thought.  Here are my current thoughts.
There are many components that have content.  Usually, content also can contain header, description, meta, and extra component part children.  It can also sometimes have additional definition classes, like extra content (Card), image content (Modal), bottom aligned content (Item).
Because of the need to sometimes configure content, and given our sub component API pattern, we may likely end up supporting Content parts something like this:
<Card>
  <Card.Content>...</Card.Content>
  <Card.Content extra>...</Card.Content>
</Card>

<Modal>
  <Modal.Content>...</Modal.Content>
  <Modal.Content image>...</Modal.Content>
</Modal>

<Item>
  <Item.Content>...</Item.Content>
  <Item.Content aligned='bottom'>...</Item.Content>
</Item>

This would mean for the Step:
<Step>
  <Step.Content>...</Step.Content>
</Step>

Again, I'm open for ideas and input here but this is where I'm leaning so far.

@levithomason Seems it make code cleaner, I'll refactor <Content> to separate part

Sounds good

@levithomason I've separated <Title> and <Description>, its okay?

How I can extend them now?
import React from 'react'
import META from '../../utils/Meta'
import Description from '../../parts/Description'

const StepDescription = (props) => <Description {...props} />

StepDescription._meta = {
  library: META.library.semanticUI,
  name: 'StepTitle',
  parent: 'Step',
  type: META.type.element,
}

export default StepDescription

See last commit, it's working solution, but it looks like :hankey:  Is there another solution for inheritance?

I'll pull this and take a look.
I've got a branch going to address #325 reusable component parts.  I'll open that PR so that we can further hash that out there.  This will require some updates to how the docs are created as well as some testing considerations.
My intuition says we don't hold up current PRs for reusability optimizations.  I think we should continue merging these with current pattern.  Then, we can let the component parts PR handle any refactoring.
All said, I'll look at this now and also open the component parts PR in its current state.

I've opened #345, all reusable component part conversation should be moved there.  Let's not implement reusable component parts until a verdict is reached in that PR.
Pulling and taking a look at the solution started here as well now.

Let's not implement reusable component parts until a verdict is reached in that PR.

OK, wait for pull, I will update components

Made cleanup, take a look. I need to add tests and docs for <Step.Content>

@levithomason
It seems, that it will not look so pretty :crying_cat_face: See, last commit.
Also, seems ordered prop might be passed from <StepGroup>. What about Context? But, <Step> must be class for this.

Checking

Here's a solution without context.  The main change I made to get it working was to pass the ordered prop down from the StepGroup to each Step (for both props and children):
StepGroup.js
import { mapChildType } from '../../utils/childrenUtils'

// render()

  if (items) {
    return (

        {items.map((item, index) => <Step key={index} {...item} ordered={ordered} />)}

    )
  }

  return (

      {mapChildType(children, Step, (step, index) => (
        <Step {...step.props} key={index} ordered={ordered} />
      ))}

  )

// propTypes

  children: customPropTypes.all([
    customPropTypes.mutuallyExclusive(['description', 'title']),
    customPropTypes.ofComponentTypes(['Step']),    // <-- only allow Step children
    PropTypes.node,
  ]),

Step.js
Tha main change I made here was to use the ordered prop to wrap content.  I reworked this component a bit to clean it up as well:
function Step(props) {
  const {
    active, className, children, completed, description, disabled, icon, href, link, onClick, ordered, title,
  } = props

  // CHANGES: removed ui className
  const classes = cx(
    useKeyOnly(active, 'active'),
    useKeyOnly(completed, 'completed'),
    useKeyOnly(disabled, 'disabled'),
    useKeyOnly(link, 'link'),
    className,
    'step',
  )
  const rest = getUnhandledProps(Step, props)

  const handleClick = (e) => {
    if (onClick) onClick(e)
  }

  // CHANGES: remove function, use assignment, wrap if ordered
  const contentJSX = completed || icon || ordered ? [
    icon && iconPropRenderer(icon, { key: icon }),
    // CHANGES: remove children ? logic, StepContent handles this
    <StepContent key='content' title={title} description={description}>
      {children}
    </StepContent>,
  ] : [
    // CHANGES: include children + title/desc, they cannot be used togehter
    // so this will result in only one or the other
    children && children,
    title && <StepTitle key='title' title={title} />,
    description && <StepDescription key='description' description={description} />,
  ]

  // CHANGES: remove duplicate JSX return statements in favor
  // of a conditional component tagName
  const StepComponent = href || onClick ? 'a' : 'div'

  // CHANGES: use a single return
  // always apply href, if it is undefined, the prop will not exist
  return (
    <StepComponent
      {...rest}
      className={classes}
      href={href}
      onClick={handleClick}
    >
      {contentJSX}
    </StepComponent>
  )
}

As a heads up, I'm headed out for a vacation at the moment.  I'll be back next week.  See you then!

Awesome work on Step :+1:

I think it's ready for review :)

I've updated StepLinkExamples.js, as you can see example with onClick is non-working. Take a look, it seems usage of mapChildType in <StepGroup/> might be updated.

@levithomason seems there is only one problem to solve, waiting for your opinion

ping @levithomason

Taking a look!

Would you mind rebasing this PR to the latest master?  It would help with the review.

Yes, give me five minutes

Made :yum:

Thanks much, looking at Feed right now.  Will get to this next.

I think your fork needs to update it's master to the upstream master.  I'm still able to review now however.

Fixing Links
There 2 are changes necessary to fix the links example:
1. StepLinkExamples.js
Spread props on the ClickableStep so the icon, title, and description are passed.
-    return <Step active={this.state.active} onClick={this.handleClick} />
+    return <Step {...this.props} active={this.state.active} onClick={this.handleClick} />

2. StepGroup.js
Because mapChildType will only map Step, the ClickableStep components are filtered out.  I've made a few changes to the StepGroup to fix this and some other things:
-if (items) {
-  return (
-

-      {items.map((item, index) => <Step key={index} {...item} ordered={ordered} />)}
-

-  )
-}
-
-return (
-

-    {mapChildType(children, Step, (step, index) => (
-      <Step {...step.props} key={index} ordered={ordered} />
-    ))}
-

-)
+const content = items
+  ? items.map((item, index) => <Step key={index} {...item} ordered={ordered} />)
+  : children
+
+return
{content}

Ordered Updates
Since we no longer map Steps in the Group and add the ordered prop, we need to handle this now.  The Step looks like it was only using ordered to wrap the Step title/description in content.  I think we just go with your earlier proposal and always wrap title/description props in content.  If the user uses subcomponent children, they'll need to wrap it themselves:
Step.js
const {
-  active, className, children, completed, description, disabled, icon, href, link, onClick, ordered, title,
+  active, className, children, completed, description, disabled, icon, href, link, onClick, title,
} = props

-const contentJSX = completed || icon || ordered ? [
-  icon && iconPropRenderer(icon, { key: icon }),
-  children && <StepContent key='content' children={children} />,
-  (title || description) && <StepContent key='content' description={description} title={title} />,
-] : [
-  children && children,
-  title && <StepTitle key='title' title={title} />,
-  description && <StepDescription key='description' description={description} />,
-]
 const StepComponent = href || onClick ? 'a' : 'div'

 return (
   <StepComponent
     {...rest}
     className={classes}
     href={href}
     onClick={handleClick}
   >
-     {contentJSX}
+     {!children && iconPropRenderer(icon)}
+     {children || <StepContent description={description} title={title} />}
   </StepComponent>
 )

For consistency, simplicity, and due to other component conflicts, the children will always be mutually exclusive with props shorthand for v1:
  /** A step can contain an icon. */
-  icon: PropTypes.string,
+  icon: customPropTypes.all([
+    customPropTypes.mutuallyExclusive(['children']),
+    PropTypes.node,
+  ]),

We could technically allow <Step icon='truck'><Title>Shipping</Title></Step> by wrapping children in content when there is an icon prop. Though I want to ship with consistency for v1 and there are components that this is much more difficult or doesn't make sense for.  Lastly, after shipping a more straightforward v1 prop API, we can always release non-breaking updates to allow mixing prop markup APIs and subcomponent APIs.  Though, we cannot do the same in reverse.
Update Examples
With the above changes, we'll need to use either the props API or subcomponent API, but not both simultaneously.  We also need to include the content component when there is an icon and using subcomponents.  Example:
StepGroupExample.js
-import { Step } from 'stardust'
+ import { Icon, Step } from 'stardust'

-<Step icon='truck'>
+<Step>
+  <Icon name='truck' />
+  <Step.Content>
    <Step.Title>Shipping</Step.Title>
    <Step.Description>Choose your shipping options</Step.Description>
+  </Step.Content>
</Step>

With all these changes, everything seems to work in the docs and components.  It also seems more simple, which is good.  LMK how the updates go!

Fixing Links
1. StepLinkExamples.js
Agree, it works.
2. StepGroup.js
items.map((item, index) => <Step key={index} {...item} ordered={ordered} />)

Antipattern with key is there :fire_engine: I think about extended validation of items prop with PropTypes.shape and form key from them:
const {description, title} = item
const key = `${title}-${description}`

Ordered Updates
I don't like these updates because they will break this nice layout:
<Step icon='truck'>
  <Title>Shipping</Title>
  <Description>Choose your shipping options</Description>
</Step>

May be we can use React.Content for passing ordered prop to children. Is any reason to reject this solution (except, StepGroup will cease to be stateless)?

...I think about extended validation of items prop with PropTypes.shape and form key from them

That is much better.  We can allow them to pass a key in the items array.  How about something like this (accounts for undefined title/description):
items.map((item) => {
  const key = item.key || [item.title, item.description].join('-')
  return <Step key={key} {...item} />
})

I don't like these updates because they will break this nice layout...

The markup Step > Title, Description is definitely cleaner than Step > Content > Title, Description.  However, consider other components with content.  The content wrapper is usually required anytime there is an adjacent icon or image:

Account Settings

    Account Settings

...

...

At first, it seems safe to abstract away the content wrapper based on the presence of an icon or image prop.  Though, we'd have to accept some limitations.  The user will never be able access the content wrapper nor insert any markup between the root node and the content node.  We are assuming then that our API will cover all possible use cases of markup between the root node and content.  We are also assuming that our props API can handle all use cases for props on components between this space.  We are removing access to this part of the render tree as users are limited to passing nodes through the icon/image props.
I see three places this could break down and cause issues. First, if a user needed to pass something more complicated than a basic icon name or image src through the props then it could get ugly and painful.  Second, I think it would be an issue if only some of our components allowed use of icon/image/etc prop with children and automatically inserted the content wrapper, while other components did not allow icon/image/etc with children and required the user to manually insert the content wrapper. I think consistency in the library should take priority over convenience.  Last, if the user ever wanted/needed to add props to the content, then it could be an issue as we'd have to also accept content props through a component prop.
I think all of these issues are already present. At TA we had a fair number of use cases where we had to pass complicated components through shorthand props that fully abstracted away access to parts of the render tree.  It made for very ugly code and markup issues that would not be present if we had full access and control to the component markup.
We also have components in the library with content parts that cannot be easily configured with only an icon/image prop value.  Modal content is adjacent to a header.  Imagine the user wants to add a header close icon with a click handler to close the modal.  (We had a similar issue at TA with passing markup through <ListItem icon='...' />)
const header = (
  // extra node to wrap text :( sometimes breaks styles

    Here is my header
    <Icon style={closeIconStyle} name='close icon' onClick={this.hideModal} />

)

<Modal header={header}>...</Modal>

      Here is my header
      <Icon name='close icon' />

...

Whereas, if we did not abstract away access to the content node, then the user could have simply added the Icon.  Also, the generated markup does not require any extra span node.  (The same is true in the case of a ListItem with extra markup in the icon/image part of the tree):
<Modal>
  <Modal.Header>
    This is my header
    <Icon style={closeIconStyle} name='close icon' onClick={this.hideModal} />
  </Modal.Header>
  <Modal.Content>
    ...
  </Modal.Content>
</Modal>

      Here is my header
      <Icon name='close icon' />

...

There are also components which take props on the content.  Like vertically aligned lists, modals with image content, animated buttons, and probably others.  These could be hoisted up to the top level, but this again is making the assumption that there will never be conflicting props between the top component and the content.
In conclusion, abstracting away Content completely offers cleaner markup for simple use cases.  Anything beyond simple use causes problematic and extra complicated markup.  The Content subcomponent API is more verbose, but does not become problematic or complicated for use cases beyond the simple.  Mixing the props API with the subcomponent API removes the benefits of the subcomponent API while adding the issues of the props API.
Because of this, I think our first version should offer the props API for simple use cases, offer the subcomponent API for use cases beyond the smiple, and make these two mutually exclusive.

Personally, I like mixing the props API and sub component APIs to abstract away Content.  I'd be very happy to see a solution that does this while also solving the above noted issues.  My colleagues and I have not yet figured this out and I haven't seen a proposal that does.  I would accept an API proposal that does this.  If not, I hope it is figured out for v2.

@levithomason thanks for a detailed point of view :+1:

No problem, explaining helps me to better understand it myself!

Once the step/examples are updated, I think we can merge this one

I've updated all, so let's go :car:

Woop!  I'll make some doc updates soon.  Need to remove ordered from Step propTypes.  I also started adding descriptions to the props API variant of the docs per these comments.

authors: codecov-io layershifter levithomason

repo: TechnologyAdvice/stardust


text:
🛑 Pagina Web is down

In 351e5a0, Pagina Web (https://milar.farm) was down:

HTTP code: 503
Response time: 527 ms

Resolved: Pagina Web is back up in 1f0c134 after 9 minutes.

repo: TecnicaMilar/status


text:
Error when built with uglify.js

looks weired
ERROR in static/js/vendor.c5ab749ca68f4ec4222f.js from UglifyJs
SyntaxError: Unexpected token: name (SmoothScroll) [./~/vue-smoothscroll/dist/vue-smoothscroll.js:59,0]

#2 looks the same reason

hi, i try to fix the problem .
any question please let me know.

sorry, #3 .Thanks and I will close this issue

authors: Teddy-Zhu reverland

repo: Teddy-Zhu/vue-smoothscroll


text:
[Feature]: Improve sdk-vue docs

Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
I would like to collect some improvements/fixes for @telegram-apps/sdk-vue docs page. Then I'll contribute.
Describe alternatives you've considered
No response
Additional context
No response

@heyqbnk , hi! Could you please assign that issue to me 😄

repo: Telegram-Mini-Apps/telegram-apps


text:
as prop

According to the stitches documentation and the stitches-native types, styled() components should accept an as prop to optionally override the rendered component.
However, as best I can tell, this doesn't seem to work in stitches native.
Is there any particular reason why? Is

On the Web having the as prop makes sense since semantics for accessibility are conveyed via semantic HTML tags like section, p, strong, etc.
However on the native side accessibility is handled differently and changing the rendered component with the as prop would be quite confusing since different native components have such a different API for props. For example changing a Text to a View dynamically would cause a crash since all text should always be rendered within the Text component.

authors: Temzasse winterscar

repo: Temzasse/stitches-native


text:
使用子仓库方式引入的考量是什么

为啥不考虑npm package

样式是多版本（react vue ng 移动端等）共用。monorepo维护更麻烦吧..

想起了一群一堆喷大仓库的同学~~~

关注～

样式是多版本（react vue ng 移动端等）共用。monorepo维护更麻烦吧..

可以发布npm packages, 其他的项目作为依赖使用

repo: Tencent/tdesign-common


text:
[t-cascader] 初始化一组数据后再更新不生效

tdesign-mobile-vue 版本
1.0.9
重现链接
https://stackblitz.com/edit/j8agqs?file=src%2Fdemo.vue
重现步骤
No response
期望结果
No response
实际结果
No response
框架版本
No response
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
No response

Duplicate of #1173

authors: anlyyao zhoudad

repo: Tencent/tdesign-mobile-vue


text:
[Dialog] Dialog与Date-picker冲突导致Dialog无法再次弹出

tdesign-vue-next 版本
latest
重现链接
https://codesandbox.io/s/base-dialog-forked-gzsk93?file=/src/Demo.vue
重现步骤
https://github.com/Tencent/tdesign-vue-next/assets/8252267/83dd8a0c-69ea-4f7c-8218-925cfa432bbd
见录频
期望结果
No response
实际结果
Uncaught (in promise) DOMException: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
框架版本
No response
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
另外从视频中可以看出，日期选择后会撑大文本框

报错来自这里

authors: uyarn wenkeming

repo: Tencent/tdesign-vue-next


text:
[t-select] 远程搜索选择数据量过大时页面崩溃

tdesign-vue 版本
0.40.3
重现链接
No response
重现步骤
t-select组件，输入搜索内容，番薯数据较少时正常，较多时，页面会崩溃；或者会进入debugger状态且进行的特别慢
期望结果
No response
实际结果
No response
框架版本
No response
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
No response

https://stackblitz.com/edit/angular-hmqnjo 方便来个模拟的例子，方便我们排查问题么？

刚刚发现#709提出来这个问题，回复说是解决了？请问什么时候更新上来？

还未解决，要等 select 组件重构完成才能加虚拟滚动特性，预期在 5.1 后第一周完成

authors: waviness xiaosansiji

repo: Tencent/tdesign-vue


text:
feat(Radio): radio options support radio button

🤔 这个 PR 的性质是？

[x] 日常 bug 修复
[ ] 新特性提交
[ ] 文档改进
[ ] 演示代码改进
[ ] 组件样式/交互改进
[ ] CI/CD 改进
[ ] 重构
[ ] 代码风格优化
[ ] 测试用例
[ ] 分支合并
[ ] 其他

🔗 相关 Issue

💡 需求背景和解决方案

📝 更新日志

feat(Radio): radio options support radio button

[x] 本条 PR 不需要纳入 Changelog

☑ 请求合并前的自查清单
⚠ 请自检并全部勾选全部选项。⚠

[x] 文档已补充或无须补充
[x] 代码演示已提供或无须提供
[x] TypeScript 定义已补充或无须补充
[x] Changelog 已提供或无须提供

LGTM

API录入: https://github.com/TDesignOteam/tdesign-api/pull/503


text:
fix: 修复同步云服务商CC不存在某个云区域问题 (closed #2529)

PR
CheckList（PR Assigners）
确认已完成以下操作：

[x] 已将分支与当前合入分支同步
[ ] 已在关联 Issue 中补充「功能自测」部分内容
[x] 已更新关联 Issue 的状态 backlog -> todo -> for test -> tested（需通过测试同学测试） -> done
[x] 将 PR 添加上 pr/reviewable

CheckList（PR Reviewers）
确认已完成以下操作：

[ ] 检查关联 Issue 「功能自测」部分内容
[ ] 必要时打回 pr/reviewable，要求重新修改
[ ] 及时 Approve

自测

Codecov Report
Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 75.16%. Comparing base (4f86151) to head (deecf1b).
Report is 2 commits behind head on v2.4.8-dev.

Files with missing lines
Patch %
Lines

...ps/node_man/periodic_tasks/sync_all_isp_to_cmdb.py
0.00%
2 Missing :warning:

Additional details and impacted files
@@              Coverage Diff               @@
##           v2.4.8-dev    #2530      +/-   ##
==============================================
- Coverage       75.16%   75.16%   -0.01%
==============================================
  Files             407      407
  Lines           29544    29545       +1
==============================================
- Hits            22208    22207       -1
- Misses           7336     7338       +2

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

authors: Huayeaaa codecov-commenter

repo: TencentBlueKing/bk-nodeman


text:
配置AD登录，使用AD用户登录非常慢，如何排查？

配置微软AD登录，使用AD用户登录非常慢，如何排查？
重现方法
使用本地用户登录非常快；
使用微软AD用户登录非常慢；
预期行为
需要达到本地用户登录一样的速度
版本

提供用户管理的具体版本号：V2.4.1
是否是企业版问题？：社区版

https://github.com/TencentBlueKing/bk-user/issues/783
可以参数 python manage.py shell  命令行下，测试 check 的速度
https://github.com/TencentBlueKing/bk-user/blob/ba45342481330983726d6c1cbf90b2c290c25227/src/api/bkuser_core/categories/plugins/ldap/login.py#L32
https://github.com/TencentBlueKing/bk-user/issues/783

repo: TencentBlueKing/bk-user


text:
用户管理Ldap同步到的用户无法登录

蓝鲸6.1.2  用户管理版本2.4.2
使用LDAP同步到的用户登录提示用户名密码错误：
api错误日志：
ERROR [2023-02-12 22:57:26] 753 login 7464 140539906963784
login check, check profile of username=wxxxua, domain=xxx.com.cn in category failed
Traceback (most recent call last):
File "/data/bkce/usermgr/api/bkuser_core/profiles/v2/views.py", line 745, in login
File "/data/bkce/usermgr/api/bkuser_core/categories/plugins/ldap/login.py", line 60, in check
bkuser_core.categories.plugins.ldap.exceptions.FetchUserMetaInfoFailed: 获取用户基本信息失败
INFO [2023-02-12 23:01:59] 110 _http_request 11844 140539879075144
重启用户管理，paas平台均无法解决。

补充LDAP配置信息：
用户对象类：inetOrgPerson
用户对象过滤：(&(|(objectclass=user)(objectclass=person)(objectclass=inetOrgPerson) (objectclass=organizationalPerson))(!(objectclass=computer)))
组织架构类：organizationalUnit
蓝鲸用户管理字段
用户名：sAMAccountName
中文名：displayName
邮箱：mail
手机号：mobile
连接和推送均无问题，但实际无法登录

确认下是不是这个问题: https://github.com/TencentBlueKing/bk-user/issues/429#issuecomment-1125627101

已经核实过，日志中也已经显示通过域去访问，包括登录审计日志中账号状态为正常，但提示密码错误，其间也尝试过通过邮箱，用户名@域名 为账号均无法正常访问

确认下是不是这个问题: #429 (comment)

已经核实过，日志中也已经显示通过域去访问，包括导出登录审计日志中账号状态为正常，但提示密码错误，其间也尝试过通过邮箱，用户名@域名 为账号均无法正常访问

    @staticmethod
    def fetch_username(field_fetcher, user_info: dict) -> str:
        return force_str(field_fetcher.get_value(field_name="username", user_meta=user_info["raw_attributes"]))

    @staticmethod
    def fetch_dn(user_info: dict) -> str:
        return force_str(user_info["raw_attributes"]["entryDN"][0])

#============================================

    def check(self, profile, password):
        users = client.search(
            object_class=config_loader["user_class"],
            attributes=field_fetcher.get_user_attributes(),
        )
        logger.debug("search results users: %s", users)
        target_dn = None
        for user in users:
            if not user.get("raw_attributes"):
                logger.debug("user %s has no raw_attributes, skip", user)
                continue

            if self.fetch_username(field_fetcher, user) == profile.username:
                target_dn = self.fetch_dn(user)

        if not target_dn:
            raise FetchUserMetaInfoFailed("获取用户基本信息失败")

目前应该是能连通到ldap的
登录逻辑是 username@域登录, 解析得到username之后, 请求ldap获取用户信息
但是从ldap无法获取到用户的 raw_attributes 或者 raw_attributes.entryDN[0], 导致在最后判断失败
可以尝试开启debug获取更多的日志
bkuser_core/config/overlays/prod.py 中 LOG_LEVEL改成 "DEBUG"(注意是字符串, 有引号), 然后重启
LOGGING = get_logging(logging_type=LoggingType.STDOUT, log_level=LOG_LEVEL, package_name="bkuser_core")

复现登录失败过程, 拿到登录过程中打的 debug 日志

DEBUG [2023-02-14 10:43:51] 122 process_request 11686 140094817016392
request info: Path(/api/v2/categories/) with QueryString<no_page=True&fields=domain%2Cid%2Cdefault&lookup_field=enabled&exact_lookups=True> via GET from RemoteAddr<10.1.10.53> Agent<python-requests/2.21.0> AcceptLanguage<MISSING> Operator
DEBUG [2023-02-14 10:43:52] 122 process_request 11689 140094686169416
request info: Path(/api/v1/login/check/) with QueryString<> via POST from RemoteAddr<10.1.10.53> Agent<python-requests/2.21.0> AcceptLanguage<MISSING> Operator
DEBUG [2023-02-14 10:43:52] 633 login 11689 140094686169416
do login check, username, domain=<cgr.com.cn>
DEBUG [2023-02-14 10:43:52] 647 login 11689 140094686169416
do login check, will check in category
DEBUG [2023-02-14 10:43:55] 41 check 11689 140094686169416
going to search users, object_class: inetOrgPerson, attributes: ['sAMAccountName', 'displayName', 'mail', 'mobile']
INFO [2023-02-14 10:43:55] 106 search 11689 140094686169416
going to search (objectClass=inetOrgPerson) from OU=ITC,OU=BJIT,DC=cgr,DC=com,DC=cn
DEBUG [2023-02-14 10:43:55] 47 check 11689 140094686169416
search results users: []
ERROR [2023-02-14 10:43:55] 753 login 11689 140094686169416
login check, check profile of username=wuyuhua, domain=cgr.com.cn in category failed
Traceback (most recent call last):
File "/data/bkce/usermgr/api/bkuser_core/profiles/v2/views.py", line 745, in login
File "/data/bkce/usermgr/api/bkuser_core/categories/plugins/ldap/login.py", line 60, in check
bkuser_core.categories.plugins.ldap.exceptions.FetchUserMetaInfoFailed: 获取用户基本信息失败
debug日志如上

对应代码的位置
https://github.com/TencentBlueKing/bk-user/blob/73e0dd1238dc454bda427e8e732271b0fea79018/src/api/bkuser_core/categories/plugins/ldap/login.py#L38-L47
DEBUG [2023-02-14 10:43:52] 633 login 11689 140094686169416
do login check, username=<用户名>, domain=<cgr.com.cn>

DEBUG [2023-02-14 10:43:52] 647 login 11689 140094686169416
do login check, will check in category

DEBUG [2023-02-14 10:43:55] 41 check 11689 140094686169416
going to search users, object_class: inetOrgPerson, attributes: ['sAMAccountName', 'displayName', 'mail', 'mobile']

INFO [2023-02-14 10:43:55] 106 search 11689 140094686169416
going to search (objectClass=inetOrgPerson) from OU=ITC,OU=BJIT,DC=cgr,DC=com,DC=cn

DEBUG [2023-02-14 10:43:55] 47 check 11689 140094686169416
search results users: []

意味着, 调用ldap client向ldap 服务器发起查询没有命中用户
查询条件:

start root: OU=ITC,OU=BJIT,DC=cgr,DC=com,DC=cn
object_class: inetOrgPerson
attributes: ['sAMAccountName', 'displayName', 'mail', 'mobile']

ldap没有报错并且正常返回了, 返回结果是[]

search inetOrgPerson where sAMAccountName=用户名 or displayName=用户名 or mail=用户名 or mobile=用户名

上面日志中的username=<用户名>是贴日志的时候手工去掉了?
用户管理调用 ldap 流程没有报错
两个可能原因:

按照这个查询条件, ldap的确没有数据
ldap 对应查询接口做了什么处理, 不支持上面这种查询条件
配置在用户管理的ldap配置有问题, 导致构造的查询条件有问题

依赖的ldap3库, 可以写脚本验证确认问题 https://github.com/TencentBlueKing/bk-user/blob/v2.4.2/src/api/bkuser_core/categories/plugins/ldap/client.py#L17
其他:

参考社区论坛 https://bk.tencent.com/s-mart/community/question/1901  确认下是mad还是ldap, ldap的用户名应该是cn? 可以验证下
这个issue https://github.com/TencentBlueKing/bk-user/issues/429  中有一些目前已经遇到过的问题供参考

有确认原因吗? @CloudVapour

authors: CloudVapour wklken


text:
Feature Request: fire event when selectAll is clicked

Possibly similar to the rowSelect event, or even just something that fires so one can see when this happened.  Alternatively, rowSelect could be fired on all the rows since they are being selected/de-selected (could this be a bug?).  Thank you.

Nevermind, this is present, just not in the docs

repo: Teradata/covalent


text:
🛑 Arma 3 Server is down

In 30ec706, Arma 3 Server (https://arma3-servers.net/api/?object=servers&element=detail&key=$ARMA3_API) was down:

HTTP code: 200
Response time: 500 ms

Resolved: Arma 3 Server is back up in 99c801d.

repo: Terra-Isles-Roleplay/TRP-Status


text:
Support for Cabal-1.24 and GHC 8.0.2

I inserted some CPP magic to also support GHC 8.0.2. Judging from the use case I have, this seems to work fine. I guess this is just a temporary work-around anyway, since you could drop support for Cabal < 2 at some point in the future when stack switched to Cabal 2.

Seems like I screwed up the CI by not adding an addition --install-ghc to the new lts-9 config.

Nice work, thanks @sgraf812
By the way, the  Cabal  version which stack is built upon shall be irrelevant to this package's Cabal version.

Ah, OK. So stack already supports Cabal 2. Obviously, otherwise the build wouldn't work.

Could you please file a new release when you think it's good to go?

@sgraf812 0.0.4 shall be out after a day or two.

repo: TerrorJack/cabal-toolkit


text:
AsyncEvents in EventSink

Added publishAsync to EventSink interface and corresponding implementation in  NatsEvetnSink default implementation.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

authors: CLAassistant NigeWarren

repo: Tesco/mewbase


text:
Recursively Reverse Stack

💥 Proposal
Recursively reversing a stack in C++.
Have you read the Contributing Guidelines on Pull Requests?
Yes

/assign

repo: TesseractCoding/NeoAlgo


text:
Container with most water in java

Have you read the Contributing Guidelines on Pull Requests?
Yes
Description
Code added for Container with most water in java
Checklist

[X] I've read the contribution guidelines.
[X] I've checked the issue list before deciding what to submit.
[X] I've edited the README.md and link to my code.

Related Issues or Pull Requests
Issue #900

I'm closing the PR due to no activity. If you would like to reopen this PR to be reviewed please join the Slack and drop me a message.


text:
Add files via upload

Have you read the Contributing Guidelines on Pull Requests?
(Write your answer here.)
Yes
Description
(Write your answer here.)
This code in C program helps the user to find the Adjacency Matrix, and print the nodes with adjacent vertices.
Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.
[x] I've edited the README.md and link to my code.

Related Issues or Pull Requests
(Write your answer here.)

We don't accept PRs without any Issues. Thanks!

authors: Aleena-Ashraf HarshCasper


text:
spaces removed from project name

pröblem

https://github.com/Testaustime/testaustime-micro/blob/d74b6510b549a7e049f428f002dd7809ac8b0d4e/testaustime.lua#L84

pls fix + pr

authors: Chicken bluelhf

repo: Testaustime/testaustime-micro


text:
🛑 Nextcloud is down

In c4c69fd, Nextcloud (https://nextcloud.tetragg.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Nextcloud is back up in 5ce4dda.

repo: TetraGG/Upptime


text:
🛑 Proxmox is down

In f82c82d, Proxmox (https://pve.tetragg.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Proxmox is back up in f65f759.


text:
🛑 Jellyfin is down

In 51407bf, Jellyfin (https://jellyfin.tetragg.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Jellyfin is back up in 29298cc.


text:
🛑 Jellyfin is down

In 737a9c5, Jellyfin (https://jellyfin.tetragg.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Jellyfin is back up in cc76678.


text:
🛑 Jellyfin is down

In 97df6ea, Jellyfin (https://jellyfin.tetragg.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Jellyfin is back up in f2d734c.


text:
🛑 Proxmox is down

In 8dec02f, Proxmox (https://pve.tetragg.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Proxmox is back up in 68519e6.


text:
🛑 Proxmox is down

In d9cf01e, Proxmox (https://pve.tetragg.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Proxmox is back up in c6854db.


text:
🛑 Nextcloud is down

In 56aa4da, Nextcloud (https://nextcloud.tetragg.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Nextcloud is back up in 88df4b2.


text:
🛑 Jellyfin is down

In 455a221, Jellyfin (https://jellyfin.tetragg.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Jellyfin is back up in 81f18c6.


text:
🛑 Proxmox is down

In 412296b, Proxmox (https://pve.tetragg.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Proxmox is back up in b28fcd0.


text:
🛑 Jellyfin is down

In f64a280, Jellyfin (https://jellyfin.tetragg.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Jellyfin is back up in c55288e.


text:
[BUG] Extra newline while logging in VSCode Jupyter Notebook

[x] I've checked docs and closed issues for possible solutions.
[x] I can't find my issue in the FAQ.

Describe the bug
Hi! First, thanks for developing rich, it's been a big quality of life improvement for me!
When doing consecutive Console.log()s in jupyter notebook cell, it adds some weird newlines. Also, near each new log there's a Change presentation button (</> left to the cell). Using consecutive prints doen't show such behaviour.

Platform

Click to expand
╭──────────────────── <class 'rich.console.Console'> ─────────────────────╮
│ A high level console interface.                                         │
│                                                                         │
│ ╭─────────────────────────────────────────────────────────────────────╮ │
│ │ <console width=115 ColorSystem.TRUECOLOR>                           │ │
│ ╰─────────────────────────────────────────────────────────────────────╯ │
│                                                                         │
│     color_system = 'truecolor'                                          │
│         encoding = 'utf-8'                                              │
│             file = <ipykernel.iostream.OutStream object at 0x107535970> │
│           height = 100                                                  │
│    is_alt_screen = False                                                │
│ is_dumb_terminal = False                                                │
│   is_interactive = True                                                 │
│       is_jupyter = True                                                 │
│      is_terminal = True                                                 │
│   legacy_windows = False                                                │
│         no_color = False                                                │
│          options = ConsoleOptions(                                      │
│                        size=ConsoleDimensions(width=115, height=100),   │
│                        legacy_windows=False,                            │
│                        min_width=1,                                     │
│                        max_width=115,                                   │
│                        is_terminal=True,                                │
│                        encoding='utf-8',                                │
│                        max_height=100,                                  │
│                        justify=None,                                    │
│                        overflow=None,                                   │
│                        no_wrap=False,                                   │
│                        highlight=None,                                  │
│                        markup=None,                                     │
│                        height=None                                      │
│                    )                                                    │
│            quiet = False                                                │
│           record = False                                                │
│         safe_box = True                                                 │
│             size = ConsoleDimensions(width=115, height=100)             │
│        soft_wrap = False                                                │
│           stderr = False                                                │
│            style = None                                                 │
│         tab_size = 8                                                    │
│            width = 115                                                  │
╰─────────────────────────────────────────────────────────────────────────╯
╭─── <class 'rich._windows.WindowsConsoleFeatures'> ────╮
│ Windows features available.                           │
│                                                       │
│ ╭───────────────────────────────────────────────────╮ │
│ │ WindowsConsoleFeatures(vt=False, truecolor=False) │ │
│ ╰───────────────────────────────────────────────────╯ │
│                                                       │
│ truecolor = False                                     │
│        vt = False                                     │
╰───────────────────────────────────────────────────────╯
╭────── Environment Variables ───────╮
│ {                                  │
│     'TERM': 'xterm-color',         │
│     'COLORTERM': None,             │
│     'CLICOLOR': '1',               │
│     'NO_COLOR': None,              │
│     'TERM_PROGRAM': None,          │
│     'COLUMNS': None,               │
│     'LINES': None,                 │
│     'JUPYTER_COLUMNS': None,       │
│     'JUPYTER_LINES': None,         │
│     'JPY_PARENT_PID': '62044',     │
│     'VSCODE_VERBOSE_LOGGING': None │
│ }                                  │
╰────────────────────────────────────╯
platform="Darwin"

Hi @lainisourgod, in case you haven't yet figured it out, here's a workaround I use: (It's not ideal, but gets the job done)
console = Console(force_jupyter=False)

authors: lainisourgod ma-sadeghi

repo: Textualize/rich


text:
Let rich.pretty.install support ptpython, fix #2749

Type of changes

[ ] Bug fix
[x] New feature
[ ] Documentation / docstrings
[ ] Tests
[ ] Other

Checklist

[x] I've run the latest black with default args on new code.
[x] I've updated CHANGELOG.md and CONTRIBUTORS.md where appropriate.
[ ] I've added tests for new code.
[x] I accept that @willmcgugan may be pedantic in the code review.

Description
Please describe your changes here. If this fixes a bug, please link to the issue, if possible.
Fix #2749
Keep original for self.enable_pager because it seems to be hard to change.

I don't think I can accept this. There needs to be a better mechanism that try all possible libraries until one works. Perhaps Rich is not the right place for this code.

I can understand. However, can you reopen #2749 to let more one see this unfinished feature request?

authors: Freed-Wu willmcgugan


text:
Actions in footer not working

I have noticed that actions in the footer no longer work by clicking them or using keyboard shortcuts (C^t, C^s, etc).
The BINDINGS defined in the CommandBuilder class no longer propagate to the parent Trogon class, where the handlers are defined (e.g., action_focus_command_tree).
Moving the BINDINGS to the Trogon class fixes the problem for me. Moving the handlers down to the CommandBuilder does as well, but I'm not sure which solution is better. Could this be an underlying issue with Textual?
I'm happy to open a PR and move the BINDINGS, just let me know if this is an ok solution.

Is this potentially a duplicate of #82 ?

Ah, yes. Looks like a duplicate. Closing this one, thanks!

repo: Textualize/trogon


text:
🛑 node3.th7bo.com is down

In 35f40a1, node3.th7bo.com (node3.th7bo.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: node3.th7bo.com is back up in 2db02c7 after 3 hours, 32 minutes.


text:
🛑 node3.th7bo.com is down

In 008f17d, node3.th7bo.com (node3.th7bo.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: node3.th7bo.com is back up in 9c25ed8 after 2 hours, 57 minutes.