Different window resizing behavior via a Query vs via DefaultPlugins::set

Bevy version
0.10.1
Relevant system information

Os:

❯ cat /etc/lsb-release
DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=22.1.0
DISTRIB_CODENAME=Talos
DISTRIB_DESCRIPTION="Manjaro Linux"

Adapter:

AdapterInfo { name: "NVIDIA GeForce RTX 3080", vendor: 4318, device: 8710, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "530.41.03", backend: Vulkan }

What you did
Ran this isolated build with 2 different ways of changing the window information.
use bevy::{
    prelude::*,
    window::{PresentMode, WindowResolution},
};

fn setup(world: &mut World) {
    /*world.query::<&mut Window>().get_single_mut(world).unwrap() = Window {
        title: "test".into(),
        resolution: WindowResolution::new(1920., 1080.),
        present_mode: PresentMode::AutoVsync,
        prevent_default_event_handling: false,
        fit_canvas_to_parent: true,
        resizable: false,
        ..default()
    };*/
}

#[rustfmt::skip]
fn main() {
    let mut game = App::new();

    game.add_plugins(DefaultPlugins.set(WindowPlugin {
        primary_window: Some(Window {
            title: "test".into(),
            resolution: WindowResolution::new(1920., 1080.),
            present_mode: PresentMode::AutoVsync,
            prevent_default_event_handling: false,
            fit_canvas_to_parent: true,
            resizable: false,
            ..default()
        }),
        ..default()
    }))
    .add_startup_system(setup)
    .run();
}

What went wrong
Using DefaultPlugins::set vs setting the window in the setup system on startup results in different sized windows.
Additional information

log with setup system

❯ cargo run -- --nocapture
    Finished dev [unoptimized + debuginfo] target(s) in 0.10s
     Running `target/debug/bevytest --nocapture`
2023-04-25T11:12:29.999183Z  INFO bevy_winit::system: Creating new window "Bevy App" (0v0)
2023-04-25T11:12:29.999343Z  INFO winit::platform_impl::platform::x11::window: Guessed window scale factor: 1.1666666666666667
2023-04-25T11:12:30.068518Z  INFO bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce RTX 3080", vendor: 4318, device: 8710, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "530.41.03", backend: Vulkan }
2023-04-25T11:12:30.426431Z  INFO gilrs_core::platform::platform::gamepad: Gamepad /dev/input/event23 (Bigben Interactive Revolution Unlimited Pro Controller) connected.
2023-04-25T11:12:30.448212Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Linux 22.1.0 Manjaro Linux", kernel: "5.15.108-1-MANJARO", cpu: "AMD Ryzen 9 5950X 16-Core Processor", core
_count: "16", memory: "31.3 GiB" }
2023-04-25T11:12:30.504557Z  INFO bevy_input::gamepad: Gamepad { id: 0 } Connected
2023-04-25T11:12:36.185035Z  INFO bevy_window::system: No windows are open, exiting
2023-04-25T11:12:36.185717Z  INFO bevy_winit::system: Closing window 0v0

log with DefaultPlugins::set

❯ cargo run -- --nocapture
   Compiling bevytest v0.1.0 (/home/yogii/Repos/bevytest)
warning: unused variable: `world`
 --> src/main.rs:6:10
  |
6 | fn setup(world: &mut World) {
  |          ^^^^^ help: if this is intentional, prefix it with an underscore: `_world`
  |
  = note: `#[warn(unused_variables)]` on by default

warning: `bevytest` (bin "bevytest") generated 1 warning (run `cargo fix --bin "bevytest"` to apply 1 suggestion)
    Finished dev [unoptimized + debuginfo] target(s) in 1.08s
     Running `target/debug/bevytest --nocapture`
2023-04-25T11:12:52.324696Z  INFO bevy_winit::system: Creating new window "test" (0v0)
2023-04-25T11:12:52.324924Z  INFO winit::platform_impl::platform::x11::window: Guessed window scale factor: 1.1666666666666667
2023-04-25T11:12:52.410353Z  INFO bevy_render::renderer: AdapterInfo { name: "NVIDIA GeForce RTX 3080", vendor: 4318, device: 8710, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "530.41.03", backend: Vulkan }
2023-04-25T11:12:52.749768Z  INFO gilrs_core::platform::platform::gamepad: Gamepad /dev/input/event23 (Bigben Interactive Revolution Unlimited Pro Controller) connected.
2023-04-25T11:12:52.771363Z  INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Linux 22.1.0 Manjaro Linux", kernel: "5.15.108-1-MANJARO", cpu: "AMD Ryzen 9 5950X 16-Core Processor", core
_count: "16", memory: "31.3 GiB" }
2023-04-25T11:12:52.826548Z  INFO bevy_input::gamepad: Gamepad { id: 0 } Connected
2023-04-25T11:13:00.401158Z  INFO bevy_window::system: No windows are open, exiting

https://user-images.githubusercontent.com/83026177/234262291-1466fbdc-52e0-479a-aefb-d73d0b897921.mp4

2023-04-25T11:13:00.402037Z  INFO bevy_winit::system: Closing window 0v0

Video demonstrating issue https://cdn.discordapp.com/attachments/691052431974465548/1100382205336891422/window_bug.mp4

I can't reproduce when I try on Windows anyway. Seems to be an issue on Linux.

I'm really quite a bevy noob, but I have a hunch that this is related to:  https://github.com/bevyengine/bevy/issues/3275
Even though that  older issue is with WindowDescriptor, the symptoms rhyme with what I'm seeing when using window_modes and here.  Specifically that the queried window seems to point to the initial WindowPlugin and not the one transitioned too using Set, or in this case the query's mutable window.
It's as if it is stale. For instance window.width() and height() are returning the original window values.

I confirmed this also happens with X11 on my Linux with Nvidia GPU. And this doesn't happen on Wayland with the same system. I'm on Gnome Wayland, version 44.
录屏 2023-05-31 11-22-59.webm
When running Bevy x11 apps within Hyprland(https://github.com/hyprwm/Hyprland), this problem also exists.
And running other Winit x11 apps, this problem also exists:
录屏 2023-05-31 11-32-00.webm
It seems a bug from Winit.

I think I accidentally discovered the reason for this when trying to get wayland to work but I don't have my original setup to confirm. The winit backend and wgpu backend are mismatching. @VitalyAnkh Could you see if this still happens after you force the winit and wgpu backends to be the same? export WINIT_UNIX_BACKEND=x11 & export WGPU_BACKEND=x11 before running.

@iiYese Hi! What do you mean by "discovered the reason"? What happened after you set WGPU_BACKEND=x11? AFAIK the environment WGPU_BACKEND shouldn't be x11: https://github.com/gfx-rs/wgpu#environment-variables. WGPU_BACKEND should specify a graphics API, so it could be gl, vulkan, metal, dx11 or dx12. When you set WGPU_BACKEND=x11, the value is invalid then wgpu may choose a default backend.

@VitalyAnkh

What do you mean by "discovered the reason"?

As in I'm installing a new OS, was fixing some other bugs, accidentally mismatched the backends and noticed it looked like what I was seeing here. They "should" be the same but maybe something is off. As I said I don't have my original setup anymore so I can't confirm. You looked like you were able to reproduce so that's why I pinged you to see if you could verify.


Added cancel charge method

This pull request targets on adding Cancel Charge feature.
Important use case:

Cancel a charge before the default timeout
In some manual integration, to disable user from completing payment, canceling charge can be used.

Changes:

Added cancel crud method
Added cancel test

Note: Verification with actual api call is left. If someone can verify it, it would be really helpful.

Targets issues: #64 #51 #38 #12

wrote this small function that does the trick, let me know
const cancelCoinbaseCharge = async (chargeCode: string, apiKey: string): Promise<void> => {
  try {
    await fetch(
      `https://api.commerce.coinbase.com/charges/${chargeCode}/cancel`,
      {
        method: "POST",
        headers: {
          "X-CC-Api-Key": apiKey,
          "X-CC-Version": "2018-03-22",
        },
      }
    );
  } catch (error) {
    console.log("cancelCoinbaseCharge error:", error);
  }
};

Yes, this works. I am using same using node-fetch in express backend. You can remove X-CC-Api-Key header as it is not required. (It should be required though)

wrote this small function that does the trick, let me know
const cancelCoinbaseCharge = async (chargeCode: string, apiKey: string): Promise<void> => {
  try {
    await fetch(
      `https://api.commerce.coinbase.com/charges/${chargeCode}/cancel`,
      {
        method: "POST",
        headers: {
          "X-CC-Api-Key": apiKey,
          "X-CC-Version": "2018-03-22",
        },
      }
    );
  } catch (error) {
    console.log("cancelCoinbaseCharge error:", error);
  }
};

Yes, this works. I am using same using node-fetch in express backend. You can remove X-CC-Api-Key header as it is not required. (It should be required though)

real weird the api key isn't required, I shall keep it tho, just in case since it should be


Template compilation error: v-if branches must use compiler generated keys

Version
3.0.0-rc.5
Reproduction link
https://jsfiddle.net/wkahpb32/
Steps to reproduce

Open jsfiddle
Watch console output

What is expected?
No errors
What is actually happening?
Template compilation error: v-if branches must use compiler generated keys

This behaviour was appered in rc.5.
There are no breaking changes about it in changelog, so i suppose this is a bag?

This compilation error is intended. See https://github.com/vuejs/vue-next/issues/1712#issuecomment-665206103


 Can I stop this process?
10x

Unfortunately no, there is no existing mechanism to cancel operations. Some related work is suggested by @dveeden at https://github.com/github/orchestrator/pull/234, which talks about how operations would be rolled back. But to be able to identify a running operation on an orchestrator service (as opposed to command line) is much more complicated.
Once upon a time I had a similar incident and I really wanted the operation to stop and so I restarted the orchestrator service that was running the op. Don't do this at home.


Add DownloadFileShare Artifacts task

Is TPN for the DownloadFileshareArtifacts task up accurate?

Thanks for the info @stephenmichaelf , Is there an example I can follow for tasks?

@omeshp : https://github.com/Microsoft/vsts-tasks/blob/master/Tasks/UseRubyVersionV0/package.json#L25 has the @ types.

@madhurig Thanks madhuri, updated the task to use @types.


Update zio, zio-test, zio-test-sbt to 1.0.15

Updates

dev.zio:zio
dev.zio:zio-test
dev.zio:zio-test-sbt

from 1.0.9 to 1.0.15.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "dev.zio" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "dev.zio" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #273.


Removing repeating selector, use a variable reference

var stats = $('.stats') and use stats instead of using  $('.stats')  everywhere.

(From HN Comment)
Also instead of repeating repos[i] at multiple places, use a variable repo = repos[i] and then reference its properties.


replace=False preserve mask in StackView when updating frame number

useful for exploring 3D stacks

This will close issue #650

Looks good to me.


DynamoDBContext only has LoadAsync method, lacking Load

I added AWSSDK.DynamoDBv2 to my .net core project and tried to use DynamoDBContext but found it only has a LoadAsync method. Is this correct with .net core, or do I have to add an additional dependency?

Yes that's correct.  Is there a reason to use Load() over LoadAsync()?

Close as I believe this is answered.

@sstevenkang Why do the tutorials/documentation refer to a synchronous Load() if it doesn't exist?
http://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/DynamoDBv2/MDynamoDBContextLoadObject.html
http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DotNetDynamoDBContext.html

Load
Retrieves an item from a table. The method requires only the primary key of the item you want to retrieve.

By default, DynamoDB returns the item with values that are eventually consistent. For information on the eventual consistency model, see Read Consistency.
Note
To perform this operation in the background, use the LoadAsync method instead.

is there an example of LoadAsync()


How to use a unique cache server with the provider caching feature?

Hi all,
We've a workflows which runs multiple plans.
I'm wondering if that'd be possible to instantiate just once the caching server and how to do so?
What commands or tools allows to have a single server which stays up until I decide to shut it down?
Thank you and have a nice day.

set TERRAGRUNT_PROVIDER_CACHE_TOKEN and it should work the way you want.
https://github.com/gruntwork-io/terragrunt/issues/3076

Ok thanks @tinder-tder , I understand that setting this env var will prevent issues when using parallel runs.
However does it answers my question: How to run the cache server once (avoid to start listening on localhost each time a terragrunt command is ran).

Hey @Smana,
I understand that you want to be able to run the provider's caching server standalone and then just connect to it. I like that idea. I'll implement it as soon as I find time for this.

If this were possible, I imagine we could add such a caching server to the pods running atlantis for our repos. Would be really great in that use case too.

Hey folks!
There are a lot of considerations to be had in creating a new feature like a standalone cache server that requires careful consideration. Knowing what commands we'd have to introduce to Terragrunt, how the two would connect, etc all require documentation and a plan.
If possible, please propose a formal RFC for this behavior detailing all of those things so that there's a well designed feature added here. We may not be able to get to it immediately, but if the proposal details the work well, we can approve it and encourage a member of the community to submit a proposed implementation.
I'm going to close this ticket out for now, anticipating a follow-up RFC for a detailed proposal.
Thanks!


bug in color mode toggler

Hi, I found a bug in color mode toggler button, can I try to fix it?

I was checking site performance using lighthouse and found your site quite slow specially for mobile users.

I am suggesting some points which can be done to improve site perfomance:-

Compress the images and convert them in webP format.
Use a bundler to reduce the size of codebase
Also use CSS variables for colors which will be very easy to manage while toggling between light & dark

Please share video or gift of the issue after edits for better understanding.


feat: v2.3.0-beta.1 on main [hover-cards, timestamps, and DB changes]

What type of PR is this? (check all applicable)

[ ] 🍕 Feature
[ ] 🐛 Bug Fix
[ ] 📝 Documentation Update
[ ] 🎨 Style
[ ] 🧑💻 Code Refactor
[ ] 🔥 Performance Improvements
[ ] ✅ Test
[ ] 🤖 Build
[ ] 🔁 CI
[x] 📦 Chore (Release)
[ ] ⏩ Revert

Description

This PR adds the [hover-cards, timestamps, and DB changes].
Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings

Added tests?

[ ] 👍 yes
[x] 🙅 no, because they aren't needed
[ ] 🙋 no, because I need help

Added to documentation?

[ ] 📜 README.md
[ ] 📓 docs.opensauced.pizza
[ ] 🍕 dev.to/opensauced
[ ] 📕 storybook
[x] 🙅 no documentation needed

[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?

A few things to look into.

Popular should not be by stars but by how many open-sauced user starred the repo
Voting is returning a 409.


Issue Encountered with C200 Database in Sylph

Thank you for developing such a great software tool. I have encountered an issue when running the "Very Quick Start" example with the C200 database (gtdb-r220-c200-dbv1.syldb). The command consistently fails with the following error, whether on my laptop or HPC:
(sylph) miracle@RN-145-97-187-164 TZ % sylph profile gtdb-r220-c200-dbv1.syldb -1 *_1.fastq.gz -2 *_2.fastq.gz -t 2 > profiling.tsv
2024-12-12T17:31:24.945Z INFO  [sylph::contain] Obtaining sketches...
zsh: killed     sylph profile gtdb-r220-c200-dbv1.syldb -1 *_1.fastq.gz -2 *_2.fastq.gz -t 2
However, when I tried the same workflow with the C1000 database (gtdb_database.syldb), it worked without any issues.
(sylph) miracle@RN-145-97-187-164 TZ % sylph profile gtdb_database.syldb -1 *_1.fastq.gz -2 *_2.fastq.gz -t 7 > profiling.tsv
2024-12-12T18:37:52.381Z INFO  [sylph::contain] Obtaining sketches...
2024-12-12T18:37:59.732Z INFO  [sylph::contain] Finished obtaining genome sketches.
2024-12-12T18:48:25.956Z INFO  [sylph::contain] TZR_301_1.fastq.gz taxonomic profiling; reassigning k-mers for 333 genomes...
2024-12-12T18:48:26.792Z INFO  [sylph::contain] TZR_301_1.fastq.gz has 155 genomes passing profiling threshold.
2024-12-12T18:48:26.925Z INFO  [sylph::contain] Finished paired sample TZR_301_1.fastq.gz.
2024-12-12T18:48:26.925Z INFO  [sylph::contain] sylph finished.
I also attempted to sketch first and then profile with the C200 database, but the same "killed" issue occurred.
Could you please provide guidance on resolving this problem? Your assistance would be greatly appreciated.
Best,
Tianci

@tianci-zhao how much memory do you have? c200 requires ~ 13GB of RAM so may get killed on your laptop.
This is the only thing I can think of -- the c200 and c1000 databases should be almost the same. Let me know

Hi, thank you for your response.
I don’t think RAM is the issue, as my colleague and I tested this on two different HPC systems and encountered the same problem. I will try it again.


Always maintained ?

I search a maintain light c++ file watcher library.
Does this repo always maintained ?
Otherwise advice to choose a multiplatforms library is welcome

Note, that I am not the author. I created it here when it was not ye available on GitHub. Meanwhile, you can use https://github.com/jameswynn/simplefilewatcher from original author @jameswynn .


Can't install

When I try to install via go get I get the following error:
go/src/github.com/markuslindenberg/nginx_request_exporter/nginx_request_exporter.go:120: undefined: prometheus.RegisterOrGet
It looks like the current Prometheus client has removed the deprecated RegisterOrGet function. I would fix it and submit a PR but I don't know golang.
(I tried monkeying around with the obvious things but just dug myself a deeper hole.)

Thanks for the pull request, fixed.


Unable to resolve module @env using import method

Since issue https://github.com/goatandsheep/react-native-dotenv/issues/308 is closed I'm reporting the same issue here again as I have tried all feedback there and still my error is not resolved. Note that I do not use Expo and installed my react native app using react native cli and when I run npm run android I get the following error in terminal. My Android 14 phone is connected via USB to my macbook and I also can use .env using process.env, but if I use for example import {API_TOKEN} from '@env'; then I get the error you see below.
BUILD SUCCESSFUL in 12s
160 actionable tasks: 10 executed, 150 up-to-date
info Connecting to the development server...
info Starting the app on "R5CX533RM3X"...
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.brryapplication/.MainActivity }
 BUNDLE  ./index.js

error: Error: Unable to resolve module @env from /Users/sm/Sites/brry/application/src/components/common/Header.tsx: @env could not be found within the project or in these directories:
  node_modules
> 4 | import {API_TOKEN} from '@env';
    |                          ^
  5 |
  6 | const styles = StyleSheet.create({
  7 |   container: {
    at ModuleResolver.resolveDependency (/Users/sm/Sites/brry/application/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:138:15)
    at DependencyGraph.resolveDependency (/Users/sm/Sites/brry/application/node_modules/metro/src/node-haste/DependencyGraph.js:231:43)
    at /Users/sm/Sites/brry/application/node_modules/metro/src/lib/transformHelpers.js:156:21
    at resolveDependencies (/Users/sm/Sites/brry/application/node_modules/metro/src/DeltaBundler/buildSubgraph.js:42:25)
    at visit (/Users/sm/Sites/brry/application/node_modules/metro/src/DeltaBundler/buildSubgraph.js:83:30)
    at async Promise.all (index 6)
    at async visit (/Users/sm/Sites/brry/application/node_modules/metro/src/DeltaBundler/buildSubgraph.js:92:5)
    at async Promise.all (index 5)
    at async visit (/Users/sm/Sites/brry/application/node_modules/metro/src/DeltaBundler/buildSubgraph.js:92:5)
    at async Promise.all (index 2)

Package.json
{
  "name": "BrryApplication",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "lint": "eslint .",
    "start": "react-native start",
    "test": "jest"
  },
  "dependencies": {
    "@react-native-async-storage/async-storage": "^1.23.1",
    "@react-native-community/checkbox": "^0.5.17",
    "@react-navigation/native": "^6.1.18",
    "@react-navigation/native-stack": "^6.4.1",
    "@reduxjs/toolkit": "^2.2.2",
    "react": "18.2.0",
    "react-devtools": "^5.1.0",
    "react-native": "0.73.6",
    "react-native-input-select": "^1.3.6",
    "react-native-safe-area-context": "^4.9.0",
    "react-native-screens": "^3.30.1",
    "react-native-svg": "^15.2.0",
    "react-native-svg-icon": "^0.10.0",
    "react-native-svg-transformer": "^1.3.0",
    "react-native-svg-uri": "^1.2.3",
    "react-native-webview": "^13.8.4",
    "react-redux": "^9.1.0"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@babel/preset-env": "^7.20.0",
    "@babel/runtime": "^7.20.0",
    "@react-native/babel-preset": "0.73.21",
    "@react-native/eslint-config": "0.73.2",
    "@react-native/metro-config": "0.73.5",
    "@react-native/typescript-config": "0.73.1",
    "@types/react": "^18.2.6",
    "@types/react-test-renderer": "^18.0.0",
    "babel-jest": "^29.6.3",
    "eslint": "^8.19.0",
    "jest": "^29.6.3",
    "prettier": "2.8.8",
    "react-native-dotenv": "^3.4.11",
    "react-test-renderer": "18.2.0",
    "typescript": "5.0.4"
  },
  "engines": {
    "node": ">=18"
  }
}

babel.config.js
module.exports = {
  presets: ['module:@react-native/babel-preset'],
  plugins: [
    ['module:react-native-dotenv']
  ]
};

tsconfig.json
{
  "extends"<EMAIL_ADDRESS>}

As mentioned on #308 this other module works straight out of the box: https://github.com/lugg/react-native-config

I have created  a custom type decleration env.d.ts like this and then imported but then again, this is not a ideal solution, If any one come up with a nicer one, I'm all ears
declare module '@env' {   export const GOOGLE_API_KEY: string; }


Implement a TestConsole

This fixes #47

@rultor merge

@rultor merge

@aliceice OK, I'll try to merge now. You can check the progress of the merge here

@rultor merge

@aliceice Done! FYI, the full log is here (took me 1min)


Bug Report: Funkin.exe deleting itself

Whenever i compressed the zip files then try to launch the game almost all the time Funkin.exe will delete itself for no reason

also this is on Windows and the version im downloading is the 64x version

uhh I think thats probably your AV. Kade Engine doesn't have the functionality to delete itself.

oh thanks for telling me lol


desactivate drag n drop

Hi,
How can i desactivate the drag n drop function ?
I want just want using the queue function in fact.
Regards

Up please, no issue ?


add: softmaker-freeoffice-2024

Proprietary office suite; word processing, spreadsheets, presentations; limited feature free edition

Funny, the one test that failed, just failed to download the original deb, but all the others succeeded without issue... That should be a simple re-test or such.

Currently working on replaces/conflicts between softmaker-office-2024, softmaker-office-nx and softmaker-freeoffice-2024

This is now ready for review.

Too many things are failing. Disable them with incompatible.

This is now ready for review.

Hi. I have added some comments. Please, give it a look and apply for the 3 packages if it's OK for at least 1.


prevent call on nil when transaction was closed

Transaction can be closed from within the application (for example on Rack::Timeout error).
Then it tried to call http_response_code on nil.

, [2014-11-18T12:26:43.036412 #28322] ERROR -- : app error: undefined method http_response_code=' for nil:NilClass (NoMethodError) E, [2014-11-18T12:26:43.036617 #28322] ERROR -- : /home/bender/brain/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-<IP_ADDRESS>6/lib/new_relic/agent/instrumentation/middleware_tracing.rb:61:in call'
E, [2014-11-18T12:26:43.036738 #28322] ERROR -- : /home/bender/brain/shared/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:576:in `process_client'

Same problem here. I use the gem without touching objects in NewRelic module in my ruby code.
I'm not sure this patch fixes my problem, but it is worth merging it because it does not change behavior in correct situation.

Hi @yuku-t - we are planning to incorporate this change, but it's really only a safeguard against a cascade of an earlier failure. Specifically: if there's an exception during Transaction.start before we are able to set the current_transaction.
If you're hitting that case, there should be a bunch of backtraces an exception messages in your newrelic_agent.log file, and we'd very much like to see them if possible. Would you mind opening a ticket at support.newrelic.com and attaching your newrelic_agent.log file, along with any other details about the exceptions you're seeing? Getting that information would help us get to the root cause of the failure here. Thanks!

Hi @mikz - this change has been released as part of version 3.10.0 of the newrelic_rpm gem (I had to rebase against some of our more recent changes, so the commit hash changed, but you can see the commit here). I'm going to close this out since the change has now been merged. Thanks again for submitting this!


Pack Header Error when using QAOAProgram

Information
I want to teste the QAOAProgram from qiskit_optimization.runtime with current versions:

Qiskit Optimization version: 0.2.0
Qiskit version: 0.28.0
Python version: 3.7.11
Operating system: Linux

What is the current behavior?
I got this error:
---------------------------------------------------------------------------
error                                     Traceback (most recent call last)
<ipython-input-40-1f2a3143b054> in <module>()
     19                          measurement_error_mitigation=True)
     20
---> 21 runtime_result = runtime_qaoa.compute_minimum_eigenvalue(pauli)

10 frames
/usr/local/lib/python3.7/dist-packages/qiskit_optimization/runtime/qaoa_program.py in compute_minimum_eigenvalue(self, operator, aux_operators)
    158             mixer_operator=self.mixer,
    159         )
--> 160         return super().compute_minimum_eigenvalue(operator, aux_operators)

/usr/local/lib/python3.7/dist-packages/qiskit_optimization/runtime/vqe_program.py in compute_minimum_eigenvalue(self, operator, aux_operators)
    272             inputs=inputs,
    273             options=options,
--> 274             callback=self._wrap_vqe_callback(),
    275         )
    276         # print job ID if something goes wrong

/usr/local/lib/python3.7/dist-packages/qiskit/providers/ibmq/runtime/ibm_runtime_service.py in run(self, program_id, options, inputs, callback, result_decoder)
    233
    234         backend_name = options['backend_name']
--> 235         params_str = json.dumps(inputs, cls=RuntimeEncoder)
    236         result_decoder = result_decoder or ResultDecoder
    237         response = self._api_client.program_run(program_id=program_id,

/usr/lib/python3.7/json/__init__.py in dumps(obj, skipkeys, ensure_ascii, check_circular, allow_nan, cls, indent, separators, default, sort_keys, **kw)
    236         check_circular=check_circular, allow_nan=allow_nan, indent=indent,
    237         separators=separators, default=default, sort_keys=sort_keys,
--> 238         **kw).encode(obj)
    239
    240

/usr/lib/python3.7/json/encoder.py in encode(self, o)
    197         # exceptions aren't as detailed.  The list call should be roughly
    198         # equivalent to the PySequence_Fast that ''.join() would do.
--> 199         chunks = self.iterencode(o, _one_shot=True)
    200         if not isinstance(chunks, (list, tuple)):
    201             chunks = list(chunks)

/usr/lib/python3.7/json/encoder.py in iterencode(self, o, _one_shot)
    255                 self.key_separator, self.item_separator, self.sort_keys,
    256                 self.skipkeys, _one_shot)
--> 257         return _iterencode(o, 0)
    258
    259 def _make_iterencode(markers, _default, _encoder, _indent, _floatstr,

/usr/local/lib/python3.7/dist-packages/qiskit/providers/ibmq/runtime/utils.py in default(self, obj)
    127             value = _serialize_and_encode(
    128                 data=obj,
--> 129                 serializer=lambda buff, data: qpy_serialization.dump(data, buff)
    130             )
    131             return {'__type__': 'QuantumCircuit', '__value__': value}

/usr/local/lib/python3.7/dist-packages/qiskit/providers/ibmq/runtime/utils.py in _serialize_and_encode(data, serializer, compress, **kwargs)
     54     """
     55     buff = io.BytesIO()
---> 56     serializer(buff, data, **kwargs)
     57     buff.seek(0)
     58     serialized_data = buff.read()

/usr/local/lib/python3.7/dist-packages/qiskit/providers/ibmq/runtime/utils.py in <lambda>(buff, data)
    127             value = _serialize_and_encode(
    128                 data=obj,
--> 129                 serializer=lambda buff, data: qpy_serialization.dump(data, buff)
    130             )
    131             return {'__type__': 'QuantumCircuit', '__value__': value}

/usr/local/lib/python3.7/dist-packages/qiskit/circuit/qpy_serialization.py in dump(circuits, file_obj)
    853     file_obj.write(header)
    854     for circuit in circuits:
--> 855         _write_circuit(file_obj, circuit)
    856
    857

/usr/local/lib/python3.7/dist-packages/qiskit/circuit/qpy_serialization.py in _write_circuit(file_obj, circuit)
    871         num_instructions=num_instructions,
    872     )
--> 873     header = struct.pack(HEADER_PACK, *header_raw)
    874     file_obj.write(header)
    875     file_obj.write(circuit_name)

error: required argument is not a float

Steps to reproduce the problem
from qiskit_optimization.runtime import QAOAProgram
from qiskit_optimization.converters import QuadraticProgramToQubo
from qiskit_optimization.applications.max_cut import Maxcut

max_cut_quadr_program = Maxcut(graph).to_quadratic_program()
pauli, f = max_cut_quadr_program.to_ising()

optimizer = {'name': 'SPSA',
             'maxiter': 50}
backend = provider.get_backend('ibmq_qasm_simulator')

runtime_qaoa = QAOAProgram(
                         callback=None,
                         optimizer=optimizer,
                         initial_point=None,
                         provider=provider,
                         backend=backend,
                         shots=8192,
                         measurement_error_mitigation=True)

runtime_result = runtime_qaoa.compute_minimum_eigenvalue(pauli)

What is the expected behavior?
In the previous Qiskit version 0.27 it's working.
Suggested solutions
My idea is that there is some issue with my ansatz or PauliSumOp is not correct, but maybe someone has a better explanation.

Thanks for reporting!
This is due to the fact that the global phase of the QAOA ansatz is a ParameterExpression, which is unsupported by the QPY serialization which expects a float as global phase. We can fix this by updating the QAOA ansatz to ensure that the global phase is a float, or by making QPY support parameterized global phases.
I'll open a PR to fix this in Terra.

At least for the QPY part here it is fixable, but not without a format revision (the file format assume a float global phase: https://github.com/Qiskit/qiskit-terra/blob/main/qiskit/circuit/qpy_serialization.py#L69) which is fine, but it means we won't be able to fix it in a 0.18.x release. Until we can release a qpy v2 format that includes a provision for parameter expression global phase it might be best to cast it to a float (assuming it's bound at that point).

Done in Qiskit/qiskit-terra#6792. Should we open an issue to keep track of the desired feature for QPY?

Yeah, I think it warrants an issue we can track for the 0.19.0 milestone.

I fixed the qpy portion of this in: https://github.com/Qiskit/qiskit-terra/pull/6824 but it won't be released until 0.19.0 (it's not backportable)


Compilation Problem with Remix IDE Solidity

Why is it showing error during "Flashbot.sol" compilation?

Have you matched the solidity compiler version in remix?

Yes. It's '0.7.0' but asking to compile with 7.6 but even though its showing error for 'Import libraries and interfaces' and also with @openzeppelin/contacts.


Menu: Choose position of where menuitem drops

This, instead of this for example

Yeah, we are placing the menu from top left.
We have multiple stuff gathering up for the Menu now, so we'll take this into consideration on our next iteration for the Menu.
Thanks for the input! 🤘


Update .clabot

Purpose of this pull request
add codejtech

Select the type of change:

[ ] Minor Changes - Typos, formatting, slight revisions
[ ] Update Content - Revisions and updating sections
[ ] New Content - New features, sections, pages, tutorials
[ ] Site and Tools - Updates, maintenance, and new packages for the site, Gatsby, React, etc

thanks, @jpipkin1 !


add set voice and get voices

So that we can switch voices in settings.

Hi! I looked into implementing this but quickly got turned off by the complexity of the COM API. I see that there's a newer Rust package https://github.com/vstojkovic/sapi-lite that provides a much nicer abstraction for interacting with voice selections, but it uses the wimdows-rs Win32 bindings instead of winapi. Is there any way to use that package without swapping out all the current bindings?


Optional http

In addition to https://github.com/svenstaro/glsl-language-server/pull/43, this change conditionalizes the use of mongoose library. I was trying really hard to find a Linux distro that provides mongoose 6.9 but none of Fedora, Debian or Arch provide it.
Therefore I assume it is good to make it simple to disable HTTP support.

Furthermore, I considered updating your CI, but none of LTS Ubuntu releases contains glslang of the required version. Latest Ubuntu and possibly some released Fedora container do, let me know if you are interested in adding a CI for testing distro builds.


list.sort is unstable

AllCPython.test_sort should be failing but isn't. Probably need to add self.assertEqual(nerrors, 0) in TestBase.testStressfully.
May be related to https://github.com/IronLanguages/ironpython3/pull/536.

Seems to be caused by sequence comparisons not working as expected:
class Test(object):
    def __lt__(self, other):
        return False

assert not (Test(), 0) < (Test(), 1)


bower.json issue with jquery

Current setting does not work
"jquery": {
      "": "jquery.{js,min.js,min.map}"

however if I add dist/ it works
"jquery": {
      "": "dist/jquery.{js,min.js,min.map}"

I found that all the bower packages that are missing dist/ do not update when you run grunt task bower.
Also I found the hammer entry had additional problems.
It is missing dist directory, which I created and the name referenced hammer should be hammer.js
		"hammer": {
			"": "hammer.{js,min.js,min.map}"
		}

This works
		"hammer.js": {
			"": "dist/hammer.{js,min.js,min.map}"
		}

@madskristensen

I guess one has to keep on eye on both dist/ and without dist/


Different fonts

Is there some documentation on how to go about using another font with this library?
I wonder if some more modern fonts might avoid the need for so many font files. For example, another library just has latinmodern-math.otf and xits-math.otf available. (See e.g. https://github.com/kostub/iosMath/tree/master/fonts )
MathJax and KaTeX have also done some nice work on math fonts for on-screen display, and it could be worth including these. (I think they've just fattened up some AMS fonts.)
Again, great work with this library!

The Latin-modern-font family is based on the lm font package, we can use it, but there're some problems to deal with.
First, we should parse the *.tfm files to get the TeX font metrics (including extensions,  ligatures and kerning), but currently, for historical reasons, the project doesn't support to do this (the TFM files were pre-parsed to C++ primitive arrays, please check out the folder src/res/font, and the original TFM files can be found at here).
And dynamic load fonts are also can be done, but only XML format files are supported now (for convenience) (actually, the first version of the built-in TFM files represented as XML files).
Anyway, we can support this, but it is another huge project.

Excellent, thanks for those pointers. I'll have a go at it, perhaps with the MathJax fonts, when I get a chance. The rendering is already very nice in cLaTeXMath, so this is certainly low priority.


sigh No login data provided

I tried to create a lane that builds an internal version of the app. I use sigh to generate the provisioning profile. But I don't have a company wide email to use for the developer account. So I want each developer to use his own account.
I managed that by setting apple_id '' to empty. Sigh then prompts me for the login and the password if the password is not already in the keychain. But then sigh throws an error No login data provided.
Here's the output:
~/Documents/_Projects/BankDuLemon/iOS $ fastlane --trace accti8m
[14:26:21]: Successfully loaded custom action '/Users/emario/Documents/_Projects/BankDuLemon/iOS/fastlane/actions/marvinupload.rb'.
[14:26:21]: -------------------------------------------------
[14:26:21]: --- Step: Verifying required fastlane version ---
[14:26:21]: -------------------------------------------------
[14:26:21]: fastlane version valid
[14:26:21]: ------------------------------
[14:26:21]: --- Step: default_platform ---
[14:26:21]: ------------------------------
[14:26:21]: Driving the lane 'ios accti8m' 🚀
[14:26:21]: ------------------------------------
[14:26:21]: --- Step: increment_build_number ---
[14:26:21]: ------------------------------------
[14:26:21]: [SHELL COMMAND]: cd /Users/emario/Documents/_Projects/BankDuLemon/iOS && agvtool next-version -all
[14:26:21]: [SHELL]: Setting version of project BDL to:
[14:26:21]: [SHELL]: 35.
[14:26:21]: [SHELL]:
[14:26:21]: [SHELL]: Also setting CFBundleVersion key (assuming it exists)
[14:26:21]: [SHELL]:
[14:26:21]: [SHELL]: Updating CFBundleVersion in Info.plist(s)...
[14:26:21]: [SHELL]:
[14:26:21]: [SHELL]: Updated CFBundleVersion in "BDL.xcodeproj/../BDL WatchKit App/Info.plist" to 35
[14:26:21]: [SHELL]: Updated CFBundleVersion in "BDL.xcodeproj/../BDL WatchKit Extension/Info.plist" to 35
[14:26:21]: [SHELL]: Updated CFBundleVersion in "BDL.xcodeproj/../BDL/Info.plist" to 35
[14:26:21]: [SHELL]: Updated CFBundleVersion in "BDL.xcodeproj/../BDLTests/Info.plist" to 35
[14:26:21]: [SHELL]:
[14:26:21]: [SHELL]:
[14:26:22]: --------------------------------
[14:26:22]: --- Step: get_version_number ---
[14:26:22]: --------------------------------
[14:26:22]: [SHELL COMMAND]: cd /Users/emario/Documents/_Projects/BankDuLemon/iOS && agvtool what-marketing-version -terse1
[14:26:22]: [SHELL]: 1.0.2
[14:26:22]: ------------------
[14:26:22]: --- Step: sigh ---
[14:26:22]: ------------------
No username or password given. You can set environment variables:
DELIVER_USER, DELIVER_PASSWORD
-------------------------------------------------------------------------------------
The login information you enter will be stored in your Mac OS Keychain
More information about that on GitHub: https://github.com/fastlane/CredentialsManager
-------------------------------------------------------------------------------------
Username: <my email here>
[14:26:45]: Starting login
[14:26:45]: --------------------
[14:26:45]: --- Step: notify ---
[14:26:45]: --------------------
[14:26:45]: Variable Dump:
[14:26:45]: {:DEFAULT_PLATFORM=>:ios, :ENVIRONMENT=>nil, :PLATFORM_NAME=>:ios, :LANE_NAME=>"ios accti8m", :BUILD_NUMBER=>"35", :VERSION_NUMBER=>"1.0.2"}
[14:26:45]: No login data provided

+------+-------------------------------------+-------------+
|                     fastlane summary                     |
+------+-------------------------------------+-------------+
| Step | Action                              | Time (in s) |
+------+-------------------------------------+-------------+
| 1    | Verifying required fastlane version | 0           |
| 2    | default_platform                    | 0           |
| 3    | increment_build_number              | 1           |
| 4    | get_version_number                  | 0           |
| 5    | sigh                                | 22          |
| 6    | notify                              | 0           |
+------+-------------------------------------+-------------+

[14:26:45]: fastlane finished with errors
/Library/Ruby/Gems/2.0.0/gems/spaceship-0.5.3/lib/spaceship/client.rb:149:in `login': No login data provided (Spaceship::Client::NoUserCredentialsError)
	from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.5.3/lib/spaceship/client.rb:48:in `login'
	from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.5.3/lib/spaceship/portal/spaceship.rb:22:in `login'
	from /Library/Ruby/Gems/2.0.0/gems/spaceship-0.5.3/lib/spaceship/portal/spaceship.rb:77:in `login'
	from /Library/Ruby/Gems/2.0.0/gems/sigh-0.10.6/lib/sigh/spaceship/runner.rb:11:in `run'
	from /Library/Ruby/Gems/2.0.0/gems/sigh-0.10.6/lib/sigh/manager.rb:7:in `start'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.21.0/lib/fastlane/actions/sigh.rb:20:in `run'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.21.0/lib/fastlane/runner.rb:142:in `block (2 levels) in execute_action'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.21.0/lib/fastlane/actions/actions_helper.rb:37:in `execute_action'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.21.0/lib/fastlane/runner.rb:128:in `block in execute_action'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.21.0/lib/fastlane/runner.rb:127:in `chdir'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.21.0/lib/fastlane/runner.rb:127:in `execute_action'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.21.0/lib/fastlane/fast_file.rb:124:in `method_missing'
	from (eval):60:in `block (3 levels) in parse'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.21.0/lib/fastlane/lane.rb:36:in `call'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.21.0/lib/fastlane/lane.rb:36:in `call'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.21.0/lib/fastlane/runner.rb:51:in `block in execute'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.21.0/lib/fastlane/runner.rb:46:in `chdir'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.21.0/lib/fastlane/runner.rb:46:in `execute'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.21.0/lib/fastlane/lane_manager.rb:43:in `cruise_lane'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.21.0/lib/fastlane/command_line_handler.rb:31:in `handle'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.21.0/bin/fastlane:34:in `block (2 levels) in run'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:68:in `run!'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.21.0/bin/fastlane:123:in `run'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.21.0/bin/fastlane:129:in `<top (required)>'
	from /usr/bin/fastlane:23:in `load'
	from /usr/bin/fastlane:23:in `<main>'
~/Documents/_Projects/BankDuLemon/iOS $

Seems like it's the same issue as https://github.com/KrauseFx/sigh/issues/161
Did you try passing the Apple ID using environment variables? Each developer can then store the Apple ID to use in the .bashsrc to automatically fill-in the username.

Sorry for the troubles, I'm working on a re-write on the credentials manager, as I'm aware there are some issues with certain setups.

I did not try the env variable option. But I might look at it, if it becomes an issue. Right now, I'm the main guy who builds this particular project. It just would be nice, if it would work at some point in the future. But no hurry.

The only problem I found with .env is that when .env file is generated dynamically, the script that generates it needs to have the password stored as plain text, which is not ideal when we store that script in a source control repo. Guess I'll have to put the credential into another file that is not in the repo. Anyway I really hope local keychain works as expected since that should be the place to store things :)

Hey everyone, I am going to close this issue for now as it's been a while since there has been any activity. Please reopen the issue if any further problems come up and we will be happy to help! Thanks! :+1:


Not found contract after refresh

I have been created custom smart contract inside Contract menu. When I refres the page, the deployed smart contract is not showing up. How to find existing/deployed smart contract?

Currently, the app will not save the contract addresses when you navigate off the page so each time you return to the contracts page you must redeploy the contracts to interact with them. I think adding support for interacting with an existing contract and saving the contract addresses after deployment is a good idea.

Closing inactive issue


Switch vertical size

Hello
The size of my switch is vertically very huge. It stretches almost over a page.

I have the same issue. I placed my switch inside a panel heading. At first, I thought it was because of the panel... I placed it elsewhere and it stretched to the end of the .section. I am implementing this technology in my Rails 4 App through bootstrap-switch-rails gem.
I took @TechplexEngineer's advice. I located the gem's directory on my system and opened the following file: ./vendor/assets/stylesheets/bootstrap3-switch.css.scss. Since these edits were made within the gem itself, I will instead place these under my projects directory: app/assets/stylesheets/bootstrap_overrides.scss. My SCSS looks like the following after my edits:
.bootstrap-switch .bootstrap-switch-handle-on,
.bootstrap-switch .bootstrap-switch-handle-off,
.bootstrap-switch .bootstrap-switch-label {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-block !important;
  height: 29px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 20px;
}

I visited the official site's examples page. I inspected the first switch and got the following results.

I hope this helps everyone out, especially those using the rubygem version.
@LostCrew, we downloaded the gem, and inserted the following code into out view. I hope this helps explain the issue.
:javascript
  $("#onoffswitch").bootstrapSwitch();
  $("#onoffswitch").bootstrapSwitch.defaults.size = 'large';
  $("#onoffswitch").on('switchChange.bootstrapSwitch', function (event, state) {
    if ( confirm("Are you sure?") ) {
      update_mode_switch(!state);
    } else {
      $(this).bootstrapSwitch('state', !state, true);
    }
  });

As an update to my above comment... I wanted to use a small switch, so changing the height on that one line affected the switch. The width changed, but not the height. I decided to simply follow @TechplexEngineer's advice in full. Now the switch operates fine. I do not know how to make it "small" (we are using .onoffswitch as the class, not .bootstrap-switch), but that is for another day. Please reopen this issue and investigate it.

Far be it for me to complain about something that's free, but if I was offering this up as a download, I would probably make sure the actual tool works out of the box.  ...or at least provide some sort of a usage guide or instructions.


Anonymous signIn creates a new user on every start (Flutter, iOS, Android)

Describe the bug
Anonymous signIn creates a new user in auth.table everytime I restart the app. Same behaviour on iOS and Android
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Run this Flutter code on app start.
Supabase.instance.client.auth.signInAnonymously();

Expected behavior
I expected the behaviour to be like in Firebase, where there will only be one user per device with anonymous signin.
Screenshots
Here you can see a screenshot of the auth.users table

System information

Flutter 3.24.4
supabase_flutter: ^2.7.0

Additional context
Add any other context about the problem here.

Have the same issue with a react native app.


[android] webp first load is really slow on android

I realized recently that using webp makes the app hang for quite some time.
the dev sample actually shows the issue because it uses a mbtiles in webp format.
Switching to a png mbtiles fixes the issue.
To easily reproduce:

set the visible range of the webp layer to something like 5/12
initialize the map zoom to 13
once loaded zoom out.
the app will hang when trying to show the webp layer.

PS: i can send you the webp mbtiles.

Strange, as loading the tiles should happen in background and should not hang the app in any way. The referenced sample project is not using mbtiles, so not sure how I can check this.
In general slow webp performance seems quite plausible, especially when the SDK is compiled in debug mode (from Android Studio, for example). Also, currently architecture-specific code paths (SSE/AVX/NEON) are disabled for webp, I will try to enable them.

@mtehver sorry indeed in "your" version of the dev app i used http source for you to be able to use it.
I am using this :
 hillshadeSource =  new MBTilesTileDataSource("/storage/C0E5-1DEA/alpimaps_mbtiles/BDALTIV2_75M_rvb.etiles");

I can share that mbtiles if you want

@farfromrefug Thanks, that makes sense. If you could share the mbtiles, it would be great.

@farfromrefug I could not really reproduce the issue, at least in the sense that Webp based tiles cause hang/stuttering and Png based do not. Nevertheless, I found that Webp images were not using optimized code path (SIMD extensions) and I have now enabled this.
Perhaps the temporarily hanging is caused by 'on demand' shader loading and is dependent on actual device. This is something that can be improved by preloading shaders when MapView is initialized, but at the expense of startup time. So I am somewhat hesitant to implement this.

@mtehver thanks for looking into this. The weird thing is that i can clearly see a difference when switching from png mbtiles to webp mbtiles.
right now i switched to png mbtiles (event if 30% bigger) and i dont see any hickup anymore...
I think i can say i am 99% sure it comes from webp initialisation. It even feels like a lib init. Are we using platform lib or do you include a webp implementation?

@farfromrefug SDK uses its own set of image decoding libraries and does not rely on platform libraries. So lib-init causing this is possible, I have not really looked into Webp code.
Does this happen with 'release' build? By default the Android Studio dev project uses 'debug' build, which can be up to 10x slower than 'release'.

@mtehver indeed i confirm it seems to happen only on some devices. I dont see it on the emulator. Only on my Samsung a3 2017. Must be something with the native webp lib.
And yes happens both in release and debug.
I will try to find the time and update the lib. In fact all external libs are really old. Will try to update them all and see.

@mtehver still facing the issue with latest SDKs and updated libs.
Not sure if it comes only from webp. Not sure if it comes only from init.
I am wondering if the issue is not with the hillshade raster layer instead.
let me explain:

layer added but not visible => no issue very smooth
i make the layer visible the hillshade webp mbtiles layer take some times to show up and it hangs the app a little
when i zoom in to lower level i can also see hangs on zoom level change.
after that no more hang, even if i zoom in and out in total different places where i did not zoom before.

I will share the mbtiles soon (2gb though)

@mtehver here is the mbtiles with which i see the issue http://gofile.me/4pKGL/SYwYTHy5v

@farfromrefug I checked the uploaded file. It seems there is no index for tiles. Thus the first call to loadTile takes initially 2 seconds on my phone. I suggest creating the index using this statement:
CREATE UNIQUE INDEX tiles_index ON tiles (zoom_level, tile_column, tile_row)

When decoding actual webp in the tile, there seems to be no delay.
Regarding the hanging when zooming in/out, I do not have a good explanation for this. Perhaps uploading normal maps as textures / building mipmaps causes this. After the textures have been uploaded and cached, subsequent zooming should work without hanging.

@mtehver good catch thank you so much ! i generate my tiles with https://github.com/mapbox/rio-rgbify It misses that index! will change that thank you

@farfromrefug Perhaps this issue can be closed now? It seems it was not about webp, instead it was related to missing index in .mbtiles file.

@mtehver yes thanks!


yes-no toggle not working/updating new status

I added my internal column name as the actionInput but it still doesn't update with the new status. What am I missing?

Hello, @neobard !
I tried it on my end, and it worked fine.
Can you please double-check the following?

Is the column type set to YesNo?

Is the internal name of the column set in actionInput correct? You can find out the internal name of the column by following the steps in the image below.

And do you know how I can get a "Yes"  to update another field (like a choice field?

@neobard
Multiple fields can be updated at once. The following document may be helpful.
https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/formatting-advanced#set-multiple-field-values-of-an-item-using-customrowaction

Thank you so much. But I can't get it to work? Can you give me some guidance?

From: Tetsuya Kawahara @.>
Sent: Wednesday, 26 January 2022 5:16 PM
To: pnp/List-Formatting @.>
Cc: neobard @.>; Mention @.>
Subject: Re: [pnp/List-Formatting] yes-no toggle not working/updating new status (Issue #457)
@neobardhttps://github.com/neobard
Multiple fields can be updated at once. The following document may be helpful.
https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/formatting-advanced#set-multiple-field-values-of-an-item-using-customrowaction
—
Reply to this email directly, view it on GitHubhttps://github.com/pnp/List-Formatting/issues/457#issuecomment-1021928750, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXCYIRKZO7AFGJASICE77BDUX6NT7ANCNFSM5K6BSQVQ.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>

@neobard
Can you tell me the internal value of the choice column you want to update?
Also, is the choice column a single choice? Can you select more than one?


Support for Reiwa era

Hi
is there a plan to add support for Reiwa era in this library ?

Hi
Current version (1.1.3) supports Reiwa era.

Added description of Reiwa support in Readme.


why my vscode displays in every desktop on mac?

VSCode Version: 1.48.2
OS Version: macOS Catalina 10.15.6

Steps to Reproduce:

open vscode
open mission control

Does this issue occur when all extensions are disabled?: Yes
I don't know is it a new feature or a bug. And how to disable it?

Unclear to me if Electron provides a way to control this or if this is a bug.

I have not modified anything with my vscode. And I also try to uninstall and reinstall it with homebrew.

Unable to repro this with latest stable, can you check if this is still an issue ?


Audio Hiccup with VLC

There is an audio hiccup occurring randomly. The audio stops and skips for around half a second to a second and resumes. Other media players seem to be fine. It happens fairly frequently and it's getting ridiculously annoying.
I have tried downloading and reinstalling VLC, livestreamer and it doesn't seem to be helping.

Does this happen while using livestreamer/streamlink via the shell (without the Twitch GUI)?
I don't know why the GUI would be responsible for messed up video/audio rendering, unless it is setting some weird livestreamer/streamlink parameters which could cause this behavior.
The only thing I can tell you is to try livestreamer/streamlink on their own and then fix your issues from there. This doesn't sound like a GUI related issue.

Thank you for the fast reply! I'll try!


Added SpanFromWorkflowContext function

What was changed
Added a SpanFromWorkflowContext function to allow access to the DataDog span object from within a workflow.

Why?
This allows users to access the Span from within a workflow to (for example) add custom tags on the span.

Checklist

Closes #1701
How was this tested: New unit test added

Any docs updates needed? Would be nice, please let me know where I could add these if this is desired.

 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.

 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.


Math.ceil instead of Math.round in pie.js results in wrong Percentages > 100% total

Hi there, thank you for this great component!
You can reproduce this issue for example with the following numbers: Make a Pie Chart with 55, 21, 9, 15 which will result in 56%, 21%, 9%, 15% on the rendered chart.
Line 76 in pie.js is responsible, instead of
var visible_text = Math.ceil(percent) + '%';
it should be
var visible_text = Math.round(percent) + '%';
I would put in a pull request but unfortunately I don't have Git on this machine. I just thought I let you know in case somebody else runs into this issue.
Best
Chris

Chris, thank you for posting this.  I used these pie charts on a project almost a year ago and they contacted me today saying they changed the data and it was adding up to 101%.  Your post saved me a lot of time.

Hey, thank you for the message - glad I could help :)


Day modal should show how much time is available that day

This is related to #33 and a single PR should resolve both issues.

I didn't word the closing keyword correctly in #72, so this issue didn't close. It was resolved in #72.


Add account features to sync settings and plugins for multiple clients

Issue Type: Feature Request
Add account features to sync settings and plugins for multiple clients similar to Chrome
VS Code version: Code 1.35.1 (c7d83e57cd18f18026a8162d042843bda1bcf21f, 2019-06-12T14:30:02.622Z)
OS version: Windows_NT x64 10.0.17134

/duplicate https://github.com/microsoft/vscode/issues/2743


Fix LongGen accidentally using special cases when none are desired

Fixes #9933.
LongGen had a bug where callers passing an empty list or None for the special cases (i.e.: meaning they do not want any special cases) were actually getting the default special case list.  This fixes the issue by using a hidden sentinel value as the default argument and only using the default special cases when that default sentinel argument is the argument that is seen during init.

build


rebase rules should be able to support "merging" of arrays

In some cases will want to create custom ServiceAccount whose secret's section is filled in with list of secrets. At the same time cluster is also adding array items (token secrets). There should be a way to rebase that results in a merge?

this behaviour is more pronounced in kapp-controller usage of kapp since reconciliation will be continuous causing unnecessary churn.

Explicitly: any process that relies on kapp diff to determine the need for processing experiences churn.
#191 is another example of this.


Migration to Spring Boot 2.x.x

Spring Boot 2.x.x requires Spring Cloud 2.x.x
Details: http://projects.spring.io/spring-cloud/
New version of Spring Cloud OpenFeign was switched to new FeignClient namespace:
org.springframework.cloud.openfeign.FeignClient
Details: https://cloud.spring.io/spring-cloud-openfeign/
Generation results are not compiled.
I created my own rules for old plugin version and resolve this case.
But it will be nice to have it fixed in next build. Thanks.

We should reopen this as long as it is not in master.

It is on master. It wasn't part of 2.0.5 but will be a part of 2.1.0.

Is there any ETA when this is going to be released?