Disable caching in express server for webapps

NPM Seems to pack all builds with Oct 26 1985 as the timestamp on files. Express server/Firefox use last time modified in their headers for caching. This can cause an updated app to not be served, as server returns "304 Not modified" and browser uses cached version.
Etag also needs to be disabled, (Etag is like fingerprint, also used to determine if client has latest version). For some reason Etag doesn't change when updating? Not sure what express is basing their fingerprint on?
Disabling these two mechanisms disables caching, though shouldn't really impact anything as we are not really serving high volume of requests from this interface...

Are you quite sure this is needed?
Furthermore it seems Etag is working as it should: given the following command line trickery:
$ ls -latr<EMAIL_ADDRESS>-rw-r--r--  1 tjk  staff  5250 Mar 10  2012<EMAIL_ADDRESS>$ touch -t<PHONE_NUMBER>13<EMAIL_ADDRESS>$ ls -latr<EMAIL_ADDRESS>-rw-r--r--  1 tjk  staff  5253 Mar 10  2012<EMAIL_ADDRESS>$ touch -t<PHONE_NUMBER>13<EMAIL_ADDRESS>
so setting last modification date explicitly (so that If-Modified-Since will not trigger 200 but should result in 304) BUT making changes to the file manually (so that Etag triggers 200) and opening new Chrome and Firefox windows the server serves 200 and 304 when it should.
As far as I can tell a webapp opened in a new browser window/tab loads always the latest version.
Note that navigating just back and forth between admin's webapps page and a webapp will not trigger any HTTP requests for the static resources. If this is what's biting you in the behind I can think of implementing the links to the webapps dynamically so that they include a random query param that will always trigger an http request that uses Etag, but I don't think that is really needed.

so setting last modification date explicitly (so that If-Modified-Since will not trigger 200 but should result in 304) BUT making changes to the file manually (so that Etag triggers 200) and opening new Chrome and Firefox windows the server serves 200 and 304 when it should.

Not sure what you mean by setting last modification date? npm is setting them all the same, so pre-upgrade and post upgrade, the index.html file has the same timestamp. So as far as timestamp goes, express sees the same. (unless you mean we should add something to set timestamps?)
For ETAG, I think I've figured it out. (at work so can't test to confirm, but makes sense) I think ETAG is generated based on timestamp and file size. The only think that changes in KIP's index.html file between versions is the hashes of the .js files, and they're constant length. (So file size doesn't change) So when updating KIP as far as the server's concerned the file has the same ETag? Same Etag + same timestamp = HTTP 304
In the end, If it's decided there's too much of a performance hit, not the end of the world :) Clearing cache on browser works as workaround for the odd time it happens.

Oh I finally get what you are saying: index.html size never changes in practise between versions and with index.html from browser cache you get either a broken or an out of date webapp.
So a much better solution is to set No-Cache for webapp roots, not turn off caching globally.

So a much better solution is to set No-Cache for webapp roots, not turn off caching globally.
Not sure how to do that, since the code is just mounting the directory itself.

Might not be needed though, I found an option in Angular to disable the hashing in filenames. I will test it and let you know! (though, this is something to keep in mind with other Apps though....)

Yep. Closing this one then.


runtime/race: instrument Sendmsg/Recvmsg and Flock

What steps will reproduce the problem?

write a program that synchronizes due to calls to Sendmsg and Recvmsg

build and test with -race

What do you see instead?

a race is detected

Which compiler are you using (5g, 6g, 8g, gccgo)?

6g

Which operating system are you using?

linux

Which version are you using?  (run 'go version')

tip

Please provide any additional information below.

Dmitry helped me debug this. Recvmsg needs:

  if rsa.Addr.Family != AF_UNSPEC {
  from, err = anyToSockaddr(&rsa)
  }
+ if raceenabled && err == nil {
+ raceAcquire(unsafe.Pointer(&ioSync))
+ }

Sendmsg needs:

  msg.Iov = &iov
  msg.Iovlen = 1
+ if raceenabled {
+ raceReleaseMerge(unsafe.Pointer(&ioSync))
+ }

Dmitry suggested that this is for after Go 1.1. Since it's a small fix, it would be nice
to do it before, but we can wait.

Another case that come up is synchronization via syscall.Flock. It's effectively a mutex, so treating it as synchronization in race detector looks reasonable.

@randall77 would the work that you did in CL 205461 aka commit https://github.com/golang/net/commit/2180aed2234323691e9fd264fb1d32d20ff04b27#diff-d1efad72dc5b17dc66a46767c32fff40 be similar to what would solve this issue? Thanks and happy new year!

I just hit this issue with flock :(


data result on FDDB

Hello, can you give me the detection result using mobile0.25 on FDDB dataset (already convert to FDDB mode)?

+1


Removal of stray HEAD changes to fix formatting

Fixes Issue #11514

Hi @danielma82 thank you for your contribution. This appears to be a duplicate of https://github.com/kubernetes/website/pull/11543 which has already merged to fix this issue. As a result I am closing this PR.


How to access the website from another laptop or phone on my home network?

Your environment.

Version: 38615107e091ca620425a48ed657128c2920cf3a
Browser: Firefox 100.0 (64-bit)
I installed ION and ion-app-web using the scripts (docker approach didn't work, i reported that on a separate issue)

What did you do?
I see a video feed of my camera. When I try to connect from my phone and my other laptop I am unable to connect. I use <IP_ADDRESS>:8080 which is my laptop's ip. Any idea why or how to solve this?
What did you expect?
I want to test the video conferencing by connecting from another laptop and a phone in my home network
What happened?
The browsers on the phone and the laptop are 'unable to connect' to the web app

I solved the issue by opening the 8080 port on my home router and adding --host <IP_ADDRESS> in package.json where the webpack-dev-server is used. From some reason nothing happened when I click the video icon. I tried on both firefox and chrome. on my mac, i am getting timeout so i am not even able to see the website. I'll try to troubleshoot it and if I fail, I'll create a separate issue.


How to combine with library bundler?

Example i have variable from bundler like this
private val name: String by bundle("name", "")

but i want make it observable to with anotation @get:Bindable, because that variable used for data in edittext, so i need to make it into 2way binding

i got it, i need to override set property then use notifyPropertyChanged


Print warning if two or mode configurations having same name are detected in Dynatrace.

Implements #305

Fixes #360


fix: pass 'extraFlixArgs' when creating shared REPL

Fixes flix/flix#5522

Thanks-- this looks correct.
Can I ask you to add your name to AUTHORS.md to confirm that you agree to release all your contributions under Apache 2.0?

Thanks!


Typo "@type"→"@type"

Bold with escape characters
https://docs.microsoft.com/sr-latn-RS/sql/relational-databases/replication/publish/delete-a-publication?view=sql-server-2014

@hyoshioka0128 : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Clustering becomes laggy on large dataset

Hi thank you for this awesome library. I am integrating it with my project, and I noticed that clustering becomes sluggish when I try it with large data set with more than a million flows, I tested the same data in flowmap city it works fine there. Any help is appreciated.

I just found about Flowmap city is aggregating flows with the same source - destination pairs thank you

Yes, Flowmap City is doing it more efficiently. If you want to embed it in your app, consider Flowmap City SDK


test: add wifi location test

Added wifi location test

Rename WiFi / SCELL / MCELL to "Ground Fix services" and update implementations to use https://api.nrfcloud.com/v1#tag/Ground-Fix/operation/GetLocationFromCellTowersOrWifiNetworks


Suggestions for persisting a collection of OHContacts?

What are you thoughts on adding
@property (nonatomic) NSString *identifier;
to OHContact so we can easily persist a list of contact identifiers that can later be used to refetch the same contacts from CNContactStore?  If not, how do you go about handling this case, if you do?

Let me rephrase that, can we just expose kOHCNContactsDataProviderContactIdentifierKey value being stored in customProperties. I guess I can make a category to do it, but rather not rely on the underlying key not changing. Curious was this is kept private.

Yes, I agree kOHCNContactsDataProviderContactIdentifierKey should be exposed.  Feel free to submit a PR doing so, or I can do so tonight.

Put together a pull request for it, https://github.com/uber/ohana-ios/pull/15. Thanks for the quick feedback on my issue.

New pull request with suggested approach: https://github.com/uber/ohana-ios/pull/16. Thanks.

Thanks for contributing, @chadpod. You should be able to point cocoapods to v 1.1.1 and get your change now.


[WIP] move to Kernel.SmartContract.Tests, test BridgeContext

Due to merged #1194 into this branch, have created new pr and closed this one.


Add class documentation FunctionSegmentNotDefinedErrorunexpected and make end_time optional

Description of your changes
Fix @saragerion  's comments on PR #828

Add class documentation on the FunctionSegmentNotDefinedErrorunexpected class
Make end_time optional as it can be undefined sometimes.

How to verify this change
Run E2E test
Related issues, RFCs
N/A
PR status
Is this ready for review?: Yes
Is it a breaking change?: NO
Checklist

[x] My changes meet the tenets criteria
[x] I have performed a self-review of my own code
[x] I have commented my code where necessary, particularly in areas that should be flagged with a TODO, or hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] I have made corresponding changes to the examples
[x] My changes generate no new warnings
[x] The code coverage hasn't decreased
[x] I have added tests that prove my change is effective and works
[x] New and existing unit tests pass locally and in Github Actions
[x] Any dependent changes have been merged and published in downstream module
[x] The PR title follows the conventional commit semantics

Breaking change checklist

[ ] I have documented the migration process
[ ] I have added, implemented necessary warnings (if it can live side by side)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

E2E tests: https://github.com/awslabs/aws-lambda-powertools-typescript/actions/runs/2302043877

@ijemmy I'm merging a bunch of dependabot PRs that came up after we merged the last PR. After I'm done (~5 left) could you please rebase?


handle the heavy-atom degree queries differently

The R-group decomposition PR changed AdjustQueryParameters::adjustDegree from bool to int and used the value of the int to determine which type of degree query was added - normal or heavy-atom degree. This was awkward and not backwards compatible.
This PR switches AdjustQueryParameters::adjustDegree back to being a bool and adds the new parameter AdjustQueryParameters::adjustHeavyDegree to allow heavy-atom degree queries to be added.

sigh. Hold off on this a bit. Something isn't right.

After this is pushed, I'll need to update the RGroupDecomp as well.
On Tue, Sep 12, 2017 at 10:36 AM, Greg Landrum<EMAIL_ADDRESS>wrote:

sigh. Hold off on this a bit. Something isn't right.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/rdkit/rdkit/pull/1560#issuecomment-328866975, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJbioPj4bdV-gwyKBERvMlKnr7f-cNgWks5shpKMgaJpZM4PUZnX
.

I'll take care of that as part of this PR

As an aside, I think I have a way of making these proper smarts queries we may consider at some point.  Currently they can't be smarts-i-fied.
It is alone the lines of for heavy degree 1:
>>> m = Chem.MolFromSmiles("CC")
>>> mh = Chem.AddHs(m)
>>> d = Chem.MolFromSmarts("[!#1&X4&H3,!#1&X3&H2,!#1&X2&H1,!#1&X1&H0]")
>>> m.GetSubstructMatches(d)
((0,), (1,))
>>> mh.GetSubstructMatches(d)
((0,), (1,))

The "enumerate the things it's not" approach is a good one. You do have to make some assumptions about possible valence states (not a problem for organics, but stickier for main groups and organometallics) but it's probably the only way to come at it.
Picky one here though: it probably shouldn't start with !#1


Add missing dev dependencies to base/next

Discovered this while trying a few things with rollup while investigating https://github.com/mui-org/material-ui/pull/30510 and https://github.com/mui-org/material-ui/pull/30200
@mui/material is being used in the tests of these packages.

Actually, the correct solution here would be to refactor the tests not to use @mui/material. The Base package should be standalone as much as possible. The integration testing is done in the material-next package.
I suggest closing this PR without merging. I'll create a follow-up to clean the tests.

@michaldudak Thanks for looking into this. One thing to be aware of, in @mui/material-next it's not the tests, it's the typings that import @mui/material.


Refactor the encondig code

Refactor the encoding code. Extract it from the jwt.rb monolith into a separate jwt/encode.rb file.

Hi! Could we close this already? Or maybe you have some additions/commentaries?

Forgot to click the button. Sorry. :)


Make cirq.GridQubit + cirq.GridQubit work

cirq.GridQubit(a, b) + (c, d) works
cirq.GridQubit(a, b) + cirq.GridQubit(c, d) does not work
The latter should act like the former.

Not sure how I feel about this. It seems odd to use GridQubit as a "delta" on another grid qubit.

The use case I ran into was defining a layout in grid qubits, and then passing in the center. It made sense for the function call to expose the center as a grid qubit, and for the internals to be defined on grid qubits, and then the offset operation is natural.


feat: add escrow indexing

Adding indexing for the Escrow(Erc20EscrowToPay) contract
Added two new entities in schema.graphql

EscrowEvent - used for logging state changes within one escrow.
Only important field here is eventType which can be: initializeEmergencyClaim, revertEmergencyClaim, freezeEscrow

Escrow - object representing the current state of an escrow instance.
The most important field here is escrowState which can be: inEscrow (normal), inEmergency, inFrozen, closed.

Also payment events will be generated, 2 per escrow instance, on deposit and on payout.
Description of flow

Escrow is created and funds are deposited - event TransferWithFeeAndReference is generated
Subgraph:

creates Payment object
creates general Escrow object: status is inEscrow

Escrow goes into emergency claim status - event InitiateEmergencyClaim generated
Subgraph:

creates EscrowEvent object with eventType: initializeEmergencyClaim.
updates the status of the general Escrow object to inEmergency

Escrow reverts emergency claim, it's back to normal - event ReverseEmergencyClaim generated
Subgraph:

creates EscrowEvent object with eventType: revertEmergencyClaim
updates the status of the general Escrow object to inEscrow, it's back to normal again.

Escrow goes into frozen state - event RequestFrozen is thrown
Subgraph:

creates EscrowEvent object with eventType: freezeEscrow
updates the status of the general Escrow object to inFrozen.

Escrow is paid out. The funds are either sent to the payee or if it was frozen, refunded to the payer - event TransferWithFeeAndReference is generated
Subgraph:

Event is thrown only in Erc20FeeProxy for now
Inside the Erc20FeeProxy handler for payments we create regular Payment event, and we update Escrow object status to closed and we create EscrowEvent of type closed.

One Warning.
There is an issue if payment reference is reused. Currently we can create an escrow with one payment reference, then pay it out, close it and then a second escrow can be created with that same reference.
Because we're using the payment reference as the Escrow id in the graph, these two separate escrows will have the same id and the graph will think it's the same one, so all events will go under that one escrow.
One solution is to have a salt alongside the payment reference and use both to create the id for the graph entity.

One Warning. There is an issue if payment reference is reused. Currently we can create an escrow with one payment reference, then pay it out, close it and then a second escrow can be created with that same reference. Because we're using the payment reference as the Escrow id in the graph, these two separate escrows will have the same id and the graph will think it's the same one, so all events will go under that one escrow. One solution is to have a salt alongside the payment reference and use both to create the id for the graph entity.

this is the problem solved by generateId, see https://github.com/RequestNetwork/payments-subgraph/blob/main/src/shared.ts#L7


move broccoli-funnel to dependencies.

Moving broccoli-funnel to addon dependencies will install it as a dependency for the addon in the installation process.

still travis is failing. same issue as https://github.com/lifegadget/ember-cli-bootstrap-sassy/issues/14

Oh cool, that's handy to know how easy an npm dependency like that is met. Also thanks for fitting this in considering how busy you are.

What do you think about moving back to 3.1 of ember-cli-sass? I think we should do it unless you're aware of an imminent fix on the 3.2.x releases.

no problem at all. yes i think it's ok for now. i'm already using v3.1 without any issue.

also can you confirm that is ok now with broccoli-funnel dependency?

about to run into a series of meetings but will check later today

ok great. thanks.

@charlatan154 down with a flu so it took longer than expected but upon inspection your "npm magic" seems to work funnel magic. Thanks. :)

nice to hear that it's working now. hope you get well soon.


Replace moment.js with Intl

The brand new browser capability, Intl, supports wider locales than moment.js but doesn't support relative times needed for this project which intl-relativeformat can be used. Probably worth to be considered.

the only IE version that supports it is IE11 though.

Correct. And not Safari and mobile browsers other than Chrome. There is a shim for it but probably not worth to hassle for replacing Intl for now. I'll close this as my intention was just informing you about this new thing.


Replacing the term App with Account

Originally, the App term has been introduced in order to distinguish between two different kinds of Account:

Simple Account
Smart-Contract Account

Recently, the team has voted for shifting towards the Account Abstraction (a.k.a Account Unification) model.
This decision turns the App term to being redundant.
Moreover, keeping using the term App it might cause confusion to people since there is no difference between an App and Account - all Accounts are now (for the v0.3) of the same model.
This means that we'll use this terminology:

Deploy a Template
Spawn Account (out of a given Template)
Execute Account Transaction / Execute Transaction / Call Account

Related:

https://github.com/spacemeshos/SMIPS/issues/49
#253

Makes sense, but I still think we may need a term to refer specifically to the code portion of an account, and we may also need to differentiate between classes (e.g., templates) and instances. Saying "execute an account" sounds a bit strange to me. As one point of comparison, Diem/Move has two types of "programs": "modules" and "scripts" (https://developers.diem.com/main/docs/move-modules-and-scripts). I like this terminology.

An Account encapsulates a couple of properties. One of them is the code.
Why not just call it The Account's code?
Also, an Account is an instance of a Template


deps: [M3-8782] - Patch cookie version

Description 📝
See: https://github.com/linode/manager/security/dependabot/131

cookie is being used by msw (Mock Service Worker) through @bundled-es-modules
cookie is also being used by express which stems from @storybook/react-vite and @storybook/builder-vite

Changes  🔄

Add cookie resolution pinning to > 0.7.0

Target release date 🗓
01/14/2025
How to test 🧪
Reproduction steps

Run yarn why cookie to observe dependencies and versions found in yarn.lock
Observe:

=> Found<EMAIL_ADDRESS>info Reasons this module exists    - "_project_#linode-manager#msw#@bundled-es-modules#cookie" depends on it
=> Found<EMAIL_ADDRESS>info This module exists because "_project_#linode-manager#@storybook#react-vite#@storybook#builder-vite#express" depends on it.

Verification steps

Run same commands
Observe:

=> Found<EMAIL_ADDRESS>info Reasons this module exists
   - "_project_#linode-manager#msw#@bundled-es-modules#cookie" depends on it
   - Hoisted from "_project_#linode-manager#msw#@bundled-es-modules#cookie#cookie"
   - Hoisted from "_project_#linode-manager#@storybook#react-vite#@storybook#builder-vite#express#cookie"

Run yarn storybook and observe it still works
Run Cloud Manager app and observe there's no issues
Hoisted just means that it was moved up in the dependency tree for deduplication

 Author Checklists
As an Author, to speed up the review process, I considered 🤔
👀 Doing a self review
❔ Our contribution guidelines
🤏 Splitting feature into small PRs
➕ Adding a changeset
🧪 Providing/improving test coverage
🔐 Removing all sensitive information from the code and PR description
🚩 Using a feature flag to protect the release
👣 Providing comprehensive reproduction steps
📑 Providing or updating our documentation
🕛 Scheduling a pair reviewing session
📱 Providing mobile support
♿  Providing accessibility support

[x] I have read and considered all applicable items listed above.

As an Author, before moving this PR from Draft to Open, I confirmed ✅

[x] All unit tests are passing
[x] TypeScript compilation succeeded without errors
[x] Code passes all linting rules

Thanks for looking into this one, looks good! Can you run yarn install and push to update the lockfile


Use pagination more to avoid large loads

Paginates large sectioned boards by section (per page: 25)
Paginates large character views by template in template view IF the user has more than 50 templates AND the the user does not have character groups (per page: 25)
Paginates ungrouped character pages IF the user has more than 100 characters (per page: 25 for list view, 50 for icon view)
Paginates galleries#index (per page: 100)
Paginates galleries#show (per page: 100)

This does not affect expandable galleries (I don't have better solution than having it just show an error and say to go to the gallery page) or people with character groups (terrifying).
I could add something to paginate template#show though

This does not affect expandable galleries (I don't have better solution than having it just show an error and say to go to the gallery page) or people with character groups (terrifying).

Honestly so legit for character groups
For expandable galleries I think this is fair - maybe in the future we could just load the first N and have a "show more" button redirecting to the full paginated version?

Merging some other stuff, then we'll rebase this on top and deploy it to staging to validate the UI


Upload model to HuggingFace

We eventually want model to be stored on HuggingFace for distribution.
Suggest this is done once github repo is in a reasonable state.
What about datasets?
Can we upload a subset of the pangeo cmip dataset to Huggingface?

Some updates.
Datasets:

Small low-resolution forcing dataset uploaded to Hugging Face @ datasets/M2LInES/gfdl-cmip26-gz21-ocean-forcing . (Not the CM2.6 dataset itself; it should be possible to take a "chunk" to upload on Hugging Face, but it's large & would need some expertise.)
Forcing data approximating the configuration described in Arthur's paper is generated -- uploading will take some time due to size and getting to grips with HPC use.

Model:

Low-resolution trained model uploaded to Hugging Face @ M2LInES/gz21-ocean-momentum.
Training model with hyperparameters approximating the paper's configuration -- pending HPC (CSD3) time slice.
No code for loading in inference mode yet, other than that in the testing step (which isn't configurable).

Added initial information about the data to the readme in #96

Re my Aug 14 comment: this is complete. The forcing data & model hosted on HuggingFace are low-resolution but usable. Uploading of higher-resolution artifacts is being tracked at #110 .


[PLUGIN_NAME_HERE]: Error during Google sign-in: type 'List<Object?>' is not a subtype of type 'PigeonUserDetails?' in type cast

Is there an existing issue for this?

[X] I have searched the existing issues.

Which plugins are affected?
Auth
Which platforms are affected?
Android, iOS
Description
My app is getting crashed when I am trying to login through google, and some time I am getting issue that the emails are also not showing
Future signInWithGoogle() async {
try {
// begin interactive signIn process
final GoogleSignInAccount? gUser = await GoogleSignIn(
scopes: [
'email',
],
).signIn();
  if (gUser == null) {
    Fluttertoast.showToast(msg: "Google sign-in canceled");
    return;
  }

  // obtaining auth details from request
  final GoogleSignInAuthentication gAuth = await gUser.authentication;

  // create a new credential for user
  final credential = GoogleAuthProvider.credential(
      accessToken: gAuth.accessToken, idToken: gAuth.idToken);

  UserCredential userCredential =
      await FirebaseAuth.instance.signInWithCredential(credential);

  User? user = userCredential.user;
  if (user != null) {
    await user.reload();
    user = FirebaseAuth.instance.currentUser;
  }

  print("this is access token----${gAuth.accessToken}");

  // Get the access token
  final accessToken = gAuth.accessToken;
  final fcmToken = await PrefManager.getUserFCMToken();

} catch (e) {
  debugPrint("Error during Google sign-in: ${e.toString()}");
  Fluttertoast.showToast(msg: "Error during Google sign-in");
}

}
Reproducing the issue
Clicking on google sigin button then getting the issue some time app is also crashing.
Firebase Core version
2.24.2
Flutter Version
3.22.0
Relevant Log Output
I/flutter ( 4595): Error during Google sign-in: type 'List<Object?>' is not a subtype of type 'PigeonUserDetails?' in type cast
E/OplusCustomizeRestrictionManager( 4595): sInstance is null, start a new sInstance
D/CompatibilityChangeReporter( 4595): Compat change id reported: 210923482; UID 10366; state: ENABLED
D/CompatibilityChangeReporter( 4595): Compat change id reported: 147798919; UID 10366; state: ENABLED

Flutter dependencies

Expand Flutter dependencies snippet

Replace this line with the contents of your `flutter pub deps -- --style=compact`.

Additional context and comments
No response

Kindly bump your flutterfire plugin versions and try again

I faced a similar issue where some of my Firebase packages wouldn’t update past a certain version after running flutter pub upgrade. Upon investigation, I realized that the issue was caused by the cached_network_image package.
Here’s how I resolved the problem:

I removed the cached_network_image package from my project.
Then, I ran flutter clean to clear the build cache.
Next, I executed flutter pub get to fetch dependencies.
Finally, I ran flutter pub upgrade to ensure all packages were up-to-date.

P.S. Uninstall the app on the device as well; ensure a completely clean build.
After these steps, everything returned to normal, and the Firebase packages upgraded successfully.

The issue is resolved only we need to update the package of firebase core and firebase auth


exec: report -1 (255) on signal exit

This makes exec behave even more similar to ssh.
Signed-off-by: Christian Brauner<EMAIL_ADDRESS>

Closes https://github.com/lxc/lxd/issues/2774.

As discussed, current testsuite failure is expected.


Complementary color is not correct

Hi @evanleck,
When I try to get the complementary value of a color, I get a color that from my point of view is not correct. The image below shows the colors I am working with.

The following code I have used to obtain the complementary value of the color #ffd000
require 'kodachroma'
puts Kodachroma.paint('#ffd000').complement

#OUTPUT > #002fff

However the complementary of #ffd000 is #002fff an unwanted color for me.
Best regards,
Stan.

Hey Stan, from what I can tell we're doing the right thing here. The code for the #complement method is below and it just rotates the hue 180 from where it is. What URL are you using to generate that other complementary color? I tried the same thing on https://www.canva.com/colors/color-wheel/ and got #002fff.
# Returns the complementary color.
#
# @example
#   'red'.paint.complement #=> cyan
#
# @return [Color] the complementary color
def complement
  hsl = self.hsl
  hsl.h = (hsl.h + 180) % 360
  self.class.new(hsl, @format)
end

Hi @evanleck,
The problem is that I am working with colors in a RYB color space and not RGB.
Can't set RYB color model? if not, it is something that I must implement.
Best regards,
Stan.

@stanlyonhack I don't believe the RYB color model is supported, no. PRs welcome, though!


Set updatedAt based on when location's case data last changed

This will help users be aware of the most blatant of the issues related to the spotty reporting issues described in:

#1685

It results in a (slight reworded) warning going up specifically for places where the most recent prevalence update is older than a week:

This an existing warning that will continue to go up for all places when microCOVID's prevalence pipeline has stalled for more than a week.
We can certainly do better from a UX perspective, but this seems a relatively safe change that I feel confident enough to put in quickly.
To do:

[ ] Convince myself the other uses of updatedAt are correct against the change
[x] Write tests

Note: This is perhaps not the exact use case in mind from when updatedAt was added as a per-location field in https://github.com/microCOVID/microCOVID/pull/1205 by @oxytocinlove, but I believe it is in the spirit.


[Bug] Msal Uses Common Fork Join Thread Pool as Default Thread Pool to execute Auth requests.

Library version used
1.15.0
Java version
Java 11
Scenario
PublicClient (AcquireTokenInteractive, AcquireTokenByUsernamePassword)
Is this a new or an existing app?
None
Issue description and reproduction steps
The Issue is that Msal Uses Default Common Fork Join Pool Thread Pool to execute auth requests, which results in deadlocks when high parallelism is used in customer apps.
This issue can be resolved by below approach:

Instantiate a static THREAD_POOL in the appropriate class where it can be accessed as below:

    // Use this THREAD_POOL in CompletableFuture to execute auth requests.
    public static final ExecutorService THREAD_POOL = getThreadPoolWithShutdownHook();
    private static final long THREADPOOL_SHUTDOWN_HOOK_TIMEOUT_SECONDS = 30;

Define the logic for  getThreadPoolWithShutdownHook method:

    public static ExecutorService getThreadPoolWithShutdownHook() {
        return addShutdownHookSafely(Executors.newCachedThreadPool(new CustomThreadFactory("msal4j-client")),
            Duration.ofSeconds(THREADPOOL_SHUTDOWN_HOOK_TIMEOUT_SECONDS));
    }

    /**
     * Helper method that safely adds a {@link Runtime#addShutdownHook(Thread)} to the JVM that will close the
     * {@code executorService} when the JVM is shutting down.
     *

     * {@link Runtime#addShutdownHook(Thread)} checks for security privileges and will throw an exception if the proper
     * security isn't available. So, if running with a security manager, setting
     * {@code AZURE_ENABLE_SHUTDOWN_HOOK_WITH_PRIVILEGE} to true will have this method use access controller to add
     * the shutdown hook with privileged permissions.
     *

     * If {@code executorService} is null, no shutdown hook will be added and this method will return null.
     *

     * The {@code shutdownTimeout} is the amount of time to wait for the {@code executorService} to shutdown. If the
     * {@code executorService} doesn't shutdown within half the timeout, it will be forcefully shutdown.
     *
     * @param executorService The {@link ExecutorService} to shutdown when the JVM is shutting down.
     * @param shutdownTimeout The amount of time to wait for the {@code executorService} to shutdown.
     * @return The {@code executorService} that was passed in.
     * @throws NullPointerException If {@code shutdownTimeout} is null.
     * @throws IllegalArgumentException If {@code shutdownTimeout} is zero or negative.
     */
    public static ExecutorService addShutdownHookSafely(ExecutorService executorService, Duration shutdownTimeout) {
        if (executorService == null) {
            return null;
        }
        Objects.requireNonNull(shutdownTimeout, "'shutdownTimeout' cannot be null.");
        if (shutdownTimeout.isZero() || shutdownTimeout.isNegative()) {
            throw new IllegalArgumentException("'shutdownTimeout' must be a non-zero positive duration.");
        }

        long timeoutNanos = shutdownTimeout.toNanos();
        Thread shutdownThread = new Thread(() -> {
            try {
                executorService.shutdown();
                if (!executorService.awaitTermination(timeoutNanos / 2, TimeUnit.NANOSECONDS)) {
                    executorService.shutdownNow();
                    executorService.awaitTermination(timeoutNanos / 2, TimeUnit.NANOSECONDS);
                }
            } catch (InterruptedException e) {
                Thread.currentThread().interrupt();
                executorService.shutdown();
            }
        });

        CoreUtils.addShutdownHookSafely(shutdownThread);

        return executorService;
    }

   /**
     * Helper method that safely adds a {@link Runtime#addShutdownHook(Thread)} to the JVM that will run when the JVM is
     * shutting down.
     *

     * {@link Runtime#addShutdownHook(Thread)} checks for security privileges and will throw an exception if the proper
     * security isn't available. So, if running with a security manager, setting
     * {@code AZURE_ENABLE_SHUTDOWN_HOOK_WITH_PRIVILEGE} to true will have this method use access controller to add
     * the shutdown hook with privileged permissions.
     *

     * If {@code shutdownThread} is null, no shutdown hook will be added and this method will return null.
     *
     * @param shutdownThread The {@link Thread} that will be added as a
     * {@link Runtime#addShutdownHook(Thread) shutdown hook}.
     * @return The {@link Thread} that was passed in.
     */
    @SuppressWarnings({ "deprecation", "removal" })
    public static Thread addShutdownHookSafely(Thread shutdownThread) {
        if (shutdownThread == null) {
            return null;
        }

        if (ShutdownHookAccessHelperHolder.shutdownHookAccessHelper) {
            java.security.AccessController.doPrivileged((java.security.PrivilegedAction<Void>) () -> {
                Runtime.getRuntime().addShutdownHook(shutdownThread);
                return null;
            });
        } else {
            Runtime.getRuntime().addShutdownHook(shutdownThread);
        }

        return shutdownThread;
    }

    // Custom Thread Factory logic to give custom thread names.
    public class CustomThreadFactory implements ThreadFactory {
          private static final AtomicInteger poolNumber = new AtomicInteger(1);
          private final AtomicInteger threadNumber = new AtomicInteger(1);
          private final String namePrefix;
          public CustomThreadFactory(String namePrefix) {
              this.namePrefix = namePrefix + "-" +
                     poolNumber.getAndIncrement() +
                     "-thread-";
          }

         @Override
         public Thread newThread(Runnable r) {
              Thread thread = new Thread(r, namePrefix + threadNumber.getAndIncrement());
              if (thread.isDaemon())
                   thread.setDaemon(false);
              if (thread.getPriority() != Thread.NORM_PRIORITY)
                  thread.setPriority(Thread.NORM_PRIORITY);
              return thread;
         }
    }

Reference Issue by Az Identity customer: https://github.com/Azure/azure-sdk-for-java/issues/39676
Relevant code snippets
No response
Expected behavior
No response
Identity provider
Microsoft Entra ID (Work and School accounts and Personal Microsoft accounts)
Regression
No response
Solution and workarounds
No response

Pls close the ICM: https://portal.microsofticm.com/imp/v3/incidents/incident/492551519/summary

which results in deadlocks when high parallelism is used in customer apps.

We've run into similar issue when using TokenCredential.getToken(). No obvious deadlock from thread dump, but the server is indeed stuck. Did a lot of investigation and repro, then find this thread.
Several questions to ask:

Is there any clear explaination for the "deadlock" reason when using "ForkJoinPool.CommonPool" to execute auth requests?
Is there any plan from MSAL side to avoid use ForkJoinPool.CommonPool?


sweepremoteclosed can't sweep P2WSH

We have a number of channels that were in an ABANDONED state due to a (since-fixed) bug in LND v18.0 and LiT.
They have been force-closed on the remote side, and the funds were sent to a a P2WSH address.
I have attempted to use sweepremoteclosed with a recovery window as high as 10000, still finding 0 sweep targets with total value of 0 satoshis which is below the dust limit of 600.
Have also tried chantools genimportscript --format electrum --recoverywindow 20000 --lndpaths and imported private keys into electrum, but unfortunately it only finds channel open/close transactions with P2WPKH outputs.
How can I sweep these funds?

Can you DM me some of the close transactions in question? I assume they were of type anchor channel?

Also, what version of chantools did you use? The releases v0.13.1 or latest master? If it was master then you should try again as there was a small bug that might've skipped unspent outputs in some cases (merged now: https://github.com/lightninglabs/chantools/pull/146).
The recovery window highly depends on the number of channels opened over the lifetime of the node. 10k might be enough or it might not be. If you want to get a max number, I'd suggest running lncli wallet accounts list | grep -A8 'default' | grep -A3 1017 and look at the external_key_count, then take one more than that.

That was it!
Updated to latest master with your merged changes, ran sweepremoteclosed  with --recoverywindow 1000 and it found my 5 force-closed channels. Then repeated with --publish and funds have now been recovered.
Huge thanks @guggero

Woohoo, happy to hear.


Docker installation script fails on macOS High Sierra version 10.13.6

The hostname configuration does not work like on Ubuntu. Must use ifcong instead:
#export KRAKEN_LOCAL_IP=$(hostname -I | cut -d' ' -f1)
export KRAKEN_LOCAL_IP=$(ifconfig | grep "inet " | grep -v <IP_ADDRESS> | cut -d' ' -f2)

How to switch command depending on the OS? Maybe use a try/catch?

Check Jmeter .sh how it is done.


[AMBARI-23199] Infra Solr - add status and host checks for backup/restore/migrate custom commands.

What changes were proposed in this pull request?
Add status check + host check (run command only, if there is a core for the specific collection on the host) for infra solr custom commands
How was this patch tested?
mvn clean test (unrelated test failures)
please review @kasakrisz @swagle

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1105/
Test PASSed.


Reusable adapter for (local) file search

Hi,
to learn trustfall I've implemented a small adapter for search through local files. I'm very pleasent with the result as these kind of searches could only be done with one-off scripts beforehand, but now there just a trustfall query away.
This is my schema:
schema {
    query: RootSchemaQuery
}

type RootSchemaQuery {
    Path(path: String!): Path!
}

interface Path {
    path: String!

}

type Folder implements Path {
    path: String!
    children: [Path!]
}

type LocalGitRepository implements Folder & Path {
    path: String!
    children: [Path!]
    branches: [Branch!]
    remotes: [Remote]
}

type Branch {
   name: String!
}

type Remote {
   name: String!
   url: String
}

interface File implements Path {
    path: String!
    size: Int!
    extension: String!
}

type Textfile implements File & Path {
    path: String!
    size: Int!
    extension: String!
    text: String!
}

type Imagefile implements File & Path {
    path: String!
    size: Int!
    extension: String!
    height: Int!
    model: String
}

type PdfFile implements File & Path {
    path: String!
    size: Int!
    extension: String!
    text: String
    n_pages: Int
    pages: [PdfPage]
}

type PdfPage {
   page_number: Int!
   page_name: String!
   text: String
}

Here are some simple example queries using this schema (without arguments).
List all images which created by stable diffusion:
query {
    Path(path: "/home/julian/Downloads/") {
        ... on Folder {
            children {
                ... on Imagefile {
                   path @output
                   height @output
                   model @output @filter(op: "regex", value:["$model"])
                }
            }
        }
    }
}

List all local only (without remote) repositories, which have a branch named master:
query {
    Path(path: "/home/julian/Documents/Coding") {
        ... on Folder {
            children @recurse(depth: 2) {
                ... on LocalGitRepository {
                   path @output
                   branches {
                       name @output @filter(op: "=", value: ["$branch_name"])
                   }
                   remotes @fold @transform(op: "count") @filter(op: "=", value: ["$zero"])
                }
            }
        }
    }
}

Search through all PDF Files in folder recursively and list page number
query {
    Path(path: "/home/julian/Downloads/") {
        ... on Folder {
            children @recurse(depth: 1) {
                ... on PdfFile {
                   path @output
                   pages {
                       text @filter(op: "has_substring", value: ["$search_string"])
                       page_number @output
                       page_name  @output
                   }
                }
            }
        }
    }
}

With this schema I've tried to create a recognizable and reusable type system. I've seen some of your queries (couldnt find them anymore) searching for files, but they contained more function names rather than technical terms (a Path can be either be a file or directory; a directory can be a git repo). How do you like it? Do you think this is a good starting point?
One future goal of this schema is to have an abstraction around versions of a file. When searching through a git repo multiple version of that file exist. The same is true for cloud storage solutions like Dropbox or filesystem like BTRFS. It would be really cool to search through all versions of a file with one query.
Where should these community adapters go? Do you want me to create a pull request for this repo or to create them in another repo? Can I use the name trustfall in the repo name?
I've currently implemented the adapter in Python, but am on the way to converting it to Rust. The end goal being to create a powerful Desktop application to search the filesystem.
Best regards & thanks for all the great work you've done.
Julian

This is great, and is a great example of exactly what Trustfall exists to make easy and pleasant! Thanks for sharing!
Logistically, it'll probably be easiest to keep community adapters in their own repos. If you send me a link, I'll start a "Community Adapters" section in the README and docs and I'd be happy to link to it there.
Thanks for asking about using the name. Feel free to include "trustfall" as part of the repo name, and consider using a README title like " adapter for Trustfall" ideally linking to the Trustfall repo. I'm hoping that cleanly balances between the clarity of the use case ("it's a Trustfall adapter! use it to query ") and the fact that the source code in that repo is its own thing, not affiliated with or endorsed by the Trustfall project itself. The "not affiliated" part is important to me because I'd love to avoid the sort of thing the author of curl has been dealing with: they get hate-mail from frustrated people who had a bad experience with some piece of software that uses curl under the hood.


Swapped dark/light button icons fixed

Do you have any idea, why the icon on the dark theme isn´t right? The icon should be white. Everything should be fine with your commit, I´ve also looked in the docu, but I have no clue why this isn´t work.

The docomentation on https://webextension-api.thunderbird.net/en/78/messageDisplayAction.html#messagedisplayaction-themeicons says that dark refers to dark text with a light theme and light refers to light text with a dark theme. Indeed a bit confusing.

My problem is that the light icon is never used. I have loaded your branch in my thunderbird and tested it.
Light (good):
Dark (bad):
I want to understand why the light icon is never used.

I found a solution for this problem, I will detecting the theme in the js and change the icon from there.


Cons pref shock model

Notebook documentation completed for ConsPrefShockModel.ipynb

I will take a look at this PR over the next week.

This PR has two new files: ConsPrefShockModel.ipynb and GenIncProcessModel.ipynb
Neither works as written due to changes in HARK since (as well as code errors within the notebook).
I'd expect this to be the case for all these PRs from 2018.
As a workflow, what I think we can do is:

get each of these PR's locally
make a new PR with the commits from the original PR with any necessary repairs
note that these new PRs will need a Jupytext'ed .py file


fix: only include smtp.username if it's set

Including an empty username causes failures with unauthenticated servers

Please show the errors or related issue.

@NHellFire

I now can't reproduce the issue I had, so I'm just going to close this.


don't use llama if trust_remote_code is set since that needs to use AutoModel path

per emozilla, we shouldn't be using these models when trust_remote_code is set

I would think:

Since we warn if this is on, users can be careful and may be responsible for it.
If someone were to customize llama, that would make it incompatible with our code (which can be both pros and cons)
I think if you were to check, we should move this to validate_config function to prevent more validation code in codebase spread out


getFlag returns a number

I am trying to get a flag using the getFlag method.
But it returns a number.

This is the method called, which returns a require of the image https://github.com/rili-live/react-native-phone-input/blob/master/src/resources/flags/index.ts#L253


Removed symfony23 finder

Explain?

Symfony use the default finder. Their config is committed in their code base...

https://github.com/symfony/symfony/blob/2.3/.php_cs

https://github.com/symfony/symfony/blob/2.7/.php_cs

Ah, ok :)
:+1: then.

What about Magento?
https://github.com/magento/magento2/blob/develop/.php_cs

I'd rather keep that to a different PR. Infact, I think we should remove that extra namespace we have too.

For config and finder.

I'd rather keep that to a different PR

why?
Clearing old configs/finders and keeping universal one seems to be quite atomic ;)


Modify uploaded file name

Hi, is it possible to customize upload form to add text field and then change uploaded file name based on input text field?

Hi @benny-adiwijaya , I'm afraid it is impossible to perform that functionality for now.


214 build override

@danielcondemarin If we aren't going to decouple the build then I'd like a way to pass additional ENVs to the build. As I've progressed the projects that are using this library, I've now run into needing access to serverless variables. Currently I solve this by creating my own custom component that gets fed the variables and does the NextJS builds. The outputs from the custom component get passed into the serverless-nextjs-component so that it doesn't run until my build component finishes.
I suggest something like this:

Support inputs.nextStaticPath
Support inputs.nextBuildArguments
Support inputs.buildScripts. This defaults to running the standard build with inputs.nextBuildArguments but can be overridden with an array of scripts to run.

Here is a mock sample of the default configuration
MyNextJSProject:
  component: serverless-next.js
  inputs:
    build: true
    nextStaticDir: './'
    buildScripts:
      - cmd: 'node_modules/.bin/next'
        args: ['build'].concat(inputs.nextBuildArguments)
        cwd: './'
        env:
          envOne: true

Benefits

Allows the build to stay coupled for basic setups
Easily put additional dependencies into the build
Supports two types of being overridden: Passing inputs.nextBuildArguments or by replacing the inputs.buildScripts

Sorry for the rant but I"m just trying to figure out what will get me out of this fork and back into master. I'm going to create a pull request for this.

@jlaramie Just a few questions from me:

Why an array of buildScripts? What else would buildScripts be used for other than a customised next build?

Would it be possible to condense these options under the same build input? I think it will result less confusing for users if is just one input rather than several inputs build, nextBuildArguments, buildScripts that can also clash with each other. For example:

# default
MyNextJSProject:
  component: serverless-next.js
  inputs:
    build:
      cmd: 'node_modules/.bin/next'
      args: ['build']
      cwd: './'

# custom build opts with env etc.
MyNextJSProject:
  component: serverless-next.js
  inputs:
   build:
      cmd: '../some/other/.bin/next'
      args: ['build', 'src']
      cwd: './'
      env:
        foo: ${SomeOtherComponent.foo}
SomeOtherComponent:
  ...

# don't build
MyNextJSProject:
  component: serverless-next.js
  inputs:
    build: false

Presumably that covers all use cases?

@danielcondemarin I can make those changes. I took this logic from my own custom serverless component which uses arrays in order to call multiple build scripts. The idea was to be able to call more than one script if you wanted to like if there are two distinct things you want to build with different arguments.
I like the idea of putting this all under build

@danielcondemarin I can make those changes. I took this logic from my own custom serverless component which uses arrays in order to call multiple build scripts. The idea was to be able to call more than one script if you wanted to like if there are two distinct things you want to build with different arguments.
I like the idea of putting this all under build

@jlaramie Feel free to make the changes and we'll get it merged 🙏
Also, I'd prefer if it wasn't an array. It shouldn't be responsibility of the next component to build other things aside from the next app.

@danielcondemarin Just pushed the changes you suggested. I also updated the readme and added an example

@danielcondemarin Yeah really if you need multiple things built you should just modify the build script to call a wrapper command

@jlaramie Excellent work! Thank you 🙏


Refactoring Outline Connectivity example using report package

Outline Connectivity is now using report package to collect connectivity report
This PR fixes an issue with report package where Collector type struct fields could not be exported and used externally

@fortuna could you please review this PR for me when you have a moment? I also refactored the outline connectivity app with report package and wanted to do a PR for that but since there's some dependencies on the fixes I made to reporter package in this PR, I'd rather wait until this is merged to main before open the other PR.

@fortuna Thanks a lot for the feedback! Applied the suggested changes


It's 'its'.

The possessive neuter pronoun is spelled its.
The contraction of "it is" is spelled it's.
PR to follow.

see PR #49

Closed by #49


"Show next message after delete" no longer opens previous message when there is no next message

Checklist

[X] I have used the search function to see if someone else has already submitted the same bug report.
[X] I will describe the problem with as much detail as possible.

App version
6.305
Where did you get the app from?
F-Droid
Android version
12
Device model
Motorola g52
Steps to reproduce
Prerequisite:
Set "Display next message after deletion" to on in General Settings/Interaction

Go to a mail folder
Set the order by date
Scoll down to the last item in the list
Open that mail
Delete that mail

Expected behavior
In the previous version the system displyed the next mail (aka. the more recent one)
Note, I might remember there was an arrow in the header, to switch direction if I wanted to go one mail down or up when in the mail reading pane.
Please pull this useful function back.
Actual behavior
The system displays the list instead of the next mail (the more recent one)
The direction change arrow is also missing now.
Logs
No response

Thanks for the bug report. We'll restore the old behavior to open the previous message when there is no next message that could be opened.
The arrow icons were removed because you can now swipe left and right to move to the previous and next message.

Thank you guys. You re just awesome :)


Upgrade ASL Recognition demo

The upgrade for the ASL Recognition demo includes:

Tracking of each person in a scene (instead of very first only).
Action recognition for the arbitrary specified person.
Switching between active persons by pressing button with appropriate numeric key (according bbox ID).
Switching between tracking and recognition modes by pressing space button.
Visualization of video streams with different frame rate (action prediction and sample playing) in a separate process.
Library of ASL video samples.

@yssemaev, we add ASL video samples, so please take a look.

@vladimir-dudnik, video samples are moved to PR.


Animbits: SoftTweak: add elements on reference object lost material connection

If we add more objects adter softTweak creation on a reference asset the material is lost in the new added models.
Current workaround is to delete softTweak and recreate it or export an re-import over a fresh referenced model.
More research is needed to improve this workflow

This issue was moved to mgear-dev/animbits#1


Node.js 12 deprecation warning

I'm getting the following warning:

Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: conda-incubator/setup-miniconda

Not sure how these actions work. Does updating @types/node in package.json solve it?
Edit: I see using: "node12" in action.yml - that's (at minimum) what needs to change.
(Or is this project dead?)

Hi @asmaloney will update the action and make a new release!
Thanks for the heads up

(Or is this project dead?)

It is not :) !

It is not :) !

Great news! 🎆
Thank you so much for this.

What does it entail to update? Changing this line? Or are there other things needed?
https://github.com/conda-incubator/setup-miniconda/blob/e81abac10ce2c37423b54eae5af93aa3b4d3475c/package.json#L44

What does it entail to update? Changing this line? Or are there other things needed?
https://github.com/conda-incubator/setup-miniconda/blob/e81abac10ce2c37423b54eae5af93aa3b4d3475c/package.json#L44

That line only affects type-checking TS code that refers to Node APIs. The line to change is
https://github.com/conda-incubator/setup-miniconda/blob/e81abac10ce2c37423b54eae5af93aa3b4d3475c/action.yml#L6

Maybe someone here can review PR ( https://github.com/conda-incubator/setup-miniconda/pull/252 )?


Completing suggestion with tab in already quotation marks will add another set of quotation marks

Sometimes auto-suggestion doesn't appear, usually after tab completion in hoverEvent for example, but it does appear when you add the quotation marks but the completion will add another set of quotation marks in the quotations marks

Duplicate of #677


using legacy_stdio_definitions.lib outside from Visual Studio

quotation: To provide partial link compatibility with object files (and libraries) compiled with older versions of the Microsoft C Runtime headers, we provide a library, legacy_stdio_definitions.lib, with Visual Studio 2015 and later. This library provides compatibility symbols for most of the functions and data exports that were removed from the Universal CRT.
The library legacy_stdio_definitions.lib ist provided with the installation of VS, but is not part of the Microsoft Visual C++ Redistributable.
Request:
Please clarify under which circumstances the license agreement allows to redistribute this library as part of another software package, for example an non-MS compiler.

@carlkl
We do not allow redistributing any of our static (or import) libraries. However, you can link against the library and redistribute the resulting binary.
A full list of what can be distributed is under Visual C++ Runtime section at: Distributable Code for Visual Studio 2019.
All files under the redist folder mentioned in the article are either DLLs, MSMs or vc_redist installer executables.

As @mikeblome said, only files on the redist list can be redistributed. Beyond that, we can't interpret or qualify our license agreements or provide any kind of legal advice.


[WIP] Numpy Random Ops Large Tensor Fix

This pr fixes numpy random operators on large tensors.
There are 13 ops and 13 tests, but 2 (random.gamma, random.multinomial) will time out on my machine. I marked those two tests to be skipped; rest of the tests ran fine.
There are more ops under dir random but not numpy/random. Should I include them in this pr?
sample result:
../tests/nightly/test_np_large_array.py .                                        [100%]

=================================== warnings summary ==================================$
/home/ubuntu/incubator-mxnet/tests/nightly/test_np_large_array.py:88
  /home/ubuntu/incubator-mxnet/tests/nightly/test_np_large_array.py:88: DeprecationWarn$
ng: invalid escape sequence \
    '''

/home/ubuntu/incubator-mxnet/tests/nightly/test_np_large_array.py:551
  /home/ubuntu/incubator-mxnet/tests/nightly/test_np_large_array.py:551: DeprecationWar$
ing: invalid escape sequence \
    '''

-- Docs: https://docs.pytest.org/en/latest/warnings.html
============================ 1 passed, 2 warnings in 0.17s ============================

LGTM regarding changes to the numpy.random module.
FYI:
The sampling procedures for gamma and multinomial do take more time than other random ops. So it's reasonable for the timeout.

right that's we I figured. I see there are some ops under api/operator/random rather than api/operator/numpy/random. Do we have plan to expose those?


polardbx-operator  install MountVolume.SetUp failed for volume "etclocaltime" : hostPath type check failed: /etc/localtime is not a file

环境单机docker安装的rancher单节点 上安装
[root@test]# kubectl -n polardbx get pods
NAME                                           READY   STATUS              RESTARTS   AGE
polardbx-c00-gt96-dn-0-cand-0                  0/3     ContainerCreating   0          24m
polardbx-c00-gt96-dn-0-cand-1                  0/3     ContainerCreating   0          24m
polardbx-c00-gt96-dn-0-log-0                   0/3     ContainerCreating   0          24m
polardbx-c00-gt96-gms-cand-0                   0/3     ContainerCreating   0          24m
polardbx-c00-gt96-gms-cand-1                   0/3     ContainerCreating   0          24m
polardbx-c00-gt96-gms-log-0                    0/3     ContainerCreating   0          24m
polardbx-controller-manager-7b4f47dfcf-5txkz   1/1     Running             0          38m
polardbx-hpfs-2fq8x                            1/1     Running             0          38m
polardbx-tools-updater-jd829                   1/1     Running             0          38m
kubectl -n polardbx describe pod polardbx-c00-gt96-dn-0-cand-0
Events:
Type     Reason       Age               From               Message

Normal   Scheduled    17s               default-scheduler  Successfully assigned polardbx/polardbx-c00-gt96-dn-0-cand-0 to dz-fanjie
Warning  FailedMount  2s (x6 over 17s)  kubelet            MountVolume.SetUp failed for volume "etclocaltime" : hostPath type check failed: /etc/localtime is not a file
Warning  FailedMount  2s (x6 over 17s)  kubelet            MountVolume.SetUp failed for volume "zoneinfo" : hostPath type check failed: /usr/share/zoneinfo is not a directory
出现上述错误，宿主机及docker容器都有上面的2个目录。

@wyzhl126  It seems to be a result of the containerized kubelet process in RKE and Rancher launched Kubernetes clusters. In your host, the kubelet is running in a container, and the path /etc/localtime , /usr/share/zoneinfo(mount type is Directory instead DirectoryOrCreate) dose not be mounted in the kubelet container. So the hostPath type check failed.
Following are some related issues:
https://github.com/rancher/rancher/issues/22882
https://github.com/rancher/rancher/issues/14836
Workaround:
Edit your cluster config in rancher cluster management page, add extra_binds into kubelet service as the following:
services:
  kubelet:
      extra_binds:
        - '/etc/localtime:/etc/localtime'
        - '/usr/share/zoneinfo:/usr/share/zoneinfo'


{Help} Loading state before and after the query has run

Hi,
I am hacking with react-instantsearch, to make an e-commerce store. So far so good, except I am stuck on the part where you show loading whenever the query is running.
Can you point me to some doc stating the above implementation?

So far so good, except I am stuck on the part where you show loading whenever the query is running.

Could you detail a bit more "where you show loading whenever the query is running" => do you mean there's a documentation page where we show an interface displaying a "loading" mechanism and you do not understand how it works or smg else?
We do have a guide that explains how to read the search state: https://community.algolia.com/instantsearch.js/react/guides/conditional-display.html
And the state shape: https://community.algolia.com/instantsearch.js/react/guides/create-own-widget.html#getpropsprops-state-search-meta
But we have to make it better.
Here's an example:
const Loading = createConnector({
    displayName: 'Loading',
    getProps(props, state, search) {
      return {loading: search.searching};
    },
 })(({loading}) => {
  console.log(loading);
 });

@vvo Thanks a lot. This is what I was looking for.

Awesome, this is now a guide in the upcoming website


Issue/4/changeset

:tada: This PR is included in version 1.0.0-alpha.5 :tada:
The release is available on:

GitHub release
v1.0.0-alpha.5
v1.0.0-alpha.5

Your semantic-release bot :package::rocket:

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

GitHub release
v1.0.0
v1.0.0

Your semantic-release bot :package::rocket:

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

GitHub release
v1.0.0
v1.0.0

Your semantic-release bot :package::rocket:


GCM cipher suites on 10.X version of Databricks.

Hi guys,
per confirmation with Databrick support, The following statement has aligned with specific databrick version:
“currently, in 10.x versions of the dbr we have enabled the GCM cipher suites” and ” this change has happened in the last month during the latest release of the dbr. and even if the customer re-starts the existing 10.x dbr cluster the GCM cipher should be enabled.”
Could you please help to review and enhance it when necessary?
Best Regards,
Edward Chen

Document details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 0d9c8b1b-fabc-7193-4b1f-d9762c03ee4c
Version Independent ID: a9156ec5-9af9-a2c0-f41c-32afb4630aeb
Content: Enable GCM cipher suites - Azure Databricks
Content Source: databricks/kb/clusters/enable-gcm-cipher.md
Service: azure-databricks
GitHub Login: @xwang30
Microsoft Alias: saperla

@PRMerger15,
The first sentence describe that Azure Databricks clusters do not have GCM (Galois/Counter Mode) cipher suites enabled by default in document.
Maybe the users feel that it is not align with actual status when deploying databricks 10.X .
Best Regards,
Edward Chen

@rockboyfor Thank you for sharing feedback. We are actively validating it. We will share updates soon.

@mssaperla Could you please validate customer feedback and update document as appropriate? Thank you.

Thanks for your dedication to our documentation. Unfortunately, we have been unable to review your issue and apologize for the delayed response. The scope of our feedback channel here on GitHub covers specific documentation fixes and this issue is related to the KB. We recommend that you visit the Databricks Knowledge Base to submit your feedback. Because this issue does not relate to documentation, we are closing this issue.
#please-close


[DO NOT MERGE] Auto PR to update dependencies of old_pilot_repo

This PR will be merged automatically once checks are successful.
none

/lgtm

wacky wacky bot ?

/ok-to-test

@istio-testing: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/pilot-presubmit.sh
ef8817b04e13939208056e5c8f6288022608a420
link
/test pilot-presubmit

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@istio-testing: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/pilot-presubmit.sh
ef8817b04e13939208056e5c8f6288022608a420
link
/test pilot-presubmit

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


fix missing fields on FullDetailPage #244

Fix for: https://github.com/clearlydefined/website/issues/244
Now:

closing PR to use branch


Idena integration proposal

Summary
This issue is strictly related to the verification of a Desmos profile thought the usage of external services that's described inside #240. Particularly, it describes how we could integrate Idena, a Proof-of-Person blockchain to allow users certifying they are not bots.
Context
The last week I accidentally stepped on Twitter user "Nagato" tweet which contained a list of Cosmos-based projects. Of all the ones listed, one caught my attention in particular: Idena.
Stating from their website, we can see the following:

Idena is the first proof-of-person blockchain where every node is linked to a cryptoidentity - one single person with equal voting power. Idena is one of the most decentralized blockchains.
To start mining Idena, you need to prove you're a unique human. It does not require the disclosure of any personal data (no KYC). You have to appear online when the validation ceremony starts and solve a series of flip-tests (CAPTCHAs).

Digging deeper into this, I found that they created a new kind of CAPTCHA, called Flip. This consists of finding what it seems to be the most correct set of images between two given images, based on the fact that those sets tell each one a story:

Also, they avoid any Sybil attack by making the verification process completely synchronous:

How do you ensure that the network does not have duplicate users?
The uniqueness of participants is proven by the fact that they must solve and provide the answers for flip-puzzles synchronously. A single person is not able to validate herself multiple times because of the very limited timeframe for the submission of the answers.
The validation status of a participant is not forever. It expires when the next epoch starts. Participants should prolong their validation status for every new epoch.

After reading all of this, I thought that this project is very promising and might solve us a lot of problems as well. Those include, but are not limited to:

identifying Sybil accounts on the network
identifying bots or fake accounts on the network
identifying Sybil validators no the network
...and many more

So, after this realization, I started searching for a documentation of the project, and I got in contact with one of the developers. Here is everything that I discovered.
Working with Idena
Running a node
To run a node, the easiest way to do this is to simply download their node client. This is used to sync with the chain as well as to complete the validation ceremony that happens every once in a while. You can get the node software here.
Querying the chain
Once you run a node, it will generate an API key that can be used to query the chain itself. The API key is located inside the following file:

Linux: ~/.config/Idena/node/datadir/api.key
MacOS: ~/Library/Application Support/Idena/node/datadir/api.key

Such key can then be used to query the chain state using their RPC.
Note. You have to use localhost:9119 as the node address, instead of the default localhost:9009.
The most interesting query is the one that allows you to query the profile of different users, and see their current status. This is
called Get identity and is placed under the Dna API section. Here is an example of response of such query:

Get identity response
{
  "address": "0x0022b21237cc1eab8e3bbd50fa5bff152ffe5cb8",
  "profileHash": "",
  "stake": "84.125028004327062497",
  "invites": 0,
  "age": 6,
  "state": "Verified",
  "pubkey": "0442e4703f2bb76167334fbf0942955587486f9d5e65bf7651924e709dd0a69bc23b018dc627b7356fa5b039e6dbb4bcb7dc36de84ab083b9b0992545b4b91eb8a",
  "requiredFlips": 3,
  "availableFlips": 4,
  "flipKeyWordPairs": null,
  "madeFlips": 0,
  "totalQualifiedFlips": 22,
  "totalShortFlipPoints": 20,
  "flips": null,
  "online": false,
  "generation": 3,
  "code": "0x43270812eece07bfb8cb3e07",
  "invitees": null,
  "penalty": "2.232788918751292123",
  "lastValidationFlags": null
}

Inside such response, the most interesting field is of course the state one. This can assume different values, ranging from Undefined to Human. In order to comprehend the different meanings you need to read the doc. In short, Newbie, Verified and Human all guarantee that you are most likely a human.
Implementation proposal
What I propose we do is to implement a connection between a Desmos profile and an Idena profile. Ideally, we want the process to be composed of the following steps:

We require the user their public key.
We create a unique proof that they are going to sign to prove they own the account
The user signs the unique proof and gives us the signed one.
We make sure that the proof is signed correctly.
If the proofs match, we assign the Idena profile to Desmos.

Once the pairing is complete, the clients will be able to get the connected Idena profile from Desmos, and then verify the current status through the usage of the Idena APIs. Ideally, we want to have an Idena node as well so that apps can use that to query the chain state instead of having to create their own.
Conclusion
I think this chain might solve us a lot of problems, and integrating it with Desmos might be really interesting. I also think that the integration could be done using CosmWASM.
This process could also be particularly useful to apply also to validators, requiring them to create a Desmos profile and verify the humanity of it through Idena. If we can then somehow display this inside BigDipper, it might make it easier for people to choose between validators when deciding to who delegate some tokens.
What do you guys think about all of this? @bragaz @kwunyeung

I'm still waiting for the verification as I have missed the last one on 1 Feb but I doubt if this flip is secured enough for proof of person. It seems this can be easily solved by bot with a trained CNN model.

@kwunyeung I think you can read more about why Flips are secured here

I'm still waiting for the verification as I have missed the last one on 1 Feb but I doubt if this flip is secured enough for proof of person. It seems this can be easily solved by bot with a trained CNN model.

You didn't miss it! It's on friday 14:30 CET!

It will be 9:30pm here. I'm not sure if I can be available for the verification. 😅

It will be 9:30pm here. I'm not sure if I can be available for the verification.

Yeah, they even have a FAQ about timing on their site: https://idena.io/?view=faq#faq-validation-2


Fix bug with negative 0 handling in global optimizer

The forward pass sets a bit, m_wasNegativeZeroPreventedByBailout, on an
operand if it was int-type-specialized and was protected by a
BailOutOnNegativeZero (which would happen if there are uses of that
operand downstream in manners which require distinction between -0 and +0
and the forward pass cannot say for sure that the operand can't be -0).
The Deadstore pass then looks at this bit to determine if it can remove
some -0 bailouts.
However, this bit being set to false for an operand doesn't necessarily mean that that
operand cannot be -0 if the operation that produced this operand wasn't type-spec'ed at all.
Negative zero tracking in the deadstore pass wasn't taking this into
account and was getting rid of more -0 bailouts than it should have,
resulting in wrong results.
Fix being proposed here is,

for the current instruction, detect the source operand for whose defintion we can remove negative zero bailout.
if there is any bailout instruction between this definition and the current instruction, then don't remove the negative zero bailout.

Reasoning behind this is that if we removed -0 bailout for, say, s1 and

a bailout happened between def of s1 and an int specialized use of s1, and
s1 was actually -0 (but we removed the bailout),
s1 will be +0 in the interpreter leading to wrong results.

This change is

@LouisLaf - could you review this change?

:+1:


error: incorrect rpcuser or rpcpassword (authorization failed)

Getting error when querying with htmlcoin-cli
error: incorrect rpcuser or rpcpassword (authorization failed)
If so, please list the steps to reproduce below:

start ~/Apps/HTMLCOIN/src/htmlcoind --daemon in rc.local
run ~/Apps/HTMLCOIN/src/htmlcoin-cli getinfo

Expected behaviour
Get overview of wallet
Actual behaviour
I get the error error: incorrect rpcuser or rpcpassword (authorization failed)
What version of HTMLCOIN are you using?
<IP_ADDRESS> / 932910b0b8ee8c1d5f015d8bba4371f82b9a16ce
Machine specs:

OS: Ububntu 16.04.3
CPU:  AMD E-450
RAM: 2GB
Disk size: 64GB

Content /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# start wallet
/home/myusername/Apps/HTMLCOIN/src/htmlcoind --daemon &

#start mining
/home/myusername/Apps/HTMLCOIN/htmlcoin-cli-mining.sh &
exit 0

Hi, I just compiled the newest version: https://github.com/HTMLCOIN/HTMLCOIN/releases/tag/v<IP_ADDRESS>
Restarted and I get the same issue.
I have not specified the rpcuser/rpcpassword anywhere and there is no htmlcoin.conf in ~/.htmlcoin/ (where my wallet.dat is)
Here's the htmlcoin-cli-mining-sh script:
htmlcoin-cli-mining.sh.txt


Nightly Connect - QR Modal implementation

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Checklist:

[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings

Type of change.

[ ] FIX - a PR of this type patches a bug.
[x] FEATURE - a PR of this type introduces a new feature.
[ ] BUILD - a PR of this type introduces build changes.
[ ] CI - a PR of this type introduces CI changes.
[ ] DOCS - a PR of this type introduces DOCS improvement.
[x] STYLE - a PR of this type introduces style changes.
[ ] REFACTOR - a PR of this type introduces refactoring.
[ ] PERFORMANCE - a PR of this type introduces performance changes.
[ ] TEST - a PR of this type adds more tests.
[ ] CHORE - a PR introduces other changes than the specified above.

Please select all the checkboxes in the Checklist section so the gh-actions will not fail for that reason.


[WIP] Feature: Term Inference

The compiler is smart enough to suggest fits for some holes. In fact, it's smart enough to prove several sentences of first order logic.
The search algorithm is really simple, too! It's great. Please :eyes: this PR carefully though.

As somewhat mentioned on Slack, there's a couple of cases which are a little broken:
Literals, when no appropriate variables are in scope
=stdin[1:2 ..1:2]: error
  │
1 │ (_ : int)
  │  ^
  Found typed hole _ of type int
  • Valid replacements include:
      • int_value
      • ** int_value int_value
      • ** int_value (** int_value int_value)

However, int_value isn't in scope, so this provided code fails to work (also not entirely clear why this only infers the ** operator - I assume this is due to which symbol it tries first?).
Record extensions
  │
1 │ let f : forall 'a 'b. { 'b | x : int } -> int -> { 'b | x : int } = _
  │                                                                     ^
  Found typed hole _ of type { fi'b | x : int } -> int -> { fi'b | x : int }
  • Valid replacements include:
      • fun { x = y } -> fun z -> { x = z }
      • fun { x = y } -> fun z -> { x = int_value }
      • fun { x = y } -> fun z -> { x = ** z z }

All of these have the type { 'a | x : 'b } -> 'c -> { x : 'c } instead, which is slightly different but wrong. I'm perfectly fine with just removing the record extension case for now - I'd rather avoid generating incorrect code.
Holes not getting the correct type?
This works as expected:
  │
1 │  fun (x : 'a) -> (_ : 'a)
  │                   ^
  Found typed hole _ of type 'a
  • Valid replacements include:
      • x

However, adding an additional argument does not:
  │
1 │  fun (x : 'a) _ -> (_ : 'a) (* Alternatively fun _ (x : 'a) *).
  │                     ^
  Found typed hole _ of type 'id

I'm afraid I'm not quite sure why this happens - the ascription TC code all looks reasonable to me, but I still don't quite understand the intricacies.


Added tv detection support

Hi!
We have added support for main tv models detection. I hope you find it useful.
Thank you for your work.
Best regards

@rbermudezg Thanks! Sorry for the long time to review :(
This should be resolved as of v0.2.2


Fix KeyError in cases when sim_end_date is before next planting date

Trying to fix #77 by changing method of clock_struct.n_seasons calculation

I have checked the changes and there is a problem with this approach. In leap years it can be the case that 365 days have passed but the new planting date has not started. For example between 1983/05/15 and 1984/05/14 365 days have passed but the same error would occur because the planting has not started.

I think it is best to check the dates directly in read_model_parameters.py. I have tried this code and it works without problems.
    # Check if the simulation in the following year does not reach the planting date.
    last_simulation_year_does_not_start = pd.to_datetime("1990/" + f'{sim_end_date.month}' +"/" + f'{sim_end_date.day}') < pd.to_datetime(
        "1990/" + crop.planting_date
        )
    if(last_simulation_year_does_not_start):
        start_end_years = pd.DatetimeIndex([sim_start_date, sim_end_date-relativedelta(years=1)]).year
    else:
        start_end_years = pd.DatetimeIndex([sim_start_date, sim_end_date]).year

Thanks a lot, @pacs27 !
This solution is much better than mine and fixes this error in the right place.
I've changed my PR to implement your fix.
Or I can just close this PR and you can open a new one with your code if this will be better.

Wow, that's really huge!
Thanks again for helping with this!
I've updated the PR to add your suggestions.

Just tested locally and everything looks good. Will merge asap

Was getting erros on github checks when it tried to install dependencies. I therefore quickly merged a new PR to update the numba version as well as stop github actions from checking python=3.11.
This should all be ready now


TESTS: Use fake MNE home dir (followup fix for #9465)

see https://github.com/mne-tools/mne-python/pull/9465#discussion_r650310239

Thanks @hoechenberger


CFFL

CFFL

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_c2nvdgzmle/clone/recipe/meta.yaml:14: pip_install_args: pip install should be run with --no-deps.
ERROR: /tmp/abs_c2nvdgzmle/clone/recipe/meta.yaml:15: pip_install_args: pip install should be run with --no-deps.
ERROR: /tmp/abs_c2nvdgzmle/clone/recipe/meta.yaml:26: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_c2nvdgzmle/clone/recipe/meta.yaml:27: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
ERROR: /tmp/abs_c2nvdgzmle/clone/recipe/meta.yaml:28: host_section_needs_exact_pinnings: Packages in host must have exact version pinnings, except python build tools.
WARNING: /tmp/abs_c2nvdgzmle/clone/recipe/meta.yaml:31: python_build_tool_in_run: The python build tool setuptools is in run depends
ERROR: /tmp/abs_c2nvdgzmle/clone/recipe/meta.yaml:42: missing_pip_check: For pypi packages, pip check should be present in the test commands
WARNING: /tmp/abs_c2nvdgzmle/clone/recipe/meta.yaml:51: missing_description: The recipe is missing a description
Errors were found


Are there instructions on how to build and install in Amazon Linux?

I tried the following commands mentioned in the Installation wiki
git clone https://github.com/facebook/CacheLib
cd CacheLib

./contrib/build.sh -d -j

but this throws the error
build.sh: error: No build recipe for detected operating system 'amzn2'

Instead, I tried to pull the submodules and build using the -O flag to skip OS package installation
./contrib/update-submodules.sh
./contrib/build.sh -d -j -O -S

This throws multiple warnings in find_library of CMake and eventually fails the build due to missing some library.
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (LIBURING)
  does not match the name of the calling package (LibUring).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  CMake/FindLibUring.cmake:22 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMake/folly-deps.cmake:139 (find_package)
  CMakeLists.txt:133 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

The number of dependencies and the build errors are overwhelming for me. If there are instructions to get started on CacheLib without having to fight the build, it will be really helpful. Also are there binaries hosted anywhere that I can use directly?

We do not support Amazon Linux. Please use an OS we support: Ubuntu 22.04, CentOS 9 and Rocky Linux 9.


Button toggling - trigger change event on input

Bootstrap’s .button styles can be applied to other elements, such as s, to provide checkbox or radio style button toggling.
And when the checkbox or radio state is changed, there should be triggered
the change event. Currently, the change event is triggered on the Button, which is not correct. Only input fields do support the change event.

Successor: #18900


Added some logic to avoid flooding log with error messages

Added some logic to avoid flooding log with error messages when OpenLP is not running

This PR would close #4.


Fix: omit some log messages

Source issue: https://github.com/metanorma/xmlgraphics-fop/issues/4
As titled.

about default page width/height
coverage set class table not yet supported
wrong warning about overflowing table (https://github.com/metanorma/mn-native-pdf/issues/431)

Done in the branch fix/messages.


net: if: Lack of default interface is an error, not warning.

Because a next networking API call will lead to a crash. Given that
logging can be easily disabled (disabled by default so far!), don't
be shy and call by the name (i.e. error).
Jira: ZEP-2105
Signed-off-by: Paul Sokolovsky<EMAIL_ADDRESS>

This is an example of a change to be implemented per RFC at https://lists.zephyrproject.org/pipermail/zephyr-devel/2017-September/008114.html


Support to the axiom

Hello,
I use to axiom (https://github.com/pry0cc/axiom), Can we integrate that?

Not relevant right now, will think of it in near future.


can i use the raylib library to create a close source game engine

Please, before submitting a new issue verify and check:

[+] I tested it on latest raylib version from master branch
[+ ] I checked there is no similar issue already reported
[ +] My code has no errors or misuse of raylib

Issue description
hey devs;
so i am working on this new game engine called gabriel and recently i thought what if the MIT license doesnt allow for using the code which is licensed under it(MIT) to be used in a close source  project;
i know that most games that are built with raylib are also close source but i just want to verify
so can i use the raylib library to build my own close source game engine
and is the raylib project is going to use another license in the future
Environment
x86_64, fedora linux, opengl 2.1, intel graphics;
Issue Screenshot
Code Example

This is not an issue and you might consider moving  it to discussions as a Question.

On the other hand, there is nothing in the license at  that requires you to make your product open-source

There is a request for acknowledgment.  Is that burdensome for you?

Licenses are not revocable.  If there were a different license in the future, that would not impact your use of code that is published under the current license.

And I am not a lawyer.
PS: It is not the MIT License, though you could treat such code the same way.
I'm still not a lawyer.


Unable to Download AVCVideoCap or FireWire SDK

Hi @privatezero ,
I'm a novice GitHub user and media archiving grad student, and a colleague pointed me to this guide for miniDV capture. I am currently working on my thesis project which includes preserving my family home movies, and I have several miniDV tapes that I want to transfer.
I have tested using iMovie which allows me to capture the content, but it transcodes the video stream to either a ProRes or MP4 file format, which is not native to the original miniDV tapes (as I understand miniDV is in a DVC format). The only other software to do this that I'm aware of is LiveCapturePlus, but that has been discontinued, support is no longer existent, and even when trying to download that, I was unable to get the software to run.
So that brings me to this guide. I have also been having troubles getting the software. When I follow the Apple Developer Link in this guide and search for both firewire and firewire sdk, first, there are many links and I'm not sure which to follow. And then, I poked around the developer website and did some research online,  and I haven't found any other troubleshooting documentation. As a matter of fact, I have run into comments that say the Firewire software is no longer available.
On the other hand, when looking through the FireWire Release Notes link (https://developer.apple.com/library/content/releasenotes/Darwin/RN-FireWire/index.html#//apple_ref/doc/uid/TP40007716), it suggests to install in Terminal this command sudo nvram boot-args="debug=146 kdp_match_name=firewire" to enable firewire. I have done this, but now I don't know how to access the AVCVideoCap.
So my questions at last: do you know if I'm on the right track? If so, how do I access AVCVideoCap? Is there an easier way to download this software? Did I even download/enable the correct application?
Any feedback would be helpful, and I really appreciate this workflow guide! I don't think there are many folks are doing DV preservation, or documenting it for that matter, and this has been interesting and useful for me with my DV preservation project.
Thanks in advance!

Update: I found the FireWire SDK 26 by searching at this link: https://developer.apple.com/download/more/
I think I have resolved this issue, but I haven't tried capturing video yet.

Hi @GregH18! Glad you were able to find the download! Apple did a very good job at burying it :/
I'll have to change the explanation to make it a little more explicit - thanks for pointing this out!
I recently had a colleague who downloaded AVCVideoCap and was having problems with it not capturing certain tapes while working fine on others - I would be interested to hear your experience! My only other advice is that if you are not using a playback machine that has a built in monitor, you will have to plug in an external if you want to monitor your capture as AVCVideoCap has no built in viewing. (Maybe you have noticed this already).

Closing this with changes made in https://github.com/WSU-CDSC/Documentation/commit/3cce033aaa19f5b8fb1f986222007aa0116de5c4. Feel free to hit me up with any questions at andrew dot weaver at wsu dot edu!

Which version of macOS did you use, because the sdk can no longer be installed in the newest macOS 10.15.6

Hi @dhavalvoraa - yeah, Catalina broke a lot of things. I'm pretty sure that anything prior to Catalina should work. Also - if you are trying to capture DV, take a look at the vrecord project! It is integrating new changes to the FFmpeg avfoundation device that allow capture of DV in Catalina.


docs: triplet VCPKG_C_FLAGS and VCPKG_CXX_FLAGS is unclear

Docs for triplets and the flag families VCPKG_C_FLAGS*, VCPKG_CXX_FLAGS* are unclear. By trial and error I discovered that you must use set(), not a cache variable, and the value must be a single string (not a list). I recommend updating official docs to clarify correct usage. Here is the ambiguous doc...
https://github.com/microsoft/vcpkg/blob/55be137d5ba6230f62aa7fb0994fda1728ce7fef/docs/users/triplets.md#L67-L77
Setup

vcpkg b37f5d651d0f55a3f0ed709ed1682a4385294519
tested with port opencv4

Single Success
set(VCPKG_CXX_FLAGS "-DWINVER=0x0A00 -D_WIN32_WINNT=0x0A00 -DNTDDI_VERSION=0x0A000005") works.
The family of settings like VCPKG_C*_FLAGS* must...

be set()
its single value must be a string
if multiple compiler settings are desired, then put them all in a single string and separate them with a space

Failures
Various combinations were tested and all failed. For example the following all failed in each their own way:

set(VCPKG_CXX_FLAGS
-DWINVER=0x0A00
-D_WIN32_WINNT=0x0A00
-DNTDDI_VERSION=0x0A000005
)
set(VCPKG_CXX_FLAGS -DWINVER=0x0A00 -D_WIN32_WINNT=0x0A00 -DNTDDI_VERSION=0x0A000005)
set(VCPKG_CXX_FLAGS -DWINVER=0x0A00 -D_WIN32_WINNT=0x0A00 -DNTDDI_VERSION=0x0A000005 CACHE internal)
etc.

Example of clearer doc
Sets additional compiler flags to be used when not using VCPKG_CHAINLOAD_TOOLCHAIN_FILE.
Use set() and declare the single value of that variable as a string. When multiple compiler flags are needed, separate them with a space. For example, a triplet file would include:
set(VCPKG_C_FLAGS "-DWINVER=0x0A00 -D_WIN32_WINNT=0x0A00 -DNTDDI_VERSION=0x0A000005")

This option also has forms for configuration-specific and C flags:

VCPKG_CXX_FLAGS
VCPKG_CXX_FLAGS_DEBUG
VCPKG_CXX_FLAGS_RELEASE
VCPKG_C_FLAGS
VCPKG_C_FLAGS_DEBUG
VCPKG_C_FLAGS_RELEASE

Also worth mentioning, that despite what name suggests, values from these var end up in CMAKE_*_FLAGS_INIT not CMAKE_*_FLAGS as one might expect. As a consequence it is NOT setting final set of flags, but merely sets a default starting value for CMake to add to


Bisimulation

The bisimulation tests use features from KREFLECTION which will not be supported, but it should be simple to rewrite the test to use pattern matching.

Do we actually want to support this?


Add CNCF svg to footer

Signed-off-by: Sharon Koech<EMAIL_ADDRESS>

Thanks. It's a little too big, though, right? :D
Let me try making it smaller.

ja good call, it's a bit big, but still better then no logo :D

Very true. :D


Missing country

This is a cool library but there is some mistakes with some countries.
Your library has the same Congo repeat twice. There are two Congo in the world
D.R.Congo and Congo
Best regards

Thank you for reporting @hervino14!
I've update the country in the 1.8.0 version. Please check the library.
I'll close this issue. Please reopened it again if the problem still persist.


Builders not working right

Specs:
Kotlin: 1.5.0
JDK: 16
JVMTarget: 13
OS: Windows 10
JDA: 4.2.1_253
JDA-KTX: 0.3.1

Bug:
When using the EmbedBuilder from Builders.kt some fields are ignored.
What I found:

footer not working at all
timestamp never showing up
Message(content, embed) working but Message { content = content, embed { ... }} not working at all
description of Embed { } not working

Steps to reproduce:
Just use the example Embed from the README.md
        val embed = Embed {
            title = "Hello Friend"
            description = "Goodbye Friend"
            field {
                name = "How good is this example?"
                value = "5 :star:"
                inline = false
            }
            timestamp = Instant.now()
            color = 0xFF0000
        }

Renders to:

Should be:

When using
val embed = Embed(title="Hello Friend", description="Goodbye Friend", timestamp = Instant.now(), footerText = "Test", footerIcon = MOD_MANAGER_CREDIT_ICON)

the embed renders just fine.

Fixed in https://github.com/MinnDevelopment/jda-ktx/commit/1a45395155b30d1b323c19469ab49de32704c2cc

Hello, I'm running into this issue with embeds for Message { ... } vs Message(...) in ea0a1b2
// Embed is not in message
Message {
    content = /* */
    embed = /* */
}

// Embed is in message
Message(
    content = /* */,
    embed = /* */
)

JDA 4.3.0_299
Kotlin 1.5.21
JVM 15


⚠ Bofrost.com has degraded performance

In 30d22f2, Bofrost.com (https://www.bofrost.com) experienced degraded performance:

HTTP code: 200
Response time: 2629 ms

Resolved: Bofrost.com performance has improved in d45cc5a after 6 minutes.


Added consistency in commands for project, application & components

Fixes #274
Now,
odo project xyz

odo component abc

odo application pqr

they will work same as set operation.

What if I create a project called list? 😇

@surajnarwade @kadel is right, it breaks on define keywords like list, create and others
New project created and now using project : create
[mdas@localhost odo]$ ./odo project create
Error: accepts 1 arg(s), received 0
Usage:
  odo project create [flags]

Flags:
  -h, --help   help for create

Global Flags:
  -v, --verbose   Verbose output

accepts 1 arg(s), received 0```

The question is how much do we care ;-)

I think we should just leave it with set to switch for now

@kadel , I think we should not care about this corner case, since list is verb ?
/me still confused though

Looks good. But we need to add examples and descriptions. Otherwise, users won't know what is going on.

@kadel @mik-dass another round of review needed, added example as per suggestion

@kadel done with suggested changes

good to go after rebase


Datatypes comparing limitation

In GitLab by @tpaluszk on Feb 21, 2019, 11:53
Currently in PDI there is no way to distinguish between datatypes that have the same parameters.
For example, I'm currently implementing transtype features of mpi plugin (#107) and need to check the types of mpi_comm and mpi_comm_f and the only options I have is to assume that type of specific parameters is a MPI_Comm or to make the user specify the types of descriptors once more in mpi node.
Example config for mpi plugin transtype (with first option in mind):
data:
  mpi_comm: MPI_Comm
  mpi_comm_f: MPI_Comm_f
plugins:
  mpi:
    transtype:
      mpi_comm: mpi_comm_f

Can your provide an example showing the problem

closed