getTransactionDetails() results in precondition failure

calling getTransactionDetails() with a transactionHashId is resulting in
BigInt/Subtraction.swift:117: Precondition failed
the particular transaction is a standard erc20 transfer, if that makes any difference.
[edit] it appears to be related to rinkeby, and Ethereum mainnet, as I'm not seeing the same problem on binance testnet - I have another issue there, opening a separate issue for that
relevant code and output
req.logger.notice("Getting transaction details")
req.logger.notice("hash: \(txn_id.prefix(6))...\(txn_id.suffix(4))")
let txn:TransactionDetails
 do {
     txn = try web3.eth.getTransactionDetails(txn_id)
 } catch {
     req.logger.error("Unable to get transaction details")
     return false
}
req.logger.notice("details obtained")

is resulting in:
[ NOTICE ] Getting transaction details [request-id: 20490C52-4EEE-4F1F-B785-3A20A163A55E]
[ NOTICE ] hash: 0x0e07...0eef [request-id: 20490C52-4EEE-4F1F-B785-3A20A163A55E]
BigInt/Subtraction.swift:117: Precondition failed
2022-02-05 11:21:29.280477-0500 Run[25064:23766106] BigInt/Subtraction.swift:117: Precondition failed
Program ended with exit code: 9

Using
Web3Swift 2.5.0
BigInt 5.3.0

It appears this problem is related to EIP-1559 and the London hard fork... basically the code crashes if you try to get transaction details on a transaction that conforms to EIP-1559. I have a fix to keep it from crashing, but derived values, like the sender address are incorrect.

A EIP-1159 transaction will return with v set to 0 or 1. This results in the impliedChainID to try a subtraction that results in an overflow. Normally this would not be an issue, the value just comes back as 2's compliment. However with BigInt, this results in a precondition trigger, that ultimately results in the programs execution being halted... this is not good.
from EthereumTransaction
    public var inferedChainID: BigUInt? {
       get{
           if (self.r == BigUInt(0) && self.s == BigUInt(0)) {
               return self.v
           } else if (self.v == BigUInt(27) || self.v == BigUInt(28)) {
               return nil
           } else {
               return ((self.v - BigUInt(1)) / BigUInt(2)) - BigUInt(17)
           }
       }
   }

With EIP-1559 this results in (0-1)/2-17 or (1-1)/2-17 in both cases we end up inn an overflow, which triggers a precondition failure here in BigInt/Subtraction
    public mutating func subtract(_ other: BigUInt, shiftedBy shift: Int = 0) {
        let overflow = subtractReportingOverflow(other, shiftedBy: shift)
        precondition(!overflow)
    }

This is extremely undesirable. A guard check needs to be placed to ensure that the overflow condition is never met. While this may result in other data being incorrect, but will not crash the program. With some more work, additional checks could be added to reject EIP-1159 transactions altogether, at least until the library is capable of properly supporting them.


Experimental: Frame-by-frame video processing pipeline

This PR introduces an experimental feature to animate source videos using a driving video using the LivePortrait model. The changes include:

Adjusted the configuration to accept video input.
Created a new pipeline that processes videos frame-by-frame.

Key changes:

Modified ArgumentConfig to include video-related parameters.
Created live_portrait_video_pipeline.py , which allows users to animate a source video using a driving video, applying the LivePortrait transformations to each frame.

This PR is currently experimental and may require further optimization and testing.
To use this:

Provide a source video path using the --source_video argument.
Provide a driving video path using the --driving_info argument.
Specify an output directory using the --output_dir argument.

Update to come.


Connect parse_dts() to infer_prog()

Codecov Report

Merging #202 (73274c0) into main (c6936ca) will decrease coverage by 0.48%.
The diff coverage is 30.76%.

@@            Coverage Diff             @@
##             main     #202      +/-   ##
==========================================
- Coverage   94.75%   94.26%   -0.49%
==========================================
  Files          31       31
  Lines        3490     3507      +17
==========================================
- Hits         3307     3306       -1
- Misses        183      201      +18

Impacted Files
Coverage Δ

crates/crochet/src/lib.rs
0.00% <0.00%> (ø)

crates/crochet_infer/src/infer_expr.rs
92.55% <0.00%> (-5.57%)
:arrow_down:

crates/crochet_infer/src/infer.rs
97.43% <100.00%> (-0.07%)
:arrow_down:

crates/crochet_infer/src/lib.rs
99.19% <100.00%> (+<0.01%)
:arrow_up:

crates/crochet_infer/src/types/type.rs
68.42% <0.00%> (-1.76%)
:arrow_down:

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


Find Command: fix unable to find properly

Fixes #252
Fixes #249
Fixes #248

Codecov Report

Merging #278 (a5dea30) into master (7b45eab) will decrease coverage by 0.34%.
The diff coverage is 36.36%.

@@             Coverage Diff              @@
##             master     #278      +/-   ##
============================================
- Coverage     58.62%   58.27%   -0.35%
  Complexity      421      421
============================================
  Files            90       91       +1
  Lines          1716     1728      +12
  Branches        179      180       +1
============================================
+ Hits           1006     1007       +1
- Misses          667      678      +11
  Partials         43       43

Impacted Files
Coverage Δ

src/main/java/seedu/unify/model/task/Date.java
79.16% <ø> (ø)

...edu/unify/model/task/TaskContainsTagPredicate.java
0.00% <0.00%> (ø)

...in/java/seedu/unify/model/util/SampleDataUtil.java
20.00% <0.00%> (ø)

...va/seedu/unify/logic/parser/FindCommandParser.java
56.52% <40.00%> (-12.23%)
:arrow_down:

...n/java/seedu/unify/logic/commands/FindCommand.java
100.00% <100.00%> (ø)

...nify/model/task/NameContainsKeywordsPredicate.java
100.00% <100.00%> (ø)

...du/unify/model/task/TaskContainsDatePredicate.java
66.66% <100.00%> (ø)

Continue to review full report at Codecov.

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


Added Billboard.js

While it's a fork of C3, it's actively maintained, tracks D3 releases more closely and has over 3K stars on Github.

Library is actively maintained. Approved.


Fix OOM error in adhoc training

Smaller batch size (from 1000 to 250) seems to help.

lowered the values.  fixed.

Error still showing up:

Might be related to small notebook instance and many Jupyter notebooks open. Shutting down notebooks and re-running worked.


MSID: 86943 Version: 2 DOI: 2<IP_ADDRESS>5596

[PLACE MANUSCRIPT AND EDITOR DETAILS HERE WHEN AVAILABLE] See step 3
[PLACE PDF URL HERE WHEN AVAILABLE] See step 7
Step 1. Inform bioRxiv
Who can help: @QueenKraken, @nlisgo, @scottaubrey

[ ] Manuscript is in data hub index (https://data-hub-api.elifesciences.org/enhanced-preprints/docmaps/v1/by-publisher/elife/get-by-manuscript-id?manuscript_id=86943)

or (only one should be ticked. remove other from description.)

[ ] Confirmed with Ted at bioRxiv that MECA archive is available

Send the following email to Ted and wait for his reply.
Hi Ted,

Please can you prepare the preprint MECA for 10.1101/2<IP_ADDRESS>5596

Thanks

Step 2. Create preview of manuscript
Who can help: @fred-atherden, @nlisgo, @scottaubrey

[ ] Manuscript is available for preview (https://prod--epp.elifesciences.org/preview/86943/v2)

[ ] Trigger import for staging: https://prod--epp.elifesciences.org/import
[ ] Sync data folder with s3://prod-elife-epp-data/data
[ ] Trigger import for staging: https://staging--epp.elifesciences.org/import
[ ] Sync data folder with s3://staging-elife-epp-data/data
[ ] Pull request created to enhanced-preprint-data
[ ] Post link to pull request below

Pull request: [PLACE LINK TO PULL REQUEST HERE]
Detailed instructions: https://github.com/elifesciences/enhanced-preprints-data#add-a-manuscript
Step 3: Awaiting public reviews
Who can help: Editorial team

[ ] Public reviews available on sciety (https://sciety.org/articles/activity/10.1101/2<IP_ADDRESS>5596)
[ ] Manuscript and editor details at the top of this issue (Supplied by Editorial team)
[ ] Reviews returned by EPP - https://prod--epp.elifesciences.org/api/reviewed-preprints/86943/v2/reviews

Example
"msas": "Genetics and Genomics", "Neuroscience"
"msid": "84628"
"version": "1"
"preprintDoi": "10.1101/2<IP_ADDRESS>4241"
"articleType": "Reviewed Preprint"
"status": "Published from the original preprint after peer review and assessment by eLife."

"Reviewed Preprint posted": "2023-01-02"
"Sent for peer review": "2022-10-28"
"Posted to bioRxiv": "2022-11-21" (link: "Go to bioRxiv": "https://www.biorxiv.org/content/10.1101/2<IP_ADDRESS>4241v1")

Editors:
Reviewing Editor
Michael B Eisen
University of California, Berkeley, United States
Senior Editor
Michael B Eisen
University of California, Berkeley, United States

Step 4: Modify manuscripts.json (no PDF)

[ ] Reviewed preprint is published to EPP (https://elifesciences.org/reviewed-preprints/86943)

[ ] Pull request created to enhanced-preprint-client
[ ] Pull request switched to "Ready for review"
[ ] Post link to pull request below

[ ] Request that a doi be registered

[ ] Post link to #enhanced-preprint comment below

Pull request: [PLACE LINK TO PULL REQUEST HERE]
#enhanced-preprint comment thread: [PLACE LINK TO COMMENT HERE]

Instructions to modify manuscripts.json

Visit: https://github.com/elifesciences/enhanced-preprints-client/actions/workflows/publish-manuscript.yaml
Click: Run workflow
Complete the form and click "Run workflow"
A successful run should result in a new pull request at https://github.com/elifesciences/enhanced-preprints-client/pulls
Open the pull request and click the "Ready for review" button to trigger tests
Once the tests pass and you are happy with the changes the PR can be merged

Example pull request: https://github.com/elifesciences/enhanced-preprints-client/pull/334/files
Once the pull request is merged in it should be available a few minutes later.

Request that a doi
Post the following in #enhanced-preprint:
@Fred can you register a doi for https://elifesciences.org/reviewed-preprints/86943

Step 5: Awaiting search reindex

[ ] Reviewed preprint is avaliable on journal homepage (https://elifesciences.org)

The search reindex is triggered once an hour. We need the reviewed preprint to be indexed as the search application serves the journal homepage.

Additional info
If needed, the jenkins pipeline to reindex search can be triggered sooner.
https://alfred.elifesciences.org/job/process/job/process-reindex-reviewed-preprints/

Step 6: Published! Request PDF generation

[ ] Post the link to the PDF url at the top of the issue

[ ] Post link to #enhanced-preprint comment below

#enhanced-preprint comment thread: [PLACE LINK TO COMMENT HERE]
Post the following to the #enhanced-preprint on slack:
@Ryan Dix-Peek please can you generate a PDF for https://elifesciences.org/reviewed-preprints/86943

Step 7: Introduce PDF to data folder and git repo

[ ] PDF is avaliable at https://github.com/elifesciences/enhanced-preprints-data/raw/master/data/86943/v2/86943-v2.pdf

Detailed instructions: https://github.com/elifesciences/enhanced-preprints-data#add-a-pdf
Step 8: Add PDF url to manuscripts.json

[ ] Reviewed preprint PDF is available for download (https://prod--epp.elifesciences.org/reviewed-preprints/86943)

[ ] Pull request created to enhanced-preprint-client
[ ] Pull request switched to "Ready for review"
[ ] Post link to pull request below

[PLACE LINK TO PULL REQUEST HERE]

Instructions to add PDF url to manuscripts.json

Visit: https://github.com/elifesciences/enhanced-preprints-client/actions/workflows/add-pdf-url-to-manuscript.yaml
Click: Run workflow
Complete the form and click "Run workflow"
A successful run should result in a new pull request at https://github.com/elifesciences/enhanced-preprints-client/pulls
Open the pull request and click the "Ready for review" button to trigger tests
Once the tests pass and you are happy with the changes the PR can be merged

Example pull request: https://github.com/elifesciences/enhanced-preprints-client/pull/397/files
Once the pull request is merged in it should be available a few minutes later.

Step 9: Done!

[ ] Kettle is on!

V2 should use https://www.biorxiv.org/content/10.1101/2<IP_ADDRESS>5596v3


Use cookie to remember place in QnA

It would be nice if a visitor could leave a QnA and come back to the same place.

Thoughts in next steps: (1) save to cookie: current url and a string of A & X selections, e.g., 1.2,1.2.1,<IP_ADDRESS>[input],<IP_ADDRESS>.1; (2) read cookie to see if url matchs current page, if yes, step through selections.


Add Declarative Structured Concurrency and Sheduling

https://vorpus.org/blog/notes-on-structured-concurrency-or-go-statement-considered-harmful/

https://github.com/StephenCleary/StructuredConcurrency

https://github.com/apple/swift-evolution/blob/main/proposals/0304-structured-concurrency.md

https://github.com/apple/swift-evolution/blob/main/proposals/0306-actors.md

https://github.com/apple/swift-evolution/blob/main/proposals/0313-actor-isolation-control.md

https://github.com/apple/swift-evolution/blob/main/proposals/0336-distributed-actor-isolation.md

https://reactivex.io/documentation/scheduler.html

https://github.com/dotnet/reactive/blob/main/Rx.NET/Source/src/System.Reactive/Concurrency/TaskPoolScheduler.cs

https://stackoverflow.com/questions/4331262/task-continuation-on-ui-thread/4331287#4331287

https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task.continuewith?view=net-7.0&redirectedfrom=MSDN#System_Threading_Tasks_Task_ContinueWith_System_Action_System_Threading_Tasks_Task__System_Threading_Tasks_TaskContinuationOptions_

https://devblogs.microsoft.com/premier-developer/asynchronous-and-multithreaded-programming-within-vs-using-the-joinabletaskfactory/#introducing-the-joinabletaskfactory
https://learn.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2013/dn268939(v=vs.120)?redirectedfrom=MSDN


Update _config.yml

Update nav bar items in docs

Linked Issue
Change Description

Add "guides" link to nav bar
Change main action to be "Try without installing" like in main website
Change "community" to slack to improve conversions
Change "Docs" to "Home" for clarity

Background
Refresh on nav bar after a long time it wasn't updated
Breaking Change?
No

@ozkatz is it relevant or can we close this one?


TimePicker example doesn't keep the time that you set from the picker

Select a time in the picker (other than 12:00 AM)
Note that the time in the control has not changed after you close the picker

Version: <IP_ADDRESS>
RNW Version: 0.68.0

Usage example needs to be updated so it doesn't slam the time value back in.

@chrisglein Looking at the page my understanding of the control is that it won't store the time you have selected unless you hit the checkmark in the picker to confirm your selection. Simply clicking outside of the picker will have the same behavior as hitting the 'x' button (effectively cancelling your selection). When I click a time and hit the check button, the time saves, so I don't think a fix is needed here.


DShdmini Dead-zone threashold feature request

Hi, I Would like to request a feature for DShdmini to implement Dead-zone threashold, just like SCPtoolkit global configuration had. With DShdmini my camera/right stick keeps jittering around on its own. I Understand that steam has feature like this that you can just enable but it just doesn't seem to work at all for me, It actually won't work when playing, also when you enable steam input, it adds more latency which is obviously not great when playing competitively. Anyways I really appricate this project and would love for this feature to be added, thanks for reading!

Sounds reasonable indeed. Before it can become a reality I need to introduce a new way to fetch configuration. Seems like Microsoft hasn't planned a lot of registry access for poor user mode drivers. I'll cook something up in my usual time frame of 4 weeks to 6 months or so 😁

Nice! That is awesome, thank you so much :) ! can't wait to make the permanent switch from SCP to DSHD


Add infix feature for dynamic file selection

iOS and Android native developers have access to features that allow them to generate multiple apps from a single code base. At build time these features can help swapping out functionality, strings, assets, etc…
The use cases can vary; One app for each city for a bike app, different imagery and text for a festival app framework, different app for each country for a B2B app, etc…
For iOS this can be done with targets and in Android you can use gradle flavors. Up until now there is no similar facility in React Native for assets and js files. Inspired by the —platform switch, we propose —infix as the way to generate multiple apps from a single react native javascript code base.
Allowing the packager server to receive a query parameter (&infix=chicago), causing the selection of files to check for this infix in the file names for assets and js files;
Choosing:
test.chicago.js
over
test.js
The functionality is tested and working in combination with platform, (platform=ios&infix=chicago)
Choosing:
test.chicago.ios.js
over
test.ios.js
See unit tests from line 6191 at packager/react-packager/src/node-haste/__tests__/DependencyGraph-test.js for cases.
Main changes in node-haste:

ResolutionRequest
getPlatformExtension
getAssetDataFromName

Test Plan:
Unit tests added for main cases on levels of packager, DependencyGraph, Bundler, AssetServer.
Manually tested on clean project and easily repeatable at this example project
P.S.
There is two unit tests failing, that were already failing before this PR but skipped because of another test suite in the file having an fdescribe( instead of a describe(. I raised an issue #9192 about his but I'm not sure what to do with this is in the context of this PR. Simply disabling them seemed un-prudent.
P.P.S
Where to document this feature was not immediately obvious to me. If the core functionality is something you like, some guidance on documenting would be appreciated.

By analyzing the blame information on this pull request, we identified @davidaurelio and @frantic to be potential reviewers.

Implementation of : https://github.com/facebook/node-haste/issues/81
cc @brentvatne @davidaurelio @ide @nikki93 @cpojer

cc @deepaksisodiya @AbhishekCode

I really believe we should not expand our module resolution algorithm to be even more custom. I would recommend to use a system similar to the Platform module and inline these things in code instead and use dead-code-elimination to get rid of unwanted code.
For small differences:
if (App.is(MyApp)) {
  return <GreenButton />;
} else {
  return <RedButton />;
}

for big differences:
if (App.is(MyApp)) {
  const GreenButton = require('GreenButton');
  return <GreenButton />;
} else {
  const RedButton = require('RedButton');
  return <RedButton />;
}

every change we make to our resolution algorithm requires all tooling to move along, like linters, flow, Jest, everything.

Oh, also, can't you use platform extensions for this already or is the concern that you'd have to provide one file for all combinations of platform extensions?
Like, you could have a platform extension myapp-ios and fooapp-android. But as said, I guess the number of forks would explode then.

@cpojer Some of our immediate needs that are not covered by the examples you suggest are dynamic/conditional loading of Static Image Resources. From the docs:
// GOOD
<Image source={require('./my-icon.png')} />

// BAD
var icon = this.props.active ? 'my-icon-active' : 'my-icon-inactive';
<Image source={require('./' + icon + '.png')} />

Bad because the packager will not correctly load the image unless the path is known at package/bundle time.
Our apps have a lot of different image assets per app that need to be switched between depending on the specific app that is being bundled. Is there some other way we could prevent image resources from increasing app size other than using the native utilities (Xcode asset catalogs or Android drawable folder)?
Also, the node-haste package is now back in the react-native repo because Jest does not use it anymore. Does this mean that jest, linter and flow all have specific code in them to accommodate the platform file switch in react-native? Or are they simply unaware of this react-native specific resolution and they would be unaware of the infix resolution similarly?

I don't think this is something we'd want to adopt in React Native. Past experience has also shown us that automatically overriding certain modules in different apps leads to unmaintainable code. In fact, the whole .ios and .android suffix is a bit of an anti-pattern.
Instead prefer passing this all in from above. How about for each city you have a separate top-level container where you have an ApplicationConfig that is configured with the city-specific modules?

Ok, thank you for considering this. We are going to solve our problem using the native tooling provided for now.

To answer your question about node-haste and Jest: we are working on consolidating our infrastructure and are planning to kill node-haste in favor of jest-haste-map and jest-resolve which yield better performance. See Jest's packages.

@cpojer @javache Having built up some knowledge on the packager while working on this functionality, I feel reluctant to just let that knowledge fade without adding anything useful to the project. Is there any part of the jest restructuring in combination with RN that I could add to that would be in line with your plans?


fix serial number size mismatch with stlink_open_usb()

Looks good, i'm thinking where this has caused problems?

In my case I am using a STM32F410 Nucleo board and the serial number is long, the short array in stlib_prob_usb_devs() results in a partial serial number being captured, but the serial number compare in stlink_open_usb() is expecting a larger serial number and the serial compare in the while loop fails.
I think this would only be seen when the serial number is longer.

Yes I agree. Thanks for fixing.

:-)


Adding images or video

Is it possible to add videos or images as part of the question or answers?

Yes, you should be able to enter any standard HTML within the Q&A values.

Great. Thanks. I tried adding  within q:
"q": "How many oranges?",
but it seemed to break it. will try again. Thanks so much. awesome work.

oooh, never mind, i updated with:
"q": "
How many oranges?
"+             '',
And it works great!


contour via wasm in browser?

I just checked. It at least is possible to run qt OpenGL apps in the browser through WebAssembly. This is officially supported.
So the only unknown would be how to execute local executables (shell) and how to read/write config.

:scream: If you want to go that route, maybe I can help here and there.
Some early remarks:
Would it be possible to run the the terminal core without Qt as dep? Because that will pull in so many stuff into a wasm build resulting in really bad loading times. The config stuff I suggest to abstract, so it can be managed directly from JS side. Loading of executables? I guess you dont want to deliver an embedded shell, then it is a "someone's else problem" with wasm (bind it via a pty-bridge).

the terminal backend as well as terminal_renderer itself is completely Qt-free.
for PTY I'm having an abstract interface that can be arbitrarily implemented (I even have a MockPty so I can run unit tests on top of the Terminal API.
Qt vs wasm: I was actually creating that ticket because I realized that Qt has first-class support for Web Assembly. On the other hand, the only thing I need Qt for is window creating, and rendering into it, and input event capture. I think that can be also done without Qt. If it is just about providing a WASM widget, something that I'd think is the right way, that other web apps can load up and run, then I think we don't even need the contour frontend at all, but just use the existing backend and renderer libraries to create the target .wasm object. (my preferred solution).
embedding a shell: no, that's what the PTY interface is there for (I have no clue how you are doing that, it's magic to me right now), so yes, the caller should attach stdio to the WASM based widget and can do whatever he wants to do with it. Having a helper JS-Process API to aid that standard purpose might come in handy though. But again, that's all new-ground to me. :)

But, @jerch, I do not want to backstab you and your actual project! :-)
I am however curious to see how they perform next to each other.

But, @jerch, I do not want to backstab you and your actual project! :-)

No worries, I am in exploring mode regarding wasm anyway.

I am however curious to see how they perform next to each other.

Indeed, thats an interesting question. Imho the VT emulation part will be faster (2-3 times would be my guess), as long as the rendering can all be done within wasm. If not, you will suffer the same issues we have with our different renderers - any call to DOM stuff will be like hammering through a wall perfwise.
The input part will be interesting/tricky - thats actually a really bad hack in xterm.js currently to get most weird key combinations correctly mapped (we have lots of issues regarding that, because browser are not very stable in that field).

Font rasterization is easely done in wasm via freetype library. I am more concerned how to get the list of available fonts and load these files. Either i provide a good set of default fonts insid the binary (wise choice as fallback) and/or there will be an API exposed the wasm object user can use to supply the desired font file. Do i have actually wcc SS to the host file system or is that at least possible? (Would be the best case).

What is "wcc SS to the host file system"?
Wasm is a sandbox with almost no access to anything outside. There are attempts to get limited system access abstracted (WASI), but as far as I understand it, thats not meant for browser wasm engines. Means you'd have to load the font files into wasm on your own by some sort of JS-API around it.

Do i have actually wcc SS to the host file system...

Damn smartphones.... Let me repeat:
Do i actually have access to the host filesystem
But i think you already have me there answer. I would need a bridging API.


Network Information API

Network Information API http://dvcs.w3.org/hg/dap/raw-file/tip/network-api/index.html

This issue was imported from Google Moderator
Moderator votes: +8
Issue added by Mike Morris on 2012-04-05
To vote this issue up or down, simply include +1 or -1 in your comment.

Duplicate of #1031.


fmt: Scanf rejects \r\n at end of line on Windows

What version of Go are you using (go version)?

$ go version
go1.17.7

Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (v)?
windows 11 / amd64
go env Output
$ go env
set GO111MODULE=auto
set GOARCH=amd64
set GOBIN=
set GOCACHE=####\AppData\Local\go-build
set GOENV=####\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=####\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=####
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=###\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=####\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.17.7
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\msh20\AppData\Local\Temp\go-build1493363615=/tmp/go-build -gno-record-gcc-switches

same as in [this close issue](https://github.com/golang/go/issues/5391)
What did you do?
package main

import (
    "fmt"
    "strconv"
)

func main() {

    for {
        name := ""
        fmt.Print("Enter : ")
        fmt.Scanf("%s", &name)
        b1, _ := strconv.ParseBool(name)
        fmt.Printf("%T, %v\n", b1, b1)
    }

}

this happens on vscode in windows 11 and Windows-terminal with (Powershell, cmd, and bash) and the same issue with cmder terminal. this will not happen with wsl and with MobaXterm terminal, I did not make further checking with other terminals.
I added question in stackoverflow before opening this issue
What did you expect to see?
Enter : true
bool, true
Enter :

What did you see instead?
Enter : true
bool, true
Enter : bool, false
Enter :

Duplicate of #23562


Date and time separators

Hi, it's been a true nightmare getting this non-standardized stuff working. Not only is it non-standard, it refuses standards and replaces them with non-standards.
First of all most of the CLDR data is wrong, that is not your problem, i will report that to unicode.
But i'd like to request some more flexibility in setting up Globalize, like configuring separators, so i can get the standards right.
Eg. for danish, this is the standard 27-11-2017 11:23, but CLDR thinks it's 27/11/2017 11.23 (notice the dot time separator).
So to circumvent this (and to be future proof) i create and merge my own json gregorian formats that override the non-standard unicode data. All dashes for date separators and all colons for time separators, but what does Globalize do?  It replaces my colons with dots anyway! .. seriously? wtf!
I have confirmed the formats being correct by checking from browser console:
Globalize("da").cldr.main("dates/calendars/gregorian/dateTimeFormats/availableFormats")
All dateTime formats are correct, but the formatter still outputs 23.11
Globalize.formatDate(new Date(), { datetime: "short" }) get's it wrong, even Globalize.formatDate(new Date(), { raw: "HH:mm" }) get's it wrong!

Globalize has no data... All it knows comes from the CLDR json you pass in. Can you share your overrides with me in a gist?

It just boggles the mind that they hardcode the wrong separator. There are so many valid ones, so why hardcode the wrong one and refuse to accept an alternative? ..it boggles the mind.

Also, please share the unicode trac issue you filed?

I'll get back to you when i have something from unicode.
Until then can you explain why: Globalize.formatDate(new Date(), { raw: "HH:mm" }) replaces ":" with "." ?
Did i miss the point of raw ?

From googling it seems the Unicode data is correct, it is just incompatible with .NET because Microsoft uses their own custom formats, so i wont be taking this up with unicode after all and i doubt any attempts at getting Microsoft to change their ways about standards is a wasted effort.

Until then can you explain why: Globalize.formatDate(new Date(), { raw: "HH:mm" }) replaces ":" with "." ?

You could either override timeSeparator symbol or escape it in your pattern like ':'.
Given your statement, I'm closing this issue. Feel free to post additional comments if you think we should keep this open.


Tunnel doesn't work when VPC is referenced

Hi! I'm trying to use a single VPC across multiple SST apps and I can't get the tunnel to run from the consuming apps. Here's the setup:

App 1: infra-account-setup contains a shared VPC deployed to stage: alpha.

export const vpc = new sst.aws.Vpc('VPC', {
  az: 2,
  bastion: true,
  nat: 'ec2'
})

App 2: consumer-app has a postgres instance setup that references the vpc from the infra-account-setup:

const vpc = sst.aws.Vpc.get('Vpc', 'ID_FROM_APP_1')

new sst.x.DevCommand('Tunnel', {
  link: [vpc],
  dev: {
    command: `sst tunnel --stage alpha`,
    autostart: true
  }
})

=> This throws an error saying a tunnel isn't available at stage alpha. This is because the vpc is defined in the first app.

The tunnel works if I run sst tunnel --stage alpha from the infra-account-setup app but I want this tunnel to connect from the consumer-app as starting two separate repositories is a very poor DX currently.
Can anyone help here? This has been quite frustrating to figure out. Maybe @fwang ?

@fwang solved this via https://github.com/sst/sst/commit/fe2f41cbfb9632a3277cceb02414d1bd37fbc219


Warn when installing EOLed versions

Let’s print a warning to stderr when installing a Ruby version that’s been EOLed by its maintainers.
We don’t want to get into the business of applying unofficial backported security patches, but it feels similarly irresponsible to let people install vulnerable versions without notifying them first.

:+1: I agree to your suggestion.

Which Ruby versions have been EOLed?

1.8.x
1.9.2
?

and 1.9.3

:+1::+1::+1:
On Monday, April 13, 2015, Sam Stephenson<EMAIL_ADDRESS>wrote:

Let’s print a warning to stderr when installing a Ruby version that’s been
EOLed by its maintainers.
We don’t want to get into the business of applying unofficial backported
security patches
https://github.com/sikachu/ruby/commit/868cccadb59b83dfe2b13baf5a1881ec0c388634,
but it feels similarly irresponsible to let people install vulnerable
versions without notifying them first.
—
Reply to this email directly or view it on GitHub
https://github.com/sstephenson/ruby-build/issues/742.

And 2.0.0 now.

And technically 2.1 is also no longer supported. (Fixing just vulnerabilities doesn't count as "support").
I wrote a gem for these kinds of warnings: https://github.com/e2/ruby_dep/blob/master/lib/ruby_dep/warning.rb
Porting it to shell seems a bit too daunting for me.


add Creation Time

add Creation Time to the message sent to the person's dm (Close DM & Alart & Delete DM

When the person joins the channel again, it will be automatically added to the ticket

add pingmember to embed transfer

Update Move Log
#add log old category and new category

Add true false confing feeadback to massage feedback (In the feedback, only the individual gives stars and cannot send text)

Added /notive to send message to all tickets

Added support activity
Display the number of claim staff

Add cmd /addstaff [role]
Add cmd /viewstaff

Add cmd /closereson
And butten

The transcript should be sent as a button

Add cmd /purge

Set admin.support.ids = Can see and delete closed tickets


[QUESTION] Is this able to detect real human face?

Is this able to detect only real human face ??
I need to detect only real human face not image

in my project I'm asking user smile and wink to validate real face, you can track facial movements by adding classificationMode into the faceDetectionOptions

You can add classificationMode: 'all' in faceDetectionOptions  and then check for leftEyeOpenProbability, rightEyeOpenProbability and/or smilingProbability values.
You can ask your user to smile or blink then you'll know if it's a real human or a image.

closing due to inactivity

@nonam4 thanks i will try this


Cannot create card using file from internet

It uses content:// uri instead of absolute or path uri, everytime i add a video from internet, it says invalid file. Is there any way to change it to allow absolute uri too? Also I tried to find how to convert absolute uri to content uri, but none of them worked. Please suggest what to do.

No, this app does not support internet connection, so you should download video by youself, and select your downloaded video. Using path needs storage permission, but using file chooser with concent uri is enough for this app.

Actually I've implemented feature to download from internet, then I fetched the Uri of the file (file:///storage..) and even got the content uri (content://media/external...)
but, your app only accepts uri like of the format : content://com.android.providers.downloads.documents...
Is there any way to generate the accepted uri?

I think you don't need to generate a uri like this, this kind of uri is used when you choose file with content provider.
I think I make no limit of what uri should looks like, and just pass uri to thumbnail generator and exoplayer, so if your uri is acceptable for them, it should work.
I can not remember those because I've write them for a long time, so I think you'd better read the code.

Thanks for the reply. Actually it doesn't accept uris other than:  content://com.android.providers..
if it gets other than this, it says 'invalid live wallpaper file, removing.'
I've also studied your code for days, when it opens intent to choose video file, it returns the content uri (just like the above one). But, without using intent, we get other forms of uri only, and not the content provider uri one.
It would be really helpful for me if you enlighten me.


Update telegram.js for use with meteor.js

Coverage increased (+4.8%) to 97.619% when pulling a829e3ced65008df65e0206fad168a4d39604e4a on jcoretechnologies:master into 8b62f9bc648d38066ba09c94ce726a166f1b2707 on edisonchee:master.


Stop displaying reference at certain resolution

Blows up dom with rectangle elements, unintuitive.
Solution: bin reference.

Fixed #149


Compiling S Function on mac

Hi
I successfully compiled open fast using cmake. The cmake flags were
cmake .. -BUILD_OPENFAST_SIMULINK_API=ON -BUILD_TESTING=ON -BUILD_SHARED_LIBS=ON
Then I modified the MATLAB script create_FAST_SFunc.m with the appropriate paths.
When I execute the script, I got the following error:
----------------------------
Creating ./FAST_SFunc.mexmaci64

Building with 'Xcode with Clang'.
Error using mex
ld: warning: could not create compact unwind for _FAST_OpFM_Restart: stack subq
instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _FAST_OpFM_Init: stack subq instruction
is too different from dwarf stack size
ld: warning: could not create compact unwind for _FAST_Restart: stack subq instruction
is too different from dwarf stack size
ld: warning: could not create compact unwind for _FAST_CreateCheckpoint: stack subq
instruction is too different from dwarf stack size
ld: warning: could not create compact unwind for _FAST_Sizes: stack subq instruction is
too different from dwarf stack size
Undefined symbols for architecture x86_64:
  "___extenddftf2", referenced from:
      _FAST_OpFM_Init in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_Sizes in libopenfastlib.a(FAST_Library.f90.o)
  "___fast_subs_MOD_exitthisprogram_t", referenced from:
      _FAST_End in libopenfastlib.a(FAST_Library.f90.o)
  "___fast_subs_MOD_fast_createcheckpoint_t", referenced from:
      _FAST_CreateCheckpoint in libopenfastlib.a(FAST_Library.f90.o)
  "___fast_subs_MOD_fast_initializeall_t", referenced from:
      _FAST_OpFM_Init in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_Sizes in libopenfastlib.a(FAST_Library.f90.o)
  "___fast_subs_MOD_fast_linearize_t", referenced from:
      _FAST_Update in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_Start in libopenfastlib.a(FAST_Library.f90.o)
  "___fast_subs_MOD_fast_restorefromcheckpoint_t", referenced from:
      _FAST_OpFM_Restart in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_Restart in libopenfastlib.a(FAST_Library.f90.o)
  "___fast_subs_MOD_fast_solution0_t", referenced from:
      _FAST_OpFM_Solution0 in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_Start in libopenfastlib.a(FAST_Library.f90.o)
  "___fast_subs_MOD_fast_solution_t", referenced from:
      _FAST_OpFM_Step in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_Update in libopenfastlib.a(FAST_Library.f90.o)
  "___fast_subs_MOD_filloutputary_t", referenced from:
      _FAST_Update in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_Start in libopenfastlib.a(FAST_Library.f90.o)
  "___netf2", referenced from:
      _FAST_OpFM_Restart in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_Restart in libopenfastlib.a(FAST_Library.f90.o)
  "___nwtc_base_MOD_aborterrlev", referenced from:
      _FAST_OpFM_Restart in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_OpFM_Init in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_Restart in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_Start in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_Sizes in libopenfastlib.a(FAST_Library.f90.o)
  "___nwtc_io_MOD_int2lstr", referenced from:
      _FAST_CreateCheckpoint in libopenfastlib.a(FAST_Library.f90.o)
  "___nwtc_io_MOD_wrscr1", referenced from:
      _FAST_AllocateTurbines in libopenfastlib.a(FAST_Library.f90.o)
  "___nwtc_library_MOD_nwtc_init", referenced from:
      _FAST_OpFM_Restart in libopenfastlib.a(FAST_Library.f90.o)
  "___nwtc_library_types_MOD_seterrstat", referenced from:
      _FAST_OpFM_Restart in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_Restart in libopenfastlib.a(FAST_Library.f90.o)
  "___supercontroller_MOD_sc_setinputs", referenced from:
      _FAST_OpFM_Step in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_OpFM_Solution0 in libopenfastlib.a(FAST_Library.f90.o)
  "___supercontroller_MOD_sc_setoutputs", referenced from:
      _FAST_OpFM_Step in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_OpFM_Solution0 in libopenfastlib.a(FAST_Library.f90.o)
  "___trunctfdf2", referenced from:
      _FAST_OpFM_Restart in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_OpFM_Init in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_Restart in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_Update in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_Start in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_Sizes in libopenfastlib.a(FAST_Library.f90.o)
  "__gfortran_concat_string", referenced from:
      _FAST_OpFM_Step in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_OpFM_Restart in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_OpFM_Solution0 in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_OpFM_Init in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_Restart in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_CreateCheckpoint in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_Update in libopenfastlib.a(FAST_Library.f90.o)
      ...
  "__gfortran_os_error", referenced from:
      _FAST_AllocateTurbines in libopenfastlib.a(FAST_Library.f90.o)
  "__gfortran_runtime_error_at", referenced from:
      _FAST_DeallocateTurbines in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_AllocateTurbines in libopenfastlib.a(FAST_Library.f90.o)
  "__gfortran_string_index", referenced from:
      _FAST_OpFM_Restart in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_OpFM_Init in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_Restart in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_CreateCheckpoint in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_Sizes in libopenfastlib.a(FAST_Library.f90.o)
  "__gfortran_string_len_trim", referenced from:
      _FAST_OpFM_Step in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_OpFM_Restart in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_OpFM_Solution0 in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_OpFM_Init in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_Restart in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_CreateCheckpoint in libopenfastlib.a(FAST_Library.f90.o)
      _FAST_Update in libopenfastlib.a(FAST_Library.f90.o)
      ...
  "__gfortran_string_trim", referenced from:
      _FAST_CreateCheckpoint in libopenfastlib.a(FAST_Library.f90.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Error in create_FAST_SFunc (line 62)
mex('-largeArrayDims', ...

When I first saw the error I thought it was related to the lack of MEX configuration to compile fortran. But I managed to configure gfortran with mex and the error continues the same. For reference, the current output for the "mex -setup -v fortran" matlab command is:
Verbose mode is on.
... Looking for compiler 'Intel Fortran Composer XE' ...
... Looking for environment variable 'IFORT_COMPILER20' ...No.
... Looking for environment variable 'IFORT_COMPILER19' ...No.
... Looking for environment variable 'IFORT_COMPILER18' ...No.
... Looking for environment variable 'IFORT_COMPILER17' ...No.
... Looking for environment variable 'IFORT_COMPILER16' ...No.
... Looking for environment variable 'IFORT_COMPILER15' ...No.
... Executing command 'which ifort' ...No.
Did not find installed compiler 'Intel Fortran Composer XE'.
... Looking for compiler 'gfortran' ...
... Looking for environment variable 'DEVELOPER_DIR' ...No.
... Executing command 'which gfortran' ...No.
... Looking for file '/usr/local/bin/gfortran' ...Yes.
... Looking for folder '/usr/local/Cellar/gcc/10.1.0/bin' ...Yes.
... Executing command 'which gfortran' ...No.
... Looking for file '/usr/local/bin/gfortran' ...Yes.
... Executing command '/usr/local/bin/gfortran -print-file-name=libgfortran.dylib' ...Yes ('/usr/local/Cellar/gcc/10.1.0/lib/gcc/10/libgfortran.dylib').
... Looking for folder '/usr/local/Cellar/gcc/10.1.0/lib/gcc/10' ...Yes.
... Executing command 'xcrun -sdk macosx --show-sdk-path' ...Yes ('/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk').
... Executing command 'xcrun -sdk macosx --show-sdk-version' ...Yes ('10.15.4').
Found installed compiler 'gfortran'.
... Looking for compiler 'gfortran' ...
... Looking for environment variable 'DEVELOPER_DIR' ...No.
... Executing command 'which gfortran' ...No.
... Looking for file '/usr/local/bin/gfortran' ...Yes.
... Looking for folder '/usr/local/Cellar/gcc/10.1.0/bin' ...Yes.
... Executing command 'which gfortran' ...No.
... Looking for file '/usr/local/bin/gfortran' ...Yes.
... Executing command '/usr/local/bin/gfortran -print-file-name=libgfortran.dylib' ...Yes ('/usr/local/Cellar/gcc/10.1.0/lib/gcc/10/libgfortran.dylib').
... Looking for folder '/usr/local/Cellar/gcc/10.1.0/lib/gcc/10' ...Yes.
... Executing command 'xcrun -sdk macosx --show-sdk-path' ...Yes ('/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk').
... Executing command 'xcrun -sdk macosx --show-sdk-version' ...Yes ('10.15.4').
Found installed compiler 'gfortran'.
MEX configured to use 'gfortran' for FORTRAN language compilation.

Could someone provide me some direction?
My environment is MATLAB R2019b with Catalina (10.15.5).

It looks to me like Matlab may be trying to link using clang instead of gcc. You may need to specify in Matlab which compiler to link with.

Its a linking problem, but I'm not sure what exactly. Is there something you need to configure in Matlab to tell it the search path for libraries? I'm wondering if it isnt finding the correct OpenFAST libraries in the default locations that its searching. Also, I think it should be linking to .so since you used BUILD_SHARED_LIBS=ON. @nikhar-abbas does anything of this look familiar to you?

I can't say that the specific errors are very familiar.
Looking back at my notes, I found that I needed to set CMAKE_INSTALL_PREFIX=/usr/local because of some permissions issues on more modern versions of osx. This could be the issue if you are not doing so already, although your error messages don't really point towards this and this might automatically be happening now. I would double check that Matlab_ROOT_DIR is also correct when compiling openfast (I usually modify this in the gui generated during the ccmake .. step, but again, the fact that you are successfully compiling means that this is probably a non-issue - perhaps you are pointing cmake to a different version of MATLAB?
I think that's the extent of useful advice I might have on this unfortunately, good luck!

Hi, developers!
I ran into the same error as ppozzobon got when running "create_FAST_SFunc.m". I have gcc installed on my Mac, and tried to setup mex to use the gcc compiler as @bjonkman suggested but failed. I also tried to tell them where my gcc is located but failed again.
Could you please provide me with some suggestions? Thanks a lot!
Best wishes,
Jiayao
>> !which gcc
/usr/bin/gcc

>> mex -setup -v c
Verbose mode is on.
... Looking for compiler 'Xcode with Clang' ...
... Looking for environment variable 'DEVELOPER_DIR' ...No.
... Executing command 'xcode-select -print-path' ...Yes ('/Library/Developer/CommandLineTools').
... Looking for folder '/Library/Developer/CommandLineTools' ...Yes.
... Executing command 'which xcrun' ...Yes ('/usr/bin/xcrun').
... Looking for folder '/usr/bin' ...Yes.
... Executing command 'defaults read com.apple.dt.Xcode IDEXcodeVersionForAgreedToGMLicense' ...Yes ('10.0').
... Executing command '
agreed=10.0
 if echo $agreed | grep -E '[\.\"]' >/dev/null; then
 lhs=`expr "$agreed" : '\([0-9]*\)[\.].*'`
  rhs=`expr "$agreed" : '[0-9]*[\.]\(.*\)$'`
 if echo $rhs | grep -E '[\."]' >/dev/null; then
 rhs=`expr "$rhs" : '\([0-9]*\)[\.].*'`
 fi
 if [ $lhs -gt 4 ] || ( [ $lhs -eq 4 ] && [ $rhs -ge 3 ] ); then
 echo $agreed
 else
 exit 1
 fi
 fi' ...Yes ('10.0').
... Executing command 'xcrun -sdk macosx --show-sdk-path' ...Yes ('/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk').
... Executing command 'xcrun -sdk macosx --show-sdk-version | awk 'BEGIN {FS="."} ; {print $1"."$2}'' ...Yes ('10.15').
... Executing command 'clang --version | grep -Eo '[0-9]+\.[0-9]+\.[0-9]'|head -1' ...Yes ('12.0.0').
Found installed compiler 'Xcode with Clang'.
... Looking for compiler 'Xcode with Clang' ...
... Looking for environment variable 'DEVELOPER_DIR' ...No.
... Executing command 'xcode-select -print-path' ...Yes ('/Library/Developer/CommandLineTools').
... Looking for folder '/Library/Developer/CommandLineTools' ...Yes.
... Executing command 'which xcrun' ...Yes ('/usr/bin/xcrun').
... Looking for folder '/usr/bin' ...Yes.
... Executing command 'defaults read com.apple.dt.Xcode IDEXcodeVersionForAgreedToGMLicense' ...Yes ('10.0').
... Executing command '
agreed=10.0
 if echo $agreed | grep -E '[\.\"]' >/dev/null; then
 lhs=`expr "$agreed" : '\([0-9]*\)[\.].*'`
  rhs=`expr "$agreed" : '[0-9]*[\.]\(.*\)$'`
 if echo $rhs | grep -E '[\."]' >/dev/null; then
 rhs=`expr "$rhs" : '\([0-9]*\)[\.].*'`
 fi
 if [ $lhs -gt 4 ] || ( [ $lhs -eq 4 ] && [ $rhs -ge 3 ] ); then
 echo $agreed
 else
 exit 1
 fi
 fi' ...Yes ('10.0').
... Executing command 'xcrun -sdk macosx --show-sdk-path' ...Yes ('/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk').
... Executing command 'xcrun -sdk macosx --show-sdk-version | awk 'BEGIN {FS="."} ; {print $1"."$2}'' ...Yes ('10.15').
... Executing command 'clang --version | grep -Eo '[0-9]+\.[0-9]+\.[0-9]'|head -1' ...Yes ('12.0.0').
Found installed compiler 'Xcode with Clang'.
MEX configured to use 'Xcode with Clang' for C language compilation.

>> mex -v GCC='/usr/bin/gcc' FAST_SFunc.c
Verbose mode is on.
... Looking for compiler 'Xcode with Clang' ...
... Looking for environment variable 'DEVELOPER_DIR' ...No.
... Executing command 'xcode-select -print-path' ...Yes ('/Library/Developer/CommandLineTools').
... Looking for folder '/Library/Developer/CommandLineTools' ...Yes.
... Executing command 'which xcrun' ...Yes ('/usr/bin/xcrun').
... Looking for folder '/usr/bin' ...Yes.
... Executing command 'defaults read com.apple.dt.Xcode IDEXcodeVersionForAgreedToGMLicense' ...Yes ('10.0').
... Executing command '
agreed=10.0
 if echo $agreed | grep -E '[\.\"]' >/dev/null; then
 lhs=`expr "$agreed" : '\([0-9]*\)[\.].*'`
  rhs=`expr "$agreed" : '[0-9]*[\.]\(.*\)$'`
 if echo $rhs | grep -E '[\."]' >/dev/null; then
 rhs=`expr "$rhs" : '\([0-9]*\)[\.].*'`
 fi
 if [ $lhs -gt 4 ] || ( [ $lhs -eq 4 ] && [ $rhs -ge 3 ] ); then
 echo $agreed
 else
 exit 1
 fi
 fi' ...Yes ('10.0').
... Executing command 'xcrun -sdk macosx --show-sdk-path' ...Yes ('/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk').
... Executing command 'xcrun -sdk macosx --show-sdk-version | awk 'BEGIN {FS="."} ; {print $1"."$2}'' ...Yes ('10.15').
... Executing command 'clang --version | grep -Eo '[0-9]+\.[0-9]+\.[0-9]'|head -1' ...Yes ('12.0.0').
Found installed compiler 'Xcode with Clang'.

It looks like your error is actually different than the one asked here. In your case, the OpenFAST Library header file isn't found. When you compiled OpenFAST, did you run the command make install? If so, to which directory were the files copied?
I think you need to simply add the install directory to your include path. See this page for the GCC docs on environment variables. I think you should set one of CPATH or C_INCLUDE_PATH. Something like:
CPATH="~/openfast/install - change this to match your system"
 mex -v GCC='/usr/bin/gcc' FAST_SFunc.c

Let me know how this works out.

Thank you so much, Rafael, for your prompt reply!
I did run make install when compiling OpenFAST and could find the header file FAST_Library.h in the directory ~/openfast/install/include.
I followed your suggestion and set C_INCLUDE_PATH  in my ~/.bash_profile like this:
C_INCLUDE_PATH=~/openfast/install/include
export C_INCLUDE_PATH

After running source ~/.bash_profile and then echo | gcc -v -x c -E -, It reported that
#include "..." search starts here:
#include <...> search starts here:
 /Users/jiayaomeng/openfast/install/include
 /usr/local/Cellar/gcc/10.2.0/lib/gcc/10/gcc/x86_64-apple-darwin19/10.2.0/include
 /usr/local/Cellar/gcc/10.2.0/lib/gcc/10/gcc/x86_64-apple-darwin19/10.2.0/include-fixed
 /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include
 /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/System/Library/Frameworks

I suppose that means the directory has been rightly included, but still got the same error after running
mex -v GCC='/usr/bin/gcc' FAST_SFunc.c.
Error using mex
/Users/jiayaomeng/openfast/glue-codes/simulink/src/FAST_SFunc.c:32:10: fatal error: 'FAST_Library.h' file not found
#include "FAST_Library.h"
         ^~~~~~~~~~~~~~~~
1 error generated.

Hope I didn't miss any key steps. Thank you in advance for any further suggestions!

@rafmudaf , this might be related to the create_FAST_SFunc.m script being set up this way for non-PCs:
installDir = '/usr/local'

It assumes the directory with the include files is /usr/local/include.
@Jiayao1012 , perhaps you can update create_FAST_SFunc.m by adding comment lines on the if (ispc) case so that the install directory is defined the same for all cmake builds, like this:
    %if ( ispc ) % Windows PC
        installDir = '../../../install';
        outDir = fullfile(installDir, 'lib');
        % If there are shared libraries does it work for outDir to be the local directory?
    %else
    %  installDir = '/usr/local';
    %  outDir = '.';
    %end

and see if it runs.

Thank you, Bonnie. I did alter the installDir  to match my system at my first attempt but got the same linking error as @ppozzobon previously had.

Hello everybody,
@ppozzobon, did you end up finding a solution for your issue?
I'm currently facing the same issue but unfortunately none of the ideas offered by @nikhar-abbas seemed to change anything.


ActionView::Template::Error (nil can't be coerced into Integer):

Caused by Dalli  2.7.7
2.7.7 uses:
https://github.com/rack/rack/blob/b37356ee881c0de4266165dacb8af4efaebaf4ec/lib/rack/session/abstract/id.rb#L254
But 2.7.6 uses:
https://github.com/rails/rails/blob/2d2da1861576a3900a295dc3950b447027f9ed9d/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb#L26

https://github.com/rails/rails/blob/master/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb#L26 fails on @sid_length being nil, because we nullify the :sidbits here https://github.com/rails/rails/blob/2d2da1861576a3900a295dc3950b447027f9ed9d/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb#L35

most likely this is caused by last 2 commits in https://github.com/petergoldstein/dalli/commits/v2.7.7/lib/rack/session/dalli.rb

The error happens when trying to generate a new session id - already logged in sessions keep working, so restarting/clearing memcached may be needed to trigger this error.

@Ladas  So as is, this isn't an actionable bug report.  Can you please provide some more information?  Some things that would be helpful:

In what context are you observing this error?
With what versions of Rack (and Rails, etc.) are you seeing this error?
Why isn't this a Rails bug?  Is Dalli calling a method improperly, or not implementing a required method?  Why doesn't generate_sid work as Dalli expects?  Why is the sidbits value being cleared at all?

Thanks.

@petergoldstein

running rails s there is the  exception when trying to touch the session
rails 5.0.2, rack 2.0.4
the last 2 commits added in https://github.com/petergoldstein/dalli/commits/v2.7.7/lib/rack/session/dalli.rb are changing what methods are called.

so in 2.7.6 were calling https://github.com/rails/rails/blob/2d2da1861576a3900a295dc3950b447027f9ed9d/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb#L26 , 2.7.7 is calling https://github.com/rack/rack/blob/b37356ee881c0de4266165dacb8af4efaebaf4ec/lib/rack/session/abstract/id.rb#L254
I am not sure if it's a Rails bug or not, it looks weird that the Compatibility module is always overwriting methods from Persisted class.
Our fix for now is to revert to dalli to 2.7.6. It might be that the root of the failure is that there shouldn't be any Compatibility module overwriting behavior like this.
I haven't checked in detail why dalli uses different method now, but I've identified it's caused by the last 2 commits added in https://github.com/petergoldstein/dalli/commits/v2.7.7/lib/rack/session/dalli.rb

Why do we call https://github.com/rails/rails/blob/2d2da1861576a3900a295dc3950b447027f9ed9d/actionpack/lib/action_dispatch/middleware/session/abstract_store.rb#L34 in both 2.7.6 and 2.7.7? I have no idea. :-) The whole Compatibility module just looks wrong. As for why is cleaning of the :sidbits needed, there is a verbose # :doc: :-D

It looks to me correct way should be using:
https://github.com/rack/rack/blob/b37356ee881c0de4266165dacb8af4efaebaf4ec/lib/rack/session/abstract/id.rb#L244
and
https://github.com/rack/rack/blob/b37356ee881c0de4266165dacb8af4efaebaf4ec/lib/rack/session/abstract/id.rb#L254
But by including of the Compatibility module, we overwrite both of these methods:
https://github.com/rails/rails/blob/2d2da1861576a3900a295dc3950b447027f9ed9d/actionpack/lib/action_dispatch/middleware/session/mem_cache_store.rb#L18
For some reason :generate_sid stops being overwritten in dalli 2.7.7

@Ladas Can you please test Dalli master and see if you still have the same issue?  If it's fixed I can release 2.7.8.  Thanks.

I can confirm that applying 9ad5ccac463f852df42d2bd66104b767366974e2 to 2.7.7 fixes this for me.

@petergoldstein I believe that guys from our office tested this works, so we can close this issue. Thanks


Add query parameters

Initial proposal for the enhancement proposed in #144 to use the browser's query parameters as part of the app (e.g. process initial query on app launch with "?q=[QUERY]").
This implementation loads the query parameter as part of the initial page data being fetched in the useChatSession hook, then directly into the on_chat_start call of the app as it may be used in the initial setup call. Open to suggestions about how else it be called.

Thank you for the proposal! I think this will not work with authentication though:

The user hits https://my-chainlit-app.com?q...
The user is redirected to /login
The user authenticates and is redirected to https://my-chainlit-app.com
The websocket session is created without the query params

The thing is that the decorators are ran once the websocket connection is established (hence after authentication). The easiest way to do it would be to store query params in the local storage to send it as ws connection time.

That could work; another solution for this use case might be adding the original url as a redirect query parameter to the login / signup pages, like auth provider use as a common pattern. I'll do some more research and take a look into the current setup for auth navigation in another ticket.

Closing as the discussion has stopped, we can still reopen the PR in the future


pyqt5 fails with matplotlib.  KeyError: 'backend_fallback'

from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.figure import Figure
when my code contains the above two sentences，build ok,  but runtime error.
Traceback
Traceback (most recent call last):
File "/Users/zhangsan/test/out/zhangsantest.dist/zhangsantest.py", line 1, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "/Users/zhangsan/test/out/zhangsantest.dist/test.py", line 392, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "/Users/zhangsan/test/out/zhangsantest.dist/testFigure.py", line 2, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "/Users/zhangsan/test/out/zhangsantest.dist/matplotlib/init.py", line 982, in
File "/Users/zhangsan/test/out/zhangsantest.dist/matplotlib/init.py", line 762, in getitem
File "/Users/zhangsan/test/out/zhangsantest.dist/matplotlib/init.py", line 709, in _get
KeyError: 'backend_fallback'
Build environment
nuitka: 1.8.5
Commercial: None
Python: 3.10.0 (v3.10.0:b494f5935c, Oct  4 2021, 14:59:20) [Clang 12.0.5 (clang-1<IP_ADDRESS>)]
Flavor: CPython Official
Executable: /Users/zhangsan/ENV310/bin/python
OS: Darwin
Arch: x86_64
Version C compiler: /usr/bin/clang (clang).
PyQt5==5.15.9
numpy==1.26.1
matplotlib==3.8.0
matplotlib-inline==0.1.6
Compile command
python -m nuitka --standalone --onefile --enable-plugin=pyqt5  --output-dir=out --disable-console --macos-create-app-bundle zhangsantest.py

The python310 environment is created using virtualenv

I cannot even run this combination on my machine anymore, PyQt5 fails to load inside of matplotlib. I am also not sure your callstack matches your example for real.

Here's a simple example：Once import the matplotlib, although we did not use it.
build ok, but runtime error
from PyQt5.QtWidgets import QWidget, QProgressBar, QApplication
import sys
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.figure import Figure
class Example(QWidget):
def init(self):
super().init()
self.pbar = QProgressBar(self)
self.pbar.setGeometry(30, 40, 200, 25)
self.setGeometry(300, 300, 280, 170)
self.setWindowTitle('QProgressBar')
self.show()
if name == 'main':
app = QApplication(sys.argv)
ex = Example()
sys.exit(app.exec_())
Traceback (most recent call last):
File "/Users/zhangsan/test/out_tmp/tmp.dist/tmp.py", line 3, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "/Users/zhangsan/test/out_tmp/tmp.dist/matplotlib/init.py", line 895, in
File "/Users/zhangsan/test/out_tmp/tmp.dist/matplotlib/init.py", line 674, in getitem
KeyError: 'backend_fallback'
Deleting expired sessions...none found.

Traceback (most recent call last):   File "/Users/zhangsan/test/out_tmp/tmp.dist/tmp.py", line 3, in <module>   File "<frozen importlib._bootstrap>", line 1027, in _find_and_load   File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked   File "<frozen importlib._bootstrap>", line 688, in _load_unlocked   File "/Users/zhangsan/test/out_tmp/tmp.dist/matplotlib/__init__.py", line 895, in <module matplotlib>   File "/Users/zhangsan/test/out_tmp/tmp.dist/matplotlib/__init__.py", line 674, in __getitem__ KeyError: 'backend_fallback' Deleting expired sessions...none found.

Like I said, I cannot pip install PyQt5 and get matplotlib to accept it on my arm machine, and trying to lookup the lines of code in matplotlib doesn't work either, they are also different from what you originally posted.

The error should trigger for you with only doing import matplotlib which should be unusual. I assume something about the config file handling goes wrong. You might want to try the current develop branch. I improved some things there and I would like to be sure it's not already avoided.

The error should trigger for you with only doing import matplotlib which should be unusual. I assume something about the config file handling goes wrong. You might want to try the current develop branch. I improved some things there and I would like to be sure it's not already avoided.

The same problem happened when I used the current develop branch.
nuitka: 1.9rc6
I found that the backend of matplotlibrc in the generated dist directory is TkAgg. Qt5Agg is set before buildling. Why TkAgg here?  Is there a problem

What do you mean with "is set before building", how do you do it exactly, in the config file, via environment, or what

What do you mean with "is set before building", how do you do it exactly, in the config file, via environment, or what

in the config file, via environment. I have tried both ways.

Just because I am not an expert for every PyPI package, or know if you made a mistake, I would appreciate to know what you put exactly, so I don't have to figure out myself.

Sorry, I did this by setting MPLBACKEND=Qt5Agg via environment，and I also tried to add backend:Qt5Agg in the matplotlibrc file, but the same problem still happened.
The above is my attempt to solve the problem, If I don't try, the same error also happend by using the default configuration.I don't know why I get KeyError: 'backend_fallback' just for importing the matplotlib.

I have reproduced this actually.

Nuitka-Plugins:INFO: matplotlib: Using as per 'MPLBACKEND' environment variable backend 'TkAgg'.

but then
./Mini.dist/Mini.bin  agg
So, it seems the code is trying to compile time detect, if MPLBACKEND etc. variables are needed, or if the config file manipulation would be sufficient. That's not working for 3.8.0 at least, and instead than patching this up, we should just make it unconditional, there is no point in being optimal about that, we can just set MATPLOTLIBDATA , MATPLOTLIBRC , and MPLBACKEND and QT_API no matter what.
Only MPLBACKEND has a compile time effect on what will be 1.9 though, the config file is found by code that will be impacted by MATPLOTLIBDATA  and that should have worked. I have yet to check if updating the config file really has no impact.

Thanks for your report, this is fixed on the factory branch, which is a development version under rapid development. You can try it out by going here: https://nuitka.net/doc/factory.html
Feedback if this is working is very welcome, just please do not share plans of doing it, but rather confirmations or denials of it working.


An error occurs when attempting to attach a .PSD file in chat

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

 The same issue will occur if you try with other file types also)
Attempt to delete the attachment, and
An error message is displayed: "Unexpected error while posting the comment", "please try again later. We were unable to process this file", and "Auth UpdateReportComment returned an error."

Expected Result:
When attempting to delete an attachment while sending it, the attachment should be successfully deleted
Actual Result:
An error occurs when attempting to delete the attachment while sending it
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[x] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: <IP_ADDRESS>
Reproducible in staging?: n/a
Reproducible in production?: n/a
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
screen-capture (50).webm
Expensify/Expensify Issue URL:
Issue reported by: @tewodrosGirmaA
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1685375476950409
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01b5517139f49544d2
Upwork Job ID:<PHONE_NUMBER>858548224
Last Price Increase: 2023-06-02

@kbecciv - for recent GH's that you've been creating, I have noticed you are not marking the platform checkboxes. Could you please do this? It is part of the issue.

This doesn't occur when deleting an attachment, it's because we currently cannot process a Photoshop file in New Expensify:

@jliexpensify Sure, will do!

Asking internally if we even want to process .PSD - https://expensify.slack.com/archives/C01SKUP7QR0/p1685668577085699

@mananjadhav Removing your assignment as this is gonna require a backend fix.

Thanks @youssef-lr , since this is a bug, I will need to pay $250 to @tewodrosGirmaA

@tewodrosGirmaA could you share your Upworks profile?

Thanks, @jliexpensify! Here's my Upwork profile: https://www.upwork.com/freelancers/~0142af0eda23e59363

Invite sent @tewodrosGirmaA

Hi, @jliexpensify, I accept it.

my contribution detail:
my Expensify account email is:-<EMAIL_ADDRESS>(I use multiple accounts, but this is my main one), and                        my Upwork profile can be found at https://www.upwork.com/freelancers/~0142af0eda23e59363

@youssef-lr once I pay out the reporting bonus, can we close this GH? Or would you prefer to leave it open?

I think we can keep it open until the fix is on production.

Not overdue. @tewodrosGirmaA you have been paid and the job has been closed on Upworks.

@jliexpensify Thank You

Tested again today, still running into issues:

@youssef-lr could you link the PR here? Thanks!

Working on the PR today.

Working on the PR today.

Not overdue

No overdue

Bump @youssef-lr - can you link the PR?

PR on its way.

Not overdue!

Fix is live in production and can't reproduce this anymore. Clsoing!


Support optional --cache-dir program parameter and cacheDir manifest entry

The cache dir option will override the directory the downloaded artifacts are placed in. By default, artifacts are placed in the current working directory. The program parameter --cache-dir or the manifest entry cacheDir can be specified to override this.
If the cache dir parameter starts with the magical string USERLIB/ this string will be replaced with an OS specific path. Consider the following parameter value:
fxlauncher.jar --cache-dir=USERLIB/MyApp

The result will be:

OS
Location

Windows
~/AppData/MyApp

Mac
~/Library/Application Support/MyApp

Linux
~/.MyApp

This feature can be helpful in several circumstances:

If the application is installed in a placed where the user does not have write access
If there is a problem with configuring the current working directory, as seen with some Mac Java Version
To cache commonly used library files amongst several installed apps

The program parameter will override any configured value in the manifest, and the default will still be "the current working directory".

Implemented in 1.0.10


Python API - use_cuda option

Hello! In Python, when I am initializing a Summarizer with one of your pretrained models:
summarizer = Summarizer(model_name_or_path="pszemraj/long-t5-tglobal-base-16384-booksum-V12",use_cuda=True)
I am seeing the following output message:

INFO Loaded model pszemraj/long-t5-tglobal-base-16384-booksum-V12 to cpu

However, I have an Nvidia GPU available, that doesn't seem to be utilized. As far as I know, it is available for use, because I am running the following code to check it:
import GPUtil
print(GPUtil.getAvailable())
print(GPUtil.showUtilization())
and the result I am getting is:
[0]
| ID | GPU | MEM |
------------------
|  0 |  5% | 11% |
None

which means based on the GPUtil documentation that the GPU with ID 0 is available for use.
Is there a way to declare that the Summarizer must run on GPU instead of CPU, as it currently happens by default? The use_cuda option doesn't seem to do the trick.
Thank you in advance!

Thanks for your quick answer! The initial problem was in the pytorch installation, affecting the whole CUDA running of the model. I would suggest to add in your installation guide an explicit part instructing to install pytorch (a specific or the latest version) to avoid any such issues. Keep up with your good work!


GoRouter deep link resets the url

I am currently switching the routing in my flutter web app to use GoRouter, everything works fine but when I try to use a deep link, for example:
localhost:68234/#/sessions/e0705f4b-1b1f-4817-9218-0821aa7c6eec
The URL goes to the correct page and everything is displayed correctly according to the path parameter with the correct session id, but then after about a second the URL reverts to localhost:68234/#/.
A few things I noticed:

The page being loaded returns a FutureBuilder in the build method, and as the snapshot is connection state is waiting I display a CircularProgressIndicator, while that is being displayed the URL is correct, but once it finishes building and displays the actual content of the page, the bug happens.

While logging the GoRouter.of(context).location in multiple places as the page is loaded amongst its different components, the correct URL is printed every time.

When navigating to the given URL using normal navigation through my app, the bug doesn't occur.

Hi @ahmedn002, what version of go_router are you using?
Please also provide the output of flutter doctor -v along with a complete minimal reproducible code sample so that we can investigate this issue.
Thank you


support memory for functions

Before submitting
Add memory support for OpenAIFunctionsAgent like StructuredChatAgent.
Who can review?
@hwchase17

@hwchase17
Hello, memory is very useful in application scenarios. For example, there is a function to calculate bmi, the height and weight are provided for the first time, and gpt returns the calculation result. For the second time, it can be said that if the weight is xxx, gpt will calculate bmi based on memory.
However, I noticed that the files for the master branch have changed, and I can handle conflicts if necessary.


debug_mode toolbar no more displayed in Theme Catalog page

When you access to the "Design > Theme Catalog" page, you should see the Debug_mode toolbar on the footer (currently the behaviour on the <IP_ADDRESS> version)

the toolbar appears only on symfony controllers, it doesn't appear on legacy controller neither

so how do you explain this ...
without MBO

with MBO

The Symfony Debug toolbar only appears on Symfony pages. Because Mbo is a module and not a Symfony page, it's logic he doesn't have one.
I close this issue.


add a simple client-cert controller for the single-cluster common case

This package provides a control loop which takes as input

target secret name
cert common name
desired validity (recall that the signing cert can sign for less)

The flow goes like this.

if secret contains a valid client cert good for at least five days or 50% of validity, do nothing.  If not...
create new cert/key pair in memory
create CSR in the API.
watch CSR in the API until it is approved or denied
if denied, write degraded status and return
if approved, update the secret

Thanks to the OCM team who built this in https://github.com/open-cluster-management/registration/tree/a2bb6439160edafaa94610883cd2f582485b5298/pkg/clientcert
remaining tweaks

[ ] make a separate renewal mode (used by OCM) versus the re-request flow (used by monitoring and most OCP uses). We'll keep both options
[ ] tweak validity requirements in readme to match reality

/hold
https://github.com/openshift/cluster-authentication-operator/pull/416 has already been through a lengthy review, consider its bits (if abstracted) first, please

/hold
openshift/cluster-authentication-operator#416 has already been through a lengthy review, consider its bits (if abstracted) first, please

This particular implementation comes from a product already using it and satisfies both our use-case and the multi-cluster use-case where the CSR and secret are in different clusters.
Can we lift your approver implementation into library-go with a shouldApprove function?

@stlaz good comments.  I see the current objectives as

bring a nearly zero diff copy in to make a swap into OCM easier
provide something workable for monitoring quickly
at a future date in 4.9, refine what we have here (I've heard rumors of a new developer)

I won't stand in the way of anyone willing to tag this PR.
Also, it would be nice to get an answer to https://github.com/openshift/library-go/pull/1082#discussion_r636519032 (re-tagging @qiujian16)

/hold cancel

/lgtm

/hold
needs a package name change in the copy-pasted code:
found packages csr (cert_controller.go) and webhookcerts (csr_approver.go) in /go/src/github.com/openshift/library-go/pkg/operator/csr

/hold cancel
/retest
I fixed my wrong package names in another PR.


WIP: Stream readers and writers proposal

Prototype stream writers for JSON and JSON streaming:
https://github.com/spericas/helidon/tree/publisher-thing/media/jsonp/server/src/main/java/io/helidon/media/jsonp/server
Signed-off-by: Santiago Pericas-Geertsen<EMAIL_ADDRESS>

Now in scope of @romain-grecourt's work.


Feature/swagger editor links

What issue is this PR closing?

Issue #435

@elnzv please review again. I have made suggested changes.


Add KSC members to approvers in OWNERS

/cc @kubeflow/kubeflow-steering-committee
/assign @kubeflow/kubeflow-steering-committee

/hold

/unhold

/lgtm
/approve


Show published activities in list

The 10 most recently published activities are now shown on the front page. You can't click into them. This is the first stage of addressing #519 as described in this comment.

Ready to merge when @norrishung give his seal of approval

Hey tomas, I'm not seeing any published activities locally. Can you help me figure this out when you get in?

Will do!

This should be ready to merge when tests pass.


Union type preference by pdfowler

Summary
@pdfowler  Hey!
First of, sorry for not commenting your PR but rather directly adapting it. The main changes were simply based on the decision to only support Type.Union instead of enums and unions for now. I added you as a colaborator to the repo so you can review this PR. Please wait for my approval when merging PRs. I will merge this one after a while if you have no time for a review.
Adapting the work of @pdfowler to my preference/decision of generating union types (and only union types for now) for JSON schema objects of type "enum".
My main reasons for this decision:

it makes the code way easier to maintain (as reflected by the diff in this commit). The codegen code gets easier, less dirty global state, easier testing. The decision to use global state for the enum code was painful for me anyway but I decided to do it to get the feature done. The pain is somewhat reflected in the initial comment here and here but I was to lazy to adapt the collect code.
I agree on the mentioned state of enums in Typescript mentioned by a comment here. I want to push for using unions as thats what I commonly use and see anyway.

If this PR is merged the pr here will be closed.
After merge a new release (1.5.0) will be created.

@pdfowler Hey!
Feel free to create another PR when you got time for it. I think doing this one-by-one makes it easiest for both of us. I would prefer features/bug fixes over cleanups, since I have planned to do a clean-up of the code myself  to clean up the
Somewhat unfortunate that you have an internal fork where you are keeping the configuration (in terms of merge conflicts when doing changes in both repos). I hope this does not amount to to much work!
If there is anything open/not implemented yet, feel free to just create an issue. I will probably tackle it in the following days/week.

That all sounds good. For next steps I think that I'm going to write up some details of my use case so I can clarify some of the reasons I've done what I've done. Some of that work is now redundant with the inlining of union types you did here, so I'll focus on rebasing support for more use cases PR #23
Agree on the internal fork, but it's necessary at this point. I needed to push ahead with the code that I needed to solve our problems (and also some internal/private config). This is on an "internal" branch, and our main branch still follows upstream (any new work im branching off of upstream/main). So far, the merge issues have been minimal, and I will continue to reevaluate the "extra" code I have internally to make sure we can stay in sync.


Problem following along with custom metric walkthrough

Describe the bug
When following the walkthrough for custom metrics, I get Error: release sample-release failed: customresourcedefinitions.apiextensions.k8s.io "custommetrics.azure.com" already exists
To Reproduce
Follow walkthrough until the helm install step.
Expected behavior
Since this is a walkthrough I expect the defaults to work out of the box, or for the walkthrough to inform me of what needs to be changed. (My apologies if this is obvious, still learning all the ins & outs of k8s)
Kubernetes version (kubectl version):

[x] Running on AKS

Client Version: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.2", GitCommit:"17c77c7898218073f14c8d573582e8d2313dc740", GitTreeState:"clean", BuildDate:"2018-10-24T06:54:59Z", GoVersion:"go1.10.4", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.3", GitCommit:"a4529464e4629c21224b3d52edfe0ea91b072862", GitTreeState:"clean", BuildDate:"2018-09-09T17:53:03Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}

Logs (kubectl logs <metric adapter pod id>)
See error.txt
Additional context
Following custom metrics walkthrough.

This typically happens if you deployed the helm chart twice.  It is currently only possible to create a single instance of the metric adapter.
helm install --name sample-release1 ../../charts/azure-k8s-metrics-adapter --namespace custom-metrics \
    --set appInsights.appId= \
    --set appInsights.key= \
    --set azureAuthentication.createSecret=true

helm install --name sample-release2 ../../charts/azure-k8s-metrics-adapter --namespace custom-metrics \
    --set appInsights.appId= \
    --set appInsights.key= \
    --set azureAuthentication.createSecret=true

Error: release sample-release2 failed: customresourcedefinitions.apiextensions.k8s.io "custommetrics.azure.com" already exists

Could you check if you have a helm install of the adapter already already (helm list)?  Another thing you can check is kubectl get custommetrics. If the metric adapter CRD's are already installed you will get an answer back like No resources found., otherwise you get error: the server doesn't have a resource type "custommetric"
If it is already installed you can either uninstall it or deploy the adapter with out the CRD's (would have to modify the helm deployment to make sure the CRD's are not included).

Closing.  If you have further questions feel free to create new issue or re-open with new information


[Tooling] python - we should add new clusters to the init.py

Reproduction steps / Feature
Can we do this by instrospection so people dont' need to manually add stuff after the codegnen
Platform
python
Platform Version(s)
No response
Type
Manually tested with SDK
(Optional) If manually tested please explain why this is only manually tested
No response
Anything else?
No response

dupe of #31232


Format for the name of the contact

Hello @ntawileh , thanks for the amazing work. Another idea: to enable users to define the format of the name of the contact (when we choose the option "Rename and move person file", which is great, BTW). Since the name is very important in Obsidian (I know I can use aliases but name is easier), it would help us to organize our 1,000 contacts in Contacts folder.
Thanks again!

Dear @ntawileh , thanks for implementing the other suggestion. For this one, if you think it is easier to use a field in YAML (FrontMatter), for me it's also a good choice.
Bye!

if you think it is easier to use a field in YAML (FrontMatter), for me it's also a good choice.

i just went with a setting for now.  might be cool to have some template properties type tags in yaml in the future if there's more options that need to go in

Amazing! Thank you very much! Already tested here and it worked beautifully!!!


Use delay_for(x) instead of delay(Instant::now() + x)

@bors-libra r+

:pushpin: Commit 5ce990e has been approved by bmwill

:hourglass: Testing commit 5ce990e615fc156dc48b9feafa3ca46d961d0b44 with merge 0a991569b9f5e7d713ff78a132fd0f75be614150...

:broken_heart: Test failed - checks-circle_commit_workflow

@bors-libra r=bmwill

:pushpin: Commit a551501 has been approved by bmwill

:hourglass: Testing commit a551501272eee958d6a8fb503902f437bf5737fd with merge e59b442ac15ecf150fcc7c9e5912e4462251a725...

:sunny: Test successful - checks-circle_commit_workflow
Approved by: bmwill
Pushing e59b442ac15ecf150fcc7c9e5912e4462251a725 to master...

Nice @andll to get rid of Instant when possible.


Add X-Hub-Signature header to webhook deliveries

This PR adds support for Github style webhook integration by adding X-Hub-Signature header to webhook deliveries.
It fixes https://github.com/go-gitea/gitea/issues/7788

Why do we save the hash in the database? A webhook is usally send once and then the hash is not of use anymore?

Why do we save the hash in the database? A webhook is usally send once and then the hash is not of use anymore?

My guess is that because this is the hash of the secret for the integration point which will be used over and over again over the lifecycle of the webhook. Rather than recalculating during message delivery, it's pre-calculated and stored in the DB.

They don't follow the spec btw

When subscribers receive a content distribution request with the X-Hub-Signature header specified, they SHOULD recompute the signature with the shared secret using the same method (provided in the X-Hub-Signature header) as the hub.

https://www.w3.org/TR/websub/#signature-validation

They don't follow the spec btw

When subscribers receive a content distribution request with the X-Hub-Signature header specified, they SHOULD recompute the signature with the shared secret using the same method (provided in the X-Hub-Signature header) as the hub.

https://www.w3.org/TR/websub/#signature-validation

I think this applies to the receiving end to validate the secret key by recalculating the hash and compare with what's in the header every time. For the originator side (gitea in this case), hash would stay the same given a pre-shared secret key stored in the database. Everytime there is an event that's matched in the webhook, the message is emitted from gitea with the pre-calculated hash from the DB in the header.

They don't follow the spec btw

When subscribers receive a content distribution request with the X-Hub-Signature header specified, they SHOULD recompute the signature with the shared secret using the same method (provided in the X-Hub-Signature header) as the hub.

https://www.w3.org/TR/websub/#signature-validation

I think this applies to the receiving end to validate the secret key by recalculating the hash and compare with what's in the header every time. For the originator side (gitea in this case), hash would stay the same given a pre-shared secret key stored in the database. Everytime there is an event that's matched in the webhook, the message is emitted from gitea with the pre-calculated hash from the DB in the header.

The quote is about validation. It tells you to look in the X-Hub-Signature header to get used algorithm (sha256 in our case). The AWX code rejects all algorithms but sha1. https://www.w3.org/TR/websub/#recognized-algorithm-names tells us what algorithms should be supported, so the reject of sha256 is invalid.
The hash can't be precalculated because it hashs the content of the send message.

https://www.w3.org/TR/websub/#signature-validation

Good points. I see the issue with the current implementation. I think we can close this in favor of https://github.com/go-gitea/gitea/pull/16176


freebayes snp, multiple AO values

I notice that this has been seen before (https://groups.google.com/forum/#!topic/freebayes/yJ7tP49Lpz0). As suggested, I tried running bcftools view -a but this did not correct the multiple AO values in this case. But regardless and most importantly, do the multiple values indicate some problem? Any way of knowing which one is correct for the variant at hand?
Kind regards,
Pär
Here is an example:
chr17   37883561    .   A   G   7.54    PASS    AC=2;AF=1;AN=2;DECOMPOSED;LEN=1;NS=1;TYPE=snp   GT:GQ:DP:RO:QR:AO:QA:GL 1|1:0:46:9:191:15,13:224,233:-15.4887,-2.56165,-12.5386,-1.13241,0,-11.7155
chr17   37883564    .   T   C   7.54    PASS    AC=1;AF=0.5;AN=2;DECOMPOSED;LEN=1;NS=1;TYPE=snp GT:GQ:DP:RO:QR:AO:QA:GL 1|0:0:46:9:191:15,13:224,233:-15.4887,-2.56165,-12.5386,-1.13241,0,-11.7155

Hi @parlar  this has to do with multi-allelic haplotype variants that are decomposed to 2 (or more) bi-allelic SNPs.  What is a reference allele and what is an alternative allele changes during decomposition.
As far as I know the RO:QR:AO:QA:GL values do not make sense anymore in these cases . See also this ticket:
https://github.com/chapmanb/bcbio-nextgen/issues/1334
We recognize these cases by the DECOMPOSED flag combined with the mismatch of the number of AO fields and the number of alternative alleles.  In these cases with discard the RO:QR:AO:QA:GL values.
This catches most of these cases, a small number of variants slips trough this filter (ie we don't discard the values but they don't make sense anymore).
There is a ticket open at vcflib (which does the haplotype to SNP decomposition). https://github.com/vcflib/vcflib/issues/147

Thanks, this is super old, and may not be a problem anymore, so am closing this.


fix: Column filtering indicator missing in FluentDataGrid

🐛 Bug Report
I'm pretty sure I saw the column filter button having an indicator when a filter applied, but it doesn't appear anymore.
💻 Repro or Code Sample
https://www.fluentui-blazor.net/DataGrid#customcomparer
🤔 Expected Behavior
Column filter button has an overlay when a filter is applied
😯 Current Behavior

🌍 Your Environment

OS & Device: Windows on PC
Browser Mozilla FireFox
.NET and Fluent UI Blazor library Version:

Version: 4.10.0+10a73c3c  -  Powered by .NET 9.0.0-preview.7.24405.7

Hi,
The icon can still show a filtered state of a column:

But for it to show up, you need to set the Filtered (bool) parameter on the column. For this Custom Comparer example it should be as follows:
<PropertyColumn Property="@(c => c.Name)" InitialSortDirection=SortDirection.Descending Sortable="true" IsDefaultSortColumn=true<EMAIL_ADDRESS>Filtered="!string.IsNullOrWhiteSpace(nameFilter)">

It used to be working for the Typical Usage sample but that one is now using the new action menu. I'll change it now for the Custom Comparer sample.


Remove spring gem

Thanks for creating an issue! Please fill out this form so we can be sure to have all the information we need, and to minimize back and forth.

What are we trying to do?

The spring gem has kind of outlived its usefulness in Rails world ever since bootsnap became a thing, and can make things behave a little weird. We should remove this and any related artifacts.

What feature or behavior is this required for?

Development environments acting standard.

How could we solve this issue? (Not knowing is okay!)

remove the spring gem

remove any places where there are spring gem related artifacts (the spring directory, the thing in the bin/ directory, anything else we've missed)

Anything else?

dude's got a point here: https://twitter.com/searls/status/1130513608536936449

completed in #1708


Add crypto conditions example

Codecov Report

Merging #153 into master will increase coverage by 1.5%.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           master    #153     +/-   ##
========================================
+ Coverage    81.2%   82.7%   +1.5%
========================================
  Files          11      11
  Lines         266     266
========================================
+ Hits          216     220      +4
+ Misses         50      46      -4

Impacted Files
Coverage Δ

src/baseRequest.js
79.31% <0%> (+6.89%)
:arrow_up:

src/request.js
92.85% <0%> (+14.28%)
:arrow_up:

Continue to review full report at Codecov.

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


Cow: Watch orlandojiujitsu.com

Cow requests the watch of the watch_keyword orlandojiujitsu\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

orlandojiujitsu\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by Jeff Schaller in Charcoal HQ


flatMap

Please explain the feature or improvement you would like:
Please add async flatMap
Please describe the use case where you would need that feature (the general situation or type of program where that would be helpful):
Currently the best counterpart to
arr.flatMap((elt) => f(elt))

is
(await asyncMap(arr, async (elt) => await f(elt))).flatMap(elt => elt)

Which is janky. I would prefer
await asyncFlatMap(arr, async (elt) => await f(elt))

Please explain why you think that feature would be helpful to other people:
Because flatMap is in stdlib Array

Actually you should also be able to call
await asyncMap(arr, async (elt) => await f(elt)).flat()

which is a bit faster.
But yes, it is true that we could provide a shorthand with asyncFlatMap.

Good point 🤦 but yes please


HDDS-10698. Bump skywalking-eyes to v0.6.0

What changes were proposed in this pull request?
skywalking-eyes has released version 0.6.0. This fixes the warning about deprecated node version from github actions, so we should upgrade to the new version.
What is the link to the Apache Jira?
HDDS-10698
How was this patch tested?

Failing run using the new version where a license header was intentionally removed.
CI on this PR should pass without a warning about using a deprecated node version.

Thanks for merging Attila.

I cannot find the warning about deprecated node version, license check already shows usage of version 20.

It showed up on the summary page for the workflow here and it came from skywalking-eyes setup-go dependency. As indicated in the skywalking-eyes release notes, they have upgraded setup-go to v5 to fix the warning.

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.


⚠ RPC server - Infura Matic Mainnet has degraded performance

In 13d60c5, RPC server - Infura Matic Mainnet ($INFURA_MATIC_MAINNET_RPC_URL) experienced degraded performance:

HTTP code: 429
Response time: 357 ms

Resolved: RPC server - Infura Matic Mainnet performance has improved in bc7385b after 7 minutes.


xx.otf is not a valid font file after use subset

When I use the subset with Chinese characters attached, I cannot open the font file.

Yes some more work is needed to produce standalone fonts when subsetting. See https://github.com/yeslogic/allsorts/issues/27

Thank you for your answer.


@pma-voice/shared.lua:90 Invalid type sent to argument #1,

Describe the bug
After updating to the latest version [HERE] I have developed a new error for all players on spawn in.  Players can join a radio channel and hear each other and can speak to each other.  The ingame audio no longer is working for speaking.
The error I see is this.

I am not sure if this is the reason why we can't hear or speak to each other in game or not, but just asking for a little assistance to clear the error, as I am hoping that is the cause.
To Reproduce
Steps to reproduce the behavior:
Server Info:

Server Version:
Client Version: Production
Client Build: QBCORE 5181
Game: FiveM

The error message gives you all of the detail setRadioChannel/addPlayerToRadio expects an actual number and you gave it nil


upgrade to lexilla 5.3

wxWidgets has been updated
does not support json bool, see config.cpp
use custom lexer instead of patching wxWidgets (new issue)

Done in 24.10


⚠ ClamAV has degraded performance

In be9471c, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 427 ms

Resolved: ClamAV performance has improved in 34cffc7.


add validators to username and email

Username should have regex validator
Email should have email format validator, probably also regex

This issue pertains to server-side


Feature/cab 2797

Coverage increased (+0.01%) to 80.709% when pulling 4d7efbbb0ed6a36f91ff8d803af59f5b9d8dc759 on feature/CAB-2797 into f1c0294a7aa5ed444d34159577b8a89e1e78cec0 on develop.


Config for FF-testnet

does db-sync supports ff-testnet?

Support for the F&F is a WIP.

I noticed the recent version of inputoutput/cardano-db-sync:master has a ff config. I got the following errors messages though:
/run/secrets
Generating PGPASS file
Connecting to network: ff
[db-sync-node:Info:4] [2020-06-22 03:56:45.63 UTC] NetworkMagic: RequiresMagic 42
cardano-db-sync: DbInsertException "SlotLeader" (SqlError {sqlState = "23514", sqlExecStatus = FatalError, sqlErrorMsg = "value for domain hash28type violates check constraint \"hash28type_check\"", sqlErrorDetail = "", sqlErrorHint = ""})

has a ff config.

It does? Where?
The code on master does not currently support the F&F testnet. the branch erikd/shelley-ff-network has work-in-progress support.

If you pull the recent docker image from https://hub.docker.com/r/inputoutput/cardano-db-sync/tags and pull the master tag. Then you run the docker image and you can check the configs at cat /bin/entry-point. You will notice ff is an option

@zenithpool The presence of ff config in the master image does not indicate compatibility in this case, only reinstates what @erikd has advised. You can however build an image locally in the compatible branch, and use this config by passing env NETWORK=ff. It's a single line command but requires the nix toolchain