scheduler: refine restricted topology policy

Ⅰ. Describe what this PR does
将 NUMA 对齐策略 Restricted 与上游 Kubelet 逻辑对齐，即不同资源的 Hint 的 NUMAAffinity 一样时，才讲该 merged 后的 Hint 置为 preferred
Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how to verify it
Ⅳ. Special notes for reviews
V. Checklist

[x] I have written necessary docs and comments
[x] I have added necessary unit tests and integration tests
[x] All checks passed in make test

/assign eahydra PTAL

/assign FillZpp eahydra hormes


Does not support namespaces

We manage all k8s objects in namespaces which this bot does not account for:
!kubectl get pods —namespace=slackbots
Results in:
Error from server: pods "—namespace=slackbots" not found

In Slack the double dashes are being transformed automatically to to different characters. You need to disable this feature (Smart Dashes) from the Slack UI.
Right click on the message textbox and uncheck Smart Dashes.

@spiddy that is certainly the cause of the issue and adjusting that setting does fix the issue for that particular user.
Given this is the default setting on OS X, I think it would make sense to detect and transform back to double dashes for !kubectl commands.


kind in compute_Hc

I have a cycle data, how I choose the "random_walk","change" and "price"? My data looks like Sin function.

The kind parameter could have the following values:
'change': a series is just a random values (i.e. np.random.randn(...))
'random_walk': a series is a cumulative sum of changes (i.e.np.cumsum(np.random.randn(...))
'price': a series is a cumulative product of changes (i.e.np.cumprod(1+epsilon*np.random.randn(...))

Hi, I extract 100 items in my data, and H > 0.5. But calculate the  H < 0.5 with all my data. My data have 8000 items, It that ok? Thanks.


Add Remedy to showcase

Remedy is a Khosla and Greylock backed startup that just launched its product a few weeks ago. We're built completely in React Native with iOS and Android apps!
Website: https://www.remedymedical.com/
Featured in TechCrunch: https://techcrunch.com/2017/01/10/doctordoctorcantyouseeimburning/

Just one small nit - please add this to the very end of the "featured" list.

An English-language technical post on a funded startup or public company blog discussing React Native

Does the Techchrunch article satisfy this requirement? I think not.

@hey99xx the TechCrunch article satisfies requirement #1, "An English-language news article discussing the app, built either by a funded startup or for a public company"


what did we (kolja) want to add to our wiki?

I think it was an addition to the cheatsheet about migrations. That's the only thing I can remember. Does that sound right?

git cheat seet --> branch set upstream dingsbums

Wiki was updated


Note numpy must be installed first

Because I don't currently distribute wheels, pymartini must be compiled from sources when it's downloaded. To do that, it needs to find the numpy headers
https://github.com/kylebarron/pymartini/blob/5b43553e4837437a5734edb78eec501085cb767f/setup.py#L49-L50
But numpy won't necessarily have been installed yet, so maybe add a note to the README explaining that numpy must exist before installing.
You could probably try installing into a new virtualenv to see what happens.

In a new conda env, you do get an error saying numpy not available:
> pip install pymartini
Collecting pymartini
  Downloading pymartini-0.2.0.tar.gz (270 kB)
     |████████████████████████████████| 270 kB 2.7 MB/s
    ERROR: Command errored out with exit status 1:
     command: /Users/kyle/local/anaconda3/envs/test/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/6v/4_10tk8549bc7yrbycgd2c540000gn/T/pip-install-mzi2g3wb/pymartini/setup.py'"'"'; __file__='"'"'/private/var/folders/6v/4_10tk8549bc7yrbycgd2c540000gn/T/pip-install-mzi2g3wb/pymartini/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/6v/4_10tk8549bc7yrbycgd2c540000gn/T/pip-install-mzi2g3wb/pymartini/pip-egg-info
         cwd: /private/var/folders/6v/4_10tk8549bc7yrbycgd2c540000gn/T/pip-install-mzi2g3wb/pymartini/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/6v/4_10tk8549bc7yrbycgd2c540000gn/T/pip-install-mzi2g3wb/pymartini/setup.py", line 4, in <module>
        import numpy as np
    ModuleNotFoundError: No module named 'numpy'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.


Examples should be improved

Migrated from SourceForge,
Created: 2013-09-20
Creator: Mikael Lindlöf
The current state of the examples is bad. Most of them contain too much swing nonsense and hard to understand.

Migrated from SourceForge,
Created: 2013-09-21
Creator: Mikael Lindlöf
Examples should definitely have the UI parts and the mobile signature parts clearly separated. Applying the MVC architecture would be nice.
The CLI examples are currently far inferior in terms of amount and functionality to the Swing examples but I don't think that's really an issue.
An idea of web example, originating from Eemeli, is also interesting. I don't think the choice of UI matters much in terms of API documentation. However, this API is bound to be most widely used in web environment. Such examples would, as a side-effect, do a good job demoing the usage of the Laverca API.

Done.


Image isn't showing up

I tried both programmatically and storyboard ways, image simply not on screen. Although if I change APNGImage and APNGImageView to UIImage and UIImageView respectively, it works (w/o animation, of course). What could it be? (APNGKit v1.1.0)

It helped, thanks for response!


raidboss: ASS Squeaky Clean cast

Had a few instances where the Silken Puff would cast Squeaky Clean instead of Silkie.
[18:09:51.371] StartsCasting 14:4001B920:Silkie:7752:Squeaky Clean:4001B920:Silkie:4.200:-335.01:-170.00:471.00:3.14 [18:09:51.371] StartsCasting 14:4001B92D:Silken Puff:7756:Squeaky Clean:4001B92D:Silken Puff:8.900:-331.00:-159.00:471.00:0.00 [18:09:51.371] StartsCasting 14:4001B92E:Silken Puff:7754:Squeaky Clean:4001B92E:Silken Puff:7.400:-347.00:-159.00:471.00:0.00 [18:09:51.371] StartsCasting 14:4001B92F:Silkie:7753:Squeaky Clean:4001B92F:Silkie:5.700:-341.51:-165.65:471.00:2.50

I think 7755/7756 may not be the optimal ability IDs to use for squeaky clean.  I've been using 7751 for Squeaky Clean Right and 7752 for Squeaky Clean Left, and it works consistently (and always originates from the boss).  It seems like 777[3-6] are less reliable and can originate from the adds.

I personally had 7751 and 7752 in my personal triggers and they never failed like 5 and 6, so it seems like as you said they would be more optimal to use.

cc @xiashtra re: these ability ids for savage

I also had 7751/7752 in my original test triggers for normal, but deferred to @Legends0 on the initial pull.  I used the boss-only IDs for savage so those should be ok.


GH-38861: [C++] Add missing "-framework Security" to Libs.private in arrow.pc

Rationale for this change
It's required only when:

We use bundled aws-sdk-cpp.
We use static library for Apache Arrow C++.

Because bundled aws-sdk-cpp uses Security framework.
What changes are included in this PR?
Add -framework Security to Libs.private only on the condition.
Are these changes tested?
Yes.
Are there any user-facing changes?
Yes.

Closes: #38861

@github-actions crossbow submit r-binary-packages

@github-actions crossbow submit r-binary-packages

@jeroen Could you try this? You can download binaries from https://github.com/ursacomputing/crossbow/actions/runs/6971635888#artifacts .
I think that r-lib__libarrow__bin__darwin-x86_64-openssl-1.1 will have binaries for your case.

Thanks, lgtm

@github-actions crossbow -g cpp

Thanks for confirming this.
I'll merge this after we confirm that additional CI jobs are also passed.

@kou there is another one, could you maybe also add libcurl in the same way? On MacOS ARM64 I get:
  Undefined symbols for architecture arm64:
    "_curl_multi_poll", referenced from:
        google::cloud::rest_internal::v2_12::CurlImpl::WaitForHandles(int&) in libarrow_bundled_dependencies.a(curl_impl.cc.o)


Deploying Cassette to AWS but not working

Hi Adrian,
We are using your cassette recording in our project and we are deploying it to AWS EC2 but we are having issues where it is not recording (or calling the /events). I think its because of the setup since we are deploying this without docker.
We really like your solution but can you help us on this?
Thanks,
Ramon

Ciao @raseniero
We are of course delighted about that :)
Could you maybe elaborate about about your setup? (Network Configuration).
I ask because as an example HTTPS/TLS is very important for most of the Browsers. Web Browser go picky.
So if the target Website runs over HTTPS and the Script tag is embedded with HTTP; this mights be a first issue
Interesting for sure are the Web Console Logs (Network Tab) in the Browser. Often you see why the browser rejects the outgoing request.
We can then think together about solutions: e.g. a Proxy in Front which is handling the TLS Stuff with eg. Let's Encrypt (Caddy might be a good and simple choice); or that we include this functionality in Cassette itself

Hi Adrian,
We are getting a CORS error and the /events/ is not functioning and recording are not happing. Have you tried to deploy this to AWS before? See image below

Thanks,
Ramon

@raseniero
From what I see, the Issue is in the Proxy in front of Cassette dealing with TLS and Routing (404 etc.)
You might want to have a look on that

Hi Adrian,
We were able to solve the 404 issues by adding the correct CORS settings in NGINX.
But now we are having new issues, the recording is only happening on the 1st 10 secs then we get empty sessions after every 10 seconds. It seems that it is not recording after the 1st recording.
We've compared the AWS setup vs the local-dev docker setup (which is working just fine) and we notice that on local-dev the /cassette.min.cjs has two request, Preflight and GET, but in the AWS there is only one and its the GET request.
Any thoughts?
I wonder if you're available to chat on Slack or Skype or Team on this.
Thanks,
Ramon

this project is not supported by me. its state is currently a proof of concept to test a feasibility internally and some clients.
i will update the readme
to make this clear.
i would recommend you to use another tool like https://openreplay.com or https://posthog.com. they provide better documentation and communities to help you in your specific integration issues.
have a good one


util: Remove the JavaScript util library

The JavaScript util library was extremely thin.  The functions it
exports could easily be embedded in their callers.  Furthermore, it
was so far from the code that needed it, that packaging up the init
script in @quilt/install was proving more complex than necessary.
To simplify things, this patch ditches it.

bindings.js actually also used util.js, but mistakenly didn't require the module. This PR fixes that: https://github.com/quilt/quilt/pull/1050.


created Binary Search.py

https://github.com/swapnanildutta/Hackerrank-Codes/issues/9 - HackerRank Question
added the binary search algorithm to the Algorithms folder

Please add the entire question on top as a comment.


Update aws-java-sdk-dynamodb to 1.12.477

Updates com.amazonaws:aws-java-sdk-dynamodb from 1.11.1034 to 1.12.477.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.amazonaws", artifactId = "aws-java-sdk-dynamodb" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.amazonaws", artifactId = "aws-java-sdk-dynamodb" }
}]

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

Superseded by #445.


Improve readability for backend tests

This PR improves readability for backend tests. Since CNTK added, it becomes hard to add something into backend tests due to many hardcoded and cntk-specific patchwork. I think it is better to clean up the current tests first in order to write new tests for increasing test coverages. Especially, this PR focuses on integration of cntk_check_*_tensor_operation into check_*_tensor_operation.

Please rebase.

As I see, there is one single commit without conflicts. Would you please elaborate more on the rebase you expected?

Nevermind, it's fine.


feat: add failure age metric

This commit adds another metric that tracks the age of the latest failure, instead of the timestamp.
We're adding this because Datadog doesn't seem to have a time() function like prometheus, so subtracting now - latest-failure isn't easily possible in Datadog. Having a gauge in its place that simply indicates the age is a lot easier.

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


Update index.html

Added DEV Profile
merge under hacktoberfest accepted.

Added DEV Profile merge under hacktoberfest accepted.

you are not following the account

Added DEV Profile merge under hacktoberfest accepted.

accepted


Virtualenv created, but can't be found because of 8.3 filename on Windows

Issue description
I use Kotlin and subprocess to run pipenv on Windows in specified path. In case the pathname contains "8.3 filename"-part (as user directory), pipenv install -r requirements.txt takes this path unchanged to calculate hash for virtualenv name.
Then another subprocess calls pipenv graph, which resolves this pathname to canonical path and therefore miss the virtualenv just created.
In case I run install from cmd manually, resolved path for Pipfile is canonical, whether current directory represented in cmd with 8.3 filename or not. Maybe it resolved by cmd itself.
Expected result
Paths are always canonicalized by pipenv, so graph must be printed.
Actual result
No virtualenv has been created for this project yet!
Steps to replicate

Subprocess from Kotlin calls pipenv install
Subprocess from Kotlin calls pipenv graph
No virtualenv has been created for this project yet!

Pipenv version: 2020.6.2

I don't use Kotlin and can follow your steps to reproduce, so I would like to leave this to anyone who is capable to help. Or you may want to pick this up to find out the bug

@dem1tris Could you check on pipenv=2022.1.8 to see if this is still an issue?


Create process that ensures demo notebooks run properly upon codebase changes

For every PR that modifies the code base of the cell census or SOMA, there needs to be an automated system that runs the demo notebooks and flags any errors when they occur. Errors should then be addressed to ensure notebooks can run.

@pablo-gar I think this process should also:

Update the notebook results in git. The process could involve generating a PR with the changes, so that they can be reviewed.
Trigger running of the API tests. (This would happen automatically with the notebook results PR, above, but the process should make it explicit that running the unit tests is a requirement.)
Sound good?

This all sounds great @atolopko-czi. And I don't personally know of better way to run them all.

Note: some notebooks (comp_bio_*) require instances with > 30GB memory. We should either reduce the memory requirements of those notebooks or ensure compute resources are provisioned accordingly.
It would be ideal if all notebooks were sufficiently lightweight in their requirements such that we could re-run these on GHA for PR merges to main.

The large memory usage also reduces the value of the notebook as a learning tool, as users would need a heavy-duty laptop to run it...

Triage comments - Need cadence:

Run notebooks on LTS release
Run notebooks on API release

@ebezzi to follow up with Bruce and Andrew on automation (github actions) and propose resolution.


Adding earth animation

Hey I made earth animation Project Which Is Very Good!
This Project is very Helpfull,
I Make This Project With the help of HTML, CSS & JavaScript,
The CSS & JavaScript Code are Available in very well mannered! & Easy to understand!
PR - #624

https://user-images.githubusercontent.com/88212870/167359006-4acdf6a4-5578-43e5-ace4-17bd2936964f.mov

Link the issue

#624

fill the pr template correctly, link the issue in the pr template

Done👍

https://deploy-preview-641--amazing-css-effects.netlify.app/animated earth/

@DEEPALI-SUK @VidhiBhatt01
https://github.com/khushi-purwar/WebDev-ProjectKart/pull/1318


{CI} Fix extension release scripts

Modify the code according to #7273
This checklist is used to make sure that common guidelines for a pull request are followed.
Related command

General Guidelines

[ ] Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
[ ] Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
[ ] My extension version conforms to the Extension version schema

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

CI

I would recommend we postpone this PR until we are back from holiday.


FetchOperation error when using custom query to filter Ajax response.

Bug report
In the Fetch Operation, I'm trying to use a custom function to filter the results returned by fetch().
What I did
In a few places I've tried to use the Fetch operation to replace some custom Ajax controllers in my model. Whenever I add a custom query to the fetch() method, I get an error: Call to a member function ### on string (where ### changes based on my query).
Example:
I have a Region model and a District model, with a 1 (Region) to many (Districts) relationship setup. My Region model has a scope called "active".
On my DistrictCrudController, I setup a relationship field with Ajax enabled:
[
    'name' => 'region_id',
    'type' => 'relationship',
    'label' => 'Region Name',
    'ajax' => true,
],

I added a fetchRegion() method and passed an array to the fetch() method:
use \Backpack\CRUD\app\Http\Controllers\Operations\FetchOperation;

public function fetchRegion ()
{
    return $this->fetch([
        'model' => Region::class,
        'query' => function($model) {
            return $model->active();
        }
    ]);
}

What I expected to happen
The active regions would be searchable in the region field.
What happened
The Ajax request gave an error: Call to a member function active() on string.
What I've already tried to fix it
It looks like the query closure receives the model's FQDN as a string, rather than an instance of the model class. I tracked it down to line 61 in the FetchOperation.php, and updated that by passing $model_instance to the closure instead of $config['model'].
I then got another error: Call to undefined method Illuminate\\Database\\Eloquent\\Builder::getColumnType(), pointing to line 91 of  FetchOperation.php. I think this happens because now $config['query'] returns an instance of Eloquent\Builder rather than the model class.
Updating line 91 to use the $model_instance fixed this error, and now the fetch() operation is returning my active regions as expected.
This fix seems to work for all the custom queries I've tried. Happy to submit a PR for this :smiley:
Backpack, Laravel, PHP, DB version
When I run php artisan backpack:version the output is:
### PHP VERSION:
PHP 7.4.1 (cli) (built: Dec 18 2019 14:46:18) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies

### LARAVEL VERSION:
v7.11.0@f4563bd2e0875c59a1f7967abdbe5cef7f240117

### BACKPACK VERSION:
4.1.4@4303aa07ec0c597abfcfe83896558ca6e98f0d6a

PS
Really love the recent update to 4.1 so far - we use select2_from_ajax a lot and the relationship field + fetch() combo feels much more intuitive than the old way of defining custom controllers to respond to the ajax calls.

Excellent bug report @dave-mills , thanks a lot!
Excellent PR too - couldn't have wished for more 😄

Really love the recent update to 4.1 so far - we use select2_from_ajax a lot and the relationship field + fetch() combo feels much more intuitive than the old way of defining custom controllers to respond to the ajax calls.

Very glad to hear that!


[Feat]:  Navbar and Footer Background Color Mismatch

Feature Description
Background Color of navbar and footer are not matching.
Provide a detailed description of the feature
The background colors of the navbar and footer are not matching, causing a visual inconsistency across the site. I propose adjusting the background color of either the navbar or footer to ensure both match for a more uniform design.
Put here any screenshots or videos (optional)
No response
By submitting this issue, you agree to

[X] I agree to follow this project's Code of Conduct
[X] I’ve read all the issues in the issue section, and this feature has not been proposed yet.

Other Information

[X] I'm a GSSoC '24 Extended contributor
[X] I'm a Hacktoberfest '24 contributor
[X] I am willing to work on this feature (optional)

@MuhammadAshraf23 Please share the screenshots and point out the difference. I think there is no difference in that.

Sorry I made mistake


Customizable poll-colors

Maybe its a good feature to choose custom colors for poll-results.

This will definitely require changes in the backend.
Before we make an issue over there we should discuss how this should work, however.
A couple of questions:

How will we persist these colours?

Should the poll colours be handled individually for each poll(-option) (i.e. creating a new field in the options or poll model)?
Should they be saved in the form of their own models (similar to themes) so that they're customizable centrally and can be assigned individually (individually by meeting, maybe even individually per poll)
Should we just tie them to the themes?

We need to differentiate between the topic polls and the other types:

Normal polls need three colours: One for yes, no and abstain each.
Topic polls typically use a list of colours and then a repeating range of predetermined greys

Being able to choose a custom colour for each option may be particularly helpful here
If we're using central themes instead, we would have to make a differentiation: We could either do separate theme models for topic and other polls or make unified themes that contain customizable colour options for both

What do you think would be better @emanuelschuetze  @rrenkert ?

We need 3 custom color options for Yes/No/Abstain - in motions and assignment polls.
Defined in global design view.
Additional: custom color for global headbar, if not set use a generated color value (currently)

Backend issue: OpenSlides/openslides-backend#1671


accessibility.signals.progress gets stuck in an always-chiming state

Does this issue occur when all extensions are disabled?: Yes/No
Need the jupyter extension

Version: 1.93.1 (system setup)
Commit: 38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40
Date: 2024-09-11T17:20:05.685Z
Electron: 30.4.0
ElectronBuildId: 10073054
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.19045
Steps to Reproduce:
    "accessibility.signals.progress": {
        "announcement": "auto",
        "sound": "on" // commenting this out will stop the sound but doesn't reset the hidden state, uncomment it and the sound resumes
    },

I also have

    "accessibility.signals.lineHasInlineSuggestion": {
        "sound": "off"
    },
    "accessibility.signals.notebookCellCompleted": {
        "sound": "on"
    },
    "accessibility.signals.notebookCellFailed": {
        "sound": "on"
    },
    "accessibility.signals.onDebugBreak": {
        "sound": "on"
    },

Run a jupyter notebook
I have some cells making network requests
The request takes a long time and the sound clue is playing
Cancel the execution
Kernel dies or something
Sound clue keeps playing
Sound clue doesn't stop until window is reloaded

I'm not able to intentionally reproduce, but it does keep happening to me.
Is there a way to inspect the list of things that are causing the audio clue to be active?
Next time it happens I want to know where to look for more info

Pls let us know if you can still reproduce this. Closing for now as I cannot.


getUniqueID is equal to UUID ?

uuid format is similar to e.g. : 6c84fb90-12c4-11e1-840d-7b25c5ee775a
but getUniqueID output is similar to e.g. : d9af09d7e68041ea
some body help me to define  :)

They are what they are. Define what? The APIs are documented and return identifiers you may use in the way the documents say you may use them. If you want a more specific answer it will likely be either use-case or project-specific, and will vary by platform so you will need to be very specific

thanks for your reply dude :)
i have a question ! do u know how about an uuid format and length ?

Make no assumptions on format and length unless you want to depend on the internal implementation, which is not a good software programming practice

then uuid has not special format ? DeviceInfo.getUniqueID() give me uuid that i want ?

In the API it is documented to return a string. It's a unique string for the device. You can read as much into that or as little as you want.

@mikehardy I think that what @Moji0098 is trying to say is that. Why getUniqueID is not returning a UUID v4 (16 bytes or 128 bits) when calling it form Android? The answer is that IOS does standardises it’s self with that unique identifier but Android does not. Thats why you get 2 diffrent formats depending on the platform.


refactor(project): use husky

What does this PR do?
It adds husky in order to manage the repository hooks installation and execution.
The PR also:

Renames the hooks files.
Removes the installation script.
Checks if yarn is installed before calling it from the hooks; if is not present, it will use npm.

How should it be tested manually?
Before installing the branch, remove the old hooks:
rm ./.git/hooks/pre-commit && ./.git/hooks/post-merge

Then install the branch (dependencies) and test the hooks:
# It should call the 'lint' and 'test' scripts
./.git/hooks/pre-commit
# It should try to install dependencies
./.git/hooks/post-merge

Pull Request Test Coverage Report for Build 282

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

Totals

Change from base Build 279:
0.0%

Covered Lines:
2144

Relevant Lines:
2144

💛  - Coveralls


define color scale

Hi thank you for your work ! It is really beautiful.
I wanna define my own color scale base on the intensity of each point.

Is this possible ?

Have you seen the gradientTexture option?  Pass an image or path to an image.  See some of the PNGs on the webgl heatmap library repo: https://github.com/pyalot/webgl-heatmap. Does that work for you?

Oic thank you !


Option to replace file with same name/same URL

I was wondering if it was possible or if you could add the option to replace files with the same name or from the same URL.
For example, I download a file from https://myserver.com/image.jpg. Later I want to download this same file. I would like it to replace this file with the same name with the new version.

Hello @KCWebmaster,
I will be working on that today, will keep you updated.

Hello @KCWebmaster,
This taking longer time than expected, as some weird behavior occurs,
when downloading the same file more than once & force override, you get multiple instances of the same file with the same name,
Ex:
lets say you downloaded the files:
https://www.shutterstock.com/image-photo/man-hands-holding-global-network-260nw-1801568002.jpg
https://www.shutterstock.com/image-photo/man-hands-holding-global-network-260nw-1801568002.jpg

you will have 2 files with the same name & content in the downloads directory (they both working)

but if you downloaded the files and renamed the downloaded file to test-image:
https://www.shutterstock.com/image-photo/man-hands-holding-global-network-260nw-1801568002.jpg
https://www.w3schools.com/css/img_forest.jpg
ISSUES OCCURRED:

you will have 2 files with the same name test-image.jpg, different content
but if you refreshed the directory you will notice that both files became the newer version
if you try to open either of them the Photos app will crash
if you deleted either file they both get deleted

tried on 2 android devices
android API 33
android API 28

@KCWebmaster
after an extensive search, it seems that the app does not have permission to do that!
some resources said that it's up to the browser, it should ask you to replace the file or download it again (which will be downloaded with the same name concatenated with -1 or (1))
some other resources says

"It will never overwrite without asking the user first. That would be a horrible feature: any web site could guess what a user has in its downloads folder, and trick the user into downloading an unknown file that would overwrite the file that the user doesn't want to lose"
actually this might be bad, as the user has an important document in the downloads directory, once a file is overwritten the original needed file can never be recovered.

Please if you have any other opinion tell me, I'll close this issue in the weekend unless you have any other idea or workaround.
Have a good one.

Hello @KCWebmaster,
Since there is not activity in this issue I will close it, feel free to reopen it if you have further discussion.


gtk-doc fails to cross-compile for aarch64 on nixos-unstable

Describe the bug
glib fails to cross-compile for commit  f5e8bdd07d1a. (I am trying to use mobile-nixos cache for the toolchain).
To Reproduce
This gist has flake.nix, flake.lock and cross-hacks.nix needed to reproduce the issue.
Running nix build with the above files in a directory, will reproduce the build failure, with the following error.
error: --- Error --- nix-daemon
builder for '/nix/store/1fhg4sfqix16p9w16b4gsf93mh0wg0nz-gtk-doc-1.33.2-aarch64-unknown-linux-gnu.drv' failed with exit code 2; last 10 log lines:
      p, stdout, stderr = mesonlib.Popen_safe(cmd)
    File "/nix/store/3hmi5hcpvnanxxkwqbi1vxiil2b4ba0p-meson-0.57.1/lib/python3.8/site-packages/mesonbuild/mesonlib/universal.py", line 1320, in Popen_safe
      p = subprocess.Popen(args, universal_newlines=True, close_fds=False,
    File "/nix/store/v3bj7jrns4sk6yj2rp30p6v2l7p707az-python3-3.8.8/lib/python3.8/subprocess.py", line 858, in __init__
      self._execute_child(args, executable, preexec_fn, close_fds,
    File "/nix/store/v3bj7jrns4sk6yj2rp30p6v2l7p707az-python3-3.8.8/lib/python3.8/subprocess.py", line 1596, in _execute_child
      self._posix_spawn(args, executable, env, restore_signals,
    File "/nix/store/v3bj7jrns4sk6yj2rp30p6v2l7p707az-python3-3.8.8/lib/python3.8/subprocess.py", line 1547, in _posix_spawn
      self.pid = os.posix_spawn(executable, args, env, **kwargs)
  OSError: [Errno 8] Exec format error: '/nix/store/l2chfxk5ci12hg171fxk11y55kj4znfg-python3-3.8.8-aarch64-unknown-linux-gnu/bin/python3'
error: --- Error --- nix-daemon
1 dependencies of derivation '/nix/store/8dwpqd7i970liw23hm41gyrf3pjf0bzv-glib-2.66.4-aarch64-unknown-linux-gnu.drv' failed to build

Notify maintainers
@lovek323 @worldofpeace @Mic92 @samueldr

cc @Ericson2314
Likely to be another issue made discovered by the makeWrapper change, since it's an aarch64 bash being called in a cross-compilation.

Getting the same error on staging.
Doing some digging, looks like they import python here in the meson build: https://gitlab.gnome.org/GNOME/gtk-doc/-/blob/master/meson.build#L10. The build looks like it dies right after it finds the aarch64 python so I assume thats the root cause.
Stepping back, I was able to get glib to cross compile by removing gtk-doc from the build inputs while cross-compiling. Not sure if thats the correct approach, however.

This was introduced by adding gtk-doc as buildInput (which was needed, so is correct) here: 884a83cacb69.
Doing this:
commit 5e82a07be0b1e14ee62d3d3e6c6648c94b096563
Author: Rick van Schijndel<EMAIL_ADDRESS>Date:   Fri Mar 19 11:37:38 2021 +0100

    gtk-doc: fix cross-compilation

diff --git a/pkgs/development/tools/documentation/gtk-doc/default.nix b/pkgs/development/tools/documentation/gtk-doc/default.nix
index e74a6b9c3c6..b9a70990542 100644
--- a/pkgs/development/tools/documentation/gtk-doc/default.nix
+++ b/pkgs/development/tools/documentation/gtk-doc/default.nix
@@ -32,6 +32,11 @@ python3.pkgs.buildPythonApplication rec {
     passthru.respect_xml_catalog_files_var_patch
   ];

+  depsBuildBuild = [
+    python3
+    pkg-config
+  ];
+
   nativeBuildInputs = [
     pkg-config
     gettext

helps, but I'm pretty sure that it's just a bandaid, since I've seen errors down the line when gtk-doc is actually used (not in glib though). So this requires some looking into.


This item cannot be shared. Please select a different item when sharing on whatsApp on iOS

Steps to reproduce

Share text/image on whatsapp using shareSingle

Expected behaviour
It must share text/image. It works well on Android but gives error on iOS
Actual behaviour
Getting the below error:
This item cannot be shared. Please select a different item when sharing
Environment

React Native version:
React Native platform + platform version: iOS 9.0, Android 5.0, etc

react-native-share
Version: npm version or "master"
Link to repo (highly encouraged)
NA

This is still not working.


Adding updated project page link

Linking :metal:
@rsandor Let me know if there's additional contribution requirements for this.

Good catch! Appreciate it :)


Upsert instead of update?

https://github.com/GoogleCloudPlatform/php-docs-samples/blob/4b6eb2b08c6b1b9619253a42a02de980526c2919/datastore/api/src/functions/concepts.php#L128
Is there a reason the PHP snippet for update uses upsert in a transaction instead of update in the docs?
https://cloud.google.com/datastore/docs/concepts/entities#datastore-datastore-update-php

Fixed in 40eedd36947fdbebe42a5a3631351a8a5054fa20


[WIP] sensors/lsm303dlhc: Add bus driver support

Now lsm303dlhc can be configured with I2C bus drivers.

@kasjer should this PR stay open or is it no longer needed?

Will be opened again when I have time to finish it


Implementation of Language specific guidelines

Related closed issues: #152  #18  #12 #25.
In my opinion, we should consider adding good practices, links to linter and prettifiers and general styling rules, like using spaces instead of tabs for indentation and how many spaces to each language.
But this could be a good place to define a way to contribute in relation to writing the chapter's text, like in #25, as, for now, we have to wait for @leios  working on it and there is not a defined way of writing and submitting PR in respect of this.

[x] Start writing a How to Contribute section
[x] Make language-specific subsections as we think about them
[ ] Make a general section for defining common styles and  list "Prettifiers" and "linters"
[ ] Add PR and Issues templates

@lulucca12 I agree. Something like this is useful. Maybe we should have a page for each language in the wiki?

I think a page per language is excessive, unless we're talking about C++ 😛

Fair enough. I know @julianschacher and @Butt4cak3 were both talking about adding more to the How to Contribute section.

I think we should list some TODOS for closing this issue and add them separately, one in each PR. Something like this:

[ ] Start writing a How to Contribute section
[ ] Make a list of Prettifiers and linters
[ ] Make a general section for defining common styles
[ ] Make language-specific subsections as we think about them

And we could add more.

I think we should create simple and non-intrusive templates that should be just a way of getting started, for people that face the problem of the blank page, doesn't know how to start making the first issue/PR but not so complex that they feel intimidated.

[ ] Start writing a How to Contribute section

As Julian already said, he's working on that and I'm also working on a video series on the topic. In addition to that, I did a live stream to show the process and answer some questions, but that one didn't go too well.

[ ] Make a list of "Prettifiers" and "linters"
[ ] Make a general section for defining common styles

I'd combine these two. They're so closely linked that it makes sense to first outline the code style and then recommend some linters for it. If possible, we should also add linting configurations to the repository.
Other than that, I agree on these points. You might want to move the checklist to the top post for visibility, @lulucca12.

@Butt4cak3 Do you have a schedule or you do the streams occasionally? I follow you on Twitch and I couldn't watch it. I agree with the idea of streaming the process of contributing to the Archive and I think it should be done by more people.

@lulucca12 I'm not a streamer. I stream things occasionally, when I feel like it. I was thinking about trying the contribution stream thing again because I think it failed in part because it was too spontaneous. If there's a next time, it will be announced somewhere beforehand.

@lulucca12 You can check the first point. The How to Contribute section is being worked on by me.

@julianschacher @Butt4cak3  This section is nice, thanks for creating resources for making the contribution more easy for me and for others :smile:

I think we could close this one, since we have Code style guide and How to contribute
cc @Butt4cak3 @leios @julianschacher

We didn't really discuss PR and issue templates yet. @PudottaPommin

So, what thoughts do you (all) have on them?
As I said before, they can provide useful information, but they might be scary (probably, if they are too heavy, long and/or complicated).
If we can come up with simple and friendly ones however, I think we can add them. It would check a point of this.

As a PR template, I'd suggest something like
[Please write a few words about what this PR does. If it fixes an issue or improves an aspect of the book, please explain what the issue was or why you think your change is an improvement.]

So nothing too formal, but at least a reminder to actually write something into the description. Lots of people just set the title and leave the description empty. That works for very simple PRs, but most of the time it's a good idea to write a sentence or two.

Issue template is quite harder if you want write. Because it might be problem of text, code or anything unrelated.
Howere I agree with @Butt4cak3 that simple PR template with basic description would be sufficient.

Yeah, a simple template seems sufficient and shouldn't scare people.

@Liikt
Automatically pinging people, who said that they can review certain languages, would make the google doc list feel like something that obligates people to review stuff. I think we should handle it more like a reference, that can be used manually.
For the PR bump thing: We can use the Stale app for that.

Requesting reviews can be done if you know, the person is only valid/active person, which can do review. If it's not the case, you can just wait, and after few days you request review.
As for me, I requested review from @Butt4cak3 , but he got no notification about that.
Stale App looks good.

To be fair, I may have accidentally the notification as read or it was a one-off thing. It was probably human error.
Automatically closing issues doesn't sound like a good idea to me. We have a bunch of old PRs in this project that shouldn't get closed.

I think that autoclosing can be set to like 10000 days or maybe even turned off, but the stale, could help with not progressing PR's which are not marked as WIP

I believe we should implement PR templates for chapter submissions, code submissions, and issues once #493 is resolved.
We are missing a lot of languages in the Code Style Guide, but we are making progress.

#865 convinced me we should use language specific doc strings


Improvements to integration tests

In the light of various integration test runs(on CentOS CI) over the last few days following changes are found to be valid for reliable execution of test cases.

/retest all

/retest centos-ci/sink-clustered/mini-k8s-1.23

OK, so this looks like a subset of the changes I just commented on in PR #158. Both PRs are draft and I won't repeat myself here. Please make one or the other reviewable once you're ready and @-ping me for a review.

Sure.
Now I have rebased and fixed the commit message.


Ruby 2.7 can't run rspec

Summary
Ruby 2.7.0 blows up when requiring protobuf/c code
Expected Behavior
rspec will run
Current Behavior
rspec crashes with a huge stacktrace
Context & Motivation

Your Environment

Version used: Latest from master
Operating System and version: Ubuntu 18.04.3 LTS
Link to your project: this one

Hopefully, this should be fixed with #188 which updates cucumber-messages and not rely on protobuf/c anymore.
Truth is, it still breaks but differently. I hope to be able to fix it and merge to master so you should be able to integrate that in your PRs :)

Currently the build fails has we have a warning raise due the private here: core/test/result.rb:12
To be honest, I don't really understand what it does and how to fix this warning. I see this was written by @brasmusson, could you provide any insight on that by any chance ?

It should be all ok now (#191 fixed the private warning and #188 bumped to the latest gherkin which uses pure ruby)


application.env should be mounted from a config-map to /etc/network-node/ directory

As discussed, we shall need to work on a separate PR where `application.env` will be mounted from a config-map to `/etc/network-node/` directory.

This will also require updating the docker images in `full-stack-testing/docker` to ensure `application.env` is loaded from `/etc/network-node/`:
`docker/ubi8-init-java21/network-node.service`
`docker/ubi8-init-java21/Dockerfile`

Originally posted by @leninmehedy in https://github.com/hashgraph/solo/pull/84#discussion_r1506596909

[ ] Requires #https://github.com/hashgraph/full-stack-testing/pull/797

:tada: This issue has been resolved in version 0.26.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


No module named 'tfdecon'

While running CElegans - Multiple Channel Example.ipynb
Also had a quick look at the source, and could not track tfdecon down, but could be blind.

Ah yep, that should take care of it.  I think some of the notebooks haven't been updated since I picked that name for the repo.

By the way, is the project still active? It seems last commit was 6 months ago. If so, do you need any testing done? I think I will be playing around with this, so happy to help (I'm no python expert though!).

Yep for sure, or at least the whole project was something of a precursor to this project which was for doing some higher throughput analysis on images from a specific immunofluorescence technique, but we haven't ironed all the wrinkles out of the experimental process so publications involving either project are still a WIP.  It's been working well internally though (so I haven't committed any changes in a while) and I'm kind of surprised to see that many stars and forks before any related paper so maybe other people are getting some value out of it.
As far as testing goes, one of the things I was less certain about was how to validate point spread functions -- I'm not sure if that's of particular interest to you but there might be a better way to do that than what I did, which was to generate some with this library and PSFGenerator to see if the degree of similarity was "high enough" (it was very high but I'm not sure at what point it becomes enough).  Or maybe it would be good to have comparisons to some other deconvolution software other than DeconvolutionLab2, either in terms of speed or quality of results?  Another even simpler test could be to simply try it on any 2 or 3D dataset for validation other than these ones: http://bigwww.epfl.ch/deconvolution/index.html#data.  Those are the only commonly referenced examples I'm aware of so really anything outside of that would be helpful.
Anyways, thanks for reaching out and feel free to add any issues you run into -- happy to jump back into development on this if some other people would find it helpful too.

Yes, I think this can be a very useful project (I am spreading the word in my previous group part of which did work with wavefront coding microscopy, so might potentially be useful for them). I will have to check out cytokit at some point (perhaps it would be worth putting the link to that project on the landing page?).
In terms of testing, I would be interested to know how flowdec would work deconvolving images acquired with Airy-beam light-sheet (the system we have is based on: this article. I would also be interested seeing how your code compares to a closed source code provided by the company who supplied the microscope (my worry is that their PSF extracted from real images look a lot worse than the PSFs used in your examples (I assume those are synthetic?)). The only possible issue is that we have an NDA with that company, so I am not sure how much I could share.
P.S.
Speaking of generating PSFs, I wonder if biobeam would be useful for you (I haven't had time to play with this so cannot comment how well it works).

Ah very cool, seems like a great test.  Using biobeam does look like it would be pretty similar to the usual theoretical PSFs used in standard fluroescent imaging (informed by microscope parameters), but  I can't say we've ever tried using an empirical PSF and I'm curious how they even get that without some kind of bead or other known object intentionally embedded in the sample (or imaged separately).
Either way though, can you get a PSF and a raw image/volume from the scope to test as inputs to compare to their outputs?  I'd be surprised if there was much of a difference given that the RL algorithm seems to be the underlying implementation in a couple closed-source systems we probed at too.  As far as I can tell most of the value in proprietary deconvolution software seems to be in blind deconvolution or PSF generation so FWIW my guess would be that as soon as you have a good PSF any open source deconvolution library like this would likely function similarly.
Oh and yea, those synthetic datasets are accompanied by PSFs which I imagine were generated based on some theoretical diffraction model (but likely aren't that different from PSFs used to deconvolve actual data).  Also if it helps, I've heard empirical PSFs with oil immersions, as opposed to air, are sometimes pretty crazy so maybe airy-beam diffraction is similarly inconsistent?  If nothing else it might be interesting to try to deconvolve a raw image with a PSF from biobeam and see how it looks, to avoid any NDA restrictions.

Yes, I will aim to get some PSF measurements done in the near future, my only worry is that the motorized stage on one of the light sheet systems we have (LaVision Ultramicroscope II) might be limited to 0.5um steps, which might not be ideal. However, I should be able to obtain some data from my previous lab. Since this is a side project mostly, it might take a long time before I actually get this done (as with all things in academia!).

Ah fair enough, well let me know if I can help with anything at any point.

It's been a while, but @vzickus if you're still working with light-sheet images you might find some recent work from @VolkerH at https://github.com/VolkerH/Lattice_Lightsheet_Deskew_Deconv helpful.  There are great examples in there for building PSFs, running deconvolution (with other libraries too), resampling large volumes w/ GPU-acceleration, etc.
Closing this thread for now but let us know if anything else comes up.

Apologies @eric-czech that I did not get back anything in the end, just did not find the time to do this initially, and then it slipped my mind!

No worries at all!  I was doing some issue house cleaning and realized that might be relevant for you.


Rerun analysis, run preprocessing and EDA

Rerun analysis, run preprocessing and EDA
In this PR, we rerun the analysis to fix a bug where plate metadata was not extracted, run preprocessing (without QC for now), and perform a quick EDA using UMAP.

@MattsonCam Thank you for the review! As I stated in the comment, please feel free to provide any suggestions for the treatment UMAPs, and I can consider them in another PR. Merging now!


Assign service port 49985

49985 is now assigned as the default port for device-camera-go
Sample .toml files, Dockerfiles and documentation should use this.

Resolved via commit cc4f722


Fix endless recompiles

When running cargo build --release twice in a row, the second time would recompile a bunch of things. I identified the problem to be a wrong statement to cargo: A non-existing file was mentioned, which let cargo to recompile every time.
This fixes it.

@wally-the-cartographer merge

@wally-the-cartographer merge

Merge requested by authorized user SirVer. Merge queue now has a length of 1.


libxml2: upstream patch for Python 3.9.

(cherry picked from commit 81eddf15167a82ab03ac3cf05c248316f499496a)

Motivation for this change
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

Please don't merge until we have a batch of changes for staging-20.09.

@FRidh Is this ready to go in? Asking because #106447 just went in.

yes definitely


[Scheduled Maintenance] Site down for Maintenance

Site is currently rebooting, and we are changing LocalSettings.php to accomodate to a new analytics site. There may be connection issues at the moment.  Expected to be no less than an hour.

Outage was intermittent and is now over. Porting is complete.


Docker events for images - include new image download, image update events

Docker events are limited as of now to untag and delete. For the purposes of inventory management as well as trouble shooting, it would be good to include additional events for image download as well as image updates. Ranjan

Just tried this on the latest docker and I see both "pull" and "push" events in the event stream now. I think we can close this. If you still think we're missing events can you please reopen it with the list?  thanks!


Add support for spring cloud loadbalancer

Needs to include docs referencing ribbon removed in #530

-Any time line for this issue Add support for spring cloud loadbalancer #516

Done for 2020.0.0.M4.


chore: Add pricing at the offerings level for spot instance types

Fixes #2256
Description

Adds pricing data to the offerings level for spot and od instance types
Sorting the instance types based on price is now achieved by determining the cheapest offering for the instance type and using that as the representative price
Determining whether something is consolidatable is now determined at the offering-level for both spot and on-demand

How was this change tested?

make test
Manual validation of consolidation

Does this change impact docs?

[ ] Yes, PR includes docs updates
[ ] Yes, issue opened: #
[x] No

Release Note

None

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Nice work!

LGTM as well, can we get a consolidation test in a follow-on PR that does an OD to Spot replace consolidation?


[REQUEST]  Background Video Support

So I was thinking about the Osu Play being able to play the beatmap's music video file which can play in background along with the song itself. I'm not sure if it would also show for the mini player as an option too but it would be cool if the video can be used as an background for the miniplayer too!

This might be possible or not, as we have to see if Avalonia supports nativ playback of videos.
The second thing to consider is videos that are shorter or longer than the actual playback.
Also we have to consider the UI for that. If it makes sense because of readability and visibility of texts.
Really want to hear @Cesan input to that first.

Oh, Alright then.


[Feature Request] document max_input_length for completion type fields

Is your feature request related to a problem? Please describe
When I visit the documentation about the completion type fields for OpenSearch 2.15 on
https://opensearch.org/docs/latest/field-types/supported-field-types/completion/
there is no mention of the parameter max_input_length, which seems to work fine. The corresponding page in the ElasticSearch documentation does document it, along with a few other fields
Describe the solution you'd like
Please document this parameter along with other potential ones that are currently missing in the doc (like analyzer)
Related component
Search
Describe alternatives you've considered
No response
Additional context
No response

Thanks @eroux for bringing this up. Could you help with the PR for the documentation on this one?


*: Update to promu v0.15.0

WIP on top of #6824

Closing it as discussed with @saswatamcode who will take it from there.


Memory Issue

After a certain number of videos have been downloaded, the application is terminated by memory error. For this, can we save the downloaded data to disk instead of memory?
If we can't do this, can you help us how to remove the downloaded data from memory? (I know that the data is not cached, but as long as the application is open, the downloaded data is kept in memory, causing memory issue)

The data is stored in ResourceLoaderDelegate.mediaData. Technically, when you lose the reference to the CachingPlayerItem it should be released from the memory along with all of it's internals.
There may be memory leaks causing the issues you're describing. I would add deinits to ResourceLoaderDelegate and CachingPlayerItem, make sure that they get called, and troubleshoot from there.
If you find there's a bug in the implementation, please report it

I tried it but can not achieved this. Can you give example to  add &c call deinits to  ResourceLoaderDelegate and CachingPlayerItem.

I also want to remove the cached items. Please help

There's no caching done by CachingPlayerItem. It only gives you the raw Data via a delegate, and it's up to you how to cache it (and how to delete it from your cache).

Hi, so I'm working in SwiftUI. I added prints to the existing CachingPlayerItem class and then the contained class ResourceLoaderDelegate. In my case it looks like the CachingPlayerItem deinit is fired every second--is this the correct behavior? For every deinit CachingPlayerItem that is fired, there is a ResourceLoaderDelegate deinit that is fired as well.
I'm getting a Memory error in the processPendingRequests() function when it tries to map the pending requests.
Not sure why exactly this error would be happening. All I've done is replaced all my existing AVPlayer(url:) structs with AVPlayer(playerItem:) structs instead. Should the cache be working in this situation? Not sure how to continue debugging because I don't understand the module 100%. Any help is much appreciated!


Implement range adaptor

Range adaptor implementation would allow to use encoding as follows:
std::string src = "abc", res = src | encoded<bech<32>>;

Done with 740d415


Asynchronous blob_client.query_blob()

azure-storage_blob V12.15.0
V12.15.0
Ubuntu-22.04 (WSL)
3.10.6

I am having trouble getting query_blob() method of object azure.storage.blob.aio._blob_client_async.BlobClient to work.
Steps to reproduce the behavior:
 from azure.storage.blob.aio import BlobServiceClient
      async def main():
          blob_service_client = BlobServiceClient.from_connection_string(
              self.connection_string_srct.get_secret_value()
          )

          # Name of the container and blob to query
          container_name = self.container
          blob_name = blob

          # Get a reference to the blob
          blob_client = blob_service_client.get_blob_client(container_name, blob_name)

          # Query the blob asynchronously
          async with blob_client:
              data_reader = await blob_client.query_blob(  # nosec
                  f"SELECT * FROM BlobStorage where measurement_source_id in {in_string}",
                  blob_format=parquet_format,
                  output_format=csv_format
              )

Expected to return a data reader object in the same was that the synchronous version of object does but instead I get the error:
'TypeError: cannot unpack non-iterable coroutine object'
Is it possible to get this method working asynchronously and if so how? My end goal is to be able to filter the parquet file on blob storage before downloading to VM we are using to run the script.

Hi @olearyl94, you are correct that we do not seem to have an implementation of query_blob in our async client. It seems like this is something we may have missed during our initial implementation. Assuming we don't find a technical reason why this wasn't included; we will work on adding this in the near future. In the meantime you can try using the sync client if you are able to.
I do also want to call out that while we may be able to add this to our async client, support for parquet format is actually in a limited preview from the service and therefore may not work in your region or may not work as intended. The service team is aware of these issues but have not given a timeline for when this feature may be fully supported. You are welcome to try it, but you may see unexpected results. See #28963.

Is query_blob officially released yet or is it still in preview? Where to find this information? Thanks!


Use 'public-read' ACL on new objects?

Hi,
How can I get yas3fs to use the 'public-read' canned ACL when creating new objects?
I would like all files created by yas3fs to be publicly accessible. I believe this ACL should do that.
Looking at the options for s3fs, I notice that there's an option --default_acl which allows you to choose the ACL that is applied to newly created (as well as updated) objects.
Is there something similar for yas3fs? If not, do you know how I can have a publicly accessible bucket whilst using yas3fs?
Thanks

I've found a way around this through use of an S3 'bucket policy'. This sets a rule in the bucket to add the public-read canned ACL on objects, and thus makes object URLs publicly accessible.
Here's the bucket policy I've used to achieve this:
{
	"Version": "2012-10-17",
	"Statement": [
		{
			"Sid": "AddPerm",
			"Effect": "Allow",
			"Principal": "*",
			"Action": "s3:GetObject",
			"Resource": "arn:aws:s3:::mybucketname/uploads/*"
		}
	]
}

In this example, all objects inside the uploads directory of the bucket called mybucketname are public.

That aside, I would still be interested to know whether there are any provisions within yas3fs to set ACLs on objects, similar to the way it's done with s3fs. But in the meantime, this bucket policy seems to be a nice workaround.


"Clear" button receives "enter" click from different fields

Steps to reprodcue

Have a form with multiple fields, including a date field with React Date Picker
Have clear button on that date picker
Enter text in any other field (I only tried with text inputs)
Press enter to submit the form

Expected behavior

Form submits

Actual behavior

Date in first date picker clears
(If you have multiple date pickers, then pressing enter again will cause the second one to clear).

This is caused by the clear button not having type="button".  The default for the type attribute for button elements is "submit", and when you press enter on a form, it will send a click event to the first button where type="submit" (or type is undefined, and therefore defaults to submit).
Adding type="button" to the clear button will resolve this issue.

resolved in F86a8e4


Allow user to choose a system sound on macOS

Allow the user to specify by name one of the sounds that live in /System/Library/Sounds on macOS.
Theoretically according to the documentation this would also allow the user to pick their own custom sound by name as long as they had packaged their python into a signed and sandboxed macOS app but I haven't tested that functionality. System sounds work great though.
Feel free to close this PR if it's not a feature you want. Also happy to make any requested changes as far code or documentation or whatever.

These are the sounds available on macOS as of late. I'm pretty sure they've all been around for a decade or more at this point:
$ ls -l /System/Library/Sounds/

Basso.aiff
Blow.aiff
Bottle.aiff
Frog.aiff
Funk.aiff
Glass.aiff
Hero.aiff
Morse.aiff
Ping.aiff
Pop.aiff
Purr.aiff
Sosumi.aiff
Submarine.aiff
Tink.aiff

Frog.aiff is a personal favorite.

Codecov Report
Attention: Patch coverage is 57.14286% with 3 lines in your changes missing coverage. Please review.

Project coverage is 58.23%. Comparing base (32752cb) to head (c5f10e7).
Report is 6 commits behind head on main.

Files
Patch %
Lines

src/desktop_notifier/base.py
50.00%
2 Missing :warning:

src/desktop_notifier/macos.py
66.66%
1 Missing :warning:

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #135       +/-   ##
===========================================
- Coverage   71.23%   58.23%   -13.01%
===========================================
  Files           8        8
  Lines         657      656        -1
===========================================
- Hits          468      382       -86
- Misses        189      274       +85

Flag
Coverage Δ

pytest
58.23% <57.14%> (-13.01%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Did my best to make the changes as you requested. Let me know if I got it right; happy to change again.


Presentation Tool re-downloading and re-rendering image assets unnecessarily in Safari

Describe the bug
When using the new Presentation Tool in Safari, image assets added to a page are re-downloaded every second or so alongside the continuous API requests being made. This causes unsightly content flashes, difficulty selecting content with the overlays, and unnecessary memory usage.
This issue does not appear to happen in Chrome.
To Reproduce
Steps to reproduce the behavior:

Clone template-nextjs-personal-website.
In Sanity, create a new page under Page.
Add an image to the Body field.
Monitor the network requests.

Expected behavior

Image assets should not be re-downloaded or re-rendered until they are updated.
Behaviour across browsers should be consistent.

Screenshots
✅ Chrome: Network log shows consistent API requests without any image requests:

❌ Safari: Network log shows consistent API requests with constant image requests:

Which versions of Sanity are you using?
@sanity/cli (global)        3.21.0 (up to date)
@sanity/demo                 1.0.2 (up to date)
@sanity/image-url            1.0.2 (up to date)
@sanity/overlays             2.1.3 (up to date)
@sanity/preview-url-secret   1.3.1 (up to date)
@sanity/react-loader         1.3.0 (up to date)
@sanity/vision              3.21.0 (up to date)
sanity                      3.21.0 (up to date)

What operating system are you using?
macOS 14.0 (23A344)
Which versions of Node.js / npm are you running?
Node: v20.10.0
NPM: v10.2.3
Additional context
Safari: Version 17.0 (196<IP_ADDRESS>.1)
Chrome: Version 120.0.6099.62 (Official Build) (arm64)

Hey @stipsan. Really appreciate the explanations - all makes perfect sense, thank you.👌🏻

Following. Facing the same issue. The image constantly reloading.

Hey, can ya'll try v1.7.2 and see if it improves the situation? ☺

@stipsan Works perfectly - thanks so much! 🙏🏻


Use the term Dead-Letter-Sink

Signed-off-by: Matthias Wessendorf<EMAIL_ADDRESS>Fixes #

Proposed Changes

as per title

Release Note

Docs

/assign @travis-minke-sap

Thanks @matzew !
/lgtm


Behavior of set_run_options in composite experiments

Suppose that exp1 has, as a run option, shots equal to 1000. And exp2 has shots equal to 2000. And we create a parallel experiment, and set its shots to 3000. Now we run. What will happen?
Check what will happen. Decide what we want to happen. Fix if needed.

The run options are completely determined by the parallel experiment. The run options of the sub-experiments are ignored.

Options:

Do nothing, with the rationale that users are supposed to know that what counts is the run options of the parallel experiment. This option may confuse users who explicitly set say the number of shots of the sub-experiments (say to an equal number in all the sub-experiments), and don't even know that another number of shots was eventually picked (you have to look deeply inside the experiment data, at the counts, to see that they don't sum up to what you expect; so, if the number of shots is different than what you think, you may not even know it).
Raise a warning if run options of sub-experiments are different from the parallel experiment. This option, on the other hand, can be confusing to users who know that what counts is the parallel experiments, so will suffer from an over-triggering of warnings here.
Some hybrid approach, like raising a warning if the run options of sub-experiments is different from the default and from the parallel experiment - I'm not fond of this one either because it's complex.

What do you think?

Same story also for transpile options

For 1st release: option 2 and document expected behavior

User should also be warned if their run options are being overridden by the provider

Done in #159


Handles v8 API response with not default wid

:star2: What does this PR do?

Assign a default_wid to TogglButton.$user
Prevent type error at https://github.com/toggl/toggl-button/blob/39e7cd52b1a3676dcb0b8a95e35cbbf963472d6a/src/scripts/autocomplete.js#L452

:bug: Recommendations for testing
See /keybase/team/toggl.frontend/toggl-button/1053/info.md on keybase for instructions.
# on mac
open /keybase/team/toggl.frontend/toggl-button/1053/info.md

on windows open k:\team\toggl.frontend\toggl-button\1053\info.md
:memo: Links to relevant issues/docs
For some users particularly ones who created account via an invite thus
are part of a workspace that they don't own the api wasn't returning the
default_wid field in the response in the v8/me endpoint.
Related #671
Closes #1053

Talked to backend they said the v8 API is unsupported. So they wouldn't be eager to fix it.
Also we have #671 so until we make progress this pr should be able to handle the inconsistency


Import commits from apache/arrow

We need only commits for https://github.com/apache/arrow/tree/main/java . Other commits such as commits for .github/ aren't needed. We need to adjust other files for this repository.
We can do this by the following command lines:
git clone git@github.com:apache/arrow-java.git
cd arrow-java
git remote add arrow https://github.com/apache/arrow.git
git fetch arrow
git switch -c arrow-main-java arrow/main
git filter-branch --subdirectory-filter java
git switch main
(git log --format=%H --reverse arrow-main-java | while read commit; do git cherry-pick $commit; done)
git push origin

mvn -T 2C clean install failed because https://github.com/apache/arrow/blob/c21d85d1b3c31902c8d6f2fbf1f2a4ecfbd90772/java/vector/src/test/java/org/apache/arrow/vector/ipc/TestJSONFile.java#L321 refers https://github.com/apache/arrow/blob/main/docs/source/format/integration_json_examples/struct.json .
Let's fix it later. I'll push this as-is.

Imported.


AttributeError: module 'ollama' has no attribute 'chat'

Error while executing the Program.
Inititally it was throwing if the model name is given as llama3. Then i changed with the modelname displaying in ollama:list.
Then it ran and displayed " Web Page Successfully Loaded". Then after made an attempt to chat then it was throwing below error.
module 'ollama' has no attribute 'chat'

Any help ? Any breakthrough??

What's the name of your python file?
Is your file named ollama.py?

The same code works for me, make sure your file is not named as ollama.py and you install all the requirements correctly.

Spot on ! Same Mistake.
Thanks, you made my day !!


Refactored mockito integration

Refactored mockito integration which allows qualified mocks.
In the end, I had to keep MockitoInjector which is still needed for @EJB injections.

@kalgon can you resolve the conflicts? I'll take a look tomorrow.


Rollback feature

Is your feature request related to a problem? Please describe.
Once a new configuration of a module is rolled out, in case of a faulty deployment, it would be beneficial to have a history of previous states and be able to rollback to some previous (healthy) version.
Describe the solution you'd like
Possibly add storage to Cyclops to store history. To store history, each time a module is edited, it needs to be saved so all K8s manifests can be generated from it and compared to the current state of the module

Added to https://github.com/cyclops-ui/cyclops/releases/tag/v0.0.1-alpha.8


Bot joins on /play even when no match was found.

If a member uses "/play " and the bot is not currently in a voice channel but the member is, the bot tries to find a song and joins the member's voice channel. The problem is that it joins even if it doesn't find a song. It should maybe only join when it finds one so it doesn't create confusion.

Fixed in d4cd597.


Webview frozen until mouse moves on Windows

Describe the bug
On windows (webview2) after clicks sometimes noting happens until the mouse moves or until ~2 second passes.
The bug was discussed before at https://github.com/tauri-apps/tauri/issues/3691
Steps To Reproduce
cargo run --example hello_world
Open and close the hamburger menu by clicking on it and don't move the mouse
Sometimes it won't open instantly but a second later
Expected behavior
Menu opens/closes instantly always
Platform and Versions (please complete the following information):
OS: Windows 11 Pro 22000.739
Rustc: 1.61.0 (fe5b13d68 2022-05-18)
Would you assign yourself to resolve this bug?

[ ] Yes
[x] No

Additional context
Last working commit: https://github.com/tauri-apps/wry/commit/3a6eefae66c41da0f09293911675cb3c094e58b5
First commit with the bug: https://github.com/tauri-apps/wry/commit/219d20ce66a6bdf6c3e1af6156c9f2a74f2eed29
Since that commit is a merge and the commits inside of it are tricky to build I'm not certain of this but the possible culprit:
https://github.com/tauri-apps/wry/pull/414 (https://github.com/tauri-apps/wry/pull/477/commits/e056fb2a15e29de1b8ed85a548cfeb1f85031357)
From my testing the webview2-rs example does not have this issue

I found that it won't happen if control flow is poll, and Device Motion Events seem sending like crazy.
Might worth it to replace tao with winit and test it.

Okay, I got some new findings. I tried more approaches like creating the minimum webview, use winit instead, and toggle several options. They all failed. Here is the branch I tested: https://github.com/tauri-apps/wry/tree/wv2-frozon-where-es-mah-suit
What's interested is if I don't call any Windows API in thread_event_target_callback, the freeze is gone. So you either turn to ControlFlow::Poll, or remove the event target callback in tao's implementation.
I'll try to see if I can recreate it in webview2-rs.

Is this the ControlFlow::Poll in "event_loop.rs" (found in the .cargo\registry\src\githubsomenumber\tao-0.11.2\src\platform_impl\windows folder)? I poked around with it for a bit, but am unable to even hack this file to bits such that it causes a crash, or gives any response showing that my changes are propagating to a build.
Is there some step prior to or in addition to doing "cargo tauri build" that I should do to make sure whatever I change in the dependency source code reflects in a build?
I have literally all summer to figure it out :D

@McZazz Thanks for willing to help!
I have a fix in https://github.com/tauri-apps/tao/pull/427. But I'm still testing if this will bring any subtle change.

We have lighter PR in https://github.com/tauri-apps/tao/pull/465
But it probably need some more tests.

@AmionSky Did you try with DeviceEventFilter::Always?

@wusyong I have not. Sorry. With the filter set it fixes this

i'm also having the same issue

I've been experiencing this in Tauri for a while. It's a little difficult to understand how wry and the fix in tao relate to Tauri; am I correct in understanding that the fix can't be used in Tauri yet?

@rgwood In theory you can tell Cargo to use only wry from git, but iirc wry and tauri changed a bit too much compared to 1.0.5 so you probably need to use tauri from git instead, see https://tauri.app/v1/guides/faq#how-can-i-use-unpublished-tauri-changes

this now has landed in tauri, do you still face the same issue?

Looks like it's fixed. No longer have the issue in wry or tauri.


Update Settings “general”

Automatically generated by Netlify CMS

👷 Deploy Preview for theaiodyssey processing.

Name
Link

🔨 Latest commit
2335c8361ff9a6d734f98b571ca23c6617dd9ce0

🔍 Latest deploy log
https://app.netlify.com/sites/theaiodyssey/deploys/66647432288e9a0008ed670e


[ESP32] Thermostat cluster usage: how to correctly recognize the change in temperature and mode

Hello!
Not really sure if it's okay to ask this question here, but searched through a lot of information and couldn't find an answer.
The examples also don't include an ESP32 thermostat example, so I hope I get the info here.
What I'm trying to do is add a thermostat as a bridged device.

Here is how I add lighting (based on the example)
const EmberAfDeviceType gBridgedOnOffDeviceTypes[]  = { { DEVICE_TYPE_LO_ON_OFF_LIGHT, DEVICE_VERSION_DEFAULT },{ DEVICE_TYPE_BRIDGED_NODE, DEVICE_VERSION_DEFAULT } };

// ---------------------------------------------------------------------------
//
// LIGHT ENDPOINT: contains the following clusters:
//   - On/Off
//   - Descriptor
//   - Bridged Device Basic

// Declare On/Off cluster attributes
DECLARE_DYNAMIC_ATTRIBUTE_LIST_BEGIN(onOffAttrs)
  DECLARE_DYNAMIC_ATTRIBUTE(ZCL_ON_OFF_ATTRIBUTE_ID, BOOLEAN, 1, 0), /* on/off */
DECLARE_DYNAMIC_ATTRIBUTE_LIST_END();

// Declare Cluster List for Bridged Light endpoint
// TODO: It's not clear whether it would be better to get the command lists from
// the ZAP config on our last fixed endpoint instead.
constexpr chip::CommandId onOffIncomingCommands[] = {
  chip::app::Clusters::OnOff::Commands::Off::Id,
  chip::app::Clusters::OnOff::Commands::On::Id,
  chip::app::Clusters::OnOff::Commands::Toggle::Id,
  chip::app::Clusters::OnOff::Commands::OffWithEffect::Id,
  chip::app::Clusters::OnOff::Commands::OnWithRecallGlobalScene::Id,
  chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Id,
  chip::kInvalidCommandId,
};

DECLARE_DYNAMIC_CLUSTER_LIST_BEGIN(bridgedLightClusters)
  DECLARE_DYNAMIC_CLUSTER(chip::app::Clusters::OnOff::Id, onOffAttrs, onOffIncomingCommands, nullptr),
  DECLARE_DYNAMIC_CLUSTER(chip::app::Clusters::Descriptor::Id, descriptorAttrs, nullptr, nullptr),
  DECLARE_DYNAMIC_CLUSTER(chip::app::Clusters::BridgedDeviceBasic::Id, bridgedDeviceBasicAttrs, nullptr, nullptr) DECLARE_DYNAMIC_CLUSTER_LIST_END;

// Declare Bridged Light endpoint
DECLARE_DYNAMIC_ENDPOINT(bridgedLightEndpoint, bridgedLightClusters);

As a result, I receive a request to read attributes in emberAfExternalAttributeReadCallback and see attributes written to emberAfExternalAttributeWriteCallback
It's all good - I can work with that.
Other types of devices - sensors, for example, which I create also work well.
Next, I'm trying to create a thermostat.

Thermostat Definition
    ```
const EmberAfDeviceType gBridgedThermostatDeviceTypes[] = { { DEVICE_TYPE_THERMOSTAT, DEVICE_VERSION_DEFAULT },
{ DEVICE_TYPE_BRIDGED_NODE, DEVICE_VERSION_DEFAULT } };
// ---------------------------------------------------------------------------
//
// THERMOSTAT ENDPOINT: contains the following clusters:
//   - Thermostat
//   - Descriptor
//   - Bridged Device Basic
DECLARE_DYNAMIC_ATTRIBUTE_LIST_BEGIN(thermostatAttrs)
DECLARE_DYNAMIC_ATTRIBUTE(ZCL_LOCAL_TEMPERATURE_ATTRIBUTE_ID, INT16S, 2, 0),
DECLARE_DYNAMIC_ATTRIBUTE(ZCL_ABS_MIN_HEAT_SETPOINT_LIMIT_ATTRIBUTE_ID, INT16S, 2, 0),
DECLARE_DYNAMIC_ATTRIBUTE(ZCL_ABS_MAX_HEAT_SETPOINT_LIMIT_ATTRIBUTE_ID, INT16S, 2, 0),
DECLARE_DYNAMIC_ATTRIBUTE(ZCL_ABS_MIN_COOL_SETPOINT_LIMIT_ATTRIBUTE_ID, INT16S, 2, 0),
DECLARE_DYNAMIC_ATTRIBUTE(ZCL_ABS_MAX_COOL_SETPOINT_LIMIT_ATTRIBUTE_ID, INT16S, 2, 0),
DECLARE_DYNAMIC_ATTRIBUTE(ZCL_OCCUPIED_COOLING_SETPOINT_ATTRIBUTE_ID, INT16S, 2, 0),
DECLARE_DYNAMIC_ATTRIBUTE(ZCL_OCCUPIED_HEATING_SETPOINT_ATTRIBUTE_ID, INT16S, 2, 0),
DECLARE_DYNAMIC_ATTRIBUTE(ZCL_MIN_SETPOINT_DEAD_BAND_ATTRIBUTE_ID, INT8S, 1, 0),
DECLARE_DYNAMIC_ATTRIBUTE(ZCL_CONTROL_SEQUENCE_OF_OPERATION_ATTRIBUTE_ID, INT8U, 1, 0),
DECLARE_DYNAMIC_ATTRIBUTE(ZCL_SYSTEM_MODE_ATTRIBUTE_ID, INT8U, 1, 0),
DECLARE_DYNAMIC_ATTRIBUTE(ZCL_FEATURE_MAP_SERVER_ATTRIBUTE_ID, BITMAP32, 4, 0),
DECLARE_DYNAMIC_ATTRIBUTE_LIST_END();
constexpr chip::CommandId ThermostatIncomingCommands[] = {
chip::app::Clusters::Thermostat::Commands::SetpointRaiseLower::Id,
chip::kInvalidCommandId,
};
DECLARE_DYNAMIC_CLUSTER_LIST_BEGIN(bridgedThermostatClusters)
DECLARE_DYNAMIC_CLUSTER(Thermostat::Id, thermostatAttrs, ThermostatIncomingCommands, nullptr),
DECLARE_DYNAMIC_CLUSTER(Descriptor::Id, descriptorAttrs, nullptr, nullptr),
DECLARE_DYNAMIC_CLUSTER(BridgedDeviceBasic::Id, bridgedDeviceBasicAttrs, nullptr, nullptr), DECLARE_DYNAMIC_CLUSTER_LIST_END;
// Declare Bridged Thermostat endpoint
DECLARE_DYNAMIC_ENDPOINT(bridgedThermostatEndpoint, bridgedThermostatClusters);
```

Feature map defined like default one.
Cluster revision for thermostat is 5u like documentation said.
The thermostat itself is perfectly displayed in the Home.app interface, I can set the temperature and change modes (although they are not saved and immediately return to their original states)
But the main problem that I see is that there is a call to emberAfExternalAttributeReadCallback, but there is no call to emberAfExternalAttributeWriteCallback. That is, Home.app does not transfer the record of attribute changes to Matter, or I do not understand how to correctly handle the change in thermostat attributes that user made.
MatterPreAttributeChangeCallback and emberAfActionsClusterInstantActionCallback are also empty.
Could you please tell me how to correctly receive thermostat changes on the ESP32?

but there is no call to emberAfExternalAttributeWriteCallback

Why would there be a write callback?  The Thermostat cluster itself does not write these attributes, and writing them via the Matter protocol is disabled because the last argument to DECLARE_DYNAMIC_ATTRIBUTE is set to 0 for all of them.  For the ones that should be writable, that argument should be ZAP_ATTRIBUTE_MASK(WRITABLE).

@bzbarsky-apple
Amazing, thank you.


The framerate is very slow on Safari 9.0.1 !!!

when i test my example code, it's ok on chrome & firefox, but FPS is very slow when on Safari 9.0.1, below is code :
    var stage = new createjs.Stage('demoCanvas');

    var t1 = new createjs.Text('Nokey', '20px Arial', '#ff7700');
    t1.x = 100;
    t1.y = 100;
    t1.textBaseline = 'alphabetic';
    t1.shadow = new createjs.Shadow('#000', 0, 0, 5);

    stage.addChild(t1);

    createjs.Ticker.addEventListener('tick', handleTick);
    // console.log(createjs.Ticker.framerate);
    function handleTick(event){
          if(t1.y > 330){
               t1.y = -20;
           }else{
                t1.y += 1;
           }

           stage.update();
     }

It's so weird!!!!!!!!!

Hmmm... seems fine to me. Have a look http://jsfiddle.net/sebastian_derossi/55z39ksq/1/
Tested on Safari 9.0.1 MacBookPro

Note that shadow is quite expensive, as it runs on the CPU. I would recommend not using it if you can avoid it. You could put the text in a container, and cache it, which would reduce the CPU cost because the shadow is just drawn one time.

My laptop is Macbook-12-inch. Could you test it on same device again?

Tested on my Macbook Air 11", which should be less powerful than a MB12", and it runs fine. You're definitely running into some kind of glitch on your device if you're seeing performance problems. As Lanny mentioned, shadows are expensive, but you shouldn't see any slow down with the small use of shadows in this example.

Sorry, guys, it's my fault. I haven't  shutdown my MB for a long time, and chrome opened a lot of tabs. It's ok after i restart...but only safari has this problem.


systemd/inetd socket activation

It would be cool if pantalaimon supported systemd or inetd socket activation, so that it can be started on demand, when a matrix client is trying to connect.
For this, pantalaimon would need to be able to accept sockets passed from systemd/inetd, either via systemd's native socket passing interface or via standard input/output (inetd).
See the second to last paragraph of this section: https://www.freedesktop.org/software/systemd/man/systemd.socket.html#Description

FYI, systemd-socket-proxyd works pretty well for this kind of thing.

Thanks for letting me know, systemd really has a solution for everything!

I finally got to try the solution via systemd-socket-proxyd and defined the units as follows:
pantalaimon-proxy.socket
[Socket]
ListenStream=<IP_ADDRESS>:8009

[Install]
WantedBy=sockets.target

pantalaimon-proxy.service
[Unit]
Requires=pantalaimon.service pantalaimon-proxy.socket
After=pantalaimon.service pantalaimon-proxy.socket

[Service]
# wait 5 seconds to ensure pantalaimon.service is up and can accept connections
ExecStartPre=/usr/bin/sleep 5
ExecStart=/usr/lib/systemd/systemd-socket-proxyd --exit-idle-time=5m <IP_ADDRESS>:8010

This allows pantalaimon to be started on demand. Furthermore, when extending pantalaimon by StopWhenUnneeded=yes, it is stopped 5 minutes after pantalaimon-proxy.service isn't proxying any connections anymore, as defined by --exit-idle-time=5m. pantalaimon has been configured to listen on localhost on port 8010.
I added ExecStartPre as sleep 5 seconds to the pantalaimon-proxy.service, because pantalaimon doesn't immediately accept connections after it is started. It usually takes 2 seconds on my machine. A better solution would be Type=notify support for pantalaimon, but at least it works for now.


Release/0.5

Provide the best practice and skeleton for future development. This release is done. Merge it into master.

Good job! Go ahead.


Please rename or remove the yesqa sub command

It is easily confusable with my project (I've already received reports that are your bugs and not mine)
It is a derivative work and violation of my copyright without attribution -- the code in your project directly mirrors the structure of mine and copies substantial parts including the regex patterns and processing code

It is easily confusable with my project

Sorry for this. I see, your project was created before flakehell. Makes sense then.
Sorry, I haven't seen your project. The name comes as wordplay with "noqa". I'll think of something better then.
Please, use ways to contact me to contact me. It is invalid PR, it just removes a command, I can't accept it. At least, CI fails.

It is easily confusable with my project

Sorry for this. I see, your project was created before flakehell. Makes sense then.
Sorry, I haven't seen your project. The name comes as wordplay with "noqa". I'll think of something better then.
Please, use ways to contact me to contact me. It is invalid PR, it just removes a command, I can't accept it. At least, CI fails.

It is easily confusable with my project

Sorry for this. I see, your project was created before flakehell. Makes sense then.
Please, use ways to contact me to contact me. It is invalid PR, it just removes a command, I can't accept it. At least, CI fails.

It is easily confusable with my project

Sorry for this. I see, your project was created before flakehell. Makes sense then.
Please, use ways to contact me to contact me. It is invalid PR, it just removes a command, I can't accept it. At least, CI fails.

Sorry, I haven't seen your project. The name comes as wordplay with "noqa". I'll think of something better then.

this is a straight up lie, you ripped off my code and copy pasted it to write your feature -- you even link to my project in your docs -- please either delete the feature or abide by the license or I will send a DMCA:
https://github.com/life4/flakehell/commit/286fccbe63d01985f7a2cde58754fa8b66c4f1f9#diff-427dc68d7d09f598d254573f08ed9b37a24a933328512cdb5b72d913b4ea844cR9

Sorry, I haven't seen your project. The name comes as wordplay with "noqa". I'll think of something better then.

this is a straight up lie, you ripped off my code and copy pasted it to write your feature -- you even link to my project in your docs -- please either delete the feature or abide by the license or I will send a DMCA:
https://github.com/life4/flakehell/commit/286fccbe63d01985f7a2cde58754fa8b66c4f1f9#diff-427dc68d7d09f598d254573f08ed9b37a24a933328512cdb5b72d913b4ea844cR9


feat: openapi migration

Proposed change
Migrate the typescript sdk generator in the @ama-sdk/schematics to extends OpenApiGenerator instead of Swagger generator to cover swagger and open api specifications
Related issues

:bug: Fixes #(issue)
:rocket: Feature #(issue)

As discussed, npm scripts prefix swagger could be changed to spec instead. Apart from that everything seems fine to me :)


CentOS6.x installed, but i cannot open bash

I installed centos6/centos:6.6/centos:6.7/centos:6.8, but i cannot open bash after installed..
when i install centos7.x ,it works fine.
Does it not support the old version centos?

Same problem. In the process of troubleshooting, did...
C:...> lxrun /uninstall /full
Then installed Ubuntu and Kali from the App Store, then followed these instructions...
http://www.mcubedtech.com/2018/07/running-linux-on-windows.html
C:...> wslconfig /list
Windows Subsystem for Linux Distributions:
Legacy (Default)
kali-linux
Ubuntu
btw...
C:...> winver
Version 1803 (OS Build 17134.165)
C:...> install.py centos:latest
[] Probing the Linux subsystem...
[] Default user is root at /root.
[] Reading /etc/{passwd,shadow,group,gshadow} entries for root...
[] Beginning extraction...
[] Backing up current rootfs to ....
[] Switching to new rootfs...
[*] Writing entries of root to /etc/{passwd,shadow,group,gshadow}...
C:...> bash
Performing one-time upgrade of the Windows Subsystem for Linux file system for this distribution...
-bash: mesg: command not found
root@BENGINEER:/mnt/c/Apps/WSL-Distribution-Switcher-master# exit
So that worked, it got a bash prompt.
However...
C:...>install.py centos:6.6
[] Probing the Linux subsystem...
[] Default user is root at /root.
[] Reading /etc/{passwd,shadow,group,gshadow} entries for root...
[] Beginning extraction...
[] Backing up current rootfs to .....
[] Switching to new rootfs...
[*] Writing entries of root to /etc/{passwd,shadow,group,gshadow}...
C:\Apps\WSL-Distribution-Switcher-master>bash
Performing one-time upgrade of the Windows Subsystem for Linux file system for this distribution...
C:\Apps\WSL-Distribution-Switcher-master>
That didn't work. Its still at the cmd.exe prompt. Bash prompt never appeared.
CentOS 6 is the build target for a new gig I'm starting.  Would be really great if this worked, otherwise I might have to dig deeper... https://www.brad-x.com/2017/11/05/windows-subsystem-for-linux-installing-arbitrary-distributions/

And here is my registry config...
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Lxss{12345678-1234-5678-0123-456789abcdef}]
"State"=dword:00000001
"DistributionName"="Legacy"
"Version"=dword:00000000
"BasePath"="C:\Users\Ben\AppData\Local\lxss"
"DefaultUid"=dword:00000000
"Flags"=dword:00000007
"KernelCommandLine"="BOOT_IMAGE=/kernel init=/init ro"
"DefaultEnvironment"=hex(7):48,00,4f,00,53,00,54,00,54,00,59,00,50,00,45,00,3d,
00,78,00,38,00,36,00,5f,00,36,00,34,00,00,00,4c,00,41,00,4e,00,47,00,3d,00,
65,00,6e,00,5f,00,55,00,53,00,2e,00,55,00,54,00,46,00,2d,00,38,00,00,00,50,
00,41,00,54,00,48,00,3d,00,2f,00,75,00,73,00,72,00,2f,00,6c,00,6f,00,63,00,
61,00,6c,00,2f,00,73,00,62,00,69,00,6e,00,3a,00,2f,00,75,00,73,00,72,00,2f,
00,6c,00,6f,00,63,00,61,00,6c,00,2f,00,62,00,69,00,6e,00,3a,00,2f,00,75,00,
73,00,72,00,2f,00,73,00,62,00,69,00,6e,00,3a,00,2f,00,75,00,73,00,72,00,2f,
00,62,00,69,00,6e,00,3a,00,2f,00,73,00,62,00,69,00,6e,00,3a,00,2f,00,62,00,
69,00,6e,00,3a,00,2f,00,75,00,73,00,72,00,2f,00,67,00,61,00,6d,00,65,00,73,
00,3a,00,2f,00,75,00,73,00,72,00,2f,00,6c,00,6f,00,63,00,61,00,6c,00,2f,00,
67,00,61,00,6d,00,65,00,73,00,00,00,54,00,45,00,52,00,4d,00,3d,00,78,00,74,
00,65,00,72,00,6d,00,2d,00,32,00,35,00,36,00,63,00,6f,00,6c,00,6f,00,72,00,
00,00,00,00


Stylelint: Disable custom-property-empty-line-before

Cleans up a ton of CSS comments where we've disabled the rule.

Confirmed, this change breaks upstream CI https://github.com/twbs/stylelint-config-twbs-bootstrap/runs/6567960032?check_suite_focus=true
I'll make an upstream patch and release a new version.


[127][API] Add error view for API addon

https://github.com/nimblehq/elixir-templates/issues/127
What happened

Add api/error_view to API addons, to make the response of error follow the JSON API standard:

Insight

Return the error in the format follow JSON API standard.

{
    "errors": [
        {
            "code": "validation_error",
            "message": "User id cannot be blank and app name cannot be blank",
            "detail": {
                "user_id": ["cannot be blank"],
                "app_name": ["cannot be blank"]
            }
        }
    ]
}

message: is the concatenation of all errors.
detail: is the list of errors by fields.

To make the ErrorView as default, the user needs to update the render_errors config in config/config.exs
# Configures the endpoint
config :acme_platform, AcmePlatformWeb.Endpoint,
  url: [host: "localhost"],
  secret_key_base: "",
  render_errors: [view: AcmePlatformWeb.Api.ErrorView, accepts: ~w(json), layout: false],
  pubsub_server: AcmePlatform.PubSub,
  live_view: [signing_salt: ""]

Proof Of Work
Running mix test on the project which is the output of the template.

File added to the codebase:

Running output codebase:

The test should pass.

Hi @byhbt could you rebase this PR as we have merged the new structure (https://github.com/nimblehq/elixir-templates/pull/153) PR

Hi @byhbt could you rebase this PR as we have merged the new structure (#153) PR

I just rebased


Add rake to grant all user privileges

This rake will call set_user_privileges on the User model to grant all user privileges on its schema (and the public one).

:+1:


Publish 0.9.1 to npm

It doesn't seem like 0.9.1 is published to npm, so say.js will fail due to path not being defined.
Could you please publish it? :)

:+1:

Sorry about that. It has been published.


Add x86_64 module to uclibc/mod.rs

Thanks for the watchful review! Issues are corrected.

@bors: r+

:pushpin: Commit 4d3ea34 has been approved by alexcrichton

:hourglass: Testing commit 4d3ea34 with merge 5e208ed...

:sunny: Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 5e208ed9b2576269da71b6ebbd0eab8e4085b20a to master...


ovs-db not in sync with neutron/values.yaml

Is this a bug report or feature request? (choose one):
bug report
Kubernetes Version (output of kubectl version):
Client Version: version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.2", GitCommit:"08e099554f3c31f6e6f07b448ab3ed78d0520507", GitTreeState:"clean", BuildDate:"2017-01-12T04:57:25Z", GoVersion:"go1.7.4", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.4", GitCommit:"7243c69eb523aa4377bce883e7c0dd76b84709a1", GitTreeState:"clean", BuildDate:"2017-03-07T23:34:32Z", GoVersion:"go1.7.4", Compiler:"gc", Platform:"linux/amd64"}
Helm Client and Tiller Versions (output of helm version):
Development or Deployment Environment?:
deployment
Explanation:
Post deployment edited interface  in neutron/values.yaml
from
external_bridge: br-ex
ip_address: <IP_ADDRESS>
interface:
external: enp12s0f0
default: enp11s0f0
.
.
.
ovs:
auto_bridge_add:
br-physnet1: enp11s0f0
to
external_bridge: br-ex
ip_address: <IP_ADDRESS>
interface:
external: eth1
default: eth2
.
.
.
.
ovs:
auto_bridge_add:
br-physnet1: eth2
compiled ,purged and re installed neutron chart ,but ovs-db has information about all 4 interfaces.
Expected Behavior:
"ovs-vsctl show" should not show old interfaces
How to Reproduce the Issue (as minimally as possible):
install with default interfaces in values.yaml and then change to new interface names in values.yaml, purge and re install charts
Any Additional Comments:
minor issue

@krrypto This is expected behavior at present and is a classic engineering tradeoff:
We store the ovsdb on a tmpfs mounted from the host into the pod (/run), this lets us maintain state of OvS during upgrades/pod restarts. However, this means that if you change a large/significant configuration that you will either need to manually intervene (eg run a job on all nodes, or ssh fun..) or simply restart the node (which will wipe the ovsdb).
There are ways that could try and catch all corner cases (like device names changing) but this would come at significant cost without some very careful consideration: primarily that operators may wish/need to perform other operations that make use of OvS, so though we could probably safely manage the ovsdb with an iron fist in a development environment it could lead to very significant pain in a more realistic deployment.


Adding windows CI to 1.3

Description
Adding windows CI to 1.3
Issues Resolved
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #745 (a292bda) into 1.3 (09cbdbc) will increase coverage by 0.16%.
The diff coverage is n/a.

:exclamation: Current head a292bda differs from pull request most recent head ddb5d7f. Consider uploading reports for the commit ddb5d7f to get more accurate results

@@             Coverage Diff              @@
##                1.3     #745      +/-   ##
============================================
+ Coverage     77.66%   77.82%   +0.16%
- Complexity     4110     4120      +10
============================================
  Files           296      296
  Lines         17673    17687      +14
  Branches       1882     1884       +2
============================================
+ Hits          13725    13765      +40
+ Misses         3041     3022      -19
+ Partials        907      900       -7

Flag
Coverage Δ

plugin
77.82% <ø> (+0.16%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...rch/ad/transport/AnomalyResultTransportAction.java
80.18% <0.00%> (-0.69%)
:arrow_down:

...ransport/DeleteAnomalyDetectorTransportAction.java
51.00% <0.00%> (-0.52%)
:arrow_down:

.../ad/rest/handler/AnomalyDetectorActionHandler.java
6.45% <0.00%> (-0.22%)
:arrow_down:

...d/transport/GetAnomalyDetectorTransportAction.java
60.94% <0.00%> (-0.14%)
:arrow_down:

...c/main/java/org/opensearch/ad/util/ParseUtils.java
70.00% <0.00%> (+0.10%)
:arrow_up:

src/main/java/org/opensearch/ad/model/Entity.java
85.18% <0.00%> (+0.13%)
:arrow_up:

...opensearch/ad/indices/AnomalyDetectionIndices.java
72.28% <0.00%> (+0.18%)
:arrow_up:

...rg/opensearch/ad/AnomalyDetectorProfileRunner.java
68.98% <0.00%> (+0.21%)
:arrow_up:

...in/java/org/opensearch/ad/EntityProfileRunner.java
75.00% <0.00%> (+0.28%)
:arrow_up:

.../main/java/org/opensearch/ad/NodeStateManager.java
72.25% <0.00%> (+0.36%)
:arrow_up:

... and 9 more


Add login or signup page

I can create login and signup page with tosatify message functionality for the user.
@HimanshuNarware please assign the issue to me

Create a login and signup page with a messaging system for users. Users should be able to register/login securely and send/receive messages within the platform.
Tasks:

Design UI wireframes/mockups for the login/signup page.
Implement frontend using HTML/CSS with responsive design.
Choose backend technology/framework and set up the project.
Implement backend APIs for user authentication (login/signup).
Set up a database to store user information securely.
Implement session management for logged-in users.
Design the architecture for the messaging system.
Implement APIs for sending and receiving messages.
Test the application thoroughly and debug any issues.
Deploy the application on a server and monitor for performance.

You can do that @ankitgupta143 , Please share a video after you are done, and Please raise issue on defined issue template present from next time .

@PSS2134  can you assign this issue to me under gssoc?

Please assign me this issue.

@PSS2134 Is this Issue still open ? Can I make this page

@HimanshuNarware  can you assign this issue to me under gssoc'24 As I learned MERN full stack development can you assign this issue to me I want to contribute in your projects

@PSS2134 I am done with my work, Can I Make a PR Request.

Yes you can @ankitgupta143

can you assign this issue to me under gssoc'24
https://github.com/HimanshuNarware/CareerZunction_Intern/assets/116994649/e859b8c5-8fb3-4ba6-848e-dee14447fabf

@PSS2134 pls assign this issue to me


fix: Update useActionState to add isPending return

Resolves #6872.
Also, leverages the examples and notes from: https://github.com/facebook/react/pull/28491 for further examples on isPending.

Related to: https://github.com/vercel/next.js/pull/69163

Hey there! I worked on something similar here:
https://github.com/reactjs/react.dev/pull/6989#issuecomment-2249916548