text:
Mongotest

I've incorporated a test database with mongodb which holds the recommended course sequences (ex: https://www.concordia.ca/encs/computer-science-software-engineering/students/course-sequences/co-op-soen-general.html).
The database is located at /opt/course-db and it contains a collection named courseSequences which holds all the data as BSON documents. One Document per sequence. As a reminder for what this sequence json data looks like, check out one of the files from the system that we currently have in place (plain text instead of db): http://138.197.6.26/courses/sequences/SOEN-General-Sept.json
Command used to start mongodb server on vm: sudo mongod --dbpath=/opt/course-db &.
Notable code changes:

The sequence scraper now writes the sequence json data to mongodb as well as in plain text. (See webscraping/node/main.js:129-143)
There is a new servlet in the Java backend which responds to POST requests at /mongosequences. It expects the POST body to contain the value: "sequenceID" and responds with the corresponding sequence based on the ID (see screenshot below for example). As usual, the logging done by this servlet will appear in /opt/tomcat/logs/courseplanner.log from my VM. (See src/main/java/SequenceProvider.java)
I've changed the index.html so the splash screen lets you select which default sequence to use. Select a new one, press continue, then press Reset Default. The website will make a request to the server based on which sequence you selected, and load the result into the page. Don't expect all the sequences to work perfectly yet.

Manual POST request to SequenceProvider servlet. The lower half is the response from the server:

what part of the deployment took longer than usual?

@Davidster not sure how to reply to ur comment more directly than tagging you, but both building the project and deploying. I get that my internet speed definitely slows down the deployment, so I assume that the building time is actually longer and that deployment may or may not be... which is why I didn't want to specify (so that you do check both)

it must be some intermittent issue with ur computer/internet, for me the deploy speed is the same as always

you actually don't need to click reset default if there is no saved sequence local storage variable present. The variable only gets created once you start dragging coureses around, and it gets removed each time you click reset default.
I agree that we should look into the UI looking all funky for certain default sequences. Not sure if this is due to the sequence JSON being bad or a bug in the UI code.

authors: Davidster PeterGhimself

repo: stumash/CoursePlanner


text:
Sorry this is going be a huge pull request

resolves #32
Summary
Changes made to the sequence scraper/sequence JSON spec:

Removed course name and course credits to decrease redundancy in DB
Added new detail to JSON spec allowing for choice of a list of courses (OR)
Assorted fixes to the sequence scraper logic

The code changes here are heavily hand-tested so you can be sure they work properly.
1. Removed course name/course credits from JSON spec
Now the course objects in the sequence JSON files will only contain the course code. Before, we also had the course name and the number of credits.
note: as a result of this change, we will need to update the mongosequences sevlet (SequenceProvider.java) by having it fill up the missing data by grabbing it from the course data DB
Sample of old spec
"courseList": [
    {
        "code": "COMP 232",
        "name": "Mathematics for Computer Science",
        "isElective": "false",
        "electiveType": "",
        "credits": "3"
    },
    {
        "code": "COMP 248",
        "name": "Object-Oriented Programming I",
        "isElective": "false",
        "electiveType": "",
        "credits": "3"
    },
    {
        "code": "ENGR 201",
        "name": "Professional Practice & Responsibility",
        "isElective": "false",
        "electiveType": "",
        "credits": "1.5"
    },
    {
        "code": "ENGR 213",
        "name": "Applied Ordinary Differential Equations",
        "isElective": "false",
        "electiveType": "",
        "credits": "3"
    },
    {
        "code": "",
        "name": "",
        "isElective": "true",
        "electiveType": "Science",
        "credits": ""
    }
]

Sample of new spec
"courseList": [
    {
        "code": "COMP 232",
        "isElective": "false",
        "electiveType": ""
    },
    {
        "code": "COMP 248",
        "isElective": "false",
        "electiveType": ""
    },
    {
        "code": "ENGR 201",
        "isElective": "false",
        "electiveType": ""
    },
    {
        "code": "ENGR 213",
        "isElective": "false",
        "electiveType": ""
    },
    {
        "code": "",
        "isElective": "true",
        "electiveType": "Science"
    }
]

2. Added ability to list a choice of courses
As described in issue #32, sometimes instead of one single course, a list of courses that you can choose from are put into the reccomended sequences. My proposed solution (which is implemented in this PR) is to simply put these courses into an array where you would normally expect to see a course object. It is implied that one of the courses in this array is to be picked, so the user will be able to choose one of them in the frontend app.
Example from SOEN-Games-Coop

The above recommended sequence portion results in the following json data:
{
    "season": "fall",
    "courseList": [
        {
            "code": "SOEN 490",
            "isElective": "false",
            "electiveType": ""
        },
        {
            "code": "ENGR 301",
            "isElective": "false",
            "electiveType": ""
        },
        {
            "code": "SOEN 321",
            "isElective": "false",
            "electiveType": ""
        },
        {
            "code": "COMP 376",
            "isElective": "false",
            "electiveType": ""
        },
        [
            {
                "code": "COMP 477",
                "isElective": "false",
                "electiveType": ""
            },
            {
                "code": "COMP 345",
                "isElective": "false",
                "electiveType": ""
            },
            {
                "code": "COMP 472",
                "isElective": "false",
                "electiveType": ""
            },
            {
                "code": "",
                "isElective": "true",
                "electiveType": "Program"
            }
        ],
        {
            "code": "COMP 345",
            "isElective": "false",
            "electiveType": ""
        },
        {
            "code": "COMP 472",
            "isElective": "false",
            "electiveType": ""
        }
    ],
    "isWorkTerm": "false"
},
{
    "season": "winter",
    "courseList": [
        {
            "code": "SOEN 385",
            "isElective": "false",
            "electiveType": ""
        },
        {
            "code": "ENGR 392",
            "isElective": "false",
            "electiveType": ""
        },
        {
            "code": "SOEN 490",
            "isElective": "false",
            "electiveType": ""
        },
        [
            {
                "code": "COMP 476",
                "isElective": "false",
                "electiveType": ""
            },
            {
                "code": "COMP 345",
                "isElective": "false",
                "electiveType": ""
            },
            {
                "code": "COMP 472",
                "isElective": "false",
                "electiveType": ""
            },
            {
                "code": "",
                "isElective": "true",
                "electiveType": "Program"
            }
        ],
        {
            "code": "COMP 345",
            "isElective": "false",
            "electiveType": ""
        },
        {
            "code": "COMP 472",
            "isElective": "false",
            "electiveType": ""
        }
    ],
    "isWorkTerm": "false"
}

3. Assorted fixes to the sequence scraper logic
There are also some situations where the course code will be followed by a descriptor. Some examples:
COMP 248*, COMP 248+, COMP 248 (alternative).
All of these cases will now end up being recorded as COMP 248, fully ignoring the descriptor. I made this judgement call on my own as it seemed that accounting for these exceptional situations would be far from worth our time. If you want to look into it further, be my guest...
I also fixed certain cases where empty courses would be put into the sequence and also where work terms would not be properly added.
Final words
I spent several hours going through every sequence JSON file one by one and comparing it directly to its source website.
The sequence json spec is now ALMOST perfect, with the exception of one final issue #39 which I will ask your guys' opinion on since I'm not sure how to deal with it.

@Davidster message

source: gharchive/pull-request

license: mit

license_type: permissive

license_source: bigquery


text:
Improve coverage testing and filesystem coverage

This pull request is a bit of a grab-bag of testing improvements. I'll describe them in three categories: 1) code coverage tooling, 2) new testing data, 3) new tests.
Code coverage tooling
Since I've been making some tests additions, I thought it would be nice to start using some tools to track how that was going. I found cargo-llvm-cov and it seems perfect. It runs all tests and generates a file that a gutters extension in VSCode can use to give visual feedback on what lines of code are being tested.
To support this, I added a tasks.json file, and added a task that automatically runs the command to generate lcov.info (which I added to the .gitignore). I also added a setup task for good measure since I always find myself running that.
New testing data
I wanted to add some more file tests, so I added some new testing data alongside the other data in integration-tests (I would like to clean that up sometime and get it working again). Everything I added is public domain, and includes a webp image from Google, a cbz comic I got from a public domain comic archive, and a PDF copy of the rust book.
New tests
I added tests to various filesystem modules that used the aforementioned data to make sure various processing functions worked. I don't have total coverage in each module yet because certain things were harder to test than others. But it's a start!
I also added tests for the webp module, and I found that I had no issue passing when I loaded the data from the file as a Vec<u8> and passed it to the processor, but that when I used the function to open a path it would fail. I think there was something wrong with the way data was being loaded there, so I changed it to a simple fs::read(path) and it seemed like that did the trick. But maybe I misunderstood the reasoning for the way this was originally written - please take a look at that and confirm that what I've done works.

Addressed comments, ready to merge.

repo: stumpapp/stump

license: MIT

license_source: github-api


text:
🛑 Main Website is down

In eb4c9d1, Main Website (https://xoro-hosting.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Status is back up in 3263eb7 after .

source: gharchive/issue

repo: stxrlite/xoro-updates


text:
🛑 Panel is down

In 9795e24, Panel (https://portal.xoro-hosting.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Status is back up in 596404a after 1 hour, 1 minute.


text:
Inheritable styles

How about inheritable styles like line-height: 0?
In PostCSS we have modules postcss-autoreset and postcss-initial for isolation.
But styled-components does not consider this question.

If you set line height to 0 it will inherit automatically.

This might be worth discussing for https://github.com/styled-components/polished, but it's not going to be part of styled-components core, sorry. Styled components is about enabling CSS in JS projects and inheritance is an important (if misunderstood) part of CSS.
It's pretty straightforward to do yourself, though:
const resetAll = css`
  line-height: initial;
  font-family: initial;
  /* ... etc ... */
`

const Component = styled.div`
  ${ resetAll }
  line-height: 1.0;
`

Because it's just CSS, that'll work exactly how you expect.

@comerc As @geelen suggested, this would be worth mentioning over at @styled-components/polished for possible inclusion in that library. Definitely something that is more akin to what that project is trying to accomplish.

authors: bhough comerc geelen k15a

repo: styled-components/styled-components


text:
Warning: Failed %s type: %s%s, prop, Invalid prop fontSize of type string supplied to Text, expected number.

Hello Team,
I am getting the below error, please help me.
Bad object: {
"fontSize": "25",
"fontWeight": "400",
"fontFamily": "System",
"color": "#222B45"
},
at Text (http://192.168.1.141:19000/index.bundle//&platform=ios&dev=true&hot=false&strict=false&minify=false:81032:27)
in Text
in Wrapper (created by Text)
in WrappingElement (created by LoginScreen)
in RCTView (created by View)
in View (created by LoginScreen)
in RCTView (created by View)
in View (created by LoginScreen)
in RCTScrollContentView (created by ScrollView)
in RCTScrollView (created by ScrollView)
in ScrollView (created by ScrollView)
in ScrollView (created by LoginScreen)
in RCTView (created by View)
in View (created by LoginScreen)
in LoginScreen (created by SceneView)
in StaticContainer
in EnsureSingleNavigator (created by SceneView)
in SceneView (created by CardContainer)
in RCTView (created by View)
in View (created by CardContainer)
in RCTView (created by View)
in View (created by CardContainer)
in RCTView (created by View)
in View
in CardSheet (created by Card)
in RCTView (created by View)
in View
in Unknown (created by PanGestureHandler)
in PanGestureHandler (created by PanGestureHandler)
in PanGestureHandler (created by Card)
in RCTView (created by View)
in View
in Unknown (created by Card)
in RCTView (created by View)
in View (created by Card)
in Card (created by CardContainer)
in CardContainer (created by CardStack)
in RNSScreen
in Unknown (created by InnerScreen)
in Suspender (created by Freeze)
in Suspense (created by Freeze)
in Freeze (created by DelayedFreeze)
in DelayedFreeze (created by InnerScreen)
in InnerScreen (created by Screen)
in Screen (created by MaybeScreen)
in MaybeScreen (created by CardStack)
in RNSScreenContainer (created by ScreenContainer)
in ScreenContainer (created by MaybeScreenContainer)
in MaybeScreenContainer (created by CardStack)
in RCTView (created by View)
in View (created by Background)
in Background (created by CardStack)
in CardStack (created by HeaderShownContext)
in RCTView (created by View)
in View (created by SafeAreaInsetsContext)
in SafeAreaProviderCompat (created by StackView)
in RCTView (created by View)
in View (created by GestureHandlerRootView)
in GestureHandlerRootView (created by StackView)
in StackView (created by StackNavigator)
in PreventRemoveProvider (created by NavigationContent)
in NavigationContent
in Unknown (created by StackNavigator)
in StackNavigator (created by Auth)
in Auth (created by SceneView)
in StaticContainer
in EnsureSingleNavigator (created by SceneView)
in SceneView (created by CardContainer)
in RCTView (created by View)
in View (created by CardContainer)
in RCTView (created by View)
in View (created by CardContainer)
in RCTView (created by View)
in View
in CardSheet (created by Card)
in RCTView (created by View)
in View
in Unknown (created by PanGestureHandler)
in PanGestureHandler (created by PanGestureHandler)
in PanGestureHandler (created by Card)
in RCTView (created by View)
in View
in Unknown (created by Card)
in RCTView (created by View)
in View (created by Card)
in Card (created by CardContainer)
in CardContainer (created by CardStack)
in RNSScreen
in Unknown (created by InnerScreen)
in Suspender (created by Freeze)
in Suspense (created by Freeze)
in Freeze (created by DelayedFreeze)
in DelayedFreeze (created by InnerScreen)
in InnerScreen (created by Screen)
in Screen (created by MaybeScreen)
in MaybeScreen (created by CardStack)
in RNSScreenContainer (created by ScreenContainer)
in ScreenContainer (created by MaybeScreenContainer)
in MaybeScreenContainer (created by CardStack)
in RCTView (created by View)
in View (created by Background)
in Background (created by CardStack)
in CardStack (created by HeaderShownContext)
in RNCSafeAreaProvider (created by SafeAreaProvider)
in SafeAreaProvider (created by SafeAreaInsetsContext)
in SafeAreaProviderCompat (created by StackView)
in RCTView (created by View)
in View (created by GestureHandlerRootView)
in GestureHandlerRootView (created by StackView)
in StackView (created by StackNavigator)
in PreventRemoveProvider (created by NavigationContent)
in NavigationContent
in Unknown (created by StackNavigator)
in StackNavigator (created by App)
in EnsureSingleNavigator
in BaseNavigationContainer
in ThemeProvider
in NavigationContainerInner (created by App)
in ThemeProvider (created by StyleProvider)
in MappingProvider (created by StyleProvider)
in StyleProvider (created by ApplicationProvider)
in ApplicationProvider (created by App)
in App (created by withDevTools(App))
in withDevTools(App)
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
in main(RootComponent)
at node_modules\react\cjs\react-jsx-runtime.development.js:null in printWarning
at node_modules\react\cjs\react-jsx-runtime.development.js:null in error
at node_modules\react\cjs\react-jsx-runtime.development.js:null in checkPropTypes
at node_modules\react\cjs\react-jsx-runtime.development.js:null in validatePropTypes
at node_modules\react\cjs\react-jsx-runtime.development.js:null in jsxWithValidation
at node_modules\react\cjs\react-jsx-runtime.development.js:null in jsxWithValidationDynamic
at node_modules@ui-kitten\components\ui\text\text.component.js:null in Text#render
at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in finishClassComponent
at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in updateClassComponent
at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in beginWork
at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in beginWork$1
at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in performUnitOfWork
at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in workLoopSync
at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in renderRootSync
at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in performSyncWorkOnRoot
at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in flushSyncCallbacks
at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in flushSyncCallbacksOnlyInLegacyMode
at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in scheduleUpdateOnFiber
at node_modules\react-native\Libraries\Renderer\implementations\ReactNativeRenderer-dev.js:null in dispatchSetState
at node_modules@react-navigation\core\src\useSyncState.tsx:null in useSyncState
at node_modules@react-navigation\core\src\useNavigationBuilder.tsx:null in useNavigationBuilder
at node_modules@react-navigation\core\src\useOnAction.tsx:null in onAction
at node_modules@react-navigation\core\src\useNavigationHelpers.tsx:null in dispatch
at node_modules@react-navigation\core\src\useNavigationCache.tsx:null in dispatch
at node_modules@react-navigation\core\src\useNavigationCache.tsx:null in Object.keys.reduce$argument_0
at node_modules@react-navigation\core\src\useNavigationCache.tsx:null in withStack
at node_modules@react-navigation\core\src\useNavigationCache.tsx:null in withStack$argument_0
at Screen\SplashScreen.js:null in useEffect$argument_0
at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:null in queueReactNativeMicrotask
at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:null in _callTimer

... 8 more stack frames from framework internals

Make the stringified numbers real numbers

authors: Bibinthayyil quantizor


text:
GlobalStyleComponent fixes

Fixes #1973
I think this is right? It appears to fix the issue on the example repo.

This LGTM.


text:
Package and Configuration management system

I'll make a Configuration management system which handles

Constant string such as Package name of this plugin
Scripting Define Symbols to add when this package is installed

https://github.com/styly-dev/STYLY-visionOS-Plugin/issues/6#issuecomment-1950250266

repo: styly-dev/STYLY-visionOS-Plugin


text:
프로그램 종료 루틴에서, yes/no 입력처리 개선

모든 경우의 대소문자에 대해 모두 허용할 수 있도록 기능 개선하기
예를 들어, Yes나 YES, yEs, No, NO 등을 모두 허용하도록

added acommit


text:
Second inverter has missing entities

A DTU-Lite-S is used to connect to 2 identical HMT-2250-6T inverters. The second identified inverter has an incomplete list of entities as there are no entities for port 3 - 6. The total number of created entities is 75.
This behaviour is reproducable with each configuration attempt.
Here the entities of the second inverter:

And here the first inverter:

Thanks, this seems like a similar problem as
https://github.com/suaveolent/ha-hoymiles-wifi/issues/51
I have not yet figured out why that is.
Do you have access to the s miles installer app and are you able to capture network traffic via wireshark?

Do you have access to the s miles installer app and are you able to capture network traffic via wireshark?

Yes, but unfortunately not now. This will be possible in about 2 weeks. I am not in the same network as the DTU.

That’s great. Maybe you can capture the network traffic sent by the phone to see what is different. I assume you get live data of all your inverters in the app.

Fixed in v0.3.3

repo: suaveolent/ha-hoymiles-wifi


text:
May the source be with you :)

Issue

Description

Checklist

[x] Added contributor object in ascending order in contributors.json
[x] Github action build passing
[x] No merge conflicts

@subeshb1, kindly review the PR and merge it :)


text:
Dynamic Memory Allocation

Select the Day of Content
Day 9
What information is missing?
Introduction to Dynamic Memory Allocation
@subhadipbhowmik kindly assign

@subhadipbhowmik kindly assign


text:
🛑 Cubari (MangaDex) is down

In 4fc36aa, Cubari (MangaDex) (https://cubari.moe/read/mangadex/d86cf65b-5f6c-437d-a0af-19a31f94ec55/?cache_buster=$GITHUB_RUN_NUMBER) was down:

HTTP code: 500
Response time: 152 ms

Resolved: Cubari (MangaDex) is back up in 1821a07 after 8 hours, 9 minutes.

repo: subject-f/cubari-status-page


text:
🛑 Cubari (MangaSee) is down

In 3aefed1, Cubari (MangaSee) (https://cubari.moe/read/mangasee/One-Piece/?cache_buster=$GITHUB_RUN_NUMBER) was down:

HTTP code: 500
Response time: 245 ms

Resolved: Cubari (MangaSee) is back up in c5fbde8 after 36 minutes.


text:
Virtual views are broken when sublime session is restored

When you quit ST, then open ST, Deno has trouble handling requests for the open virtual views. This seems to be because it expects the client to request deno/virtualTextDocument before any other request for those kinds of virtual views. See: https://github.com/denoland/deno/issues/11232

Fixed in https://github.com/denoland/deno/pull/20867

repo: sublimelsp/LSP-Deno


text:
Periodic Public IP watcher for Submariner Gateway

Currently when the submariner gateway pod comes up, it discovers
the public-ip associated with the gateway node and configures it
in the local endpoint. However, if the public-ip changes, the
connectivity would be lost. This PR implements a periodic watcher
which monitors for any changes to the public IP and updates the
local endpoint when necessary. It works for all the modes like
when using a dedicated gateway node with external-ip as well as
when using a Load-balancer mode of Submariner.
Fixes: https://github.com/submariner-io/submariner/issues/1823
Signed-off-by: Sridhar Gaddam sgaddam@redhat.com

@tpantelis accidentally squashed the commit, but i incorporated all the review comments. Thanks for reviewing.

repo: submariner-io/submariner


text:
Update umd to 3.0.0

This is a small breaking change.  If people compile modules with standalone names like:
browserify foo.js --standalone $foo_bar > out.js

They would previously have a module that attached to the global as foobar but would now have a module that attaches to the global as $foo_bar.

Published in 4.0.0 and added you as a collaborator. Thanks for the patch!

Thanks :)

authors: ForbesLindesay substack

repo: substack/browser-pack


text:
Fixing Japanese characters

I am in the process of translating the workshopper and I we have the problem that terminal-menu doesn't calculate the size for japanese characters well. This PR would fix that problem.

Closing pull request, changed branch, sorry for the noise.

repo: substack/terminal-menu


text:
Adding CIs

After the initial PR, we should probably add CIs.

Do you think https://github.com/substrait-io/substrait-python/pull/5 is enough to close this issue?

Yes

Though maybe lets make a follow-up issue for linters / formatters (which are not part of #5 if I understand)

Added #6!

authors: danepitkin vibhatha westonpace

repo: substrait-io/substrait-python


text:
Integrate coding-heavy tutorials with Substrate Playground

Current Situation
Currently devhub's tutorials are hosted in two different ways.
With the Main Devhub
For example, the Private Network Tutorial
Pros:

Theme matches the rest of devhub
Fewer repos to track issues on

Cons:

Harder to show code in complete context.
Learners need their own dev environment to actually run the code.

In their own docsify-based repository
For example, the ink! tutorial
Pros:

Code with context is always visible

Cons:

Theme does not match the rest of devhub
Learners need their own dev environment to actually run the code.

Proposal
It would be strictly better to have code-heavy tutorials (such as ink tutorial, and any runtime-writing tutorial) integrate with the existing Substrate Playground. This retains all the Pros of the docsify-based approach, and it also adds these advantages:

Learners can actually use and run the code right away.
Devhub team doesn't need to worry about theming the tutorial, only writing the content.

cc @jeluard

moved to https://github.com/paritytech/substrate.io/issues/1


text:
Parachains tutorials (partial) update to Polkadot v1.0.0

Use notes to update chain specs: https://github.com/substrate-developer-hub/substrate-docs/blob/11e6647df400e4448a978d7af42c6cd5ed054ff1/static/assets/tutorials/cumulus/node-start-local-testing.sh
Tested parachain & relay  release: release-v1.0.0-cumulus

all seems to work, minus production of blocks once registered & onboarded (~2 mins)
@al3mart  I am rusty - can you see in the docs are missing something needed in modern rococo parachain dev deployment in these docs?

I have run locally a relay with rococo-local chain spec and a parachain without problems using the same instructions this guide provides. I have used different branches though, release-v1.0.0 for the relay and polkadot-v1.0.0 for cumulus.

OK scope creep in this PR to do everything to v1.0.0 ... :crossed_fingers:  that this Just Works for users downstream. We can triage issues rather than have random versions scattered all over.

repo: substrate-developer-hub/substrate-docs


text:
Check if management is installed before launching the SS Console

Some users will be confused, especially new ones, if they get can't open web site when open SS Console. A reason may be simple: management is not installed. See for example: [Win 7] Can't open SS Console
Would be more user-friendly if Tray checks ports and if management is installed by requesting some REST API. And show some page (or dialog) with explanation. Example,

The management container is not installed. Please login to RH and run sudo subutai import management. Then check again.

"some REST API" - tray works with HUB API. Need to implement this on HUB.

Hub API is needed when Tray interacts with Hub. I think, here Tray should request SS, not Hub.
For example, management is installed but this peer is not registered Hub. Also Hub doesn't know anything about internal IP address of local peer: 10.0.2.15. But Tray redirects to that IP when we choose "Launch SS Console".

Tray receives that IP from RH via ssh and special command. Ok, maybe we can check ports, for example.

Done. We use REST call to https://rh_ip:8443/rest/v1/peer/ready

repo: subutai-io/tray


text:
Update README.md

make clear it's cubic time

Thanks @1mike12 for PR

repo: sudheerj/reactjs-interview-questions


text:
Add "year" placeholder text to year boxes in the publication and creation date fields

A user reported confusion because the year fields for dates do not have "year" in them the same way that "month" and "day" are present in the other fields.

add the html attribute placeholder="year"

authors: amyehodge jcoyne

repo: sul-dlss/happy-heron


text:
Create materialized view for full-dump record loading and transforms

Refactor query for materialized view query (documented here)
columns:
uuid | marc{json} | transformed marc (empty column)

Done, documented on the folio-k8s wiki and included in https://github.com/sul-dlss/libsys-airflow/pull/919

repo: sul-dlss/libsys-airflow


text:
Fixed new yaml deprecations

Q
A

Bug fix?
yes

New feature?
no

BC breaks?
no

Deprecations?
no

Fixed tickets
none

Related issues/PRs
none

License
MIT

Documentation PR
none

What's in this PR?
This PR removes the deprecations introduces by the Symfony YAML component to be compatible with the YAML specification.
Why?
In some environment the tests were failing because of that.

@christianbader Could you check if this is working for you?

Closed in favour of https://github.com/sulu/sulu-standard/pull/669

repo: sulu/sulu-standard


text:
Add support for KZG commitments

Describe the solution you'd like
Replace the need to commit the liabilities using a merkle sum tree by using KZG commitment. The proof generated inside the circuit would no longer be a proof of inclusion inside the merkle sum tree but, rather, a proof of inclusion inside a KZG commitment
Describe alternatives you've considered
The Merkle Sum Tree commitment represents the state of the art at the moment. Replacing it with KZG commitment would remove the need to perform a further commitment outside of the circuit.
Areas of concern for the KZG commitment feature:

performance
scalability
how to extract a KZG commitment from halo2 API

Additional context

A similar solution has been adopted by Semacaulk

POC
A Poc of this implementation has been developed by @0xbok https://github.com/0xbok/proof-cex/tree/main. The part that is still missing here is described here =>
Once you execute this halo2 circuit. you have the kzg commitment to all the (user_id/hash, user_balace) pairs:
let a_poly_commitment = dirty_transcript.read_point()?;

Now theoretically you should be able to compute the kzg inclusion proof for each user just from this data at hand.
The part where i am stuck is that i am not sure if halo2 api makes it easy to do so.
Otherwise that has to be done by exploring the internals of halo2 code

After extensive research, I've determined that implementing KZG commitments in Summa is not advisable at this stage.
For detailed insights, please refer to my Research for Applying KZG Commitment to Summa."

Hey @sifnoc, I'm interested in your finding but the doc is private.

@0xbok now it is public !

authors: 0xbok enricobottazzi sifnoc

repo: summa-dev/summa-solvency


text:
How to use "dialogsInBody: true" within angular-summernote

I want place the dialogs in body.
I have tried <summernote dialogs-in-body="true"></summernote>
but it's not work.

I tried <summernote dialogsinbody></summernote> , but it's not work too.

I use bower to installed this directive, but the file under dist is older version.
It's not include "dialogsinbody".

Right, the file under this is an older version.
I was able to setup that option in the configuration though
component.js
this.config: {
     airMode: true,
     disableDragAndDrop: true,
     dialogsInBody: true
},

template.html
<summernote config="$ctrl.config"></summernote>

repo: summernote/angular-summernote


text:
Unexpected error when I try auto login by set accessToken in SumUpPayment object

Hello,
I work on your SdkSampleApp to have auto login connecting SumUp Card Terminal.
I need your help to understand what’s wrong.
If I use login form, app works great :)
I try to log in with SumUp Android SDK automaticaly using AccesToken. When I add this line to SumUpPayment instance :
.accessToken(« 5e932de6ca61cf1c243746024f09881d12f9e655fbfe6eef3b1b302e33e1 »)
I have this line in Logcat :
03-28 19:19:13.992 12573-12573/com.sumup.sdksampleapp E/SumUp: (SourceFile:180)@main | Event rpcEventLogin - Reason: Sorry, but we've experienced an unexpected error. Please try closing the app and logging in again, or contact our Support Team (quote: UKN-3R68N)
Before I create as recommended Android credentials and I add new application identifier : com.sumup.sdksampleapp
To get accessToken, I call your oAuth api :
Request :
URL : https://api.sumup.com/oauth
METHOD : post
Header : Content-Type : application/json
Body :
{
"id":"CC6S66X",
"name":"H",
"client_id":"nHB8HerA8XGgpTUy86BQvBn6YgcP",
"client_secret":"b73786fe21438eb35d2b1e4292c674ef60821f337986dcbbcafd829790ee8317",
"application_type":"android",
"redirect_uris":["http://www.hangers.io/sumup"]
}
Response :
{
"access_token": "5e932de6ca61cf1c243746024f09881d12f9e655fbfe6eef3b1b302e33e1",
"token_type": "Bearer",
"expires_in": 3600
}
Thanks for your help.
Benjamin

Hello Benjamin,
I'm stuck exactly at the same point. Did you finally succeed to solve the problem ?
Thank you in davance for your help.
Best regards,
Félix

Hi, I get the same issue when using transparent authentication.
"Event rpcEventLogin - Reason: Nous sommes désolés, une erreur est survenue. Merci de vous déconnecter pour ensuite essayer de vous reconnecter ou de contacter le service client (code: UKN-1JJ3U)"
Can you help me please?
I used SDK 3.0.0.
Thank you,
Anthony

authors: alaporterie flixbernard welovehangers

repo: sumup/sumup-android-sdk


text:
Request to delete master branch

I noticed that the project has switched to main branch from master. Initially, I got confused as I still had master branch in my cloned version, and pulling it wasn't updating the project. It would be better to keep just one. However, if it's kept for some specific reason it's fine as it is.

@rohanKanojia master no longer seems to be in the upstream. It should be safe to delete from your clone.

@shawkins : Thanks a lot!

authors: rohanKanojia shawkins

repo: sundrio/sundrio


text:
Poor glyphs quality

I am trying to automate my current icomoon workflow (= ditch it). After font is being generated I noticed that glyphs went through some hardcore normalization? It's not obvious in small sizes, but it's horrific after being scaled up.
This icon was generated by webfonts-generator:

And this by icomoon website:

And this is source svg:
<svg height="40" viewBox="0 0 40 40" width="40" xmlns="http://www.w3.org/2000/svg"><path d="m16.007 27.4453c.259-.259.424-.573.511-.904l1.51 1.51c-.168.287-.361.562-.606.808-1.373 1.372-5.497 1.662-6.31 1.706l-1.112.06.06-1.113c.044-.813.332-4.937 1.705-6.31.245-.246.521-.438.807-.607l1.51 1.511c-.33.087-.644.251-.903.51-.438.438-.835 2.161-1.026 3.855 1.687-.188 3.404-.576 3.854-1.026zm11.2437-11.3843-2.688-2.688c1.401-.983 3.133-1.373 4.042-1.373h.028c.012.807-.364 2.608-1.382 4.061zm-5.171 11.799-1.829-1.829 1.829-1.829zm-6.072-6.072 7.071-7.071 2.828 2.828-7.07 7.072zm.415-3.243-1.829 1.829-1.829-1.829zm13.727-8.07c-.324-.325-.815-.475-1.545-.475-1.462 0-4.329.691-6.233 2.596l-3.95 3.949h-6.656c-.266 0-.52.105-.708.293l-.707.708c-.391.391-.391 1.024 0 1.414l11.314 11.313c.195.196.451.293.707.293s.512-.097.707-.292l.708-.707c.188-.188.293-.442.293-.708l-.001-6.657 3.95-3.95c1.438-1.438 2.072-3.293 2.321-4.27.202-.792.587-2.721-.2-3.507z" fill-rule="evenodd"/></svg>

This is my config:
{
  files: ['jsapp/svg-icons/deploy.svg'],
  dest: 'jsapp/fonts/',
  fontName: 'k-icons',
  cssFontsPath: '../fonts/',
  css: true,
  cssTemplate: './jsapp/k-icons-css-template.hbs',
  html: true,
  htmlTemplate: './jsapp/k-icons-html-template.hbs',
  types: ['eot', 'svg', 'ttf', 'woff2', 'woff'],
  templateOptions: {
    classPrefix: 'k-icon-',
    baseSelector: '.k-icon',
    baseClassName: 'k-icon'
  },
  formatOptions: {
    svg: {
      normalize: false,
      round: 0,
    },
    ttf: {},
    woff2: {},
    woff: {},
    eot: {}
  }
}

As you can see I tried configuring all possible formatOptions - only svgicons2svgfont has some useful configuration, but it doesn't help at all.

Found the source of problem and solution: https://github.com/fontello/svg2ttf/issues/52 - the SVGs need to be in huge size (at least 1000x1000 px) for the svg2ttf to not loose quality

repo: sunflowerdeath/webfonts-generator

license: unlicense


text:
404 got on the bottom link of the introduction page

Describe the bug
On the introduction page, the bottom link [CLI References](https://kubecm.cloud/en-us/cli/kubecm_add) just redirect to 404.
But it works ok to click from the menu tab add. May be it is a frontend redirect issue.
Both the en and zh pages need to fix.

fix at #541


text:
Spectrogram  Attributes not Documented Well

From @prateekiiest on March 10, 2017 13:48
Some of the documentation is not clear in http://docs.sunpy.org/en/stable/generated/api/sunpy.spectra.spectrogram.Spectrogram.html
in the attribute section table, like for COPY_Properties and shape.
Also there is some mismatch in the font.
Copied from original issue: sunpy/sunpy#2033

From @prateekiiest on March 10, 2017 13:48
I will be sending a PR regarding this

Deleted Spectrogram class and started again.

authors: dpshelio nabobalis

repo: sunpy/radiospectra


text:
同步更新

同步更新

1


text:
feat: add signOut() behavior option

Adds the behavior option to the signOut method which can be used to control which sessions should be signed out of the account.
See:

https://github.com/supabase/gotrue/pull/1112

Excellent.
Was there any discussion about the behavior verbiage? I ask because it seems like scope would be a good fit here.

lets go with scope

authors: hf j4w8n kangmingtay

repo: supabase/gotrue-js


text:
feat: update storage-js

update storage-js to 1.2.0

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

authors: inian kiwicopple

repo: supabase/supabase-js


text:
feat: Add unwrapOrElse

Similar to unwrap, but returns default value by function: #587
const myResult = err('Oh noooo')

const multiply = (value: number): number => value * 2

const unwrapped: number = myResult.map(multiply).unwrapOrElse(() => 10)

const unwrapped: number = await errAsync(0).unwrapOrElse(() => 10)
// unwrapped = 10

Useful for lazily evaluating defaults or performing processing.
unwrapOrElse exists in Rust:
https://doc.rust-lang.org/std/result/enum.Result.html#method.unwrap_or_else

This has already existed for a long time:
https://github.com/supermacro/neverthrow?tab=readme-ov-file#resultunwrapor-method
... or am I missing something here?

authors: supermacro sya-ri

repo: supermacro/neverthrow


text:
🛑 Node - ca-6790b1e9.yalaso.top is down

In 3f656c5, Node - ca-6790b1e9.yalaso.top (http://ca-6790b1e9.yalaso.top/api/v1/ping) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Node - ca-6790b1e9.yalaso.top is back up in 06b27c3.

repo: superrr-vpn/status


text:
🛑 Node - us-a6008253.yalaso.top is down

In a6334cb, Node - us-a6008253.yalaso.top (http://us-a6008253.yalaso.top/api/v1/ping) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Node - us-a6008253.yalaso.top is back up in 6e7850d.


text:
🛑 NBHW (Neurobehaviorial Health & Wellness) is down

In 94a3806, NBHW (Neurobehaviorial Health & Wellness) (https://www.nbhealthandwellness.com) was down:

HTTP code: 404
Response time: 262 ms

Resolved: NBHW (Neurobehaviorial Health & Wellness) is back up in 441aa74.

repo: superwebpros/uptime


text:
同一个页面实例化两个swiper的情况下，给loop属性时会报错

Error in updated hook: "TypeError: this.$parent.swiper.reLoop is not a function"

sometimes loop will get wrong message

能否贴一下组件代码

升级到 v3.0.7 修复此问题。

authors: sunmmerOne surmon-china

repo: surmon-china/vue-awesome-swiper


text:
Feature: Safe way of using IDs in create/update statements

Is your feature request related to a problem?
If I wanted to update a record by its ID, but the id is only known at runtime, I am forced to do string concatenation
await client.update(`user:${req.body.username}`, {
  username: username,
  password: password
});

This can lead to the user editing the statement to be operating on a completely different type of record, for example if the username input was set to "something:else" I would be adding a colon which is treated differently.
I think the currently implementation could lead to a lot of developers inadvertently leaving SQL injection vulnerabilities in their code.
Describe the solution
Option 1: Allow for specifying IDs in a way that would not be treated specially
Option 2: Allow for throwing an error if an invalid ID is passed in.
Alternative methods
Allow for prepared statement style variable passing:
await client.update(`user:$username`, {
    first_name: firstname,
    last_name: lastname
}, {
    username: username
})

SurrealDB version
1.0.0-beta.11+20230905.59718fc for windows on x86_64
SurrealDB.js version
0.8.4
Contact Details
willovertonuk@gmail.com
Is there an existing issue for this?

[X] I have searched the existing issues

Code of Conduct

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

Hi @williamoverton, while this would absolutely be a cool feature, it's currently not possible to implement this unfortunately! This is a limitation within the Websocket text protocol.
It is possible to execute a custom query and to pass along an ID like you want to however!
const [updated_record] = await client.query(
    /* surql */ `
        UPDATE ONLY type::thing('user', $username)
            SET first_name = $firstname, last_name = $lastname;
    `,
    {
        first_name: firstname,
        last_name: lastname,
        username,
    }
)

PS, one suggestion for your schema: I'd personally advice to not set the username as the record ID, as record IDs are immutable 😃

This should be resolved by #227, with the introduction of the new RecordId class

authors: kearfy williamoverton


text:
Emotions rating missing

I am using surveyjs with angular and the files for emotions rating widget seem to be missing and that question does not show up at all in the final survey.

Hello! Thank you for the reporting. Could you please check the example: https://plnkr.co/edit/97jZr34bhXnOwxgS2ZuV?p=preview It looks ok for me

Sample is not working anymore.

@gurix Please use the following example.
Thank you,
Andrew

authors: andrewtelnov dhwanivora dmitrykurmanov gurix

repo: surveyjs/widgets


text:
enable ubi support

maybe this PR can't been tested with GHA, as GHA customer it's linux header?
should we install kernel-devel and other packages for linux header and other header related pacakges? @rootfs

@rootfs , could you please help test this PR locally?
currently it supports libbpf?
I hope we can support install libbpf and linux header on RHEL with this PR.


text:
Improve deployment flexibility

Enable additional parameters to enable deployment in additional environments.
(Essentially port the flexibility added to the github.com/trent-s/susql-operator clone.)

Resolved with this pull request: https://github.com/sustainable-computing-io/susql-operator/pull/21
Closing as complete.

repo: sustainable-computing-io/susql-operator


text:
Not all PHP versions found

Yup issue with bash arrays, because who programs in bash

You can list versions installed via homebrew with brew list --versions
Also what's the array issue? it could be the delimeter variable bash uses to determine where one item ends and the next begins

Bash arrays are a pain, it's too easy to shoot yourself in the foot and lose all but the first array item or convert it to string by accident, and array items as words vs things with spaces causes problems.
Instead i'm using linebreaks and this simplified things massively.
closed by 549af1d0597f7672a2aec540d9089c13d9f5b5fe

authors: svandragt tomjn

repo: svandragt/psh


text:
Bindable props are treated as unused variables by eslint in some cases.

Since this came up today and Thomas G. Lopes mentioned the possibility of having the issue handled by Svelte's eslint plugin I want to cross post the issue https://github.com/sveltejs/svelte/issues/11901 here:
When creating a component like this:

The prop is treated as unread variable yet it should rather be treated as an exported variable since it might still be read from outside.

Thank you for posting the issue!
I think we need to fix the parser. But I don't have time to do that right now.

authors: ota-meshi ptrxyz

repo: sveltejs/eslint-plugin-svelte


text:
enhanced:img should be considered a void element

Describe the bug
Following https://github.com/sveltejs/svelte/issues/11052, svelte now warns on self closing tags for non void elements. This causes a warning when using <enhanced:img />, which is inconsistent with the usage of <img />
Reproduction

Logs
No response
System Info
System:
    OS: macOS 14.3.1
    CPU: (8) arm64 Apple M2
    Memory: 83.28 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.16.0 - ~/.nvm/versions/node/v18.16.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v18.16.0/bin/yarn
    npm: 9.5.1 - ~/.nvm/versions/node/v18.16.0/bin/npm
    pnpm: 8.14.1 - ~/.nvm/versions/node/v18.16.0/bin/pnpm
    bun: 1.1.3 - ~/.bun/bin/bun
  Browsers:
    Brave Browser: 114.1.52.126
    Safari: 17.3.1
  npmPackages:
    @sveltejs/adapter-vercel: ^5.1.0 => 5.3.0
    @sveltejs/enhanced-img: ^0.2.0 => 0.2.0
    @sveltejs/kit: ^2.5.0 => 2.5.9
    @sveltejs/pancake: ^0.0.18 => 0.0.18
    @sveltejs/vite-plugin-svelte: ^3.0.2 => 3.1.0
    svelte: next => 5.0.0-next.137
    vite: ^5.1.0 => 5.2.11

Severity
annoyance
Additional Information
No response

Probably an issue with https://github.com/sveltejs/language-tools/issues, not SvelteKit

Related to https://github.com/sveltejs/language-tools/issues/2321

This issue is fixed

repo: sveltejs/kit


text:
Migrate to latest SvelteKit

Seems like these changes make kit-docs work with v1 SvelteKit.

Ignoring wrong file type warning from api extractor

SvelteKit outputs d.ts files to the same directory as js files. Probable cause of the warning

Removed try catch statements from stores. Seems to work fine without them
Fixed the vite server loop with #71
Return null, if category is undefined
Added lang support for shiki for json and toml

@mihar-22 please have a look at the proposed changes. I've built a svelte package and really don't want to build my own docs 😃

I can’t even begin to describe how much I appreciate this! It’s really late here but I’ll look at first thing in the morning :)
Thanks heaps for the time you’ve put in to fix this.

Everything lookkkkkkkkkkkkkkkkkkkkkks gooooooooooooooooooooooooooooood 🚀 🚀 🚀

repo: svelteness/kit-docs


text:
Fix dark mode toggle

Button errors out and switches its display state. This is due to my messy state implementation, so I just need to do it properly.

Fixed with https://github.com/svoctor/lisper/commit/609ea1ec83b55df90ec15f7d6a7b211d171b4f87

repo: svoctor/lisper


text:
Wrong default value is generated for boolean

In the snippet below the yaml and json generated by swagger-core is not correct according to the editor.swagger.io. The default value for the booleans are generated as "false" instead of false. The error that is given is "Not a valid boolean: false"
	@GET
	@ManagedAsync
	@ApiOperation(value = "Get ships in area",
    	notes = "Get ships",
    	response = ShipInfo.class,
    	responseContainer = "List")
	@ApiResponses(value = {
			  @ApiResponse(code = 404, message = "No ships found") })
	public void allShipsInBoundingbox(
			@ApiParam(value = "Maximum Latitude", required = false) @QueryParam("topLeftLat") Double topLeftLat,
			@ApiParam(value = "Minimum Longitude", required = false) @QueryParam("topLeftLon") Double topLeftLon,
			@ApiParam(value = "Minimum Latitude", required = false) @QueryParam("bottomRightLat") Double bottomRightLat,
			@ApiParam(value = "Maximum Longitude", required = false) @QueryParam("bottomRightLon") Double bottomRightLon,
			@DefaultValue("false") @QueryParam("optin") Boolean optIn,
			@DefaultValue("false") @QueryParam("showAged") Boolean showAged,
			@Suspended final AsyncResponse response) {

  /ship:
    get:
      summary: "Get ships in area"
      description: "Get ships"
      operationId: "allShipsInBoundingbox"
      consumes:
      - "application/json"
      produces:
      - "application/json"
      parameters:
      - name: "topLeftLat"
        in: "query"
        description: "Maximum Latitude"
        required: false
        type: "number"
        format: "double"
      - name: "topLeftLon"
        in: "query"
        description: "Minimum Longitude"
        required: false
        type: "number"
        format: "double"
      - name: "bottomRightLat"
        in: "query"
        description: "Minimum Latitude"
        required: false
        type: "number"
        format: "double"
      - name: "bottomRightLon"
        in: "query"
        description: "Maximum Longitude"
        required: false
        type: "number"
        format: "double"
      - name: "optin"
        in: "query"
        required: false
        type: "boolean"
        default: "false"
      - name: "showAged"
        in: "query"
        required: false
        type: "boolean"
        default: "false"
      responses:
        404:
          description: "No ships found"
        200:
          description: "successful operation"
          schema:
            type: "array"
            items:
              $ref: "#/definitions/ShipInfo"

Yup, that's indeed a bug. Which version of swagger-core have you tried it with?

I am using 1.5.0

While I seriously doubt it's been resolved, can you give 1.5.3 a try?

Am trying right now. Namespace have changed....

Not from 1.5.0 - unless you meant one of the Milestone versions (M1, M2, M3). 1.5.0 (final) already has a namespace change. In any case, if you're on any of the milestones, I'd highly recommend upgrading. Thanks for giving it a try.

Is there a mvn package for 1.5.3?

yup, just change the groupId from com.wordnik to io.swagger.

Tried the 1.5.3. Same issue

Okay, thanks for the confirmation. We'll have to look into it.

Please look into the other primitive types too. Too bad JAX-RS @DefaultValue only uses strings, so conversions are needed.
 @QueryParam("page") @DefaultValue("1") @ApiParam(value = "Page to be returned") Integer page

generates
      parameters:
        - name: page
          in: query
          description: 'Page to be returned'
          type: integer
          default: '1'
          format: int32

the default should be without quotes.

This issue appears to have been fixed for Boolean types in the latest version. However, (unless I am mistaken) the issue still exists for other types, such as integer, as reported by @wsalembi.
Can you confirm that this issue still exists?

@wsalembi, @asicignano - if the issue indeed exists for other types as well, please open a new ticket for it. The PR dealt with the issue as it was reported, and at least for the sake of documentation, I'd rather we resolve other types in a new ticket rather than opening this one. It should work for at least some other types, even if not all.

Thank you for the response. I can appreciate the desire to keep the PRs
clean for the sake of documentation.
I have created a new ticket (
https://github.com/swagger-api/swagger-core/issues/1472) to look into the
issue with integers specifically.
Thank you,
Anthony Sicignano
On Mon, Oct 5, 2015 at 3:35 PM, Ron notifications@github.com wrote:

@wsalembi https://github.com/wsalembi, @asicignano
https://github.com/asicignano - if the issue indeed exists for other
types as well, please open a new ticket for it. The PR dealt with the issue
as it was reported, and at least for the sake of documentation, I'd rather
we resolve other types in a new ticket rather than opening this one. It
should work for at least some other types, even if not all.
—
Reply to this email directly or view it on GitHub
https://github.com/swagger-api/swagger-core/issues/1368#issuecomment-145660193
.

authors: asicignano fennekit webron wsalembi

repo: swagger-api/swagger-core


text:
Do we have swagger annotation for path at method level?

Hi,
I am working on project with jersey and swagger. We use swagger.json to compose apis on APIM.
We have number of get apis which has the same path but it differs on query param.
But jersey resolves the resource only using the path. Hence we are forced to merge our api into one api which will have same path.
To solve this, I thought we can have unique uris for all our get apis but when swagger file is generated, swagger reads only the unique ones so that it will be easy for us to compose apis on APIM and it will avoid any manual step.
Is there any way in swagger using which we can tell swagger to include this path in swagger.json rather than using jersey path annotation
Appreciate your quick response.
Thanks

If I follow your flow, it means you eventually want to differentiate between operations using query parameters. With the current version of Swagger, a unique identifier is a combination of the HTTP verb and the path - the query parameters cannot be used to uniquely identify an operation.

oh... so there is no way to achieve this??

I'm afraid not.

authors: catchaag webron


text:
Duplicate Schema nodes with file $ref, single node with http ref

I'm hitting an issue with multiple schema nodes getting created when I have more than one component using a single $ref component.
If a relative file $ref is used, two schema nodes get created.
If a http $ref is used, one schema node gets created. (Expected behavior)
Common object:
SourceAccountSummary.yaml
type: object
required:
    - sourceAccountId
    - totalCost
    - currency
properties:
    sourceAccountId:
        type: string
        format: uuid
    totalCost:
        type: number
        format: int32
    currency:
        type: string

Object 1:
PayoutSummaryAudit.yaml
type: object
required:
- payoutId
- payorId
- status
- instructedDateTime
properties:
    payoutId:
        type: string
        format: uuid
    payorId:
        type: string
        format: uuid
    status:
        type: string
        enum: [ACCEPTED, REJECTED, SUBMITTED, QUOTED, INSTRUCTED, COMPLETED, INCOMPLETE, CONFIRMED]
        description: The current status of the payment.
    submittedDateTime:
        type: string
        format: date-time
    totalPayments:
        type: number
        format: int32
    totalIncompletePayments:
        type: number
        format: int32
    totalFailedPayments:
        type: number
        format: int32
    sourceAccountSummary:
        $ref: SourceAccountSummary.yaml
    fxSummaries:
        $ref: ./FxSummaries.yaml
    payoutMemo:
        type: string

Object 2:
PayoutSummaryAudit.yaml
type: object
properties:
    payoutId:
        type: string
        format: uuid
    payorId:
        type: string
        format: uuid
    dateTime:
        type: string
        format: date-time
    status:
        type: string
        enum: [ACCEPTED, REJECTED, SUBMITTED, QUOTED, INSTRUCTED, COMPLETED, INCOMPLETE, CONFIRMED]
    submittedDateTime:
        type: string
        formate: date-time
    instructedDateTime:
        type: string
        formate: date-time
    totalPayments:
        type: integer
    totalIncompletePayments:
        type: integer
    totalFailedPayments:
        type: integer
    sourceAccountSummary:
        type: array
        items:
            $ref: SourceAccountSummary.yaml
    fxSummaries:
        type: array
        items:
            $ref: FxSummary.yaml
    payoutMemo:
        type: string

Above causes SourceAccountSummary and SourceAccountSummary_2 to get generated.
log snippet:
        "baseName" : "sourceAccountSummary",
        "complexType" : "SourceAccountSummary2",
        "getter" : "getSourceAccountSummary",
        "setter" : "setSourceAccountSummary",
        "dataType" : "List<SourceAccountSummary2>",
        "datatypeWithEnum" : "List<SourceAccountSummary2>",
        "name" : "sourceAccountSummary",
        "defaultValue" : "new ArrayList<>()",
        "defaultValueWithParam" : " = data.sourceAccountSummary;",
        "baseType" : "List",
        "containerType" : "array",
        "jsonSchema" : "{\n  \"type\" : \"array\",\n  \"items\" : {\n    \"$ref\" : \"#/components/schemas/SourceAccountSummary_2\"\n  }\n}",

If reference to the common object (SourceAccountSummary) is updated to raw file in Github, only one schema node is created.
Example $ref:
 $ref: 'https://raw.githubusercontent.com/velopaymentsapi/VeloOpenApi/2.6.0-SNAPSHOT/spec/definitions/model/SourceAccountSummary.yaml'
Complete example here.
Expected behavior is for file reference and http reference to function the same.
This is causing down stream issues generated source examples, causing multiple POJOs to get created for the same object.

Seems related to https://github.com/swagger-api/swagger-parser/issues/1089

authors: springframeworkguru tomasz-zablocki

repo: swagger-api/swagger-parser


text:
Enhance DSL regarding ApiResponse

Not really an issue, but could this be avoided:
new ApiResponse(code = 400, message = "Invalid ID supplied"),
new ApiResponse(code = 404, message = "Pet not found")))

By improving the DSL such that this annotation can live next to where you return the codes inside your controller? could it more specifically, wrap around where the response is returned? boilerplate will be reduced....

Yes, I do agree this is not great.  Will make sure the annotations are cleaned up in the 2.0 release.

authors: fehguy matanster

repo: swagger-api/swagger-play


text:
Swagger $ref does not display referenced JSON file using paths

I have a swagger.json that has paths in the following structure:
"paths": {
    "myRef": { "$ref": "http://<hostname>:<port>/api/ref.json" }
}

MY ref.json looks like this:
{
  "/dom": {
      "get": {
      ..
      }
   },
   "/restcalls: {
      "post": {
      ...
       }
    }
}

Does this work ? It didnt for me. If current spec does not support this then its a good feature addition. If it does then how can I make above work?
We have many servers publishing their own docs and this would be useful to just refer doc.

You can reference specific http verb operations, not full sets of paths. If you have different services publishing their own docs, it sounds like it's more likely that those servers expose different APIs?

Above ref.json is the result of the doc that server has published and for some other server on different port that ref.json can be a different name publishing it's docs. So I want to display this as a path. Hence suggesting this as a feature add on if this does not exist

Not really sure I follow. As a stand alone document, that's not a full Swagger spec, as it doesn't contain some mandatory information. Just not sure what the full use case here - is it a single API that's spread around multiple servers, each exposing only a subset of the API, and all are supposed to be collated under one definition in a central location?

The main swagger docs is quite huge hence I am using $ref to refer to individual documents. We have a main server that listens to all connected servers so if a app gets published in all the connected servers, it will listen and add the swagger to its main docs. That main server right now has huge swagger docs. Hence I wanted to differentiate every sub-server swagger APIs using $ref. That document will have partial document enough to be referred as valid Swagger. But the above example does not work.
Would doing this work?
"paths": {
     "$ref": "https://<hostname>:8090/api/server1.json",
    "$ref": "https://<hostname>:8091/api/server2.json",
}

server1.json would look like:
{
  "https://server1:8090/api/dom": {
      "get": {
      ..
      }
   }
}

server2.json would look like:
{
  "https://server1:8091/api/dom": {
      "get": {
      ..
      }
   }
}

I'm afraid, as you've already found out (the issue you voted on), that that's not possible (and it's better to keep the discussion on that issue). There are several problems supporting what you ask. Structure-wise, JSON References just won't allow that structure. On the logical aspects, there are several potential issues (conflicts/duplication) and we need to define the behavior well, especially the edge cases, before we can accept such a change.

This has been covered in other tickets, so closing to avoid clutter.

authors: fehguy kulkarniankita webron

repo: swagger-api/swagger-spec


text:
login_step1 is not working

Hi ,
Thanks for making this code public . I was trying it out but this code doesn't seem to work at the login_step1 stage itself.
There are some merge issues in module.py too in the latest config . Can you please provide the working copy of the module.py
Regards,

Things have changed on zerodha's website a lot since I wrote this last time. I will need to change somethings in order to get this working.

This is resolved for now. I might not develop this further till I come up with better design (and test cases :P).
This may break again in future if there's a change in kite.zerodha.com, Its better to use zerodha api if you are doing something mission critical.

authors: preposturous swapniljariwala

repo: swapniljariwala/zerodha


text:
Kids Learning Website

Is your feature request related to a problem? Please describe.
Kids Learning Website
Describe the solution you'd like.
I will add a website in which the kids will be able to learn alphabets, numbers, shapes, fruits, animals, stories,rhymes,etc. easily.
Describe alternatives you've considered.
.
Add any other context or screenshots about the feature request here.
I am contributor at GSSoC '22. Please assign this issue to me.
@swapnilsparsh

No new assigning of issues.

authors: Sukriti-m swapnilsparsh


text:
Added Flappy Bird

🛠 Fixes Issue (Number)
Closes #1601
👨💻 Changes proposed and Brief Description

Gameplay Mechanics: Improved for smoother experience.
Collision Detection: Enhanced for accuracy.
Code Organization: Optimized for better readability.
Performance: Boosted for seamless play.
Movement: Made bird and pipes move smoother.
Scoreboard: Implemented to track and display scores.
Scoring Mechanism: Adjusted for accurate updates.
Responsiveness: Improved overall responsiveness.
File Structure: Added Flappy Bird game folder (120).
Assets: Included a screenshot in the assets folder.
Integration: Updated game link in 30DaysOfJavaScript\script.js.
Website: Added game link to the website with a description.

✅ Check List (Check all the applicable boxes)
[X] My code doesn't break any part of the project
[X] This PR does not contain plagiarized content.
[X] My Addition/Changes works properly and matches the overall repo pattern.
[X] The title of my pull request is a short description of the requested changes.
📷 Screenshots

@AsmitaMishra24 Thank you for contributing to this repo. Looking forward for more 🚀


text:
analytics: change ga to gtag, remove yandex metrika

Pull request template
Checklist

[x] I have read the CONTRIBUTING guide
[x] branch rebased on develop
[x] styleguide check npm run validate
[x] good naming
[x] keep simple
[ ] video or screenshot attached
[x] testing instruction attached
[x] check your PR once again

Description

Video or screenshot

What and how to test

Не мержить. Тэги всё еще не работают. Связано с тем, что необходимо настроить формат тегов

Отслеживается баланс при его обновлении:

Отслеживается попытка подписаться и результат подписки:

В подписке есть gaID:

Для отслеживания создания нового кошелька:
window.dataLayer.push({'event': 'wallet-new-created'})


text:
Enhancing the UI and giving a professional look

Reason/Context
Why we need this improvement?
In this current version of the page, the UI of the chat application is very straight forward and almost like some usual chat application.
How will this change help?
It will enhance the UI of the webpage. It will give a better and professional look to the website, hence giving a better user-experience.
Description
What changes have to be introduced?
Some drastic CSS changes have to be made in order to enhance the UI.
this be a breaking change?
No, it will just make the UI more professional.
How could it be implemented/designed?
This can be achieved by using some frameworks like Tailwind CSS or Bootstrap or some custom CSS.
I would like to work on this issue under JWOC 2023. Would be glad if you assign this issue to me. @swarnarkadas

Hi! I want to contribute on this issue please assign me this issue.

@pooranjoyb, You are assigned to this issue. Fetch all the recent updates of the application before start working. And use anything except Bootstrap.

Okay thanks for assigning! <3 @swarnarkadas

authors: Frs2304 pooranjoyb swarnarkadas


text:
Performance bugs with known fixes

Known fixes
general

[ ] Dynamic linking of iconv

[ ] Dynamic linking of libresolv

[x] Use ahash #2384()

swc_atoms

[x] Switch to parking_lot (https://github.com/swc-project/swc/pull/2411)

Related: https://github.com/servo/string-cache/issues/242

[ ] Thread-local interning, in cost of more memory use while LocalInterner is alive.

swc_common

[ ] Global / Local pool for Mark allocation.

This will result in a huge difference as Mark is used for various purposes.
swc_ecma_ast

[ ] Methods of IdentLike can be optimized.

Comparison of js_word is much faster than string comparison.
swc_ecma_parser

[ ] Skip typescript types, without storing them.

[x] Optimize parse_block (#2406)

We should create a vector with good initial capacity.

[ ] Optimize parsing of expressions. (#2437)

We perform too much backtracking.
swc_ecma_codegen

[ ] Don't allocate while print a number.

[ ] Use faster library like ryu for printing numbers.

swc_ecma_transforms_base

[x] resolver: Use better way to fetch parent Mark. (#2392)

It uses Mark::parent but it's very slow operation.
This also shows up in the profile result, as Mark::parent() involves a global lock.

[ ] hygiene: Reduce allocation of JsWord

Creating a JsWord requires locking global interner.
swc_ecma_utils

[x] Parallel collect_decls. (#2394)

It's easy to parallelize it.
swc_ecma_transforms_base

[ ] Use single Mutex instead of lots of AtomicBools for helper.

swc_ecma_transforms_macros

[x]  #[fast_path] has exponential time complexity. (#2439)

swc_ecma_transforms_compat

[ ] destructuring visits nodes for exponential times.

[ ] for_of visits nodes for exponential times.

[ ] object_rest has exponential time complexity.

[x] async_to_generator visits nodes for exponential times. (#2442)

These are simple, but I postponed because of #2441.

Fold results in a lot of memmove. So transforms in @swc/core should use VisitMut instead of Fold.
The order of tasks is ordered by real-world data.
The sooner it comes, the higher effect it has.

[ ] Migrate es2015::parameters to VisitMut.
[ ] Migrate es2015::block_scoping to VisitMut.
[ ] Migrate es2015::desturcturing to VisitMut.
[ ] Migrate es2015::arrow to VisitMut.
[ ] Migrate es2015::computed_props to VisitMut.
[x] Migrate es2015::shorthand to VisitMut.
[ ] Migrate es2015::for_of to VisitMut.
[x] Migrate es2015::block_scoped_fn to VisitMut.
[ ] Migrate es2015::classes to VisitMut.
[ ] Migrate es2015::spread to VisitMut.
[ ] Migrate es2020::class_properties to VisitMut.
[ ] Migrate es2020::opt_chaining to VisitMut.
[x] Migrate es2020::nullish_coalescing to VisitMut. (#2442)
[x] Migrate es2020::export_namespace_from to VisitMut. (#2751)
[x] Migrate es2017::async_to_generator to VisitMut. (#2709)
[ ] Migrate es2018::object_rest_spread to VisitMut.
[x] Migrate es2019::optional_catch_bindings to VisitMut.
[x] Migrate es2016::exponentation to VisitMut.

swc_ecma_transforms_optimization

[x] dce: Parallel tree shaking. (#2384)

Arc can be used to share data from analysis.

[ ] dce: Parallel analyzer.

It seems like a simple task, but we have to consider the time used for hashing.
swc_bundler

[ ] Don't clone modules if there's only one entry.

https://github.com/swc-project/swc/blob/656f3e944df7ec8d9f1ab7ac2745c0d4dde3e605/bundler/src/bundler/chunk/merge.rs#L157-L168

[x] Make inline pass parallel. (#2394)

[ ] Make keyword renaming pass parallel.

[ ] Add options to remove exports.

[x] Make dropping of bundler parallel (#2406)

swc_node_bundler (swcpack)

[ ] Drop bundler in other thread.

I've marked few visit_mut refactorings as done, and trying to make some more changes.

repo: swc-project/swc


text:
Invalid Character in Identifier

Describe the bug
It seems that SWC does not fully support Unicode characters.
In the poc.js, the third unicode a\u309B and the and the forth unicode a\u309C are not supported.
Input code
var a\u2118;
var a\u212E;
var a\u309B;
var a\u309C;

Config
{
  "jsc": {
    "parser": {
      "syntax": "ecmascript",
      "jsx": false,
      "dynamicImport": false,
      "privateMethod": false,
      "functionBind": false,
      "exportDefaultFrom": false,
      "exportNamespaceFrom": false,
      "decorators": false,
      "decoratorsBeforeExport": false,
      "topLevelAwait": false,
      "importMeta": false
    },
    "transform": null,
    "target": "es5",
    "loose": false,
    "externalHelpers": false
  }
}

Playground link
https://play.swc.rs/?version=1.2.111&code=H4sIAAAAAAAAAytLLFJIjCk1MjS0sOblKoPxjFwRPGMDSycUnrM1APfaBaE2AAAA&config=H4sIAAAAAAAAA0WMTQrEIAxG75K1286id5hDBCctFv9IUhgR714tlu7C915ehUMsrBUyshCPS0pU%2FMMKZAOKZZcVTNf6tKEXagYUeScdiiyd%2BZSEJjUQXHRbGSWbQmYSeRHG3T9m66GQfucYKmjJdAc%2F0N7G%2FHPynaLySe0Cj9ke9LUAAAA%3D
Expected behavior
I hope swc can transform these Unicode which from Unicode 4.0.
Version
1.2.112
Additional context
I run swc use cmd as follows
npx swc --config-file=.swcrc poc.js -o poc.js

The environment is ubuntu 20.04 amd64.

Fixed by https://github.com/swc-project/swc/pull/3867


text:
airport IATA code should be case insensitive

title says it all

@maneesha Can you point out where does the case of the IATA causes problems?

Look at this profile update request:
https://amy.software-carpentry.org/workshops/profile_update/480/
"dca" is not accepted - but DCA airport exisits.

repo: swcarpentry/amy


text:
Training progress edit view doesn't have a proper link to delete

The issue is in the template.

@pbanaszkiewicz Duplicate of #1085 ?

I think so! Thanks for pointing this out, @narayanaditya95


text:
Publish npm package

Publish npm package for 'react-native init'

solved with f86dd885bbffdda674917577f84bfae142640e95


text:
How to reproduce result with the pretrained weights

Thank you for your work.
I want to know how to reproduce the [Pitch modified Violin] result which is  presented in the demo page.

Pretrained weight could be found here https://github.com/sweetcocoa/ddsp-pytorch/tree/models
Autoencoder.reconstruction() might be the one you are looking for.
https://github.com/sweetcocoa/ddsp-pytorch/blob/master/train/network/autoencoder/autoencoder.py
modifying f0 will be affect the output's f0.
Please understand that I'm not sure if all my comments are correct because I made this repository a very long time ago.

repo: sweetcocoa/ddsp-pytorch


text:
[android] fix 32-bit build

Regression after bb3fccfa360d00f63999ac8faf6ba37224ce5174

@swift-ci please test

repo: swiftlang/swift-foundation


text:
feature: run npm install after git clone

Is your feature request related to a problem? Please describe
We have husky and commit-lint integrated locally to maintain good commit messages.
But if the user doesn't run npm install, the pre-commit hook will not be installed, and commit-lint can't be run and later will cause an issue in the CI.
Describe the solution you'd like
Add a post-clone hook natively [without husky or any js library], which will

Run npm install if nodejs and npm is available
Show a message to the user [you can suggest a better message as well]

Node.JS NPM or NPX not found. Please install this tool.
After installing Node.JS, run `npm install`

I would like to solve this issue, please assign it to me.

Closed, as this is going to be part of documentation !

authors: flushthemoney tanmoysrt

repo: swiftwave-org/swiftwave


text:
NetCore

I think this is all that is needed to support Core.
First time doing it.

Yup, looks good. :D

authors: Mahsaap swiftyspiffy

repo: swiftyspiffy/SteamStoreQuery


text:
Use of deprecated API

I'm now getting this warning on the latest version of Home Assistant:

Entity None (<class 'custom_components.dual_smart_thermostat.climate.DualSmartThermostat'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <ClimateEntityFeature: 0>, please create a bug report at https://github.com/swingerman/ha-dual-smart-thermostat/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation

Thanks for reporting this

What version of the component are you using currently?

We have already fixed this requirement. I assume you are on an older version, so I am closing this for now.

This is still happening for me on 0.9.8.3.  My most recent instance of this log entry is from yesterday morning and I'm using the latest release.

Fiesd the issue and it will be included in the next release

authors: depoll swingerman

repo: swingerman/ha-dual-smart-thermostat


text:
🛑 Integrations is down

In 4642174, Integrations ($STATUS_INTEGRATIONSURL) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Integrations is back up in d741c6b after 7 minutes.

repo: swipload/status


text:
Allow for easy way to handle inout arguments

Problem
Unfortunately dear-imgui API uses inout arguments very often. Python does not allow for such calling convention. So it is very hard to wire together imgui windows and widgets in the same way like in C++.
General idea
We could introduce some abstract base class that could be used in place of existing inout argument handling:
import abc

class InOutABC(object):
    __metaclass__ = abc.ABCMeta

    @abc.abstractmethod
    def set(self, value):
        pass

    @abc.abstractmethod
    def get(self):
        pass

    @classmethod
    def __subclasshook__(cls, C):
        if cls is InOutABC:
            if (
                any("set" in B.__dict__ for B in C.__mro__) and
                any("get" in B.__dict__ for B in C.__mro__)
            ):
                return True

        return NotImplemented

Usage
Then user could create his own signal-like class that would handle his inout argument data and could be used in imgui function calls without inconvenient tuple unpacking and multiple variable assignments:
class InOutWire(object):
    def __init__(self, value):
        self._value = value

    def set(self, value):
        self._value = value

    def get(self):
        return self._value

Such InOutWire could be used to easily glue together different widgets:
checked = InOutWire(False)

while True:
    imgui_ctx.new_frame()

    if imgui.checkbox("c1", checked)[0]:
        print "c1.clicked", checked.get()
    if imgui.checkbox("c2", checked)[0]:
        print "c2.clicked", checked.get()
    # ...

User could even create general objects to provide auto-generated inout arguments without the need to:
from collections import defaultdict

wires = defaultdict(lambda: Wire(False))

while True:
    imgui_ctx.new_frame()

    if imgui.checkbox("c1", wires['checked'])[0]:
        print "c1.clicked", wires['checked'].get()
    if imgui.checkbox("c2", wires['checked'])[0]:
        print "c2.clicked", wires['checked'].get()

Implementation details
Having the abstract base class InOutABC we can check if provided possible inout arguments have the compatible interface (set()/get() methods). We need to do that test in every function that will allow for such feature. Example implementation:
def checkbox(str label, state):
    cdef cimgui.bool inout_mode = isinstance(state, InOutABC)
    cdef cimgui.bool inout_state = state.get() if inout_mode else state

    result = cimgui.Checkbox(_bytes(label), &inout_state)

    if inout_mode:
        state.set(inout_state)

    return result, inout_state

Sadly this will require a lot of boilerplate and code changes. The ideal solution would be to have kind of decorator that can translate between ordinary/inout arguments. Inside of wrapped functions we could then always expect either InOutABC-compatible objects or simple flat arguments.
The trouble is that right now we allow arguments that are "inout" in the C++ layer to be both positional and keyword. In such situation I don't know how do provide such decorator that would manipulate arguments without introspecting function signatures with inspect. This would be easier if we would assume that inout arguments are always keyword-only. Good news is that Cython allows to have keyword-only arguments even on Python 2 and even without default values.
Example implementation and usage:
from functools import wraps

def allow_inout(kwarg_name, result_pos=1):

    def wrapper(func):

        @wraps(func)
        def wrapped(*args, **kwargs):
            kwarg = kwargs.get(kwarg_name, None)

            inout_mode = isinstance(kwarg, InOutABC)

            if inout_mode:
                kwargs[kwarg_name]=kwarg.get()

            result_tuple = func(*args, **kwargs)

            if inout_mode:
                kwarg.set(result_tuple[result_pos])

            return result_tuple

        return wrapped

    return wrapper

@allow_inout('state')
def checkbox(str label, *, state):
    cdef cimgui.bool inout_state = state
    return cimgui.Checkbox(_bytes(label), &inout_state), inout_state

Further improvements
Common idiom in imgui is to always check result of widget call using if to process user interaction. For every function that defines a widget and uses inout arguments we return a tuple. This means that some widgets will require result value indexing and some will not e.g:
if imgui.button("some button"):
    print("user interaction")

if imgui.checkbox("some checkbox", False)[0]
    print("user interaction")

This makes the API usage inconsistent. We could improve this by replacing simple return tuple with object that will take into account only the value during bool test e.g:
class InteractionTuple(tuple):
    def __bool__(self):
        return bool(self[0])

The downside: changes user expectation on tuple truth value. Other way around is to inverse whole problem. We could replace every return value that means user interaction or widget visibility with an object that clearly describes what are expectations about "True value". Example:
class InteractionTuple(tuple):
    def __bool__(self):
        raise ValueError

    @property
    def clicked(self)
        return bool(self[0])

class VisibilityTuple(tuple):
    def __bool__(self):
        raise ValueError

    @property
    def visible(self)
        return bool(self[0])

    @property
    def expanded(self)
        return bool(self[0])

# usage

if begin("my window").visible:  # alternatively: .expanded
    ...
    if imgui.checkbox("my checkbox").clicked:
        ...

I have added this to 0.0.1 milestone to ensure that we make a decision about this feature before we will ship first official release.

I have realised that using keyword-only arguments here is not a good solution:

it will make force users to use excessively verbose function calls
it would have to either affect all arguments with default values or be very inconsistent

The best if we could keep the core Python API as close to C++ API as possible. This is already the first reason why I have proposed this InOutABC interface. Forcing users to use keyword-only arguments will make a lot harder to port C++ examples to Python.
Fortunately I have found a simple way to handle both inout args and kwargs in a form of suggested decorator. Here is the modified code:
def allow_inout(arg_pos, kwarg_name, result_pos=1):
    def wrapper(func):
        @wraps(func)
        def wrapped(*args, **kwargs):
            try:
                kwarg = args[arg_pos]
                args = args[:arg_pos] + args[arg_pos+1:]

            except IndexError:
                kwarg = kwargs.get(kwarg_name, None)

            inout_mode = isinstance(kwarg, InOutABC)

            if inout_mode:
                kwargs[kwarg_name]=kwarg.get()

            result_tuple = func(*args, **kwargs)

            if inout_mode:
                kwarg.set(result_tuple[result_pos])

            return result_tuple

        return wrapped

    return wrapper

I still need to reconsider if maybe it would be better to handle inout kwargs explicitly in every such function. Explicit inout handling will be less expensive in terms of performance but would require more code changes and maintenance. We need to decide what is more important: more expressive and shorter code or code that executes faster.
Anyway, such change does not have to be backwards incompatible so we don't have to make any decision before the first release. I move this feature to next milestone.

I did some experiments in feature/8-inout-arguments branch and it doesn't seem to be as straightforward as I initially thought. I'm moving this to next milestone because I want to finally release 1.0.0

repo: swistakm/pyimgui


text:
Fix build with gpsd-3.23.1

there were 3 API breaking changes in 3.23.1 point release without bumping GPSD_API_MAJOR_VERSION:
Change STATUS_NO_FIX to STATUS_UNK to avoid confusion with fix mode.
Change STATUS_FIX to STATUS_GPS to avoid confusion with fix mode.
Change STATUS_DGPS_FIX to STATUS_DGPS to avoid confusion with fix mode.
https://gitlab.com/gpsd/gpsd/-/commit/d4a4d8d3606fd50f10bcd20096a8a0cdb8b2d427
https://gitlab.com/gpsd/gpsd/-/commit/af3b7dc0d1fc8b912ea2ef3df4a74498ccade85a
https://gitlab.com/gpsd/gpsd/-/commit/7d7b889f5ca9ec0bdef5fcea3da0e320eb8ceb97

Signed-off-by: Martin Jansa martin.jansa@lge.com

Please check Gary E. Miller's reply in: https://gitlab.com/gpsd/gpsd/-/commit/7d7b889f5ca9ec0bdef5fcea3da0e320eb8ceb97#note_692804976

The code this patches was already broken, and is still broken.
status is being used to determine is there is a valid fix.  That was never true, and remains invalid.

authors: garyemiller shr-project


text:
Add ability to set offset for multires image

Closes #564 by adding ability to set an x,y offset (applied in Easting and Northing) to a multires image to correct for inaccuracy in the original map data.
Example of map data that is inaccurate:

Corrected map data using offset:

Looks good.  Can you also make a pull request for Jade?

Side note: Jade isn't supported any more and there won't be any more releases for it.  Feel free to keep merging things into jade-devel, but only indigo-devel and kinetic-devel actually matter going forward.

authors: jgassaway malban pjreed

repo: swri-robotics/mapviz


text:
is-next-container class is not applied during transition.

Hi there,
First of all, thanks for this great plugin, it is a very welcome addition to swup.
When using this plugin, the is-previous-container class gets applied to the previous container as described in the docs, however, the is-next-container-class does not get applied to the newly inserted next container.
This can also be seen in the demo that is linked on the plugin's doc page:
https://replit.com/@swupjs/Swup-Demo-Slideshow

It's a bit confusing but it actually does get applied, however just for a single frame.
The class .is-next-container is added right before the container is inserted to the DOM, then removed right after, thus triggering the whole animation. That way, the starting state of the next container is defined in .is-next-container, and the end state is defined by the normal styles it has without classname. The classname is just never visible in the dev tools as it's removed almost immediately.
Same for the previous container, but in reverse: the starting state is the normal style without classname, and the end state is the style of .is-previous-container. Just that you can still see the classname in the dev tools as it needs to stay applied for the animation to finish.
Let me know if this makes a bit more sense now. We might need an adapted version of the lifecycle diagram to make this a bit more intuitive.
I'm closing this as it's working as expected but feel free to get back anytime if this needs further clarification.

Ah, I see. Thank you for the explanation, yes, this makes sense. I think some mentioning of this in the docs would be great.

True — I've created a new issue to clarify the readme on these.

Hm, for some reason the transforms that are supposed to be applied via the is-next-container selector do not get applied in my setup. I tried to pretty much copy the slide animation demo into my website, but while the previous container animates to the side, the next container is already in its final position, so the one frame of applying the is-next-container class does not seem to have any effect. That's why I discovered the "missing" is-next-container class in the first place.
Any idea what could be wrong here and how to debug this?

Can you create a demo with just the basic styles applied? Hard to debug this from afar otherwise. Forking the replit example and taking it step by step should also give you some pointers at which step it breaks down.

@trych We've also updated the styling section of the readme to hopefully be more clear about when the animation classnames are added to and removed from each type of container.

@daun Thanks, much appreciated. And also understandable, that my issue is too hard to debug, it's unfortunately a bit hard to reproduce because this was within a very involved CSS setup. I had to move on though and I switched to animating it with gsap in the end, which I got to work after a while.
During coding I did thinkt that it would be helpful to have some sort of class attached to the "next-container" for the entire duration of the animation though to target it more easily with some JS or by other means. I mean I could do something with the first of type pseudo class, but then I have to be specific again that this is only valid during the animation, so a separate class for targeting this container during the animation would be helpful, I think.

@trych Are you using this in conjunction with GSAP? Or did you decide to drop the plugin completely?
The intended use case of the plugin was for pure CSS animations: something like parallel animations has been complicated but already doable in JS, whereas it was definitely impossible to do with CSS only. That's kind of the focus of the plugin, and might be a bit of a blind spot for us conceptually.
So if I'm getting this right, the main issue for JS animations is there's currently no way of applying initial styles to the next container before it's inserted into the DOM. The solution might just be a new hook — content:insert or something — which, when hooking before it, would give you the new container right before it's inserted. This should be enough to support most JS use cases, but eager to hear your point of view about this.

Are you using this in conjunction with GSAP? Or did you decide to drop the plugin altogether?

Yes, I use this in conjunction with GSAP and did not drop the plugin. This seems to work fine (and is still a lot easier for me than setting this up with JS only). I could not get it to work with CSS and had to get something to work quickly for a presentation today, that's why I moved to GSAP. I guess CSS only would be preferable but might be too complicated in my specific setup (it is basically entire layouts that slide vertically which is specifically challenging due to the containers being taller than 100vh).

So if I'm getting this right, the main issue for JS animations is there's currently no way of applying initial styles to the next container before it's inserted into the DOM.

Yeah, basically I would like to be able to easily style / target the next container during the animation. Even when I just want to give it a pink background color for debugging purposes I will have to resort to something like
html.is-changing {
  .my-container-class:not(.is-previous-container) {
    background-color: deeppink;
  }
}

(off the top of my head)
or something like that. Would be nicer to have a simple class like next-container or something that is applied to the next container during the animation.

Are you using this in conjunction with GSAP? Or did you decide to drop the plugin altogether?

Yes, I use this in conjunction with GSAP and did not drop the plugin. This seems to work fine (and is still a lot easier for me than setting this up with JS only). I could not get it to work with CSS and had to get something to work quickly for a presentation today, that's why I moved to GSAP. I guess CSS only would be preferable but might be too complicated in my specific setup (it is basically entire layouts that slide vertically which is specifically challenging due to the containers being taller than 100vh).

Hey @trych, do you have any demo to have a look at how you use GSAP with Parallel? :) Thanks <3

@Eric-llos Unfortunately no, nothing public and nothing that would be easy to take apart.

@trych Oops :( Thank you anyway!

@trych The latest version 0.3.0 adds a new hook content:insert. If you register a handler to run before that, you can style and add classes to your container right before it's inserted into the DOM.
swup.hooks.before('content:insert', (visit, { containers }) => {
  for (const { next } of containers) {
    console.log('About to insert container', next);
  }
});

authors: Eric-llos daun trych

repo: swup/parallel-plugin


text:
未在根目录下找到函数执行入口文件，请确认代码包入口文件名和 handler 设置是否对应或代码压缩包是否正常。

上传后提示：未在根目录下找到函数执行入口文件，请确认代码包入口文件名和 handler 设置是否对应或代码压缩包是否正常。

查询下执行方法是否为index.main_handler，下载的zip包是否有嵌套文件夹。


text:
Expose the confirm component to plugin developers

yazi --debug output
N/A

Please describe the problem you're trying to solve
The confirm component has been implemented since Yazi v0.3.1, so I think it's a good time to expose it to plugin developers.
Would you be willing to contribute this feature?

[X] Yes, I'll give it a shot

Describe the solution you'd like
Just a Lua API to show the confirm component.
Additional context
It seems like the API is marked with a TODO for a redesign. Maybe now that the component has somewhat stabilised, it may be easier to design the API for it.
Checklist

[X] I have searched the existing issues/discussions
[X] The latest nightly build doesn't already have this feature

Please try https://github.com/sxyazi/yazi/pull/2095

Awesome, thank you!
I'll add it to the documentation once I figure out how to use it.

Hmmm the confirm component doesn't appear when I use the API like this:
local confirmation = ya.confirm({
    pos = { "center", y = 2, w = 50 },
    title = "test",
    content = "test content",
})

The confirm component is still there, but there's no UI for some reason.

authors: hankertrix sxyazi

repo: sxyazi/yazi


text:
Exiting a yazi spawned shell in fish, exits yazi instead of the spawned shell.

What system are you running Yazi on?
Linux Wayland
What terminal are you running Yazi in?
foot
Yazi version
yazi 0.1.5 (dc1649f 2023-12-04)
Did you try the latest main branch to see if the problem has already been fixed?
Tried, but the problem is still present
Describe the bug
Dropping into a fish shell from within yazi using: {on=["T"],exec="shell fish --block --confirm"},, and typing exit in that shell shows: fish: Job 1, 'yazi' has stopped and does not exit the shell.
The yazi process now shows up in htop with a T as status, meaning it has been stopped by a control signal.
Typing exit again shows: There are still jobs active: 6638 yazi
Typing exit for the third time actually quits the shell, leaving the yazi process as a single orphan consuming one cpu core worth, only able to be shut down using a SIGKILL.
Typing exit in a fish shell not spawned by yazi, exits the shell instantly.
Expected Behavior
The shell should be quit, not yazi.
To Reproduce
See above.
Configuration
No response
Anything else?
No response

Opening a new terminal window running fish, chaning to bash, then running yazi from that bash shell, then dropping into a fish shell from yazi, then exiting back into the first fish shell shows the same behaviour but also gives an error message:
Backtrace (most recent call first):
  File "<unknown>", line 0, in __libc_start_main

The application panicked (crashed).
  called `Result::unwrap()` on an `Err` value: Input/output error (os error 5)
in yazi-fm/src/app/commands/stop.rs, line 32
thread: main

In the report above, an error message is never displayed.
There is also no orphan yazi process left running.

I can't reproduce it on my side, with fish 3.6.4. Could you record a video? I'd like to see your steps.
https://github.com/sxyazi/yazi/assets/17523360/cc9356cb-a194-44ad-9537-bba14a23f955

I'm trying to install fish from chaotic-aur, but I can't update the source. I'm setting it up on a fresh Arch Linux following the "How to use it" instructions from chaotic-aur:
pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com
pacman-key --lsign-key 3056513887B78AEB
pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst'
pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'

And:
#/etc/pacman.conf
[chaotic-aur]
Include = /etc/pacman.d/chaotic-mirrorlist

I want to know if there's any alternative method besides chaotic-aur to accomplish this?

I also did
pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com
pacman-key --lsign-key 3056513887B78AEB

but I only put
[chaotic-aur]
Server = https://geo-mirror.chaotic.cx/$repo/$arch

into pacman.conf.
Beyond that, it seems a lot of mirrors are down right now.
Although https://geo-mirror.chaotic.cx/$repo/$arch has always worked for me.

This issue seems to be gone using fish 6a64ba6 and yazi 93c8d90.

This issue seems to be resolved with fish 6a64ba6 and yazi 93c8d90.

authors: ThGrSoRu sxyazi


text:
jsx  + reactivity transform got error "This experimental syntax requires enabling one of the following parser plugin(s): "jsx", "flow", "typescript""

Describe the bug
Using jsx along side reactivity transform in a SFC, got this error:
ERROR in ./src/App.vue
Module Error (from ./node_modules/unplugin/dist/webpack/loaders/transform.js):
unplugin-reactivity-transform-vue2 SyntaxError: This experimental syntax requires enabling one of the following parser plugin(s): "jsx", "flow", "typescript". (14:11)

Main codes:
<script>
import Vue from 'vue'

Vue.component("my-h", {
  name: "MyH",
  props: {
    level: {
      type: Number,
      required: true
    }
  },
  render(h) {
    const Tag = `h${this.level}`
    return <Tag>{this.$slots.default}</Tag>;
  }
});

export default {
  setup () {
    const randomLevel = $ref(Math.ceil(Math.random() * 6))

    return {
      ...$$({
        randomLevel
      })
    }
  }
}
</script>

<template>
  <div>
    <my-h :level="randomLevel">I'm random</my-h>
  </div>
</template>

Dependencies version:
webpack4
vue2.7
jsx enable by @vue/babel-preset-jsx
Reproduction
https://github.com/TonyYanOnFire/jsx-reactivity-transform-error-reproduction
System Info
System:
    OS: Windows 10 10.0.17763
    CPU: (8) x64 Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz
    Memory: 4.32 GB / 15.89 GB
  Binaries:
    Node: 14.20.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\node_modules\yarn\bin\yarn.CMD
    npm: 6.14.17 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.17763.1.0)
    Internet Explorer: 11.0.17763.1

Used Package Manager
npm
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guide.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
[X] The provided reproduction is a minimal reproducible of the bug.

Fixed in unplugin-vue-macros@1.3.0

authors: TonyYanOnFire sxzz

repo: sxzz/unplugin-vue-macros


text:
Remove todo-errors

Removes the todo-errors and adds in messages that are meaningful and descriptive.

I feel like there are more new errors than there are new tests. Wasn't the point of the todo-error that we fix it when we get to it? Looks good either way.

Got sick of writing tests for single error messages - it feels like really poorly spent time

repo: sylt-lang/sylt-lang


text:
🛑 Bring Back Clean is down

In f8040a5, Bring Back Clean (https://bringbackclean.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Bring Back Clean is back up in e413182 after 16 minutes.

repo: symapex/upsite


text:
🛑 Alpha Landscaping is down

In df8dfba, Alpha Landscaping (https://alpha-landscaping.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Alpha Landscaping is back up in be3de36 after 25 minutes.


text:
🛑 Cleanasium is down

In a2a3fb3, Cleanasium (https://cleanasium.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Cleanasium is back up in 1260557.


text:
🛑 Alpha Landscaping is down

In c963338, Alpha Landscaping (https://alpha-landscaping.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Alpha Landscaping is back up in 1e436e5 after 10 minutes.


text:
🛑 Fresh Auto is down

In 8018156, Fresh Auto (https://fresh-auto.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Fresh Auto is back up in 3dc933e after 17 minutes.


text:
🛑 Boon Wood Flooring is down

In 0ce155e, Boon Wood Flooring (https://boonwoodflooring.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Boon Wood Flooring is back up in b805c05 after 10 minutes.


text:
🛑 Clean Standards is down

In 3100637, Clean Standards (https://clean-standards.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Clean Standards is back up in 02a31c9 after 48 minutes.


text:
🛑 Scrubble Carpet Cleaners is down

In 95dfbf5, Scrubble Carpet Cleaners (https://srubblecarpetcleaners.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Scrubble Carpet Cleaners is back up in 337b2f3 after 29 minutes.


text:
🛑 Pest Scout Pros is down

In 4a6b3a6, Pest Scout Pros (https://pestscoutpros.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Pest Scout Pros is back up in 635660f after 10 minutes.


text:
🛑 Tidy Helpers CA is down

In b9d8ac6, Tidy Helpers CA (https://tidyhelpersca.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Tidy Helpers CA is back up in ef3c314 after 44 minutes.