Top notifications is truncated

Screenshot:
https://cl.ly/0x1G311y1b1Y
Expecting:
Show full message on mouse over.

VSCode Version: Code 1.16.0 (787b31c0474e6165390b5a5989c9619e3e16f953, 2017-09-06T16:12:42.401Z)
OS Version: Darwin x64 16.7.0
Extensions:

Extension
Author (truncated)
Version

vscode-markdownlint
Dav
0.10.1

autofilename
Jer
0.1.3

vscode-jest
Ort
2.4.1

terminal-tabs
Tyr
0.1.1

vscode-exports-autocomplete
cap
0.5.1

npm-intellisense
chr
1.3.0

vscode-eslint
dba
1.3.2

githistory
don
0.2.3

vscode-babel-coloring
dza
0.0.4

gitlens
eam
5.4.1

tslint
eg2
1.0.9

vscode-npm-script
eg2
0.2.1

prettier-vscode
esb
0.24.0

path-autocomplete
ion
1.6.1

quicktask
lky
3.0.0

vscode-extension-auto-import
mop
1.3.3

debugger-for-chrome
msj
3.3.1

vscode-versionlens
pfl
0.19.1

Ruby
reb
0.15.0

js-jsx-snippets
sky
0.0.5

react-redux-es6-snippets
tim
2.1.0

vscode-react-native
vsm
0.4.2

JavaScriptSnippets
xab
1.5.0

ReactSnippets
xab
1.4.0

local-history
xyz
1.5.2

Steps to Reproduce:

Reproduces without extensions: Yes/No

This issue has already been reported. Please use the search function next time before reporting an issue and/or this time if you are curious about the progress of the issue.

Dear bpasero,
I just use link inside VS Code, which brings me directly here, not to any search form.
If you rely on this scenario, just redirect your request this to person responsible for the report button, not me - I just bringing good to VS Code.
If it's reported then just link it here, in this case I can follow it's for sure.
Regards,
Sergey


update mod_compress and mod_errors config docs

Codecov Report

Merging #301 into develop will increase coverage by 0.01%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop     #301      +/-   ##
===========================================
+ Coverage    52.95%   52.97%   +0.01%
===========================================
  Files          240      240
  Lines        22831    22831
===========================================
+ Hits         12091    12094       +3
+ Misses        9352     9348       -4
- Partials      1388     1389       +1

Impacted Files
Coverage Δ

bfe_spdy/frame_write.go
49.49% <0.00%> (-1.02%)
:arrow_down:

bfe_spdy/frame_read.go
57.35% <0.00%> (-0.76%)
:arrow_down:

bfe_spdy/server_conn.go
78.53% <0.00%> (ø)

bfe_http2/writesched.go
80.91% <0.00%> (+1.52%)
:arrow_up:

bfe_websocket/server_conn.go
76.51% <0.00%> (+3.78%)
: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 3809e45...bb1cfbf. Read the comment docs.


failed to get orch info for request:

Running Commit 2f1eb21130807d665a14a3217e7fb1317f081f0e
Here are some logs.
4 different samples separated by white space
Logs_4.txt

Switched master router serviceUri to Toronto
Router seems to be working fine in the logs so far. Will check back on the test streams shortly.
Maybe LA got blacklisted for too many requests? It was getting bombarded with requests over the last week.
It was working fine for about a week then suddenly dropped all streams.
Logs here:
Toronto v1.txt


Roundtrip test for encoding and decoding images

This goal of this issue is to add tests for both jpeg and png implementation on all platforms, to test that:
decode(encode(image)) ~= image.
This test will require an image-comparison util that is robust to minor changes. One possible approach is to compare histograms as done in PIL: https://github.com/python-pillow/Pillow/blob/affa059e959280bf7826ec1a023a64cb8f111b6d/Tests/helper.py#L110-L134
This test is not as robust as the ones we currently have where we individually test encode and decode w.r.t. to a reference implementation (PIL), but it's still good to have as a functional / integration test and it will hopefully help https://github.com/pytorch/vision/issues/3913 move forward.
CC @fmassa @datumbox @pmeier

What I asked myself a few times for these kinds of issues: does the jpeg / png standard define a test for encoding / decoding?

does the jpeg / png standard define a test for encoding / decoding?

Yes, according to https://en.wikipedia.org/wiki/JPEG#Required_precision the tests requirements seem to be in the DCT domain though, not pixel domain. I don't think we'll want to go as far as testing the DCT domain (I'm not even sure we can anyway, since we just use libjpeg)

Actually looking at an older version of this: https://en.wikipedia.org/w/index.php?title=JPEG&oldid=814219419#Required_precision there seem to be pixel-level checks (for the decoding phase though, not the encoding obviously):

a maximum of one bit of difference for each pixel component
low mean square error over each 8×8-pixel block
...

If the critical options are exposed when the decoder is allowed to make a decision, the decoded output can be made identical but some image processing toolkit such as PIL, unlike Tensorflow, could be opaque and simply depend on libjpeg versions.

https://towardsdatascience.com/image-read-and-resize-with-opencv-tensorflow-and-pil-3e0f29b992be

In this regard, blaming the installation versions may not always make sense since it is not the very root cause but the responsibility of the toolkit to provide APIs exposing those critical options that may result in different output. Then having PIL as the reference implementation does not sound like a good idea.

https://github.com/python-pillow/Pillow/issues/3833#issuecomment-803702604

@farleylai  I'm not sure I understand your comment in the context of this issue.
This issue is about having round-trip test for the torchvision implementation. These tests are worth having, regardless of anything else.
Regarding expected results consistency: as you noted PIL will yield different results depending on the libjpeg backend that is used. Whether this is right or wrong, it's something we have to deal with and there isn't much we can do about this. Typically on Windows they link against libjpeg-turbo, but not necessarily on linux or Mac.

This is to concern the decoding consistency especially when the results apparently affect reproducibility if care is not taken.

the decoding options should capture what the real  backend offers (that is, libjpeg(-turbo) mostly). tensorfolow's jpeg decoding API essentially provides whatever options supported by libjpeg(-turbo) such that users are allowed to approximate particular decoder's output such as opencv if necessary. I suppose torchvision is doing something similar and should expose the options as well.
As for PIL, unless it intentionally decodes a jpeg image in a custom workflow, the output should correspond to some given or default options passed to libjpeg(-turbo)
Regarding the package versions inconsistency, why does the package manager (say, conda) not ensure the the same version to be used to build torchvision and PIL if a particular jpeg version is specified on all supported platforms?


JS code to manipulate components

Hello,
I created a React application with this template and noticed that there was no documentation on component manipulation (eg. retrieving text from a text box) in JS. Could you help me ?
Thank you in advance ;)

HI @LeVraiStagiaire,
Thanks for checking this bug on the text fields.
I will be fixing that in the next release with few more improvements and with docs.

Hi @virtualvivek
Thanks for your answer. Have you planned a date for the next release?

Hi @virtualvivek,
It is on Textboxes

Hi @LeVraiStagiaire,
Thanks for your quick response,
Let me check and also will try to add examples/demos for the usage on the docs for the same. :)

Thank you very much !
Le 22 juin 2023 à 15:28, Vivek Verma @.***> a écrit :

Hi @LeVraiStagiairehttps://github.com/LeVraiStagiaire,
Thanks for your quick response,
Let me check and also will try to add examples/demos for the usage on the docs for the same. :)
—
Reply to this email directly, view it on GitHubhttps://github.com/virtualvivek/react-windows-ui/issues/26#issuecomment-1602641188, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALRJS6GYH6WAKNL5FUUY7HLXMRCBPANCNFSM6AAAAAAZB2L2UI.
You are receiving this because you were mentioned.Message ID: @.***>

Hi @LeVraiStagiaire ,
I have updated the project with additional features including docs to manipulate TextBoxes.


drag and drop

It should read "file" instead of "fileS", IMO

Hugs!

Unfortunately this isn't my graphic lol, if you're able to adjust that text I can update the image but I never really do image processing lol

i see :) no worries then ... i would propose a new design instead of just adjusting the text, so maybe its better to leave it that way because you might not like my designs :) thanks!


Validate commit message error when use gitmoji plugin!

Hello @arvinxx, I use the commitlint with the recommended configuration, but I get this problem:

Is there any problem with my configuration？

And I test not use gitmoji plugin, commitlint can working normally!
Has anyone ever experienced a similar situation？
Thanks for your proposal！

I delete extends @commitlint/config-conventional and reinstall the plugin then it works

I don't know what happened，It's amazing 😂


Arolinx quality push:gsoler2-Site-Functions.md-acrolinx2

#assign: @robinharwood, @Xelu86
@daveba @robinharwood @Xelu86
Can you review the proposed changes?
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

Resolved merge conflict, merging now.


Invalid ObjectName

Hi Jon,
I have attached a log file of the error I am receiving when attempting to use Permanent for database setup.  The Default Connection does work and creates the aspnet tables.  For some reason, I am receiving an invalid object name error almost as if it wants to find a table called UsersToRoles, but I see no setup for a SQL object of that nature anywhere in the code.  Hoping this is a super simple fix (interpreted as I am doing something wrong!)
Thanks!
InvalidObjectNameError.txt

Forgot to add, I am connecting to SQL Server 2012.  Thanks

I haven't tested the SQL side for a while so there may well be a problem. I'm on a contract at the moment so I will look at it at the weekend.

Hi Jon,
Thank you very much for this contribution! Greatly appreciated.
I'm experiencing the same issues as above though the tables are never created.
This is output of the errors:
https://gist.github.com/lwroslundh/62d5c2800f5345477330ac17599c86ae

I tried the following:

I made sure I didn't have a database called PermissionAccessControl2-AspNetCoreIdentity and PermissionAccessControl2-DemoDatabase so that I was starting from stretch.
I just changed the appsettings to

{
  ... other parts left out
  "DemoSetup": {
    "DatabaseSetup": "Permanent",
    "UpdateCookieOnChange": true //this doesn't matter.
  }

And when I ran the the application it started OK. I then stopped the application and ran it again - it was fine.
Can you tell me about your PermissionAccessControl2-DemoDatabase. Is it old, or have your tried to swap over to migrations (which wouldn't work without changes).
Let me know.

PS. I have been cleaning things up and found there were some changes to the database schema between the first version (Part 3) and the latest (Part 6). Therefore if you ran a early copy of PermissionAccessControl2 your database schema might be out of date to the current version.

Hi Jon,
Thanks for taking the time to look at this, I really appreciate it. I clicked the link in the part 3 article to go to the repository, and not any links in part 6 as I did not get that far (I have since read them all).  I would assume the redirect would take me to the same version, but to be safe, I will go directly to GitHub and download from there and try again.
If I understand this correctly,  the 1st connection should just be pointed to the Aspnet DB that was created @ runtime.  The 2nd DB is the database I want to use identity on, meaning I don’t have to create any objects in it other than what’s there (no identity is setup on the 2nd DB).  I have been working over the last year to get data cleaned up and organized into a DW and I have been slowly working on the creation of the front end.  I am naturally a SQL/data guy, and use PowerShell for pretty much all of my ETL as I dislike SSIS in ways the world can never understand.   Do I have it wrong, should the 2nd DB in your example always be in-memory and then create another connection string for the production DB that has all of the data I need to perform CRUD on and the 2nd connection in your example is just a temporary housing repository?  T
The most trying part of the front-end was choosing between asp.net MVC and asp.net CORE and then after making that decision, the learning process as articles and examples/tutorials quickly go out of date as it jumped from core 2.0 to 2.1, 2.2.0, 2.2.1 and now 3, I felt smart until I ventured down this path LOL;  I am just used to SQL/PowerShell and generally things don’t really ever change, and definitely not that fast.  I decided to go with core as it seems to be the best solution (even though it will be hosted on windows), the performance seems to be far superior.  I have stumbled through this when I have time to work on it, but now the pressure is on to produce, and security has been the one thing I have been slow to decide how to do until I found your article (it is exactly how I envisioned it should be!).
I saw that you have a book out as well, and I want to purchase, is it still relevant, as I know things have changed so much over the different core releases, I assume the same is happening for entity framework.
One last thought if you don’t mind, I am using jqgrid. I am able to populate the grid just fine  and post back to my edit url in my project, but what I still am having a hard time understanding, is why do I have to bring every column down from the table and the send an update for every column.  In my startup, I am serializing my context to JSON.  I came across your article that discusses your generic library that would allow me to just post back what I want to update, and was like yes, this is what I want as I think it’s a huge waste of resources and a drag on performance to pulling and pushing data that is not needed.   My question is, if I install your generic library, would it be able to work ok since I have my connection serialized in the startup, or do I need to remove that, and then just serialize in my controller to be able to use the library?
I really appreciate the help and your thoughts on everything, I know you are busy and answering these questions is probably the last thing you want to do.
Thanks!
From: Jon P Smith<EMAIL_ADDRESS>Sent: Saturday, September 21, 2019 9:10 AM
To: JonPSmith/PermissionAccessControl2<EMAIL_ADDRESS>Cc: asreid212<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [JonPSmith/PermissionAccessControl2] Invalid ObjectName (#4)
PS. I have been cleaning things up and found there were some changes to the database schema between the first version (Part 3) and the latest (Part 6). Therefore if you ran a early copy of PermissionAccessControl2 your database schema might be out of date to the current version.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/JonPSmith/PermissionAccessControl2/issues/4?email_source=notifications&email_token=AFHZW22DJIDT5YLHHESCFDDQKYTNDA5CNFSM4IXU7RVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7ISQII#issuecomment-533800993 , or mute the thread https://github.com/notifications/unsubscribe-auth/AFHZW263R75IYNFLHNGCA7DQKYTNDANCNFSM4IXU7RVA .  https://github.com/notifications/beacon/AFHZW22LNWBGAE6OQEE2DR3QKYTNDA5CNFSM4IXU7RVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7ISQII.gif

Wow, a long answer. Here are my (short) answers.
I updated the PermissionAccessControl2 software as I created the new articles, so the version in master has everything in it. That was easier to me, but does make it harder for people to pick out the simple stuff. I'm working on a new release with code for each article/approach. Should have a article out in a few weeks which should help you and other people (I'm working on a contract so limited time at the moment).
There are two databases:

Standard ASP.NET Core Identity database
A single database that I split across to DbContexts, so people can see the two parts):

The extra authorisation classes (see 'ExtraAuthorizeDbContext`)
An example multi-tenant application (see CompanyDbContext)

This second database is created via the CombinedDbContext using context.Database.EnsureCreated in the startup code (see program.cs), which is a cheat way to do it (that's only really used in unit testing).
In a real application you would need some form of migration. I'm with you - I use SQL scripts for migrations and I have a tool called EfSchemaCompare that checks my migration matches what EF Core thinks it should be.
GenericServices - there are example applications showing how to use GenericServices with Razor Pages, MVC and Web APIs. It picks up the DbContext via dependency injection.

Hi @asreid212,
Quick update that might help you.
To help developers like you I released a major overhaul of the  PermissionAccessControl2 repo over the weekend (make sure to pull the changes) and posted a new article called Part 7 – Adding the “better ASP.NET Core authorization” code into your app. In the article I show how to build a new ASP.NET Core app by copying in code from PermissionAccessControl2  into your ASP.NET Core app.
NOTE: The PermissionsOnlyApp uses EF Core Migrations and applies any outstanding migrations on startup - that isn't the best way to add migrations (and I don't use EF Core migrations myself), but it makes it easier for people to run the app to see what it does.
I hope that helps you.

Jon,
Thank you, this was much appreciated and breaking it out into separate projects really helped.  One side note, I think some may have issues if they start from a 3.0 project and I believe a 2.1 netstandard because of ef core 2.2.6 (remembering believe that's the version you use) because it wants you to move to ef core 3 along with all the other references. It will also force people to use end point routing in startup unless you force it to false. Unit testing will also break and users need to remove some references of razor and aspnet core in the projects.  Not a big deal, but want to throw it out there that the netstandard can become an issue for some if they don't pay attention and start doing updates or start from a project with 2.1
Thanks for everything!
Get Outlook for Androidhttps://aka.ms/ghei36

From: Jon P Smith<EMAIL_ADDRESS>Sent: Tuesday, October 1, 2019 10:46:24 AM
To: JonPSmith/PermissionAccessControl2<EMAIL_ADDRESS>Cc: asreid212<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [JonPSmith/PermissionAccessControl2] Invalid ObjectName (#4)
Hi @asreid212https://github.com/asreid212,
Quick update that might help you.
To help developers like you I released a major overhaul of the PermissionAccessControl2 repo over the weekend (make sure to pull the changes) and posted a new article called Part 7 – Adding the “better ASP.NET Core authorization” code into your apphttps://www.thereformedprogrammer.net/part-7-adding-the-better-asp-net-core-authorization-code-into-your-app/. In the article I show how to build a new ASP.NET Core app by copying in code from PermissionAccessControl2 into your ASP.NET Core app.
NOTE: The PermissionsOnlyApp uses EF Core Migrations and applies any outstanding migrations on startup - that isn't the best way to add migrations (and I don't use EF Core migrations myself), but it makes it easier for people to run the app to see what it does.
I hope that helps you.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/JonPSmith/PermissionAccessControl2/issues/4?email_source=notifications&email_token=AFHZW26UC5ILWFWTMLPETYTQMMTABA5CNFSM4IXU7RVKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAA2TDQ#issuecomment-536979854, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFHZW25JXITQJ6R3KBIJ2RTQMMTABANCNFSM4IXU7RVA.


refactor(vitest): reimplement hoistMocks to fix incorrect dynamic imports

Description
fix: #4619
fix: #4604
fix: #3300

Please don't delete this checklist! Before submitting the PR, please make sure you do the following:

[x] It's really useful if your PR references an issue where it is discussed ahead of time. If the feature is substantial or introduces breaking changes without a discussion, PR might be closed.
[x] Ideally, include a test that fails without this PR but passes with it.
[x] Please, don't make changes to pnpm-lock.yaml unless you introduce a new test example.

Tests

[x] Run the tests with pnpm test:ci.

Documentation

[ ] If you introduce new functionality, document it. You can run documentation with pnpm run docs command.

Changesets

[x] Changes in changelog are generated from PR name. Please, make sure that it explains your changes in an understandable manner. Please, prefix changeset messages with feat:, fix:, perf:, docs:, or chore:.

I cannot accept this PR without tests. Vitest is a testing framework and the lack of tests for our own features is not a good sign. Initially, this was an experimental feature to test how it works, but now it does more than before. Since it doesn't use Vite's SSR transformer directly, we need to have tests in our repo. You can just copy SSR transformer tests from Vite.

I cannot accept this PR without tests. Vitest is a testing framework and the lack of tests for our own features is not a good sign. Initially, this was an experimental feature to test how it works, but now it does more than before. Since it doesn't use Vite's SSR transformer directly, we need to have tests in our repo. You can just copy SSR transformer tests from Vite.

Sorry! I finally got what you meant. I will add these tests later

I added tests and made some changes. Since the hoistMocks must the code has mocks code. so I added some mock code combined with the original code. Please feel free to point out if it's not right!

@Dunqing this broke tests using imported variables inside the factory: #4872
PR with a failing test at #4873


Consistent API for creating new DGGS xarray objects from existing objects

One option could be reusing the .dggs accessor with the following methods (non-exhaustive):
# simple creation from existing cells
# this is just an alias of Dataset.set_xindex(coord_name, DGGSIndex, **kwargs)
ds.dggs.from_cell_ids(coord_name, grid_name=None, **kwargs)

# creation from a latitude/longitude rectilinear grid
# needs regridding and/or aggregation
ds.dggs.from_latlon_grid(lat_coord_name, lon_coord_name, grid_name, **kwargs)

not sure about regridding, but I'm not sure if we should really use from_* for this: to me, those sound very much like factory methods. What do think about using a verb, for example ds.dggs.create_index(dggs_coord, **kwargs)?

I'm not sure if we should really use from_* for this: to me, those sound very much like factory methods.

I actually view those methods very much like "factory" methods! Not in the sense of class factory methods but rather in the sense of creating a Dataset or DataArray that can be handled as a DGGS one from any other Dataset / DataArray that cannot. Maybe conversion methods is a better term, for which the from_ / to_ prefixes work pretty well I think.
We could have a ds.dggs.to_latlon_grid for conversion from DGGS to a rectilinear grid.
We could also add later ds.dggs.from_latlon_ugrid to convert from an unstructured mesh.
create_index sounds a bit too restrictive IMO. It is a good name for creation of a DGGS directly from an existing cell ids coordinate but not for the order cases that involve more operations than creating an index.

What I meant with from_ being factory methods is that they sound like they would construct a new object of a different python type, while in this case they return a modified copy.
I do think we need to be able to properly regrid, but in that case the main task is to actually regrid, not setting the index. What I mean with that is that I'd rather have regrid in the name of the API (which might be a accessor method, or a xesmf-like regridder object), where the final step after the actual regridding is to create the index.
As for ds.dggs.create_index specifically, I do think this kind of restriction makes for a cleaner API (though as always when designing a API I can't be certain until we actually use it).

What I meant with from_ being factory methods is that they sound like they would construct a new object of a different python type, while in this case they return a modified copy.

Understood! But _from_ and _to_ naming patterns are quite usual for conversion methods, no? Let me list a few options:
# 1. accessor conversion methods (the accessor name serves itself as prefix)
ds.dggs.from_(...)
ds.dggs.to_(...)

# 2. accessor conversion methods
ds.dggs.dggs_from_(...)
ds.dggs.dggs_to_(...)

# 3. top-level conversion methods (the package name serves as prefix)
xdggs.from_(...)
xdggs.to_(...)

# 4. top-level conversion methods
xdggs.dggs_from_(...)
xdggs.dggs_to_(...)

2 and 4 look too verbose/repetitive to me. Either 1 or 3 are fine by me. Both xdggs and ds.dggs don't return a class so it doesn't really bother me using from_ prefix here for something that is not a factory method.
I get your point regarding the name vs. the main task... But here I think that from the user point of view the task is best described as converting a Dataset or DataArray from one form (raster, mesh, etc.) from/to a DGGS form. Regridding, resampling, index creation, etc. are important but implementation details.
ds.dggs.from_cell_ids is a special case. It is just an alias but I think it is worth it for discoverability. Having a ds.dggs.create_index wouldn't add much value to ds.set_xindex(..., DGGSIndex).


make whitelist dynamic

pull out of the config file put into the database
but that means we need a clear and new way to define the default mode (allow all or deny all)

config is still used to bootstrap whitelist
we have a dynamic whitelist now


bit-docs layout/structure and mapping to website navigation

The [...]/site/static and [...]/site/templates are generated directories...
tree -L 5 -I node_modules node_modules/bit-docs/lib/configure/node_modules/bit-docs-generate-html/site

Result:
node_modules/bit-docs/lib/configure/node_modules/bit-docs-generate-html/site
├── default
│   ├── default.md
│   ├── static
│   │   ├── build.html
│   │   ├── build.js
│   │   ├── package.json
│   │   ├── packages.js
│   │   ├── static.js
│   │   └── styles
│   │       ├── mixins.less
│   │       ├── styles.less
│   │       └── variables.less
│   └── templates
│       ├── body.mustache
│       ├── content.mustache
│       ├── content.mustache.md
│       ├── description.mustache
│       ├── footer.mustache
│       ├── header.mustache
│       ├── layout.mustache
│       ├── menu.mustache
│       ├── sidebar.mustache
│       └── title.mustache
├── static
│   ├── build
│   │   └── 917c51373c902dc4a003c7fd949774c5
│   │       ├── build.html
│   │       ├── build.js
│   │       ├── dist
│   │       │   ├── bundles
│   │       │   └── steal.production.js
│   │       ├── package.json
│   │       ├── packages.js
│   │       ├── static.js
│   │       └── styles
│   │           ├── mixins.less
│   │           ├── styles.less
│   │           └── variables.less
│   └── dist
│       └── 917c51373c902dc4a003c7fd949774c5
│           ├── bundles
│           │   └── bit-docs-site
│           └── steal.production.js
└── templates
    └── 917c51373c902dc4a003c7fd949774c5
        ├── body.mustache
        ├── content.mustache
        ├── content.mustache.md
        ├── description.mustache
        ├── footer.mustache
        ├── header.mustache
        ├── helpers.js
        ├── layout.mustache
        ├── menu.mustache
        ├── sidebar.mustache
        ├── signature.mustache
        └── title.mustache

16 directories, 41 files

The ignored node_modules in that tree listing is this:
node_modules/bit-docs/lib/configure/node_modules/bit-docs-generate-html/site/static/build/<buildHASH>/node_modules
And contains for example bit-docs-prettify which is how the bit-docs-prettify stylesheet gets included onto the frontend:
node_modules/bit-docs/lib/configure/node_modules/bit-docs-generate-html/site/static/build/917c51373c902dc4a003c7fd949774c5/node_modules/bit-docs-prettify/
Templates
The templates directory is all templates copied over and merged together, with later entries overwriting previous entries.
Stylesheets (and static assets)
Stylesheets are added in by their respective plugins, and are "located" by steal like this:
@import "locate://bit-docs-site/styles/variables.less";

I think to locate prettify's stylesheet for example it would be like:
@import "locate://bit-docs-prettify/prettify.less";

But I'm not 100% sure about that...
https://github.com/bit-docs/bit-docs-prettify/blob/master/prettify.js#L2
https://github.com/bit-docs/bit-docs-prettify/blob/master/prettify.less
bit-docs-website Navigation
So, I'm trying to think what is the best way to document such files in the navigation for the bit-docs website... I want to convey the idea that templates are all merged together, I think that's important to understand, which is why I'm leaning towards a nav structure where it is obvious that templates end up in the same directory (even though they might come from different places).
Additionally, I want to convey that styles are "locateable" and in the same vein to how we document modules by how you would "require" them, it seems like maybe we should document stylesheets like how you would "locate" them.
That's kind of how I ended up with this idea for the structure:

In this structure, styles are essentially under their "locate" path, and templates are under their eventual "combined" directory name.
I also tried out some other permutations of how it could be structured...
Literal file path:

Pseudonym hierarchical:


Azure AD Workload Identity support

I'm trying to use Azure AD Workload Identity with azcopy and I'm getting panic: runtime error: index out of range [1] with length 1. I'm wondering if this method of authentication is supposed to work.
Which version of the AzCopy was used?
AzCopy 10.16.0
Which platform are you using? (ex: Windows, Mac, Linux)
Linux
What command did you run?
azcopy login --identity --identity-client-id < redacted Client ID of a Managed Identity >
What problem was encountered?
panic: runtime error: index out of range [1] with length 1
Have you found a mitigation/solution?
no
Additional notes
The pod was patched by the mutating webhook of the Azure AD Workload Identity project.

I've reviewed your PR. Thank you for your contribution.


Singapore

https://www.reddit.com/message/messages/5g1jwa

I'd gladly volunteer for this since I reside here.

https://www.reddit.com/r/ImagesOfSingapore


Inadequate prompting for drawing conversations

The agent doesn't understand how DALL-E works

Solved in 12.3.6


Test PR for e2e Failures due to heap memory overflow

This acts as a test PR for the following PR which is done on the front-end to fix a memory issue. 🙂
Related FrontEnd PR: https://github.com/opencollective/opencollective-frontend/pull/6713

Closing in favor of https://github.com/opencollective/opencollective-api/pull/6398


Custom Lookup fields

added ability to search records not only by Salesforce ID but also by custom mappings

I just going to unsubscribe from this...


Avoid intersection between edges

Hi,
Is it possible to avoid intersection automatically between edges when vertexes are connected ?
Current behavior :

Expected behavior :

No, that's not currently supported.


class to read, get samples, split and extract features from audio file

Load data from ../data/genres/*, extract samples, split and get features (spectrogram, chroma stft, ...)

Still missing save in CSV, waiting for archiving policy

e.g.:
    dlt_obj = DLT()
    data = dlt_obj.get_train(n_audio=10)
    for x in range(10):
        dlt.plot_data(data[x][1],
                      title=data[3*x][0],
                      save=True,
                      imagem_path='..',
                      image_name='spectrogram_' + data[3*x][0])

I took a look at the files. Everything seems in order, but I still have to test this to make sure it works. I do, however, have some questions:

What does the command plt.show() in line 156 of file dlt.py do? I don't see any other plt commands nearby.
Shouldn't the arguments in plt.subplot(lines + columns + (i+1)) in line 185 of file dlt.py be comma separated to ensure the program doesn't have problems when len(data) is bigger than 8?

Ok, I tested your code with data and everything seems to be working fine. Please look at the commit I made and address the questions I asked so that we can merge this PR.


Update of the basics of DML article; new score for PLIV; adaption due to changed API of DoubleMLPLR & DoubleMLPLIV

This PR contains:

A major update of the basics of DML article. The graphics are now produced for the standardized estimates and compared to a normal density. Results for both the partialling out score and the IV-type score are shown. Additionally, the graphics have been prettified.
Documentation for the newly added score IV-type for the PLIV model (see Python: https://github.com/DoubleML/doubleml-for-py/pull/151 and R: https://github.com/DoubleML/doubleml-for-r/pull/161)
All articles, user guide etc have been updated in accordance with the changed API of DoubleMLPLR & DoubleMLPLIV (see Python: https://github.com/DoubleML/doubleml-for-py/pull/151 and R: https://github.com/DoubleML/doubleml-for-r/pull/161)

Build with released packages is expected to fail (updates in the pkg code needs to be released first)
Build with dev packages is also expected to fail until https://github.com/DoubleML/doubleml-for-py/pull/151 and https://github.com/DoubleML/doubleml-for-r/pull/161 are merged
However, with packages from branches the build can be triggered successfully, see https://github.com/DoubleML/doubleml-docs/actions/runs/2358365697


Doesn't seem to work with RubyMine7.0.4

Update:
RubyMine version 7.1.4
It appears that the coffeelint plugin works within certain directories but not all.
For example, the plugin will work great within my repoName/spec/javascripts test directory. However, it appears the plugin will not work within the Rails asset pipeline when working on javascript files within the repoName/app/assets/javascripts directory.
I can't tell if this is an issue with the coffeelint plugin, RubyMine editor or the Rails asset pipeline.
Any help would be greatly appreciated.

+1

+1

+1. Still a problem on 8.x (running 8.0.3 at the moment).

Please provide more information on the issue, maybe a sample project or instructions how to reproduce.

+1
More details: I have a project with a base directory projectbase which contains the config file coffeelint.json.
Linting does not work for a js file located below the app/assets directory e.g. /projectbase/app/assets/models/mymodel.js.coffee or /projectbase/app/assets/mymodel.js.coffee
However linting works when I move the js file to any different location e.g. /projectbase/app/mymodel.js.coffee, /projectbase/mymodel.js.coffee or /projectbase/spec/javascripts/mymodel.js.coffee.

Hi,
Sorry for taking so long to get back, but I have a demo project up at https://github.com/xxx/rubymine-coffeelint-test that demonstrates this problem.

Thanks for the effort, I have managed to reproduce the issue, but unable to solve it.
It seems that Rubymine is not triggering the annotator for that folders, I'm having problems checking it further as I don't have a license for Rubymine and my evaluation period is over :(
If anyone wants to check it further / open an issue to jetbrains / submit a PR - it will be great.

@idok It looks like I'm going to get some time to work on this over the next week or two, but I'm not sure where to start. It's not clear how I could set up a harness to see what hooks into where and/or debug the plugin without having to package it up and uninstall/reinstall every time.
Do you have any pointers on that front?

I have posted a question here:

I think we need some help from Jetbrains here.

This is an open issue, please vote for it:
https://youtrack.jetbrains.com/oauth?state=%2Fissue%2FRUBY-17915

closing this issue as it has gone on for way to long. Plugin and App are not wroth using any longer.


The search is allowed if the selector is disabled

I am trying to disable the selector via props disabled, but it still works if allowSearch is set to true

Fixed with 1.11.6 release


Configure linux build on travis-ci.org

Settled on using travis-ci over circleci because travis will allow us to build both linux and osx, which is a feature circleci doesn't support.
This pull request sets up the changes needed to get the build to work for linux.  Somebody with access to the lbry org/repo will need to add the repo to travis-ci (or give me access so that I can do it).
Note that no tests are run; this is really the minimal amount that could be done to get this working.
Also note that the built .deb file isn't copied anywhere.

@lyoshenka should be the one to merge this. Also, what does @jackrobison need to do to get the OSX build working in Travis?

@jobevers this looks good for the most part, but I'd like to retain the ability to build the project just by running the script. is there a good way to know if we're in circle or not (maybe it sets some env variables)? that way we can do circle-specific things and non-circle things as necessary.

Finally got the OSX app building on travis too.  Will clean this up later in the week.  I'll split up OSX and linux because OSX has some extra complications with codesigning that would be better tested in a branch instead of a pull request. (For security reseasons travis-ci doesn't enable secure environment variables on pull requests)
The encrypted certificates and identify files that are in this pull request are mine (self-signed). The actual certs will need to be added to the repo - @jackrobison.


support Kubernetes 1.19

What
Support Kubernetes 1.19.
How

Add a new scheduler-config.yaml like below as of Kubernetes 1.19 or later.

apiVersion: kubescheduler.config.k8s.io/v1beta1
kind: KubeSchedulerConfiguration
leaderElection:
  leaderElect: true
clientConnection:
  kubeconfig: /etc/kubernetes/scheduler.conf
extenders:
- urlPrefix: "http://<IP_ADDRESS>:9251"
  filterVerb: "predicate"
  prioritizeVerb: "prioritize"
  nodeCacheCapable: false
  weight: 1
  managedResources:
  - name: "topolvm.cybozu.com/capacity"
    ignoredByScheduler: true

Apply the right file for each Kubernetes version on e2e test.
Update documents for configure topolvm-scheduler.
Update side-car containers

Checklist

[ ] Finish implementation of the issue
[ ] Test all functions
[ ] Have enough logs to trace activities
[ ] Notify developers of necessary actions

Hi
I made tests on k8s 1.20 ubuntu 20.04 and its seems good :100:

Can someone please give me instructions on what to do for k8s 1.20.1? I wanted to setup topolvm csi and I'm stuck at step on how to configure the scheduler.
Currently with all other pieces setup I get the following output
kubectl get pods -n topolvm-system
NAME                          READY   STATUS             RESTARTS   AGE
controller-7b65c94c4b-96rqf   5/5     Running            0          31m
controller-7b65c94c4b-zzcgw   5/5     Running            0          31m
node-gmjbx                    3/3     Running            0          30m
node-qrgfg                    3/3     Running            0          30m
node-w7zx6                    3/3     Running            0          30m
topolvm-scheduler-fbcff       0/1     CrashLoopBackOff   13         30m

The topolvm-scheduler is constantly restarting.

I am facing the same CrashLoopBackOff error for kube-scheduler pods in kube-system namespace with the following error

kubectl get pods -n kube-system
.....
kube-scheduler-k8s1                  0/1     CrashLoopBackOff   12         3m26s
kube-scheduler-k8s2                  0/1     CrashLoopBackOff   11         3m26s
kube-scheduler-k8s3                  0/1     CrashLoopBackOff   11         3m26s
.....
I am getting this error after following the steps of https://github.com/topolvm/topolvm/tree/master/deploy#for-existing-clusters
Can anyone please help..!

I am facing the same CrashLoopBackOff error for kube-scheduler pods in kube-system namespace with the following error

kubectl get pods -n kube-system
.....
kube-scheduler-k8s1                  0/1     CrashLoopBackOff   12         3m26s
kube-scheduler-k8s2                  0/1     CrashLoopBackOff   11         3m26s
kube-scheduler-k8s3                  0/1     CrashLoopBackOff   11         3m26s
.....
I am getting this error after following the steps of https://github.com/topolvm/topolvm/tree/master/deploy#for-existing-clusters
Can anyone please help..!

We will add a new kube-scheduler configuration conforming v1beta1 in #237.

We will add a new kube-scheduler configuration conforming v1beta1 in #237.


js: namespace vue pages components cleanup

Each namespace page (index, show) now has its own component. With this
we can pass any value from controller as props and not access them as
global variables. This also makes the page components easier to test.
One thing I could have done was to move the panel inside of the show page component to its own component but I'll wait we introduce Vuex to centralize and manage the state of components. This will avoid a lot of component props pollution.

Moreover, you have conflicts and Travis is failing

@mssola it's green!

@vitoravelino why did you remove the Registry.any? call ? 😁

@vitoravelino why did you remove the Registry.any? call ? 😁

Because it's always gonna be true. We won't be showing that page without forcing the user to add a registry. If they try to visit any page (namespace in this case), they will always be redirected to /admin/registries/new. Then Registry.any? will always be true. I double checked before removing it.


[HUDI-2914] Fix remote timeline server config for flink

Tips

Thank you very much for contributing to Apache Hudi.
Please review https://hudi.apache.org/contribute/how-to-contribute before opening a pull request.

What is the purpose of the pull request
(For example: This pull request adds quick-start document.)
Brief change log
(for example:)

Modify AnnotationLocation checkstyle rule in checkstyle.xml

Verify this pull request
(Please pick either of the following options)
This pull request is a trivial rework / code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end.
Added HoodieClientWriteTest to verify the change.
Manually verified the change by running a job locally.

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.

The timeout test should be not caused by this test, re-trigger it.

@hudi-bot run azure


style(network): rename stream_bytes GenericEvent to Event

Pull Request type
Please check the type of change your PR introduces:

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no API changes)
[ ] Build-related changes
[ ] Documentation content changes
[ ] Other (please describe):

What is the current behavior?

Issue Number: N/A
What is the new behavior?

Does this introduce a breaking change?

[ ] Yes
[ ] No

Other information

This change is

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

Current dependencies on/for this PR:

#1736  👈
#1723
#1719
main

This stack of pull requests is managed by Graphite.


Heightened Spells not adding correctly

Instead of adding the spells to their correctly heightened level, it adds them all as the lowest possible level. It also won't allow switching spells around, so there's no way to manually fix it.

Thanks for the report. This should be fixed in version 1.0.2.

This issue seems to have regressed. In the picture below I tried dragging magic missile to level 2 for a charge and spontaneous list, and it ended up as seen.

Where exactly are you dragging from? Is the source item a level 2 spell?

The source item is a level 1 spell, magic missile in this case. Normally when you drag a level 1 spell into the 2nd level or higher it will be added there, and heightened logic will apply if you cast it.
But for the Charge spell list this doesn't happen 😢

Another problem is that heightened effect like damage are being casted as lowest level (spell required level) even when they are in a higher spell slot. But it's "discharging" correctly and appear in chat showing the correct hightened level but the damage calculation for example is from minimum spell level.

Same for me. Try using the "Staff of Necromancy (Major)" on a Sorcerer (spontaneous spellcaster) for your tests.
This twisted and grim-looking staff is adorned with hideous skull and bone motifs. While wielding the staff, you gain a +2 circumstance bonus to checks to identify necromancy magic.
Activate Cast a Spell
Effect You expend a number of charges from the staff to cast a spell from its list.

Cantrip Chill Touch
1st Grim Tendrils, Ray of Enfeeblement
2nd Deafness, Gentle Repose
3rd Blindness, Vampiric Touch
4th Grim Tendrils, Vampiric Touch
5th Cloudkill, Gentle Repose
6th Grim Tendrils, Vampiric Exsanguination

Craft Requirements Supply one casting of all listed levels of all listed spells.
Take a closer look at Gentle Repose, Grim Tendrils and Vampiric Touch which occur two times at different levels.

Same here, exactly what is screenshotted in the original post. so if it was ever fixed then it's regressed.
I did work around it by manually changing the spell ranks of the spells it added but next time I upgrade I'll have to do it all again.

This module is no longer maintained. Its functions a fixes was added to PF2E Toolbelt module.


Help user to choose a valid password in the reset password input

What was changed
Introduce current concept of main components and remove vaadin based components from rest password and new password sending components.
Additionally provide binders checking if the provided password and email is valid

Due to the force reset on the dev branch the relevant changes were moved to it's own PR #819 to avoid merge conflicts.


YouTubePlayerUtils VideoIdsProvider are not recognized

Hey guys,
I'm trying to use this library using Kotlin, unfortunately I was trying to create a custom layout for the media controllers it not recognize YouTubePlayerUtils & VideoIdsProvider classes.
I'm using the latest version 10.0.5. I tried several dependencies from what I found in the sample application without any luck.
 implementation "android.arch.lifecycle:extensions:1.1.1"     implementation 'com.pierfrancescosoffritti.androidyoutubeplayer:core:10.0.5'     implementation "com.psoffritti.librarysampleapptemplate:core:1.0.2"     implementation 'com.pierfrancescosoffritti.androidyoutubeplayer:chromecast-sender:0.23'
I also tried to put packagingOptions in the main build.gradle without success.
packagingOptions {         exclude 'META-INF/core_release.kotlin_module'     }

VideoIdsProvider is a utility class that I'm using in the sample app. It's not part of the library.


[BEAM-10561] Eliminate nullability issues from :sdks:java:extensions:sorter and enable checker

Actually sketching also had no issues. But I included the commit to turn on checker here anyhow.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Choose reviewer(s) and mention them in a comment (R: @username).
[x] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[x] Update CHANGES.md with noteworthy changes.
[x] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

Run Java PreCommit

Run JavaPortabilityApi PreCommit

Run Java PreCommit

Run Java PreCommit

Run Java PreCommit

The conflicts here are trivial formatting in applyJavaNature so I will leave them until after review, to keep the green signal here.

Thanks! I will resolve the conflict in build.gradle then merge.

Gradle Scan of ./gradlew :sdks:java:extensions:sorter:test just to make sure that this trivial conflict resolution did not accidentally break anything: https://scans.gradle.com/s/4eyw6krxd3qhg


Remove C-style array declaration

Remove C-style array declaration.
This is the only point in all project that use this instead of classic Java-style array declaration.

Coverage decreased (-0.06%) to 89.719% when pulling b0b1ab65cb6277a7fc4e46f1cac97f27c943769d on danygold:master into 139cc8969ff21e9842ea436aa556027823cc73e1 on apache:master.

In #115 is fixed this "bug" and also others.
Close this pull request because it's now redundant


GlobalStreamId hash

I'm getting an error running petrel for the wordcount example:
asdisplay:wordcount AMMS$ sudo ./buildandrun --config topology.yaml
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/Users/AMMS/SRC/PETREL/Petrel/petrel/petrel/cmdline.py", line 12, in
from .package import build_jar
File "/Users/AMMS/SRC/PETREL/Petrel/petrel/petrel/package.py", line 13, in
from topologybuilder import TopologyBuilder
File "/Users/AMMS/SRC/PETREL/Petrel/petrel/petrel/topologybuilder.py", line 15, in
assert not hasattr(GlobalStreamId, 'hash')
AssertionError
Error on or near line 24; exiting with status 1
I think this is because the GlobalStreamId does have a hash function already. So the "assert not" line (topologybuilder.py, line 15) should either be changed to "assert" or commented out?

I cannot reproduce this issue. Please provide instructions on how to do so. I suspect you are running with a different version of Storm, Python Thrift, or some other dependency.
Tested with Storm 0.9.4 and Python Thrift 0.8.0.


update README for minikube

issue #76

link to build.sh in different repo
add license as pre-req

we've moved away from minikube for the time being.
for a local/non-cloud k8s cluster, we will start to recommend kubernetes in docker desktop or Rancher.
Those docs have been removed to avoid confusion. thanks for the PR


Model.unicode() has no effect in Python 3.X

This PR fixes displaying "Schedule object (1)" instead of Schedule.func in django-admin history & messages.
Python 2 support seems to be dropped, so I replaced unicode with str.
Tested on Python 3.8.2, Django 3.1

Codecov Report

Merging #479 into master will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #479   +/-   ##
=======================================
  Coverage   91.18%   91.18%
=======================================
  Files          47       47
  Lines        3051     3051
=======================================
  Hits         2782     2782
  Misses        269      269

Impacted Files
Coverage Δ

django_q/models.py
98.22% <100.00%> (ø)

django_q/tests/test_cluster.py
100.00% <100.00%> (ø)

django_q/tests/test_scheduler.py
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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

Thanks!


Add high-level variable mixins for headings, elevation, etc

This will make theming much easier by providing simple primitives for these groups of elements.

Obviated by TailwindCSS!


Wesite is unavailable ! ---> http://sdn-wise.dieei.unict.it

Hi all!
Have you noticed that the official SDN-Wise website became unavailable ? [http://sdn-wise.dieei.unict.it]
Anyone knows why ?
It would be quite importan for me to reach the site again as I am working on a school project with SDN-Wise and would like to follow the instructions of the Get Started tutorial and the Controlling Heterogenous one as well.
Is there anyone out there who still has the instruction or command set or even maybe a downloaded version of the tutorials ?
Thank you

Me too, i want it indeed

Hi guys,
The whole website (and all our backups) were hosted on some servers at the University of Catania. Unfortunately, most of the servers are actually under maintenance and we do not know when everything will be restored. I'll keep you updated.

Hi Milardo,
Could you provide us the instructions to start sdn wise and onos sdn wise. I mean the steps after the installation.
Kind Regards,
GF

I am studying security issues in SDWSN.
(http://sdn-wise.dieei.unict.it/docs/guides/GetStartedONOS.html) is not working current days.
so i need some basic information about SDWSN framework implementation
please can you help me.

Please, sir provide us with the link at the university or upload the complete tutorial, because we want keep our study working

Probably the website will come back online in January
While waiting, you might want to give a shot to cached content that you can find around the web. For instance, archive.org could be an option. Here are some links:

Get Started with SDN-WISE
http://web.archive.org/web/20180410161246/http://sdn-wise.dieei.unict.it/docs/guides/GetStarted.html

Understanding the SDN-WISE Core
http://web.archive.org/web/20170706151953/http://sdn-wise.dieei.unict.it:80/docs/guides/Core.html

Controlling heterogeneous networks using SDN-WISE and ONOS
http://web.archive.org/web/20180424031035/http://sdn-wise.dieei.unict.it/docs/guides/GetStartedONOS.html

Hope this helps.

Hello sir,
I had some problem in step 2,
To compile ONOS
by using this command:
echo "export ONOS_ROOT=~/onos" >> ~/.bashrc && source ~/.bashrc && source $ONOS_ROOT/tools/dev/bash_profile && cd ~/onos &&
tools/build/onos-buck build onos --show-output && tools/build/onos-buck run onos-local -- clean debug
it showed
IOError: [Errno 28] No space left on device.
what i do for increasing space?

Do you have any offline documents?

Do you have any offline documents?

No, i just follow the above online link instructions

I'm very interested in your work. Now I'm studying your code. In your document, I have two files that can't be downloaded. They are sdn-wise_java.tar.gz and 01-GetStarted.tar.gz. Can you give me one? Or can anyone offer me a copy? Thank you very much.

Please read #14

https://github.com/sdnwiselab/sdn-wise-contiki/issues/14#issuecomment-450313432
New website url: https://sdnwiselab.github.io/
Dear all,
I have finally uploaded a backup of our website to github pages. Please let me know if everything works.

Thank you so much :)

Hello sir,
Thank you for your information.
New website URL: https://sdnwiselab.github.io/ is very helpful for my project work.
implementing Sdn-wise framework in the first time make some problems in installation and compile phase.
finally, I solved that problems and the codes working correctly.
Thank you.

Thanks very much for the authors. I found the website working properly and is acceptable.
Good luck everyone!


Revamped Readme

Hello Maintainers.
I have created a Readme which fixes the issue #41

Please review the readme,
You can see the readme preview from my branch here
https://github.com/imabp/Code-Kindle/tree/docs-revamp#readme

Please review the readme,
You can see the readme preview from my branch here
https://github.com/imabp/Code-Kindle/tree/docs-revamp#readme

Yah looks great! We don't need the table of content since GitHub does that by default right. And in the initial description of code-kindle, instead of explicitly putting " " can we add it as a quote, some typography?

I am not sure, whether GitHub does that automatically.

I am not sure, whether GitHub does that automatically.

yup it does

Thanks I will remove the table of contents :)

After the logo is created, we can have an issue created for the same.

After the logo is created, we can have an issue created for the same.
I am working on the code commenting part

Shall we merge this PR then?

Shall we merge this PR then?

Yes, I guess, we are good to go.

@Siddhant-K-code I have fixed the changes.


Added new section

Hello Sudesh! I'd like to add this new section to the README file.

Whatever you wrote seems fine.

Thank you!


Sfont compile fixes again

There we go again. This reverts your rev. ab365eb4432c493facc0232dfc8d88e6a54cff7b and rev. 59adf7d49304e65ba8dc4ec4cdbab44054b15194, and replays the ill-fated #1423 on top.

Better don't mess it up this time. :)
BTW, it's easy to revert stuff with git, you just do a git revert commit-hash. If they're multiple commits, you'll have to revert them in reverse order.


--engine tag for Amazon neural voices is not returning neural voice audio but regular voice

The new --neural tag to select AWS neural voices is returning standard voice audio.

typo above  --engine tag

Delete this  issue. I found the problem on my end. Working with a client who had not updated their version like I asked.


Data Landing Pages have hardcoded url

Switch the Data landing pages to use the configured url instead of hardcoded one.

this is fixed and available on beta.


Add Keyboard Navigation to modal search

This code should do it when I or anyone who wants to decides to open a pull request.
const [activeItem,setActiveItem] = useState(0)

const onKeyDown = (e: any) => {
        //* When Enter is pressed
        if (e.keyCode === 13) {
            openPage(result[activeItem]);
            //* When Up arrow is pressed
        } else if (e.keyCode === 38) {
            if (activeItem === 0) {
                e.preventDefault();
                return;
            }
            setActiveItem((a) => a - 1);
            e.preventDefault();
            //* When Down arrow is pressed
        } else if (e.keyCode === 40) {
            if (activeItem === result.length - 1) {
                return;
            }
            setActiveItem((a) => a + 1);
        }
    };

const onChange = () => {
    ...whateverWasThereBefore
    setActiveItem(0)
}

<Input onKeyDown={onKeyDown} onChange={onChange} />

It is for the search modal in the website right?

Yeah it is @Dipeshwagle

Thanks for the great library I will work on this issue.

Thanks! and you're welcome.

#36

#36  Sent a pull request to add this feature, but it was not as straightforward as I thought because the results were in an object with a category.


Login failure

if click login button when display index.html.
{
"error": "Error discovering issuer.",
"isAuthenticated": "false",
"message": "write EPROTO 14110000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:c:\ws\deps\openssl\openssl\ssl\record\ssl3_record.c:355:\n"
}
debug：{
https://localhost:3000/_nuxt/node_modules/.cache/vite/client/deps/@vercel_analytics.js?v=3d94e271 net::ERR_BLOCKED_BY_CLIENT/
Refused to load the font '' because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'font-src' was not explicitly set, so 'default-src' is used as a fallback.
}

Firstly, make sure abp.io identity server is up and running.
Secondly, Update the CSP to Allow Fonts Modify your Content Security Policy to include a font-src directive that allows loading fonts. For example:
Content-Security-Policy: default-src 'none'; font-src 'self';
If you load fonts from external sources, specify their URLs. For instance:
Content-Security-Policy: default-src 'none'; font-src 'self' https://fonts.googleapis.com;


Response data may be incorrectly decoded (not UTF-8)

So this is in the weeds of encoding, let's see if I can try to make sense of this.
I'm using jsonrpcclient on an API that in a few cases returns data that has mangled encoding (e.g. characters like ä appear as Korean).
The API returns a response header like this:
access-control-allow-origin: *
cache-control: no-cache
content-length: 2458
content-type: application/json
date: Sun, 27 Dec 2020 23:01:42 GMT
server: Cowboy

Note that there is no charset=utf-8 in the content-type, while JSON tends to be assumed to be UTF-8.
The problem I believe comes in client.py, line 173
response.data = parse(
    response.text, batch=batch, validate_against_schema=validate_against_schema
)

This line will parse the data using response.text. According to requests library, the text property is encoded using the provided charset from the response, but if there is no charset, it will guess the encoding using chardet library. chardet can make wrong guesses. So in my cases, chardet for example guessed the encoding to EUC-KR on some results (there is nothing obvious in the returned data that tells me why that guess is made).
The way to solve this according to requests is to set the encoding property manually of the response object, before reading the text property. But that possibility is not exposed when using the jsonrpcclient, as it's done internally in the send method. Also, I would argue it would be a better approach to not parse the json from the response.text property but directly from the bytes in response.content, which solves my problem and gives a more deterministic encoding.

Thanks for reporting. I can see two possible solutions:

We add an response_encoding param to let you specify that.
Another more flexible option is to add a callback param, the callback takes the requests.Response object and lets you do whatever you need, returning a string (the decoded text). The default callback just returns response.text.

Let me know what you think.
Something that might help you for now - the jsonrpcclient response does have a raw attribute which gives you access to the requests.Response, so you should be able to decode the response yourself. However jsonrpcclient will still validate and log the incorrectly decoded text.

I'm not sure you need to add additional complexity to your library. The JSON standard seems pretty clear that it should always be encoded as UTF, which should apply to JSON-RPC as well. If you agree, that should mean you don't read response.text naively when doing your parsing and validation, but that you explicitly decode it as UTF (either 8, 16 or 32). Simplest way for you might be to use the response.json() method instead, or the underlying Python json.loads(), which should decode it automatically in either UTF format.

By that logic, the requests library should've determined the encoding based on the content-type: application/json header in your response.
To me it makes sense to let requests determine the encoding, but allow the user to override it like:
response = request("http://fruits.com", "get", response_encoding="utf-8")

Which sets the response.encoding attribute before accessing response.text.

Very well, your choice, as a user I'm happy as long as I can get the encoding right. Thanks!

Won't be a problem in v4.


elixir-ls: 0.8.1 -> 0.9.0

Motivation for this change
elixir ls has just been updated. https://github.com/elixir-lsp/elixir-ls/releases/tag/v0.9.0
I also rewrote the update script to be a little better and use a separate file for data.
@NixOS/beam might be interested.
Things done

Built on platform(s)

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

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

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

I don't think there is much to this update, so I will go forward and merge this. Happy to take care of feedback that comes up later.


Tensorflow 2.3.0 TfLite converter adds ExpandDims

I have a problem with new version of Tensorflow. I try to deploy my model to embedded system. I have trained Keras model and want to convert it to *.tflite format. Tensorflow 2.2.0 generates .tflite model which is accepted by tflite/micro on embedded system. However Tensorflow 2.3.0 adds some ExpandDims layer at the beggining of the network, and ExpandDims can not e resolved on the tf/lite/micro side.
Convertion using TF 2.3.0:

Convertion using TF 2.2.0:

We want to move our project from tf 2.2 to tf 2.3 ut for now it is impossible because of this problem.
Here is the code used for convertion:
`        converter = tf.lite.TFLiteConverter.from_keras_model(LOADED_KERAS_MODELl)
converter.optimizations = [tf.lite.Optimize.DEFAULT]
    quantized_and_pruned_tflite_model = converter.convert()

    quantized_and_pruned_tflite_file = 'model_lite_pruned_microchip.tflite'

    with open(quantized_and_pruned_tflite_file, 'wb') as f:
        f.write(quantized_and_pruned_tflite_model)
    print('Saved quantized and pruned TFLite model to:', quantized_and_pruned_tflite_file)`

Tools versions:
Python 3.8.5,
Tensorflow 2.2.0/2.3.0
tensorflow-model-optimization 0.4.1

See https://github.com/tensorflow/tensorflow/pull/35189 /cc  @njeffrie @sicong-li-arm

I'm having this problem as well on Tensorflow 2.3.1. I think it might be due to the network working on 1D data, such as Conv1D layers, which are converted behind the scenes to 2D operations.

Having the same problem with TensorFlow 2.5.0. I want to use Conv1D layers with dilatation. Is it possible to add this operation to tflite/micro?

@Xeratec @Mjonir @DominikStachura I have stumbled upon the same issue with TF 2.4.1 but have found a solution/workaround that might help you as well. I have replaced all 1D operations such as Conv1D or MaxPooling1D with their equivalent 2D counterpart. The process is straightforward:

Replace the 1D operations with their 2D counterpart
Adjust the input shape for your network
Adjust the kernel_size for your Conv2D layers, e.g., kernel_size=(3,1) instead of kernel_size=3
Adjust the pool_size for the pooling layers, e.g., pool_size=(2,1) instead of pool_size=2
Retrain the network

It's not ideal but it's a solution for now. Hope that helps!

@Xeratec @DominikStachura Can anyone of you share a sample ?
We should be changing ExpandDims to Reshape during conversion as long as the shape is known.


Reenable the hailgun and hailgun-simple libraries.

Hailgun was recently released to hackage, so it should now be compatible with the new version of aeson.

Thanks!


Blog - HTTP-REST Starter

http-rest starter includes usage with Stargate v2.

@kijanowski thank you so much for the corrections needed.  Updated with latest changes.


Remove existing routes

Right now it is possible to dynamically add routes by calling router.addRoutes([/* routes */]). It would be nice if it was possible to also remove/replace routes on the fly. In my app user may define routes by himself (on the fly). I keep user configuration in the Vuex store, and when it is updated I want to completely replace whole router routes configuration (though replacing/removing single route would be also handful but I guess then it should also handle removing/replacing/adding child routes instead of only dealing with top-level routes, which would be quite complicated). I imagine that after replacing routes router would check if current path matches any of the new routes and navigated to it.
It could be for example method router.replaceRoutes([/* routes */]) or router.setRoutes (in addition to method router.addRoutes which already exists).
Please note that this situation can be handled without VueRouter by setting one global route /* that will match every possible path, performing route matching inside this global route component (based on dynamic config stored in Vuex store for example) and dynamic rendering of component(s) that matched current path. However this is very ugly solution which looses all benefits of VueRouter, and handling child routes would be complicated.
In fact I wanted to handle it by patching VueRouter manually, but it seems that createMatcher (https://github.com/vuejs/vue-router/blob/dev/src/create-matcher.js#L16) does not expose pathMap and nameMap so it is not possible modify routes configuration in other way than by calling router.addRoutes (I guess it's intentional :).

Why would you ever need to delete a created route without adding a new one replacing it?
I think you may be interested in #1129

In my app user may dynamically set routing. For example he has three predefined components A, B and C; In the application (in browser :) he can manage route configuration; let's say there is a textarea with following JSON:
[{ path: "/my-custom-path", component: "A" }, { path: "/some/other/path/:id", component: "B" }, ...]

For now I can just add new routes to the router:
import A from '@/components/A';
import B from '@/components/B';
import C from '@/components/C';

const allComponents = { A, B, C };

// "routes" is array of routes provided by user/client in textarea (textarea is just an example :).
onConfigChanged = routes => {
  routes = routes.map(route => {
    return { path: route.path, component: allComponents[route.component] };
  });
  router.addRoutes(routes);
};

// onConfigChanged is called on each change to configuration by user/client

What I need is to completely replace all routes: router.replaceRoutes(routes) or maybe router.addRoutes(routes, { replace: true }) (it should completely replace routes configuration).
#1129 is close but it won't solve my problem because I don't know route names...
I know that this is not primary use-case for VueRouter, but it would allow to do more advanced things (like my use-case).

I like this feature request, I have uses cases where I just need to replace url parameters dynamically just to generate a URL to share and grant a unique access for a view with data that I already have in memory (where I don't need view changes or async operations).

My application has different very routes for different user roles (some are replaced, some should be inaccessible or not exist at all). While it is already possible to achieve this using hooks and basic permissions definitions, I am interested in the idea of replacing the routes entirely on login/logout. The set of routes available could then be unique for each user role, and public/non-authenticated users.

I had my components depends on the api, and the api now needs to depend on router,
however, the router have to depend on the components,
because of the new Router({ routes: [{ component }] }) syntax,
which causes a circular require now.
(the resolve => reuqire([path], resolve) syntax doesn't work for me.)
+1 to dynamic routes config, so I can export the router instance first.

+1

+1

+1

Is there any intention of implementing this? It felt like there was some momentum on this for a while

+1 for dynamically removing/replacing routes

My use case: Modular app, where you enable/disable modules (basically separate components, pages) that have pre-configured routes. Adding a route after enabling a module is ok, but when disabling module, previous routes need to be removed.

I agree this is needed.  Imagine you implement a landing page that loads various apps dynamically, so that each app loaded would want to clear any previously loaded routes and load its own in.  Also imagine that this information is sent up from the server dynamically.
This seems like a simple api of router.removeRoutes ([routeKeys]) or empty array to remove all.

The case for authorization-based (or capability-based) route definitions seems to be very common for sufficiently sophisticated apps.
In my case (somewhat similar to @nickforddesign's), I'd love to be able to start with a minimal set of public routes for unauthenticated users, and if they try to access any of the protected routes they a 404 (or maybe redirected to login). Upon login, the server would respond with a list of accessible routes based on the current user role and/or app configuration.

All interceptors and authentications can be implemented with beforeEach hook, I still don't understand why you need add or replace routes dynamic.

@JounQin Please consider a client side plugin system that allows individual plugins to be disabled/enabled. When enabled, the routes provided by the plugin must be added to the system. When disabled, these routes need to be removed again in order for the application to fail consistently, namely with a 404 instead of continuing to render the components/views associated with that route.
An alternative, of course, would be to implement a beforeEnter hook which checks whether the route is available and redirecting to 404 instead when it is not.

@coxy great~ it works~

I have similar problem: I have many minis app with its routes: Content app, User app.
A main app, used and load these mini apps.
Main app load mini app asynchronously.
My goal is:

User wants to go "content/details/video_1"
Main app seeing the hash, knows that users wants to use mini app "Content". So, mini app "Content" and its routes are loaded?
If no, ok loaded component, apply routes and finally show the component

Below my code:
MAIN APP Router code:
`import Vue from "vue";
import Router from "vue-router";
import HelloWorld from "@/components/HelloWorld";
const loadSection = function(to, next) {
//Load Content section:
if (to.includes("/content")) {
let promiseContent = import("dynamicImports/Content");
promiseContent.then(
(contentItem) => {
contentItem = contentItem.default;
//call init mini app (add routes mini app):
contentItem.init(router);
next(to);
}
);
} else {
next();
}
};
const router = new Router({
routes: [
{
path: "/",
name: "HelloWorld",
component: HelloWorld
}
]
});
Vue.use(Router);
router.beforeEach((to, from, next) => {
if (router.match(to.path).matched.length === 0) {
loadSection(to.path, next);
} else {
next();
}
});
export default router;
`
MINI APPS EXPORT:
import RouterConfig from "router";
import MainApp from "components/app.vue";
import ContentDet from "components/contentDetails/ContentDetails.vue";
export const App = {
component: MainApp,
init: function(router:any) {
//Add routes:
router.addRoutes(RouterConfig);
}
};

Similar problem to me as the complex system has many different roles and authorizations. Instead of adding security check to each root components and do conditional rendering, it is better to have access control in the router level. In addition, it makes no sense to let the user access the route if they can see nothing there.
Thanks for @coxy 's patch, but we still need the official methodology to address this problem as this patch might not work after library upgrade.
Please, Please, Please
Ps: it's interesting that Vue-router ONLY have addRoute method there, it makes me feel like I could add more money to wallet while I can never spend them ;)

似乎就不该有addRoutes这个方法，惹人想入非非。能追加不能删不能替换。

In my use case, where routes should be loaded depending on the role of a user, this feature would be really helpful.

Very needed function to delete already registered routes.
On my site different users has different allowed URLs to go.
If user login or logout some rotes blockes, some opens.
But now there is no system of deleting routes.
I think there need to be functality to iterate throw all routes with an ability to delete any route.

another usecase:
i'am currently using laravel nova which is heavily based on Vue - which is nice, but in case someone wants to overwrite some of the provided views, there's no other way as to replace the whole router, which is kind of silly. Single components are no problem as Vue.component(); can replace existing components, but that's currently not possible with Views which are hardcoded in the Nova routing configuration.
Would be nice if addRoutes() would simply replace duplicate routes (just as Vue.component does), at least the named ones.

Here's a very dirty function to append new child routes. I'm hoping the dirtiness of it encourages the maintainers to come up with a better solution. Keep in mind the console.warn suppresses ALL warnings when adding the routes and that to handle all cases you'll need an additional if statement or two. This has some clear problems if you try to update a named route because vue-router refuses to overwrite the named route reference :man_facepalming:; but, adding the same named route multiple times doesn't seem to cause any problems.
I can neither confirm nor deny whether or not this was put into production. :worried:
export default function appendRoutes(router, newRoutes) {
  const existingRoutes = router.options.routes;

  newRoutes.forEach( (newRoute) => {
    // try to find an existing route based on the path
    let existingRoute = existingRoutes.find(r => r.path === newRoute.path);

    // if the specific route path already exists, then try to merge the children
    if(existingRoute && newRoute.children && newRoute.children.length) {
      // ensure type
      existingRoute.children = existingRoute.children || [];
      // append the new children
      existingRoute.children.push(...newRoute.children);

      // suppress duplicate route warnings;
      const warn = console.warn;
      console.warn = () => {};
      router.addRoutes([existingRoute])
      console.warn = warn;
    }else{
      router.addRoutes([moduleRoute])
    }
  })
}

I give another usage example of deleting/replacing routes.
In an app, I use routes to switch pages, all with the same component, changing content.
Pages are loaded from an api so routes can change (added/modified/deleted) because the user can change the page name that can be seen in the URL thanks to router.
So the flow is the following :

app startup, only login and register routes are available if there is no authentication yet
when authenticated, pages are loaded from rest service
I rebuild routes based on available pages, plus the static ones (logout, login, etc...)
4a) user creates a new page (so a new route)
4b) user deletes a page (so route should not be available anymore
4c) user changes page name, equals deleting the route with old name, and adding a new one

My use case is a user can create, edit, and delete routes with configurations for a configurable component that would come in through the API and would be added at runtime. When I add, remove, reorder routes I get the duplication routes warning.

I don't understand why router.matcher = createRouter().matcher  would have so many people agree, at least I did not succeed.
And I tried to add a few more
router.matcher = createRouter().matcher

// Here's how to try it out

router.addRoutes([...])

or

router.options.routes = [...]

Why is there only one official addRoutes ([]) , even if you give one clear`?
The result is still not effective, but I feel that My problem this should be caused by the following problem.

must be placed at the end

Generally, the initial router has * => 404. As a result, the route added by the subsequent router cannot be routed at all, so it can be solved by refreshing the page and creating again.

this is my code , success!!!
export function resetRouter() {
const newRouter = createRouter()
router.matcher = newRouter.matcher // reset router
router.options.routes = []
}

So @coxy method doesn't work anymore in the latest vue-router?

My apps are also authorisation-based and I would want to be able to enable/disable routes depending on signed-in/signed-out state. I will also be working on an app where modules are dynamically enabled or disabled, which means routes to them will need to be switched on and off for them as well.
I can find workarounds but in my view this should be solved in the router itself. It feels strange that it's only possible to add routes, never remove or rewrite them.

How this is fixed in 4.0? I don't see it implemented anywhere.
I'm also looking for a way to remove existing route and replace route functionality.

Also looking for this feature.  Developing a modular app and routes are determined by each module, which can be dynamically enabled/disabled.  When unloading a module ideally it should be unloading its routes.  If you can already addRoutes() to the router instance, surely this a trivial feature to add... ?

Also looking for this feature.  Developing an app where the user and enable/disable modules, and each module has its own routes.  Ideally when unloading a module the related routes should be disabled (so user goes to 404 instead of a non-functional component if they try to access it).
If we already have addRoutes() surely adding a clear() or a remove() should be a trivial new feature to add.. ?

Why do you need a delete routing feature?
Shouldn't most privileged routes be configured by the server?
your router.js may only have this code
// router.js
{
  path: '/login',
  component: () => import('@/views/login/index'),
  hidden: true
},
{
  path: '/register',
  component: () => import('@/views/register/index'),
  hidden: true
},
{
  path: '/404',
  component: () => import('@/views/error-page/404'),
  hidden: true
},
{
  path: '*',
  redirect: '/404',
  hidden: true
}

When a user logs into your web application with an account and password, he or she immediately requests a menu data from the server, which you then consolidate into your local area using addRouter :
// after the server requests the menu data based on the current user information
// `accessRoutes ` It's an array , It's an routers
router.addRoutes(accessRoutes)

My users also logout. I need to reset the routes to the logged-out state after that.
I have another use case where users can create and delete objects which map to routes in the UI. The server also notifies the UI if another user in the same group has made these types of changes. I.e. the routes need to be dynamically updated through user actions.

Hi,
I have solved how to check if a route is from a different project in the same host without the need of replacing routes (the routes of the projects don't overlap).
It consists on checking the path on the url against the routes of the router.
In the App.vue:
      mounted(){
          this.checkIfWeComeFromDifferentProject()
      },

      methods:{
        checkIfWeComeFromDifferentProject(){
            if(this.checkRouteOfThisProject()){
                this.confirmLogout() //here is where you logout the user manually instead of having them do it
            }
        },
        getRouteCorePath (route) {
            route = route.slice(1)// remove first slash "/"
            //remove /:id from pages like "/vehicles/1"
            let indexOfSlash = route.indexOf('/')
            if (indexOfSlash > 0) {
                route = route.substr(0, indexOfSlash)
            }
            return route
        },
        checkRouteOfThisProject(){
            var This = this
            var found = this.$router.options.routes.find(route=>{
                var iteratedPathToCheck = This.getRouteCorePath(route.path)
                var currentRouterPathToCheck = This.getRouteCorePath(This.$route.path)
                return iteratedPathToCheck == currentRouterPathToCheck
            })
            return !found
        },
      },

    watch:{
        $route (to, from){
            this.checkIfWeComeFromDifferentProject()
        }
    }

Cheers,

It's a hack that is bound to break at some point, but this works to clear the history:
// Hack: clear the previous history
if (Array.isArray(this.$router.prevRouteStack)) {
  this.$router.prevRouteStack.splice(0)
}

17年到现在还没有这个 Feature么？

Another usecase: oversimplifying a lot for demo purposes but let's say that I have basically 2 apps running while migrating a codebase: legacy(not-vue) to next (vue) and they both map the same urls for user convenience while sharing links in this transition period. So myapp.com/some-page will render either a legacy app view or a next app view based on a user featureFlag (like a beta testing, but remember they use the same url!!) so picture an incremental migration.

// inital router.js
const routes = [...alreadyMigratedNextRoutes] // already battle-tested vue routes no longer under the featureFlag, no more legacy views fallback
const router = new VueRouter({ routes })

// some data fetching work...

if (store.state.curAccount.featureFlag) {
  router.addRoutes(underTestingNextRoutes) // the ones with the same paths as legacy views, now curAccount will get `next` views
}

// else do nothing (as in navigating to those paths will load the `legacy` app versions
// voilá this works

The problem is that switching accounts on the app (meaning no page reload) and assuming  curAccount had featureFlag === true and  we switch to account_b has the featureFlag === false,  means that  I need to remove it from the router routes array so that account_b effectively sees the legacy app view when navigating to that url.
// pseudoCode for some selectbox

onSwitchAccounts(targetAccount) {
  this.$store.dispatch('fetchAccount', targetAccount).then((accountBPayloadj) => {
      this.$store.commit('UPDATE_CUR_ACCOUNT', accountBPayload)

      if (accountBPayload.featureFlag === false) {
         // yup would be handy
         this.$router.removeRoutes(underTestingNextRoutes)

        // Now if accountB goes to `myapp.com/some-page`, it should see the `legacy` version.
      }
   })
}

Does this make sense on why I can't simply use router hook/guard? In practice i want to redirect... to the same url.
Note that i'm not saying there isn't another way of doing it, and yes "you should just use a next.myapp.com" are expected (reddit) counter-arguments. I'm just trying to express what it seems to be a practical use-case for the feature.
✌ ☮

@posva It says you added fixed in 4.x but can you link to a commit/documentation so we can know how to use it and close this issue if it solves it?

@redfox05 it's here: https://github.com/vuejs/vue-router-next for Vue 3

@posva was hoping for a commit hash or link to documentation, but understand you're probably busy.
For others interested in the information, I managed to find the docs for it here: https://next.router.vuejs.org/guide/advanced/dynamic-routing.html#removing-routes couldn't find a commit hash, but hopefully the docs will be enough.

Only according to the name to delete the router now? How to delete the router  by path？

Really, how does one remove unnamed route?

The reason this feature is no only a good idea but a must have, is because the nested routes behave very buggy, every time you go in and out and of the nested child of the route,  and the route no even takes you where you want to go instead it take you to the last visited child of the parent.
This make navigation and routing very unpredictable and impossible to work with.

使用addRoute回调, 可以实现删除路由, 官网查看
const removeRoute = router.addRoute(routeRecord)
removeRoute() // 删除路由如果存在的话

使用addRoute回调, 可以实现删除路由, 官网查看
const removeRoute = router.addRoute(routeRecord) removeRoute() // 删除路由如果存在的话

你这个是vue-router 4.x 的，但3.x对应的版本中没有这个方法


browse c++ returns nothing

When browsing c++ snippets (with at least one present in database), no results is displayed. 'c++' is handled as 'c' in request.
I patched browse.php (line 53/54) to solve that
if(selectedLanguage=="c++")
        selectedLanguage="c%2b%2b";

Thanks a lot @Ludorg, I just merged your commit.


pull request for e2e test at 12/26/2016 07:26:11

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Fail to Login in UI - Unauthorized requests to velero-api

Hello,
I'm getting these 401's in the velero-api module, which blocks me from logging in the velero-ui.

I'm deploying both with helm charts (velero v6.7.0 and vui v0.1.13).
Any ideas of what might be causing this?
here are my vui values:
global:
  veleroNamespace: velero
  kubernetesClusterDomain: cluster.local

apiConfig:
  awsAccessKeyId: velero
  awsSecretAccessKey: velero123
  origins1: '<url>'
  debugLevel: info
  apiEnableDocumentation: 1

uiConfig:
  # -- Url to http velero-api project
  nextPublicVeleroApiUrl: <url>
  # -- Url to ws velero-api project
  nextPublicVeleroApiWs: <url>

uiNp:
  enabled: false

uiIngress:
  # -- Enable or disable ingress
  enabled: true
  # -- Ingress class name
  ingressClassName: nginx
  metadata:
    annotations:
      cert-manager.io/cluster-issuer: issuer
      nginx.ingress.kubernetes.io/proxy-read-timeout: '3600'
      nginx.ingress.kubernetes.io/proxy-send-timeout: '3600'
  host: <url>
  spec:
    tls:
    -.....

Hi,
Can you try to authorize in swagger?
You can find the swagger user interface at https://<your-velero-domain>/api/docs

Hi,
thanks for getting back!
I found nothing wrong in the logs, just a 200 for /api/docs
However in the interface I get the following error:

Hi,
This error has been fixed with the latest Helm version, v0.1.14, which includes the updated API v0.18.
Can you update Helm and verify if you can authenticate in the Swagger interface?

Thanks, I have updated the chart version and can now use the swagger interface!
Yet, the same thing happens. I've logged in with swagger and tried the /api/v1/setup/version endpoint but got a 401 again
Login:

Request:

Do you use the subdirectory?
The swagger interface uses the following url format
https://<\your-velero-domain\>/<subdirectory>/api/docs

or
https://<\your-velero-domain\>/api/docs

It uses
https://<\your-velero-domain\>/api/docs

With reference to your values override can you try the following configuration?
global:
  veleroNamespace: velero
  kubernetesClusterDomain: cluster.local

apiConfig:
  awsAccessKeyId: velero
  awsSecretAccessKey: velero123
  origins1: '*'
  debugLevel: debug
  apiEnableDocumentation: 1

#uiConfig:
# # -- Url to http velero-api project
#  nextPublicVeleroApiUrl: <url>
#  # -- Url to ws velero-api project
#  nextPublicVeleroApiWs: <url>

uiNp:
  enabled: false

uiIngress:
  # -- Enable or disable ingress
  enabled: true
  # -- Ingress class name
  ingressClassName: nginx
  metadata:
    annotations:
      cert-manager.io/cluster-issuer: issuer
      nginx.ingress.kubernetes.io/proxy-read-timeout: '3600'
      nginx.ingress.kubernetes.io/proxy-send-timeout: '3600'
  spec:
    tls:
      - hosts:
         - <url-domain>
         .....

Next, can you try authenticating in Swagger again?
Also, on the login page, at the bottom left, there is a button to display more diagnostic information. Can you check it?

Sure! Correct me if I'm wrong: the changes were just for the origin and the log level right?
After updating here's what I've got:
After restarting the api pod I noticed this error (not sure if it was there before).
.....
INFO:     2024-08-05 09:19:05.898 [helper.velero_client] Successfully extracted 'velero' from './velero-client/dl/velero-v1.12.2-linux-amd64.tar.gz' to '/usr/local/bin'.
INFO:     2024-08-05 09:19:05.898 [helper.velero_client] Result from init velero-cli-version :True
INFO:     Open database connection
INFO:     create_default_user.check
INFO:     create_default_user.forced
(trapped) error reading bcrypt version
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/passlib/handlers/bcrypt.py", line 620, in _load_backend_mixin
    version = _bcrypt.__about__.__version__
AttributeError: module 'bcrypt' has no attribute '__about__'
INFO:     Close database connection
......

As for the swagger workflow, i get the same error. Here is the logs.
INFO:     <IP_ADDRESS>:36542 - "GET /api/openapi.json HTTP/1.1" 200 OK
DEBUG:    2024-08-05 09:21:14.142 [service.authentication] [/api/v1/token] User:admin-Password:ad**
INFO:     2024-08-05 09:21:14.431 [authentication.users] [/api/v1/token] Login in :admin
DEBUG:    2024-08-05 09:21:14.431 [service.authentication] [/api/v1/token] __create_token username:admin
DEBUG:    2024-08-05 09:21:14.431 [authentication.tokens] [/api/v1/token] create_access_token
DEBUG:    2024-08-05 09:21:14.433 [authentication.tokens] [/api/v1/token] create_refresh_token
DEBUG:    2024-08-05 09:21:14.433 [service.authentication] [/api/v1/token] user name: admin id: 72c17254-231a-4807-b8d1-8c00dc413cba refresh expires:7 days, 0:00:00
DEBUG:    2024-08-05 09:21:14.433 [authentication.tokens] [/api/v1/token] add_refresh_token
DEBUG:    2024-08-05 09:21:14.433 [authentication.tokens] [/api/v1/token] __delete_user_token
DEBUG:    2024-08-05 09:21:14.435 [authentication.tokens] [/api/v1/token] add_refresh_token.delete old token: False
DEBUG:    2024-08-05 09:21:14.435 [authentication.tokens] [/api/v1/token] _add_user_token
INFO:     <IP_ADDRESS>:37334 - "POST /api/v1/token HTTP/1.1" 200 OK
INFO:     <IP_ADDRESS>:46284 - "GET /api/v1/setup/version HTTP/1.1" 401 Unauthorized
INFO:     <IP_ADDRESS>:37694 - "GET /api/v1/setup/version HTTP/1.1" 401 Unauthorized

As for the diagnostic it now informs me of a warning about the origin. I've noticed that before, that's why I've changed it to the ingress's URL. Here's the current report:
# Agent State Manager Report**

- Backend info
  - app_name: **velero-api**;
  - helm_app_version: **0.1.14**;
  - helm_version: **0.1.14**;
  - helm_api: **0.1.18**;
  - helm_ui: **0.1.16**;
  - api_release_version: **0.1.18**;
  - helm_watchdog: **0.1.6**;
- UI URL: **https://###.###.###**
- API URL: **https://###.###.###/api**
- K8s Health
  - cluster online: **true**
  - nodes:
    - total: **28**;
    - in error: **0**;
- API Origins
  - *;
- Architecture: **amd64**
- Watchdog: **alive**
- Compatibility: **true**
- Boolean State
  - getUiURL: **true**;
  - getApiURL: **true**;
  - checkApiReacheable: **true**;
  - getArchitecture: **true**;
  - getOrigins: **true**;
  - validateOrigins: **true**;
  - getWatchdogInfo: **true**;
  - getClusterHealth: **true**;
  - getUiApiVerCompatibility: **true**;

I'll also attach the log file
logs.txt

In your config file manually add the securityTokenKey under apiConfig section:
apiConfig:
  securityTokenKey: <your-token-key>
  ... other config ...

To generate a fixed secure random secret key use the command:
openssl rand -hex 32

Let me know if this solves the problem

That solves the problem! I can now log in and check Velero's insights as expected!
Thank you!


Create pull_request_template.md

Copies PR template from React and HTML starter library
Adds template to this repo

setup of branch duplicated


new rule: avoid binding function literal with 'this' as context

This code should create a violation:
_.bind(function() {}, this);

It could more simply be rewritten:
() => {};

Lambdas will automatically bind the this reference.
There are other APIs in Underscore that should also create violations. For example:
_.map(function () {}, this);
_.each(function () {}, this);

In these API calls, the iteration is always the first parameter:
all(iterator, context)
any(iterator, context)
collect(iterator, context)
countBy(iterator, context)
detect(iterator, context)
each(iterator, context)
every(iterator, context)
filter(iterator, context)
find(iterator, context)
foldl(iterator, memo?, context)
foldr(iterator, memo?, context)
forEach(iterator, context)
groupBy(iterator, context)
indexBy(iterator, context)
inject(iterator, memo?, context)
map(iterator, context)
max(iterator, context)
max(iterator, context)
min(iterator, context)
partition(iterator, context)
reduce(iterator, memo?, context)
reduceRight(iterator, memo?, context)
reject(iterator, context)
select(iterator, context)
some(iterator, context)
sortBy(iterator, context)
times(iterator, context)
uniq(iterator, context)
unique(iterator, context)

This API has the iterator appearing as the 2nd argument
sortedIndex(value, iterator, context)

Note, all of these methods can appear in two forms:
_.min(list, function() {...}, this);
_(list).min(function() {...}, this);

Additionally, you we should create failures on this code:
(function() {}).bind(this);
(() => {}).bind(this);

from http://eslint.org/docs/rules/no-extra-bind


Feature/logging

I will create separated PRs for typo fix and maven plugin versions. I would focus on logging module in this PR (in a single commit), just to keep it simple.

Hi @jbonofre Thanks for your review. i have removed the commits not related to logging. But i'm not able to squash all into one commit since the parents have diverged for one commit. If allowed, we can try squashing them while merging to main. I will take care of this next time.

@jbonofre Thanks for the hint. Commits are squashed now. Please review.


Unexpected output with partially-when'd switch

switch x
  when 1
    ;
  2
    ;
  else
    ;

switch (x) {
  case 1:
    {
      break;
    }
    2;
  default: {
  }
}

I feel like that shouldn't be accepted.

Yeah, we should probably detect a mixed switch and throw an error.

I thought we detected it here: https://github.com/DanielXMoore/Civet/blob/0575162b63d2e912e7bc2f7583a0cc3c34d03d2d/source/lib.civet#L3196 but it appears we're missing a case.

Actually, this seems to be a Playground issue; it's not respecting "Error" nodes. Will fix.

I originally noticed this because of a dead code warning in the LSP. If that's the case, does that mean the LSP is also not respecting "Error" nodes?

Indeed, that seems to be the case. So now down to an LSP issue.
There should be a way to map these Errors to locations in the files, given where they appear in the AST. (This would be useful for LSP, CLI, and Playground.)
@STRd6 if you have time to look at this, I won't for a while.

This should be fixed by #993 and live in v0.3.12 of the LSP
The error message could be improved with better location information but that is a separate issue.
Thanks for the report and let me know if you see any other issues.


[wip] Fix docker dns host scenario with no search domains

Fixes scenario where docker-dns.conf tries to create an empty
search entry

Don't merge until we test

ci check this

unique doesn't break anything. I think we should land this as-is