Implementing download accelerator into update functionality of Atom

Hi,
I'm just wonder anyway to implement a multi-threading download accelerator alike wget into update functionality of Atom editor. This will make the update process take less time to download rather than traditional update. Whenever I update Atom, I feel like it never complete.
Conclusion: A functionality that allows Atom to update itself including major and plugins with:

secure https download accelerator +
integrity check (md5, sha512 hash).

How do you think about this?
Thanks for consideration.

We already do an integrity check on the update, and I don't think downloading is the longest part of the update process. The most time consuming part of the Atom update process is reconstituting and applying the packages because there are so many small files (>11k files). This will improve considerably once Atom moves to ASAR and updates will be much faster (almost an order of magnitude)

For reference, this amazing improvement is being tracked in #5382

That PR has now been merged and should provide a faster update experience. Closing here.


Consider trimming strings with gratuitous whitespace

Essentially varchar strings in pytables:
http://www.pytables.org/cookbook/hints_for_sql_users.html#column-type-declarations

We are doing this in the hdf5 code in symbol and suffix. Don't see this as worth the time / effort otherwise.


Use HCL to define policygen schema.

I wanted to do this as well for the engine. I think we will need to have a single top level "schema" field as it isn't possible to map directly to a cty.Value, so we can't directly put the values of the schema at the top level.


Module parse failed: Unexpected token (14:42)

very strange, how can I fix this?

Seems to be a version issue with webpack and babel


(maint) Pin YARD to 0.9.19

Due to PDOC-283 [1] YARD needs to be pinned below 0.9.20 to pass our
integration tests. As this is only affecting a feature behind a flag, there is
no need to add a workaround.  Once puppet-strings is updated and released this
pin can be removed.
[1]https://tickets.puppetlabs.com/browse/PDOC-283

Self merging as this is blocking other PRs and is an upstream issue which we won't fix or workaround in this codebase.


Fix: Torchserve readme docs

fix readme
fix canary readme

What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Release note:

/lgtm
/approve


[API] In GET /user - Get User dto by principal (email) from access token response 200 OK - need 403 Forbidden

Environment: Firefox 116.0.3 (64-bit).
Reproducible: always.
Preconditions
Moved to Swagger https://greencity-user.greencity.social/swagger-ui.html
Sign in us User.
Steps to reproduce

Click on User controller.
Click on GET /user.
Click on 'Try out'.

Actual result
Response 200 OK
Expected result
Response 403 Forbidden
User story and test case links
E.g.: "User story #100
Test case"
Labels to be added
"Bug", Priority ("pri: "), Severity ("severity:"), Type ("UI, "Functional"), "API" (for back-end bugs).

[API] In GET /user - Getting the User dto by principal (email) from the access token results in a 401 response, but a 403 Forbidden response is needed.

couldn't reproduce


How to handle when user clicks cancel button the first time he logs in with githug?

When a user clicks cancel during the authorization process I get redirected to a not found page.

i guess that's expected, if someone cancels, it throws oauth callback error


BE-706 Switching to GitHub

BE-706 Switching to GitHub
updated maintainers list

BE-706 Switching to GitHub
Updated documents and instructions


Revert "Add docker support in Eirini"

Reverts cloudfoundry/cloud_controller_ng#1417
We found that this change resulted in the pods/statefulsets having a blank image tag, i.e.:
...
Containers:
  opi:
    Container ID:
    Image:         registry.jean.capi.land/cloudfoundry/:
...

Expected behavior:
...
Containers:
  opi:
    Container ID:  docker://a257235c8a197a08a245f54898a937681abd15fc852b45615c6779075219cb3c
    Image:         registry.jean.capi.land/cloudfoundry/09a6ffc1-86f5-4981-b67c-abcabb5871e1:c89bbabe5833dd4599077d058e4d73b279f165be
...

Hello @selzoc,
The eirini-bosh-release was recently updated and it should have the latest code now. Can you please verify if this is the case?
Thanks! 🙂

@gdankov Great!  I will revert this revert and 🤞 that the pipeline likes it.


want to show carousel in google assistant

res = {
"payload": {
"google": {
"expectUserResponse": True,
"richResponse": {
"items": [
{
"simpleResponse": {
"textToSpeech": "Here are list of deals"
}
},
{
"carouselBrowse": {
"items": [
{
"title": j["title"],
"openUrlAction": {
"url": "https://www.bigbang.pk/"
},
"description": j["sub_title"],
"footer": j["offer_description"],
"image": {
"url": "http://<IP_ADDRESS>:9001/{}".format(
imgurl),
"accessibilityText": response_offer_description
}
},
													]
												}
											}
										]
									}
								}
							}
						}
						dispatcher.utter_custom_message(res)
						print(res)

I failed to show the carousel in google assistant

Hi, we do not support the google assistant format, please use a rasa or facebook format


Cannot read property 'Azure.Resources' of undefined

Storage Explorer Version: 1.10.0
Build Number: 20190912.8
Platform/OS: Windows 7
Architecture: x64
Regression From:  1.9.0
Bug Description
While trying to enter a specific folder in our Data Lake Storage Gen1 this error appears; the folder is not opened and the tab representing the data lake storage closes.
Steps to Reproduce
Double click on the folder - works any time; but might be data sensitive - the folder name is
"data/datalake/processed/raw/DataType=Trace/"
My guess is that the '=' might be problematic?
Expected Experience
The folder opens and I'm able to view the content.
Actual Experience
The tab representing the folder structure closes and the mentioned error pops up.
Additional Context
Please let me know if you need further information to track down the problem.

Also hitting this issue since updating to 1.10.0. It seems to fail on any folder written by Spark DataframeWriter, which includes a few empty/small files with names like _SUCCESS, _started_1987144563411163524, _committed_1987144563411163524q, along with many part files in the form of part-*.csv.gz or part-*.parquet.

I am also experiencing this issue with my Data Lake Storage Gen1 after updating to version 1.10.0

Thank you all for quickly reporting the issue. We are in the process of testing the fix tonight. We will release a hotfix in a day or two the max.  If you are blocked, you can revert back to 1.9.0 which is available under the Releases tab here in the repo while waiting for the 1.10.1 release.  On behalf of the team, we are very sorry for the inconvenience this may have caused you. Our sincere apology for the regression.

v1.10.1 is now available on the release tab (of this repo) for download now.  It will be also available on http://storageexplorer.com in 6-8 hours from now.  For Linux users who want to install from the snap store, it is also available now.  Thank you for your patience.

Thanks, I can confirm that v1.10.1 fixes this issue.


Remove unnecessary background-color

When using light theme and writing html code in block such as:

Text

The unnecessary background color was visible around html tags. I removed it.
Before:

After:

However this is not an ideal solution because it also removes background color for hashtags too:
Before:

After:

Ignore this. Created another PR:


issue#1084 - Included the JIRA Issues VIew with Jira Plugin

Issue - #1084

Included view for showing the JIRA issues along with activity stream.

:heavy_check_mark: Checklist

[x] Added tests for new functionality and regression tests for bug fixes
[x] Added changeset (run yarn changeset in the root)
[x] Screenshots of before and after attached (for UI changes)
[x] Added or updated documentation (if applicable)

Requesting the Maintainers to please review he code.


add Abhishek Chandrasenan

How to get started

star this repository (top right) so that we can help you get more visibility over your open source contributions
follow the README.md instructions to learn how to make your first contribution to an open source project

If you get stuck and need some guidance or support
Jump into our discord channel #first-contributions and request some help from an experienced mentor

sir can i do my first contribution here....

Hey @PuneetDabral I have already starting working on it and it's almost complete.


The page doesn't open

The page doesn't open
giswqs
/
streamlit-geospatial

The app has been rebooted. Should be working now.


handle the slash '/' command to open the insert plugin sidebar #982

To Open the Cell Plugins on pressing the slash "/" key
Types of changes

[ ] Bugfix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

[x] Lint and unit tests pass locally with my changes
[x] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)
[ ] Any dependent changes have been merged and published in downstream modules

fixes #982

thanks @macrozone

@karthick3018 sorry, the feature was not release as the linting failed. Sorry i did not check that and fix that on master.
I will probably need to introduce precommit hooks to mitigate that as sometimes devs have no linter running locally

@macrozone  do I need to fix anything and commit to solve those linting ?

@macrozone do I need to fix anything and commit to solve those linting ?

no, just did it. (i just ran yarn lint --fix)

@macrozone relaxing comment!!! thanks

@karthick3018  ;-)
travis has some problems currently as it seems, might take some more minutes to build (usually it builds in under 5min)

@macrozone hope it will resolve soon , event listener PR shouldn't cause this much trouble !!lolz

:tada: This PR is included in version 3.0.0-beta.7 :tada:
The release is available on:

v3.0.0-beta.7
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.4.0 :tada:
The release is available on:

v2.4.0
GitHub release

Your semantic-release bot :package::rocket:


fix template loading for starlette >= 0.28

What I am changing
Fixing #743 - Jinja2 template loading for starlette >=0.28
How I did it
using the env parameter rather than passing in the params to environment
How you can test it
Try startup titiler with starlette >=0.28
Related Issues
closes #743

Hi, thank for the PR 🙏
I think in a first step we should release a new version of titiler with fastapi<0.106.0 and then merge this PR


Revamp Navbar and Footer for Improved UI

Describe the features
The current navbar of the AI web application appears too simplistic and lacks visual appeal. Additionally, the footer section is missing, which detracts from the overall user experience. Enhancing these components will create a more engaging and modern interface.

To Reproduce
Steps to reproduce the behavior:

Navigate to the homepage of the AI web application.
Observe the navbar's design and layout.
Scroll down to notice the absence of a footer section.

Expected behavior
The navbar should be visually appealing and user-friendly, incorporating modern design elements that align with the theme of the AI application. A footer section should be added to provide additional information and links, contributing to a cohesive look and feel. The homepage should also be improved to enhance overall aesthetics.

Screenshots

Additional context
Revamping the navbar and adding a footer can significantly enhance the user experience and engagement with the application. Improved design elements will help the application feel more professional and aligned with its AI capabilities.

Is this another AI generated issue? Who has been using WebLLM as a test-bed for their hackathon?
For context: the current website was created relatively recently, and is already a huge improvement over the previous one. Not to mention the awesome chat interface that was created.
Personally I don't agree with these arguments, especially as there aren'y any. They are opinions, which I'll happily counter with my own: I think it looks great as it is :-)

Thanks for your input! I agree the website is a big improvement, and the chat interface is great. My point about the navbar and footer is that they don't fully match the theme of the project. Updating them would improve the overall look and user experience. I'm happy to help build them if needed!

Thanks for the input and I can see where the comments come from. Due to lack of frontend engineers and designers in the team, the previous mlc-ai websites were using a very simple Jekyll theme and focusing on content instead of visual design.
When I renovated the website, since I also don't have much design skills, I focused on creating the hero section for more visual attraction while keeping the remaining elements the same (navbar, footer) so that's where the inconsistency comes from.
It will be very helpful and encouraged if you want to help improve the design by providing some designs and code PRs. Just tag me and I will be happy to review :)

we can add minimal things in the footer like add social media links , and below that we can add copy right of the company


fix: delete button and row alignment

Fix https://github.com/nextcloud/server/issues/40611

Before
After

Branching + backports will be necessary to get this into old server versions (that run on nextcloud-vue v7).


Inserting arbitrary text?

I'd like to bind a key to insert arbitrary (unicode) text.  For example: ctrl-shift-s might insert σ (my actual configuration is a lot more complicated than this, but that's the idea).
The only way I've found to do this is to change my keyboard layout to Unicode Hex Input and tell KeyRemap4MacBook to type out the hex code.  This is tedious, and Unicode Hex Input breaks a lot of other functionality (like Option-Left, Option-Delete, etc).
It would be really helpful if KeyRemap4Macbook could insert arbitrary text (perhaps by sticking it in the clipboard, pasting, and then restoring the clipboard).  Keyboard Maestro can do this, but won't work with the other KeyRemap4MacBook stuff like the ExtraN modifiers.

I would like to know if there is a way to convert a digraph into an extAscii: <> to lozenge ◊ which is unfortunately chosen for Pollen functions.

In case it helps anyone, my fairly-tidy solution for typing any character string with Karabiner is this:

I used Xcode to build the handy code provided at https://apple.stackexchange.com/a/289046/173446 and installed it as /usr/local/bin/typechars.

Whenever I need Karabiner to type an oddball character or characters, I do something like this:
            {
              "shell_command": "/usr/local/bin/typechars ⎈"
            }

The first time you use typechars in this way, you may need to give Accessibility permissions to karabiner_console_user_server in System Preferences. Hopefully, you'll be prompted for it; in my experience, Mojave seemed somewhat flaky about prompting for such things, but Catalina seems fairly reliable.

In case it helps anyone, my fairly-tidy solution for typing any character string with Karabiner is this:

I used Xcode to build the handy code provided at https://apple.stackexchange.com/a/289046/173446 and installed it as /usr/local/bin/typechars.
Whenever I need Karabiner to type an oddball character or characters, I do something like this:
{
  "shell_command": "/usr/local/bin/typechars ⌘"
}

The first time you use typechars in this way, you may need to give Accessibility permissions to karabiner_console_user_server in System Preferences. Hopefully, you'll be prompted for it; in my experience, Mojave seemed somewhat flaky about prompting for such things, but Catalina seems fairly reliable.

Thanks. Looks like this is the best solution right now. When did they add the shell_command ability? Is there any documentation for this?

shell_command is available in Karabiner-Elements (repo here), which is the rewrite of Karabiner for macOS 10.12 and later.
If you're on an older version of macOS using good old Karabiner classic (this repo), the equivalent would be:
<vkopenurldef>
	<name>KeyCode::VK_MY_COMMAND</name>
	<url type="shell">/usr/local/bin/typechars ⌘</url>
</vkopenurldef>

<autogen>
	__KeyToKey__ KeyCode::F10, ModifierFlag::COMMAND_L | ModifierFlag::OPTION_L, KeyCode::VK_MY_COMMAND
</autogen>


add tls functionality based on exporter-toolkit

Signed-off-by: lucian<EMAIL_ADDRESS>@michael-doubez can you please review it

LGTM


Can we use Page Object Model with WindowsElements in C#?

Hi,
I'm using a PageObjectModel pattern in my Framework, but I can only use IWebElements, for example:
[FindsBy(How = How.Name, Using = "System")]
private IWebElement SystemApplication;
Is there a way that I could use WindowsElements, so that I'd get access to the extra methods that would provide? Also it would be nice to be able to use the extra identifiers like accessibility id in this section as well, for example:
[FindsBy(How = How.AccessibilityId, Using = "System")]
private WindowsElement SystemApplication;
At the moment if I try to WindowsElement, when I open the page in my application then I get an error message saying that only IWebElements can be used.
In Java examples, they seem to have this wrapper in the initElements method that I think gives you the required behaviour, but I can't find a concrete example on how to do the same thing in C#:
PageFactory.initElements(new AppiumFieldDecorator(driver), this);
I can see there is a method in C# PageFactory.InitElements(ISearchContext driver, object page, IPageObjectMemberDecorator decorator); which I presume is the equivalent, but I can't find an example of this anywhere?
Thanks,
Phil

Are you using the PageObjects class in .Net Driver?
https://github.com/appium/appium-dotnet-driver/tree/master/appium-dotnet-driver/Appium/PageObjects
If so and there's a bug with how you are trying to use it with WindowsElements then that bug should be logged on the .Net Driver project for anyone to investigate.

Hi Phil
Did you ever find a solution for this to work? I'm also automation a desktop application and the Page Factory would be a handy way to manage things.
Thanks
Alex

I've done a fork of the Appium DotNet Driver and added the support (based on the <IP_ADDRESS> Nuget release).
You can find it here https://github.com/cosminstirbu/appium-dotnet-driver/tree/feature/3.0.03-Windows-Support-In-Page-Objects-Actual
I've also opened a PR but it hasn't been merged yet (I guess because I didn't have time to add any integration tests) - https://github.com/appium/appium-dotnet-driver/pull/276
We've been using a local .dll built from the branch above and it has worked without any issues.


feat(client): avoid overlay flicker

re: #13220
Solution 1: First commit: Debounce. This is safe but could not ne enough for big updates or add too much delay on successful updates.
Solution 2: Third commit: Wait for successful updates. This is more prone to race conditions, I think lastErrorTime make it safe but it could lead to uncleaned error overlay in case of a successful update that follow a still running failed update.

Re solution 1, it's a bit risky since various setups can set various auto-save timeout. Re solution 2, if the error changes, would the overlay still display the latest information?
My takeaway from the issue is that the current behaviour is fine and server.hmr.overlay: false could be used to turn it off instead 🤔

I'll close this for now as it's a bit risky to do both, and only affects user who auto-saves files, which is not always common and can be workaround instead. It's great that we explored some potential solutions though.


⚠ Bofrost.at has degraded performance

In ee51c48, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2687 ms

Resolved: Bofrost.at performance has improved in 9bc6937 after 17 minutes.


Run cargo clippy --fix to address all (new) linter warnings

Clippy gets more strict every Rust release, for good reasons!

Fwiw the "all commits must be GPG signed" requirement is pretty much moot since GitHub re-signs with its own key on squashmerge :grimacing:
(And there's not much value in signing PR commits when we review them anyway)


folks: 0.15.2 -> 0.15.3

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for folks is: "A library that aggregates people from multiple sources to create metacontacts"
meta.homepage for folks is: "https://wiki.gnome.org/Projects/Folks"
meta.changelog for folks is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

/nix/store/jbv1ljg4qy9kwaixz1ma3h9bjafvi26k-folks-0.15.3/bin/folks-inspect passed the binary check.

/nix/store/jbv1ljg4qy9kwaixz1ma3h9bjafvi26k-folks-0.15.3/bin/folks-import passed the binary check.

2 of 2 passed binary check by having a zero exit code.

0 of 2 passed binary check by having the new version present in output.

found 0.15.3 with grep in /nix/store/jbv1ljg4qy9kwaixz1ma3h9bjafvi26k-folks-0.15.3

found 0.15.3 in filename of file in /nix/store/jbv1ljg4qy9kwaixz1ma3h9bjafvi26k-folks-0.15.3

directory tree listing: https://gist.github.com/831bc4633f7c2f5c12b2b39421b08068

du listing: https://gist.github.com/1123dd45a1747d93b381b5e755675ff0

Rebuild report (if merged into master) (click to expand)

33 total rebuild path(s)

11 package rebuild(s)

11 x86_64-linux rebuild(s)
11 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
11 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
bubblemail
calls
empathy
folks
gnome.empathy
gnome.folks
gnome.geary
gnome.gnome-contacts
gnome.gnome-maps
pantheon.elementary-calendar
pantheon.elementary-mail

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/jbv1ljg4qy9kwaixz1ma3h9bjafvi26k-folks-0.15.3 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A folks https://github.com/r-ryantm/nixpkgs/archive/8ee644d4df5073bfac3bad38236c37a45c0638e3.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/jbv1ljg4qy9kwaixz1ma3h9bjafvi26k-folks-0.15.3
ls -la /nix/store/jbv1ljg4qy9kwaixz1ma3h9bjafvi26k-folks-0.15.3/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

9 packages built:

bubblemail
calls
empathy
folks
gnome.geary
gnome.gnome-contacts
gnome.gnome-maps
pantheon.elementary-calendar
pantheon.elementary-mail

Maintainer pings
cc @hedning @jtojnar @dasj19 @maxeaubrey for testing.

https://gitlab.gnome.org/GNOME/folks/-/commits/0.15.3
Commits LGTM just translation updates and 2 build issue related commits


chore: add function to get []*unstructured.Unstructured from json array

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


[LIVY-973][RSC] Always close RSCClient's EventLoopGroup

What changes were proposed in this pull request?
Added try-catch block to jobs' setFailure()and  log entries if there is any exception. eventLoopGroup.shutdownGracefully(); statement will be executed after exception is caught.
https://issues.apache.org/jira/browse/LIVY-973
How was this patch tested?
(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)

Codecov Report

Merging #398 (5108bd6) into master (45e07fe) will decrease coverage by 40.73%.
The diff coverage is 0.00%.

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

@@              Coverage Diff              @@
##             master     #398       +/-   ##
=============================================
- Coverage     68.37%   27.65%   -40.73%
+ Complexity      849      363      -486
=============================================
  Files           103      103
  Lines          5989     5992        +3
  Branches        911      911
=============================================
- Hits           4095     1657     -2438
- Misses         1330     3989     +2659
+ Partials        564      346      -218

Impacted Files
Coverage Δ

...c/src/main/java/org/apache/livy/rsc/RSCClient.java
0.00% <0.00%> (-73.50%)
:arrow_down:

... and 81 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Changed the text in slides in the hero to be terser. Issue #408

Additionally changed the structure of the text to be 2 distinct header elements, rather than a break within once header element.
I believe this is more correct HTML style and also creates a visual distinction between the headline and the subheadline.

@davidmolina, thoughts?

I <3 that's it more clear, concise. Ship it.

On Aug 28, 2016, at 7:25 AM, Conrad Hollomon<EMAIL_ADDRESS>wrote:
@davidmolina, thoughts?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Have you seen how the h4s look on a live site?

I'll need to take a look.

Hi @dengjonathan, do you have a moment to address the comments in this PR?

Closing this PR due to inactivity.


[base-ui] Menu click away is broken if transitionDuration CSS property is used

Steps to reproduce
Link to live example: https://codesandbox.io/p/sandbox/compassionate-burnell-mns7ll
https://github.com/mui/material-ui/assets/4148577/f077aa91-e336-4c5b-bfaa-2723bd85f78d
Steps:

Click on the first menu button, then click anywhere else on the page. The menu will collapse.
Click on the second menu button, then click anywhere else on the page. The menu will not collapse.

Current behavior
If I use the transitionDuration CSS property when styling the menu, it will not collapse when I click away from it.
Expected behavior
The menu should always collapse, no matter how I style it.
Context
I want the menu to collapse when I click away from it, no matter how I style it.
Your environment

npx @mui/envinfo
I used Chrome when testing this issue.
  System:
    OS: macOS 14.2.1
  Binaries:
    Node: 18.19.0 - /opt/homebrew/bin/node
    npm: 10.4.0 - /opt/homebrew/bin/npm
    pnpm: 8.6.1 - /opt/homebrew/bin/pnpm
  Browsers:
    Chrome: 121.0.6167.160
    Edge: Not Found
    Safari: 17.2.1
  npmPackages:
    @emotion/react: 11.11.3 => 11.11.3
    @emotion/styled: 11.11.0 => 11.11.0
    @mui/base: 5.0.0-beta.36 => 5.0.0-beta.36
    @mui/utils: 5.15.9 => 5.15.9
    @types/react: 18.2.55 => 18.2.55
    react: 18.2.0 => 18.2.0
    react-dom: 18.2.0 => 18.2.0
    typescript: 5.3.3 => 5.3.3

Search keywords: menu click away broken css

Hello, I reproduced your issue on my local machine by following all the steps. However, for me it seems to be working, the menu collapses when I click away from it no matter how I style it.
https://github.com/mui/material-ui/assets/122678675/16c3adbc-032b-4c2d-b3c6-dab325f9e80e

@EyaOuenniche Your video doesn't appear to show the second menu animating at all. For me, the issue happens when I add the transitionDuration property to the styles of the second menu.
If you did that, it may also require there to be an animatable property. In my demo, both menus change from height: 0 to height: 80.

I'm sorry for the confusion, I reproduced again your issue, and I added the transitionDuration property. I think I'm having a problem in the animation it's not working correctly, but nonetheless I found the same problem I think there is an area where you click on it, it will close, it's the area where the items are displayed. Also, I think if you repeat the process of opening and closing the menu several times, you will notice that at some point it will work, and the menu will collapse when you click away from it.
I have a suggestion, maybe the issue is due to the way the Dropdown and Menu components from @mui/base handle closing, the Dropdown or Menu might be trying to close before the transition is complete, which could be causing the menu to stay open.


Premades being used instead of recipe?

I have Treant horde in my inventory and I have the Treant horde recipe ready in my inventory ( Toxic, Sentinel, Steel Infused).
When I click scan i see Ready: Treant Horde
But when I click Treant Horde it's selecting the already made Treant horde instead of the recipe.
It does this with other things too.

Treant Horde is not on your priority list, right? Because then this behavior would be a bug. What you are describing is the current intended behavior of the burn pile: the highest-tier non-prioritized mods get burned first. I could change it to work the other way around -- you are the first to mention this.

I don't have anything prioritized. The burn pile only shows up when something is prioritized. Also could the Ready/Burn window be restored when you open the Archnemesis tab instead of scanning each time? If i get interrupted while in the Archnemesis window I have to scan again or if I leave the map when I have part of a recipe in the altar and then come back I have to scan again but the recipe won't show because some of the components are already in the altar.

I don't have anything prioritized. The burn pile only shows up when something is prioritized. Also could the Ready/Burn window be restored when you open the Archnemesis tab instead of scanning each time? If i get interrupted while in the Archnemesis window I have to scan again or if I leave the map when I have part of a recipe in the altar and then come back I have to scan again but the recipe won't show because some of the components are already in the altar.

Closing the ready window was originally intended to prevent the tool and your inventory from going out of sync in case the user just ran encounters non-stop without re-scanning. I didn't consider leaving the map because I play SSF -- that's a very good point. I guess I'll just make it the user's responsibility to re-scan frequently. Thanks for the feedback.


Crash while loading a basic react project

Hi,
I tried using it with a barebones react project and scapp.exe silently crashes. If it helps with the repro, here's a simple project to use: https://github.com/TemporalAgent7/sciter-basic-react .
Let me know if there's any other info I can provide.
Thanks!

Hi,
I tailored a streamlined react for sciterjs, maybe useful to you:
https://github.com/veluxa/sciterjs-react

Hi,
I tailored a streamlined react for sciterjs, maybe useful to you:
https://github.com/veluxa/sciterjs-react

Thank you, but this becomes powerful when we are able to reuse (most / a lot) of the thousands of libraries and frameworks already built for HTML, CSS and JavaScript.
If we need to rewrite everything from scratch to comply with peculiarities, it loses a lot of the appeal (and we might as well look at other options that require rewrites like React Native, Flutter, etc.) - I agree with cutting out the cruft that browsers pile on, but the basics should be there and compatible with web standards for this to gain any traction.

Thank you, but this becomes powerful when we are able to reuse (most / a lot) of the thousands of libraries and frameworks already built for HTML, CSS and JavaScript.
If we need to rewrite everything from scratch to comply with peculiarities, it loses a lot of the appeal (and we might as well look at other options that require rewrites like React Native, Flutter, etc.) - I agree with cutting out the cruft that browsers pile on, but the basics should be there and compatible with web standards for this to gain any traction.

Try please v. <IP_ADDRESS>.
At least it will not crash.
Yet, this  <script src="app.js?618264de5b27c26c90e6"> will not work if you are testing this from local drive. file://... urls have no notion of query parameters.
Yet check, PReact demos in SDK:  https://github.com/c-smile/sciter-js-sdk/tree/main/samples/preact
PReact is more humanistic I would say than React.
But the best of them is Sciter.JS's built-in Reactor  - simple and effective as it is implemented natively.

Try please v. <IP_ADDRESS>.
At least it will not crash.
Yet, this  <script src="app.js?618264de5b27c26c90e6"> will not work if you are testing this from local drive. file://... urls have no notion of query parameters.
Yet check, PReact demos in SDK:  https://github.com/c-smile/sciter-js-sdk/tree/main/samples/preact
PReact is more humanistic I would say than React.
But the best of them is Sciter.JS's built-in Reactor  - simple and effective as it is implemented natively.

Thank you, I can confirm the crash no longer happens with the update; the code still doesn't run, though.
I explored preact and Reactor, but the point was reusing one of the myriad of web components and libraries already out there (for example https://react.semantic-ui.com/ or https://developer.microsoft.com/en-us/fluentui). I messed around with preact-compat for a while but couldn't get Semantic UI React working.
I'm still envious of Sciter booting up with 7Mb of RAM compared to Electron's 42Mb for the hello world page, but I guess it's not designed to be a generic webview-like environment / Electron replacement.

Thank you, I can confirm the crash no longer happens with the update; the code still doesn't run, though.
I explored preact and Reactor, but the point was reusing one of the myriad of web components and libraries already out there (for example https://react.semantic-ui.com/ or https://developer.microsoft.com/en-us/fluentui). I messed around with preact-compat for a while but couldn't get Semantic UI React working.
I'm still envious of Sciter booting up with 7Mb of RAM compared to Electron's 42Mb for the hello world page, but I guess it's not designed to be a generic webview-like environment / Electron replacement.

I'd appreciate any information on what is missed in Sciter.JS to run ReactJS.

I'd appreciate any information on what is missed in Sciter.JS to run ReactJS.

I tried replacing the path with a fully qualified file:// path. This is the first errors that shows up:

The line in question is this: while (element instanceof win.HTMLIFrameElement)

I tried replacing the path with a fully qualified file:// path. This is the first errors that shows up:

The line in question is this: while (element instanceof win.HTMLIFrameElement)

SciterJS has just one Element class that encapsulates all HTML and SVG elements - all 80 of  HTML***Element classes plus  90 SVG***Element.
Normally desktop applications do not need all these.
But for documents designed specifically for Web browsers we will need to create and use special htmlx.css .
That htmlx.css may look like as
iframe { prototype: HTMLIFrameElement url(htmlx.js) }
body { prototype: HTMLBodyElement url(htmlx.js) }
... all 80 here

and so corresponding htmlx.js (or bunch of them) is needed
class HTMLElement extends Element {}

class HTMLIFrameElement extends HTMLElement {}
class HTMLBodyElement extends HTMLElement {}
...

Particular classes may have some specific properties and methods defined.
And so, documents that rely on such classes should either include
@import url(htmlx.css);

or to be loaded not in Sciter window directly but in "web frames":
<frame src="..." content-style="htmlx.css" />

where content-style="htmlx.css" is Sciter specific attribute that will cause that htmlx.css to be preloaded as a content style of the document inside the frame.
Resume:
Mithril, Svelte, PReact, ForgoJS can be loaded in Sciter windows directly.
But ReactJS, AngularJS, and all other applications that rely on History and Navigate will require that "web frame" in order to be used in SciterJS.
Side note:
I have no idea why ReactJS authors decided to use element instanceof win.HTMLIFrameElement construct as element.tagName == "IFRAME" should be significantly faster in JavaScript.

SciterJS has just one Element class that encapsulates all HTML and SVG elements - all 80 of  HTML***Element classes plus  90 SVG***Element.
Normally desktop applications do not need all these.
But for documents designed specifically for Web browsers we will need to create and use special htmlx.css .
That htmlx.css may look like as
iframe { prototype: HTMLIFrameElement url(htmlx.js) }
body { prototype: HTMLBodyElement url(htmlx.js) }
... all 80 here

and so corresponding htmlx.js (or bunch of them) is needed
class HTMLElement extends Element {}

class HTMLIFrameElement extends HTMLElement {}
class HTMLBodyElement extends HTMLElement {}
...

Particular classes may have some specific properties and methods defined.
And so, documents that rely on such classes should either include
@import url(htmlx.css);

or to be loaded not in Sciter window directly but in "web frames":
<frame src="..." content-style="htmlx.css" />

where content-style="htmlx.css" is Sciter specific attribute that will cause that htmlx.css to be preloaded as a content style of the document inside the frame.
Resume:
Mithril, Svelte, PReact, ForgoJS can be loaded in Sciter windows directly.
But ReactJS, AngularJS, and all other applications that rely on History and Navigate will require that "web frame" in order to be used in SciterJS.
Side note:
I have no idea why ReactJS authors decided to use element instanceof win.HTMLIFrameElement construct as element.tagName == "IFRAME" should be significantly faster in JavaScript.


Relicense under dual MIT/Apache-2.0

This issue was automatically generated. Feel free to close without ceremony if
you do not agree with re-licensing or if it is not possible for other reasons.
Respond to @cmr with any questions or concerns, or pop over to
#rust-offtopic on IRC to discuss.
You're receiving this because someone (perhaps the project maintainer)
published a crates.io package with the license as "MIT" xor "Apache-2.0" and
the repository field pointing here.
TL;DR the Rust ecosystem is largely Apache-2.0. Being available under that
license is good for interoperation. The MIT license as an add-on can be nice
for GPLv2 projects to use your code.
Why?
The MIT license requires reproducing countless copies of the same copyright
header with different names in the copyright field, for every MIT library in
use. The Apache license does not have this drawback. However, this is not the
primary motivation for me creating these issues. The Apache license also has
protections from patent trolls and an explicit contribution licensing clause.
However, the Apache license is incompatible with GPLv2. This is why Rust is
dual-licensed as MIT/Apache (the "primary" license being Apache, MIT only for
GPLv2 compat), and doing so would be wise for this project. This also makes
this crate suitable for inclusion and unrestricted sharing in the Rust
standard distribution and other projects using dual MIT/Apache, such as my
personal ulterior motive, the Robigalia project.
Some ask, "Does this really apply to binary redistributions? Does MIT really
require reproducing the whole thing?" I'm not a lawyer, and I can't give legal
advice, but some Google Android apps include open source attributions using
this interpretation. Others also agree with
it.
But, again, the copyright notice redistribution is not the primary motivation
for the dual-licensing. It's stronger protections to licensees and better
interoperation with the wider Rust ecosystem.
How?
To do this, get explicit approval from each contributor of copyrightable work
(as not all contributions qualify for copyright, due to not being a "creative
work", e.g. a typo fix) and then add the following to your README:
## License

Licensed under either of

 * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
 * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)

at your option.

### Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any
additional terms or conditions.

and in your license headers, if you have them, use the following boilerplate
(based on that used in Rust):
// Copyright 2016 portmidi-rs Developers
//
// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
// http://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according to those terms.

It's commonly asked whether license headers are required. I'm not comfortable
making an official recommendation either way, but the Apache license
recommends it in their appendix on how to use the license.
Be sure to add the relevant LICENSE-{MIT,APACHE} files. You can copy these
from the Rust repo for a plain-text
version.
And don't forget to update the license metadata in your Cargo.toml to:
license = "MIT OR Apache-2.0"

I'll be going through projects which agree to be relicensed and have approval
by the necessary contributors and doing this changes, so feel free to leave
the heavy lifting to me!
Contributor checkoff
To agree to relicensing, comment with :
I license past and future contributions under the dual MIT/Apache-2.0 license, allowing licensees to chose either at their option.

Or, if you're a contributor, you can check the box in this repo next to your
name. My scripts will pick this exact phrase up and check your checkbox, but
I'll come through and manually review this issue later as well.

[ ] @hansjorg
[ ] @irh
[ ] @musitdev
[ ] @samdoshi
[x] @steveklabnik
[ ] @suhr
[ ] @thenyeguy

I license past and future contributions under the dual MIT/Apache-2.0 license, allowing licensees to chose either at their option.

I license past and future contributions under the dual MIT/Apache-2.0 license, allowing licensees to chose either at their option.

I license past and future contributions under the dual MIT/Apache-2.0 license, allowing licensees to chose either at their option.
However, it was raised on the rust-portaudio issue that portaudio is licensed MIT only, which might be an issue. If that is an issue, I believe licensing these bindings would have the same issue.

@thenyeguy yeah, I've been recommending FFI crates like this to split out the -sys and wrapper crates, and license the -sys crate the same as the underlying library (in this case, MIT) and the wrapper as MIT/Apache-2.0. There's no reason you can't license this as MIT/Apache-2.0, but there's not much point to it. The benefit of separate licensing for -sys is that the wrapper code can be freely shared between other MIT/Apache-2.0 repos, and the -sys crate reflects the underlying license for ease of automated licensing compliance tools using cargo metadata.

I'll wait to see what happens in RustAudio/rust-portaudio#115 before deciding what to do.
Also, truthfully, I don't really use rust that much any more, don't really have the time, so if someone wishes to step up and take over maintenance of this crate...

Sure.

I license past and future contributions under the dual MIT/Apache-2.0 license, allowing licensees to chose either at their option.

Hello I can get back the maintenance of the create. I don't have much time but I work with it currently. I think there isn't much work to follow the evolution of Rust.

Repo transfer request sent, once you accept I'll add you as an owner on crates.io

@musitdev You'll need to make an account on crates.io...
$  cargo owner --add musitdev
    Updating registry `https://github.com/rust-lang/crates.io-index`
       Owner adding ["musitdev"] to crate portmidi
failed to add owners to crate portmidi: api errors: could not find user with login `musitdev`

I license past and future contributions under the dual MIT/Apache-2.0 license, allowing licensees to chose either at their option.

Awesome! Glad to see this crate continue to be maintained.

It's done, I've autorise cargo.io to github.

@musitdev I've added you as an 'owner'

Ok, thank you @samdoshi


Chat Copilot token usage is extremely high

Describe the bug
When using the Chat Copilot to upload a text file and ask questions about it, the usage of tokens is much higher than expected (13496 tokens total for a 949 token document and 429 tokens of chat text). This means that with the Azure OpenAI rate limit, an application would be limited to ~10 concurrent users. Is there any way to control the tokens being used? If not, is there a way to see exactly what Skills use the most amount of tokens?
To Reproduce
Steps to reproduce the behavior:

Start new Session/Chat
Upload text file (below)
Ask questions "What is the fungus?", "What is Arachniotus ruber?", "What is its habitat?", and "How do I cultivate it?"?
Click on 'Settings' and view token usage

Expected behavior
Token usage is within a reasonable range for the size of the chat.
Screenshots

Platform

OS: Windows
IDE: VS Code
Language: C#
Source: Main branch of repository

Additional context
Text file used:
https://gist.github.com/masonsawtell/8fcaf4db88c8bbb1f69c5810f1a5cf41

Hi, any workarounds ?

@masonsawtell - thanks for bringing this up.  You can remove the chat history and memory to reduce the token usage.
To disable chat history in the prompt, remove line 381 to 389: chat-copilot/webapi/Skills/ChatSkills/ChatSkill.cs at main · microsoft/chat-copilot (github.com)
To disable memory in the prompt, remove the components here: chat-copilot/webapi/Skills/ChatSkills/ChatSkill.cs at main · microsoft/chat-copilot (github.com)

@evchaki Thank you for your reply. Could disabling the chat history and the memory in the prompt adversely affect the quality of responses? It seems that these changes might result in a loss of contextual awareness, potentially leading to less coherent and continuous interactions. What are your thoughts on the potential impacts of these modifications?

@evchaki -- Thank you for your input. Considering the potential impact on the quality of responses, are there any experiments underway on other branches to explore alternative approaches, perhaps controlling the token usage for summarizations, that might help in mitigating this issue?

@evchaki -- Thank you for your input. Considering the potential impact on the quality of responses, are there any experiments underway on other branches to explore alternative approaches, perhaps controlling the token usage for summarizations, that might help in mitigating this issue?

If i find the time ill create a fork version tomorrow, with adjusted token consumption including chat history but without intent, audiance and memo generation. Its far away from perfect but uses much less tokens unless you want to maintain very long conversations. In this case you might want to stick to the current solution.

@masonsawtell  @Rainson12 - Thank you. No rush but it would be great to experiment with the version you have been using internally.

@masonsawtell @Rainson12 - Thank you. No rush but it would be great to experiment with the version you have been using internally.
have a look at
https://github.com/Rainson12/chat-copilot/tree/feature/less-overhead

You can find the changes here:
https://github.com/microsoft/chat-copilot/commit/7039787a4dcf02af65e7a78e72ffec847f7b67fc
I removed the generation of the audience, intent and memorization and added the chat history, system description, SystemIntent, planResponse and documentContent as chat Message. This way the results should be more accurate. However the parts of the chat History can get lost due to insufficient tokens left. So it might not be suiteable for very long conversations.

Thanks @Rainson12 for sharing your solution. We don't currently have plans to change our token usage in the default version of Chat Copilot, so folks are encouraged to take a look at @Rainson12 changes.


Add tooling for e2e testing and use it to run automated a11y checks

Purpose
As part of our work to make Richie accessible (in #888), we decided to add automated accessibility checks. Although they only surface a small part of all possible problems, we believe they can have value in preventing regressions and giving us a "cheap" win (because automated checks are so much easier than human audits).
Proposal

[x] add Cypress and create a folder for our end-to-end tests
[x] integrate axe (a11y checks engine) with Cypress
[x] write smoke tests to just load views and run the a11y checks
[x] add some basic documentation on how to run the checks (users should rely directly on Cypress and axe docs for more in-depth information)

Note: I'm not entirely satisfied of the way I reach some pages with clicks on given strings or elements with certain CSS classes (it is pretty brittle) but I'm not sure if it's possible to do better until we add pre-defined fixtures or a more deterministic version of the demo site specifically for end-to-end tests.


Allow chef-solo to consume release tarball from github

Reiterating what I mentioned on the RFC:
We already decided to replace chef-solo with local-mode, adding more unique features to solo just makes the parity problem worse: https://github.com/chef/chef-rfc/blob/master/rfc031-replace-solo-with-local-mode.md

Needs some specs as well.

i was reusing the existing chef-solo style, it has the FileUtils.rm_rf invocation[1]. I'll get rid of it.
@lamont-granquist you want a full blown functional test or just a unit test for the logic with untar and fetch being stubbed?
[1]https://github.com/chef/chef/blob/master/lib/chef/application/solo.rb#L205

I like both functional and unit tests.  I'll take whichever I can get =)
If the functional test looks like a yak shave (particularly with windows) then just the unit test would be fine.

@lamont-granquist added spec

closing this. discussion around this available on the RFC (now closed). I'll revisit this as part of a wider bootstrap overhaul RFC


Better TypeScript + runAtTargetFps Support

Hi, I appreciate your effort in creating this plugin.
Nonetheless, I'm using https://github.com/francesco-clementi-92/vision-camera-ocr-plugin and trying to migrate to this plugin since I encountered some bugs on Android and that library is no longer maintained.
Unfortunately:

The types seems not to be precise. For example, callback is defined as a function. Maybe we can be more specific about the input of that function.
We can based on OCRFrame of that library.
In my case, I need to run the frame processor only at 2fps with runAtTargetFps. Nonetheless, this cannot be done since your library does not expose scanText pure version without worklet, can you expose that?
For example, in that library, it is scanOCR.

My current code with TS and scanOCR:
  const calculateCameraHeightWorklet = Worklets.createRunInJsFn(
    (frame: Frame) => {
      calculateCameraHeight({
        frame,
        cameraWidth: deviceWidth,
        setCameraHeight,
      })
    }
  )

  const scanContainerInfoWorklet = Worklets.createRunInJsFn(
    (frame: Frame, ocrFrame: OCRFrame) => {
      scanContainerInfo({
        frame,
        ocrFrame,
        setContainerInfo,
      })
    }
  )

  const frameProcessor = useFrameProcessor((frame) => {
    'worklet'

    runAtTargetFps(2, () => {
      'worklet'
      calculateCameraHeightWorklet(frame)
      const ocrFrame = scanOCR(frame)
      scanContainerInfoWorklet(frame, ocrFrame)
    })
  }, [])

Thanks a lot for any support!

Hey, so about the runAtTargetFps
the src/index.tsx only exports the JSX Camera but you can access the scanText function just by importing it with
import { scanText } from 'react-native-vision-camera-v3-text-recognition/src/scanText'
I made a previous implementation of this library which i did use runAtTargetFps on my frameprocesor along with this plugin
https://github.com/pedrol2b/example-v3-text-recognition/blob/main/App.tsx
I'm opening an PR for @gev2002 for both text-recognition and barcode-scanner which exposed the scan methods
until then hope this quick hack helps you

Opened a PR #3

fix the export of the function scanText https://github.com/gev2002/react-native-vision-camera-v3-text-recognition/pull/3/commits/125f3733e143698832c38c38da410a5b56fdf049
Going to fix types

Hi, I appreciate your effort in creating this plugin. Nonetheless, I'm using https://github.com/francesco-clementi-92/vision-camera-ocr-plugin and trying to migrate to this plugin since I encountered some bugs on Android and that library is no longer maintained. Unfortunately:

The types seems not to be precise. For example, callback is defined as a function. Maybe we can be more specific about the input of that function.
We can based on OCRFrame of that library.
In my case, I need to run the frame processor only at 2fps with runAtTargetFps. Nonetheless, this cannot be done since your library does not expose scanText pure version without worklet, can you expose that?
For example, in that library, it is scanOCR.

My current code with TS and scanOCR:
  const calculateCameraHeightWorklet = Worklets.createRunInJsFn(
    (frame: Frame) => {
      calculateCameraHeight({
        frame,
        cameraWidth: deviceWidth,
        setCameraHeight,
      })
    }
  )

  const scanContainerInfoWorklet = Worklets.createRunInJsFn(
    (frame: Frame, ocrFrame: OCRFrame) => {
      scanContainerInfo({
        frame,
        ocrFrame,
        setContainerInfo,
      })
    }
  )

  const frameProcessor = useFrameProcessor((frame) => {
    'worklet'

    runAtTargetFps(2, () => {
      'worklet'
      calculateCameraHeightWorklet(frame)
      const ocrFrame = scanOCR(frame)
      scanContainerInfoWorklet(frame, ocrFrame)
    })
  }, [])

Thanks a lot for any support!

Hey ! I merge @pedrol2b request. Now you can import scanText and create your Worklets core.

Thanks @pedrol2b @gev2002 for your very quick support <3 I'll try it out.


How can a service determine the classification of the request/task?

I'm writing a small service to connect assemblyline to an external api. I would like to be able to determine the classification of the submission to propagate that to the external service. This is a connector between two systems and the other system can also be accessed by users so I need to keep the classification in sync.
The only object that a service has available to it (as far as I can tell) is the ServiceRequest passed into execute(). This has the task with min_classification and service_default_result_classification. Neither of those match the classification I select when submitting a file. I can see that the API does support querying for the submission and returning the classification that way, but that seems like a clunky solution from within the service.
Is there any other way a service can access the request's classification?

The task's min_classification should match the classification of the submission:
https://github.com/CybercentreCanada/assemblyline-core/blob/f6ecd48e1b47306df7f409abd0ec205a9e0d5961/assemblyline_core/dispatching/dispatcher.py#L783C25-L783C43

The classification you see in the UI might differ from the original submitted classification depending on the content displayed (ie. heuristics from a service at a much higher classification)

Thanks for the fast response! That is what I initially thought, but it does not seem to be matching. Any classification I select always shows as "TLP:C". Perhaps there is something wrong with my classification yaml? The final report and submission appear to be marked correctly from the UI and API just not within the service.

Hmm... were they changes to the classification.yaml? I wonder if one part of the system or another doesn't know how to interpret a new marking and it's just defaulting to TLP:C.

Hmm... assuming the same classification file is mounted in the service on /etc/assemblyline/classfication.yml, it should be able to interpret the classification strings that the dispatcher is sending. Unless there's a bug in the dispatcher that's sending the wrong classification in the task to the service.
Would you be able to test this?

Ok. Thanks to your tip I was able to get it to work. Manually copying the config to /etc/assemblyline/classfication.yml in the service container made the values work as expected! So we are using a docker install right now to get our feet wet. I am guessing this is not an issue if we move to k8s.
Is there a way to get the docker install to automatically mount this and any other config we need?

Judging by the code, it looks like you just have to tell Scaler via env where to find the classification.yml on the host and it should share it to the services it manages:
https://github.com/CybercentreCanada/assemblyline-core/blob/f6ecd48e1b47306df7f409abd0ec205a9e0d5961/assemblyline_core/scaler/scaler_server.py#L67

Awesome. Thank you for your help!


Fix cargo clippy issues 0.1.65 in Rust

Description

Fix the latest cargo clippy issues in Rust from the version 0.1.65

To track the issue with the v1.65.0 Rust version with windows-latest on the CI , more information: https://github.com/rust-lang/cargo/pull/11347


Custom registration

Upon checking the codebase, it seems that socialiter will create a new user automatically if he is not registered yet, which is a good thing. Problem is that I may have a custom way of creating users which requires me to define more attributes than what is being defined by socialiter. Is there any way to customized this approach? Thanks.

@mrethical, this is a good idea. I'll be happy to consider a PR with these changes, I'm not sure how soon I'll be able to get to this myself.


Migrating Custom Fields

I managed to successfully migrate the VSTS collection work items from one account to another but after migrating I realized that the custom Fields that were present in the source account were not available in the target account. This means that the contents of those fields are not copied as the field is not available. Will it be possible to migrate the custom fields as well when migrating the work items or add it as a new processor ?
Because, finding out all the custom fields one by one and adding the same in the target account can be very tedious and error prone as there is no easy way to filter out the custom fields.

All data from your custom fields will be available in the history tab as a table. It is not posible to migrate fields that don't exist on the target system.
You can:

Add the custom fields to the target before the migration
Use the Field Mappers to move the data to other fields during the migration

I understand, but there are like 50 custom fields in the source. Only way to find them is to filter by the process name in the 'Fields' section. Even then, one has to manually create all of them with the precise data type, layout etc. I know it's complex but it will be great if the custom fields are also migrated in the future.

I understand, however that is extremely dangerous and is unlikely to be implemented. If you want a full fidelity migration then you would use the full-fidelity migration service from Microsoft: https://www.visualstudio.com/team-services/migrate-tfs-vsts/
This tool is for partial migration and that entails significant work.

Fine. Another thing is that the Customized process name needs to be the same across the source and the target accounts and this creates a dependency that may not be achievable in all cases.
For example, if a field is already created using the existing process name which is different from the process name in the source account, we are forced to delete this field and create it again after setting the default process to the one whose name matches the source account. Is this also a known issue ?

Sorry for being insistent, but this information about the custom fields that need to be created in the target system should be added to the documentation. Otherwise one realizes the missing data after the migration and this means you have to do the migration again or add the data manually which can be error prone and time consuming.

@marck111 if there is a refname diference between the source and target you can add a FieldMap to move the data from the source field of say "My.Effort" to the target field of "system.vsts.effort"...


فاصل إعلاني & فاصل إعلاني أفلام بس

Steps to reproduce
First, when you choose the episode, it exits and does not work
Expected behavior
Episode should work
Actual behavior
The episode goes out and doesn't work
Crash logs
I don't know
Aniyomi version
<IP_ADDRESS>
Android version
Android 11
Device
Samsung A10
Other details
Only episodes don't work
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
[X] I have written a short but informative title.
[X] If this is an issue with an extension, I should be opening an issue in the extensions repository.
[X] I have tried the troubleshooting guide.
[X] I have updated the app to version <IP_ADDRESS>.
[X] I have updated all installed extensions.
[X] I will fill out all of the requested information in this form.

Yes, thank you for the response,
but the “فاصل إعلاني” website does not work well on the Aniyomi
application. I hope to fix the error as soon as possible, and thank you for
the application
Also, "فاصل إعلاني أفلام بس" suffers from the same problem
Site: www.faselhd.pro
في الأربعاء، 22 يونيو 2022 10:52 م jmir1 @.***> كتب:

Closed #624 https://github.com/jmir1/aniyomi/issues/624 as not planned.
—
Reply to this email directly, view it on GitHub
https://github.com/jmir1/aniyomi/issues/624#event-6860338018, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AZVEWRAZJTY6R7GTNTU2VYTVQODI5ANCNFSM5ZJ7C3LQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

Name: Gateanime
Link: https://s.gateanime.com
Language: Arabic / العربية
Name: Cima4u
Link: https://cima4u.film
Language: Arabic / العربية
Name: Cima4up
Link: https://cinema4up.net
Language: Arabic / العربية
Name: gatecima
Link: https://gatecima.com
Language: Arabic / العربية

This link works for what I think
https://www.faselhd.club/home2
في الخميس، 23 يونيو 2022 12:09 م Vëñøm Is Båçk @.***>
كتب:

Yes, thank you for the response,
but the “فاصل إعلاني” website does not work well on the Aniyomi
application. I hope to fix the error as soon as possible, and thank you for
the application
Also, "فاصل إعلاني أفلام بس" suffers from the same problem
Site: www.faselhd.pro
في الأربعاء، 22 يونيو 2022 10:52 م jmir1 @.***> كتب:

Closed #624 https://github.com/jmir1/aniyomi/issues/624 as not planned.
—
Reply to this email directly, view it on GitHub
https://github.com/jmir1/aniyomi/issues/624#event-6860338018, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AZVEWRAZJTY6R7GTNTU2VYTVQODI5ANCNFSM5ZJ7C3LQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

Name: Gateanime
Link: https://s.gateanime.com
Language: Arabic / العربية
Name: Cima4u
Link: https://cima4u.film
Language: Arabic / العربية
Name: Cima4up
Link: https://cinema4up.net
Language: Arabic / العربية
Name: gatecima
Link: https://gatecima.com
Language: Arabic / العربية
في الخميس، 23 يونيو 2022 12:25 م Vëñøm Is Båçk @.***>
كتب:

Name: Gateanime
Link: https://s.gateanime.com
Language: Arabic / العربية
Name: Cima4u
Link: https://cima4u.film
Language: Arabic / العربية
Name: Cima4up
Link: https://cinema4up.net
Language: Arabic / العربية
Name: gatecima
Link: https://gatecima.com
Language: Arabic / العربية


env variables

I am not a django or even python guy and I have been trying to figure out the correct env variables to set and failing miserably. Would it be possible to get an example in the readme? Or here even. Just as a guide for us clueless ones.

Hi @daemon-byte , can you describe the issue you're having when trying to run the project?
When running it locally you shouldn't need to set any environment variable. For a production deployment there are some env variables that need to be set, you can see the list in https://github.com/abrenaut/posio/blob/master/posio/settings.py


Asymmetric routing issues when using port-forwarding on two or more gateways

This could be a bug, but I am really not sure, so I am posting it here.
So basically, I have a wireguard VPN client setup on OPNsense with an IPv4 gateway assigned, I also have my native WAN with an IPv4 assigned. What I'm trying to do is port-forward a single port to both gateways - for example <IP_ADDRESS>:8877 to both my native WAN and to the VPN gateway. This was possible in pfsense that I have used for about 4 years with this setup, however it seems to be impossible in OPNsense.
I have only migrated about 3 days ago and have asked on the forum as well as on reddit. We were able to isolate the issue to asymmetrtic routing - packets enter through the VPN gateway and leave through the default WAN gateway.
Is there any way to fix this?
Thanks!

In this guide is a note about DNAT with VPN Interfaces. Maybe it fixed your issues? Its probably a reply-to problem.
https://docs.opnsense.org/manual/how-tos/nat_reflection.html

Sorry for the late answer, this is exactly it.
I am really sorry for bothering you, I somehow completely missed this section of the guide.
This is stupidity on my side, again sorry and thank you very much for pointing this out!

Hey, no worries at all! :)

The guide is really long and its only a small detail. I especially added it there since a lot of forum posts happen because of this. So I just knew where to look right away. Glad it solved your issue. :)


Private volume lost when changing parcellation in siibra-explorer

When viewing the anchoring result in siibra-explorer via VoluBA, the aligned volume is displayed on top of BigBrain space and BigBrain Isocortex parcellation. Chaning the parcellation leads to the user volume disappearing. As long as the parcellation is supported by BigBrain, the volume should be shown as e.g. comparing the alinged volume to cytoarchitectonic maps is the most interesting for the user.

This is the Siibra Explorer issue. Ref: https://github.com/FZJ-INM1-BDA/siibra-explorer/issues/1285

I will close the issue here if there are no more comments.

Needs to update Voluba plugin

Demo: https://voluba-next.apps-dev.hbp.eu/


qiskit.synthesis.two_qubit_cnot_decompose is missing documentation

I think this two_qubit_cnot_decompose is missing an .. autofunction:: in the docstring?  If it's meant to be there, let's take a note to add it after rc1 - no need to hold up the PR over a documentation thing.

Originally posted by @jakelishman in https://github.com/Qiskit/qiskit/pull/11687#discussion_r1475028459

#11709
there's a parrot in here ;)


[FLAKE] test/core/end2end/connection_refused_test under epoll1

export GRPC_POLL_STRATEGY=epoll1

shift
test/core/end2end/connection_refused_test
D0710 16:46:09.886457379      19 test_config.cc:391]         test slowdown factor: sanitizer=1, fixture=1, poller=1, total=1
I0710 16:46:09.886558550      19 connection_refused_test.cc:50] TEST: wait_for_ready=0 use_service_config=0
E0710 16:46:12.892350378      19 connection_refused_test.cc:118] assertion failed: status == GRPC_STATUS_DEADLINE_EXCEEDED

Caught signal SIGABRT
/b/s/w/ir/run/bazel-out/k8-dbg/bin/test/core/end2end/connection_refused_test@poller=epoll1.runfiles/com_github_grpc_grpc/test/core/end2end/../../../_solib_k8/libtest_Score_Sutil_Slibgpr_Utest_Uutil.so(+0x2198)[0x7fbec396d198]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7fbec3177390]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7fbec252f428]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7fbec253102a]
test/core/end2end/connection_refused_test[0x4036ad]
test/core/end2end/connection_refused_test[0x403157]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7fbec251a830]
test/core/end2end/connection_refused_test[0x403039]
Aborted (core dumped)

The previous failure was observed under bazel debug build

Same assertion failure seen again in https://source.cloud.google.com/results/invocations/6f0a0564-c5c0-4661-95dd-4daa98c7798d/targets/%2F%2Ftest%2Fcore%2Fend2end:connection_refused_test@poller%3Depoll1/log
exec ${PAGER:-/usr/bin/less} "$0" || exit 1
Executing tests from //test/core/end2end:connection_refused_test@poller=epoll1
-----------------------------------------------------------------------------
+ export GRPC_POLL_STRATEGY=epoll1
+ shift
+ test/core/end2end/connection_refused_test
D1111 19:03:30.949566984      17 test_config.cc:384]         test slowdown factor: sanitizer=3, fixture=1, poller=1, total=3
I1111 19:03:30.949916393      17 connection_refused_test.cc:49] TEST: wait_for_ready=0 use_service_config=0
I1111 19:03:30.952442422      17 ev_epoll1_linux.cc:116]     grpc epoll fd: 3
D1111 19:03:30.952560843      17 ev_posix.cc:174]            Using polling engine: epoll1
D1111 19:03:30.953882218      17 dns_resolver_ares.cc:503]   Using ares dns resolver
I1111 19:03:30.954967756      17 connection_refused_test.cc:82] server: <IP_ADDRESS>:27108
I1111 19:03:30.959205661      17 subchannel.cc:1003]         Connect failed: {"created":"@1573499010.958982807","description":"Failed to connect to remote host: Connection refused","errno":111,"file":"src/core/lib/iomgr/tcp_client_posix.cc","file_line":200,"os_error":"Connection refused","syscall":"connect","target_address":"ipv4:<IP_ADDRESS>:27108"}
I1111 19:03:30.959462314      17 subchannel.cc:942]          Subchannel 0x616000000680: Retry in 998 milliseconds
I1111 19:03:30.960929139      17 connection_refused_test.cc:49] TEST: wait_for_ready=1 use_service_config=0
I1111 19:03:30.963592912      17 ev_epoll1_linux.cc:116]     grpc epoll fd: 3
D1111 19:03:30.963672994      17 ev_posix.cc:174]            Using polling engine: epoll1
D1111 19:03:30.964650635      17 dns_resolver_ares.cc:503]   Using ares dns resolver
I1111 19:03:30.965494425      17 connection_refused_test.cc:82] server: <IP_ADDRESS>:27109
I1111 19:03:30.967993464      17 subchannel.cc:1003]         Connect failed: {"created":"@1573499010.967831690","description":"Failed to connect to remote host: Connection refused","errno":111,"file":"src/core/lib/iomgr/tcp_client_posix.cc","file_line":200,"os_error":"Connection refused","syscall":"connect","target_address":"ipv4:<IP_ADDRESS>:27109"}
I1111 19:03:30.968249523      17 subchannel.cc:942]          Subchannel 0x616000000c80: Retry in 998 milliseconds
I1111 19:03:31.967305536      24 subchannel.cc:967]          Failed to connect to channel, retrying
I1111 19:03:31.968966618      24 subchannel.cc:1003]         Connect failed: {"created":"@1573499011.968582772","description":"Failed to connect to remote host: Connection refused","errno":111,"file":"src/core/lib/iomgr/tcp_client_posix.cc","file_line":200,"os_error":"Connection refused","syscall":"connect","target_address":"ipv4:<IP_ADDRESS>:27109"}
I1111 19:03:31.969402924      24 subchannel.cc:942]          Subchannel 0x616000000c80: Retry in 1316 milliseconds
I1111 19:03:33.282354999      25 subchannel.cc:967]          Failed to connect to channel, retrying
I1111 19:03:33.283322508      25 subchannel.cc:1003]         Connect failed: {"created":"@1573499013.283078591","description":"Failed to connect to remote host: Connection refused","errno":111,"file":"src/core/lib/iomgr/tcp_client_posix.cc","file_line":200,"os_error":"Connection refused","syscall":"connect","target_address":"ipv4:<IP_ADDRESS>:27109"}
I1111 19:03:33.283566902      25 subchannel.cc:942]          Subchannel 0x616000000c80: Retry in 2421 milliseconds
I1111 19:03:35.703297951      24 subchannel.cc:967]          Failed to connect to channel, retrying
I1111 19:03:35.704025989      24 subchannel.cc:1003]         Connect failed: {"created":"@1573499015.703840605","description":"Failed to connect to remote host: Connection refused","errno":111,"file":"src/core/lib/iomgr/tcp_client_posix.cc","file_line":200,"os_error":"Connection refused","syscall":"connect","target_address":"ipv4:<IP_ADDRESS>:27109"}
I1111 19:03:35.704328256      24 subchannel.cc:942]          Subchannel 0x616000000c80: Retry in 3391 milliseconds
I1111 19:03:36.969489865      17 connection_refused_test.cc:49] TEST: wait_for_ready=1 use_service_config=1
I1111 19:03:36.976257116      17 ev_epoll1_linux.cc:116]     grpc epoll fd: 3
D1111 19:03:36.976339573      17 ev_posix.cc:174]            Using polling engine: epoll1
D1111 19:03:36.977281709      17 dns_resolver_ares.cc:503]   Using ares dns resolver
I1111 19:03:36.980369081      17 connection_refused_test.cc:82] server: <IP_ADDRESS>:27110
I1111 19:03:36.983090039      17 subchannel.cc:1003]         Connect failed: {"created":"@1573499016.982908480","description":"Failed to connect to remote host: Connection refused","errno":111,"file":"src/core/lib/iomgr/tcp_client_posix.cc","file_line":200,"os_error":"Connection refused","syscall":"connect","target_address":"ipv4:<IP_ADDRESS>:27110"}
I1111 19:03:36.983445385      17 subchannel.cc:942]          Subchannel 0x616000001280: Retry in 999 milliseconds
I1111 19:03:37.984301723      29 subchannel.cc:967]          Failed to connect to channel, retrying
I1111 19:03:37.985094263      29 subchannel.cc:1003]         Connect failed: {"created":"@1573499017.984912288","description":"Failed to connect to remote host: Connection refused","errno":111,"file":"src/core/lib/iomgr/tcp_client_posix.cc","file_line":200,"os_error":"Connection refused","syscall":"connect","target_address":"ipv4:<IP_ADDRESS>:27110"}
I1111 19:03:37.985343893      29 subchannel.cc:942]          Subchannel 0x616000001280: Retry in 1820 milliseconds
I1111 19:03:39.801855711      30 subchannel.cc:967]          Failed to connect to channel, retrying
D1111 19:03:39.803025367      30 tcp_posix.cc:1261]          cannot set inq fd=5 errno=92
I1111 19:03:39.804433368      30 subchannel.cc:1055]         New connected subchannel at 0x604000004990 for subchannel 0x616000001280
E1111 19:03:39.806973018      17 connection_refused_test.cc:115] assertion failed: status == GRPC_STATUS_DEADLINE_EXCEEDED

*******************************
Caught signal SIGABRT
test/core/end2end/connection_refused_test(backtrace+0x5b)[0x457ccb]
/b/f/w/bazel-out/k8-fastbuild/bin/test/core/end2end/connection_refused_test@poller=epoll1.runfiles/com_github_grpc_grpc/test/core/end2end/../../../_solib_k8/libtest_Score_Sutil_Slibgrpc_Utest_Uutil_Ubase.so(+0x18c62)[0x7fc17eddbc62]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7fc17d23e390]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7fc17c875428]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7fc17c87702a]
test/core/end2end/connection_refused_test[0x4c981d]
test/core/end2end/connection_refused_test(main+0x136)[0x4c88f6]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7fc17c860830]
test/core/end2end/connection_refused_test(_start+0x29)[0x4209b9]
Aborted (core dumped)

Seen in https://github.com/grpc/grpc/pull/20929


Dark Map style

As a user I want that the map applies a dark style when the rest of the app is in dark mode.
Acceptance Criteria:

[ ] Map has a dark style applied when app is in dark mode
[ ] Switching between dark and light mode applies the dark/light style to the map without restarting the app

i really don't see a big value in that. But the effort shouldn't be that high.
We probably have to create a styles-dark.json and provide a separate map path that can be switched in the app


WIP: Add TypeScript types for v5

First pass at types
See #125
Copied the DefinitelyTyped file and added props from the v5 changelog.
Should this file be covered by Prettier?

hey @adambowles thank you for working on this. We should be able to move on this next week.

Good points, I've incorporated your suggestions

Tested the types locally, refactored to export a usable type; 65d19f15eb17d4564e833b4bb3a432babb6f174e

I think the Swipeable types are good now, I'm not sure how to get your build process to budle the index.d.ts file though

I think "index.d.ts" just needs to be added to the files in package.json to get bundled.

I'm curious if you have any drive to write some typescript tests? And/Or if could attempt some tests and push to your branch using https://github.com/Microsoft/dtslint#write-tests ?

I've moved all the type related files into ./types, along with adding a test file.
Again, the tests are first pass, pretty much a copy of the v4 DefinitelyTyped test

Travis CI was failing without my package-lock.json, but it's a huge diff from your version. I've committed it in its own commit so it can be reverted on its own if needs be

dtslint is currently failing when checking csstypes, not sure how I exclude everything from node_modules (same as https://github.com/Microsoft/dtslint/issues/215)

I pulled down your fork and I also ran into the typing node_module issue using dtslint, thank you for trying, this is incredibly frustrating.
On a happier note i think we can simplify the types even more? I think i got this to work with your test file:
import * as React from 'react'

export interface EventData {
  event: MouseEvent | TouchEvent
  deltaX: number
  deltaY: number
  absX: number
  absY: number
  velocity: number
  dir: 'Left' | 'Right' | 'Up' | 'Down'
}

export type SwipedCallback = ({}: EventData) => void

export interface SwipeableOptions {
  // Event handler/callbacks
  onSwiped?: SwipedCallback
  onSwipedLeft?: SwipedCallback
  onSwipedRight?: SwipedCallback
  onSwipedUp?: SwipedCallback
  onSwipedDown?: SwipedCallback
  onSwiping?: SwipedCallback

  // Configuration Props
  delta?: number
  preventDefaultTouchmoveEvent?: boolean
  trackTouch?: boolean
  trackMouse?: boolean
  rotationAngle?: number
}

// Component Specific Props
export interface SwipeableProps {
  nodeName?: string
  innerRef?: ({}: HTMLElement) => void
  children?: React.ReactNode
  style?: React.CSSProperties
  className?: string
}

export class Swipeable extends React.PureComponent<SwipeableProps & SwipeableOptions> {}

Also updated the innerRef to only take a callback that is supplied a dom element.
This is honestly my first time even experimenting with typescript, but based on those example libraries I linked above the types they are exporting seem incredibly simple and straightforward. Thoughts?

I don't have much experience typing other people's modules either if I'm honest, my TypeScript experience is from writing modules so the typings come free. I had been testing these types by pasting into a types definition in a TypeScript project, which is why the declare module was required for my environment. I moved this file into my node_modules and TypeScript can automatically recognise which module they're for :+1:, so I'm happy for that part to go.
With regards to your explicit exports vs. my namespace, either way is fine by me. It only changes the way they are imported.
// namespace:
import { ReactSwipeable, Swipeable } from 'react-swipeable';

let myProps: ReactSwipeable.SwipeableProps = {
  ...
}

// explicit imports
import { SwipeableProps, Swipeable } from 'react-swipeable';

let myProps: SwipeableProps = {
  ...
}

@adambowles thank you for the clarification, its really helps me understand the syntax and usage patterns. Thank you for testing it on your project too.
I think I'm personally leaning towards explicit exports. Mainly because those other projects follow that pattern and we still need to create a useSwipeable type(which I can attempt later).
Though if the typescript community tends to expect/like exports by nameSpace I could easily be convinced. Do you happen to know of any packages that do it that way, if so can you link them?
I'm also going to reach out to my coworkers who use typescript regularly and ask for their input.
It would be nice to at least have a single test, but if dtslint isn't fixed and working by the beginning of next week we can just move forward without it.

I have no idea what broke the CI, the travis logs don't report much. I've added you as a collaborator on my fork, feel free to push directly to my master if you get it fixed your end

Using the hook, I have typed the handlers as SwipeableHandlers and spread them on to the swipeable div.  However this results in a Typescript error.  Any help would be most appreciated.
Code
    const handlers: SwipeableHandlers = useSwipeable({
        onSwipedLeft: handleOnSwipedLeft,
        onSwipedRight: handleOnSwipedRight,
        onSwiped: handleOnSwiped,
        onSwiping: handleSwiping,
        delta: horizontalSwipeThreshold,
        preventDefaultTouchmoveEvent: true,
        trackTouch: true,
    });

    return (
        <div {...handlers}>
           ...
        </div>
    );

Error
Type '{ children: Element[]; ref: ({}: HTMLElement) => void; onMouseDown?: ((event: MouseEvent<Element, MouseEvent>) => void) | undefined; className: string; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'.
  Type '{ children: Element[]; ref: ({}: HTMLElement) => void; onMouseDown?: ((event: MouseEvent<Element, MouseEvent>) => void) | undefined; className: string; }' is not assignable to type 'ClassAttributes<HTMLDivElement>'.
    Types of property 'ref' are incompatible.
      Type '({}: HTMLElement) => void' is not assignable to type 'string | ((instance: HTMLDivElement | null) => void) | RefObject<HTMLDivElement> | null | undefined'.
        Type '({}: HTMLElement) => void' is not assignable to type '(instance: HTMLDivElement | null) => void'.
          Types of parameters '__0' and 'instance' are incompatible.
            Type 'HTMLDivElement | null' is not assignable to type 'HTMLElement'.
              Type 'null' is not assignable to type 'HTMLElement'.ts(2322)

Realise it's better as an issue. https://github.com/dogfessional/react-swipeable/issues/140.  Cheers!


Feature Request: Balanced Column Height

When a column has items that are shorter than another columns' items this can cause the entire column's height to be drastically shorter than the other columns'.
In Salvattore, a fix was done utilizing a better algorithm. If anyone would like to take a look at that and try to work something out, this would be an immensely helpful feature. That was on Pull Request #70
Here's an image as an example, and an example page:

Okay. I understand. It's a little bit omplicated to implement this feature. You have to get the height before the element are rendered. Or you can render, get the height and rerender. But this is really dirty.

I met the same problem, the general solution may be complex.But if you use deckgrid+ngInfiniteScroll, then I hope the answer can help you.
first, I fork symrad/angular-deckgrid to solve the redraw  problem as issue#68 mentioned;then, I can get old column height to decide how to distribute new items.
The idea is : I calculate the max column height and min column height, if (maxColumn.height - minColumn.height) > 600(an arbitrary value), then distribute the first new item to min column and the rest is do as usual. This simple method keep the columns won't always be unbalanced.
Here's my source code


White space at end of progress when setWithPointer(false) and how to decrease no of ticks

Hi,
Thanks for this awesome library. This is one of the best library I had seen so far. Really appreciate your efforts.
I am trying to use PointerSpeedometer and have few questions regarding them. It would be great if you can help me those.

When I use setWithPointer(false)  then there is white unfilled space at the beginning and end of progress. Please see the image. Can you please help me how to remove that white unfilled space.
Is there a way I can reduce the no of markers? I want to divide the whole progress into just 5 equal parts.
Is there a way I can put the markers inside the progress bar like in the image rather than outside?

Thanks again for your time.

Hi @mars278
for first problem i think this will fix it 2f4615c.
the other two are planned to do and they need time.
thanks for contributing.

Hi @anastr
Thank you very much for the quick reply. Looking forward for the markers change.

@anastr Hi, If possible can you please let me know an approximate time of when you are planning to release these two items?

Is there a way I can reduce the no of markers? I want to divide the whole progress into just 5 equal parts.
Is there a way I can put the markers inside the progress bar like in the image rather than outside?

Oh, i'm sorry i was so busy, i will try to release it in the next two weeks.
follow #59 for mark issue, it should be added long time ago but marks always have some tiny problems, i hope i can add it in the next version,, OR maybe it will be left as it is for custom Speedometers.

@anastr No problem and Thank you very much. Looking forward for that release.
Thanks again for this great library.

fixed in v1.5.3, please read release note.


Add man pages

They were written by Xu, Guangxin and Yu, Jiankang for the Debian
package.

thanks @sebastinas


ModifyCachingHeaders changes headers for all resources

After reading https://developers.google.com/speed/pagespeed/module/configuration#ModifyCachingHeaders, I felt that it was worth retaining the ETag and Last-Modified headers that PageSpeed strips by default.
pagespeed ModifyCachingHeaders off; would leave the original caching headers served by nginx for HTML resources, but still rewrite the caching headers for other PageSpeed optimized resources, e.g. CSS and JS.
When used, for HTML resources, the Cache-Control: max-age=0, no-cache header was removed and the ETag was added back, which is as described. However, it also seems to affect other resources, so the caching headers that PageSpeed applies for those resources are removed as well.
Is this unintended behaviour, or am I interpreting the documentation incorrectly?

The scope of 'ModifyCachingHeaders' is HTML; it is not intended to affect resources.  Are you saying it does affect resources?  That is certainly not the intent.
You don't need the original etag on .pagespeed. URLs because the content-hash is in the URL, and the cache liftetime is 1 year.  A new etag is placed on .pagespeed. URLs because old browsers (IE8 I think) wouldn't cache image requests without it.
Does this clarify things?  If you've found a resource for which this is not the case, please give a more detailed example & re-open.  Thanks!

nginx configuration
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
user www-data;

events {}

http {
	access_log /var/log/nginx/access.log;
	default_type application/octet-stream;
	include /etc/nginx/mime.types;
	index index.html index.php;
	ssl_certificate /etc/nginx/ecdsa/fullchain.pem;
	ssl_certificate_key /etc/nginx/ecdsa/privkey.pem;

	pagespeed FileCachePath /var/cache/pagespeed;
	#pagespeed ModifyCachingHeaders off;
	#pagespeed ShardDomain https://asmui.ml https://asmui.ga;
	pagespeed on;

	server {
		listen 443 ssl spdy http2;
		listen [::]:443 ssl spdy http2;
		root /var/www/asm;
		server_name asmui.ga asmui.ml;

		location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" {
			add_header "" "";
		}
		location ~ ^/pagespeed_static/ {}
		location ~ ^/ngx_pagespeed_beacon$ {}

		location ~ \.php$ {
			include /etc/nginx/fastcgi.conf;
		}
	}
}

Without ModifyCachingHeaders
mod_pagespeed on
Filters:
ah	Add Head
cc	Combine Css
jc	Combine Javascript
gp	Convert Gif to Png
jp	Convert Jpeg to Progressive
jw	Convert Jpeg To Webp
mc	Convert Meta Tags
pj	Convert Png to Jpeg
ws	When converting images to WebP, prefer lossless conversions
db	Debug
ec	Cache Extend Css
ei	Cache Extend Images
es	Cache Extend Scripts
fc	Fallback Rewrite Css
if	Flatten CSS Imports
hw	Flushes html
ci	Inline Css
ii	Inline Images
il	Inline @import to Link
ji	Inline Javascript
js	Jpeg Subsampling
rj	Recompress Jpeg
rp	Recompress Png
rw	Recompress Webp
ri	Resize Images
cf	Rewrite Css
jm	Rewrite External Javascript
jj	Rewrite Inline Javascript
cu	Rewrite Style Attributes With Url
cp	Strip Image Color Profiles
md	Strip Image Meta Data

Options:
AvoidRenamingIntrospectiveJavascript (aris) True
EnableRewriting (e) 1
FileCacheInodeLimit (afcl) 500000
RewriteLevel (l) Core Filters

#NumFlushes            0
#EndDocument after     888us
#Total Parse duration  791us
#Total Render duration 1032us
#Total Idle duration   97us
No critical images detected.
The following filters were disabled for this request:
	SupportNoscript

cache-control:max-age=31536000
content-encoding:gzip
content-type:text/css
date:Mon, 14 Nov 2016 15:40:14 GMT
etag:W/"0"
expires:Tue, 14 Nov 2017 15:40:14 GMT
last-modified:Mon, 14 Nov 2016 15:40:14 GMT
server:nginx/1.11.5
status:200
vary:Accept-Encoding
vary:Accept-Encoding
x-original-content-length:93603
x-page-speed:<IP_ADDRESS>-0

HTML source gives:
<link rel="stylesheet" href="/res/css/A.fontello.css+paper.css+scrollbar.css+style.css,Mcc.pyRZM-96yH.css.pagespeed.cf.yyQUpjEnFC.css"><!--CSS not inlined since it's bigger than 2048 bytes--><!--Uncacheable content, preventing rewriting of https://asmui.ml/res/img/logo.svg--><!--Uncacheable content, preventing rewriting of https://asmui.ml/res/img/logo.svg-->

With ModifyCachingHeaders
mod_pagespeed on
Filters:
ah	Add Head
cc	Combine Css
jc	Combine Javascript
gp	Convert Gif to Png
jp	Convert Jpeg to Progressive
jw	Convert Jpeg To Webp
mc	Convert Meta Tags
pj	Convert Png to Jpeg
ws	When converting images to WebP, prefer lossless conversions
db	Debug
ec	Cache Extend Css
ei	Cache Extend Images
es	Cache Extend Scripts
fc	Fallback Rewrite Css
if	Flatten CSS Imports
hw	Flushes html
ci	Inline Css
ii	Inline Images
il	Inline @import to Link
ji	Inline Javascript
js	Jpeg Subsampling
rj	Recompress Jpeg
rp	Recompress Png
rw	Recompress Webp
ri	Resize Images
cf	Rewrite Css
jm	Rewrite External Javascript
jj	Rewrite Inline Javascript
cu	Rewrite Style Attributes With Url
cp	Strip Image Color Profiles
md	Strip Image Meta Data

Options:
AvoidRenamingIntrospectiveJavascript (aris) True
EnableRewriting (e) 1
FileCacheInodeLimit (afcl) 500000
ModifyCachingHeaders (mch) False
RewriteLevel (l) Core Filters

#NumFlushes            0
#EndDocument after     3026us
#Total Parse duration  2833us
#Total Render duration 2087us
#Total Idle duration   193us
No critical images detected.
The following filters were disabled for this request:
	SupportNoscript

content-encoding:gzip
content-type:text/css
date:Mon, 14 Nov 2016 15:41:57 GMT
server:nginx/1.11.5
status:200
vary:Accept-Encoding
vary:Accept-Encoding
x-original-content-length:93603
x-page-speed:<IP_ADDRESS>-0

HTML source gives:
<link rel="stylesheet" href="/res/css/A.fontello.css+paper.css+scrollbar.css+style.css,Mcc.pyRZM-96yH.css.pagespeed.cf.yyQUpjEnFC.css"><!--CSS not inlined since it's bigger than 2048 bytes--><!--Uncacheable content, preventing rewriting of https://asmui.ml/res/img/logo.svg--><!--Uncacheable content, preventing rewriting of https://asmui.ml/res/img/logo.svg-->

Oh that should not happen ... assigning.
I think this must be nginx-specific.

To confirm, when fetching /res/css/A.fontello.css+paper.css+scrollbar.css+style.css,Mcc.pyRZM-96yH.css.pagespeed.cf.yyQUpjEnFC.css, turning off ModifyCachingHeaders removes Cache-Control, ETag, Expires, and Last-Modified?

Reproduced.  I added a stanza to my test config:
    server {
        server_name test.example.com;
        root   /var/www-test;

        listen 80;
        pagespeed on;
        #pagespeed ModifyCachingHeaders off;
    }

Ran:
http_proxy=www.jefftk.com:80 headers test.example.com/A.test.css,qa=b.pagespeed.cf.X13vJaX7nm.css

Got the headers:
HTTP/1.1 200 OK
Content-Type: text/css
Connection: keep-alive
Server: nginx/1.11.4
Accept-Ranges: bytes
Date: Mon, 14 Nov 2016 18:33:43 GMT
Expires: Tue, 14 Nov 2017 18:33:43 GMT
Cache-Control: max-age=31536000
ETag: W/"0"
Last-Modified: Mon, 14 Nov 2016 18:33:43 GMT
X-Original-Content-Length: 317324
Vary: Accept-Encoding
Vary: Accept-Encoding
Content-Length: 317324
X-Page-Speed: <IP_ADDRESS>-0

Then uncommented the pagespeed ModifyCachingHeaders off and got:
HTTP/1.1 200 OK
Date: Mon, 14 Nov 2016 18:34:14 GMT
Content-Type: text/css
Connection: keep-alive
Server: nginx/1.11.4
Accept-Ranges: bytes
X-Original-Content-Length: 317324
Vary: Accept-Encoding
Vary: Accept-Encoding
Content-Length: 317324
X-Page-Speed: <IP_ADDRESS>-0

Is there any update on that issue? We are still experiencing it.

@stufan No updates, this issue is tracking status.
If someone would like to fix this one, taking a look at what happens when
ctx->preserve_caching_headers == kDontPreserveHeaders  in https://github.com/apache/incubator-pagespeed-ngx/blob/master/src/ngx_pagespeed.cc is probably key to solving this.

I dig a bit into the code and I came to some findings but I am not quite sure how good are they to be applied. Basically if I comment
    /*
    if (preserve_caching_headers == kPreserveAllCachingHeaders) {
      if (StringCaseEqual(name_gs, "ETag") ||
          StringCaseEqual(name_gs, "Expires") ||
          StringCaseEqual(name_gs, "Date") ||
          StringCaseEqual(name_gs, "Last-Modified") ||
          StringCaseEqual(name_gs, "Cache-Control")) {
        continue;
      }
    } else if (preserve_caching_headers == kPreserveOnlyCacheControl) {
      // Retain the original Cache-Control header, but send the recomputed
      // values for all other cache-related headers.
      if (StringCaseEqual(name_gs, "Cache-Control")) {
        continue;
      }
    }  // else we don't preserve any headers.
    */

in copy_response_headers_to_ngx , then caching headers appear for pagespeed resources appear together with the HTML original cache control headers. It looks like when preserve_caching_headers == kPreserveAllCachingHeaders or preserve_caching_headers == kPreserveOnlyCacheControl the caching headers generated by Pagespeed (for Pagespeed resources) are skipped / not added to the response.

Is there any recent option that helps resolve this?


Add Channel.ReceiveWithTimeout

Add convinience method
ReceiveWithTimeout(ctx Context, timeout time.Duration, valuePtr interface{}) (timedOut, more bool)

This would make this frequently used code:
sigCh := workflow.GetSignalChannel(ctx, "signal1")
timeout := workflow.NewTimer(ctx, time.Minute * 30)
var signal *SignalStruct

s := workflow.NewSelector(ctx)
s.AddFuture(timeout, func(f Future) {
})
s.AddReceive(sigCh, func(c Channel, more bool) {
    c.Receive(ctx, signal)
})
s.Select(ctx)

into
sigCh := workflow.GetSignalChannel(ctx, "signal1")
var signal *SignalStruct
sigCh.ReceiveWithTimeout(ctx, time.Minute * 30, signal)

Hi, How about the Channel.Receive, it will be canceled automatically after the workflow timeout?