FormStateInput Form state not persisted

Describe the bug and the expected behavior
After submitting a form resulting in a server error; performing form intents when utilizing FormStateInput should persist the form state.
Conform version
v1.0.2
Steps to Reproduce the Bug or Issue

With the following setup (basic fieldList):

const addressSchema = z.object({
	// ...
})

const formSchema = z.object({
	addresses: z.array(addressSchema.optional()).nonempty(),
})

export const action = async ({ request }: ActionFunctionArgs) => {
	// ...
}

function Component() {
	const actionData = useActionData<typeof action>()

	const [form, fields] = useForm({
		defaultValue: { addresses: [{}] },
		constraint: getZodConstraint(formSchema),
		lastResult: actionData?.result,
		onValidate({ formData }) {
			return parseWithZod(formData, {
				schema: formSchema,
			})
		},
		shouldRevalidate: 'onBlur',
	})

	const addresses = fields.addresses.getFieldList()

	return (
		<FormProvider context={form.context}>
			<FormStateInput />
			<Form method="POST" {...getFormProps(form)}>
				<FieldList>
					{addresses.map((props, index) => {
						const fieldset = props.getFieldset()
						return (
							<FieldList.Item
								key={props.key}
								removeButtonProps={form.remove.getButtonProps({
									name: fields.addresses.name,
									index,
								})}
							>
								<fieldset {...getFieldsetProps(props)}>

									{/* fields... */}

									<ErrorList errors={props.errors} id={props.errorId} />
								</fieldset>
							</FieldList.Item>
						)
					})}
				</FieldList>
				<FieldList.AddItem
					addButtonProps={form.insert.getButtonProps({
						name: fields.addresses.name,
					})}
				/>

				<ErrorList errors={form.errors} id={form.errorId} />

				<Button type="submit">
					Add {addresses.length > 1 ? 'addresses' : 'address'}
				</Button >
			</Form>
		</FormProvider>
	)
}

Submit form and receive error action result, see error state

Insert / remove fieldList item

Form error state is lost

What browsers are you seeing the problem on?
No response
Screenshots or Videos
screencast-vimeo.com-2024.02.20-15_29_46.webm
Additional context
I do not think this issue is specific to v1.0.2

After reading your explaination, the current behavior make sense. The server error isn't persisted since it isn't the last validation result. The client validation wouldn't give the same error, thus, no error state.
Yeah, onBlur also results in the error state being replaced. Changing shouldRevalidate to 'onSubmit' mitigates this, but insert/remove stil causes a revalidation.
Here's two thorughts:

Is it possible to supply validated: true to insert/remove (like update) intent in order to prevent revalidation?

{...form.remove.getButtonProps({   										name: fields.addresses.name,   										index,                   validated: true   									})}

Would it make sense to have "server level errors" that wouldn't be replaced by validation, but only lastResult changing?

Or maybe I should just augment onValidate to take actionData.result into account to achieve this behavior?

Or maybe I should just augment onValidate to take actionData.result into account to achieve this behavior

Either this or keep the form errors in a local state seems to me the only solution for now.
const [formErrors, setFormErrors] = useState<string[] | null>(null);
const [form, fields] = useForm({
    lastResult,
    shouldRevalidate: 'onInput',
    onValidate({ formData }) {
        return parseFormData(formData);
    },
    onSubmit() {
        setFormErrors([]);

    }
});

useEffect(() => {
    setFormErrors(form.errors);
}, [form.errors]);

// ...

I was trying to put up another example utilizing the async validation mechanism to persist the error but I notice another issue that's make it hard to do with form error 😅

Or maybe I should just augment onValidate to take actionData.result into account to achieve this behavior

Either this or keep the form errors in a local state seems to me the only solution for now.
const [form, fields] = useForm({
    lastResult,
    shouldRevalidate: 'onInput',
    onValidate({ formData }) {
        return parseWithZod(formData, { schema });
    },
    onSubmit() {
        setFormErrors(undefined);
    },
});
const [formErrors, setFormErrors] = useState<string[] | undefined>(
    form.errors,
);

useEffect(() => {
    if (typeof form.errors !== 'undefined') {
        setFormErrors(form.errors);
    }
}, [form.errors]);

// ...

I was trying to put up another example utilizing the async validation mechanism to persist the error but I notice another issue that's make it hard to do with form error 😅

Conform will revalidate on blur only if there was any changes made before (i.e. an input event was triggered) to minimize the chance server error get cleared simply because of moving focus out of the inputs with v1.1.0-pre.0


Allow to change between Wired and Wireless modes (KEF LSX & KEF Wireless II)

KEF LSX and KEF Wireless II support both wired and wireless mode between the two speakers.
Just plugging/unplugging the cable won't automatically make it switch from wireless/wired mode. We have to use the KEF Control app, go into Settings, Preferences, and then tick/unitck the wired mode option.
It would be nice if this option is added to kefctl.

I've got the KEF LSX. I will try to get familiar with the kefctl code and sniff some packets, maybe I can implement this myself and submit a pull request, but I can't promise it!


feat(ci): build thin-edge.io for additional targets

Proposed changes

:information_source: Preface: Building the packages does not mean that they are official supported, however it is the first step towards official support. By building the packages, it allows users to test new targets without having to build it themselves.
Feature: Build thin-edge.io for additional targets
The following targets have been added to the build workflow:

arm-unknown-linux-musleabi
i686-unknown-linux-musl
riscv64gc-unknown-linux-gnu
aarch64-apple-darwin
x86_64-apple-darwin
armv5te-unknown-linux-musleabi (though it is only built, it is not published to cloudsmith due to overlap of the armel type in debian)

To make this possible the following changes were made:

use clang to build the targets (the build scripted used in brainsmith/ring were used which does the heavy lifting to set the correct AR/Linker flags for cross compilation on linux)
Usage of rust-cache has been removed as build times are sub 5 mins, so the benefit of using cache is reduced
minor fixes to some test cases which were failing on some of the different targets (detected during development)

Notes:

developers can still build locally using cargo-zigbuild, however official builds will use clang
No just tasks were added to build clang versions locally, this may be added in the future. In the meantime the build-workflow documents the steps required to be run locally on a linux OS

Types of changes

[ ] Bugfix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Improvement (general improvements like code refactoring that doesn't explicitly fix a bug or add any new functionality)
[ ] Documentation Update (if none of the other choices apply)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Paste Link to the issue
https://github.com/thin-edge/thin-edge.io/issues/2782
Checklist

[x] I have read the CONTRIBUTING doc
[x] I have signed the CLA (in all commits with git commit -s)
[x] I ran cargo fmt as mentioned in CODING_GUIDELINES
[x] I used cargo clippy as mentioned in CODING_GUIDELINES
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)

Further comments

An mk/README.md file is missing. Telling that:

These files are taken from https://github.com/briansmith/ring/tree/main/mk
That the copyright notice must be kept
What has been added / changed.

Resolved by 022103ca6c31c2db6d0a29d335df74aef23315eb. I also improved the diffs somewhat to make it it easier to merge new updates.


StreamReader.readuntil() weirdness

Based on my understanding of StreamReader.readuntil(), the following asserts should be true for the code below (reader is a StreamReader object associated to a stream):
found_header_sentinel = False

while not found_header_sentinel:
    try:
        trailing = (yield from reader.readuntil(b'\x02'))[-1:1]
        assert len(trailing) == 1
        assert trailing == b'\x02'
        found_header_sentinel = True
    except asyncio.IncompleteReadError:
        print('incomplete read error')
        exit()

Unless an asyncio.IncompleteReadError (or maybe asyncio.LimitOverrunError) exception is thrown, trailing should always be b'\x02'.  However, under moderate load this is occasionally not the case, and the connection itself is fine (in fact looping until this is the case works out, but that makes me nervous that some requests may be dropped).   In the cases where trailing is not b'\x02', trailing is always b'' (which was odd to me until I observed that b''[-1:1] == b'' (is that a language issue in and of itself?  b[-1] rightly raises IndexError.)).
Is this intentional and therefore a documentation error, or is this a bug in asyncio?

theory: other peer calls shutdown(2) on it's socket, but python fails to throw asyncio.IncompleteReadError.

Yes, asyncio is mimicking the behaviour of socket.recv() on EOF (no data on the pipe, connection closed already), but in this context IMO it should really raise that exception with partial being set to b''.

cc @socketpair

I'm author of readuntil() code and I'm sure that it works right. Can you provide minimal code that reproduce  this bug ? I mean bug appearing only at moderate load.
This code will never pass assertions, since:

In [3]: qwe='asd'
In [4]: qwe[-1:1]
Out[4]: ''
In [5]: qwe[-1:]
Out[5]: 'd'

@socketpair thanks for pointing out my mistake, i apologize for the noise.  we are testing the [-1:] change now and that should resolve it.


double fatNav

Hey there :) is it possible to have 2 fatNav menus on one page?

I can't see why this wouldn't be possible, I would use two different ID's for each menu container and duplicate the JS triggers to act on seperate panels.


Gradle Build Failed Could not find com.github.yalantis:ucrop:2.2.7.

Describe the bug
Execution failed for task ':app:checkDebugAarMetadata'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could not find com.github.yalantis:ucrop:2.2.7.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/github/yalantis/ucrop/2.2.7/ucrop-2.2.7.pom
- https://repo.maven.apache.org/maven2/com/github/yalantis/ucrop/2.2.7/ucrop-2.2.7.pom
- https://jcenter.bintray.com/com/github/yalantis/ucrop/2.2.7/ucrop-2.2.7.pom
Required by:
project :app > com.github.Drjacky:ImagePicker:2.1.15

To Reproduce
Steps to reproduce the behavior:

Go to 'Gradle build Sync the App and Run '
See error

Expected behavior
No Error
Desktop (please complete the following information):

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

Smartphone (please complete the following information):

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

Additional context
Language : Java
Android Studio : Artic Fox
Gradle : 8.0.2
Min SDK : 28

https://github.com/Drjacky/ImagePicker/issues/47


Support for map type

Mind posting a bit more information on what you are looking for / trying to do?

Sorry, that was a little vague.
The issue was created around the need to offer a mapping between two values (i.e string -> int), as a first class citizen in the apidoc types.  Upon giving this a bit more thought, the json object type is capable of fulfilling this need, albeit while sacrificing type safety.

I'm curious if you've tried to define the type using "map[integer]" - we do have a constraint that the keys must be strings, but you can define a map where the values are any known type. Do you want to give that a try? or if you have and it's not ideal / insufficient - would love to know the details.
going to close this for now - but re-open if there's something you' d like to see in apidoc
thanks!

That's exactly what I was looking for -  I would recommend updating the types documentation (http://www.apidoc.me/doc/types) perhaps to include the listing of map. Thanks!

Thanks! FYI  - for future it is documented here:
http://www.apidoc.me/doc/apiJson

type specifies the type of this field. Acceptable values include the
name of either an enum, a model, or a (primitive type
http://www.apidoc.me/doc/types). To specify a List, the type name can
be wrapped with "[]". For example, to specify that the type is a collection
of strings, use "[string]". To specify a Map, the type name can be prefixed
with "map[type]". For example, to specify that the type is a collection of
longs, use "map[long]". Note that for map, the keys must be strings (per
the JSON specification).

On Thu, May 28, 2015 at 1:02 PM, Christopher Poenaru <
<EMAIL_ADDRESS>wrote:

That's exactly what I was looking for - I would recommend updating the
types documentation (http://www.apidoc.me/doc/types) perhaps to include
the listing of map. Thanks!
—
Reply to this email directly or view it on GitHub
https://github.com/gilt/apidoc/issues/340#issuecomment-106490698.


User name overflowing navigation menu

Background:
https://trello.com/c/efvDD3b4/408-user-name-overflowing-navigation-menu
Solution:
The bottom section is now responsible, so it can accommodate for different screen sizes. Also, the user name spans over multiple lines, if needed.

 User name overflowing navigation menu


Update vuforia-development-overview.md

Please publish this update as soon as possible. Thank you.

Docs Build status updates of commit 78382f0:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/vuforia-development-overview.md
:white_check_mark:Succeeded
View

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

Please have these changes go live tomorrow, Dec 11th.


The soft-deleted blob doesn't show its full name under the 'Deleted only' context view against the split ADLS Gen2 explorer

Storage Explorer Version: 1.24.0-dev
Build Number: 20220407.3
Branch: main
Platform/OS: Windows 10/Linux Ubuntu 20.04/MacOS Monterey 12.3 (Apple M1 Pro)
Architecture ia32\x64
How Found: From running test cases
Regression From: Previous release (1.23.0)
Steps to Reproduce

Expand one ADLS Gen2 storage account -> Blob Containers.
Create a blob container -> Create a new folder -> Upload one blob to the folder.
Soft delete the blob -> Switch to the 'Deleted only' context view -> Split the tab.
Observe the split tab -> Check whether the soft-deleted blob shows its full name.

Expected Experience
The soft-deleted blob shows its full name.

Actual Experience
The soft-deleted blob does not show its full name.

Verified this issue on the build main/20220414.17. Fixed.


Add back logout

Introduced in #4414

Resolved in https://github.com/cdr/vscode/commit/8157ad6f99222ccd092bcc27ae7c490aabed99fc


Include getDerivedStateFromProps at GenericTabs Container

Release Type: bug fix
Fixes https://x-team-internal.atlassian.net/browse/XP-2861
Description
The GenericTabs Container wasn't automatically re-rendering when defaultActiveKey prop was changed given that the component holds a local state with the activeTab value.
Checklist

[x] set yourself as an assignee
[x] set appropriate labels for a PR (In Review or In Progress depending on its status)
[x] move respective JIRA issue to the IN REVIEW column
[x] make sure your code lints (npm run lint)
[x] Flow typechecks passed (npm run flow)
[x] Snapshots tests passed (npm run jest)
[x] component's documentation (.stories.js file) is changed or added accordingly to reflect any new or updated use cases or variants usage
[x] if you've fixed a bug, make sure to also include a new story that will expose declarations with problematic data that caused the bug in the first place, so that we can assure that no regressions will pop up on future interactions
[x] if any snapshots have been changed, verify that component still works and looks as expected and update the changed snapshot
[x] manually tested the app by running it in several different browsers (Firefox, Chrome, Opera, Safari, MS IE/Edge, etc.) and checked nothing is broken and operates as expected!

Related PRs

branch
PR

XP-2861-refresh-tabs-when-going-back-on-page-history
Auto

Steps to Test or Reproduce
XP app

run the applicantion
go to http://localhost:8000/admin/search/advanced
switch from list and all applicants tabs
use browser's history buttons back and forward
observe that the active tab updates accordingly

Storybook

run npm start
go to http://localhost:9001/?selectedKind=UI Components%2FGenericTabs%2FDebug&selectedStory=update activeTab from defaultActiveKey prop
click on switch tabs and observe the behavior is correct (more info on Storybook Notes section)

Impacted Areas in Application

GenericTabs/Container.js

Screenshots
XP app

Storybook

@bernardodiasc Once Kamil's notes are addressed, I'll give it a final check as we'll need to include it to the release.

@nicksp @KamWis this PR is ready to be reviewed again, please make sure to grab the Auto changes in order to test the fix in the application. Thanks!

@nicksp too easy to be true, key prop fixed the issue. The actual fix is in the PR https://github.com/x-team/auto/pull/1830, in this PR now contain only the new story.

@bernardodiasc That's is fantastic news, smth I expected! Next time when you feel smth look suspicious or code smell, ask yourself: is there a better more suitable way to fix that? How can I use that? 99.99% of the time there's a better and cleaner way to achieve smth 😄
Good work!


Unexpected logs in InteractiveChatController unit tests

  InteractiveChatController
    + creation, not showing anything (99ms)
    + run (show/hide)
    + wholeRange expands to whole lines, editor selection default
    + wholeRange expands to whole lines, session provided
    + typing outside of wholeRange finishes session
[15408:0907/082334.788:INFO:CONSOLE(56)] "Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'createDiffProvider')", source: file:///C:/Github/microsoft/vscode/out/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js (56)
    + 'whole range' isn't updated for edits outside whole range #4346
[15408:0907/082334.816:INFO:CONSOLE(265)] "Uncaught (in promise) Error: Model is disposed!", source: file:///C:/Github/microsoft/vscode/out/vs/editor/common/model/textModel.js (265)
    + Stuck inline chat widget #211

Similar with a bit more info in https://github.com/microsoft/vscode/issues/192446

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.
Happy Coding!


Add package tests within CI

Implementation is here:

https://github.com/vyahello/pytest-emoji-output/releases/tag/0.1.7
https://github.com/vyahello/pytest-emoji-output/releases/tag/0.1.6

Close the issue as per comment above


two cron expression all run on 2017-10-18, i think it's a bug

two cron expression all run on 2017-10-18, i think it's a bug
[/10 * * 1-29 10 1-5],[/10 * * 30,31 10 1-5]
test code:
cronTask.AddFunc("/10 * * 1-29 10 1-5", func() {
fmt.Println("run:" + "/10 * * 1-29 10 1-5")
})
cronTask.AddFunc("/10 * * 30,31 10 1-5", func() {
fmt.Println("run:" + "/10 * * 30,31 10 1-5")
})
the code in spec.go  line149
func dayMatches return true on domMatch || dowMatch, but, this expression "*/10 * * 30,31 10 1-5" should return false.

It's not a bug,
because

author definition day-of-week and day-of-month use "or" semantic not "and" semantic when two field doesn't "*" or "?"
author definition day-of-week and day-of-month use "and" semantic not "or" semantic when two field anyone use "*" or "?"

Why see below code
parse.go files
func getRange(expr string, r bounds) (uint64, error) {
	var (
		start, end, step uint
		rangeAndStep     = strings.Split(expr, "/")
		lowAndHigh       = strings.Split(rangeAndStep[0], "-")
		singleDigit      = len(lowAndHigh) == 1
		err              error
	)

	var extra uint64
	if lowAndHigh[0] == "*" || lowAndHigh[0] == "?" {
		start = r.min
		end = r.max
		extra = starBit

when day-of-week or day-of-month any one is "*" or "?"  lead to
func dayMatches(s *SpecSchedule, t time.Time) bool {
	var (
		domMatch bool = 1<<uint(t.Day())&s.Dom > 0
		dowMatch bool = 1<<uint(t.Weekday())&s.Dow > 0
	)
	if s.Dom&starBit > 0 || s.Dow&starBit > 0 {
		return domMatch && dowMatch
	}
	return domMatch || dowMatch
}

if s.Dom&starBit > 0 || s.Dow&starBit > 0 is true
when day-of-week or day-of-month any one is other  lead to
return domMatch || dowMatch  is true

hqy, thank you for quickly answer.
I want to write two cron expression, Daylight saving time and standard time change-over.
the first: do some things at 15:00 during working days between 2017/10/1 and 2017/10/29
the second: do some things at 16:00 during working days between 2017/10/30 and 2017/10/31
It looks like it's a little difficult.


Using in electron with webpack

Thanks for this awesome module. I am trying to use this in electron.
When I try to though I get this error:

I am using from the "main" process, not a "renderer", I normally can use fs from here without a problem.

Oh in my webpack.config.js file i had this:
        plugins: [
            new webpack.IgnorePlugin(new RegExp("^(fs|ipc)$"))
        ],

I removed the fs| part so it is now this:
        plugins: [
            new webpack.IgnorePlugin(new RegExp("^(ipc)$"))
        ],

and it worked.


Generating a signed apk gives me WhiteScreen

If i follow the instructions on the React Native Site Generate Signed APK my apk file which i have generated won´t work. I have followed exactly all the instructions but as soon as i install the apk on my device or emulator it shows me a white screen...
Did somebody experience the same issue? I am running on RN 0.14.2

Hi, @BigPun86. Did you run this commands before assembeRelease?
$ mkdir -p android/app/src/main/assets

$ react-native bundle --platform android --dev false --entry-file index.android.js \
  --bundle-output android/app/src/main/assets/index.android.bundle \
  --assets-dest android/app/src/main/res/

I ask you because I always forget :smile:

Yes i did. But i mostly forget that too 😀 now it works After i downgraden to 0.13
Gesendet mit TypeMail
Am 11. Nov. 2015 20:37, um 20:37, Felipe Bueno<EMAIL_ADDRESS>schrieb:

Hi, @BigPun86. Did you run this commands before assembeRelease?
$ mkdir -p android/app/src/main/assets

$ react-native bundle --platform android --dev false --entry-file
index.android.js \
 --bundle-output android/app/src/main/assets/index.android.bundle \
 --assets-dest android/app/src/main/res/

I ask you because I always forget :smile:

Reply to this email directly or view it on GitHub:
https://github.com/facebook/react-native/issues/4051#issuecomment-155888286

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/generating-a-signed-apk-gives-me-whitescreen
ProductPains helps the community prioritize the most important issues thanks to its voting feature.
It is easy to use - just login with GitHub.
Also, if this issue is a bug, please consider sending a PR with a fix.
We're a small team and rely on the community for bug fixes of issues that don't affect fb apps.

@felipebueno this solution is good but it not solved to me.
I running this code as development and works fine! but as production I continue seen white screen event with a <ActiveIndicator /> component loading before async call from axios and external API.

i also have this error please help me!


Help implement something

We're going to be running builds for every locale and I want to run them in parallel. But eventually there will be too many to run in parallel and we should throttle how many we have.
We're going to use concurrently to run things in parallel and this could be simplified if we implement this: https://github.com/kimmobrunfeldt/concurrently/issues/96
Anyone wanna work on that? Should be kinda fun :) Especially if you've been wanting to learn RxJS :)

I've been using RxJS in angular not sure if my skills will suffice. 🤔

here's a hint, there's more to it than this, but it should provide enough pointers.
the following will only ever run a maximum of 2 processes at any one time.
const Rx = require('rxjs');
const {exec} = require('child_process');

function getProcesses(processes) {
    return processes.map(command => {
        return Rx.Observable.create(observer => {
            exec(command, (error, stdout, stderr) => {
                if (error) {
                    observer.error(error);
                    return;
                }
                console.log(`stdout: ${stdout}`);
                console.log(`stderr: ${stderr}`);
                observer.complete();
            });
        });
    });
}

const processes = getProcesses(["cm1", "cm2", "cm3"])
    .mergeAll(2)
    .subscribe(x => {
        console.log('maximum concurrency of 2')
    });

@shakyShane awesome :sunglasses:
I might have time this Sunday to work on this but can't promise so feel free take it :smile:

How do I get started? 😀

I recommend going to the issue: https://github.com/kimmobrunfeldt/concurrently/issues/96
And mention you want to help out. Then follow the contributing guidelines. this could help especially if you're new to OSS :)
Good luck! And thank you!

side note: I love and recommend paul betts'a spawn-rx for doing child procs with Rx in node

For now, I think we can just do fancy stuff in the package-scripts.js, but would really love it if someone were to implement this so we don't have to do that.

Ok, so I switched from parallel to series on the build script and that'll fix the build breaking, but I'd love to get this implemented so we could get things running in parallel again. Our build runs pretty slow now...

Have you considered using CircleCI workflows to build in parallel?

I suppose we could try that. I've used CircleCI before... Maybe I should try it again...


add include_dir constructor for yaml parsing

Description:
When breaking up your config to multiple files you end up with a bunch of includes. This will allow you to include a whole dir which will get parsed out to include all *.yaml files
Before:
configuration.yaml
script: !include scripts.yaml
automation: !include automation.yaml

scripts.yaml
script1: !include scripts/script1.yaml
script2: !include scripts/script2.yaml
script3: !include scripts/script3.yaml

automation.yaml
- !include automation/auto1.yaml
- !include automation/auto2.yaml
- !include automation/auto3.yaml

After:
configuration.yaml
script: !include_named_dir scripts
automation: !include_list_dir automation

Related issue (if applicable): #
Example entry for configuration.yaml (if applicable):

Checklist:
If code communicates with devices:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] New dependencies have been added to the REQUIREMENTS variable (example).
[ ] New dependencies are only imported inside functions that use them (example).
[ ] New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[ ] New files were added to .coveragerc.

If the code does not interact with devices:

[ ] Local tests with tox run successfully. Your PR cannot be merged unless tests pass
[ ] Tests have been added to verify that the new code works.

I like it 👍  🐬

I love it!!!  Yes please!


OS restarting app causes detection CSV to lose data

An Android OS may validly restart the Herald demo app at any time. In our efficacy testing we overwrite the detection log CSV file on each restart. This causes all past payloads to be 'lost' as far as our analysis scripts go, making the final analysis results look worse then they actually were (unless the final run of the app happened to capture all the same payloads since restart).
Instead, append an extra row on restart and make it the analysis scripts' job to determine whether to look at the most recent line only, or all lines that overlap with the test time period.
2021-08-14 02:12:59,debug,Sensor,Data.DetectionLog,didRead (payload=GdUQbA)
2021-08-14 02:12:59,debug,Sensor,Data.DetectionLog,write (content=CPH1920,Android,27,GdUQbA,4aebow,6jr6Ug,X0LSeQ,nkQRHw,z8HARg,zy+wVA)
...
2021-08-14 16:20:16,debug,Sensor,SensorArray,init
2021-08-14 16:20:16,debug,Sensor,BLE.ConcreteBLETransmitter,"didUpdateState (state=poweredOn,transmitterEnabled=false)"
2021-08-14 16:20:16,info,Sensor,SensorArray,"DEVICE (payload=GdUQbA,description=CPH1920 (Android 27))"
2021-08-14 16:20:16,debug,Sensor,Data.DetectionLog,write (content=CPH1920,Android,27,GdUQbA)
2021-08-14 16:20:16,debug,Sensor,BatteryLog,"update (powerSource=external,batteryLevel=88.0)"
2021-08-14 16:20:17,debug,Sensor,SensorArray,start

Closed by #224


Drop usage of ManageError and ManageSuccess functions

ManageError(...) and ManageSuccess(...) from https://github.com/redhat-cop/operator-utils have functionality to manage the status of the custom resource after each reconcile, either for success or for error situations. We are not currently using this functionality as the status of marin3r custom resources does not support this.
Furthermore, ManageError is causing some spurious panics in reconcile loops when the custom resource cannot be retrieved for some reason. A first look into ManageError seems to point to the problem being that ManageError only restrains itslef from trying to access the fields in the custom resource if the api call returned a "not found" error. The panic occurs when a different api/client error is returned and then the function tries to access the struct, which just holds a nil value. The statement that ends up causing the panic is https://github.com/redhat-cop/operator-utils/blob/eca9bb2b140c4a08a13a5c570d5cdbcaa15a48b3/pkg/util/lockedresourcecontroller/resource-reconciler.go#L233

/kind bug
/priority important-longterm

/size xs

/ok-to-test

/lgtm

/approve


IRGen: getSingletonAggregateFieldType must not return field if its ac…

…cess level does not match
rdar://50554717

@swift-ci Please test

Build failed
Swift Test Linux Platform
Git Sha - 12b27a1332b852480a529bf6bb5b00d3353df504

Build failed
Swift Test OS X Platform
Git Sha - 12b27a1332b852480a529bf6bb5b00d3353df504

@swift-ci Please test

Build failed
Swift Test Linux Platform
Git Sha - 12b27a1332b852480a529bf6bb5b00d3353df504

Build failed
Swift Test OS X Platform
Git Sha - 12b27a1332b852480a529bf6bb5b00d3353df504

Nice catch!


Gitea setup using HTTPS

To force Gitea to use HTTPS I had to use Google as such an item I did not see in the documentation, it can be there and you will tell me where it is, and so I think it needs to be created

Hi @Mauladen,
This feature was added in #3262, the two config options you'll need are REDIRECT_OTHER_PORT and PORT_TO_REDIRECT. You can read more about the options here: https://docs.gitea.io/en-us/config-cheat-sheet/
I'll leave this issue open for the next bit of time in case you need any additional help.
Thanks,
@techknowlogick

@techknowlogick
https://github.com/go-gitea/gitea/issues/968
https://github.com/gogs/gogs/issues/235
I made as here

Ah I'm sorry I mis-understood the question. I thought you already had HTTPS and were trying to have the redirect happen.
If you want Gitea to run HTTPS without a reverse proxy (nginx, apache, caddy, etc..), you will need a certificate, and a private key. Gitea can generate self-signed versions of these files with a command line call gitea cert -host=myhost.example.com, this will output to cert.pem and key.pem in the current directory and will overwrite any existing files.
Next in your configuration you'll need to add a path to the files in your configuration
[server]
CERT_FILE = path/to/cert.pem
KEY_FILE = path/to/key.pem

Yes, I did, but that's not the point, you need to add it to the documentation

@Mauladen feel free to submit PR for docs, we really need help on that

I had the same question, have not tried again yet though


jobs: Add a column for end time/duration

It looks like this

I'm still waiting for suggestions to make this job list prettier, maybe the docker build list (but we don't see the duration)?

The docker build list for exmple only has a start time and a duration.
out of a start_time, end_time and duration, you only really need 2. The other can be infered with the other.
Personnally, I think the duration is the field that people are probably most interested in

And that might be a problem too if the task has spent time in a pending state... this PR gives a duration from last updated_at to created_at, but we don't have a started_at field...

But adding a started_at is a bit more involving than this quick one...

So the current displayed duration might be a lie?
I was under the impression that this PR looked too easy for what it was...

#815 needs to be fixed first so we can calculate the actual duration of the job execution and not just it's life

Actually, I can just put the end time in this PR for now, without fixing either #813 or #815. it gives an information to the user, without lying about anything. Would that be all right? @greenscientist ?

Yes, that would work well for the moment and give a good enough insight to the user

Only the end time is present now


Guess card type with partial number (eager type detection)

Detect card type faster for the purposes of user feedback. Examples of this feature can be seen here: http://tamas.io/custom-angularjs-filter-to-determine-credit-card-type/
And a demo of functionality:https://gumroad.com/l/demo
Press the "I want this" button and start typing cc number into the supplied field and note the icon highlight based on cc type

https://github.com/bendrucker/creditcards/issues/4 will create the underlying method needed to do this. Just need to decide what the API will look like. Options would include generating a separate property, e.g. $ccEagerType or allowing an attribute to switch type checking to eager-mode (e.g. <input cc-number cc-eager-type ng-model="card.number" />). I'm leaning strongly towards the former.

I think the former works well

Went with a blend of both. You have to opt into this by adding the cc-eager-type attribute. But it uses a new property so strict typing works the same way it currently does.

Hi Ben,
Thanks so much for introducing this I really appreciate it. Had a look at
the changelog I like your implementation.
Thanks,
Tom
On 19 February 2015 at 11:48, Ben Drucker<EMAIL_ADDRESS>wrote:

Went with a blend of both. You have to opt into this by adding the
cc-eager-type attribute. But it uses a new property so strict typing
works the same way it currently does.
—
Reply to this email directly or view it on GitHub
https://github.com/bendrucker/angular-credit-cards/issues/16#issuecomment-74980437
.

--
Tom Fulcher
Creative Designer and Developer
[image: Envoy]
Envoy Advanced Technologies Pty Ltd
Level 1, 194 Miller St, North Sydney NSW 2060
Mobile Apps | Software Development | Custom Applications | Fully Managed
Hosting
http://www.envoyat.com | m: 0403 316 714 | p: +61 2 8097 7328 | skype:
thomen12

This email and any attachment is only intended for the use of the
individuals or entities to whom it is addressed and may contain
confidential, privileged information. If the reader of this information is
not the addressee, please be advised that any dissemination, distribution
or copying of this email is strictly prohibited. If you receive this
communication in error, please return this email to Envoy Advanced
Technologies at the above email address and delete it from your files.
Thank you.


core: take into account gasConsumed during tx witnesses verification

We should pay attention to the previously consumed gas during tx
witnesses verification.

Worth a separate test in TestVerifyTx (e.g. 2 signers, NetFee is enough to verify 1, but not 2).


Miner going offline

I have this problem with Nebra Indoor Hotspot Gen 1 it will just go offline and not show on my router  till I reboot then it might stay online for a day or so and do the same problem. Diagnostics Information all ok.
Firmware Version | 2<IP_ADDRESS> (1a2e85b)

Any support issues relating to any Hotspot, you will need to open an issue here - https://support.nebra.com/support/home/


adobe-creative-cloud-cleaner-tool.rb: updated vendor comment

Merged as 8e1913956a863d358abef3e47b646356a91edcfe.


⚠ Bofrost.at has degraded performance

In 78fe0c5, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 953 ms

Resolved: Bofrost.at performance has improved in 1227439 after 6 minutes.


Update the release process with odh-manifest step

Updating the release process to reflect the following:

The quay step was no longer needed as we have CI/CD setup to do that effort now
We needed steps to properly associate the Dashboard with the release tied to the ODH Operator

@LaVLaS can you review the steps to make sure I understood our conversation from earlier today about how we release the Dashboard and associate it with the ODH Operator releases.

Might want to wait for https://github.com/opendatahub-io/odh-manifests/pull/723 to merge first -- then update the steps to update the versions table.
/hold

/lgtm

We'll wait on the manifest PR merging and then I can merge this so it's not confusing if we release in between.


Added try catch block around GetIdentityId during sync.

Fixed an issue in PR https://github.com/aws/aws-sdk-net/pull/408 by @pfleeter that would cause build to fail on BCL45 and PCL.

Thanks for the pull request but this is a duplicate of https://github.com/aws/aws-sdk-net/pull/408 which was merged and released in version <IP_ADDRESS> of AWSSDK.CognitoSync


cmake: add CMake configure dependency to board.yml

Fixes: #69840
Add CMake configure dependency on the board's board.yml file. This dependency ensures that CMake will re-run and pickup any changes to the current board's board.yml file.

Also needs a watch on soc.yml

done

Rebase needed


convert tsfeatures lib to nbdev framework

This pr uses the nbdev framework to build the tsfeatures lib.
All old files are copied 1-on-1, eager to get some feedback on this

Hey @jope35, thanks for the initiative, we support this. Just some requests before we review this more thoroughly:

Please restore the files under the .github folder.
Please restore the .gitignore, LICENSE and setup.py files.
Please remove the pre-commit-config.yaml and .ruff.toml. These can be added in a later PR so that we can focus on those changes specifically.
Please restore and move the compare_with_r.py file to a scripts folder or similar.

Some more requests:

Please update the settings.ini file with the current settings in setup.py, e.g. version should be 0.4.5. For the author and other stuff you can refer to this file.
Please update the setup.py file. I believe you can copy this one

Thanks for the updates. Can you please merge tsfeatures_core.ipynb with features.ipynb? They both should be the same notebook that exports the tsfeatures module.

Merge tsfeatures_core.ipynb with features.ipynb, the result is exported to tsfeatures.


Add and se bootstrap overwrite flag to true

With Persistent data stores, a deploy again will error out spiceDB, we need to set the overwrite flag to "true"

PR Template:
Describe your changes

...

Ticket reference (if applicable)
Fixes #
Checklist

[ ] Are the agreed upon acceptance criteria fulfilled?

[ ] Was the 4-eye-principle applied? (async PR review, pairing, ensembling)

[ ] Do your changes have passing automated tests and sufficient observability?

[ ] Are the work steps you introduced repeatable by others, either through automation or documentation?

[ ] If automation is possible but not done due to other constraints, a ticket to the tech debt sprint is added
[ ] An SOP (Standard Operating Procedure) was created

[ ] The Changes were automatically built, tested, and  - if needed, behind a feature flag - deployed to our production environment. (Please check this when the new deployment is done and you could verify it.)

[ ] Are the agreed upon coding/architectural practices applied?

[ ] Are security needs fullfilled? (e.g. no internal URL)

[ ] Is the corresponding Ticket in the right state? (should be on "review" now, put to done when this change made it to production)

[ ] For changes to the public API / code dependencies: Was the whole team (or a sufficient amount of ppl) able to review?

Merging this - as the buf-push jobs has no relevance to this change


change default id base to string

When building a protobuf Id type from a qrlew Id type, by default we a int64 base is used (the qrlew Id type doesn't have a base). The aim of this MR is to change the default id base type from int64 to string to solve this issue in sarus.
To have this fix integrated as quickly as possible in production we need to:

create a release of the qrlew-sarus==0.6.1 with this fix
create a new release of pyqrlew (0.6.1 as well) with qrlew-sarus==0.6.1 as dependency. Notice that pyqrlew 0.6.0 is an old version but is the last one compatible with sarus-data-spec.
then, we could merge to main such the this change is as well included in the latest version.

For a better integration we could add a base for Id type in qrlew, such that the protobuf is created with the same base.
Leaving this MR in draft until qrlew-sarus==0.6.1 is created from this branch. Then I will merge main in this branch and remove the draft for the change to be merged in main.

I think we should add some settings in the Dataset object to specify the default behavior (Id Int -> Int64, etc.)

Actually in qrlew the Id type can only be string. Maybe we could support an Int Id as well


Connection Timing Out Regularly

I have now for a while tried to battle the timeouts on the bot.
BOT now idle, waiting for requests.
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/home/ts3bot/.local/lib/python3.6/site-packages/ts3/query.py", line 528, in recv
    b"\n\r", timeout=poll_intervall)
  File "/usr/lib/python3.6/telnetlib.py", line 327, in read_until
    return self.read_very_lazy()
  File "/usr/lib/python3.6/telnetlib.py", line 403, in read_very_lazy
    raise EOFError('telnet connection closed')
EOFError: telnet connection closed

which unfortunately has this follow-up exception that prevents self-healing:
It appears the BOT has lost connection to teamspeak. Trying to restart connection in 30 seconds....
Connecting to Teamspeak server...
Loaded User Database...
BOT loaded into server (377) as botgart (33). Nickname 'Botgart'
Traceback (most recent call last):
  File "TS3Bot.py", line 378, in <module>
    ts3conn.clientupdate(client_nickname=BOT.nickname)
  File "/home/ts3bot/.local/lib/python3.6/site-packages/ts3/commands.py", line 1583, in clientupdate
    return self._return_proxy("clientupdate", cparams, uparams, options)
  File "/home/ts3bot/.local/lib/python3.6/site-packages/ts3/query.py", line 655, in _return_proxy
    self, command, common_parameters, unique_parameters, options)
  File "/home/ts3bot/.local/lib/python3.6/site-packages/ts3/query.py", line 632, in send
    return self.wait_for_resp(query_id, timeout)
  File "/home/ts3bot/.local/lib/python3.6/site-packages/ts3/query.py", line 461, in wait_for_resp
    raise TS3QueryError(resp)
ts3.query.TS3QueryError: error id 513: nickname is already in use

It happens with:

Local bot to localhost TS-Server
Local bot to remote TS-Server
Bot on remote server to another remote TS-Server

I have already tried changing the keepalive value in https://github.com/metalfiiish/ts-gw2-verifyBot/blob/master/TS3Bot.py#L364 to no avail.
I realise that this seems to be a problem with the underlying library, but I just wanted to check if there is perhaps a known solution to this.

Note: I have also tried removing the version requirement from the ts3 package. The error remains with the latest version ts3==1.0.11.

Awesome details here. Reading what you have so far it almost sounds like the Bot tries to rejoin but is seeing its old session still timing out. Will try to check into it.

I have poked around a little more and several users seem to have/ had problems with the used ts3 library, which seem to have gone away randomly. One user reports using ts3 v2 resolves his issues (https://github.com/benediktschmitt/py-ts3/issues/77#issuecomment-465211642).
The interface has changed quite a bit between version, but I will attempt to do a quick port to the new version and see if that resolves the timeouts.

Good news is, with https://github.com/benediktschmitt/py-ts3/tree/v2 the bot doesn't seem to die. Bad news is, of course, since I had to touch basically every part of the bot, I have to do a whole lot of retesting. I will try to get that done asap and push the changes to my fork which I can pr to the main repository if you want.


Added code for group_by

Code for #30

@Gotham13121997 please have a look.

I have added a few comments please check @farziengineer


Add wrapper for C's readline library

Add a standalone package that works on Linux, macOS, and Windows that wraps the C readline library. Ideally, it'll have more or less the same interface as the existing rline package, and would ideally be configurable by tags at build time.

After I looked into this further, this seems to be much easier than I had originally thought. Just giving a heads up that I'm already working on this, and will probably have it done in the next few days. Only mentioning it in the very off chance that someone saw this issue and had decided to take it up.

After I looked into this further, this seems to be much easier than I had originally thought. Just giving a heads up that I'm already working on this, and will probably have it done in the next few days. Only mentioning it in the very off chance that someone saw this issue and had decided to take it up.

I wrote a wrapper around readline, replxx and editline, and have the ability to build each using an appropriate build tag, it leads to some undesirable issues that are preventing me (in a philosophical sense, not a technical sense) from merging it to usql. For any other ambitious developers out there who are interested in working on this, let me summarize the issues:

readline and editline do not seem to have any clear or easy way to do syntax highlighting
editline would not have inputrc support
replxx does have syntax highlighting, tab completion, and other aspects, however it only allows a limited set of colors. As such, the chroma based highlighting would no longer be possible. It would be possible to try to match a chroma theme's styles to the colors that replxx supports, but this would of course be limited or a half-measure at best as the colors would be "clamped" to only those provided by the replxx library.  replxx would also not have inputrc support. Overhauling the replxx package would be difficult, and no guarantee it'd get accepted into the upstream repo
Adding replxx or a static build of readline would break go get (unless the .a and other platform's static build equivalents were included in the source repo, which would make the dependent repo grow extremely large over time)
Having readline as a dynamic dependency as default would require the readline library to be installed somewhere on the system. While not an issue for Linux, BSDs, and others, macOS and Windows do not have these out of the box
Ideally, for this project to continue being "universal" (ala the 'u' in usql), the default configuration/build should be the same out of the box on all platforms, including downloading binaries, building via brew, building from source, or from go get should be identical (with the exception of which drivers are enabled by default, which I find to a fair trade off, as it's easy to add additional build tags for brew, source, or go get)
As a minor positive though, it does appear that readline and replxx can be built into the same project, and that they do not stomp on each other by implementing the same API. As such, it should be possible to allow the user to change which readline library they would like to use at runtime

Based on the above, even though I have not wanted to do it, my next great endeavor will be to do a clean, new implementation of a rline package that supports chroma out-of-the-box, works on all platforms, and hopefully fixes issues. inputrc (or some kind of equivalent) support will follow, but the first task will be to just do a clean implementation. Additionally, since it is possible to support both readline and replxx at the same time, I will make it possible to build those. My plan is that there will be a new usql only setting that allows the user to choose their readline library, and the Go implementation, readline and replxx implementations will all be built by default into usql releases or dynamically enabled with the appropriate build tag.
The new package will be called xo/rline.
Once completed, my expectation is that usql will have the additional tags for go build like the following:
rline_all - enable readline and replxx statically
rline_all_dynamic - include readline dynamically, replxx statically
rline_readline - include readline statically
rline_readline_dynamic
rline_replxx - include replxx statically

The rline package itself, while the API is not finalized, will end up looking something like the following:
import "github.com/xo/rline"
r, err := rline.New(opts...)
r.Prompt("a prompt string")
r.SetPrompter(rline.Readline) // sets it to the readline library
r.SetPrompter(rline.Replxx) // to replxx
r.SetPrompter(rline.Default) // to the Go based implementation

In the above the Readline Replxx and Default will likely be a uint const following the constant strategy pattern common in the Go standard library (see the crypto package for an example, if not familiar with the pattern).

I wrote a wrapper around readline, replxx and editline, and have the ability to build each using an appropriate build tag, it leads to some undesirable issues that are preventing me (in a philosophical sense, not a technical sense) from merging it to usql. For any other ambitious developers out there who are interested in working on this, let me summarize the issues:

readline and editline do not seem to have any clear or easy way to do syntax highlighting
editline would not have inputrc support
replxx does have syntax highlighting, tab completion, and other aspects, however it only allows a limited set of colors. As such, the chroma based highlighting would no longer be possible. It would be possible to try to match a chroma theme's styles to the colors that replxx supports, but this would of course be limited or a half-measure at best as the colors would be "clamped" to only those provided by the replxx library.  replxx would also not have inputrc support. Overhauling the replxx package would be difficult, and no guarantee it'd get accepted into the upstream repo
Adding replxx or a static build of readline would break go get (unless the .a and other platform's static build equivalents were included in the source repo, which would make the dependent repo grow extremely large over time)
Having readline as a dynamic dependency as default would require the readline library to be installed somewhere on the system. While not an issue for Linux, BSDs, and others, macOS and Windows do not have these out of the box
Ideally, for this project to continue being "universal" (ala the 'u' in usql), the default configuration/build should be the same out of the box on all platforms, including downloading binaries, building via brew, building from source, or from go get should be identical (with the exception of which drivers are enabled by default, which I find to a fair trade off, as it's easy to add additional build tags for brew, source, or go get)
As a minor positive though, it does appear that readline and replxx can be built into the same project, and that they do not stomp on each other by implementing the same API. As such, it should be possible to allow the user to change which readline library they would like to use at runtime

Based on the above, even though I have not wanted to do it, my next great endeavor will be to do a clean, new implementation of a rline package that supports chroma out-of-the-box, works on all platforms, and hopefully fixes issues. inputrc (or some kind of equivalent) support will follow, but the first task will be to just do a clean implementation. Additionally, since it is possible to support both readline and replxx at the same time, I will make it possible to build those. My plan is that there will be a new usql only setting that allows the user to choose their readline library, and the Go implementation, readline and replxx implementations will all be built by default into usql releases or dynamically enabled with the appropriate build tag.
The new package will be called xo/rline.
Once completed, my expectation is that usql will have the additional tags for go build like the following:
rline_all - enable readline and replxx statically
rline_all_dynamic - include readline dynamically, replxx statically
rline_readline - include readline statically
rline_readline_dynamic
rline_replxx - include replxx statically

The rline package itself, while the API is not finalized, will end up looking something like the following:
import "github.com/xo/rline"
r, err := rline.New(opts...)
r.Prompt("a prompt string")
r.SetPrompter(rline.Readline) // sets it to the readline library
r.SetPrompter(rline.Replxx) // to replxx
r.SetPrompter(rline.Default) // to the Go based implementation

In the above the Readline Replxx and Default will likely be a uint const following the constant strategy pattern common in the Go standard library (see the crypto package for an example, if not familiar with the pattern).

This is probably answered in other issues but what are the issues with the current readline lib? Have you considered using other Go based replacements, like https://github.com/peterh/liner/?

This is probably answered in other issues but what are the issues with the current readline lib? Have you considered using other Go based replacements, like https://github.com/peterh/liner/?

@nineinchnick Yes, I've seen that package before. It might be a better jumping off point than "nothing"  to implement a pure Go version, rather than trying to adopt the chyzer/readline or gohxs/readline packages. I haven't looked at it much. Based off a quick reading of of liner's API documentation, I don't see that it supports syntax highlighting out of the box, or otherwise will be able to support all the specific requirements.
At this point, I've more-or-less decided to just bite the bullet and write a from the ground-up implementation in idiomatic Go, that's designed to do efficient syntax highlighting out of the box, and to additionally provide a wrapper around with C's readline and replxx libraries. At least then the user will be able to decide which to use.

@nineinchnick Yes, I've seen that package before. It might be a better jumping off point than "nothing"  to implement a pure Go version, rather than trying to adopt the chyzer/readline or gohxs/readline packages. I haven't looked at it much. Based off a quick reading of of liner's API documentation, I don't see that it supports syntax highlighting out of the box, or otherwise will be able to support all the specific requirements.
At this point, I've more-or-less decided to just bite the bullet and write a from the ground-up implementation in idiomatic Go, that's designed to do efficient syntax highlighting out of the box, and to additionally provide a wrapper around with C's readline and replxx libraries. At least then the user will be able to decide which to use.

I just pushed the initial commit to the aforementioned rline package that builds both readline and replxx into the repository. None of the Go implementation has been started yet, as I just wanted to put this together to see what the effect would be on usql and to work out the various build tags, dependencies, etc. Will start authoring a ground-up Go prompt implementation shortly.

I just pushed the initial commit to the aforementioned rline package that builds both readline and replxx into the repository. None of the Go implementation has been started yet, as I just wanted to put this together to see what the effect would be on usql and to work out the various build tags, dependencies, etc. Will start authoring a ground-up Go prompt implementation shortly.


How should I get grid item width in pixel?

Thanks for submitting an issue to RGL!
Please mark the type of this issue:

[ ] Bug
[ ] Feature Request
[x] Question

If you have a question or bug report, please use the WebpackBin Template
to demonstrate. It is much easier for us to help you if you do.

Divide by the width of the container, subtract by margin, or get the DOM element directly and measure it.


add isFinite() resolves #2

@drdamour I still need to fill out the tests but would this approach address your issue? You could call isFinite() on every generator.

i think it would, but i liked the typing more personally...although this allows a Finite generator to claim it is infinite....

A marker interface would not make it through a wrapped generator like one that transforms another generators result. That wrapped generator could be either be finite or infinite

yeah, that makes sense, that certainly would stop a few mistaken infinte generators i've run into and had to abend.


Can I use gulp.src() in gulp.watch() ?

I want to just build 'the only one file' I changed,not a bunch of files,
so I tried something like this
gulp.task('watch_html', function () {
    return gulp.watch('source/**/*.html', function (event) {
        gulp.src(event.path)
        .pipe(prettify({indent_size: 4}))
        .pipe(gulp.dest('dist'));
    });
});

But why this won't work?
Is there a workaround?

Yes, i think your example should work.
But this is the another way.
gulp.task('html', function () {
  return gulp.src('source/**/*.html')
    .pipe(prettify({indent_size: 4}))
    .pipe(gulp.dest('dist'))
})
gulp.watch('source/**/*.html', ['html'])

"The only one file"? If you want just one file, don't pass glob. Otherwise, yes, your example seems the way to go.

Support questions should be directed to stack overflow. Thanks.


Unable to auto-load llama backend

Trying to use Cuda11 backend but the library fails to run because it cannot locate the dll properly.
I have taken care to reference only the LLamaSharp.Backend.Cuda11 package.

After building my project this is the actual file structure generated:

When I run the code with logging enabled here is the explanation of why it could not find it.
Notice that the search path is wrong:

Turns out the problem was, as a newbie, that I hadn't installed Cuda on my machine. After installing Cuda it just worked.


Change item in combobox window form

Hi All,
I am new to pywinauto. please share code for change item  in combo-box.

Hi @woodsongem , which backend do you use? It might differ for "uia" and "win32" param in Application object constructor. But generally it looks like the following (taken from tests for WPF, backend="uia"):
app.MainWindowTitle.ComboBox.select('Combo Item 1')

Hi @woodsongem, generally it looks like the following:
app.MainWindowTitle.ComboBox.select('Combo Item 1')

Taken from pywinauto unit tests for WPF app (backend="uia").

@woodsongem, any follow ups ? Can we close the issue ?

i am using window form. please close this issue. Thanks

Hello! I am also trying to control a windows Form combo box, and I am slightly confused how the above code provided by @vasily-v-ryabov would work. I keep getting an attribute error saying there is no 'select' in the Window Specification class. Below is my code, with the title of the windows form being "Manual Polarimeter Mover [v0.2]" and the "cbMtr" being the name of the combo box
def movePol(motor,position):     manPol = app.connect(         path=r"C:/Users/astrouser/Desktop/ManualPolarimetry-master/ManualPolarimetry-master/ManPol/bin/Release/ManPol.exe")     manPol["Manual Polarimeter Mover [v0.2]"]["cbMtr"].select(motor)

Hi @roarkhabegger. No problem. Welcome here. It looks like this attribute error problem is the same as #364. Such an attribute error is raised when the control is found but interpreted as a basic wrapper (not a specific ComboBoxWrapper). We have plans to make this error more clear (so keeping #364 open for that).  To check which wrapper is found use the following code:
combo = manPol["Manual Polarimeter Mover [v0.2]"]["cbMtr"].wrapper_object()
print(combo, ) # prints short wrapper info

# optional: to print children ids
manPol["Manual Polarimeter Mover [v0.2]"].print_control_identifiers()

If it's HwndWrapper probably you need to use backend="uia" while doing connect(...).

After using that code and reading through pywinauto's documentation a little more, it appears that this line worked:
pywinauto.controls.win32_controls.ComboBoxWrapper(manPol["Manual Polarimeter Mover [v0.2]"].cbMtr).select(motor)
Because the new error I got was just that the string I require for the function 'motor' could not be found as a part of the combo box, I think it should work once the windows form is working better.

No, it's because more complicated WindowsForms controls have ugly hex .class_name() property value so that we can't detect control type using Win32 API. That's why I recommend UIAutomation based backend for WinForms. For this backend you will have adequate .control_type() return value. The high level concept is very similar for both backends.


Implementation for custom request timeout and retries for IngressRoute

Updates #815 by adding custom request timeout and retries for IngressRoute. Implements the Custom Request Timeout Design. I did make some modifications to it by using a string instead of the JSONDuration.
// @prasoontelang
Signed-off-by: Steve Sloka<EMAIL_ADDRESS>

I'm going to take care of landing this today as #1016 change some of the e2e tests which need rebasing.
I have opened #1019 to track the documentation of this feature.


Creation of service-principal returns Insufficient privileges error

Describe the bug
New service-principal couldn't be created, when az login launched other with service-principal (like az login --service-principal -u ...), and fails with "Insufficient privileges to complete the operation". The original SP has "owner" role. Az login with personal account works fine, and i'm able to create service-principal with no issues
To Reproduce
az login --service-principal -u ...
az ad sp create-for-rbac --name ...
Expected behavior
I would like to create service-principal using other service-principal (with necessary level of access of course)
Environment summary
azure-cli (2.0.33)

You will need to give the new service principal some graph permissions and consent it. Check out the steps here. The owner role is applicable on azure resource manager service, but the error is from the graph service which is a different service.

I seem to be having a similar issue, when executing an azure cli script that includes a call to create a service principal we are receiving the error message(s) shown below. The pipeline principal has been granted the following permissions via the portal as suggested here, but we continue to receive the same error. Testing this script from my local machine does not produce the same error message and completes successfully. Our admin has confirmed that the pipeline service principal has the same permissions as my personal user account. Any help would be appreciated.
Code:
$sp = $(az ad sp create-for-rbac --name $servicePrincipalName --skip-assignment --scopes /subscriptions/$subscription/resourceGroups/$resourceGroup --query "{appId:appId, clientSecret:password, tenantId:tenant}" -o json) | ConvertFrom-Json
Error:
az : WARNING: Changing "sp-as-cl-gm-productapi-nonprod-2" to a valid URI of "http://sp-as-cl-gm-productapi-nonprod-2",  2019-09-05T14:40:25.8310875Z which is the required format used for service principal names 2019-09-05T14:40:25.8314303Z At D:\a\r1\a\_ProductService\scripts\CreateAppService.ps1:157 char:13 2019-09-05T14:40:25.8316318Z +     $sp = $(az ad sp create-for-rbac --name $servicePrincipalName --s ... 2019-09-05T14:40:25.8317885Z +             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2019-09-05T14:40:25.8319481Z     + CategoryInfo          : NotSpecified: (WARNING: Changi...principal names:String) [], RemoteException 2019-09-05T14:40:25.8320967Z     + FullyQualifiedErrorId : NativeCommandError 2019-09-05T14:40:25.8321709Z   2019-09-05T14:40:27.4191055Z WARNING: Creating service principal failed for appid 'http://sp-as-cl-gm-productapi-nonprod-2'. Trace followed: 2019-09-05T14:40:27.4192362Z {'Cache-Control': 'no-cache', 'Pragma': 'no-cache', 'Content-Type': 'application/json; odata=minimalmetadata;  2019-09-05T14:40:27.4192623Z streaming=true; charset=utf-8', 'Expires': '-1', 'ocp-aad-diagnostics-server-name':  2019-09-05T14:40:27.4192880Z '1MZirw9JoRDVA388+QFoDrTi5kWRMoxIISpYpk9JB8Y=', 'request-id': 'e8e77397-c797-48ef-9dea-5fba0419e612',  2019-09-05T14:40:27.4193398Z 'client-request-id': '180769e4-cfeb-11e9-b04c-000d3a55eda7', 'x-ms-dirapi-data-contract-version': '1.6',  2019-09-05T14:40:27.4193639Z 'ocp-aad-session-key': '###',  2019-09-05T14:40:27.4194069Z 'DataServiceVersion': '3.0;', 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains',  2019-09-05T14:40:27.4194294Z 'Access-Control-Allow-Origin': '*', 'X-AspNet-Version': '4.0.30319', 'X-Powered-By': 'ASP.NET', 'Duration': '611931',  2019-09-05T14:40:27.4194500Z 'Date': 'Thu, 05 Sep 2019 14:40:26 GMT', 'Content-Length': '219'} 2019-09-05T14:40:27.4194698Z ERROR: Insufficient privileges to complete the operation.


Bugs in utils/utils.py

Running the benchmark twice I've gotten failures:
utils/utils.py", line 685, in remove_punc
    exclude = set(string.punctuation)
                  ^^^^^^
NameError: name 'string' is not defined

and here:
    def evaluate_step(self, model_output, example_indices):
        for i, example_index in enumerate(example_indices[0]):
            if not self.args.synthetic_data:
                eval_features = self.data.preprocessed_data.eval_features[example_index.item()]
                unique_id = torch.tensor(eval_features.unique_id).to(args.device)
            else:
                unique_id = torch.randint(low=0, high=self.args.num_synth_data, size=[1], dtype=torch.long).to(args.device)

both references to args.device should be prefixed with self.
am I doing something wrong? How were these ever run successfully?

Hi zkghost,
you're right and you indeed found a bug. We hardly used our tool for evaluation benchmarks especially of the bert models being mainly focused on training benchmarks. Sorry for the inconvenience and thank you for pointing it out. We just committed a bugfix solving these issues.
Best regards
Carlo Vogel
Software Developer @ AIME - HPC Cloud & Hardware


Apps 1256 move all ci stuff to build folder

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 64.45%. Comparing base (67df149) to head (351501a).

Additional details and impacted files
@@               Coverage Diff               @@
##           useGoBackupLib     #206   +/-   ##
===============================================
  Coverage           64.45%   64.45%
===============================================
  Files                  15       15
  Lines                 768      768
===============================================
  Hits                  495      495
  Misses                249      249
  Partials               24       24

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


EES-4641 Implemented gRPC Get method to get load tests info by name

The first and the simplest API method implemented. Includes unit and integration tests using REST gateway.

:+1: Thanks for the work let's hope this experiment brings us something :smile:


Fleetbench-proto build fails with Clang+ThinLTO

ERROR: /root/fleetbench/fleetbench/proto/BUILD:164:28: Linking fleetbench/proto/proto_benchmark failed: (Exit 1): clang failed: error executing command
  (cd /root/.cache/bazel/_bazel_root/9906b1d63bb73ec34cafd40427c4e498/sandbox/linux-sandbox/476/execroot/com_google_fleetbench &&
  exec env -
    PATH=/root/.cargo/bin:/root/dcsomc:/usr/share/Modules/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/bin:/root/bin
    PWD=/proc/self/cwd
  /usr/bin/clang @bazel-out/k8-opt/bin/fleetbench/proto/proto_benchmark-2.params)
Execution platform: @local_config_platform//:host Use --sandbox_debug to see verbose messages from the sandbox
/usr/bin/ld.gold: error: bazel-out/k8-opt/bin/fleetbench/proto/_objs/proto_benchmark/benchmark.o:1:3: invalid character
/usr/bin/ld.gold: error: bazel-out/k8-opt/bin/fleetbench/proto/_objs/proto_benchmark/benchmark.o:1:3: syntax error, unexpected $end
/usr/bin/ld.gold: error: bazel-out/k8-opt/bin/fleetbench/proto/_objs/proto_benchmark/benchmark.o: not an object or archive
/usr/bin/ld.gold: error: bazel-out/k8-opt/bin/fleetbench/proto/_objs/benchmark_lib/lifecycle.o:1:3: invalid character
/usr/bin/ld.gold: error: bazel-out/k8-opt/bin/fleetbench/proto/_objs/benchmark_lib/lifecycle.o:1:3: syntax error, unexpected $end
/usr/bin/ld.gold: error: bazel-out/k8-opt/bin/fleetbench/proto/_objs/benchmark_lib/lifecycle.o: not an object or archive
/usr/bin/ld.gold: internal error in remove_blocker, at token.h:161
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
Target //fleetbench/proto:proto_benchmark failed to build

Thanks for the report!
Thin LTO doesn't work for me either, and I don't see an obvious fix. Will have to debug it.
However, I get different output from yours.
My command line:
$ bazel run --features=thin_lto --config=clang fleetbench/proto:proto_benchmark
I get some linker errors.
Your output sounds like maybe an out of date version of something.
This is on my system:
$ bazel --version
bazel 6.0.0
$ clang --version
Debian clang version 14.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
I don't think we have identified a minimum supported version yet, but it would be helpful to know what your command line was and what version of these tools you are using.

I am using older version of bazel and clang. I tried to upgrade but seems like fleetbench doesn't build with the latest version bazel (v6) + clang (v15)
$bazel --version
bazel 4.2.1
$ clang --version
clang version 12.0.0 (Red Hat 12.0.0-1.module_el8.5.0+840+21214faf)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Here is my .bazelrc content -
build --cxxopt='-std=c++17'
build --cxxopt='-fcf-protection=none'
build --copt='-fcf-protection=none'
build --copt='-include'
build --copt='cet.h'
build --define=pfm=1
build --cxxopt='-O3'
build --copt='-O3'
build --cxxopt="-flto=thin"
build --copt='-flto=thin'
Define the --config=asan-libfuzzer configuration.
build:asan-libfuzzer --@rules_fuzzing//fuzzing:cc_engine=@rules_fuzzing//fuzzing/engines:libfuzzer
build:asan-libfuzzer --@rules_fuzzing//fuzzing:cc_engine_instrumentation=libfuzzer
build:asan-libfuzzer --@rules_fuzzing//fuzzing:cc_engine_sanitizer=asan
Define --config=clang. clang must be in the PATH.
build:clang --repo_env=CC=clang --repo_env=CXX=clang++
Prevent warnings about gcc-specific arguments from --fdo_optimize.
build:clang --copt='-Wno-ignored-optimization-argument'
Allow instrprof_error::hash_mismatch profiles.
build:clang --copt='-Wno-error=backend-plugin'
Cache clang artifacts in a different directory.
build:clang --platform_suffix=clang

Thanks for that info.
It should build with bazel 6 now- as of a few weeks ago. Can you share the error you're seeing?
Also might try a bazel clean --expunge to clear its cache after upgrading.

This is the error I am seeing with bazel5 + clang15
ERROR: /root/.cache/bazel/bazel_root/9906b1d63bb73ec34cafd40427c4e498/external/com_google_tcmalloc/tcmalloc/internal/BUILD:529:11: Compiling tcmalloc/internal/percpu.cc failed: (Exit 1): clang failed: error executing command
(cd /root/.cache/bazel/bazel_root/9906b1d63bb73ec34cafd40427c4e498/sandbox/linux-sandbox/333/execroot/com_google_fleetbench &&
exec env -
PATH=/root/.cargo/bin:/root/dcsomc:/root/vchua/miniconda3/condabin:/usr/share/Modules/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/bin:/root/bin
PWD=/proc/self/cwd
/usr/bin/clang -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object -fcolor-diagnostics -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections '-std=c++0x' -MD -MF bazel-out/k8-opt/bin/external/com_google_tcmalloc/tcmalloc/internal/objs/percpu/percpu.d '-frandom-seed=bazel-out/k8-opt/bin/external/com_google_tcmalloc/tcmalloc/internal/objs/percpu/percpu.o' -iquote external/com_google_tcmalloc -iquote bazel-out/k8-opt/bin/external/com_google_tcmalloc -iquote external/com_google_absl -iquote bazel-out/k8-opt/bin/external/com_google_absl '-std=c++17' -Werror -Wno-deprecated-declarations -Wno-deprecated-volatile -Wno-implicit-int-float-conversion -Wno-sign-compare -Wno-uninitialized -Wno-unused-function -Wno-unused-variable -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE="redacted"' '-D__TIMESTAMP="redacted"' '-D__TIME__="redacted"' -c external/com_google_tcmalloc/tcmalloc/internal/percpu.cc -o bazel-out/k8-opt/bin/external/com_google_tcmalloc/tcmalloc/internal/_objs/percpu/percpu.o)
Execution platform: @local_config_platform//:host
Use --sandbox_debug to see verbose messages from the sandbox
In file included from external/com_google_tcmalloc/tcmalloc/internal/percpu.cc:14:
In file included from external/com_google_tcmalloc/tcmalloc/internal/percpu.h:57:
In file included from external/com_google_tcmalloc/tcmalloc/internal/logging.h:28:
In file included from external/com_google_absl/absl/strings/str_cat.h:64:
In file included from external/com_google_absl/absl/strings/numbers.h:43:
In file included from external/com_google_absl/absl/base/internal/endian.h:22:
In file included from external/com_google_absl/absl/base/casts.h:38:
external/com_google_absl/absl/meta/type_traits.h:304:36: error: builtin __has_trivial_destructor is deprecated; use __is_trivially_destructible instead [-Werror,-Wdeprecated-builtins]
: std::integral_constant<bool, __has_trivial_destructor(T) &&
^
external/com_google_absl/absl/meta/type_traits.h:357:36: error: builtin __has_trivial_constructor is deprecated; use __is_trivially_constructible instead [-Werror,-Wdeprecated-builtins]
: std::integral_constant<bool, __has_trivial_constructor(T) &&
^
external/com_google_absl/absl/meta/type_traits.h:509:17: error: builtin __has_trivial_assign is deprecated; use __is_trivially_assignable instead [-Werror,-Wdeprecated-builtins]
bool, __has_trivial_assign(typename std::remove_reference::type) &&
^
3 errors generated.
Target //fleetbench/proto:proto_benchmark failed to build
INFO: Elapsed time: 14.895s, Critical Path: 3.45s
INFO: 581 processes: 276 internal, 305 linux-sandbox.
FAILED: Build did NOT complete successfully

I've just updated our version of abseil to handle this warning from clang 15 and above.
If you get latest and try again, do you get any further? Thanks for your patience!

Thanks. It builds now with clang15. However, ThinLTO still failing the error below.
ERROR: /root/fleetbench/fleetbench/proto/BUILD:164:28: Linking fleetbench/proto/proto_benchmark failed: (Exit 1): clang-15 failed: error executing command
(cd /root/.cache/bazel/_bazel_root/9906b1d63bb73ec34cafd40427c4e498/sandbox/linux-sandbox/959/execroot/com_google_fleetbench &&
exec env -
PATH=/root/.cargo/bin:/root/dcsomc:/root/vchua/miniconda3/condabin:/usr/share/Modules/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/bin:/root/bin
PWD=/proc/self/cwd
/usr/bin/clang-15 @bazel-out/k8-opt-clang/bin/fleetbench/proto/proto_benchmark-2.params)
Configuration: 7abdad4ee09316d659be3a11299851c41489296ae13b90618ea7384d905bdc68
Execution platform: @local_config_platform//:host
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
bazel-out/k8-opt-clang/bin/fleetbench/proto/proto_benchmark.lto/external/com_google_benchmark/_objs/benchmark/benchmark.o:benchmark.cc:function _GLOBAL__sub_I_benchmark.cc: error: undefined reference to 'pfm_initialize'
bazel-out/k8-opt-clang/bin/fleetbench/proto/proto_benchmark.lto/external/com_google_benchmark/_objs/benchmark/benchmark_runner.o:benchmark_runner.cc:function _GLOBAL__sub_I_benchmark_runner.cc: error: undefined reference to 'pfm_initialize'
bazel-out/k8-opt-clang/bin/fleetbench/proto/proto_benchmark.lto/external/com_google_benchmark/_objs/benchmark/perf_counters.o:perf_counters.cc:function benchmark::internal::PerfCounters::Create(std::vector<std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > const&): error: undefined reference to 'pfm_get_os_event_encoding'
bazel-out/k8-opt-clang/bin/fleetbench/proto/proto_benchmark.lto/external/com_google_benchmark/_objs/benchmark/perf_counters.o:perf_counters.cc:function _GLOBAL__sub_I_perf_counters.cc: error: undefined reference to 'pfm_initialize'
bazel-out/k8-opt-clang/bin/fleetbench/proto/proto_benchmark.lto/external/com_google_tcmalloc/tcmalloc/_objs/tcmalloc/tcmalloc.o:tcmalloc.cc:function tcmalloc::tcmalloc_internal::cpu_cache_internal::CpuCachetcmalloc::tcmalloc_internal::cpu_cache_internal::StaticForwarder::Deallocate(void*, unsigned long)::Helper::Overflow(int, unsigned long, void*, void*): error: undefined reference to 'TcmallocSlab_Internal_PopBatch'
bazel-out/k8-opt-clang/bin/fleetbench/proto/proto_benchmark.lto/external/com_google_tcmalloc/tcmalloc/_objs/tcmalloc/tcmalloc.o:tcmalloc.cc:function tcmalloc::tcmalloc_internal::cpu_cache_internal::CpuCachetcmalloc::tcmalloc_internal::cpu_cache_internal::StaticForwarder::UpdateCapacity(int, unsigned long, unsigned long, bool, tcmalloc::tcmalloc_internal::cpu_cache_internal::CpuCachetcmalloc::tcmalloc_internal::cpu_cache_internal::StaticForwarder::ObjectsToReturn*): error: undefined reference to 'TcmallocSlab_Internal_PerCpuCmpxchg64'
bazel-out/k8-opt-clang/bin/fleetbench/proto/proto_benchmark.lto/external/com_google_tcmalloc/tcmalloc/_objs/tcmalloc/tcmalloc.o:tcmalloc.cc:function tcmalloc::tcmalloc_internal::cpu_cache_internal::CpuCachetcmalloc::tcmalloc_internal::cpu_cache_internal::StaticForwarder::UpdateCapacity(int, unsigned long, unsigned long, bool, tcmalloc::tcmalloc_internal::cpu_cache_internal::CpuCachetcmalloc::tcmalloc_internal::cpu_cache_internal::StaticForwarder::ObjectsToReturn*): error: undefined reference to 'TcmallocSlab_Internal_PerCpuCmpxchg64'
bazel-out/k8-opt-clang/bin/fleetbench/proto/proto_benchmark.lto/external/com_google_tcmalloc/tcmalloc/_objs/tcmalloc/tcmalloc.o:tcmalloc.cc:function tcmalloc::tcmalloc_internal::cpu_cache_internal::CpuCachetcmalloc::tcmalloc_internal::cpu_cache_internal::StaticForwarder::Refill(int, unsigned long): error: undefined reference to 'TcmallocSlab_Internal_PushBatch'
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
Target //fleetbench/proto:proto_benchmark failed to build
INFO: Elapsed time: 68.459s, Critical Path: 62.84s
INFO: 1119 processes: 161 internal, 958 linux-sandbox.
FAILED: Build did NOT complete successfully

This likely means you are using the 'gold' linker rather than 'lld'.  There seems to be a bug with gold.
Please try installing lld (sudo apt-get install lld, or whatever is appropriate for your distro) and doing a bazel clean --expunge and see if that helps.

Thanks. It worked with lld and clang15. I tried with lld before with clang12 which didn't work.

Great, thanks for working through that. I'm sure it'll help the next person, and we'll keep working on the docs.
Will close this if it's working for you now.


Unable to install @angular/cli globally

On running sudo npm install -g @angular/cli I get the following error:
gyp WARN EACCES user "root" does not have permission to access the dev dir<EMAIL_ADDRESS>gyp WARN EACCES attempting to reinstall using temporary dev dir<EMAIL_ADDRESS>Adding a -f flag also gives the same result.
It works when I remove the -g flag, but I can install other packages with the -g flag. The following command works:
sudo npm install -g vanillajs
I've tried uninstalling npm and nodejs completely and then re-installing.
nodejs --version
v9.9.0
npm --version
5.6.0
 lsb_release -a
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.4 LTS
Release:        16.04
Codename:       xenial

@ish-101 Did you find the solution? I met the same errors when install angular/cli on Mac
$ node -v
v8.11.1
$ npm -v
5.6.0

@huayuanzzb I found a pre-existing issue on this repository, and one of the solutions there worked for me:
https://github.com/angular/angular-cli/issues/9676#issuecomment-366542449
This should hopefully work out for you too.

@ish-101 It works, thanks


Release version v0.2.3

Need to release - https://github.com/fastlane/fastlane-plugin-firebase_app_distribution/releases/tag/v0.2.3
@tagboola @lfkellogg Would either of you be able to release v0.2.3 to Ruby gems? The fix is in (and tested) and version is bumped.
I don’t have access to fastlane-plugin-firebase_app_distribution but I’ve requested access from @snatchev (whenever he is able to give it to me). Not sure if either of you would be able to add me too (username is joshdholtz) but if you could that would be ❤

Hi @joshdholtz I can release now and then we can try and get you access as well.

@lfkellogg That would be great! I texted Stefan but I know he is off today so if you could build and push to Rubygems that would be 🔥

Just pushed it up to Rubygems.

Thank you! Really appreciate the quick response 🙌

Just verified I'm able to fetch 0.2.3 from RubyGems and successfully post release notes. Thank you for turning this fix around so quickly!

@joshdholtz Just FYI I went ahead and dropped a message in https://github.com/fastlane/fastlane-plugin-firebase_app_distribution/issues/159 and https://github.com/fastlane/fastlane/issues/17339, hope that's OK

Of course! Thanks again ❤


Generate bossPartisan loot

[x] Create temporary JSON file for boss to allow server to load
[ ] Dump at least 500 bossPartisan bots from live and generate JSON

Originally written by chomp

Currently waiting on data dumps, eta: at least a week

Originally written by chomp


Feat/config hotkeys

Hotkey configuration via the config.toml file.
A few things to note about the implementation:

Since we are deserializing Crossterm types, the way to define hotkeys in the config is not the most intuitive. Examples should probably be added to the template config/documentation somewhere.
As part of your refactoring, you added some new hotkeys, some of which are mapped to multiple actions. Since the scoping concept we discussed isn't supported yet, I had to make a compromise and adjust some of those hotkeys (specifically, the ones using PageUp and PageDown, I added a modifier to one of the pairs to separate them from the other pair).
Tests should be added. Generally, tests are a good thing, and specifically since the program is a TUI application and uses raw mode, tests are a more convenient way to assure that things work properly.
There is some code duplication in events.rs, that was done to get the feature working. It could be refactored into a function, but I believe scoping the hotkeys will also lead to the code duplication being redundant, therefore we'll be able to remove it.

Awesome work 🔥
Scoping should follow up soon.


support nydus commit operation

For a running container with a nydus image, we can support container commit just like docker commit, the commit operation packs the container writable layer as a new image.
References:
cgroup freezer: https://www.kernel.org/doc/Documentation/cgroup-v1/freezer-subsystem.txt
nerdctl commit: https://github.com/containerd/nerdctl/blob/main/pkg/imgutil/commit/commit.go#L67
We can support it in nydusify commit or nerdctl commit.

Received, currently interpreting the commit part of the code

@PerseidMeteor are working on https://github.com/nydusaccelerator/nydus-cli

This issue can closed by https://github.com/dragonflyoss/nydus/pull/1543


Disable all jobs by default?

I'm trying to give certain groups certain jobs, seems like everyone by default can get any jobs. I've gave the groups jobs.joinWoodcutter but can join all of them.

Everyone has permission to join every job, negate permission for specific jobs if you want to prevent that


Allow Markdown extensions in input format

This was added in cb5a70b, but only for the output format. This adds it also for the input format, where pandoc allows the same way of specifying syntax extensions. A basic test is also included.

Thanks! I published 0.9.3 with your contribution in it.

Wow, that was fast. Thank you.


AndroidApplicationConfiguration.useWakeLock is misleading

The use of "useWakeLock" seems misleading to me; let me explain:
Android uses two different mechanisms to keep the screen on at all times (so that it doesn't dim out or turn off due to inactivity). One of them is via FLAG_KEEP_SCREEN_ON flag and is done this way:
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
The other, more complex (which needs a special permission in the manifest) is called Wakelock and is achieved like this:
mWakeLock = mPowerManager.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK,
getClass().getName());
(and needs to be released as well).
 However, it turns out this is not the case. If you look at the AndroidApplication.java (libgdx/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/AndroidApplication.java), you will see it calls createWakeLock() method in it's init() method. Now let's see it's implementation:
protected void createWakeLock (boolean use) {
    if (use) {
        getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
    }
}

As can be seen from this source code, it uses the FLAG_KEEP_SCREEN_ON mechanism which has nothing to do with the Wakelock mechanism (which offers much more control, requires a permission in the application's manifest etc.).
So, can someone verify this? I think this is an issue and needs to be taken care of.

Both are a wake lock, it is just one (the one we use) is managed by the system.

Fixed by changing docs to be more explicit.


chore: sync with narrowspark/php-library-template

Q
A

Branch?
main

Bug fix?
no

New feature?
no

Deprecations?
no

Tickets
-

License
MIT

Doc PR
no

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


unixPB: Add changed_when fields to shell modules, in gcc roles

Ref: #2422
As per my comment in the referenced issue, these queries are not changing the machine state, so they shouldn't report changed.
I prioritized these GCC roles, so they accurately reflect the new GCC-10 role from #2420.
Checklist

[x] commit message has one of the standard prefixes
[ ] faq.md updated if appropriate
[ ] other documentation is changed or added (if applicable)
[ ] playbook changes run through VPC or QPC (if you have access)
[ ] for inventory.yml changes, bastillion/nagios/jenkins updated accordingly

Agreed- I haven't set it going just yet because we have 3 runs currently going on :-)

Linter is broken, as per your issue (#2426)

Running VPC-1386 to check- entirely forgot about this, sorry :sweat_smile:

Double checking that now :-) Thanks for running VPC

Yep, it worked when I ran it twice. These roles now only report "ok" or "skipped", which is what we want :-)


Remove annoying cache.bin ML dumpfiles.

They are generated by
https://github.com/choderalab/asapdiscovery/blob/e83baa90700821cf68487b88878a971f5ea1ca3b/asapdiscovery-ml/asapdiscovery/ml/dataset.py#L512

Ok it seems like you can't get rid of these, but the route we are taking to generate the DGL graphs is very convoluted. I will close this issue and opt for a re-jig.


Interaction errors in "This round has already ended" reply action

Appears to coincide with degraded performance on either the bot's or Discord's end. The cause is unknown, but we should be able to remedy this by adding catches to the following action, and subsequent calls:
https://github.com/LakeYS/Discord-Trivia-Bot/blob/master/lib/platform/discord_shard.js#L120
A catch with an error should also attempt to dump any available info about the interaction object prior to calling upon it.
/home/trivia/trivia/node_modules/discord.js/src/rest/RequestHandler.js:349
      throw new DiscordAPIError(data, res.status, request);
            ^

DiscordAPIError: Unknown interaction
    at RequestHandler.execute (/home/trivia/trivia/node_modules/discord.js/src/rest/RequestHandler.js:349:13)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async RequestHandler.push (/home/trivia/trivia/node_modules/discord.js/src/rest/RequestHandler.js:50:14)
    at async ButtonInteraction.reply (/home/trivia/trivia/node_modules/discord.js/src/structures/interfaces/Int
eractionResponses.js:98:5) {
  method: 'post',
  path: '/interactions/919018517234352188/aW50ZXJhY3Rpb246OTE5MDE4NTE3MjM0MzUyMTg4OmhSRlVhQ2dkbUVNOTF0djVNUU9Je
UdQQXV5YjIxck80Z0F2ZUNwRFF6dzRzT2xCQjB3dWxmMG9DMUJwN09aWEdNSm83dXdvSEk3dm9hRzVEVm1tUkZ6ckFIelUzcmYyZU5mUVZvWXFt
ekZ4MVR0QlBnRUJuVlZZMmxrN3UxT3hL/callback',
  code: 10062,
  httpStatus: 404,
  requestData: {
    json: {
      type: 4,
      data: {
        content: 'This round has already ended.',
        tts: false,
        nonce: undefined,
        embeds: undefined,
        components: undefined,
        username: undefined,
        avatar_url: undefined,
        allowed_mentions: undefined,
        flags: 64,
        message_reference: undefined,
        attachments: undefined,
        sticker_ids: undefined
      }
    },
    files: []
  }
}

Addressed in ef6e4b39 (2.0) and 70e85476 (1.x)


futures_get_open_orders() is not working

This code will loop through all open orders, calculate the profit of each order and cancel it if the profit has reached a certain point.  However, the futures_get_open_orders() function returns empty even though ı have an open order. I tried other functions, ı can change the leverages and open orders but can't see the open orders. I read the document and couldn't find anything wrong. What could be the problem?
The code:
from binance.client import Client
import keys
api_key = keys.API_KEY
api_secret = keys.SECRET_KEY
client = Client(api_key, api_secret)
all_orders = client.futures_get_all_orders()
Loop through each order
while True:
# Get all open orders
open_orders = client.futures_get_open_orders()
print(open_orders)

# If there are no open orders, break out of the loop
if not open_orders:
    break

Loop through each open order
for order in open_orders:
symbol = order['symbol']
order_id = order['orderId']

# Get the details of the open order
order = client.futures_get_order(symbol=symbol, orderId=order_id)

# Calculate the current profit of the order
buy_price = float(order['price'])
current_price = float(client.futures_symbol_ticker(symbol=symbol)['price'])
profit = (current_price - buy_price) / buy_price

# Close the order if the profit has reached 50%
if profit >= 0.1:
    client.futures_cancel_order(symbol=symbol, orderId=order_id)

what you want to do ....
1/ send order with uniqueID (and of course save your IDs)
2/ get order by uniqueID data from API periodically  (to track the %
change)  (you will need many own coded function)
3/ set your percent price for SL/TP make a NEW order against your order (if
it was sell -> buy, IF it was Buy -> Sell).
Just finished my very similar application.
Doable, but not THAT easy, and futures_cancel_order is different, NOT
closing your position.
GozdeKorpe @.***> ezt írta (időpont: 2023. máj. 11.,
Cs, 21:23):

This code will loop through all open orders, calculate the profit of each
order and cancel it if the profit has reached a certain point. However, the
futures_get_open_orders() function returns empty even though ı have an open
order. I tried other functions, ı can change the leverages and open orders
but can't see the open orders. I read the document and couldn't find
anything wrong. What could be the problem?
The code:
from binance.client import Client
import keys
api_key = keys.API_KEY
api_secret = keys.SECRET_KEY
client = Client(api_key, api_secret)
all_orders = client.futures_get_all_orders()
Loop through each order
while True:
Get all open orders
open_orders = client.futures_get_open_orders()
print(open_orders)
If there are no open orders, break out of the loop
if not open_orders:
break
Loop through each open order
for order in open_orders:
symbol = order['symbol']
order_id = order['orderId']
Get the details of the open order
order = client.futures_get_order(symbol=symbol, orderId=order_id)
Calculate the current profit of the order
buy_price = float(order['price'])
current_price = float(client.futures_symbol_ticker(symbol=symbol)['price'])
profit = (current_price - buy_price) / buy_price
Close the order if the profit has reached 50%
if profit >= 0.1:
client.futures_cancel_order(symbol=symbol, orderId=order_id)
—
Reply to this email directly, view it on GitHub
https://github.com/sammchardy/python-binance/issues/1323, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABVKGMYR6IWMO6XHVLHRGI3XFU4BZANCNFSM6AAAAAAX6SABP4
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

what you want to do ....
1/ send order with uniqueID (and of course save your IDs)
2/ get order by uniqueID data from API periodically  (to track the % change)  (you will need many own coded function)
3/ set your percent price for SL/TP make a NEW order against your order (if it was sell -> buy, IF it was Buy -> Sell).
Just finished my very similar application.
Doable, but not THAT easy, and futures_cancel_order is different, NOT closing your position.

I want to get open orders ID's but cant get them with this function.Do you know how can ı fix this? @sirfrank

.


Docs/update documentation

Description

Motivation and Context

Related Issue

How Has This Been Tested?

Checklist

This is a breaking change:

[ ] Yes
[x] No

Will this release a new version:

[ ] Yes
[x] No

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket: