DocumentMapping not finding members in Ubuntu 16.04

When deploying a .net core 2.0 app to Ubuntu 16.04, Marten DocumentMapping fails to find members.
I'm using .net core 2.0 identity and used this Github project as reference to build my UserStore.
My user class is TsUser, it derives from MartenUser.
    public class TsUser : MartenUser
    {
        public string FirstName { get; set; }
        public string LastName { get; set; }

        public string CustomerId { get; set; }
    }

    public class MartenUser : MartenUser<Guid>
    {
        public MartenUser()
        {
            Id = Guid.NewGuid();
        }
    }

    public class MartenUser<TKey> where TKey : IEquatable<TKey>
    {
        public TKey Id { get; set; }
        public string UserName { get; set; }
        public string NormalizedUserName { get; set; }
        public string Email { get; set; }
        public string NormalizedEmail { get; set; }
        public bool EmailConfirmed { get; set; }
        public string PasswordHash { get; set; }
        public string SecurityStamp { get; set; }
        public string PhoneNumber { get; set; }
        public bool PhoneNumberConfirmed { get; set; }
        public bool TwoFactorEnabled { get; set; }
        public bool LockoutEnabled { get; set; }
        public DateTimeOffset? LockoutEnd { get; set; }
        public int AccessFailedCount { get; set; }

        public IList<string> Roles { get; set; } = new List<string>();
        public IList<MartenUserClaim> Claims { get; } = new List<MartenUserClaim>();
        public IList<MartenUserLogin> Logins { get; } = new List<MartenUserLogin>();
    }

A call like var member = DocumentMapping.FindIdMember(typeof(MartenUser)); will find the member fine in local Win10 dev... but will fail when published to Ubuntu 16.04.
I also attempted to remove generics, superclass, and base class of MartenUser, like so:
    public class MartenUser
    {
        public Guid Id { get; set; }
        public string UserName { get; set; }
        public string NormalizedUserName { get; set; }
        public string Email { get; set; }
        public string NormalizedEmail { get; set; }
        public bool EmailConfirmed { get; set; }
        public string PasswordHash { get; set; }
        public string SecurityStamp { get; set; }
        public string PhoneNumber { get; set; }
        public bool PhoneNumberConfirmed { get; set; }
        public bool TwoFactorEnabled { get; set; }
        public bool LockoutEnabled { get; set; }
        public DateTimeOffset? LockoutEnd { get; set; }
        public int AccessFailedCount { get; set; }

        public IList<string> Roles { get; set; } = new List<string>();
        public IList<MartenUserClaim> Claims { get; } = new List<MartenUserClaim>();
        public IList<MartenUserLogin> Logins { get; } = new List<MartenUserLogin>();
    }

Again, local Win10 was fine, Ubuntu failed to find the member.
Stacktrace:
 Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[0]
      An unhandled exception has occurred: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
   at TokyoSpark.Pages.Account.LoginModel.OnGet() in Login.cshtml.cs:line 59
   at Microsoft.AspNetCore.Mvc.RazorPages.Internal.ExecutorFactory.ActionResultHandlerMethod.Execute(Object receiver, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.RazorPages.Internal.PageActionInvoker.<InvokeHandlerMethodAsync>d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.RazorPages.Internal.PageActionInvoker.<InvokeNextPageFilterAsync>d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.AspNetCore.Mvc.RazorPages.Internal.PageActionInvoker.Rethrow(PageHandlerExecutedContext context)
   at Microsoft.AspNetCore.Mvc.RazorPages.Internal.PageActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.RazorPages.Internal.PageActionInvoker.<InvokeInnerFilterAsync>d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeNextResourceFilter>d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeFilterPipelineAsync>d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeAsync>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Builder.RouterMiddleware.<Invoke>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.<Invoke>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>d__6.MoveNext()

Note: Login.cshtml.cs:line 59 is where var member = DocumentMapping.FindIdMember(typeof(MartenUser)); is called.
Possible issue with Marten published to Ubuntu on .net core 2.0?

Quick update. I removed all the generics, base classes, and superclassing that was in the Identity code. Same result. DocumentMapping.FindIdMember(typeof(MartenUser)); runs fine local Win10, fails when published to Ubuntu 16.04 host.
Also, a regular stand alone class fails too. I have an Article class that looks like this:
    public enum StatusType
    {
        Draft,
        Publish
    }

    public class Article
    {
        [Key]
        public Guid Id { get; set; }

        [MaxLength(150)]
        public string Slug { get; set; }

        [Required, MaxLength(150)]
        public string Title { get; set; }

        [Required, MaxLength(150)]
        public string SubTitle { get; set; }

        public string Content { get; set; }

        [MaxLength(255)]
        public string Excerpt { get; set; }

        [MaxLength(150)]
        public string Tags { get; set; }

        [MaxLength(150)]
        public string FeaturedImage { get; set; }

        public StatusType Status { get; set; }
        public DateTime DatePublished { get; set; }
        public DateTime DateLastModified { get; set; }
    }

@Chaddeus Note that Marten is targets .Net standard 1.3 and .Net 4.6. I have sent a PR for targetting .Net standard 2.0 which is yet to be merged. Let me check on this tomorrow and get back to you.

@mysticmind Thanks. Interesting it runs fine local in .Net standard 2.0, but only breaks when published up to my Ubuntu host. Hmm... possibly the SDK on my dev box has more versions installed? (sorry, I'm not there to check right now).
Appreciate the comment, makes me more comfortable this can be solved in a timely manner. ;)
@jeremydmiller is .Net standard 2.0 on the road map "soon-ish?" Sorry, I'm not trying to rush things... just curious.

I've never used Docker, but I'm curious if putting my app inside a Docker container and deploying that to my Ubuntu host would solve this somehow?
Pardon my ignorance if Docker would do nothing here... I literally just started reading about it. :)

@Chaddeus I created a sample ASP.Net MVC targeting .Net Core 2.0 with some Marten code to insert a record. I had done a publish on a windows box, copied the publish folder to a Ubuntu 16.04 box and was able to run it fine without any issues.
I am not sure why you are running into issues. Could you provide a minimal sample app with the issue at your hand for me to check?

Interesting @mysticmind .
Here's something else. If I build the project using the ubuntu runtime target it creates a ton of files. I zip them up, push them to my host, and unzip them.
But when I run the app it throws an exception. I'm not at the console now to see it, but it was something like System.Threading doesn't match the manifest.
Perhaps there's something not right about the dotnet sdk installed on my host?
Hmm... makes me wonder. :)

I'm closing this one for now since it's gone stale. No evidence that this is Marten itself.


When a panel is opened or interacted with, it should move to the topmost depth layer.

Just noticed the main Control Panel also needs that added to it.


Support soft spacing

This idea is under construction!
I was thinking about an idea where you could insert splitters into your output and magicpen would insert newlines until the line was under the preferred width:
pen.text('Hello').split().text('beautiful').split().text('world');

If you want to control indentation of the split you can do it the following way:
pen.text('Hello').split().block(function () {
  this.text('beautiful').split().text('world');
});

Resulting in:
Hello beautiful world

or
Hello beautiful
      world

or
Hello
beautiful
world

The optimal solution is of cause exponential, so we need to find a good heuristic.

Damn the idea probably falls because we can get the size of a pen at any point in time. Back to the drawing board :-S


Workbook adds existing variation as a new one if the move results in promotion

See below, I have twice a move 5.gh8 Q (red below)

Fixed (was the case for non-promotion as well)


Handle typeless columns

Summary:
SQLite allows columns without types. However, sqlglot parses typeless columns as bare identifiers, which breaks an import when we try to reconcile with the columns known to sqlite_utils.
This PR wraps bare identifiers found at the table-schema level (same level as column definitions) in column definitions with a default TEXT type.
Testing:
Correctly imports database with schema defined in typeless_columns.sqltypeless_columns.sql.

Approved, discussed on a call, one comment to add clarifying reasons for the addition of the TEXT type.

Thanks for the review. Column has been added, so I will merge this into doss/update-identifier-handling.


Question: why do these input statements work?

There are a couple of incidents lately where I look at an input statement and do not understand how it could work. Perhaps we can learn something about these mysterious beings by asking the right questions... I was hoping that @antw could help me on my quest.
Climate slider
In this input statement, the user input is used to calculate an update percentage for heating and cooling. Let's look at the cooling one:
x = USER_INPUT();
    cool_factor = 56.69449 * x + 1598.105 * x**2 + 25375.5 * x**3 +<PHONE_NUMBER>3778 * x**4;

User input is between -5 and +5. When constructing this input, I found out that x is actually interpreted by etengine as if it would lie between -0.05 and +0.05. Therefore, I had to multiply the first term in the above equation by 100, the second by 100^2 = 10000 etc. in order to end up with a factor that would represent the actual multiplication factor for the cooling demand. I don't understand how this can be...
households_water_heater_heatpump_air_water_electricity_share
This input was recently fixed because it suddenly started to fail in the Mechanical Turk tests. I don't understand why...
households_water_heater_network_gas_share
This input has an update statement that only contains the following code:
EACH()

I think that is highly suspect but apparently it has been working like this forever. Perhaps it is because the slider is part of a slider group and the others take care of balancing somehow?
Including @dennisschoenmakers @jorisberkhout

Climate slider
User input is between -5 and +5. When constructing this input, I found out that x is actually interpreted by etengine as if it would lie between -0.05 and +0.05.

The update_type attribute is set to %. This will cause the USER_INPUT() to be divided by 100 to convert it to a factor. If you want the original value (between -5 and 5), remove the update_type attribute.

households_water_heater_network_gas_share
I think that is highly suspect but apparently it has been working like this forever. Perhaps it is because the slider is part of a slider group and the others take care of balancing somehow?

You're right, the empty EACH() does nothing. I tested it manually (by editing values in the database so as to ignore the rest of the group) and can confirm that input statement does not set any value. It does not need to do so, however, since the network gas edge is type=flexible. I'm reasonably certain you could remove the EACH() (and probably the entire - query = ... line) without any ill effects.

households_water_heater_heatpump_air_water_electricity_share
This input was recently fixed because it suddenly started to fail in the Mechanical Turk tests. I don't understand why...

Not sure about this one. Will investigate.

@antw thanks for clarifying!


Document best practice for providing a futures interface to APIs which only support polling

Futures 0.3 is based on polling + wakers, where 0.1 was based on just polling. It is not obvious how to upgrade libraries which implemented futures from 0.1 to 0.3, in the case that the underlying API only supports polling and blocking.
As a concrete instance, IPC channels provided an interface to futures 0.1, but it is not obvious how to upgrade this to futures 0.3, as the underlying IPC mechanism doesn't support wakers. (https://github.com/servo/ipc-channel/issues/219) Dedicating a thread per IPC channel to supporting wakers is probably infesible (especially for one-shot channels), but it is not obvious how else to implement the futures 0.3 contract.
Is there documentation for best practice of how to deal with cases like this?

The waker part was also present in 0.1, just tracked through a thread-local (via task::current()) instead of passed as an argument. Upgrading to 0.3 only means passing a Waker to poll methods. If underneath, the operation would actually block, then you would do nothing with the Waker, just like before you weren't doing anything with the task::current().
However, if simply polling will park the thread, that shouldn't be exposed with async interface, since it's expected that polling is quick and won't block.

Hmm, so in cases like ipc, where there is a non-blocking try_recv() and a blocking recv() similar to mpsc channels, what should the implementation of poll be? Something like:
fn poll(self: Pin<&mut Self>, waker: &Waker) -> Poll<Self::Output> {
    match self.try_recv() {
        Ok(val) => Poll::Ready(val),
        Err(_) => Poll::Pending,
}

drops the waker on the floor, will this result in the future never being re-polled, so will never be resolved? Or can futures expect that the executor will re-poll them?

The situation is the same in 0.1 and 0.3: returning NotReady or Pending means you should have scheduled some way to notify the task/waker when it is ready, and most executors will not poll the future again until notified.
The future may sometimes be polled again anyways, such as if part of a larger future (like join or select) if another part of it notified, and it's poll just blindly polls all its sub-futures.
Returning NotReady without scheduling to notify is a common reason futures hang indefinitely.

So what's the best practice for avoiding unresolved futures? Spinning up a per-process thread which does something like binary exponential backoff for polling?

For the particular case of IPC, the underlying API allows selecting between IPC channels, so the cost is one thread per process to wake up IPC futures. I guess that's the best we can hope for.
So, back to the orignal question... the best practice is to spin up a thread dedicated to waking up futures?

That depends on the API that you wrap. Futures always require that some mechanism that signals completion. That one is typically already available if another asynchronous API is wrapped.
The challenge is obviously that asynchronous code always requires that

the code below it is also asynchronous
the code above it is also asynchronous

There is no general solution for what to do if that's not the case. Polling might with some timeout might work for some scenarios, having a thread that e.g. blocks on something (e.g. in combination with a select or WaitForMultipleObjects) and signals Future completions when required might work for other scenarios.

Yeah, in this case the problem is that IPC channels aren't provided with a waker by the OS, so a thread is needed. Ah well, perhaps there isn't general advice about how to do this.


Set Emails to Hidden

Set all current to hidden.
Make hidden the default for new.

@phillip-hopper I updated the config file to have these settings:
DEFAULT_KEEP_EMAIL_PRIVATE = true
NO_REPLY_ADDRESS = noreply.door43.org

I would still like to check in to making all current accounts set to private.

@jag3773 That's been updated in the database table user.keep_email_private for all users, set to 1. So all existing users have their email set to private, and all new users will have their email private. Tested this.

Wow, this is going a lot easier than I could have hoped! Keep up the good work guys!


Service Principals or MSIs for O365 Exchange PowerShell

I can find information to connect to AzureAD PowerShell using a service principal, but it seems like this is not possible for the O365 Exchange PowerShell. Is this correct? I'm sure many orgs have Exchange Admin accounts running some scripts. Do these have to be added as exceptions, or is there some other way to mitigate this, given that MSI and SPs don't seem to work for O365?

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

ID: 53ea4e70-2931-8691-e9cc-13c72b514d9c
Version Independent ID: c1aa4a8f-16b2-79ac-edb1-8a87f51a3f7b
Content: What is a baseline protection in Azure Active Directory conditional access? - preview
Content Source: articles/active-directory/active-directory-conditional-access-baseline-protection.md
Service: active-directory
GitHub Login: @MarkusVi
Microsoft Alias: markvi

@dcnoren Thanks for your feedback! We will investigate and update as appropriate.

@dcnoren Yes, as far as I know it is not possible.  Please post this as a feedback https://feedback.azure.com/forums/169401-azure-active-directory This will allow the community to upvote and for the product team to include into their plans. We also have the "Give Product Feedback" button in our documents now to take you directly to the appropriate feedback page.
You can also post a new MSDN forum post with your scenario details and community will help address your query. Please refer to below link to MSDN forum to ask new question -
https://social.msdn.microsoft.com/Forums/azure/en-US/newthread?category=windowsazureplatform&forum=WindowsAzureAD&prof=required.

@dcnoren We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.

https://office365.uservoice.com/forums/273493-office-365-admin/suggestions/38331076-exchange-online-powershell-with-service-principal
Just started a user voice to support this feature - plz vote!

Has there been any progress on this? With basic authentication being disabled next year for exchange online we need secure methods for automated access to exchange powershell without needing to accept and MFA prompt

not as far as I know...


Special tokens not showing up correctly when tokenized.

I tried adding some special tokens to the vocab of a pretrained model. Made a PR for minor code fix. When I try and encode strings these new tokens are being broken out into many tokens sometimes instead of being encoded as single token.
How do I make sure my special tokens always map to the same id?
code to reproduce what I am seeing:
vocab = tokenmonster.load("englishcode-32000-consistent-v1")

vocab.modify(["<|im_start|>", "<|im_end|>", "<s>"], None, None, 0)

vocab.resize(32000, reset_token_ids=False)

# Tokenize some text
text = [
    "<s>Some text to turn into token IDs. Why is this happening?<|im_end|>",
    "<s>Some text to turn into token IDs. <|im_end|>",
    "<s>Some text to turn into token IDs....<|im_end|>",
]

It's unclear what you're trying to do, what you expect to happen, and what is happening. Please provide the results of what you get, and a description of what you expected to get.


incorrectly branching into cheatcode call during cse summarization

When applying cse kontrol produces a #cheatcode_call branch due to a possible misinterpretation of a symoblic variable when applying #checkCall.
To reproduce, perform the following, using kontrol 1.0.25

Use the UniswapV2 variant from here; a part of the Pi^2 solidity semantic development project. This file contains multiple contracts.
Initialize a foundry project and place the test contract in a separate test directory. In my case all the other contracts reside in a single file under src and the uniswapV2SwapTest was under test
forge test and kontrol build
We will try to get a summary of the uniswapV2Pair.sync() function so run kontrol prove --match-test 'uniswapV2Pair.sync()' --break-on-calls --cse

Should fail as follows:
  Failure reason:
    Matching failed.
    The following cells failed matching individually (antecedent #Implies consequent):
    K_CELL: #cheatcode_error selector ( "balanceOf(address)" ) #buf ( 32 , C_UNISWAPV2PAIR_ID:Int )
    ~> #cheatcode_return 128 32
    ~> #pc [ CALL ]
    ~> #execute #Implies #halt ~> .K
    ~> CONTINUATION:K

After failure, issue kontrol show 'uniswapV2Pair.sync()'

Following is the related part from kcfg
├─ 5
│   k: #checkCall C_UNISWAPV2PAIR_ID:Int 0 ~> #call C_UNISWAPV2PAIR_ID:Int C_UNISWAPV2P ...
│   pc: 2313
│   callDepth: CALLDEPTH_CELL:Int
│   statusCode: STATUSCODE:StatusCode
│   src: src/UniswapV2Swap.sol:290:290
│   method: src%uniswapV2Pair.sync()
┃
┃ (1 step)
┣━━┓
┃  │
┃  ├─ 6
┃  │   k: #cheatcode_call selector ( "balanceOf(address)" ) #buf ( 32 , C_UNISWAPV2PAIR_ID ...
┃  │   pc: 2313
┃  │   callDepth: CALLDEPTH_CELL:Int
┃  │   statusCode: STATUSCODE:StatusCode
┃  │   src: src/UniswapV2Swap.sol:290:290
┃  │   method: src%uniswapV2Pair.sync()
┃  │
┃  │  (1 step)
┃  └─ 8 (stuck, leaf)
┃      k: #cheatcode_error selector ( "balanceOf(address)" ) #buf ( 32 , C_UNISWAPV2PAIR_I ...
┃      pc: 2313
┃      callDepth: CALLDEPTH_CELL:Int
┃      statusCode: CHEATCODE_UNIMPLEMENTED
┃      src: src/UniswapV2Swap.sol:290:290
┃      method: src%uniswapV2Pair.sync()

This is strange, because (I think) this means that C_UNISWAPV2PAIR_ID does not have the constraint that it's different from the cheatcode account address. We normally put this constraint in. @ovatman, what is the full configuration you see in node 5?

Ok, thank you, could you please give me the configuration of node 6 as well?

#And ( { true #Equals ( notBool C_UNISWAPV2PAIR_ID:Int ==Int<PHONE_NUMBER>26547203313410069153905908525362434349 ) }

is there, which should prevent the branching...

@palinatolmach When summarising a function, if one of the parameters is an address, I think that we need to assume that it does not equal the cheatcode account address.

Agreed @PetarMax, I'll open an issue and a PR for it today. Should we do it for an address/contract function parameter, or an address/contract field, or both? Probably both?

Both, I think.

Thanks! Opened and assigned myself: https://github.com/runtimeverification/kontrol/issues/827.


Restore compatibility with opam-state 2.0.x

It's a very minor tweak, but opam 2.0.9's libraries are built with the ability to load a 2.1.0 root, as long as it's loaded read-only. The two ?lock_kind parameters here are present in opam-state 2.0.9 but not in 2.0.8 (and they default to write locks for backwards compatibility).

Indeed - it's https://github.com/ocaml/opam/pull/4547/commits/8b589a0892b6080c11c12f2ca522141c5b935252 combined with https://github.com/ocaml/opam/pull/4742 which will fairly soon be tagged as 2.0.9 🙂


Add origin header

Some relays will outright reject connections when there is no origin header

Sorry, was publishing new pkg so i could use it, forgot about PR


Fetch arc dc config profile list from azdata

Adds a new options source to fetch dc config profile list from azdata arc dc config list command. Also did some code refactoring to simplify creation of OptionsSource object.
This PR fixes #12372
Testing:

End to end testing of dc create scenario
Extension unit tests.

Pull Request Test Coverage Report for Build 280108261

6 of 39 (15.38%)  changed or added relevant lines in 2 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.001%) to 38.178%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

extensions/resource-deployment/src/ui/modelViewUtils.ts
2
3
66.67%

extensions/resource-deployment/src/helpers/optionSources.ts
4
36
11.11%

Files with Coverage Reduction
New Missed Lines
%

extensions/resource-deployment/src/helpers/optionSources.ts
1
17.86%

Totals

Change from base Build 279577623:
0.001%

Covered Lines:
19223

Relevant Lines:
45936

💛  - Coveralls


Executing a Single Test Method using the JUnit 4 Ant Task and Maven Plugin

We are using the JUnit4 Ant Task and Maven Plugin to execute all of our tests and we use a large variety of different JUnit 4 runners.
Is it possible to execute a single test method in a test class?  What would the fileset values for include/exclude look like in the example below?
https://github.com/randomizedtesting/randomizedtesting/blob/master/examples/ant/build.xml#L70
Thanks,
Steve

I somehow missed this, Steve -- sorry. You'd need to use -Dtests.method glob filter. Fileset inclusion/ exclusion takes the entire classes.


docker compose watch fails

I'm not sure if this is the right place to report and maybe it should probably go to docker/compose repo so feel free to redirect me there.
Description
While I'm trying to follow the guide, docker compose watch throws an error.
cannot take exclusive lock for project "getting-started-todo-app": open /run/user/1000/getting-started-todo-app.pid: no such file or directory

Steps To Reproduce

Open Develop with containers guide and follow "Start the project" steps.
Clone the repo.
Run docker compose watch.
Error is thrown.

Compose Version
Docker Compose version v2.27.1-desktop.1

Docker Environment
Client:
 Version:    26.1.4
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.14.1-desktop.1
    Path:     /usr/local/lib/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.27.1-desktop.1
    Path:     /usr/local/lib/docker/cli-plugins/docker-compose
  debug: Get a shell into any image or container (Docker Inc.)
    Version:  0.0.32
    Path:     /usr/local/lib/docker/cli-plugins/docker-debug
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.2
    Path:     /usr/local/lib/docker/cli-plugins/docker-dev
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.24
    Path:     /usr/local/lib/docker/cli-plugins/docker-extension
  feedback: Provide feedback, right in your terminal! (Docker Inc.)
    Version:  v1.0.5
    Path:     /usr/local/lib/docker/cli-plugins/docker-feedback
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.2.0
    Path:     /usr/local/lib/docker/cli-plugins/docker-init
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     /usr/local/lib/docker/cli-plugins/docker-sbom
  scout: Docker Scout (Docker Inc.)
    Version:  v1.9.3
    Path:     /usr/local/lib/docker/cli-plugins/docker-scout

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 3
 Server Version: 26.1.4
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: d2d58213f83a351ca8f528a95fbd145f5654e957
 runc version: v1.1.12-0-g51d5e94
 init version: de40ad0
 Security Options:
  seccomp
   Profile: unconfined
 Kernel Version: <IP_ADDRESS>-microsoft-standard-WSL2
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 12
 Total Memory: 7.722GiB
 Name: docker-desktop
 ID: e896569e-d924-4f59-8a63-c82bf64718f3
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 No Proxy: hubproxy.docker.internal
 Labels:
  com.docker.desktop.address=unix:///var/run/docker-cli.sock
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5555
  <IP_ADDRESS>/8
 Live Restore Enabled: false

WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support
WARNING: daemon is not using the default seccomp profile

While digging on Compose Watch documentation, it turned out that docker compose up --watch command works 🤷♀
I don't know if that helps you but in my case it allows me to keep following the tutorial ✌

@rose-munaretto -  I ran into this issue as well. I had to update my Docker Desktop to the newest version and the command ran successfully.

I spoke too soon. I got a bunch of errors

There is something more going on here...

I also had issues.
Neither downloading the Zip file in the guides nor cloning the git repo worked for me.
This is what I get when I try to run docker compose watch on the project I pulled from github.

When I try to run the docker compose watch in the project I get form the zip file I also run into issues:

Hope this helps someone who wants to look into this further.

@thedayisntgray You can use docker compose up --watch to bring up the application.

Change the my sql setting as the following can solve this problem.
  mysql:     image: mysql:8.0     volumes:       - todo-mysql-data:/var/lib/mysql     environment:        MYSQL_ROOT_PASSWORD: secret       MYSQL_DATABASE: todos     ports:       - "3306:3306"

@thedayisntgray restart main-backend container. This may be because the mysql container has not been successfully connected when the backend container command is executed. The backend container does not restart when the setting command fails. Therefore, restart the container manually

I had the same error as @rose-munaretto and the same error log as @thedayisntgray's first image.  After poking around the container and the source files, I came to the same conclusion as @kaworuist: all of the services are trying to start up at the same time and mysql is lagging behind the rest, causing the backend to fail to connect to it.
I'd like to suggest an easy update to the project that seems to have fixed things for me without having to use docker compose up --watch (meaning we would be able to use docker compose watch as the tutorial still suggests): add a depends_on element (reference) to the compose.yaml file.
backend:
  depends_on:
    - mysql

If I understand this correctly, this will cause Docker compose to ensure mysql is started before attempting to start backend.

I had the same error as @rose-munaretto and the same error log as @thedayisntgray's first image. After poking around the container and the source files, I came to the same conclusion as @kaworuist: all of the services are trying to start up at the same time and mysql is lagging behind the rest, causing the backend to fail to connect to it.
I'd like to suggest an easy update to the project that seems to have fixed things for me without having to use docker compose up --watch (meaning we would be able to use docker compose watch as the tutorial still suggests): add a depends_on element (reference) to the compose.yaml file.
backend:
  depends_on:
    - mysql

If I understand this correctly, this will cause Docker compose to ensure mysql is started before attempting to start backend.
After adding this and reattempting docker compose watch from a clean, imageless state, everything worked for me! I didn't encounter the same error.

This fixed it for me, I was having all the 500 errors too


Fix Grafana dashboard for Ava & BNB

Please fix the balance between networks and Success/Transfer rates for BNB & AVA. On testnet we will need to update the network name in the config topic. Remove HBARs from the NFT section

Currently shows "No data". Should be like on Ethereum.


Change react-native-fetch-blob to rn-fetch-blob

react-native-fetch-blob is no longer being actively maintained so it is advised to switch over to rn-fetch-blob
This fix should resolve Issue 95

@wcandillon, I think you should merge pull request or make such changes by yourself.

Maybe add a short note in readme about changing to rn-fetch-blob manually if not merging into master as it took me quite a while to figure out the problem as I followed tips to swap out react-native-fetch-blob, but no mention of changing in the module as well

You really should merge this pull request :)

@wcandillon, hi !
Will you maintain your package ? Do we have to make a definitive fork to fix this issue ? 🤔
It would be great if you could just merge this PR and bump the package. Please 😊

thanks!

Thanks a lot ! You saved me a lot of time. 👌🏻(I am currently looking for the version 1.5.4)

I appreciate the update, thank you for merging this in.
FYI the Circle CI test for this PR merge is marked as failed. https://circleci.com/gh/wcandillon/react-native-img-cache

@wcandillon sorry to bother you, any update on the release ? Can I help ?

good point, I will try to publish later today, sorry about that!

Thank you a lot, and thanks for your package, it works really well ! 👍👏🏻

done :) thank you for your patience.
On Mon, Dec 3, 2018 at 5:03 PM Elie<EMAIL_ADDRESS>wrote:

Thank you a lot, and thanks for your package, it works really well ! 👍
👏🏻
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/wcandillon/react-native-img-cache/pull/105#issuecomment-443763391,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AASr1kuMn3UMtw1ad3Bg-TMw32aaAq41ks5u1UtfgaJpZM4WbNaF
.


use global dictionary.

word header file is auto generated from yaml file.
Also set global_word_count field

Jenkins job mixerclient/presubmit passed


poor accuracy on macbook with master, but online demo looks good

On a macbook running the examples from the master branch, I get poor accuracy on face detection (see screenshots attached). Is the online demo at https://justadudewhohacks.github.io/face-api.js/face_and_landmark_detection running current code? Also would note that I get good accuracy on my linux computer working against the master branch. My linux laptop has an intel video card, and my macbook has both an nvidia and intel gpu.

The big question I have is should I be able to achieve the results I see on the online demo myself? Things work great for me on that site, but I'm not able to reproduce those results locally, including the examples in the repo. Is the source code available for the server running at https://justadudewhohacks.github.io/face-api.js/face_and_landmark_detection/ ?

The big question I have is should I be able to achieve the results I see on the online demo myself? Things work great for me on that site, but I'm not able to reproduce those results locally, including the examples in the repo. Is the source code available for the server running at https://justadudewhohacks.github.io/face-api.js/face_and_landmark_detection/ ?

Agree, I have the same issues ans same question.
Trying the example/demo site there is no indication of faces being detected at all.

I did some more research on this. For me, things work well on version 0.21.0. They start to break on 0.22.0. Is that the same for you?

Can you guys guide, i need api, to compare 2 images from url and send the result back instead of using it from form.

Hi, have anyone found the issue. I also facing same with multiple records in DB, when the pic only contains clear face image and not any background/shape, the accurate results coming, else wrong matches. I am using 0.22.2 in Nodejs app

I've switched to using 0.21.0.  Far from an ideal solution. The commit to upgrade to 0.22.0 is quite large, and I haven't had the time to dig through there to look for the issue.

Thanks for the suggestion, Kevin. I will try downgrading to that version and let you know.


combine and refactor Coming code features

Hi @martinezmatias,
In this PR, I merged the SR4 and P4J features.  The JSON sample file can be found features_Math_70.json in this PR.
Some other changes were:
I have removed the feature type in the ReadME, tests, and the main entry for code feature extraction.
I also updated some features in S4R wrt #178. The operator and logical expression were hard to understand as it captures all operators and LE features in the class. I added the code statement in the key of the features. See if it's helpful for trace and understand.

Hi @SophieHYe
Thanks a lot for the PR. It seems fine for me (even there are many files to review :P ).
When it's possible, split changes in smaller commits and PR.
Merged!
Thanks

Cool, thanks Ye & Matias!

@martinezmatias, I also realized it's a bad practice to send too many files in one PR, will improve next time!


ArrowKeyStepper: inconsistency in vertical and horizontal scroll to keep (or not) the selected cell visible

Step to reproduce:

Go to: https://bvaughn.github.io/react-virtualized/#/components/ArrowKeyStepper
Try to scroll right, it's blocked to ensure the selected cell visible
Try to scroll to down, selected cell may become out of sight.

What happens
There is an inconsistency between horizontal and vertical scrolling to keep (or not) the selected cell visible. IMHO, scroll should always be possible even if it makes the selected cell out of sight.

Try to scroll right, it's blocked to ensure the selected cell visible

This is actually a bug, reported via #816, not intentional behavior.
Closing as a duplicate of #816 for now.


Questions about IOSOptions accessibility - How to access enum

I read the following in the docs:

final options = IOSOptions(accessibility: IOSAccessibility.first_unlock);
await storage.write(key: key, value: value, iOptions: options);

I am importing  'package:flutter_secure_storage/flutter_secure_storage.dart'; but IOSAccessibility is not found in this import. How do I access this enum?

@loonix @mogol ?

KeychainAccessibility.first_unlock

Yeah, thanks

Just out of curiosity how did you know my username? Was it from another post?

@loonix @arualana Did you end up with some samples or any concern about the deprecated ones? first_unlock still excludes an important scenario, but always is deprecated.


search is failing to find deno

it doesn't fail consistently, i just opened the app and searched immediately.
probably the Fuse index was not initialized yet?

could not recreate anymore.


Serverless Function Invocation Failed at Timeout when deploying Nuxt 3 site on Vercel

Environment
Hey there, I am trying to deploy a Nuxt 3 site on Vercel and have been trying to fix this error for the last couple of days.
Not sure if it's a bug or my inexperience with Nuxt (forgive me I am still learning), but I can't figure it out. The site works fine on my local development server, it just won't deploy.
I suspect it has something to do with the plugins:
— plugins/about.js
— plugins/creditCard.js
— plugins/message.js
Reproduction
https://contentdotnet.vercel.app/
Describe the bug
This is the error code:
500: INTERNAL_SERVER_ERROR
Code: FUNCTION_INVOCATION_FAILED
ID: syd1::hz7dz-1681254028180-392b059c733b
This prints in terminal:
[nitro] [dev] [uncaughtException] ReferenceError: document is not defined                                                         00:11:28
    at Timeout._onTimeout (/Applications/MAMP/htdocs/contentdotnet/website-1.1/plugins/about.js:6:25)
    at listOnTimeout (node:internal/timers:564:17)
    at process.processTimers (node:internal/timers:507:7)
[nitro] [dev] [uncaughtException] ReferenceError: document is not defined                                                         00:11:28
    at Timeout._onTimeout (/Applications/MAMP/htdocs/contentdotnet/website-1.1/plugins/message.js:14:24)
    at listOnTimeout (node:internal/timers:564:17)
    at process.processTimers (node:internal/timers:507:7)
[nitro] [dev] [uncaughtException] ReferenceError: document is not defined                                                         00:11:34
    at Timeout._onTimeout (/Applications/MAMP/htdocs/contentdotnet/website-1.1/plugins/creditCard.js:6:25)
    at listOnTimeout (node:internal/timers:564:17)
    at process.processTimers (node:internal/timers:507:7)

Additional context
Here is the code:
// pages/index.vue
<template>

            <PlaceholderHeader class="clickable" />
            <CreditCard />
            <PlaceholderContent class="clickable" />
            <TheFooter />

        <About />

</template>

// components/PlaceholderHeader.vue
<template>

        <NuxtLink class="logo" to="/">
            <nuxt-img src="/assets/img/logo-chrome.png" alt="Content Dot Net" />
        </NuxtLink >

0005312

</template>

// components/About.vue
<template>

{{ about.about[0].children[0].text }}

{{ about.about[1].children[0].text }}{{ about.about[1].children[1].text }}

<NuxtLink<EMAIL_ADDRESS><NuxtLink to="https://instagram.com/content.net.au">INSTAGRAM...</NuxtLink> <NuxtLink to="https://contentnetau.bandcamp.com/">BANDCAMP...</NuxtLink>

{{ about.about[3].children[0].text }}

{{ about.about[4].children[0].text }}

</template>

// components/CreditCard.vue
<template>

</template>

//components/TheFooter.vue
<template>

        <button id="footer-btn" class="logo">
            <nuxt-img src="/assets/img/logo-c-chrome.png" alt="C" />
        </button >

Content Dot Net © 2023

</template>

// plugins/about.js
export default defineNuxtPlugin(nuxtApp => {
    // about footer button interaction
    setTimeout(() => {
        var footerBtn = document.querySelector('#footer-btn');
        var about = document.querySelector('#about');
        var main = document.querySelector('#main');

        footerBtn.addEventListener('click', function() {
            about.classList.add('open')
            main.classList.add('blur')
        });

        about.addEventListener('click', function() {
            about.classList.remove('open')
            main.classList.remove('blur')
        });
    }, 100)
})

// plugins/creditCard.js
export default defineNuxtPlugin(nuxtApp => {
    // prompt: credit card number
    setTimeout(() => {
        const element = document.getElementById('credit-card')
        var creditCard = Number(prompt('Enter credit card number'))
        // var validation = /^(?:4[0-9]{12}(?:[0-9]{3})?)$/

        if (creditCard == 0) {
            // document.getElementById('credit-card').innerHTML = 'Invalid'
            console.log('Invalid')
        }
        else if (!Number.isNaN(creditCard)) {
            element.innerHTML = creditCard + ' 💰'
            element.classList.add('valid')
            console.log('Credit Card Number: ' + creditCard)

            element.addEventListener('click', function() {
                element.classList.add('hide')
            })
        }
        else if (Number.isNaN(creditCard)) {
            element.innerHTML = 'Invalid credit card number. Try again'
            console.log('N/A')

            element.addEventListener('click', function() {
                element.classList.add('hide')
            })
        }
    }, 6000);
  })

// plugins/message.js
export default defineNuxtPlugin(nuxtApp => {
    // alert: message
    setTimeout(function() {
        var messageIntro = 'NEW MESSAGE (1) from content.net.au: \n\n'
        var message1 = messageIntro + 'Welcome to our world! Please click the links to hear our music + watch our videos…if u do i will return the favour…also pls follow us on social media x'
        var message2 = messageIntro + 'Lets connect, send me an email<EMAIL_ADDRESS>        var message3 = messageIntro + 'https://drive.google.com/drive/folders/1S3ilSaQCreXwAxNdrvYnEnQKex2NquWH?usp=share_link'

        var messageArray = [message1, message2, message3];
        var count = -1;

        var elements = document.getElementsByClassName('clickable');

        for (var i = 0, len = elements.length; i < len; i++) {
            elements[i].addEventListener("click", function() {
                alert(messageArray[++count % messageArray.length]);
            });
        }
    }, 100);
  })

Logs
Log via Vercel:
Uncaught Exception 	{"errorType":"ReferenceError","errorMessage":"document is not defined","stack":["ReferenceError: document is not defined","    at Timeout._onTimeout (file:///var/task/chunks/app/server.mjs:875:21)","    at listOnTimeout (node:internal/timers:564:17)","    at process.processTimers (node:internal/timers:507:7)"]}
Unknown application error occurred
Runtime.Unknown

I'd be kind of surprised of that works locally tbh.
But like you mentioned and also what the error is saying the issue comes from
var footerBtn = document.querySelector('#footer-btn');
var about = document.querySelector('#about');
var main = document.querySelector('#main');

On the server side you dont have access to the document object hence it throws the error.
You might be able to do some fancy things like check for process.client, make the plugin client only or wrap things in a onMounted hook but in general accessing and calling querySelector in a vue app is a big red flag.
I'm not sure about your usecase but to me those plugins all look like they should just be in a component, use template interpolation and follow the general vue architecture

Thanks for the tip, I didn't realise document isn't available.. but makes sense.
Will have another go, thanks!

As daniel mentioned, this is not really something suited for github issues, the nuxt or vue discord or even discussion tab would be better suited.
There's a ton of routes, if you really wanted to reuse the function you could built it in a way that expects a ref as a param and acts based on that. That seems overkill here though and not something I'd recommend for your case.
Maybe try looking into how events and props work, sounds like that'd be more applicable here. You could also keep track of the current state and bind classes to your things based on that.


[Bug]: isRequired key is missing for some form fields.

add isRequired in API /api/v1/plugins/{id}/form in form.children

@prapullac could you please help populate this issue with a list of plugin - fields that need this change? We're looking for plugin fields that should be marked with an asterisk but are not.

@rohan-arthur @ajinkyakulkarni I'm unassigning myself from this issue since it needs more info (also adding the tag). Not really sure which fields I need to be doing this for.

Closing till we have more info on this.


page not loaded when onDocumentLoaded and onPageChanged are not set

I don't have a need to be notified of onDocumentLoaded and onPageChanged events. Since the arguments are not marked as mandatory I didn't set onDocumentLoaded and onPageChanged.
As I saw your code expects that this callbacks are set and loading document crashes...
You should probably mark fields as mandatory or do a null check in the code before calling methods.

fixed in 3.0.1


choose one reagent for the proof of concept

I do propose fruitfly.
Antibody or plasmids could be also good candidate, depending on the community present

fruitfly and antibody it will be, probably more to come


Fix most Github Actions 'annotations' in PRs

Fixes #383
Those were the same as warnings as in yarn tauri build. Here we take care of everything that's not the extensive dependencies for React Hooks, which need case-by-case care.

Update desc. I think we should take care of the React Hooks in another PR.
@Irev-Dev this will probably conflict with your xstate PR, which of course has priority!

@Irev-Dev oof sorry for all the noise

@Irev-Dev moving back to draft:

with all the new changes there's a ton more to fix
need to see what those tests are about, have no context here

I'll try to get that done quick

@Irev-Dev sorry, finally getting to this. The cargo test seems to have solved itself, maybe the rebase on main?
Still keeping the useEffect/useMemo dependencies on the side for another PR as these require more testing

@Irev-Dev can I get your approval again when you have a chance? There's a few things I'm not sure about but yeah I'd like to have this closed

@Irev-Dev thanks! Finally merging this haha


Add master key ability and permission

This changeset adds a master key permission for key locks and code locks placed by the plugin. When granted the permission, players will be able to bypass any lock placed by the plugin. This is intended for admins to use to bypass the locks when investigating issues or resolving disputes.
As requested in this thread.

I thought about a single permission at first but ended up splitting it into two so it would match the convention of the other permissions. It seemed reasonable to give people the option in case they had some special game mode or something that would benefit.
That's a bit of a stretch though, so I'm happy to condense it to a single permission if you think the split is unnecessarily complicated.

Yeah, let's go with one permission.

I've changed it to a single permission now :)


⚠ 0.9.15 regressions

Hi folks,
I'm creating a new issue to have all the regressions related to 0.9.15 in one place and be able to fix them more easily.
I also thought of revert https://github.com/Alexays/Waybar/pull/1120
What do you think?
https://github.com/Alexays/Waybar/issues/1781
https://github.com/Alexays/Waybar/issues/1786
https://github.com/Alexays/Waybar/issues/1763
https://github.com/Alexays/Waybar/issues/1775
https://github.com/Alexays/Waybar/issues/1778
https://github.com/Alexays/Waybar/issues/1743
https://github.com/Alexays/Waybar/issues/1741
https://github.com/Alexays/Waybar/issues/952
https://github.com/Alexays/Waybar/issues/1761
https://github.com/Alexays/Waybar/issues/1752
https://github.com/Alexays/Waybar/issues/1791
https://github.com/Alexays/Waybar/issues/1765

I would also like to add that when I upgraded waybar to 0.9.15 the battery indicator is "strange". It shows me the exact half of what my battery capacity is. So if htop says I'm at 100%, waybar will say that I'm at 50%. If I'm at 34%, waybar will say that I'm at 17% and so on.

@Estebiu I made changes to the battery calculation recently, could you give more info? What is your exact version? Do you have more than one battery (say, in /sys/class/power_supply/)?

I think you should revert #1120.

@Estebiu I made changes to the battery calculation recently, could you give more info? What is your exact version? Do you have more than one battery (say, in /sys/class/power_supply/)?

I'm using the latest waybar-hyprland-git from the AUR as I'm on Hyprland. And no, I don't have another battery; my laptop doesn't support it (asus zenbook ux363ea). Just now I tried the standard waybar package and the battery monitor works normally. Very strange.

@Estebiu Right, that does sound like #1788 might have broken it for you. The tricky part is I only have a laptop with TWO batteries. I can remove one of them once I'm home and see if I can replicate the issue.

@grfrederic I tested it now and unplugged my laptop from power source. To 79% falling was normal, and then for few minutes it changed to 43% to change 62% for long time and now it normally show 42%. For me it doesn't matter as I'm always on charger, but if you want me to check something then go ahead - everything that I can do without knowing C. :P

@roland-rollo that does not really sound related. I changed the capacity computation to divide by the total number of batteries, and for @Estebiu around that time it starts showing half the capacity. Perhaps the jumps in reported battery level might mean your battery digraded/is not calibrated. In any case, as long as /sys/class/power_supply/BAT0/capacity shows the same number as waybar it's probably not an issue with waybar.

Can I suggest reverting back to 0.9.13 as the primary release (possibly release it as 0.9.16) and then the release with these changes as a 0.10 beta so they can be fixed and not upgraded to automatically by users?
0.9.15 broke a lot of stuff to the point where it is unusable for a lot of us.

@Estebiu I tried with one battery unplugged and -- it works on my machine :) If you would be up for it we can try figuring out together what makes it break on your laptop. I'm not sure this is the best place to do it though, maybe we should discuss on the closed PR #1788? I'm not that fluent with github etiquette.
Reverting temporarily #1120 (or more) and fixing things on the side before rerelease sounds reasonable to me. I can help with testing and (perhaps with some pointers from more regular contributors) some coding.

I think reverting #1120 is introduces breaking changes for no good reason. Such changes should be avoided in the future

I think reverting #1120 is introduces breaking changes for no good reason. Such changes should be avoided in the future

It's introducing a breaking change to fix that breaking change which breaks many themes.
For example, here is what my theme (a slightly modified version cjbassi's config) looks like on 0.9.13:

And here is how it looks on 0.9.15:

I had some luck with this comment in #1741, however now everything is tiny:

I tried several suggestions in other issues and unfortunately have had no luck in getting my theme working again.

As the author of #1120 I also think it's better to revert it now, try to fix the issue and introduce it in a more major update after some beta-testing.
On the other hand, a lot of the features using buttons adds over using labels are also available after a shift to Gtk4, so this may be an option for a major version bump as well.
The heterogeneity of configurations is a major issue for quality assurance. It would be great to introduce some guarantees for the users as to which configs are certain to look the same across updates. E.g. have some example configs covering most of the heterogeneity be required to look the same.

Agree with you @pinselimo, do you think you have some time to revert the PR?
I'll try to find some times next week, otherwise.

Closed as reverted


Set up CI with Azure Pipelines

Codecov Report

Merging #488 into master will not change coverage by %.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #488   +/-   ##
=======================================
  Coverage   79.14%   79.14%
=======================================
  Files         110      110
  Lines        3419     3419
  Branches       85       85
=======================================
  Hits         2706     2706
  Misses        713      713

Continue to review full report at Codecov.

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

see #491


How to change language?

Where should I put the i18n file? I tried to putting the i18n file into zh-CN floder and then changing the culture to zh-CN, but it didn't work, nothing changed. Please guide me, thanks!

This need to be compiled into the software.  It will go with the next release.

This need to be compiled into the software. It will go with the next release.

Okey, thanks for your help. Can I know what time publish next release? How many days will it take?

I can't guarantee you a time frame. Most likely in a week or two.


load more compliance reports

:nut_and_bolt: Description: What code changed, and why?
just wanted to add a studio function to make it easier to load the data in audit_reports. this data is what we use in testing and has control tags, roles, environments -- more diverse data.
this came up in slack when a developer was trying to work on control tags but didn't have data to populate the control tags with the existing commands in the studio.
:chains: Related Resources
https://github.com/chef/automate/issues/1713#issuecomment-547622738
:+1: Definition of Done
can load reports with control tags easily in the studio

i have an item on my todo list to make loading data for compliance reports/scan jobs/etc in the studio easier overall. i still want to spend some time cleaning things up to do that - this was just a quick fix to ensure devs aren't blocked


Automator: update<EMAIL_ADDRESS>in<EMAIL_ADDRESS>

Generated by Automator - 2021-11-20T01:30:46+00:00

@istio-testing: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-security-multicluster-tests_istio_release-1.9
2cd4dbe462a44528fa9b8c1c7b041f903ba681d1
link
false
/test integ-security-multicluster-tests_istio_release-1.9

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.


Arabic Translations and names

also fixed the English translation for Andorra

Could you please rebase this onto master.

will do


Switching between sources

I would like to have switching between an on-line map (pulling from an URL), and an off-line map (pulling from a mbtiles file, which does not work yet, but that is beside the point). However, simply providing different tile provider (or even a whole tile layer, see below) does not make the source switch. As suggested in #27, I tried to use different map theme keys for the two sources, but the map is still pulled from the one that was used first.
So this is basically a feature request - allow source switching, or enable clearing the caches or something like that. I can help with a PR, if pointed into the right place and direction.
This is a snipped of my code:
if (offlineMapProvider == null)
  VectorTileLayerWidget(
      options: VectorTileLayerOptions(
          tileProviders: TileProviders({
            'online': MemoryCacheVectorTileProvider(
                delegate: NetworkVectorTileProvider(
                    urlTemplate: '... here be template ...',
                    maximumZoom: 14),
                maxSizeBytes: 1024 * 1024 * 5)
          }),
          theme: ThemeReader().read(mapThemeData('online')),
          backgroundTheme: ThemeReader().readAsBackground(
              mapThemeData('online'),
              layerPredicate: defaultBackgroundLayerPredicate)))
else
  VectorTileLayerWidget(
      options: VectorTileLayerOptions(
          tileProviders: TileProviders({
            'offline': MemoryCacheVectorTileProvider(
                delegate: offlineMapProvider!,
                maxSizeBytes: 1024 * 1024 * 5)
          }),
          theme: ThemeReader().read(mapThemeData('offline')),
          backgroundTheme: ThemeReader().readAsBackground(
              mapThemeData('offline'),
              layerPredicate: defaultBackgroundLayerPredicate)))

where 'mapThemeData' produces a map theme spec with the argument used as the source.

My bad, I missed the id key in the map theme spec. When I change that too, the switching works. However, I still think this is kinda hack/workaround, and that a proper source switching should be possible.

Jan, thanks for the feature request. I'm glad that you got it working.
Can you describe how the user experience could be improved over your current solution with a feature specifically designed to support switching sources?

User experience wouldn't be affected, but it would be less confusing for the developers.
What really threw me off was that not only the tiles are cached, but also the thing that provides the tiles is cached too. I wouldn't be surprised if tiles that were recently used would be reused from the cache, but I was really surprised that the procedure to obtain yet unused tiles is cached too.
Maybe there are reasons why it is the way it is, I did not study the code in depth. If the source switching feature is problematic, maybe providing a warning/info/how-to for such non-intuitive scenarios would help, so that others don't have to waste time learning this too.

I have no plans to address this. Feel free to submit a PR if you want.


Replaced size() with length

size() was deprecated in jQuery 1.8 and
removed in 3.0

Thanks

Thanks to fix it


[Safe Apps] Increase iframe height

This should be a simple implementation / easy fix to allow more verticle space for Safe Apps.
Generally increasing the height might not be ideal.
If possible we can detect whether the app uses more than the current limit of the height (e.g. by checking if the content has scroll or not) and only then expand the height of the app.
So there's essentially two sizes, and the card would expand or retract depending on the Safe App.

It seems like it is not possible to know if the iframe is using scrollY.

We can not get access to the iframe document element. CORS prevents it.

Okay. Could we just try how it would look / feel like by just generally extending the height to 550px?


[New game]: Stone, Paper, Scissors Game

🎮 Game Request
Game logic and basic description
The "Stone, Paper, Scissors" game can be implemented as a digital version where one player is human and the other player's response is generated randomly by the computer.
The game has three possible outcomes: a stone beats scissors, scissors beat paper, and paper beats stone. The players simultaneously make one of three hand gestures representing either a stone (a closed fist), paper (an open hand), or scissors (a fist with the index and middle fingers extended).
The rules are as follows:
Stone beats scissors (blunts or breaks scissors)
Scissors beat paper (cut paper)
Paper beats stone (wraps stone)
Point down the features
Game points
Display the options for the human player to choose from (stone, paper, scissors).
Prompt the human player to make their selection.
Generate a random response for the computer player (stone, paper, scissors).
Compare the choices of the human player and the computer player to determine the winner based on the game rules.
Display the result of the round (e.g., "You win!", "Computer wins!", or "It's a tie!").
Select program in which you are contributing
GSSoC23
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

Hey! I want to work on this issue,Can I work!

Hey 👋 I'm Dhairya. I would be happy if you could this issue to me. I'll contribute to this issue under GSSoc'23. I can create a beautiful tic-tac-toe web app using HTML, CSS and JS

Hey 👋 I'm Dhairya. I would be happy if you could this issue to me. I'll contribute to this issue under GSSoc'23. I can create a beautiful stone paper scissor web game using HTML, CSS and JS

Hey @KhushiTayal ! we are already having the same game request in #11 !
Thank you you may do enhancement later on !!


Write a job description for an inclusion lead at NHS Digital

What
Decide what responsibilities, skills and qualifications we would require of someone who would be hired to lead inclusion at NHS Digital.
Why
To feedback to senior leaders the competencies we would expect from someone leading inclusion.
Done when

[ ] We have met to discuss what would be required
[ ] We have written the job description
[ ] We have discussed this with senior leaders

Job description for Snook's "Accessibility and inclusive design lead"
Job description for HS2 "Inclusive design lead"
Job description for Test & Trace "Head of Inclusive Design"
Job description for Twitch "Head of Accessibility and Inclusive Design"
Job description for Microsoft "Director of Inclusive Design"
Job description for TfL "Inclusive Design Advisor"

I think this is being taken forward elsewhere, isn't it? Should we close this issue down, @georginaplatt @amyj2110 ?

Inclusion Lead for NHSE Central UCD team has been appointed.


defineCachedFunction stopped working

Environment
Hi,
once I've updated the latest Nitro version I am facing an issues with defineCachedFunction()
I am getting
[nuxt] [request error] [unhandled] [500] Cannot use 'in' operator to search for '__is_event__' in CZK
  at isEvent (project/node_modules/.pnpm/h3@1.7.1/node_modules/h3/dist/index.mjs:1164:25)
  at <anonymous> (project/node_modules/.pnpm/nitropack@2.8.1/node_modules/nitropack/dist/runtime/cache.mjs:93:18)
  at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

note: the CZK in the error is the query parameter I call within the server route. /my-endpoint/CZK
Reproduction
TBD
Describe the bug
TBD
Additional context
No response
Logs
No response

Could you provide a reproduction?

Yes I will later today. I just tried a chance if there was any breaking change, because it stopped working just by the upgrade ;)

The minimal reproduction worked. So I had to completely remove pnpm.lock, node_modules and .nuxt and after the fresh install it is working now, so don't know if there was a hotfix, because I did it this cleanup week ago. But anyways it is working now. Closing


Crash with better sprinting mod

With this mod and better sprinting mod, game crashes before the game window even shows up when trying to start.
Log file: https://puu.sh/H5Htu/8260a2258a.log

The crash no longer occurs, but unfortunately both mods are fundamentally incompatible. Therefore Aqua Acrobatics will now simply take precedence.

The crash no longer occurs, but unfortunately both mods are fundamentally incompatible. Therefore Aqua Acrobatics will now simply take precedence.


entgql Aggregate queries

@a8m How to design aggregate queries with entgql?
Let say, we have users and pets. User can own many pets, we want to show in the user listing query that how many pets they own(count). Please help me with this example.

Hey @dilipkk-foyernet,
You can use the Count function for it as follows:
count := user.QueryPets().Count(ctx)

It's part of the pagination-extension for gqlgen. See the pets example.

Thanks @a8m I got this part. We need to handle this at application level right right, based collect field by gqlgen (like totalPetsCount). This is different from totalCount as this is users count.
My question is how to integrate this with the Connection object returns only User object as that is generate pagination extension.

My question is how to integrate this with the Connection object returns only User object as that is generated pagination extension of entgql.

You can't add additional fields to the UserConnection that entgql generates (see template-code). You can either override this template, or return a new connection object for your use-case.

Closing since there's no action to take here. Feel free to continue the discussion if you have questions/comments about this.


TST: Simplify genelate_legacy_pickles.py usage

Should not input pandas version manually to avoid any mistake.

lgtm


Possible alternative numer-theoretic shuffling algorithm

Motivation
Construct a shuffling algorithm where you can compute the value in the shuffled list at any specific position relatively cheaply without computing all of the other values at the same time. This could be used to replace the current shuffle.
Helpers
def is_prime(x):
    return [i for i in range(2, int(x**0.5)+1) if x%i == 0] == []

Algorithm
def value_at_position(n, value, seed):
    # We do the shuffling mod p, the lowest prime >= n, but if we actually shuffle into
    # the "forbidden" [n...p-1] slice we just reshuffle until we get out of that slice
    p = n
    while not is_prime(p):
        p += 1
    # x -> x**power is a permutation mod p
    power = 3
    while (p-1) % power == 0 or not is_prime(power):
        power += 2
    for round in range(40):
        a = int.from_bytes(seed[(round % 8)*4: (round % 8)*4 + 4], 'big')
        value = (pow(value, power, p) + a) % p
        while value >= n:
            value = (pow(value, power, p) + a) % p
        # Update the seed if needed
        if round % 8 == 0:
            seed = hash(seed)
    return value

def shuffle(values, seed):
    return [values[value_at_position(len(values), i, seed)] for i in range(len(values))]

Note that the above is a maximally simple definition, not an optimal implementation. An optimal implementation would calculate the prime, the exponent, and the a values once, and pass them as inputs to value_at_position, which would then need to do much less work per value.
The main weaknesses are: (i) the computation of the total shuffle is slower even with optimizations, and (ii) the security argument is more heuristic ("it repeats x -> x**3 + k[i] so it's like MIMC") than the current Fisher-Yates shuffle. However, the strengths may be worth it, especially if we wish to cease storing the shuffling in the state.

What are the security property that are needed?
Bottlenecks
The main bottleneck in the current Fisher-Yates shuffling is the repeated modulo in the loop as it's an expensive operation. In the new proposed shuffling there are gcd, pow and modulo.
In my opinion the main advantage of Fisher-Yates is the ability to do it in-place, however I suppose to be able to rollback state, most clients will not implement it in-place but in a temporary location instead.
Alternative
In case we need a temporary location, I think reservoir sampling will be superior in terms of performance while preserving equi-probabilities of all sequences.
The algorithm is very simple and doesn't involve expensive operation, from Wikipedia
ReservoirSample(S[1..n], R[1..k])
  // fill the reservoir array
  for i = 1 to k
      R[i] := S[i]

  // replace elements with gradually decreasing probability
  for i = k+1 to n
    j := random(1, i)   // important: inclusive range
    if j <= k
        R[j] := S[i]

We only need to couple it with a prng. For example XorShift128+ is used by all major browsers (and could be a eWASM primitive):
#include <stdint.h>

/* The state must be seeded so that it is not all zero */
uint64_t s[2];

uint64_t xorshift128plus(void) {
	uint64_t x = s[0];
	uint64_t const y = s[1];
	s[0] = y;
	x ^= x << 23; // a
	s[1] = x ^ y ^ (x >> 17) ^ (y >> 26); // b, c
	return s[1] + y;
}

Or the latest Xoroshiro128+ by the same author, which is significantly faster and with much better statistical quality.

Benchmark, tests and paper

Implementation in Nim (disclaimer this is the default Nim PRNG):
type
  Rand* = object ## State of the random number generator.
                 ## The procs that use the default state
                 ## are **not** thread-safe!
    a0, a1: ui

var state = Rand(  # <---- We can use our own seed instead
  a0: 0x69B4C98CB8530805u64,
  a1: 0xFED1DD3004688D67CAu64)

proc rotl(x, k: ui): ui =
  result = (x shl k) or (x shr (ui(64) - k))

proc next*(r: var Rand): uint64 =
  ## Uses the state to compute a new ``uint64`` random number.
  let s0 = r.a0
  var s1 = r.a1
  result = s0 + s1
  s1 = s1 xor s0
  r.a0 = rotl(s0, 55) xor s1 xor (s1 shl 14) # a, b
  r.a1 = rotl(s1, 36) # c

### Advantage

This is much more hardware friendly

### Drawback

Like the current Fisher-Yates, you need to keep a state.

### Papers

  - [Random Sampling with a reservoir](https://www.cs.umd.edu/~samir/498/vitter.pdf), 1985, Vitter
  - [An efficient algorithm for sequentiam random sampling](https://www.researchgate.net/profile/Jeffrey_Vitter/publication/278627791_An_efficient_algorithm_for_sequential_random_sampling/links/5747b27508aef66a78b08012/An-efficient-algorithm-for-sequential-random-sampling.pdf), 1987, Vitter
  - [Scrambled Linear Pseudorandom Number Generators](http://vigna.di.unimi.it/ftp/papers/ScrambledLinear.pdf), 2018, Blackman, Vigna

The main desired property is being maximally close to a random permutation. Specifically, it should be maximally computationally difficult to find seeds that ensure that in a shuffling of 1...N, any specific subset x1, x2, x3.... x[k] are in a specific range [v ..... v+k].
The reason why the number-theoretic shuffle above is interesting is that you don't need to compute the whole output to compute a small portion of the output. This makes it much easier to use in light clients, and to verify blocks generally.

I just optimized the code a bit; it can shuffle 100000 values in one second (vs 1 million in one second for the Fisher-Yates shuffle). That said, the hash complexity is smaller, so I suspect in an optimized C implementation the number-theoretic shuffle will not be much smaller than out current Fisher-Yates shuffle, as in python the hashes are optimized but the rest of the code is not, leading to hashing costs being understated.

Here is a hash-based alternative. Here's the core:
def numhash(x, i, seed, modulus):
  assert 0 <= i < 4
  return (int.from_bytes(hash(x.to_bytes(32, 'big') + seed), 'big') // modulus**i) % modulus

def feistel(x, modulus, seed):
   assert is_perfect_square(modulus) and modulus < 2**50
   h = int(modulus ** 0.5)
   L, R = x//h, x%h
   for i in range(4):
    new_R = (L + (numhash(R, i, seed, h) % h)) % h
    L = R
    R = new_R
   return L * h + R

Now for the actual function, let modulus be the smallest perfect square greater than or equal to n. To permute some value, set value = feistel(value, modulus, seed) and if needed repeat until the result is less than n, just as above. This takes 4 hashes to compute for a single number, but to permute an entire list you only need ~sqrt(n) hashes.

I implemented both options and the status quo here: https://github.com/ethereum/research/tree/master/shuffling
Here's the timing test output:
Testing prime shuffle
[40388, 24854, 44555, 69180, 37292, 27818, 85124, 51675, 75163, 16592]
[40388, 24854, 44555, 69180, 37292, 27818, 85124, 51675, 75163, 16592]
Total runtime:  1.0141525268554688
Runtime to compute committee:  0.022953271865844727

Testing feistel shuffle
[82855, 3100, 89704, 87662, 7830, 16014, 57626, 95313, 53632, 97853]
[82855, 3100, 89704, 87662, 7830, 16014, 57626, 95313, 53632, 97853]
Total runtime:  0.10488557815551758
Runtime to compute committee:  0.00408935546875

Testing Fisher-Yates shuffle
[93044, 39644, 88989, 78137, 17662, 17187, 41433, 85069, 64061, 6647]
Total runtime:  0.08116364479064941

Feistel shuffling is impressively fast.
I've transformed the current state-of-the-art sampling technique from natural language processing into a shuffling algorithm in https://github.com/ethereum/research/pull/98.
Originally it was for weighted sampling hence why it is rearranging input to efficiently check cumulative probability distributions.
There is an initialisation cost but further sampling are 6.5x cheaper.
Testing prime shuffle
[40388, 24854, 44555, 69180, 37292, 27818, 85124, 51675, 75163, 16592]
[40388, 24854, 44555, 69180, 37292, 27818, 85124, 51675, 75163, 16592]
Total runtime:  1.651440143585205
Runtime to compute committee:  0.02932882308959961

Testing feistel shuffle
[82855, 3100, 89704, 87662, 7830, 16014, 57626, 95313, 53632, 97853]
[82855, 3100, 89704, 87662, 7830, 16014, 57626, 95313, 53632, 97853]
Total runtime:  0.15117597579956055
Runtime to compute committee:  0.005218982696533203

Testing Fisher-Yates shuffle
[93044, 39644, 88989, 78137, 17662, 17187, 41433, 85069, 64061, 6647]
Total runtime:  0.1256880760192871

Testing F+tree sampling
[93044, 39644, 88989, 78137, 17662, 17187, 41433, 85069, 64061, 6647]
[50405, 51879, 54080, 30514, 76290, 60097, 83697, 19454, 68194, 85273]
[75628, 50172, 45023, 21349, 80036, 81698, 2829, 994, 88511, 20356]
Total runtime:  1.5932817459106445
Runtime to compute first committee:  0.053829193115234375
Runtime to compute next committee:  0.008832931518554688

Benedikt Bunz points to this paper as a potential candidate.

@vbuterin have you run some random number tests (e.g. dieharder) against the primenumber implementation or is this algorithm some well-known CSPRNG?

closed by adding "swap or not" #563


Set req.ContentLength from headers regardless of body type

This is a fix for #822. This makes requests for any generic io.Reader type possible without having to check the underlying Reader implementation. The headers map will already have the correct Content-Length value set, so I just parsed it and passed it to req.ContenLength value to match the access signature.
I've also removed util implementation for io.LimitedReader since it's no longer needed - although I still have other concerns for rewinding arbitrary reader types during retries.

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


GROOVY-7224: Extend @Builder InitializerStrategy to support adding the a...

...nnotation to Constructors and static factory Methods

Looks really nice :)


next-urql: Have an official with-typescript-urql example in nextjs repo

Summary
I just discovered next-urql and I wonder why this amazing thing doesn't have a merged example in nextjs examples folder.

Proposed Solution
I could create an example but it might be opinionated. Would request people who are well accustomed to the package to submit a working example there

Requirements
Since the new nextjs has getStaticProps and it's causing some confusion in the community I would recommend the example to be made after https://github.com/FormidableLabs/urql/issues/754 is merged and is incorporated in the example.

You're right, that's an easy win :+1:

@pranaypratyush I was curious why the example in the next.js folder just uses the regular urql package also. Could you provide an example with urql-next ? I am curious because I've seen a few different ways of doing this, and I'd like to see how to use this package without opting out of the Automatic Static Optimization  if possible.

I think for now we'll let this one be superseded by #1502, i.e. an example in our own repo among a lot of others


ecrUploadImage

Description
a feature to upload an image to ECR
There is a ecrLogin but there isn't a ECR upload. Hence I need to figure out a way to use your ecrLogin to upload

after using ecrLogin you can push using docker push


Wtc 13 welcome page

fixes #13

add basic file structure
create and style welcome page
add fonts, colours
add lion to the page

also @skibinska its good to add issue numbers to commit messages

@skibinska ie
remove duplicate property from body #13


server: Fix several memory leak found while running valgrind on freerdp-shadow

Part of the definitely lost log from valgrind:
==12776== 8 bytes in 1 blocks are definitely lost in loss record 22 of 743
==12776==    at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==12776==    by 0x6475AB1: strdup (strdup.c:43)
==12776==    by 0x6189C30: _strdup (string.c:45)
==12776==    by 0x6DEE329: rdtk_font_parse_descriptor_buffer (rdtk_font.c:370)
==12776==    by 0x6DEE91F: rdtk_embedded_font_new (rdtk_font.c:704)
==12776==    by 0x6DEEA3B: rdtk_font_engine_init (rdtk_font.c:731)
==12776==    by 0x6DEF8BF: rdtk_engine_new (rdtk_engine.c:39)
==12776==    by 0x5B93BCA: shadow_client_init_lobby (shadow_lobby.c:41)
==12776==    by 0x5B9402A: shadow_screen_new (shadow_screen.c:73)
==12776==    by 0x5B97C9B: shadow_server_start (shadow_server.c:380)
==12776==    by 0x40371F: main (shadow.c:94)
==12776==
==12776== 17 bytes in 1 blocks are definitely lost in loss record 46 of 743
==12776==    at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==12776==    by 0x6475AB1: strdup (strdup.c:43)
==12776==    by 0x6189C30: _strdup (string.c:45)
==12776==    by 0x6DEE27C: rdtk_font_parse_descriptor_buffer (rdtk_font.c:326)
==12776==    by 0x6DEE91F: rdtk_embedded_font_new (rdtk_font.c:704)
==12776==    by 0x6DEEA3B: rdtk_font_engine_init (rdtk_font.c:731)
==12776==    by 0x6DEF8BF: rdtk_engine_new (rdtk_engine.c:39)
==12776==    by 0x5B93BCA: shadow_client_init_lobby (shadow_lobby.c:41)
==12776==    by 0x5B9402A: shadow_screen_new (shadow_screen.c:73)
==12776==    by 0x5B97C9B: shadow_server_start (shadow_server.c:380)
==12776==    by 0x40371F: main (shadow.c:94)
==12776== 1,712 (112 direct, 1,600 indirect) bytes in 1 blocks are definitely lost in loss record 681 of 743
==12776==    at 0x4C29DB4: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==12776==    by 0x615E595: MessageQueue_New (MessageQueue.c:194)
==12776==    by 0x5E43726: FreeRDP_WTSVirtualChannelOpen (server.c:985)
==12776==    by 0x40832B: rdpsnd_server_start (rdpsnd_main.c:611)
==12776==    by 0x5B954AC: shadow_client_rdpsnd_init (shadow_rdpsnd.c:97)
==12776==    by 0x5B94FE0: shadow_client_channels_post_connect (shadow_channels.c:41)
==12776==    by 0x5B915E4: shadow_client_post_connect (shadow_client.c:238)
==12776==    by 0x5E55CC1: rdp_server_transition_to_state (connection.c:1285)
==12776==    by 0x5E13A38: rdp_server_accept_client_font_list_pdu (activation.c:373)
==12776==    by 0x5E71DF4: peer_recv_tpkt_pdu (peer.c:307)
==12776==    by 0x5E7203A: peer_recv_pdu (peer.c:452)
==12776==    by 0x5E725FA: peer_recv_callback (peer.c:596)
==12776==
==12776== 1,712 (112 direct, 1,600 indirect) bytes in 1 blocks are definitely lost in loss record 682 of 743
==12776==    at 0x4C29DB4: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==12776==    by 0x615E595: MessageQueue_New (MessageQueue.c:194)
==12776==    by 0x5E43726: FreeRDP_WTSVirtualChannelOpen (server.c:985)
==12776==    by 0x5E42F14: WTSVirtualChannelManagerCheckFileDescriptor (server.c:453)
==12776==    by 0x5B93234: shadow_client_thread (shadow_client.c:1090)
==12776==    by 0x617AB72: thread_launcher (thread.c:315)
==12776==    by 0x73D7E99: start_thread (pthread_create.c:308)
==12776==
==12776== 3,040 bytes in 1 blocks are definitely lost in loss record 689 of 743
==12776==    at 0x4C29DB4: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==12776==    by 0x6DEE3B0: rdtk_font_parse_descriptor_buffer (rdtk_font.c:409)
==12776==    by 0x6DEE91F: rdtk_embedded_font_new (rdtk_font.c:704)
==12776==    by 0x6DEEA3B: rdtk_font_engine_init (rdtk_font.c:731)
==12776==    by 0x6DEF8BF: rdtk_engine_new (rdtk_engine.c:39)
==12776==    by 0x5B93BCA: shadow_client_init_lobby (shadow_lobby.c:41)
==12776==    by 0x5B9402A: shadow_screen_new (shadow_screen.c:73)
==12776==    by 0x5B97C9B: shadow_server_start (shadow_server.c:380)
==12776==    by 0x40371F: main (shadow.c:94)
==12776==
==12776== 50,564 (40 direct, 50,524 indirect) bytes in 1 blocks are definitely lost in loss record 722 of 743
==12776==    at 0x4C29DB4: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==12776==    by 0x6DEE8D1: rdtk_embedded_font_new (rdtk_font.c:675)
==12776==    by 0x6DEEA3B: rdtk_font_engine_init (rdtk_font.c:731)
==12776==    by 0x6DEF8BF: rdtk_engine_new (rdtk_engine.c:39)
==12776==    by 0x5B93BCA: shadow_client_init_lobby (shadow_lobby.c:41)
==12776==    by 0x5B9402A: shadow_screen_new (shadow_screen.c:73)
==12776==    by 0x5B97C9B: shadow_server_start (shadow_server.c:380)
==12776==    by 0x40371F: main (shadow.c:94)
...
==12776== LEAK SUMMARY:
==12776==    definitely lost: 3,329 bytes in 6 blocks
==12776==    indirectly lost: 53,724 bytes in 7 blocks

take in account @mfleisz remarks and I'm ok with it.


spiderified markers collapse every time some markers are added to the cluster

Consider the following scenario:

a cluster is created
as time goes by, more and more markers are added to the cluster
you start interacting with the map while markers keep getting added to the cluster every once in a while
you zoom in and you spiderify an icon by clicking on it

Issue: if markers are added while the markers are spiderified, they "unspiderify", meaning they collapse into an icon again. This happens even if the markers that are being added are unrelated with the ones that are spiderified (i.e. they are far away and don't change the number of markers in the "spider").
This is very annoying because it means you just cannot keep adding markers in real time while the user is using the map.
Ajax loading of data that is turned into markers, for example, results in disturbing the user by continuously collapsing the markers that the user is spiderifying.

I've attempted a fix for this.  When ever a marker is added or removed it stores a list of spidered markers, then after the clusters are recreated it looks for the cluster containing the stored makers at the current zoom level and spiderfies it.


Housekeeping

[X] I'm sure this issue is not a duplicate

Icon Type

[X] File Icon
[ ] Folder Icon

Icon Type

[ ] Extension
[ ] Filename
[ ] Language ID

Original Icon

Icon Information
https://www.grit.io/
More Information:
No response

is it a file icon or a folder icon ??

and what other types does grit support??


[WIP] Add v2v transformation validation.

Follow up of https://github.com/ManageIQ/manageiq/pull/17177.
@miq-bot assign @gmcculloug
@miq-bot add_label enhancement, transformation
cc @bzwei

Combined with https://github.com/ManageIQ/manageiq/pull/17177.


Change tag doesn't open overlay for certain images

Closed in: https://github.com/kitematic/kitematic/pull/446


Fix controlboard bug on resetPositionsAndTrajectoryGenerators at initial configuration

Closes #108

Do you have any idea why codecov continues to spam messages?

Do you have any idea why codecov continues to spam messages?

unfortunately my updates to the CI yaml were not effective... I think I need to create a separate codecov.yaml file to customize its behavior: https://docs.codecov.com/docs/codecov-yaml

Anyhow it is possible to reproduce the exception I got in https://github.com/robotology/gz-sim-yarp-plugins/issues/103#issuecomment-1978894636 by launching the single pendulum tutorial and by commenting out the <initialConfiguration> block:
https://github.com/robotology/gz-sim-yarp-plugins/blob/1e86adb9247b159900c4eae312222950fa0f70f1/tutorial/single_pendulum/model.sdf#L99
Also here I verified that I had an empty vector as the result of calling:
https://github.com/robotology/gz-sim-yarp-plugins/blob/98f78ae5fff2fbcc8f5f240b3cb87475cded5451/plugins/controlboard/src/ControlBoard.cpp#L874

We're getting (again) a failure in the macos tests, in particular on the new test implemented:
https://github.com/robotology/gz-sim-yarp-plugins/actions/runs/8160658434/job/22307711533?pr=109#step:12:50
 libc++abi: terminating with uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument

An interesting reference on SO: https://stackoverflow.com/questions/66773247/libcabi-dylib-terminating-with-uncaught-exception-of-type-std-1system-er

We're getting (again) a failure in the macos tests, in particular on the new test implemented: https://github.com/robotology/gz-sim-yarp-plugins/actions/runs/8160658434/job/22307711533?pr=109#step:12:50
 libc++abi: terminating with uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument

An interesting reference on SO: https://stackoverflow.com/questions/66773247/libcabi-dylib-terminating-with-uncaught-exception-of-type-std-1system-er

Also this could be related to the bug #102, since different platforms I'mplement locking mechanisms in different ways, this problem maybe shows up only on macOs...

Since this macOS issue is not related to the current development and is already documented in #90, I will exclude the new test from it for the time being.

Test passed! Merging 🚀


Make launcher use of configuration file

https://github.com/input-output-hk/cardano-shell/issues/254
Fixed
Currently, this PR will fail the build due to not being able to build one of the library it's using:
http://hackage.haskell.org/package/time-units-1.0.0
After it's been fixed, I'll start integrating it on the launcher

I'm going to implement some test cases. After that, we can start reviewing it.

Why do we have yaml as the configuration format here?

Well, this is what I got from Daedalus CI and I don't see why I need to convert to different file. Also every other configuration file in this repo is yaml.

@HirotoShioi You do remember why we started to work on the Dhall format, right? It was exactly this case. Given I'm not familiar with what Daedalus will use in the future, but I don't see any issues using it, since I don't see why we should switch to yaml.

I went through the existing launcher code and made a document on what it's doing.
https://docs.google.com/document/d/1D6wG3kqDRflECtfCuXWo0awp1goq_RYP3L3x8cS-ypQ/edit#heading=h.vr5o8okkaduo
I wrote questions into it and would be very nice if someone can answer them.


[stable/prometheus-operator] Remove CRD hooks from CI entirely

What this PR does / why we need it:
The helm bug around provisioning CRDs has now started to affect the CI process for the prometheus-operator chart: https://github.com/helm/charts/issues/9241
In order to work around this I am proposing to perform the tests in two steps, by using the ci/*-values.yaml files

Deploy prometheus-operator main component only. This when the pod comes up its default configuration idempotently creates CRDs in the cluster. This will mean that the test cluster will always contain the necessary CRDs and if it ever gets reset they will be re-created.
Deploy the regular values file but disable CRD creation, avoiding the helm bug altogether.

Affected PRs:

https://github.com/helm/charts/pull/18188
https://github.com/helm/charts/pull/18161
https://github.com/helm/charts/pull/17844
https://github.com/helm/charts/pull/17997
https://github.com/helm/charts/pull/17354

Permanent solution:
This issue should be solved if we the test image is updated to at least helm version 2.14.x and then we update it in this repository.

https://github.com/helm/charts/issues/18310
https://github.com/helm/chart-testing/issues/179

Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/mychartname])

/retest

/retest

/assign


build: Update Sns Tokens

Modifications have been made to the icons and metadata of the Icrc tokens known to the Sns-Aggregator.

HotOrNot Index canister has been updated
CatalyzeDAO symbol becomes CAT


python3Packages.flax build failure on x86_64-linux as of ccb96534

Issue description
Build of python3Packages.flax failed on x86_64-linux as of ccb965342711fc2c7dfb05519a80dfe00d995c25.
build log
Maintainer cc: @ndl
Other cc: n/a
Steps to reproduce

Checkout nixpkgs at commit ccb965342711fc2c7dfb05519a80dfe00d995c25
Run nix-build -A python3Packages.flax

Technical details
- system: `"x86_64-linux"`
 - host os: `Linux 5.13.0-1021-azure, Ubuntu, 20.04.4 LTS (Focal Fossa), nobuild`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.7.0`
 - nixpkgs: `/nix/store/15bgv5yw914p2aqcg69dn19xqkf3pr0s-source`

Misc.
This issue was automatically generated by nixpkgs-upkeep.

CI workflow that created this issue.
Internal tag:<PHONE_NUMBER>068475253

ugh sorry about all these duplicate notifications @ndl, I'm working on a fix!

dup of https://github.com/NixOS/nixpkgs/issues/169020


Make 'keystore' not undefined

This PR fixes TypeError: Cannot read properties of undefined (reading 'keystore') when options.identity is defined and options.identity.provider.keystore is not.

Hi @aspironical
When is this the case? My thought is that if there is an identity that doesn't fit this convention it, then it should be changed so it does. I thought all Identity instances had this property.


aocr test does not work for real picture?

80% of http://www.cs.cmu.edu/~yuntiand/sample.tgz for train
the rest of it for testing
I trained and made model(model.ckpt-9000.data-00000-of-00001, model.ckpt-9000.index, model.ckpt-9000.meta) and aocr test command for the rest of the link sample data.
The result was great!, so I decided to aocr test command for my own picture.
I took a picture of a word(it was 'months' word) and edit size(to 187 x 31) and set background color to the same of the picture at ADOBE PHOTOSHOP.(The reason I set the background color is aocr test did not work at the image which was applied only for size edit, so I just tried)
Anyway it did not work at all. I aocr dataset and make testing.tfrecords file and tried below and it does not make results folder and there is no step process.
C:\Users\kimduknam>aocr dataset ./datasets/annotations-testing.txt ./datasets/testing.tfrecords
2018-02-07 10:37:33.179317: I C:\tf_jenkins\workspace\rel-win\M\windows\PY\36\tensorflow\core\platform\cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2
2018-02-07 10:37:33,182 root  INFO     Building a dataset from ./datasets/annotations-testing.txt.
2018-02-07 10:37:33,182 root  INFO     Output file: ./datasets/testing.tfrecords
2018-02-07 10:37:33,182 root  INFO     Processed 1 pairs.
2018-02-07 10:37:33,182 root  INFO     Dataset is ready: 1 pairs.
2018-02-07 10:37:33,182 root  INFO     Longest label (6): MONTHS
C:\Users\kimduknam>aocr test --max-prediction 30 --visualize ./datasets/testing.tfrecords
2018-02-07 10:37:39.292842: I C:\tf_jenkins\workspace\rel-win\M\windows\PY\36\tensorflow\core\platform\cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2
2018-02-07 10:37:39,294 root  INFO     phase: test
2018-02-07 10:37:39,294 root  INFO     model_dir: ./checkpoints
2018-02-07 10:37:39,294 root  INFO     load_model: True
2018-02-07 10:37:39,294 root  INFO     output_dir: ./results
2018-02-07 10:37:39,294 root  INFO     steps_per_checkpoint: 0
2018-02-07 10:37:39,294 root  INFO     batch_size: 1
2018-02-07 10:37:39,294 root  INFO     learning_rate: 1
2018-02-07 10:37:39,294 root  INFO     reg_val: 0
2018-02-07 10:37:39,294 root  INFO     max_gradient_norm: 5.000000
2018-02-07 10:37:39,294 root  INFO     clip_gradients: True
2018-02-07 10:37:39,294 root  INFO     max_image_width 160.000000
2018-02-07 10:37:39,294 root  INFO     max_prediction_length 30.000000
2018-02-07 10:37:39,294 root  INFO     channels: 1
2018-02-07 10:37:39,294 root  INFO     target_embedding_size: 10.000000
2018-02-07 10:37:39,294 root  INFO     attn_num_hidden: 128
2018-02-07 10:37:39,294 root  INFO     attn_num_layers: 2
2018-02-07 10:37:39,294 root  INFO     visualize: True
2018-02-07 10:37:42,850 root  INFO     Reading model parameters from ./checkpoints\model.ckpt-9000

I'm sorry it's just max_image_width problem. I resize months.jpg to 159x29. It works well!