v2.0.0: Implement MsgFees + Contract Cleanup + Finalization Step

Description
The main purpose for theses changes is to implement custom MsgFees, which have been introduced in Provwasm 1.1.0.  This allows fees to be charged wholly in USD by doing an automatic USD mil to nhash conversion.  This presents an issue, however.  The current process stores funds in the contract to be paid out after verification completes.  Using these new MsgFees messages prevents the funds visibility from being fully possible.  In order to achieve this, this change introduces the concept of "trusting" the verifier to do its work.  The onboarding account can choose to trust the verifier and pay upfront when executing the onboard_asset route.  If this is done, the verification process remains the same, and the asset moves to Approved (== classified) after verification completes.  If the onboarding account chooses to not trust the verifier, then the onboarding account must wait for verification to complete.  Once verification successfully completes, the scope attribute is moved to a new AwaitingFinalization status.  The onboarding account must then invoke the new FinalizeClassification execution route, which prompts them to pay the verifier's defined fees at that time and moves the scope attribute to the Approved status.
Changes

Contract version bumped to 2.0.0 from 1.0.8.  I opted for a major version bump here to indicate that the contract's basic flow has changed pretty significantly.
A new trust_verifier flag has been added to the ExecuteMsg::OnboardAsset message, which is pinned to the AssetScopeAttribute in an identically-named field after a successful onboard.
A new ExecuteMsg::FinalizeClassification message variant has been added to invoke the new finalize_classification functionality.
A new AssetOnboardingStatus::AwaitingFinalization enum variant has been added to indicate the new pathway.
A new FeePaymentDetail struct has been added to record the VerifierDetailV2's values as of the time of onboarding.  This value is only ever used when trust_verifier is false, and ensures that even in the circumstance of a deleted verifier detail before the new finalization step is executed that the correct fees may still be paid by the onboarding account to classify the asset.
The latest_verifier_detail has been removed entirely from the AssetScopeAttribute and its storage functions have also been removed.  This is no longer necessary and is replaced by the FeePaymentDetail struct, which is a smaller data type, as well as being less frequently used.
The ExecuteMsg::BindContractAlias and all related code has been deleted.  It was created in ignorance - I have since discovered that binding public addresses externally to a smart contract is completely possible, and this route has no purpose.
The onboard_asset route has been modified to charge custom Provenance Blockchain MsgFees when the onboarding account chooses trust_verifier: true.
The verify_asset route has been modified to not produce any bank messages upon its execution; payment is now covered entirely in either the onboard_asset or finalize_classification routes.

Notes
A migration will need to be run in order to append trust_verifier to all outstanding scope attributes in the testnet environment.  This would not be an acceptable solution if the contract was currently in use in the mainnet environment, but we are in a unique position to make this more structurally sound change without any collateral damage.

modified version of this (minus trust verifier stuff) already merged by #55


Spanish Chapter 3: sections 1 & 2

Related to https://github.com/huggingface/course/issues/38

Hi,
I have been working in these sections so, If it is ok with you, I could review that and check if we have any differences.
Thanks,

@lewtun thanks for pointing this out, I'll update the _toctree.yml as well.
Regarding the translation of Fine-tuning, I considered both "Ajustar" y "Entonar", but I can see how preserving the original term in English might be better in this case. I can use that and see how other reviewers see it.

@lgesuellip I'd be glad to collaborate with you. Please check and compare this with your translation, and feel free to suggest updates/improvements in the PR. Thanks !

Regarding the translation of Fine-tuning, I considered both "Ajustar" y "Entonar", but I can see how preserving the original term in English might be better in this case. I can use that and see how other reviewers see it.

Using the English term for these technical words sounds good to me!

@lewtun I noticed few things:

Translations of chapter 1 (sections 1,3,4,8) are using "Ajustar". It might be nice to have a consistent translations of these terms.

The Spanglish of statements like this "Como usar la API de alto nivel del entrenador para fine-tune un modelo." did not feel right, just a personal impression.

At this point, I'm open to ideas, but personally I'm leaning towards using "Ajustar". I'm also using an extra hint in the toc "Ajuste (fine-tuning) de un modelo preentrenado" so folks have a reference of what "ajustar" means.

At this point, I'm open to ideas, but personally I'm leaning towards using "Ajustar".

Hehe, yes translation is hard 😅. Since we already have "ajustar" in the previous chapters, let's keep that format for now. I like your idea to include the English phrase, so one idea would be to create a glossary chapter that provides a vocabulary table - this is what has been done in e.g. the Persian and German translations: https://github.com/huggingface/course/blob/main/chapters/de/glossary/1.mdx
Similarly one could have a TRANSLATING.txt file that provides a guide to other translators. Again the Persian team have created a template that was adapted to the German case here: https://github.com/huggingface/course/blob/main/chapters/de/TRANSLATING.txt
No need to handle these issues in this PR - just an idea for the future if you have time / interest :)

@lewtun I was actually thinking about a glossary, I really like the idea of both files, this will help the translators to be consistent. I'll work on it on a separate PR. Thanks for your input.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Hi @lewtun, I have a first version of es/TRANSLATING.txt and es/glossary/1.mdx (an adaptation of the German files). Do you suggest to add them as part of this PR or a separate one ? Thanks.

Great feedback @lgesuellip ! Thanks a lot !

Excellent work @forda, the translation looks fluently and nice to read 📖✨

Hi @lewtun, please let me know if any further changes are needed. I will be glad to work on them. Thanks.


Support for WooCommerce Subscriptions

Hi,
Is it planned that the plugin will support Woocommerce Subscriptions (https://woocommerce.com/de-de/products/woocommerce-subscriptions/) in the next 3-6 months? A client's store is currently using Unzer with your plugin and would like to do automatic recurring payments in the future.
Thank you for your support!

hi @netzkundig,
Thank you for your patience.
Please write to<EMAIL_ADDRESS>for further assistance and communication.
Regards,
Unzer Plugins team


Add Spanish, Spain Language

This week I joined the translation group of the Spanish Mexico language. I found out that though both Spaniards and Mexicans speak Spanish, we speak it differently. To get a more precise documentation I want to create a new group for the Spanish, Spain language.
I have talked with some other people. They are willing to join me to create a new translation group.
I could be the Translation Lead of the Spanish, Spain group. Some translators and proofreaders will be: @fcnatra, @gabrielgt, @ibonreinoso and @aitmoreno
Also, help from any other people willing to join us will be welcomed.

Hi! I’ve been translating some easier parts into Spanish, Mexico but I can join for the Spanish, Spain translation too.

Hello there! I'd love to join the Spanish, Spain translation team too

I could also help with that!

I will wait till Spanish (ES-es) group is added to docs/LOCALIZATION_CONTRIBUTORS and a new group is created in Crowdin to add my PR.

@Arturacu I sent you a message on Crowdin about Translation Lead questions! Please be sure to check your messages there.

Hi @iyanmv @MIBbrandon @VicPinaCanelles @fcnatra, @gabrielgt, @ibonreinoso and @aitmoreno the Qiskit Translation project for Spanish is now open on Crowdin!
Please be sure to include the PR you made adding your name to the Localization Contributors file in the message body when you request to join
To join the project, follow steps 4 and 5 of the contributor guide.
Let me know if you have any questions!

There are many open PR. I will wait at least till https://github.com/Qiskit/qiskit/pull/752 is merged to add my name.

PR made: https://github.com/Qiskit/qiskit/pull/770

...waiting for approval on Crowdin (fcnatra) - Translating Qiskit-Docs to Spanish language
|
|
|  |
Translating Qiskit-Docs to Spanish language
Qiskit-Docs Spanish translation
|
|
|
[http://fcnatra.com] [twitter] [skype] [linkedin]
En miércoles, 8 de enero de 2020 19:20:18 CET, Laura Zdanski<EMAIL_ADDRESS>escribió:

Hi @iyanmv @MIBbrandon @VicPinaCanelles @fcnatra, @gabrielgt, @ibonreinoso and @aitmoreno the Qiskit Translation project for Spanish is now open on Crowdin!
Please be sure to include the PR you made adding your name to the Localization Contributors file in the message body when you request to join
To join the project, follow steps 4 and 5 of the contributor guide.
Let me know if you have any questions!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

Can you please move this issue here: https://github.com/Qiskit/qiskit-translations


npm syscall lchown can not found lock file: /home/runner/.npm/_locks/staging-fe5488d9a90a0e17.lock

CI failed when running command lerna bootstrap -- --ignore-engines
Shot log:
2019-10-25T09:35:05.2608624Z lerna ERR! npm ERR! code ENOENT
2019-10-25T09:35:05.2608800Z lerna ERR! npm ERR! syscall lchown
2019-10-25T09:35:05.2609375Z lerna ERR! npm ERR! path /home/runner/.npm/_locks/staging-fe5488d9a90a0e17.lock
2019-10-25T09:35:05.2609713Z lerna ERR! npm ERR! errno -2
2019-10-25T09:35:05.2610421Z lerna ERR! npm ERR! enoent ENOENT: no such file or directory, lchown '/home/runner/.npm/_locks/staging-fe5488d9a90a0e17.lock'
2019-10-25T09:35:05.2615806Z lerna ERR! npm ERR! enoent This is related to npm not being able to find a file.

Action workflow config:
name: Node CI

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [8.x, 10.x, 12.x]
    steps:
    - uses: actions/checkout@v1
    - name: Use Node.js ${{ matrix.node-version }}
      uses: actions/setup-node@v1
      with:
        node-version: ${{ matrix.node-version }}
    - name: npm install, build, and test
      run: |
        npm install
        npm run bootstrap
        npm run build
        npm test
      env:
        CI: true

2019-10-25T09:34:14.9052736Z > lerna bootstrap -- --ignore-engines
2019-10-25T09:34:14.9052843Z
2019-10-25T09:34:15.1980909Z lerna info version 2.11.0
2019-10-25T09:34:15.2245709Z lerna WARN ECYCLE Encountered a cycle in the dependency graph.This may cause instability! Packages in cycle are: "@tarojs/components", "@tarojs/taro-h5", "@tarojs/redux-h5", "@tarojs/router", "@tarojs/webpack-runner", "babel-plugin-transform-taroapi", "@tarojs/mobx-h5"
2019-10-25T09:34:15.2256819Z lerna info Bootstrapping 47 packages
2019-10-25T09:34:15.2264574Z lerna info lifecycle preinstall
2019-10-25T09:34:15.3551139Z lerna info Installing external dependencies
2019-10-25T09:35:05.2545817Z lerna ERR! execute callback with error
2019-10-25T09:35:05.2557470Z lerna ERR! Error: Command failed: npm install --ignore-engines
2019-10-25T09:35:05.2572634Z lerna ERR! npm WARN deprecated<EMAIL_ADDRESS><EMAIL_ADDRESS>is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
2019-10-25T09:35:05.2573788Z lerna ERR! npm WARN deprecated<EMAIL_ADDRESS>use String.prototype.padStart()
2019-10-25T09:35:05.2604402Z lerna ERR! npm WARN deprecated<EMAIL_ADDRESS>Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit <https://github.com/lukeed/kleur/releases/tag/v3.0.0\> for migration path(s).
2019-10-25T09:35:05.2605673Z lerna ERR! npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>|| ^4 || ^5 but none is installed. You must install peer dependencies yourself.
2019-10-25T09:35:05.2606374Z lerna ERR! npm WARN taro-rn No description
2019-10-25T09:35:05.2607319Z lerna ERR! npm WARN taro-rn No repository field.
2019-10-25T09:35:05.2608032Z lerna ERR! npm WARN taro-rn No license field.
2019-10-25T09:35:05.2608300Z lerna ERR!
2019-10-25T09:35:05.2608624Z lerna ERR! npm ERR! code ENOENT
2019-10-25T09:35:05.2608800Z lerna ERR! npm ERR! syscall lchown
2019-10-25T09:35:05.2609375Z lerna ERR! npm ERR! path /home/runner/.npm/_locks/staging-fe5488d9a90a0e17.lock
2019-10-25T09:35:05.2609713Z lerna ERR! npm ERR! errno -2
2019-10-25T09:35:05.2610421Z lerna ERR! npm ERR! enoent ENOENT: no such file or directory, lchown '/home/runner/.npm/_locks/staging-fe5488d9a90a0e17.lock'
2019-10-25T09:35:05.2615806Z lerna ERR! npm ERR! enoent This is related to npm not being able to find a file.
2019-10-25T09:35:05.2616183Z lerna ERR! npm ERR! enoent
2019-10-25T09:35:05.2616821Z lerna ERR!
2019-10-25T09:35:05.2617305Z lerna ERR! npm ERR!  CTRL-C to exit immediately.
2019-10-25T09:36:06.9408206Z Error: Command failed: npm install --ignore-engines
2019-10-25T09:36:06.9409704Z npm WARN deprecated<EMAIL_ADDRESS><EMAIL_ADDRESS>is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
2019-10-25T09:36:06.9411648Z npm WARN deprecated<EMAIL_ADDRESS>use String.prototype.padStart()
2019-10-25T09:36:06.9412768Z npm WARN deprecated<EMAIL_ADDRESS>Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit <https://github.com/lukeed/kleur/releases/tag/v3.0.0\> for migration path(s).
2019-10-25T09:36:06.9413565Z npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>|| ^4 || ^5 but none is installed. You must install peer dependencies yourself.
2019-10-25T09:36:06.9414483Z npm WARN taro-rn No description
2019-10-25T09:36:06.9414896Z npm WARN taro-rn No repository field.
2019-10-25T09:36:06.9415285Z npm WARN taro-rn No license field.
2019-10-25T09:36:06.9415358Z
2019-10-25T09:36:06.9415540Z npm ERR! code ENOENT
2019-10-25T09:36:06.9415724Z npm ERR! syscall lchown
2019-10-25T09:36:06.9416213Z npm ERR! path /home/runner/.npm/_locks/staging-fe5488d9a90a0e17.lock
2019-10-25T09:36:06.9416568Z npm ERR! errno -2
2019-10-25T09:36:06.9417156Z npm ERR! enoent ENOENT: no such file or directory, lchown '/home/runner/.npm/_locks/staging-fe5488d9a90a0e17.lock'
2019-10-25T09:36:06.9417799Z npm ERR! enoent This is related to npm not being able to find a file.
2019-10-25T09:36:06.9418124Z npm ERR! enoent

This might be a bug with npm that should be fixed in their next release. https://github.com/npm/cli/issues/496

Seems like this bug is fixed in npm v6.14.1, is there a way to bump npm version in setup-node action without using latest node?

I had this issue and updating npm fixed the problem also to me.

Hello everyone. I'm closing the issue, because it's related to npm.


Get Sockets Back to Normal

After fixing the attacking/buggy issues, go back in and get the sockets back to what they were

I fixed this and it should be okay, but we still need to double check it


Autoimport PEM certificates

Automatically import PEM-certificates into Java keystore.
As part of https://github.com/piraeusdatastore/piraeus-operator/pull/262

a bit too much redundancy for my taste, what about that?
try_import_key() {
        indir=$1
        [ -d "$indir" ] || return 0
        destkeystore=$2
        destcrtstore=$3
        tmpfile=$(mktemp tmp.XXXXXXXXXX.p12)
        name="controller-$(basename "$indir")"

        openssl pkcs12 -export -in "${indir}/tls.crt" -inkey "${indir}/tls.key" -out "$tmpfile" -name "$name" -passin 'pass:linstor' -passout 'pass:linstor'
        keytool -importkeystore -srcstorepass linstor -deststorepass linstor -keypass linstor -srckeystore "$tmpfile" -destkeystore "$destkeystore"
        keytool -importcert -noprompt -deststorepass linstor -keypass linstor -file "${indir}/ca.crt" -alias ca -destkeystore "$destcrtstore"
        rm -f "$tmpfile"
}

try_import_key /etc/linstor/ssl-pem /etc/linstor/ssl/keystore.jks /etc/linstor/ssl/certificates.jks
try_import_key /etc/linstor/https-pem /etc/linstor/https/keystore.jks /etc/linstor/https/truststore.jks

I'm not sure if -name has to be unique, if it does not matter just remove that nonsense and use a static "controller". I just saw that you had different names in the 2 calls. Also was not sure if the temporary file name has to end in ".p12". if not, just remove the template.
This was only "echo"-tested, but you get the idea how I think this should be.

Mktemp in Buster requires more Xes, I have no such amount 😄
mktemp: too few X's in template 'tmp.xxxxxxxxxx.p12'

Let's omit this, keytool is working fine with no extension files.

a bit too much redundancy for my taste

Yeah I wanted to do something like this, but it is even more redundantly:
import_key() {
  keystore=$1
  key=$2
  cert=$3
  tmpfile=$(mktemp)
  openssl pkcs12 -export -in "$cert" -inkey "$key" -out "$tmpfile" -name "linstor" -passin 'pass:linstor' -passout 'pass:linstor'
  keytool -importkeystore -srcstorepass linstor -deststorepass linstor -keypass linstor -srckeystore "$tmpfile" -destkeystore "$keystore"
  rm -f "$tmpfile"
}

import_cert() {
  certstore=$1
  cert=$2
  keytool -importcert -noprompt -deststorepass linstor -keypass linstor -file "$cert" -alias ca -destkeystore "$certstore"
}

if [ -d /etc/linstor/ssl-pem ]; then
  import_key /etc/linstor/ssl/keystore.jks /etc/linstor/ssl-pem/tls.key /etc/linstor/ssl-pem/tls.crt
  import_cert /etc/linstor/ssl/certificates.jks /etc/linstor/ssl-pem/ca.crt
fi

if [ -d /etc/linstor/https-pem ]; then
  import_key /etc/linstor/https/keystore.jks /etc/linstor/https-pem/tls.key /etc/linstor/https-pem/tls.crt
  import_cert /etc/linstor/https/truststore.jks /etc/linstor/https-pem/ca.crt
fi

Your example is working fine. I tested it in my dev cluster. I just committed it.


Color panel

Fixed #11
Map color looks better now.

Fixes two bugs:

Now the rectangle drawing on the map are always based on the last two points. Previous version acts strangely.
Different chosen area can show different colors. For this part there is a small problem: Users must Select Vegetation Type first (even if they want to choose type-0 which is the default value, they have to click the button), and then choose an area on the map and then click "Modify Vegetation Region" button.

The problem for 2) is because if users don't click "Select Vegetation Type" button, then
parseInt($('input[name="vegcode-select"]:checked').val());

will be NaN.

closed with 56ace6b


Add new plugin and plugin.withOptions functions for creating plugins

This PR adds support for a new way of creating plugins using a new plugin function exposed at tailwindcss/plugin.
It allows you to create plugins like this:
// my-plugin.js
const plugin = require('tailwindcss/plugin')

module.exports = plugin(function({ addUtilities, theme, variants }) {
  // Plugin work goes here
}, {
  theme: {
    // ...
  },
  variants: {
    // ...
  },
})

The first argument to plugin is the traditional Tailwind plugin function. The second argument is your plugin's config object that should be merged with the user's config.
This API replaces the unstable API introduced in #1162 that allowed you to write your plugins as an object with a config and handler property:
module.exports = {
  config: {
    theme: {
      // ...
    },
    variants: {
      // ...
    },
  },
  handler({ addUtilities, theme, variants }) {
    // ...
  }
}

This PR also introduces a plugin.withOption function that allows you to author plugins that accept top-level non-config options:
const plugin = require('tailwindcss/plugin')

module.exports = plugin.withOptions(function(options) {
  return function({ addUtilities, theme, variants }) {
    // ...
  }
}, function(options) {
  return {
    theme: {
      // ...
    },
    variants: {
      // ...
    },
  }
})

These sorts of plugins are used by end-users like this:
// tailwind.config.js
module.exports = {
  plugins: [
    require('some-fancy-plugin')({ optionA: 'foo', optionB: 'bar' })
  ]
}

This is implemented in such a way that if your plugin takes top-level options but those options are optional, the end-user doesn't need to invoke your plugin with no arguments when adding it to their Tailwind config:
// tailwind.config.js
module.exports = {
  plugins: [
    require('some-fancy-plugin')
  ]
}

It's worth noting that under the hood we are still using the { config: ..., handler: .... } format (that's what this helper function spits out) so functions authored that way will continue to work, although you're encouraged to migrate to this new API.

This is implemented in such a way that if your plugin takes top-level options but those options are optional, the end-user doesn't need to invoke your plugin with no arguments when adding it to their Tailwind config

I love this ❤

Hey @adamwathan, I use this feature to add plugins to my Vue & Tailwind project and I have a question related to the vue-cli/webpack config on this. Is there a way to use aliases defined in webpack in tailwind.config.js file ?
//vue.config.js
module.exports = {
  configureWebpack: {
    resolve: {
      alias: {
        TailwindPlugins: 'src/assets/styles/plugins'
      }
    }
  }
};

Neither the base webpack alias for src @ nor the one I have defined can resolve the path correctly. I get an Cannot find module error. Did you get this to works on some of your projects ?
//tailwind.config.js
module.exports = {
  //...
  plugins: [
    require('src/assets/styles/plugins/reset.js'), //✅
    require('@/assets/styles/plugins/reset.js'), //❌
    require('TailwindPlugins/reset.js') //❌

  ]
}

My guess is that that file isn't processed by Webpack in the same way since it's not part of the actual modules being bundled, it's just a config file written in CommonJS format that is part of configuring the build rather than being part of the JS that is output.


Update mixer filter config

remove source.service
add source.uid and target.uid to be kubernetes pod name, namespace custom URI
add source.ip and target.ip to be proxy IPs

Reference #489

Attribute changes LGTM, shouldn't break the istio/istio e2e stuff. I'm about to send a PR to update configs there, I'll add {source, target}.ip to the set of attributes it knows about.

Jenkins job manager/presubmit passed

Jenkins job manager/presubmit passed

Jenkins job manager/presubmit passed


merge from konsum-frontend-svelte

package.json

chore(deps): add ^1.0.0-next.41 remove ^1.0.0-next.40 (devDependencies.@sveltejs/vite-plugin-svelte)

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

v1.31.14
npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


resource_registry: sync organization and team descriptions across services

Fixes: AAP-23755

To make the failing test pass, it seems like we'd need to change AWX's test suite.
https://github.com/ansible/awx/blob/4738c8333a917ef09fa85ff2b50b9c9c03adaf4f/awx/main/tests/functional/api/test_immutablesharedfields.py#L33

To make the failing test pass, it seems like we'd need to change AWX's test suite.
https://github.com/ansible/awx/blob/4738c8333a917ef09fa85ff2b50b9c9c03adaf4f/awx/main/tests/functional/api/test_immutablesharedfields.py#L33

@rochacbruno @john-westcott-iv. I am not certain on the above, can anyone confirm if this is the case?

We should notify the AWX team of the failure as it will likely affect them in the long run.
@TheRealHaoLiu @chrismeyersfsu can one of you all take a look at the failing AWX test and let us know if we are cleared to merge this or if you want to have us wait while you preemptively clean up the AWX test?


Partial updates when calling createOrUpdate

Fixes #1029
@tgoyne

@alazier, I don't think this partial update mechanism works in the recursive case.  In my testing I've found that an existing object nested two or more levels deep in a JSON object still experiences the issue in #1029.  An example using that issue's use case.
artist
  id
  name
  tracks
    id
    name
    files
      id
      location
      type

If the files property isn't there, any file objects in the realm get deleted.

@tamiswa we're aware of this limitation and are tracking the issue in #1362.


Zero copy for send

A subtask of #222 , extracted.

Great work !!!

Tests still pass when this path is applied:
diff --git a/src/call/mod.rs b/src/call/mod.rs
index dcb7530..4aa1c9b 100644
--- a/src/call/mod.rs
+++ b/src/call/mod.rs
@@ -670,11 +670,19 @@ impl StreamingBase {
 }

 /// Flags for write operations.
-#[derive(Default, Clone, Copy)]
+#[derive(Clone, Copy)]
 pub struct WriteFlags {
     flags: u32,
 }

+impl Default for WriteFlags {
+    fn default() -> Self {
+        let ret = WriteFlags { flags: 0 };
+        ret.buffer_hint(true);
+        ret
+    }
+}
+

Is there any reason that line in this code
https://github.com/ice1000/grpc-rs/blob/c4f1c665bdeeca6eb4b7c42ba39a68ad9dbc858a/tests/cases/misc.rs#L48-L53
can fail? Why does nightly build succeed? What if we do a thread::sleep here?

@overvenus Asked me to explain why there's no use-after-free when buffer hint flag is enabled.
Causion: C++
First let's use CLion's "find usages" function to find all the "read access" of grpc_op.flags:

We can easily find that only these two usages need to be reviewed:

Part 1
For the first one (at line 1689), variable flags is passed in expression
call->sending_stream.Init(
     &op->data.send_message.send_message->data.raw.slice_buffer, flags)

We go to the definition of Init, and we can easily understand the implementation -- it's calling a placement new operator which forwards flags to the second parameter of the constructor of call->sending_stream:
public:
  template <typename... Ts>
  void Init(Ts&&... args) {
    new (&space_) Type(std::forward<Ts>(args)...);
  }
private:
  typename std::aligned_storage<sizeof(Type), alignof(Type)>::type space_;

Then we can easily find the constructor being called in Init:
class SliceBufferByteStream : public ByteStream {
 public:
  // Removes all slices in slice_buffer, leaving it empty.
  SliceBufferByteStream(grpc_slice_buffer* slice_buffer, uint32_t flags);

flags is passed to its superclass' constructor and assigned to flags_ field:
 protected:
  ByteStream(uint32_t length, uint32_t flags)
      : length_(length), flags_(flags) {}

 private:
  const uint32_t length_;
  uint32_t flags_;

flags_ is exposed as readonly by method flags():
  uint32_t flags() const { return flags_; }

This method has 11 usages:

When we ignore those trivial copies and buffer-hint-unrelated usages (they're mostly about compressing), we have only two usages left:

This fact (it's used in these two places) is confirmed via looking for the usage of GRPC_WRITE_BUFFER_HINT defined in grpc_types.h.
In the first usage, it's initiating writing when buffer hint is not set:
if (!(op->send_message &&
      (op->payload->send_message.send_message->flags() &
       GRPC_WRITE_BUFFER_HINT))) {
  grpc_chttp2_initiate_write(
      t, GRPC_CHTTP2_INITIATE_WRITE_SEND_INITIAL_METADATA);
}

In the second usage, it's used to check whether we're buffering or not when we've finished passing the message:
if (flags & GRPC_WRITE_BUFFER_HINT) {
  s->next_message_end_offset -= t->write_buffer_size;
  s->write_buffering = true;
} else {
  s->write_buffering = false;
}
continue_fetching_send_locked(t, s);
maybe_become_writable_due_to_send_msg(t, s);

We can see that the value of buffer hint is moved to s->write_buffering, which is only used in maybe_become_writable_due_to_send_msg:
static void maybe_become_writable_due_to_send_msg(grpc_chttp2_transport* t,
                                                  grpc_chttp2_stream* s) {
  if (s->id != 0 && (!s->write_buffering ||
                     s->flow_controlled_buffer.length > t->write_buffer_size)) {
    grpc_chttp2_mark_stream_writable(t, s);
    grpc_chttp2_initiate_write(t, GRPC_CHTTP2_INITIATE_WRITE_SEND_MESSAGE);
  }
}

We can see that it's sending buffer's content when buffer hint is not enabled or buffered message is larger than write_buffer_size. But none of these are about actually sending the buffered messages.

Part 2
These are all related to metadata, so we'll still need to look at the previous part

I'll start another PR later since maintaining one PR derived from another PR is too painful, closing.


engine refers to @alwaysThrows which is deprecated

Fixed with https://github.com/flutter/engine/pull/39269

Closing this since it has been fixed by https://github.com/flutter/engine/pull/39269


Improved table of contents on wiki.

For https://github.com/pygame/pygameweb/issues/20
Does not take up so much horizontal space on wide screens.
Is sticky on wide screens, it shows on the left as you scroll.
Does not show every single header in the TOC.
Has nested nav headers, but they are not shown currently.
The ordering was incorrect before as well.
If there are no headers, the TOC is hidden.

Coverage decreased (-0.03%) to 84.184% when pulling 61e8c159b25168018f989831995911766e0b0f2a on wiki-fixes into 9ae873dd0fa8ab3367d3572885c457d92b89f92a on master.


NIFI-4550 Detect charset for FlowFile with MIME type text/*

Summary
Identifies charsetas part of IdentifyMimeType processor, when the detected MIME type is text/*.
NIFI-4550
NIFI-1874
Tracking
Issue Tracking

[x] Apache NiFi Jira issue created

Pull Request Tracking

[x] Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
[x] Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000

Pull Request Formatting

[x] Pull Request based on current revision of the main branch
[x] Pull Request refers to a feature branch with one commit containing changes

Verification
Please indicate the verification steps performed prior to pull request creation.
Build

[x] Build completed using mvn clean install -P contrib-check

[x] JDK 21

Licensing

[ ] New dependencies are compatible with the Apache License 2.0 according to the License Policy
[ ] New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

[ ] Documentation formatting appears as expected in rendered files

Thank you for taking a look at this @exceptionfactory, I highly appreciate it.
I've made some changes regarding the stream re-use as you've pointed out.
I replaced the use of ProcessSession.read that receives a InputStreamCallback with the version that returns the InputStream instead, to be able to use final fields instead of AtomicReferences.
While doing so, I've noticed that some code paths were impossible to reach (especially the mimeType being null) and removed them. This further streamlines the processors implementation.
Please let me know what you think about these changes.

@exceptionfactory Is there any chance to include this into 1.24.0, now that the RC1 is called off? This way, we wouldn't need to wait for the following release which will be some weeks in the future, I assume.

Thank you for your reviews and the fast merge @exceptionfactory.
I'll take a look at what's required for the backport in the next days presumably and open a new pull-request if the work required is manageable.

The backport was more straightforward than I've expected. I've opened #8031.
I'd highly appreciate if you'd take a look at it @exceptionfactory, as you're familiar with this original pull-request already.


Three small changes: propagator dtype, xavx -> xhost, streaming stores

Changed -xavx option on the Intel compiler to go with -xhost because it generate illegal instructions on some systems that don't have avx. xhost will pick up the highest ISA possible.
Added a dtype field to propagator. Gets set from operator.
Added precision checks in the precomputed (factorized)  term parsing

Ok, I can believe this. Good to go from my end.

Let's fix the flake8 and merge this


Depth Support

Does Filament support object occlusion when combined with arcore?

Yes you can render to the depth buffer or do the occlusion yourself in your materials.

is  this any sample available for that as i was using sceneform now google has suddenly stopped its support.

Hi @HemanParbhakar  and @romainguy:
Regarding the artifacts reported here, here and here (between others issues), when trying to implement an occluding-not-shown geometry under ARCore-Filamet-Sceneform that, as far as I understand is due to the need of changing the rendering priority, being the camera feed rendered first (priority 0) instead to last (priority 7) as is by default, I wonder what type of approach is being followed now in the Depth API, in order to avoid that type of problems.
Best regards.

so @vortice3D filament supports depth ? If yes, then can you please provide a proper documentation.

Yes, Filament supports writing the depth buffer only. You can do this in your materials by disabling color writes. See the docs for materials: https://google.github.io/filament/Materials.html

@romainguy but how will depth buffer works as it was only works in open gl and ndk for arcore.

HI @HemanParbhakar:
The way to implement an "occluder" material is:

We start with a general occlusive material definition (.mat file):

material {
	name : "Occlusion material",
	shadingModel : unlit,
	colorWrite : false,
	depthWrite : true
}

fragment {
	void material(inout MaterialInputs material) {
		prepareMaterial(material);
		material.baseColor = vec4(0.0);
	}
}

Then, we must compile that material using the Filament “matc” tool, this way:
matc -o ./materials/bin/YOUR_MATERIAL_NAME.matc ./materials/src/YOUR_MATERIAL_NAME.mat

Warning! Please note that the material mus be compiled with each new version of Filament.

Also, you need to change the rendering priority, being the camera feed rendererd first (priority 0) insted to last (priority 7) as is by default. The priority must be: Camera > Occluder renderables > Others renderables

Anyway, people is reporting visual artifacts here and there following this workflow. That is the reason I asked for the different way obviously the Depth API functionality is following for its "occluders".
Best regards.

@vortice3D Thanks. Is there any demo avaible for this as i have to do this on Android.

Here is an example project on getting object ARCore occlusion working with Filament.
https://github.com/zirman/arcore-filament-example-app

@vortice3D Thanks for your time and comment.
Actually there is lot of confusion I just wanna add the AR objects in the view add occlusion with them.
The Priority is not avaible in Sceneform1.17.1
arFragment.getArSceneView().setCameraStreamRenderPriority(Renderable.RENDER_PRIORITY_FIRST);
So I am using RenderableManager.build().setPriority(0);
But how to set it different for each Renderable like if I have 10 AR Objects.
Also once I have the matc how do I set that upon tap I have to use viewRenderable (a layout file) and some cubes with that matc file.

Hi @HemanParbhakar:
Well as you say, sadly, the render priority API is disappeared under Sceneform1.17.1. This situation, along with the reported artifacts shown when using such a technique (with previous Sceneform versions which did let you use render priority) was the point where I've just abandoned this
Then DepthAPI came life and I thought: "Hey this guys/girls are implementing occlusion once the depth info is obtained. How the render-thing of it will be working?. So I asked here, and well, maybe the answer are the vertex shaders from @zirman.
Best regards.

You can implement support for ARCore's depth API in several ways. The "easiest" one that will give decent results is to sample the depth texture from the object's material and discard fragments manually. By sampling several points in the depth map you can even feather the occlusion to avoid aliasing effects. Another solution is to write to the depth buffer using a full screen triangle and modifying the fragment's Z value from the fragment shader. You'll lose early-Z but that's not a big deal for this kind of scenes.

@romainguy Is there a way to explicitly specify the value written to the depth buffer in the pixel shader?

You can write to gl_FragDepth to achieve this.

Is that available from Filament? https://google.github.io/filament/Materials.html

Yes, it should work just fine. We haven't tested it across platforms which is why we don't document it but it'll work on Android.

Would you kindly provide an example? :-)

Of writing depth? Just do gl_FragDepth = value; // value is between 0 and 1. So with the ARCore depth map, you'd probably just assign texture(arcore_depth_map, getUV0()) to gl_FragDepth.

Nice. I didn't know that variable was there. I was thought it would be a field on material. Thanks!

@romainguy @zirman the easiest approach would be to use the Arcore Depth API ? For filament the person first needs to understand how the graphics would and each term which is a long task

Materials are turned into GLSL shaders, so you technically have access to everything a GLSL shader has access to (gl_FragCoord, etc.). But like I said above, unless we can guarantee it will work on all target platforms/APIs (metal, vulkan, etc.) we don't recommend using those things. But if you are aware of this and you're ok with it… :)

Of writing depth? Just do gl_FragDepth = value; // value is between 0 and 1. So with the ARCore depth map, you'd probably just assign texture(arcore_depth_map, getUV0()) to gl_FragDepth.

https://developers.google.com/ar/develop/java/depth/developer-guide#retrieve-depth-maps
This is function it returns DepthImage

@vortice3D Thanks for your time and comment.
Actually there is lot of confusion I just wanna add the AR objects in the view add occlusion with them.
The Priority is not avaible in Sceneform1.17.1
arFragment.getArSceneView().setCameraStreamRenderPriority(Renderable.RENDER_PRIORITY_FIRST);
So I am using RenderableManager.build().setPriority(0);
But how to set it different for each Renderable like if I have 10 AR Objects.
Also once I have the matc how do I set that upon tap I have to use viewRenderable (a layout file) and some cubes with that matc file.

Hi @HemanParbhakar:
Well as you say, sadly, the render priority API is disappeared under Sceneform1.17.1. This situation, along with the reported artifacts shown when using such a technique (of course, using previous Sceneform versions which did let you use render priority) was the point where I've just abandoned this trail.
Then DepthAPI came life and I thought: "Hey this guys/girls are implementing occlusion once the depth info is obtained. How the render-thing of it will be working?.
So I asked here, and well, maybe the answer are the vertex shaders from @zirman. But I presume is not an easy-to-translate-to-sceneform solution. Well, not have Sceneform is the not-sunny-side-of-the-street, at least not as sunny as iOS' is, which keeps supporting SceneKit (counterpart of the deceased Sceneform, God rest his soul!).
Best regards.

I totally agree. Abandoning Sceneform have make many projects to halt. Due to which developer have to get in depth to understand OpenGL Stuff. Its a nightmare.

@vortice3D were you able to achieve occlusion in physical world?

@vortice3D were you able to achieve occlusion in physical world?

Hi @HemanParbhakar:
I've just read your new issue on it and, with the fresh info, I'm going to re-think my own approach to all this.
As soon as I can reach any conclusion I'll let you know.
Best regards.

This shader works without needing to tessellate the camera texture. Instead the depth is set in the pixel shader.

fragment {
    void material(inout MaterialInputs material) {
        prepareMaterial(material);
        material.baseColor.rgb = inverseTonemapSRGB(texture(materialParams_cameraTexture, getUV0()).rgb);
        vec2 packed_depth = texture(materialParams_depthTexture, getUV0()).xy;
        float depth_mm = dot(packed_depth, vec2(255.f, 256.f * 255.f));
        vec4 view = mulMat4x4Float3(getClipFromViewMatrix(), vec3(0.f, 0.f, -depth_mm / 1000.f));
        float ndc_depth = view.z / view.w;
        gl_FragDepth = 1.f - ((ndc_depth + 1.f) / 2.f);
    }
}

vertex {
    void materialVertex(inout MaterialVertexInputs material) {
        material.uv0 = mulMat4x4Float3(materialParams.uvTransform, vec3(material.uv0.x, material.uv0.y, 0.f)).xy;
    }
}

@vortice3D were you able to achieve occlusion in physical world?

Hi again @HemanParbhakar:
First, I must remark that my case of use for all this occlusion thing, is not related to a depth capable device providing z-depth info about real elements that are occluders of virtual occluded elements.
In my implementation I have a pre-created 3D scene with occluders and occluded meshes, that I calibrate in a previous step, in order to make match the occluders ones with their physical counterparts.
My problems here come mainly with the way to set the different render priorities.

This said, after reading in detail your issue #3162, and also the #2423 (that I had missed at the time), I understand that:
A) for the renderables (occluder and occluded geometries), all the magic related to the render priorities is done through the following kind of filament-code snippet (note that I'm only showing lines of code related to this subject):
...
myRenderable = EntityManager.get().create();
RenderableManager.Builder(1)
    ...
    .priority(5)
    .material(0, materialInstance)
    .build(engine, myRenderable);
scene.addEntity(myRenderable);
...

B) about the camera render priority, as you explain a modification of the ARSceneView object must be done on the (unofficial) 1.17 Sceneform version (last line cameraStream.setRenderPriority(0);):
private void initializeCameraStream() {
    cameraTextureId = GLHelper.createCameraTexture();
    Renderer renderer = Preconditions.checkNotNull(getRenderer());
    cameraStream = new CameraStream(cameraTextureId, renderer);
    cameraStream.setRenderPriority(0);
}

Back to the needs of my development, I want to iterate through the whole 3D asset scene, applying render priorities to the meshes depending on they are occluders or occluded elements. When they are occluders, I need also to apply to them the occluder material.
My code looks something like this:
protected void onCreate(Bundle savedInstanceState) {
   ...
   arFragment.setOnTapArPlaneListener(
      (HitResult hitResult, Plane plane, MotionEvent motionEvent) -> {
         if (renderable == null) {
             return;
         }
         // Create the Anchor
         Anchor anchor = hitResult.createAnchor();
         // Create the Anchor Node
         AnchorNode nodeAnchor= new AnchorNode(anchor);
        nodeAnchor.setParent(arFragment.getArSceneView().getScene());
        // Create the transformable model and add it to the anchor.
        TransformableNode nodeModel = new TransformableNode(arFragment.getTransformationSystem());
        nodeModel.setParent(anchorNode);
        nodeModel.setRenderable(renderable);
        nodeModel.select();
        //
        doTheFilamentStuff(nodeModel);
    });
    ...
}
....
//
private void doTheFilamentStuff(Node node){
    FilamentAsset filasset = node.getRenderableInstance().getFilamentAsset();
    if (filasset!=null && filasset.getAnimator().getAnimationCount() > 0) {
        animators.add(new AnimationInstance(filasset.getAnimator(), 0, System.nanoTime()));
    }
    //
    Engine engine=EngineInstance.getEngine().getFilamentEngine();
    if(engine!=null){
        RenderableManager rm=engine.getRenderableManager();
        if(rm!=null){
            for (int entity: filasset.getEntities()) {
                if(rm.getInstance(entity)==0){
                    continue;
                }

                //if the geometry is the occluder one assign the occluder material to it
                if(filasset.getName(entity).equals("Occluder_geo")){
                    try{
                        InputStream inStream = this.getResources().openRawResource(R.raw.sceneform_occluder_material);
                        byte[] filamat = new byte[inStream.available()];
                        inStream.read(filamat);
                        inStream.close();
                        //material data buffer
                        ByteBuffer buffer=ByteBuffer.wrap(filamat);
                        //material builder
                        com.google.android.filament.Material.Builder myBuilder=new com.google.android.filament.Material.Builder();
                        //material Filament
                        Material occluderMaterial=myBuilder.payload(buffer,buffer.remaining()).build(engine);
                        occluderMaterial.setDefaultParameter("color", 1.0f,0.0f,0.0f);
                        rm.setMaterialInstanceAt(rm.getInstance(entity),0,occluderMaterial.createInstance());
                     }
                     catch (IOException e){
                         e.printStackTrace();
                     }
                }
                ...
            }
        }
    }
}

As a colophon, as I'm using the classic Sceneform code for loading GLTF/GLB files, based on the use of ModelRenderable.builder(), I can't have access to the benefit of setting any priority, as RenderableManager.Builder let to do.
And that's the cause I haven't been able to implement successfully occluding at the moment. Maybe I must resign to use ModelRenderable.builder(), using RenderableManager.Builder instead. In that approach I think I'll need to use separated GLTF/GLB files for occluders and occluded meshes.
Best regards.

This shader works without needing to tessellate the camera texture. Instead the depth is set in the pixel shader.
material {
    name : depth,
    shadingModel : unlit,
    blending : opaque,
    vertexDomain : device,
    parameters : [
        {
            type : samplerExternal,
            name : cameraTexture
        },
        {
            type : sampler2d,
            name : depthTexture
        },
        {
            type : float4x4,
            name : uvTransform
        }
    ],
    requires : [
        uv0
    ]
}

fragment {
    void material(inout MaterialInputs material) {
        prepareMaterial(material);
        material.baseColor.rgb = inverseTonemapSRGB(texture(materialParams_cameraTexture, getUV0()).rgb);
        vec2 packed_depth = texture(materialParams_depthTexture, getUV0()).xy;
        float depth_mm = dot(packed_depth, vec2(255.f, 256.f * 255.f));
        vec4 view = mulMat4x4Float3(getClipFromViewMatrix(), vec3(0.f, 0.f, -depth_mm / 1000.f));
        float ndc_depth = view.z / view.w;
        gl_FragDepth = 1.f - ((ndc_depth + 1.f) / 2.f);
    }
}

vertex {
    void materialVertex(inout MaterialVertexInputs material) {
        material.uv0 = mulMat4x4Float3(materialParams.uvTransform, vec3(material.uv0.x, material.uv0.y, 0.f)).xy;
    }
}

@zirman  so this will work to do occlusion in physical environment at real time.

@HemanParbhakar Yes. It does what the last pixel shader did but instead of having a grid for the camera texture where the depth is modified in the vertex shader, this just modifies the depth value in the pixel shader. It doesn't work on backends that are not OpenGL unfortunately.

@zirman so I Create this filamat file and assign that to model and then the occlusion with real environment will work ?

@HemanParbhakar Look at this example project to see how to use it. That has every detail you need to get it working. https://github.com/zirman/arcore-filament-example-app

But I need It work on sceneform.

@vortice3D Thanks for your time and comment.
Actually there is lot of confusion I just wanna add the AR objects in the view add occlusion with them.
The Priority is not avaible in Sceneform1.17.1
arFragment.getArSceneView().setCameraStreamRenderPriority(Renderable.RENDER_PRIORITY_FIRST);
So I am using RenderableManager.build().setPriority(0);
But how to set it different for each Renderable like if I have 10 AR Objects.
Also once I have the matc how do I set that upon tap I have to use viewRenderable (a layout file) and some cubes with that matc file.

Hi @HemanParbhakar:
Well as you say, sadly, the render priority API is disappeared under Sceneform1.17.1. This situation, along with the reported artifacts shown when using such a technique (of course, using previous Sceneform versions which did let you use render priority) was the point where I've just abandoned this trail.
Then DepthAPI came life and I thought: "Hey this guys/girls are implementing occlusion once the depth info is obtained. How the render-thing of it will be working?.
So I asked here, and well, maybe the answer are the vertex shaders from @zirman. But I presume is not an easy-to-translate-to-sceneform solution. Well, not have Sceneform is the not-sunny-side-of-the-street, at least not as sunny as iOS' is, which keeps supporting SceneKit (counterpart of the deceased Sceneform, God rest his soul!).
Best regards.

I totally agree. Abandoning Sceneform have make many projects to halt. Due to which developer have to get in depth to understand OpenGL Stuff. Its a nightmare.

I totally agree with your point of view, my previous project also used sceneform. It is a headache to do migration now

But I need It work on sceneform.

do you implement depth on sceneform?

Has something changed with the latest release of Filament? Because this material
material {
    name : depth,
    shadingModel : unlit,
    blending : opaque,
    vertexDomain : device,
    parameters : [
        {
            type : samplerExternal,
            name : cameraTexture
        },
        {
            type : sampler2d,
            name : depthTexture
        },
        {
            type : float4x4,
            name : uvTransform
        }
    ],
    requires : [
        uv0
    ]
}

fragment {
    void material(inout MaterialInputs material) {
        prepareMaterial(material);
        material.baseColor.rgb = inverseTonemapSRGB(texture(materialParams_cameraTexture, getUV0()).rgb);
        vec2 packed_depth = texture(materialParams_depthTexture, getUV0()).xy;
        float depth_mm = dot(packed_depth, vec2(255.f, 256.f * 255.f));
        vec4 view = mulMat4x4Float3(getClipFromViewMatrix(), vec3(0.f, 0.f, -depth_mm / 1000.f));
        float ndc_depth = view.z / view.w;
        gl_FragDepth = 1.f - ((ndc_depth + 1.f) / 2.f);
    }
}

vertex {
    void materialVertex(inout MaterialVertexInputs material) {
        material.uv0 = mulMat4x4Float3(materialParams.uvTransform, vec3(material.uv0.x, material.uv0.y, 0.f)).xy;
    }
}

doesn't work anymore.

@RGregat
gl_FragDepth range has changed. It's now -1 to 1.
Change it to this in your shader.
vec4 view = mulMat4x4Float3(getClipFromViewMatrix(), vec3(0.f, 0.f, -depth_mm / 1000.f));
gl_FragDepth = view.z / view.w;

https://github.com/google/filament/issues/4818#issuecomment-973216327

@zirman Excuse me, how do you know gl_FragDepth range has changed? I can't find the reason in the code.

@lb377463323 I don't know where the change occurred. It would probably be somewhere in how the shader code is generated. I observed that after the version changed the the objects were no longer clipping properly. To get the depth buffer working originally, it had to range from 0 to 1 which isn't the standard range for clip space.

@zirman Ok, thank you very much.


Update resume

https://www.overleaf.com/project/5fdf97436b8668ad59291305

Last stable [unreleased]: Ayush Mandowara's Resume

Work in progress...
Ayush_Mandowara_s_CV.pdf
Todo
[] divide work xp @bluestacks into different sections
[] change ffd experience (make separate point for facebook & twitter, remove data anlysis)
[] drop skill chart & divide into skills / tools

Refer this for updation.
SuggestionsByVibhu.pdf
Current State
Ayush_Mandowara_s_CV_still_WIP.pdf

Removed photo
Recovered extra space from top
Removed skill chart
Changed colors to black
Expanding personal projects (WIP)
Figured out hyperlinking. Decided on a color scheme. (Not set in stone)

AyushMandowara_ExpandingPersonalProjects.pdf

Done!
AyushMandowara_June2021_Resume.pdf


Abstract away the checking of rule results

Instead of looking at evaluations and results in the CLI and in BuiltInRuleTests

Can you elaborate on what this would look like?

Currently, Analyzer.Core returns everything that was evaluated, and the CLI has to filter what to display on the console based on what passed/failed.  This isn't ideal for the rule testing project or for other projects using Analyzer.Core directly, where this logic has to be somewhat duplicated.
Ideally, Analyzer.Core would take an extra argument/flag where the caller can specify what should be returned (just failing, failing and passing, other options?, etc.).

No longer high priority, no longer as problematic


Update to Apollo 1.x

Hello @AF-cgi and @piro49!
I have not been using Apollo for a while. Is this all that is required to make ApolloCombine compatible with v1.x?
Thanks, Joel

@joel-perry Yes, of course.

@joel-perry Yes it works fine with the proposed changes in PR of @AF-cgi.
Thank you for the fast reply. :)

Excellent. Thanks to both of you!

@sgade Done! I meant to do it and just got slung off task. Thanks!

Thank you very much. Appreciate the super fast response!


Selections v2

This has been maturing for quite a while now, and I think it is ready to be merged. The core of this PR is a rewrite of the selections parser as a recursive descent parser, which should allow more liberty in the selections language.
This PR implement #83, fix #136, and open the road for #73.
All previously parsing selections are still accepted, and two more cases are available

mathematical expressions (x(#1) / 4 < sin(3 ^ 8))
checking multiple values for equality (name O H S as a shorthand for name O or name H or name S)

TODO before merging:

[x] documentation
[x] improve lexer w.r.t. whitespaces (#72)

For the record, here is the EBNF-like grammar I used for the parser
selection = [context ":"] expression.
context = "atoms"
        | "one"
        | "pairs"
        | "bonds"
        | "two"
        | "angles"
        | "three"
        | "dihedrals"
        | "four".

expression = selector [{('or' | 'and') selector}].

selector = "all" | "none" | str_selector | math_selector | bool_selector | "not" expression | "(" expression ")".

str_selector = str_property ?string? [{?string?}]
             | str_property ("==" | "!=") ?string?.

math_selector = num_property ?number? [{?number?}]
              | sum binop sum.

binop = "==" | "!=" | "<" | "<=" | ">" | ">=".
sum = product [{('+' | '-') product}].
product = power [{('/' | '*') power }].
power = value ['^' power].
value = function | num_property | "(" sum ")" | ?number? | "+" value | "-" value .
function = ("cos" | "sin" | "sqrt") "(" sum ")".

(* unimplemented *)
bool_selector = bool_propname ["(" var [{"," var}] ")"].
bool_propname = "isbond" | "isangle" | "isdihedral".

num_property = num_propname ["(" var ")"].
num_propname = "mass" | "index" | "resid" | "x" | "y" | "z" | "vx" | "vy" | "vz".

str_property = str_propname ["(" var ")"].
str_propname = "name" | "type" | "resname".
var = "#" (1 | 2 | 3 | 4).

@frodofine, do you have some time to give this PR a look ? The diff is pretty huge, but I tried to separated into smaller(-ish) commits. I would specifically appreciate comments on the documentation side of things.
If you don't have time, this is fine =) The previous tests still passes, and new ones have been added!

I'll give a look later this week, I'm busy at the moment though.

I updated the last commit, hopefully the documentation is easier to understand now. Let me know what you think !

I'll merge this tomorrow if everyone is OK with it!


fix(ktable): update v-on value

Summary
<KTable> without side borders will throw a warning:

[Vue warn]: v-on with no argument expects an object value.

@adamdehaven @kaiarrowood
PR Checklist

[ ] Does not introduce dependencies
[ ] Functional: all changes do not break existing APIs and if so, bump major version.
[ ] Tests pass: check the output of yarn test packages/
[ ] Naming: the files and the method and prop variables use the same naming conventions as other Kongponents
[ ] Framework style: abides by the essential rules in Vue's style guide
[ ] Cleanliness: does not have formatting issues, unused code (e.g., console.logs), or leftover comments
[ ] Docs: includes a technically accurate README, uses JSDOC where appropriate

@Leopoldthecoder does this need to be ported back to the main branch as well, or not needed?

@adamdehaven Not needed, the main branch is fine.

@Leopoldthecoder sounds good; it’s approved so feel free to merge 💪🎉


ci(package.json): lint by publint

Overview

PR Checklist

[x] I read and included theses actions below

I have read the Contributing Guide
I have written documents and tests, if needed.

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

Project coverage is 99.51%. Comparing base (026d015) to head (355f2fa).

Additional details and impacted files

@@           Coverage Diff           @@
##             main      #93   +/-   ##
=======================================
  Coverage   99.51%   99.51%
=======================================
  Files          13       13
  Lines         206      206
  Branches       46       46
=======================================
  Hits          205      205
  Misses          1        1


ARM64 CONTEXT REGS number is 36

Summary
ARM64 CONTEXT REGS number is 36
Impact
Testing

@lipengfei28
Please change the commit message as follows.
arch: arm64: Fix ARM64_CONTEXT_REGS number

This commit fixes the regression in  https://github.com/apache/nuttx/pull/14063


[Bug]: Not support non-standard ports.

What happened?
When I use the non-standard ports as Endpoint (ex: https://minio.domain.com:23333).I got a err

What OS are you using?
macOS
What remote cloud services are you using?
others
Version of the plugin
0.7.22
Version of Obsidian
1.5.0
Using password or not

[X] Yes.

Ensure no sensitive information

[X] I ensure that no sensitive information is submitted in the issue.

Seems like https://minio.domain.com:23333 can not be accessed, please check if your firewall and network are working correctly.


az update - An error occurred whilst updating. The extension ml already exists.

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Related command
az update
Describe the bug

Not really a bug but an observation of errors being generated!
To Reproduce

Not sure if everyone is getting there errors, but just type in "az update" in one of the CLI's.
Expected behavior

I'm expecting there not to be any errors during this training exercise for a beginner.
Environment summary

https://learn.microsoft.com/en-us/training/modules/describe-core-architectural-components-of-azure/4-exercise-explore-learn-sandbox
PS /home/danny_beaman> az upgrade
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
You already have the latest azure-cli version: 2.42.0
Upgrading extensions
Checking update for interactive
Latest version of 'interactive' is already installed.
Use --debug for more information
Checking update for ai-examples
Latest version of 'ai-examples' is already installed.
Use --debug for more information
Checking update for ml
Failed to delete '/usr/lib/python3.9/site-packages/azure-cli-extensions/ml': [Errno 13] Permission denied: 'py.typed'. Retrying ...
Failed to delete '/usr/lib/python3.9/site-packages/azure-cli-extensions/ml': [Errno 13] Permission denied: 'py.typed'. Retrying ...
Failed to delete '/usr/lib/python3.9/site-packages/azure-cli-extensions/ml': [Errno 13] Permission denied: 'py.typed'. Retrying ...
Failed to delete '/usr/lib/python3.9/site-packages/azure-cli-extensions/ml': [Errno 13] Permission denied: 'py.typed'. You may try to delete it manually.
An error occurred whilst updating.
The extension ml already exists.
The command failed with an unexpected error. Here is the traceback:'
[Errno 17] File exists: '/usr/lib/python3.9/site-packages/azure-cli-extensions/ml'
Traceback (most recent call last):
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/extension/operations.py", line 413, in update_extension
_add_whl_ext(cli_ctx=cmd_cli_ctx, source=download_url, ext_sha256=ext_sha256,
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/extension/operations.py", line 113, in _add_whl_ext
raise CLIError('The extension {} already exists.'.format(extension_name))
knack.util.CLIError: The extension ml already exists.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/az/lib/python3.9/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/init.py", line 663, in execute
raise ex
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/init.py", line 697, in _run_job
result = cmd_copy(params)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/init.py", line 333, in call
return self.handler(*args, **kwargs)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
return op(**command_args)
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/command_modules/extension/custom.py", line 34, in update_extension_cmd
return update_extension(cli_ctx=cmd.cli_ctx, extension_name=extension_name, index_url=index_url,
File "/usr/lib64/az/lib/python3.9/site-packages/azure/cli/core/extension/operations.py", line 421, in update_extension
shutil.copytree(backup_dir, extension_path)
File "/usr/lib/python3.9/shutil.py", line 568, in copytree
return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,
File "/usr/lib/python3.9/shutil.py", line 467, in _copytree
os.makedirs(dst, exist_ok=dirs_exist_ok)
File "/usr/lib/python3.9/os.py", line 225, in makedirs
mkdir(name, mode)
FileExistsError: [Errno 17] File exists: '/usr/lib/python3.9/site-packages/azure-cli-extensions/ml'
To check existing

@bebound for awareness

Duplicate of https://github.com/Azure/azure-cli/issues/24023
This will be fixed in next release.


re. resolution, font issues

Attach (recommended) or Link to PDF file here:
Configuration:
Web browser and its version: chrome
Operating system and its version: android 11
PDF.js version: v3.11.174
Is a browser extension: No
Steps to reproduce the problem:

When in portrait mode on a specific page, the text is overlapped. Rendered normally in landscape mode
Open same pdf file in https://mozilla.github.io/pdf.js/web/viewer.html

What is the expected behavior? (add screenshot)
https://github.com/mozilla/pdf.js/assets/59465364/5baed7c4-b887-49af-84a0-7923de020e2f
What went wrong? (add screenshot)
https://github.com/mozilla/pdf.js/assets/59465364/369edd5d-b209-4e5b-b1db-386338070c2a
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):

Duplicate of #17864


Added weekly meeting details to README

Coverage remained the same at 100.0% when pulling 6d5d1184199328b1c23d88bcfbfad631485fbe76 on jpkrohling:JPK-AddedMeetingDetails into a2ed9b854fa9ef2ce4eb97290d083b73dfbc9bcc on jaegertracing:master.

Coverage remained the same at 100.0% when pulling f601a27b8665dba861da128f6a9d22a108171d25 on jpkrohling:JPK-AddedMeetingDetails into a2ed9b854fa9ef2ce4eb97290d083b73dfbc9bcc on jaegertracing:master.

Coverage remained the same at 100.0% when pulling c54f77cea9c379c24b75145bd01a5ce3dbc95df2 on jpkrohling:JPK-AddedMeetingDetails into 1496da9792e684f287d37a9d6d31c3b91c13a429 on jaegertracing:master.

Coverage remained the same at 100.0% when pulling c54f77cea9c379c24b75145bd01a5ce3dbc95df2 on jpkrohling:JPK-AddedMeetingDetails into 1496da9792e684f287d37a9d6d31c3b91c13a429 on jaegertracing:master.


Release Google.Cloud.AIPlatform.V1 version 3.4.0

Changes in this release:
New features

Add model and contents fields to ComputeTokensRequest v1 (commit 03a2748)
Add role field to TokensInfo v1 (commit 03a2748)

Created release for Google.Cloud.AIPlatform.V1-3.4.0


Update schema definition after recent API changes

This is speculative - confirming a suspicion about how the schema in this application is constrained...
Developer

[ ] All new ENV is documented in README
[ ] All new ENV has been added to Heroku Pipeline, Staging and Prod
[ ] ANDI or Wave has been run in accordance to
our guide and
all issues introduced by these changes have been resolved or opened as new
issues (link to those issues in the Pull Request details above)
[ ] Stakeholder approval has been confirmed (or is not needed)

Code Reviewer

[ ] The commit message is clear and follows our guidelines
(not just this pull request message)
[ ] There are appropriate tests covering any new functionality
[ ] The documentation has been updated or is unnecessary
[ ] The changes have been verified
[ ] New dependencies are appropriate or there were no changes

Requires database migrations?
YES | NO
Includes new or updated dependencies?
YES | NO

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 99.454%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
364

Relevant Lines:
366

💛  - Coveralls


Remove “Closed” tag from closed non-association view page

i think this will make it harder to notice when a non-association is closed :(


I installed the latest FBI but Im only got a red screen error! Please help

Before creating an issue, remember that FBI does not work on systems without custom firmware on 11.3. There is no kernel exploit for this version yet, and there are currently no estimates when another one will be found.
If you are experiencing issues installing a CIA file, please make sure that:

Your CIA file is valid.
Your SD card is good.

Make sure you don't have a counterfeit SD card.
Check the SD card for filesystem errors.
Try a different SD card, if possible.

So Icant start fbi.3dsx in my nintendo 2ds xl! Please help form me
I using The homebrew launcher 2.0.0 and my version is 11.9.0-42E

You've already made an issue on this. Don't make 2 issues for the same problem.


Need to add role dependencies

We have several roles, specifically for containers, which are dependent on docker. Ex: Harbor, Portainer, etc. These roles should list docker as a role dependency in accordance with: http://docs.ansible.com/ansible/latest/playbooks_reuse_roles.html#role-dependencies

I'll hold off on this until we (1 have all the roles add and (2 know exactly which ones depend on docker.  At that point, I can add the dependencies all at once and just do one pull.

Sounds good!


fix required rules to allow for null values.

Unlike query params or headers, a body field can be transmitted as null.
Considering both <undefined> and   fail a required* test - so should null.
This PR makes this change.

Thank you for the pull request Gavin.

Is this going to get pushed to npm?


Viewer submission, video direction

I really hope I didn't miss it in the video or these repos, but @thatmattparker what direction(s) will you be filming our visualizations from? I have a big idea, but will not make sense unless viewed from a specific direction.
You mention in the video that I believe the XZ plane is in frame currently, but will that still be so during the video?
Thanks!

Yes, I will film looking directly down the positive x axis. Same as in my video. Which means the ‘viewing plane’ is YZ.

@thatmattparker - Thanks so much! Stoked!

@thatmattparker just to clarify, will the camera be located at a positive or negative x-coordinate (i.e. cam_x = 5 or cam_x = -5) in GIFT reference frame?

oh, I'm also assuming there will be a secondary camera so we can see the 3D affects. Thanks!

Just one camera at roughly cam_x = 5.

Closing as answered by Matt :)


How to decode "Fitness Machine Control Point" data

Dear Sir
very thx your post  https://jjmtaylor.com/post/fitness-machine-service-ftms/
can help me about  FTMS at android
i try decode data

i found this project https://github.com/sputnikdev/bluetooth-gatt-parser   . the basic BLE  data info  it work  --like  Service -- device_information

but i lost fitness_machine service xml file !!  so i found it  & relation Characteristics xml !!  at

https://www.bluetooth.com/wp-content/uploads/Sitecore-Media-Library/Gatt/Xml/Services/org.bluetooth.service.fitness_machine.xml
https://www.btstage.net/wp-content/uploads/Sitecore-Media-Library/Gatt/Xml/Characteristics/org.bluetooth.characteristic.fitness_machine_control_point.xml

when i think it is ok !!  but  the app will crash !!!??

i look the xml  https://www.btstage.net/wp-content/uploads/Sitecore-Media-Library/Gatt/Xml/Characteristics/org.bluetooth.characteristic.fitness_machine_control_point.xml

the value is empty !!!!!!

now  i want  write some value at  fitness_machine_control_point

how  set value ?  and get right  Response Codes ?
THX

Hi @CMingTseng,
Unfortunately I don't have any experience with the implementation of fitness machine control points using the FTMS protocol.  All of my work has been in the passive collection of FTMS data.
If you haven't already seen it, you might try investigating https://www.bluetooth.com/specifications/specs/fitness-machine-service-1-0/ for more information about control points.


Missing effect on Tails' attack

fixed with triangle fan implementation

A bit offtopic, but any way to fix this without D3D11? It seems to happen when both Onion Blur and Lantern Engine are enabled.


Sample molecules based on a specific scafford

Thanks for this excellent work !
In the README inference part, "molecule_generation encode MODEL_DIR SMILES_PATH OUTPUT_PATH" is used to generate molecules. How can I sample molecules based on a specific scafford?
Looking forward to your reply

In the README inference part, "molecule_generation encode MODEL_DIR SMILES_PATH OUTPUT_PATH" is used to generate molecules.

So encode is for encoding into the latent space (converting molecules into vectors of real numbers), while sample and decode do some actual generation (with only the former being exposed through the CLI at the moment).

How can I sample molecules based on a specific scaffold?

This isn't exposed in the CLI interface (which is mostly designed for very simple things for now), and so I would recommend to load the model from Python following the code snipped in the "Inference" section of the README. The decode method has a scaffolds argument (see here) that you can use. You also need to provide a latent code to decode; for a simple demonstration, you can take an encoding of a molecule containing that scaffold and perturb it slightly to get similar scaffold-constrained samples.
Quick example:
import numpy as np
from molecule_generation import VaeWrapper

model_dir = "./example_model_directory"
scaffold = "C1=CC=CC=C1"
init_mol = "O=CNC1=CC=CC=C1"

with VaeWrapper(model_dir) as model:
    [latent_center] = model.encode([init_mol])
    latents = latent_center + 0.5 * np.random.randn(10, latent_center.shape[0]).astype(np.float32)

    for idx, smiles in enumerate(model.decode(latents, scaffolds=[scaffold] * len(latents))):
        print(f"Result #{idx + 1}: {smiles}")

prints
Result #1: NC(=O)C1=CC=CC=C1
Result #2: O=CNC1=CC=CC=C1
Result #3: CC(=NNC1=CC=CC=C1)C(N)=O
Result #4: CC(=O)NC1=CC=C(C(N)=O)C=C1
Result #5: NC(=O)C1=CC=CC=C1N
Result #6: NC1=CC=C(C(=O)NC2=CC=CC=C2)C=C1
Result #7: O=CNC1=CC=CC=C1
Result #8: O=C(NC1=CC=CC=C1)C1=CC=CC=C1
Result #9: NC(=O)C1=CC=C(NC=O)C=C1
Result #10: O=CNC1=CC=CC=C1[N+](=O)[O-]


Country revision Türkiye

Revise country name from Turkey to Türkiye following the country's official name.

ISO has implemented the change already: https://www.iso.org/obp/ui/#search/code/ , page 10

Description for ISO_3166 edited


Activity: folder variable missing if folder renamed

Describe the bug
If I rename a folder, the activity events loose context, see screenshot.
Steps to reproduce

Create a folder "test"
Create a subfolder "subtest"
Open the activities sidebar panel for "test"

Expected behavior
Old activity events still show the old folder name from before the rename
Actual behavior
The folder context is missing entirely (see screenshot)

It happens because the old ref.Path that we keep in the event is not relevant for getting the resource information after renaming.
We can use the part of the path for that. But it will not work when the resource id has been used for renaming (MOVE)
FYI @kobergj


Is this the only demo for Android?

Where can I download Connectycube sample with modern design like on Connectycube's startpage:

and with:

emoji picker
possibility to record an audio message

Screenshots of this demo look ugly and there are no mentioned above functions.

hello @sanmiguel2019, this pictures just show what functionality you can implement in your app. Android-messenger-app demonstrates how you can use Connectycube Android SDK to write own app with own design and features.

Closed. There was no activity for a long time.


Meteor CollectionFS Developers Hangout

Hi all,
We want to invite all interested to a hangout next week wed the 18th feb 2015, at CET 23.00 - a "Developers talk about CollectionFS"
Current agenda:

Welcome
How we can make it easier to contribute to cfs
Status / where we are heading at
Next hangout?

Both Eric (@aldeed) and I (@raix) will be there, focus is about getting cfs development up in gear so we all can start to using it in production.
If you want to be part of the hangout please reach out to @raix at mh(at)gi2.dk on google plus or mail - I'll add you.

I'm also adding you here since you of all might have some input on how we can do better - If for some reason your not mentioned please poke me and I'll correct it :)
If you read this issue and have been close to contributing, please give some feedback on how we can make it easier/safer etc. we would value your input.
Kind regards Morten

\o/

missed a f :)

Cool, thanks, will see if I can make it!
Daniel Dornhardt, Daniel Dornhardt Development
<EMAIL_ADDRESS>+49 152 - 56 17 22 61
On Wed, Feb 11, 2015 at 9:33 AM, Morten N.O. Nørgaard Henriksen <
<EMAIL_ADDRESS>wrote:

Hi all,
We want to invite all interested to a hangout next week wed the 18th feb
2015, at CET 23.00 - a "Developers talk about CollectionFS"
Current agenda:

Welcome
How we can make it easier to contribute to cfs
Status / where we are heading at
Next hangout?

Both Eric (@aldeed https://github.com/aldeed) and I (@raix
https://github.com/raix) will be there, focus is about getting cfs
development up in gear so we all can start to using it in production.
If you want to be part of the hangout please reach out to @raix
https://github.com/raix at mh(at)gi2.dk on google plus or mail - I'll
add you.

I'm also adding you here since you of all might have some input on how we
can do better - If for some reason your not mentioned please poke me and
I'll correct it :)
If you read this issue and have been close to contributing, please give
some feedback on how we can make it easier/safer etc. we would value your
input.
Kind regards Morten
—
Reply to this email directly or view it on GitHub
https://github.com/CollectionFS/Meteor-CollectionFS/issues/539.

I would like to make it but unfortunately the timing is pretty bad for Hong Kong.
Will you be able to record the audio?

OMG, another developer in Hong Kong on the same thread (the other being me). What are the odds. That calls for some beers/local gathering!

Sorry about the timing - I planned it really late in my timezone hoping more devs could attend
I'll see if we can record or something (honestly it's the first hangout I'm hosting and I haven't read up on the basics yet - so let me know if we can do something clever)

No worries @raix -- it's a good time to pick because there's likely to be devs in the US. I've never used hangouts but there might be an option to upload it to youtube or something?
@eprochasson -- yes, there are more than one us! You should check out the Meetup page :smile:

Damn i missed it. I could eat my foot. harr

We missed you @nooitaf :)
We have created a hackpad at https://meteorcfs.hackpad.com everyone is welcome to give input,
I'm starting the first phase of merging some core packages into one main repo - we loose the finer-grained team control - but hopefully we get a more easy maintainable package cluster.
We also have a trello board at https://trello.com/b/iFsuP745/meteor-collectionfs - comment/vote etc. we'll try to keep this updated too.

I hope we have a new hangout once we get a bit more settled, this could be on air. We will have problems reaching globally, but we'll try to be flexible :)

Do you guys hang out in the IRC #meteor channel on freenode?

Gitter badge added

I'm closing this - We are on gitter/trello/github and hopefully we'll have a hangout not to far away in the future.
I've merged core packages into the main repo and added issues with things still needing to be done.
I hope you will find 5 min to check out trello, issues and the devel branch,
Kind regards Morten

@raix did you setup a gitter room, or was that my imagination?

It's linked in the packages/standard-packages readme - we should prop. merge parts of that read me to the main readme

https://github.com/CollectionFS/Meteor-CollectionFS/tree/devel/packages/standard-packages


Wrong indentation with tabs

To repro:

Clone https://github.com/gorilla/mux
Run

CLICOLOR_FORCE=1 GIT_EXTERNAL_DIFF=difftastic git log -p --ext-diff 98cb6bf42e086f6af920b965c38cacc07402d51b

Result:

Thanks for the report! I'll take a look.
(I've been thinking that difftastic should work pretty well for Go too.)


Cannot compile in bash 3.2.x

How to use it?

[ ] kwok
[ ] kwokctl --runtime=docker (default runtime)
[ ] kwokctl --runtime=binary
[ ] kwokctl --runtime=nerdctl
[ ] kwokctl --runtime=kind

What happened?

What did you expect to happen?
Can compile.
How can we reproduce it (as minimally and precisely as possible)?

Mac m1
GNU bash, version 3.2.57(1)-release-(arm64-apple-darwin22)
make build

Anything else we need to know?
https://github.com/kubernetes-sigs/kwok/blob/483e9d7e71acd8ec4ab38d12510b7bc55153b18c/hack/get-platform.sh#L45
Only bash version 4.0 or above is supported.
OS version

```console
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here
On Darwin:
$ uname -a
Darwin chauncey-2.local 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct  9 20:14:30 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T8103 arm64
GNU bash, version 3.2.57(1)-release-(arm64-apple-darwin22)
paste output here
On Windows:
C:> wmic os get Caption, Version, BuildNumber, OSArchitecture
paste output here
</details>

bash 4 was released 14 years ago, we should upgrade.

bash 4 was released 14 years ago, we should upgrade.

I don't think we should rely on the bash version.
https://github.com/kubernetes-sigs/kwok/blob/f2419ade111d31ffb615b9e5692720088305390a/Makefile#L57
PLATFORM ?= $(GOOS)/$(GOARCH)

i think this will fix the issue.

Yes, we modify it to $(GOOS)/$(GOARCH) and delete ./hack/get-platform.sh

/assign


replacing text in a PDF

Seems i have a similar need to the InProgress pull request
https://github.com/hhrutter/pdfcpu/pull/1
I just want to walk the PDF and replaces the Text
my uses case is that i have these 2D CAD drawings with text in them and need to Translate the text producing a new PDF.

Could you elaborate on the exact and generic functionality you are proposing? Thank you.

@hhrutter sure. I have been playing with the other code here and its really awesome.
My use case is that i have a PDF. In my case its a 2D CAD drawing.
I want to be able to loop any text on the pdf and replace the text and save it.
I attach the PDF file itself in case this helps.
2DDrawings.pdf

Generally you iterate over text chunks that may be not only words, but whole sentences and paragraphs. What kind of API are you suggesting? Do you want to provide a lookup table with keywords and value strings for replacement?

I just need to be able to loop for text and be able to replace text and save the pdf as a new file.
Could not find the code to do that simple aspect. Maybe it's easy but just could not find that in the code.
No sure about handling off text which includes carriage returns. It might just be \n once get the data flowing, in which case I can easily handle that.
All the other bits like language translation etc I have already done using Google translate API.
Thanks for looking at this.
Am away from laptop but will post example code where I do the same with a docx, as it clearly shows what I am also trying to do with the PDF.
If your curious I am a building architect and these days half the builders are from many countries and so it's very useful to produce pdfs in not just English.

Here is my example looping and replacing text in a docx.
Just want to do the same with pdf :)

// ReplaceAllTextTrans using Google Translate
func ReplaceAllTextTrans(inFile string, outfile string, statsFile string, langID string) (err error) {

	// Must be able to parse for each Text item !!

	doc, err := document.Open(inFile)
	if err != nil {
		log.Fatalf("error opening document: %s", err)
		return err
	}

	paragraphs := []document.Paragraph{}
	for _, p := range doc.Paragraphs() {
		paragraphs = append(paragraphs, p)
	}

	// This sample document uses structured document tags, which are not common
	// except for in document templates.  Normally you can just iterate over the
	// document's paragraphs.
	for _, sdt := range doc.StructuredDocumentTags() {
		for _, p := range sdt.Paragraphs() {
			paragraphs = append(paragraphs, p)
		}
	}

	for _, p := range paragraphs {
		for _, r := range p.Runs() {

			switch r.Text() {

			/*
				case "Test":
					// ClearContent clears both text and line breaks within a run,
					// so we need to add the line break back
					r.ClearContent()
					r.AddText("Test-BG ")
					r.AddBreak()
				case "This file is used to test the translation.":
					r.ClearContent()
					r.AddText("This file is used to test the translation-BG.")
			*/
			default:
				inText := r.Text()
				outText, err := lang.Translate(inText, langID)
				if err != nil {
					return err
				}

				r.ClearContent()
				r.AddText(outText)

			}
		}
	}

	doc.SaveToFile(outfile)

	return err
}

thank you !!
If you like i can upload the code when i am done so you have it as an example usage

Well, once the functionality is integrated you could be so kind and supply a proper go test case :)

no probs. i have test cases for the other converters already.
On Wed, 11 Oct 2017 at 13:40 Horst Rutter<EMAIL_ADDRESS>wrote:

Well, once the functionality is integrated you could be so kind and supply
a proper go test case :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/hhrutter/pdfcpu/issues/4#issuecomment-335782295, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ATuCwluLePxaTElqdWp-K4NXoxGOdsUgks5srKkmgaJpZM4Pxp28
.

@hhrutter
Any movement on this ? hate to be pushy but i gotta admit i really need this as i need to get the PDF CAD files into a few different languages for my builders :)

Like I said it's in the pipeline.
I am not aware that I am doing contract work for you. This is OSS where people come home and do software development in their spare time with passion and for free. Please have some respect.

sorry... Your right.
I will try to dig into the parser and see if i can get something moving over the weekend..
Will let you know if i come up with a PR

Hi again @gedw99  :D
Search & replace is non-trivial because each character can have its own individual glyph positioning, so the plain text "Lexis and grammar —  course content" appears in the PDF content as:
[(L)15(e)20(xis and gr)25(ammar \227 c)12(our)21(s)10(e c)12(on)5(t)21(en)5(t)]TJ

The "individual glyph positioning" insight comes from the code to handle "TJ" at https://github.com/rsc/pdf/blob/c47d69cf462f804ff58ca63c61a8fb2aed76587e/page.go#L560
So when you did a replace, there would also be a need to consider how the replaced text related to the original individual glyph positioning.
Maybe the first step would be plain text extraction, but with the extraction method keeping track of where each extracted character appears in the PDF content stream.

Hey again.
I ended up finding another golang lib that supports pdf templates. This is able to load a pdf template and replace certain parts and then output a pdf.
I am on mobile so won't go hunting for the URL but tell if you need it !

@gedw99 if you get around to it - I'd be interested

The Apache PDFBox project have come across exactly the same problem...
https://pdfbox.apache.org/2.0/migration.html#why-was-the-replacetext-example-removed


Make the tooltip content scrollable to prevent viewport overflow

Hello, I have been using ToolTipster, and so far it's been really great.
However, we are in a little UI use case issue with the positioning. Is it possible to have a behaviour if the content is too much and causes height to grow more than the body height, then it prevents positioning outside of the visible area.  In our use case, we have content which needs to be scrolled, but we saw a top of -80px, so it was positioned outside of the visible area of the body.
A possible solution could be to position the top to 0px, and bottom to be 0px, then we can style the inner content wrapper ourself to add a scrollbar to it?
What do you think?

Hello, the possibility to prevent viewport overflow is one of the last things that haven't been implemented yet, although I made room for it in Tooltipster v4, on the v4 branch. To achieve what you want in v4, set the dimensions yourself with functionPosition and override these css properties on the tooltip: .tooltipster-box should have overflow: auto instead of overflow: initial and .tooltipster-content should have overflow: visible instead of overflow: auto. That should do it until we implement it properly.

Thanks Louis for your prompt reply. I was getting ready to write a hack in
v3.x, using functionReady, but decided to see if you were already working
on it.
By the way, can I use v4 from npm even though it's not installed as yet?
On Thursday, April 14, 2016, Louis Ameline<EMAIL_ADDRESS>wrote:

Hello, the possibility to prevent viewport overflow is one of the last
things that haven't been implemented yet, although I made room for it in
Tooltipster v4, on the v4 branch. To achieve what you want in v4, set the
dimensions yourself with functionPosition and override these css
properties on the tooltip: .tooltipster-box should have overflow: auto
instead of overflow: initial and .tooltipster-content should have overflow:
visible instead of overflow: auto. That should do it until we implement
it properly.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/iamceege/tooltipster/issues/547#issuecomment-209874629

You're welcome. No, I haven't done anything yet to make Tooltipster available on npm.

Hi, you may be interested in this: https://github.com/louisameline/tooltipster-scrollableTip (requires the latest Tooltipster v4). I only did quick tests to be honest, but it seemed to work well.

Tooltipster v4 is out. Thank you.
What's new in v4: #565
Migration guide from v3 to v4: #566


fix: handle missing key for ATTR_IMAGEURL if library doesn't get updated

fixes #96

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

Project coverage is 77.93%. Comparing base (7e28944) to head (08695be).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #97   +/-   ##
=======================================
  Coverage   77.93%   77.93%
=======================================
  Files           6        6
  Lines         349      349
=======================================
  Hits          272      272
  Misses         77       77

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


remove --target arg, allow to pass any clang arg instead

Hi, i did a modification to be able to pass any flag to clang. It's needed because some targets need specific flags when cross compiling.

Sorry for miss-spelling your name :confused:


Different type at runtime vs compile-time in symphony compat code

From the following line:
https://github.com/symphonyoss/ContainerJS/blob/master/packages/api-symphony-compatibility/src/mapping.ts#L19
We are invoking a function on the App object, i.e. containerjsSsf.App.setBadgeCount(count) - and the TypeScript compiler is entirely happy with this. However, at runtime, the containerjsSsf has an app property (lowercase).

I experienced this issue too (#311).


Rustup

Fixes https://github.com/rust-lang/miri/issues/1706
Cc https://github.com/rust-lang/miri/issues/1711 for the temporarily disabled tests

@bors r+

:pushpin: Commit ebd037b0c58883077d522f4c0e8d405391a3a588 has been approved by RalfJung

:hourglass: Testing commit ebd037b0c58883077d522f4c0e8d405391a3a588 with merge e14fbfd293c15911705a0b72e79e9d9e6f0ee9ae...

:broken_heart: Test failed - checks-actions

@bors r+

:pushpin: Commit 4c867feeb637e0172f4c72a3732f9beb5e4f922d has been approved by RalfJung

:hourglass: Testing commit 4c867feeb637e0172f4c72a3732f9beb5e4f922d with merge 776644c85f9c374c9b367c5004b96aa5b63f5425...

:sunny: Test successful - checks-actions
Approved by: RalfJung
Pushing 776644c85f9c374c9b367c5004b96aa5b63f5425 to master...


[ISSUE #1206] add actions script

Fixes #1206.
Modifications
add script for publish image.

After this pr merged， we need to add DOCKER_USERNAME and DOCKER_PASSWORD to the repository secrets.

@wuyiliang1 Has this ci triggered in your fork repository? The docker image has been submitted to the docker hub successful?

@wuyiliang1 Has this ci triggered in your fork repository? The docker image has been submitted to the docker hub successful?

The Dockerfile needs to be adjusted, can't publish yet.

Can I use this to download the JDK? @xwm1992 https://www.oracle.com/java/technologies/jdk-script-friendly-urls/

You can download the JDK using this URL, but keep an eye on the JDK version.

Can I use this to download the JDK? @xwm1992 https://www.oracle.com/java/technologies/jdk-script-friendly-urls/

You can download the JDK using this URL, but keep an eye on the JDK version.

but the only script-friendly URL are JDK17 and 18, can I select JDK17?

Can I use this to download the JDK? @xwm1992 https://www.oracle.com/java/technologies/jdk-script-friendly-urls/

You can download the JDK using this URL, but keep an eye on the JDK version.

but the only script-friendly URL are JDK17 and 18, can I select JDK17?

We now support JDK 8 & JDK 11, you can test it locally with JDK 17.


delay requests if ratelimited

What problem or use case are you trying to solve?
getting ratelimited a lot of time
Describe the UX of the solution you'd like
Could you add a feature that after first 5 seconds, 15seconds 30seconds 1m 5m 15m last if rate limited the time resets every hour
Do you have thoughts on the technical implementation?
/
Describe alternatives you've considered
/
Additional context

Not stale


missing llama.convert module

System Info
python3.10
tensorrt-llm 0.8.0
Who can help?
@byshiue
Information

[X] The official example scripts
[ ] My own modified scripts

Tasks

[X] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
[ ] My own task or dataset (give details below)

Reproduction
When trying to convert a llama2 model following the examples here, I get this error:
ModuleNotFoundError: No module named 'tensorrt_llm.models.llama.convert'

Expected behavior
module should exist
actual behavior
module missing from the site-packages
additional notes
tensorrt-llm freshly installed via pip: pip3 install tensorrt_llm -U --extra-index-url https://pypi.nvidia.com

I also suffered this problem, but I figured out I need to launch the code in
/app/tensorrt_llm/examples/llama directory, not in other directory...

Interesting. I tried that but it didn't work
I just copied TensorRT-LLM/tensorrt_llm/models/llama/convert.py  taken from the source code, to the packages installed by pip in lib/python3.10/site-packages/tensorrt_llm/models/llama/. Worked well.

@gaetanboulard-lc If you don't find convert.py in lib/python3.10/site-packages/tensorrt_llm/models/llama/, it might be an issue of version mismatch. You could try to build and install the tensorrt_llm from source codes by following this guide to fix it.

I also had this issue. Will see if the suggestion to build from source work

I tried to copy the files over, still didn't work.

Please install the requirements.txt in the llama example first:
pip install -r examples/llama/requirements.txt

Please install the requirements.txt in the llama example first:
pip install -r examples/llama/requirements.txt

it works for me, thanks

Please install the requirements.txt in the llama example first:
pip install -r examples/llama/requirements.txt

This installs a specific version of tensorrt-llm, not yet released. I assume this will come in the main release later.
Anyways, it works. Thank you.


Linux PhotinoWindow appears to be missing minimize/maximize icons

On windows

on Linux

I'm running this on ubuntu via WSL...
I don't have access to mac, so don't know what it does there.

I experience this in WSLg also, however, it's not a problem on an Ubuntu machine. Please see this thread which indicates that the issue is with GTK and GNOME and offers some work-arounds: https://github.com/microsoft/wslg/issues/563


Library failing Homebridge verification

I'm not sure if you're intending to get your plugins verified, but the following issue is blocking mine: https://github.com/homebridge/verified/issues/11
If you're not planning on submitting for verification, I'll just close my request.

Yeah seen that, and responded over there.  I think verification is cool, but I'm not sure I agree with (the interpretation) of the "The plugin must run on all Active LTS versions of Node.js, at the time of writing this is Node.js v10 and v12" criterium.

Thanks, much appreciated.


Improve write constraint failures

I tried to fix buf's failure by bumping to the latest commits. The bufbuild/buf-breaking-action action is unfortunately going to fail but should go green once merged. Instead of removing it, I suggest merging with the build failure


general v1.0.0 improvements

adds feedback link
persists key generated with gaia
updates error messages for failed txs
updates tx item icon display
improves tooltip (will update in blockstack/ui)
small logic bug for popover keyboard navigation

@kyranjamie can you take a look at this when you've got a moment?


adding title to every page

Related Issue

Information about the related issue

Closes: #418
Describe the changes you've made
Adding a title to every page and default title will be WebXDAO.

Type of change
What sort of change have you made:

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Code style update (formatting, local variables)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update.
[ ] This change requires a documentation update

How Has This Been Tested?

Checklist

[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented on my code, particularly wherever it was hard to understand.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.
[x] I have added tests that prove my fix is effective or that my feature works.
[ ] Any dependent changes have been merged and published in downstream modules.

Screenshots (if applicable)

Original
Updated

original screenshot
updated screenshot

Code of Conduct

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

@s2sharpit
Why did you deleted the branch. Also, I am traveling today, so I will help you tomorrow with whatever you need.

It is not recommended to close PRs and delete branch, because there might be a solution, and this closed PR reflects on your GitHub profile. Nonetheless, let us know the reason.

@s2sharpit Why did you deleted the branch. Also, I am traveling today, so I will help you tomorrow with whatever you need.

It is not recommended to close PRs and delete branch, because there might be a solution, and this closed PR reflects on your GitHub profile. Nonetheless, let us know the reason.

I apologize for deleting the branch without informing you. The reason behind it was that there was a recent change on the teams page, which was renamed to "team" page. Unfortunately, I had already raised the pull request before the renaming, so I was unable to make the necessary changes to the new "team" page. I'm sorry for any inconvenience caused.

No need to apologize, thanks for informing us. 😁


Support for zend-expressive

Is there any plan to support zend-expressive as well ?
PS: see also https://github.com/zendframework/zend-expressive-skeleton/issues/157

This repository has been closed and moved to laminas/laminas-developer-tools; a new issue has been opened at https://github.com/laminas/laminas-developer-tools/issues/3.


Fix #6

Taking an Accept header into consideration when creating cache key.

Thanks. But I think we should save compatibility with old code.
Added https://github.com/reclosedev/requests-cache/commit/bd771fc1bd1a7cedaad1eb7b35dd9f442da06436


Put images in a grid and make them slightly smaller

This commit fixes issue #11

a <center> tag would put images on a new line, and not even center them. I will look into alternative solutions

Images have now been centered.


Enable debugging ON for phonegap cli 6.3.0 take too much time for loading app

If Turn ON debug mode from https://build.phonegap.com for
<preference name="phonegap-version" value="cli-6.3.0"/>
then phonegap added some script at the end of index.html
Now some time their server too slow or some time that gives error so our app also stuck some time and also take too much time to open
just for example
https://debug1.phonegap.com/target/target-script-min.js#ad0c51fe-ae06-11e5-82dc-22000bcc22 4c
this url take too much time
some time
https://debug2.phonegap.com/target/target-script-min.js#ad0c51fe-ae06-11e5-82dc-22000bcc22 4c
or https://debug3.phonegap.com/target/target-script-min.js#ad0c51fe-ae06-11e5-82dc-22000bcc22 4c
some time debug server give 404 error , too much channel live error .
So please help me for this type issue.

Issue moved to phonegap/phonegap-cli #666 via ZenHub