Deploy to Azure free web account

The first problem with these accounts was the fact that you dont have access to %appData% this meant changing the default location that FileDatastore attempts to write to
    /// <summary>
    /// Authenticate to Google Using Oauth2
    /// Documentation https://developers.google.com/accounts/docs/OAuth2
    /// </summary>
    /// <param name="clientId">From Google Developer console https://console.developers.google.com</param>
    /// <param name="clientSecret">From Google Developer console https://console.developers.google.com</param>
    /// <param name="userName">The user to authorize.</param>
    /// <returns>a valid AnalyticsService</returns>
    public static PlusService PlusServiceAuth(string clientId, string clientSecret, string userName)
    {
        if (string.IsNullOrEmpty(clientId))
            throw new Exception("clientId is required.");
        if (string.IsNullOrEmpty(clientSecret))
            throw new Exception("clientSecret is required.");
        if (string.IsNullOrEmpty(userName))
            throw new Exception("userName is required for datastore.");

        string[] scopes = new string[] { PlusService.Scope.PlusLogin };         // modify your app scripts

        try
        {
            string credPath = HttpContext.Current.Server.MapPath("~/credentials/Plus");
            //string credPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal);
            //credPath = Path.Combine(credPath, ".credentials/Analytics");

            // here is where we Request the user to give us access, or use the Refresh Token that was previously stored in %AppData%
            UserCredential credential = GoogleWebAuthorizationBroker.AuthorizeAsync(new ClientSecrets { ClientId = clientId, ClientSecret = clientSecret }
                                                                                , scopes
                                                                                , userName
                                                                                , CancellationToken.None
                                                                                , new FileDataStore(credPath, true)).Result;

            var service = new PlusService(new BaseClientService.Initializer()
            {
                HttpClientInitializer = credential,
                ApplicationName = "Drive Authentication Sample",
            });

            return service;
        }
        catch (Exception ex)
        {
            Console.WriteLine(ex.InnerException);
            throw ex;
        }

    }

Using HttpContext.Current.Server.MapPath fixes that.
Which then results in the following error.   My research has lead me to wonder if the server has the authentication end points locked out so it is now ignoring the request from the server.       Which leads me to wonder if we can deploy the library to free servers.    I have done it previously with service accounts so i am a little confused as to why oauth2 wont work unless its the actually call back that's the issue.

Access is denied
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.HttpListenerException: Access is denied
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpListenerException (0x5): Access is denied]
System.Net.HttpListener.SetupV2Config() +333
System.Net.HttpListener.Start() +297
Google.Apis.Auth.OAuth2.d__6.MoveNext() +188
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +92
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
Google.Apis.Auth.OAuth2.d__8.MoveNext() +530
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +92
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
Google.Apis.Auth.OAuth2.d__4.MoveNext() +390
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +92
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
Google.Apis.Auth.OAuth2.d__1.MoveNext() +263
[AggregateException: One or more errors occurred.]
WebApplication1.Account.plusAuth.PlusServiceAuth(String clientId, String clientSecret, String userName) +423
WebApplication1.Account.Login.LogIn(Object sender, EventArgs e) +29
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +9712662
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +204
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +12
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +15
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
System.Web.UI.d__523.MoveNext() +5750

I have seen a number of issues posted recently related to the library and ASP.net and WPF.  I thought it was time we see if there is in fact something wrong that we can fix.      I have very little experience with IIS, azure web accounts and web development in general  I will leave my research here in the event someone has something to add.
Note: adding   <customErrors mode="Off"/> to web.config under system.web.   Displays the huge stack trace.

Collecting possible related issues here https://github.com/google/google-api-dotnet-client/issues/898#issuecomment-275092991

Follow this https://developers.google.com/api-client-library/dotnet/guide/aaa_oauth#web-applications-aspnet-mvc

@LindaLawton  Hi, I'm trying to build a web app to access google sheet API. It work perfect on my local computer, but I got "Access is denied" after I deploy on the Microsoft Azure. I have tried the instruction you mentioned above , https://developers.google.com/api-client-library/dotnet/guide/aaa_oauth#web-applications-aspnet-mvc
But I cannot get the "result.Credential" in the HomeController. Do you have any suggestion or you have done some sample code? Thank you!

make sure you have filedatastore storing in the current directory.   azure free account doesn't have access to %appdata% which is where file data store puts the files by default

Any solution to it.I am facing same issue.
Hi,
My web API is working fine in local environment but not when I deploy in Azure.I am trying to extract google analytics data.
I used below code and it was throwing Access denied error.
var credential = GoogleWebAuthorizationBroker.AuthorizeAsync(clientSecretJson,
scopes,
userName,
CancellationToken.None,
new FileDataStore(credPath, true)).Result;
I searched that there is MVC connector as well
public class AppFlowMetadata: FlowMetadata
{
private static string clientId = "387048775058-4mtu89ri1iqmonj4lsnr8u5d3d93g7ir.apps.googleusercontent.com";
private static string clientSecret = "p6lwO3_RE4MkKWjhIjf1hAuI";
private static string[] scopes = new[] { AnalyticsService.Scope.Analytics };
private static readonly IAuthorizationCodeFlow flow =
    new GoogleAuthorizationCodeFlow(new GoogleAuthorizationCodeFlow.Initializer
    {
        ClientSecrets = new ClientSecrets
        {
            ClientId = clientId,
            ClientSecret = clientSecret
        },
        Scopes = scopes,
        DataStore = new FileDataStore("Drive.Api.Auth.Store")
    });

public override string GetUserId(Controller controller)
{
    // In this sample we use the session to store the user identifiers.
    // That's not the best practice, because you should have a logic to identify
    // a user. You might want to use "OpenID Connect".
    // You can read more about the protocol in the following link:
    // https://developers.google.com/accounts/docs/OAuth2Login.
    var user = controller.Session["user"];
    if (user == null)
    {
        user = Guid.NewGuid();
        controller.Session["user"] = user;
    }
    return user.ToString();

}

public override IAuthorizationCodeFlow Flow
{
    get { return flow; }
}

}
But its for MVC not for WEB API because this one is defined for AuthorizationCodeMvcApp MVC.
public async Task IndexAsync(CancellationToken cancellationToken)
{
var result = await new AuthorizationCodeMvcApp(this, new AppFlowMetadata()).
AuthorizeAsync(cancellationToken);
    if (result.Credential != null)
    {
        var service = new AnalyticsService(new BaseClientService.Initializer
        {
            HttpClientInitializer = result.Credential,
            ApplicationName = "ASP.NET MVC Sample"
        });

    }
    else
    {
        return new RedirectResult(result.RedirectUri);
    }
}

Please help me.I have to build API which in turns connect with Google Analytics and deliver Analytics data.
I have to publish this in Azure app .Its not working for Azure App and VM.

What exactly is the error you are getting?   Is it asking for authentication?

It saying unable to launch browser in Azure web app.I deployed in VM as well

Sounds like its trying to launch the browser on the server and not on the users browser.  It works on localhost because you have the power to launch a new browser session on your local pic.   The problem comes when you try and deploy it and it trys to launch browser on the server rather in a new client browser.  You should be following this authweb apps

Yes I tried looking into authweb apps they have for MVC but not for API.My goal is to run a batch or an api which i can spin and get data into my sql table.
var result = await new AuthorizationCodeMvcApp(this, new AppFlowMetadata()).  but there is no library for web api  and I dont know it will work for azure web jobs

if I will be using API i will use azure data factory http module and i will schedule it to run everyday. If i have to use azure web jobs or batch i will pass exe but batch and jobs will not allow brouser to launch so stuck completely.

Whos data is this yours or your users?

its users which we are targeting thats why  badly we stuck

will google create library for API as they have for MVC?

You cant just use this as an api your going to have to allow your users to authenticate the code to do that they need to have a browser displayed, you need the mvc option.   Once you have their credentials stored you will be able to use them in your api.

through service account can i get all the data or my personal data only?

A service account is a dummy user.   You can share what ever data you want with it.   Yes you can share your personal data with it.    You could also have your users share their data with it directly but this isnt a good idea as its hard to keep things private.

FlowMetadata is not supported in NET Core 2?


netdata-go-plugins: 0.54.1 -> 0.55.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/netdata/go.d.plugin/releases.
meta.description for netdata-go-plugins is: Netdata orchestrator for data collection modules written in go
meta.homepage for netdata-go-plugins is: https://github.com/netdata/go.d.plugin
meta.changelog for netdata-go-plugins is: https://github.com/netdata/go.d.plugin/releases/tag/v0.55.0
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.55.0 with grep in /nix/store/rnpg1jnbxdlh5dqqm4c66cs56jvcpdiq-netdata-go-plugins-0.55.0
found 0.55.0 in filename of file in /nix/store/rnpg1jnbxdlh5dqqm4c66cs56jvcpdiq-netdata-go-plugins-0.55.0

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

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath
netdata
netdata-go-plugins

Instructions to test this update (click to expand)

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

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

Or:
nix build github:r-ryantm/nixpkgs/e78c45fb6f39c04f875c6cae188de7bdc86d6671#netdata-go-plugins

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/rnpg1jnbxdlh5dqqm4c66cs56jvcpdiq-netdata-go-plugins-0.55.0
ls -la /nix/store/rnpg1jnbxdlh5dqqm4c66cs56jvcpdiq-netdata-go-plugins-0.55.0/bin

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

2 packages built:

netdata
netdata-go-plugins

Maintainer pings
cc @RaitoBezarius for testing.

Superseded by #256359


a simple proposal for repertoire groups and time course

Comparative analysis between repertoire groups (e.g. Treatment vs. Control) is a common procedure, and time course is also an increasingly common experimental design, so it would be nice to have a simple way to define and document them in the metadata.
I have two proposals, both relatively simple. The first proposal is to have an explicit RepertoireGroup object that defines the group.
RepertoireGroup:
    discriminator: AIRR
    type: object
    properties:
        group_id:
            type: string
        group_name:
            type: string
        group_description:
            type: string
        repertoires:
            type: array
            items:
                type: string
        time_course:
            type: array
            items:
                type: string

I'm not sure if we need group_id or whether group_name is sufficient; it might depend a bit on how we want to manage provenance.
The repertoires array is a list of repertoire_ids (or PIDs), thus defining the group.
For time course, as repertoires is an array, it defines an explicit ordering of those repertoires. Then the time_course array, which should be the same length as repertoires, provides user-defined labels (e.g. ["5w", "6m", "1y"] or ["1", "2", "3"] or ["pre", "post"]) for each time point.
In terms of the file format, the metadata file has an Info object and a Repertoire array, we could just add a RepertoireGroup array and store it in the same file.
The other proposal is an implicit definition. Here we add a couple of fields to the Repertoire object.
Repertoire:
    discriminator: AIRR
    type: object
    properties:
        groups:
            type: array
            items:
                type: string
        time_course:
            type: string

This acts as a simple tagging scheme, you add user-defined "tags" to the groups array (e.g. ["treatment", "another"]).
Then to operate on a group, you would iterate over all of your repertoires and collect the ones with the same tag like "treatment".
For time course, I'm assuming the repertoire has just one time course label. I suppose time_course could also be an array, and then groups have to be kept in sync (order wise) with time_course.
This implicit definition requires that you know the set of repertoires, and there is the chance for tag conflict/confusion if repertoires from different studies are used together. There is also the question of provenance if a new study groups repertoires in a different way, i.e. adds new tags to groups, how would one record that? Therefore, because of these issues, I'm less inclined towards this implicit definition but I offer it as it seems even simpler.
VDJServer currently support repertoire groups, but it goes a step further by allowing the groups to be dynamically defined. For example, you can provide a "group by" variable such as subject.subject_id and it will create groups for each value in the variable, in this case repertoires grouped by each subject. Another method is a simple logical statement, subject.sex == male, to group repertoires where the statement true. By the time of execution, these all essentially get translated into a static list of repertoires like in RepertoireGroup above. However, we could consider something like this if we want to go beyond the simple proposal.

I like the RepertoireGroup idea. It feels simpler/more intuitive, and seems like it would work well with expanding the Clone object like we talked about...


Add StringTensorHandle support

This patch adds Swift support for String Tensors by adding an opaque handle StringTensorHandle and refactoring relevant code in visitGraphOperationInst.
Originally visitGraphOperationInst only supported tensor attributes of Int and Float types, by casting both toAPInt and call convertValuesToTensor to construct a TF_Tensor. Since we need to support String tensors, we use the SymbolicValue type directly and let convertValuesToTensor perform the specific logic for converting Int, Float or String to a tensor with the corresponding dtype.

I added some runtime tests in TensorFlowRuntime/string.swift

@swift-ci Please test tensorflow

@lattner and @mhong, PTAL this external patch. The main contribution here is allowing strings in tensor attributes to be used to initialize a string tensor using tfop Const.
Whether String can be Accelerator is an orthogonal topic. StringTensorHandle can be replaced by a conformance to AccelerableByTensorFlow if we end up deciding to make Tensor<String> constructible.

The lowering changes all look great, but it would be really nice to be able to use this as a standard Tensor if possible

@lattner Tensor<String> is a design question I think it should be discussed later. There can be problems fitting Tensor<String> in the existing Tensor API. For example, the cast initializer Tensor.init<OtherScalar>(_:) assumes things can be cast back and forth. But this is not the case for Tensor<String>!
@njjiang's changes to lowering are applicable, no matter String is AccelerableByTensorFlow or not. This is because string tensors have a different memory representation cannot be initialized like normal numeric/boolean tensors. The minimal addition for testing the lowering capability is thereby adding an opaque handle for now.

I agree the lowering code looks great.
Sure, but the cast back and forth can be handled (depending on what resolution we choose) through generic constraints.  The thing I'm most concerned with is the new StringTensorHandle type.  I don't understand why we can't use TensorHandle here.

@swift-ci please test tensorflow

@swift-ci please test tensorflow

@lattner I'm aware that TensorHandle<String> will make the compiler mechanism work out, but I'm not sure Tensor<String> is a good design as a tensor/mathematical library. I was think of a different approach - possibly building a type like TFStringArray. But if you insist, I'm fine with making Tensor<String> possible for now and revisit this later.

I'm open to evaluating other Tensor<> level API design possibilities!  Having the underlying tensorflow representation match the tensorflow graph API make sense even if Tensor is disallowed though.
I also suspect that we'll find ourselves swimming upstream against the metadesign of a lot of TF ops if we don't do this.  Swift supports conditional conformances, so Tensor can only provide the numeric properties when the element type is numeric in either design.

I agree that the underlying handle should use the same representation. A possible direction is to have two different protocols: a restrictive user-facing protocol for constraining the generic parameter type, and a permissive protocol refining the restrictive one for the internal XXXHandle<T> representation. Implementation detail aside, the pros and cons of the Tensor<String> type will be re-evaluated.

The patch is not done yet, though. The tensor library does not know how to copy elements of a Tensor<String> back to host, because yet again Tensor<String> has a different representation in memory. So if you test
let x = Tensor("foo")
x.scalarized()

This will almost certainly fail. TensorBuffer or ShapedArray needs to be updated to decode a TF string elements from a tensor by calling TF_StringDecode.

Thanks for the review, everyone! I just tried @rxwei's test case and it failed. I will update the patch to handle copying to host.
[ RUN      ] String.StringComparison
stderr>>> 2018-08-06 23:00:45.847614: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.2 AVX AVX2 FMA
stderr>>> Fatal error: Unexpectedly found nil while unwrapping an Optional value
stderr>>> CRASHED: SIGILL
the test crashed unexpectedly
[     FAIL ] String.StringComparison
String: Some tests failed, aborting

Yeah. Handling TF_STRING isn't gonna play well with the existing code since we always assume trivially copyable elements in ShapedArray's TensorBuffer. The fact that TensorBuffer.Allocation can be either case native(BoxedArray) or case tensorflow(CTensor) complicates things even more. I'd suggest simplifying the logic altogether: remove TensorBuffer completely and use a Swift Array to represent ShapedArray's storage. Then, add an internal initializer form CTensor: ShapedArray.init(cTensor:). If the dtype is string, decode each element and append to the storage array; otherwise, just do an UnsafeMutablePointer.initialize to do mem copy from the string base address to the storage array's base address.
Simplifying ShapedArray is gonna be more work than supporting TF_STRING tensor lowering, so I think it should be a separate patch. If you'd like, I'll be happy to take this on. Or if you prefer to do it in a separate patch, that would be greatly appreciated!

@swift-ci please test tensorflow

@swift-ci please test tensorflow

@swift-ci please clean test tensorflow

Thanks for the suggestions! I can take a stab at it in a separate patch.


Feature Request: Add Zod Validation to API Endpoints

Currently, the API routes (e.g., /register) accept and handle user input without any structured validation. This could potentially lead to improper or invalid data being passed into the system, which could cause downstream issues in the application (e.g., malformed data in the database).
Proposed Solution:
I recommend integrating Zod to handle schema validation for incoming API requests. Zod is a TypeScript-first schema declaration and validation library that makes it easier to enforce data consistency and handle errors in a structured way.
Goals:
Validate Incoming Data: Apply Zod validation to ensure the incoming request data (e.g., name, age, contact, etc.) meets specific constraints before processing the request.

Graceful Error Handling: Respond with meaningful error messages if the data does not meet the validation schema.

Maintain Data Integrity: Ensure that only valid and well-structured data reaches the database.

i want to working on this issue @Luson045 , if you did n't have any issue

currently some people are working on the user authentication part i'd like to add this issue but seperating all of these things would cause decentralization, i'll confirm in a while

consider explaining your ideas here and aligning it with others discussion #40

we are already assigned with authentication. in the issue #36 . can we implement zoi (a node library) for this issue.


Warning: Data for key 'buttons' in path 'academic\page_sharer.toml' is overridden

I have updated the theme today, to test the customization of Page Sharer. I have followed the instructions and now when I build the web I get the next warning:
Building sites … WARN 2019/06/17 12:21:39 Data for key 'buttons' in path 'academic\page_sharer.toml' is overridden by higher precedence data already in the data tree

Everything works fine, but I don't know if I have to do something to avoid that warning or I con just ignore it.
Repo: https://github.com/ImAlexisSaez/academic-kickstart

The process of overriding a data file follows the official Hugo documentation, so I don't know why Hugo team decided to show a Warning message in this case. It should be fine to ignore it as it appears that it should be an Info or Debug level message rather than a Warning. I have raised it with Hugo team: https://discourse.gohugo.io/t/hugo-bug-warning-higher-precedence-data-already-in-the-data-tree/19236

Closing this issue as Bep is expecting to fix this in Hugo soon: https://github.com/gohugoio/hugo/pull/6049#issuecomment-504027923


Code scan alert - Potentially uninitialized local variable in os_stub/cryptlib_mbedtls/pk/x509.c

Alerts:
https://github.com/liuw1/libspdm/security/code-scanning/16
https://github.com/liuw1/libspdm/security/code-scanning/17
https://github.com/liuw1/libspdm/security/code-scanning/18
https://github.com/liuw1/libspdm/security/code-scanning/19
https://github.com/liuw1/libspdm/security/code-scanning/20

I will check it.


Recovering from missing input at eof

I am having trouble recovering from the top-level nesting error that occurs when missing brackets.
Here is a simplified nano rust example:
fn main() -> i32 {
  0

As you can clearly see, the closing bracket is missing.
Using the nested_delimiters recovery method, I can propagate an arbitrary nesting error to the top level, but I am unable to handle this top-level error.
To solve this, I propose adding a recovery which creates a virtual stream from the faulty span amended with a constant expression. If the amended stream succeeds, the recovery returns the result; otherwise it returns the original result.
The code below displays a proposed usage.
nested_block
  .recover_with(amend_then_retry([Token::Ctrl('}')]));

The pseudocode below displays the proposed functionality.
pub struct AmendThenRetry<I, const N: usize>(
    pub(crate) [I; N],
);

type StreamOf<'a, I, E> = Stream<'a, I, <E as Error<I>>::Span>;
type PResult<I, O, E> = (
    Vec<chumsky::error::Located<I, E>>,
    Result<(O, Option<chumsky::error::Located<I, E>>), chumsky::error::Located<I, E>>,
);

impl<I: Clone + PartialEq, O, E: chumsky::Error<I>, const N: usize> chumsky::recovery::Strategy<I, O, E> for AmendThenRetry<I, N> {
    fn recover<D: chumsky::debug::Debugger, P: Parser<I, O, Error = E>>(
        &self,
        recovered_errors: Vec<chumsky::error::Located<I, P::Error>>,
        fatal_error: chumsky::error::Located<I, P::Error>,
        parser: P,
        debugger: &mut D,
        stream: &mut StreamOf<I, P::Error>,
    ) -> PResult<I, O, P::Error> {
        let fatal_span = fatal_error.at..stream.offset();
        let amended_span = fatal_span.start..(fatal_span.end+ N);

        stream.revert(fatal_span.start);
        let amended = stream.take(fatal_span.len())
            .chain(self.0.into_iter());

        let amended = StreamOf::from_iter(amended_span, amended);
        let res = amended.try_parse(parser);

        stream.revert(fatal_span.end);

        res
    }
}

Depending on which position fatal_error.at refers to, the recovery might need to wrap the parser instead. Input needed.
Before opening a PR for this, I'd love to collect more opinions on my proposed solution.
If there is already a method available that solves this particular problem, feel free to educate me :)

So I've ended up handling similar such cases in the json.rs example like so: https://github.com/zesterer/chumsky/blob/main/examples/json.rs#L92
Any solution to this should porbably be implemented on main, which is a near-total rewrite of the crate from scratch (0.9 is now the legacy branch), but it would be nice to find better ways to resolve this. I think your proposed system could work, but probably needs extensive testing.

Thank you a lot for the answer!
Since the 1.0 release will feature a method to recover from this, I don't think my proposal adds value.
Besides, some people might be adversed to ghost tokens, alltho Roslyn (C# compiler) and Javac handle error recovery this way (because they run analysers and need to reprint the recovered source).
The recovery mentioned in json.rs does not seem possible to implement using the recovery functionality provided in 0.9:

NestedDelimiters
SkipParser
SkipThenRetryUntil
SkipUntil

For now, I will wait for the release and a migration guide to 1.0. Feel free to close this issue

0.9 provides the skip_parser strategy that works the same as via_parser in 1.0, so you could still take this approach.


Could you provide extractCDS.pl？

Thank you very much for your work. Recently, I want to identify the OR gene. But I didn't find extractCDS.pl in this repository. Where can I get this script?
thank you

Hi @shimw6828:
I have modified the readme file now. You don't need extractCDS.pl as it has been incorporated into the ORFinder.pl script.
Please use the following command and it should take care of everything.
perl koalaor/ORFinder.pl -reffasta /path/to/genome.fasta(.gz) -speciescode HUMAN -outputdir /path/to/output/directory -threads 6

Have a look at readme file too. Let me know if you run into problems.
Cheers

Hi @shimw6828:
I have modified the readme file now. You don't need extractCDS.pl as it has been incorporated into the ORFinder.pl script.
Please use the following command and it should take care of everything.
perl koalaor/ORFinder.pl -reffasta /path/to/genome.fasta(.gz) -speciescode HUMAN -outputdir /path/to/output/directory -threads 6

Have a look at readme file too. Let me know if you run into problems.
Cheers

Thank you, I have another question. Could you tell me how to identify Pseudo-OR gene in your method?

Hi @shimw6828
pseudo genes and partial genes would be labeled with a trailing P. Trailing F is for full length OR with predicted intact ORF.
I hope this helps.
Cheers

Hi @shimw6828
pseudo genes and partial genes would be labeled with a trailing P. Trailing F is for full length OR with predicted intact ORF.
I hope this helps.
Cheers

Thanks a million！！！


[Faucet] Replace actix with axum

actix is starting to fall behind ito of depedencies and axum has the momentum and backing of tokio. Replace actix with axum in the faucet.
Some context in #476.

Resolved by https://github.com/0xPolygonMiden/miden-node/pull/511


error: the target 'SwiftSyntax' in product 'SwiftSyntax' contains unsafe build flags

Our app has a bootstrap script we run to set up new development environments. The script installs homebrew, mint, and then builds bartycrouch through mint. Recently this script started failing to build bartycrouch. Something changed with how SwiftSyntax includes unsafe flags in its Package.swift file, and it seems like it's including them in cases where it didn't used to. When I pin the SwiftSyntax  version to exact version "0.50500.0" instead of from version, the build works again. Not sure what the best longterm fix is here though.
Here's a commit of what I mean (it's being changed from revision because I tried that as well - also worked). I can put up a PR for this if needed.
https://github.com/philviso-reverb/BartyCrouch/commit/a2ecc766ba981ed0fff3f1f591bd39a08b1a7207
Expected Behavior
bartycrouch builds successfully
Actual Behavior
bartycrouch build fails with this error...
'SwiftSyntax'
error: the target 'SwiftSyntax' in product 'SwiftSyntax' contains unsafe build flags

More information about that error:
https://forums.swift.org/t/question-about-contains-unsafe-build-flags-in-spm/47677
Steps to Reproduce the Problem

Install mint
Create a Mintfile with these contents

<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>
(Not sure if that other stuff matters, but figured I'd throw it in here just in case it does)

run mint bootstrap

Specifications

Version: 4.9.0
Platform: MacOS 12.2.1
IDE Version: Xcode 13.2.1

@Jeehut Thanks for the update!

@philviso-reverb I'm currently working on the new release in public during my live stream. Join me if you're interested: https://www.twitch.tv/Jeehut

@philviso-reverb I just released version 4.10.0 with a fix. Should be live once https://github.com/Homebrew/homebrew-core/pull/97188 is merged. 🎉

This comment was written during my regular Open Source live stream on Twitch. Follow me there to support my work!

@FlineDevPublic Thanks! (Sorry for the late reply, I totally missed your comment)


Update packet_analysis.py

Summary of Modifications to the PacketAnalysis Code: Security Enhancements:
Input Sanitization:
The run_tshark_command and perform_full_analysis methods now sanitize arguments using shlex.quote before passing them to the tshark command. This mitigates the risk of command injection vulnerabilities. Error Handling:
While not explicitly shown in the provided code snippet, it's crucial to implement robust error handling mechanisms to catch potential exceptions and provide informative error messages. This helps prevent unexpected behavior and potential security issues. Performance Optimizations:
Parallelization:
The stream method leverages ThreadPoolExecutor to parallelize the execution of tshark commands, potentially improving performance when analyzing large pcap files. Efficient Data Structures:
The extract_network_info method utilizes sets to efficiently collect unique values for services, ports, addresses, and other network information. Profiling and Optimization:
If performance is a critical concern, consider profiling the code to identify bottlenecks and optimize accordingly. Additional

It looks fine to me but I will still look into execution and if it turns out ok I will proceed with the commit. I would love if if you update the README with the changes and added features 👍


dm: use old version of sync_diff

as title
related to https://github.com/pingcap/ticdc/pull/3247
replayed CI success in here

/cc @purelind

Curious about how you debug this config🤔. It seems the replayed CI  used the config from git@github.com:PingCAP-QE/ci.git.

Curious about how you debug this config🤔. It seems the replayed CI  used the config from git@github.com:PingCAP-QE/ci.git.

@gozssky
actully not, you can check the diff here


Based on the main branch environment, what will happen to the res.phylo.to_fasta_ dev (os. path. join (out_cath, "db", names [i * search_datch+j]+'. fasta') method of phylopandas

Based on the main branch environment, what will happen to the res.phylo.to_fasta_ dev (os. path. join (out_cath, "db", names [i * search_datch+j]+'. fasta') method of phylopandas
File "/hpcfs/fhome/xxxx/.conda/envs/dprv3/lib/python3.9/site-packages/phylopandas/seqio/write.py", line 183, in _write
seq_records.to_csv(filename, sep='\n', header=False, index=False, line_terminator='\n>', mode='a+')
TypeError: to_csv() got an unexpected keyword argument 'line_terminator'

Thank you for the report. Currently I have removed the dependency on phylopandas due to numerous compatibility issue and supports tsv format input. Please try to pull again.
The problem you see here is probably due to different args in different pandas version.


iGen can support it？

Sure, but it may take a while before I plan to do it.

Sure, but it may take a while before I plan to do it.

Sure, but it may take a while before I plan to do it.

Sure, but it may take a while before I plan to do it.

加油！
最近正在学习您的CleanArchitecture，但是现在好容易弄混淆。

加油！
最近正在学习您的CleanArchitecture，但是现在好容易弄混淆。

let vc: ReposViewController = assembler.resolve(navigationController: nav)
let vc: MainViewController = assembler.resolve(navigationController: nav)

Isn't it a better way to use type derivation?
Is there any better way?

let vc: ReposViewController = assembler.resolve(navigationController: nav)
let vc: MainViewController = assembler.resolve(navigationController: nav)

Isn't it a better way to use type derivation?
Is there any better way?

You can rename the resolve function in the assembler to something else.

You can rename the resolve function in the assembler to something else.


Overflow in cases environment

Hey,
First, thank you for this great plugin ! I'm currently trying to implement it in my app alongside flutter_widget_from_html_core. But everytime I'm using the cases environment, I get a RenderLine overflowed of 16 pixels error.

(the second overflow error is due to #8)
The Math widget is inserted as an inline widget and its parent is a Column widget.

Thank you for your feedback. I'll check that. Possibly missing some tests.
Meanwhile as a suggestion, for display equation overflow caused by #8, you can always wrap it inside a scrollable widget.

Meanwhile as a suggestion, for display equation overflow caused by #8, you can always wrap it inside a scrollable widget.

Yes, that's what I figured out too. But the thing is that I don't like when these blocks are scrollable, because Text widgets do not wrap. For example,
Not in a scrollable widget :
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Nunc gravida ex eu velit sagittis laoreet. Pellentesque placerat
urna ut tempus molestie.

Morbi feugiat ornare orci sed pharetra. Aliquam elit ligula,
bibendum sit amet mi eget, porttitor lobortis nisi. Etiam mattis
tempor pellentesque.

In a scrollable widget :
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc gravida ex eu velit sagittis laoreet. Pellentesque placerat urna ut tempus molestie.

Morbi feugiat ornare orci sed pharetra. Aliquam elit ligula, bibendum sit amet mi eget, porttitor lobortis nisi. Etiam mattis tempor pellentesque.

(and I prefer the first one, but I also think I will have to implement the second one.) It would be great if Flutter allowed us to detect when an overflow occurs (so that I can use scrollable widgets only when needed), but I don't think it's possible, sadly 😄

It is a combination of corner cases inside RenderLine layout logic and parsing flaws for cases environment without second column. I'll fix it sometime later this week.

Great @znjameswu !

Hey @znjameswu, do you have any news about this one ?

Hey @znjameswu, do you have any news about this one ?

Sorry I'm having quite a burnout recently. I will work on this one as soon as possible.

Take your time @znjameswu, I know what it is to be completely overwhelmed with work.

Thanks a lot !


Allow to customize or override parameters

I need some tweek for ubuntu.
In order for collectd to work properly with logstash

Thank you!


docs: add favicon to documentation

Summary
Added favicon.ico to documentation. .ico file created from docs/static/logo-sidebar.png
Related issue
https://github.com/reearth/resium/issues/532
Before

After

How to test

navigate to docs/
run yarn install
run yarn start
access to http://localhost:3000/

If there is any favicon.ico you want to replace, please share it

Great. Thanks


New MDGameSynchronizer Tracking Peer ping and OS.GetTicksMsec() offset

Please see this issue for more information about why this was added.
I will now start adding the synchronization features mentioned in this issue

Thanks for all the comments, almost 1 am here now so I am off to bed. I will adjust everything mentioned here and commit it along with the second part of this system which is the pause on join synchronization. I already got it working and posted a video and logs here if you want to check it out.

Adding a section to the ReadMe about the Game Synchronizer would be good too.


Enhancement: Toggle between rag and full context for attached documents

What features would you like to see added?
When using long context models, it would be nice to be able to pass pdf or txt files with the intent to include all of it into the context.
More details

Add some rag/full toggle to the attached document(s).
Furthermore, it would be pretty neat to have an option to include a document to a precise message OR to a whole conversation.

For the precise message it would be useful in cases I ask a question like "according to this user manual, what is the best..."
For the whole conversation, it would act kind of a system message (but I don't think it sould be included in the system message since some models don't support it) containing "memory".
It would be even better to be able to include those in presets. This would allow me for example to have:

A "Ask LibreChat documentation" preset, using Claude 3 Haiku and including "libre-chat-whole-doc.md" as a conversation-wide "full" document context.
The same using Claude 3 Opus, with including "libre-chat-whole-doc.md" as a conversation-wide "rag" document context.

Which components are impacted by your request?
General, UI, Other
Pictures
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

"Furthermore, it would be pretty neat to have an option to include a document to a precise message OR to a whole conversation." might deserve its own issue, since it would be interesting with the current default rag approach.


We now have a test for "exists" method

solves issue #17

Approved?
does it mean I can merge it? :)

Yes
sön 25 sep. 2016 kl. 13:56 skrev Mattias<EMAIL_ADDRESS>
Approved?
does it mean I can merge it? :)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/flowertwig-org/jStorage/pull/20#issuecomment-249417540,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAb7tZ4dJhebjuubfHu4UqhZ61LGbBYWks5qtmFKgaJpZM4KFtQu
.


animationData error

Executing Gradle task: runClient
Build info: MCreator 2023.1.10610, forge-1.19.2, 64-bit, 7502 MB, Windows 11, JVM 17.0.5, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2023-05-09-21:33:37

Configure project :
The code of this workspace uses official obfuscation mappings provided by Mojang.
(c) 2020 Microsoft Corporation. These mappings are provided "as-is" and you bear the risk of using them. You may copy and use the mappings for development purposes,
but you may not redistribute the mappings complete and unmodified. Microsoft makes no warranties, express or implied, with respect to the mappings provided here.
Use and modification of this document or the source code (in any form) of Minecraft: Java Edition is governed by the Minecraft End User License Agreement available
at https://account.mojang.com/documents/minecraft_eula.

Task :compileJava FAILED
[C:\Users\boray\MCreatorWorkspaces\utily_animation\src\main\java\net\mcreator\utilyanimation\procedures\SetupAnimationsProcedure.java:38](file:///C:/Users/boray/MCreatorWorkspaces/utily_animation/src/main/java/net/mcreator/utilyanimation/procedures/SetupAnimationsProcedure.java:38): error: cannot find symbol
var animation = SetupAnimationsProcedure.animationData.get((Player) entity);
^
symbol:   variable animationData
location: class SetupAnimationsProcedure
1 error
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':compileJava'.

Compilation failed; see the compiler error output for details.

Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

Get more help at https://help.gradle.org
BUILD FAILED in 2s
1 actionable task: 1 executed

BUILD FAILED
Task completed in 3 seconds

really need help I try everything but nothing helps the problem

using outdated version


URI in request log is missing slash character before path

Description
If the path of a request does not start with a / character, the resulting URI in the request log will be missing the /.
For example, if the path base uri is http://localhost:8080/ and the path is test the log will show http://localhost:8080test.
Expected Behavior
The URI in the request log should be correct
Actual Behavior
The URI in the request log is correct
Possible Fix
From what I've been able to debug, the issue seems to reside in the way the URI is reconstructed in the RequestURI.reconstruct.
It simply adds the PATH without checking if it actually contains a / or not. So maybe the fix could be to prepend a / if it does not contain it.
Possible workaround: As of using Ktor, a workaround seems to be to explicity prepend a slash in the path of each client calls.
Steps to Reproduce
It is simple to reproduce for example when using Ktor as it allows to make requests without specifying a / when you configure a default request URI.
Simply run the following test class: https://github.com/grassehh/issues/blob/main/zalando-logbook-1793/src/test/kotlin/com/grassehh/ClientTest.kt.
Then in the logs you will see POST http://localhost:61361test instead of POST http://localhost:61361/test
Context
It make the log very confusing as you think your URI is incorrect while it is actually correct.
Your Environment

Version used: 3.7.2

@grassehh thank you for the thorough investigation for this issue. Indeed, there was a bug in the way RequestURI.reconstruct worked. The fix will be available in the next version.


Sorry, but we’re having trouble signing you in. We received a bad request.

After I input user (hotmail account) information I got this error:

AADSTS50020: We are unable to issue tokens from this api version for a Microsoft account. Please contact the application vendor as they need to use version 2.0 of the protocol to support this.

here is my config file:
import { AuthenticationContext, adalGetToken, adalFetch } from 'react-adal';

export const adalConfig = {
  tenant: 'common',
  clientId: '25fd0c46-6a83-550c-9a3e-c8214bfe0000',
  endpoints: {
    api: '25fd0c46-6a83-550c-9a3e-c8214bfe0000',
  },
  cacheLocation: 'localStorage',
};

export const authContext = new AuthenticationContext(adalConfig);

export const adalApiFetch = (fetch, url, options) =>
  adalFetch(authContext, adalConfig.endpoints.api, fetch, url, options);

I follow this instruction and now I can login:
https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-howto-tenant#use-an-msa-azure-subscription


Merge and update benchmarks

Splits things into separate benchmarks.
I couldn't get the actual stuff you've built to run on my mac, but I could at least set things up so that there's baselines and memory analysis for each group during an All-hands 😄

BenchmarkDotNet=v0.11.5, OS=macOS Mojave 10.14.4 (18E226) [Darwin 18.5.0]
Intel Core i7-7700HQ CPU 2.80GHz (Kaby Lake), 1 CPU, 8 logical and 4 physical cores
.NET Core SDK=3.0.100-preview4-011223
  [Host]     : .NET Core 2.1.4 (CoreCLR 4.6.26814.03, CoreFX 4.6.26814.02), 64bit RyuJIT DEBUG
  DefaultJob : .NET Core 2.1.4 (CoreCLR 4.6.26814.03, CoreFX 4.6.26814.02), 64bit RyuJIT

Method
Mean
Error
StdDev
Ratio
RatioSD
Gen 0
Gen 1
Gen 2
Allocated

AsyncBinds_CSharpAsync
170.9 ms
3.381 ms
7.493 ms
1.00
0.00
5333.3333
-
-
2988925 B

AsyncBinds_Task
NA
NA
NA
?
?

Did have 'em when I submitted the PR...or at least that's what I thought.

If it's easier to just copy-paste stuff into your branch then I'm 100% fine with that. My main goals here were to:

Also have memory usage analysis
Establish a baseline so it's easier to compare
Split different experiments into different benchmarks for information presentation

Thanks, merged manually


[Feature Request] Add option to disable all console.log

Hello,
Could you add an option to disable everything printing in the console?
I saw a debug property set to false by default in the settings and a condition using it but it's still printing in the console.
Is it a bug or a feature not fully implemented yet?
Thanks!

Sorry, the error was automatically handled and printed by the framework I use... 😅


Mac OSX Yosemite

Cannot install rbenv install 2.2.0
Error:
$ rbenv install 2.2.0
ruby-build: definition not found: 2.2.0

The following versions contain `2.2.0' in the name:
  2.2.0-dev
  2.2.0-dev
  2.2.0-preview1
  2.2.0-preview1
  rbx-2.2.0
  rbx-2.2.0

See all available versions with `rbenv install --list'.

$ brew upgrade ruby-build
Error: ruby-build 20150116 already installed

Can you check if you have ruby-build installed as an rbenv plugin (duplicate install):
ls `rbenv root`/plugins

If so, remove either the plugin or the Homebrew version. See the wiki

Unfortunately I removed all and re-installed. It's very possible that the plugin was getting in the way.
Thanks for chiming in.


Allow merging config from Laravel mailer config

Every other mailer transport can have multiple instances in Laravel. This change is to allow for that.
Example:
'mailers' => [
    'mailersend' => [
        'transport' => 'mailersend',
        'api_key' => 'prod-key',
    ],
    'mailersend-staging' => [
        'transport' => 'mailersend',
        'api_key' => 'staging-key',
    ],
]

@princejohnsantillan thank you for the contribution


Set main container resources (cpu,memory) for "resource" template (fix argoexec OOM)

Summary
I want to fix argoexec container OOM:
Running this template:
    - name: copy-pvc
      resource:
          action: create
          manifest: |
            apiVersion: v1
            kind: PersistentVolumeClaim
            metadata:
                name: {{workflow.name}}-source
              .......

Make argoexec container crash because OOM. I would like to configure memory limit for this template.
Use Cases
All template types such script , and resource , http  that use argoexec container should be easily configurable (script is already OK)
What about allowing this:
    - name: copy-pvc
      container:
          resources:
              limits:
                 memory: 128Mi
      resource:
          action: create
          manifest: |
            ....

With actual version, this gives error:
templates.backup-take.steps[0].read-pvc templates.read-pvc multiple template types specified. choose one of: container, containerSet, steps, script, resource, dag, suspend, template, template ref

Another use-case:
"I am on AKS cluster, I want to clone a PVC attached to a pod in availability zone 1"
--> The argoexec container pod must run in the same zone

A container and a resource are two different, mutually exclusive template types
You can set resource requests and limits for any template with podSpecPatch if the type's spec does not support it directly.

A container and a resource are two different, mutually exclusive template types.
You can set resource requests and limits for any template with podSpecPatch if the type's spec does not support it directly.

What a shame I didnt read more carefully the doc ^_^
This work like a charm, thank you


test: internal 테스트 코드를 작성합니다

Overview
_internal/index.ts에 정의된 기능들에 대해 테스트 코드를 작성합니다.
테스트 작성전

테스트 작성후

PR Checklist

[X] I read and included theses actions below

I have read the Contributing Guide
I have written documents and tests, if needed.

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

Project coverage is 99.56%. Comparing base (db94449) to head (0fe9cf4).

Additional details and impacted files

@@           Coverage Diff           @@
##             main     #137   +/-   ##
=======================================
  Coverage   99.56%   99.56%
=======================================
  Files          14       14
  Lines         230      230
  Branches       51       51
=======================================
  Hits          229      229
  Misses          1        1


Fix Defeatist's interaction with HP

@Marty-D: please stop believing websites that aren't this one or UPC :/
The description for Defeatist is literally "While this Pokemon has 1/2
or less of its maximum HP, its Attack and Special Attack are halved."
I even looked in-game and it said it was half of lower, and even sites
we shouldn't trust say it's 1/2 or less of max HP.

if this is merged, then merge the client PR first pls


feat: add functionality to download as image in text generator

👨💻 Changes proposed

add functionality to download the result in image and svg form

✔ Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

Thanks for proposing to make changes to this project, your code will be reviewed soon and don't forget to join the community - https://discord.gg/kcFraw3nhz[Automated]

:tada: This PR is included in version 1.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


How can I scroll by horizontal?

thx

Unfortunately Horizontal Scrolliing is not enabled at the moment.

Hi @ali0201. Yo may find this helpful:
http://stackoverflow.com/questions/32309704/circular-wheel-animation-implementation-in-ios
Check the gifs in the first answer.


chore: Switch to SvelteKit and Svelte 5

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


fix(useSlider): fix dependency array for the effect

Description
Closes https://github.com/streamich/react-use/issues/2165. See the issue for more details.
Putting all used values inside the dependency array fixes that issue however it might introduce some performance regression, depending on how often callbacks actually change.
For consistency, isMounted and setState are added to the array as well. They shouldn't change in theory so they don't cause any issue but even if case they do change, proper reference will be taken thanks to adding them to this array.
Type of change

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

Checklist

[x] Read the Contributing Guide
[x] Perform a code self-review
[x] Comment the code, particularly in hard-to-understand areas
[x] Add documentation
[ ] Add hook's story at Storybook
[ ] Cover changes with tests
[x] Ensure the test suite passes (yarn test)
[ ] Provide 100% tests coverage
[x] Make sure code lints (yarn lint). Fix it with yarn lint:fix in case of failure.
[x] Make sure types are fine (yarn lint:types).

it's been 3 years, maybe time to merge?


Stop log spam from polling in development

When running in development with :debug log level, the polling triggers a constant stream of log writes, which makes watching the logs for web app debugging more difficult.
A similar issue was seen when loading the Rails console: https://github.com/rails/rails/issues/31688. The fix there simply sets ActiveRecord::Base.verbose_query_logs = false when starting the console.
I'm not sure what the best strategy is here though. I see in the README there are plans to have solid_queue have an in-process mode similar to GoodJob, it's not immediately obvious to me how you could turn down the logs just for one thread. However if you do it in the supervisor, threaded mode will have the same verbosity issue.
I'll attach a fairly ungraceful attempt as a PR and see what can be done to make it fit more with the code style.

Ack, diving through the code again I found the silence_polling option, sorry.


fix: typos in stake-pool comments and output messages

Fixed typos in stake-pool comments and output messages

Thanks

Always Welcome!!


[Bug]: tpll stops working after certain amount of time

Describe the bug
So every time I restart the buildserver, everything seems fine, until I've been tplling for a few minutes.... yet after a certain amount of time, it just stops teleporting the player to the desired position. The only thing the buildserver-console prints out every time I try to tpll is:
[23:32:30 INFO]: Cache stale: https://s3.amazonaws.com/elevation-tiles-prod/terrarium/10/564/615.png [23:32:30 INFO]: Cache stale: https://s3.amazonaws.com/elevation-tiles-prod/terrarium/10/564/616.png [23:32:30 INFO]: Cache stale: https://s3.amazonaws.com/elevation-tiles-prod/terrarium/10/565/615.png [23:32:30 INFO]: Cache stale: https://s3.amazonaws.com/elevation-tiles-prod/terrarium/10/565/616.png
there seemingly is no error in both the proxy, and the buildserver console. The standard "Teleporting to xy" message comes up in the clients chat but nothing else is happening. Upon server-restart it seems fine again but every time, it is only a matter of time until it goes back to being bad.
Expected Behavior
either some sort of error/crash or just the teleport working as usual
To Reproduce
idk, use sledgehammer and try to build a lot using tpll
Sledgehammer Version
0.5.284
Log File
https://mclo.gs/3SiJKbQ
Server Type
Mohist

do you mean when teleporting without sledgehammer?
yes, that still works when sledgehammer goes weird. I am still able to for example tpll using //cs tpll

@noahhusby any updates on this?


[ Edge ] prompts dont load or save

I don't know what changed, but this no longer works in Edge.
Troubleshooting steps:

Disabled all other extensions.
Restarted Edge
Installed latest file
Deactivated VPN

Edge: Version 120.0.2210.133 (Official build) (arm64)

Am unfortunately rather tied up for the next two weeks, but will investigate properly after that. Something must have changed on the openAI site, and IE is likely throwing an exception. In the meantime, it seems to still work in Firefox, if that's any use.


incorrect url of sortIcons.tpl

In the .tpl file, ng-include directives refer to "src/tableajax/sortIcon.html" but the default template string is stored with url "tablelite/sortIcons.html" into the $templateCache -> no sort icons appear, 404 error for sortIcons.html

interesting... Let me take a look.

Eh sorry, a lot of typos i've made above. The correct description:
In adapt-strap.tpl.js,
'tablelite/sortIcons.html' - the key with which the default template string has been put into the $templateCache, near line 143,
'src/tablelite/sortIcons.html' - url in <ng-include> near line 111.
I think the two urls should be the same.


Update workflows

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

Project coverage is 100.00%. Comparing base (58750f6) to head (e9b9e58).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #579   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           70        70
  Lines         1845      1845
  Branches       217       217
=========================================
  Hits          1845      1845

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


Handle ORT segfaults in tests | test(atenlib)

Provide an option set by the environment variable CATCH_ORT_SEGFAULT to handle ORT segfaults in tests by running an inference session in a subprocess and handling the SIGSEGV signal.
Bumped ORT nightly version

@BowenBao PTAL. I was only able to create an option for local testing as a compromise. Python cannot fork on windows. Is fork much faster than spawn?


Gardening: Refine Core update message

Rephrase the update text to indicate that we are downloading and running the new version's installer, not opening a browser window.

Thank you!


Optimize CI and use Ruff for linting

Codecov Report
Attention: 15 lines in your changes are missing coverage. Please review.

Comparison is base (0acffc7) 75.80% compared to head (6175d45) 74.97%.
Report is 3 commits behind head on main.

Files
Patch %
Lines

src/pydantic_exportables/exportable.py
36.36%
7 Missing :warning:

src/pydantic_exportables/csvexportable.py
50.00%
3 Missing :warning:

tests/test_exportable_importable.py
66.66%
2 Missing :warning:

tests/test_utils.py
60.00%
2 Missing :warning:

src/pydantic_exportables/jsonexportable.py
66.66%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #13      +/-   ##
==========================================
- Coverage   75.80%   74.97%   -0.84%
==========================================
  Files          10       10
  Lines        1021     1011      -10
==========================================
- Hits          774      758      -16
- Misses        247      253       +6

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


Bring back "Apply Migrations" button on database error page

We originally removed this to tighten up security, but after discussion with @coolcsh and @blowdart we think it is important to have and provided it is only enabled for local development it is not a security problem.

Fixed in https://github.com/aspnet/EntityFramework/issues/1368


how do you build?

This is the 1st time I try to build confd.
go version
go version go1.18.3 linux/amd64
export GOPATH=/data

I follow the instruction:
$ mkdir -p $GOPATH/src/github.com/kelseyhightower
$ git clone https://github.com/kelseyhightower/confd.git $GOPATH/src/github.com/kelseyhightower/confd
$ cd $GOPATH/src/github.com/kelseyhightower/confd
$ make

then I got error:
Building confd...
go: cannot find main module, but found Gopkg.lock in /data/src/github.com/kelseyhightower/confd
        to create a module there, run:
        go mod init
make: *** [build] Error 1

If I run go mod init, I will get:
go mod init
go: creating new go.mod: module github.com/kelseyhightower/confd
go: copying requirements from Gopkg.lock
go: to add module requirements and sums:
        go mod tidy

If I run go mod tidy, I will get:
……
……
……
go: found github.com/armon/go-radix in github.com/armon/go-radix v1.0.0
go: found github.com/hashicorp/go-memdb in github.com/hashicorp/go-memdb v1.3.3
go: found github.com/hashicorp/golang-lru in github.com/hashicorp/golang-lru v0.5.4
go: found github.com/keybase/go-crypto/openpgp in github.com/keybase/go-crypto v0.0.0-20200123153347-de78d2cb44f4
go: found github.com/keybase/go-crypto/openpgp/packet in github.com/keybase/go-crypto v0.0.0-20200123153347-de78d2cb44f4
go: found github.com/mitchellh/go-testing-interface in github.com/mitchellh/go-testing-interface v1.14.1
go: found github.com/patrickmn/go-cache in github.com/patrickmn/go-cache v2.1.0+incompatible
go: found github.com/ghodss/yaml in github.com/ghodss/yaml v1.0.0
go: found github.com/grpc-ecosystem/grpc-gateway/runtime in github.com/grpc-ecosystem/grpc-gateway v1.16.0
go: found github.com/tmc/grpc-websocket-proxy/wsproxy in github.com/tmc/grpc-websocket-proxy v0.0.0-20220101234140-673ab2c3ae75
go: found github.com/prometheus/client_golang/prometheus in github.com/prometheus/client_golang v1.12.2
go: found github.com/jonboulle/clockwork in github.com/jonboulle/clockwork v0.3.0
go: found golang.org/x/time/rate in golang.org/x/time v0.0.0-20220609170525-579cf78fd858
go: found github.com/xiang90/probing in github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2
go: found golang.org/x/sync/errgroup in golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f
go: found github.com/golang/glog in github.com/golang/glog v1.0.0
go: found github.com/coreos/bbolt in github.com/coreos/bbolt v1.3.6
go: found github.com/hashicorp/go-plugin in github.com/hashicorp/go-plugin v1.4.4
go: found github.com/hashicorp/go-version in github.com/hashicorp/go-version v1.5.0
go: found github.com/grpc-ecosystem/grpc-gateway/utilities in github.com/grpc-ecosystem/grpc-gateway v1.16.0
go: found github.com/google/btree in github.com/google/btree v1.1.1
go: found github.com/golang/groupcache/lru in github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
go: found github.com/hashicorp/yamux in github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87
go: found github.com/duosecurity/duo_api_golang in github.com/duosecurity/duo_api_golang v0.0.0-20220428205559-fa137a8ef05b
go: found github.com/duosecurity/duo_api_golang/authapi in github.com/duosecurity/duo_api_golang v0.0.0-20220428205559-fa137a8ef05b
go: found github.com/gocql/gocql in github.com/gocql/gocql v1.1.0
go: found github.com/SAP/go-hdb/driver in github.com/SAP/go-hdb v0.106.1
go: found gopkg.in/mgo.v2 in gopkg.in/mgo.v2 v2.0.0-20190816093944-a6b53ec6cb22
go: found github.com/denisenkom/go-mssqldb in github.com/denisenkom/go-mssqldb v0.12.2
go: found github.com/go-sql-driver/mysql in github.com/go-sql-driver/mysql v1.6.0
go: found github.com/lib/pq in github.com/lib/pq v1.10.6
go: github.com/kelseyhightower/confd/backends/etcdv3 imports
        github.com/coreos/etcd/clientv3 tested by
        github.com/coreos/etcd/clientv3.test imports
        github.com/coreos/etcd/auth imports
        github.com/coreos/etcd/mvcc/backend imports
        github.com/coreos/bbolt<EMAIL_ADDRESS>parsing go.mod:
        module declares its path as: go.etcd.io/bbolt
                but was required as: github.com/coreos/bbolt

If I run make AGAIN, I'll get this error:
make
Building confd...
go: inconsistent vendoring in /data/src/github.com/kelseyhightower/confd:
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
<EMAIL_ADDRESS>is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt

        To ignore the vendor directory, use -mod=readonly or -mod=mod.
        To sync the vendor directory, run:
                go mod vendor
make: *** [build] Error 1

any hint? please help.

I was trying the same locally with up to date golang, also 1.10 - no luck.
Then I noticed it contains dockerfile in the repo root, built an image from it, installed gcc apk update; apk add gcc then make build and it worked

This is extremely gross, and I'm not super well-versed in the go build, but this is how I've gotten it to (seemingly 😅) build cleanly with go1.18.1:
cd "${GOPATH}/src/github.com/kelseyhightower/confd"
go mod init
go mod tidy -e -compat=1.10
go mod vendor 2>&1 | grep 'go get ' | while read LINE; do
    sh -c "$LINE"
done
go mod vendor
make

@xin-at-marathon I tried to add go mod and go 1.19 support at #860 , You can use this version to build confd.
Need @kelseyhightower review.


TileLayer cache rendered sub layers

See discussion in https://github.com/uber/deck.gl/pull/3704
Change List

Avoid excessive re-render during continuous viewport updates

@jesusbotella

Coverage increased (+0.03%) to 79.918% when pulling 27588a667be11f147db1b0a3efe7a8b94d22e331 on x/tile-layer-cache into 10707591d9070c7124893c403e5c4d6fe4b0e57d on master.

I just wanted to say thank you! That was fast! 😀

Is the cache configurable and if so should we add document it somewhere?


Release Camunda Platform Helm Chart v10.0.1

Before opening the PR:

[x] Run make release.chores
[x] Create a PR with the printed URL
[x] Trigger Renovate to ensure that all deps are updated (to avoid any delayed sync from Renovate service).

After opening the PR:

[x] Take a final look at the release commits (version bump and release notes)
[x] Make sure that all checks in the PR passed
[ ] If everything in place, add release label to the PR
[ ] Follow up the release workflow and make sure it succeeded (double-check the releases page)
[ ] Ensure that all fixed issues with support label has the release version like version:10.0.0 (this will be automated later).

If the release is a minor version bump (e.g. from 8.2.x to 8.3.0):

[ ] Make sure the regression test matrix is updated: located at .github/workflows/test-regression.yaml

It's expected that the upgrade from 10.0.0 to 10.0.1 won't work because 10.0.0 cannot generate the WebModeler PostgreSQL due to the sub-chart condition bug.


IP Restriction Docs: Potential Error

I was trying to run the examples from the Restrict IPs / Testing documentation.
on_http_request:
  - actions:
      - type: "restrict-ips"
        config:
          enforce: false
          ip_policies:
            - "ipp_1yjqdrIBwgciY2I9zH2EelgBbJF"
      - type: "log"
        config:
          metadata:
            message: "Restrict IPs action would be ${actions.ngrok.restrict_ips.action} for
              ${conn.client_ip}."
            matched_cidr: "${actions.ngrok.restrict_ips.matched_cidr}"
            error:
              code: "${actions.ngrok.restrict_ips.error.code}"
              message: "${actions.ngrok.restrict_ips.error.message}"

Unfortunately, I couldn't get it to work for the following reasons:

Can't use type: "log" after actions that deny the request.
type: "log" supports arbitrary metadata and the docs suggest that is an string: any type, but the ngrok cli fails to start as it expects string values string: string

@rawkode I can confirm that the example doesn't work for me either—thanks! I'll follow up with the product team and we'll ship out some fixes to it.


How to setup app-routing.module.ts (main app) route to app-routing.module.ts (sub project app)

Bug Report or Feature Request (mark with an x)
- [ ] bug report -> please search issues before submitting
- [ x ] feature request

Command (mark with an x)
- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ x ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions
Node: 8.11.3
NPM: 6.4.1
Angular CLI: 6.1.2
Windows 10
Repro steps

Create angular workspace
Add sub project ng generate application
How to setup app-routing.module.ts (main app) route to app-routing.module.ts (sub project app)

The log given by the failure

Desired functionality

Mention any other details that might be useful

ขอบคุณ
ฉันได้ตั้งคำถามไว้แล้วที่ StackOverflow


resolve #1053 pages for beginner's guide to ml5

Community Contribution
Link to live project, video, or image:
https://drive.google.com/file/d/1g8KOWsrRmn9MHw1XiieN89vwJUlpNq7m/view?usp=sharing
Sharing

[x] I would be happy to have my project shared on The Coding Train's social media!

Wow, thank you for working on this!!

#1053

I forgot that the courses section has community contributions turned off by default. So to override that you can to add the line can_contribute: true in the markdown files.

Thanks for the feedback. Sorry for the confusion. Please let me know if any further changes are needed. Thanks for the great work you all are doing!

Sorry it took me so long to follow up. I might have been unclear about the structure. I was thinking of something like the data and apis directory. So would look something like  _Courses/ml5-beginners-guide/0.0-ml5-beginners-guide.md. No need to the directories for each set of videos in the the series. Sorry to be so picky it would just be nice if it matched the current structure, but really appreciate your work. If you're tired of moving and renaming files I'd be happy to do it just let me know.

Sorry about that. I didn't notice the ignore_filename option before.

Looks great! Thanks for all the work you put in!


Fixed #28226: Replaced obsolete use of join() with concatenation.

A more exhaustive patch is offered in https://github.com/django/django/pull/8527.


Google index points to old version of install instructions

Description

Leads to

@marcoabreu - this issue was resolved by the redirect to the install page. Please close.


Add Linear Algebra Done Right by Sheldon Axler

What does this PR do?
Add resource in by subject section.
For resources
Why is this valuable (or not)?
It is an excellent resource to learn linear algebra.
How do we know it's really free?
The author specifies it in the first paragraph of his website. Also, you can check out his announcement on Twitter.
For book lists, is it a book? For course lists, is it a course? etc.
It is a book!
Checklist:

[x] Read our contributing guidelines.
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[ ] Add needed indications (PDF, access notes, under construction).
[x] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

Thanks, and welcome to free-programming-books!
It's better to make additional commits to a branch than to create a new PR.


Invalid character in artifact path (OSOE-601)

When a test fails, it seems like the browser type is included in the artifact path:
Error: Artifact path is not valid: /test/Project.Tests.UI/bin/Debug/net6.0/artifacts/20230327T100017/Project.Tests.UI.Tests.ProjectTests.VisualVerificationTests.VisualVerificationTests.VerifyProjectPage(browser: Chrome)/01 - FailureDumpPageSnapshot.mhtml. Contains the following character:  Colon :
That causes an error because it includes a colon.
This most likely only happens with visual verification tests.
Here is a sample in OSOCE for this problem: https://github.com/Lombiq/Open-Source-Orchard-Core-Extensions/actions/runs/4534487655/jobs/7988726362?pr=438#step:9:12434
Log archive if the logs are deleted:
logs_8706.zip
Jira issue

Where is that error happening, excactly?

In the Tests step, after testing and while running<EMAIL_ADDRESS>

Please provide a log sample.

Here it is one: https://github.com/Lombiq/Open-Source-Orchard-Core-Extensions/actions/runs/4534487655/jobs/7988726362?pr=438#step:9:12434

I already added that to the description.

OK, great (there are no notifications about such edits so I didn't know).

Context on what is happening:
Atata creates the artifact folder. Inside it, it creates {date-time}/{test-name-with-browser}. And it's like this browser: Chrome. On Windows it's just browser Chrome, but Ubuntu allows : in folder names. So on the CI, it will be browser: Chrome.
If Blame Hang Timeout is turned on, it also uploads an artifact. But this artifact contains the mentioned folder with : in the name. And GH actions/upload-artifact throws an error because of this (which is valid). So we just have to rename those folders (remove :).

Fixed by https://github.com/Lombiq/GitHub-Actions/pull/224


Question

Can we have a Auto update on the token when it need refresh?

Hey @Sfrjoshpro, that's probably something that would be coded at the "application" level, not at this library level. I would have to play around with the code a bit to see if I can extract the access token expiration date from the access token and provide that as part of the client object.
The client already has a refresh_token() method, but it must be called manually. Please also see my comment here about adding support for initializing a client without doing a login. That might be the best approach but I'd need to add that ability.
Let me know what you think

Ok I’ll play with it. I was trying to play with the refresh option but i
struggled, I’ll put more time into it. 😊
On Mon, Nov 28, 2022 at 10:38 Shaun Tarves @.***> wrote:

Hey @Sfrjoshpro https://github.com/Sfrjoshpro, that's probably
something that would be coded at the "application" level, not at this
library level. I would have to play around with the code a bit to see if I
can extract the access token expiration date from the access token and
provide that as part of the client object.
The client already has a refresh_token() method, but it must be called
manually. Please also see my comment here
https://github.com/shauntarves/wyze-sdk/issues/105#issuecomment-1329309111
about adding support for initializing a client without doing a login. That
might be the best approach but I'd need to add that ability.
Let me know what you think
—
Reply to this email directly, view it on GitHub
https://github.com/shauntarves/wyze-sdk/issues/109#issuecomment-1329313389,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADK57ONEWSFWYMNXUVVHTKDWKTGX3ANCNFSM6AAAAAASJLPLTU
.
You are receiving this because you were mentioned.Message ID:
@.***>

Going to let this run think it should work. 🫣    Really appreciate you being so humble, I do this just for hobby/need know enough to get in trouble some could argue. But I learn more every day. Really appreciate everything.
Been looking at the wrapper code it's inspiring

Let me know how this goes. It looks like a reasonable approach.
As part of that other 2FA issue, I'm going to spend a bit more time investigating the auth pattern and there will definitely be some changes. First, it should be easy enough to add some more smarts about the token - like when it expires. Then I'll probably add some ability to configure the client with a token and perform refresh or login if the token is expired.
This is all really great feedback and I'm excited to make the library more usable for everyone!

So it ran all night and was still running. So it seems like this approach is definitely working for the time being.
I'm going to dig more into the sdk, to understand more how the back end works. Thanks

I would say don't try to add anything new at the moment. I've already started work on improving some of these auth/client issues. Give me the weekend and hopefully I'll have something for you on Monday.

Sounds good, thanks!
On Fri, Dec 2, 2022 at 10:04 Shaun Tarves @.***> wrote:

I would say don't try to add anything new at the moment. I've already
started work on improving some of these auth/client issues. Give me the
weekend and hopefully I'll have something for you on Monday.
—
Reply to this email directly, view it on GitHub
https://github.com/shauntarves/wyze-sdk/issues/109#issuecomment-1335382649,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADK57OMRL4JGRDULR2W5HVLWLIFZJANCNFSM6AAAAAASJLPLTU
.
You are receiving this because you were mentioned.Message ID:
@.***>


feat: add --yarn-options option to customize yarn behavior

adds parameter --yarn-options that like the same option for npm is useful to pass a parameter to the yarn yarn licenses list command

@thobianchi Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

@thobianchi Thank you for signing the Contributor License Agreement!

any feedback on this?

Hey @thobianchi ! Sorry for the delay. Thanks for the PR and looks good to me!


[libssh 0.7.6-1] build failure on linux

Host Environment

OS: Kubuntu 19.10 64 bit
Compiler: gcc (Ubuntu 9.2.1-9ubuntu2) 9.2.1 20191008

To Reproduce
After a fresh installation of Kubuntu, I've installed build-essential and `git, and I've downloaded the repository. After that:
./vcpkg install libssh
Failure logs
The output in the console is the following one:
login@login-dev:~/Projects/vcpkg$ ./vcpkg install libssh
The following packages will be built and installed:
    libssh[core]:x64-linux
Starting package 1/1: libssh:x64-linux
Building package libssh[core]:x64-linux...
-- Using cached /home/login/Projects/vcpkg/downloads/libssh-0.7.6.tar.xz
-- Using cached /home/login/Projects/vcpkg/downloads/libssh-f81ca616.patch
-- Using source at /home/login/Projects/vcpkg/buildtrees/libssh/src/0.7.6-de47b5a75b
-- Configuring x64-linux-dbg
-- Configuring x64-linux-rel
-- Building x64-linux-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:136 (message):
    Command failed: /home/login/Projects/vcpkg/downloads/tools/cmake-3.14.0-linux/cmake-3.14.0-Linux-x86_64/bin/cmake --build . --config Debug --target install -- -v
    Working Directory: /home/login/Projects/vcpkg/buildtrees/libssh/x64-linux-dbg
    See logs for more information:
      /home/login/Projects/vcpkg/buildtrees/libssh/install-x64-linux-dbg-out.log

Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_cmake.cmake:91 (vcpkg_execute_build_process)
  scripts/cmake/vcpkg_install_cmake.cmake:24 (vcpkg_build_cmake)
  ports/libssh/portfile.cmake:53 (vcpkg_install_cmake)
  scripts/ports.cmake:94 (include)

Error: Building package libssh:x64-linux failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: libssh:x64-linux
  Vcpkg version: 2019.09.12-unknownhash

Additionally, attach any relevant sections from the log files above.

In attachment you can find
Additional context
In log file there are build errors like:
libcrypto.c:394:57: error: ‘BF_ENCRYPT’ undeclared (first use in this function); did you mean ‘AES_ENCRYPT’?
  394 |   BF_cbc_encrypt(in, out, len, cipher->key, cipher->IV, BF_ENCRYPT);
      |                                                         ^~~~~~~~~~
      |                                                         AES_ENCRYPT

install-x64-linux-dbg-out.log

Hi, @jepessen
Host Environment
OS: ubuntu 18.04 64 bit
Compiler: gcc 7.4.0
To Reproduce
./vcpkg install libssh
Install ok.

Seems openssl/blowfish.h and openssl/des.h were not found. please make sure you have installed theses headers in VCPKG_PATH/installed/x64-linux/include.
Thanks.

@jepessen  Does this issue still bother you?

Please feel free to reopen it if this is still a problem for you.


Pythagoras theorem calculator

Fixes Issue🛠
Closes #151
Description👨💻
A simple web-based Pythagorean Calculator that allows users to input the lengths of two sides of a right-angled triangle and calculates the length of the third side using the Pythagorean theorem (a² + b² = c²).
Checklist✅

[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[X] I am an Open Source Contributor

Screenshots/GIF📷

Resolve the conflicts pls @Gitesh08

Resolve the conflicts pls @Gitesh08

Yes

Do resolve the conflicts so that I cam merge @Gitesh08


Update the download script for TFLite Micro person detection example

This change makes the script a lot easier to read and run  (uses download_and_convert_data.py instead of download_mscoco.sh and build_visualwakewords_data.py to download the dataset).
The output of each step is exactly the same, except few files have been renamed (instructions have been updated accordingly).
BUG=b/153503072

I've updated the description - is that sufficient? (internal link to bug: b/153503072)

I've updated the description - is that sufficient? (internal link to bug: b/153503072)

yes, that works.


test: add test for embed cdn

Description
Adds a basic playwright test that loads up the CDN build of the project and does a mocked handshake with Embed. This is focused on resolving TA-1722 (but we might use/adapt later as wider testing strategy).
This is the test in CI:

This is the test with the debugger:

Fixes # (issue)
Checklist

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own changes
[ ] I have run yarn lint to make sure my changes pass all tests
[ ] I have run yarn test to make sure my changes pass all linters
[ ] I have pulled the latest changes from the upstream main branch
[ ] I have tested both the react and the CDN versions on local and integration environments
[ ] I have added the necessary labels to this PR in case a new release needs to be published after merging into main (e.g. release and patch)

Contribution guidelines
For contribution guidelines, styleguide, and other helpful information please
see the CONTRIBUTING.md file in the root of this project.

Do I understand what you're doing here...
We start a http server which renders the existing index.html - in this we use demo as the gr4vy id. We then use playwright to catch any calls to embed.demo.gr4vy.app and return some post messages to mock embed-ui?

:rocket: PR was released in v2.11.7 :rocket:


Adding a utility to prevent bad actors [ENG-2540] [WIP]

Purpose
Bad actors are doing bad things on our site. This new service should help prevent those bad actors from doing bad things. Note this is still a WIP. I am waiting for the credentials to the service to fully test capability.
Changes
Adding an adapter for the new service. Making the model utilize the new service
QA Notes
Please make verification statements inspired by your code and what your code touches.

Verify this prevents bad actors
Verify

What are the areas of risk? N/A
Any concerns/considerations/questions that development raised? N/A
Documentation
N/A
Side Effects

DevOps Notes
Theres some new settings:
AKISMET_ENABLED Should be set to true. This was created for testing purposes.
OOPSPAM_APIKEY must be filled in for OOPSpam to function
Ticket
https://openscience.atlassian.net/browse/ENG-2540

Hotfixed in as https://github.com/CenterForOpenScience/osf.io/commit/0326108a70271bb2e36e2f2c32a3dbaf7507f21e, consider this merged :octocat:


ML 1.6 : Maximum Likelihood Estimation (A)_610

Description 📜
I have made an audio contribution covering the fundamentals of Maximum Likelihood Estimation.
Fixes #610

Type of change 📝

[x] Audio (Should be in mp3 format Includes speech clarity, Concise ,Low distortion)

Domain of Contribution 📊

[x] Machine #Learning

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm GWOC'21 contributor

Screenshots / Gif (Optional) 📸

@riyasai22 Well done 👏🏻


Don't iterate over all quads unless necessary

Makes ApplyDeltas slightly faster when checking is not strictly necessary

@josephschorr I think it's worth to review other backends too. Mongo at least might suffer from the same issue.


PyMC4 development tasks

PyMC4 developer taskboard
Efforts in implementing pymc4 are not single person, so we need a place to sync our progress on this. This issue should be the place where we communicate, update status of every task on a regular basis.

Max

[x] Merge #125

Saurav Implement Tensorflow backend and make forward sampling working.

[ ] Test Model evaluation is correct against hand crafted scipy implementation
[x] We may test some compound models are evaluated correctly
[ ] Test that do operator works correctly. This is the core in observed API (not yet discussed, should be possible with a prototype, but verbose)

Max Decide on Transforms API. Should be independent from (1.).

[x] Decide on implementation details with pymc4-devs
[x] Implement transforms API, sync with (1.) progress.

Forward sampling and applying transforms are now splitted as no dependency functionality: forward sampling does not require transforms and transforms usage under the hood is not aware about backend used.

Saurav Use Executor developer API to create LogProb function that is expected in tfp
3.1 I'd prefer it can accept both list arguments with predefined list of names or dictionary of values.
3.2 This function should raise an error if we forget any of variables in the graph.
3.3 should not be aware about the backend

[x] Implementation of logprob function
[x] test the implementation, sync with Max about transformed variables
[x] tested integration with tfp/pymc3 samplers

@ferrine, what would be an updated status on the tasks here? Some refer to the multi backend things that were discarded later. The executors now work and are tested but I don't know if there are tests against a scipy model. The transformed API seems to be inplace but I don't know if there are transformations that should still be tested. Currently, the forward sampler for posterior predictive samples needs to be aware of autotransformed variables, and does so by relying on what the transformed executor does.

Updated

I think we can add some more input to the board


Make modules out of the plugins

An issue we have in the current system (where all the files are generated in mavsdk/generated) is that we don't have any namespacing between them. Therefore, from mavsdk import MissionItem could import MissionItem from Mission, or from MissionRaw. In this case, it broke the examples/mission.py example.
I therefore made a module out of each plugin, so that import mavsdk.mission is a thing, and one could from mavsdk.mission_raw import MissionItem as MissionRawItem, if needed.
I had to make a few changes for that:

Remove the globals() use in system.py, mainly because I did not really understand how it worked
Generate the files directly in mavsdk/, because I could not make the modules thing work in mavsdk/generated/ without ending up with imports of the form from mavsdk.generated.mission import .... Maybe there is a way, I just did not find it.
Update the scripts here and there to generate files accordingly
Update the examples

I tested the examples and it seems to be working for me. I would be glad if @petergerten could confirm that it fixes the mission example :blush:.
I did not test against the docs generation (mainly because it's getting late), but I wanted @julianoes' opinion first.
Note: I tried to make commits that make sense for the review, so the auto-generation is isolated in two commits :innocent:.
Fixes #200

Thanks for the review! I'll try to look into the documentation side sometime next week, because I probably broke it. In the meantime  I hope that @petergerten can work from this branch for the missions.

Also in the code? In my testing, in the code I could do mavsdk.action.ActionResult... Maybe the docs needs a path and not a module (because it's mavsdk/action/action.py)

import mavsdk

help(mavsdk.action):

Help on package mavsdk.action in mavsdk:

NAME
    mavsdk.action

PACKAGE CONTENTS
    action
    action_pb2
    action_pb2_grpc

FILE
    /home/julianoes/src/MAVSDK-Python/mavsdk/action/__init__.py

help(mavsdk.action.action)

Help on module mavsdk.action.action in mavsdk.action:

NAME
    mavsdk.action.action - # -*- coding: utf-8 -*-

CLASSES
    builtins.Exception(builtins.BaseException)
        ActionError
    builtins.object
        ActionResult
    mavsdk._base.AsyncBase(builtins.object)
        Action

    class Action(mavsdk._base.AsyncBase)
     |  Action(async_plugin_manager)
     |
     |  Enable simple actions such as arming, taking off, and landing.
     |
     |  Generated by dcsdkgen - MAVSDK Action API
     |
     |  Method resolution order:
     |      Action
     |      mavsdk._base.AsyncBase
     |      builtins.object
     |
     |  Methods defined here:
     |
     |  async arm(self)
     |      Send command to arm the drone.
     |
     |      Arming a drone normally causes motors to spin at idle.
     |      Before arming take all safety precautions and stand clear of the drone!
     |
     |      Raises
     |      ------
     |      ActionError
     |          If the request fails. The error contains the reason for the failure.
...

help(mavsdk.action.Action):

Help on class Action in module mavsdk.action.action:

class Action(mavsdk._base.AsyncBase)
 |  Action(async_plugin_manager)
 |
 |  Enable simple actions such as arming, taking off, and landing.
 |
 |  Generated by dcsdkgen - MAVSDK Action API
 |
 |  Method resolution order:
 |      Action
 |      mavsdk._base.AsyncBase
 |      builtins.object
 |
 |  Methods defined here:
 |
 |  async arm(self)
 |      Send command to arm the drone.
 |
 |      Arming a drone normally causes motors to spin at idle.
 |      Before arming take all safety precautions and stand clear of the drone!
 |
 |      Raises
 |      ------
 |      ActionError
 |          If the request fails. The error contains the reason for the failure.
...

Doesn't seem wrong to me. Is it?
mavsdk.action.Action is the class, and mavsdk.action.action is the action.py file.


State not always updating, timeout/lag for a few minutes

Luca
I have one issue though with the mqtt alarm
Sometimes the state like armed / disarmed … comes it with a lag, sometimes 3-4 minutes after the alarm has armed or disarmed I see the state changing….
If I then do it again in the irisco app, the state is then almost instantly
I don’t know where the issue is, in your polling? In mqtt sending to HA … can I enable logging somewhere too see what the issue is next time?
Does this sounds familiar?
how can i enable logging? the logs in log folder are only logging issues/errors , so not relevant to this issue

@pergolafabio Tnx for feedback.
Are you logs empty ?
In this case, the level log is set to print only warn and errors only.
Change the env on Node.js to development (set NODE_ENV=development in Windows, export NODE_ENV=development in Linux) and restart you app, so logs are on DEBUG level.
If there are no exceptions, is difficult to troubleshoot it
Export NODE_ENV=production on your env, so the debug

Can you find the project dir on your synology ?  Inside logs folder should be there two files . Check them

ps i suggest you docker

yes; not used docker yet, no time to setup :)
in your project dir i also see lots of node.js files
this one probably?
/node_modules/debug/node.js
see screenshot
https://www.dropbox.com/s/f5m4i3koct1i5fm/node2.JPG?dl=0

Any way your project is running under docker (as you can see from path :-) )
Check the this path: ./volume1/docker/risco/risco-mqtt-bridge/logs . Exists ? Should be there two log files

yes, there are 2 files there
but no errors there, it only logs when there is an error like , was a while ago
10-01-2019 22:41:24 error: error! Cannot connect to MQTT Server: Error: Connection refused: Not authorized
10-01-2019 22:42:20 info: Arming status: disarmed
10-01-2019 22:42:20 info: publish messages on MQTT Server
verry strange i dont have new log files, since we had a power interruption this weekend
and i needed to reboot my synology
last log is froma  month ago

hmm, maybe it doesnt update my logs, since i start it with a script file upon boot with synology, i have a task created there, that needs to run upon boot
in the .sh file i have entered :
exec node /volume1/docker/risco/risco-mqtt-bridge/app.js
is it maybe why no log files are being created?

an no, you see indeed a docker path, but thats just  a share :) where i have other things running on it
so no, not using docker :), just the startup script

ok, for testing i killed my .sh script, and did fire this manually in putty
node /volume1/docker/risco/risco-mqtt-bridge/app.js
i see now debugging come through, but log files are not updated

ok, so follow the previous post about setting node environment to development

... yes, but i still dont know in what file i need to change the environment to development
i have dozens of node.js files

hmm, trying to setup your docker in the docker app on my synology
but cant start it ...
this error : Error: Cannot find module './config/config.js'
not sure what i am doint wrong in the setup
do you see any error in my config?
that file /folder in left column is a local folder on synology
https://www.dropbox.com/s/nrqqvatqvk197yw/risco1.JPG?dl=0
https://www.dropbox.com/s/tse5suinsidbut1/risco2.JPG?dl=0

You must copy a config.js with your parameter and mount as volume; on the
second screenshoot , if you read well you've mounted a config folder....
instead you must mount config.js file in the host
Il giorno lun 4 feb 2019 alle ore 13:45 pergolafabio <
<EMAIL_ADDRESS>ha scritto:

hmm, trying to setup your docker in the docker app on my synology
but cant start it ...
this error : Error: Cannot find module './config/config.js'
not sure what i am doint wrong in the setup
do you see any error in my config?
that file /folder in left column is a local folder on synology
https://www.dropbox.com/s/nrqqvatqvk197yw/risco1.JPG?dl=0
https://www.dropbox.com/s/tse5suinsidbut1/risco2.JPG?dl=0
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/lucacalcaterra/risco-mqtt-bridge/issues/12#issuecomment-460236702,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA1s0U-zznaaz5IrNysCsBC6eva8DU5yks5vKCtMgaJpZM4ag1DA
.

You should see the files... try to add s char to log on the host folder (you have log instead of logs); don't think it's fix but try; check the permissions too.
If it's sufficient for troubleshooting ? Difficult to say... check the logs at the moment when the issue of delay occours.

the folder locally, is actually "log" so thats correct
also excecuted now in high permission, but doesnt help
but lets wait before the next issue arrives, we will see then

the folder locally, is actually "log" so thats correct
also excecuted now in high permission, but doesnt help
but lets wait before the next issue arrives, we will see then

OK