site-support-request: cinema.arte.tv

Several URLs on arte.tv are already supported, but not this one:
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://cinema.arte.tv/de/artikel/polizeifilm-von-wim-wenders']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2<IP_ADDRESS>
[debug] Python version 3.4.3 - Linux-3.17.4-hardened-r1-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.2
[debug] exe versions: ffmpeg 2.5.3, ffprobe 2.5.3
[debug] Proxy map: {}
[generic] polizeifilm-von-wim-wenders: Requesting header
WARNING: Falling back on generic information extractor.
[generic] polizeifilm-von-wim-wenders: Downloading webpage
[generic] polizeifilm-von-wim-wenders: Extracting information
ERROR: Unsupported URL: http://cinema.arte.tv/de/artikel/polizeifilm-von-wim-wenders
Traceback (most recent call last):
  File "/usr/lib64/python3.4/site-packages/youtube_dl/YoutubeDL.py", line 655, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib64/python3.4/site-packages/youtube_dl/extractor/common.py", line 287, in extract
    return self._real_extract(url)
  File "/usr/lib64/python3.4/site-packages/youtube_dl/extractor/generic.py", line 1804, in _real_extract
    raise UnsupportedError(url)
youtube_dl.utils.UnsupportedError: Unsupported URL: http://cinema.arte.tv/de/artikel/polizeifilm-von-wim-wenders

This video was only temporarily available.
Other similar link such as http://cinema.arte.tv/fr/article/les-ailes-du-desir-de-julia-reck works fine.
Problem certainly was an unavailable video at the time.

@crazyiop This did not have anything to do with expiring links. The extractor was added in 2016.01.23, in this commit 4fcd9d147df9b06d954b8f8a1749b50609529ed4
IMHO @jaimeMF can close this issue as it is working now.

I'm sorry to tell you that it's not ixed for me:
youtube-dl -v http://cinema.arte.tv/de/artikel/polizeifilm-von-wim-wenders                       [debug] System config: [] [debug] User config: [] [debug] Command-line args: [u'-v', u'http://cinema.arte.tv/de/artikel/polizeifilm-von-wim-wenders'] [debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8 [debug] youtube-dl version 2016.02.10 [debug] Python version 2.7.10 - Darwin-15.3.0-x86_64-i386-64bit [debug] exe versions: ffmpeg 2.6.3, ffprobe 2.6.3 [debug] Proxy map: {} [arte.tv:cinema] artikel/polizeifilm-von-wim-wenders: Downloading webpage [arte.tv:cinema] artikel/polizeifilm-von-wim-wenders: Downloading JSON metadata ERROR: An extractor error has occurred. (caused by KeyError(u'VTI',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. Traceback (most recent call last):   File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 315, in extract     return self._real_extract(url)   File "/usr/local/bin/youtube-dl/youtube_dl/extractor/arte.py", line 84, in _real_extract     return self._extract_from_webpage(webpage, video_id, lang)   File "/usr/local/bin/youtube-dl/youtube_dl/extractor/arte.py", line 111, in _extract_from_webpage     return self._extract_from_json_url(json_url, video_id, lang)   File "/usr/local/bin/youtube-dl/youtube_dl/extractor/arte.py", line 121, in _extract_from_json_url     title = player_info['VTI'].strip() KeyError: u'VTI' Traceback (most recent call last):   File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 666, in extract_info     ie_result = ie.extract(url)   File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 321, in extract     raise ExtractorError('An extractor error has occurred.', cause=e) ExtractorError: An extractor error has occurred. (caused by KeyError(u'VTI',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

when you go to http://cinema.arte.tv/de/artikel/polizeifilm-von-wim-wenders
with your browser, are you able to actualy see the vidéo on the website ??
2016-02-11 19:35 GMT+01:00 a.h<EMAIL_ADDRESS>
I'm sorry to tell you that it's not ixed for me:
youtube-dl -v http://cinema.arte.tv/de/artikel/polizeifilm-von-wim-wenders
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'
http://cinema.arte.tv/de/artikel/polizeifilm-von-wim-wenders']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.02.10
[debug] Python version 2.7.10 - Darwin-15.3.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 2.6.3, ffprobe 2.6.3
[debug] Proxy map: {}
[arte.tv:cinema] artikel/polizeifilm-von-wim-wenders: Downloading webpage
[arte.tv:cinema] artikel/polizeifilm-von-wim-wenders: Downloading JSON
metadata
ERROR: An extractor error has occurred. (caused by KeyError(u'VTI',));
please report this issue on https://yt-dl.org/bug . Make sure you are
using the latest version; type youtube-dl -U to update. Be sure to call
youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 315,
in extract
return self._real_extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/arte.py", line 84, in
_real_extract
return self._extract_from_webpage(webpage, video_id, lang)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/arte.py", line 111,
in _extract_from_webpage
return self._extract_from_json_url(json_url, video_id, lang)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/arte.py", line 121,
in _extract_from_json_url
title = player_info['VTI'].strip()
KeyError: u'VTI'
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 666, in
extract_info
ie_result = ie.extract(url)
File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 321,
in extract
raise ExtractorError('An extractor error has occurred.', cause=e)
ExtractorError: An extractor error has occurred. (caused by
KeyError(u'VTI',)); please report this issue on https://yt-dl.org/bug .
Make sure you are using the latest version; type youtube-dl -U to update.
Be sure to call youtube-dl with the --verbose flag and include its complete
output.
—
Reply to this email directly or view it on GitHub
https://github.com/rg3/youtube-dl/issues/6613#issuecomment-183000674.


Update dynamic terrain system

Short Description
I designed the temperature-reactive terrain system very quickly, and it's not very good. Let's update it with better coding practices and more terrain possibilities.
More Details
When I created the terrain system, I was working on the game for class and had a sprint due that night, so it's not very good. There are only a few terrain types which get switched out. @rvanasa suggested creating something like an AdaptableTerrain class that can hold a currentTerrain value or something similar, which I think is a good idea.
Related Ideas
If we're going to work on this, we might as well also add more dynamic terrain types! Please let me know if you have any ideas.

A few ideas for terrain components, just for brainstorming:

Supervolcanic wasteland
Polar / arctic (low temperature, possibly frozen collectible life forms)
Desert (high temperature)
"Forests" (planets with a large ecosystem)
Underground caves / tunnels
Craters (mining)
Planetwide ruins (previous civilization)
Spooky anomalies and science stuff (research data)
Warzone (based on economic state)
"Living" terrain (talks to you)
Especially prominent mountains, waterfalls, canyons, cliffs, etc. (based on survey features)
Geysers (recharge ship)
Hurricanes / superstorms (research data, shipwrecks afterward)
Emissive phenomena (only visible with certain equipment or via specific light wavelengths)
The Galactron
Agricultural fields (buy crops, sell tools)
Planetwide zoos / nature conservatories
Testing grounds (nuclear fallout, unique items / data / ecosystem)
Semi-scripted worlds with very specific stories behind them (Markov-chain style background context and features)
Terraformed "shrine worlds" designed for forgotten purposes
Artificial terrain suspended by balloons, airships, etc.
Higher-dimensional portal worlds
Planet-scale industrial accidents (crafting materials)
"Real estate planets" (option to buy land in case a faction decides to colonize)
Sludge / mud plains
Artificial close-orbiting belts of terrain above planet
Thick fog or mist above surface
Floating islands (electromagnetism or something)
Channels or footprints created by gigantic extinct creatures
Special terrain structure for tidally locked planets (scorched day side, frigid night side, habitable twilight ring between)
Highly magnetic surface (interferes with landing / takeoff)
Terrain with an associated mission or puzzle (oddly specific description of landmarks, etc.)
Crystalline terrain (high-mass planet)
Tourist planets (ability to visit interesting landmarks)

Maybe we could reverse the control flow so that a planet has a Terrain, which generates and maintains a list of Location objects. The LandingSite logic could then become a subclass of Location, which makes it possible to have different parts of a terrain react differently based on the planet's state. For instance, a settlement might become abandoned if the temperature rises, but other locations such as geysers or caves would still be available to visit within the terrain.
I'll have a go at making a JSON or XML configuration system for this, so that way we can have lots of flexibility without having to manually code each transition between terrain features.


Add Zone to Dashboard

As an analyst
I want to see Zone on the dashboard
So that I can sort and filter by it to help with my work
Description:
Currently the dashboard does not have Zone as a column but it has been requested by the analysts because they use Zones to help them organize their work, assessments, negotiations, selection deck etc.
Acceptance Criteria:

[x] Dashboard now has a Zone column
[x] Zone column is number field, right aligned
[x] Is sortable (where two zones exist for an application, sort by the smaller number)
[x] Is filterable
[x] Is filterable with dropdown list of existing zones in applications (where two zones exist for an application, allow user to filter on either)
[x] Make Package # right aligned if all the spacing between columns is significantly reduced
[x] 8px spacing between each column, but 0 spacing on the left of the first column and on the right of the last column

Intake
CCBC ID
Zone
Status
Project title
Organization
Lead
Package

px
81
101
68
174
288
224
128
96

%
6.66%
8.31%
5.59%
14.31%
23.68%
18.42%
10.53%
7.89%

wireframe

Implementation Details

app/postgraphile.tags.json5
add sortable & filterable there

Works great!


Fix benchmarks.

Benchmarks no longer worked as a consequence of not having glob as a dependency and changes in allowed invocation patterns. These are also slightly more realistic benchmarks.

Use a real distribution, better yet a few, you can sample this from any publicly accessible ember site

/foo/ + i is not that realistic

Note that the realism isn't actually the point of this change, it's actually because of #118 and the benchmarks now throwing errors.
I'm intending to actually write benchmarks which capture multiple perf runs against a clean unoptimized version (since most of this code is only ever run once and thus never optimized) but I need to pick your brain about how to do that automatically. I'll do that for my work on https://github.com/nathanhammond/ember-route-recognizer/commits/master which is closer and closer to landing.

add is optimized and deoptimized during boot because it is called a ton, this pr I know is just to get them running but you made the comment about them being slightly more realistic


Viewing/Editing a Texture2D asset segfaults Xorg

Describe the bug
When clicking the "View Data" button on a Texture2D asset, Xorg crashes and I'm sent back to my DM
To Reproduce
Steps to reproduce the behavior:

Open a bundle
Find a Texture2D
Click "View Data"

Expected behavior
It doesn't crash my desktop
Screenshots
N/A
Additional context
[  1918.746] (EE)
[  1918.746] (EE) Backtrace:
[  1918.746] (EE) 0: /usr/lib/Xorg (xorg_backtrace+0x2dd) [0x60ede81fec4d]
[  1918.746] (EE) 1: /usr/lib/libc.so.6 (__sigaction+0x50) [0x7544132dc710]
[  1918.746] (EE) 2: /usr/lib/xorg/modules/drivers/nvidia_drv.so (nvidiaUnlock+0x4aeb8) [0x754411eb6a78]
[  1918.747] (EE) 3: /usr/lib/xorg/modules/drivers/nvidia_drv.so (nvidiaUnlock+0x350fe) [0x754411ea0cbe]
[  1918.747] (EE) 4: /usr/lib/xorg/modules/drivers/nvidia_drv.so (nvidiaUnlock+0x460ab6) [0x7544122cc676]
[  1918.747] (EE)
[  1918.747] (EE) Segmentation fault at address 0x0
[  1918.747] (EE)
Fatal server error:
[  1918.747] (EE) Caught signal 11 (Segmentation fault). Server aborting

This is an Avalonia issue or an issue with one of the libraries Avalonia uses like Skia. The backtrace you posted is a native one so I can't do much with it.


add c api  support

please consider add c api header file support, so it can be used as https://github.com/canonical/raft replacement.

Been through this in a different place, since openraft is heavily async it will translate extremely poorly to c-land

wrapper it with struct like https://github.com/datastax/cpp-driver future will be a option.

The problem is that futures in rust and c are very differently implemented you can't just take a rust future and run it in a c asyncronous runtime (or vica versa)

Is is possible to  wrapper rust future with C struct  and pass into libuv envet loop (or uv_async_t)?


Code cleaning phantom types

Codecov Report

Merging #203 (dcf2d02) into master (bdc52cb) will decrease coverage by 0.06%.
The diff coverage is 72.47%.

@@            Coverage Diff             @@
##           master     #203      +/-   ##
==========================================
- Coverage   67.86%   67.80%   -0.07%
==========================================
  Files          31       31
  Lines        4444     4463      +19
==========================================
+ Hits         3016     3026      +10
- Misses       1428     1437       +9

Impacted Files
Coverage Δ

src/adtConstructors.ml
92.14% <ø> (ø)

src/adtParameters.ml
67.85% <66.66%> (-1.11%)
:arrow_down:

src/type.ml
61.25% <71.28%> (-0.26%)
:arrow_down:

src/pathName.ml
59.66% <100.00%> (-0.23%)
:arrow_down:

src/util.ml
94.11% <100.00%> (+1.80%)
:arrow_up:

Continue to review full report at Codecov.

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


NOISSUE - Fix Authorization in Things Service

What does this do?
Fixes duplication of entries both on cache and db
Fixes authorization by key for http-adapter and coap-adapter
Which issue(s) does this PR fix/relate to?
NOISSUE
List any changes that modify/break current functionality
N/A
Have you included tests for your changes?
No
Did you document any new/modified functionality?
No
Notes
N/A

Fix failing test @rodneyosodo

Fix failing test @rodneyosodo

Failing Tests are resolved by https://github.com/mainflux/mainflux/pull/1735


Camera going crazy when setting a displacement offset

Hello,
as you can see in the video I'm linking next, I am trying to set an offset displacement to my marker to put it in a more down place: https://youtu.be/ctz6on25Byk
As you can see, the camera is going crazy when I do this. Also I am calling the function that does this every half a second so this is a potential cause but I am not sure.
My code is the following:
private async calculateCenterOffset(latlng: ILatLng, offsetyIn: number): Promise<any> {
    return new Promise(async (resolve, reject) => {
      this.map.setCameraZoom(100);
      return this.map.fromLatLngToPoint(latlng).then(res => {
        let offsety = (window.screen.availHeight * offsetyIn * -1);
        return this.map.fromPointToLatLng([res[0], res[1] + offsety]).then(res => {
          resolve(res);
        })
      })
    });
  }

And I call it like this:
this.map.setCameraTarget(await this.calculateCenterOffset(googlePosition, NAVIGATING_POSITION_OFFSET));
Is there anything I'm doing wrong which causes this effect? I am testing it on iOS, on Android it happens too but it doesn't look so awkward, it just shakes a very bit (which would be good to fix too)
Is it because it's an async function or because I'm calling it a lot of times and very fast?
Thanks.

Is it because it's an async function or because I'm calling it a lot of times and very fast?

Yes.
All source code is open. I received you check the internal code at least JS part.

Also this.map.setCameraZoom(100); is storage.

Sorry I don't know what you mean in your two posts 😔


[Feature] Support DS to create user and group in windows environment

DS can not create user and group when runing DS in windows environment.
I will implement this operation.
For exmaple:

implement user using net user
implement group using net localgroup

good idea
+1

#1953 implement this feature


Integrity error, probably unique constraint (two mysql databases with same tables)

With MySQL, after adding the second database and trying to add tables,
I'm getting: Integrity error, probably unique constraint
I've tried also with db.table
and db:table
and also with schema.
Is having two (or multiple) databases with the tables named in the same way
supported in superset ?

any update pls?

Honestly, it sounds incredible that it's not possible to have the same table name with two different databases.
The tool must have some qualities but between this and the confusing interface, I'm done with it.

A workaround is to create a View, for the subsequent tables, so they are unique.

it's probably impossible to remove constraints on some databases. There's some comment from previous issues https://github.com/apache/incubator-superset/issues/5557#issuecomment-410306136. Hope that help

This should help https://github.com/apache/incubator-superset/pull/9882


M3-3677 Add new select: support native behaviors

M3-3677 Add new select: support native behaviors
Introducing a native select for cases like needing autofill and such (when a native behavior is needed). None of the react-select & MUI select was able to achieve this very simple functionality without dumping extra gallons of JS... So there is it, as naked as a baby, a regular select.
While it is styled like other selects, the dropdown list itself is using the browser OS so it will look different than our other selects. Other than that everything works and is an easy replacement for simple selects that don't need bells as whistles. That being said, I would understand why it would not make it to the codebase for that reason.
Type of Change

Non breaking change ('update', 'change')

Also, according to the MUI documentation, using the <NativeSelect /> component is "An alternative to <Select native /> with a much smaller bundle size footprint." https://material-ui.com/api/native-select/#import
Did you try going that route? Seems worth trying if there's a smaller footprint.

@johnwcallahan probably worth exploring nativeSelect which i was not aware of. I also wanted to make sure not to introduce regressions.

@alioso I tried using the MUI <NativeSelect /> component but was seeing visual regressions. IMO this is fine.


[MINOR] Remove logos on home page

What is the purpose of the pull request

Remove logos on home page
Move logos to powered by page.

Sync
https://lamber-ken.github.io
https://lamber-ken.github.io/docs/powered_by.html
Committer checklist

[ ] Has a corresponding JIRA in PR title & commit

[ ] Commit message is descriptive of the change

[ ] CI is green

[ ] Necessary doc changes done or have another open PR

[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

Please land..


readme example: Minor fix

Coverage decreased (-2.7%) to 77.273% when pulling 43f715f7a2cf14e88193a586fc936e0fcb76c18d on kingio:patch-1 into 0ca92a610b815f4e3dbed07877b8f29d917f0927 on lemonstand:master.


Enable project references by upgrading TypeScript to >3.6

TypeScript project references have been available since 3.0. The newest TypeScript (since 3.6) brought APIs exposing this feature. For those unfamiliar with the concept please see this great example project.
Enabling this functionality would greatly improve the way we can share code amongst different apps. It should also increase the build speed as we would have access to incremental builds.
Our use cases would include:

Share types between backend and frontend
Share common utilities between different frontend apps

Currently tsc --build isn't compatible because it conflicts with some opinions that create-react-app has (e.g.  isolatedModules). EDIT: as @ianschmitz pointed out below this opinion actually comes from babel-plugin-transform-typescript.
Quote from Typescript 3.6 release announcement:

APIs to Support --build and --incremental
TypeScript 3.0 introduced support for referencing other projects and building them incrementally using the --build flag. Additionally, TypeScript 3.4 introduced the --incremental flag for saving information about previous compilations to only rebuild certain files. These flags were incredibly useful for structuring projects more flexibly and speeding builds up. Unfortunately, using these flags didn’t work with 3rd party build tools like Gulp and Webpack. TypeScript 3.6 now exposes two sets of APIs to operate on project references and incremental program building.
For creating --incremental builds, users can leverage the createIncrementalProgram and createIncrementalCompilerHost APIs. Users can also re-hydrate old program instances from .tsbuildinfo files generated by this API using the newly exposed readBuilderProgram function, which is only meant to be used as for creating new programs (i.e. you can’t modify the returned instance – it’s only meant to be used for the oldProgram parameter in other create*Program functions).
For leveraging project references, a new createSolutionBuilder function has been exposed, which returns an instance of the new type SolutionBuilder.

With regards to isolatedModules, it's not an opinion of ours, rather a restriction by the tool chain we use (see https://babeljs.io/docs/en/babel-plugin-transform-typescript#typescript-compiler-options).
I'm all for support this, but it needs to be supported by our existing tool chain (webpack, babel, jest, fork-ts-checker-webpack-plugin, etc) via updated configuration or otherwise.

project references + isolatedModules will be possible from typescript 3.7
Lets put aside fork-ts-checker-webpack-plugin [that has an open issue for it] (https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/issues/328)
until then, for typecheck, you can always run it independently, and have the IDE integration.
Other problems and possible workarounds:
CRA use babel and not tsc to build typescript.
Babel/babel-loader don't have the notion of references. it dons't read any value from tsconfig.json
But we don't need it to!
What we need is webpack to pick the .ts files and pass them to babel-loader.
So we need to make
https://github.com/facebook/create-react-app/blob/09cbb89d44773c77b9197e864bbafb80bd853098/packages/react-scripts/config/webpack.config.js#L460-L475
access also TypeScript
package.json.main issue:
If the packages are not indented to be published, its very simple to just set the main field in the package.json to the .ts file
But if the packages are suppose to be also published, A problem can be when there's a package with "main": "index.js" or "main": "dist/index"
While the source is index.ts or src/index.ts
tsc knows to trace back to the original typescript sources, but webpack, without our help, will look for dist/index and will fail.
3 possible workarounds:

Make the main file "main": "src/index" without suffix. and avoiding using dist
Add special field in the package.json, say, "typeScriptSrc": "src/index.ts" and configure webpack to also look for it
Add a webpack plugin with similar resolving logic as tsc has

I've created an example how it can be done:
https://github.com/Bnaya/ts-composite-babel-loader-webpack

Duplicate of https://github.com/facebook/create-react-app/issues/6799

Closing in favor of existing issue.


Cannot find first of type messages

Not sure if I am missing something but I cannot seem to find the output in the stream. The app seems to be doing something though.

There is nothing in the diagnostic events filter. I also searched for "First of" and the only results are logs from our application.
Where could I look to diagnose the problem and/or see the out put of this app?

It looks like you are streaming all new events to the First of Type app. If an event arrives with a message template that has not been seen before it should generate a new event in the log.
You can try generating a log event with a novel message template using seqcli: https://docs.datalust.co/docs/seqcli

It seems there was an incompatibility with our older 5.1 (I think) version of Seq. We updated and First of type works.

@THammond9 that's great. Also 2023.2 is way better.


matchExt doesn't match files in subfolders

Describe the bug
If I do:
        nix-src = nix-filter.lib.filter {
          root = ./.;
        };

I can see all the files, subfolders, files in subfolders, etc, being matched correctly. However, if I do:
        nix-src = nix-filter.lib.filter {
          root = ./.;
          include = with nix-filter.lib;[
             (matchExt "nix")
          ];
        };

I only see the *.nix files in the root folder being matched, none of the files with that extension in subfolders is matched at all.
To Reproduce
See above.
Expected behavior
Files with the specified extension in subfolders that would be matched otherwise should be matched too.
System information
Using commit 825abbb40ed6b1e5e5fce95e2c21a1f5881ecf61
Additional context
N/A

As soon as one include is being defined, the filter will only allow those. To also add directories, add isDirectory to the list.

So if you have the files:

flake.nix
folder/some.nix
folder/something_else.txt
folder/....
...

There is no way to just include all nix files ignoring the rest?

This project depends on the nix builtins.path, which doesn't allow recursing into directories without adding them to the store. So either add them all using isDirectory, or explicitly list all the directories you want to have added.
    nix-src = nix-filter.lib.filter {
      root = ./.;
      include = with nix-filter.lib;[
         isDirectory
         (matchExt "nix")
      ];
    };

ok, thanks for the help. Does this change with #27? Might also be worth adding as an example in the README.md as requiring the isDirectory is a bit counterintuitive (or maybe rename/alias as Recursive?).
Thanks again :)

#27 makes one use-case a bit better: if you list ./foo/bar.txt as an include, it automatically adds the ./foo directory. Before you had to explicitly target both.


Bad evaluation results.

Hi,
Thank you for your great efforts in building such a foundation MDE model. I downloaded the ViT-L model and conducted evaluations on the NYU test set. However, the evaluation result I obtained shows an AbsRel of 0.098, which is significantly different from the reported 0.045 in the paper. Could you please provide the corresponding evaluation code?
Thank you for your assistance.

I also encountered the same problem. The AbsRel on NYUD does not match the paper，but can match the Marigold's result with the same evaluation code.

https://github.com/DepthAnything/Depth-Anything-V2/issues/88


CLI Guidelines: Arguments and Flags

Arguments (patterns and descriptions)
Flags (patterns and descriptions)
List common flags in used in CLI (--yes, --output-file, --output etc)
Default values

See https://clig.dev/#arguments-and-flags for inspiration

This seems out of place. We should probably create some epic/general issue with context or add context to each issue created.
We need to triage it as well

There is a milestone: https://github.com/redhat-developer/app-services-cli/milestone/8
The idea of having multiple issues was to allow multiple people to work on the different sections.

Perfect. I have updated issue to explain things better. Feel free to copy it over.


Bump deps including rustls

This fixes CVE-2024-32650:
https://nvd.nist.gov/vuln/detail/CVE-2024-32650

Thank you for this pr.


Enable/disable with hotkey

Ref: Conversation #5392 / Drtimjames

(Note there is already an AppleScript interface which can be bound to a hotkey using Automator)


Reconsider default LZMA dependency without any option to avoid it

Issue
The PR #139 introduced in v0.9.0 make LZMA (rust-lzma or lzma-rs) a mandatory dependency.
This forces all users to install the external library liblzma to be able to compile Lindera.
In comparison, the v0.8.1 needs only to add lindera in the project's cargo.toml.
Context
In Meilisearch we plan to use Lindera to tokenize Japanese texts, but we don't want to ask our users to install external libraries manually, in order to keep Meilisearch easy to install and easy to use.
Potential solutions

reconsider #139
choose a compression library that doesn't need a manually installed library (vendoring or rust library)

flate2
snap
brotli ? (🤷)

provide a feature flag to choose the compression method

Thanks for maintaining Lindera 😊

@ManyTheFish Thank you for your comment.
It's certainly better to provide a feature flag.
Please wait a bit while I fix it.

@ManyTheFish
I added a feature flag for a compressing dictionary. By default, no dictionary compression is performed.
https://github.com/lindera-morphology/lindera/pull/142
Thanks for your advice! :smile:

Thank you @mosuka, I will try it today.


Update broccoli-jshint to 1.1.0

1.1.0 should be allowed with the current release, are you having an issue with it?

Yes it does! My fault. Close.

Awesome, glad you got it working!


Epic: Extract OpenRewrite parser

What needs to be done
The parsing logic to create the OpenRewrite AST from given resources should be extracted.
The currently used MavenProjectParser should then be replaced by this component.
Why it needs to be done
Parsing a given project to OpenRewrite AST is a mandatory step to apply OpenRewrite recipes.
Currently, two open-sourced build tool plugins exist that allow applying recipes inside a build.
Providing a parser that creates the AST outside of a build tool plugin is required for other projects too.
Extracting the parser allows reusing this component in these projects.

[x] #832

[x] Adhere to .mvn/maven.config (MavenConfigFileParserTest)
[ ] Adhere to ~/.m2/settings-security.xml and ~/.m2/settings.xml
[ ] Publish parsing events registered through the ExecutionContext as Spring application events

[ ] #855
[ ] #849
[x] #856
[ ] All markers should be added exactly as if the project would have been parsed with the build tool plugins
[ ] The ExecutionContext should be made available as scoped bean, reusing #792 and #800
[ ] All Java versions supported by OpenRewrite must be supported (https://github.com/spring-projects-experimental/spring-boot-migrator/issues/837)
[ ] The component should be configurable through Spring properties

[ ] A rewrite.yaml should read and the settings should be taken

[ ] Exception handling should be configurable

[ ] When to throw and when to log
[ ] how to communicate exceptions (print in resource, collect, ...)

[ ] Build information (ordered list of build files, dependencies for modules, and other) can be provided
[ ] Accept OpenRewrite styles
[ ] Allow different pom and artifact caches
[ ] #78

Acceptance Criteria
/info panel
Given precondition
When action
Then result
Additional Information

@fabapp2 any idea when the support for custom maven settings.xml support would be added ? Adhere to ~/.m2/settings-security.xml and ~/.m2/settings.xml

Hi @shresthaujjwal
it should be working with the current parser used in isolation when using RewriteMavenProjectParser which replicates works as with the rewrite-maven-plugin.
It needs to be incorporated into the RewriteProjectParser and can be taken fron here. I will find or create an issue for this.


Warn when EFCore and Design don't match

We decided this isn't any different than other packages that have misaligned versions. Ideally, this will be solved more generally by something like "line-ups" on NuGet.

Re-opening. The story has changed with the introduction of global tools, and we should reconsider.


java.lang.IllegalStateException: The body is not set. Did handling complete with success? Is a custom "writeHandler" configured?

exception like this( java.lang.IllegalStateException: The body is not set. Did handling complete with success? Is a custom "writeHandler" configured?) throws when i use ModifyResponseBodyGatewayFilter, how dose it cause?

Can you provide a complete, minimal, verifiable sample that reproduces the problem?  It should be available as a GitHub (or similar) project or attached to this issue as a zip file.

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.


Use ms in DateUtil#msToRelativeTime instead of seconds

Previously the method msToRelativeTime expected seconds, now it will take milliseconds as its name suggests

Reviewer: @orlandohohmeier


Add current sig list.

Add current sig list.

Several sigs are created and open for public currently, including:

detection
gan
hub
lite
notebook
ocr
serving


Redirect fails with translation plugin

Hello,
Now I want to use mkdocs-redirects to redirect from a old layout to a new docs layout including subfolders and translated pages using https://github.com/ultrabug/mkdocs-static-i18n
But I have a small problem:
Lets assume following redirection:
'old_foo.md': 'bar/foo.en.md'
Normally it should redirect to bar/foo/ but it builds a redirection to bar/foo.en/ and this pages doesn't exist.
Not sure if this can be fixed, since files can be named xx.en but maybe you guys have a solution for me.

I am with the same problem as the one reported here. I am using the mkdocs-static-i18n and I can't get the redirects to work. Any update?

Please provide a mkdocs website source (mkdocs.yml and necessary sources) that exhibits this issue.

@oprypin working on that.

@oprypin here they are:

Repository
mkdocs.yml

Steps to Reproduce

Access the website at https://hhslepicka.github.io/mkdocs-redirect-issue-i18n/
Click on the Old link on the home page.
You will receive a 404 error
Go back into the home page
Click on the New link
It will open the new page properly

As @MAGICCC reported, this plugin ends up generating a old.en folder with the index.html file inside of it (https://github.com/hhslepicka/mkdocs-redirect-issue-i18n/tree/gh-pages).
Also, the page is not generated for the multiple supported languages or even for the language indicated on the redirects area, it just adds it to the root.

I did a quickfix on my end some days after I created the issue.
Basicly a script which will change the index.html in the redirect folders
#/bin/bash
find ./site/ -maxdepth 2 -mindepth 2 -type f -name 'index.html' -not -path './site/de/*' -not -path './site/en/*' | while read f; do
	echo "Fixing redirect '$f'..."
	sed -i -E 's/\.en\/"/\/"/' $f
done

And I am speaking about this repo, https://github.com/mailcow/mailcow-dockerized-docs

It seems that https://github.com/mkdocs/mkdocs-redirects/pull/45 is taking us closer to a solution, but it's still really tough.
Out of these two redirects, the 1st one will start working, but not 2nd:
        "en/old.md": "new.en.md"
        "pt/old.md": "new.pt.md"

Somehow the pt one is not reported to be in the files collection.

@oprypin I appreciate you looking into that. Thank you very much.

The i18n plugin simulates the subsequent builds on the fly modifying the configuration to change the language of the theme and correctly save new.en.md under en/new/index.html. I doubt this is a issue to be dealt with in this plugin.
https://github.com/kamilkrzyskow/i18n/tree/redirects-plugin-support I made changes to the other plugin, didn't create a PR yet, but it's been working OK for the past few days.

Just ran into this issue. Is there as solution/workaround to this?

Hi @eXpl0it3r,
you can adjust the patch hook we're using in GMC:
https://github.com/Gothic-Modding-Community/gmc/blob/674ee2bac41a0d71b15ffc7744b66e928c1bdd22/overrides/.hooks/all_plugin_patch.py#L157
Note that we're generating redirects based on Git with another hook, therefore we clear redirects_map between mkdocs serve runs, looking at the code now, I would make more changes to optimize it, but it worked last time I checked a few months back :v:


Callback from archive service fails

Archive service callbacks are failing currently, e.g.
{"description": "Callback failed for: 9f03d442-58b7-4021-872e-d84bbefd01eb (Connection failed.)"
Very probably caused by ingress filtering on the LB

There is only one issue left - the archive service should accept the 204 - no content status code from Goobi

The archive service now accepts 204 status codes


@FieldNameConstants should be processed before @ToString and @EqualsAndHashCode

I would like to annotate one of my fields with @FieldNameConstants to write
@ToString(exclude = Type.FIELD_NAME)
@EqualsAndHashCode(exclude = Type.FIELD_NAME)
on my class declaration. Hope that's possible
Thanks!

Duplicate of https://github.com/rzwitserloot/lombok/issues/1791


error: file not found for module

Version of VSCode: 1.10.2
Version of the extension: 0.3.10
OS: macOS / Linux
Description: adding a whitespace & save src/main.rs to trigger rustfmt gives error, while "cargo check" sees no error. I dont see this behaviour with other files in the project than src/main.rs
Output of the "Rust logging" channel:
DEBUG: Language Client Manager: start

However, more is shown in the "Rust Language Server" channel:
error: file not found for module `app`
  --> stdin:45:5
   |
45 | mod app;
   |     ^^^
   |
   = help: name the file either app.rs or app/mod.rs inside the directory ""

[Error - 10:09:38 PM] Request textDocument/formatting failed.
  Message: Reformat failed to complete successfully
  Code: -32601

I originally reported this issue in the rls project here, but they tell me their reference plugin doesn't exhibit this behaviour, so I'm re-submitting the issue here.
--
Hello, I am seeing an issue from rls, using the vscode-rust plugin.
I reproduced it on Linux and OSX like this:
git clone https://github.com/BurntSushi/ripgrep
cd ripgrep
code .
[navigate to src/main.rs]
[add a whitespace and save, to trigger rls]

gives the following error:
error: file not found for module `app`
  --> stdin:45:5
   |
45 | mod app;
   |     ^^^
   |
   = help: name the file either app.rs or app/mod.rs inside the directory ""

[Error - 6:01:04 PM] Request textDocument/formatting failed.
  Message: Reformat failed to complete successfully
  Code: -32601

there is a file src/app.rs in the project.
the code compiles correctly using "cargo build".
Intellisense and code navigation appears to work in the other files, this just seems to happen while in src/main.rs
Using rls from git of today (91a4b57), set up like this:
git clone https://github.com/rust-lang-nursery/rls.git
cd rls
rustup update
rustup default nightly
cargo install
# on linux:
export LD_LIBRARY_PATH="$HOME/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib"
export RLS_ROOT="$HOME/dev/rs/rls"

rustup component add rust-analysis

and added the following vscode-rust configuration:
    "editor.formatOnSave": true,
    "rust.rls": {
        "executable": "rustup",
        "args": [
            "run",
            "nightly",
            "rls"
        ]
    },

I am looking at this issue.

I gave this another shot today, rebuilt rls from git master and updated rustup. The issue appears to have disappeared!
@KalitaAlexey Could you reproduce it?
Also I think I forgot to mention i used the vscode-rust version as published in vscode extensions, did not compile this project manually. I see there's been some activity since the last release, possible to tag a new point release?

Hm, actually I see it again. Will try to build this extension from source to rule out if recent commits have resolved it.
I think the stdin:45:5 in the original post is a hint. If rls gets piped raw text without context, of course it cannot know about the other modules referenced.

Struggling to compile...
$ npm install -dev
$ node ./node_modules/typescript/bin/tsc -p .
$ node ./node_modules/vscode/bin/install
Error installing vscode.d.ts: Missing VSCode engine declaration in package.json.

Not exactly sure how to use all these gulps and npms and typescripts in this particular project.

@martinlindhe,
Basically it is enough to run:
npm install
vsce package

@martinlindhe,
I am closing this issue since there was no any response for a long time.
If you are still experiencing this issue, please open this issue again and details which we discussed.

I abandoned use of vscode-rust for the time being because of this issue. Am currently trying out https://github.com/jonathandturner/rls_vscode which is working better, but lacks some other features such as rustfmt. Thanks for your time

@martinlindhe,
Could you try it again because at some point this extension will be the main one.

I have similar issue with RLS mode also..
Version of VSCode: 1.11.2
Version of the extension: 0.3.11
OS: macOS (10.12.4)
rls.toml
build_lib = true
unstable_features = true

Description:
src/shape.rs exists but get following error when formating src/lib.rs.
while formatting modules(e.g. shape.rs) is fine.
error: file not found for module `shape`
 --> stdin:5:9
  |
5 | pub mod shape;
  |         ^^^^^
  |
  = help: name the file either shape.rs or shape/mod.rs inside the directory ""

[Error - 11:23:54 PM] Request textDocument/formatting failed.
  Message: Reformat failed to complete successfully
  Code: -32601

I, too, am seeing this issue. The modules that I'm getting an error for are present and I can build my code successfully.
VS Code 1.11.2
vscode-rust 0.3.11
macOS 10.12.4
# rls.toml
unstable_features = true

// db/mod.rs
use std::env;

use diesel::pg::PgConnection;
use r2d2;
use r2d2_diesel::ConnectionManager;

pub type Pool = r2d2::Pool<ConnectionManager<PgConnection>>;

pub fn init_pool() -> Pool {
    let database_url = env::var("DATABASE_URL").expect("environment variable DATABASE_URL must be set");
    let config = r2d2::Config::default();
    let manager = ConnectionManager::<PgConnection>::new(database_url);
    r2d2::Pool::new(config, manager).expect("unable to create database pool")
}

pub mod schema;
pub mod model;

error: file not found for module `schema`
  --> stdin:16:9
   |
16 | pub mod schema;
   |         ^^^^^^
   |
   = help: name the file either schema.rs or schema/mod.rs inside the directory ""

[Error - 12:04:56 PM] Request textDocument/formatting failed.
  Message: Reformat failed to complete successfully
  Code: -32601

@sethlopezme, What OS?

@KalitaAlexey macOS 10.12.4

I am downloading Ubuntu ISO.
I will try this on Linux.
If I the problem didn't occur on Linux, I suppose someone who has Linux would have to do it himself.
Anyway @sethlopezme,
Could you try rls_vscode and say if no problem there.

@KalitaAlexey I ran rls_vscode and I didn't see any errors in the debug console. I haven't run rls_vscode before but I assume that's where I would look for errors. Let me know if I need to look elsewhere for them.

@sethlopezme,
vscode-rust and rls_vscode differently start RLS.
I will implement starting as rls_vscode does.

I actually had difficulty with rls_vscode. I have RLS installed through rustup, but the only way I could get it to work with rls_vscode was to pull the RLS source down and set the RLS_ROOT environment variable.

Why couldn't you start RLS from rustup?

Well, for a very good reason.  It all makes sense now, ha.

@sethlopezme,
Will you test a code from a branch which I will tell you?

The branch is spawn-rls-how-rls-vscode-does
I want you to try it out.
If your problem fixed, I would commit it.
I really hope it will be fixed.

Is there anything specific that I need to do? I pulled the repo down, checked out the spawn-rls-how-rls-vscode-does branch and ran it with Debug, but it didn't look like anything was happening. I tried this both with and without RLS running beforehand.

@sethlopezme,
You should run either extension and try to cause your problem.

I guess what I'm asking is if there is anything specific that I need to do to get RLS working on the spawn-rls-how-rls-vscode-does branch. When I tried to use the plugin from that branch, RLS did not appear to start, so I then tried running the plugin with RLS running from the command line, but the plugin still didn't do anything for me - no RLS analysis status in the status bar, no code completion, etc.

It strange.
It should work.
Could you provide the Output Channel log?

Ah, here we go. My apologies - the first time I tried running the extension, I had forgotten to run npm install beforehand. With that being said, I do get an error when trying to run the extension with Debug.
In the Debug Console tab of the main VS Code window, I saw this:
Activating extension `kalitaalexey.vscode-rust` failed: Cannot find module '/Users/sethlopez/personal/vscode-rust/out/src/extension'.
Activating extension `kalitaalexey.vscode-rust` failed:  Cannot find module '/Users/sethlopez/personal/vscode-rust/out/src/extension'
Here is the error stack:  Error: Cannot find module '/Users/sethlopez/personal/vscode-rust/out/src/extension'
    at Function.Module._resolveFilename (module.js:455:15)
    at Function.Module._load (module.js:403:25)
    at Function.U.J.i._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:4:374834)
    at Module.require (module.js:483:17)
    at require (internal/module.js:20:19)
    at Function.s [as __$__nodeRequire] (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js:4:25882)
    at d (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:4:375989)
    at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:4:380927
    at then (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:4:54659)
    at t._doActualActivateExtension (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:4:380887)

In the Output tab of the main VS Code window, I saw this:
11:18:20 AM - File change detected. Starting incremental compilation...
src/components/language_client/manager.ts(30,13): error TS2345: Argument of type 'string[] | undefined' is not assignable to parameter of type 'string[]'.
  Type 'undefined' is not assignable to type 'string[]'.
11:18:20 AM - Compilation complete. Watching for file changes.

@sethlopezme,
Pull this branch and try again.
I have no idea how it worked for me)

@KalitaAlexey Ah, that allowed the plugin to function for me. I still experienced an issue, though. It found my rustup install, but it says that I don't have RLS installed (I do, through rustup).

@sethlopezme,
It showed that it couldn't see RLS
You configured it using rust.rls.
You tried to cause the problem.
The problem happened.
Is that right?
Please try rls_vscode.

I have no idea then.

I have rustup installed, and I have RLS installed as a rustup component (I followed the RLS instructions).
Here is my configuration for the extension:
    "rust.rls": {
        "executable": "rustup",
        "args": [
            "run",
            "nightly",
            "rls"
        ]
    },

When running the latest release of vscode-rust, RLS starts and works just fine, minus the problem where the extension cannot find modules as detailed in comments above.
When running the spawn-rls-how-rls-vscode-does, the extension starts up find and it detects that I have rustup installed, but it does not start RLS. I get the following notification:

When I select "Install RLS", I get the following notification:

When I select "Update" (which I shouldn't need to do because rustup is already up-to-date), I get the following notification:

I checked the Output tab and it's totally empty. Here is what I see in the devtools console:
//Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/electron-browser/workbench.main.js:28 RLS has not been installed. Check the output channel "Rust Logging" e.doShow @ //Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/electron-browser/workbench.main.js:28

I think once the above problem is fixed and I can get RLS running with the extension, I can tell you whether or not the "file not found for module" issue is still happening.

I think this is an RLS issue. I was just able to reproduce it in rls_vscode.

You should open an issue in RLS's repository.


Little improvements

This PR adds several little improvements that I came across when attempting to run H4C sims on ILIFU:

Removes some redundant conversion functions (lm stuff)
Adds some wiggle room in checking if a beam covers the full sky (basically, it was ensuring that the maximum az was greater than 2pi - delta_az, but floating point errors sometimes means it doesn't quite make this criterion but still effectively covers the sky).
If the beam covers the sky but only goes to 2pi-delta_az instead of all the way to 2pi, instead of raising a warning it just puts az=0 at az=2pi.
Makes the check on infs/nans in A_s both faster and optional. Turns out that taking a sum then checking if its nan/inf is faster than doing np.any(np.isinf()). Also, now it only checks this the first time the beam is interpolated, and trusts that the rest is fine if it works the first time. This is not quite comprehensive, but is probably better than actually checking every time.

Thanks @piyanatk: I added a check for the discontinuity (which is also tested).
Thanks @r-pascua: the docs have been updated.
If tests pass, I'll merge!


bigPlayButton slot should replace border

When the bigPlayButton slot is used, the border is still visible

Will ve in v1.0.6


Would prefer MSAA over Deferred Shading

Hello, anyone agree? Why not have r_msaa turn off r_light_dynamic automatically, and vice versa?

good idea

Thanks. And if for instance a cfg set both on (r_msaa 16; r_light dynamic 1 for example), they would both be turned off.

Thanks. And if for instance a cfg set both on (r_msaa 16; r_light dynamic 1 for example), they would both be turned off.

Forgot to mention that the traditional MSAA technique won't work with deferred shading, that's why I introduced FXAA into renderer


feat: Support if- and while- let chains

Closes #11320.
Requires rust-analyzer/ungrammar#45 (still need to upgrade ungrammar after).

@Veykril What with this?

Will take a look at this once I get time as this is a larger PR to review

Fine 😃 I just wanted to make sure this wasn't forgotten.

Thanks!
bors r+


New sample script: Insert pictures in a SharePoint Document Library into a Word document

Adds new sample script to Insert pictures in a SharePoint Document Library into a Word document . Closes #1653

Coverage remained the same at 100.0% when pulling ee1dcd68f70363cdd518452e287b10ac18d0d75c on sprider:sample-insert-pictures-into-word into e6dffa4b72b7b4938881b0cf3174e4cc315220ab on pnp:master.

Merged manually. Thank you! 👍


FileTree skips files which names start with dot

gradle 3.3
it affects delete task and so these files never being deleted
Maybe it makes some sense on unix, where they have a convention that this files kinda hidden
But definitely not on windows

These are the default excludes we took over from Ant, you can overwrite them, e.g. specify an empty set of exludes.

Nevermind, I got it

No, I actually could not make it work. Pls help

Please see the user guide in file trees.


optimize forward_like and related meta functions

For reference:

https://eel.is/c++draft/forward#lib:forward_like
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2445r1.pdf
libstdc++ implementation of std::forward_like
Regarding compiler optimization: https://github.com/llvm/llvm-project/issues/101614#issuecomment-2266070483

𝙎𝙪𝙥𝙚𝙧 𝙏𝙝𝙖𝙣𝙠𝙨


Improve typings in project

We should improve typings in whole project to improve DX:

[x] improve generic types in AbstractGenerator, AbstractRenderer - https://github.com/asyncapi/generator-model-sdk/pull/60
[ ] improve generic types in presets: CommonPresets... and in Preset abstract interface to include typings for options for given preset.

@magicmatatjahu I am assuming this is still relevant?

We also have a problem with CommonModel sharing types with JSON Schema, such as for example type.
From the perspective of CommonModel types should ONLY be an array if length > 1, otherwise it will be a simple type. This restriction is not present in the Schema class. I think we have to remove the sharing of properties completely from the Schema class.
Thoughts @magicmatatjahu ?

This restriction is not present in the Schema class.

Schema extends the CommonSchema where type have signature type?: string | string[];
Probably I don't understand the problem.

When a Schema is interpreted, the type are string if it is a simple type, and string[] if it is multiple types (union types). This restriction of the types are not easy to document and from the generator's perspective hard to know about.

@jonaslagoni I'm not on the topic, is this issue still relevant?

#365 should address the issue, closing.


[WIP] Taylor series approximation of exp.

This is a Taylor series approximation of e^x. It can be dropped into the Relay frontend easily since we can generate the component with the Python AST. It doesn't need a lookup table, so allowing it to work with any width is a bit simpler.
*Re-based off the fp_mult_pipe PR.

Update: Accuracy fixed! I accidentally deleted the addition of the first degree (the value x itself). Looks good now.

Accuracy dwindles off when as value of x increases. My initial guess is because of the bits lost in the fp_mult_pipes. I think I can fix this by instead using the e^{int_value} * e^{frac_value} trick.

Accuracy dwindles off as value of x increases. My initial guess is because of the bits lost in the fp_mult_pipes. I think I can fix this by instead using the e^{int_value} * exp(frac_value).

Accuracy dwindles off as value of x increases. My initial guess is because of the bits lost in the fp_mult_pipes. I think I can fix this by instead using the e^{int_value} * exp(frac_value).

This worked.

Should we add documentation for this somewhere? Maybe a quick note somewhere in the “tools” section?

Should we add documentation for this somewhere? Maybe a quick note somewhere in the “tools” section?

Docs added.

Cool, merge it!

Super clever. This is obviously more convenient than generating the lookup table, even if it might come at an overall latency cost for come precisions.

Super clever. This is obviously more convenient than generating the lookup table, even if it might come at an overall latency cost for come precisions.

Precisely. This isn't exactly a speed demon, but it can easily be dropped into another program with ease and produces a much more accurate result than my first attempt with a table.


feat: experimenting with automated release post to Mastodon

see title

Summary by CodeRabbit

New Features

Introduced an automated workflow to post updates to Mastodon when a pull request is merged into the main branch.

@johanneskoester care to take a look? I am not particularly pleased with the curl command, for Mastodon will not parse Markdown text. It would be better to post a very brief gist along with a link.


Code Inspection: npm audit on atomist/t29e48p34/npm-project-deps/master

handlebars:<4.3.0

(error) Prototype Pollution Upgrade to version 4.3.0 or later.

handlebars:4.2.0:

@atomist/sdm-pack-aspect>express-handlebars>handlebars

[atomist:code-inspection:atomist/t29e48p34/npm-project-deps/master=@atomist/atomist-sdm]

Issue closed because branch atomist/t29e48p34/npm-project-deps/master was deleted.


Mix few imports to verify isort build action

Issue #, if available: n/a
Description of changes: this PR is not intended to be merged. It  just verifies that isort build action works.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Codecov Report

Merging #397 (8a23500) into main (559f519) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #397   +/-   ##
=======================================
  Coverage   89.01%   89.01%
=======================================
  Files         128      128
  Lines        4243     4243
  Branches      609      609
=======================================
  Hits         3777     3777
  Misses        369      369
  Partials       97       97

Impacted Files
Coverage Δ

...yesian_optimization/acquisitions/entropy_search.py
85.92% <100.00%> (ø)

Continue to review full report at Codecov.

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

Builds failed as expected, closing


[Bug]: button is space consuming during hover on Login Page 🪲

Description

The Login with Google  Button found on Login Page is consuming extra space during hover, So it affects other components during hover.

Expected Behavior

The button should not consume extra space with border, it does not want to affect other elements during hover.

Show us the trouble with screenshots
https://github.com/OSCode-Community/OSCodeCommunitySite/assets/92252895/432badb0-6ab7-436f-aa41-464109c39257
Which browsers are affected?
Firefox
Which OS are affected?
linux
Enter the version of your web browser
114.54
Device?
Desktop
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSoC'23 contributor
[X] I want to work on this issue

Hey there @Vaishnavi-Patil2211 👋🏻
Please make sure to assign this issue to me and merge the below linked PR 👇🏻
Thank you!


Connection error without HDMI

I'm running raspotify on a fresh install raspberry pi b with raspbian lite. If I've connected a monitor during boot with HDMI everything is running fine and music playing through the audio jack. I can switch songs, volume, etc. without any issues seamlessly. But once I boot without any Monitor plugged nothing is working. I see my pi in Spotify and can connect, but no music is playing through the audio jack. Furthermore, and this is where things confuse me if I try to switch a song or change the volume it disconnects from Spotify. Which doesn't happen when I booted with HDMI connected. Oddly enough if I boot with HDMI and remove it after booting is completed everything just works fine.

Raspberry Pi 4?
This thread comment may help? It appears as though the 2 HDMI ports and the analog output are the same card as far as the Pi 4 is concerned just separate devices with the analog output having several subdevices for whatever reason.
The comment mentions adding this to /boot/cmdline.txt to "split" the cards apart:
snd_bcm2835.enable_headphones=1 snd_bcm2835.enable_hdmi=1 snd_bcm2835.enable_compat_alsa=0

All that being said the analog audio output is complete and absolute garbage by any subjective and objective measure on all Raspberry Pi's. It's made for beeps and boops and that's about it. A $5 generic USB DAC would be a vast improvement and well worth the money and more than likely less hassle. For like $25 you can a HiFiBerry DAC+ Light DAC HAT that would be exponentially better than the analog output and guaranteed to work perfectly.

I'm using a Raspberry Pi 1 Model B, so I guess it's another issue. I might give a USB DAC a try at some point and already have a HiFiBerry at my second raspofity setup on a Pi 3. Still would love to find the source of this issue with the audio jack.

snd_bcm2835 is used by all raspberry pi versions. You can check to see if the module is loaded with:
lsmod | grep snd_bcm2835

The module is loaded and the sound output of speaker-test per example works. It seems to be an issue with raspotify.

Ok I found the solution: adding OPTIONS="--device hw:0" solved the issue. Somehow when no HDMI is plugged in aplay treats the audio-jack as device number 0, while in alsamixer and alsa.conf it is device number 1.

Ok I found the solution: adding OPTIONS="--device hw:0" solved the issue. Somehow when no HDMI is plugged in aplay treats the audio-jack as device number 0, while in alsamixer and alsa.conf it is device number 1.

hw:0 is shorthand for hw:0,0,-1 which is shorthand for card 0, device, 0, subdevice -1.
https://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html#pcm_plugins_hw
By device do you mean card or do you actually mean device? Card, device and subdevice numbers don't change after boot. Cards associated to the card numbers can disappear if things are physically unplugged or their drivers are forcibly unloaded but they're not going to shuffle.
You want to just use aplay -l (lowercase L) and actually set the device number to the analog output. Because what you're doing now is basically saying "OK, I'll take the 1st device on card 0, I'm not sure what that is but I'll take it."


Add support for spilt event processor

Description
Adds split event processor as described in #4089
Issues Resolved
Resolves #4089
Check List

[ X] New functionality includes testing.
[ ] New functionality has a documentation issue. Please link to it in this PR.

[ ] New functionality has javadoc added

[X ] Commits are signed with a real name per the DCO

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

@srikanthjg please resolve the conflicts, then we can merge the PR


Please update paypal SDK to latest version

Right now we cant getToken on success payment as this function not available in old paypal SDK.
Can you please update it?
Thanks :)

Same problem, please ans

Same problem, please ans

Don't use this as author said its deprecated. Find alternatives or fork and do tweaks as per your need.

I think this package is deprecated as author mentioned.

I will update i this weekend when i get some free time


[feature request] the  definition of NodePool and UnitedDeployment

What would you like to be added:
In the edge scenario, compute nodes have strong regional attributes. There may only be one WOker node in the same physical location, and there may also be multiple worker nodes in the same physical location. Therefore, from the work Node resource perspective of edge nodes, they need to be divided into different node pools (NodePool) to represent the same set of features. After dividing nodes pool, there will be a demand for application of grouping management, users need to be deployed application according to the unit, combined with the concept of node pool, to deploy applications on different nodes in the pool, pool dimensions at the nodes to expansion of application, upgrade, such as operation, at the same time, network access is also carried out in accordance with the node pool dimensions of network communication.
Why is this needed:
So we define NodePool and UnitedDeployment for both scenarios using Kubernetes CRD as the abstract
NodePool:
Nodes can be added and removed from the node pool.
Nodes within the node pool can be managed uniformly, such as label, annotation, and taints.
UnitedDeployment:
UnitedDeployment can use one of k8s Deployment, Daemonset, StatefulSet as a template for Deployment in a different node pool. At the same time, you can set the number of POD replicas deployed by different node pools
ref #124
cc @huangyuqi @Fei-Guo @rambohe-ch @charleszheng44

Sounds great. Looking forward to them. By the way, is this a feature request? This should be proposal since you already implement them! :)

Sounds great. Looking forward to them. By the way, is this a feature request? This should be proposal since you already implement them! :)

ok @Fei-Guo  ref #173

Looking forward for the NodePool feature!
By the way please also consider the follow scenario if possible in the future:
Requirement:
Workload(eg service) deployed on a node pool, it has basic HA requirement (let's put the shared storage issue aside first, just assume the service is stateless to make it simple), which mean when one node in the node pool failed, the workload can be automatically migrate to other healthy nodes.
Scenario:
Node pool lost connection with API server.
Expectation:
The auto migration should still works.

@kadisi would you please clarify, in your mind, what's the relationship between Yurt unit and the proposed NodePool? I could be wrong, but I have an impression they are interchangeable in terms of grouping nodes in a geolocation?

In order to understand the feature clearly, please allow me to summarize the requirements of NodePools according to the above comments which are followed by my questions.
I will be appreciated if someone can correct the summary and answer my questions. :)
Requirement:

A bunch of nodes with the same attributes/features on the Edge side should be united into a group (NodePool) to be managed as a unit.
Q1: What are the criteria to create a group(NodePool)? It is done automatically or manually? if manually who is in charge of it?
Q2: Does every Edge node belong to a specific group(NodePool)?

From Edge Computing work node resources perspective, the group(NodePool) should be used to represent the same set of attributes
Q1: Could we have a more detailed description of the work node resource as well as the same set of attributes/features? How to represent the attributes? It is great if an example can be provided.

Workload(Application) grouping management:  Edge computing workloads should be managed according to the group(NodePool)
Q1: I think we need a more detailed description of what is " workload group management" and what are the sub-features of workload group management.  I list some below.

3.1 Workloads should be deployed in the scope of the nodes for the picked group(NodePool)
Q1: How to scheduler the workload to the Node of a specific group(NodePool), it is handled only by the scheduler on the control panel?
3.2 ReplicaSet is supported on the group(Nodepool)
Q1: How to handle Replicaset in the autonomous mode
3.2 Autoscale, A/B testing can be implemented in the scope of the nodes for the picked group(NodePool).
3.3 Migrate workload to the healthy nodes within the group(NodePool). From @yixingjia

Network Mode of the Group(NodePool)
Q1 Could we clarify the detail about "network access is also carried out in accordance with the node pool dimensions of network communication."
Can I call the feature as Group(Nodepool) Network Mode? It should be a very important concept in the scenario where Edge data must be limited within the Group(NodePool).

Other Suggestion

We might need to find a better name than "NodePool".
according to wiki "Pool" in computing science means "a collection of resources that are kept ready to use, rather than acquired on use and released afterwards. " like "memory pool" and "thread pool". It looks like the nodes group has a lot of more means.

I feel to some degree, it is something like a "sub-cluster". maybe we can just call it "EdgeCluster". Or if you think "Cluster" is abused, "Bunch" is another option, since "Bunch" means a small "Cluster".
According to Cambridge Dictionary It means a number of things of the same type fastened together or in a close group.

Looking forward for the NodePool feature!
By the way please also consider the follow scenario if possible in the future:
Requirement:
Workload(eg service) deployed on a node pool, it has basic HA requirement (let's put the shared storage issue aside first, just assume the service is stateless to make it simple), which mean when one node in the node pool failed, the workload can be automatically migrate to other healthy nodes.
Scenario:
Node pool lost connection with API server.
Expectation:
The auto migration should still works.

@yixingjia thanks for your advice。 This requires a simple scheduler in the NodePool that can do some simple scheduling when the entire NodePool is disconnected from the Apiserver.

@kadisi would you please clarify, in your mind, what's the relationship between Yurt unit and the proposed NodePool? I could be wrong, but I have an impression they are interchangeable in terms of grouping nodes in a geolocation?

@ttzeng sorry, I did not understand what you mean. Can you explain in detail？

Requirement Summary:

A bunch of nodes with the same attributes/features on the Edge side should be united into a group (NodePool) to be managed as a unit.
Q1: What are the criteria to create a group(NodePool)? It is done automatically or manually? if manually who is in charge of it?
Q2: Does every Edge node belong to a specific group(NodePool)?

A1:  Users can create node pools based on some commonalities of Node, not just limited to geographical distribution
A2: The user needs to manually create the node pool according to the actual scenario. The node pool is a CRD definition in k8s
A3: A node may not belong to any node pool

Workload(Application) grouping management:  Edge computing workloads should be managed according to the group(NodePool)
Q1: I think we need a more detailed description of what is " workload group management" and what are the sub-features of workload group management.  I list some below.
3.1. Workloads should be deployed in the scope of the nodes for the picked group(NodePool)
Q1: How to scheduler the workload to the Node of a specific group(NodePool), it is handled only by the scheduler on the control panel?

A1: We will define a UnitedDeployment k8s crd  to describe the workload. UnitedDeployment will define a template (such as k8s deployment), and also define a topology, which represents the NodePools to which the pod is deployed using this template. The controller will create a child k8s deployment according to each NodePool, and each child's deploymnet is responsible for deploying its own pod to the corresponding NodePool

3.3.  Autoscale, A/B testing can be implemented in the scope of the nodes for the picked group(NodePool).

Network Mode of the Group(NodePool)
Q1 Could we clarify the detail about "network access is also carried out in accordance with the node pool dimensions of network communication."
Can I call the feature as Group(Nodepool) Network Mode? It should be a very important concept in the scenario where Edge data must be constrained within the Group(NodePool).

A: ref https://kubernetes.io/docs/concepts/services-networking/service-topology/

Other Suggestion
1. We might need to find a better name than "NodePool".
according to wiki "Pool" in computing science means "a collection of resources that are kept ready to use, rather than acquired on use and released afterward. " like "memory pool" and "thread pool".
It looks like "nodes group" is much more than a resource group. To some degree, it is something like a "sub-cluster".
So maybe we can call it "EdgeCluster". Or if you think "Cluster" is abused, "Bunch" is another option, "Bunch" is a small "Cluster".
According to Cambridge Dictionary "Bunch" means a number of things of the same type fastened together or in a close group. Isn't it good to describe "nodes group"? :)

A:  for sub-cluster and EdgeCluster It is more like a small k8s cluster， I think it’s different from the scene we described。
@Walnux thank you very mush for your advice。

@ttzeng sorry, I did not understand what you mean. Can you explain in detail？

@kadisi , would you please clarify what's the difference between the proposed NodePool and the coming Yurt Unit?

Looking forward for the NodePool feature!
By the way please also consider the follow scenario if possible in the future:
Requirement:
Workload(eg service) deployed on a node pool, it has basic HA requirement (let's put the shared storage issue aside first, just assume the service is stateless to make it simple), which mean when one node in the node pool failed, the workload can be automatically migrate to other healthy nodes.
Scenario:
Node pool lost connection with API server.
Expectation:
The auto migration should still works.

@yixingjia thanks for your advice。 This requires a simple scheduler in the NodePool that can do some simple scheduling when the entire NodePool is disconnected from the Apiserver.

@kadisi It means there will be a scheduler for each NodePool?  The other relevant question is what do we need to change the behavior of the scheduler in the control panel, which will take NodePool as a unit to deploy pods or it still handles all the nodes in the NodePools? Thanks!

Requirement Summary:

A bunch of nodes with the same attributes/features on the Edge side should be united into a group (NodePool) to be managed as a unit.
Q1: What are the criteria to create a group(NodePool)? It is done automatically or manually? if manually who is in charge of it?
Q2: Does every Edge node belong to a specific group(NodePool)?

A1: Users can create node pools based on some commonalities of Node, not just limited to geographical distribution
A2: The user needs to manually create the node pool according to the actual scenario. The node pool is a CRD definition in k8s
A3: A node may not belong to any node pool

Workload(Application) grouping management:  Edge computing workloads should be managed according to the group(NodePool)
Q1: I think we need a more detailed description of what is " workload group management" and what are the sub-features of workload group management.  I list some below.
3.1. Workloads should be deployed in the scope of the nodes for the picked group(NodePool)
Q1: How to scheduler the workload to the Node of a specific group(NodePool), it is handled only by the scheduler on the control panel?

A1: We will define a UnitedDeployment k8s crd to describe the workload. UnitedDeployment will define a template (such as k8s deployment), and also define a topology, which represents the NodePools to which the pod is deployed using this template. The controller will create a child k8s deployment according to each NodePool, and each child's deploymnet is responsible for deploying its own pod to the corresponding NodePool

3.3.  Autoscale, A/B testing can be implemented in the scope of the nodes for the picked group(NodePool).

Network Mode of the Group(NodePool)
Q1 Could we clarify the detail about "network access is also carried out in accordance with the node pool dimensions of network communication."
Can I call the feature as Group(Nodepool) Network Mode? It should be a very important concept in the scenario where Edge data must be constrained within the Group(NodePool).

A: ref https://kubernetes.io/docs/concepts/services-networking/service-topology/

Other Suggestion
1. We might need to find a better name than "NodePool".
according to wiki "Pool" in computing science means "a collection of resources that are kept ready to use, rather than acquired on use and released afterward. " like "memory pool" and "thread pool".
It looks like "nodes group" is much more than a resource group. To some degree, it is something like a "sub-cluster".
So maybe we can call it "EdgeCluster". Or if you think "Cluster" is abused, "Bunch" is another option, "Bunch" is a small "Cluster".
According to Cambridge Dictionary "Bunch" means a number of things of the same type fastened together or in a close group. Isn't it good to describe "nodes group"? :)

A: for sub-cluster and EdgeCluster It is more like a small k8s cluster， I think it’s different from the scene we described。
@Walnux thank you very mush for your advice。

@kadisi very clear answer, thanks! It is great if we can record all these clearfication into a docuement. :)

[ ] add nodepool and uniteddeployment crd proposal
[ ] add yurtunit-manager api
[ ] add yurtunit-manager nodepool controller add webhook
[ ] add yurtunit-manager unitedeployment controller add webhook
[ ] add makefile cmd for yurtunit-manager


Fixed error in LAEA projection

Fixed calculation for LAEA projection, see comments and UnitTests.

Hello @daniel-rck,
Sorry for the late response, but I really appreciate your contribution.
I see you also made quite some refactoring in the codebase of the LAEA projection, so can you point out the error you fixed in the formula, so we can review it more easily?

Hi @mcserep,
also sorry for my late reponse ^^

I did a bunch of abbreviations for parameters (https://github.com/AegisSpatial/aegis-origin/pull/9/files#diff-506624cbd0e889177b62a0076e3cd179da120df3ecf6ceabb49ff15043f57e6dL31), so that the formulas are better readable.
The core bug was here: https://github.com/AegisSpatial/aegis-origin/pull/9/files#diff-506624cbd0e889177b62a0076e3cd179da120df3ecf6ceabb49ff15043f57e6dR268

The formula did miss brackets around (2 * _Rq) so the result c was always wrong.

Hi @daniel-rck,

The formula did miss brackets around (2 * _Rq) so the result c was always wrong.

I finally found the time to go through the specification of the projection and you are indeed correct, the brackets are missing there. Although it is only implied in the specification and on epsg.io the formula seems to be also incorrect as well.

I did a bunch of abbreviations for parameters, so that the formulas are better readable.

Thanks, but I am not sure we will merge this part of the PR. While it makes it more consistent  with the specification, it would mean that this single projection would have a different coding style than the others in the project.
The unit tests which you wrote (thanks for them) are failing for me for some reason, that should be checked and then we can merge this 🚀

I close this PR in favor of #13 to fit the style guides.


Maintenance

update dependencies
fix tests
extend Node version range to test on Travis
do not cache node_modules on Travis

Codecov Report

Merging #211 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##           master   #211   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           2      2
  Lines          86     86
=====================================
  Hits           86     86

Continue to review full report at Codecov.

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


Bump protobuf-java version to 3.25.5 resolve CVE-2024-7254

wasn't able to run tests locally unfortunately :grimacing:
unsure why the license_check maven_artifacts.bzl version is so behind. I see that https://github.com/google/closure-compiler/issues/4168 is still open. Wondering if it's possible to get a maven release out with this CVE fixed at least?

Thanks for the update!


ds18b20 - Undefined Symbol error

DS18b20 sensor was working using UART and this library. But currently it throws an error at the require line.
var ds= require('jsupm_ds18b20')
I've attached screenshot of the error. Any help is appreciated.
Thanks,

I'm working with OP on this project. We had opened up a discussion for this issue in the Intel community here: https://communities.intel.com/thread/108426
Managed to find the issue and a solution for our particular use case. It wasn't an issue with the library, it seems. Hope that helps!

Hi @sanjum89 and @benjaminmathews, glad to hear this was resolved. As I mentioned in the other thread, #497, the undefined symbols would still cause issues if the MRAA/UPM shared libraries are not part of the image you are using. The sources on NPM have been updated to 1.0.2-src, and they include a fix for this.


Delete docs/en/ui/blogic/reference/fck-editor.md

This element is removed in 10.3.9 since its is deprecated and replaced with newer version CKEditor long time ago.

The TOC that includes this file needs to be updated as well.


Add github action for checkstyle

This integrates https://github.com/marketplace/actions/checkstyle-for-java
Hopefully this will safe you guys some time in lint errors.

We already have this check as part of the regular Java workflow
I don't think we need duplicated logic run


[Error Handling] Introducing new error handling method - Result

Pull Request Template
Description
浅谈一下各种语言的Error Handling:

JavaScript的函数特性中, 在JavaScript中, 任何Error都可以在任何地方抛出，而不需要特殊的声明. 意味着每个function都有可能报错.

function mightThrow() {
        throw new Error('I told you this might throw');
}

try {
        mightThrow();
} catch (err) {
        console.log(err);
}

C++中每个函数也都可能throw Exception, 但是可以通过关键字noexcept来标注该函数不会throw. 任何Exception都可以在任何地方抛出，而不需要特殊的声明:

// Deprecated in C++11 (好像是因为性能等诸多原因, 该规范被扔了)
void oldFunction() throw (std::runtime_error) {
    // ...
}

// C++11 and later
void newFunction() noexcept {
    // ...
}

Java提供声明所有的异常方案:

public void riskyMethod() throws IOException, SQLException {
    // some code that might throw IOException or SQLException
}

public static void main(String[] args) {
      try {
            riskyMethod();
      } catch (IOException e) {
            // ...
      } catch (SQLException e) {
            // ...
      }
}

Go直接抛弃了try-catch和throw, 选择提供多返回值方案:

func SomeFunction() (ResultType, error) {
    // ...
    if somethingWrong {
        return nil, errors.New("something went wrong")
    }
    return result, nil
}

func main() {
    result, err := SomeFunction()
    if err != nil {
        // Handle the error
        log.Fatal(err)
    }
    // Continue with result
}

而Rust则采用和Go类似的方案, 但是更进一步, 将Compiler和enum做结合, 提供了Result方案:

use std::fs;

fn read_file(filename: &str) -> Result<String, std::io::Error> {
    fs::read_to_string(filename)
}

match read_file("path_to_file.txt") {
    Ok(content) => println!("File content: {}", content),
    Err(error) => println!("Failed to read file: {}", error),
}

try-catch的痛处

作为client (upper layer) 不知道某个函数会不会报错 -> 在调用的时候, client可能会忘记catch error / 忘记写处理error的代码.
Client能catch到的err不知道是什么类型 -> 在TypeScript中catch到的Error默认是unknown类型 -> 对于部分语言而言, 我们需要手动检查函数会报什么类型的Error/Eception.

旧方案

写Documentation来标记该函数是否会throw. (BAD) Documentation可以out of update.
我们手动检查catch到的Error是什么类型. (BAD) 这意味着需要更多的沟通成本, client可能不清楚函数的内部implementation.

新方案
引进Rust的Result方案.

首先, 我们通过ESLint来禁止使用throw new Error(), 来强行将JavaScript的特性修正成: 每个function默认不会throw.

引进新类型type Result<T, E> = Ok<T> | Err<E>来描述该函数的返回值. 意味着该函数可能会出问题.
利用Flow-Based Type Narrowing + ESLint来强迫用户必须处理Result<T, E>, 消除了client可能忘记处理Result<T, E>的可能性.

附录

为什么Go选择了一个正确的Exceptions的处理思路
From the HackerNews thread relating to "Where Everything Went Wrong: Error Handling and Error Messages in Rust (2020)":

Error handling has been wrong since the beginning, and has continued to be wrong ever since.

First, we had error codes. Except these were wrong because people forget all the time to check them.

Then we had exceptions, which solved the problem of people forgetting to check by crashing the app.

Then the Java team got the bright idea to have checked exceptions, which at first helped to mitigate crashes
from uncaught exception, but caused an explosion in thrown exception signatures, culminating in "catch Throwable".

Back to square one.

Then we got multi-return error objects, maybes, panics, and all sorts of bright ideas that fail to understand the basic premises of errors:

  Any error system that relies upon developer discipline will fail because errors will be missed.

  Any error system that handles all errors the same way will fail because there are some errors we can ignore,
  and some errors we must not ignore. And what's ignorable/retriable to one project is not ignorable/retriable to another.

Attempting to get the complete set of error types that any given call may raise is a fool's errand because of the halting
problem it eventually invokes. Forcing people to provide such a list results in the Java problem for the same reason.

It's a hard problem, which is why no one has solved it yet.

Issue(s) Addressed:

never-throw repo: https://github.com/supermacro/neverthrow#resultmatch-method

Changes
Type of Changes: new feature / breaking change

[ ] Bringing Rust's Result solution to TypeScript. In other words, we will create our own Result enum (or types).
[ ] AsyncResult for asynchronous programming.
[ ] 利用ESLint来:

[ ] 禁止使用throw和try-catch的使用. 强行修正JavaScript的语言特性.
[ ] Forced to consume the Result in one of the following three ways: calling .match, .unwrapOr, and .unwrap (unsafe).

A common problem with using return values to indicate errors is that it is easy to ignore the return value, thus failing to handle the error. With the help of ESLint, which will cause the compiler to issue an error when a Result is ignored. This ensures that we are explicitly handling the error of the Result.

Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

Reviewers Checklist:

[ ] Code follows project guidelines and clean code principles
[ ] Tested on various resolutions and browsers
[ ] Unit tests have been updated or added, if necessary
[ ] Documentation has been updated

来自于neverThrow的一个issue - 讨论能否把?语法从Rust搬到TypeScript中.
我在下面给出了我的回答 - 可以带过来, 但是很丑, 不够elegant, 所以放弃了.

来自于neverThrow的一个issue - 讨论能否把?语法从Rust搬到TypeScript中.
我在下面给出了我的回答 - 可以带过来, 但是很丑, 不够elegant, 所以放弃了.


KAFKA-13094: Session windows do not consider user-specified grace when computing retention time for changelog

https://issues.apache.org/jira/browse/KAFKA-13094
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

@cadonna Could you help to review this PR?  thanks.

Also cc @cadonna for a final review and merge.

@tang7526 Could you wait until #11061 is merged and rebase this PR on 2.8 afterwards to get all unit tests that are important for this PR?

@tang7526 Could you wait until #11061 is merged and rebase this PR on 2.8 afterwards to get all unit tests that are important for this PR?

@cadonna Copy that.

@tang7526 Could you rebase this PR on the latest 2.8 branch.

@tang7526 Could you rebase this PR on the latest 2.8 branch?

@cadonna Done.  I've already rebased this PR on the latest 2.8 branch.


unchecked::utf16to8 reads out of bounds if provided only leading surrogate

In case if provided an array of a form [..., 0xd800u], then utf16to8 will try to read trailing surrogate without even checking if we went outside of the array. This leads the following while (start != end) to never stop until the code tries to read unmapped memory and segfaults.
I know that it's unchecked, but segfaulting on invalid input is a pretty grim failure mode :)

Well, unchecked means exactly that - no checks and segfaults.

Your function is given the start and the end iterators, and your function walks over the end iterator. Sure you can generate whatever output because as you say it's unchecked, but failing to check for end iterator is poor engineering. For example something like wide char strlen wcslen would not go over NULL symbol even if data contains a broken UTF-16 sequence. We're using utfcpp at Unity, so it would be great to be able to use the upstream version, otherwise I'll have to fork and patch it. I can make a PR with a fix if you would like to merge it.

The purpose of the unchecked namespace is to avoid paying price for safety checks if and only if you are 100% sure there is no invalid UTF-8 of any kind. In practice, that means the text you produce one way or another (i.e. string literals or text resources) or text that was checked by something like is_valid() function.
What you are asking for is something between checked and unchecked behavior. Nothing wrong with that - I understand some checks may be more important in some scenarios than others, but I am not penalizing users of unchecked namespace who are using it as it was intended.
If you want to fork utfcpp and make only the checks you  want, that's fine; my suggestion would be to start from the checked version and remove checks you don't care about, rather than adding checks to unchecked functions.

I stumbled upon this as well. For lurkers, I coded a utf8::utf16to8_lenient function that won't crash when going out of bounds, and just stop on first invalid codepoint read.

I've just hit this too, and here are my thoughts...
FYI, my use of utfcpp is very limited. I literally only need to convert to and from utf8, ideally without having to deal with exceptions (it's for a cross-platform SDK), so I haven't gone through the entire API yet to know of any workarounds.

I don't think there is a "is_valid" function to test utf16 (might be wrong). If that's the case, then it's problematic for someone who doesn't want to use any checked function due to the risk of exceptions.
unchecked::utf8to16 doesn't crash given invalid inputs, so I wasn't expecting unchecked::utf16to8 to crash either. The problem seems to be that utf16to8 increments the iterator in two places inside the loop, but only checks against "end" once.

I think a simple check after the is_lead_surrogate (can't be before) would fix this. E.g:
            // Take care of surrogate pairs first
                if (utf8::internal::is_lead_surrogate(cp)) {
                    if (start >= end)
                        return result;

I'm happy to use utfcpp as-is and make any changes I required. These are just my thoughts.


Encryption type SSL for mail throws an error

I have installed Hortusfox via Docker and it runs fine. When I set the encryption type to SSL and I create a user I get the error Unknown encryption type: ssl

If I set the encryption type to TLS and port to 587, this works for me but just wanted to share what I ran into. If it is related to my setup, feel free to close this as not an issue :)

Hi, thanks for your feedback!
Which version do you use?

Hello Daniel,
Apologies I should have mentioned that of course.
HortusFox v2.1
PHP Version: 8.2.0
MySQL Version: 11.2.3-MariaDB-1:11.2.3+maria~ubu2204


Fix ORTModelForSeq2SeqLM test

What does this PR do?
Fix a test that was not passing.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Yup, could be a bug in transformers.
from transformers import pipeline as tf_pipeline
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer

model_id = "hf-internal-testing/tiny-random-t5"

model = AutoModelForSeq2SeqLM.from_pretrained(model_id)
tokenizer = AutoTokenizer.from_pretrained(model_id)

pipe = tf_pipeline("translation_en_to_de", model=model, tokenizer=tokenizer, min_length=len(text) + 1, max_length=2 * len(text) + 1)
outputs = pipe(text)

print(outputs)
print(len(outputs[0]["translation_text"]) > len(text))

## prints
[{'translation_text': ''}]
False

I'll look more into it ASAP.


Support for multiple coverage files in one workspace

I have a repo that has a backend and frontend application. I am generatign coverage reports for both programs. Is there a way to have the gutter watcher know of multiple coverage files and process / display both?

@stealthrabbi Thanks for the ticket!
Yes, the extension can know about multiple coverage files.
You can either use this setting https://github.com/ryanluker/vscode-coverage-gutters/blob/master/package.json#L126-L135
for setting the file names of the coverage reports or you can take "manual" control via https://github.com/ryanluker/vscode-coverage-gutters/blob/master/package.json#L116-L120. Both options support lists, so you can add as many as you want!
Hopefully that helps!

It does, thanks! And, I actually see now that it is actually all working by default, as my coverage files are the default ones in coverage-gutters.coverageFileNames, in my case lcov.info and coverage.xml, so I actually didn't need to change any settings. I'm not sure why I assumed it wasn't working for one of my programs.... maybe I didn't have a coverage file available. but it's all good now. Thanks.


Test for Total Amount

Summary: test for total amount;  resolves #1382;
Acc: baa336bca22c7590256a86c002e4dbe6c1f1c1f6c0a0fd3f0681eecb2cad0787

Tests require Node 13 and above (for localised internationalisation support) -
recommend specifying the minimum node version in package.json

Ah I see, mmmh technically it would be a redundant test case since it’s
already widely supported natively on most browsers according to the spec,
I’d say since we’re not necessarily interfacing with the method, it doesn’t
add much value to check if commas are added (e.g. Europe has the
comma/decimal reversed meaning 1.000 = 1,000
I can add a simple unit test for it but it’s assuming US comma formatting.
I can simplify the PR by doing what you suggested, does that sound good?
On Tue, 23 Feb 2021 at 11:58 AM, Justin Kim<EMAIL_ADDRESS>wrote:

@angle943 commented on this pull request.
In src/components/TotalAmount/index.tsx
https://github.com/thenewboston-developers/Website/pull/1395#discussion_r580754404
:

return (

{title}
{amount.toLocaleString()}

ah i was thinking about just checking for the commas to make it more
readable
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/thenewboston-developers/Website/pull/1395#discussion_r580754404,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAXLQE4MWXQPHYDQPTO36GLTAMRW3ANCNFSM4X7VZWAQ
.

--
.

@denistsoi sorry for not being clear in my other comment!
I was just expecting a test for 1,000 in US locale.
I do like the spirit of what you did there, but I'm going to be removing the other locale tests for the following reasons:

we shouldn't be passing in a prop called locale, as this should be inferred from the browser
we don't need to test for the functionality of toLocaleString(), since that's built into javascript. The test that checks for 1,000 is just there in case someone tries removing the .toLocaleString() thinking it's useless


Added periodic whitebox neutron tempest plugin job

This pr adds a periodic version of whitebox-neutron-tempest-plugin-podified-multinode-edpm-deployment-crc-2comp
rdo third party check job. It will help us to monitor the job and keep it working.
It moves following tests to skiplist due to known issue No valid host and flakiness.

^whitebox_neutron_tempest_plugin.tests.scenario.test_router_flavors
^whitebox_neutron_tempest_plugin.tests.scenario.test_dvr_ovn.OvnDvrTest
^whitebox_neutron_tempest_plugin.tests.scenario.test_multicast.MulticastTestIPv4Common.test_flooding_when_special_groups.
^whitebox_neutron_tempest_plugin.tests.scenario.test_broadcast.BroadcastTestVlanTransparency.test_broadcast_vlan_transparency

Testresults: https://review.rdoproject.org/r/c/testproject/+/54009/13#message-098d12c84a6a2395c89288d8b5399efc426d5a42
periodic-whitebox-neutron-tempest-plugin-podified-multinode-edpm-deployment-crc-2comp https://softwarefactory-project.io/zuul/t/rdoproject.org/build/431e9f62b6e24f6ab0c180515aba4368 : SUCCESS in 2h 39m 20s

/approve

/lgtm


Migrate bot config property SteamOwnerID to SteamUserPermissions

Well my bots stopped to accept commands from me since last update, and I had to replace SteamOwnerID all the way. Would be nice to have like migration check on startup.

ASF will never modify your starting json file - you're responsible for generating/maintaining it.


Testing actions called within redux-sagas

Anyone have any recommendations on how to test if an Actions is successfully called within sagas.
Thanks in advance!
A

+1 #1653


Add publish.sh script to manage shared top-level files

Right now built_json and _generator don't have READMEs or CHANGELOGs listed at pub.dartlang. This new publish.sh script, similar to pageloader's, copies these shared files into the current directory before calling pub publish. What do you think?

Makes sense, thanks.
built_value and enum_class have the same issue. Rather than submit six copies of the script, I could just keep a local copy and run it when I publish them, since right now I'm the only person who publishes these packages.
How does that sound?

Sounds fine to me. Should probably add the scripts once you get a second owner though.

Sounds good. Thanks.
On Wed, 2 Mar 2016 at 15:52 Sam Rawlins<EMAIL_ADDRESS>wrote:

Sounds fine to me. Should probably add the scripts once you get a second
owner though.
—
Reply to this email directly or view it on GitHub
https://github.com/google/built_json.dart/pull/21#issuecomment-191269352
.