dynamically identify the uploads

Type of issue

[x] Support request

Uploader type

[x] S3

Support Request
Fine Uploader version
5.14.1
Question
II have a web application where I should administrate profiles of chat users.
There is a simple table where I show profileName, age ...
I should add a video to each profile. So I add a drop zone in each row of the table
but I have trouble with the progress bar. I should know what upload is happening for what profile.
SO I try to send params to the S3 bucket this.setParams{profileId: row.profile.id} but it doest help because this.getUploads() doesn't return the profileId? How I can solve that?
Thanks!
Related code

Closing due to lack of code. I will consider re-opening once you provide at least executable code to demonstrate your issue.

Ok I will try to simplify because my project is more complicated and I use coffeescript. Hope this is not a problem.
First file
import qq from "fine-uploader/lib/s3"

       @fineUploader = new qq.s3.FineUploaderBasic(
       {
            debug: true
            autoUpload: false
            multiple: false
            objectProperties:
                bucket: "----------------------------------------------"
            request:
                accessKey: "-------------------------------------------"
                endpoint: "------------------------------------------"
            signature:
                endpoint: "------------------------------------------"
            deleteFile:
                enabled: true
                endpoint: "------------------------------------------"
            validation:
                sizeLimit:<PHONE_NUMBER>
                allowEmpty: false
                itemLimit: 20
            chunking:
                enabled: true
                mandatory: true
            resume:
                enabled: true
                recordsExpireIn: 7
            callbacks: {
                onSubmit: (id, name) =>
                    # Called when the item has been selected and is a candidate for uploading
                    @createUploadProcess id

                onUpload: (id, name) -> _.noop()
                    # Called just before an item begins uploading to the server.

                onResume: (id, name, chunkData) -> _.noop()
                    #Called just before an upload is resumed

                onComplete: (id, name, responseJSON, xhr ) =>
                    # Why responsJSON doesn't contain the url???

                onAllComplete: (succeeded, failed) -> _.noop()
                    # succeeded - ids of succesfuly uploaded files / failed ...

                onProgress: (id, name, uploadedBytes, totalBytes) =>
                    progress = Math.floor((uploadedBytes*100)/totalBytes)
                    @updateUploadProcess id, progress: progress

                onTotalProgress: (totalUploadedBytes, totalBytes) =>
                    @totalProgress = Math.floor((totalUploadedBytes*100)/totalBytes)

                onCancel: (id, name) =>
                    # Called when the item has been canceled.
                    @removeUploadProcess id

                onDelete: (id) =>
                    # Called just before a delete request is sent for the associated item
                    @updateUploadProcess id, progress: 0

                onDeleteComplete: (id, xhr, isError) =>
                    # Called just after receiving a response from the server for a delete file request.
                    @removeUploadProcess id

                onStatusChange: (id, oldStatus, newStatus) =>
                    if newStatus in [ @status.REJECTED, @status.UPLOAD_FAILED ]
                    then @removeUploadProcess id
                    else @updateUploadProcess id, status: newStatus
            }
        }
)

Second file
import qq from "fine-uploader/lib/s3"

# profile come from global @profilesList

@profile.dropZone = new qq.DragAndDrop(
	{
            dropZoneElements<EMAIL_ADDRESS>            classes:
                dropActive: @profile.dropActiveClass
            allowMultipleItems: false
            callbacks: (
                processingDroppedFiles: ()  ->
                    # TODO: display some sort of a "processing" or spinner graphic

                processingDroppedFilesComplete: (files, dropTarget) =>
                    # TODO: hide spinner/processing graphic
                    # @fineUploader is global

                    @fineUploader.addFiles [files]

                     uploads = @fineUploader.getUploads()  this return a lot of uploads

                     profile.uuid = upload.uuid ???? how t get the upload corresponding to the dropped file

                MY ISSUE!
                how t be sure what is the upload corresponding to the dropped file because I am sure I
                drop only one file
                because the multiple is false**

                I like to associate the profile with the upload recently started

                If addFiles will return a list of uploads or at least a list of uuids but maybe I missing
                something and i can realize what I need with the existing stuff

                dropError: (errorCode, errorRelatedData) ->
                    @onDropError?(errorRelatedData)
            }
	}
)


Feat : Added Stock profit calculator as a Day-72 Project

Related Issue
[Cite any related issue(s) this pull request addresses. If none, simply state "None”]
write issue no. here
closes #264
Email id used to regsiter for VSoc'24
<EMAIL_ADDRESS>Description
Stock Profit Calculator
The Stock Profit Calculator is a dynamic web application designed to help users analyze their stock transactions and make informed investment decisions. Built using HTML, CSS, and JavaScript, this tool provides a seamless and intuitive user experience with a beautiful user interface, smooth animations, and robust calculation functionality.
Key Features:

User-Friendly Interface: The calculator boasts a clean and visually appealing interface that makes it easy to use for anyone.
Interactive Animations: The application includes smooth animations and hover effects to enhance the user experience.
Real-Time Calculations: Users can input data and receive instant calculations of their stock transactions.
Detailed Output: The calculator displays the total amount spent on purchasing the shares, the total amount received from selling the shares, and the profit or loss incurred.
Responsiveness: The application is fully responsive, ensuring a consistent experience across desktops, tablets, and mobile devices.
ReadMe File: The project includes a comprehensive README file with instructions and details about the application.

How It Works:

Input Fields:

Number of Shares
Purchase Price (INR)
Sell Price (INR)
Buy Commission
Sell Commission

Output:

Purchased For: Total amount spent on purchasing the shares.
Sold For: Total amount received from selling the shares.
Profit Amount: The profit or loss incurred from the transaction.

User Interaction:

Users simply need to fill in the input fields with the relevant data.
Upon clicking the calculate button, the calculator will display the results in a well-organized and readable format.

Benefits:

Time-Saving: Quickly analyze stock transactions without manual calculations.
Investment Insight: Helps users to evaluate their stock activity and make better investment decisions.

This project is perfect for anyone looking to keep track of their stock investments and maximize their returns. With its modern design and efficient functionality, the Stock Profit Calculator is an essential tool for every investor.
Type of PR

[ ] Bug fix
[X] Feature enhancement
[ ] Documentation update
[ ] Security enhancement
[ ] Other (specify): _______________

check in issue by entering [X] in boxes
Screenshots / Videos (if applicable)
[Attach any relevant screenshots or videos demonstrating the changes]
Checklist

[X] I have performed a self-review of my code.
[X] I have read and followed the Contribution Guidelines.
[X] I have tested the changes thoroughly before submitting this pull request.
[X] I have provided relevant issue numbers, screenshots, and videos after making the changes.
[X] I have commented my code, particularly in hard-to-understand areas.
[X] I have followed the code style guidelines of this project.
[X] I have checked for any existing open issues that my pull request may address.
[X] I have ensured that my changes do not break any existing functionality.
[] Each contributor is allowed to create a maximum of 4 issues per day. This helps us manage and address issues efficiently.
[X] I have read the resources for guidance listed below.
[X] I have followed security best practices in my code changes.

check in issue by entering [X] in boxes
Additional Context
[Include any additional information or context that might be helpful for reviewers.]
Contribution Guidelines
Thank you for considering contributing to our project! To ensure smooth collaboration and effective contribution management, please adhere to the following guidelines:
Issue Creation

Limit on Issues:

Each contributor is allowed to create a maximum of 4 issues per day. This helps us manage and address issues efficiently.

Contribution Levels

Basic Contributions:

This project is primarily focused on documentation. Most of the setup has been completed, so contributors will generally need to work on basic code tasks, such as writing tests.
For these tasks, issues will be assigned the Easy label.

Acknowledging Hard Work:

If a contributor puts in significant effort on a task, the issue will be upgraded to Medium. This is our way of recognizing and appreciating extra effort.

Feature Additions and Component Work:

Contributors working on new features or components using JSX/TSX will be assigned a level based on the complexity and quality of their work.
The more complex and valuable the contribution, the higher the level assigned.

Level Definitions

Easy:

Tasks are straightforward, such as fixing minor bugs, writing tests, or making simple documentation updates.

Medium:

Tasks require more effort, such as addressing complex bugs, improving existing features, or making substantial documentation improvements.

Hard:

Tasks are highly complex and involve significant new feature development, major refactoring, or extensive contributions to the project’s core components.

We look forward to your contributions and appreciate your effort in helping us improve the project!

@Meetjain1 please reolve conflicts add as day 73

@dhairyagothi I think I have to add as day 74 right ?

@dhairyagothi resolved now check it

@dhairyagothi any issues ?

no


Spotlight Magic button seems to overlap Pagination buttons

What happened?
In spotlight, the magic button is overlapping the pagination button
Please reproduce in steps
https://nft.kodadot.xyz/spotlight
Expected Behavior
should not overlap.
What browsers are you seeing the problem on?
Chrome
Are you logged in?
Yes
At which address did you encounter bug?
No response
Screenshots

Relevant log output
No response
Payment link for reward
https://kodadot.xyz/transfer/?target=EzGc4s9PgCPx1YnF3fqzhLzVHpHMTL4LWPScwpDrR8JKgSU
Code of Conduct

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

I will work on fixing this.


⚠ Bofrost.at has degraded performance

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

HTTP code: 200
Response time: 1107 ms

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


haxl failing to compile with ghc-8.2 rc2

While trying to compile with ghc-8.2
    /tmp/stack12680/haxl-<IP_ADDRESS>/Haxl/Core/Types.hs:112:1: error:
        Could not find module ‘Data.Typeable.Internal’
        it is a hidden module in the package ‘base-<IP_ADDRESS>’
        Use -v to see a list of the files searched for.
        |
    112 | import Data.Typeable.Internal
        | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Replacing the import with Data.Typeable seemed to fix the issue.
compiler : The Glorious Glasgow Haskell Compilation System, version <IP_ADDRESS>70507

There's one more location with the same issue, in Haxl.Core.DataCache.
sreenidhi:~/Work/Haxl $ git diff
diff --git a/Haxl/Core/DataCache.hs b/Haxl/Core/DataCache.hs
index c40f092..aa2f3b9 100644
--- a/Haxl/Core/DataCache.hs
+++ b/Haxl/Core/DataCache.hs
@@ -28,7 +28,7 @@ import Data.Hashable
 import Prelude hiding (lookup)
 import Unsafe.Coerce
 import qualified Data.HashMap.Strict as HashMap
-import Data.Typeable.Internal
+import Data.Typeable
 import Data.Maybe
 #if __GLASGOW_HASKELL__ < 710
 import Control.Applicative ((<$>))
diff --git a/Haxl/Core/Types.hs b/Haxl/Core/Types.hs
index ef1bb5a..afb7279 100644
--- a/Haxl/Core/Types.hs
+++ b/Haxl/Core/Types.hs
@@ -110,7 +110,7 @@ import Data.List (intercalate, sortBy)
 import Data.Map (Map)
 import qualified Data.Map as Map
 import Data.Text (Text, unpack)
-import Data.Typeable.Internal
+import Data.Typeable

 import Haxl.Core.Exception
 #if __GLASGOW_HASKELL__ < 708

Thanks!

Thanks for the report!

Any timeline when new version will be released? https://matrix.hackage.haskell.org/package/haxl <- red with GHC-8.2 still

http://hackage.haskell.org/package/haxl-<IP_ADDRESS> has been released on hackage.

@niteria thanks!


Accelerate GA docker build

Make several parallel workflows whenever possible in the docker build github action.
Debian and alpine images can be built independently.

Also related : #53

Also related : #53

I've done what I could but GitHub Actions only provides 5GB free storage so this limit is regularly hit and either produces "out of space" errors or cancels the whole cache, starting the build from scratch.


Using AltGr shortcuts on numbers (0, 1, 2, 3) causes them...

Description:
Using AltGr shortcuts on numbers (0, 1, 2, 3) causes theme changes (typing characters: ˝ ~ ˇ ^).
This is not an issue on the web messenger (so it 'works', there are no theme changes).
Steps to reproduce:
Press AltGr (effectively Ctrl+Alt) and 0, 1, 2 or 3.
App version:
2.0.1 beta
OS:
Windows 10
Works in WhatsApp Web:
Extra:
[Not answered]

Currently on 2.0.5 beta, this issue persists.

Please try the latest version: https://github.com/aluxian/Messenger-for-Desktop/releases

Wrong comment, see edit ^


gauming, brevipennate

This pull request was generated by the 'mq' tool
[test]
flake rate: 0.4
logical conflict every: 5
sleep for: 300s
[pullrequest]
requests per hour: 30
deps=[b,g]

/trunk merge


Thread-local-resources

It would be nice to have thread-local-resources, as in, resources that do not implement Sync.
It would be useful for systems that need access to things like gfx::Device, gfx::Encoder or gfx::pso::buffer::ConstantBuffer.

Indeed an interesting request, but I don't know how we would implement that, actually. Is there some wrapper which only allows access from one thread but is itself Send and Sync?


[fix](java udf) make executor class thread local

Proposed changes
Java udf will be failed when enable experimental_enable_pipeline_x_engine, because pipeline_x makes Expr shared among fragments. However, PR(https://github.com/apache/doris/pull/25302) has deleted the global reference of executor class when calling JniContext::close in thread local, so another fragment can't call JavaFunctionCall::open in its local thread.
We have to deleted the global reference of executor class, before PR(https://github.com/apache/doris/pull/25302) exists memory leakage, and there's no need to make executor class fragment local, so we make all the context thread local.

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall


Windows 11, 2k22: Enable persistent TPMs & EFI

/hold
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Depends on https://github.com/kubevirt/kubevirt/pull/12739
Release note:

NONE

/cc @0xFelix

/test pull-common-instancetypes-kubevirt-functest

/hold cancel

/cherry-pick release-1.1


Configure kernel with cluster advice

We set some reasonable defaults based on the Minio recommendations. These should be set in cluster advice, since the values will be very different for Desktop vs Production clusters.

DONE


Use latest version of tftsate module

What?

Use latest version of tfstate module
Add parameters to modify the default configuration

If this Draft Pull Request is OK, I will update all missing layers
Why?

We need to stay up-to-date with Terraform modules

References

https://developer.hashicorp.com/terraform/language/providers/configuration#default-provider-configurations
https://github.com/binbashar/terraform-aws-tfstate-backend/tree/v1.0.28

@martingaleano Tincho I think it will a good idea if we can update the base-tf-backend layer in all the accounts to have a cross-project homogenous and consisten deployed version.

Exactly. As I mentioned in the description, I was waiting for your review to go ahead and update all accounts. That's why this PR is  still in progress.
Now  I'm updating all accounts and mark it as a Ready for review.
Thanks for your feedback.


Support for Iris 1.6.11+

Will support for the newer versions of iris and flywheel be added?

I found a version compatible with Iris 1.6.11 in the comment section of mcmod and confirmed that it works.
I assume it should be the result of someone's work on a fork, but the commenter did not cite the source. There are many forks of this repository, and I am not sure which one exactly.
And here is the jar file:
https://wwmb.lanzouw.com/in0UQ1kg32ve, code: Fish.

I found a version compatible with Iris 1.6.11 in the comment section of mcmod and confirmed that it works.
I assume it should be the result of someone's work on a fork, but the commenter did not cite the source. There are many forks of this repository, and I am not sure which one exactly. The mod file itself has no indication, either.
Anyway, here is the .jar file:
https://wwmb.lanzouw.com/in0UQ1kg32ve, code: Fish.

it seems to be working, thanks

This is very helpful thank you! Is there a version that works for Minecraft 1.20.1?

The support for the 1.6.11+ is already merged, instead of downloading binaries from an unknown Chinese source I'd strongly urge to just grab the source from this repo and simply run "gradlew build" to build it yourself

The support for the 1.6.11+ is already merged

Thanks for your reminder, I have edited my original comments.

is it possible to build one for 1.20.1? or is that not a thing yet :'D

It is much easier to build for 1.20.1 than other versions because master branch is for 1.20.1 now :)
Just clone it, run ./gradlew build and you are all set. If versions are mismatched, change them in gradle.properties.

I have uploaded the latest version to CurseForge. Besides, is there anyone interested in co-maintaining this project? I may not be able to dedicate too much time to this mod, so updates might be a bit infrequent.


Unrecognized font family "Ionicons"

When I try to run your formsview.js example I get the red warning screen in the iPhone simulator saying "Unrecognized font family 'Ionicons'
Any idea what I can do to move beyond this point?
Thanks.

Yes.. Did you install react native vectoricons?
On Tue, Jul 19, 2016, 1:15 AM thinklog<EMAIL_ADDRESS>wrote:

When I try to run your formsview.js example I get the red warning screen
in the iPhone simulator saying "Unrecognized font family 'Ionicons'
Any idea what I can do to move beyond this point?
Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/MichaelCereda/react-native-form-generator/issues/30,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGjfsM7dWET9Js0n7LONSuJ3dEOGa8Uks5qXAj3gaJpZM4JPO3V
.

--
Michael Cereda
http://michaelcereda.com

Thanks for the prompt reply!
Just to be sure, I installed them again:
npm install react-native-vector-icons --save
Then I ran the app
react-native run-ios
and then I got the famous red screen saying
Unrecognized font family 'Ionicons'.

Did you run react-native link command in order to link all the necessary
files?
On Tue, Jul 19, 2016, 1:45 AM thinklog<EMAIL_ADDRESS>wrote:

Thanks for the prompt reply!
Just to be sure, I installed them again:
npm install react-native-vector-icons --save
Then I ran the app
react-native run-ios
and then I got the famous red screen saying
Unrecognized font family 'Ionicons'.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/MichaelCereda/react-native-form-generator/issues/30#issuecomment-233492011,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGjfkAwFQ6THh58CYuPU40YrlNvaC3qks5qXA_8gaJpZM4JPO3V
.

--
Michael Cereda
http://michaelcereda.com

No I didn't. I didn't even know that you can or need to do that. Now I did and it works like a charm. Thank you so much!

On Tue, Jul 19, 2016, 1:54 AM thinklog<EMAIL_ADDRESS>wrote:

No I didn't. I didn't even know that you can or need to do that. Now I did
and it works like a charm. Thank you so much!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/MichaelCereda/react-native-form-generator/issues/30#issuecomment-233493458,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGjfgq_AAxE4swPysl8jl609N7NKce-ks5qXBIZgaJpZM4JPO3V
.

--
Michael Cereda
http://michaelcereda.com


Suboptimal error reporting on out-of-bounds in the simulator

It looks like the new version of the simulator reports obvious out-of-bounds errors quite suboptimally.
Here is my spec:
module t {
    var myMap: int -> int

    action init = {
        myMap' = Map(1 -> 1)
    }

    action step = {
        nondet i = 0.to(10).oneOf()
        myMap' = myMap.put(i, i)
    }

    // this is my buggy invariant
    action inv = myMap.get(0) == 0
}

Here is how I run the simulator:
$ quint run --invariant=inv t.qnt

This is the message by quint run:
quint run --invariant=inv t.qnt
quint run <input>

Simulate a Quint specification and check invariants

Options:
  --help         Show help                                             [boolean]
  --version      Show version number                                   [boolean]
  --out          output file (suppresses all console output)            [string]
  --main         name of the main module (by default, computed from filename)
                                                                        [string]
  --out-itf      output the trace in the Informal Trace Format to file, e.g.,
                 out_{seq}.itf.json where {seq} is the trace sequence number
                 (suppresses all console output)                        [string]
  --max-samples  the maximum number of runs to attempt before giving up
                                                       [number] [default: 10000]
  --n-traces     how many traces to generate (only affects output to out-itf)
                                                           [number] [default: 1]
  --max-steps    the maximum on the number of steps in every trace
                                                          [number] [default: 20]
  --init         name of the initializer action       [string] [default: "init"]
  --step         name of the step action              [string] [default: "step"]
  --invariant    invariant to check: a definition name or an expression
                                                    [string] [default: ["true"]]
  --seed         random seed to use for non-deterministic choice        [string]
  --verbosity    control how much output is produced (0 to 5)
                                                           [number] [default: 2]
  --mbt          (experimental) whether to produce metadata to be used by
                 model-based testing                  [boolean] [default: false]

AssertionError [ERR_ASSERTION]: invalid simulation failed to produce a result
    at [REDACTED]/quint/quint/dist/src/simulation.js:81:30
    at Array.forEach (<anonymous>)
    at compileAndRun ([REDACTED]/quint/quint/dist/src/simulation.js:79:15)
    at runSimulator ([REDACTED]/quint/quint/dist/src/cliCommands.js:423:51)
    at EitherConstructor.asyncChain ([REDACTED]/quint/quint/node_modules/@sweet-monads/either/cjs/index.js:125:16)
    at [REDACTED]/quint/quint/dist/src/cli.js:60:39 {
  generatedMessage: false,
  code: 'ERR_ASSERTION',
  actual: false,
  expected: true,
  operator: '=='
}

I would rather expect a trace that explains the error.

Hey! This is already fixed in the latest version (>= 0.22.0). This is what I get:
quint run ../local/test.qnt --invariant=inv
/home/gabriela/projects/quint/local/test.qnt:14:18 - error: [QNT507] Called 'get' with a non-existing key. Key is 0. Map has keys: 1
14:     action inv = myMap.get(0) == 0
                     ^^^^^^^^^^^^

error: Runtime error


x/crypto/acme: nonce error returned because of rate limit hit

I'm consistently getting back acme: nonce not found on a cert of mine, because fetchNonce is doing a few HEADs to https://acme-v01.api.letsencrypt.org/acme/new-authz and getting back a 429 rate limit hit back.
While the real problem is the rate limit being reached, it was hidden by the nonce not found error that can only be detected by calling err.Error() on it.
Let's Encrypt could be kinder to us, but it would be beneficial for x/crypto/acme, if it needs a nonce, to hit an endpoint that is guaranteed to be relatively safe from rate-limiting. Perhaps, the /directory path?
It'd also be cool for crypto/acme to be storing nonces it's gathered from previous normal API calls and using those, instead of calling out again to fetchNonce for every new API call.
It'd also be nice for crypto/acme to return a specific error when it hits one of the various rate limits.

I made https://github.com/letsencrypt/boulder/issues/2450 for Let's Encrypt's side of this, but it seems like a fixable thing from crypto/acme's side.

(Just as FYI: the 429s from Let's Encrypt are a new currently undocumented request-per-IP-per-endpoint-per-second that's set fairly low if you're parallelizing new-authz calls for a cert. This doesn't change what crypto/acme's decision making much, though.)

/cc @bradfitz

/cc @x1ddos

Working on it now, on all issues (collecting, better err, etc.)
There could be an issue with collecting nonces from previous responses as Let's Encrypt keeps only a limited num. of issued nonces: https://github.com/letsencrypt/boulder/blob/affa0e92cd1bae31dcdfb6ae41c13a8b82e499b7/nonce/nonce.go#L18, so I'll make it a buffer with at most N collected nonces.


lightswitch: fix tap listener widget assumption

This ensures we always have a widget object (not undefined), even if the widget hasn't loaded.
Fixes #2985

I haven't experienced the bug in #2985 myself. I've installed this update and have no regression. Will merge so @JAVAHTML1 can install via development app loader and see if the problem is resolved.

Great, thanks!

@gfwilliams could you take a look at the commit into master? I used "Rebase and merge" option. But I think maybe you usually use the "Create a merge commit" option?

I'm very happy with that, I can't see anything wrong.
Does this also fix https://github.com/espruino/BangleApps/pull/3007 ?


DAG gets stuck when using retry

Checklist:

[x] I've included the version.
[x] I've included reproduction steps.
[x] I've included the workflow YAML.
[x] I've included the logs.

What happened:
The DAG gets stuck after the retry on error task fails.
What you expected to happen:
The DAG step is supposed to fail and the workflow should stop or trigger the exit handler.
How to reproduce it (as minimally and precisely as possible):
argo submit https://gist.github.com/jyotishp/d1bdd09bd859454aed9dd721536cd54e/raw/5d56d4f4b22344bc786be75e802af8535a537619/argo-wf.yaml

Wait for the pod running task "B" to fail. The DAG step never stops. It keeps running.
Anything else we need to know?:
Environment:

Argo version:

$ argo version
argo: v2.8.0
  BuildDate: 2020-05-11T22:55:16Z
  GitCommit: 8f696174746ed01b9bf1941ad03da62d312df641
  GitTreeState: clean
  GitTag: v2.8.0
  GoVersion: go1.13.4
  Compiler: gc
  Platform: linux/amd64

Kubernetes version :

$ kubectl version -o yaml
clientVersion:
  buildDate: "2020-04-23T22:11:11Z"
  compiler: gc
  gitCommit: 52c56ce7a8272c798dbc29846288d7cd9fbae032
  gitTreeState: archive
  gitVersion: v1.18.2
  goVersion: go1.14.2
  major: "1"
  minor: "18"
  platform: linux/amd64
serverVersion:
  buildDate: "2020-04-06T16:33:17Z"
  compiler: gc
  gitCommit: 34a615f32e9a0c9e97cdb9f749adb392758349a6
  gitTreeState: clean
  gitVersion: v1.14.10-gke.36
  goVersion: go1.12.12b4
  major: "1"
  minor: 14+
  platform: linux/amd64

Other debugging information (if applicable):

Workflow result:

argo --loglevel DEBUG get <workflowname>
Name:                wf-2mb6x
Namespace:           default
ServiceAccount:      default
Status:              Running
Created:             Sun May 24 02:07:12 +0530 (4 minutes ago)
Started:             Sun May 24 02:07:12 +0530 (4 minutes ago)
Duration:            4 minutes 20 seconds

STEP            TEMPLATE   PODNAME              DURATION  MESSAGE
 ● wf-2mb6x     run-steps
 └---● run-dag  run-dag
     └-✖ B(0)   B          wf-2mb6x-2328328885  1m        failed with exit code 2

Workflow YAML

Logs

argo get <wf> -o yaml
kubectl logs <pod> -c wait
kubectl logs workflow-controller-xxxx -n argo | grep <wf>

Message from the maintainers:
If you are impacted by this bug please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.

I think this should fix this issue, https://github.com/argoproj/argo/pull/3100/files
I'm not sure about how I need to write the tests for this one (Should I create a new workflow YAML in test/e2e/testdata and use that YAML file to check this?). Can someone help me with that?


Make toast support preventDuplicates

make preventDuplicates default to true, users get a clear UI feedback and know that "a new message appears".

we should hide the existing toast and show the new toast

as I said, I think this is suboptimal UX because it makes it harder then necessary to copy text out a toast that refreshes for example every 1-2 seconds. I think it's better to have a counter instead that shows the number of times a toast has triggered. Could be as simple as appending (2) to the message.

Could be as simple as appending (2) to the message.

f6034b286567165583de743fa8f3451f432da733

Looks quite good but I noticed that the animation only plays when it goes from 1 to 2, but not from 2 to 3, is it intentional?

Looks quite good but I noticed that the animation only plays when it goes from 1 to 2, but not from 2 to 3 or later, is it intentional?

It works on my side, and the code seems right.

Could you add to devtest a second row of buttons that generates different messages?

Subsequent animations work for me only in Chrome, not in Firefox.

6a9ed8c6861b42c77afadf7142faa511423b12d7

Could you add to devtest a second row of buttons that generates different messages?

549af3f08193fff5f6dbec28c19b9ed9555151e3

Nice fix. Can you add fix #26651 in the description.

Maybe we can add more spaces here?

0bc60e25368d5a5f4f7f780bac46c6617ee5ed5b

Nice fix. Can you add fix #26651 in the description.

Added

before:

after:

It seems that the icon is too big?

I don't want to play with the pixel-level tricks here.
The UI doesn't really look problematic and it doesn't cause problems. I think it could be fine-tuned later.

Vertical alignment is probably a easy fix with some flexbox.

Found one more incorrect animation and fixed it together. And there is a strange behavior that the keyframe can't use name "pulse", I have left a comment there.


Profile Not Saving/Updating

trying to update profile, after hitting save, page reloads, but nothing is updated. by @opticbit

profile has a builtin cache. Please exclude the following from the cache system:
https://bitnation.co/user/

thanks, Tested and working again.


Frontend/feature/custom tooltip component

Based on top of #714

#714 got merged. Starting to resolve conflicts now.

Disclaimer:
In result of the current personnel shortage, management has decided to empower me to merge less critical pull requests on my own without further reviews. This can be seen especially critical since we still have not enough test coverage. Especially a safety net with end-to-end tests is missing. I'll do my best job to find a balance between making progress and working secure as a single developer for the majority of the upcoming pull requests that are frontend related. Note that I'll have to use my permissions as repository administrator to circumvent the blocked merge button.


check length of warnings array to set feedExists to true or false

This PR adds a check for the length of the warnings array to set feedExists on the feeds/new/controller to true or false depending on whether a warning exists in the array or not.
Closes #300

Thanks for a great service and the quick response.


Add a "pressOrRepeat" choice for event handlers?

Is your feature request related to a problem? Please describe.
Currently, there are separate event handler types for "pressed" and "repeat", but it's quite common that the game will want to do the same action on each. The workarounds are to either copy the code, or to wrap it in a function, and both are a bit clunky.
Describe the solution you'd like
Could we get a "onPressOrRepeat" event choice to make this easier?
Additional context
Context: discussion in https://forum.makecode.com/t/a-heart-of-cosines-blocks/6791/3

We kind of have this -- in

there's a block to set the delay / interval for repeat, and setting delay to 0 should behave as you want (the functionality is available in js by default / without an extension, and I believe you should be able to set it on a per button basis as well there)
Here's an example: https://makecode.com/_Vvuasy3UXLwD

That is useful, but I think that's not quite the same thing. If you want to use buttons for something like cursor control or menu entries, having a nonzero repeat delay is nice since it allows for precise single movements. Forcing the repeat delay to zero wouldn't work well for that use case.

Ah, those are two distinct values; delay is 'how long until it triggers the first time', and interval is 'how long does it wait between triggers of the event'

Yes, but unless I'm misunderstanding it, the current sequence is:

onPress
(delay time)
onRepeat
(repeat interval time)
onRepeat
(repeat interval time)
goto 3

That means it's possible to separately configure delay time and interval time, but if you want to have two distinct time values for more precise input, with a longer delay time after the first press, you still need to add separate event handlers for both onPress and onRepeat. Setting the delay time to zero is a workaround if you want to use a single fixed repeat interval, but then you lose the ability to have a longer delay after the first press.
I think configuring the timing is a separate issue from needing distinct event handlers for first press vs repeated press. Or am I missing something?

Ah, so you're looking for
onPress
(delay time)
(repeat interval time)
onRepeat
(repeat interval time)
onRepeat
(repeat interval time)
goto 4

I see, fair enough

Not quite, I mean this:

onPress and onPressOrRepeat
(delay time)
onRepeat and onPressOrRepeat
(repeat interval time)
onRepeat and onPressOrRepeat
(repeat interval time)
...

So an application that wants to take different actions for first press vs repeated press can use the current separate handlers to do so, but if it wants to do the same action for each, it just uses the proposed new onPressOrRepeat handler instead to avoid duplicated handler code. Does this make sense?
If I remember right, key events in other systems typically do have a single event that's triggered for both the first and repeated key presses, so I think it would be natural to have this in Arcade also.


build thrift server can add multiple controller

i have many thrift files in the project, and then the scrooge compie it to services, can i need to  add all thrift services by  the configureThrift method?
class Service1Controller
  extends Controller
  with Service1.BaseServiceIface {

class Service2Controller
  extends Controller
  with Service1.BaseServiceIface {

override def configureThrift(router: ThriftRouter) {
    router
      .filter[LoggingMDCFilter]
      .add[Service1Controller]
      .add[Service2Controller]
  }

but when i jump into the sources, i find that the code
 def add[C <: Controller with ToThriftService : Manifest]: ThriftRouter = {
    val controller = injector.instance[C]
    for (m <- controller.methods) {
      m.setFilter(filterChain)
      methods += (m.method -> m)
    }
    info("Adding methods\n" + (controller.methods.map(method => s"${controller.getClass.getSimpleName}.${method.name}") mkString "\n"))
    if (controller.methods.isEmpty) error(s"${controller.getClass.getCanonicalName} contains no methods!")
    filteredService = controller.toThriftService

    assert(!done, "ThriftRouter#add cannot be called multiple times, as we don't currently support serving multiple thrift services.")
    done = true
    this
  }

filteredService = controller.toThriftService , that means, the filteredService will be overidden by the last added thriftservice, how should i do ?

Answered here.


Los testing

update for memory optimization
changes on kmin-kmax algo

The plot_touch is not working (on devel, thus also not in this commit).
And there is an issue on 2.7 that is on devel as well.


sslv3 alert handshake failure - cloudflare

Version of Beast
BOOST_BEAST_VERSION 144
Steps necessary to reproduce the problem
Use the websocket client SSL example to connect to a cloudflare-enabled websocket server.
Relevant Information
After being able to successfully connect to multiple websocket servers without problems, I simply tried changing the server I connected to to one with cloudflare enabled. It keeps throwing a runtime error with the message:
libc++abi.dylib: terminating with uncaught exception of type boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error> >: handshake: sslv3 alert handshake failure

I tried passing different TLS/SSL versions to the boost::asio::ssl::context but the error message would not change. Also tried calling set_options on the context to disable sslv3 from being used, but it didn't change the output as well.
https://github.com/chriskohlhoff/asio/issues/262 may be related but its fixes were only applied to HTTP examples, not sure how to apply them to websockets since the websocket API is not the same.
Any ideas on how to solve this problem?

not sure how to apply them to websockets since the websocket API is not the same.

Anything having to do with SSL would be applied to the boost::asio::ssl::stream, before any websocket handshaking takes place. So the use of WebSocket should not affect your fix.

Any ideas on how to solve this problem?

None at all; this is strictly related to ssl::stream (OpenSSL in particular) and not Beast, and I am not an expert on TLS.

Yea you're right, it's not a Beast problem. Do you know how I can access the underlying ssl::stream in this line of the example?
websocket::stream<ssl::stream<tcp::socket>> ws_;

When you upgrade to the latest Beast you might want to use these declarations:
#include <boost/beast/experimental/core/ssl_stream.hpp>
...
boost::beast::websocket::stream<boost::beast::ssl_stream<tcp::socket>> ws;

Ah it seems to have a native_handle. Pretty neat, I will consider it thanks

Well it also performs much better since it provides a work-around for a limitation in asio::ssl::stream.


JavaScript: Add eslint

For the JavaScript port of the package present in the repo, we should add eslint as a dev dependency to ensure consistent code quality.

Can I work on this?

Can I work in this

Go for it 👍


Prettify Solidity files

Description
As a constant violator of the Solidity Style Guide (@asaj can attest to this fact), I told myself: "No more!". Hence this PR adds prettier-solidity which will prettify our .sol files so that future generations shall no longer need to live in fear of style guide violations!
It was actually incredibly easy, there was only 1 place where I needed to add a // prettier-ignore
Tested

CI

Backwards compatibility

I believe they should be

@asaj I looked at the linked override at https://github.com/prettier-solidity/prettier-plugin-solidity#vscode, I wasn't sure if that's what we wanted, for example a width of 80 (instead of the 100) that we have been using. Both numbers seemed appropriate, so I kept 100 as it was less churn. Same with tabs/spaces, just kept the default

@asaj I looked at the linked override at https://github.com/prettier-solidity/prettier-plugin-solidity#vscode, I wasn't sure if that's what we wanted, for example a width of 80 (instead of the 100) that we have been using. Both numbers seemed appropriate, so I kept 100 as it was less churn. Same with tabs/spaces, just kept the default

+1 to sticking with our defaults here


multitail: mark as supporting unix platforms

Hopefully this makes Hydra build multitail.

If you are confident that it builds on all unixoids, I see no objections from my side.

Thanks! To be honest I am only certain about Linux and Darwin. But I suspect it supports all Unix-like platforms and I think it's worth giving it a try :-)

Merged in 17e7596a074738b13a070f4c1e088a6ac5e19d3f.


sample-gltf-viewer with transparent background

I am new to filament and recently I am working on sample-gltf-viewer.
I tried to modify skybox parameters to remove black background, but was still not able to remove it.

Below are my skybox parameters.
scene.skybox = Skybox.Builder().color(0.0f, 0.0f, 0.0f, 0.0f).build(engine)
Could you guide me how to make the background transparent? Thank you very much.
OS and backend
android

Try the following.
view.setBlendMode(View.BlendMode.TRANSLUCENT)
scene.setSkybox(null)

@prideout It is showing like this. This code is not working.
How can I make it's background transparent? I want only a drone image, not the background part.

I spent a lot of time making the background transparent, and finally made it work. Here's how.
private fun makeTransparentBackground() {
        surfaceView.setZOrderOnTop(true)
        surfaceView.setBackgroundColor(Color.TRANSPARENT)
        surfaceView.getHolder().setFormat(PixelFormat.TRANSLUCENT)

        modelViewer.view.blendMode = View.BlendMode.TRANSLUCENT
        modelViewer.scene.skybox = null

        val options = renderer.clearOptions
        options.clear = true
        renderer.clearOptions = options
    }


latin1 causes error

Describe the bug
when signing non latin1 charaters cause error. I reccomend 'utf-8' instead of 'latin1' in fonts/basic.py

Hi @bostjangec, thanks for your comment. I'm assuming this is about how SimpleFontEngine encodes text?
PyHanko supports writing Unicode text, but unfortunately it's going to be a bit more complicated than just writing UTF-8 to the content stream.
PDF's text display features are older than Unicode, and displaying non-Latin text "properly" requires some effort. While there are a number of very simple "standard" fonts that (virtually) all PDF readers will offer, and (oversimplifying a little bit) those all work with the Latin character set. That works fine for very simple things, but (as you have discovered) it doesn't really generalise well. This is also why pyHanko uses latin1 in SimpleFontEngine. That was a deliberate choice, since arbitrary UTF-8 probably wouldn't work in a lot of viewers anyhow.
 PyHanko implements that using a font engine called GlyphAccumulator. There's a fairly straightforward example in the docs.
Under the hood, pyHanko will invoke HarfBuzz to handle shaping, and use that to translate your Unicode strings to PDF display operators ("regular" character encodings don't really enter into the equation). The font is then subsetted using fontTools and embedded into the file.
TL;DR: Text handling in PDF is complicated, and the output of SimpleFontEngine effectively can't handle non-Latin text. Use GlyphAccumulator instead.


About the generative block

Thanks for your work.
I'm so curious why the generative block is just a simple stack of 3x3 Conv.
In addition, a convolution is usually followed by a BatchNorm module. But the generative block in your paper does not use any BatchNorm, what is the reason for this?
Looking forward to your reply!
Thank you~

The power of student's feature is so strong that a simple generative block can generate teacher's feature.

你好，我正在研究你关于MGD中生成块的作用，目前还是无法理解为什么两个3x3卷积就可以生成教师网络的特征，您能详细解释一下吗？


update F1 to F3

https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness/issues/4671
Office 365 F1 was renamed into Office 365 F3 - https://docs.microsoft.com/en-us/office365/servicedescriptions/office-365-platform-service-description/office-365-plan-options
Microsoft 365 F1 was renamed into Microsoft 365 F3 - https://www.microsoft.com/en-us/microsoft-365/compare-microsoft-365-enterprise-plans
Thank you

Dear @JohanFreelancer9,
kindly do the copy editor review for this PR.
Dear @scanum, for your information
Thank you

@dstrome PR has been copyedited and is ready for final review, could you please check and merge? Thanks!

Fixed by https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness/commit/3ac32fbb70cf2042e9976c2a973a2feaee458d85#diff-40581e7a4083387551a935e06f8c0646 and https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness/commit/117ebf4ba60ad7b5f42d0bc19a3b3dfa81483168#diff-40581e7a4083387551a935e06f8c0646
Thank you


Documentation errors in Unity

About to try out Entitas and Unity seems to be complaining about the documentation

Hi, documentation should not be part of your unity project or source code. Only copy the Entitas sources to Unity. That will fix it.

np, I kind of had that feeling, it's just that the wiki instructs you to copy the whole content of the zip into your assets folder so perhaps it should be updated for clarity


Fix race condition that allowed Component.getType() to return null

This fix prevents an NPE in org.hibernate.mapping.SimpleValue.isValid() and likely elsewhere

Thanks for the fix!


adding files

Adding pdfs
Signed-off-by: Rachel N<EMAIL_ADDRESS>
View rendered Community_Roadmap.md

Closing this.


Python3 to lib_hw.so connection problem on ZynqMP (aarch64) , "python3: unhandled alignment fault (7)"

I compile this library for ZCU102 board (ZynqMP Ultrascale+) and get working app_hw.elf binary.
When trying to use library from Python3.6 getting error (python crash) with:
In console, when python crash/get back to shell:
"Bus error"
In system logs:
"
python3: unhandled alignment fault (7) at 0x7f78695080, esr 0x92000061, in libc-2.27.so[7f8bed6000+140000]
CPU: 0 PID: 5065 Comm: python3 Not tainted 4.14.0-xilinx-v2018.2 #1
Hardware name: ZynqMP ZCU102 Rev1.0 (DT)
"

Official support to Ultrascale+ PYNQ boards (Ultra96/ZCU104) will be added soon.

Good news,and when it release?

Is there any news ?

Just pushed the update to 2.3 and support to Ultra96 PYNQ board.

Just pushed the update to PYNQ 2.3 and support to Ultra96 PYNQ board (with Ultrascale+ Zynq)

@giuliogamba
Sorry for long reply, was out of the office.
Update did not solve problem, still getting "Bus error" with "unhandled alignment fault (7)"

It seems odd, we were able to compile everything on Ultra96 board. Are you sure you pulled the latest version? On which board are you experiencing this?

Yes, I tried the latest version too, without success.
Yes, It's odd, because app_hw work without problems, but lib_hw fail , both use same functions.
But I find problem source, it is "memset" which is for (char *)type buffer , in file "qnn/src/library/host/offload-utils.cpp" , it is used in "padTo" function.
It failing when zeroing testBuffer provided in singleInference() under lib_hw . If it is executed on additional buffer, it do not fail.
But final solution I use is in file "qnn/src/library/host/offload-utils.cpp" line 40 :
"OffloadUtils::memset(bufferPadded, 0, outputSize); "
need replace with
"OffloadUtils::memset((ExtMemWord *)bufferPadded, 0, outputSize);"
I testing on 2 different boards: Xilinx ZCU102 and Enclustra Mars XU3 .
And using lib_hw from Python3.6 for quicker prototyping.

You are correct, the problem is in the memset when used on non-cacheable memory with -O3 as optimization strategy.
That's why we changed the optimization strategy here to -O2 and avoid the problem.

Yes, you are right, optimization strategy changes result working lib_hw.
Thanks.


Aborted (core dumped) at the beginnig of the plotting process...

Hi everyone!
I've just downloaded and compiled madmax plotter into two different machines and I've had this same problem in both of them.  It's a very basic setup with no ramdisk at all just for checking and for comparing madmax times with the official plotter. This two machines have been plotting with the official one with no problems at all. Can anyone help me? Thanks a lot in advance!
--------------------- 8< --------------------------
Multi-threaded pipelined Chia k32 plotter - 974d6e5
(Sponsored by Flexpool.io - Check them out if you're looking for a secure and scalable Chia pool)
Final Directory: /buffer/
Number of Plots: 1
Crafting plot 1 out of 1
Process ID: 3376976
Number of Threads: 4
Number of Buckets P1:    2^8 (256)
Number of Buckets P3+P4: 2^8 (256)
Pool Puzzle Hash:  ******
Farmer Public Key: *******
Working Directory:   /mytmp/
Working Directory 2: /mytmp/
Plot Name: plot-k32-2021-07-17-12-32-2ad0869f8ad41b7cd474d4e4188d13f3907e84ce16d3619f45bac9fefc2f7b28
[P1] Table 1 took 79.2688 sec
terminate called after throwing an instance of 'std::runtime_error'
what():  thread failed with: fopen() failed
Aborted (core dumped)
--------------------- 8< --------------------------

Sorry, it was completely my fault.


Suggestion, about theme colors ...

Hey,
I tried some themes to see how the colors pair with other widgets, etc...
I think that the "knob" color, it “collides”, especially with the slider grabber.
Maybe it could be cool to have the same color as the slider.
What do you think?
Regards

Yeah I see what you're saying. That's partially why I had hard coded the gray colors in the first go at it. I think it mostly works as the slider grabber color, but gets lost a little bit depending on frame bg and frame bg hovered.
In particular, like the one you've got here:

it seems to wash out a bit. (It's not horrid, but certainly does make more sense than ImGuiCol_Text)
Excuse my poor mspaint rendition:

Actually I wonder if ImGuiCol_CheckMark makes more logical sense — looks like it's mostly the same as the slider grabber in most of the themes I have, but perhaps semantically fits a bit better. I'm hoping when "styling 2.0" comes around extendable named colors or the sort will be part of it for cases just like this.

PS:
Thanks a lot for checking my "whims". And sorry for abusing your trust.  ;)
Another little idea is to treat that rounded toggles as the core buttons or sliders,
in terms of allowing change their dimensions.
The width and height of the widget maybe has no relevance on a checkbox, aka the default core toggle.
(All are good being small, always the same size.)
But on sliders, buttons and that rounded toggles, maybe could be useful to be optional (adding an ImVec2 bb arg ...)
Personally, that's how I am using my custom rounded toggle, and also another rectangle toggle that I have, based on the core button with custom size too.
Regards!

For design/styles:
I definitely modeled my default design after @ocornut's and also the default iOS style one. I think at a minimum of what I may want to do (at least until styling v2) is perhaps a set of flags that just imply a set of nice "pre-canned" styles for someone to use out of the box. I also was noodling around on my iPad this weekend and realized I have the accessibility option turned on that shows the "I" or "O" on the frame to indicate the state of the switch for those that have a hard time seeing color, I think I'm going to add that as well.
Now on to sizes
I definitely like the look of your multi-size toggles as well. (Particularly those larger ones look fantastic in your theme colors too.) I'm a bit afraid of the parameter list getting a little noisy to continue adding optional things like size, but I don't see anything in ImGuiStyleVar_ that would make sense as an alternative way to specifying the bounding box, so maybe it's the only "real" option. Do you want to take a look before I jump in and add that?
I'm realizing now that there's a whole slew of things that I'd love to be easily user-controllable (that I suppose could be w/ styling v2): bounding box w/h, knob w/h, knob inset, border thickness, etc.

I'm a bit afraid of the parameter list getting a little noisy to continue adding optional things like size, but I don't see anything in ImGuiStyleVar_ that would make sense as an alternative way to specifying the bounding box, so maybe it's the only "real" option. Do you want to take a look before I jump in and add that?
I'm realizing now that there's a whole slew of things that I'd love to be easily user-controllable (that I suppose could be w/ styling v2): bounding box w/h, knob w/h, knob inset, border thickness, etc.

I am not an expert at all on ImGui, just learning here.
I just made some helpers with small tweaks but I didn't make before a "complex" widget by myself.
I am unsure if I understand all the points,
or if I am unaware of some implications of adding more "noise to the API".
BTW thanks for listening to my whims.
In the case of the regular square buttons (and custom toggles) I usually use:
float w = ImGui::GetContentRegionAvail().x;
float h = ImGui::GetFrameHeight();
ImGui::Button("DoubleH", ImVec2(w, 2 * h));

Having this ImVec2 sz on my widgets,
I am usually able of doing responsive layout like that:
/*
      EXAMPLE
      RESPONSIVE LAYOUT
      2 BUTTONS + 3 BUTTONS
      WITH DIFFERENT PROPORTIONS
*/
      float w = ImGui::GetContentRegionAvail().x;
      float h = ImGui::GetFrameHeight();
      float spx = ImGui::GetStyle().ItemSpacing.x;
      float sp;
      sp = spx / 2; // numWidgets per line
      ImGui::Button("B1", ImVec2(w * 0.25 - spx, 2 * h));
      ImGui::SameLine();
      ImGui::Button("B2", ImVec2(w * 0.75 - spx, 2 * h));
      sp = spx / 3; // numWidgets per line
      ImGui::Button("B3", ImVec2(w * 0.33 - spx, 2 * h));
      ImGui::SameLine();
      ImGui::Button("B4", ImVec2(w * 0.33 - spx, 2 * h));
      ImGui::SameLine();
      ImGui::Button("B5", ImVec2(w * 0.33 - spx, 2 * h));

So, in the case of my own rounded toggle widgets,
I added an argument ImVec2 sz=(-1,-1).
when nothing is passed, it draws the default size.
In the case of your rounded toggle, you can pass only one of args w or h, passing FLT_MIN/FLT_MAX, but I don't understand 100% how they work.
In the case of these rounded toggles, usually,
you could pass the height only, and apply internally the proportional ratio for the width. (to not deform too much.)
Or maybe could use a flag or enum (noisier maybe) as
REGULAR, MINI, BIG.
Then using internally H = GetFrameHeight as a unit: 1xH, 2xH, 3xH
The simplest way to be used without any argument,
I think could be something like that:
float w = ImGui::GetContentRegionAvail().x; // this is the full window width
ImGui::PushItemWidth(w);
ImGui::SliderFloat("##1", &v, 0, 1); // full width without label
//ImGui::Button("Button");
ImGui::PopItemWidth();

But in the case of the above button, it does no reacts to that width push.
Maybe PushItemWidth applies only to some widget types.
Also, there's no ImGui::PushItemHeight on the API...
~So in your case, a workaround could be something like
static float v2 = .5f;
float sz= 2.0f; // double H
ImGui::PushItemWidth(w); // then internally react to the width style but by using it into the height + proportionally to the width.
ImGui::Toggle("Default Toggle", &toggle_a);
ImGui::PopItemWidth();

But is too dirty bc the toggle size is more related to the theme height, not dependent on the current window width.
So, I think that ImGuiStyleVar_ is more related to the theme than to the layout...  (?)~
You could pick some ideas from here maybe:
https://github.com/altschuler/imgui-knobs
On these knob widgets, you can see that some flags can be "queued as multichoice" like your ImGuiToggleFlags_.
Here it passes a single float size = 0 to customize the size.
BTW on this widget is more important to unlock size customization.
static float value = 0;
ImGuiKnobFlags flags = ImGuiKnobFlags_ValueTooltip | ImGuiKnobFlags_NoTitle | ImGuiKnobFlags_NoInput;
ImGuiKnobs::Knob("Value", &value, -6.0f, 6.0f, 12 / 250.f, "%.1fdB", ImGuiKnobVariant_WiperDot, 100, flags);

Sorry for the long message. A little thinking out loud.
Of course, forget about it if you feel it is messy,
maybe is enough to have an alternative to the checkbox as it is.

Hey, when you get a bit to play with it, try checking out this branch and let me know what you think: https://github.com/cmdwtf/imgui_toggle/tree/feature-customization
Here's a quick gif:

Good job. It looks like if they were from the NASA ;-).
Super customizable.
Definitely i'll migrate my legacy rounded toggles to that ones you made.
Also your code style is so clean, and looks well done. Good to learn from.
Could be inspiring to me also to make or improve other widgets.
i.e. I am planing to boost that range slider a bit:

About small things that surely you seen too:

name label hover reacts the same that he knob.
label text is no y centered when toggle is bigger.
not sure if left window  border padding is being applied. my toggles have more spacing... But not sure bc slider looks well aligned.

Also your code style is so clean, and looks well done. Good to learn from.
Could be inspiring to me also to make or improve other widgets.

I really appreciate that! I fret a lot about my C++ style, mostly because I can't decide what I want a lot of my style to be (compared to say C# where I mostly just follow Microsoft's style haha.) I'm quite glad you find it readable!

i.e. I am planing to boost that range slider a bit:

Woah those look excellent, are they in ofxSurfingImGui? I was just thinking that I was probably going to need a range slider along those lines. I use the "range" sliders often in Unity, and realized I wanted something similar for DearImGui:

name label hover reacts the same that he knob.

This was actually intentional. I mimic'd the behavior of the checkbox, which treats it's label as part of it's interactable area too.

label text is no y centered when toggle is bigger.

I've got that one fixed locally, just not super thrilled with how I've done it at the moment so I'll have it cleaned up when I merge it into main.

not sure if left window border padding is being applied. my toggles have more spacing... But not sure bc slider looks well aligned.

I'll look into this. Tweaking all of this made me realize I was handling border/padding wrong in a lot of my helper code I've got in a project, so there's a good chance I'm missing something. Please do shout if you notice specifically what it may be!

Looks cool.
That feature of "drag from center" is super useful.
This is the range slider from the above pic:
https://github.com/moebiussurfing/ofxSurfingImGui/blob/e212727dca18362871c6aca4b3e9bfebdeece178/src/ImGui/widgets/SlidersRange.h#L261
I think that this range slider came from here:
https://github.com/ocornut/imgui/issues/76
or here
https://github.com/wasikuss/imgui/commit/a50515ace6d9a62ebcd69817f1da927d31c39bb1
Here is another one but too simple:
https://github.com/iamclint/ImGuiRangeSlider

Fantastic! I really appreciate the links!
Also: I just pushed a handful of commits and merged to main, I added a handful of more things:

Added a color palette option. (Still falls back to theme colors, but I found myself wanting to override individual toggles without using lots of push/pops.
Added an offset for the knob (so it can be offcenter or even out of the frame, see the "Material Style" one)
Added (optionally) interpolating knob colors while animating similar to the frame color. (Ditched the 'Highlight' option for it, since this was more flexible.)
Added the size parameter to the shortcut APIs, since I figured that'd be one of the most common things.
Fixed the label being centered (as well as the a11y labels.)
Changed the animation "speed" from a bit of a convoluted multiplier to instead just be desired animation duration in seconds.

Let me know if you run into any issues or bugs. And as usual, here's a gif:


🐛 BUG: fetch silently restarts server if it hangs

Which Cloudflare product(s) does this pertain to?
Wrangler
What version(s) of the tool(s) are you using?
3.87.0
What version of Node are you using?
20.17.0
What operating system and version are you using?
macOS Sonoma Version 14.6.1 (23G93)
Describe the Bug
Observed behavior
If you do a fetch request but it is blocked by a firewall (I'm using little snitch) it silently fails and restarts the server, somehow ending up in the same place again.
It restarts about 5x per second.
In my terminal, I see this:
Reloading local server...
Reloading local server...
Reloading local server...
Reloading local server...
Reloading local server...
Reloading local server...
// infinitely

Also, this is what the curl -v shows:
➜  ~ curl -v 'http://localhost:3000/repos/facebook/react' \
-H 'Authorization: Bearer kfjsdlkfjdsklfjdslkjflkdsjflkjdlkjfskljdflkjfskljdfkljskljfslkjfdskl' \
-H 'Accept: application/vnd.github.v3+json'
* Host localhost:3000 was resolved.
* IPv6: ::1
* IPv4: <IP_ADDRESS>
*   Trying [::1]:3000...
* Connected to localhost (::1) port 3000
> GET /repos/facebook/react HTTP/1.1
> Host: localhost:3000
> User-Agent: curl/8.7.1
> Authorization: Bearer kfjsdlkfjdsklfjdslkjflkdsjflkjdlkjfskljdflkjfskljdfkljskljfslkjfdskl
> Accept: application/vnd.github.v3+json
>
* Request completely sent off

It hangs at "Request completely sent off" without any further details. The server keeps restarting.
Even after completely turning off little snitch and restarting the terminal, this problem still happens. I also tried restarting my computer without luck.
It seems to be unrelated to the firewall.
It's something introduced in the past 2 months. When I went back to npx<EMAIL_ADDRESS>dev --port 3000 I didn't have this problem, and it works smoothly, also with little snitch.
To get started, I think it would be good to take a look what has changed around fetch in the local environment in the last 2 months. In production, it works fine.
Expected behavior
The expected behavior is that the fetch request will not silently fail and keep restarting the local server in an infinite loop.
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
No response

Thanks for reporting this! Would you be able to provide a reproduction repo that demonstrates the issue? In particular, it sounds like you're seeing this behaviour without a firewall as well as with one—could I confirm whether it's related to a firewall?

It doesn't seem to be related to the firewall. I thought that at first, but the issue kept happening without firewall. I'm now on<EMAIL_ADDRESS>and there it works fine, also with little snitch enabled.
I logged in my worker and the last log happened before a fetch call , then the worker restarted.
I tried making a minimal example but when I started removing other things (such as r2) it didn't happen anymore that it restarted at the fetch. So I can't share any reproducible example. If needed however, I can maybe share you my worker code in private.

hi @CodeFromAnywhere, so just to confirm... you were experiencing the issue on<EMAIL_ADDRESS>but no longer experience it on<EMAIL_ADDRESS>Is that correct?


fio: 3.6 -> 3.7

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/fio/versions.
These checks were done:

built on NixOS
/nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/fio passed the binary check.
Warning: no invocation of /nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/fio-genzipf had a zero exit code or showed the expected version
Warning: no invocation of /nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/fio-btrace2fio had a zero exit code or showed the expected version
Warning: no invocation of /nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/fio-dedupe had a zero exit code or showed the expected version
Warning: no invocation of /nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/fio-verify-state had a zero exit code or showed the expected version
Warning: no invocation of /nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/fio_generate_plots had a zero exit code or showed the expected version
Warning: no invocation of /nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/fio2gnuplot had a zero exit code or showed the expected version
/nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/genfio passed the binary check.
/nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/fiologparser.py passed the binary check.
Warning: no invocation of /nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/fiologparser_hist.py had a zero exit code or showed the expected version
Warning: no invocation of /nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/fio_jsonplus_clat2csv had a zero exit code or showed the expected version
3 of 11 passed binary check by having a zero exit code.
1 of 11 passed binary check by having the new version present in output.
found 3.7 with grep in /nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7
directory tree listing: https://gist.github.com/bd1f8351a206f7ab3391b9aaf656b1cf
du listing: https://gist.github.com/f8ccaaf11e78def220b20bc5d0fcfa4a

meta.description for fio is: '"Flexible IO Tester - an IO benchmark tool"'.
Experimental: this build is cached with Cachix. To use the cache follow these experimental instructions:
One time setup in nixpkgs Git checkout:
cachix use r-ryantm
git remote add r-ryantm https://github.com/r-ryantm/nixpkgs.git

Test this build:
git fetch r-ryantm && git checkout 88a4886820c6567b496e2ea2d6a01fa4844faa1d && nix-shell --pure -I nixpkgs=. -p fio

Success on x86_64-linux (full log)
Attempted: fio
Partial log (click to expand)
stripping (with command strip and flags -S) in /nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin
patching script interpreter paths in /nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7
/nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/fio_generate_plots: interpreter directive changed from "/bin/sh" to "/nix/store/qckzjk3406va7h6s40cy9s75z2w715rq-bash-4.4-p19/bin/sh"
/nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/fio2gnuplot: interpreter directive changed from "/usr/bin/python2.7" to "/nix/store/6zmk1ankwbnydn447vnv8m3rqx8yjm6l-python-2.7.15/bin/python2.7"
/nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/genfio: interpreter directive changed from "/usr/bin/bash" to "/nix/store/qckzjk3406va7h6s40cy9s75z2w715rq-bash-4.4-p19/bin/bash"
/nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/fiologparser.py: interpreter directive changed from "/usr/bin/python2.7" to "/nix/store/6zmk1ankwbnydn447vnv8m3rqx8yjm6l-python-2.7.15/bin/python2.7"
/nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/fiologparser_hist.py: interpreter directive changed from "/usr/bin/python2.7" to "/nix/store/6zmk1ankwbnydn447vnv8m3rqx8yjm6l-python-2.7.15/bin/python2.7"
/nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7/bin/fio_jsonplus_clat2csv: interpreter directive changed from "/usr/bin/python2.7" to "/nix/store/6zmk1ankwbnydn447vnv8m3rqx8yjm6l-python-2.7.15/bin/python2.7"
checking for references to /build in /nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7...
/nix/store/1q2bln9rv2q8sym6zvgavzqk2w8hpc1x-fio-3.7

Success on x86_64-darwin (full log)
Attempted: fio
Partial log (click to expand)
strip is /nix/store/yyak5sjv68n9vdgnkd2cb5djk1l9sqj5-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/c04005xbmrgixi7f2vzclhr0d25r1gk0-fio-3.7/bin
patching script interpreter paths in /nix/store/c04005xbmrgixi7f2vzclhr0d25r1gk0-fio-3.7
/nix/store/c04005xbmrgixi7f2vzclhr0d25r1gk0-fio-3.7/bin/fio_jsonplus_clat2csv: interpreter directive changed from "/usr/bin/python2.7" to "/nix/store/yac2j5l15gh3ph0wghpdf7gb7fir4s41-python-2.7.15/bin/python2.7"
/nix/store/c04005xbmrgixi7f2vzclhr0d25r1gk0-fio-3.7/bin/fio_generate_plots: interpreter directive changed from "/bin/sh" to "/nix/store/9gghkkqhn6v7dvpf2319qvrxkkw03vwr-bash-4.4-p19/bin/sh"
/nix/store/c04005xbmrgixi7f2vzclhr0d25r1gk0-fio-3.7/bin/fiologparser_hist.py: interpreter directive changed from "/usr/bin/python2.7" to "/nix/store/yac2j5l15gh3ph0wghpdf7gb7fir4s41-python-2.7.15/bin/python2.7"
/nix/store/c04005xbmrgixi7f2vzclhr0d25r1gk0-fio-3.7/bin/genfio: interpreter directive changed from "/usr/bin/bash" to "/nix/store/9gghkkqhn6v7dvpf2319qvrxkkw03vwr-bash-4.4-p19/bin/bash"
/nix/store/c04005xbmrgixi7f2vzclhr0d25r1gk0-fio-3.7/bin/fio2gnuplot: interpreter directive changed from "/usr/bin/python2.7" to "/nix/store/yac2j5l15gh3ph0wghpdf7gb7fir4s41-python-2.7.15/bin/python2.7"
/nix/store/c04005xbmrgixi7f2vzclhr0d25r1gk0-fio-3.7/bin/fiologparser.py: interpreter directive changed from "/usr/bin/python2.7" to "/nix/store/yac2j5l15gh3ph0wghpdf7gb7fir4s41-python-2.7.15/bin/python2.7"
/nix/store/c04005xbmrgixi7f2vzclhr0d25r1gk0-fio-3.7

Success on aarch64-linux (full log)
Attempted: fio
Partial log (click to expand)
stripping (with command strip and flags -S) in /nix/store/ymxxla3rjs9pvhyj3jfrigswh45db8pc-fio-3.7/bin
patching script interpreter paths in /nix/store/ymxxla3rjs9pvhyj3jfrigswh45db8pc-fio-3.7
/nix/store/ymxxla3rjs9pvhyj3jfrigswh45db8pc-fio-3.7/bin/fio_jsonplus_clat2csv: interpreter directive changed from "/usr/bin/python2.7" to "/nix/store/6ch63swg8h4vdpgm8005rbclh93imxn5-python-2.7.15/bin/python2.7"
/nix/store/ymxxla3rjs9pvhyj3jfrigswh45db8pc-fio-3.7/bin/fiologparser_hist.py: interpreter directive changed from "/usr/bin/python2.7" to "/nix/store/6ch63swg8h4vdpgm8005rbclh93imxn5-python-2.7.15/bin/python2.7"
/nix/store/ymxxla3rjs9pvhyj3jfrigswh45db8pc-fio-3.7/bin/fiologparser.py: interpreter directive changed from "/usr/bin/python2.7" to "/nix/store/6ch63swg8h4vdpgm8005rbclh93imxn5-python-2.7.15/bin/python2.7"
/nix/store/ymxxla3rjs9pvhyj3jfrigswh45db8pc-fio-3.7/bin/genfio: interpreter directive changed from "/usr/bin/bash" to "/nix/store/9rv2bzx7jz6wjbaxij5qq580qvzksj4i-bash-4.4-p19/bin/bash"
/nix/store/ymxxla3rjs9pvhyj3jfrigswh45db8pc-fio-3.7/bin/fio2gnuplot: interpreter directive changed from "/usr/bin/python2.7" to "/nix/store/6ch63swg8h4vdpgm8005rbclh93imxn5-python-2.7.15/bin/python2.7"
/nix/store/ymxxla3rjs9pvhyj3jfrigswh45db8pc-fio-3.7/bin/fio_generate_plots: interpreter directive changed from "/bin/sh" to "/nix/store/9rv2bzx7jz6wjbaxij5qq580qvzksj4i-bash-4.4-p19/bin/sh"
checking for references to /build in /nix/store/ymxxla3rjs9pvhyj3jfrigswh45db8pc-fio-3.7...
/nix/store/ymxxla3rjs9pvhyj3jfrigswh45db8pc-fio-3.7

@GrahamcOfBorg  build xfstests

No attempt on x86_64-darwin (full log)
The following builds were skipped because they don't evaluate on x86_64-darwin: xfstests
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.

Success on x86_64-linux (full log)
Attempted: xfstests
Partial log (click to expand)
shrinking /nix/store/xj385hw10jsvcmsw00xbd3h9jffmj14s-xfstests-2018-04-11/lib/xfstests/src/t_encrypted_d_revalidate
shrinking /nix/store/xj385hw10jsvcmsw00xbd3h9jffmj14s-xfstests-2018-04-11/lib/xfstests/src/fiemap-tester
shrinking /nix/store/xj385hw10jsvcmsw00xbd3h9jffmj14s-xfstests-2018-04-11/lib/xfstests/src/open_by_handle
shrinking /nix/store/xj385hw10jsvcmsw00xbd3h9jffmj14s-xfstests-2018-04-11/lib/xfstests/src/fssum
strip is /nix/store/21ymadblbmsbb2bk4q7gl4kjasp8zmgd-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/xj385hw10jsvcmsw00xbd3h9jffmj14s-xfstests-2018-04-11/lib  /nix/store/xj385hw10jsvcmsw00xbd3h9jffmj14s-xfstests-2018-04-11/bin
patching script interpreter paths in /nix/store/xj385hw10jsvcmsw00xbd3h9jffmj14s-xfstests-2018-04-11
/nix/store/xj385hw10jsvcmsw00xbd3h9jffmj14s-xfstests-2018-04-11/bin/xfstests-check: interpreter directive changed from "/bin/sh" to "/nix/store/qckzjk3406va7h6s40cy9s75z2w715rq-bash-4.4-p19/bin/sh"
checking for references to /build in /nix/store/xj385hw10jsvcmsw00xbd3h9jffmj14s-xfstests-2018-04-11...
/nix/store/xj385hw10jsvcmsw00xbd3h9jffmj14s-xfstests-2018-04-11

Success on aarch64-linux (full log)
Attempted: xfstests
Partial log (click to expand)
shrinking /nix/store/ramm2bpldcii3m5v6zgrvmzvdrdjgfx1-xfstests-2018-04-11/lib/xfstests/ltp/growfiles
shrinking /nix/store/ramm2bpldcii3m5v6zgrvmzvdrdjgfx1-xfstests-2018-04-11/lib/xfstests/ltp/fsx
shrinking /nix/store/ramm2bpldcii3m5v6zgrvmzvdrdjgfx1-xfstests-2018-04-11/lib/xfstests/ltp/fsstress
shrinking /nix/store/ramm2bpldcii3m5v6zgrvmzvdrdjgfx1-xfstests-2018-04-11/lib/xfstests/ltp/doio
strip is /nix/store/qg2agrqkf240s656d207zqhipl0bc2id-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/ramm2bpldcii3m5v6zgrvmzvdrdjgfx1-xfstests-2018-04-11/lib  /nix/store/ramm2bpldcii3m5v6zgrvmzvdrdjgfx1-xfstests-2018-04-11/bin
patching script interpreter paths in /nix/store/ramm2bpldcii3m5v6zgrvmzvdrdjgfx1-xfstests-2018-04-11
/nix/store/ramm2bpldcii3m5v6zgrvmzvdrdjgfx1-xfstests-2018-04-11/bin/xfstests-check: interpreter directive changed from "/bin/sh" to "/nix/store/9rv2bzx7jz6wjbaxij5qq580qvzksj4i-bash-4.4-p19/bin/sh"
checking for references to /build in /nix/store/ramm2bpldcii3m5v6zgrvmzvdrdjgfx1-xfstests-2018-04-11...
/nix/store/ramm2bpldcii3m5v6zgrvmzvdrdjgfx1-xfstests-2018-04-11


Allow for custom latency and error handling

The standard method of simply calling the PING command does not take
into account failures of the ping method.  The added client option
LatencyHealthFunc(c *Client) bool allows for failures to be taken into
account, along with LOADING errors when using persistent Redis.  The
default behavior has been kept exactly the same as before.
Also adds a client option OnErrFunc(n NodeExt, err error) that exposes
a very restricted Node interface to a custom function that can mark the
node as failed (or choose not to) based on the error gotten.  E.g. a
connection refused error could cause the node to be marked as failed,
unlike the current client behavior.

I think the remaining lint issues are from unrelated code.

As is it is just a bunch of hooks that probably allow fixing your specific problem but are confusing/opaque for everyone else. It is not clear how to use this and even the problem you are trying to solve ("failures of the ping method" does not tell me much).


Listening terminates program

Okay, here is a very short console app which is terminating after StartListeningAsync()... Do you know, what could be the problem?
class Program
{
    static void Main()
    {
        var p = new Program();
        p.Start();
    }

    private async void Start()
    {
        var server = new Server();
        await server.Start();
        Console.WriteLine("... Server started");
        while (true)
        {
            Thread.Sleep(100);
        }
    }
}

public class Server
{
    public async Task Start()
    {
        var listenPort = 11000;
        var listener = new TcpSocketListener();

        // when we get connections, read bytes until we get -1 (eof)
        listener.ConnectionReceived += async (sender, args) =>
        {
            var client = args.SocketClient;

            while (true)
            {
                // read from the 'ReadStream' property of the socket client to receive data
                var nextByte = await Task.Run(() => client.ReadStream.ReadByte());
                Debug.Write(nextByte);
            }
        };

        // bind to the listen port across all interfaces
        await listener.StartListeningAsync(listenPort);
    }
}

Hello and apologies for the delay in responding -
Your code for the Server class looks fine to me, I think that it may not actually be terminating at StartListeningAsync(). Rather, because you are not awaiting p.Start(), the execution of Main() continues immediately* after the call to p.Start(), therefore finishing and tearing down the application. The IDE is probably giving a warning to this effect. It might be useful to read up a little on async/await to help understand why this is the case.
A quick fix will be to change Program.Start() from async void to async Task, then in Main() you should be able to call p.Start().Wait(), to ensure the program doesn't terminate early. That is not code we would normally write in a non-console situation, but I think it is OK here because of the different threading mechanism of the console. If you do hit a deadlock (nothing happens later when you expect it to), you could change your code to Task.Run(()=> p.Start()).Wait(). Again, if you read up on async it will be helpful here.
Please re-open if this didn't solve your problem. I will respond to the sockethelpers question shortly!


New dedicated API for Relationship Update (jsonapi-relationship-assignee)

Write a new separate API that will update Assignee-Relationship for a WorkItem.
Refer : http://jsonapi.org/format/#crud-updating-relationships

@aslakknutsen After yesterday's discussion, do we need this issue ?
It is not in the sprint, still should I keep it in backlog for future work ?
Related work done in here. No PR raised yet because much of the code base (ground work) is similar to #482 .

I'd say: yes we need it. For work item links I'm in the middle of reusing most of my controller and test code to implement CRUDL operations on /api/workitems/:id/relationships/links.

Cleaning up unwanted issues.

Nah, we could drop the specific relation endpoints for now. Patch on the owning resource works for now.


Configure Jira's project screens automatically for required customfields

This app requires a few custom fields:

Epic Name (aka Issue.epic_name)
Epic Link (aka Issue.epic_ref)
Story Points (aka Issue.estimate)

By default, items 1 and 2 are created by Jira automatically when a project is created. Item 3 is available in Jira by default, but not configured on a project.
Implement the various API calls necessary to add this field to a given project. Then jiracli can recover automatically from JiraNotConfigured errors (assuming the user is an admin!)
Relates to #16.

Closed in favour of #16


Optional prefetching based on percent to ttl

#31 Wasn't sure of contribution requirements. Hopefully I did all right. ^_^
Demo gist here

see comment in https://github.com/tcs-de/nodecache/issues/31#issuecomment-112399603


Question: How to avoid the manual work in updating SSMS generated schema for bablefish issue fix changes for multiple branches of same project

Hi Alex @staticlibs,
We are currently following below steps for upgrade,
Generate the database schema from source database in SSMS generate scripts option, and the alter schema manually to remove out unneeded scripts and updating tables, function's, view's and stored procedure's manually to fix babelfish issues. Then execute the updated schema in babelfish connection string to create the database and schema in pstgreSQL.
The point is source database can be dev, main, anything else.  Every time we can't manually edit the schema file and append babelfish fix changes, since there are chances for human error to miss any fix.
Is there any automatic process you are following where process can take the input as SSMS generated schema and gives us the output as babelfish issue fixed schema? In the automatic process we can still write the babelfish issues fix changes.

Hi @psrinivasa2 , I'm working on a set of guidelines over the next week that address this issue. What tools are you using today to manage your DevOps pipeline with SQL Server code changes? I can take this into consideration as I put the guidelines into place.
BTW, I recommend getting a Claude.AI Pro subscription to assist your effort. You can use Claude.AI to address many of your concerns, including this one. It's all in the Prompt instructions feature with Claude projects.
For example, in my blog post https://medium.com/@rmoswi/so-long-and-thanks-for-all-the-strings-mastering-string-agg-53dd683b562a, I used Claude to help write and test the code for this article. When I get the desired result, I ask Claude to generate an Instruction that I can use to add to the Project's instruction set.
Thanks,
Bill

Check out this YouTube video:
Claude’s AMAZING ‘Custom Instructions’ Feature! (Full Guide)
This changed the way that I do anything with SQL code forever! Part of the related project I'm working on is to create a model Claude.ai project for workarounds and optimization of T-SQL for Babelfish that's I'll post in the https://github.com/bill-ramos-rmoswi/babelfish_postgresql_towel repo,

Hi Bill,
Unfortunately my organization has blocked all the AI tools including above mentioned Claude.AI too.
I was expecting something like a PowerShell scripts where I can write update, remove and insert scripts or any other simple equivalent

@psrinivasa2 , ideally you need to move the "source of truth" DDL out from MSSQL to not rely on SSMS schema export. For example to do schema export once, split the schema SQL into the number of SQL files and add a PowerShell (or Python/C# etc) script that needs to be run to create the schema in a clean DB. This script should check the DBMS name on startup and then to execute appropriate SQL files including/excluding Babelfish specific bits as necessary. And all subsequent schema changes should go through these SQL files before being applied to MSSQL. Schema update logic ("if exists" checks) also can be incorporated into such script. This effectively implements a schema migration tool for your app.
If it is not possible to move "source of truth" DDL out from MSSQL (because of organizational reasons) and SSMS schema export is required, then the script described above is going to be Babelfish specific. It needs to take SSMS-exported SQL as as input and modify/decorate it as necessary before executing it in Babelfish. Because the schema is going to be more or less the same, I think you can get away with regular expression matching and string manipulation to split/extract/modify the SQL without doing the actual parsing. Full SQL parsing is also possible from such script, though in this case C# or Java may be more convenient to include ANTLR parser there like Babelfsh Compass is doing. If you also need to automate the step of exporting data from MSSQL (to do it from script, not from MSSQL), there is sqltoolsservice for this, though I don't have first hand experience with its usage.

Thanks Alex, I will do try out the suggestions


Update Composer dependencies (2021-06-20-00-04)

Visual regression test passed!
View the visual regression test report


Added support for top-down / bottom-up shades

This plugin is awesome - thank you for your work on it!
I added some basic support for Top-Down / Bottom-Up shades (i.e., shades that can open either up or down).  The current plugin works with these shades, but they always open "bottom-up" (like a standard shade).  People generally get Top-Down / Bottom-Up shades for privacy, so they will normally want the shades down from the top.  These changes provide a config setting to specify whether Top-Down / Bottom-Up shades should open top-down or bottom-up.
The current plugin was hard-coded to control the "bottom-up" functionality by specifying feature "04" in the CMD_POS_SET method of Bridge.js.  The "top-down" functionality is controlled by specifying "18" instead of "04."  For example, "$pss00-04-128" will open shade 00 to 50% by moving the lower rail up, and "$pss00-18-128" will open that same shade to 50% by instead moving the upper rail down.  I added a parameter to CMD_POS_SET (and the functions that call it) to specify which shade feature to control (i.e., "04" or "18").
I also added some some simple code to check whether or not a shade has top-down / bottom-up capabilities.  The shade type is specified in the "$cr" output from the Platinum Hub.  My "Duette Honeycomb" top-down / bottom-up shades are reported as shade-type "02."  My understanding is that shade type "13" corresponds to "Vignette Roman Shades" with top-down / bottom-up functionality.  The code records the shadeTypeId from the $cr output and stores it with the rest of the room info.  It also stores the shadeTypeId in the BlindAccessory, which uses it to decide whether to use feature "04" or "18" to control the shades.
For normal shades, it should only ever use feature "04" (bottom-up).  For top-down / bottom-up shades (i.e., shades with shadeTypeId "02" or "13"), it will decide whether to use feature "04" (bottom-up) or "18" (top-down) based on the "topDownBottomUpBehavior" setting from config.json.
I've tested this on my top-down / bottom-up shades, and it works great.  These changes should not affect the behavior of standard shades (i.e., bottom-up only), but I don't have any standard shades to test.
I hope this is helpful.  Let me know if you have any questions.

Also, FYI, I originally learned about the shade types and feature IDs from this old thread about a Platinum plugin for Vera:
http://forum.micasaverde.com/index.php/topic,32344.0.html
In case you haven't seen it, here's a zip file with the code for that plugin.
The L_PlatinumShade.lua file at lines 242 - 278 documents the various shadeTypes and features that each one supports.  I haven't confirmed all of the information in that file, but it was all correct for my Duette top-down / bottom-up shades.
That plugin has some other interesting capabilities, like being able to read and invoke "Scenes" created in the Platinum app and being able to set shades to their "intermediate stop" positions.

thanks. I always wondered what the 04 was for.
Looks good to me, pulled it over and tested and worked fine on my bottom-up shades. I'll merge it and cut a release.
I thought about adding support for scenes (I found enough info on how to read and execute), but wasn't sure exactly how to expose them (on/off switch, I guess?), plus I figured the platinum gateway app was so clunky it would be easier to just set up and use scenes directly in Homekit.

Thanks!
Yeah, I'm not sure adding support for the platinum scenes would be worth it, especially since they are so basic.
I may do some more work on this top-down / bottom-up functionality if I get inspired.  Rather than just having a flag to specify which one to control, the more elegant solution would be to give each blind accessory two separate WindowCovering services.  I tried that in the HomeKit simulator, and it puts up two sliders side by side, which is pretty cool.  That would also make sense for the other Hunter Douglas models that have multiple features (e.g., roman blinds that can raise and lower and also adjust the vane angle).  So basically, one HomeKit service per Hunter Douglas feature.  It seems like it would be pretty straightforward, but it would involve a bit more thought and this seemed like a good first step.


Can you provide a pretrained model?

You can find it in HairNet/network/experiments/ckpt/
: )

There is only  a ckpt-7840.meta file, but the corresponding ckpt-7840.ckpt file is missing.

Sorry, I've uploaded it to BaiduYun. You can download it from the link in readme now.

Thank you very much :)

I cant download the model from link on baidu. Can i please get a google drive link instead if possible?
Thanks


Commands don't work

So, commands don't seem to work for me. I'm running SP-Tarkov. After some mild trial-and-error, the trainer loads, but commands to toggle anything don't work.

Hi

Are you using a release or are you compiling yourself ?
What is your EFT and sptarkov versions ?

Closing given no responses were given

I have the same problem,
Using release
sp-tarkov versions <IP_ADDRESS>53


Test: HTML tag auto close

Test for #2246
Complexity 2

[x] any os @joaomoreno
[x] any os @rebornix

In a HTML file

typing the > of <sometag> will add the closing tag </sometag>.
typing '/' of </ will also close the tag.

test that this works also for tags with attributes
test that selfclosing tags (e.g. img, br) will not be closed
test that the closing tag name matches the last unopened tag
test that this can be turned off with setting html.autoClosingTags

It's pretty good 👍


"Allow automatic reverse pointer creation on record updates?" fails with  Error: 'NoneType' object has no attribute 'add_setting'`

When checking the box for  "Allow automatic reverse pointer creation on record updates?" under settings in a zone, there is a popup saying "There is something wrong, please contact Administrator."
And the following is logged:
domain.py:915] ERROR - Cannot change domain setting. Error: 'NoneType' object has no attribute 'add_setting'
Anyone have any clues what's causing this?
Edit: same with " Allow on-demand creation of records via DynDNS updates?"

@pentiumoverdrive I'll take a look in the next few days. I may have broke it with some of my recent updates on the mobile-first PR.
I can't much give a lot of advice without knowing more details about what version of the application you're running though...

I cloned the repo last day (24th). But how can I see which version? The web ui doesn't give much away regarding version or I'm simply blind :P

@pentiumoverdrive if you're working off of the primary Branch then you have the dev version that is known to be unstable.
If you're trying this for a production application, I recommend pulling the 0.3.0 release which is stable.
I do have a task to add the current version to the application footer very soon.

@pentiumoverdrive I found the issue and indeed, when I updated the UI to be more UX friendly, it broke the legacy code that was poorly implemented. I have just pushed a fix to the primary branch for this.

Hello, I am on Version 0.4.1, and have what I believe to be similar error.
As soon as I enabled "Auto PTR creation" under "Edit Zone", when I go back to the "Changelog" on the noted zone, I get a HTTP 500 Error.
The following is a section from the /var/log/syslog
Aug  6 00:44:09 ip-172-32-10-226 gunicorn[612]: [2024-08-06 00:44:09,543] [app.py:1449] ERROR - Exception on /domain/testtest/changelog [GET]
Aug  6 00:44:09 ip-172-32-10-226 gunicorn[612]: Traceback (most recent call last):
Aug  6 00:44:09 ip-172-32-10-226 gunicorn[612]:   File "/var/www/html/pdns/flask/lib/python3.10/site-packages/flask/app.py", line 2073, in wsgi_app
Aug  6 00:44:09 ip-172-32-10-226 gunicorn[612]:     response = self.full_dispatch_request()
Aug  6 00:44:09 ip-172-32-10-226 gunicorn[612]:   File "/var/www/html/pdns/flask/lib/python3.10/site-packages/flask/app.py", line 1519, in full_dispatch_request
Aug  6 00:44:09 ip-172-32-10-226 gunicorn[612]:     rv = self.handle_user_exception(e)
Aug  6 00:44:09 ip-172-32-10-226 gunicorn[612]:   File "/var/www/html/pdns/flask/lib/python3.10/site-packages/flask/app.py", line 1517, in full_dispatch_request
Aug  6 00:44:09 ip-172-32-10-226 gunicorn[612]:     rv = self.dispatch_request()
Aug  6 00:44:09 ip-172-32-10-226 gunicorn[612]:   File "/var/www/html/pdns/flask/lib/python3.10/site-packages/flask/app.py", line 1503, in dispatch_request
Aug  6 00:44:09 ip-172-32-10-226 gunicorn[612]:     return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
Aug  6 00:44:09 ip-172-32-10-226 gunicorn[612]:   File "/var/www/html/pdns/flask/lib/python3.10/site-packages/flask_login/utils.py", line 290, in decorated_view
Aug  6 00:44:09 ip-172-32-10-226 gunicorn[612]:     return current_app.ensure_sync(func)(*args, **kwargs)
Aug  6 00:44:09 ip-172-32-10-226 gunicorn[612]:   File "/var/www/html/pdns/powerdnsadmin/decorators.py", line 75, in decorated_function
Aug  6 00:44:09 ip-172-32-10-226 gunicorn[612]:     return f(*args, **kwargs)
Aug  6 00:44:09 ip-172-32-10-226 gunicorn[612]:   File "/var/www/html/pdns/powerdnsadmin/decorators.py", line 48, in decorated_function
Aug  6 00:44:09 ip-172-32-10-226 gunicorn[612]:     return f(*args, **kwargs)
Aug  6 00:44:09 ip-172-32-10-226 gunicorn[612]:   File "/var/www/html/pdns/powerdnsadmin/routes/domain.py", line 227, in changelog
Aug  6 00:44:09 ip-172-32-10-226 gunicorn[612]:     changes_set = extract_changelogs_from_history(histories)
Aug  6 00:44:09 ip-172-32-10-226 gunicorn[612]:   File "/var/www/html/pdns/powerdnsadmin/routes/admin.py", line 122, in extract_changelogs_from_history
Aug  6 00:44:09 ip-172-32-10-226 gunicorn[612]:     if "add_rrsets" in entry.detail:
Aug  6 00:44:09 ip-172-32-10-226 gunicorn[612]: TypeError: argument of type 'NoneType' is not iterable


reproduce glue error when non-recursive tag union contains list of recursive tag union

DON'T MERGE ME
This is not a real PR, just a convenient way to send @rtfeldman an SSCCE for a problem in glue generation!
The code in this PR (namely, example/recursive-shenanigans/platform/main.roc) causes the glue generation to fail. Specifically, here's some output:
cargo run -- glue ./examples/recursive-shenanigans/platform/main.roc ./examples/recursive-shenanigans/platform/src/glue.rs
    Finished dev [unoptimized + debuginfo] target(s) in 0.19s
     Running `target/debug/roc glue ./examples/recursive-shenanigans/platform/main.roc ./examples/recursive-shenanigans/platform/src/glue.rs`
thread 'main' panicked at 'internal error: entered unreachable code: The type alias Structure(TagUnion(UnionLabels { length: 1, labels_start: 9, variables_start: 21, _marker: PhantomData }, 2)) was not an Apply(Symbol::LIST_LIST) as expected, given that its builtin was Builtin::List(Union(NonNullableUnwrapped([Builtin(List(RecursivePointer))])))', crates/glue/src/types.rs:1023:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

oh, worth noting that the existing glue.rs in this PR is a red herring—it was generated for another permutation of this error and it's not relevant for the purposes of demonstrating this bug (which makes this not really a SSCCE but whatever.)


[WIP] Better WPF support

I do not really understand what I do, but I want to fix https://github.com/fsprojects/Paket/issues/1260

@forki It seems that it works, at least in my cases.
Should I add integration tests on something else?

That would be great. (otherwise I will probably  break it)
There are many many integration tests that you can copy. Just look at bit around

This PR is ready for merge after review

Awesome!