fix: Add verification before using SegmentAnalytics

Description
I was trying to run the app without the analytics configuration, but the app crashes without this configuration.
I just added a verification before this block of code because our team doesn't use the Analytics Segment
Notes
Please provide feedback so I can improve is necessary this verification.
Testing

[ ] Analytics

Thanks for the pull request, @Ian2012! I've created OSPR-6616 to keep track of it in JIRA, where we prioritize reviews. Please note that it may take us up to several weeks or months to complete a review and merge your PR.
Feel free to add as much of the following information to the ticket as you can:

supporting documentation
Open edX discussion forum threads
timeline information ("this must be merged by XX date", and why that is)
partner information ("this is a course on edx.org")
any other information that can help Product understand the context for the PR

All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.
Please let us know once your PR is ready for our review and all tests are green.

@Ian2012 Thank you for your contribution. Is this ready for our reivew?

@natabene Yes. This is ready for review

Hey @Ian2012, If you have found the suggestion helpful, please update your code so we can proceed with the code review.

Hey @Ian2012, If you have found the suggestion helpful, please update your code so we can proceed with the code review.

@HamzaIsrar12 Ready

@Ian2012 🎉 Your pull request was merged!  Please take a moment  to answer a two question survey so we can improve your experience in the future.


Update the hover effect and background colors of links

Fixes #186
Proposed Changes

Updated the background colors of links on hover
Updated the scaling effect on links

Screenshots
Before :

After :

@Panquesito7 Sure, can you tell me how to solve this https://github.com/EddieHubCommunity/LinkFree/pull/195#discussion_r716182549

@Panquesito7 Sure, can you tell me how to solve this #195 (comment)

https://github.com/EddieHubCommunity/LinkFree/pull/195#discussion_r711273042

@Panquesito7 Thank you, I made some changes to remove !important in index.css.


Additional plugins

The configuration of .vimrc varies a lot of taste, we can think of an area in the web interface (called Advanced) for the advanced user select which plugins he wants to put as additional, so generate the .vimrc with everything that the user like.
Vim template of each technology (language) comes with the basics you need to use that language. We can follow this path to the template of each linguaem here, suggest which plugins will be used and advanced user clears the that does not like.
What do you think?
Solution for:
#100
#98
#96
#92
#80
...

I agree. Advanced section to frameworks and other tools (ex.: Markdown, etc)

Today exist vimawesome.com and this API:
http://vimawesome.com/api/plugins?query=tag%3Apython&page=1

This can be a nice integration.

Hey guys, check implementation:
https://github.com/avelino/vim-bootstrap/tree/selected_plugin
http://5.vim-bootstrap.appspot.com/ (not yet in production)
Now we need a help of a frontend! @hersonls

@avelino great, I will make a frontend for this feature

Nice ;)

Any word on this feature?

@FireAntJoe We need collaborator to implement

@avelino okay

Greetings guys, I only come to say, it would be great if you added VIM Icons inside the Plugins package
You can find it at: https://github.com/ryanoasis/vim-devicons
I tried it and I loved it


lexdecomp

I run your code,but the map = 0.40,mrr = 0.3+, could you explain the reason

Can you give me more details? Did you change any hyperparameters? Which dataset did you use? Have you just followed the instructions in the repository page for TREC-QA?

I just followed the instructions in your repository page for TREC-QA.So I did't change any hyperparameters.
I know the normal result trec-qa about (map:0.70 mrr 0.70).

Hello, I'm facing the same issue when running the code without any changes to the hyperparameter. Let us know of any changes. Thanks for your time!

I am also getting MAP/MRR near 0.433 and 0.301. Any workaround?


Fix Attribute Update Bug

I've updated all of the commit attribute functions to use the attribute parameter passed into the function rather than the non-existent this.attribute.
This fixes the TypeError: this.attribute is undefined error when trying to update an attribute.

Bump... any hope of getting these PR's closed?

This PR is a bug fix.


Gift Entry: Fabricate Donor Name from Lookups

Critical Changes
Changes

When the First/LastName or Account Name fields are missing from the Gift Entry form, use the values in the Donor Lookup field to populate cardholder name if Payment Widget is present.

Issues Closed
Community Ideas Delivered
New Metadata
Deleted Metadata

**lurch: attach W-041099

Tracking W-041099


Feat/worskpace

New repo architecture hosting Ledger Rust SDK workspace

you need to add a licence at the root.

you need to add a licence at the root.

That's the case actually

you need to add a licence at the root.

That's the case actually

My bad, that's normal if I don't see it in the diff as it's already there...


CSS hot reload does not work with Webpack 4 and mini-css-extract-plugin

When I save a .scss file it always reloads the page. I'm not really sure if this is a "problem" with this plugin or webpack or mini-css-extract-plugin.
Here's my webpack config
const path = require('path')
const webpack = require('webpack')
const autoprefixer = require('autoprefixer')
const FileManagerPlugin = require('filemanager-webpack-plugin')
const CompressionPlugin = require('compression-webpack-plugin')
const BrowserSyncPlugin = require('browser-sync-webpack-plugin')
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')

const isProduction = process.env.NODE_ENV === 'production'
const isDevelopment = !isProduction

const paths = {
  entry: path.resolve(__dirname, 'src', 'aokranj.js'),
  output: path.resolve(__dirname, 'public'),
  src: path.resolve(__dirname, 'src'),
  dist: path.resolve(__dirname, 'dist'),
}

const config = {
  mode: isProduction ? 'production' : 'development',
  entry: paths.entry,
  output: {
    filename: 'aokranj.js',
    path: paths.output,
  },
  devtool: 'source-map',
  module: {
    rules: [{
      test: /\.js$/,
      include: paths.src,
      use: [{ loader: 'babel-loader' }],
    },{
      test: /\.(css|scss)$/,
      include: paths.src,
      use: [
        MiniCssExtractPlugin.loader,
        //'style-loader',
        'css-loader',
        //'postcss-loader',
        'sass-loader',
      ],
    },{
      test: /\.(png|jpg|svg|gif)$/,
      loader: 'file-loader',
    }],
  },
  plugins: [
    new webpack.ProvidePlugin({
      $: 'jquery',
      jQuery: 'jquery',
      Popper: ['popper.js', 'default'],
    }),
    new MiniCssExtractPlugin({
      filename: 'aokranj.css',
    }),
  ],
}

if (isDevelopment) {
  config.plugins.push(
    new BrowserSyncPlugin({
      proxy: 'http://aokranj.local/',
      host: 'localhost',
      port: 3000,
      injectCss: true,
      files: [
        './*.php',
        './inc/**/*.php',
        './templates/**/*.php',
        './languages/*.po',
        './public/*.css',
        './public/*.js',
      ],
    },{
      reload: false,
    }),
  )
}

if (isProduction) {
  config.optimization = {
    namedModules: true,
    noEmitOnErrors: true,
    concatenateModules: true,
    minimizer: [
      new UglifyJsPlugin({
        test: /\.js($|\?)/i,
        cache: true,
        parallel: true,
      })
    ],
  }
  config.plugins.push(
    new CompressionPlugin({
      test: /\.js/
    }),
  )
}

module.exports = config

Problem is that both .js and .css files are built
[Browsersync] Watching files...
WARNING: The `text-hide()` mixin has been deprecated as of v4.1.0. It will be removed entirely in v5.
         on line 10 of node_modules/bootstrap/scss/mixins/_text-hide.scss, in mixin `text-hide`
         from line 57 of node_modules/bootstrap/scss/utilities/_text.scss
         from line 14 of node_modules/bootstrap/scss/_utilities.scss
         from line 41 of node_modules/bootstrap/scss/bootstrap.scss
         from line 12 of stdin

Hash: d73a1f9c82601110f4e9
Version: webpack 4.5.0
Time: 1116ms
Built at: 2018-4-18 04:54:02
          Asset     Size  Chunks             Chunk Names
    aokranj.css  174 KiB    main  [emitted]  main
     aokranj.js  475 KiB    main  [emitted]  main
aokranj.css.map  228 KiB    main  [emitted]  main
 aokranj.js.map  596 KiB    main  [emitted]  main
Entrypoint main = aokranj.css aokranj.js aokranj.css.map aokranj.js.map
[./src/aokranj.scss] 39 bytes {main} [built]
    + 8 hidden modules
Child mini-css-extract-plugin node_modules/css-loader/index.js!node_modules/sass-loader/lib/loader.js!src/aokranj.scss:
    Entrypoint mini-css-extract-plugin = *
    [./node_modules/css-loader/index.js!./node_modules/sass-loader/lib/loader.js!./src/aokranj.scss] ./node_modules/css-loader!./node_modules/sass-loader/lib/loader.js!./src/aokranj.scss 181 KiB {mini-css-extract-plugin} [built]
        + 1 hidden module
[Browsersync] Reloading Browsers... (buffered 2 events)

And my package.json
{
  "name": "aokranj",
  "version": "2.0.0",
  "description": "AO Kranj Wordpress Theme",
  "scripts": {
    "start": "npm run watch",
    "dev": "NODE_ENV=development webpack --watch",
    "build": "NODE_ENV=production webpack -p"
  },
  "repository": {
    "type": "git",
    "url": "git@bitbucket.org:preset-si/aokranj-website.git"
  },
  "author": "Bojan Hribernik",
  "license": "UNLICENSED",
  "homepage": "https://www.aokranj.com/",
  "dependencies": {
    "bootstrap": "4.1.0",
    "jquery": "^3.3.1",
    "popper.js": "^1.14.3"
  },
  "devDependencies": {
    "@babel/core": "^7.0.0-beta.44",
    "@babel/plugin-proposal-class-properties": "^7.0.0-beta.44",
    "@babel/plugin-proposal-object-rest-spread": "^7.0.0-beta.44",
    "@babel/preset-env": "^7.0.0-beta.44",
    "@babel/preset-flow": "^7.0.0-beta.44",
    "@babel/preset-react": "^7.0.0-beta.44",
    "autoprefixer": "^8.3.0",
    "babel-loader": "^8.0.0-beta.2",
    "browser-sync": "^2.23.6",
    "browser-sync-webpack-plugin": "^2.2.2",
    "clean-webpack-plugin": "^0.1.19",
    "compression-webpack-plugin": "^1.1.11",
    "copy-webpack-plugin": "^4.5.1",
    "cross-env": "^5.1.4",
    "css-hot-loader": "^1.3.9",
    "css-loader": "^0.28.11",
    "cssnano": "^3.10.0",
    "extract-text-webpack-plugin": "^3.0.2",
    "file-loader": "^1.1.11",
    "filemanager-webpack-plugin": "^1.0.26",
    "mini-css-extract-plugin": "^0.4.0",
    "node-sass": "^4.8.3",
    "postcss": "^6.0.21",
    "postcss-loader": "^2.1.4",
    "postcss-url": "^7.3.2",
    "precss": "^3.1.2",
    "sass-loader": "^7.0.1",
    "style-loader": "^0.20.3",
    "uglifyjs-webpack-plugin": "^1.2.4",
    "url-loader": "^1.0.1",
    "webpack": "^4.5.0",
    "webpack-cli": "^2.0.14",
    "webpack-dev-server": "^3.1.3"
  },
  "babel": {
    "presets": [
      [
        "@babel/preset-env"
      ],
      "@babel/preset-react",
      "@babel/preset-flow"
    ],
    "plugins": [
      "@babel/plugin-proposal-class-properties",
      "@babel/plugin-proposal-object-rest-spread"
    ]
  },
  "browserslist": [
    "> 5%",
    "last 2 versions"
  ]
}

I have the same problem (setup is mostly the same). Anyone found out any solutions?

Hey @paulmasek ... I'm not sure the JS file output in Mini CSS Extract is entirely related to this issue.
For sure if you have BrowserSync watching for JS file updates then that will cause the browser refresh, but by default BrowserSync doesn't watch for JS file. And so the main issue is right now any SCSS/CSS file changes and BrowserSync does a full browser refresh (jumps to the top in Firefox) instead of injecting the CSS.

@onetrev I started a new webpack config today and I was able to get this working. Thanks to @fqborges comment and package here https://github.com/webpack-contrib/mini-css-extract-plugin/issues/151#issuecomment-414739879. This (magically) deletes the JS file outputted, meaning that BrowserSync doesn't try and reload the browser when it spots a JS change, and injects the CSS instead, as per the injectCss: true, setting.

please, refer to the above comment.
thanks everyone.


Can't launch structurizr.sh if it's a symlink

https://github.com/structurizr/cli/commit/d259e8bec1d9a782473a8a54209bebd771f7479e introduced a way to run structurizr-cli from any directory. Ironically, it doesn't seem to work if I have a soft symlink
I'm trying to launch structurizr from an arbitrary directory and get an error:
Error: Could not find or load main class com.structurizr.cli.StructurizrCliApplication

It appears that the problem is how the first line of structurizr.sh works with symlinks:
root@8a47c96fc549:/usr/local# structurizr-cli/structurizr.sh
SCRIPT_DIR is /usr/local/structurizr-cli
Structurizr CLI v1.19.0
Structurizr DSL v1.19.1
Usage: structurizr push|pull|lock|unlock|export|validate|list [options]
root@8a47c96fc549:/usr/local# structurizr-cli
SCRIPT_DIR is /usr/local/bin
Error: Could not find or load main class com.structurizr.cli.StructurizrCliApplication

See dockerfile for reproduction:
FROM jruby:9.3

ARG STRUCTURIZR_CLI_VERSION=1.19.0

RUN apt-get install -y bash curl

RUN curl -L -o /tmp/structurizr-cli.zip "https://github.com/structurizr/cli/releases/download/v$STRUCTURIZR_CLI_VERSION/structurizr-cli-$STRUCTURIZR_CLI_VERSION.zip" && unzip "/tmp/structurizr-cli.zip" -d /usr/local/structurizr-cli && ln -s /usr/local/structurizr-cli/structurizr.sh /usr/local/bin/structurizr-cli

CMD 'structurizr-cli'

This seems to be a duplicate of #43.

oh right, it does. sorry!


String related operations using WebAssembly

I've gone ahead and added string related operations to the wasm extension, made an optimization related change to toString when the Long equals MIN_VALUE.
Breaking change
fromString will throw RangeError if the string's length is over 256, due to the char array assigned to hold the string being limited to that size.

Apologies, I have made some mistakes in my C++ code and I didn't run the tests. I'll commit fixes as soon as I can.

After closer inspection due to missing u64 and u32 types using WebAssembly for string related operations is not really worth since the methods the library is currently using to turn a long into a string already rely on wasm accelerated functions.


OIPA-2129

https://app.zenhub.com/workspaces/iaticloud-5b8e865bb2cc7b6c78ece322/issues/zimmerman-zimmerman/iati.cloud/2129

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


refactor: nuxt3 vuesocialshare update

Thank you for your contribution to the KodaDot - One Stop Shop for Polkadot NFTs.
👇 __ Let's make a quick check before the contribution.
PR Type

[ ] Bugfix
[ ] Feature
[x] Refactoring

Context

[x] Refactor #5314
[ ] Requires deployment <snek/rubick/worker>

Before submitting pull request, please make sure:

[x] My contribution builds clean without any errors or warnings
[ ] I've merged recent default branch -- main and I've no conflicts
[x] I've tried to respect high code quality standards
[x] I've didn't break any original functionality

Optional

[ ] I've tested it at </ksm/collection>
[ ] I've tested PR on mobile
[ ] I've written unit tests 🧪
[ ] I've found edge cases

Did your issue had any of the "$" label on it?

[x] Fill up your DOT address: Payout

Community participation

[x] Are you at KodaDot Ecosystem Telegram?

Comments

VueSocialSharing does not support/bugs when used through the nuxt.config.js modules settings but works fine when registering as a plugin.

Screenshot 📸

[ ] My fix has changed something on UI; a screenshot is best to understand changes for others.

Copilot Summary

🤖 Generated by Copilot at a18fb98
This pull request updates the vue-social-sharing dependency to a newer version that supports Vue 3 and Nuxt 3, and adjusts the plugin registration accordingly. It also adds napi-wasm as a dependency for WebAssembly support. It modifies the pnpm-lock.yaml and nuxt.config.js files accordingly.

🤖 Generated by Copilot at a18fb98

To share NFTs with more flair
The plugin vueSocialSharing needed repair
So they updated the version
And changed the plugin insertion
With defineNuxtPlugin to make it more fair

pay 30 usd

😍 Perfect, I’ve sent the payout
💵 $30 @ 3.99 USD/DOT ~ 7.519 $DOT
🧗 123PCJXhjb15i6JwVVRGd7KvN2sSNZrtPjr5doJq9oWctoTt
🔗 0x5b84d84cbba276a3bda382e84c006959c40e2104430c681a49e616503f3c4512
🪅 Let’s grab another issue and get rewarded!
🪄 github.com/kodadot/nft-gallery/issues


51 ensure saving of pane text is correct

This PR should simplify and ensure the correctness in saving/restoring text in panes. It does so by introducing test/text.lua which exposes a function to write a lot of different ascii and unicode characters. It also exposes a keybind to write this to the pane and save it as TEST_WRITING_BYTES window state.
This can then be loaded and thus it enables testing of saving/restoring text is correct.
I have used this to simplify and improve the current saving of the state to and have tested it works on Windows and Linux.

@joncrangle are you able to test if this branch can encrypt and decrypt on Mac? :smile:

@MLFlexer this looks a lot cleaner!
Success: I was able to encrypt, decrypt and restore the workspace and the individual window on my Mac.
I copied your functions to generate text from test/text.lua into my config and it successfully saved the window state with the generated ascii and unicode characters in the pane.
To restore just the individual window state, I modified your implementation with the fuzzy search picker, but couldn't use the window object (it didn't work, possibly because it corresponds to the picker window that closed). However, I was able to get it to work by passing pane:window() to the restore_window function.
    {
      mods = M.mod,
      key = 'i',
      action = act.Multiple {
        wezterm.action_callback(function(window, pane)
          ---@diagnostic disable-next-line: unused-local
          resurrect.fuzzy_load(window, pane, function(id, label)
            id = string.match(id, '([^/]+)$')
            id = string.match(id, '(.+)%..+$')
            local state = resurrect.load_state(id, 'window')
            resurrect.window_state.restore_window(pane:window(), state, {
              relative = true,
              restore_text = true,
              on_pane_restore = resurrect.tab_state.default_on_pane_restore,
            })
          end)
        end),
      },
    },

@MLFlexer this looks a lot cleaner!
Success: I was able to encrypt, decrypt and restore the workspace and the individual window on my Mac.
I copied your functions to generate text from test/text.lua into my config and it successfully saved the window state with the generated ascii and unicode characters in the pane.

Awesome! Thank you so much for your help, the plugin would not be in the state it is today without your help, I really appreciate it!

To restore just the individual window state, I modified your implementation with the fuzzy search picker, but couldn't use the window object (it didn't work, possibly because it corresponds to the picker window that closed). However, I was able to get it to work by passing pane:window() to the restore_window function.
    {
      mods = M.mod,
      key = 'i',
      action = act.Multiple {
        wezterm.action_callback(function(window, pane)
          ---@diagnostic disable-next-line: unused-local
          resurrect.fuzzy_load(window, pane, function(id, label)
            id = string.match(id, '([^/]+)$')
            id = string.match(id, '(.+)%..+$')
            local state = resurrect.load_state(id, 'window')
            resurrect.window_state.restore_window(pane:window(), state, {
              relative = true,
              restore_text = true,
              on_pane_restore = resurrect.tab_state.default_on_pane_restore,
            })
          end)
        end),
      },
    },

Nice catch! Will update it to use the pane:window() instead 😄


Idea: allow ChatGPT to create diagrams

Hi,
I love Excalidraw. I am very interested in describing complex ideas with diagrams excalidraw is perfect for that task.
ChatGPT excels in generating text that can be used to construct complex charts with for example MermaidJS. This involves asking ChatGPT to generate a MermaidJS diagram, which I then copy and paste into the MermaidJS editor at https://mermaid.live/.
This has proven to be quite efficient and seamless. I am very eager to extend this workflow to Excalidraw, leveraging ChatGPT to generate JSON text that could be used to create diagrams in Excalidraw. For instance, I requested ChatGPT to generate a JSON version of a simple Excalidraw diagram, specifically, "two circles connected by a line". Here's what the AI came up with:
{
  "type": "excalidraw",
  "version": 2,
  "source": "https://excalidraw.com",
  "elements": [
    {
      "type": "ellipse",
      "version": 1,
      "versionNonce": 123,
      "x": 50,
      "y": 50,
      "width": 100,
      "height": 100,
      "strokeColor": "#000000",
      "backgroundColor": "#ffffff",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100
    },
    {
      "type": "ellipse",
      "version": 1,
      "versionNonce": 456,
      "x": 200,
      "y": 50,
      "width": 100,
      "height": 100,
      "strokeColor": "#000000",
      "backgroundColor": "#ffffff",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100
    },
    {
      "type": "arrow",
      "version": 1,
      "versionNonce": 789,
      "x": 100,
      "y": 100,
      "width": 100,
      "height": 0,
      "strokeColor": "#000000",
      "backgroundColor": "transparent",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100
    }
  ]
}

While it looks like excalidraw format. I put it in a test.excalidraw file and tried to upload it to the editor. Sadly I got an error:

But there was not any explanation of what was wrong in the markup. Also I couldn´t find any JSON markup documentation of excalidraw, that would have been enough to give it to ChatGPT to generate valid markup.

Unfortunately, as a text-based AI, I'm unable to generate valid Excalidraw JSON files due to the limitations mentioned earlier. The JSON format of Excalidraw is likely to be more complex than the example and potentially contains other information about the drawing, such as scene metadata.
I would recommend creating a drawing in Excalidraw and exporting it as a JSON file to understand the exact structure and format that it requires. Once you have an example of an Excalidraw JSON file, you can use it as a template to create new JSON files that represent different drawings.

Given this, I kindly request the following:

Could you provide detailed documentation about the exact structure and format that Excalidraw's JSON files require? This would significantly help in generating valid JSON markup for creating diagrams.
If it's not already in place, could you consider more descriptive error messages when a JSON import fails? This would greatly assist in troubleshooting problematic JSON.

Thank you for considering my suggestions. I believe these enhancements could potentially open up new ways for users to interact with Excalidraw, particularly in combination with text-based AI models.

@javigomez generating Excalidraw diagrams from text is in the pipeline :)
However for the above json, rn the element requires all the mandatory attributes to be passed as specified in the element types hence its failing as some of the element properties are missing and for the above json its points attribute for arrow which is missing so after adding points it should work
{
  "type": "excalidraw",
  "version": 2,
  "source": "https://excalidraw.com",
  "elements": [
    {
      "type": "ellipse",
      "version": 1,
      "versionNonce": 123,
      "x": 50,
      "y": 50,
      "width": 100,
      "height": 100,
      "strokeColor": "#000000",
      "backgroundColor": "#ffffff",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100
    },
    {
      "type": "ellipse",
      "version": 1,
      "versionNonce": 456,
      "x": 200,
      "y": 50,
      "width": 100,
      "height": 100,
      "strokeColor": "#000000",
      "backgroundColor": "#ffffff",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100
    },
    {
      "type": "arrow",
      "version": 1,
      "versionNonce": 789,
      "x": 100,
      "y": 100,
      "width": 100,
      "height": 0,
      "strokeColor": "#000000",
      "backgroundColor": "transparent",
      "strokeWidth": 2,
      "strokeStyle": "solid",
      "roughness": 1,
      "opacity": 100,
      "points":[[0,0],[109.61328125,-0.71484375]]
    }
  ]
}

However we are working on simplifying the API in https://github.com/excalidraw/excalidraw/pull/6546 which we will be merging soon and this will help in generating diagrams with minimal better API

Thanks. Exciting times ahead!
Closing the issue


GitHub Runner passive scaler

This is a new scaler that will use GitHub's REST API to schedule scaled runners. It is designed to work in conjunction with GitHub Actions.
Checklist

[x] When introducing a new scaler, I agree with the scaling governance policy
[x] I have verified that my change is according to the deprecations & breaking changes policy
[x] Tests have been added
[x] Changelog has been updated and is aligned with our changelog requirements
[x] A PR is opened to update our Helm chart (repo) (if applicable, ie. when deployment manifests are modified)
[x] A PR is opened to update the documentation on (repo) (if applicable)
[x] Commits are signed with Developer Certificate of Origin (DCO - learn more)

Fixes #
Relates to #1782

I'll look into the e2e next week :)

I'll look into the e2e next week :)

Thanks 🙏 just FYI, we plan to release 2.10 later this week (in case you would want to have that scaler in).

/run-e2e github*

I have added these envs @Eldarrin :

GH_OWNER
GH_REPOS
GH_SCOPE
GH_SO_WORKFLOW_ID
GH_WORKFLOW_ID
GH_AUTOMATIONS_PAT

/run-e2e github*

/run-e2e github*

@Eldarrin , how are you adding the deps to the vendor folder? I ask because there has been missing vendor deps twice and I'm afraid about if you add them manually. To update vendor folder, the just need to execute go mod vendor

/run-e2e github*

@Eldarrin , how are you adding the deps to the vendor folder? I ask because there has been missing vendor deps twice and I'm afraid about if you add them manually. To update vendor folder, you just need to execute go mod vendor. Is this what you are doing?

They were in vendor; I just didn’t add them to my commit by mistake. In bed atm watching the builds and getting up when I see another oh damn moment. :)

@Eldarrin , how are you adding the deps to the vendor folder? I ask because there has been missing vendor deps twice and I'm afraid about if you add them manually. To update vendor folder, you just need to execute go mod vendor. Is this what you are doing?

They were in vendor; I just didn’t add them to my commit by mistake. In bed atm watching the builds and getting up when I see another oh damn moment. :)

No worries, I just asked because it wasn't obvious to me the first time :)

You have done an awesome work!
Thanks for this improvement ❤

/run-e2e github*


[$250] Room - Deleted workspace appears in workspace list during room creation flow

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

Version Number: 9.0.68-2
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers<EMAIL_ADDRESS>Issue reported by: Applause Internal Team
Action Performed:
Precondition:

Account only has one workspace.
Invoices feature is enabled.

Send an invoice to another user.
As invoice receiver, open the invoice room and pay the invoice via Pay with business.
Go back to the invoice sender.
Delete the workspace.
Create a new workspace.
Go to FAB > Start chat > Room.
Click Workspace.
Note that the deleted workspace is still present in the workspace list.
Select the deleted workspace and create a room.

Expected Result:
In Step 10, the deleted workspace should not appear in the workspace list in room creation flow.
Actual Result:
In Step 10, the deleted workspace appears in the workspace list in room creation flow.
When room is created from the deleted workspace, error shows up.
Workaround:
Unknown
Platforms:

[x] Android: Standalone
[x] Android: HybridApp
[x] Android: mWeb Chrome
[x] iOS: Standalone
[x] iOS: HybridApp
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos
https://github.com/user-attachments/assets/41345c31-7407-444b-ab51-3a57231d685b

View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~021863656321139042808
Upwork Job ID:<PHONE_NUMBER>139042808
Last Price Increase: 2024-12-02

Issue OwnerCurrent Issue Owner: @rayane-djouah

Proposal
Please re-state the problem that we are trying to solve in this issue.
Room - Workspace from the other user appears in workspace list during room creation flow
Note that the deleted workspace is not appearing in the room creation flow you can clearly see from the OP that the workspace appearing in room creation flow is Applause's Workspace 6 while the deleted workspace is Applause's Workspace so the workspace appearing is a workspace from the other user that the current user is not a member.
What is the root cause of that problem?
When a user A has sent an invoice to another user and the other user B paid the invoice but User A deletes this workspace the invoice will be transferred to another workspace of user B where user A is not a member and this workspace where user A is not a member is returned in the policies list from the BE and on room creation flow we are displaying it as we only check for pending delete, policy id and name existence
https://github.com/Expensify/App/blob/64eaf2fdd357bd06008adfb9c0c049e09cd375b9/src/libs/PolicyUtils.ts#L74-L78
So when we create a room with it the BE will return an error as the current user is not a member of the workspace

What changes do you think we should make in order to solve the problem?

Here
https://github.com/Expensify/App/blob/64eaf2fdd357bd06008adfb9c0c049e09cd375b9/src/libs/PolicyUtils.ts#L74-L78
we need to check that the current user is a member of the workspace (by checking the existence of role for the current user) same as we are doing here
function getActivePolicies(policies: OnyxCollection<Policy> | null, currentUserLogin): Policy[] {
    return Object.values(policies ?? {}).filter<Policy>(
        (policy): policy is Policy =>
            !!policy && policy.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE && !!policy.name && !!policy.id && !!getPolicyRole(policy, currentUserLogin),
    );
}

we can then pass the session?.email as the current user login but even if we don't pass it will check for policy.role which should exist
Note on:

we can use PolicyUtils.shouldShowPolicy to get active policies instead of PolicyUtils.getActivePolicies(policies) as we are doing in WorkspaceListpage

using shouldShowPolicy instead of getActivePolicies will allow pending deletion workspaces when offline to be included in the workspaces list as we normally use shouldShowPolicy to display in workspace list page where we display pending deletion workspaces when offline with strikethrough applied. 👍
What alternative solutions did you explore? (Optional)

You have identified neither the correct problem nor the correct RCA therefore you haven't backed your solution linking to the correct RCA of the problem. You were just randomly giving several policy props as an option without any logical explanation so it is not acceptable and the reviewer will give the proper review so let's just wait for that.

Assigning @shubham1206agra as the C+ since @rayane-djouah hasn't reviewed the proposals yet. We chatted here about the issue.

ah, no, sorry, my bad in that Slack channel. I wanted to actually point to @FitseTLT proposal.


Eng 248 GitHub identity pr

Please, add name in profile, and nice to have short info on public profile (https://medium.com/@27aadesh/you-found-a-secret-github-special-repository-62d1436009e or check member's exampels)


Nightly builds fail

build.rs is executed twice, so two executions concurrently write and delete files, so build fails.

The current workaround is to disable all benches where build.rs is present, so --all-targets will be compiled using the same configuration.


restructure search api

@deepakunni3 and me restructured the search API to:

make the filter/facet options generic and dependent on previous search results
ship content with the search result

Title for squash and merge:
restructure blob fish search api

Description for squash and merge:
- make the filter/facet options generic and dependent on previous search results
- ship content with the search result


Able to add a person (no role) with volunteer hours/donated amount/partner date

This extra field is not later reflected in their person card.

I am not able to replicate. Maybe it has been fixed by PR #248 ?

Yup it has been fixed

I shall close the issue then


Updated game killer_training

How to play etc.. https://github.com/hackclub/sprig/pull/1141
Tutorial is also in the game itself
Now in version 1.1.0
1.1.0
Practice mode (not time limit and no restart if enemy touched)
Complete menu redesign:

main menu has a button interface, with various options
main menu shows highscore
tutorial rewritten
pages are controlled by key input
shows version number

Highscore counter
New finish screen with highscore, score and option to go to main menu
Go on menu instead button on restarts
Failing tutorial brings you back to main menu
2 slight level updates (mazes)

It's funny how doing the menu was waaaay easier than the game itself

and btw the preview by Vercel is wrong

and btw the preview by Vercel is wrong

Just ignore it:)

Awesome changes!! Just a note - Idk if you know but these version numbers there are specifications for this: https://semver.org but it's just a curiosity :)

wow cool didn't know that! Thanks for the advice

wow cool didn't know that! Thanks for the advice

Fun fact: SemVer was created by Tom Preston-Werner, the creator of GitHub:)


Support coreLibraryDesugaring configuration

Is your feature request related to a problem? Please describe.
I noticed that when my module have dependency on coreLibraryDesugaring(libs.tools.desugarJdkLibs) then plugin doesn't even see it and in console there is no suggestion to remove it if it unused
Describe the solution you'd like
Support searching for this configuration usages

Thanks for the issue. I'm unlikely to be able to work on this in the near future.


Leverage Django appconfig framework

Many of our config options (enabling/disabling swaps, ignored transactions, hotels to care about, etc) should make use of the baked in Django application configuration framework. This would allow us to make config changes without a deployment

This will allow people who aren't adorable nerds to turn on/off options without involving the adorable nerds. Feels worthwhile and shouldn't be too huge a lift.

This isn't actually baked into django but there are decent frameworks like constance. Marking this as "nice to have" rather than "definitely".


Error! Build import SCSS for SASS files

I have the error:
"Semicolons aren't allowed in the indented syntax."
Config:
styleResources: {
    scss: ['./assets/styles/vuetify/variables/_vuetify.scss'],
    less: [],
    stylus: []
  }

I think the problem is because , the module import to sass files too (I want the import too in sass files)
I fixed using the data option from sass-loader, but I wish use this module

I have the exact same error. https://github.com/nuxt-community/vuetify-module/issues/82 for more details.

Have same problem

I have same problem and find a bit of evidence when I use<EMAIL_ADDRESS>In nuxt.config.js,
  vuetify: {
    treeShake: true,
  }
...
  styleResources: {
    scss: ['~assets/some/variables.scss']
  }

This setting may cause Semicolons aren't allowed in the indented syntax..
When a-la-carte mode is TRUE, it seems that @nuxtjs/style-resources module insert the text content of varialbes.scss also into *.sass file, and I inevitably get the error message, "Syntax Error".

I have same problem. This changes looks working.
lib/module.js
@@ -52,7 +52,7 @@
   }

   if (sass.length) {
-    scss.push(...sass)
+    this.extendBuild(extendSass(sass))
   }

   if (scss.length) {
@@ -89,7 +89,8 @@
   })
 }

-const extendScss = extendWithSassResourcesLoader(/s[ac]ss/)
+const extendSass = extendWithSassResourcesLoader(/sass/)
+const extendScss = extendWithSassResourcesLoader(/scss/)
 const extendLess = extendWithSassResourcesLoader(/less/)

 module.exports.meta = require('../package.json')

So splitting up scss and sass works, alright.
I'd accept a (tested) PR introducing that feature. Either as a breaking change or with an optional flag.

Great findings @aaharu – Coming from https://github.com/nuxt-community/vuetify-module/issues/82 I've tested the code changes and get my build task running again.
Nice to see the changes merged!

Released v1

That was quite fast! Many thanks.


python312Packages.voluptuous: 0.15.0 -> 0.15.1

Diff: https://github.com/alecthomas/voluptuous/compare/refs/tags/0.15.0...0.15.1
Changelog: https://github.com/alecthomas/voluptuous/blob/0.15.1/CHANGELOG.md
Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.


build,cmake: Change installation location on MinGW

MinGW prefers a POSIX like file system hierarchy. Therefore, it is appropriate that the installation destination is the same as UNIX.

Doesn’t this patch collide with your Cygwin one?

Doesn’t this patch collide with your Cygwin one?

This does not conflict with the #2085. However, we need both for MinGW installation to work. Adding https://github.com/libuv/libuv/pull/2697/commits/b75ccd4bf0ad020c63733658e99d19ca88c8fe23 to #2085 was ok, but I didn't want to delay the merge of #2085 even further.

CI: https://ci.nodejs.org/job/libuv-test-commit/1959/


feat: default tracking options, auto-track application lifecycle events

Summary
Mostly based on Amplitude-iOS implementation:
https://github.com/amplitude/Amplitude-iOS/pull/455
https://amplitude.atlassian.net/wiki/spaces/GROWTH/pages/2109079759/Test+Mobile+SDK+Default+Events#iOS-Objective-C-SDK
Notable changes:

To check if an app is installed first time, last event time is used instead of app_build to prevent false Application Installed events after SDK update with this PR changes.
app_build/app_version are written to storage always (in Amplitude-iOS when defaultTracking.appLifecycles == true)

Issues:

Two Application Opened  events on app start - first with fromBackground == false (in didFinishLaunching callback) and second with fromBackground == true (in willEnterForeground callback)
Amplitude-iOS generates only one event.
Probably need to fix, not sure what is better for fromBackground in this case though - true/false.

Checklist

[x] Does your PR title have the correct title format?
Does your PR have a breaking change?:  No

Thanks @falconandy. Looks good, see nits.

Two Application Opened events on app start - first with fromBackground == false (in didFinishLaunching callback) and second with fromBackground == true (in willEnterForeground callback)

Hmm I'm not sure which is better, it seems they may not always both fire. https://stackoverflow.com/questions/3712979/applicationwillenterforeground-vs-applicationdidbecomeactive-applicationwillre
@liuyang1520 do you have a recommendation? Thanks

This is weird. I think didFinishLaunchingNotification should only fire when first opening the app, while willEnterForegroundNotification fires when invoking the app from background. From the stackoverflow link above, I think willEnterForegroundNotification is the correct one for monitoring foreground action, as applicationDidBecomeActive is mentioned in post that will be triggered in the first launch as well. I don't see the enter background event in the description, curious is the app opened by clicking on any notification or just clicking the app icon, as from the method description didFinishLaunchingNotification fire in remote notification. So if the app is in background, but invoked by remote notification, maybe it will fire these two open events together?

If the app was launched as a result of in remote notification targeted at it or because another app opened a URL resource claimed the posting app (the notification object), this notification contains a userInfo dictionary.

@justin-fiedler @liuyang1520

Two Application Opened events on app start - first with fromBackground == false (in didFinishLaunching callback) and second with fromBackground == true (in willEnterForeground callback)

Two Application Opened events are  triggered when I (re)start example app in simulator (XCode). If the app restored from background, only one  Application Opened event is triggered.
Not sure how it works on real devices.


Rollup packaging error, how to handle it

For some reason rollup is trying to import .ts file. But the package.json has "main": "index.js". It seems to be a problem with your configuration.

Do you know what the problem is

No, I don't use Rollup

thank you still


clarify / transition of data with GTS headers

Some organizations may choose to redirect existing data feeds either from GTS to WIS2, or to both, as part of transitioning.  What happens when data with AHLs circulates on WIS2?
Though WIS2 is supposed to data agnostic, it would be valuable to have such details as part of a transition guide.
cc @golfvert

FYI transition guide is now put forth at:

https://wmo-im.github.io/wis2-transition-guide (live draft)
https://github.com/wmo-im/wis2-transition-guide (source)


Jekyll Tag "include"

I tried a snippet found at https://github.com/vsch/flexmark-java/wiki/Usage#include-markdown-and-html-file-content with a markdown file containing {% include ... %}.
JekyllTagExtension.TAG_LIST was empty, so debugged into the code and found out that in my case the JekyllTagInlineParser is used. Here I find the line if (!listIncludesOnly || tagName.equals("includes")) while JekyllTagBlockParser uses the line if (!listIncludesOnly || tagName.equals("include")).
I am not familiar with Jekyll (I only want to use the include feature), yet it seems suspicious to me that one parser uses include and another uses includes. Besides ``{% includes ... %}` is not handled properly (nothing is included).

@almondtools, thank you for catching it. It looks like a bug.

@almondtools, the proper tag is {% include %}. Fixed for version 0.34.8


Remove depends

Fix for issue #123
Removing the dependency on homebrew from metadata removes the warnings during builds.

This makes it a Chef 14+ cookbook only. You might wanna hold off on this

Good point @tas50. We should at least target this for v3 instead.

Do we actually depend on the homebrew cookbook anymore?


ST-Link does not recognize STM32F767ZI

[ ] Programmer/board type: Stlink/v2-onboard
[ ] Operating system: Mac OS X,
[ ] Stlink commandline tool name: st-util
[ ] Target chip: STM32F767ZI Nucleo-144

Output:
2016-06-18T02:02:33 INFO src/stlink-common.c: Loading device parameters....
2016-06-18T02:02:33 WARN src/stlink-common.c: unknown chip id! 0x10006451
Expected/description:
I cannot get st-link to connect to my STM32F767ZI chip. I am wondering if this chip is supported at this time?
Thank you,
Bradley

@BirdBare could you try the custom branch, I have no hardware to test but it should work:
https://github.com/texane/stlink/tree/support_stm32f7x7x

It is not working. I get the same Problem. Is my device ID incorrect?
Bradleys-MBP-2:stlink-support_stm32f7x7x bradleybare$ st-util
2016-06-18T10:45:59 INFO src/stlink-common.c: Loading device parameters....
2016-06-18T10:45:59 WARN src/stlink-common.c: unknown chip id! 0x10006451

Closed by #436.


updated readme.md with the license item

Added license item with the required sentence, first experience.

@faruk13 Thank you for this patch.
@nadongguri PTAL.

This is duplicated in https://github.com/lunchclass/absolute/pull/406


Improved documentation for models.

I've added in an Options section for models, since I've stumbled about a little bit with it, at times.

@iwritesomecode Thank you !


cairo vs opencv

Hello, thanks for this great tool, In the original example on Keras Cairo was used to  generate datasets, I just want to know why change to OpenCV

cairo is used in the Keras OCR example primarily for rendering text on images to create synthetic datasets. Originally, keras-ocr did the same thing (you can see it if you go back in time).
https://github.com/faustomorales/keras-ocr/blob/5b074c32f4f3e2b9ec24b4ed67495a1e96e0734f/keras_ocr/tools.py#L196
In fact, the early version (prior to the first public commit) of this library directly cited the OCR example.
Today, this library uses Pillow (PIL) to carry out this task. The benefits for switching were:

PIL has no additional system dependencies that users have to install (or at least none that are unusual for users to have installed already) with apt, brew or some other system package manager.
PIL has a simpler API than cairo
The quality of images rendered with PIL are roughly the same as those rendered with cairo in my brief testing.
PIL makes it easy to load fonts from TrueType font files without the fonts needing to be installed on the system (cairo required fonts to be installed).

OpenCV is used for generic image manipulation (resizing, warping text boxes, etc.). For generating synthetic data, it is used in conjunction with PIL (which carries out the text rendering steps). It's used here because it is well-supported, ships with pre-built wheels for all major platforms, and has bindings available for other languages (e.g., JavaScript). By doing image processing in OpenCV, it leaves the door open to using the models built with this package with, for example, TensorFlow.js. Some of the post-processing steps in the detector (e.g., extracting contours) cannot be easily done with TensorFlow.js alone. But because all the logic is written with OpenCV functions, porting said logic over to JavaScript will be much easier than if we had used PIL for those steps.
We don't use OpenCV for rendering text only because it does not have the same font handling options as PIL.

Awesome. thanks for the clear explanations. YOU ROCK!!!


BOOL inconsistency

It is treated like some kind of a result (see the docs) despite being often used as a parameter (like, in CreateEvent), even an out one - which is might be quite confusing.
To contract, there is no any special meaning for HANDLE even though it is used as a result as often as BOOL.

BOOL is not unlike an error value or an Option that provide convenience helpers to turn such values into Result to simplify error handling. While it is true that BOOL (and Option) are not exclusively used for this purpose, it does make working with many Win32 APIs very convenient.
I plan to provide helpers for the most frequently used types, including the likes of HANDLE and NTSTATUS, as we do for ErrorCode (e.g. HRESULT) and BOOL.

BOOL is not unlike an error value or an Option that provide convenience helpers to turn such values into Result to simplify error handling. While it is true that BOOL (and Option) are not exclusively used for this purpose, it does make working with many Win32 APIs very convenient.
I plan to provide helpers for the most frequently used types, including the likes of HANDLE and NTSTATUS, as we do for ErrorCode (e.g. HRESULT) and BOOL.


PowerToy FancyZone Support

It would be nice if the terminal would support the FancyZones Powertoy published by MS.

I would like to be able to "shift" drag the window and have it SNAP to the various zones in my desktop. Other "apps" seem to work with it (like Sticky Notes).

This is a /dupe of #2905, which is actually a dupe of microsoft/PowerToys#209


Add MCP9601 (MCP96L01) I2C Thermocouple Amplifier

Adding definition for Adafruit MCP9601 (MCP96L01) I2C Thermocouple Amplifier - STEMMA QT / Qwiic
Addresses https://github.com/adafruit/Wippersnapper_Components/pull/29

This component has issues and is not currently planned for support, due to failing to initialise after being i2c scanned.
Hotplugging the device after scanning was deemed unacceptable.
Maybe revisit after python version of wippersnapper lands.
Linked PR: https://github.com/adafruit/Adafruit_Wippersnapper_Arduino/pull/565


Feature Request: Be able to "annotate" location

Problem:
After the fact, it can be hard to find particular footage because you don't know which streamers went to which parts of a protest/action.
Potential Solution, capturing data:
Annotation mechanism would be an extension (or precursor) of whatever we do here: https://github.com/chromakode/streamwall/issues/56
Potential Solution, retrieving data:

Any plain-text solution (e.g., in the Notes section of past streams on the Livesheet) is going to be cumbersome to use, but we could probably brainstorm something.

Ideal solution:

A map associated with each stream. You'd have time-stamped pins with lines between them so you could know where to jump to in the archived footage.
Another part of an ideal solution would be if you could have a map for each day across streams. Pins would be time-stamped and linked to individual streams.

This isn't really relevant to the current vision of Streamwall; there is no built-in archival method.


livesplit-hotkey crate: no hooks being called

Hey im a rust beginner and im wondering why the following code does not work:
(Using windows)
        use livesplit_hotkey::{Hook, KeyCode};
        pub use livesplit_hotkey::{Error, Result};

        let hook = Hook::new().unwrap();
        hook.register(KeyCode::MediaNextTrack, move || {
            println!("captured MediaNextTrack")
        }).unwrap();
        hook.register(KeyCode::MediaPrevTrack, move  || {
            println!("captured MediaPrevTrack")
        }).unwrap();

However nothing triggers here, am i missing something?
I tried to capture more common hotkeys like Numpad0 but that also does not work.

Are you using winit in your code? Or potentially other crates?

Hey @CryZe,
im fiddling around with spotifyd (https://github.com/Spotifyd/spotifyd/blob/master/Cargo.toml) atm.
Im not sure if any packages used there would conflict.

Can you try to replicate it in a simpler hello world like project? Just to see if it would work at all, or if something in spotifyd is preventing it from working.

Yeah will do that tomorrow!


Batch message serialization ignores batch size

Describe the bug
Since batch index message acknowledgement was added the seek method was updated to support more precise seek using ack sets (source code). However when the seek is performed by the message that was serialized and deserialized, the batchSize is set to zero (since it is ignored during serialization), which leads to discrepancy between messageId forms and seek results.
To Reproduce
Compare BatchMessageIdImpl in runtime before and after serialization+deserialization, the batchSize will be always 0 in latter case. This leads to inconsistent behavior of Consumer seek by messageId
Expected behavior
There should be no difference between regular BatchMessageIdImpl  and recovered from byteArray

@Lanayx Sorry for the late response, I think https://github.com/apache/pulsar/pull/8285 is fixed this problem. Currently, we don't use the toByteArray method to do the seek operation. It is achieved by https://github.com/apache/pulsar/pull/8285/files#diff-f6e4c1c4091aa10525f331e48e66b29f22b9f7987755c1b4fb887e24f198bed6R1934-R1942.
The fix is released at 2.6.2 and 2.7.0. What pulsar version you have seen this issue?

Hi, @codelipenghui It seems you've misunderstood the issue :) My concern is that this line will give incorrect result if batched message id passed to the method had been taken from byte array (serialized and deserialized) since bath size is missing in byte representation of batched message id.

@Lanayx I see, thanks for the clarification. We will push a fix soon.

@Lanayx I am trying to reproduce this issue, I am using the following case to test but everything looks good. Could you please take a look at the test case?
    @Test
    public void testSeekBatchMessageWithSerializedMessageId() throws PulsarClientException, InterruptedException {
        final String topic = "public/default/seek-with-batch-message-" + UUID.randomUUID();
        final String messagePrefix = "message";
        @Cleanup
        PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(lookupUrl.toString()).build();
        @Cleanup
        Producer<String> producer = pulsarClient.newProducer(Schema.STRING)
            .topic(topic)
            .enableBatching(true)
            .batchingMaxMessages(20)
            .create();
        @Cleanup
        Consumer<String> consumer = pulsarClient.newConsumer(Schema.STRING)
            .topic(topic)
            .subscriptionName("seek-batch")
            .subscribe();

        ArrayList<String> messages = new ArrayList<>();
        // send messages and batch the messages
        CountDownLatch latch = new CountDownLatch(10);
        IntStream.range(0, 10)
            .forEach(i -> {
                String msg = String.format("%s-%d", messagePrefix, i);
                producer.sendAsync(msg);
                messages.add(msg);
                latch.countDown();
            });
        latch.await();
        producer.flush();

        Message<String> msg1 = consumer.receive();
        assertEquals(msg1.getValue(), messages.get(0));
        Message<String> msg2 = consumer.receive();
        assertEquals(msg2.getValue(), messages.get(1));
        Message<String> msg3 = consumer.receive();
        assertEquals(msg3.getValue(), messages.get(2));
        Message<String> msg4 = consumer.receive();
        assertEquals(msg4.getValue(), messages.get(3));

        consumer.seek(msg3.getMessageId());
        Message<String> seekMsg4 = consumer.receive();
        assertEquals(seekMsg4.getValue(), messages.get(3));

        byte[] msg3IdBytes = msg3.getMessageId().toByteArray();
        MessageId msg3Id = null;
        try {
            msg3Id = MessageId.fromByteArray(msg3IdBytes);
        } catch (IOException e) {
            fail("Failed parse message id from byte array");
        }
        consumer.seek(msg3Id);
        seekMsg4 = consumer.receive();
        assertEquals(seekMsg4.getValue(), messages.get(3));
    }

@zymap Hi! This test works, but not because the seek logic isn't broken, but because seek message id is stored as startMessageId in consumer and extra messages are ignored on receive. So basically if you have batch of 10000 messages and do seek to the last one of the batch all 10000 will be returned from broker, but 9999 will be ignored due to the startMessageId. My understanding is that this logic was supposed to serve for precise reset, so extra messages are not sent to the consumer.

@Lanayx The broker does not do deserialization and filter the messages from a batch, this is expected behavior. And yes, this issue should be fixed since the consumer does not pass the right position to the broker, this will lead to the message acknowledgment issues(filtered messages by the client never get changes to ack, the mark delete position will stop to move forward)
@zymap I think you can try to close the consumer after the seek operation and restart to consume messages, I think you will get the msg1 from your test.


changed styles for mobile view related to home usb page

As for me, these lines looks strange

It would be better to hide it for mobile view


IPython doesn't display cells with unicode as a table...

Evaluate {'a': 'a'} and {'a': u'a'} in IPython. The first displays as a table, the second as text. This doesn't happen with Python 3.

confirmed: https://pub.beakernotebook.com/publications/5bab39ac-6d72-11e6-a631-8f25c1b38f1a
Python2 isn't handling unicode correctly.


Minimized apps (Windows file explorer) don't work properly after recovery

Microsoft PowerToys version
0.84.1
Installation method
GitHub
Running as admin
None
Area(s) with issue?
Workspaces
Steps to reproduce

Open the File Explorer, Microsoft Edge. Then minimized the File Explorer to taskbar.
Save this layout.
Restore this workspace.
Problem: Can't open the File explorer from the minimized state.

✔ Expected Behavior
Hope minimized apps can open normally after restoring.
❌ Actual Behavior
Can't open the File explorer from the minimized state.
Other Software
No response

/bugreport


positive(val::T) -> T?

Calling positive(one(Float32)) should return Positive{Float32}, but it doesn't because ε is always a Float64. Maybe we should restrict the method to making val and ε the same type by default and make ε=eps(T) by default?

This seems sensible to me.

This seems sensible to me.


testnet v0.0.5 of Oracle isn't working

https://www.loom.com/share/57f8de0c8caf4dc3bc4cad036db3635d?sid=5f5ee721-7266-4b78-8cd4-ed0ed8eb6b29
One thing I forgot to mention, the one that works is on v.0.0.3
masa_node.log

Requires port 4001 TCP inbound open for fully integrated workers


log-backup: allow observer hibernate when there isn't any task

Signed-off-by: hillium<EMAIL_ADDRESS>
What is changed and how it works?

Issue Number: Close #14012
What's Changed:
This PR added a "hibernate mode" for the log backup observer: while there isn't any task, it won't emit leader drop or region change events. So some verbose logs can be omitted.

Added a "hibernate mode" for the log backup observer: while there isn't any task, it won't emit leader drop or region change events. So some verbose logs can be omitted.

Related changes

PR to update pingcap/docs/pingcap/docs-cn:
Need to cherry-pick to the release branch

Check List
Tests

Unit test

Release note
None

/check-issue-triage-complete

/merge


Enhancement: use Data Binding

Hi,
I was wondering if there are any plans to use Android's new Data Binding framework inside of AnnotatedAdapter.  Or perhaps there is an easy way for devs to integrate it themselves now?

I haven't had time yet to have a deep look at data binding for adapters, but my understanding is that is makes creating ViewHolders useless (there is something called BindingHolder that seems to be a replacement for creating ViewHolders on your own). Therefore, I'm not sure if data binding is a complete replace AnnotatedAdapter. I will have a look at the data binding framework once it's out of beta later this summer. If it makes sense then I think I will integrate data binding in AnnotatedAdapter (i.e. as far as I see distinguishing between different ViewTypes must still be done by hand, maybe AnnotatedAdapter could reduce writing that code).

You are correct that it does all the work of ViewHolders for us.  You just call constructor         ViewHolder(ViewDataBinding binding), and it does the rest.  But I do think that we need support for different ViewTypes - as AnnotatedAdapter does.

Ah thanks, good to know. I will wait until a final 1.0.0 release of data binding and then I will see what is possible and whether it makes sense or not.

Thanks for making your framework better.  Have some @changetip $1 bitcoin.

@IgorGanapolsky Don't mind me, just testing the tip bot. $1 @changetip

Hi @igorganapolsky, I've delivered a Bitcoin tip worth 4,025 bits ($1.00) from @BashCo to your ChangeTip wallet.
Learn about ChangeTip

Hi @sockeqwe, @IgorGanapolsky sent you a Bitcoin tip worth 4,025 bits ($1.00), and I'm here to deliver it ➔ collect your tip.
Learn more about ChangeTip

Hey, I was wondering if you've considered the Data Binding option for Mosby 2.0?

Hi, this library AnnotatedAdapter is not Mosby related nor part of mosby. However, right now I have no plans to add DataBinding to AnnotatedAdapter since I have other projects with higher priority. I have started another library for Adapters  called AdapterDelegates which you may find useful. I think I will spend more time on the new library (AdapterDelegates) than on this one. There were some requests in combining AnnotatedAdapter withwith the new one (AdapterDelegates) but this will not happen: see https://github.com/sockeqwe/AdapterDelegates/issues/2  .
Regarding, data binding and Mosby: Yes I do have plans to add MVVM (Model-View-ViewModel) with data binding as addition to Mosby (addition to MVP, not replacement) but I can't say any concrete date when this will be implemented. It will definitely not be part of Mosby 2.0 (probably in Mosby 3.0). There is a issue on mosby's github repo for that https://github.com/sockeqwe/mosby/issues/71. Also I'm not 100% convinced that MVVM is the best choice as Android application architecture. Nevertheless, I see the benefit of data binding frameworks and I hope to come up with a solution.

Awesome, thanks.  So are AdapterDelegates gonna repace AnnotatedAdapter in
your Mosby samples eventually?
On Sep 1, 2015 6:02 PM, "Hannes Dorfmann"<EMAIL_ADDRESS>wrote:

Hi, this library AnnotatedAdapter is not Mosby related nor part of mosby.
However, right now I have no plans to add DataBinding to AnnotatedAdapter
since I have other projects with higher priority. I have started another
library for Adapters called AdapterDelegates which you may find useful. I
think I will spend more time on the new library (AdapterDelegates) than on
this one. There were some requests in combining AnnotatedAdapter withwith
the new one (AdapterDelegates) but this will not happen: see
sockeqwe/AdapterDelegates#2
https://github.com/sockeqwe/AdapterDelegates/issues/2 .
Regarding, data binding and Mosby: Yes I do have plans to add MVVM
(Model-View-ViewModel) with data binding as addition to Mosby (addition to
MVP, not replacement) but I can't say any concrete date when this will be
implemented. It will definitely not be part of Mosby 2.0 (probably in Mosby
3.0). There is a issue on mosby's github repo for that sockeqwe/mosby#71
https://github.com/sockeqwe/mosby/issues/71. Also I'm not 100%
convinced that MVVM is the best choice as Android application architecture.
Nevertheless, I see the benefit of data binding frameworks and I hope to
come up with a solution.
—
Reply to this email directly or view it on GitHub
https://github.com/sockeqwe/AnnotatedAdapter/issues/14#issuecomment-136877156
.

I don't think so. Eventually the sample adapters get replaced with default handwritten adapter implementations because the  users who just want to have a look at mosby samples shouldn't have to understand other third party libraries like AnnotatedAdapter as well...

Ahh, darn. Just when I started to understand AnnotatedAdapters and
implementing them in my own apps, I will have to go and rip them out :(
On Tue, Sep 1, 2015 at 11:16 PM, Hannes Dorfmann<EMAIL_ADDRESS>wrote:

I don't think so. Eventually the sample adapters get replaced with default
handwritten adapter implementations because the users who just want to have
a look at mosby samples shouldn't have to understand other third party
libraries like AnnotatedAdapter as well...
—
Reply to this email directly or view it on GitHub
https://github.com/sockeqwe/AnnotatedAdapter/issues/14#issuecomment-136922752
.

You don't have to, there is nothing wrong with using AnnotatedAdapter...

Ok, slight comment: in Mosby you are using AnnotatedAdapter v1.0.0, but the latest AnnotatedAdapter available is 1.0.1.  They differ specifically how com.hannesdorfmann.annotatedadapter.annotation.Field defines an id.  Is it prudent for me to update to the latest AnnotatedAdapter, or is it ok to stick with an outdated version?

The samples has been updated to latest AnnotatedAdapter version 1.1.1 on Mosby 2.0 branch ( https://github.com/sockeqwe/mosby/tree/2.0 ) .
There was some changes from 1.0.0 to 1.1.0 regarding @Field which has become  @ViewFiled. Starting in 1.1.0 @Field can be used to define Fields in ViewHolder, like a Field for a OnClickListener.
1.1.1 added some @SuppressLint annotations since Android build tools 23.0.0 are more aggressive now and need this @SuppressLint. So if you want to use build tools 23.0.0 then you have to use AnnotatedAdapter 1.1.1, sorry

Looks good thanks!
On Sep 2, 2015 12:52 PM, "Hannes Dorfmann"<EMAIL_ADDRESS>wrote:

The samples has been updated to latest AnnotatedAdapter version 1.1.1 on
Mosby 2.0 branch ( https://github.com/sockeqwe/mosby/tree/2.0 ) .
There was some changes from 1.0.0 to 1.1.0 regarding @Field which has
become @ViewFiled. Starting in 1.1.0 @Field can be used to define Fields
in ViewHolder, like a Field for a OnClickListener.
1.1.1 added some @SuppressLint annotations since Android build tools
23.0.0 are more aggressive now and need this @SuppressLint. So if you
want to use build tools 23.0.0 then you have to use AnnotatedAdapter 1.1.1,
sorry
—
Reply to this email directly or view it on GitHub
https://github.com/sockeqwe/AnnotatedAdapter/issues/14#issuecomment-137168351
.


Update only certain fields when importing?

I am trying to import an xlsx file with only one column from the Django model that want to update instances. The import module asks for fields in my xlsx that are mandatory in the Django model (like created field that has auto_now_add=True and therefore does not need to be updated during the import). is this package made specially to import instances completely with all the fields or one can use it as bulk update package for specific fields?
Thanks

is this package made specially to import instances completely with all the fields or one can use it as bulk update package for specific fields?

You can just update specific fields - see the docs on using the fields meta attribute to whitelist fields to import.

Thank you but it seems more complicated than that, as I keep getting errors like field “created_at” cannot be null. Although I do not want to import this field and it is not in my fields meta attribute list.
This field was auto_add_now at creation, now I don’t want to touch it anymore.
On 4 Oct 2021, at 13:12, Matt Hegarty<EMAIL_ADDRESS>wrote:
is this package made specially to import instances completely with all the fields or one can use it as bulk update package for specific fields?
You can just update specific fields - see the docshttps://django-import-export.readthedocs.io/en/latest/getting_started.html#customize-resource-options on using the fields meta attribute to whitelist fields to import.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/django-import-export/django-import-export/issues/1333#issuecomment-933380923, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKFMG6PD37N5ZVVVDCYNGBLUFGDZRANCNFSM5FH36UQA.


revert default autopilot to standard gke

/gcbrun

As part of this change, we should also revert the release channel to REGULAR

/gcbrun

As part of this change, we should also revert the release channel to REGULAR

FYI I pushed a commit to your branch to use REGULAR


use tile_size argument in coords_to_pos function instead of hardcoded 256.0

Currently tile_size of 256 is hardcoded inside coords_to_pos function. Except for the resize transform, this is the only place I found with a hardcoded tile size.
If someone is tiling into tiles of 224x224 (will need to remove resizing to 256 from the transform), they will pass tile_size=224 to __init__ of LongNetViT.

Inside the __init__ method, get_optimal_segment_length will use the tile_size (of 224 in this example) passed to __init__ as an argument to calculate segment_length.
But inside the forward method, coords_to_pos currently will use the hardcoded value of 256.

@usuyama, @HanwenXuTHU, what do you think about this change? I'll close the pull request if you don't want to add it.

Looks good to me. Thank you!


Image picker for Flutter not opening gallery in app release

I have made a simple image picker app. The app works fine and shows my gallery when I install it in my mobile in debug mode with android studio.
But when I create a release apk with the help of "flutter build apk" there are no errors but when I try to open my gallery from the app for picking images it asks for permission to access my storage once given allow noting happens it still remains in the same screen.
The app is not crashing but it is not showing the gallery.
Please help me solve this issue.
Thanks in advance.

Hi @pythonhubpy
can you please try with flutter run --release -v and send the logs when you are opening a gallery or camera?
and also provide the flutter doctor -v.
Thanks.

Hi @pythonhubpy
can you please try with flutter run --release -v and send the logs when you are opening a gallery or camera?
and also provide the flutter doctor -v.
Thanks.

No, it is working with flutter run --release but its  is not working when I try flutter build apk

@pythonhubpy please post the result of your flutter doctor -v. It will also help if you share which version of the Android you are testing.
Also, depending on the version of the Android, you will need to set up the correct permissions on your AndroidManifest.xml for this to work.
Thanks

`[√] Flutter (Channel stable, 1.20.3, on Microsoft Windows [Version 10.0.19041.508], locale en-IN)
• Flutter version 1.20.3 at C:\flutter
• Framework revision 216dee60c0 (12 days ago), 2020-09-01 12:24:47 -0700
• Engine revision d1bc06f032
• Dart version 2.9.2
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at C:\Users\vetri\AppData\Local\Android\sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Android Studio (version 4.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 49.0.2
• Dart plugin version 193.7547
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] VS Code, 64-bit edition (version 1.48.2)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 3.14.1
[!] Connected device
! No devices available
! Doctor found issues in 1 category.`
This is the result of 'flutter doctor -v`.
I am using android to. My device is Redmi Note 9 Pro Max.

I can't reproduce this on stable 1.20.3 with the latest image_picker: ^0.6.7+7 using the basic image picker example.

flutter doctor -v
[√] Flutter (Channel stable, 1.20.3, on Microsoft Windows [Version 10.0.19041.508], locale en-US)
    • Flutter version 1.20.3 at C:\Development\flutter_stable
    • Framework revision 216dee60c0 (13 days ago), 2020-09-01 12:24:47 -0700
    • Engine revision d1bc06f032
    • Dart version 2.9.2

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at C:\Users\marku\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.1
    • Java binary at: C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\193.6626763\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Android Studio (version 4.0)
    • Android Studio at C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\193.6626763
    • Flutter plugin version 47.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] Connected device (2 available)
    • SM G950F (mobile)           • ce12171c51cc001c03 • android-arm64 • Android 9 (API 28)
    • sdk gphone x86 arm (mobile) • emulator-5554      • android-x86   • Android 11 (API 30) (emulator)

• No issues found!

Minimal code sample
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:image_picker/image_picker.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Sample',
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  File _image;
  final picker = ImagePicker();

  Future getImage() async {
    final pickedFile = await picker.getImage(source: ImageSource.camera);

    setState(() {
      _image = File(pickedFile.path);
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Image Picker Example'),
      ),
      body: Center(
        child: _image == null ? Text('No image selected.') : Image.file(_image),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: getImage,
        tooltip: 'Pick Image',
        child: Icon(Icons.add_a_photo),
      ),
    );
  }
}

@pythonhubpy could you please provide a minimal complete reproducible code sample using the latest version of image_picker?

This minimal code is working fine.

❤

I am the same issue running on release mode but stuck on build apk


How can I add CORS to nuxt?

I'm trying to get data from firebase and I'm getting this error:
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.

Hi @luiztsmelo , I am dealing with this problem and just wanted to ask if you have found a solution for this problem. I would appreciate if you can help me, thanks

@luiztsmelo same here, how did you configure CORS? +1

@luiztsmelo I have realized that my code was working on client side. I have configured it to work on server-side with cors headers and my problem has solved. Maybe it helps


Set-Session-State operation code

In the Set-Session-State paragraph, it says that its operation ID is "com.microsoft:peek-message". In the C# library, this operation uses "com.microsoft:set-session-state" as the operation ID. I suspect this is a copy/paste error in the documentation.

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

ID: ffc07339-fe81-1324-73e9-d61a636d2571
Version Independent ID: a9f16765-148c-b1eb-fa2d-c3af381a21b8
Content: AMQP 1.0 in Azure Service Bus request-response-based operations
Content Source: articles/service-bus-messaging/service-bus-amqp-request-response.md
Service: service-bus-messaging
GitHub Login: @spelluru
Microsoft Alias: spelluru

Hi @marstr Thank you for reporting this issue! We will investigate and make any necessary changes.

I am fixing it!

@marstr @aakash2602 Thank you both for reporting and driving improvements together to MS Docs! It looks like the PR has been accepted and is due to be merged.
We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


Allow users to upload a profile image of any image type

Previously only files ending in string '.jpg' could be set as a profile image, this PR adds the ability to use files of any image type e.g. jpeg,gif, png. At the moment it uses the mime type to set the file extension. In future a challenge could be set to use a mime type and extension that don't agree but I thought it would be good to get this enhancement in first.

Cool, thank you!!! As 1st-time-contributor you are now officially entitled to receive an envelope with stickers and stuff from us! Just send me your address via email or PM on Gitter or Slack! 👍


Issue returning a get request with gRPC -> JSON bridge

Hi there,
I have two microservices, both exposing a gRPC server. I have an envoy front-proxy set-up, with the following config:
{
  "listeners": [
  {
    "address": "tcp://<IP_ADDRESS>:10000",
    "filters": [
    {
      "type": "both",
      "name": "http_connection_manager",
      "config": {
        "codec_type": "http1",
        "access_log": [
        {
          "path": "/dev/null",
          "filter" : {
            "type": "logical_or",
            "filters": [
              {
                "type": "status_code",
                "op": ">=",
                "value": 500
              },
              {
                "type": "duration",
                "op": ">=",
                "value": 1000000
              }
            ]
          }
        },
        {
          "path": "/dev/null"
        }],
        "stat_prefix": "router",
        "route_config": {
          "virtual_hosts": [
            {
              "name": "integration",
              "domains": [ "*" ],
              "routes": [
                {
                  "prefix": "",
                  "cluster": "service"
                },
                {
                  "prefix": "",
                  "cluster": "hello-service"
                }
              ]
            }
          ]
        },

        "filters": [
          {
            "type": "both",
            "name": "grpc_json_transcoder",
            "config": {
              "proto_descriptor": "/etc/hello-service.pb",
              "services": ["models.HelloService"]
            }
          },
          {
            "type": "both",
            "name": "grpc_json_transcoder",
            "config": {
              "proto_descriptor": "/etc/service.pb",
              "services": ["models.AuthService"]
            }
          },
          { "type": "decoder", "name": "router", "config": {} }
        ]
      }
    }]
  }],

  "admin": { "access_log_path": "/dev/null", "address": "tcp://<IP_ADDRESS>:9000" },
  "statsd_udp_ip_address": "<IP_ADDRESS>:8125",

  "cluster_manager": {
    "clusters": [
      {
        "name": "hello-service",
        "features": "http2",
        "connect_timeout_ms": 5000,
        "type": "strict_dns",
        "lb_type": "round_robin",
        "hosts": [
          {
            "url": "tcp://hello_1:50052"
          }
        ]
      },
      {
        "name": "service",
        "features": "http2",
        "connect_timeout_ms": 5000,
        "type": "strict_dns",
        "lb_type": "round_robin",
        "hosts": [
          {
            "url": "tcp://service_1:50051"
          }
        ]
      }
    ]
  }
}

The first service exposes two methods, one GET, one POST. Both of those work. Then I have an almost identical second service, exposing two methods, both GET.
The first service works as expected, however the second service returns a 200, but nothing for the body. I suspected it was my code as one service works, but the other doesn't. But I created a gRPC client, and that works as expected with the service that's not returning anything via Envoy. So I wondered if it was my config.
Here's my repo: https://github.com/EwanValentine/envoytest

The route config doesn't looks correct, it should be:
              "routes": [
                {
                  "prefix": "/models.AuthService/",
                  "cluster": "service"
                },
                {
                  "prefix": "/models.HelloService/",
                  "cluster": "hello-service"
                }
              ]

route calculation happens after transcoder, so the gRPC native path in route config is fine.
I don't remember what is the behavior if two route have same prefix. Is the first one always picked @mattklein123 ?
Also, you can consolidate two transcoder filter into one, by generating a single proto descriptor contains both from multiple proto source and specify both services in services. That shouldn't be the real reason this didn't work but it could also be.

Also, you can consolidate two transcoder filter into one, by generating a single proto descriptor contains both from multiple proto source and specify both services in services. That shouldn't be the real reason this didn't work but it could also be.

Possibly, just wondering how to do that from a practical standpoint. If you have say several microservices, each with their own protobuf definition. Do you have any suggestion on how I could merge those into one?

Possibly, just wondering how to do that from a practical standpoint. If you have say several microservices, each with their own protobuf definition. Do you have any suggestion on how I could merge those into one?

You can feed multiple proto source to one protoc call. You can also try cat the descriptor binaries into one file, since the FileDescriptorSet just has one repeated field, I didn't try this but it might just work.
Though I don't think having two filters is the real problem in your case, if it turns out to be the root cause, just file me a bug then I can fix it.

@lizan I added those route prefixes, however the second service still hung, no response at all this time?
So I tried to merge all the protobuf files together, but because I'm importing google.api.annotations, it ends up importing this twice, thus causes a multiple import error :(

I don't remember what is the behavior if two route have same prefix. Is the first one always picked @mattklein123 ?

Yes, matching is FIFO. @EwanValentine can you provide a log with "-l 1" (debug) level logging?

@EwanValentine

But I created a gRPC client, and that works as expected with the service that's not returning anything via Envoy.

Is this going through Envoy or directly to the service? With the previous route it shouldn't be through Envoy.
Providing log with debug would be very helpful, thanks.

I added "-l 1" to my Dockerfile, like:
CMD /usr/local/bin/envoy -l 1 -c /etc/envoy.json --service-cluster front-proxy
And I'm getting...

proxy_1    | [2017-10-18 23:44:20.651][6][warning][main] source/server/server.cc:164] initializing epoch 0 (hot restart version=8.2490552)
proxy_1    | [2017-10-18 23:44:20.667][6][warning][main] source/server/server.cc:332] starting main dispatch loop
proxy_1    | [2017-10-18 23:44:20.667][6][warning][main] source/server/server.cc:316] all clusters initialized. initializing init manager
proxy_1    | [2017-10-18 23:44:20.667][6][warning][config] source/server/listener_manager_impl.cc:448] all dependencies initialized. starting workers

Nothing outputted on request

What version of envoy are you running? Please make sure you are using current master if using docker images where trace/debug messages are compiled in by default. There should be tons of messages at -l 1.

FROM lyft/envoy:latest
RUN apt-get update && apt-get -q install -y curl dnsutils
RUN touch /var/log/envoy.log
CMD /usr/local/bin/envoy -l 1 -c /etc/envoy.json --service-cluster front-proxy

That's my Dockerfile.
Here's all my output when I run the service and make a couple of requests...
service_1  | 2017/10/19 07:43:44 Listening on port: :50051
hello      | 2017/10/19 07:43:45 &{}
hello      | 2017/10/19 07:43:45 running on port: :50052
proxy_1    | [2017-10-19 07:43:45.690][7][warning][main] source/server/server.cc:164] initializing epoch 0 (hot restart version=8.2490552)
proxy_1    | [2017-10-19 07:43:45.712][7][warning][main] source/server/server.cc:332] starting main dispatch loop
proxy_1    | [2017-10-19 07:43:45.712][7][warning][main] source/server/server.cc:316] all clusters initialized. initializing init manager
proxy_1    | [2017-10-19 07:43:45.712][7][warning][config] source/server/listener_manager_impl.cc:448] all dependencies initialized. starting workers
service_1  | 2017/10/19 07:44:01 1
proxy_1    | [2017-10-19T07:44:01.034Z] "POST /api/v1/users/1 HTTP/1.1" 200 - 0 34 2 0 "-" "PostmanRuntime/6.4.1" "cdf144d8-ec2b-4592-91a0-d08641091e12" "localhost:8080" "<IP_ADDRESS>:50051"

proxy_1    | [2017-10-19T07:44:05.257Z] "POST /api/v1/hello/ewan HTTP/1.1" 0 UH 0 0 32236 - "-" "PostmanRuntime/6.4.1" "f77fb3ab-23ed-468d-b3be-8c9e0839b643" "localhost:8080" "-"

As you can see they are both POST requests, but in Postman I'm making a GET request, and in my protobuf, I'm doing...
rpc Hello(HelloRequest) returns (HelloResponse) {
    option (google.api.http) = {
      get: "/api/v1/hello/{name}"
    };
  }

The first service works, the second just hangs indefinitely.

So I fixed it, I changed my hostnames from service_1 and hello_1 to service and hello and ensured both docker containers had container_name set respectively in docker-compose. So I suspect it was a Docker/dns 'thing'. The fact they all seem to be POST requests was a red herring.
Thanks for your time and help on this! Seems it was something my end after all 😅


Make project structure more clear in Creating a GWT component manual

Environment

Documentation version: 7.2
Part of the documentation: Manual
Existing page: gwt_component_sample.html

Description of the bug or enhancement
Support forum: topic
It is not completely clear in this manual where classes should be placed: web-toolkit or web modules. As a suggestion it would be helpful if we add an image with a completed project structure (packages, classes).

Please clarify which class should be in which module and package. As it is  easy to make a mistake and nothing works.

@IskandarovRost see support forum link in the description, there a working demo project


About camera agnostic

Hello. Thank you for your great work.
How can I set the camera-aware or camera-agnostic during training?
For example, I do not want to use the camera ID in your method.
Is camera-agnostic not using camera ID at all??

Hi. You can simply remove loss_cam in trainers.py so that it will not optimize camera-aware loss.
https://github.com/chenhao2345/ICE/blob/a206eb9a97ad431ab9d9cf38cdcf5ab6fdc6ad1c/ice/trainers.py#L161

Thank you!!


Display execution time

From https://github.com/formulahendry/vscode-mysql/issues/60#issuecomment-427681553

This would be a killer feature.


Shortucts in napari require click on canvas to switch ViewerModel in context.

🐛 Bug

Move mouse above additional canvas (QtWiewer) docked in plugin are does not switch context for a shortcut. Context is switched only when clicking on the canvas. Because vispy does not provide the proper way to inform about leaving canvas then shortcut may use wrong data (like mouse coordinate).
To Reproduce
Steps to reproduce the behavior:

switch to #4665
start the example from PR
load image and enable cross
move the mouse above the additional canvas, click the mouse and then click C
see that cross is properly moved
move mouse above another canvas and click C
see that warning that the mouse is not over the canvas is shown.

Expected behavior
Move mouse over the canvas in the active window should be enough to switch context.

Environment

Please copy and paste the information at napari info option in help menubar here:

Any other relevant information:

Additional context
This need to activate vispy canvas may be the source of @DragaDoncila problem that part of the shortcuts is not working when testing #4628.

@Czaki I think this was fixed by #4768?

No. There is a try to fix this in #4762, but it has too many side effects.


NameError: name 'TUNGraph' is not defined

can not run code.  show the issue : "NameError: name 'TUNGraph' is not defined "
python version 2.7
can not install TUNGraph by 'pip install TUNGraph'

Hi,
TUNGraph comes from the Snap.py package, which you can download here: https://snap.stanford.edu/snappy/. Thanks!

I still have this issue after  pip install snap-stanford


Stripe webhooks

Hi there,
Is there any plan to implement stripe webhooks that would interact with Bagisto?
Also, different admin implementations like refunds.

Hi @ag84ark,
Thank you for your suggestion. We are considering adding a new feature to enable interaction between Stripe webhooks and Bagisto, along with enhancing admin functionalities. This would improve the overall performance and usability of the platform, making transaction management even easier.
Currently, we are in the research and planning phase to kickstart the development of these features. By delving into the requirements of Stripe webhook integration and admin operations, we aim to provide the best solutions possible. We'll keep you updated on any progress or updates we make during this process.
We appreciate your suggestions and feedback, as they contribute to the ongoing improvement of Bagisto. Feel free to reach out with any further ideas or thoughts.
Best regards,
Ahmet Sefa Arşiv

Also, I think this should be compatible with Bagisto version 2.

Hi @ag84ark,
v1.4.0 is compatible with Bagisto v2.1.0 for receiving payments. Please update your package providers by running composer update codenteq/stripe-payment-gateway.
Best regards.


chore: coverage:ignore-file

// coverage:ignore-file
usage: ignore generated file from being coverage by flutter

This can be integrated easily once #57 lands

Superseded in #63


Unable to display an image

As the title suggests
Everything is okay include display an equation, solve a differential equation.
THE IMAGE JUST DONT SHOWN UP, even if there's no an error report
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots

Environment (please complete the following information):
Here is my configuration settings

Which Wolfram Engine version, OS, VS Code version, and extension version are you using?

Both my Mathematica and Wolfram Engine version is 12.3, the extension version is v0.06
P.S: Sometimes when the wolfram engine would notice me to Launch a mathlink program

and when  I run the codes again, there would be a 'rending failed' error:

Which Wolfram Engine version, OS, VS Code version, and extension version are you using?

I was not able reproduce this problem with Engine 12.3. I suspect that the subkernel was not launched successfully.
You can try opening the output window (Ctrl+Shift+U) and select the Wolfram Language Notebook tab while connecting to the kernel, and see what the output is.

Same question here, I can generate 2D plots, but fail with 3D ones (generate a blank figure)
ContourPlot3D[
 x^3 + y^2 - z^2 == 0, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}]

Plot[Sin[x],{x,-1,1}]

when changes to plain text, the output looks fine:

so I doubt this is something wrong with the notebook render  for 3D plots.
The info from output tab:
[Sat, 22 Jan 2022 01:17:57 GMT] kernelIsRemote = false, kernelPort = 58232
[Sat, 22 Jan 2022 01:17:57 GMT] kernelInitPath = /home/yang/.vscode-server/extensions/njpipeorgan.wolfram-language-notebook-0.0.8/resources/init-compressed.txt
[Sat, 22 Jan 2022 01:17:57 GMT] kernelRenderInitPath = /home/yang/.vscode-server/extensions/njpipeorgan.wolfram-language-notebook-0.0.8/resources/render-html.wl
[Sat, 22 Jan 2022 01:17:57 GMT] launchCommand = wolframscript
[Sat, 22 Jan 2022 01:17:57 GMT] launchArguments = -code,ToExpression["zmqPort=58232;"<>Uncompress["1:eJy9PA1X47ay96d4BYcTuApLdl/73gGSF5aPu9wCy5Jse0+9LphES1wcO7WdBRrSH/t+yZvRhy3Jdgh0W1qWxJJGo5nRfGnkV9fxRe//fvrHPxobzvb2uT+49W/Y9razsf55q/UGf3lDjw2yII7yh
[Sat, 22 Jan 2022 01:17:59 GMT] Received the following data from kernel:
[Sat, 22 Jan 2022 01:17:59 GMT] <INITIALIZATION STARTS>
[Sat, 22 Jan 2022 01:18:00 GMT] Received the following data from kernel:
[Sat, 22 Jan 2022 01:18:00 GMT] $CommandLine={/usr/local/Wolfram/WolframEngine/13.0/SystemFiles/Kernel/Binaries/Linux-x86-64/WolframKernel, -runfirst, Unprotect[$EvaluationEnvironment];$EvaluationEnvironment="Script";Protect[$EvaluationEnvironme
[Sat, 22 Jan 2022 01:18:00 GMT] Received the following data from kernel:
[Sat, 22 Jan 2022 01:18:00 GMT] $ScriptCommandLine={wolframscript, -code, ToExpression["zmqPort=58232;"<>Uncompress["1:eJy9PA1X47ay96d4BYcTuApLdl/73gGSF5aPu9wCy5Jse0+9LphES1wcO7WdBRrSH/t+yZvRhy3Jdgh0W1qWxJJGo5nRfGnkV9fxRe//fvrHPxobzvb2uT+49W/Y9razsf55
[Sat, 22 Jan 2022 01:18:00 GMT] Received the following data from kernel:
[Sat, 22 Jan 2022 01:18:00 GMT] Using the following command to launch the subkernel process:
[Sat, 22 Jan 2022 01:18:00 GMT] Received the following data from kernel:
[Sat, 22 Jan 2022 01:18:00 GMT] /usr/local/Wolfram/WolframEngine/13.0/SystemFiles/Kernel/Binaries/Linux-x86-64/WolframKernel -noicon -wstp -linkprotocol SharedMemory -linkmode connect -linkname 5128a689-2f8b-4450-8a4d-af543853cb37
[Sat, 22 Jan 2022 01:18:02 GMT] Received the following data from kernel:
[Sat, 22 Jan 2022 01:18:02 GMT] Subkernel launched; $preemptive=LinkObject[9f3044fa-1bec-4d5d-91a5-8e290dd53b81, 193, 3], $processID=252
[Sat, 22 Jan 2022 01:18:02 GMT] Received the following data from kernel:
[Sat, 22 Jan 2022 01:18:02 GMT] [address tcp://<IP_ADDRESS>:58232]

[Sat, 22 Jan 2022 01:18:02 GMT] Received the following data from kernel:
[Sat, 22 Jan 2022 01:18:02 GMT] <INITIALIZATION ENDS>
[Sat, 22 Jan 2022 01:18:02 GMT] Received the following test message from kernel:
[Sat, 22 Jan 2022 01:18:02 GMT] {"type":"test","text":"100405031","version":"13.0.0 for Linux x86 (64-bit) (December 10, 2021)"}

@njpipeorgan

Thanks for the feedback. I cannot reproduce this issue on Windows/Linux with Mathematica/Engine 13.0. As it was a blank image and Plot did work, I suspect that it may be a kernel-related problem. How about converting the graphics to an image manually, like Rasterize[ContourPlot3D[x^3 + y^2 - z^2 == 0, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}]] ?
Maybe you can try disabling all other extensions or reinstalling the kernel.

Rasterize didn't help...
I am using wolframscirpt:
yang@SP8:/mnt/c/Users/liuya$ wolframscript
Wolfram Language 13.0.0 Engine for Linux x86 (64-bit)
Copyright 1988-2021 Wolfram Research, Inc.

In[1]:= $Version
Out[1]= 13.0.0 for Linux x86 (64-bit) (December 10, 2021)

In[2]:=

disabling all other exts doesn't help either

Rasterize didn't help...
I am using wolframscirpt:
yang@SP8:/mnt/c/Users/liuya$ wolframscript
Wolfram Language 13.0.0 Engine for Linux x86 (64-bit)
Copyright 1988-2021 Wolfram Research, Inc.

In[1]:= $Version
Out[1]= 13.0.0 for Linux x86 (64-bit) (December 10, 2021)

In[2]:=

Are you using the kernel over WSL?

Yes, WSL2 (ubuntu)

As far as I know, the kernel relies on X windows system to render some graphics, which can go wrong in WSL.

This is a little bit frastrating..
There is a similar work on using Jupyter notebook as an frontend for mma in browser, (WolframLanguageForJupyter)[https://github.com/WolframResearch/WolframLanguageForJupyter]. But this didn't work for vscode.
Anyway, I think your extension is the by far the best solution to use mma notebook in vscode. bravo!
What is your platform?

VSCode has native support for Jupyter, so I assume WolframLanguageForJupyter as a Jupyter kernel can work in VSCode. But I'm not sure whether that will solve this problem.
Thanks.
I've been testing the extension on Windows, Ubuntu, and MacOS.

WolframLanguageForJupyter didnt work in vscode, I have tried it when find that repo... and there is an issue about that issue.
Only 3D plots don't work, that's very strange...

Thanks for the info. You can also testing rasterizing 3D graphics in the kernel in WSL terminal directly, e.g.
img=ImageData[Rasterize[ContourPlot3D[x^3 + y^2 - z^2 == 0, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}]]];
Dimensions[img]
Mean[Mean[img]]

and see if it is normal.

that looks fine
yang@SP8:/mnt/c/Users/liuya$ wolframscript
Wolfram Language 13.0.0 Engine for Linux x86 (64-bit)
Copyright 1988-2021 Wolfram Research, Inc.

In[1]:= img=ImageData[Rasterize[ContourPlot3D[x^3 + y^2 - z^2 == 0, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}]]];

In[2]:= Dimensions[img]

Out[2]= {549, 481, 3}

In[3]:= Mean[Mean[img]]

Out[3]= {1., 1., 1.}

In[4]:=

It actually did not look fine. Note that the average of the image was {1.,1.,1.}, which means it was a blank image.

yea... that's weird, let my check it in a jupyter noteboook in browser

I think that bug only occur on WoframEngine 13.0, because I remember that I could generate 3d plots when I was using 12.3, (or they removed this feature in 13.)
🤣

Finally I'm sure this is a bug only on WSL, I tried it on windows and it works fine.

Thanks for the information.


Where can I find the source code of elastic search?

Multiple versions of Elastic Search has already been release, but - we can't find the source code of it.
Are you also planning to make the source available for public, so that - they can also contribute to it?

Hi @asheshv,
Yes, we are planning to make the source code available. You can find information about the status of that and the fork in this Forum: https://discuss.opendistrocommunity.dev/c/forking-elasticsearch-kibana/50.
Have a look there!
Jon


Arduino 2.3.2 error installing board

After following your instructions, I did not see the Unofficial option under Tools->Board...
I went to board manager, searched for Heltec, and saw Heltec (unofficial) by Rop.  When I clicked Install for version 1.1.5, I get this popup:
Failed to install platform: 'Heltec (unofficial):1.1.5'. 9 FAILED_PRECONDITION: Platform 'Heltec<EMAIL_ADDRESS>not found: getting tool dependencies for platform Heltec<EMAIL_ADDRESS>tool version v0.12.0-esp32-20230419 not found

Windows 11 Pro

Can you tell me if you have an esp32 boards installed and which versions?
I'm looking at this thread:  https://forum.arduino.cc/t/tool-release-not-found-arduino-bossac-1-3a-arduino/1076336/3
which gives an explanation for a similar problem.  In this case, the package index
https://github.com/ropg/heltec_boards/blob/main/package_heltec_unofficial_index.json
is expecting the packager esp32 to have version v0.12.0-esp32-20230419
But the latest version here is 2024...
https://github.com/espressif/openocd-esp32/releases
Not sure if I am getting closer to the solving this or confused.   I tried installing Arduino and Espressif esp32 boards but that didn't work.

I'm testing a new method of adding the board definitions. Pease check out #14 if you want to help test it.