Fix RangeError when decoding base64

This PR fixes a RangeError: Invalid array length error that can be thrown when decoding a Base64Binary.
It may also be worth to look into the latest version of the Base64Binary code that this was based on, and which is available here (and that was first introduced in this blog post).

Edit: On closer inspection, the value that I was trying to decode seems to be truncated/incomplete. Still, it may be worth to update the Base64Binary code to the one that I have linked to, as jsonix currently fails with an unclear error if can't decode a base64 value. For reference, this is the "weird" base64 value that I was trying to decode: BwABBJQ1gJDUCAAAAAAA=

I've applied your fix to the right place and added a test case.
I'm a bit reluctant to use the code you linked to as it uses typesafe arrays which aren't quite vanilla JS from my point of view.

Thanks.

I'm a bit reluctant to use the code you linked to as it uses typesafe arrays which aren't quite vanilla JS from my point of view.

I can live with this :-)


Auto generation of id when creating document is not working

Describe the bug
Auto generation of id when creating an item does not work as previous version. We are trying to upgrade to 3.x and previously we had the practice to leave id generation to database to make sure its one entity that is generating ids, but all the parts of the code which we were creating documents (items) is now throwing the following exception:
CosmosException;StatusCode=BadRequest;SubStatusCode=0;ActivityId=1062eeb7-4963-4968-9fda-0a07f406c389;RequestCharge=1.24;Message=Response status code does not indicate success: 400 Substatus: 0 Reason: (Message: {"Errors":["The input name 'null' is invalid. Ensure to provide a unique non-empty string less than '255' characters."]}ActivityId: 1062eeb7-4963-4968-9fda-0a07f406c389, Request URI: /apps/DocDbApp/services/DocDbServer9/partitions/a4cb4955-38c8-11e6-8106-8cdcd42c33be/replicas/1p/, RequestStats: RequestStartTime: 2019-09-18T02:12:56.5086626Z, RequestEndTime: 2019-09-18T02:12:56.5096598Z, Number of regions attempted: 1ResponseTime: 2019-09-18T02:12:56.5096598Z, StoreResult: StorePhysicalAddress: rntbd://<IP_ADDRESS>:10253/apps/DocDbApp/services/DocDbServer9/partitions/a4cb4955-38c8-11e6-8106-8cdcd42c33be/replicas/1p/, LSN: 106903, GlobalCommittedLsn: -1, PartitionKeyRangeId: 0, IsValid: True, StatusCode: 400, SubStatusCode: 0, RequestCharge: 1.24, ItemLSN: -1, SessionToken: -1#106903, UsingLocalLSN: False, TransportException: null, ResourceType: Document, OperationType: Create, SDK: Microsoft.Azure.Documents.Common/<IP_ADDRESS>, Windows/10.0.17763 cosmos-netstandard-sdk/3.1.4).;
To Reproduce
In order to reproduce:

Install Microsoft.Azure.Cosmos 3.1.1 Nuget.
Implement a test document class which is the model to be added:

`
public class TestDocument
{
[JsonProperty("id")]
public string Id { get; set; }
[JsonProperty("title", NullValueHandling = NullValueHandling.Ignore)]
public string Title { get; set; }
[JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "partitionKeyValue")]
public string PartitionKeyValue { get; set; }
}
`

Initialize cosmos client:
var cosmosClient = new CosmosClient(ServiceEndPoint, AuthenticationKey, new CosmosClientOptions());

Create an instance of the test document class and don't set id:
var testDocument = new TestDocument   		{   			Title = "test title",   			PartitionKeyValue = "test-partition"   		};

Add the document to the container:
var response = await container.CreateItemAsync(testDocument, new PartitionKey(testDocument.PartitionKeyValue));

Expected behavior
Id should get auto generated in database engine if it's not set.
Actual behavior
CosmosException with status code 400 is thrown complaining about id not being set.
Environment summary
SDK Version: 3.1.1
OS Version : Windows 10
Target framework: netcoreapp2.0

In the v2 SDK it was checking each object. Then creating an id if it did not exist and inserting into the document. The problem with doing this is it takes a rather large performance hit, and it also caused confusion for some new users. In the v3 SDK we removed a lot of the work that was being done behind the scene to make users more aware of the performance impact.  Is there any reason you are not just setting id to a new guid?

Thanks for the comment, yes we want to have one entity issuing the ids so we reduce the possibility of getting duplicates. Now we have to make big changes, we have more than one instance for our servers and this would make each server requiring to issue ids which defeats the purpose of having one entity, which used to be cosmos db core, to generate ids.

If you are using Guid to generate the id you shouldn't be getting collisions. The v2 SDK just uses Guid.NewGuid() to generate the ids. If you want to do something similar in v3 SDK with an extension method.

We ended up using a stored procedure to create documents. We can still keep the id generation in each collection.

Sorry to necro an old issue. But I somehow stumbled upon this same problem/error in typescript. I had been using null on the id of the item I was trying to create. Using 'undefined' instead, made it start to work again.

@Ben-Russell what do you mean by 'undefined'.  are you stating you set id to 'undefined' literally as a string?  We are trying to solve the same issue in LogicApps as Create_or_update_document_(V2) is not ready for prime time.  There does not seem to be way to pass a parameter to let Cosmos auto-increment the id like @identity columns in SQL Server.


added optional password confirmation at mail creat

adds a field at account creation with email which asks to retype the password to confirm it.
If the two password fields are differents, an error message pops up,
and the _connexion method is left.
this option is activated at SignInScreen creation,
with optional boolean parameter signUpPasswordCheck
(defaults to false, leaving the UI like it was before)
added 2 locale strings for "Confirm password" and "Passwords are
incorrect" messages.
I am not sure of the German translation, as I created it with Google Translate...
Screenshots:

Thanks


Removed deprecated Downloader

Motivation: reduce the API surface area and drop FoundationNetworking dependency.
Changes:

Removed Downloader and associated tests.

@swift-ci test

@swift-ci test


Toolkit does not exposesubStatusCode

Hi,
There does not seem to be an easy way to grab the substatuscode of the response when using the toolkit.  Without this, it is hard to understand why the response returned a failure.
Suggest adding the statuscode and substatuscode to the list of errors so that they can be examined/displayed, etc.

Substatus is supported

https://github.com/onelogin/java-saml/blob/master/core/src/main/java/com/onelogin/saml2/model/SamlResponseStatus.java#L18
https://github.com/onelogin/java-saml/blob/master/core/src/main/java/com/onelogin/saml2/util/Util.java#L1412

But I think you mean that checkStatus methods of SAMLResponse and Logout should expose that info as well right?
Do you have a PR?

I updated the source to expose these through the errors list as I suggested.  I can create a pull request for that, but was not sure if this was the best way to expose them or not.
I'll create one by end of day hopefully.

Please share and I willl review.
I think make sense if there is a Substatus Code to expose it as well and be part of the error message.


Fixed creation of children

Removal of agent.c lines 33-35 results in corruption of the child nodes. I checked everywhere and it's a memory issue, I can't figure out which one it is though
main.c lines 155-160 might explain it as I may not be using the pool correctly

Nevermind, solved the corruption problem.


Post 10000 result 502 - Bad Gateway

Hey
Thanks for your promise-throttle btw its awesome : )
Im just using request-promise with promise throttle, so this isnt an issue with your library per se, but ive searched around and found a few unanswered queries on stack overflow about this issue, with people using spotify-web-api-js. Im hoping you can help?
Getting a 502-Bad Gatway with an offset larger than 10000,  the API doc sais the limit should be 100000
Couldn't find an answer elsewhere, thanks in advance

Hi @happy-machine! This library is just proxying the parameters to Spotify's Web API and the issue you report seems to come from their side. Please file an issue on https://github.com/spotify/web-api/issues describing what endpoint you are hitting, and linking to the API docs to make it easier for the team to spot the problem.
I'm closing this ticket for now.

ah .. apologies, will post there!


Challenge widgets

Adds support for turnstile / challenge widgets
Needs https://github.com/cloudflare/cloudflare-go/pull/1267

Something went wrong with git. Going to try fresh


Dynamic overlay

This PR makes it possible to use return Overlays with changing keys in a DynamicMap callback. It's a sensitive change, which will require some more testing.
Note that while it now displays everything certain things do not yet work:

Legends do not yet change to reflect the new NdOverlay key or Overlay label
In matplotlib styles will not consistently update.

And certain things cannot work:

Cyclic styles cannot work with a DynamicMap as the total ordering is required during instantiation. Could consider raising a warning when an Element returned from a DynamicMap is given a cyclic style.
You cannot return more Elements or different types of Elements than are supplied during instantiation.

We've opened some issues to improve the validation for DynamicMap return types. For now though this PR is ready for merge.


Milestone 1 Feedback

Group 9

Congratulations on finishing milestone 1! We can see you put a lot of work into this project, nice work!
Below we list some specific feedback you can use to improve your project.
We provide tick boxes for you to use in the future as you address these concerns to improve the final grade of your project.
If anything is unclear, please feel free to ask questions in this issue thread.

Submission instructions
rubric={mechanics:4}
Well done!
Section 1: Motivation and Purpose
rubric={reasoning:8,writing:2}

[ ] proposal.md: There isn't a minimal description of the app. What will the app do? What is it's main purpose? -2 reasoning

Section 2: Description of the data
rubric={reasoning:8,writing:2}

[ ] proposal.md - Dataset description section: There is not evidence data quality analysis. Are there missing values? Are these values an important percentage of the dataset?. -1 reasoning

Section 3: Research questions and usage scenarios
rubric={reasoning:12,writing:2}

[ ] proposal.md - Persona: IPersona**: In the persona description it is not specified their needs as user and/or the potential benefits that the app could for this person -2 reasoning

[ ] proposal.md - Persona: The level of detail provided in the persona description is not sufficient and the number of words in it is less than 200-300 words. -2 reasoning

Comments:
-What is lacking is information on what the app provides and how it will help Bob (benefits).
Section 4:  Description of your app & sketch
rubric={viz:10, writing:2, reasoning: 3}
Well done!
Section 5:  Team work contract and collaborative documentation
rubric={reasoning:4}
Well done!
Code of Conduct
rubric={reasoning:1}
Well done!
Contribution guidelines
rubric={reasoning:1}
Well done!

Hi Negar, addressing your feedback, mostly regarding the proposal document:

There isn't a minimal description of the app. What will the app do? What is its main purpose?:

a nutrition tracking dashboard that enables health-conscious individuals to accurately track and visualize their macronutrient intake. -- we state here our apps main functionality. It allows health conscious users to track and visualize their food and nutrient intake. Users enter their food intake, and it visualizes it against goals they set. We state its purpose of empowering individuals to make informed and healthy lifestyle choices

There is not evidence data quality analysis. Are their missing values? Are these values an important percentage of the dataset?

We didn't speak about missing values because there aren't any. There are no relevant missing values in the dataset; while not every single possible food is represented, all foods present have a complete set of information for the relevant quantities we are visualizing.

In the persona description it is not specified their needs as user and/or the potential benefits that the app could for this person:
Bob is a UBC student who wants to keep track of his nutrition - needs. Anyone who has tried this with pen and paper quickly loses their mind, which is why apps for this purpose exist.

Frustrated with existing platforms (which have recently moved to much more aggressive premium business models -- i.e. MyFitnessPal, Lifesum), Bob is in search of a nutrition tracking platform that is free, publicly accessible and uses reliable datasets -- benefits, open source non premium model
Bob needs to be able to quickly [look up ingredients] from a reliable database, and have the platform pull up the most relevant values, Bob will [weigh out the food] he is making for himself, and enter the amounts as he goes. He wants to see his current totals of macronutrients for the day and his remaining amounts in both written and visualization formats -- uses/functionality. It provides a platform for nutrition tracking both in terms of data lookup and visualization. He enters his daily food intake and it is visualized against his current targets.
While the persona portion of the dataset is short, we feel it captures the necessary information. Nutrition calculators are an exceedingly well known class of applications and we did not feel the need to litigate people's motivations for using them. Our main motivation in this project was to create an open source version of an existing, well known service and as such in general we focus mainly on the specific differences between our service and existing well known apps.

Hi @negsadr. I agree with @samson-bakos's comments above. Could you please take another look at our proposal? There most certainly is a minimal description of the app which describes what will the app do as well as its main purpose. And the persona definitely does specify the needs of the user and the potential benefits of the app for the user.
You state that "what is lacking is information on what the app provides and how it will help Bob (benefits)." Could you please explain how the following excerpt from our proposal doesn't provide that exact information:

Bob needs to be able to quickly [look up ingredients] from a reliable database, and have the platform pull up the most relevant values. Bob generally makes healthy choices, so he’s not too concerned with micronutrients -- he is mostly concerned with macronutrients to synergize with his exercise and manage his weight.
When using the app, Bob will [weigh out the food] he is making for himself, and enter the amounts as he goes. He wants to see his current totals of macronutrients for the day and his remaining amounts in both written and visualization formats (e.g. a barplot with a target bar).

In particular, the part "He wants to see his current totals of macronutrients for the day and his remaining amounts in both written and visualization formats (e.g. a barplot with a target bar)." provides a pretty clear description of exactly what the app will do for Bob.
I do concede that our audience persona is less than 200-300 words, as it comes in at 168 words. However, I still feel that the persona provides a sufficient level of detail to motivate the purpose of our app. It seems like we're being docked for writing concisely. Sure, we could add a bunch of extra words like "very" and go more into detail about Bob's personal background, but I feel that doing so would simply make the persona's word count longer without actually making the app's purpose more clear.

Following up the persona part in specific:
Persona: The level of detail provided in the persona description is not sufficient and the number of words in it is less than 200-300 words. -2 reasoning
I just double-checked and did not see anything thing about the word count requirement explicitly listed in section "Section 3: Research questions and usage scenarios" in the criteria.
Reference: https://pages.github.ubc.ca/MDS-2022-23/DSCI_532_viz-2_students/materials/assignments/milestone1.html#section-3-research-questions-and-usage-scenarios

Sorry, I'm getting back to you late!
Congratulations on finishing your project and the course!
Regarding your comments on the grading of Milestone 1:
I've removed the penalties for the following (+4):

[ ] proposal.md: There isn't a minimal description of the app. What will the app do? What is it's main purpose? -2 reasoning
[ ] proposal.md - Persona: IPersona**: In the persona description it is not specified their needs as user and/or the potential benefits that the app could for this person -2 reasoning

However, for the word count and data quality analysis, I'm afraid there's nothing I can do as the instructions in the rubric are very clear. Have you talked to Florencia about it?


Allow specify other options from type-coverage

Fixes #4
I believe it's breaking change since it updates type-coverage to the next major version (and even uses different package).

@timocov thanks so much for working on this issue 🙏 Looks good! I will review it later today!

@timocov thanks again, merged! I have at least one other small fix in the backlog and I will release a new version.

Released as<EMAIL_ADDRESS>

@krzkaczor thank you!


path-to-regexp treats port numbers as groups

So //originblah/hello/world/ matches //origin:8000/hello/world/.

Origins are now handled separately to the express style routing
shed.router.get('/hello/world', shed.cacheFirst, {origin: 'https://origin:8000'});


Update comments of AppliedManifestWorkController

Re-trigger image building job.
Related issue: https://github.com/open-cluster-management/backlog/issues/6841
Signed-off-by: Yang Le<EMAIL_ADDRESS>

/assign @qiujian16

/approve
/lgtm

/retest

/retest


Help provider not working with renv projects without required packages

In renv projects, it is often a good practice only to include necessary packages. However, vscode-R help provider (e.g. getAliases.R) requires jsonlite to write the info. If the package is not installed in the renv project, then it won't work.
#1071 implements a vscode setting r.lsp.libPaths to support extra .libPaths() for the language server to start with. Maybe we should do similar in getAliases.R or eliminate the dependency on jsonlite?

Installing jsonlite or even languageserver causes no harm, since within a renv project only explicit use of packages (i.e., a call to library() or require()) are part of a default snapshot (i.e., renv.lock).

What if languageserver requires something that has a version conflict with those installed in renv?
For example, if the project renv requires an older version of a package but languageserver depends on a newer one?

In that case, you have a problem indeed.
Define a new lib path in which you have the right to write/install new packages can help.
Then for this kind of edges cases and in a more general point of view, maybe vscode-r should rely on its own independent library path entirely 🤷♂

Closed via #1098.


Concat layer

I am working on inception layer implementation for using with Dlib's DNN. This PR introduces new grp<> layer type that can be used for inception layer creation
This layer have one input from subnetwork that is propagated into several subnetworks inside group and after that their result is merged into one output
I made also working example with inception layer inside to show how it works. Compared to mnist_ex, it learnes in less iterations, but with more time
This is a very first implementation, but completely working (as CPU, as GPU). If it fits the concepts of Dlib, I will make some better example and also regression tests
The biggest restriction for now - it can't be connected to the input layer directly, only to some computational layers

Cool.  I looked it over quickly (will look more later), and noticed that you called host_write_only() but didn't assign to every memory location.  If you aren't going to write to every location you have to use host().  Also, unless I'm not understanding, this line is wrong: https://github.com/davisking/dlib/pull/114/files#diff-7bda83d17616598a79a24bc54d484181R806.  Shouldn't the loop range take the offset into account?  Doesn't the loop try to write to everything but the offset might be non-zero.
I didn't test it yet, but does the layer(net) function work with this core layer type?

Idea of concat_depth is to merge samples from:
out1: [a][b][c][d]
out2: [e][f][g][h]
into
out: [ae][bf][cg][dh]
square brackets are samples
here will be two calls for concat_depth:
concat_depth(out, 0, out1) // put content of each sample from out1 into the beginning of each sample in out
concat_depth(out, 1, out2) // put content of each sample from out2 into the end of each sample in out

split_depth produces out1 and out2 from combined out
depth_concat layer is calling concat_depth function in a way where all data in result tensor will be overwritten. but if somebody will call it later with not overwriting all data - it can be a problem
is there any performance overhead of host() over host_write_only() ?
layer<11>(net) - will work
layer(net) - will work even if tag is after inception layer, but not inside group

If everything is running either on the CPU or all on the GPU then there isn't any difference between host() and host_write_only().  So it's not a big deal in this case.
I'm still concerned about these split and cat functions.  It still seems like the code has indexing problems. The comments make it sound like the sample_offset is indexing into the k dimension (and therefore should be in the range 0 <= sample_offset < k()), but in the code sample_offset is just added to the pointer.  So it's just indexing the floats from the beginning of the tensor.  It would definitely be preferable that it be indexing along the k dimension :)
Also, I'm pretty sure you can implement this using the skip layers.    So for example, you should be able to do something like this:
template  using block1 = relu<con<5,3,3,1,1,SUBNET>>;
template  using block2 = relu<con<8,5,3,1,1,SUBNET>>;
template  using block3 = relu<con<20,5,3,1,1,SUBNET>>;
template  using inception = concat<tag1,tag2,tag3, tag1<block1<skip4< tag2<block2<skip4< tag3<block3<  tag4>>>>>>>>>;
using net_type = inception<inception<inception<input<matrix>>>>;
The only thing missing is a concat layer.  But that can be implemented by writing something conforming to the example layer interface defined in layers_abstract.h.  I put a lot of difficult template magic into core.h so that the layer interface could be as simple as possible :).   So you should be able to implement this using the easier interface :)

Yes, you are right, I will change interface to use correct ofsset in range in the range 0 <= sample_offset < k()) and change to data.host() instead of write_only
I cant understand your answer about skip layers - github thinks that angle brackets are some kind of markup and erased all your code. Can you rewrite it using "Insert code" function?
I have checked the code of add_skip layer, looks like it works for tags. I can't imagine how to put a group of two layers into it
I was trying to create this grouping(concat) with EXAMPLE_COMPUTATIONAL_LAYER_ from layers_abstract.h, but was unable to make it because add_layer has this line inside:
       const static size_t num_computational_layers = subnet_type::num_computational_layers + 1;
And it means that I will have only one solver for all my concatenation
I can improve my group layer to support "tags" inside it
Now I see some other minor problems, that are not done inside group:

Making it work for input layer as subnet will be tricky, as the same you have separate add_layer for this, may be we will need separate group for input layer subnet. This means that inception<input will not work. But as workaround - inception<tag1<input - will work
Constructor with layer detail arguments (set of constructors) is not done yet. Do we need it?

       template <typename ...T>
        add_layer(
            T&& ...args)

And it can be done much more simple if use C++14 with lambdas supporting for auto keyword, but this can lead to compiler support problem
So the main question - to be or not? :)
If yes - I will finish it, make regression test and improve example. If no - I will wait for some concatenation sample/sopport from you

Oops, sorry about the awful formatting.  It's fixed now.

So, as I understand, the main idea is not to hold layers inside concat layer (like my group is working now), but keep references on them with tags and make layer construction and iteration with existing core functions
Both approaches will work, but group layer holding layers inside has a bit more clear syntax. I will try to make concat layer with this syntax (skip layers) and compare the results
What is better for understanding?
concat<std::tuple<>, SUBNET> or concat<l1, l2.... ln, SUBNET> ?
While SUBNET is not concatted, but used as input

That's right.  This is a little more syntax at the end, but way less syntax since you don't need to write hundreds of lines of complex stuff in core.h.  Generally speaking, I want there to be a core set of tools in core.h that let anyone easily define any kind of network they want without needing to understand or mess with the implementation details in core.h.  This means core.h needs to have the right primitives that let you define anything else.  I think the tag and skip tools let you do that.  I'm sure there are some things that can be improved, this is still a new dlib feature, but it's important that the way people add new layers and/or define new network architectures isn't by editing core.h.  If that's what is required then the DNN API in dlib will have been a failure in my opinion.  That's not to say that we can't improve things in core.h.  But I don't think we need a special concatenation tool in core.h
Also, here is how an inception template could be written in a cleaner way:
// Maybe this declaration could be in dlib somewhere since it's something people might want to reuse.
template <template<typename>class B1, template<typename>class B2, template<typename>class B3, typename SUBNET> using inception3 = concat<tag1,tag2,tag3, tag1<B1<skip4< tag2<B2<skip4< tag3<B3<  tag4<SUBNET>>>>>>>>>>;

// Then a user can make inception blocks by defining the sub blocks
template <typename SUBNET> using block1 = relu<con<5,3,3,1,1,SUBNET>>;
template <typename SUBNET> using block2 = relu<con<8,5,3,1,1,SUBNET>>;
template <typename SUBNET> using block3 = relu<con<20,5,3,1,1,SUBNET>>;
// and then defining their inception block
template <typename SUBNET> using incept = inception3<block1,block2,block3,SUBNET>;

// and then the network type is
using net_type = incept<incept<incept<input<matrix<float>>>>>;

The only problem with this is that I need to make a mechanism for defining globally unique tags, since in the above if the blocks have tag1 in them for example, the wrong thing will happen.  There are a few ways to deal with that and I'll add something soonish after I think about it a little more.

This implementation has concat layer and inception typedefs. tensor merge/split functions replaced with one copy_tensor function.
Changed example dnn_inception_ex to use new inception typedefs based on concat
Also to exclude some possible errors I defined new tags to use in inceptions - so user will be able to use normal tags with no conflicts inside inception layer
All functions are added to regression tests suite
How to improve the code inside dtest in dnn_tester? My implementation works, but doesnt look good
In my test I need to check if backward works corretly. To make it i need to call back_propagate_error and check if gradients are correct, but after backward calculation completes, all gradients becomes zero (stalled). To solve this - I am adding dnn_tester to friends of add_layer
But dnn_tester is in anonymous namespace and can't be a friend. So I added one temporary class in dlib namespace inside test/dnn.cpp (dnn_tester)
What could you recommend to make code better in dnn_tester?

Sweet, I've only had a little bit today to look at this but it looks really nice.
To test it I would either create a concat layer object on its own and call forward and backward and verify the gradients that way.  Or you could make a simple network object and call the network's get_final_data_gradient() method.  Either way is fine.  Normally the test_layer() function would do the trick but it can't handle layers that are as complex as this one.
Also, can you make the SUBNET type be the last template argument for the concat template?  I'm not sure if it's possible to do that using variadic templates.  If not then maybe there should be concat2, concat3, etc. explicit overloads.  I know it's a little less elegant but having the order reversed from the other layers will definitely confuse users.

Ok, I changed concat syntax into concat1, concat2....
I cant make variadic here because of two reasons:

variadic declaration must be the last in template params
SUBNET is typename, whyle TAG's are template, so I cant merge them into one variadic list

dnn_test made more readable

Looks great.  Can you make the tests work without the friend declaration in core.h?

Yes, I found a way to do it.

Awesome.  I really like how this looks.  Your code is very clean and good compared to a lot of other things I often see :)
However, I was just testing it and found that it doesn't compile on Ubuntu 14.04 with g++ 4.8.4.  It gives an error in layers.h about the sizeof...(TAG_TYPES).  This seems to be clearly an error in this version of gcc, but nevertheless, this is the latest LTS Ubuntu officially supported by cuda so we need to work around it.  RedHat and CentOS use similar versions of gcc as well and I know many industrial users of dlib who use such systems.
Can you switch the sizeof statements with a recursive counter based on something like the concat_helper_impl template?  That seems like a straightforward way to work around this gcc bug.  Then I'll merge the PR :)

Done, my kung fu is growing with you :)
Thanks for testing, I dont have gcc 4.8.4 Developing with MINGW 5.3 and testing with Ubuntu 14/gcc 5.0 with Titan-X

Sweet, looks good.  Thanks for the PR :)


Aimeos\MW\DB\Exception  : SQLSTATE[42S02]: Base table or view not found: 1146 Table 'laravel.mshop_locale_site' doesn't exist:

Generating optimized autoload files

Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover --ansi

Aimeos\MW\DB\Exception  : SQLSTATE[42S02]: Base table or view not found: 1146 Table 'laravel.mshop_locale_site' doesn't exist:
SELECT
mlocsi."id" AS "locale.site.id", mlocsi."siteid" AS "locale.site.siteid",
mlocsi."code" AS "locale.site.code", mlocsi."label" AS "locale.site.label",
mlocsi."config" AS "locale.site.config", mlocsi."status" AS "locale.site.status",
mlocsi."editor" AS "locale.site.editor", mlocsi."mtime" AS "locale.site.mtime",
mlocsi."ctime" AS "locale.site.ctime"
FROM "mshop_locale_site" AS mlocsi
WHERE mlocsi."level" = 0 AND ( mlocsi."code" = 'default' )
ORDER BY mlocsi."id" ASC
LIMIT 1 OFFSET 0
at path-to-project\vendor\aimeos\aimeos-core\lib\mwlib\src\MW\DB\Statement\DBAL\Simple.php:75
71|         {
72|                 try {
73|                         $result = $this->exec();
74|                 } catch( \PDOException $e ) {

75|                         throw new \Aimeos\MW\DB\Exception( $e->getMessage() . ': ' . $this->sql, $e->getCode() );
76|                 }
77|
78|                 return new \Aimeos\MW\DB\Result\PDO( $result );
79|         }

Exception trace:
1   Aimeos\MW\DB\Statement\DBAL\Simple::execute()
path-to-project\vendor\aimeos\aimeos-core\lib\mshoplib\src\MShop\Locale\Manager\Site\Standard.php:947
2   Aimeos\MShop\Locale\Manager\Site\Standard::getSearchResults(Object(Aimeos\MW\DB\Connection\DBAL), "
SELECT
mlocsi."id" AS "locale.site.id", mlocsi."siteid" AS "locale.site.siteid",
mlocsi."code" AS "locale.site.code", mlocsi."label" AS "locale.site.label",
mlocsi."config" AS "locale.site.config", mlocsi."status" AS "locale.site.status",
mlocsi."editor" AS "locale.site.editor", mlocsi."mtime" AS "locale.site.mtime",
mlocsi."ctime" AS "locale.site.ctime"
FROM "mshop_locale_site" AS mlocsi
WHERE mlocsi."level" = 0 AND ( mlocsi."code" = 'default' )
ORDER BY mlocsi."id" ASC
LIMIT 1 OFFSET 0
")
path-to-project\vendor\aimeos\aimeos-core\lib\mshoplib\src\MShop\Locale\Manager\Site\Standard.php:659
Please use the argument -v to see more details.
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

Can you please post the whole output so we can see what happend before?

this is from very start.
CPN@DESKTOP-EL1GQAD MINGW64 /g
$ composer create-project aimeos/aimeos myshop
Creating a "aimeos/aimeos" project at "./myshop"
Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2 is now available and you should upgrade. See https://getcomposer.org/2
Installing aimeos/aimeos (2021.04.2)

Installing aimeos/aimeos (2021.04.2): Downloading (100%)
Created project in G:\myshop

@php -r "file_exists('.env') || copy('.env.example', '.env');"
@php -r "mkdir('public/files'); mkdir('public/preview'); mkdir('public/uploads');"
Loading composer repositories with package information
Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2 is now available and you should upgrade. See https://getcomposer.org/2
Updating dependencies (including require-dev)
Package operations: 122 installs, 0 updates, 0 removals

Installing composer/installers (v1.11.0): Downloading (100%)
Installing symfony/polyfill-ctype (v1.22.1): Downloading (100%)
Installing phpoption/phpoption (1.7.5): Loading from cache
Installing vlucas/phpdotenv (v3.6.8): Downloading (100%)
Installing symfony/css-selector (v5.2.9): Downloading (100%)
Installing tijsverkoyen/css-to-inline-styles (2.2.3): Loading from cache
Installing symfony/polyfill-php80 (v1.22.1): Downloading (100%)
Installing symfony/polyfill-php72 (v1.22.1): Downloading (100%)
Installing symfony/polyfill-mbstring (v1.22.1): Downloading (100%)
Installing symfony/var-dumper (v4.4.22): Downloading (100%)
Installing symfony/routing (v4.4.24): Downloading (100%)
Installing symfony/process (v4.4.22): Downloading (100%)
Installing symfony/polyfill-php73 (v1.22.1): Downloading (100%)
Installing psr/log (1.1.4): Downloading (100%)
Installing symfony/deprecation-contracts (v2.4.0): Downloading (connecting..Downloading (100%)
Installing symfony/polyfill-intl-normalizer (v1.22.1): Downloading (connectiDownloading (100%)
Installing symfony/polyfill-intl-idn (v1.22.1): Downloading (100%)
Installing paragonie/random_compat (v9.99.99): Loading from cache
Installing symfony/mime (v5.2.9): Downloading (100%)
Installing phpdocumentor/reflection-common (2.2.0): Loading from cache
Installing webmozart/assert (1.10.0): Downloading (100%)
Installing phpdocumentor/type-resolver (1.4.0): Downloading (100%)
Installing phpdocumentor/reflection-docblock (5.2.2): Downloading (connectinDownloading (100%)
Installing symfony/http-foundation (v4.4.23): Downloading (100%)
Installing symfony/event-dispatcher-contracts (v1.1.9): Downloading (connectDownloading (100%)
Installing psr/container (1.1.1): Downloading (100%)
Installing symfony/event-dispatcher (v4.4.20): Downloading (100%)
Installing symfony/debug (v4.4.22): Downloading (100%)
Installing symfony/error-handler (v4.4.23): Downloading (100%)
Installing symfony/http-client-contracts (v2.4.0): Downloading (connecting..Downloading (100%)
Installing symfony/http-kernel (v4.4.24): Downloading (100%)
Installing symfony/finder (v4.4.24): Downloading (100%)
Installing symfony/service-contracts (v2.4.0): Downloading (100%)
Installing symfony/console (v4.4.24): Downloading (100%)
Installing symfony/polyfill-iconv (v1.22.1): Downloading (100%)
Installing doctrine/lexer (1.2.1): Loading from cache
Installing egulias/email-validator (2.1.25): Downloading (100%)
Installing swiftmailer/swiftmailer (v6.2.7): Downloading (100%)
Installing ramsey/uuid (3.9.3): Downloading (100%)
Installing psr/simple-cache (1.0.1): Loading from cache
Installing opis/closure (3.6.2): Downloading (100%)
Installing symfony/translation-contracts (v2.4.0): Downloading (connecting..Downloading (100%)
Installing symfony/translation (v4.4.24): Downloading (100%)
Installing nesbot/carbon (2.48.0): Downloading (100%)
Installing monolog/monolog (2.2.0): Downloading (100%)
Installing league/mime-type-detection (1.7.0): Downloading (100%)
Installing league/flysystem (1.1.3): Loading from cache
Installing league/commonmark (1.6.2): Downloading (100%)
Installing dragonmantank/cron-expression (v2.3.1): Downloading (connecting..Downloading (100%)
Installing doctrine/inflector (2.0.3): Loading from cache
Installing laravel/framework (v6.20.27): Downloading (100%)
Installing voku/portable-ascii (1.5.6): Downloading (100%)
Installing fideloper/proxy (4.4.1): Downloading (100%)
Installing php-parallel-lint/php-console-color (v0.3): Downloading (connectiDownloading (100%)
Installing php-parallel-lint/php-console-highlighter (v0.5): Downloading (coDownloading (100%)
Installing nikic/php-parser (v4.10.5): Downloading (100%)
Installing dnoegel/php-xdg-base-dir (v0.1.1): Loading from cache
Installing psy/psysh (v0.9.12): Downloading (100%)
Installing laravel/tinker (v1.0.10): Downloading (100%)
Installing laravel/ui (v1.3.0): Downloading (100%)
Installing psr/http-message (1.0.1): Loading from cache
Installing doctrine/event-manager (1.1.1): Downloading (100%)
Installing doctrine/cache (1.11.2): Downloading (100%)
Installing doctrine/deprecations (v0.5.3): Downloading (100%)
Installing doctrine/dbal (2.13.1): Downloading (100%)
Installing psr/http-factory (1.0.1): Downloading (100%)
Installing php-http/message-factory (v1.0.2): Downloading (100%)
Installing nyholm/psr7 (1.4.0): Downloading (100%)
Installing aimeos/map (2.2.0): Downloading (100%)
Installing aimeos/aimeos-core (2021.04.6): Downloading (100%)
Installing aimeos/ai-controller-frontend (2021.04.2): Downloading (connectinDownloading (100%)
Installing aimeos/ai-controller-jobs (2021.04.4): Downloading (connecting...Downloading (100%)
Installing aimeos/ai-client-jsonapi (2021.04.1):Downloading (100%)         )
Installing tecnickcom/tcpdf (6.4.1): Downloading (100%)
Installing aimeos/ai-client-html (2021.04.10): Downloading (100%)
Installing aimeos/ai-admin-jsonadm (2021.04.1): Downloading (100%)
Installing aimeos/ai-admin-jqadm (2021.04.7): Downloading (100%)
Installing aimeos/ai-laravel (2021.04.5): Downloading (100%)
Installing aimeos/ai-gettext (2021.04.1): Downloading (100%)
Installing aimeos/ai-swiftmailer (2021.04.1): Downloading (100%)
Installing laminas/laminas-zendframework-bridge (1.2.0): Downloading (connecDownloading (100%)
Installing laminas/laminas-diactoros (2.6.0): Downloading (100%)
Installing symfony/psr-http-message-bridge (v2.1.0): Downloading (connectingDownloading (100%)
Installing aimeos/aimeos-laravel (2021.04.3): Downloading (100%)
Installing aimeos/ai-cms-grapesjs (2021.04.3): Downloading (100%)
Installing scrivo/highlight.php (v<IP_ADDRESS>): Downloading (100%)
Installing facade/ignition-contracts (1.0.2): Downloading (100%)
Installing facade/flare-client-php (1.8.0): Downloading (100%)
Installing filp/whoops (2.12.1): Downloading (100%)
Installing facade/ignition (1.16.15): Downloading (100%)
Installing fzaninotto/faker (v1.9.2): Downloading (100%)
Installing hamcrest/hamcrest-php (v2.0.1): Loading from cache
Installing mockery/mockery (1.4.3): Downloading (100%)
Installing nunomaduro/collision (v3.2.0): Downloading (100%)
Installing sebastian/version (3.0.2): Downloading (100%)
Installing sebastian/type (2.3.1): Downloading (100%)
Installing sebastian/resource-operations (3.0.3): Downloading (connecting...Downloading (100%)
Installing sebastian/recursion-context (4.0.4): Downloading (100%)
Installing sebastian/object-reflector (2.0.4): Downloading (100%)
Installing sebastian/object-enumerator (4.0.4): Downloading (100%)
Installing sebastian/global-state (5.0.2): Downloading (100%)
Installing sebastian/exporter (4.0.3): Downloading (100%)
Installing sebastian/environment (5.1.3): Downloading (100%)
Installing sebastian/diff (4.0.4): Downloading (100%)
Installing sebastian/comparator (4.0.6): Downloading (100%)
Installing sebastian/code-unit (1.0.8): Downloading (100%)
Installing sebastian/cli-parser (1.0.1): Downloading (100%)
Installing phpunit/php-timer (5.0.3): Downloading (100%)
Installing phpunit/php-text-template (2.0.4): Downloading (100%)
Installing phpunit/php-invoker (3.1.1): Downloading (100%)
Installing phpunit/php-file-iterator (3.0.5): Downloading (100%)
Installing theseer/tokenizer (1.2.0): Loading from cache
Installing sebastian/lines-of-code (1.0.3): Downloading (100%)
Installing sebastian/complexity (2.0.2): Downloading (100%)
Installing sebastian/code-unit-reverse-lookup (2.0.3): Downloading (connectiDownloading (100%)
Installing phpunit/php-code-coverage (9.2.6): Downloading (100%)
Installing doctrine/instantiator (1.4.0): Downloading (100%)
Installing phpspec/prophecy (1.13.0): Downloading (100%)
Installing phar-io/version (3.1.0): Downloading (100%)
Installing phar-io/manifest (2.0.1): Loading from cache
Installing myclabs/deep-copy (1.10.2): Downloading (100%)
Installing phpunit/phpunit (9.5.4): Downloading (100%)
symfony/routing suggests installing symfony/config (For using the all-in-one router or any loader)
symfony/routing suggests installing symfony/yaml (For using the YAML loader)
symfony/routing suggests installing symfony/expression-language (For using expression matching)
symfony/routing suggests installing doctrine/annotations (For using the annotation loader)
paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
symfony/event-dispatcher-contracts suggests installing psr/event-dispatcher
symfony/event-dispatcher suggests installing symfony/dependency-injection
symfony/http-client-contracts suggests installing symfony/http-client-implementation
symfony/http-kernel suggests installing symfony/browser-kit
symfony/http-kernel suggests installing symfony/config
symfony/http-kernel suggests installing symfony/dependency-injection
symfony/service-contracts suggests installing symfony/service-implementation
symfony/console suggests installing symfony/lock
ramsey/uuid suggests installing ext-libsodium (Provides the PECL libsodium extension for use with the SodiumRandomGenerator)
ramsey/uuid suggests installing ext-uuid (Provides the PECL UUID extension for use with the PeclUuidTimeGenerator and PeclUuidRandomGenerator)
ramsey/uuid suggests installing moontoast/math (Provides support for converting UUID to 128-bit integer (in string form).)
ramsey/uuid suggests installing ramsey/uuid-console (A console application for generating UUIDs with ramsey/uuid)
ramsey/uuid suggests installing ramsey/uuid-doctrine (Allows the use of Ramsey\Uuid\Uuid as Doctrine field type.)
ramsey/uuid suggests installing paragonie/random-lib (Provides RandomLib for use with the RandomLibAdapter)
symfony/translation suggests installing symfony/config
symfony/translation suggests installing symfony/yaml
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
monolog/monolog suggests installing elasticsearch/elasticsearch (Allow sending log messages to an Elasticsearch server via official client)
monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongodb (Allow sending log messages to a MongoDB server (via driver))
monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server (via library))
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
league/flysystem suggests installing league/flysystem-eventable-filesystem (Allows you to use EventableFilesystem)
league/flysystem suggests installing league/flysystem-rackspace (Allows you to use Rackspace Cloud Files)
league/flysystem suggests installing league/flysystem-azure (Allows you to use Windows Azure Blob storage)
league/flysystem suggests installing league/flysystem-webdav (Allows you to use WebDAV storage)
league/flysystem suggests installing league/flysystem-aws-s3-v2 (Allows you to use S3 storage with AWS SDK v2)
league/flysystem suggests installing league/flysystem-aws-s3-v3 (Allows you to use S3 storage with AWS SDK v3)
league/flysystem suggests installing spatie/flysystem-dropbox (Allows you to use Dropbox storage)
league/flysystem suggests installing srmklive/flysystem-dropbox-v2 (Allows you to use Dropbox storage for PHP 5 applications)
league/flysystem suggests installing league/flysystem-cached-adapter (Flysystem adapter decorator for metadata caching)
league/flysystem suggests installing league/flysystem-sftp (Allows you to use SFTP server storage via phpseclib)
league/flysystem suggests installing league/flysystem-ziparchive (Allows you to use ZipArchive adapter)
laravel/framework suggests installing ext-memcached (Required to use the memcache cache driver.)
laravel/framework suggests installing ext-pcntl (Required to use all features of the queue worker.)
laravel/framework suggests installing ext-posix (Required to use all features of the queue worker.)
laravel/framework suggests installing ext-redis (Required to use the Redis cache and queue drivers (^4.0|^5.0).)
laravel/framework suggests installing aws/aws-sdk-php (Required to use the SQS queue driver, DynamoDb failed job storage and SES mail driver (^3.155).)
laravel/framework suggests installing fakerphp/faker (Required to use the eloquent factory builder (^1.9.1).)
laravel/framework suggests installing guzzlehttp/guzzle (Required to use the Mailgun mail driver and the ping methods on schedules (^6.3.1|^7.0.1).)
laravel/framework suggests installing league/flysystem-aws-s3-v3 (Required to use the Flysystem S3 driver (^1.0).)
laravel/framework suggests installing league/flysystem-cached-adapter (Required to use the Flysystem cache (^1.0).)
laravel/framework suggests installing league/flysystem-sftp (Required to use the Flysystem SFTP driver (^1.0).)
laravel/framework suggests installing moontoast/math (Required to use ordered UUIDs (^1.1).)
laravel/framework suggests installing pda/pheanstalk (Required to use the beanstalk queue driver (^4.0).)
laravel/framework suggests installing predis/predis (Required to use the predis connector (^1.1.2).)
laravel/framework suggests installing pusher/pusher-php-server (Required to use the Pusher broadcast driver (^4.0).)
laravel/framework suggests installing symfony/cache (Required to PSR-6 cache bridge (^4.3.4).)
laravel/framework suggests installing wildbit/swiftmailer-postmark (Required to use Postmark mail driver (^3.0).)
psy/psysh suggests installing ext-pcntl (Enabling the PCNTL extension makes PsySH a lot happier :))
psy/psysh suggests installing ext-posix (If you have PCNTL, you'll want the POSIX extension as well.)
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
psy/psysh suggests installing hoa/console (A pure PHP readline implementation. You'll want this if your PHP install doesn't already support readline or libedit.)
doctrine/cache suggests installing alcaeus/mongo-php-adapter (Required to use legacy MongoDB driver)
filp/whoops suggests installing whoops/soap (Formats errors as SOAP responses)
facade/ignition suggests installing laravel/telescope (^2.0)
sebastian/global-state suggests installing ext-uopz ()
sebastian/environment suggests installing ext-posix ()
phpunit/php-invoker suggests installing ext-pcntl ()
phpunit/php-code-coverage suggests installing ext-pcov ()
phpunit/php-code-coverage suggests installing ext-xdebug ()
phpunit/phpunit suggests installing ext-soap ()
phpunit/phpunit suggests installing ext-xdebug (*)
Package fzaninotto/faker is abandoned, you should avoid using it. No replacement was suggested.
Writing lock file
Generating optimized autoload files

Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover --ansi

Aimeos\MW\DB\Exception  : SQLSTATE[42S02]: Base table or view not found: 1146 Table 'laravel.mshop_locale_site' doesn't exist:
SELECT
mlocsi."id" AS "locale.site.id", mlocsi."siteid" AS "locale.site.siteid",
mlocsi."code" AS "locale.site.code", mlocsi."label" AS "locale.site.label",
mlocsi."config" AS "locale.site.config", mlocsi."status" AS "locale.site.status",
mlocsi."editor" AS "locale.site.editor", mlocsi."mtime" AS "locale.site.mtime",
mlocsi."ctime" AS "locale.site.ctime"
FROM "mshop_locale_site" AS mlocsi
WHERE mlocsi."level" = 0 AND ( mlocsi."code" = 'default' )
ORDER BY mlocsi."id" ASC
LIMIT 1 OFFSET 0
at G:\myshop\vendor\aimeos\aimeos-core\lib\mwlib\src\MW\DB\Statement\DBAL\Simple.php:75
71|         {
72|                 try {
73|                         $result = $this->exec();
74|                 } catch( \PDOException $e ) {

75|                         throw new \Aimeos\MW\DB\Exception( $e->getMessage() . ': ' . $this->sql, $e->getCode() );
76|                 }
77|
78|                 return new \Aimeos\MW\DB\Result\PDO( $result );
79|         }

Exception trace:
1   Aimeos\MW\DB\Statement\DBAL\Simple::execute()
G:\myshop\vendor\aimeos\aimeos-core\lib\mshoplib\src\MShop\Locale\Manager\Site\Standard.php:947
2   Aimeos\MShop\Locale\Manager\Site\Standard::getSearchResults(Object(Aimeos\MW\DB\Connection\DBAL), "
SELECT
mlocsi."id" AS "locale.site.id", mlocsi."siteid" AS "locale.site.siteid",
mlocsi."code" AS "locale.site.code", mlocsi."label" AS "locale.site.label",
mlocsi."config" AS "locale.site.config", mlocsi."status" AS "locale.site.status",
mlocsi."editor" AS "locale.site.editor", mlocsi."mtime" AS "locale.site.mtime",
mlocsi."ctime" AS "locale.site.ctime"
FROM "mshop_locale_site" AS mlocsi
WHERE mlocsi."level" = 0 AND ( mlocsi."code" = 'default' )
ORDER BY mlocsi."id" ASC
LIMIT 1 OFFSET 0
")
G:\myshop\vendor\aimeos\aimeos-core\lib\mshoplib\src\MShop\Locale\Manager\Site\Standard.php:659
Please use the argument -v to see more details.
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
CPN@DESKTOP-EL1GQAD MINGW64 /g

The complete database setup hasn't been executed. Can you try with the latest composer (2.x)?

firstly I tried with composer 2, as it showed the same error I downgraded the composer and tried again and get the same error
Is there any error with php or mysql?
CPN@DESKTOP-EL1GQAD MINGW64 /g/myshop
$ mysql
ERROR 1045 (28000): Access denied for user 'CPN'@'localhost' (using password: NO)
CPN@DESKTOP-EL1GQAD MINGW64 /g/myshop
$ mysql --version
C:\xampp\mysql\bin\mysql.exe  Ver 15.1 Distrib 10.4.19-MariaDB, for Win64 (AMD64), source revision a4139f8d68bd31e80ff6202c093cd232c194ddfd
CPN@DESKTOP-EL1GQAD MINGW64 /g/myshop
$ php
CPN@DESKTOP-EL1GQAD MINGW64 /g/myshop
$ php -version
PHP 7.4.19 (cli) (built: May  4 2021 14:24:38) ( ZTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
CPN@DESKTOP-EL1GQAD MINGW64 /g/myshop
$

Your setup looks OK even though we know that Windows environments are not always working out of the box.
The commands that haven't been executed in your setup are:
https://github.com/aimeos/aimeos/blob/master/composer.json#L63-L68

Your setup looks OK even though we know that Windows environments are not always working out of the box.
The commands that haven't been executed in your setup are:
https://github.com/aimeos/aimeos/blob/master/composer.json#L63-L68

So how we solve this problem
Please advise

You can run the composer script manually: composer run-script post-create-project-cmd

We've found the problem and released a new version. Can you please run composer create-project aimeos/aimeos myshop again?

I've the same problem.
Missing some tables after the installation process.

Illuminate\Database\QueryException SQLSTATE[42S02]: Base table or view not found: 1146 Table 'a_data.sessions' doesn't exist (SQL: select * from sessionswhereid= caggjc0COf3dDb5DDoNuQffwU3RosaXTGE4ge4dp limit 1)

sessions isn't an Aimeos table so you have installed another package which is causing this problem.

Since I had the same problems as the person who opened this topic I tried installing laravel and then the aimeos package.
Maybe the sessions table is related to these steps:
composer require laravel/jetstream php artisan jetstream:install livewire npm install && npm run dev

The tables are different so the source of the problem isn't the same.
Maybe you have to run php artisan migrate again to create your missing session table.

Try to upgrade the composer version to 2. It worked for me with the command composer self-update


Exponent

Would be great if this could be added to Exponent.

@elie222 hi, I suggest you to contact our support about AppsFlyer SDK plugin for Exponent. Thank you.


Fix branches in dist-git in tests

After removal of master branch from dist-git, the tests are trying to
pull non-existing branch.
Fixes #1097
Signed-off-by: Matej Focko<EMAIL_ADDRESS>

Also most of the git commands used in tests expect master both on remote and to be created in temporary repository locally:
2 failed, 770 passed, 4 skipped, 187 errors

also it seems that upstream-with-multiple-sources fixture is failing for me locally even without main branch as default, aargh...

recheck


⚠ Bofrost.lu has degraded performance

In 20ceffd, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 999 ms

Resolved: Bofrost.lu performance has improved in 5002fb8 after 6 minutes.


How to debug pixel history of render target?

I'm trying to figure out how to debug the pixel history of a render target that is not my final frame buffer but can find no mention of how to do this in the docs. It would be great if this was added.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: aaff607d-8e67-eeee-bad6-811cec20b1b0
Version Independent ID: 5ba73f6b-c289-53d6-cbe8-b6199c35499b
Content: Walkthrough: Debugging Rendering Errors Due to Shading - Visual Studio (Windows)
Content Source: docs/debugger/graphics/walkthrough-debugging-rendering-errors-due-to-shading.md
Product: visual-studio-windows
Technology: vs-ide-debug
GitHub Login: @Mikejo5000
Microsoft Alias: mikejo

Hi, thanks for the feedback. Unfortunately, we aren't currently planning additional doc updates in this area, because Pix on Windows is the recommended replacement tool.

Hi, thanks for the feedback. Unfortunately, we aren't currently planning additional doc updates in this area, because Pix on Windows is the recommended replacement tool.

Unless I'm mistaken, PIX doesn't support DX11, so it's not a replacement for my purposes.

Are you sure it's a doc issue and that VS supports it? I suggest you try Report a Problem and see if they are able to help.

Yeah I am sure, because I actually figured out how to do it.
So not really a big issue for me anymore, just figured I'd point out a way the docs could have been made more complete.
Cheers! :)

@waltdestler -- Walt, thank you for your considerate follow-up.
@Mikejo5000 -- Mike, please look into this potential documentation issue.


MSBuild support

Our msbuild project file support is shaky at best, This is an item to keep track of the pending work and challenges involved.
The problems:

Differences between xbuild and msbuild (maybe we can get the oss msbuild building and running on mono to replace xbuild)
Using the "right" version of msbuild
Modifying the project file in a way that round trips with VS

Adding references

Hard/Impossible to fix:

SDKs that aren't installed
Customizations made to project files that require context (properties). Maybe we can solve this with configuration?

Brain dump from conversation with msbuild expert:

VS 2012 and earlier (4.X): Uses the project ToolsVersion unless that ToolsVersion does not exist, in which case it falls back to 4.0
VS 2013 and later (12.0+): Uses the "current" ToolsVersion (same as the engine, so 12.0 on msbuild 12, 14.0 on msbuild 14)
The engine and tasks both have to run against the same version of the framework (*Microsoft.Build.Framework.dll, that is')
The Tasks and Utilities assemblies are versioned in the file name, but that doesn't really matter as long as the version of M.B.Framework matches

Detecting the correct target platform needs to be done too. Omnisharp-roslyn seems to default to x86 for me. I worked around this by adding { "Platform", "AnyCPU"} the properties dictionary used by omnisharp-roslyn when creating a ProjectCollection.
Without this I got this error:

[ERROR:OmniSharp.MSBuild.MSBuildProjectSystem] The OutputPath property is not set for ? project 'NameSpace.CoolProject.csproj'.  Please check to make sure that you have specified a valid combination of Configuration and Platform for this project.  Configuration='Debug'  Platform='x86'.

I was today struggling with getting our MSBuild (VS 2015) projects to work with OmniSharp-roslyn, basically because it somehow defaults to $(Configuration)=Debug and $(Platform)=AnyCPU, but such platform does not exist neither in solution or project.
I have managed to get rid of the error simply settings the platform in ProjectFileInfo::Create to { "Platform", "x64" }, but this is really hackish way.
Is there any other, more elegant, probably via config.json way to set the platform?

Most MSBuild files default to $(Configuration)=Debug and $(Platform)=AnyCPU if they're not specified. I think we need a way for an OmniSharp host to change a project's Configuration and Platform dynamically (maybe some endpoint). This is also needed to set TargetFramework for multi-targeting projects.

I will close this issue as outdated. The msbuild support is much better since and many of the issues here have been addressed. There is a comprehensive look up process (bundled msbuild, mono msbuild, VS msbuild etc.). xbuild support has been dropped and there is a config setting to provide custom msbuild if needed. Nuget SDK resolver support has been added too giving support for Arcade, QDK and other custom SDK.
For the persisting problems, we have individual issues open.


Option to read file contents from stdin

Description

When the --stdin option is set, ARGV is cleared and a new Blob is created using the file contents from ARGF.read.
This is useful when calling Linguist from another program when the file contents do not exist on disk.
Checklist:

[x] I am adding new or changing current functionality

[ ] I have added or updated the tests for the new or changed functionality.

Hold up. What exactly is Linguist expected to do with the input when it has no way of knowing its origin?
λ GitHub-Linguist (read-stdin): bundle exec bin/github-linguist -s < .gitmodules
/Users/Alhadis/Forks/GitHub-Linguist: 1274 lines (1274 sloc)
  type:      Text
  mime type: text/plain
  language:
λ GitHub-Linguist (read-stdin): bundle exec bin/github-linguist --breakdown -s < .gitmodules
/Users/Alhadis/Forks/GitHub-Linguist: 1274 lines (1274 sloc)
  type:      Text
  mime type: text/plain
  language:

As I understand it, Linguist doesn't need to know the origin, just the filename and contents. The filename is missing from those examples:
 bundle exec bin/github-linguist --breakdown -s .gitmodules < .gitmodules
.gitmodules: 1274 lines (1274 sloc)
  type:      Text
  mime type: text/plain
  language:  Git Config
  appears to be a vendored file

bundle exec bin/github-linguist -s nonexistentfile.yml < grammars.yml
nonexistentfile.yml: 1155 lines (1155 sloc)
  type:      Text
  mime type: text/x-yaml
  language:  YAML

@mschuldt I think you have some misconceptions about standard input and how it works, exactly. It won't always come from a filename—a lot of the time, it's piped through from a command, which may or may not have consulted the filesystem in order to generate its output. If it's required that a filename be present, then you should just… specify a filename. The feature you're proposing goes against user expectations and adds complexity to Linguist that's difficult to explain or justify.

yeah, I'm expecting this feature to only be useful in those cases where stdin is not redirected from a file, otherwise I see no point.
I think that any program that can invoke Linguist with file contents will also have access to the file name and not have a problem adding it to the cli command. I've only been thinking about this feature in contexts where there is no access to a filesystem, just access to internal representations of files. I don't imagine this being useful as part of a bash pipeline.
In any case I don't care enough about this to spend much time modifying it. If it's confusing and and folks don't care then I'm fine just dropping it, it worked ok for me and it's easy enough for others to implement themselves if needed.

I've only been thinking about this feature in contexts where there is no access to a filesystem, just access to internal representations of files.

But in order to redirect from a file, you still need access to the filesystem. So this still doesn't make any sense.
I'm still confused as to why you'd redirect from a file instead of passing it as an argument…  The former takes the same number of keystrokes as the latter, plus one extra for the < operator. But as far as the shell's concerned, if it can't access the file being redirected, it won't even get as far as execve(2). The command won't run, period:
$ cat /tmp/some-cmd.sh
#!/bin/sh
echo >&2 'Called it!'

$ /tmp/some-cmd.sh < /etc/master.passwd
-bash: /etc/master.passwd: Permission denied

I'm not redirecting from a file. That is just a convenient way for everyone to test this functionality.
I am invoking Linguist as a subprocess from Python in a task handler running on a random machine.
The file contents are accessed as a byte array from the arguments and sent to the Linguist process as stdin.

I'm not redirecting from a file. That is just a convenient way for everyone to test this functionality.

In that case, I recommend implementing this feature as an entirely separate mode of operation:
$ # List all languages that would potentially match 'foo.h'
$ github-linguist --test-path="foo.h"
C
C++
Objective-C

$ # As above, but give the classifier something to chow down on
$ github-linguist --test-path="foo.h" --test-string="@interface"
Objective-C

Additional options could be added to test interpreter names (for hashbangs) and language aliases (for modelines, linguist-language attributes, etc):
$ github-linguist --test-interpreter="python3"
Python

$ github-linguist --test-name="cpp"
C++

Nudge nudge

The approach proposed by @Alhadis makes sense to me, but I don't think this is important enough for me to put more time into it

Thanks for the update. In this case, I think it's best to close this PR. It can be picked up by someone later if there's demand for it.


TLS doesn't work - Error: Confidentiality required (13) for user

TLS configuration doesn't work.  However in the UI I get:

Here is docker-compose:
ldapadmin:
        image: osixia/phpldapadmin:latest
        hostname: ldapadmin
        environment:
            - PHPLDAPADMIN_LDAP_HOSTS=openldap
            - PHPLDAPADMIN_HTTPS=false
            - PHPLDAPADMIN_TRUST_PROXY_SSL=true
            - PHPLDAPADMIN_LDAP_CLIENT_TLS=true
            - LDAP_CLIENT_SSL_HELPER_PREFIX=ldaps

LDAP server logs:
5ea0c90b conn=1027 fd=12 ACCEPT from IP=<IP_ADDRESS>:35904 (IP=<IP_ADDRESS>:389)
5ea0c90b conn=1027 op=0 BIND dn="cn=admin,dc=mydomain,dc=com" method=128
5ea0c90b conn=1027 op=0 RESULT tag=97 err=13 text=confidentiality required
5ea0c90b conn=1027 op=1 UNBIND
5ea0c90b conn=1027 fd=12 closed

I have tried:
Copying the CA, cert and key from openldap container in /container/service/:ssl-tools/assets/default-ca/default-ca.pem and using them with:

PHPLDAPADMIN_LDAP_CLIENT_TLS_CA_CRT_FILENAME
PHPLDAPADMIN_LDAP_CLIENT_TLS_CRT_FILENAME
PHPLDAPADMIN_LDAP_CLIENT_TLS_KEY_FILENAME

Still the same problem. Why?

I solved it with help from: #64 and #33. My compose now looks like this:
ldapadmin:
        image: osixia/phpldapadmin:latest
        hostname: ldapadmin
        environment:
            PHPLDAPADMIN_LDAP_CLIENT_TLS: "true"
            PHPLDAPADMIN_LDAP_HOSTS: "#PYTHON2BASH:[{'openldap': [{'server': [{'tls': True}]}]}]"
            PHPLDAPADMIN_LDAP_CLIENT_TLS_CA_CRT_FILENAME: openldapca.pem

Note that openldapca.pem was copied from default-ca.pem from within the openldap container as described previously. Thanks!


[GLUTEN-1632][CH]Daily Update Clickhouse Version (20230720)

Auto commit by gluten daily build, please check the build status and merge it if it's green.

Compatible with current gluten


Adaptable content

1. 🗜Resize Text
Users must be able to resize text, without using assistive technology, up to 200% with no loss of content or functionality - WCAG 1.4.4
### Tasks
- [ ] When you click on the Read The Docs version switcher (the black one on bottom right), the button to close it becomes obscured and the dropdown cannot be closed.

2. 📐Text spacing
Users must be able to adjust text spacing with no loss of content or functionality - WCAG 1.4.12
### Tasks
- [ ] The text visible in the version switcher doesn't pass this test
- [ ] The "Search" & "Ctrl K" text on the search bar doesn't pass this test
- [ ] 	The "Search the docs..." text when you click the search button
- [ ] The "More" label of the "More" dropdown in the header nav

The Read the Docs version switcher might be out of scope for us to fix, but if we have time, we can give it a try. I suspect that a lot of the sites that use PyData Theme might turn on the option for the Read The Docs switcher, so it would be nice if we could get that fixed upstream so that our users downstream won't inadvertently create accessibility issues on their sites by using Read the Docs. Does that sound about right, @trallard?

Note that RTD folks are doing a redesign of the flyout
Mentioned in https://github.com/pydata/pydata-sphinx-theme/pull/1398
Ref: https://blog.readthedocs.com/addons-flyout-menu-beta/


Can you make the "add torrent" dialog box more user friendly?

A few hours ago, I was explaining to a friend how elementum's "add torrent" option works, because he wanted to play a torrent he had stored locally. This is what the add torrent dialog box looks like by default

As usual, one has to first select "file" from the right side and then click on the almost invisible box under file path to open kodi's built in file browser and find the file. Can this be made more user friendly somehow?
If not, in case there is some limitation within kodi itself for such dialog boxes, how about making 2 entries in the main menu, one for adding a torrent file, which would pop kodi's file browser, and one for adding a magnet link, which would obviously pop up kodi's on screen keyboard?

I have no plans to make this. It need a lot of time.
If anyone makes that and submits a PR - I would review it, for sure.

If someone wants to make changes to new torrent window - I will review the Pull Request.
I can't see any obvious ways to make if different.

How does the NEW add torrent window look? I made the update to 0.1.28 a couple of minutes ago, restarted kodi just in case, but the add torrent window looks like the one on my pic above.

There is no new window.
You can make changes and pull request them to include in the plugin.
I have no plans to change that window.

Oh ok. I wish I knew coding so as to help :(


Update twilight support to twilight 0.11

It does not seem possible to still support a range of versions since
the signatures of a method have changed.

Looks good to me; thanks!


client: return context error

Fix https://github.com/coreos/etcd/issues/3209.

package main

import (
	"fmt"
	"log"
	"time"

	"github.com/coreos/etcd/client"
	"golang.org/x/net/context"
)

func main() {
	cfg := client.Config{
		Endpoints:               []string{"http://<IP_ADDRESS>:2379"},
		Transport:               client.DefaultTransport,
		HeaderTimeoutPerRequest: time.Second,
	}
	c, err := client.New(cfg)
	if err != nil {
		log.Fatal(err)
	}
	kapi := client.NewKeysAPI(c)

	if _, err := kapi.Set(context.Background(), "/foo", "bar", nil); err != nil {
		log.Fatal(err)
	}

	go func() {
		for {
			time.Sleep(3 * time.Second)
			if _, err := kapi.Set(context.Background(), "/foo", "bar", nil); err != nil {
				log.Fatal(err)
			}
		}
	}()
	w := kapi.Watcher("/foo", nil)

	ctx, cancel := context.WithCancel(context.TODO())
	for {
		resp, err := w.Next(ctx)
		if err != nil {
			log.Fatal(err)
		}
		fmt.Println("w.Next:", resp)
		cancel()
	}
}

Before:
w.Next: &{set {Key: /foo, CreatedIndex: 23, ModifiedIndex: 23, TTL: 0} {Key: /foo, CreatedIndex: 22, ModifiedIndex: 22, TTL: 0} 22}
2016/03/29 11:05:44 client: etcd cluster is unavailable or misconfigured

After:
w.Next: &{set {Key: /foo, CreatedIndex: 9, ModifiedIndex: 9, TTL: 0} {Key: /foo, CreatedIndex: 8, ModifiedIndex: 8, TTL: 0} 8}
2016/03/29 11:10:26 context canceled

/cc @xiang90 @heyitsanthony
Please review. Thanks.

So if anybody wants to reproduce, run https://github.com/coreos/etcd/pull/4898#issuecomment-203032628 with and without vendoring in current master branch in a separate project.

tested the same code above and it correctly returns the context canceled error.

lgtm

@gyuho Can we add a test for this to ensure there is no regression in the future?
@mwitkow It would be great if you can test this commit!

@xiang90 Sure, will add test cases for this. Thanks.

tests failing. looking now.

fixed the test failure by keeping the old logic.

@xiang90 Just rolled back the test. I think this is only testable outside of etcd project, since any directory within etcd project will use the vendored context package. I can confirm that it works with the code https://github.com/coreos/etcd/pull/4898#issuecomment-203032628. And the case when context error types do not match only happens when the client package is imported in a separate project.
I might be wrong. Any thoughts?

@gyuho I think you can create a fakeContext struct in the test which implements context.Context interface. Then it can be tested.

@xiang90 Ok sounds good. I will try that. Thanks.

@xiang90 PTAL.
Without patch:
--- FAIL: TestHTTPClusterClientDoCanceledContext (0.00s)
	client_test.go:488: err = client: etcd cluster is unavailable or misconfigured, want fake context canceled

With patch:
=== RUN   TestHTTPClusterClientDoCanceledContext
--- PASS: TestHTTPClusterClientDoCanceledContext (0.00s)

Thanks.

lgtm. Thanks!

Thank you.


What are the disadvantages of exposing a StyledProperty as an AvaloniaProperty?

To facilitate code sharing between Avalonia and Xamarin.Forms, I an thinking of exposing generic StyledProperties as non-generic AvaloniaProperties so that I can have one using clause to define properties for both frameworks. Are there any disadvantages in doing so?

From https://github.com/AvaloniaUI/Avalonia/issues/3508
Seems like the only problem is a bit of performance loss?

Yeah, the main reason is that setting up controls from the XAML compiler is a hot path so we've been trying to optimize things as much as possible there. A plain AvaloniaProperty requires several levels of indirection to get to the correct code.
I guess it could be useful for cases like this however, so we could add a special code-path in the XAML compiler for dealing with this. Does a plain AvaloniaProperty work properly on our nightly builds?


Navigation Mode Question

System information

OS Platform and Distribution (Linux Ubuntu 14.04):
Apollo installed from (master):
Apollo version (3.0):

Steps to reproduce the issue:

I was following the navigation mode manual at the following place:http://articles.csdn.net/plus/view.php?aid=15946701, which was the same article posted on Apollo's github page. when I play the recorded bag under the navigation mode, there no blue planning trace shown in front of the car. Also, I was not able to turn on the "Navi Planning" button in the module controller tag. I am wondering what is the main issue causing this happening.

I've actually also change the file "planning_config_navi.pb.txt" as well as "planning_config.pb.txt", both planner_type were set as "NAVI",  but nothing changes before or after I did the modification.

I am hoping if anyone of you could help me out here figuring out why I cannot turn on the Navi Planning module, it seems very weird to me.
Best,
Thank you all.

Seems like you're having the same issue as mine. You can check log messages from /apollo/data/log/planning.INFO or by running bash scripts/navigation_planning.sh start_fe from command line. If it's crashing because of some thread related issues, then I've fixed this issue and you can check PR here: https://github.com/ApolloAuto/apollo/pull/5885

@daviduhm  Hi dude, I could not even find my planning.INFO file under the /apollo/data/log folder. It looks like it was never generated.
I tried the start_fe command and nothing changes either. could you tell me how to fix this issue in a detailed way? I really appreciate it.
Btw, unlike what described in the article, after I send the smoothed reference line, the lane boundary would be covered by a red curve, underneath of which was the original white lane boundary.  Do you by any chance know what causes it ?
Best,
Thank you!

I'm sorry but without seeing any log messages, it's hard to tell what's causing your issue. If you can't even launch the navigation planning module either from dreamview or command line without any error messages, my guess is that you did not build Apollo correctly. Otherwise, you should be able to see some log messages when you run it with start_fe. You can check my fix more in detail from this PR: https://github.com/ApolloAuto/apollo/pull/5885 (see which files I've changed there).
For the red curve, I'm not sure about what article you're referring to (the link above is not correct), but as far as I know that's normal behavior when you send the navigation line data via python navigator.py some-path-file.bag.txt.smoothed.

Hi @yangydavid,  we haven't heard from you for a while. We will close the issue for now. If you have any additional question, please feel free to open a new issue. Our engineer team are more than happy to help that.
Thank you for supporting Apollo!


Add support for multiple linked accounts

Makes the oauth callback page more generic using dynamic routing so the follow up POST request works for all login services.
Updates the user page to handle the possibility of multiple linked accounts and missing information (i.e. rendering is no longer hardcoded to GitHub only). This involved changing the layout of the details quite a bit so that avatars are all displayed and associated to their service.
Update the login status component to use a fallback chain of the possible avatars.
Reuses the login page to allow linking further services to one account (see note below).

How it looks:

Notes:

This is made to work with Daniel's WIP backend branch: https://github.com/danielsilverstone-ct/backend/tree/add-gitlab-auth and should not be merged until the backend is.
We may change the structure from /userinfo to be more regular so it can be used more generically here.
As this touches the same page as #224 I expect they will conflict.
I think it would be nicer to display the unlinked but available services directly on the user page in the same style as the linked account elements (instead of linking back to the login page). The only reason I haven't done that yet is because of limited time and I wanted to get this open so that the option to merge is there before my work hours next week.

Closes #215

Structurally I thnk I'd prefer if the linked account pills were arranged in a row rather than a column, i.e. some max-width'd flex thingy, but I'm not a style person so perhaps ignore me :D  I won't do a full review since this is only WIP and as a non-UI person I don't feel I'll be very useful until it's closer to ready.  Plus, now that the backend of user-deletion is merged, I'll rebase my multi-account branch for backend and refactor the userinfo, so we'll want this branch to also deal with that before we merge either.

Oh yeah I like that suggestion :grin: Think it should be a few simple css tweaks


Enhancement: Revise prompt text on search box on landing page + enlarge search box

Enlarging the search box will give it prominence on the landing page + your text prompts won't be cut off
URL: https://spicygreenbook.com/
EDIT: "Search/Cuisine" to "Search food type or cuisine"
EDIT: "Near Location" to "Choose location"

EDIT: "Tacos, bbq, cheesecake" to "Tacos, BBQ, Caribbean" (or something that indicates cuisine type)
EDIT: "Enter location or keyword" to "City or state" (or whatever search terms you are using for location)


Something wrong

Hello,
I think there's something wrong with the implementation. I actually do not understand how you came up with this, it's just not DTW, is it?
As example consider dtw(np.array([1.,0]),np.array([0.,2.,2])).
Your implementation yields as cost matrix
(1  2  3
1  3  5)
going down and then twice to the right.
The correct cost matrix would be
(1  2  3
1  3  4)
going to the right and then diagonally down.
Best regards
Tobias

I believe there are actually several ways to calculate a valid cost matrix (depending on how you break ties, etc.)
During the development of this algorithm, I tried to design it to agree with the dtw package for R
If you have cases that disagree with the reference implementation, that is certainly something I'd like to know about. In this case, however, the R implementation agrees with this package.
> dtw(x=c(1.0,0.0),y=c(0.0,2.0,2.0), keep.internals=TRUE)$costMatrix
     [,1] [,2] [,3]
[1,]    1    2    3
[2,]    1    3    5

Thank you for your response Paul.
Anyway, maybe you could mention in the ReadMe that the result that your method yields are not identical to those of standard DTW as for example described on Wikipedia
https://en.wikipedia.org/wiki/Dynamic_time_warping
or (really well explained) in section 2.1 of the following paper
https://www.cs.ucr.edu/~eamonn/KAIS_2004_warping.pdf
Kind regards
Tobias

If you continue reading (in the paper you linked) to section 3, you will see that the cost matrix calculated depends on the step pattern used in the DTW algorithm. The algorithm I provide here intentionally uses the same step pattern as the default from the R package, a common step pattern which they call symmetric2. The step pattern used in the version shown on the Wikipedia page uses the equivalent of symmetric1 from the R package.
It is probably worth knowing the step pattern being used, so I will add it to the README. Thanks for the suggestion. But I don't think it would be correct to assume there is a "standard" DTW step pattern.

Perfect, thank you.
I guess the symmetric1 pattern is the most intuitive and basic one. Symmetric2 seems to be modified to be able to normalize the resulting distances, but seems to penalize diagonal steps? Just wondering right now, if it actually yields a positive distance when one compares two identical timeseries (say x=y=np.arange(10)). I have to try that out. Anyway, different applications have of course different requirements and different step patterns make sense, thank you for clarifying.


Move the caret / selection in SelectionDuplicate

Like FD, IntelliJ IDEA also has a Ctrl+D shortcut to duplicate the current selection (or line if the selection is empty), but it also

moves the caret down one line if a line is duplicated
moves the selection to the duplicated text if the selection is duplicated

I think this is convenient, so I implemented the same behavior here.
It does seem a little counter-intuitive when you undo the duplication, because the selection doesn't go back to what it was before. I tried Begin / EndUndoAction(), but Scintilla doesn't care about selection changes in the undo history.
The docs say:

Scintilla saves actions that change the document. Scintilla does not save caret and selection movements, view scrolling and the like.

I'm not sure how this behavior could be emulated either, there are undo / redo event listeners, but I don't know how you would be able to tell that what's being undone / redone is a SelectionDuplicate action.

Instead of modifying the builtin method, please create a new one so that we don't break any existing code that use this method.

I don't think it's used anyhwere else (VS says 0 references, though it doesn't detect the one in mainmenu.xml of course).

3rd party plugins. :)

Done.


Custom Button Card Animation and State not working Correctly

I created a Custom Button Card for a Fan, with a style animation to rotate and flash the fan icon once the button is pressed. The YAML worked perfected once, but since then the style animation does not work and the state, i.e. on or off does not reflect the actual state of the entity
Here is the YAML, any thoughts are appreciated.
type: custom:button-card
state:

value: 'on'
color: cyan
value: 'off'
color: orange
styles:
icon:

animation:

rotating 2s ease
blink 1s ease
tap_action:
action: toggle
entity: script.1628793366175
show_name: true
show_state: true
icon: mdi:fan
name: Low

Home Assistant Version -  2021.06.8

So how about the normal fan card working?

Actually, the normal fan card doesn't show the correct on and off-state either.  I'm guessing it's a bug in V2?


set template filter to all, add custom market label to market cards

https://github.com/AugurProject/augur/issues/8812

set default template filter to 'all'
put custom market label on market cards.

@Mergifyio backport dev


Implement Container V2 for std::deque

Summary
Implement Container V2 for std::deque libstdc++ implementation. Fixes #316
Test plan
The OIL tests have been enabled and their values updated.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (d232a5d) 62.39% compared to head (d15c385) 62.39%.
Report is 11 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #467   +/-   ##
=======================================
  Coverage   62.39%   62.39%
=======================================
  Files         123      123
  Lines       12008    12008
  Branches     1957     1957
=======================================
  Hits         7492     7492
  Misses       3571     3571
  Partials      945      945

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


[tool_crash] FileSystemException: Cannot open file, OS Error: Access is denied., errno = 5

Steps to Reproduce

...
...
...

Logs

Hi @Oma-Kharis
I see there's an open issue addressing the case you described.
Please follow up on that issue, I'm closing the current one as duplicate.
If you disagree, please write in the comments and I will reopen it.
Thank you

Thanks, I have been able to sort that out. But now I can't use my phone as emulator, how do I go around that?


adds scholarship application

Description of changes

Moves third party Scholarship Application process in-house.
Pictures
http://imgur.com/a/g7lXB
Notes

Hat picture from profile page is currently linked to an outside source, will need to find replacement
To populate your local database run this command in rails c Scholarship.create(name: "", description: "", location: "", terms: "", open_time: DateTime.now, close_time: DateTime.now + 30) fill in the blank values by copy pasting from here

Issue Resolved

Fixes #357

RE: Your hat note
Font-Awesome is currently a dependency, so you can just utilize this: http://fontawesome.io/icon/graduation-cap/
See contact.js for usage.

Haven't spun up the back-end in awhile, but I'll give this branch a hard look-over by Saturday night, if nobody else has checked on it.

Okay cool, I was going to ask about this today because it's ready to go. If you'd like to seed your local database feel free to copy the case statement from here then run rake db:seed

@Cooperbuilt No worries Coop, thank you!


How to download Python packages directly from cache to avoid having to download them from the network every time

They should be downloaded from the cache by default. Can you share a command with output to help me understand what you're seeing?

@charliermarsh
I have already downloaded the torch package and I want to test downloading the same torch package in another file, but UV still downloaded it from the network and not from the cache

@charliermarsh

我已经下载了 torch 软件包，并且我想在另一个文件中测试下载相同的 torch 软件包，但 UV 仍然从网络而不是缓存下载了它

@charliermarsh  I found that other packages can be downloaded from the cache, but Torch cannot. I hope this can be improved


imds java sample

@garimakhulbe,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


feat: add search components & enhancements

Added: New useFuseSearch composables to facilitate developer calls
Added: Added extendKeys configuration item to extend the fields obtained by search
Fixed: [yun] Fixed the issue where isLocked was ineffective in the yun theme
Changed: keys no longer extends the field 'content', but uses extendKeys for field extension
Changed: [yun] Updated the search code for the yun theme and encapsulated the hotkey tool

useFuseSearch demo
<script lang="ts" setup>
import { onMounted, ref } from 'vue'
import { useFuseSearch } from 'valaxy'

const input = ref()

const { results } = useFuseSearch(input)
</script>

<template>
  <input v-model="input">
</template>

extendKeys demo
import { defineSiteConfig } from 'valaxy'

export default defineSiteConfig({
  fuse: {
    extendKeys: ['cover'],
  },
})

Could you add more description for the difference between extendKeys and keys?

That’s a wrap

The extendKeys configuration item needs to be modified and is not recommended to be written in siteConfig.

The extendKeys configuration item needs to be modified and is not recommended to be written in siteConfig.

I'm a little confused about this.


don't treat readonly properties specially

When we tag a property readonly in the attribute map, msrest will cut it from the payload before sending it
So we actually don't needany kind of condition to say "ho readonly, then None"
So treat a readonly property as an optional property

decided to keep treating readolny properties specially

decided to keep treating readolny properties specially


Jenkins pipeline plugins HTTP 500

I am using latest version for Hygieia and the jenkins plugin, while I publish from jenkinsfile (pipeline) getting this error:

[Pipeline] hygieiaDeployPublishStep
Hygieia: Failed Publishing Build Data for Deployment Publishing. Response Code: 500. Response Value= {timestamp:1487753969114,status:500,error:Internal Server Error,exception:java.lang.StackOverflowError,message:No message available,path:/api/build}
Hygieia Deployment Publisher - Looking for file pattern '*.jar' in directory /home/ejvqa-win-01-jenkins/workspace/jira-connector/target
Hygieia Deployment Publisher: Processing file: /home/ejvqa-win-01-jenkins/workspace/jira-connector/target/jira-connector-2.0.0.jar
Hygieia Deployment Publisher: Processing file: /home/ejvqa-win-01-jenkins/workspace/jira-connector/target/jira-connector-2.0.0-jar-with-dependencies.jar
Hygieia: Published Deploy Data: Response Code: 201. Response Value= "58ad52f15c61b42158f9bb5a"
Hygieia: Published Deploy Data: Response Code: 201. Response Value= "58ad52f15c61b42158f9bb5b"
[Pipeline] }
[Pipeline] // stage

meanwhile in api log :

2017-02-22 17:04:08,185 ERROR c.c.d.rest.RestApiExceptionHandler - Field 'url' cannot be missing or null or empty
com.capitalone.dashboard.misc.HygieiaException: Field 'url' cannot be missing or null or empty
at com.capitalone.dashboard.service.CommitServiceImpl$GitHubv3.str(CommitServiceImpl.java:223) ~[api.jar!/:2.0.5-SNAPSHOT]
at com.capitalone.dashboard.service.CommitServiceImpl$GitHubv3.buildCommits(CommitServiceImpl.java:185) ~[api.jar!/:2.0.5-SNAPSHOT]
at com.capitalone.dashboard.service.CommitServiceImpl$GitHubv3.(CommitServiceImpl.java:140) ~[api.jar!/:2.0.5-SNAPSHOT]
at com.capitalone.dashboard.service.CommitServiceImpl.createFromGitHubv3(CommitServiceImpl.java:92) ~[api.jar!/:2.0.5-SNAPSHOT]
at com.capitalone.dashboard.rest.ZCommitController.createGitHubv3(ZCommitController.java:44) ~[api.jar!/:2.0.5-SNAPSHOT]

@xpdable Refer to https://github.com/capitalone/Hygieia/issues/884 for how to setup your deployment jobs in Jenkins.  If it doesn't help then reopen with screenshots of your hygieia publisher configuration and the deploy job configuration.

First of all, my Hygieia works fine with the plugin in a non jenkinsfile configuration and the connection is fine:

part of my jenkinsfile of Hygieia job :
stage('Hygieia-Build'){         hygieiaDeployPublishStep applicationName: 'jira-connector', artifactDirectory: '/target', artifactGroup: 'com.thomsonreuters.ejvqa', artifactName: '*.jar', artifactVersion: '', buildStatus: 'Success', environmentName: 'Dev'    }
My Jenkins configuration:

Then the above log shows the response 500 error

@satishc1 seems I cannot reopen it but still have I the problem. Could you help ? Thanks

@xpdable Can you also post the screenshot of the hygieia plugin version from Manage Jenkins -> Manage Plugins -> Installed

@satishc1  Please find it at the screenshot above, it's 2.32.2

@xpdable 2.32.2 is the jenkins verison.  I was asking about the hygieia plugin version. Go to Manage Jenkins -> Manage Plugins -> Installed and look for hygieia.

@satishc1

Updated everything.. jenkins plugins dependencies, Hygieia codes .... no more http 50x error.


Transparency works with PNG but not with GIF images

Hello,
I am trying to center a thumbnail within a 120 x 100 image with a transparent background:
      $thumb = new \claviska\SimpleImage();
      $thumb
         ->fromFile($photo)
         ->autoOrient()
         ->bestFit(120, 100);

      $thumb_etendu = new \claviska\SimpleImage();
      $thumb_etendu
         ->fromNew(120,100, 'transparent')
         ->overlay($thumb, 'top left', 1, $off_x, $off_y)
         ->toFile($thumb_name, 'image/png');

It works well with PNG files but with GIF files, the background goes black.

Possibly related to #159.

I'm pretty sure this is related to #159 so I'm closing this issue to focus on a fix there.


GKE-specific?

Given the GKE prefix in the name, is that to say there are any limitations on why this wouldn't be suitable to run elsewhere than only in GKE?

Given that it "just performs lookups and created regular NetworkPolicies" (🎉), it doesn't sound GKE-specific to me?
(but I have mostly checked the README at the moment, might dig more into the source code soon too)

For reference, this one seems like a very similar alternative, no?
https://github.com/giantswarm/dns-network-policy-operator

We have developed this on GKE, and only ever tested it on GKE. In particular, we may be indirectly relying on the behaviour of GKE for DNS resolution in non-obvious ways.
So I think there's a chance it will work on non-GKE cluster, but there's also a chance that it's going to fail in strange ways due to differences on how DNS resolution actually works.
For the other project, I had never seen it, but yes, it does look similar.


Update default Rakudo Star version to 2018.10

Update to newly released 2018.10

@hoelzro, Rakudo Star 2018.10 has just been released. I'm updating the Dockerfile and will submit to the official Docker images library.

Awesome, thanks @jstuder-gh!


Bug: Curtains not working after firmware upgrade

Describe The Bug
After upgrading to 3.9, curtains are not working
To Reproduce
Update to 3.9
Expected behavior
Connect Through BLE

@mrbungle64 do you have SwitchBot Curtains?

@donavanbecker
No, unfortunately I do not have SwitchBot Curtains

@mrbungle64 Sounds good. We do have a wiki that goes over the BLE API, if you make sense of any of it, like the SwitchBot lock, or or any other devices. Your help would be appreciated.
I just know the homebridge-plugin side. But I am managing most of these repos for SwitchBot (I am not an actual employee of SwitchBot).

@donavanbecker
Is this a staged rollout of version 3.9?
I heard from a user that the firmware version of his Curtain is still version 3.1

@mrbungle64 im not sure.

@donavanbecker
Is the affected version number version 3.9 or 3.3 (or maybe both)?
Just to be sure, because I also have a report for version 3.3

I would think both

@donavanbecker
Do you know if there is a way to install a specific older version?

I know there is a firmware recovery feature but not sure other then that.

I know there is a firmware recovery feature but not sure other then that.

@donavanbecker
Where can I find this recovery feature?

@donavanbecker
Thanks 👍🏻 I only looked in the device settings 😉

@mrbungle64 resolved with #111!

I will release a new version

@mrbungle64 Does v1.2.0 work for you now?

@donavanbecker

@mrbungle64 Does v1.2.0 work for you now?

I don't have a Curtain, but there's a report that it's working with v3.9, but also a report that's it's still not working (maybe still v3.3)


Update URL to log into SimpleFIN.

Changes the URL based on feedback from @iffy.

LGTM. Just need to make sure the release-notes CI job passes.


Operator: Translation of gateways components enablement does not work

(NOTE: This is used to report product bugs:
To report a security vulnerability, please visit https://istio.io/about/security-vulnerabilities/
To ask questions about how to use Istio, please visit https://discuss.istio.io
)
Bug description
For IstioControlPlaneSpec translation, translation of gateways components enablement does not work properly, enabling the gateway features would always enable the components as well, ignoring the specific component enablement value.
E.g.
   components:
     ingressGateway:
     - gateway:
         common:
           enabled: false
     egressGateway:
     - gateway:
         common:
           enabled: false
   enabled: true

would translate in ingressGateway and egressGateway enabled: true
Affected product area (please put an X in all that apply)
[ ] Configuration Infrastructure
[ ] Docs
[X ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Expected behavior
Steps to reproduce the bug
Version (include the output of istioctl version --remote and kubectl version)
How was Istio installed?
Environment where bug was observed (cloud vendor, OS, etc)
Additionally, please consider attaching a cluster state archive by attaching
the dump file to this issue.

@morvencao I'ce removed @ostromart as he is probably overloaded on issues for the operator repo and added you as an assigneer.  If you are not interested in solving this problem please unassign yourself.
Cheers
-steve

@sdake Let me take this one.

Hi @morvencao it may be better for me to take this one. It's a little complicated and I know the code pretty well. If you really want to take it I won't fight you for it though :-)

@ostromart Sure, go ahead if you have enough bandwidth to handle this.
I can take other tasks.

Fixed in https://github.com/istio/operator/pull/133.


OSSM-3238: Fix deserializing trust bundles

/retest
the test log doesn't fit the diff that I'm seeing


⚠ Bofrost.de has degraded performance

In 61c6b72, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 991 ms

Resolved: Bofrost.de performance has improved in 7df868a after 6 minutes.