Enable new rubocops

[x] I have reviewed the contributing guide

[x] I have viewed, signed, and submitted the Contributor License Agreement

[x] I have made this pull request to the main branch

[x] I have run all the unit tests using bundle exec rake

[ ] I have run CF Acceptance Tests

Woo! I definitely was failing at this. My mistake was apparently never adding the to be(true) off the ends of the match?

Sometimes rubocop is very persistent in forcing you into the wrong direction...
Initially the test was written as follows - which is very readable from my point of view:
expect(decorator.match?(%w[potato app turnip])).to be_truthy

Then rubocop wanted it this way (already less readable):
expect(decorator).to be_match(%w[potato app turnip])

And now the suggestion was:
expect(decorator).to match(%w[potato app turnip])

As this changed the semantics and thus failed the test, I reverted back to the original version, but with be(true) instead of be_truthy. This silenced rubocop!


Set share button in blog post!

Is it possible to set share icon in blog post of any website such facebook, twitter, linkedin etc ?

Hi, if you would like to display share icons on each blog post's page, you can do this by editing _layouts/post.html.
Include the HTML code for the icons in an appropriate location. Use page variables (e.g. title, URL, date, etc.) as necessary.
Refer to each service's documentation for information on how to use their share buttons. Otherwise there are third-party services that allow you to add several share buttons in one go. Alternatively, you could create your own buttons and have them direct the user to the appropriate website.

Both Facebook and Linkedin use Open Graph to determine the image to include. By setting the <meta> tags specified in the Open Graph spec within the <head> section of your page's HTML, you can specify the image to be used.
Twitter has its own set of <meta> tags that can be used for this purpose, although it does fall back on Open Graph tags if available.


Theme not loading after install or reset

Hi,
After migrating from zgen I had an issue with the latest version where the theme is not loaded when creating a zgenom save.
After some digging I found that the issue starts with https://github.com/jandamm/zgenom/pull/63
With https://github.com/jandamm/zgenom/commit/8ed1e264416b1615748e57498b8b7a4c96558f85 it is working correctly:

But not with https://github.com/jandamm/zgenom/commit/dd433881a58cd3ca36c98366be190d1d70f80bf9:

.zshrc used for testing
# zgen installation
# git clone https://github.com/jandamm/zgenom.git "${HOME}/.zgenom"

ZGEN_DIR="$HOME/.zgen"

# load zgenom
source "${HOME}/.zgenom/zgen.zsh"

# Check for plugin and zgenom updates every 7 days
# This does not increase the startup time.
# zgenom autoupdate

# enable error redirect from react-native app
export REACT_EDITOR="code"

# check if there's no init script
if ! zgen saved; then
    echo "Creating a zgen save"

    zgen oh-my-zsh

    # plugins
    zgen oh-my-zsh plugins/ssh-agent
    zgen oh-my-zsh plugins/docker
    zgen oh-my-zsh plugins/docker-compose
    zgen oh-my-zsh plugins/sudo
    zgen oh-my-zsh plugins/common-aliases
    zgen oh-my-zsh plugins/command-not-found
    zgen oh-my-zsh plugins/git
    zgen oh-my-zsh plugins/gitfast
    zgen oh-my-zsh plugins/node
    zgen oh-my-zsh plugins/npm
    zgen oh-my-zsh plugins/yarn
    zgen oh-my-zsh plugins/emacs
    zgen oh-my-zsh plugins/kubectl
    zgen oh-my-zsh plugins/vscode
    zgen oh-my-zsh plugins/gcloud
    zgen load zsh-users/zsh-syntax-highlighting
    zgen load zsh-users/zsh-autosuggestions

    # completions
    zgen load zsh-users/zsh-completions src
    zgen load lukechilds/zsh-better-npm-completion

    # theme
    zgen oh-my-zsh themes/clean

    # save all to init script
    zgen save

    # Compile your zsh files
    #zgen compile "$HOME/.zshrc"
fi

export N_PREFIX="$HOME/n"; [[ :$PATH: == *":$N_PREFIX/bin:"* ]] || PATH+=":$N_PREFIX/bin"  # Added by n-install (see http://git.io/n-install-repo).

current .zshrc
# zgenom installation
# git clone https://github.com/jandamm/zgenom.git "${HOME}/.zgenom"

# load zgenom
source "${HOME}/.zgenom/zgenom.zsh"

# Check for plugin and zgenom updates every 7 days
# This does not increase the startup time.
zgenom autoupdate

# enable error redirect from react-native app
export REACT_EDITOR="code"

# check if there's no init script
if ! zgenom saved; then
    echo "Creating a zgenom save"

    zgenom ohmyzsh

    # plugins
    zgenom ohmyzsh plugins/ssh-agent
    zgenom ohmyzsh plugins/docker
    zgenom ohmyzsh plugins/docker-compose
    zgenom ohmyzsh plugins/sudo
    zgenom ohmyzsh plugins/common-aliases
    zgenom ohmyzsh plugins/command-not-found
    zgenom ohmyzsh plugins/git
    zgenom ohmyzsh plugins/gitfast
    zgenom ohmyzsh plugins/node
    zgenom ohmyzsh plugins/npm
    zgenom ohmyzsh plugins/yarn
    zgenom ohmyzsh plugins/emacs
    zgenom ohmyzsh plugins/kubectl
    zgenom ohmyzsh plugins/vscode
    zgenom ohmyzsh plugins/gcloud
    zgenom load zsh-users/zsh-syntax-highlighting
    zgenom load zsh-users/zsh-autosuggestions

    # completions
    zgenom load zsh-users/zsh-completions src
    zgenom load lukechilds/zsh-better-npm-completion

    # theme
    zgenom ohmyzsh themes/clean

    # save all to init script
    zgenom save

    # Compile your zsh files
    zgenom compile "$HOME/.zshrc"
fi

export N_PREFIX="$HOME/n"; [[ :$PATH: == *":$N_PREFIX/bin:"* ]] || PATH+=":$N_PREFIX/bin"  # Added by n-install (see http://git.io/n-install-repo).

Hi @Justkant,
thanks for reporting and bisecting the issue 👍
This seems to be an issue with Prompt Expansion.
Unfortunately I don't know yet what caused the prompt expansion to change in #63.
I probably won't be able to have a look before/while Christmas.

I probably won't be able to have a look before/while Christmas.

No problem, it can wait.

I just had a quick look and I can reproduce it.
The prompt looks wrong in the shell when reset has been executed before. In the following shells it looks fine for me.
It's definitely the setopt promptsubst which should have been set by zgenom ohmyzsh but now isn't set anymore.
My guess is that localoptions is set before sourcing the files. Which might result in the options not being set for the shell.
In the meantime you should be able to fix this by adding setopt promptsubst before the zgenom saved part.

Wow, this is really an edge case.
For the first call* of zgenom localoptions is set but for none of the following.
So since your first call is zgenom ohmyzsh none of the options set by oh-my-zsh.sh are applied to the current shell (including prompsubst).
If you'd have any call to zgenom before the ohmyzsh one this issue wouldn't have occurred.
* saved/autoupdate don't count since they're not lazy loaded.

Hey @Justkant should be fixed now 👍


Fibonacci sequence

Great work!
I just wanted to point out that the output from the Fibonacci example shows 0,1,2,4,8,16... (2^N) instead of 1,1,2,3,5,8... as one would expect.

😱😱😱
I got that example from Go somewhere and didn't realize it wasn't actually fibonacci! Thanks a lot mate! Fixing it right now! I feel ashamed to miss this, haha.
😱😱😱

Actually the error was all mine. Go allows this:
x, y = y, x+y

and in swift we have to do this:
z = x
x = y
y = z + y

Can't this also be achieved in Swift with tuples?
(x, y) = (y, x + y)

@nvzqz Indeed it can! Updated the example! Thanks mate!


Add HPA and PDB for Istiocoredns manifests

Enable user to setup HorizontalPodAutoscaler and PodDistruptionBudget for istiocoredns component when using multicluster that need istiocoredns to resolv .global FQDN.
[X] Configuration Infrastructure
[ ] Docs
[X] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
related issue: https://github.com/istio/istio/issues/24769

Hi @zufardhiyaulhaq. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.

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

@googlebot I signed it!

@zufardhiyaulhaq: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

lint_istio
911b5851b3ce0f3b3416964f405b0b783fde2155
link
/test lint_istio

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

@morvencao can you review & merge?

Please also add condition check for https://github.com/istio/istio/blob/master/manifests/charts/istiocoredns/templates/deployment.yaml#L10

It is something similar like https://github.com/istio/istio/blob/master/manifests/charts/istio-control/istio-discovery/templates/deployment.yaml#L15 right?

@morvencao please review

@zufardhiyaulhaq: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-multicluster-k8s-tests_istio
a66912c1cd046ee12ee510ca12bf80384724c288
link
/test integ-multicluster-k8s-tests_istio

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

/retest

@morvencao please merge, thank you


Pagination with Tree browser

Hi,
I am new to adapt-strap. Is there any way to implement pagination with tree browser. Thanks in advance

Adapt-strap does not support pagination officially for the tree browser. However, you can implement your own pagination by just splitting your tree into multiple trees (however many you want per page). I'd put them into a map where the key is its page number and then just switch which tree is loaded into the grid based on the page they're on.
It's a hefty work around, but it should accomplish what you want to do.


vite dev can't set base url like vite build

Describe the bug
I follow the Backend Integration section so that I can use koa to serve my app.
But I can't load assets files like image. Just like this..

Reproduction
Sorry I can't upload the project to the github. I just follow the document, and I want the prefix address of the static resource to be converted from the root directory to the base that I set.
import { defineConfig } from 'vite'
import reactRefresh from '@vitejs/plugin-react-refresh'
import staticConfig from '../../config/staticConfig'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [reactRefresh()],
  base: staticConfig.development, // because server and client don't have same port, so I have to specified base url.
  server: {
    host: '<IP_ADDRESS>',
    port: staticConfig.port,
    strictPort: true,
  },
  rollupOptions: {
    input: '/src/main.tsx',
  },
  build: {
    manifest: true,
  },
})

System Info
Output of npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers:
  System:
    OS: macOS 11.2.2
    CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
    Memory: 95.30 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 12.5.0 - ~/.nvm/versions/node/v12.5.0/bin/node
    Yarn: 1.22.10 - ~/.nvm/versions/node/v12.5.0/bin/yarn
    npm: 7.7.5 - ~/.nvm/versions/node/v12.5.0/bin/npm
  Browsers:
    Chrome: 89.0.4389.90
    Edge: 89.0.774.63
    Firefox Developer Edition: 87.0
    Safari: 14.0.3

Used package manager: yarn
Logs

vite:config bundled config file loaded in 241ms +0ms
  vite:config using resolved config: {
  vite:config   plugins: [
  vite:config     'vite:pre-alias',
  vite:config     'alias',
  vite:config     'react-refresh',
  vite:config     'vite:dynamic-import-polyfill',
  vite:config     'vite:resolve',
  vite:config     'vite:html',
  vite:config     'vite:css',
  vite:config     'vite:esbuild',
  vite:config     'vite:json',
  vite:config     'vite:wasm',
  vite:config     'vite:worker',
  vite:config     'vite:asset',
  vite:config     'vite:define',
  vite:config     'vite:css-post',
  vite:config     'vite:client-inject',
  vite:config     'vite:import-analysis'
  vite:config   ],
  vite:config   base: '/',
  vite:config   server: { host: '<IP_ADDRESS>', port: 4080, strictPort: true },
  vite:config   rollupOptions: { input: '/src/main.tsx' },
  vite:config   build: {
  vite:config     target: [ 'es2019', 'edge18', 'firefox60', 'chrome61', 'safari11' ],
  vite:config     polyfillDynamicImport: true,
  vite:config     outDir: 'dist',
  vite:config     assetsDir: 'assets',
  vite:config     assetsInlineLimit: 4096,
  vite:config     cssCodeSplit: true,
  vite:config     sourcemap: false,
  vite:config     rollupOptions: {},
  vite:config     commonjsOptions: { include: [Array], extensions: [Array] },
  vite:config     minify: 'terser',
  vite:config     terserOptions: {},
  vite:config     cleanCssOptions: {},
  vite:config     write: true,
  vite:config     emptyOutDir: null,
  vite:config     manifest: true,
  vite:config     lib: false,
  vite:config     ssr: false,
  vite:config     ssrManifest: false,
  vite:config     brotliSize: true,
  vite:config     chunkSizeWarningLimit: 500
  vite:config   },
  vite:config   configFile: '/Users/jacob/Desktop/MyProject/kol/src/client/vite.config.js',
  vite:config   inlineConfig: {
  vite:config     root: undefined,
  vite:config     base: undefined,
  vite:config     mode: undefined,
  vite:config     configFile: 'vite.config.js',
  vite:config     logLevel: undefined,
  vite:config     clearScreen: undefined,
  vite:config     server: {}
  vite:config   },
  vite:config   root: '/Users/jacob/Desktop/MyProject/kol/src/client',
  vite:config   resolve: { dedupe: undefined, alias: [ [Object] ] },
  vite:config   publicDir: '/Users/jacob/Desktop/MyProject/kol/src/client/public',
  vite:config   command: 'serve',
  vite:config   mode: 'development',
  vite:config   isProduction: false,
  vite:config   optimizeCacheDir: '/Users/jacob/Desktop/MyProject/kol/src/client/node_modules/.vite',
  vite:config   env: { BASE_URL: '/', MODE: 'development', DEV: true, PROD: false },
  vite:config   assetsInclude: [Function: assetsInclude],
  vite:config   logger: {
  vite:config     hasWarned: false,
  vite:config     info: [Function: info],
  vite:config     warn: [Function: warn],
  vite:config     error: [Function: error],
  vite:config     clearScreen: [Function: clearScreen]
  vite:config   },
  vite:config   createResolver: [Function: createResolver]
  vite:config } +5ms
  vite:deps Crawling dependencies using entries:
  vite:deps   /Users/jacob/Desktop/MyProject/kol/src/client/1111.html +0ms
  vite:resolve 0ms   ./src/main.tsx -> /Users/jacob/Desktop/MyProject/kol/src/client/src/main.tsx +0ms
  vite:resolve 4ms   react -> /Users/jacob/Desktop/MyProject/kol/node_modules/react/index.js +9ms
  vite:resolve 2ms   react-dom -> /Users/jacob/Desktop/MyProject/kol/node_modules/react-dom/index.js +2ms
  vite:resolve 1ms   ./App -> /Users/jacob/Desktop/MyProject/kol/src/client/src/App.tsx +1ms
  vite:deps Scan completed in 52ms: {
  react: '/Users/jacob/Desktop/MyProject/kol/node_modules/react/index.js',
  'react-dom': '/Users/jacob/Desktop/MyProject/kol/node_modules/react-dom/index.js'
} +38ms
Pre-bundling dependencies:
  react
  react-dom
(this will be run only when your dependencies or config have changed)
  vite:resolve 0ms   object-assign -> null +0ms
  vite:resolve 2ms   object-assign -> /Users/jacob/Desktop/MyProject/kol/node_modules/object-assign/index.js +0ms
  vite:resolve 0ms   scheduler -> null +34ms
  vite:resolve 4ms   scheduler -> /Users/jacob/Desktop/MyProject/kol/node_modules/scheduler/index.js +35ms
  vite:resolve 0ms   scheduler/tracing -> null +4ms
  vite:resolve 1ms   scheduler/tracing -> /Users/jacob/Desktop/MyProject/kol/node_modules/scheduler/tracing.js +1ms
  vite:deps deps bundled in 101ms +0ms

Before submitting the issue, please make sure you do the following

[x] Read the Contributing Guidelines.
[x] Read the docs.
[x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[x] Provide a description in this issue that describes the bug.
[x] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
[x] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.

I have the same issue with backend integration.
We work with many frontends to one backend and we can't server the assets by the same backend.
This PR https://github.com/vitejs/vite/pull/1556 implements the use of the base config for development, but have different behavior between dev and build commands.
I get a workaround adding a baseAssetUrl config https://github.com/vitejs/vite/compare/main...edersoares:assets-server. I think that is not the best solution, but works for while to me.
With this, I just need that the backend return the HTML with:

And my vite.config.ts like this:
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  baseAssetUrl: 'http://localhost:3000/',
  server: {
    hmr: {
      path: '/',
      host: 'localhost',
      port: 3000,
      protocol: 'ws'
    }
  }
})

Now, when access the backend URL, I just get the root HTML from backend and scripts, styles and assets from Vite Server.
I believe that the base config should have the same behavior to the build and dev commands.

@edersoares I'm looking at your workaround and I don't quite understand how would it make any difference. Could you explain?

@wvffle sure!
In development, we have a backend host running on https://backend.test/api and some different frontends running on https://backend.test/app and https://backend.test/admin that have two different Vue projects. They use the same backend.
Our backend serve only the root HTML for / and /admin routes in development mode and request @vite/client and src/main.ts from http://localhost:3000 and http://localhost:4000 for example.
The problem is that the assets in Vue projects are requested with root path /img/logo.png, so how we have two different logo.png, if the backend serve the assets, the image will be the same.
For this, we need that the assets URL should returned with frontend URL, so, when we access https://backend.test/app, the logo.png requested will be http://localhost:3000/img/logo.png and when we access  https://backend.test/admin will be http://localhost:4000. This works like a CDN, where the assets files will be handled by a assets server and not by backend.
The command vite build compiles the assets with complete URL base, but vite dev doesn't.
@wvffle did you undersand?

Yeah, I get that, thanks @edersoares!
However, I need vite dev to compile with http://localhost:3000/ base URL and vite build without. I could do that by checking the command or mode  if only the dev server would respect the base option.

@wvffle could you share your solution?

I'm using django as a backend. Here is my solution: https://github.com/wvffle/django-e2ee-chat/blob/1c9d434caa174f8a761504affe49517ce33f3036/chat/urls.py#L17-L28
I simply pass all of the requests to __vite_ping, @windicss-devtools-update and chat/public/* to the frontend when the backend is in dev mode as well.


Grouped and un-grouped

when you have the plug-in set to separate xp drops the xp drops overlap each other and cant make out what the drop is. when you group the xp drops its fine

Increase the XP drop delay setting. This controls the delay in frames between each XP drop so they don't overlay. Alternatively, increase the speed at which the XP drop moves so it clears out of the way fast enough for the next one.


perf: improve some instances in MonoidAlgebra

!bench

This should probably depend on #7430

!bench

!bench

Note: I have pushed an update to the lean toolchain because this PR was on a buggy version of the toolchain. WARNING: checking out old commits of this PR using v4.2.0-rc2 or v4.2.0-rc3 can cause lake clean to delete your mathlib folder! If you need to do so, make sure to delete lakefile.olean manually before running any lake commands.


Can spatial domain guided 3D slice alignment be used for 10X data

Can spatial domain guided 3D slice alignment be used for 10X data?

Yes, In principle, it can be applied to any platform as long as there are common landmark spatial domains between slices, which has clear tissue structure to guide the alignment.


How to run armnn quantized model?

I have built and installed armnn, and it's TFlite and TF parser. I have also built Armnn quantizer and I successfully quantized a simple TFlite model with it. The output of the quantizer is a armnn file. Now I wonder how can I run my model? I am not able to find any function that could parse the armnn model (for instance, for tflite model, I used armnnTfLiteParser class to create a parser and load the model). Is there any sample code for this?

@hossein1387 hope you're all sorted, feel free to reopen the ticket if you still need help.

Hi, thank you for a help.
I've changed to IDeserializer and got trouble with BindingPointInfo method cause it now need 'layerId' as parameter. Where I should find layer id?
method's signature is
    /// Retrieve binding info (layer id and tensor info) for the network input identified by
    /// the given layer name and layers id
    virtual BindingPointInfo GetNetworkInputBindingInfo(unsigned int layerId,
                                                        const std::string& name) const = 0;


Production?

Can this be used in production?

We’re yet to release the 1.0 version. We started from 0.1 to have the flexibility to make some breaking changes if needed before we reach 1.0, but I hope this won’t be necessary.
After that we will try to stick to semver.

There are no planned API changes, but anyway we wanted to make sure we haven't missed any crucial usecases. We also want to add Async validators before going 1.0, but it is expected to be mostly additive change. There should be no breaking changes in the process.

Thanks


Building on opensuse/ubuntu fail when building ide

When building the whole package/ide, compilation gets stuck on linking with it being unable to find a symbol.
[ 13%] Linking CXX executable abc
/usr/bin/ld: CMakeFiles/abc.dir/src/ide_main.cpp.o: undefined reference to symbol 'XConvertSelection'
/usr/bin/ld: /lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line

I noticed the github workflows show you building with emscripten, but is this also able to be compiled for desktops too?

Thanks for the report. Should be fixed  in master now.


Tip not dismissed automatically inside prototype table view cell

I have the situation that an textfield is presented via dynamic prototype cell of an table view.
In this case calling the EasyTipView.dismiss() function does nothing. I have to tap the tip explicitely to dismiss it.
In opposite, any textfields inside statical table view cells can be dismissed via dismiss() without a problem.

a year later and still not working


Upload.UploadImage exception

Hi Linvi,
Sometimes we are getting an exception when Upload.UploadImage or Upload.UploadVideo is called.
Below you can find details about the exception.
Cheers,
Levente

System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: Error while copying content to a stream. ---> System.IO.IOException: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
at System.Net.Sockets.NetworkStream.BeginWrite(Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state)
--- End of inner exception stack trace ---
at System.Net.ConnectStream.EndWrite(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization)
--- End of inner exception stack trace ---
at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
at Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult()    at Tweetinvi.WebLogic.HttpClientWebHelper.<GetHttpResponse>d__0.MoveNext()    --- End of inner exception stack trace ---    at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification)
at Tweetinvi.WebLogic.WebRequestExecutor.<>c__DisplayClass5_0.b__0()
at Tweetinvi.WebLogic.WebRequestExecutor.ExecuteTwitterQuerySafely[T](ITwitterQuery twitterQuery, Func1 action)    at Tweetinvi.WebLogic.TwitterRequestHandler.ExecuteMultipartQuery(IMultipartHttpRequestParameters parameters)    at Tweetinvi.Credentials.TwitterAccessor.TryExecuteMultipartQuery(IMultipartHttpRequestParameters parameters, String& result)    at Tweetinvi.Credentials.TwitterAccessor.ExecuteMultipartQuery[T](IMultipartHttpRequestParameters parameters, JsonConverter[] converters)    at Tweetinvi.Controllers.Upload.UploadQueryExecutor.UploadMedias(IEnumerable1 medias, Boolean forceReUpload)
at Tweetinvi.Controllers.Upload.UploadQueryExecutor.UploadBinaries(IEnumerable1 binaries)    at Tweetinvi.Controllers.Upload.UploadQueryExecutor.UploadBinary(Byte[] binary)    at C3.Core.Services.Twitter.TwitterService.<>c__DisplayClass19_0.<PostToProfile>b__0() in C:\... ---> (Inner Exception #0) System.Net.Http.HttpRequestException: Error while copying content to a stream. ---> System.IO.IOException: Unable to write data to the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host    at System.Net.Sockets.NetworkStream.BeginWrite(Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state)    --- End of inner exception stack trace ---    at System.Net.ConnectStream.EndWrite(IAsyncResult asyncResult)    at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization)    --- End of inner exception stack trace ---    at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)    at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)    at Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable1.ConfiguredTaskAwaiter.GetResult()
at Tweetinvi.WebLogic.HttpClientWebHelper.d__0.MoveNext()<---

Do you have project for visual studio 2013? Where can I get it?
Yours Truly,
Oleg Leonov,
Serbia
On Sat, Jun 24, 2017 at 10:11 AM, leventeolahx<EMAIL_ADDRESS>wrote:

Hi Linvi,
Sometimes we are getting an exception when Upload.UploadImage or
Upload.UploadVideo is called.
Below you can find details about the exception.
Cheers,
Levente
System.AggregateException: One or more errors occurred. --->
System.Net.Http.HttpRequestException: Error while copying content to a
stream. ---> System.IO.IOException: Unable to write data to the transport
connection: An existing connection was forcibly closed by the remote host.
---> System.Net.Sockets.SocketException: An existing connection was
forcibly closed by the remote host
at System.Net.Sockets.NetworkStream.BeginWrite(Byte[] buffer, Int32
offset, Int32 size, AsyncCallback callback, Object state)
--- End of inner exception stack trace ---
at System.Net.ConnectStream.EndWrite(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult
iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean
requiresSynchronization)
--- End of inner exception stack trace ---
at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
task)
at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task
task)
at Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable1.
ConfiguredTaskAwaiter.GetResult() at Tweetinvi.WebLogic.
HttpClientWebHelper.d__0.MoveNext() --- End of inner
exception stack trace --- at System.Threading.Tasks.Task1.GetResultCore(Boolean
waitCompletionNotification)
at Tweetinvi.WebLogic.WebRequestExecutor.<>c__DisplayClass5_0.b__0()
at Tweetinvi.WebLogic.WebRequestExecutor.ExecuteTwitterQuerySafely[T](ITwitterQuery
twitterQuery, Func1 action) at Tweetinvi.WebLogic.TwitterRequestHandler.
ExecuteMultipartQuery(IMultipartHttpRequestParameters parameters) at
Tweetinvi.Credentials.TwitterAccessor.TryExecuteMultipartQuery(
IMultipartHttpRequestParameters parameters, String& result) at
Tweetinvi.Credentials.TwitterAccessor.ExecuteMultipartQuery[T](
IMultipartHttpRequestParameters parameters, JsonConverter[] converters)
at Tweetinvi.Controllers.Upload.UploadQueryExecutor.
UploadMedias(IEnumerable1 medias, Boolean forceReUpload)
at Tweetinvi.Controllers.Upload.UploadQueryExecutor.
UploadBinaries(IEnumerable1 binaries) at Tweetinvi.Controllers.Upload.
UploadQueryExecutor.UploadBinary(Byte[] binary) at
C3.Core.Services.Twitter.TwitterService.<>c__DisplayClass19_0.b__0()
in C:... ---> (Inner Exception #0) System.Net.Http.HttpRequestException:
Error while copying content to a stream. ---> System.IO.IOException: Unable
to write data to the transport connection: An existing connection was
forcibly closed by the remote host. ---> System.Net.Sockets.SocketException:
An existing connection was forcibly closed by the remote host at
System.Net.Sockets.NetworkStream.BeginWrite(Byte[] buffer, Int32 offset,
Int32 size, AsyncCallback callback, Object state) --- End of inner
exception stack trace --- at System.Net.ConnectStream.EndWrite(IAsyncResult
asyncResult) at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult
iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean
requiresSynchronization) --- End of inner exception stack trace --- at
Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
task) at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task
task) at Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable1.
ConfiguredTaskAwaiter.GetResult()
at Tweetinvi.WebLogic.HttpClientWebHelper.d__0.MoveNext()<---
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/linvi/tweetinvi/issues/540, or mute the thread
https://github.com/notifications/unsubscribe-auth/AZUd7Sy4Eip2WMeA6Pt32ZCxgBzAbYe5ks5sHNK3gaJpZM4OERgl
.

I mean your old project for vs2013.
Oleg
On Sat, Jun 24, 2017 at 11:24 AM, Oleg Leonoff<EMAIL_ADDRESS>wrote:

Do you have project for visual studio 2013? Where can I get it?
Yours Truly,
Oleg Leonov,
Serbia
On Sat, Jun 24, 2017 at 10:11 AM, leventeolahx<EMAIL_ADDRESS>wrote:

Hi Linvi,
Sometimes we are getting an exception when Upload.UploadImage or
Upload.UploadVideo is called.
Below you can find details about the exception.
Cheers,
Levente
System.AggregateException: One or more errors occurred. --->
System.Net.Http.HttpRequestException: Error while copying content to a
stream. ---> System.IO.IOException: Unable to write data to the transport
connection: An existing connection was forcibly closed by the remote host.
---> System.Net.Sockets.SocketException: An existing connection was
forcibly closed by the remote host
at System.Net.Sockets.NetworkStream.BeginWrite(Byte[] buffer, Int32
offset, Int32 size, AsyncCallback callback, Object state)
--- End of inner exception stack trace ---
at System.Net.ConnectStream.EndWrite(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult
iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean
requiresSynchronization)
--- End of inner exception stack trace ---
at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
task)
at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task
task)
at Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable1.
ConfiguredTaskAwaiter.GetResult() at Tweetinvi.WebLogic.HttpClientW
ebHelper.d__0.MoveNext() --- End of inner exception
stack trace --- at System.Threading.Tasks.Task1.GetResultCore(Boolean
waitCompletionNotification)
at Tweetinvi.WebLogic.WebRequestExecutor.<>c__DisplayClass5_0.b__0()
at Tweetinvi.WebLogic.WebRequestExecutor.ExecuteTwitterQuerySafely[T](ITwitterQuery
twitterQuery, Func1 action) at Tweetinvi.WebLogic.TwitterRequ
estHandler.ExecuteMultipartQuery(IMultipartHttpRequestParameters
parameters) at Tweetinvi.Credentials.TwitterA
ccessor.TryExecuteMultipartQuery(IMultipartHttpRequestParameters
parameters, String& result) at Tweetinvi.Credentials.TwitterA
ccessor.ExecuteMultipartQuery[T](IMultipartHttpRequestParameters
parameters, JsonConverter[] converters) at Tweetinvi.Controllers.Upload.U
ploadQueryExecutor.UploadMedias(IEnumerable1 medias, Boolean
forceReUpload)
at Tweetinvi.Controllers.Upload.UploadQueryExecutor.UploadBinar
ies(IEnumerable1 binaries) at Tweetinvi.Controllers.Upload.U
ploadQueryExecutor.UploadBinary(Byte[] binary) at
C3.Core.Services.Twitter.TwitterService.<>c__DisplayClass19_0.b__0()
in C:... ---> (Inner Exception #0) System.Net.Http.HttpRequestException:
Error while copying content to a stream. ---> System.IO.IOException: Unable
to write data to the transport connection: An existing connection was
forcibly closed by the remote host. ---> System.Net.Sockets.SocketException:
An existing connection was forcibly closed by the remote host at
System.Net.Sockets.NetworkStream.BeginWrite(Byte[] buffer, Int32 offset,
Int32 size, AsyncCallback callback, Object state) --- End of inner
exception stack trace --- at System.Net.ConnectStream.EndWrite(IAsyncResult
asyncResult) at System.Threading.Tasks.TaskFactory
1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1
endAction, Task1 promise, Boolean requiresSynchronization) --- End of
inner exception stack trace --- at Microsoft.Runtime.CompilerServ
ices.TaskAwaiter.ThrowForNonSuccess(Task task) at
Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task
task) at Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable1.
ConfiguredTaskAwaiter.GetResult()
at Tweetinvi.WebLogic.HttpClientWebHelper.d__0.MoveNext()<---
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/linvi/tweetinvi/issues/540, or mute the thread
https://github.com/notifications/unsubscribe-auth/AZUd7Sy4Eip2WMeA6Pt32ZCxgBzAbYe5ks5sHNK3gaJpZM4OERgl
.

No, we are using tweetinvi from nugdet in visual studio 2015.
Levente

Hello here!
I am not sure what the error is but it certainly looks like a problem with the Twitter API.
Is the problem still occurring?
Cheers,
Linvi

Closing until I have more information.
Please feel free to reopen.


proposal: column level lineage

This is super exciting to see @pawel-big-lebowski !

spark-sql-flow: https://github.com/maropu/spark-sql-flow-plugin


Allow to disable the password-based login (sign-in) form

Usually enterprise/organization users would like to only allow OAuth2 login.
This PR adds a new config option to disable the password-based login form. It is a simple and clear approach and won't block the future login-system refactoring works.
https://gitea.com/gitea/docs/pulls/110
Fix a TODO in #24821
Replace  #21851
Close #7633 , close #13606
Screenshots:

Need to fix a regression:  Fix oauth2 login methods #32698


Tracking Harmony activity state

Hello!
I've got the bridge and harmony control up and running with no issue - everything works great.  What I can't seem to figure out is if there is a way to track activity state independent if triggering it within the ha-bridge.  For example, if I turn a harmony activity on/off via the bridge or an API call to the bridge, the device state correctly shows on or off.
But, if I turn on a harmony activity using the harmony remote, is there a way for the bridge to update it's state respectively?   My use case is that I'm developing a UI that will show "Now Playing" type activity and, if I have someone trigger the activity via my UI or Alexa, no problem.  But if the activity is triggered outside of the bridge, there's no way for me to know that activity state is on?
Hope that makes sense and thanks!

That makes sense. I did not connect the state call to anything in the ha-bridge.

Cool. Will your harmony API project allow me to get whether an activity is on or off?  I looked at the readme but didn't see a method to get activity state?

There is:
https://github.com/bwssytems/ha-bridge#show-harmony-current-activity

Interesting.  So I tried that but when I call that method, I get the same output as if I had called the /api/devices/harmony/activities method.  It just lists every activity on the hub even if nothing is on....?  Am I missing something?  Thank you!

I too get the same as above.
@bwssytems, I am not fully familiar with the Harmony Hub API, does it respond with JSON?  The reason I ask is I just wrote a python script that I run with cron that updates the ha-bridge device state for my X10 devices (still gotta finish the instructions) but I can add Harmony Activity state update to it too.

@bwssytems, just installed your restful-harmony and it does give the current Harmony activity properly with GET http://host:8081/harmony/show/activity

Geez, you guys are falling down on debugging my code... that has been a bug since I created it....lol

Lol. Awesome - thanks!  What's your timing on 4.0?  Not a big deal - I'll stand up some instances of the restful harmony API for not but just curious. Thanks for such an awesome project!

Almost finished. Just finished the refactoring write now. Just checking the bugs to be in and then testing and then it will be out. This week.

@jasondharper, Once this bug is squashed, LOL! I'll update my script to query the ha-bridge "/api/devices/harmony/show" and update the ha-bridge.  I'll post when done.

Nice!  Thank you!!

Will this also allow me to control individual items with my Google home and not just scenes? I'm also looking to voice automate my soundbar that's connected to my harmony hub.

This works for Google Home as well


JAVA-1536: Add request throttling

Entry points: RequestThrottler interface and request.throttler in the config.
General design goals: requests register themselves with the throttler, and wait for its signal to start. This is so that various request types (including custom ones) can be all throttled together (since we don't know in advance what the result types are, it would have been complicated to do something generic in Session.execute).
TODO:

[x] more tests
[x] manual (make sure to explain that throttling is included in client timeout)
4th implementation that only starts enqueuing when we get BusyConnectionException on all nodes (maximizing stream id usage in a way)

I don't observe much of a discernible difference with the nanoTime optimization, but it also seems to be working well so I'm 👍 on including it if you like.


Bogous message when reordering workspace folders

testing #31396

have a workspace with three folders
open workspace settings
swap the second and first path in the folders-section
🐛 a popup tells me that our "extension system" needs to restart

For once I doubt that is correct because only 0-1, 1-N transitions require a restart. Then I believe "extension system" isn't good wording. Let's just say the window needs to be reloaded (and obviously only when actually required to do so)

@jrieken I would love to get rid of this ugly dialog but my understanding is that our (now deprecated) workspace.rootPath is using the "first root folder" you have configured. So if that one changes, how can we propagate this change to extensions with reloading our extension system?
Btw the wording came out of a discussion I had with @weinand (please read https://github.com/Microsoft/vscode/issues/31014).

We should remove this prompt once we can restart the extension host (which @alexandrudima is working on).

Verification: The extension host is now restarted when the first root folder changes. Any extension accessing the workspace.rootPath should get the new root folder, this needs verification with an extension that is active while the root folders are changed.


(PDB-4937) Add query timeouts

This may need to be moved to main.  (Started on 7.x initially with the intention to "wait and see".)

Rebased onto main.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Hint about non-useful concat being possible typo

I could wish for a hint when I'm concatenating adjacent strings together when it's at least possible I mean something else. e.g.
  path.join(path.dirname(scriptDir), 'doc'  'sdk-introduction.md');
where the method I'm calling at least has the ability to take an additional parameter, and I'm concatenating two constant strings on the same line, which really doesn't gain me anything.
Alan Knight
////////////////////////////////////////////////////////////////////////////////////
Editor: 1.0.0_r30187 (2013-11-12)
OS: Mac OS X - x86_64 (10.8.5)
JVM: 1.6.0_65
projects: 3
open dart files: 45
auto-run pub: false
localhost resolves to: <IP_ADDRESS>
mem max/total/free: 1983 / 681 / 246 MB
thread count: 48
index: 702637 relationships in 142552 keys in 604 sources
SDK installed: true
Dartium installed: true

This has the strong possibility of yielding false positives. Should this be a linter instead? Similar to https://github.com/dart-lang/linter/issues/225.


deb repository

We already have .deb packages, which simplify the installation A LOT. We have to keep track of new releases to get latest version.
This was already requested in issue #1021 and  #2353, before the .deb packages were available, but were closed because of their length.
Could we please have a ppa repository or similar so we can get latest version via apt.
Thank you.

Closing in favor of #6138.


Add relevant wikiteq branch changes to master

There have been many changes to the wikiteq branch since it was created about seven months ago; and though there has been an effort at synchronizing the wikiteq and master branches by myself and others, there certainly remain differences between the two - which it would be best to avoid, if possible. I went through to find changes to the wikiteq branch that it could make sense to add to the master branch in one form or another, and found the following five. They range in size from simple one-line changes (#332, #375) to a massive change to 19 files (#371), which despite its name seems to do much more than move the location of the log files - actually, much of that patch seems to itself be an attempt at synchronization, so it's probably not as big as it appears.

#332
#334
#349 (note that this page contains a discussion about the merits of adding such a change to master)
#371
#375

It would be good to identify which of these changes it makes sense to copy over - and ideally then copy those over.

My thoughts:

#332 is a nice quality of life change that we can add to Canasta.
#334 is also good for people who want to use external monitoring solutions. I support adding this to Canasta.
#349 is something I think that doesn't apply to Canasta, and if anything, I think Taqasta needs to undo their change where they straight up removed the entire CanastaUtils.php file instead of removing the lines of code that they didn't need, since we always reserve the right to add more utils in the future.
#371 should be added; it's a great idea for helping sysadmins with debugging, without losing the logs each time the container restarts.
#375 is pretty trivial, it just needs to be done.

I looked more into that giant #371 patch, and it's actually a combination of a whole bunch of things:

making log files into volumes (as advertised)
making MediaWiki's cache directory into a volume
addition of the --variableArrayIndex flag to getMediaWikiSettings.php, as part of some refactoring that I can't fully understand
making SMW's config/ directory into a volume
the addition of wiki farm support from the master branch
the addition of various functionality from Taqasta, including:
a. SQLite support
b. addition of the waitelastic() function, which pauses setup until Elasticsearch starts running
c. making the Widgets extension's compiled_templates/ directory into a volume
d. adding some SMW maintenance scripts, like updateEntityCollation.php (this SMW stuff should really be added as a separate script to the maintenance-scripts/ directory, I think)
e. adding some CirrusSearch maintenance scripts, like UpdateSearchIndexConfig.php (same)
f. making sure that various directories are writeable, via the new function make_dir_writable()
g. some code refactoring, like moving some (heavily modified) code into the new files functions.sh and run-maintenance-scripts.sh
h. addition of the --memory-limit flag (with a value of 512M) when calling runJobs.php
i. changing the call a2enmod expires to a2enmod expires remoteip
j. making various messages during setup more verbose
k. conversely, piping other messages to log files ("mwjobrunner_log", etc.) instead of printing them on the screen
l. adding more PHP error logging (although some of it looks non-Taqasta)
m. modified the Apache config file mediawiki.conf in a way I don't really understand
n. some other code changes and cleanup that also look like they came from Taqasta

Clearly this PR was poorly named, and it probably should have been split into 10-20 PRs (!), which would have made it easier to evaluate each change separately.
Anyway, assuming that this outline is roughly correct, are there any thoughts on which parts should or should not be added to Canasta? (Apart from # 5, which is there already.) Personally, I don't strongly object to any of it, though there are parts that look more useful than others, and there are changes that it would definitely be good to see an explanation for.

My thoughts:

Still love the idea
This part I don't understand as much. Why would this be necessary? It seems more of a liability to volume this out.
I'm not sure what this does.
That's a good idea, as long as this is a no-op for wikis which don't enable SMW.
N/A

a. SQLite is not for production usage
b. We can add that
c. Same thoughts as 2nd point
d. Agreed they should be added, but to maintenance-scripts/
e. Same as d
f. Let's add it
g. Sure, we can see about adding it
h. Good idea
i. Not sure what this does but okay
j. Sure
k. Pipe to where?
l. Sure
m. Will look into it later
n. N/A

@tosfos - after our discussion, I think the only question I'm really curious about, relating to these patches, is this one: what are these mediawiki.conf changes from March about?

RewriteCond %{DOCUMENT_ROOT}/.maintenance -f
RewriteRule .* - [R=503]

This part is not needed for Canasta and can be removed.
In Taqasta it returns the 503 error while maintenance/install.php is running (Taqasta can install mediawiki from scratch automatically). The user should not see the web installer at that time.
######## Overwrite log format to include X-Forwarded-For if it is provided ########
RemoteIPHeader X-Forwarded-For
RemoteIPInternalProxy <IP_ADDRESS>/8
RemoteIPInternalProxy <IP_ADDRESS>/12
RemoteIPInternalProxy <IP_ADDRESS>/16

LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" docker

CustomLog "|/usr/bin/rotatelogs -c -f -l -p /rotatelogs-compress.sh -L /var/log/apache2/access_log.current /var/log/apache2/access_log_%Y%m%d 86400" docker

This config for the remoteip Apache module ("The module overrides the client IP address for the connection with the useragent IP address reported in the request header configured with the RemoteIPHeader directive.")
This makes configuring Apache much simpler because you can use the client IP in the settings and don't worry about the headers.  Aslo this config was changed to be able to use another header as the client IP, see https://github.com/CanastaWiki/Canasta/commit/b70c5b2b57c2f7575d074ea040f04fb422fc9ec3
For example how IPs of  DOS attacker were banned in the Apache config: https://github.com/WikiWorks/Society-of-Exploration-Geophysicists/commit/7cf51ebb7362d04fc01fa1f2bb43ad42c261c848
we added APACHE_REMOTE_IP_HEADER=cf-connecting-ip environment variable to the web container, it overwrites the client IP with one provided by Cloudflare, so it is used in the log files and allows use in the .htaccess file as:
<RequireAll>
  Require all granted
  Require not ip <IP_ADDRESS>
  Require not ip <IP_ADDRESS>
</RequireAll>

This config works well in most cases, allows to write clear config and in case we need to use another header like cf-connecting-ip as the user IP, all we need is to define it in the APACHE_REMOTE_IP_HEADER variable.

@pastakhov - thank you for that detailed explanation! Those last two changes do look helpful.

By the way, I wonder if the ideal way to handle items 4 and 6c (turning directories in the SMW and Widgets extensions into volumes, so that they don't get wiped out during upgrades) is by adding to the YAML format (e.g. extensions.yaml) a parameter like "volumed directories:", so that each extension (or even skin) can declare its own volumed directories, rather than hardcoding these in Canasta. I do like the idea of making Canasta as "extension-neutral" as possible.

I still think this could be a good idea, although maybe the parameter should be called something like "persistent directories", rather than "volumed directories", because the syntax should ideally not be Docker-specific.

This was accidentally closed...

Re-opening, again - this may have to be done quite a bit.


Chance of not activating when in-game animation is playing

The animation itself is fine, but sometimes the animation may not be activated, either because it does not play or because it may not play until the next command is executed.
I swear my animation playback flow is not wrong, maybe it's because of some issues with the animations supported by the API itself, maybe it would work better if I could add a flow to force high priority playback with a bar

Are you using google translate? Because it's hard to understand what you're trying to say.

Yes, Google Translate doesn't quite match what I need to say, about which I apologize, I can explain with an example:
Let's say I need to create a pistol that has 8 bullets, it doesn't have a very high rate of fire, each time it fires it plays the firing animation in full, but when I fire continuously there is a probability that suddenly the animation doesn't play but when the next shot is fired the animation playback goes back to normal, this occurs at random and has nothing to do with the process I'm creating.

Maybe it has something to do with how high the animation is prioritized for playback? My Mcreaotr version is 2024.1.18518 and geckolib plugin is 5.7.1

You need to first stop the animation playing with the procedure block that does that. Then, you use the wait procedure block to wait 1 tick and play the animation.

Ok,I'll try this.

I did what you said, but sometimes I still have the above problem


Export SHELL service to unetpy

Services.SHELL — while technically not part of Unet, it is convenient to export this for use from unetpy

Added in commit 92dd89ae55922c66ef568b627ccd86895c295e36

This needs to be added in fjagepy and not unetpy.

Fixed in 82282ce153eb4afbee35355b1605702d90b5a0f5


fix test tables for new clinvar assertions

fix test cases for my accidental dev commit which adds new assertions and gold star lookup values

@hanars so you see this.  We encountered changes to the "assertions" modifiers that were parsing away from the pathogenicities.  If we continue to see frequent naming changes to these we should probably change the behavior to not hard-fail and instead dynamically map the enums.  We're not doing anything on the search end other than returning in the JSON response and displaying in the UI right?

yeah, seqr has nothing hard coded around assertions so theres no harm if these dynamically update

merging so I can pull into my other branch


No executable on Windows when installing via pip

I installed pep257 0.3.2 using pip with pip install pep257, but there is noexecutable in my C:\Python33\Scripts path.
There is a Python script named pep257 (no extension) in the folder but Windows does not know run that via console. I had added .py to my PATHEXT env long ago which means entering pep257 into a shell should find it (e.g. subprocess.Popen("pep257", shell=True), so I copied the file to another one with that extension. Now my system can find the file but it fails to execute because import pep257 tries to import this very file and searches for main within, which is obviously not there.
Because of that and the shell restriction all other packages bundle an .exe that can always be found and pep257 needs one too.

@sigmavirus24, correct me if I'm wrong, but I think it is distribute rather than distutils that has been merged into setuptools.

@myint correct. Sorry about that. :)

I also just found this bug. Is there a fix on the horizon?

You can use flake8 with flake8-docstrings on Windows.


Add ability allowing bump to manage version

$ bump -v check buildenv
buildenv:7: git 2.41.0 -> 2.41.0 1.097s

Manually set buildenv back to 2.40.0 to check.
$ git diff buildenv
───────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ STDIN
───────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ diff --git a/buildenv b/buildenv
   2   │ index 0b60d63..c61d49c 100644
   3   │ --- a/buildenv
   4   │ +++ b/buildenv
   5   │ @@ -4,7 +4,7 @@
   6   │  export ZOPEN_TYPE="TARBALL"
   7   │
   8   │  # bump: git /GIT_VERSION="(.*)"/ https://github.com/git/git.git|*
   9   │ -GIT_VERSION="2.41.0"
  10   │ +GIT_VERSION="2.40.0"
  11   │

$ bump -v check buildenv
buildenv:7: git 2.40.0 -> 2.41.0 1.136s

$ bump diff buildenv | bat
───────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ STDIN
───────┼───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ --- buildenv
   2   │ +++ buildenv
   3   │ @@ -4,7 +4,7 @@
   4   │  export ZOPEN_TYPE="TARBALL"
   5   │
   6   │  # bump: git /GIT_VERSION="(.*)"/ https://github.com/git/git.git|*
   7   │ -GIT_VERSION="2.40.0"
   8   │ +GIT_VERSION="2.41.0"
   9   │

We can either pull all repos down, and allow bump to send updates to them, or centralise URLs to meta, so that bump can do this via CI on that one repo (meta).
Then, *port can first refer to a system's meta for URLs (implying that every install of meta needs to periodically pull updates to a versions file... much like we have zopen update-cacert).

Thanks @IgorTodorovskiIBM, I'm working through the version identifer for all projects now.
Seems I may have to send out 100+ PRs lol.

We can either pull all repos down, and allow bump to send updates to them, ...

It seems the above option is not that hard. In the coming days, I'll upload 3 scripts to do the following:
zopen-pull - git clone or pulls down all *port repos
zopen-bump - runs bump checkon the whole lot (referring to "instructions" in a Bumpfile), then bump update
zopen-push - push and create PRs for all repos where the previous step modified files (will be just buildenv files)

or centralise URLs to meta, so that bump can do this via CI on that one repo (meta).

This won't be necessary. As long as the CI machine's disk is persistent (i.e., can be shared with other CI machines if needed), the above pull-bump-push should work pretty quickly.
And keep things simple and close to how they are today.
Also trying to work out something for our CI..

It seems the above option is not that hard. In the coming days, I'll upload 3 scripts to do the following: zopen-pull - git clone or pulls down all *port repos zopen-bump - runs bump checkon the whole lot (referring to "instructions" in a Bumpfile), then bump update zopen-push - push and create PRs for all repos where the previous step modified files (will be just buildenv files)

I like this idea as I'd still want to make the decision to merge it in or not, so having a script to automatically create the PRs seems like a good idea to me. Integrating into a CI job is also a good idea! Thanks for looking into this!


Allow java.util.Locale objects to be used in i18n locale option

Considering its name we should also allow java.util.Locale objects in the i18n locale option:
${"Foo" @ i18n, locale=resource.locale}

This is an implementation detail, pertaining to Java. We should not tie expression options to programming languages specific features.


Empty shipping cost (hidden line) after checkout

PHP Version
7.4
Shopware Version
<IP_ADDRESS>
Expected behaviour
in storefront twig template: component/checkout/hidden-line-items-information.html.twig
line with
         data-shipping="{{ cart.deliveries.shippingCosts.sum().totalPrice }}"

should return shipping cost
should be there this variable?:
         data-shipping="{{ cart.shippingCosts.totalPrice }}"

Actual behaviour
returns null
How to reproduce
Create order and check html data (detected on google analytics events)

Hello,
Within our company roadmap and work capacity, we try to address each bug or improvement request but admit that not each one will be resolved. To continue our culture of honesty and openness, we are closing this issue to focus on our roadmap on behalf of all Shopware users.
If you feel like this issue is still impacting you, please create a new issue and let us know.
Thank you again for your valuable feedback.


Docker Mainline does not Start clean from blank volume

Bug Report
Description
Bug Summary:
Spinning up with the same vars as the example .env file in a k3s cluster using blank nfs based drive does not work with main branch
Steps to Reproduce:
Just spin it up
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: ollama
  name: deployment-ollama
  namespace: ai
spec:
  replicas: 1
  selector:
    matchLabels:
      app: ollama
  template:
    metadata:
      labels:
        app: ollama
      name: deployment-ollama
    spec:
      nodeSelector:
        "kubernetes.io/os": linux
      dnsPolicy: ClusterFirstWithHostNet
      containers:
        - name: ollama
          image: ollama/ollama:latest
          ports:
          - containerPort: 11434
            protocol: TCP
            name: http
          volumeMounts:
            - name: ollama-data
              mountPath: "/root/.ollama"
        - name: ollama-webui
          image: ghcr.io/open-webui/open-webui:main
          ports:
          - containerPort: 8080
            protocol: TCP
            name: http
          volumeMounts:
            - name: open-webui-data
              mountPath: "/app/backend/data"
          env:
            - name: OLLAMA_BASE_URL
              value: "http://localhost:11434/api"
            - name: WEBUI_SECRET_KEY
              valueFrom:
                secretKeyRef:
                  name: webui-secret-key
                  key: WEBUI_SECRET_KEY
            - name: SCARF_NO_ANALYTICS
              value: "true"
            - name: DO_NOT_TRACK
              value: "true"
      volumes:
        - name: ollama-data
          persistentVolumeClaim:
            claimName: pvc-ollama
        - name: open-webui-data
          persistentVolumeClaim:
            claimName: pvc-open-webui
  strategy:
    rollingUpdate:
      maxSurge: 0
      maxUnavailable: 1
    type: RollingUpdate

Expected Behavior:
to start up cleanly
Actual Behavior:
No sentence-transformers model found with name sentence-transformers/all-MiniLM-L6-v2. Creating a new one with MEAN pooling.
Traceback (most recent call last):
  File "/usr/local/bin/uvicorn", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 418, in main
    run(
  File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 587, in run
    server.run()
  File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 62, in run
    return asyncio.run(self.serve(sockets=sockets))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
  File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 69, in serve
    config.load()
  File "/usr/local/lib/python3.11/site-packages/uvicorn/config.py", line 458, in load
    self.loaded_app = import_from_string(self.app)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/uvicorn/importer.py", line 21, in import_from_string
    module = importlib.import_module(module_str)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/app/backend/main.py", line 25, in <module>
    from apps.rag.main import app as rag_app
  File "/app/backend/apps/rag/main.py", line 85, in <module>
    embedding_functions.SentenceTransformerEmbeddingFunction(
  File "/usr/local/lib/python3.11/site-packages/chromadb/utils/embedding_functions.py", line 72, in __init__
    self.models[model_name] = SentenceTransformer(model_name, device=device)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/sentence_transformers/SentenceTransformer.py", line 198, in __init__
    modules = self._load_auto_model(
              ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/sentence_transformers/SentenceTransformer.py", line 1063, in _load_auto_model
    transformer_model = Transformer(
                        ^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/sentence_transformers/models/Transformer.py", line 35, in __init__
    config = AutoConfig.from_pretrained(model_name_or_path, **model_args, cache_dir=cache_dir)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/transformers/models/auto/configuration_auto.py", line 1111, in from_pretrained
    config_dict, unused_kwargs = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/transformers/configuration_utils.py", line 633, in get_config_dict
    config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/transformers/configuration_utils.py", line 688, in _get_config_dict
    resolved_config_file = cached_file(
                           ^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/transformers/utils/hub.py", line 398, in cached_file
    resolved_file = hf_hub_download(
                    ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/huggingface_hub/utils/_validators.py", line 118, in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/huggingface_hub/file_download.py", line 1504, in hf_hub_download
    _chmod_and_replace(temp_file.name, blob_path)
  File "/usr/local/lib/python3.11/site-packages/huggingface_hub/file_download.py", line 1717, in _chmod_and_replace
    os.chmod(src, stat.S_IMODE(cache_dir_mode))
PermissionError: [Errno 1] Operation not permitted: '/app/backend/data/cache/embedding/models/tmp9atjzopt'

Environment

Operating System: Ubuntu 20.04 with K3s Treafik removed Istio installed in it's place
Browser (if applicable): N/A

Reproduction Details
Confirmation:

[X] I have read and followed all the instructions provided in the README.md.
[X] I am on the latest version of both Open WebUI and Ollama.
[NA] I have included the browser console logs.
[X] I have included the Docker container logs.

Logs and Screenshots
Browser Console Logs:
[Include relevant browser console logs, if applicable]
Docker Container Logs:
See Above
Screenshots (if applicable):
[Attach any relevant screenshots to help illustrate the issue]
Installation Method
Docker
Additional Information
Note
My ghcr.io/ollama-webui/ollama-webui:dev deployment works fine so does not seem to be a system issue on my side.

Appears the issue is something mentioned in discussions:

#918

I had actually found that myself and already proved that that is not the issue.
      initContainers:
      - name: init-data
        image: ghcr.io/open-webui/open-webui:main
        command: ["/bin/bash", "-c", "if [ ! -f /data/webui.db ]; then echo 'Cloning default data folder'; cp -r /app/backend/data /data; echo 'Done'; else echo 'Data folder already exists'; fi"]
        volumeMounts:
          - name: open-webui-data
            mountPath: "/data"

This would have fixed the problem but no change

In my init container I got the logs
Cloning default data folder                                                                                Done

showing that it did indeed copy the data folder into the volume prior to mounting the volume in the final container that would run the software.

We have about 2 maybe 3 regular contributors that use kubernetes, so I hope one of them or you has got some ideas or further context to add :/

I'll see if I can find anything else.

It may actually be related to that other issue... I remove the volume mount all together and it started up find... Obviousely that does not work... long term. When I get this sorted I'll make an example k8s config for people.


test_pipe_get_getsockname_blocking broken on windows

There are two issues, one of them is arguably a problem with the API.

The test creates a pipe with CreatePipe(). Pipes created that way don't have a name, but the test tries to verify that the pipe does have one.
uv_pipe_getsockname returns an empty string because the pipe has no name. However the string is not null-terminated! See https://github.com/libuv/libuv/blob/v1.x/src/win/pipe.c#L2044.

uv_pipe_getsockname returns an empty string because the pipe has no name. However the string is not null-terminated! See https://github.com/libuv/libuv/blob/v1.x/src/win/pipe.c#L2044.

IIRC this is intentional. On Linux you could have an abstract socket, whose name is \0foo, so the API doen't null-terminate the strings on purpose, the user must use the size out argument.
See the note here: http://docs.libuv.org/en/v1.x/pipe.html?highlight=uv_pipe_getsockname#c.uv_pipe_getsockname


Update README.md

PR Checklist

[ ] The PR title follows our guidelines: https://github.com/NativeScript/NativeScript/blob/master/CONTRIBUTING.md#commit-messages.
[ ] There is an issue for the bug/feature this PR is for. To avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it.
[ ] All existing tests are passing
[ ] Tests for the changes are included

What is the current behavior?

What is the new behavior?

Fixes/Implements/Closes #[Issue Number].

@cla-bot check

Thank you @aurelientorres


Make it possible to configure the client name in client.yaml

Is your feature request related to a problem? Please describe.
For better user experience in the client flow  in Studio, this would be needed.

This has been merged in develop.


Add proxy config for containerd and apt on ubuntu

This PR adds support for HTTP proxy servers in user clusters, with config supplied via the existing Magnum proxy variables. Specifically, proxies are configured in containerd for image downloads, and in apt when running Ubuntu.
I've had to add a placeholder file to the KubeadmConfigTemplate as otherwise the JSON patch process fails when adding files to the empty array.
Additionally, whilst I can see flatcar supports systemd, I haven't tested it with that OS, so can't be certain that the config and service restart function correctly.

Related issue: https://github.com/vexxhost/magnum-cluster-api/issues/258

@mnaser @okozachenko1203 Flatcar is fixed here now. Review comments welcome when you have time.

Seems to fail locally:
E0308 05:58:01.965804       1 reconcile_state.go:1036] "Failed to create object" err="failed to create typed patch object (magnum-system/kube-948gg-cc54f; controlplane.cluster.x-k8s.io/v1beta1, Kind=KubeadmControlPlane): .spec.kubeadmConfigSpec.preKubeadmCommands[1]: expected string, got &value.valueUnstructured{Value:[]interface {}{\"systemctl daemon-reload\", \"systemctl restart containerd\"}}" controller="topology/cluster" controllerGroup="cluster.x-k8s.io" controllerKind="Cluster" Cluster="magnum-system/kube-948gg" namespace="magnum-system" name="kube-948gg" reconcileID="86d13666-5fab-4b98-abac-854c7af609a1" resource={"group":"controlplane.cluster.x-k8s.io","version":"v1beta1","resource":"KubeadmControlPlane"} KubeadmControlPlane="magnum-system/kube-948gg-cc54f" KubeadmControlPlane="magnum-system/kube-948gg-cc54f"


Enable buildAuthProvider to use Cognito user groups for external providers

We're using Cognito with Open ID Connect provider with Azure AD for authentication with our company email address. We therefore have an auto generated user group and it would be great if this could be used in the build auth provider function.
Is this possible currently, and if not do you have an idea of how it could be done (we'd be happy to contribute!).
Thanks!

Hi @ChloeConnor
The AuthProvider is retrieving user groups like this:
import { Auth } from "@aws-amplify/auth";

const session = await Auth.currentSession();
const groups = session.getAccessToken().decodePayload()["cognito:groups"];

You should try this code and see if you can see the user groups or not.
If you are seing the user groups, then the AuthProvider should work properly.
If not, I think you can build the AuthProvider and override checkAuth and getPermissions methods.


ODconv with a 1D convolution level

Thank you very much for your proposed multi-dimensional dynamic convolution mode, which is very innovative. I would like to ask a question: Can you provide an ODconv with a 1D convolution level for reference?

You can use the following code:
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.autograd

class Attention(nn.Module):
    def __init__(self, in_planes, out_planes, kernel_size, groups=1, reduction=0.0625, kernel_num=4, min_channel=16):
        super(Attention, self).__init__()
        attention_channel = max(int(in_planes * reduction), min_channel)
        self.kernel_size = kernel_size
        self.kernel_num = kernel_num
        self.temperature = 1.0

        self.avgpool = nn.AdaptiveAvgPool1d(1)
        self.fc = nn.Conv1d(in_planes, attention_channel, 1, bias=False)
        self.bn = nn.BatchNorm1d(attention_channel)
        self.relu = nn.ReLU(inplace=True)

        self.channel_fc = nn.Conv1d(attention_channel, in_planes, 1, bias=True)
        self.func_channel = self.get_channel_attention

        if in_planes == groups and in_planes == out_planes:  # depth-wise convolution
            self.func_filter = self.skip
        else:
            self.filter_fc = nn.Conv1d(attention_channel, out_planes, 1, bias=True)
            self.func_filter = self.get_filter_attention

        if kernel_size == 1:  # point-wise convolution
            self.func_spatial = self.skip
        else:
            self.spatial_fc = nn.Conv1d(attention_channel, kernel_size, 1, bias=True)
            self.func_spatial = self.get_spatial_attention

        if kernel_num == 1:
            self.func_kernel = self.skip
        else:
            self.kernel_fc = nn.Conv1d(attention_channel, kernel_num, 1, bias=True)
            self.func_kernel = self.get_kernel_attention

        self._initialize_weights()

    def _initialize_weights(self):
        for m in self.modules():
            if isinstance(m, nn.Conv1d):
                nn.init.kaiming_normal_(m.weight, mode='fan_out', nonlinearity='relu')
                if m.bias is not None:
                    nn.init.constant_(m.bias, 0)
            if isinstance(m, nn.BatchNorm1d):
                nn.init.constant_(m.weight, 1)
                nn.init.constant_(m.bias, 0)

    def update_temperature(self, temperature):
        self.temperature = temperature

    @staticmethod
    def skip(_):
        return 1.0

    def get_channel_attention(self, x):
        channel_attention = torch.sigmoid(self.channel_fc(x).view(x.size(0), -1, 1) / self.temperature)
        return channel_attention

    def get_filter_attention(self, x):
        filter_attention = torch.sigmoid(self.filter_fc(x).view(x.size(0), -1, 1) / self.temperature)
        return filter_attention

    def get_spatial_attention(self, x):
        spatial_attention = self.spatial_fc(x).view(x.size(0), 1, 1, 1, self.kernel_size)
        spatial_attention = torch.sigmoid(spatial_attention / self.temperature)
        return spatial_attention

    def get_kernel_attention(self, x):
        kernel_attention = self.kernel_fc(x).view(x.size(0), -1, 1, 1, 1)
        kernel_attention = F.softmax(kernel_attention / self.temperature, dim=1)
        return kernel_attention

    def forward(self, x):
        x = self.avgpool(x)
        x = self.fc(x)
        x = self.bn(x)
        x = self.relu(x)
        return self.func_channel(x), self.func_filter(x), self.func_spatial(x), self.func_kernel(x)

class ODConv1d(nn.Module):
    def __init__(self, in_planes, out_planes, kernel_size, stride=1, padding=0, dilation=1, groups=1,
                 reduction=0.0625, kernel_num=4):
        super(ODConv1d, self).__init__()
        self.in_planes = in_planes
        self.out_planes = out_planes
        self.kernel_size = kernel_size
        self.stride = stride
        self.padding = padding
        self.dilation = dilation
        self.groups = groups
        self.kernel_num = kernel_num
        self.attention = Attention(in_planes, out_planes, kernel_size, groups=groups,
                                   reduction=reduction, kernel_num=kernel_num)
        self.weight = nn.Parameter(torch.randn(kernel_num, out_planes, in_planes//groups, kernel_size),
                                   requires_grad=True)
        self._initialize_weights()

        if self.kernel_size == 1 and self.kernel_num == 1:
            self._forward_impl = self._forward_impl_pw1x
        else:
            self._forward_impl = self._forward_impl_common

    def _initialize_weights(self):
        for i in range(self.kernel_num):
            nn.init.kaiming_normal_(self.weight[i], mode='fan_out', nonlinearity='relu')

    def update_temperature(self, temperature):
        self.attention.update_temperature(temperature)

    def _forward_impl_common(self, x):
        # Multiplying channel attention (or filter attention) to weights and feature maps are equivalent,
        # while we observe that when using the latter method the models will run faster with less gpu memory cost.
        channel_attention, filter_attention, spatial_attention, kernel_attention = self.attention(x)
        batch_size, in_planes, length = x.size()
        x = x * channel_attention
        x = x.reshape(1, -1, length)
        aggregate_weight = spatial_attention * kernel_attention * self.weight.unsqueeze(dim=0)
        aggregate_weight = torch.sum(aggregate_weight, dim=1).view(
            [-1, self.in_planes // self.groups, self.kernel_size])
        output = F.conv1d(x, weight=aggregate_weight, bias=None, stride=self.stride, padding=self.padding,
                          dilation=self.dilation, groups=self.groups * batch_size)
        output = output.view(batch_size, self.out_planes, output.size(-1))
        output = output * filter_attention
        return output

    def _forward_impl_pw1x(self, x):
        channel_attention, filter_attention, spatial_attention, kernel_attention = self.attention(x)
        x = x * channel_attention
        output = F.conv1d(x, weight=self.weight.squeeze(dim=0), bias=None, stride=self.stride, padding=self.padding,
                          dilation=self.dilation, groups=self.groups)
        output = output * filter_attention
        return output

    def forward(self, x):
        return self._forward_impl(x)


Detect missing cookiefile option

Hi,
I just discovered that TorControl doesn't handle missing cookiefile option, as it already does for password. This pull request fixes that, and throws an exception if no cookiefile is set.
Cheers

Thank you @mmerian


[BUG] - Pulse sheet simulator does not take amplitude increment into account

Describe the bug
For an experiment scaling the amplitude using real-time loops, the command table will use the increment amplitude argument.
In the interactive_psv simulation, however, the pulse will only be scaled to the value, which is supposed to be incremented instead of steadily increasing.
Here is a compiled_experiment, corresponding to a rabi, with increasing amplitude of the drive pulse.
amplitude_increment.json
Versions used:

laboneq: 2.20
zhinst-core
others

Context

[ ] Do you know a workaround for the issue? If yes, please provide a short description.
[ ] Does the issue block your experiments?

@GlaserN we diagnosed the root cause of this issue, it is because the OutputSimulator be default does only analyze part of the sequencer code and not the full sequence, and therefore is not aware of the status of any increments.
We may adapt this in the future, but it may require a larger rework of the OutputSimulator.


array merge with similar slugs

File: SluggableListener
Function: makeUniqueSlug()
Line: $result += $this->getSimilarPersistedSlugs($config['useObjectClass'], $preferedSlug, $config['slug']);
+= operator:
Merges only unique keys. So it happens that ignores Persisted slugs if there are Similar slugs fetched from DB.

hey, this should go to https://github.com/l3pp4rd/DoctrineExtensions

fixed in https://github.com/l3pp4rd/DoctrineExtensions/commit/1995fe8ba9351b4c42ba942edd5ac7137b84d642


Interactive merge deletes extra chunks

Issue Type: Bug
When performing an interactive merge (using the interactive diff view) the "Accept ... Change" buttons delete more code than what is highlighted. The dialog also takes upwards of 5 seconds to disappear and allows for multiple clicks which continue deleting unmarked code blocks
VS Code version: Code 1.39.2 (6ab598523be7a800d7f3eb4d92d7ab9a66069390, 2019-10-15T15:33:40.634Z)
OS version: Linux x64 5.0.0-31-generic

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz (12 x 4389)

GPU Status
2d_canvas: unavailable_softwareflash_3d: unavailable_offflash_stage3d: unavailable_offflash_stage3d_baseline: unavailable_offgpu_compositing: unavailable_offmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwareoop_rasterization: unavailable_offprotected_video_decode: unavailable_offrasterization: unavailable_offskia_deferred_display_list: disabled_offskia_renderer: disabled_offsurface_synchronization: enabled_onvideo_decode: unavailable_offviz_display_compositor: disabled_offwebgl: enabled_readbackwebgl2: unavailable_off

Load (avg)
0, 0, 0

Memory (System)
31.34GB (16.39GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (26)

Extension
Author (truncated)
Version

code-gnu-global
aus
0.2.2

systemd-unit-file
coo
1.0.5

arm
dan
0.5.0

vscode-markdownlint
Dav
0.31.0

make-hidden
dev
3.0.3

gitlens
eam
10.1.1

vscode-html-css
ecm
0.2.3

vsc-material-theme
Equ
30.0.0

bitbake
Eug
1.1.2

vscode-highlight
fab
1.3.4

html-preview-vscode
geo
0.2.5

beautify
Hoo
1.5.0

jenkinsfile-support
ivo
0.4.4

vscode-edit-csv
jan
0.1.4

markdown-shortcuts
mdi
0.11.0

python
ms-
2019.10.41019

cpptools
ms-
0.26.0

vsliveshare
ms-
1.0.988

codemap
ole
1.10.0

material-icon-theme
PKi
3.9.1

devicetree
plo
0.1.1

vscode-yaml
red
0.5.3

bash-beautify
sha
0.1.1

debug
web
0.23.1

markdown-all-in-one
yzh
2.5.1

linkerscript
Zix
1.0.0

(1 theme extensions excluded)

You're going to have to provide more information than that... what are the exact steps to reproduce what you are seeing?


Build Native Image using Quarkus

Build a tiny Go-like Docker image using Quarkus native build. This will require us making the framework adhere to the GraalVM limitations.

Should this be closed now?

Should this be closed now?

With 1.7.1, I must annotate my Spec and Status class with @RegisterForReflection. If not, jackson complains when deserializing.

@cortex93 yes, this issue is already fixed in https://github.com/java-operator-sdk/java-operator-sdk/pull/311

I'm trying currently native builds. Is there any documentation/example (steps that we need in SDK itself) apart from following typical quarkus native build guide?

@wtrocki the only thing you should need is mvn package -Pnative.

@wtrocki the only thing you should need is mvn package -Pnative.

Using the quarkus extension mvn package -Pnative works for it. And there is another issue that covers building images: issue #96


Feat: Upgrade to Numaflow 0.11

Explain what this PR does.

Codecov Report

Merging #173 (12b5338) into main (e8c600b) will not change coverage.
The diff coverage is 100.00%.

:exclamation: Current head 12b5338 differs from pull request most recent head 460b97d. Consider uploading reports for the commit 460b97d to get more accurate results

@@           Coverage Diff           @@
##             main     #173   +/-   ##
=======================================
  Coverage   85.96%   85.96%
=======================================
  Files          20       20
  Lines        1154     1154
  Branches      118      118
=======================================
  Hits          992      992
  Misses        138      138
  Partials       24       24

Files
Coverage Δ

numaprom/factory.py
91.30% <100.00%> (ø)

numaprom/tools.py
88.52% <100.00%> (ø)

numaprom/udf/inference.py
92.00% <100.00%> (ø)

numaprom/udf/postprocess.py
95.69% <100.00%> (ø)

numaprom/udf/preprocess.py
88.88% <100.00%> (ø)

numaprom/udf/threshold.py
91.17% <100.00%> (ø)

numaprom/udf/window.py
93.44% <100.00%> (ø)

numaprom/udsink/train.py
86.91% <100.00%> (ø)

numaprom/udsink/train_rollout.py
84.61% <100.00%> (ø)

:mega: Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!


fix: Pass the name of the invoking class and desired command when an object has no authority.

Per @GabeBigBoxVR this was a useful fix for us!

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


find and fix error

Often fails this test

https://github.com/hyperledger/fabric/actions/runs/7493668256/job/20399967195
https://github.com/hyperledger/fabric/actions/runs/7483402876/job/20368656381
https://github.com/hyperledger/fabric/actions/runs/7462441029/job/20304890927

Failure occurs when waiting for the orderer to delete a channel
Here is an explanation: why they added the removal of the channel with orderer
I'll describe what's going on:

the orderer is in a constant cycle periodically performing the function
send a command to remove channel. It passes the following functions serveRemove, RemoveChannel (r.lock monopole is taken in this function), Halt (the actual removal of the channel is expected here)
let's return to the main loop, this is where the actual deletion should take place, it wants to execute the function SwitchFollowerToChain, but she can't, she needs a r.lock monopole.

==================================
The error in the raft tests is due to the struggle for monopoly control of r.lock in the SwitchChainToFollower and RemoveChannel functions.
RemoveChannel grabs monopoly control and waits for the channel to terminate. During termination, SwitchChainToFollower tries to grab monopoly control and fails.
Here is my variant of solving the error. If someone suggests a more correct and reddish way, it would be great.

can you perhaps write a test that reproduces this problem?

@tock-ibm do you want to take a look at this?

can you perhaps write a test that reproduces this problem?

I was wondering how to do it in a manageable way. I couldn't do it with integration tests. It's a complete asynchronous interaction.
Ideally, I need to suspend the peer in a certain place, send a command to remove the channel and continue the peer.
Here is a test test often crashes. For the last 2-3 months all errors in raft integration tests are the same error.
For example:
https://github.com/hyperledger/fabric/actions/runs/7493668256/job/20399967195
https://github.com/hyperledger/fabric/actions/runs/7483402876/job/20368656381
https://github.com/hyperledger/fabric/actions/runs/7462441029/job/20304890927

My solution works, but it's not pretty, I don't like it. But it fixes the error.

Here is an example of logs with normal operation
[e][OrdererOrg.orderer1] 2024-01-11 19:50:21.851 UTC 00ac INFO [orderer.common.follower] pullAfterJoin -> Pulling after join channel=testchannel
[e][OrdererOrg.orderer1] 2024-01-11 19:50:21.855 UTC 00ad INFO [orderer.common.follower] pullAfterJoin -> Pulled after join channel=testchannel
[e][OrdererOrg.orderer1] 2024-01-11 19:50:21.855 UTC 00ae INFO [orderer.common.follower] pull -> Block pulling finished successfully, going to switch from follower to a consensus.Chain channel=testchannel
[e][OrdererOrg.orderer1] 2024-01-11 19:50:21.855 UTC 00af INFO [orderer.common.follower] halt -> Stopped channel=testchannel

Here are the logs at the time of the error. After that orderer1 does nothing else. Channel removal is in progress (halt -> Stopped)
[e][OrdererOrg.orderer1] 2024-01-11 19:50:22.351 UTC 00ca INFO [orderer.common.follower] pullAfterJoin -> Pulling after join channel=testchannel
STEP: Removing channel from the first orderer 01/11/24 19:50:22.352
[e][OrdererOrg.orderer1] 2024-01-11 19:50:22.354 UTC 00cb INFO [orderer.common.follower] halt -> Stopped channel=testchannel
[e][OrdererOrg.orderer1] 2024-01-11 19:50:22.356 UTC 00cc INFO [orderer.common.follower] pullAfterJoin -> Pulled after join channel=testchannel
[e][OrdererOrg.orderer1] 2024-01-11 19:50:22.356 UTC 00cd INFO [orderer.common.follower] pull -> Block pulling finished successfully, going to switch from follower to a consensus.Chain channel=testchannel


Mono/Android - Integrity check failed in session loading

Hey there, I was trying to use this library in my small Android app but I got some issues.
Issue 1 - enum serialization on Mono.
I was able to solve myself the first issue I've ran into. I wanted to publish a branch and create a PR but I got http 403. So, here it is:

Not sure why, but GetTypeCode return different values when passing enum into it on Desktop/Windows and Mono/Android.
So, InitConnection.Flags enum on windows is TypeCode.Int32, but on Mono it's TypeCode.Object. This breaks initial calls and there is no way to sign in.
After I applied the fix above (which works on both mono and desktop) I'm able to sign in, confirm verification code and call other APIs. (I tried to send messages and it was working for me).
Issue 2 - session persistance
When I create a new instance of Client, and do LoginIfNeeded I'm always getting 'Integrity check failed in session loading' error. I set a app private directory as working directory and specified valid file through session_pathname config entry. It seems to write some data into it, but when it will read it it will find it incomplete. I tried to Dispose the client after successfull login thinking it will force to store the session on file system but it didn't helped much.
Is there a method I could call to store session data into the file?
I'm using VS2019, Mono 6.12, target android version = 11, Xamarin app (not xamarin forms).
Let me know if you need any additional info.

Thanks, I will try to look into it, but I'm not at all familiar with Mono/Android compilation

should be fixed in latest commit.
On a side note, if the key safety verification takes too long on a mobile device, you can reduce the value of WTelegram.Helpers.MillerRabinIterations to speed up that part.

It works for me now, thank you so much!


Feature/fix sign compare

Minor PR review changes
Fix unsigned int rounded in the loop

  /* bug. when m_processors.size() == 0, stop condition will be rounded to max int */
  for(v_uint32 i = 0; i < m_processors.size() - 1; i ++)  {
     ...
  }

merge with master

Closing this as discussed and agreed here. :)


Username must not be null

I tried to generate token and place UN and token in build.gradle but got errors for android. iOS seems to work fine. I even tried your libs and your github un and token but got same error.

maven {
url = uri("https://maven.pkg.github.com/trustwallet/wallet-core")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
}
}
set your github credentials

I used username and token after generating token but sill have same issue.


It´s possible to select half stars?

It´s possible to select half stars as option?

It is not possible at the time


VPN prevents any extensions to run

Type: Bug
When I connect my vpn, the python interpreters are not shown in the interpreter list. the python extension seems like to crash.
Extension version: 2023.4.1
VS Code version: Code 1.76.2 (ee2b180d582a7f601fa6ecfdad8d9fd269ab1884, 2023-03-14T17:55:54.936Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Sandboxed: No

Well I actually tested again today and it worked with no problem. But I'm doing some more tests to ensure that the problem is not comming up again. The VPN name is "VPN Unlimited" by "KeepSolid".
So I'd like to keep the issue open until I come up with the conclusion that the problem is vanished permanently.

Its been 2 weeks, lets close this, we can always re-open or create a new issue


Color selection for "Label name"

Feature Description
If we have color selection for "Label name" for an existing label or a new label it would be great.
Because when the background color is dark the visibility of the text is very low.
Screenshots
No response

It seems this capability is already there. But the default labels seems to have wrong color text. Ex: "help wanted" has dark green background but the text color still black and the visibility is low.