Create config/test module, move common.py constants to config

Context
There are two locations where application-wide constants are stored, within common.py and within the config/ directory.
The config/ directory contains config/local and config/production modules, which both extend config/common, to allow for environment specific configurations with environment level constants.
There is an __init__ script inside the config/ directory which contains logic for dynamically importing either module depending on the environment being used.
Problem or idea
The philosophy that we'd like to more consistently enforce is that

All environment level constants should live in the config/ directory
All application level constants should live in common.py

There are currently a handful of environment level constants living inside of common.py that we'd like to move over to their suitable locations within the config directory.
As well, a config/test module should be added, which extends config/common and removes the need for conditional logic inside of common/local to accommodate the testing environment more explicitly.
The __init__ script should also be adjusted to add a clause for the dynamic importing of the config/test module during testing.
Solution or next step
config/common.py
...
class Common():
    ...
    # File path locations
    CODE_PATH = (
        code_path
        if (code_path := Path("/home/user/code")) and code_path.exists()
        else Path("/home/user")
    )
    DATA_PATH = CODE_PATH / "data"
    INPUT_DATA_PATH = DATA_PATH / "input"
    OUTPUT_DATA_PATH = DATA_PATH / "output"

    TEMPLATE_PATH = CODE_PATH / "scpca_portal" / "templates"

config/common.py
...
class Local(Common):
    ...
    # AWS S3
    AWS_S3_INPUT_BUCKET_NAME = "scpca-portal-inputs"
    AWS_S3_OUTPUT_BUCKET_NAME = "scpca-local-data"
    ...

config/test.py

import os

from scpca_portal.config.common import Common

class Test(Common):
    # File path locations
    DATA_PATH = CODE_PATH / "test_data"
    INPUT_DATA_PATH = DATA_PATH / "input"
    OUTPUT_DATA_PATH = DATA_PATH / "output"

    DEBUG = True

    # Mail
    EMAIL_HOST = "localhost"
    EMAIL_PORT = 1025
    EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"

    UPDATE_S3_DATA = False

    # AWS
    AWS_REGION = None

    # AWS S3
    AWS_S3_INPUT_BUCKET_NAME = "scpca-portal-public-test-inputs/2024-07-19/"
    AWS_S3_OUTPUT_BUCKET_NAME = "scpca-local-data"

    CSRF_TRUSTED_ORIGINS = ["localhost", "<IP_ADDRESS>"]

    # This is only needed locally because everything else will use S3.
    DEV_HOST = os.getenv("DEV_HOST")

Addressed in https://github.com/AlexsLemonade/scpca-portal/pull/914


Adds html and css to section 2 gallery page

[x] Adds necessary html
[x] Adds css to resemble Figma design

I understand your confusion, haha. I haven't touched any of the code other than "section two" but prettier is formatting automatically on save and the other code wasn't formatted apparently. Anyways, I will talk to my team about the search bar section. Thanks :)

Alright, well if its all alright with them and I dont reply within my active hours you may squash and merge this. Because other then the question about the formatting with main I didnt see any other wrongs within the code


student/allTests

Update with following changes :

Provide a header text - "Choose a test and submit answers"
padding needed on the right side of the table

done


[ISSUE] Shell Crashes & Control Ribbon Issues

Describe the bug

The beta release does indeed fix the CPU usage issue, however the missing buttons for closing/minimising/maximising is still an issue (if they do appear, it takes time); Moreover, when the app is injected into Windows I seem to hear my OS playing error/crash sounds in the background, which I can confirm to be an issue caused by the Shell, since explorer.exe crashing makes this sound.

To Reproduce

Install "Shell"
Hook "Shell" into explorer.exe
Use the "Shell" app
Wait a bit - you'll eventually hear an error sound and in Event Viewer you'll have this:

Expected behaviour

The app should work properly without crashing the shell and causing the buttons for closing/minimising/maximising to be broken.

Your environment

OS: Windows 11 (22H2/22621.963)
CPU: Ryzen 5 5600X

Another thing I notice is the fact that when I open a new File Explorer while the CPU usage is high the buttons for closing/minimising/maximising the window are completely gone.

This issue was fixed in the beta version. Please refer to this topic #37

I am using the beta version (I replaced the old files with the new ones) and I still have the same issue

Please try this build

I tried it but it seems to use a .nss (and not a .shl file), which leads to me losing all default stuff that I customised. The shell has not crashed yet, but I'll wait a little bit more before reporting back to you.

Alright, the shell seems to no longer crash, however I don't have anything custom other than 1 single thing:

Is there at least a default config that matches the default one that the 1.7/1.8 beta use?

Please refer to this topic #66


[new metric proposal] - Power consumption per power supply - purefa_hw_component_power_watts

Metric name: purefa_hw_component_power_watts
Description: FlashArray hardware component consumption in watts
Dimensions: component_name, component_type
Example output:
purefa_hw_component_power_watts{component_name="CH0.PWR0",component_type="power_supply"} 1121
purefa_hw_component_power_watts{component_name="CH0.PWR1",component_type="power_supply"} 1120
Is the metric currently available in the Purity API? : No
Recommended Status in the metric spec : Accepted

Hi @chrroberts-pure Do you have any update on the availability of the purefa_hw_component_power_watts metric?  This would be incredibly useful.  Thank you!

@chrroberts-pure  Do you have any update on the availability of the purefa_hw_component_power_watts metric?  This would be incredibly useful.  Thank you!

@imperatives We agree, it will be incredibly useful! I don't currently have an update on it's availability, but your additional request has been noted.


StreamIterator

Added a StreamIterator to ease output streaming to not just Stdout
PRM @junrushao @tqchen

Looks nice! CC @CharlieFRuan @MasterJH5574 if you guys are interested!

@junrushao  could you please merge it

That looks great to me! @MasterJH5574 please take a second look and get it merged :)

This is great addition to our Python API! Thanks @varshith15 a bunch!


Added api specs for Learner Neurodivergence

Learner Neurodivergence api specs

Can you include an optional query filter for NOMIS prison code. If a prison code is set, only return results for that prison

@rj-adams Added establishment id (NOMIS prison code) as optional query parameter.

All looks good


Fixes #2471 Symbol registration map should support null characters in symbol names.

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

LGTM - please add tests for both APIs


common.type not set for devices (warning)

Describe the bug
I reinstalled ioBroker and installed ioBroker.freeAtHome. Currently, a lot of devices are reported with the following error message:
Object of state "freeathome.1.ABBxxxxxxx.deviceId" is missing the required property "common.type"

This is just an example, it returns for > 100 log entries.
To Reproduce
Steps to reproduce the behavior:

Install adapter
Configure instance
Look at log for this adapter.

Expected behavior
No warnings :)
Versions:

Adapter version: v0.0.10
JS-Controller version: v4.0.21
Node version: v14.19.0
Operating system: Raspbian 11

For me it looks like we need to add it here, depending on the device type:
https://github.com/mobilutz/ioBroker.freeathome/blob/516b928ec434c490f062c2df0349d656e0db39e4/lib/freeathome.js#L70

The freeathome-api provides information like functionId which might help us in this case to categorize the type.

In my opinion, the functionId the API provides for both devices and channels can be used to determine the common.type.
Full list of functionIds
e.g.

0x0000 | FID_SWITCH_SENSOR must be boolean
0x0012 | FID_DIMMING_ACTUATOR must be a number

Full list of types
@mobilutz What do you think of this approach to map functionIds to common.types?

@guerda This sure sounds like a very good idea!
I will try to get to this as soon as possible.

Work in progress in #480

I had the same issue and it is not mandatory to set the common.type based on the function.
The problem is that the functionId for the entire channel, but the type needs to be set to every single datapoint. A Channel with functionId 0x0000 can still have a name ("string") or a status ("boolean") or any other type as well.
If - then the type needs to be set based on the pairingID, which is available in the API but not exposed by the adapter.
https://developer.eu.mybuildings.abb.com/fah_cloud/reference/pairingids/
The good thing is - when I look into Swagger API, then all values delivered back are always from type string.
I solved this for me with a small skript:
`    var INSTANCE = "freeathome.0"
var ALL = INSTANCE + "...";
var DEVICEIDS = INSTANCE + "..deviceId";
$(ALL).each(async function (id) {
    var tempObject = getObject(id);
    if (typeof(tempObject.common.type) == 'undefined') {
        tempObject.common.type = "string";
        await setObjectAsync(id, tempObject);
        log("Updated common.type to string for Channel " + id, "info");
    }
});

$(DEVICEIDS).each(async function (id) {
    var tempObject = getObject(id);
    if (typeof(tempObject.common.type) == 'undefined') {
        tempObject.common.type = "string";
        await setObjectAsync(id, tempObject);
        log("Updated common.type to string for Channel " + id, "info");
    }
});`

This was added in https://github.com/mobilutz/ioBroker.freeathome/commit/68177ae9efbb1051f959997e7887c0f2977e31f0


Feeding with files/directories in addition to the other functions

Great extension, thanks a lot for your work!
There is on specific function I am missing at the moment which is to feed the conversation with multiple files. I think passing file by file or each file after each other is the way to go here. So awaiting the asynchronous calls call by call in a loop.
Let's assume the user got the following file structure in example:
main.cpp
network/
├─ wifi.h
├─ wifi.cpp
├─ ntp.h
The user would mark all the files, right click and the context menu opens and the user selects "Add files to conversation". Therefore we could provide:

A tree like structure like above and instructions how to proceed with the incoming conversation details
Tell the AI to just answer with some predefined answer like e.g. "Ok" or even to "Comment it in two sentences" (could be modified of course)
Then pass file by file with a filename

So this would look like this:
User: "Here is some context for the next questions. At first have a look at the following file structure:
main.cpp
network/
├─ wifi.h
├─ wifi.cpp
├─ ntp.h
In the next steps I will show you the file name and content. For every file just answer with 'Ok' till I tell you to do differently."

Bot: "Ok"
User: "That's it. Just tell me if you understood or didn't in a sentence."

You're right that ChaptGPT is limited in that sense but this doesn't mean that this isn't a useful feature in my opinion because ChatGPT's answers are quite more accurate if you share any context. As a user you can control the amount of context and sharing a single (and even 2 or 3) file(s) can be handled without a problem in my experience. Even if nobody can say what the future brings I think the amount of possible amount of context will be generally increasing. So it makes sense to realize this feature in my opinion.

Hm, isn't this even more useful with GPT-4 because of the havily increased context length?

@sreimchen Please see #239 and our readme about our announcement :(
I'll make sure to archive these feature requests and provide to whomever continues the journey, it won't be us unfortunately.


Implement Alibaba cloud SLS project

Description of your changes
Support provision Alibaba Cloud SLS project, create examples directory
for official examples and update makefile

Fixes #
I have:

[x] Read and followed Crossplane's contribution process.
[x] Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

Hi, Nic, we're going to implement more cloud resources here

That's great news!

do you have any suggestion about the priority of cloud resources needed?

Why don't we start an issue on this repository to gather input from users - Slack would be a great place to ask the community for input on this.

Thanks for working on this @zzxwill! Looks like a great start, but I would prefer if this managed resource was more in line with typical Crossplane conventions. If you strongly disagree with any we can discuss that and perhaps capture how provider-alibaba will diverge and why.

HI @negz  Can we merge it first and fix the rest in following PRs. We need it to be merged and show in demos.

HI @negz Can we merge it first and fix the rest in following PRs. We need it to be merged and show in demos.

No, sorry. I recommend building the provider from a fork if you need to use it for demos. I'm happy to merge once the remaining comments are addressed.

This is looking good @zzxwill, thank you. The main thing that still needs addressing is using meta.GetExternalName.
Done. Per your suggestion, I believe SLS project name spec.froProvider.name should be deleted and the managed resource name should be regarded as the SLS project name.

I also wonder if we should agree on the pattern proposed in #63 before we merge this PR, but if it's urgent I could be convinced to approve while we figure out #63.
I will add more some examples in #63 after I talked with my colleagues which will integrated provider-base base logics.

@negz And I am so sorry for the late of addressing your newly two comments:) I was so busy with some other stuffs.

No problem @zzxwill! We've been very busy too. :) Thanks for addressing my comments about using GetExternalName and pkg/errors. It seems like there are now only two things we need to sort out to merge this:

The latest commit is failing our linter; I think one of the files needs a gofmt.
Figuring out what we are going to do about https://github.com/crossplane/provider-alibaba/issues/63.

I prefer to not introduce the BaseObserve pattern in this PR until after we have a chance to discuss the context and approach in https://github.com/crossplane/provider-alibaba/issues/63. How do you feel about updating this PR to use a 'normal' ExternalClient implementation for now, until we discuss further and agree?

@negz Your suggestion is helpful for decomposing the problems. Addressed all of the two. Thanks help review it:)

Why don't we start an issue on this repository to gather input from users - Slack would be a great place to ask the community for input on this.

Create the issue #67, and I will talk to some potential users and contributors offline first.


[MUGEN] Add remap notebook to load VQVAE checkpoint and compare output

Summary:
Adds notebook used to remap state_dict from MUGEN checkpoint, load into our VQVAE, and compares the outputs to ensure parity.
Merge after #237
Test plan:
None required, just the notebook. You can see the notebook here: https://colab.research.google.com/drive/1hGDig_rXyPn9tPWBD-5zBbQLD3w_ek2l?usp=sharing

Codecov Report

Merging #238 (52cf970) into main (f9327de) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #238   +/-   ##
=======================================
  Coverage   92.11%   92.11%
=======================================
  Files          49       49
  Lines        3055     3055
=======================================
  Hits         2814     2814
  Misses        241      241

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


Casting web_time::SystemTime to std::time::SystemTime

I ran into a case where I needed to cast an instance of web_time::SystemTime back to a std::time::SystemTime since another library's struct explicitly required that type.
I came up with this function as a bandaid:
fn to_std_systemtime(time: web_time::SystemTime) -> std::time::SystemTime {
    let ts_millis = time.duration_since(SystemTime::UNIX_EPOCH).unwrap().as_millis();
    let ts_secs = ts_millis / 1000;
    let ts_ns = (ts_millis % 1000) * 1_000_000 ;
    let dt = DateTime::<Utc>::from_timestamp(ts_secs as i64, ts_ns as u32).unwrap();
    return std::time::SystemTime::from(dt);
}

Is there a nicer way to do this? Would it make sense to include such a function in the lib?
Thanks!

On non-WASM, it should be the same type. On WASM without WASI, you shouldn't be able to instantiate std::time::SystemTime anyways.

I think the following would suffice.
fn to_std_systemtime(time: web_time::SystemTime) -> std::time::SystemTime {
    let duration = time.duration_since(web_time::SystemTime::UNIX_EPOCH).unwrap();
    std::time::SystemTime::UNIX_EPOCH + duration
}

The problem is that the library you are trying to be compatible with could be using std::time::SystemTime::now() internally, which would panic during runtime. So either way I would encourage you to check with the library if they could depend on web-time if it makes sense.
In any case, I think adding a conversion behind a trait doesn't hurt, though I will document that this might just be a footgun.

On that note, I will also transition to using Duration internally on SystemTime, right now I was using i64.
The original reason was that according to ECMA Date.now() can actually return negative numbers, but that isn't really practically possible in our use-case here. I'm sure there are some weird JS environments out there that might support something like this, but we are targeting Web and browsers, which shouldn't be supporting that.

Awesome - thanks for the simplified snippet and feedback!

I still plan on adding the conversion!


[pylint]  Include parentheses and multiple comparators in check for boolean-chained-comparison (PLR1716)

This PR introduces two changes to the diagnostic and fix behavior (still under preview) for boolean-chained-comparison (PLR1716).

We now offer a fix in the case of parenthesized expressions like (a < b) and b < c. The fix will merge the chains of comparisons and then balance parentheses by adding parentheses to one side of the expression.
We now trigger a diagnostic (and fix) in the case where some comparisons have multiple comparators like a < b < c and c < d.

While these seem like somewhat disconnected changes, they are actually related. If we only offered (1), then we would see the following fix behavior:
- (a < b) and b < c and ((c < d))
+ (a < b < c) and ((c < d))

This is because the fix which add parentheses to the first pair of comparisons overlaps with the fix that removes the and between the second two comparisons. So the latter fix is deferred. However, the latter fix does not get a second chance because, upon the next lint iteration, there is no violation of PLR1716.
Upon adopting (2), however, both fixes occur by the time ruff completes several iterations and we get:
- (a < b) and b < c and ((c < d))
+ ((a < b < c < d))

Closes #13524
(1) and (2) are implemented in separate commits for ease of review and modification.
Technically a user can trigger an error in ruff (by reaching max iterations) if they have a humongous boolean chained comparison with differing parentheses levels.

No obligation to review @zanieb , but figured I'd ping you since you wrote the first PR addressing this issue. Let me know if this fix is way off base from what you had in mind 😄


change credits style

Test here: https://q.st-staging.nzz.ch/item/imageslider-0

This looks great now. Well done 👍
This tool could definitely benefit of being converted to a svelte component. It very easy to introduce bugs while change smth. We can keep it in mind if we are looking for new projects.

Thanks. Those were my exact thoughts as well: "Man. This would have been so much easier in Svelte!" 😄


Create CONTRIBUTE.md

Create CONTRIBUTE.md to list contribution, separet from README

Hi @harryandriyan thanks for your PRs!
Could you combine this PR and https://github.com/NAVCoin/navcoin-org/pull/84/ into one pull request?
Could you also link the contribute file from the readme.md?
Something like For information on contributing please see [CONTRIBUTE.md](CONTRIBUTE.md) would be fine 🙂

done, add commit https://github.com/NAVCoin/navcoin-org/pull/82/commits/fd7ac0e89aaf3f73d96256e165b11164f751770a @matt-auckland Thanks :smiley:

@harryandriyan I've noticed that there is a merge conflict with your branch now, can you solve this please? Happy to merge it after that


Update plugin.py - bump omnisharp to 1.37.17

Not sure if github has a way to automate this. Is there any place else that needs to change? Thanks!

You could check if there are any new server settings.

Not sure how best to do that. I compared the two versions and didn't find any new settings.
https://github.com/OmniSharp/omnisharp-roslyn/compare/v1.37.16...v1.37.17


Can't use this module with an identity

Because of this, this module can't be used with a system assigned identity and requires a service principal.
I think it should be more generic.

Hi @mcanevet , thanks for opening this issue. Would you mind opening an issue here to notify the service team your suggestion?

@yupwei68 I'm not sure to understand why I should open an issue into the repo that hosts "The source for REST API specifications for Microsoft Azure". There is nothing to change in Azure's API. The problem is located in this Terraform module. Both the Azure API and the Azure Terraform provider supports creating an AKS cluster with a System Assigned Identity.


balena preload dtoverlay changes only take place after first boot

Since these changes are applied during the provisioning steps, they do not appear immediately after the preload, but only after the device is properly provisioned. I can't find this distinction documented anywhere, so we should make that clearer.

[xginn8] This issue has attached support thread https://jel.ly.fish/#/support-thread~603579b4-93d3-4e14-99f7-4c7d94ddbfec


Enable Discussions for this repo

@aalaesar do you have permission to do it?
May be better than create issues in some cases.

I've created a default discussion. So the feature should be enable now.
Thank you for the suggestion @staticdev 😄

Thanks


Consider aria-labelledby and  aria-describedby when making IDs unique.

The attributes aria-labelledby and  aria-describedby can be used to enhance accessibility for SVG elements. For both the value consists of a space separated list of element IDs. Currently these IDs are not changed when we make IDs unique. As a result the IDs are no longer in the DOM, so the attributes do not work anymore. We should make the IDs in these attribute values unique, too.
aria-labelledby' and aria-describedby` on MSN web-docs:
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-labelledby_attribute
https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute

There are other ARIA attributes that have IDs references or ID reference lists as values, for example aria-flowto, aria-owns, aria-controls, aria-errormessage, aria-details.
More details at https://www.w3.org/TR/wai-aria


Refreshing the data table

I have a data table that's working properly. It's rows property is set to an an array in my controller named lineItems. I'm using controllerAs syntax, so it's actually set to order.lineItems. I have another non-angular-data-table list of items that assigns values to the currentRow in the data table when double clicked. This code looks like this:
// $scope.$apply(function () {
           vm.lineItems[vm.selectedRow.$$index].foundItem = product.stk_num;
           vm.lineItems[vm.selectedRow.$$index].title = product.title;
           vm.lineItems[vm.selectedRow.$$index].foundBy = "Cart Search";
// })

The values all update properly, but the data table is not refreshed. If I uncomment out the $scope.$apply function I receive this error: Error: $rootScope:inprog
Action Already In Progress.
If I scroll the data table, then it's updated.
I'm not sure if you'd consider this a bug or not. Is there a function I can call to update the data table?

Try $timeout ...

$timeout doesn't work either. I should have mentioned that I had already tried that as well.


Platform error sensor.renaultze - No module named 'pyze'

Hello,
i download the new git you upgrade tomorrow.
i do what README say in my configuration.yaml
But, when i test configuration before reboot, i have this:
Platform error sensor.renaultze - No module named 'pyze'
What i have to do?

It seems you are missing the pyze module.
Did you copy the correct "manifest.json" on your server? Home Assistant uses that to download (or upgrade) the module.

yes I copied the renaultze folder with the 3 files including the one you modified 14 hours ago
i do this i my configuration.yaml:
sensor:
Renault ZE

platform: renaultze
name: ZE40
username: !secret mail_icloud
password: !secret renaultze_password
vin: !secret renaultze_vin

i tested my log in myrenault.com. it's good

I suggest you post your whole log file.
Maybe there is an indication why the pyze download didn't work...

How do we do that? I don't know much about it

I restarted my Hassio without adding the sensor in the configuration.yaml file and then I added the lines in the configuration.yaml file and by doing a configuration test it tells me that everything is ok! You must therefore add your renaultze folder, then restart Home assistant.


After El Capitan update the iOS Simulator fails to load the app

AppGyver scanner lunches and just shows an alert saying Connection Error, Could not open connection... (see attachment)
Ran Steroids Update and npm update same behavior.

+1

Thanks, we'll investigate!

I have this problem too. I think it's because the Xcode Command-Line Tools are not ready for mac 10.11 yet.

Confirmed on our end too, we'll try to work a solution ASAP. Sorry for the trouble!

+1

+1

We found out the problem – Simulator tries to connect to http://machine_ip:4567, which no longer works in El Capitan. Solution is to roll out a new version of Simulator that connects to http://localhost:4567. Stay tuned for updates!

:+1:

@harsaharsa How long until you have a working fix? This is a blocker for us.

Seeing a pending 4.1.21 release, waiting for the Travis builds. Mac is already showing up green.
https://travis-ci.org/AppGyver/steroids/builds/85137716

4.1.21 is released now. Update using npm install -g steroids.

Fix works! Confirmed.

Thanks!!!

gr8!

Still not working for me.
AppGyver Steroids² 4.1.22

I still have this issue with my custom build of the scanner. Has the code been updated there already? If I launch my app with the default scanner it works, though.

Custom simulator builds do not have this fix... sorry about that. Build using "4.0.7 simulator" , it's available on the bottom of "Show older versions" .

Many thanks @pre, that solved the problem :-)


Map

👷 Deploy Preview for quizzical-galileo-bf682e processing.
🔨 Explore the source changes: a07d2ddb3dcd8fd269632092a28e9534ee59c50a
🔍 Inspect the deploy log: https://app.netlify.com/sites/quizzical-galileo-bf682e/deploys/61ebe727bef5670007e5dfb3


Add dash medical provider charges app

App pull request

[x] This is a new app
[x] I am improving an existing app (redesigns/code "makeovers")

About

Playground deployment URL: https://dash-playground.plotly.host/dash-medical-provider-charges/
- Current gallery app URL: (delete this line if inapplicable)
Streambed issue card with link to redesign mockup: https://github.com/plotly/dash-sample-apps/issues/56
- Python app repository link: (delete this line if you are working on a Python app)

Workflow

[x] I have created a branch in the appropriate monorepo, and the
elements necessary for successful deployment are in place.
[x] If the app is a redesigned and/or restyled version of an
existing gallery app, I've summarized the changes requested in the
appropriate Streambed issue and confirm that they have been applied.
- [ ] If the app is a reimplementation of a Python gallery app for the
DashR gallery, the app in this PR mimics, as closely as possible,
the style and functionality of the existing app.

The pre-review review
I have addressed all of the following questions:

[x] Does everything in my code serve some purpose? (I have removed
any dead and/or irrelevant code.)
[x] Does everything in my code have a clear purpose? (My code is
readable and, where it isn't, it has been commented appropriately.)]
[x] Am I reinventing the wheel? (I have used appropriate packages to
lessen the volume of code that needs to be maintained.)

This is a pretty data-heavy app. Could you use Dash Loading States (https://dash.plot.ly/loading-states) for the map and for the tables?

Updates: this PR currently hold off until re-design and styling has been done

Laptop version:

@sacul-git I gave another try on converting procedure plot to box plot, axis position couldn't be solved. Current workaround to improve this figure in mobile layout is to hide axis labels, and set x axis type='log' . LMK if you find a better workaround

not sure why the mobile version has the horizontal scrolling (this only sometimes happen though)

This should be fixed. LMK if more scrolling are noticed.

notice how the "Hospital Charges Summary" has the horizontal scroll and the "Procedure Charges
Summary" doesn't (this only happens when I click on the specific hospitals in the procedure-plot class)

This is because procedure table isn't filled if you select clinics on the map at the first step. I could set it to display all-procedure stats as suggested & added by @sacul-git in dash-r version for clearer user experience.

there's no hover over the procedure-plot on the mobile layout which is kind of confusing and doesn't show any real meaning without the hover data

Not a good idea to hide ticktext in mobile. Will make a scrollable plot instead.


As an admin, I want library members to have unique identifiers that can be included for use in URLs in the public site.

testing notes

when you browse the list of members and load an individual page, the url in your browser location should have a "slug" (lower case letters with optional dashes) instead of a number; check at least one member detail page and member activities

check at least one pair of members with the same last name
check at least one set of names where the same name is repeated multiple times without a first name to differentiate (they should have numbers to distinguish them in the url)

in django admin, person slug should be visible on the person edit page with help text to warn about not changing
when you create a new person record, a preliminary slug should automatically be generated from the name you enter
if you try to save a new person record with a slug that already exists, you should get an error

dev notes

[x] add slug to person
[x] write migration to generate unique slugs

[x] use last name only if sufficiently unique
[x] use lastname-firstname if unique
[x] use lastname-1 etc if required to make unique

[x] update view to use slug for url
[x] update person absolute url method to use slug
[x] make slugs and editable in admin
[x] set slugs properly on new records

We're waiting to do this until the person merge work is complete.

Split logic for old slugs and redirects out into #434

YES, I see the slugs!

First I checked Sam Acheson, and the slug is: https://test-shakespeareandco.cdh.princeton.edu/members/acheson/

Then I checked the Edels, and YES I see Bertha is edel-bertha-cohen (since we haven't adjusted her name yet) and Leon is edel-leon

Then I checked the many Adam's and YES, the slugs differentiate with numbers since we don't have first names. So Adam, Adam-2, Adam-3. The only thing is that right now #11 is adam-2 and #12 is adam, even though they're not in that order. I think it's because #12 Adam only has a membership date in 1926, while #11 adam-2 has dates 1926-27.

YES I see the slug in the admin, as well as the text that explains what it is. See screenshot for Achenbach.

YES when I try to add a person with a slug that already exists, I get an error message and it tells me "Person with this Slug already exists" - I tried to enter in a new Achenbach and was chastised, as I should have been.

YES, I see the slug when I add in a new person. I added in "Rosef, Lily" and the slug was "rosef".

@clmahoney I think the Adams order is ok - the important thing is that they're unique. Was that your question?

Yes it was! but this is looking great.


Fix advisory comment

It's the trailing slash on the URL that's required here (it doesn't matter
if there's a space at the end of the command or not)

Duplicate of #2, so closing this one.


see if avoiding double-finalizing fixes win32 access violation

given the presence of the @NULLCHECK macros I don't see why this would change anything, but I might be missing something

Codecov Report

Merging #124 into master will decrease coverage by 0.92%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #124      +/-   ##
==========================================
- Coverage   74.51%   73.59%   -0.93%
==========================================
  Files           6        5       -1
  Lines         467      462       -5
==========================================
- Hits          348      340       -8
- Misses        119      122       +3

Impacted Files
Coverage Δ

src/SQLite.jl
75.6% <100%> (ø)
:arrow_up:

src/Sink.jl
81.96% <0%> (-4.92%)
:arrow_down:

src/Source.jl
81.81% <0%> (-1.52%)
:arrow_down:

src/consts.jl

Continue to review full report at Codecov.

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

Thanks!


Order of "Cut, Copy, Paste" in editor context menu is wrong

On Windows 8.1, v 0.10.8
Is there a reason for this order? I've only ever seen it ordered as Cut, Copy, Paste, at least on Windows. The main Edit menu, on the other hand, does have them in the right order.

Nice catch!


How to update the options if the select id is updated from which the Multiselcttag was created?

A

Now the select id options changes to :

A
B

how to update the dropdown created by MultiSlelectTag?

I managed to make a workaround by selecting or creating other options. After that, just remove the visual customization and recreate it.
var select = document.getElementById("itens");     response.itens.forEach(item => {         for (var i = 0; i < select.options.length; i++) {             var option = select.options[i];             if (option.value == item.produtoItem.id)                 option.selected = true;         }     });     listElements = document.getElementsByClassName("mult-select-tag")     listElements[0].remove();     new MultiSelectTag('itens');
In my case, I needed to select some options, but it can easily be converted to create other elements (options)

@sapreparth Why should the id of an element be changed? I think you need to find a better way to achieve a solution to your problem.


Fixed: AwsS3BlobStorage was never set to initialized

Fixed: AwsS3BlobStorage was never set to initialized already existed. This caused a PutBucketRequest with every GetClient()

Nice one thanks


brew audit falsely reports PHP tap aliases as incorrect

We've recently been seeing these messages in the jenkins logs for the PHP tap
https://jenkins.brew.sh/job/Homebrew PHP Pull Requests/63/version=sierra/console
This also happends locally on the machine if you make modifications to the Formulas that have aliases. It does not seem to affect formulas in core when trying to do an audit for some reason.
This seems to be related to the commit https://github.com/Homebrew/brew/commit/b14f1572b7ee3b04593bde5d52e14a36aea8d701
by @MikeMcQuaid since reverting it will remove the erroneous alias error.
➜  dev-cmd git:(master) ✗ brew config
HOMEBREW_VERSION: 1.2.1-12-g0977b4a17d-dirty
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: 0977b4a17d92853a952bcba643cfd3dac21db944
Last commit: 2 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: b39cdd5b5f0acda2aa9ca2a27af4e1772b9d4611
Core tap last commit: 3 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://homebrew.bintray.com
CPU: quad-core 64-bit haswell
Homebrew Ruby: 2.0.0-p648
Clang: 8.1 build 802
Git: 2.13.0 => /usr/local/bin/git
Perl: /usr/local/bin/perl => /usr/local/Cellar/perl/5.24.1/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/local/bin/ruby => /usr/local/Cellar/ruby/2.4.1_1/bin/ruby
Java: 1.8.0_102, 1.8.0_77, 1.8.0_60
macOS: 10.12.5-x86_64
Xcode: 8.3.2
CLT: <IP_ADDRESS>.1.1492020469
X11: N/A
➜  dev-cmd git:(master) brew audit --strict composer
homebrew/php/composer:
  * W: 41: col 5: Useless assignment to variable - `caveats`.
  * Formula has other versions so create a versioned alias:
      cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-php/Aliases
      ln -s ../Formula/composer.rb<EMAIL_ADDRESS>  * Formula has invalid versioned aliases:
<EMAIL_ADDRESS>Error: 3 problems in 1 formula
➜  dev-cmd git:(master) git revert --no-commit b14f1572b7ee3b04593bde5d52e14a36aea8d701
➜  dev-cmd git:(master) ✗ brew audit --strict composer
homebrew/php/composer:
  * W: 41: col 5: Useless assignment to variable - `caveats`.
Error: 1 problem in 1 formula

You can also see here https://gist.github.com/javian/faabc6739b582bf838d5bb0a2fcd118b that even if you follow the instructions the error still occurs. I'm assuming this is a bug =)

Could this also be causing this ? https://github.com/Homebrew/homebrew-php/issues/4167

@javian I'm sorry, I meant to mention you on the PR I created, but it seems I forgot to. I created https://github.com/Homebrew/brew/pull/2644 to address this bug after you mentioned it on Slack. I tested the PR against the composer formula, and it should fix the bug within the audit code itself that was producing the false positives.
If you can, testing the PR yourself would quite helpful.

Thanks @JCount ! I won't be able to test it until tonight so if it gets merged before then I will just provide a thank you somewhere down the line =)

Seems to solve the issue for me at least when applying it locally.


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target_d7f6bda0-432e-4a06-90b2-d04b82c33f5e/pull/1 is merged into live branch.
Auto archive content to https://github.com/opstest2/docs-archive-test-target_d7f6bda0-432e-4a06-90b2-d04b82c33f5e.git

Docs Build status updates of commit d593ccb:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error: RepositoryUnauthorizedWithSourceCommit] Git data access to 'https://github.com/opstest2/docs-archive-test-source' (branch: Release_Archive_main_2022-02-21-02-02-24) is not authorized.. It looks like this might be the first time user: v-alji submitted a pull request to this repo. Before user can run builds in a pull request, he/she can enable 'v-alji' GitHub account in Docs by visiting Docs Portal (https://ops.microsoft.com). After enabling his/her account (v-alji), close and then reopen this pull request to start another build.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


fix substring wrong result bug

What problem does this PR solve?
Issue Number: close #9604
Problem Summary:
What is changed and how it works?

Check List
Tests

[ ] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Documentation

[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[ ] Contains experimental features
[ ] Changes MySQL compatibility

Release note

None

/run-pull-integration-test

/retest

@guo-shaoge I think we should add "release note" for this bug-fix PR

/run-cherry-picker


route is refreshed every 30 second because RouteRefreshListener listen to HeartbeatEvent

RouteRefreshListener listen to the HeartbeatEvent and publish the RefreshRoutesEvent, but route will never change  by default. Is this necessary? Does this have an impact on performance?

It should probably only be done if spring.cloud.gateway.discovery.locator.enabled=true.

So the RouteRefreshListener listen to HeartbeatEvent is for DiscoveryClientRouteDefinitionLocator to refresh routes.
But I don't set spring.cloud.gateway.discovery.locator.enabled=true and DiscoveryClientRouteDefinitionLocator is not configured. May be In this case this is redundant.

i use nacos for service discovery and have the same problem because nacos send HeartbeatEvent every 30s.

Closing due to age of the question. If you would like us to look at this issue, please comment and we will look at re-opening the issue.


Suggestion: Hide more "More" menu items

I only tend to use the "Settings and privacy" item (aside from Add muted word), so all of the others would be nice to hide (including Settings for those who don't use/want to see it).
Maybe even add function to remove the "More" button all together along with more hiding options

I want to avoid being able to hide essential functionality you might only use once in a while, as people will forget it's Tweak New Twitter doing it and get confused.
This already happened with hiding the account switcher, as it used to hide the entire thing, which also removed the only way to log out of Twitter 😆
This is what it will get down to in the next version:

Released in v2.10


[DNM] Fix scan bug when scanning meta data (databases, tables, etc.)

PR for test

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.2 out of 4 committers have signed the CLA.:white_check_mark: birdstorm:white_check_mark: marsishandsome:x: guliangliangatpingcap:x: ti-srebotYou have signed the CLA already but the status is still pending? Let us recheck it.

/run-all-tests pd=v5.0.2 tidb=v5.0.2 tikv=v5.0.2

/run-all-tests

/run-all-tests

/run-all-tests pd=v5.0.2 tidb=v5.0.2 tikv=v5.0.2

/run-all-tests pd=v5.0.2 tidb=v5.0.2 tikv=v5.0.2

closed because the corresponding issue is cherry-picked to #2089


Re-write BHL FAQs for Wiki Initiatives

As a BHL-Wikimedian, I want to rewrite the BHL FAQ to accurately reflect our involvement in the the Wikimedia ecosystem so that others are encouraged to participate and also have up to data information about our activities.
Link: https://docs.google.com/document/d/1h5J-hDSz7E3K9SLgTXNkr6LuPVHbWp7qmp3M2Km9QDk/edit?tab=t.0

@SiobhanLeachman added you to this ticket and posted up the link for us.


Scope finalizers don't run on runtime shutdown

Ox offers a nice way to manage resources in scopes:
supervised {
  val serverBinding = useInScope(NettySyncServer().addEndpoints(endpoints).start())(_.stop())
  //...
  never
}

The release clause (_.stop()) is run only if the scope fails due to an unhandled exception. We often deal with long-living resources which should get released on server shutdown, which typically means a TERM signal to the JVM, handled by a shutdown hook.
This is handled in Cats Effect by IOApp, where users can compose resources into a final effectIO[ExitCode]. In case of runtime shutdown,main fiber will be canceled and resource finalizers will be called.
Maybe we can somehow achieve a similar effect in Ox? There is no notion of App, main fiber etc., but I'm leaving this issue as a remark that using resources in scopes has this particular limitation.

Should be fixed by OxApp


Missing DLL?

Exception thrown: 'System.DllNotFoundException' in PTIRelianceLib.dll
Exception thrown: 'PTIRelianceLib.PTIException' in PTIRelianceLib.dll
CheckTermalPrinterStatus Exception: Missing hidapi library. This dll requires access to a copy of hidapi for your system.
If you installed this package from Nuget, this is a bug on our end. File an bug report on Github:  https://github.com/PyramidTechnologies/PTI.Reliance.Tools/issues

Did you install through nuget
What version of this library are you using
What framework are you targetting
What OS and bitness are you deployed on

Did you install through nuget
YES
What version of this library are you using
1.2.1
What framework are you targetting
4.7.1
What OS and bitness are you deployed on
Windows 7 Compact edition via Remote Tools, Visual Studio 2019

Fixed by adding build path to System PATH Environment on the new remote site. Only that DLL was missing (im using other packages as well without exception of missing dll), thats why i think there is a hardlink to the development where the nuget package was installed)

I see, so remote deployment is not picking up the dependency. Your solution works.
Alternatively you could include the hidapi.dll in your deployment process. hidapi.dll should be at the same directory as PTIRelianceLib.dll. For Windows installations there is also a dependency on vc_runtime 2015.


Explicitly specify parent plugin directory

I'm not super familiar with Sublime Text plugins, but some quick Googling pointed at /Users/<username>/Library/Application Support/Sublime Text 3/Packages/User/ (I'm on OSX).
Apparently if you git clone https://margo.sh/GoSublime into that directory, menu items show up but don't work, and margo never gets set up correctly. After banging my head against the wall for a while, I tried the same git clone up a directory, in /Users/<username>/Library/Application Support/Sublime Text 3/Packages, which immediately worked, and as a cherry on top created a GoSublime subdirectory of /Users/<username>/Library/Application Support/Sublime Text 3/Packages/User/ with the layout the rest of the docs implied.
This narrative is the long way of asking, any reason not to explicit put the correct plugin parent directory into https://margo.sh/b/migrate/ for each supported platform?

@astonm I'll rewrite it when I get a chance. I originally didn't want to include the explicit paths because I only use Linux.


Expose signature type information via ClassDescriptor & MethodDescriptor.

Read and expose type signature information for classes, methods (args, return type) via ClassDescriptor and MethodDescriptor.
// Lcom/example/BaseObject<Lcom/Example/ValueType;>;
class SomeObject extends BaseObject<ValueType>

Spring Native is now superseded by Spring Boot 3 official native support, see the related reference documentation for more details.
As a consequence, I am closing this issue, and recommend trying your use case with latest Spring Boot 3 version. If you still experience the issue reported here, please open an issue directly on the related Spring project (Spring Framework, Data, Security, Boot, Cloud, etc.) with a reproducer.
Thanks for your contribution on the experimental Spring Native project, we hope you will enjoy the official native support introduced by Spring Boot 3.


Home page, buttons, overall functionality

Before you start

[x] Have you updated FluentHub? You might be using an old version.
[x] Have you checked if a similar issue has already been reported?

What version of Windows is this issue present?
Windows 11
What version/architecture of FluentHub are you on?
<IP_ADDRESS> | X64 | RELEASE
Description
when i go to home, there's nothing on it, except the welcome sidebar and the title 'Dashboard'
the sidebar doesn't work, as i can't open anything from there
Steps To Reproduce
No answer
Expected behavior
Stack Trace
Stack trace details
what? there's no error page - the only error is the page itself aka No answer
Assets
the homepage on web github

the fluenthub's homepage

the fluenthub's homepage after 10 refreshes

yes, i've seen that nobody is making any updates till april, but i'll wait
in the meanwhile you can also try resolving it and, at the release, this should be fixed (if you are working at a bug)

I use C# GitHub API (wrapper of github graphql api & REST api) to retrieve every information. If you don't have any followings and repositories you watch there's nothing to show. Sadly, other information such as Explore and Latest changes cannot be shown because not disclosed as api.
Thanks for the feedback!
I'll add text on the center to tell user there's nothing to show.

the dingus is, that the other problem is the sidebar: not showing all the repos as seen on web (which are there for contributing, creating issues, etc.), just those that are yours; and also the reload dingus: why does it duplicate the repos???

oh, and the repos from the sidebar doesn't open: just click and nothing

but the links from the notifications work. and the markdown support may be missing a lil bit, plus: can't send comments (seen when trying it right now
therefore, the system has a little bit so much bugs, nut idk

sorry for being inactive because I have study stuff.

oh, i see. no problem, i have to study too 😅

why does it duplicate the repos???

I can repro, will fix. Thanks!

the repos from the sidebar don't open

This is already supported in the latest branch but not released. Will be released soon!

markdown support may be missing a lil bit

Yeah I was using Web-based view but it was too heavy to load many comments.
I'm seeking another solution to this. Maybe Markdig or something I will use.

oh, i see. no problem, i have to study too 😅

Thank you!

Normal editor should work for the time being but I wanna look for more featureful editor(maybe make by myself)

I have an idea for the main page - maybe some 'last actions' (like commits, issues, etc) for the Dashboard. In that way, it wouldn't be empty

Oh, wait I missed the thing last done aren't included in api. But it should. If I'm wrong again tell me

But it should

Hie Ford the GitHub App retrieves the last things u done?

Before you start

[x] Have you updated FluentHub? You might be using an old version.
[x] Have you checked if a similar issue has already been reported?

What version of Windows is this issue present?
Windows 11
What version/architecture of FluentHub are you on?
<IP_ADDRESS> | X64 | RELEASE
Description
when i go to home, there's nothing on it, except the welcome sidebar and the title 'Dashboard'
the sidebar doesn't work, as i can't open anything from there, and the con
Steps To Reproduce
No response
Expected behavior
i don't really know, but it may be something at the web access for the homepage (that's what i think: that it may use a web identifier to get the proper info)
Stack Trace
Stack trace details
what? there's no error page - **the only error is the page itself**

Assets
1st image - the homepage on web github
2nd image - the fluenthub's homepage
3rd image - the fluenthub's homepage after 10 refreshes

Ok, ok, even if the app itself it's originally from GitHub, BUT WHY THERE'S NOTHING FOR THE DEVS

for me it seems Chinese, but it may be for some help
I ALWAYS KNEW THAT GOOGLING IS WORTH

I'll comment later here about all the infunctionalities in FluentHub
There are too much of them sincerely

not changed info at notifications, maybe from GitHub api not asked about updates on notifications about repos

ok, this was already here

disabled >:)

couldn't get the language from repos ig

maybe searching for more specific icons? this isn't sth from github, but it'd be fancy if we could have this (a chrome extension already did this)

more disabled >:)

THIS IS NOT LATEST VERSION

already discussed 'bout this :unamused:

nope, neither file for releases >:)

that's what i noticed as for now, if i find more, i'll post them here >:)

Appreciate them. I really wanna work on because I got about 1k for my app… but time won’t allow me to develop. I will use for the further improvements. You can keep posting here whatever you notice I don’t mind!

Even if you keep posting your thoughts here, I don't mind and I appreciate.

ok... i'll see more. and i might do a push few months later to see what i can fix (if i'd fix). Bye!

this is fluenthub.png file from the repo

and readme is not shown in the repo (aka this:

disabled  >:3

and the notifications need this

i found out this about the material icons for github:

Replace GitHub's default icons with icons from Visual Studio Code's Material Icon Theme icons. Use the same icons on your code editor and on github.com, and quickly identify file types, configuration files and project scaffolding at a glance.

the pull request is really poor af, here's the github one vs the fluenthub version:

disabled

use the markdown and winui styles for text, look for how are the exact markdown shown in winui and seek for a converter (this is really bad organised but maybe you can understand what i wrote :)), also i found this: https://demos.telerik.com/aspnet-ajax/editor/examples/import-export/markdown-import-export/defaultcs.aspx

sorry, didn't review the link from there. that's just a way to implement M↓ into web not WinUI 3

@0x5bfa
are u there?

so it's maybe not a sollution?

Didn't I have that? Colored empty box I've added to some pages.

maybe didn't see it. btw i'm not at the bussiness laptop now so i can't see this asap

Yeah for now sticking with WebView2 is the best. I disabled them because I introduced that when the control is in preview and it was unstable.

ChatGPT 3.5 answer about 4 minutes ago:

To include Markdown rendering in a WinUI 3 application, you'll need to use a third-party library or develop your own Markdown renderer. As of my last update in January 2022, WinUI 3 itself does not natively support Markdown rendering. However, you can integrate existing libraries into your WinUI 3 project to achieve this functionality.

Here's a general approach:

Choose a Markdown library: Look for a Markdown library that supports rendering Markdown content into your WinUI 3 application. Popular options include Markdig, MarkdownSharp, and CommonMark. Make sure the library you choose is compatible with .NET Core or .NET 5/6, which are commonly used with WinUI 3.

Integrate the library into your project: Follow the documentation provided by the chosen library to integrate it into your WinUI 3 project. This typically involves adding the library package to your project using NuGet Package Manager and configuring it according to the library's guidelines.

Render Markdown content: Once the library is integrated, you can use its API to render Markdown content. This typically involves providing the Markdown text as input to the library's rendering function and obtaining the rendered output, which you can then display in your WinUI 3 application.

Display the rendered content: Depending on your application's requirements, you can display the rendered Markdown content in various UI elements such as TextBlocks, RichTextBlocks, or WebView controls within your WinUI 3 application.

Keep in mind that while using third-party libraries can be convenient, you should also consider factors such as licensing, community support, and maintenance when choosing a library for your project. Additionally, be sure to check for any updates or changes to WinUI 3 that may impact your chosen approach.

Yeah for now sticking with WebView2 is the best. I disabled them because I introduced that when the control is in preview and it was unstable.

ok

While WebView2 itself doesn't have native support for Markdown rendering, you can leverage its capabilities to display Markdown content by using JavaScript libraries designed for Markdown rendering within the WebView2 control.

that means javascript

maybe didn't see it. btw i'm not at the bussiness laptop now so i can't see this asap. also, i was telling about the power to make even more organisation

Oh yeah I've been thinking about that page's featuring because most people see that page frequently and it should be featureful.
Was seeing designs from Pinterest and Dribble.

maybe didn't see it. btw i'm not at the bussiness laptop now so i can't see this asap. also, i was telling about the power to make even more organisation

Oh yeah I've been thinking about that page's featuring because most people see that page frequently and it should be featureful. Was seeing designs from Pinterest and Dribble.

genius :smiley:

No html and css files, which I already have for FluentHub. What I just need is to use WebView2 control.

ye, how 'bout this? https://chat.openai.com/share/99563507-743d-4bde-b25b-c9dc869151260

nope, i was trapped:
            // Embed the HTML content into a basic HTML template             return $@"                 <!DOCTYPE html>                 <html>                 <head>                     <title>Markdown Renderer</title>                 </head>                 <body>                     {htmlContent}                 </body>                 </html>";

BUT everything is involved into c#. ig this is for the webview:
// Call the JavaScript function with the Markdown content await webView.CoreWebView2.ExecuteScriptAsync(jsFunction); string htmlContent = await webView.CoreWebView2.ExecuteScriptAsync($"convertMarkdownToHtml({markdownContent})"); return htmlContent;

ye, how 'bout this? https://chat.openai.com/share/99563507-743d-4bde-b25b-c9dc869151260
it actually just makes M↓ into c#

I can't access. Can you send screenshot?

the chatgpt 4 killer, claude 3 opus, says:

Here are the steps to integrate Markdown rendering into a C# WinUI 3 application:
1. Add the Windows Community Toolkit NuGet Package

Right-click on your project in the Solution Explorer and select "Manage NuGet Packages."
Search for "CommunityToolkit.WinUI.UI.Controls" and install the package. [citation:6][citation:8][citation:15]

2. Add the Markdown XAML Control to Your Page

Open the XAML file where you want to display the Markdown content.
Add the following namespace declaration to the top of the file:

xmlns:controls="using:CommunityToolkit.WinUI.UI.Controls"

Add the MarkdownTextBlock control to your XAML:

<controls:MarkdownTextBlock x:Name="MarkdownText" />

[citation:2][citation:10][citation:25]

3. Set the Markdown Content in C#

In the code-behind file (e.g., MainPage.xaml.cs), find the constructor or the OnNavigatedTo method.
Set the Text property of the MarkdownTextBlock to your Markdown content:

MarkdownText.Text = "# Hello, Markdown!\n\nThis is a **bold** text.";

[citation:9][citation:19]

4. Customize the Appearance (Optional)

You can customize the appearance of the rendered Markdown by setting various properties of the MarkdownTextBlock control, such as FontFamily, FontSize, Foreground, etc.

<controls:MarkdownTextBlock x:Name="MarkdownText"
                            FontFamily="Segoe UI"
                            FontSize="16"
                            Foreground="Black" />

[citation:12][citation:23]

That's it! You have now successfully integrated Markdown rendering into your C# WinUI 3 application using the Windows Community Toolkit. The MarkdownTextBlock control will automatically parse and render the Markdown content you set in the Text property.

Remember to handle any exceptions that may occur during the Markdown parsing process and to test your application thoroughly to ensure the Markdown rendering works as expected.

[citation:13][citation:20]

ye, how 'bout this? https://chat.openai.com/share/99563507-743d-4bde-b25b-c9dc869151260
it actually just makes M↓ into c#

I can't access. Can you send screenshot?

sorry i added more questions and forgot to update link for share: https://chat.openai.com/share/99563507-743d-4bde-b25b-c9dc86915126

here is the claude convo

here is the claude convo: https://www.getmerlin.in/share/chat/LE_KM6HliBo

but it's still using the markdown text block - aka not webview

here's the updated chat: https://www.getmerlin.in/share/chat/KSJJeEJ28Nx

Actually those are what I have tried once before.
I ended up for WebView2. I will use it until new parser gets ready in WCT 8.0.

Actually those are what I have tried once before. I ended up for WebView2. I will use it until new parser gets ready in WCT 8.0.

so this is solved but waiting for an update?

Not yet. I haven't push the update into the main branch yet.

Not yet. I haven't push the update into the main branch yet.

Ok, I think

I use C# GitHub API (wrapper of github graphql api & REST api) to retrieve every information. If you don't have any followings and repositories you watch there's nothing to show. Sadly, other information such as Explore and Latest changes cannot be shown because not disclosed as api.

Thanks for the feedback!

I'll add text on the center to tell user there's nothing to show.
The next store release might be a month later, sorry for being inactive because I have study stuff.

Ayoo, that month passed so fast, I feel it was yesterday

these don't work

and the comments from this 56-comments-issue stopped at:

ChatGPT 3.5 answer about 4 minutes ago:

To include Markdown rendering in a WinUI 3 application, you'll need to use a third-party library or develop your own Markdown renderer. As of my last update in January 2022, WinUI 3 itself does not natively support Markdown rendering. However, you can integrate existing libraries into your WinUI 3 project to achieve this functionality.
Here's a general approach:

Choose a Markdown library: Look for a Markdown library that supports rendering Markdown content into your WinUI 3 application. Popular options include Markdig, MarkdownSharp, and CommonMark. Make sure the library you choose is compatible with .NET Core or .NET 5/6, which are commonly used with WinUI 3.

[see more...]

no, it's not at notifications. can you specify what pages exactly?

PRs, Issues, Discussion, Projects if iirc.

no, it's not at notifications. can you specify what pages exactly?

PRs, Issues, Discussion, Projects if iirc.

Nah I don't think so, at least for issues

I've raised this point before but what's the issue with using MarkdownTextBlock temporarily until a suitable MD library can be implemented? It doesn't support GitHub-flavoured markdown as far as I know but has much higher performance than WebView2.

just rewrite das code ig, idk if it's sth more markdown than textblock or webview. let's submit a issue on the winui 3 repo :))

Hi, @0x5bfa , do you have any updates? School ends soon, so I would like to know if you've done anything since the last comment.

No I basically do general updates like I already have in the PRs. But no progress.
And I’m a full time contributor of https://github.com/files-community/Files so I’m hardly binding a time to work on here

Files work well for now (as every release). My brain dies when I see that this issue is 3 mo old. Maybe you can reserve some time to do a research, so that you know what to implement, code, etc.

Now you are exposed 🙃

@pdimu do you realize, that this is not the most constructive way to motivate developers? Even if they didn't care about this project at all, your style doesn't help them to make progress. Maybe offering help would be more appropriate.
And btw, a 3 months old issue is absolutely fine, especially if it's this huge.

@pdimu do you realize, that this is not the most constructive way to motivate developers? Even if they didn't care about this project at all, your style doesn't help them to make progress. Maybe offering help would be more appropriate.

Yes, but I don't know how to use the GitHub api

And btw, a 3 months old issue is absolutely fine, especially if it's this huge.

Thanks, I was using fluenthub everyday to spot out the issues, but I left it over, because I was tired, so I focused on other things, making just a list of these problems
Thanks for your interest tho

The things you have pointed out here are not "bugs"; just unimplemented features. As for implementing them, we're both not so active as we were before as I am working on Rebound and @0x5bfa is working on Files.


Add a WebsocketClient and make sure StreamWriter adds the length field for queue-based clients

A continuation of #21.

 You very quickly destroy state when you try to manage event loops in a synchronous context.
The problem is "how to actually shut down" is always going to have edge cases, but the breakages in internal state between the websocket library and the event loop just seems to make "start -> stop -> start -> stop (times n)" testing never work correctly.

Per the issue description, I think it's fine if queue-based clients don't get anything other than the frame. We ended up piping the right amount of interface on the frame itself to manage this.

The open work here is to make sure that, with a server continuously booted, a single client can connect -> dis-connect and re-connect multiple times.
This likely means we need to share some of our existing asyncio wrapping code that made this work for servers.

This is fixed, if this starts breaking the only real knob to turn is just giving the event loop more of a grace period to run. Right now / previously shutting down the event loop was highly aggressive.


Verify inter-dependencies are correct

The current dep-graph looks like NX doesn't currently know that libraries are depending on each other (ie icon-button -> icon)

EDIT: It seems this is a reported issue with NX and libraries in nested folders (eg libs/ui/foo).

duplicate #146


how to use it

I added the following to the page where iframe tage is :
<script src="js/iframeResizer.js"></script>
<script src="js/iframeResizer.contentWindow.js"></script>
<script src="js/iframeResizer.min.js"></script>
<script src="js/iframeResizer.contentWindow.min.js"></script>

and
in script
$('iframe').iFrameResize([{ log: true, autoResize: true, minHeight :500}]);
but I got this error   ( .iFrameResize is not a function )

This is issue tracker is for bug reports. I would suggest looking at the example and reading the documentation, then asking a question on Stack Overflow for support questions.

i got this error now :
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('http://www.w3schools.com') does not match the recipient window's origin ('http://localhost:26669').

+1


Support for ring two step verification?

is it even possible to support ring's two step verification?

I'm guessing it would be possible if we took an approach like https://github.com/KhaosT/homebridge-nest-cam#how-to-get-access-token.  The main issue is that you need to be in the loop every time a new token is required by the plugin.  There should be a token refresh endpoint, but if your homebridge was offline for a day or more, your token would probably expire and require you to update your configuration file with a new manually fetched token. I'm all for 2fa, so i'd be happy to review a PR if someone has time to work on this.


please help me  to run example

I  take clone of example try to run the example but got error there some method is not found in the example
 Undefined class 'Availability'. Try changing the name to the name of an existing class, or creating a class with the name 'Availability'.dart(undefined_class) enter image description here
The method 'updThe method 'updateStartLocation' isn't defined for the type 'Event'. Try correcting the name to the name of an existing method, or defining a method named 'updateStartLocation'.dart(undefined_method)
please anybody help

Is it a problem on the prerelease? It might need some more updating since many components changed in the past few commits.


Fix MT  issues

GitHub   URL
Current String / occurrence

https://github.com/aspnet/Docs/blob/live/aspnet/web-forms/overview/data-access/working-with-batched-data/wrapping-database-modifications-within-a-transaction-vb.md
unrec �

https://github.com/aspnet/Docs/blob/live/aspnet/web-forms/overview/data-access/paging-and-sorting/creating-a-customized-sorting-user-interface-vb.md
unrec �

https://github.com/aspnet/Docs/blob/live/aspnet/web-forms/overview/data-access/paging-and-sorting/creating-a-customized-sorting-user-interface-cs.md
unrec �

unrec �

https://github.com/aspnet/Docs/blob/live/aspnet/web-forms/overview/data-access/advanced-data-access-scenarios/configuring-the-data-access-layer-s-connection-and-command-level-settings-vb.md
unrec �

https://github.com/aspnet/Docs/blob/live/aspnet/web-forms/overview/data-access/advanced-data-access-scenarios/configuring-the-data-access-layer-s-connection-and-command-level-settings-cs.md
unrec �

https://github.com/aspnet/Docs/blob/live/aspnet/mvc/videos/mvc-2/how-do-i/how-do-i-create-a-custom-html-helper-for-an-mvc-application.md
#5349 <    >

https://github.com/aspnet/Docs/blob/live/aspnet/signalr/overview/performance/using-signalr-performance-counters-in-an-azure-web-role.md
#5350  < >

< >

https://github.com/aspnet/Docs/blob/live/aspnet/web-forms/overview/moving-to-aspnet-20/improvements-in-visual-studio-2005.md
#5351 <

https://github.com/aspnet/Docs/blob/live/aspnet/web-pages/overview/ui-layouts-and-themes/4-working-with-forms.md
  is in snippet  possibly -

possibly -

https://github.com/aspnet/Docs/blob/live/aspnet/whitepapers/aspnet4/overview.md
< >

< >

https://github.com/aspnet/Docs/blob/live/aspnet/web-forms/videos/how-do-i/how-do-i-use-cascading-style-sheets-for-web-page-layout.md
<    >

https://github.com/aspnet/Docs/blob/live/aspnet/web-forms/videos/how-do-i/how-do-i-utilize-the-css-friendly-control-adapters.md
<    >

https://github.com/aspnet/Docs/blob/live/aspnet/web-pages/overview/api-reference/asp-net-web-pages-api-reference.md
<html>

<html>

https://github.com/aspnet/Docs/blob/live/aspnet/whitepapers/mvc3-release-notes.md
< >

https://github.com/aspnet/Docs/blob/live/aspnet/whitepapers/request-validation.md
False positive

https://github.com/aspnet/Docs/blob/live/aspnet/web-forms/overview/moving-to-aspnet-20/profiles-themes-and-web-parts.md
<

See https://raw.githubusercontent.com/aspnet/Docs/master/aspnet/whitepapers/aspnet4/overview.md
By default, the *requestPathInvalidChars* attribute defines eight characters as invalid. (In the string that is assigned to *requestPathInvalidChars* by default*,*the less than (<), greater than (>), and ampersand (&) characters are encoded, because the Web.config file is an XML file.) You can customize the set of invalid characters as needed.
There are all legal entities. cc/ @guardrex @rachelappel  @scottaddie

closing for lack of response.


fixes #717 first try using closure

Currently I am getting these numbers:

This is a worse number. Doesn't seem like worth doing.


3 Exposures but 13 matchescount:1

Hey,
The last days (4 days ago) I recognized "3 Begegnungen mit geringem Risiko".
Then I checked the json file and found 10 times "matchescount":1.
Today I checked again and it was 13 times but still 3 Exposures visible in the App.
And today I met no one.
I already called the hotline but also the second level couldn't help.
Has anyone the same issue?
Kind regards,
Sam

Could you share your ENF log here (you can either put it into a .zip archive or rename the ending from .json to .txt), then we can take a closer look at this.

I renamed it to txt
all-exposure-checks.txt

Thanks 🙂.
I've put your log file into the EN analyzer and got the following output:

This means your CWA display is correct. You had three encounters (and in this case) with 3 different ppl who later tested positive:

The first person uploaded their keys on the September 15th.
The second person uploaded their keys on Sept 16th.
The third person uploaded their keys on Sept 18th.

Those matches will show up in your ENF log each time your CWA performs a check until the respective encounter lies more than 14 days in the past.

Okay thank you very much!
But then I have some follow up questions :)
I.e. The second one.
Match at the 16. and Überprüfungszeitpunkt 20., 21.,...? What does that mean?
And second questions:
You wrote:
"The first person uploaded their keys on the September 15th."
What do you mean with "uploaded their keys? Is this the date of our match or the date when the person entered the positive test into the app?
Thanks a lot for your answers.

I.e. The second one.
Match at the 16. and Überprüfungszeitpunkt 20., 21.,...? What does that mean?

This means the person you had this encounter with uploaded their keys (more on this below) on the 16th. The actual encounter therefore must have happened on the 15th or earlier. Given that encounters will not be displayed anymore if they lie more than 14 days in the past (counting from the actual time of the encounter) in either CWA or the ENF log, we can even narrow the window further: the match showed up in todays checks (23.9.2020, 08:23) which means the actual encounter mustn't be more than 14 days in the past from this timestamp. This limits the window for this encounter from anywhere between the 9th and the 15th. If this match still shows up tomorrow you can further limit the window of the encounter to between 10th and 15th etc… until the day when the match disappears, at which point you'll know that this encounter must have happened ~15 days before.
Regarding "Überprüfungszeitpunkt": this is what is labeled timestamp in your logfile: It's the time when your CWA downloaded keys from the server and handed them over to the Exposure Notification Framework (ENF) to check for a match (FAQ Entry). Usually this should happen once a day and b/c it always checks for encounters in the past 14 days there should be 14 entries each day (one for each previous day).
One thing which is a bit strange in your log is that there are no entries for the days between the 16th and 20th. Did you maybe have your phone turned off or did you not have internet connection on those days?

"The first person uploaded their keys on the September 15th."
What do you mean with "uploaded their keys?

Every day ppl get their test results and if they tested positive they can then decide to share their keys for the past 14 days in order to warn others. If they do, their keys are uploaded to the server. The day when this happens is what I was referring to when I said "x person uploaded their keys on y date" and it's also what you can see in the EN analyzer output as "Schlüsseldatei vom y". Those keys are then downloaded the next day by all the CWA apps which then check whether there is a match between the rolling proximity identifiers (RPIs) they have recorded (from contact with other phones) and the diagnosis keys (DKs) (which they have just downloaded from the server).

Is this the date of our match or the date when the person entered the positive test into the app?

The latter: It's unfortunately not the time when you actually had the encounter. This information is currently only shown for "red exposures" by CWA (feel free to upvote https://github.com/corona-warn-app/cwa-wishlist/issues/178 to also get this info for green encounters).
But you can narrow the time window for when the encounter must have happened by the "waiting method" I described in the first paragraph.

Thank you very much @daimpi for your help here!
When reading through the comments, I dont see an actual action item resulting from this conversation.
I will close this issue to keep the list clean.
Best regards,
SG
Corona-Warn-App Open Source Team


Pretrained Models

When will you release pretrained models?
Thanks.

Will look into it either this week or the next. Leaving the thread open until then!

I've trained and commited a pretrained model for GTA. This one ended higher then the reported average. To train Synthia you simply need to change the following lines in trainUDA.py.
From:
#New loader for Domain transfer
if True:
data_loader = get_loader('gta')
data_path = get_data_path('gta')
if random_crop:
data_aug = Compose([RandomCrop_gta(input_size)])
else:
data_aug = None
    #data_aug = Compose([RandomHorizontallyFlip()])
    train_dataset = data_loader(data_path, list_path = './data/gta5_list/train.txt', augmentations=data_aug, img_size=(1280,720), mean=IMG_MEAN)

to
#New loader for Domain transfer
if True:
data_loader = get_loader('synthia')
data_path = get_data_path('synthia')
if random_crop:
data_aug = Compose([RandomCrop_gta(input_size)])
else:
data_aug = None
    #data_aug = Compose([RandomHorizontallyFlip()])
    train_dataset = data_loader(data_path, list_path = './data/synthia_list/train.txt', augmentations=data_aug, img_size=(1280,720), mean=IMG_MEAN)


Support CDI

There seems to be specific pieces of code in other Spring Data modules related to CDI.
Let's find out what their exact purpose is and add similar code in our own module.

There is already a CDI (code) piece. It's just not fully implemented yet.

https://github.com/snowdrop/spring-data-hibernate-search/blob/master/core/src/main/java/me/snowdrop/data/hibernatesearch/repository/cdi/HibernateSearchCdiRepositoryExtension.java

Right. I suspect we'll need more than just this class to also implement the JPA repository extension feature, though.
Anyway, I created this ticket so that we don't forget about it. I cannot work on this right now.


Make this repository citable

I would like to ease citation of what is going on in here, by following the steps described in GitHub's Making Your Code Citable" guide.
The benefit is that every release in this repo will get a DOI that we can then refer to. Also, I do not expect any overhead. We should tag and release these versions anyway, and the rest of the workflow is fully automated. See an example: https://zenodo.org/record/1254325
Please raise objections, otherwise I will go forward ASAP.
/cc @AntoniusW @rtaupe

Looks good, go ahead!

... and maybe we should use this opportunity to release a new version of Alpha, it's been over a year since the last release and a lot has happened in the master branch.

Yep, I think so too. 86121a2 should be fine, right?

Indeed, I suggest a version number of 0.3.0.

We're live as v0.3.0 via https://doi.org/10.5281/zenodo.1418964 :)
Just so you know, there's some degrees of freedom in the Zenodo web-interface. If you feel that some information is missing/wrong, please ping me.
We'll get a new DOI automatically for every release. The shield in README.md will always show the most recent one. And there is a general, fixed DOI, which dynamically resolves to the latest version https://doi.org/10.5281/zenodo.1418963


Update links and current statuses (batch 2022-02-20)

This is preparation for my upcoming proposals. Before proposals, we can clean this document to reflect latest statuses of GNU/LLVM toolchains and other external documents.

It updates links to external documents.
It reflects (not all but some of) current toolchain/ISA statuses:

"G" is either "IMAFD" or "IMAFD_Zicsr_Zifencei" (depending on the target ISA)
Because disassemblers assume availability of "Zicsr", "RV32/64GC" instead of "RV32/64 IMAFDC" would be better.
Because "Zicsr" and "Zmmul" extensions are at least frozen, there's no need for "fine-grained information about a target" TODO.
Both GNU and LLVM toolchains support parsing extension versions.

"G" is either "IMAFD" or "IMAFD_Zicsr_Zifencei" (depending on the target ISA)

Surely it's only the latter?

@TommyMurphyTM1234

"IMAFD" on version 2.2 or before
"IMAFD_Zicsr_Zifencei" on version 20190608 or later

@cmuellner OK to me, thanks :)


Follow a change of go package name convention in protoc-gen-go

Follows the change golang/protobuf@dded9133a99a3cd7c3a9d24a9f85c2b8ef76ff31.
This fixes #22 as a side-effect.

LGTM


Add ResultPath to Map state

Describe the solution you'd like
Implement the ResultPath  as described here

Solved in #127


dev: support keystore

Right now, afaik it's not possible to create a signer using a keystore path that would be great to improve security of backend services using starknet.py.
Happy to provide a PR if necessary.
References
https://github.com/xJonathanLEI/starknet-rs/blob/016f3ee3293c8355f8a7cb64777adea6119493b9/starknet-signers/src/key_pair.rs#L60

Hi @EvolveArt
Would it be sufficient for your use case to add a static method from_keystore to KeyPair class?

Hi @EvolveArt
Would it be sufficient for your use case to add a static method from_keystore to KeyPair class?

yes that would work, it would need to be compatible with starkli keystore ofc

Sounds good and I agree that it does make sense to add it. Unfortunately, we're unable to prioritize it at the moment due to our current workload. However, if you could provide a PR, we would definitely be able to allocate some time to thoroughly review it.

Sounds good and I agree that it does make sense to add it. Unfortunately, we're unable to prioritize it at the moment due to our current workload. However, if you could provide a PR, we would definitely be able to allocate some time to thoroughly review it.

On it then, thanks!


Pretrained models required

In the file train_srd.py (line 423) : Where can I find these pre-trained models?
sr_model.load_state_dict(torch.load('sr pre-trained pth'))
pretrained_low_dict= torch.load('pre-trained resnet-18 for lr branch')
pretrained_super_dict = torch.load('pre-trained resnet-18 for sr branch')

Sorry for the confusion. (1) In the first stage, the SR model should be trained using ./models/mrcnet.py. The training implementation can be referred to the SR project https://github.com/franciszchen/SWD-Net. (2) The resnet-18 should be ImageNet-pretrained ones, with the URL as https://download.pytorch.org/models/resnet18-5c106cde.pth.


live is not configured

ERRO[2020-04-20T15:03:00+08:00] CheckAppName err: application name=live is not configured,搞一个来用不起呀，git上直接下载源码编译的，搞不懂

Same issue

Same issue.
I think user guide still need improve.
Need introduce some software like OBS how to streaming.


A question on learning rate decay schedule

For the learning rate decay schedule, why do you use  "lr = get_lr(state["iter_num"]) if decay_lr else learning_rate"?  Here, "state["iter_num"]" is the number of processed minibatch, not the number of training steps.
By definition of decay learning rate, shouldn't we use  "state["step_count"]" instead of ""state["iter_num"]"?
I am talking about line 213 in TinyLlama/pretrain/tinyllama.py

Yeah, we indeed use iter_num, which is the minibatch number to calculate the learning rate.
I believe it has minimal effect on the training loss.


Chat window keep loading on device , IOS APP

Hi , Implemented chat to my IOS App , it works fine on simulator but the chat window keep loading on actual IOS device
thanks

@nick-iCars  looks like this is a duplicate of #25. Please let me know if you are still experiencing this issue.


WIP: Use websocket for notification instead of eventsource

Good choice with melody, it's something I've been eyeing as well because of easy broadcasts.

I just found melody has a memory switch system so I may change it back to gorilla/webhook directly.

I just found melody has a memory switch system

What do you mean? It seems pretty bare-bone: https://github.com/olahol/melody/blob/master/melody.go

What are the implications for the helm chart?
cc @pat-s

Reverse proxies may need adjustment to pass through Websockets. For nginx specifically this is it:
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;

@lunny Do you plans to continue here?

@lunny Do you plans to continue here?

Yes. I will send some code recently. We need a pub/sub interfaces/services on server side.

Close as it is outdated.


Refine icon spacing

Edit icon spacing for new icons.
See #487.

I think we should reduce padding-bottom here when all icons are updated:

I think we should reduce margin-top and margin-bottom for the topics when all the icons are updated:

These changes would look quite odd unless we changed the placeholder icon to match the dimensions of the new icons.

I think we should reduce padding-bottom here when all icons are updated:
I think we should reduce margin-top and margin-bottom for the topics when all the icons are updated:
These changes would look quite odd unless we changed the placeholder icon to match the dimensions of the new icons.

The spacing here matches the designs, and looks better now that all the icons are in. The padding could be reduced to show more topic entries on a single page.


BUG: Missing fields on response causes writeToStore Error

ref: writeToStore.ts#L129
Uncaught Error: Can't find field startCursor on result object some_group_id.people({"first":"10"}).pageInfo.
If a query response returns without values that were sent on the query, the client throws and error.
query
query getGroup {
  node(id: "some_group_id") {
    ... on Group {
      id
      people(first: 10) {
        pageInfo {
          hasNextPage
          hasPreviousPage
          startCursor
          endCursor
        }
      }
    }
  }
}

When there are no people in the group our server responses with ...
... "pageInfo":{"hasNextPage":false,"hasPreviousPage":false} ...

Note in this case,  startCursor and endCursor are not returned
I'm not sure this should be considered and error or warning but the process should continue to write to store and return the client promise with the response data.

I don't think that is a valid GraphQL response for that query - what GraphQL server implementation are you using?

@stubailo graphql-java
I've opened an issue with our server guys in the meantime.

Oh ok I remember you also had an issue with the empty error array before. I heard that some people are working on a test suite to test GraphQL servers for spec compliance: https://github.com/graphql-cats/graphql-cats

@WilliamHolmes Can you reference the issue you opened on graphql-java? I can't seem to find it there.
Also: closing this, since this is expected behavior when the server doesn't conform to the graphql spec.


using redis as session store

As a modern, cutting-age web framework, Redis might be better as the default caching strategy.
And by putting redis as its default cache, more users will be attracted.

Main issue I see is that Redis adds an external dependency to the project. This would add another step to getting the project up and running on a new system. What might be a better option is making it an option in the config.js file. However at that point, editing the config file would take just as long for someone to add Redis sessions themselves.

The framework here is aiming providing all the best practices for modern web development. Just like RoR putting postgres as its default production database and every one needs to tweak a while to make it work for the initial several times. I think providing redis as the default store isn't obey this repo's purpose, which is providing a handful of good default choices when you begin. The code to make redis in is not mean to be like this, but there should be a proper way to merge it in.

Yeah i agree with @jtmthf, to keep this repo as a relatively un-opinionated frontend example we should steer clear of external service dependancies. If we were to implement Redis, where do we stop? MySQL, Mongo, ElasticSearch, JWT...?

I think this is a clear recurring case on this repo - folks have ideas, or functionalities that they would like to integrate with this repo while others would like to keep in relatively un-opinionated.
Having a section for 'Recipes' and linking all these forks there could be a clean way to solve this problem so that those who come across those problems and can look at the Recipe repos/gists. This would work for other cases like i18n (#624), JWT (#608), etc that are being discussed.
Thoughts?
cc: @quicksnap

This is the type implementation is best for 'userland'.
Also, this repository isn't a framework--it's just an example. There were discussions in the past on trying to remove as many dependencies as possible, not add more. I would love to see contributions that clean things up and remove stuff =) It would make this project easier to maintain.
Thanks for the PR @hophacker. I'm going to close, but I'm sure this will serve as a reference to anyone interested in using Redis as a session cache.


Re-render GUI during button callback

Hello! I have been tinkering around with Remi and have found it enjoyable.
I have a quick question involving re-drawing GUI elements during a button onclick callback.
My callback looks something like this:
# in main
button = gui.Button("ready to do work")
button.onclick.do(self.button_click_callback)
# ... rest of main

def button_click_callback(self, widget):
    widget.set_text("I am doing work")
    function_that_does_work_and_takes_a_while()
    widget.set_text("ready to do work")

The intended behavior is as follows:

button is clicked
button text changes to "I am doing work"
the function that does work and takes a while does it's thing
once the function is done it's work, the button text changes back to "ready to do work"

I realize that the reason that the button does not immediately change text is that the button callback is blocking the rendering process. A way that I got around this is by threading (set text, then setup the thread to do work with a callback to reset the button text).
If I don't mind blocking, is there a "redraw" function that I can call to render the GUI during the button_click_callback function's execution? Is there a better method for doing what I would like to do?
Much appreciated! Thanks :)

And in case anyone is interested, here is the threading stuff.
# in main
self._button_thread = None

# not in main
def thread_button_work(self, thread: Optional[threading.Thread], thread_target: Callable[[Callable]]):
    """ we gonna do some work now, ya hear?
    """
    if thread is not None:
        if self.thread is_alive():
            # still doing work from the previous invocation
            return
        # clean up the thread
        thread.join()

    thread = threading.Thread(target=thread_target)
    thread.start()

def button_click_callback(self, widget):
    widget.set_text("I am doing work")

    def thread_target():
        function_that_does_work_and_takes_a_while()
        widget.set_text("ready to do work")

    self.thread_button_work(self._button_thread, thread_target)


Show BIP9 progress in getblockchaininfo

I couldn't find a way to figure out the current progress of BIP9 deployments with Dash Core, so I hope this helps others as well.

I like the idea in general but I'd like to propose a couple of patches:
17fb6f2e26c43941c34cc86cc0e06e0e41641abe - to make it look more consistent with the rest of the code
cc9523e2e959c17302b66051f56721a91bcefbde - an additional (internal) check that we are not counting blocks for some another state
478c25df28ab3ab5e12db972f61cf74095b0b7c1 - to match rpc help (between 0 and 1)

Might also be a good idea to add a couple of tests in versionbits_tests.cpp.

ok, I guess you can ignore the first two :)

added the last commit


Updated Readme to include missing -e for ENV variables

Thanks so much for the docker image, very handy!

Thank you


[1.1.0] Fixes, Analytics, SEO improvements

Changes

Added Umami analytics
Improved SEO (including google site verification)
Fixed send-email api route

📝 Changed routes:

/

(view full size)

And 1 other route:

/api/send-email

Commit de1aad947654e9c7cae7e0cc3af967191c194757 (https://personal-site-c6wdfcoyr-alexander-trishin.vercel.app).


Use mux kit with alternative hls playback engine (VHS).

The readme mentions that hls.js is used as the playback engine due to 'some issues we've seen with the default Video.js playback engine and Mux streams'.
I would prefer to use the default 'VHS' plugin for HLS support with video.js as it is compatible with other plugins, most notably 'videojs-contrib-quality-levels' and I can use the VHS properties and events.
Is it possible to set the mux kit video.js to use VHS - or would I be better off just using a standard implementation of video.js and not using this kit at all.
Assuming it was the VHS implementation of HLS that had the issues with Mux streams that are mentioned, are these issues documented anywhere so I can evaluate whether it would be an acceptable risk for our use case?

With mux-kit 0.8.0, it's now possible to use this library with VHS. You'll want to change your import from @mux/videojs-kit to @mux/videojs-kit/dist/index.vhs.js.
Alternatively, if the only issue is integration with videojs-contrib-quality-levels, you can wait for #70.

this package now integrates hls.js with videojs-contrib-quality-levels as of version 0.9.0. So, you can choose whether you want hls.js or VHS playback assuming only videojs-contrib-quality-levels support is needed.


Topic recognition-3DUnet-48243304

Hi,
I have implemented a 3D-UNet model for segmentation on the HipMRI dataset.
The model achieced a Dice Coefficient of 0.92. Detailed information on the implementation can be found in the README file.
The pull request includes the following files under the recognition/3D-UNET--48243304 directory:
dataset.py, modules.py, train.py, predict.py, util.py and the result file.
Any/ All feedback welcome!
student number: 48243304
Thank you

Marking

Good/OK/Fair Practice (Design/Commenting, TF/Torch Usage)
Good design and implementation.
Spacing and comments.
No Header blocks. -1
Recognition Problem
OK solution to problem. Problem requires all labels to be segmented separately but a binary segmentation is performed-2
Driver Script present.
File structure present.
Good Usage & Demo & Visualisation & Data usage.
Module present.
Commenting present.
No Data leakage found.
Difficulty : Normal. UNet3D (Normal Difficulty)-5
Commit Log
Some/Adequate Meaningful commit messages. -1
Some/Adequate Progressive commits. -1
Documentation
Readme :Acceptable. Has markdown errors, incomplete and no trainging charts/graphs.-2
Model/technical explanation :Missing. -3
Description and Comments :Acceptable. No references.-1
Markdown used and PDF submitted. PDF checked.
Pull Request
Successful Pull Request (Working Algorithm Delivered on Time in Correct Branch). On time submission.
No Feedback required.
Request Description is good.
TOTAL-16

Marked as per the due date and changes after which aren't necessarily allowed to contribute to grade for fairness.
Subject to approval from Shakes


MacOS support

Added support for macOS.
All test pass on macOS.
Only /dev/cu.* ports work properly.
Requires linking against libc to access tcflush(), but I believe that is the default for macOS.
PS: Please review this carefully as I am a total novice in Zig(I mostly do embedded C).

Looks good so far, but i guess i gotta ask some mac people. @mattnite, aren't you running a mac?

Wow, crazy timing, I was just looking at this yesterday and was sad about the lack of macOS coverage. @MasterQ32 I pulled it down locally and confirmed that it runs smooth.

I think the config for .macos and .linux could be joined by passing std.os.darwin or std.os.linux to a more generic UNIX function.
Also, the readme probably needs updating.
@MasterQ32 let me know if you want me to change anything before merging(after people have tested it ofc).
PS: would @cImport create a dependency for libc on linux and windows as well, or do they get stripped out at link time because the code is unreachable?

I've unified the unix-like configuration. Could someone test it on linux to make sure i didn't break anything :)

I'll try to test on Linux later today. I wonder, is there any way to get usb info? Like I'd like to know which one is made by raspberry pi for example. Or is that more of a libusb thing?

I'll try to test on Linux later today. I wonder, is there any way to get usb info? Like I'd like to know which one is made by raspberry pi for example. Or is that more of a libusb thing?

Yeah, also macOS has a terrible way of exposing the source of the tty, so maybe better handled by a higher level library.

I'll try to test on Linux later today. I wonder, is there any way to get usb info? Like I'd like to know which one is made by raspberry pi for example. Or is that more of a libusb thing?

I guess that's part of another PR :) If you guys can test and say it's green, i'll merge!

@MasterQ32 I've tested it on arch linux, all tests pass.