Usage / documentation

I am trying to re-create an airfoil from a list of points. i am struggling to find the correct approach. Its quite clear what the arguments of the function

pymead.utils.airfoil_matching.match_airfoil

is. But i dont know how geo_col must be defined
import importlib.resources
import numpy as np

from pymead.utils.airfoil_matching import match_airfoil
from pymead.core.geometry_collection import GeometryCollection

profilepoints_file = importlib.resources.files("ntrfc") / "data/turbine_cascade/profilepoints.txt"

point_cloud = np.loadtxt(profilepoints_file)
points2d = point_cloud[:,:2]

geocol = GeometryCollection()
match_airfoil(geo_col=geocol,target_airfoil="A0",airfoil_to_match=points2d)

  File "/home/malte/miniconda3/envs/NTRfC/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3505, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-2-a6f5a1e64f95>", line 1, in <module>
    runfile('/home/malte/PycharmProjects/NTRfC/examples/trypymead.py', wdir='/home/malte/PycharmProjects/NTRfC/examples')
  File "/home/malte/pycharm-2022.2.2/plugins/python/helpers/pydev/_pydev_bundle/pydev_umd.py", line 198, in runfile
    pydev_imports.execfile(filename, global_vars, local_vars)  # execute the script
  File "/home/malte/pycharm-2022.2.2/plugins/python/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
    exec(compile(contents+"\n", file, 'exec'), glob, loc)
  File "/home/malte/PycharmProjects/NTRfC/examples/trypymead.py", line 17, in <module>
    match_airfoil(geo_col=geocol,target_airfoil="A0",airfoil_to_match=points2d)
  File "/home/malte/miniconda3/envs/NTRfC/lib/python3.10/site-packages/pymead/utils/airfoil_matching.py", line 135, in match_airfoil
    res = scipy.optimize.minimize(
  File "/home/malte/miniconda3/envs/NTRfC/lib/python3.10/site-packages/scipy/optimize/_minimize.py", line 639, in minimize
    bounds = standardize_bounds(bounds, x0, 'new')
  File "/home/malte/miniconda3/envs/NTRfC/lib/python3.10/site-packages/scipy/optimize/_minimize.py", line 965, in standardize_bounds
    lb, ub = old_bound_to_new(bounds)
  File "/home/malte/miniconda3/envs/NTRfC/lib/python3.10/site-packages/scipy/optimize/_constraints.py", line 416, in old_bound_to_new
    lb, ub = zip(*bounds)
ValueError: not enough values to unpack (expected 2, got 0)

Apologies for the lack of documentation on this front; a lot of these features are relatively new. If you follow the steps in the new GUI-based documentation, you can create an airfoil with design variables that can be used to match. The name of this airfoil is what the "target_airfoil" argument should be. You can also create an airfoil without using the GUI, but there is not much documentation for that yet. Once the airfoil is created and in the geometry collection (either using GeometryCollection.add_airfoil() if using the API or GeometryCollection.set_from_dict_rep() if the airfoil was built in the GUI), then everything should work as expected. You will have to make sure to add some of the points or constraints to the design variable container.


configure shortcuts via .leptonrc

Hey I really like the project! Great work!
From my point, configuring the shortcuts were missing - so here we go.
I have added the possibility to override the shortcuts in the main.js by setting them in .leptonrc file.
This would also work for partial overrides.
e.g. in your < homeDir >/.leptonrc
partial
{
    "theme": "dark",
    ...
    "shortcuts": {
        "keyNewGist": "CMD+C",
        "keyDashboard": "CommandOrControl+D",
        "keyEditorExit": "CommandOrControl+Escape",
        "keySyncGists": "CommandOrControl+R"
    }
}

full
{
    "theme": "dark",
    ...
    "shortcuts": {
        "keyShortcutForSearch": "CMD+F",
        "keyNewGist": "CommandOrControl+N",
        "keyEditGist": "CommandOrControl+E",
        "keySubmitGist": "CommandOrControl+S",
        "keyImmersiveMode": "CommandOrControl+I",
        "keyAboutPage": "CommandOrControl+,",
        "keyDashboard": "CommandOrControl+D",
        "keyEditorExit": "CommandOrControl+Escape",
        "keySyncGists": "CommandOrControl+R"
    }
}

Awesome PR - love me some configuration options! :) @hackjutsu can we help to make this happen?

Yes, let's merge it. Thanks!

Loving this addition! Thanks @moia-sven-ole


appimage-run unable to find library

Describe the bug
I'm unable to run lrcget with NixOS intended way, with appimage-run
I was able to run it with $LD_LIBRARY_PATH but loading not libthai as I guess it should but from steam-run's libs.
Steps To Reproduce
Steps to reproduce the behavior:

Download appimage
Try to run it with appimage-run
set LD_LIBRARY_PATH to steam-run's libs (I've found one with fd libthai /nix/store )

Expected behavior
Able to appimage-run ./lrcget_0.2.1_amd64.AppImage
Screenshots
Downloads ➤ appimage-run ./lrcget_0.2.1_amd64.AppImage
lrcget_0.2.1_amd64.AppImage installed in /home/casual/.cache/appimage-run/81d13ad0c4c1c358a939bad4ab318fab443461ccd02f9e1061329c8d8a58ceb9
lrcget: error while loading shared libraries: libthai.so.0: cannot open shared object file: No such file or directory

Downloads ➤ nix-shell -p libthai
this path will be fetched (0.01 MiB download, 0.05 MiB unpacked):
  /nix/store/wc0w5s93apa8izklkh2dmmzg497x96ds-libthai-0.1.29-dev
copying path '/nix/store/wc0w5s93apa8izklkh2dmmzg497x96ds-libthai-0.1.29-dev' from 'https://cache.nixos.org'...

[nix-shell:~/Downloads]$ appimage-run ./lrcget_0.2.1_amd64.AppImage
lrcget_0.2.1_amd64.AppImage installed in /home/casual/.cache/appimage-run/81d13ad0c4c1c358a939bad4ab318fab443461ccd02f9e1061329c8d8a58ceb9
lrcget: error while loading shared libraries: libthai.so.0: cannot open shared object file: No such file or directory

[nix-shell:~/Downloads]$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/nix/store/7irqfyfwpab9gm9z5hgvg9xjn2ph0mh1-libthai-0.1.29/lib appimage-run ./lrcget_0.2.1_amd64.AppImage
lrcget_0.2.1_amd64.AppImage installed in /home/casual/.cache/appimage-run/81d13ad0c4c1c358a939bad4ab318fab443461ccd02f9e1061329c8d8a58ceb9
lrcget: error while loading shared libraries: libthai.so.0: wrong ELF class: ELFCLASS32

[nix-shell:~/Downloads]$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/nix/store/7qmljwan3x9k6mdfyx79h5z27fjy7cg1-steam-run-usr-target/lib/ appimage-run ./lrcget_0.2.1_amd64.AppImage
lrcget_0.2.1_amd64.AppImage installed in /home/casual/.cache/appimage-run/81d13ad0c4c1c358a939bad4ab318fab443461ccd02f9e1061329c8d8a58ceb9
Could not determine the accessibility bus address
Database file path: /home/casual/.local/share/net.lrclib.lrcget/db.sqlite3
*App runs normally*
...

Additional context
I guess it may be related to errors in lrcget itself but before making issue at their repo I want to consult with you as there is no similar issues at their repo.
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.5.8-zen1, NixOS, 23.11 (Tapir), 23.11.20231026.63678e9`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.17.1`
 - channels(root): `"nixos-23.05, nixpkgs"`
 - channels(casual): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Upstream issue: https://github.com/tauri-apps/tauri/issues/4930


Discuss naming conventions for traits

Go has one pretty clear convention for interfaces:

By convention, one-method interfaces are named by the method name plus an -er suffix or similar modification to construct an agent noun: Reader, Writer, Formatter, CloseNotifier etc.

In Rust we have some categories:

Imperatives like io::Write, fmt::Debug, clone::Clone
Agent nouns like iter::Iterator, hash::Hasher
Nouns like fmt::Binary, ops::Fn
Adjectives like marker::Sized, panic::UnwindSafe
Preposition like convert::Into, borrow::ToOwned

Are there any conventions we can distill out of this or is it a free-for-all?

Imperatives should be preferred, especially for traits that perform tasks, since they clearly convey the intention. io::Read, clone::Clone, serde::Serialize are completely unambiguous. For marker traits it doesn't really matter.
Having said that it's disappointing that the standard library chose Iterator over Iterate or otherwise.

Personally, I think Iterator and adjectives / agent nouns is right because traits describe classes of types as well as constraints / properties on types. Therefore, I think imperatives should not be preferred.

My feeling is that our trait names have nothing to do with imperatives/nouns/adjectives/etc. Instead, trait names adhere to the following rules:

If the trait has a single self-explanatory method (or a set of nearly identical methods), name it after the method: Clone, Hash, Default, Into, Write, ToOwned, AsRef, Extend.

If the trait has no methods, name it after what ability (Send, Sync, Copy) or property (UnwindSafe) its implementors have.

If the trait has a broader set of methods or a single method that is not self-explanatory, the name should describe either what its implementors are (Iterator, Hasher, Fn, Error, Future, Termination) or what ability/property they have (AsciiExt, fmt::Debug, fmt::Binary).

Hey @stjepang, your 1 and 2 points are basically the same idea so you could simplify and lump them together ("if the trait exposes mainly one primary method or property/ability, name it like that method or property..."  followed by examples).
Regarding point 3, describing what implementors are, pertains to the previous classification of agent nouns but you add simple nouns in the mix as well (AsciiExt, fmt::Debug and so on) which you call describing what property/ability an implementor has. I guess your point 3 is all about the nouns.
In my opinion you've only simplified the classifications a bit but it might detract from meaning which might impede understanding. I do think though that what should come out of this is a more formal explanation of the rules. The rules should be as simple as possible, but not simpler (to quote Einstein, hehe).

It might also be helpful to write down names of existing traits and fictional traits with slightly different names, then try to guess what would an implementor of each of those traits do. Here's a try...
Iteration over lists:

Iterate - can be iterated over
Iterator - iterates over something (*)
Iteration - is a single iteration or the result of one

Process termination:

Terminate - can be terminated
Terminator - terminates something
Termination - is the process of termination or the result of one (*)

Task execution:

Execute - can be executed
Executor - executes something (*)
Execution - is a single execution or the result of one

Writing bytes:

Write - can be written to (*)
Writer - can write to something

Value hashing:

Hash - can be hashed (*)
Hasher - can hash something (*)

Stack unwinding:

Unwind - can be unwound
Unwinder - can unwind something
Unwinding - the state or process of unwinding
UnwindSafe - is safe in the context of unwinding (*)

Sending values to other threads:

Send - can be sent (*)
Sender - can send something
SendSafe - is safe to send (same as 1.)

Unpinning values:

Unpin - can be unpinned (*)
Unpinner - can unpin something
UnpinSafe - is safe to unpin (same as 1.)

(*) traits that actually exist

Good idea, @stjepang, to gather some examples. That would definitely help.
From looking at the examples, I come to agree with the initial categorisation even more.
All the variants of some trait are either an attribute of the implementor, something it has intrinsically (like Hash, even if the hash is calculated at call time, it is an intrinsic internal property of the object), or some thing it can do (like a skill, a job, like a Hasher, a Sender, etc.).
All other examples feel the same way to me. I think @dtolnay started with a very good classification when he opened this issue. It only needs formalisation. Further examples of (possibly) non-existant traits help complete the formal definition of official naming schemes.

Is there an established pattern for third-party crates adding extension traits? For example, we're working on modernizing rust-timers which currently has a FutureExt trait. This obviously conflicts with the futures-rs builtin extension, which means that users who want to get both extension traits have to jump through hoops and rename one of them:
use ...::FutureExt;
use ...::FutureExt as FutureExtFromTimers;
Any thoughts on a naming convention to avoid this conflict? Or alternatively, is it best to just accept the name conflict and punt it to API users?
Here's a pared down example: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=e95429439d466dff254454f92851f845

@mmastrac that can be handled via unnamed imports
use futures::FutureExt as _;
use rust_timers::FutureExt as _;

(though that doesn't help with method name conflicts).


Dronekit Python Documentation

Hello, I was following "Dronekit.io" document page which is guide for python. 3 or 4 weeks ago, I couldn't open guide page. http://python.dronekit.io/guide/index.html
Did the guide page is transported? I can't find any information about this.

Thank you.

Duplicate #932
These also got mirrored. We're waiting on republishing to happen.

I'm really sorry. I couldn't find this issue. I'm closing issue.
Thank you hamishwillee.


Latest rswag-ui does not work

One needs to manually go to the rswag-ui directory and run yarn install before it would work.

@domaindrivendev: This is happening to me in the gem version of rswag-ui too: I'm not seeing the assets being installed and they all 404 when the page loads.
I can reproduce it just by doing:
rails new rswag-test
cd rswag-test
vim Gemfile # add 'rswag-ui'
bundle
rails g rswag:ui:install
rails s

If you visit http://localhost:3000/api-docs you'll get the blank screen with loads of 404 assets.

Additional to this: looking at the installed gem:
rails@384ad31499e5:/bundle/gems/rswag-ui-2.0.0$ ls
MIT-LICENSE  Rakefile  lib

The gemspec says to include node_modules but they're not included - is it possible the build of the version on rubygems happened in the wrong order?

@domaindrivendev is version 2.0.0 from latest master? The rswag-ui 2.0.0 pulled by bundler on my machine looks like the way it is before the rewrite (without package.json etc.)
What I meant when I created this issue is when specifying on Gemfile to pull rswag from this git repo, everything would not work without me manually going to the rswag directory and running yarn install there. Perhaps this could be made into a rake task to be run after installing rswag.

@indocomsoft The gemspec for rswag-ui isn't meant to include package.json but it is meant to include the node_modules (although no build failure if it's absent), so I think the problem is that whoever built the gem that was uploaded to rubygems.org didn't run npm before building it. Hopefully @domaindrivendev can confirm.

Ok sounds like an issue with CI/CD although I thought I’d pulled it down and checked. Will take a look later today. Thanks for your patience

@domaindrivendev perhaps try skip_cleanup: true as in https://docs.travis-ci.com/user/deployment/rubygems/#Releasing-build-artifacts? I suspect travis might clean up the node_modules directory:

After your tests ran and before the release, Travis CI will clean up any additional files and changes you made.

@domaindrivendev yup, I just tested, it should work. I made PR #125 to fix this issue.

Should be fixed as of version 2.0.3


Two recent package updates break the js in my project.

I have a large project with many included packages. Two of the recent updates:
<EMAIL_ADDRESS><EMAIL_ADDRESS>break the minimized js code. And 'gulp serve' works fine when uglify is not invoked. Using:
.pipe(plugins.uglify({mangle: false, compress:false}))
doesn't keep the js from being broken.
The breakage is different for the two packages:

angular-timezone-selector.js must have a ';' added at the end of the

angular.module('angular-timezone-selector'....)
.factory(...)
.factory(...)
.directive(...)
NOTE: however that this ';' is not needed by js.

awt-decode breaks something else... but what exactly is not clear.

I can provide the build file, the minimized js, etc..  if that would be helpful.  Since I am sure that the breakage is dependent on the exact files, etc...
The bower.json in my case is:
{
"name": "tracker2",
"version": "1.0.0",
"dependencies": {
"jquery": "~3.1.1",
"angular": ">=1.5.",
"angular-base64": "~2.0.5",
"angular-bootstrap-colorpicker": "~3.0.25",
"angular-cookies": ">=1.5.",
"angular-dragdrop": "~1.0.13",
"angular-md5": "~0.1.10",
"angular-moment": "~1.0.0-beta.6",
"angular-resource": ">=1.5.",
"angular-route": ">=1.5.",
"angular-socket-io": "~0.7.0",
"angular-timezone-select": "~1.1.3",
"angular-uri": "",
"angular-validation-match": "~1.9.0",
"bootstrap-sass-official": "~3.3.7",
"bootstrap": "~3.3.7",
"bootstrap-social": "~5.1.1",
"chosen": "~1.6.2",
"eonasdan-bootstrap-datetimepicker": "~4.17.37",
"es5-shim": "~4.5.8",
"font-awesome": "^4.6.3",
"json3": "~3.3.2",
"jstz": "https://github.com/bower-packages/bower-jstz.git",
"jwt-decode": "~2.0.3",
"lodash": "^4.16.4",
"moment": "~2.17.0",
"moment-timezone": "~0.5.10",
"ng-context-menu": "~1.0.1",
"ng-file-upload": "~12.2.13",
"ng-stats": "~2.5.4",
"power-assert": "~1.4.2",
"sprintf": "~1.0.2",
"textAngular": "",
"angular-timezone-selector": "~1.6.0",
"angular-strap": "^2.3.10",
"angular-animate": "^1.5.9",
"select2": "^4.0.3"
},
"devDependencies": {
"angular-mocks": ">=1.5.",
"angular-scenario": ">=1.5."
},
"resolutions": {
"angular": ">=1.5.*",
"lodash": "^4.12.0",
"moment": "~2.13.0",
"moment-timezone": "~0.5.4",
"font-awesome": "^4.6.3"
}
}

Please file minification bugs against the UglifyJS project. I don't have any control over the minification.


Swap Indexes API

🤖  API Diff

Summary
Introduce the POST- /swap-indexes endpoint.
The swap indexes API allows to atomically deploy several new versions of indexes without any downtime for the search clients.
This capability improves the development experience by allowing Meilisearch to fit better into the developer workflow.
The zero-downtime deployment workflow looks like this:

Search clients search on indexA.
The developer builds a new index indexB representing the new index version to deploy to the search clients.
When indexB is built and ready to be deployed, the developer sends an indexes swap request to Meilisearch for indexA and indexB.
indexB documents, settings, and tasks are swapped with indexA.
Search clients search on the updated indexA without experiencing any downtime.

Changes

Add the POST- /swap-indexes endpoint
Add a indexSwap task type
Add a indexes.swap API Key action
Add a duplicate_index_found error.
Update open-api.yml
Add Indexes Swapped event

user_agent property
swap_operation_number property

Out Of Scope
N/A

Attention To Reviewers
N/A

Misc

[x] Update OpenAPI specification file
[x] Update telemetry datapoints TODO

@irevoire Telemetry added


Update new brand logo for some screen

Describe the task
Update new brand logo on the screens

[x] Expand view
[x] Setting screen

Version test : http://<IP_ADDRESS>:8900/s/tKmmCfy99S7mKn4

[ ] Re-check padding for logo

Version test : http://<IP_ADDRESS>:8900/s/FgFzw4iRx2KR7td
Validation passed


Problem with detection of L.Browser.touch in some desktop browsers

It seems that the detection of browser support for touch-event isn't consistent on some desktop browser
On IE11 and Chrome it get set to true while on Firefox it is set to false
Monernizr (https://modernizr.com) use another methods to detect the presents of touch-event and it returns false for all tree browsers:
function() {
    var bool;
    if (('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch) {
      bool = true;
    } else {
      // include the 'heartz' as a way to have a non matching MQ to help terminate the join
      // https://git.io/vznFH
      var query = ['@media (', prefixes.join('touch-enabled),('), 'heartz', ')', '{#modernizr{top:9px;position:absolute}}'].join('');
      testStyles(query, function(node) {
        bool = node.offsetTop === 9;
      });
    }
    return bool;
  });

Duplicate of https://github.com/Leaflet/Leaflet/issues/5266, https://github.com/Leaflet/Leaflet/issues/3944 and others.
Not going to take action on this due to the recent work done in the pointerify branch, because worrying about PointerEvents is way more promising than worrying about TouchEvents


Configure appsync group and add examples

Description of your changes
This PR configures resources in the appsync group:

aws_appsync_api_cache
aws_appsync_api_key
aws_appsync_datasource
aws_appsync_function
aws_appsync_graphql_api
aws_appsync_resolver

Fixes: https://github.com/upbound/provider-aws/issues/70
Note: I couldn't configure aws_appsync_domain_name and aws_appsync_domain_name_api_association I reported an issue for this: https://github.com/upbound/provider-aws/issues/150
I have:

[x] Run make reviewable test to ensure this PR is ready for review.

How has this code been tested
aws_appsync_api_cache: https://github.com/upbound/provider-aws/actions/runs/3531760321
aws_appsync_api_key:
aws_appsync_datasource:
aws_appsync_function:
aws_appsync_graphql_api:
aws_appsync_resolver

/test-examples="examples/appsync/apicache.yaml"

/test-examples="examples/appsync/apikey.yaml"

/test-examples="examples/appsync/datasource.yaml"

/test-examples="examples/appsync/function.yaml"

/test-examples="examples/appsync/graphqlapi.yaml"

/test-examples="examples/appsync/resolver.yaml"

/test-examples="examples/appsync/apikey.yaml"

 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.

/test-examples="examples/appsync/apikey.yaml"

/test-examples="examples/appsync/apikey.yaml"

This PR is ready for review.

/test-examples="examples/appsync/apikey.yaml"

This Pr is ready for review @ulucinar


Definition for Last Activity Date is missing in the Teams Usage Document

Hi Team,
I noticed that the page does not define what constitutes to the Last Activity Date column in the Teams Usage Report Table. Please add the definition so that we know if includes only the activity done on the Teams or on the SharePoint site belonging to the Team as well.
Thanks,
Neeraj

Hi @wizneeraj hope all is well and thanks for the feedback. Could you please help me by linking the article you are referring to?

@scanum - Apologies for the delay. Here is the link.

@MikePlumleyMSFT - Thanks for updating the documentation. Does it consider the activity within Teams only and not on the SharePoint site connected to the Team?


[imdb] Improve title extraction and make thumbnail non-fatal

Please follow the guide below

You will be asked some questions, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your pull request (like that [x])
Use Preview tab to see how your pull request will actually look like

Before submitting a pull request make sure you have:

[x] At least skimmed through adding new extractor tutorial and youtube-dl coding conventions sections
[x] Searched the bugtracker for similar pull requests

What is the purpose of your pull request?

[ ] Bug fix
[ ] New extractor
[x] New feature

Description of your pull request and other information
Improves metadata extraction

This breaks the test.

@dstftw sorry about that. fixed now

Cherry-picked in 5b9d187cc6545c0c5209a4db5525b1023ca8ea41, thanks.


CFFL

CFFL

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_11_bl9hlll/clone/recipe/meta.yaml:15: pip_install_args: pip install should be run with --no-deps.
ERROR: /tmp/abs_11_bl9hlll/clone/recipe/meta.yaml:20: missing_wheel: For pypi packages, wheel should be present in the host section
ERROR: /tmp/abs_11_bl9hlll/clone/recipe/meta.yaml:36: missing_pip_check: For pypi packages, pip check should be present in the test commands
WARNING: /tmp/abs_11_bl9hlll/clone/recipe/meta.yaml:44: missing_description: The recipe is missing a description
ERROR: /tmp/abs_11_bl9hlll/clone/recipe/meta.yaml:44: http_url: http://github.com/ipazc/mtcnn is not https
ERROR: /tmp/abs_11_bl9hlll/clone/recipe/meta.yaml:44: missing_documentation: The recipe is missing a doc_url or doc_source_url
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_d6btt4hvgo/clone/recipe/meta.yaml:15: pip_install_args: pip install should be run with --no-deps.
ERROR: /tmp/abs_d6btt4hvgo/clone/recipe/meta.yaml:20: missing_wheel: For pypi packages, wheel should be present in the host section
ERROR: /tmp/abs_d6btt4hvgo/clone/recipe/meta.yaml:36: missing_pip_check: For pypi packages, pip check should be present in the test commands
ERROR: /tmp/abs_d6btt4hvgo/clone/recipe/meta.yaml:44: http_url: http://github.com/ipazc/mtcnn is not https
WARNING: /tmp/abs_d6btt4hvgo/clone/recipe/meta.yaml:44: missing_description: The recipe is missing a description
ERROR: /tmp/abs_d6btt4hvgo/clone/recipe/meta.yaml:44: missing_documentation: The recipe is missing a doc_url or doc_source_url
Errors were found


OSError: [Errno 13] Permission denied: '/data'

(venv) vyshnavi@vyshnavi-Inspiron-3558:~/Desktop/deep-voice-conversion-master$ python train1.py firsttrain
/home/vyshnavi/Desktop/deep-voice-conversion-master/hparam.py:11: YAMLLoadWarning: calling yaml.load_all() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
for doc in docs:
Traceback (most recent call last):
File "train1.py", line 78, in
train(args, logdir=logdir_train1)
File "train1.py", line 32, in train
logger.set_logger_dir(logdir)
File "/home/vyshnavi/venv/local/lib/python2.7/site-packages/tensorpack/utils/logger.py", line 149, in set_logger_dir
mkdir_p(dirname)
File "/home/vyshnavi/venv/local/lib/python2.7/site-packages/tensorpack/utils/fs.py", line 29, in mkdir_p
raise e
OSError: [Errno 13] Permission denied: '/data'
I am not able to understand what the issue is over here

(venv) vyshnavi@vyshnavi-Inspiron-3558:~/Desktop/deep-voice-conversion-master$ python train1.py firsttrain
/home/vyshnavi/Desktop/deep-voice-conversion-master/hparam.py:11: YAMLLoadWarning: calling yaml.load_all() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
for doc in docs:
Traceback (most recent call last):
File "train1.py", line 78, in
train(args, logdir=logdir_train1)
File "train1.py", line 32, in train
logger.set_logger_dir(logdir)
File "/home/vyshnavi/venv/local/lib/python2.7/site-packages/tensorpack/utils/logger.py", line 149, in set_logger_dir
mkdir_p(dirname)
File "/home/vyshnavi/venv/local/lib/python2.7/site-packages/tensorpack/utils/fs.py", line 29, in mkdir_p
raise e
OSError: [Errno 13] Permission denied: '/data'
I am not able to understand what the issue is over here
In default.yaml, you are not setting the right path.You should change the path containing your data.


How do I give sigh the password to log in?

I need to run sigh via sudo.
I can pass the username to sigh by the -u option.
How do I pass the password to the sigh command?
I tried putting it in environment var DELIVER_PASSWORD but I stil get a password prompt....
Any tips?

Passing DELIVER_PASSWORD should work:
DELIVER_PASSWORD="mypass" sigh -u<EMAIL_ADDRESS>

I've tried that but without success...

I'll try again tonight and post the resulte...

Oops. It works now... I probably did something wrong. Thanx

If anyone needs to run sigh with root privileges and needs to pass the password:
sudo DELIVER_PASSWORD="password" sigh --force -a com.company.productname -u "appleusername"

Why do you need sudo for sigh?

i also use sudo as i had some ruby permission errors come up in terminal

I run under the _www user 😉


Text background attribute should take the whole text line and spaces into account

text := 'abcde ou x y z' asRopedText
	glamorousCodeFont;
	fontSize: 40.
(text from: 2 to: 4)
	background: (Color blue alpha: 0.5).
(text from: 6 to: 8)
	background: (Color red alpha: 0.5).
(text from: 9 to: 14)
	background: (Color orange alpha: 0.5).
text

Works now via highlight: attribute


(MAINT) Update branching README to reflect plans re: 1.0.4

:+1: once we decide if "1.0.4" is what we intend to call the next release from stable...

Updated to 1.0.8 per discussion with @ahpook .


Refactor to new interceptor structure (if merged into Chopper)

Refactor oauth_chopper to make use of new interceptor structure.
This could probably also mean the oauth_chopper authenticator isn't strictly needed and 1 interceptor would be enough.

See https://github.com/lejard-h/chopper/pull/547


HTTP keep-alive connections are not used

Currently, it appears that ssbench workers will close the HTTP connections after reading the body. This is undesirable, as reusing connections would be of great benefit. The issue lies in geventhttpclient and how it handles parsing the messages. After reading the response, the connections are closed (geventhttpclient/response.py):
249     def _on_message_complete(self):
250         super(HTTPSocketResponse, self)._on_message_complete()
251         self.release()

The release method is conditioned on should_keep_alive and it does not appear that the flag for keep_alive connections is set.
The way the bug will manifest is that certain requests will never receive any results and there will be errors along the lines of "socket.error: EBADF: Bad file description". This occurs because we expect the connection to either be a keep-alive connection OR throw an error if it was already closed that is HTTPConnectionClosed. Since we get a socket error, it is actually propagated out.
Unfortunately, ssbench then attempts to reuse these connections, leading to further failures. The relevant code is in ssbench/worker.py:
116     @contextmanager
117     def connection(self, storage_url):
118         try:
119             hc = self.conn_pools[storage_url].get()
120             try:
121                 yield hc
122             except (CannotSendRequest, HTTPConnectionClosed,
123                     socket.timeout) as e:
124                 logging.debug("@connection hit %r...", e)
125                 try:
126                     hc[1].close()
127                 except Exception:
128                     pass
129                 hc = self.conn_pools[storage_url].create()
130         finally:
131             self.conn_pools[storage_url].put(hc)

Looking further into the problem, we are bumping into a bug in Swift, as well. It appears that connections are always closed after fulfilling a GET request. I do not believe this is intended and will be fixed upstream. However, in the meantime, we will need to workaround this issue by making sure we do not attempt to reuse closed connections.


Converge workflow for cohesive energy

This is a workflow for running the convergence test on cohesive energy. However, it is not actually an automatic 'converge' test. It simply running the cohesive energy evaluation on different ecutwfc/ecutrho value, and get results of relative value w.r.t the ecutwfc=200Ry. Just as what old SSSP did.
@zooks97 could you have time to look at this(this PR for cohesive energy evaluation is rather simple, but as for pressure and bands distance I might make lots of mistakes another eye on it would be great, I'll make other PR for those)? Meanwhile, we can think about how to make it integrated with aiida-optimize, I assume not only the tolerance for a setting window need to be set, but an option to set absolute criterion for relative value case is necessary.

@zooks97 I saw your email, thanks for the update!  Here are the similar workChains for pressure and phonon frequencies convergence evaluation. The scaffold of them is all similar, the difference is in the final postprocessing workchain step.


Implemented pod Volume support

This takes in the new Volumes field in the API and turns them into
real V1Pod Volumes on the pod object, ready for virtual-kubelet to
consume.
I've only implemented one kind of volume so far, the SharedContainerVolume,
which is the first one we will need to make it so containers can
share files and mounts (fuse sidecar, shared things in /etc, etc)
This only implements the Volume part, not the VolumeMount part (which
slots into the containers definitions). That will happen next.

Are you using an IDE for these updates? Formatting looks different than I would expect from codequality/Intellij_code_style.xml.

Are you using an IDE for these updates? Formatting looks different than I would expect from codequality/Intellij_code_style.xml.

I am, but I hadn't configured it to format-on-save. This is set now.

Alright I think I've address the review comments (thank you @tbak).
Still not 100% sure I have the builder format correct.

Finally worked through some build issues with @joshi-keyur and got this deployed to my devstack. Added one more commit where I forgot to include VolumeSourceMixing where it couldn't deserialize correctly.


[code quality] Please split into modules

I don't mind doing the work, but I really need the information from https://github.com/jam1garner/owo-colors/blob/master/src/colors/xterm.rs in a module and don't want to just copy the file.

@ctrlcctrlv Can you explain what you mean? How would you split xterm.rs?

Do you mean put xterm.rs into another crate that owo-colors depends on? It sounds reasonable if you'd like to contribute a patch, but I'd personally say it's easiest to just copy the file for now -- with a crate you'll likely have to do some macro work to let owo-colors define the trait impls.


In form validation messages are not appearing

BUG
Current Behavior

In form validation messages are not appearing

Desired Behavior

Error/success messages should appear

Steps to Replicate

Fill out fields on the account creation form and confirm that messages like "Hi Mike" aren't appearing

Why This Matters

Users are inputting incorrect information and not understanding why their entry does not work.

Countries Affected (optional)
OS/Browser (optional)
Relevant Screenshots + Links

@DFurnes is this a quick fix? Not sure the scale but someone on twitter was unable to create an account because they were entering their birthday as /02 vs. /2002 and had no idea what was going on.

Hmm, that's a bummer. Taking a look. 👀


Automated dependency bump with the latest Deno modules

Automated dependency bump with the latest Deno modules
Originally posted by @cchensh in https://github.com/slack-samples/deno-starter-template/pull/64

Automated dependency bump with the latest Deno modules
Originally posted by @cchensh in https://github.com/slack-samples/deno-starter-template/pull/64


Is there any way to compute mel spectogram ?

Hi im working on a project that requires computation of mel spectogram of wav files, Is there any way to do this in tch-rs like how you can do it with pythons torchaudio library

There is no support for torchaudio baked in directly in tch-rs (neither for torch-distributions). The idea would be to have additional crates provide this but I'm not sure anything like this already exists (if it does or if you build one, please point it out so that we can link to it from the readme).

There is no support for torchaudio baked in directly in tch-rs (neither for torch-distributions). The idea would be to have additional crates provide this but I'm not sure anything like this already exists (if it does or if you build one, please point it out so that we can link to it from the readme).

im working on a crate to compute mel spectogram using tch-rs when its done i will provide it here and is there any way to index a tensor like this in rust ?
f_pts[1:] - f_pts[:-1]
down_slopes = slopes[:, :-2]

Maybe you want use slice along the lines of:
f_pts.slice(0, 1, None, 1) - f_pts.slice(0, None, -1, 1)

The parameters are: slice(dim, start, stop, step).

Maybe you want use slice along the lines of:
f_pts.slice(0, 1, None, 1) - f_pts.slice(0, None, -1, 1)

The parameters are: slice(dim, start, stop, step).

yeah that works thank you

Closing this for now, feel free to re-open if further issues.


Minimal supplemental logging required.

This update in in response to https://issues.redhat.com/browse/DBZ-3521

Hi @truman303, could you modify the commit message to start with DBZ-3521?

Hi @truman303, I went ahead and modified the commit message and merged the changes into master.  Thanks!


[react-native-git-upgrade] Replacing git commands

this PR closes https://github.com/facebook/react-native/issues/11402;
Description
I was trying to update to the RN v0.39 for v0.40, but the patch generated by the react-native-git-upgrade is not applied. The solution in my case was to change both steps, creation of the patch and the apply.
Changes:

git diff HEAD~1 HEAD -> git format-patch --stdout HEAD~1..HEAD
git apply --3way -> git am --3way --signoff

Logs with error

using the cli (full log and changes in: https://gist.github.com/gullitmiranda/2f897eca84f4b5ec62e00ca7d0b50132)

$ react-native-git-upgrade --verbose
git-upgrade info Check for updates
git-upgrade info Using yarn 0.19.1
git-upgrade info Read package.json files
git-upgrade info Check declared version
git-upgrade info Check matching versions
git-upgrade info Check React peer dependency
git-upgrade info Check that Git is installed
git-upgrade info Get information from NPM registry
...
git-upgrade info Upgrading to React Native 0.40.0, React ~15.4.0-rc.4
git-upgrade info Setup temporary working directory
git-upgrade info Configure Git environment
git-upgrade info Init Git repository
Initialized empty Git repository in /private/var/folders/c6/swpkr1rj287b3j6p0wbpm7jr0000gp/T/react-native-git-upgrade/.gitrn/
git-upgrade info Add all files to commit
git-upgrade info Commit current project sources
...
git-upgrade info Create a tag before updating sources
git-upgrade info Generate old version template
git-upgrade info Add updated files to commit
git-upgrade info Commit old version template
[master 3987622] Old version
 20 files changed, 1037 insertions(+), 2353 deletions(-)
 rewrite android/app/src/main/res/mipmap-hdpi/ic_launcher.png (99%)
 rewrite android/app/src/main/res/mipmap-mdpi/ic_launcher.png (99%)
 rewrite android/app/src/main/res/mipmap-xhdpi/ic_launcher.png (99%)
 rewrite android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png (99%)
 rewrite android/settings.gradle (96%)
 rewrite ios/estiloria.xcodeproj/project.pbxproj (70%)
 rewrite ios/estiloria/Images.xcassets/AppIcon.appiconset/Contents.json (81%)
 create mode 100644 ios/estiloriaTests/Info.plist
 create mode 100644 ios/estiloriaTests/estiloriaTests.m
git-upgrade info Install the new version
...
git-upgrade info Generate new version template
git-upgrade info Add updated files to commit
git-upgrade info Commit new version template
...
git-upgrade info Save the patch in temp directory
git-upgrade info Reset the 2 temporary commits
HEAD is now at febd23f Project snapshot
git-upgrade info Apply the patch
error: patch failed: .flowconfig:28
Falling back to three-way merge...
Applied patch to '.flowconfig' with conflicts.
error: patch failed: .gitignore:40
Falling back to three-way merge...
Applied patch to '.gitignore' with conflicts.
error: patch failed: ios/estiloria.xcodeproj/project.pbxproj:90
Falling back to three-way merge...
Applied patch to 'ios/estiloria.xcodeproj/project.pbxproj' with conflicts.
error: patch failed: ios/estiloria.xcodeproj/xcshareddata/xcschemes/estiloria.xcscheme:3
Falling back to three-way merge...
Applied patch to 'ios/estiloria.xcodeproj/xcshareddata/xcschemes/estiloria.xcscheme' with conflicts.
error: patch failed: ios/estiloria/AppDelegate.m:9
Falling back to three-way merge...
Applied patch to 'ios/estiloria/AppDelegate.m' cleanly.
error: ios/estiloriaTests/estiloriaTests.m: does not exist in index
git-upgrade WARN The upgrade process succeeded but there might be conflicts to be resolved. See above for the list of files that have merge conflicts.
git-upgrade info Upgrade done
git-upgrade info Temporary working directory: /var/folders/c6/swpkr1rj287b3j6p0wbpm7jr0000gp/T/react-native-git-upgrade

try manual apply

$ git apply --3way /var/folders/c6/swpkr1rj287b3j6p0wbpm7jr0000gp/T/react-native-git-upgrade
error: patch failed: .flowconfig:28
Falling back to three-way merge...
Applied patch to '.flowconfig' with conflicts.
error: patch failed: .gitignore:40
Falling back to three-way merge...
Applied patch to '.gitignore' with conflicts.
error: patch failed: ios/estiloria.xcodeproj/project.pbxproj:90
Falling back to three-way merge...
Applied patch to 'ios/estiloria.xcodeproj/project.pbxproj' with conflicts.
error: patch failed: ios/estiloria.xcodeproj/xcshareddata/xcschemes/estiloria.xcscheme:3
Falling back to three-way merge...
Applied patch to 'ios/estiloria.xcodeproj/xcshareddata/xcschemes/estiloria.xcscheme' with conflicts.
error: patch failed: ios/estiloria/AppDelegate.m:9
Falling back to three-way merge...
Applied patch to 'ios/estiloria/AppDelegate.m' cleanly.
error: ios/estiloriaTests/estiloriaTests.m: does not exist in index

After fix
$ react-native-git-upgrade
git-upgrade info Check for updates
git-upgrade info Using yarn 0.19.1
git-upgrade info Read package.json files
git-upgrade info Check declared version
git-upgrade info Check matching versions
git-upgrade info Check React peer dependency
git-upgrade info Check that Git is installed
git-upgrade info Get information from NPM registry
git-upgrade info Upgrading to React Native 0.40.0, React ~15.4.0-rc.4
git-upgrade info Setup temporary working directory
git-upgrade info Configure Git environment
git-upgrade info Init Git repository
git-upgrade info Add all files to commit
git-upgrade info Commit current project sources
git-upgrade info Create a tag before updating sources
git-upgrade info Generate old version template
git-upgrade info Add updated files to commit
git-upgrade info Commit old version template
git-upgrade info Install the new version
git-upgrade info Generate new version template
git-upgrade info Add updated files to commit
git-upgrade info Commit new version template
git-upgrade info Generate the patch between the 2 versions
git-upgrade info Save the patch in temp directory
git-upgrade info Reset the 2 temporary commits
git-upgrade info Apply the patch
Applying: New version
Recorded preimage for '.flowconfig'
Recorded preimage for '.gitignore'
Recorded preimage for 'ios/estiloria.xcodeproj/project.pbxproj'
Recorded preimage for 'ios/estiloria.xcodeproj/xcshareddata/xcschemes/estiloria.xcscheme'
error: Failed to merge in the changes.
Using index info to reconstruct a base tree...
M	.flowconfig
M	.gitignore
M	ios/estiloria.xcodeproj/project.pbxproj
M	ios/estiloria.xcodeproj/xcshareddata/xcschemes/estiloria.xcscheme
M	ios/estiloria/AppDelegate.m
A	ios/estiloriaTests/estiloriaTests.m
Falling back to patching base and 3-way merge...
CONFLICT (modify/delete): ios/estiloriaTests/estiloriaTests.m deleted in HEAD and modified in New version. Version New version of ios/estiloriaTests/estiloriaTests.m left in tree.
CONFLICT (content): Merge conflict in ios/estiloria.xcodeproj/xcshareddata/xcschemes/estiloria.xcscheme
CONFLICT (content): Merge conflict in ios/estiloria.xcodeproj/project.pbxproj
CONFLICT (content): Merge conflict in .gitignore
CONFLICT (content): Merge conflict in .flowconfig
Patch failed at 0001 New version
The copy of the patch that failed is found in: /var/folders/c6/swpkr1rj287b3j6p0wbpm7jr0000gp/T/react-native-git-upgrade/.gitrn/rebase-apply/patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
git-upgrade WARN The upgrade process succeeded but there might be conflicts to be resolved. See above for the list of files that have merge conflicts.
git-upgrade info Upgrade done

Additional Information

react-native-git-upgrade: 0.2.4
react-native-cli: 2.0.1
react-native: 0.39.2
Platform: android / ios
Operating System: MacOS

cc @ncuillery

The format-patch and am commands are a wrapper around the bare commands diff and apply.
It's true that these commands (format-patch and am) supports binary files by default, but it comes with a lot of useless stuff for our use case. See http://stackoverflow.com/a/12240235/769006
I'd go with a simpler solution by adding the --binary option to the diff command. The apply command seems to handle binary files by default.


Refresh endpoint updates

@10thfloor is this issue around replacing the github actions based refresh with webhooks?

@schpet Yes this issue should be linked to the webhook PR.


feat: add config option to change response key

Features

Add a config option to allow the developer to change the response key that the debugger uses

This prevents naming conflicts with other libraries that also attach to the debug key in responses

Thank you so much! This is awesome 👍


More user-friendly outputs of the methods in User class of github module

Is your feature request related to a problem? Please describe.
I noticed that the methods in the Users class in the GitHub module don't give out personalized return messages for successful output and errors.
Describe the solution you'd like
I would like to see that the return statements of the methods are much more descriptive.
E.g., instead of :
return {
    "data": followers.text,
    "message": f"Followers found for user {self.username}"
}

It can be :
return {
    "response": "Success",
    "data": followers.text,
    "message": f"{followers.text} followers found for user {self.username}."
}

Hey @nikhil25803 !
I am a GSSoC'23 contributor. I want to work on this issue.
Please assign me this and add the required tags to this issue.


Add README for the fetch branches tool

This README will help to the user to understand of how to use
the fetch branches tool as well as it will provide a description
of the validation tags that should be used to run this tool.
Fixes #107
Signed-off-by: Gabriela Cervantes<EMAIL_ADDRESS>

branch_tests:https://github.com/GabyCT/tests/tree/topic/readmefetchtool

branch_tests:https://github.com/GabyCT/tests/tree/topic/readmefetchtool

The README has some good info.
I'm still not quite clear exactly where/when the tool runs or precisely why it is necessary to have for Semaphore - I suspect I have just missed the details on a thread somwhere, but maybe we can consider adding a section in the README to cover that if applicable. Clarifying why we have branch_xxxx as well might be nice - it feels like that is something that can be derived from which repo the PR has been placed on, so again, I suspect I am missing a subtlety (like cross-repo testing?), so we should probably consider elaborating on that in the README.

Thanks for the improvements @GabyCT . I suspect we'll still need @rcaballeromx or @iphutch to do a docs review.
lgtm

Oh, and of course now we've fixed the cri-o tests with #142 you will have to do a rebase and push to get semaphore to pass @GabyCT

@grahamwhaley thanks for the feedback, yes I will do the rebase

@chavafg changes applied

@iphutch changes applied

lgtm


mpvScripts.youtube-quality: add patch for supporting yt-dlp

Description of changes

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

Would be better to get #179743 merged

Oh I wasn't aware of that

https://github.com/NixOS/nixpkgs/pull/179743#discussion_r1065829334 is the blocker, let me know if you can solve it.


Clarify StatefulSet release notes

cc @erictune @foxish @kow3ns @janetkuo @kubernetes/sig-apps

I'm happy to merge if subject matter experts have taken a look.  I see two here, merge incoming.


The button does not work for related images

When you click on a related image on google, and then click the "view image" button, the original image that you clicked on in the google search appears, not the one that you switched to (the related one.)

Closing as a duplicate of #4. Thank you for reporting!


SSDB Uses too much Memory

Greetings,
I am running SSDB on my server, the data directory is about 1.9GB, all the items are simple KV records , the length of keys and values are about 10B and 20B
I found the the ssdb occupy a lot of memory about 2.7GB.
Here is the top result :
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
18212 root      20   0 2695m 2.4g 1.7g S  7.7 15.1 519:32.53 ssdb-server

Why the SHR field is so huge?
Here is my ssdb.conf:
# ssdb-server config
# MUST indent by TAB!

# relative to path of this file, directory must exists
work_dir = /data/ssdb/invite/var
pidfile = /data/ssdb/invite/var/ssdb.pid

server:
    ip: <IP_ADDRESS>
    port: 5001
    # bind to public ip
    #ip: <IP_ADDRESS>
    # format: allow|deny: all|ip_prefix
    # multiple allows or denys is supported
    #deny: all
    #allow: <IP_ADDRESS>
    #allow: 192.168
    # auth password must be at least 32 characters
    #auth: very-strong-password

replication:
    binlog: no
    # Limit sync speed to *MB/s, -1: no limit
    sync_speed: -1
    slaveof:
        # to identify a master even if it moved(ip, port changed)
        # if set to empty or not defined, ip:port will be used.
        #id: svc_2
        # sync|mirror, default is sync
        #type: sync
        #host: localhost
        #port: 8889

logger:
    level: error
    output: log.txt
    rotate:
        size:<PHONE_NUMBER>

leveldb:
    # in MB
    cache_size: 500
    # in KB
    block_size: 32
    # in MB
    write_buffer_size: 64
    # in MB
    compaction_speed: 1000
    # yes|no
    compression: yes

Hi, you can edit the config file by setting:
    cache_size: 200
    write_buffer_size: 16

Why is the SHR value so high?
is leveldb using mmap to access the sstable file?

+1
PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
25114 root      20   0 27.8g 9.9g 4.1g S  0.0 31.6   2956:28 ssdb-server
30361 root      20   0 5334m 4.3g  75m S  0.3 13.6  45:01.79 ssdb-server
the pid  25114 running v1.9.3
the pid  30361 running v1.8.2
leveldb:
# in MB
cache_size: 4096
# in KB
block_size: 32
# in MB
write_buffer_size: 64
# in MB
compaction_speed: 1000
# yes|no
compression: yes

I think there should be something wrong with the memory management, The value of SHR is larger than the data size(snappy compressed)
to ideawu, I have edited my configure file to change the values you gave, however, it did work, the RES and the SHR is almost same as before.

@yushengery The huge mem may be used by the compaction thread of leveldb, so u can try to set a smaller ' max_open_files ',  that may work for u.


Sub annual behavior CAPACITY CONSTRAINT

Hi everybody I hope you are fine and safe.
I am working on a sub annual model and I have noticed some issues regarding the duration_time parameters and its impact on some equations in the model.
I have taken a look at some old issues such as
https://github.com/iiasa/message_ix/issues/210
https://github.com/iiasa/message_ix/issues/191
https://github.com/iiasa/message_ix/issues/193
They are interesting but they do not adress my issue directly and even if they do there are no replies in two of them, maybe you have dealt with them internally but I believe you don't because it is still set as open.
Anyway talking about my issue, as far as I am concerned the equation CAPACITY_CONSTRAINT and MIN_UTILIZATION_CONSTRAINT (this one is being adressed on https://github.com/iiasa/message_ix/issues/371) might not be providing the expected output for sub annual models.
CAPACITY_CONSTRAINT(node,inv_tec,vintage,year,time)$( map_tec_time(node,inv_tec,year,time)
        AND map_tec_lifetime(node,inv_tec,vintage,year) )..
    SUM(mode$( map_tec_act(node,inv_tec,year,mode,time) ), ACT(node,inv_tec,vintage,year,mode,time) )
        =L= duration_time(time) * capacity_factor(node,inv_tec,vintage,year,time) * CAP(node,inv_tec,vintage,year) ;

CAPACITY CONSTAINT is active for every time since time set is among the equations variable sets, therefore I believe that include the duration_time parameter into the math may cause an issue. For instance, let's consider a model with two timeslices SUMMER and WINTER with a duration_time of 0.5 each one, a technology X with only mode 1 at node AUS in 2020. This technology must supply an annual demand of 10 hence its activity will be always 10 considering the relation ipt-otp = 1. Let's also assume it has a capacity facotr equals to 0.8.
COMMODITY_BALANCE_GT(AUS,COM,LVL,2020,year)...
0.5 * ACT(AUS,X,2020,2020,1,SUMMER) + 0.5 * ACT(AUS,X,2020,2020,1,WINTER)
> = 10
CAPACITY_CONSTRAINT(AUS, X, 2020, 2020, SUMMER)....
ACT(AUS,X,2020,2020,1,SUMMER) = 10 <=
0.5 (duration_time(SUMMER)) * 0.8(capacity_factor) * CAP
In this case CAP must be at least 25 in order to make possible the technology X provides an ACT of 10, however it is not clear the duration_time should be considered because CAPACITY_CONSTRAINT and capacity_factor have been defined in the time level, the balance is not being applied for the year level in which duration_time must be considered, I believe the parameter should be removed or maybe replaced by duration_time_rel like in the COMMODITY_BALANCE equation ( I did not think a lot about this option maybe it makes no-sense).
I am wondering wheter my thoguths are toward the right direction. I have applied some tests  removing the duration_time from CAPACITY_CONSTRAINT equation:
CAPACITY_CONSTRAINT(node,inv_tec,vintage,year,time)$( map_tec_time(node,inv_tec,year,time)
        AND map_tec_lifetime(node,inv_tec,vintage,year) )..
    SUM(mode$( map_tec_act(node,inv_tec,year,mode,time) ), ACT(node,inv_tec,vintage,year,mode,time) )
        =L= capacity_factor(node,inv_tec,vintage,year,time) * CAP(node,inv_tec,vintage,year) ;

In that case, if we take the same example and apply the modified equations the outcome will be:
**CAPACITY_CONSTRAINT(AUS, X, 2020, 2020, SUMMER)....
ACT(AUS,X,2020,2020,1,SUMMER) = 10 <=
0.8(capacity_factor) * CAP
In this case CAP would be bigger than 12.5 which I believe it makes more sense based on the ACT necessity, the capacity_factor and min_utilization_factor values.
In addition if we try to set capacity_factor equal to min_utilization_factor the modified equation works as good as the original one providing a CAP smaller than the old one. Let's assume min_utilization_factor = capacity_factor = 0.5. In that case based on the original equation CAP would be 40 and in the suggested one it would be 20 (considering the MIN_UTILIZATION_CONSTRAINT equation suggested in https://github.com/iiasa/message_ix/issues/371) which also makes more sense to supply a 10 ACT demand.
Sorry for the long explanation.
I hope my idea is clear enough to make you able to get my point and explain to me if I am missing something.
All the Best
Fabio A. Diuana.

@DIUANA thank you for openning this issue. As the first step to tacklae this, is it possible to answer this issue in two separate threads: one CAPACITY_CONSTRAINT and another one MIN_UTLIZIATION_CONSTRAINT? Or do you think they should be tackled together?

@behnam-zakeri I believe it is possible to addres them separetely but it is necessary to check if the results are fine and make sense. For example, the work around solution I applied has to be implemented together otherwise the results won't be good, for instance if cpacity_factor = min_utilization_factor both equations have to provide the same output value.

@DIUANA , I suggest you open another issue for MIN_UTLIZATION_FACTOR, and we follow that case separately. I agree that at the end all these should ake sense together. But it's easier to quote-reply only related to one block of equations here. SO, I continue with your first question related to capacity factor here.

@behnam-zakeri I have done it now.

This issue will be addressed through #509. Thanks a lot @DIUANA for reporting this, and please report if you have discovered additional issues.


Revert "Copy platform provider kubernetes under the plugin directory"

Reverts pipe-cd/pipecd#5250
We decide not to copy all platformprovider codes, but to copy each time it is needed.

Need DCO signoff 👀 cc @Warashi

Thanks for notifying me.
I signed off.


Add ability to inject environment variables to IssueCommand

Adds an optional parameter to the functions Issue*Command() that  allows a user to set append/overwrite/unset environment variables  before the command is issued. Included tests demonstrate usage.
Background:
For some providers like Rackspace, and OpenStack, the command line utilities provided by these need certain environments variables to be set to pass configuration data such as credentials, endpoints, regions, etc. Before this patch, PerfKitBenchmarker ran with the same environment variables which the process was started with, and did not provide a way to extend, overwrite, or unset environment variables.

Thanks for this! Is the expectation that the client will merge os.environ with desired environment variable updates before calling IssueCommand?

Yes, originally I was going to let the user  specify a dict for environment, and then just do the merge with os.environ automatically, but that makes it harder to fully unset an environment variable, I didn't want to have empty environment variables.
I decided to go with the same approach as subprocess.Popen(), which is a full env replace, not merge.

I decided to go with the same approach as subprocess.Popen(), which is a full env replace, not merge.
Sounds good - thanks for explaining.

Ready for review/merge

test this please.

Thanks, @meteorfox!

You are welcome. Thanks for merging!

One thing we need to start working on is a developers guide on the API's we
expose for adding new benchmarks, packages, etc.
I'll open an issue to track it so cool and helpful features can be exposed
more easily.
On Tue, May 5, 2015 at 1:16 PM, Carlos Torres<EMAIL_ADDRESS>wrote:

You are welcome. Thanks for merging!
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/pull/231#issuecomment-99208585
.

--
Anthony F. Voellm (aka Tony)
Google Voice:<PHONE_NUMBER>
https://www.google.com/voice/b/0?pli=1#phones
Blog: http://perfguy.blogspot.com/


ruffle-nightly: Add version 2021-12-09

Hi, I thought this program would be a good fit for the Versions bucket since there's no stable release yet. It has a CLI with options but it can also be run from the start menu where it prompts to select a file to open using default settings. Quite popular too - about 9k stars.

/verify

Thanks for fixing my messy regex! 😅


🐞 - File input "drag over" stops working when zone.js eventCoalescing is enabled

Playground Link
No response
Description

Enable zone.js enventCoalescing:
Standalone apps:

export const appConfig: ApplicationConfig = {
  providers: [
    provideZoneChangeDetection({
      eventCoalescing: true
    })
  ]
};

NgModule based apps:
platformBrowserDynamic()
  .bootstrapModule(AppModule, { ngZoneEventCoalescing: true })
  .catch(err => console.error(err));

Try to drag files over Taiga file input.
The file input style doesn't change

Angular folks say it's not an issue on their end: https://github.com/angular/angular/issues/54856
Can be reproduced on Chrome, but not on Firefox.
Angular version
17.3.0
Taiga UI version
3.70.0
Which browsers have you used?

[X] Chrome
[ ] Firefox
[ ] Safari
[ ] Edge

Which operating systems have you used?

[ ] macOS
[X] Windows
[ ] Linux
[ ] iOS
[ ] Android

Looks like we can be storing dataTransfer.files instead of the entire DataTransfer object. Should be an easy fix, would you like to contribute a PR? For both v3.x and main, file structure has changed a bit.

Ok, I can try to fix this.

v4 seems uneffected by the bug: https://github.com/taiga-family/taiga-ui/blob/7d00e9e82ff1a7f91b60b2c2e8b674397d324748/projects/kit/components/files/input-files/input-files.component.ts#L48
I have opened a PR for v3: https://github.com/taiga-family/taiga-ui/pull/7031


[CSGN-157] Update auction offer email

Addresses https://artsyproduct.atlassian.net/browse/CSGN-157
The new message looks like this:

LGTM 🏆


Buffer not being replaced when formatting with lisp function?

Context
I've decided to write a lisp function for formatting with spotless because I think the list format wouldn't allow "-PspotlessIdeHook=" and filepath to be concatenated together. But when I tried this method it would insert the formatted code right below the original code.
  (cl-defun spotlessApply+ (&key buffer scratch callback &allow-other-keys)
    (let* ((filepath (buffer-file-name buffer))
	   (process-connection-type nil)
	   (stderr-buffer (generate-new-buffer "*spotlessApply stderr*"))
	   (sentinel (lambda (p e) (progn
				     (funcall callback)
				     (kill-buffer stderr-buffer))))
	   (spotless-process (make-process
			      :name "spotlessApply"
			      :buffer scratch
			      :command `(,(concat default-directory "gradlew")
					 "spotlessApply"
					 ,(concat "-PspotlessIdeHook=" filepath)
					 "-PspotlessIdeHookUseStdOut"
   					 "--quiet")
			      :sentinel sentinel
			      :stderr stderr-buffer)))))
  (push '(spotless . spotlessApply+)
  	apheleia-formatters)

;; temporarily set default-directory to root of project
  (defun shou/fix-apheleia-project-dir (orig-fn &rest args)
    (let ((default-directory (vc-root-dir)))
      (apply orig-fn args)))
  (advice-add 'apheleia-format-buffer :around #'shou/fix-apheleia-project-dir)

Example
Before:
package com.watchtower.server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class ServerApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServerApplication.class, args); String hello = "world";
    }
}

After:
package com.watchtower.server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class ServerApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServerApplication.class, args); String hello = "world";
    }
}
package com.watchtower.server;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class ServerApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServerApplication.class, args);
        String hello = "world";
    }
}

But when I run the cli manually, it only produces the formatted code.

Note: I plan to fix the inability to concatenate filepath in the work for #212.

The scratch buffer starts with the file contents populated in it. You need to modify it in place, or erase it first. (Though if you erase it first then your formatter won't work when chained after another formatter.) If you just insert the formatted contents, you'll end up with two copies, as reported here.

Note: I don't think it's very straightforward to fix the filepath concatenation issue sadly, however you can use (apheleia-formatters-local-buffer-file-name) to access the filepath in most situations. There's some nuances around remote files but most of the time that should work fine for you.

Note: I don't think it's very straightforward to fix the filepath concatenation issue sadly, however you can use (apheleia-formatters-local-buffer-file-name) to access the filepath in most situations. There's some nuances around remote files but most of the time that should work fine for you.

Thanks your idea worked :)
(defun shou/fix-apheleia-project-dir (orig-fn &rest args)
    (let ((default-directory (vc-root-dir)))
      (apply orig-fn args)))
  (advice-add 'apheleia-format-buffer :around #'shou/fix-apheleia-project-dir)
  (push '(spotless . ((concat default-directory "gradlew")
		      "spotlessApply"
		      (concat "-PspotlessIdeHook=" (apheleia-formatters-local-buffer-file-name))
		      "-PspotlessIdeHookUseStdIn"
		      "-PspotlessIdeHookUseStdOut"
   		      "--quiet"))
	apheleia-formatters)
  (setf (alist-get 'java-mode apheleia-mode-alist)
	'(spotless))


SetPassword appears to no longer work

Hello, thanks for sharing these terraform examples.
In my tests, the admin password is not being set, which means one cannot do any provisioning from Terraform. Does this code still work for you? Do you have any knowledge of debugging the user_data script from within Windows after boot?
https://github.com/dhoer/terraform_examples/blob/master/aws-winrm-instance/main.tf#L73
Thanks!

Yes, that code is working for me on Amazon Windows 2012r2 AMIs.  It should also work for 2016 server as well.

What happens when you run this from command shell?
net user user_name  new_password

This should change the password as well as long a you have administrator privileges.

@dhoer Thanks for sharing the net user command - turned out my "password didn't meet the policy".
This issue should serve to help other people with similar problems in the future!


Remove env var

Type of change

[ ] Refactor
[ ] New feature
[x] Bug fix
[ ] Optimization
[ ] Documentation Update

Description

Related Tickets & Documents

Related Issue #
Closes #649

@rsevilla87 Do we really need this change? Does this issue still exist?


Implement /moddeclare for ROs+

Screencap:

Modnote kinda does the same thing. If the purpose is to gain attention, you could make modnote trigger a notification. I don't see the point of both.

Modnotes are sometimes hard to see/notice in a fast moving chat, which was my thoughts of "how can we make this more noticeable in case something is urgently important in a fast-moving chat, and this was the first idea that came to mind.

you could make modnote trigger a notification

I could, but not all modnotes are very important, so that would defeat the purpose of gaining attention if every modnote was treated with that same notification.

Did a mod ask for it?

Not "a mod" specifically, but I did ask Trickster earlier and he thought it might be useful in some situations.

If there isn't demand for it then there's no reason to add it.

There are reasons to do things even in the face of lack of demand, but I don't personally think this is necessary.


Fix issue where material instance name cannot be set without creating a default instance

This PR is related to PR #8147
After applying PR #8147, FMaterial::createInstance has an issue where it ignores the name passed as a parameter when mDefaultMaterialInstance is not set.
By applying this PR, a material instance can be assigned a name even if mDefaultMaterialInstance is not set.

@kunyoungparkk would you be able to sign the CLA so we can merge this change? Thank you!

@kunyoungparkk windows build is failing

@kunyoungparkk windows build is failing

I’m currently investigating the issue as the build is working fine in my local Windows environment. It might take some time to identify the root cause. I appreciate your patience, and I will provide an update once the issue is resolved.


Provide a way to coerce sync iterators to async

In some cases, sync iterators will end up returning promises. We need a way to express that they should actually be async iterators.

This can be done now using pull.


use own model - command line - documentation suggestion

Dear @carsen-stringer ,
From the documentation I wasn't sure if it's possible to use the command line with a newly trained cellpose model.
In other words, it was not clear to me if PRETRAINED_MODEL can only be nuclei or cyto ? or if it can be something else , eg the path to another model file.
I used ZeroCostDL4Mic notebook to train a model and I wanted to test it locally. After a couple of test I realized that it is possible, one just has to make sure that it is the right kind of network (here I have to enforce --mxnet)
Thank you again for the great tool and for your efforts!
Best,
Romain

thanks for pointing this out, you can use a path too! I've added that to the docs


Wrong FilteredStreamRulePredicate#and(FilteredStreamRulePredicate) implementation

And operator in the Twitter query syntax looks like a single space " ", not " AND ".
" AND " is interpreted as "filter tweets containing AND keyword"
See Boolean operators and grouping section.
Also see a warning here:

An uppercase 'AND' will be interpreted as a keyword. For AND logic, use a single whitespace ' ' between clauses

Thanks for the feedback ! @rzo1 could you submit a Pull Request to fix it please ?

Thanks for the heads up @oleg-grigorijan - cool, that someone is using it. @redouane59 I just submitted a PR, which replaces the AND with the   to respect twitter query syntax.

Thanks for your speed 👍🏻


fix: Firefox > 77 not checked for auto rotation

Firefox since 77 has also supported the "helpful" new auto rotation the WHATWG added. This checks for the Firefox version next to the Chrome check.

Hello, thanks for the PR and sorry for the late response. I don't have that much time so I'm always trying to batch a few bugfixes together :D
I just released 5.0.4


Support SLI and/or CrossFire for GPU plugin

Is your feature request related to a problem? Please describe.
When running the GPU plugin, only one of my two graphics cards (running in SLI) are utilized, thus capping the full potential of their use, and generally causing greater use for one card without making use of the other whatsoever.
Describe the solution you'd like
For configurations running SLI (for nVidia) or Crossfire (for AMD), I'd like to be able to make use of both/all running graphics cards.
Describe alternatives you've considered
N/A
Additional context
N/A

https://www.geeks3d.com/20101209/tips-how-to-enable-sli-and-crossfire-support-for-opengl-applications/ looks like we cant support this

And as I stated in my reply already, this cannot be implemented


using Images INFO: Precompiling module Images... ERROR: LoadError: LoadError: Images not properly installed. Please run Pkg.build("Images") then restart Julia.

It is really strange. The Image package was fine about two weeks ago, when I typed using Images, it gives some compilation error I did not have before. It exists even after I re-install Julia.
 INFO: Precompiling module Images... ERROR: LoadError: LoadError: Images not properly installed. Please run Pkg.build("Images") then restart Julia.
I have no clue how to resolve this..

Did you try what it asks you: run Pkg.build("Images")? If so, what's the output of that?

Yes. I have something like this...
INFO: Building Homebrew HEAD is now at 31a0c7a opus: audit fixes HEAD is now at 4a13095 Merge pull request #85 from staticfloat/staging INFO: Building Images ==> Installing imagemagick from staticfloat/juliadeps Error: undefined method <' for nil:NilClass`

Images doesn't depend on ImageMagick anymore; in fact, Images doesn't even have a build script anymore.


private APN

I am in private APN and Ionic plugin cordova-plugin-app-update return {code: 405, msg: "network error"} on url https://<IP_ADDRESS>/update-mobil/update.xml
But in web browser url https://<IP_ADDRESS>/update-mobil/update.xml is ok and return xml
<update>     <version>200</version>     <name>APK Name</name>     <url>https://<IP_ADDRESS>/update-mobil/android-debug.apk</url> </update>
what´s wrong? How can i debug where is problem?
Thank you for your answer

The problem with the SSL certificate on the server. Solved


readme formatting fix

A pipe needed escaping. Thanks for the cookbook -- great stuff!

Great catch! Thanks so much!


Custom Session Directory is not set.

Hi and thanks for the plugin!
I tried to set a custom session directory, but it does not seem to work and I get the error that the directory is not existing (referencing to the default "session" dir instead of my set "sessionS" dir (which exists and is used by other plugins)).
I mainly just copied and paste the config:
require('telescope').load_extension('sessions_picker') require'telescope'.setup {   extensions = {     sessions_picker = {       sessions_dir = vim.fn.stdpath('data') ..'/sessions/',     }   }, }
I tried some debugging, but I'm not good in Lua and just get gibberish when I tried to "print_r(ext_config)" in your setup function

Hi chris. Are you sure your sessions dir exist? What if you setup addon path as string, rather than using fn.stdpath ?
like this: '/home/user/.local/share/nvim/session'

Hi @JoseConseco and thanks for your feedback!
Unfortunately it does not seem to work. Your Plugin seems to register just fine with telescope (":Telescope sessions_picker" is there and gives me the error of missing directory)
I also tried an appending / for the directory (little mismatch between doc and code (local sessions_dir = vim.fn.stdpath('data') ..'/session/'))
This is my init.lua:
use {
	'JoseConseco/telescope_sessions_picker.nvim',
	config = function()
		require('setup/session_picker')
	end
}

and in ./lua/setup/session_picker/init.lua:
require('telescope').load_extension('sessions_picker')
require'telescope'.setup {
  extensions = {
    sessions_picker = {
      sessions_dir = '/Users/me-user/.local/share/nvim/sessions',  -- same as '/home/user/.local/share/nvim/session'
    }
  },
}

The directory is definitely up and running (used by Shatur/neovim-session-manager" as Session Manager).
Any other hints? I'm on Mac with nvim 6.1 via https://github.com/qvacua/vimr
Bye the way, I noticed that I had to do ":PackerCompile" in order to install and uninstall your plugin correctly ... not sure what that is about.

@JoseConseco  I am facing this issue as well.  I really want to use this plugin as it fits my workflow. but this issue is a bit of a blocker

@JoseConseco I am facing this issue as well. I really want to use this plugin as it fits my workflow. but this issue is a bit of a blocker. I am on Ubuntu 20.04 and neovim 7.0

I see the problem(s) now..

The plugin has issue if we use bash variables. So variable substitution does not happen
A trailing slash needs to be added.

Here is what worked for me:
local dirForSessions='/home/chetan/nvim-sessions/'
require('sessions').setup({
   events = { "BufEnter" },
   session_filepath = dirForSessions
})

require('telescope').setup {
  extensions = {
   sessions_picker = {
     sessions_dir = dirForSessions
   }
  }
}

But the following does not work:
local dirForSessions='/home/chetan/nvim-sessions'
require('sessions').setup({
   events = { "BufEnter" },
   session_filepath = dirForSessions
})

require('telescope').setup {
  extensions = {
   sessions_picker = {
     sessions_dir = dirForSessions
   }
  }
}

and neither does the following work:
local dirForSessions='$HOME/nvim-sessions/'
require('sessions').setup({
   events = { "BufEnter" },
   session_filepath = dirForSessions
})

require('telescope').setup {
  extensions = {
   sessions_picker = {
     sessions_dir = dirForSessions
   }
  }
}

I think bash variable subsitution should work, that will make the configuration portable.

Ok, do you have idea how to implement 'bash substitution'?
For reference for other people this is how config should look like:

@JoseConseco I'm guessing that this is where the config should be loaded. With a setup like the one in your screenshot the sessions_dir argument is nil. Have you tried changing sessions_dir to something else in your config, because I think it's always set to the value in your screenshot.


[SMALLFIX] Removed unused constants

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/Tachyon-Pull-Request-Builder/5942/
Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/Tachyon-Pull-Request-Builder/5946/
Test PASSed.

those constants are used in integration module, if you use developer profile for your maven project (and we should encourage people doing so).
Close this PR for now.


Deprecated calls async_add_job

Detected that custom integration 'posten' calls async_add_job, which is deprecated and will be removed in Home Assistant 2025.4; Please review https://developers.home-assistant.io/blog/2024/03/13/deprecate_add_run_job for replacement options at custom_components/posten/init.py, line 56: hass.async_add_job(

Any clue if add_job will work out of the box?

I will patch this asap! On holiday right now but ill setup a testing Home Assistant to make sure

I will patch this asap! On holiday right now but ill setup a testing Home Assistant to make sure

Any progress on this?

https://github.com/BobTheShoplifter/HomeAssistant-Posten/commit/86daf271773c5580631cb4496a6e932c48efb4e2
Tror dette skal løse det

https://github.com/BobTheShoplifter/HomeAssistant-Posten/releases/tag/v0.1.9 Should fix this


image_picker v0.8.6 - Choosing "Selected Photos" permission shows all photos not the selected one

Opened App settings
Chose "Selected Photos"
Selected Edit Selected Photos and mark the selection that need to be shown
Went back to App, opened File Picker, Select from Photo Library and It shows all photos not the selected ones.

I am facing this problem.

Hello @igupta72. Thank you for filing this issue. Can you please provide the following information?

A complete and minimal, reproducible example. Ideally, a single main.dart file that can be run directly.
The output of flutter doctor -v
The output of flutter run -v

Please provide the information in the form of text. See how to make collapsible sections with Markdown here.

@exaby73
https://user-images.githubusercontent.com/90826346/210337423-3a1449b3-d0ad-436a-856c-2d6490a001d2.mp4
Here I have chosen Selected Photos, but still showing All photos.

Please provide a complete code sample that can be run directly

@exaby73
Run this simple code - Its showing all images instead of selected image when select image is chosen
`import 'package:flutter/material.dart';
import 'package:image_picker/image_picker.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Image Picker Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const MyHomePage(title: 'Image Picker Test'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({Key? key, required this.title}) : super(key: key);
final String title;
@override
State createState() => _MyHomePageState();
}
class _MyHomePageState extends State {
final ImagePicker _picker = ImagePicker();
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
RaisedButton(
child: Text("Photo Library"),
onPressed: () async {
final file = await _picker.pickImage(source: ImageSource.gallery);
},
),
const SizedBox(height: 20,),
],
),
),
);
}
}
`

Triage report
I can reproduce this issue with image_picker: 0.8.6 and Master (3.7.0-14.0.pre.40) on an iOS 16.2 simulator.
flutter doctor -v (Master)
[!] Flutter (Channel master, 3.7.0-14.0.pre.40, on macOS 13.0.1 22A400 darwin-arm64, locale en-US)
    • Flutter version 3.7.0-14.0.pre.40 on channel master at /Users/nabeelparkar/fvm/versions/master
    ! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart/2.18.6/libexec/bin/dart, which is not inside your current Flutter SDK checkout at /Users/nabeelparkar/fvm/versions/master. Consider adding /Users/nabeelparkar/fvm/versions/master/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision a562fe2d8a (2 hours ago), 2023-01-04 23:53:41 -0500
    • Engine revision b9b0193ea8
    • Dart version 3.0.0 (build 3.0.0-85.0.dev)
    • DevTools version 2.20.0
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/nabeelparkar/Library/Android/sdk/
    • Platform android-33, build-tools 33.0.0
    • ANDROID_SDK_ROOT = /Users/nabeelparkar/Library/Android/sdk/
    • Java binary at: /Users/nabeelparkar/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/213.7172.25.2113.9123335/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = /Applications/Brave Browser.app/Contents/MacOS/Brave Browser

[✓] Android Studio (version 2021.3)
    • Android Studio at /Users/nabeelparkar/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/213.7172.25.2113.9123335/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] IntelliJ IDEA Ultimate Edition (version 2022.3.1)
    • IntelliJ at /Users/nabeelparkar/Applications/JetBrains Toolbox/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 71.2.6
    • Dart plugin version 223.8214.16

[✓] IntelliJ IDEA Ultimate Edition (version 2022.3.1)
    • IntelliJ at /Users/nabeelparkar/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/223.8214.52/IntelliJ IDEA.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.74.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.56.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-arm64   • macOS 13.0.1 22A400 darwin-arm64
    • Chrome (web)    • chrome • web-javascript • Brave Browser <IP_ADDRESS>

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

This seems to be the same issue as https://github.com/flutter/flutter/issues/90373. The reason for all photos are displayed is because the picker runs in a separate process so does not use the same permission settings as the app. More details here.

I'm gonna close this one since it should be auto fixed after the other issue is fixed.


Update box used for testing

https://github.com/pycontribs/python-vagrant/runs/5690559721?check_suite_focus=true#step:8:699
https://github.com/pycontribs/python-vagrant/runs/5690559721?check_suite_focus=true#step:8:1071
All Vagrantfiles need to be fixed as well, https://github.com/konstruktoid/python3-vagrant/commit/e1c805cde7a2043ab6748e91b5048d98562b5e64

Updates in https://github.com/pycontribs/python-vagrant/pull/84

hm. Things are getting better I guess. There are about 4 failures due to nose removal (eq_, ok_, ...) and 2 due to setUpOnce() being broken (I've a possible fix for that). I've yet to analyse the other failures to see if they have to be fixed by this PR or should be done in an other PR.

hm. Things are getting better I guess. There are about 4 failures due to nose removal (eq_, ok_, ...)

yeah, those are basically (easily fixed?) asserts.
Should we keep pushing PRs to this branch or  wait for merge and start anew?

hm. Things are getting better I guess. There are about 4 failures due to nose removal (eq_, ok_, ...)

yeah, those are basically (easily fixed?) asserts.
Should we keep pushing PRs to this branch or wait for merge and start anew?

since this PR is called "update box" I would say that this PR should be related only to the boxes changes and that the nose removal and setUpOnce() fixes should go into a different PR.
@ssbarnea any opinion ?

since this PR is called "update box" I would say that this PR should be related only to the boxes changes and that the nose removal and setUpOnce() fixes should go into a different PR.

makes sense

I am going to merge this as is, even if we still have 9 failing tests, mainly to make it easier to review the other changes.


OpenMP

By default, when using the cryptopp-cmake script, or when depending on cryptopp via Conan, it seems to build without OpenMP.
For the cryptopp-cmake script, I worked around this so far by adding my own hacks around it in a separate CMakeLists.txt, and to be honest, those hacks are somewhat complicated, see here: https://github.com/cryfs/cryfs/blob/38575f258a16c2dd847013749c93eaefe1c58af0/vendor/cryptopp/CMakeLists.txt
I would like to switch that project to Conan, but that means I won't be able to use this hack anymore. OpenMP would have to be supported natively by the cryptopp conan package, which I think means that cryptopp-cmake would have to natively support it.
Are there plans to add OpenMP build functionality? Possibly some code from the hack I linked above could be copied, it seems to be relatively cross-platform.

Hi @smessmer,
OpenMP would probably be a good option to support for folks who want to use it.
I'm not a CMake expert, so I can't really comment on your patch.
I sent you a Collaborator invite. I run my GitHubs a little differently. I like allowing others access to the code. It removes barriers for other folks.
If you add OpenMP support, please ensure it works with CMake 2.8.6. CMake 2.8.6 is still found in the field. Otherwise, things will break when I test on some platforms, like Ubuntu 14 ERS and Solaris 11.
By the way, in general, Crypto++ slows down with OpenMP. Some algos do enjoy a speedup (like Scrypt), but in general there's no gain. Also see https://www.cryptopp.com/wiki/OpenMP.

Thanks. CryFS depends on scrypt, that's why OpenMP is important. Are you maintaining the conan package? Is my assumption correct that it is built based on this cmake script? Is there a conanfile.py somewhere?
How is the CI situation of cryptopp-cmake, if I make a commit pass CI could I trust that it wouldn't break anything?

Are you maintaining the conan package? Is there a conanfile.py somewhere?

I am not aware of a Conan package. Maybe you can start one?
If you do, I'll write a wiki page on it and point people to it. The centralization will help users by ensuring they know where to get the latest semi-official package.

How is the CI situation of cryptopp-cmake

We do some basic testing through Travis. I have to manually test some platforms, like Solaris.
If something breaks I usually ping the person who performed the commit and ask them to look at it.

Oh there is one already, but wasn't sure who's maintaining it. But seems conan packages are in a public GitHub repo, found it here https://github.com/conan-io/conan-center-index/blob/master/recipes/cryptopp/all/conanfile.py

Oh there is one already, but wasn't sure who's maintaining it.

Well, if you want, you can contribute to that one. Or you can start your own.
I'll still write the wiki page so users can find it, and users will know that's the semi-official one.

Sg. The right page to link users to would probably be https://conan.io/center/cryptopp not the GitHub repository above

@noloader Can you resend your collaboration invitation or alternatively take a look at and merge that PR?

@noloader ping

Thank you, I merged the OpenMP code :)


runSVUnit --uvm is broken

The buildSVUnit script should take care to build the 'svunit_uvm_mock_pkg' as well. It's not really possible to work around it using -f, because filelists passed from the command line are compiled first. The user would need to compile svunit_pkg as well. Even if this is done, a cascade of errors will come due to the second compile of 'svunit_pkg', request by the framework itself.
The solution is to add:
$FILELIST->print("$ENV{SVUNIT_INSTALL}/svunit_base/uvm-mock/svunit_uvm_mock_pkg.sv\n");
to the end of buildSVUnit (not tested, typed out from other computer).

I noticed what the "problem" is. In your templates you always include the svunit_uvm_mock package, so it gets compiled. You generate the '-incdir ...' to the UVM mock package, but don't add it to the compile list.


Fixes issue with copying and pasting the images.

Fixes #1219
Description

Fixed the missing feedback while the image is uploading.
Fixed issues when uploading multiple images.
Fixed issues in the onUpdate callback not firing sometimes when the image is added.
Moved all the errors in the step to a single place.
Updated the renderHtml to not render the image node if the src is not present.

Checklist

[ ] ~I have made corresponding changes to the documentation.~
[ ] ~I have updated the types definition of modified exports.~
[x] I have verified the functionality in some of the neeto web-apps.
[x] I have added the necessary label (patch/minor/major - If package publish
is required).

Reviewers

@AbhayVAshokan _a please review.


TVPaint: Small enhancements

Brief description
Small enhancements in TVPaint integration which did not get to https://github.com/ynput/OpenPype/pull/4471.
Description
It was found out that opacity returned from tv_layerinfo is always empty and is dangerous to add it to layer information. Added information about "current" layer to layers information. Disable review of Render Layer and Render Pass instances by default. In most of productions is used only "scene review". Skip usage of "enabled" key from settings in automated layer/pass creation.
Testing notes:

Start TVPaint
Open Publisher
Render Layer and Render Pass creator should have Mark for review set to False by default
(Nothing should crash meanwhile)

Works!
OT when creating a renderlayer followed by a renderpass you get an error message. I get why since the renderlayer is not persisted to TVP, but we should maybe inform the user about trying to refresh the publisher.

I think we should also give more info in the message. You cannot create a renderPass without a renderLayer. Please select one first

@tokejepsen added label to precreate attributes. Changed error message to @mkolar suggestion. And changed how Render Layers enum values are collected for precreate attributes.

@tokejepsen added label to precreate attributes. Changed error message to @mkolar suggestion. And changed how Render Layers enum values are collected for precreate attributes.

Nice works for me!


analyse ionic-core embedding

after #62 if the dev-environment is still slow: This might be another source.
Stencil compiles ionic-core each time: This slows the HMR down.

I think this is obsolete, since the way we add ionic-core uses the official approach of Stencil.
You can see this when creating a new stencil project of type ionic-pwa:

npm init stencil
Choose ionic-pwa

See how ionic core is imported. The same way as we do.

closing as we consider it being irrelevant for performance


Handle qualifier wrapped with ClassVar

Codecov Report

Merging #12 (146512d) into main (1590689) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main       #12   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            4         4
  Lines          138       157   +19
=========================================
+ Hits           138       157   +19

Impacted Files
Coverage Δ

abcattrs/abcattrs.py
100.00% <100.00%> (ø)

abcattrs/type_hints.py
100.00% <100.00%> (ø)

tests/test_decorator.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1590689...146512d. Read the comment docs.


Feature request: format region

Is there any chance you could provide a format-all-region command?
It's be nice to be able to reformat a region without having to reformat absolutely everything.

I don't know how well the formatters work with partial source code (mainly with regards to indentation) but we can try it. E.g. Emacs' built-in indent-region function can read the full source file so it can still indent correctly even if you tell it to indent only a part of it. The external formatter would only get the region and think it's the whole file. I don't recall any of them having a command line flag to only format a region.

Most of the formatters can be run manually from Emacs via C-u M-x shell-command-on-region. For example, select a region of C/Java code, then do C-u M-x shell-command-on-region clang-format. Please try this for the languages you are interested in to see if you think the result is sensible. A format-all-region command would essentially do the same thing, just more convenient. I tried it on some nested C code and as expected, it loses the indentation.

swiftformat has a --fragment switch to format partial files but that's the only one I can find that has native support.

clang-format has a -length=<uint> option:

Format a range of this length (in bytes). Multiple ranges can be formatted by specifying several -offset and -length pairs. When only a single -offset is specified without -length, clang-format will format up to the end of the file. Can only be used with one input file.

prettier has support too:
Editor options:
--cursor-offset int
Print (to stderr) where a cursor at the given position would move to after formatting. This option cannot be used with --range-start and --range-end. Defaults to -1.
--range-end int
Format code ending at a given character offset (exclusive). The range will extend forwards to the end of the selected statement. This option cannot be used with --cursor-offset. Defaults to Infinity.
--range-start int
Format code starting at a given character offset. The range will extend backwards to the start of the first line containing the selected statement. This option cannot be used with --cursor-offset. Defaults to 0.

Is it able to only format the modified part, not the whole buffer?
This feature is very useful when you edit other people's code, and they use different code styles, it is a good idea to only format the code of your own.
Of course, this feature can be provided by variable and command.

Unfortunately it can't do that - the whole buffer is formatted every time. The rationale is given in the above comments: it's hard to do reliably.
As a workaround, you can create a temporary buffer that is not saved into a file (by switching into any buffer whose name does not yet exist), paste a code snippet there, switch to the mode you want (e.g. M-x c-mode, M-x js-mode and so on), and then do M-x format-all-buffer and copy back the formatted text to the original file.

Actually, this problem can be workaround by executing the command narrow-to-region to make emacs create a temporary buffer which holds the region you want to format. Then in the temporary buffer, execute format-all-buffer. The result is that in the original buffer, only the selected region is formatted.

narrow-to-region doesn't solve the indentation problem. If you have particular formatters that you'd like to use to format regions, please ask the maintainers of those formatters if they could add an official command line option for the job (like prettier has done). That would solve the problem properly for all editor plugins, not only format-all.
I'll be happy to add support for those command line options to format-all (in fact, support for the prettier, clang-format, and swift-format flags should already be added; thanks for the reminder).

Closing this since #150 now implements M-x format-all-region for formatters that support it natively. For formatters without native support, I'll be happy to help explain to their authors what kind of command line flags are needed.


add ability to choose php version when install

add ability to choose php version when installing sail
some people doesnt use latest php version on fresh project so this PR give ability to change php version when installing sail

It's easy to update this after you create your project.


[GHSA-cj88-88mr-972w] glob-parent before 6.0.1 vulnerable to Regular Expression Denial of Service (ReDoS)

Updates

Affected products
Description
References
Summary

following


Telegram channels won't show new message unless the service is manually refreshed

Franz 5.6.1 on Kubutu 21.04.
As above, telegram channels are not synced with server.
I receive correctly new messages from private chats, but not from my channels.
If I force a refresh of telegram service, new received messages appear.
This behaviour has started since 21.04 upgrade.

With OLD style client: issue #2038 is solved, but #2026 occurs
With new K and Z client, issue #2026 is solved but #2038 occurs, because K and Z client window is not matching Franz window.


Display Orcid member logo

Added logo on new member signup and on term display page- but hidden if there is none. Added an Account link to the top navigation for now.


Add link to Tephra User group, and descriptions of the groups.

@awholegunch Looks like you made the update in the wrong repo. This change should probably go to tigon repo.

No, just a bad copy 'n paste...

LGTM


chore(operator): fix API signatures for merge, concat, combineLatest …

…and zip
closes #184

oops, accidentally left some micro perf tests commented out...


Update document about custom installer

Which issue this PR addresses:

None
What this PR does / why we need it:

Related to #3486
This PR adds document about how to create a cluster with custom installer.
Test plan for issue:

N/A document update
Is there any documentation that needs to be updated for this PR?

updated
How do you know this will function as expected in production?

N/A

/azp run ci