invalid character '<' looking for beginning of value

Downloading Coomer
fetching creator list...
panic: unmarshal creator list error: invalid character '<' looking for beginning of value
goroutine 1 [running]:
github.com/elvis972602/kemono-scraper/kemono.(*Kemono).Start(0xc000071ae0)
C:/Users/elvis/GolandProjects/Kemono-scraper/kemono/kemono.go:225 +0x111e
main.main()
C:/Users/elvis/GolandProjects/Kemono-scraper/main/main.go:484 +0x3ca5

It appears they changed their API address. The address needs to be updated to "/api/v1/".

I've made a fork with the changes, and created a pull request. (Hopefully I've done it all correctly.)
In the meantime, for those unwilling to build from source, I've built the binaries with the changes:
https://github.com/mookau/Kemono-scraper/releases

I've made a fork with the changes, and created a pull request. (Hopefully I've done it all correctly.)
In the meantime, for those unwilling to build from source, I've built the binaries with the changes: https://github.com/mookau/Kemono-scraper/releases

It has same problem

I've made a fork with the changes, and created a pull request. (Hopefully I've done it all correctly.)
In the meantime, for those unwilling to build from source, I've built the binaries with the changes: https://github.com/mookau/Kemono-scraper/releases

It has same problem

Whoops, uploaded the old binaries by mistake. Should be fixed now.

Thanks mookau!
It looks like some of the api's have been changed, so it's possible that there's still a problem, and I'll try to fix it as soon as I can.

It was very minor, but I'm glad to help.


Prevent buttons from submitting form contents

It is unlikely one would like a button press to submit the content of a form. This patch changes the default type of the button widget from "submit" to "button".

@bartavelle Great! I ran into that myself, though not with the reflex-dom button widget, so I didn't think to fix it there.


client._logger is not a function

I'm trying to set up a new bugsnag project with an isomorphic js app running express.  I've set up bugsnag and express according to these instructions.  At this stage, I'm just trying to get bugsnag working on the server.
When an unhandled exception in production occurs, I'm seeing an error show up in my bugsnag project, however the error is related to bugsnag itself, not the error from my application.
TypeErrornode_modules/@bugsnag/node/dist/bugsnag.js:1939
client._logger is not a function

And the top of the the stack trace
node_modules/@bugsnag/node/dist/bugsnag.js:1939:30
---
  }
  }), {}, function (e, report) {
  if (e) return client._logger('Failed to send report to Bugsnag');
  client.config.onUnhandledRejection(err, report, client._logger);
  });
  };

Here's a screenshot in the bugsnag app.

What am I missing here?
bugnsag/js version: 5.0.0
node version: 10.13.0
Other information, the app is bundled with webpack, with babel-loader and awesome-typscript-loader and other things in the mix.  Could webpack be an issue?
Potentially related, but I'm also noticing in development mode if I try to import the bugsnag client anywhere in the bundled code, I'm getting
MODULE_NOT_FOUND: Cannot find module 'error-stack-parser'
Which may be another clue.
Thanks in advance for any light you may be able to shed on this!

Hi @DanWilliamsAu, thanks for opening this up and posting a lot of detail. It looks like there are a few things going on here, so I'm going to try to unravel them:

The actualy error report that you're seeing in the dashboard is bug with notifier which we will fix. That line says client._logger(msg) but it should be client._logger.error(msg).

The actual error in your application, as you can just about see from the context there and the code path, was an unhandled promise rejection, a synchronous exception was thrown when trying to send the report here:
https://github.com/bugsnag/bugsnag-js/blob/4109aa682f6132670e54c898f868a5a96d7d8391/packages/delivery-node/delivery.js#L7-L26
The logger.error(e) message may have been output to your console if you have access to logs for this situation. Any chance you can retrieve that? It could be the config.endpoints.notify is not set to a valid URL, or the payload failed to serialize, or there was a value passed to config.proxy that was not valid… if you can't find the log, then perhaps you could paste the output of your Bugsnag config (blank out any sensitive values of course).

Re: MODULE_NOT_FOUND: Cannot find module 'error-stack-parser', this sounds like either an issue with the installation, the bundler doing something funky with require(), or the bundler looking for the module in the wrong place. When you install @bugsnag/js this is the dependency tree that you would get on successful install… you can see that error-stack-parser is there:
<EMAIL_ADDRESS>└─┬<EMAIL_ADDRESS>  ├──<EMAIL_ADDRESS>  ├──<EMAIL_ADDRESS>  ├──<EMAIL_ADDRESS>  ├──<EMAIL_ADDRESS>  ├──<EMAIL_ADDRESS>  └──<EMAIL_ADDRESS>

Whilst I fix the bug from point (1) any more information you can provide regarding your Bugsnag configuration would be helpful. And if you could provide a stripped back project which reproduces any of these problems that will be super helpful.
Thanks!

Thanks for looking at this and fixing part 1!

I found the logs for that particular error and it seems like the issue was [bugsnag] Error: payload exceeded 1MB limit.  I'm not 100% sure why the log would have been so massive, but for what it is worth, here's the stack trace: https://gist.github.com/DanWilliamsAu/f4230b487949201b530e8435dbacdafe

I can see that I am not the only person having this problem: https://github.com/bugsnag/bugsnag-js/issues/441 I think that issue does a good job of explaining the problem in better detail. so I'm happy to consider this particular issue resolved for now and I'll follow the progress of that issue.

Thanks!

Thanks, we'll track 3. on #441 then.
re: 2., if this is consistently happening, adding a beforeSend which logs out the report as JSON, might help you spot the offending part:
beforeSend: function (report) {
  console.log(JSON.stringify(report, null, 2))
}

The library removes metaData from the report and tries sending again, so it must be in another part of the payload:
https://github.com/bugsnag/bugsnag-js/blob/83908fff2abeb4177c891ceab6680f3c20035c06/packages/core/lib/json-payload.js#L18-L29

Thanks for your prompt response and advice! :)
We ended up removing bundling node_modules for our server bundle, which ended up fixing problem 3.
I think we are all good now so  I'll close this!


App Delegate Print Issue

I am getting errors in App Delegate when using this example,  because  of lines like this
print("Unable to register for remote notifications " + error)
when it should be     print("Unable to register for remote notifications ( error)"

What errors are you getting and which example are they in?
Mind opening a pull request?

The errors are in the app delegate in multiple “Print” commands, all in the messaging example.

On Nov 17, 2016, at 3:12 PM, Morgan Chen<EMAIL_ADDRESS>wrote:
What errors are you getting and which example are they in?
Mind opening a pull request?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/firebase/quickstart-ios/issues/168#issuecomment-261399813, or mute the thread https://github.com/notifications/unsubscribe-auth/AEg27jKQ8r4sOFv1PcGCZgFEg3m7y5Qdks5q_N9HgaJpZM4K14S4.

These should be fixed now, thanks!


Set data structure type is not supported in Variable Explorer

I have noticed that the Set data structure that is built into the Python language is an "Unsupported Data Type" for Spyder, and thus I cannot see it in the Variable Explorer if I have a set defined.
Below are two pictures showing this...

I am using Spyder 3.3.1, Python 3.6.6, IPython 6.5.0
I know a similar problem exists for Numpy Arrays which is going to be fixed in Spyder 4. Will this issue regarding Sets also be fixed in Spyder 4? Has this issue been brought to the Spyder team's attention?
Thanks!

This has been fixed in through #5230 and it is available in v4.0beta1


Bug: Wrong class name

The name of the package is TeaTime, but the named class is TieTime. 😄
https://github.com/FranAmorim/teatime/blob/400d175b0039ad76326195a101a4ea91c49ae182/src/index.js#L1

can i take this issue?

Closed with #6


WebSocket page freezes when pasting long URL

Describe the bug
When trying to paste a very long URL on the websockets page (https://postwoman.io/realtime/), the page freezes without any error message on the browser console.
To Reproduce

Go to https://postwoman.io/realtime/
Click on the URL field
Paste a long URL, such as<EMAIL_ADDRESS>The browser tab freezes.

Expected behavior
The URL should be pasted normally, and I should be able to connect to it.
Desktop:
Tried on three environments:

OS: Manjaro ArchLinux
Browser: Chrome
Version: 79.0.3945.88 (Official Build) (64-bit)

OS: Manjaro ArchLinux
Browser: Firefox
Version: 71.0 (64-bit)

OS: Mac OS Catalina
Browser: Chrome
Version: 79

Additional context
One thing I noticed is that when the tab freezes there's a spike in CPU usage on the computer (I measured it on the system monitor, and also the laptop's vents went off like crazy). My guess would be that there's some sort of client side validation of the pasted URL, and such a long URL is too demanding of it. That's just a guess, however, as I couldn't find a way to debug it.

Another bit of additional context: the reason for using such a long URL is that I'm trying to pass an Authorization header with the request. I'm trying to use the workaround suggested by @liyasthomas on #321

Issue has been identified. I think there might be three reasons for this behaviour:

App's current state is save to localStorage via Vuex. Long URL string might've crashed Vuex binding. Anyway, I'm not sure of whether this is the reason yet.

Browser specific bug: Chrome used to crash while pasting large strings into input boxes. Since behaviour is repeated on Firefox, this possibility can be excluded.

There's a client side validation for checking the WSS URL. This is implemented in regex. This might've caused CPU race condition based on given pattern checking. This is a highly possible reason

Anyway, stay tight, will fix ASAP.

That was super fast, @liyasthomas , thank you very much!

@liyasthomas The issue seems to have returned... Can you please check on your side and see i you can reproduce the bug?

I couldn't reproduce the bug, everything seems to be working fine.

I couldn't reproduce the bug, everything seems to be working fine.

False alarm on my side, my bad! Have a great weekend :)

I have the same problem. The websocket URL that I am using is: ws://localhost:55560/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJBdXRoTGliIiwic3ViIjoiMmQxN2JhNTYtZGU0Yy00YjBkLWJlOWYtOTg2ODE3MDA4NzY4IiwiZXhwIjoxNTkwNjIxNTE2LjcyNTcxOCwiaWF0IjoxNTkwNTc4MzE2LjcyNTcxOCwianRpIjoiMmRmNmUyOWEtZDYxYS00MzNiLWJkY2EtMTYxNTI1NmM4Yzk2IiwiYXVkIjoiIiwicm9sZSI6ImZkdGZyaWVuZHMiLCJtb2RlIjoicnciLCJjaGFubmVsIjoic3RhdGVtZW50cyIsImh0dHBzOi8vNWR0LmNvbS9qd3QvY2xhaW1zIjp7IngtYWNjb3VudC10YWciOiJGRFRGUklFTkQifX0.UxWBtiDVAd6t__l0cV9gAg_fVshwNuW4GGjIvUZw4q4
It looks like the service worker might be the issue. I use the Chrome Browser task manager to kill the Postwoman process.

I had the same problem, but realised that I used an outdated version from DockerHub.


add nearest neighbor lookup with KDTree for point to point distances

This PR adds an easy to use function for point data xarray.Datasets to calculate nearest neighbor distances using scipy.spatial.KDTree. The results are returned in a nicely structured xarray.Dataset.
The example notebook is updated accordingly, also removing some of the usage of the distance matrix because getting nearest neighbors is more convenient with the introduced functions.

[x] closes #37
[x] Tests added and passed if fixing a bug or adding a new feature
[x] All code checks from pre-commit passed
[x] Added an entry in the CHANGELOG.md file

IMO the solution I currently have for returning the distance and neighbor IDs is good. It is borrowed and modified from #43.
I am not sure if is good to have np.nan as entry in the array of neighbor_id because this results in a dtype='object' because strings and floats are mixed. The advantage of having np.nan there is that one can easily drop these entries in xarray via xarray.DataArray..dropna() e.g. as I do in the example notebook to get the neighbor IDs for a certain PWS which I can then use to select data or locations from all neighbors:
neighbor_ids = closest_neigbors.sel(id=pws_id).neighbor_id.dropna(dim="n_closest")
ds_pws_neighbors = ds_pws.sel(id=neighbor_ids)

The .sel() of course only works if there is no non-matching ID in neighbor_ids.

@eoydvin It would be good if you could have a look at my code and notebook, to check it, but also to see how it fits with your PR #43.

IMO the solution I currently have for returning the distance and neighbor IDs is good. It is borrowed and modified from #43.
I am not sure if is good to have np.nan as entry in the array of neighbor_id because this results in a dtype='object' because strings and floats are mixed. The advantage of having np.nan there is that one can easily drop these entries in xarray via xarray.DataArray..dropna() e.g. as I do in the example notebook to get the neighbor IDs for a certain PWS which I can then use to select data or locations from all neighbors:
neighbor_ids = closest_neigbors.sel(id=pws_id).neighbor_id.dropna(dim="n_closest")
ds_pws_neighbors = ds_pws.sel(id=neighbor_ids)

The .sel() of course only works if there is no non-matching ID in neighbor_ids.

IMO the solution I currently have for returning the distance and neighbor IDs is good. It is borrowed and modified from #43.
I am not sure if is good to have np.nan as entry in the array of neighbor_id because this results in a dtype='object' because strings and floats are mixed. The advantage of having np.nan there is that one can easily drop these entries in xarray via xarray.DataArray..dropna() e.g. as I do in the example notebook to get the neighbor IDs for a certain PWS which I can then use to select data or locations from all neighbors:
neighbor_ids = closest_neigbors.sel(id=pws_id).neighbor_id.dropna(dim="n_closest")
ds_pws_neighbors = ds_pws.sel(id=neighbor_ids)

The .sel() of course only works if there is no non-matching ID in neighbor_ids.

Hm, good point. In the newest version of #43 I use None instead of np.nan when I first create the array using np.full([ds_cmls.cml_id.size, n_closest], None). Im not sure what is the best way to do it, but maybe it is good if the two functions do it the same way?

Conclusion from discussion with @eoydvin

Returning and xr.Dataset with the current structure is good. He will do that in #43, too.
It is better to have None instead of np.nan as entry in neighbor_id for the cases where no neighbor is found within max_distance. This is preferred because it makes more sense from a semantic point of view, to say that there is none neighbor ID. Using .dropna() e.g. closest_neigbors.neighbor_id.sel(id='ams12').dropna(dim='n_closest') still works with the entries being None.
We do not want to have all coords from ds_points in the returned dataset, only the id coordinate.

@eoydvin I implemented the points 2. and 3. from above. I also cleaned up the code and the notebook, which I also extended a bit. Please have a look again at this PR.


Linked in error

When running inspy with just the domain I receive the following error.
ERROR:root:linkedin search - http 404 erorr crawling license
Anyone know how I can fix this?

What parameters are you using?

just the one for the domain, nothing else.


date format to follow Logseq settings

When I comple a task the date format is shown in US style;

and not the format chosen in LogsEQ:

Would it be possible to make the dialog follow the chosen format?
PS: The dialog is also a bit to big for the window, as you can see on the first image.
Thanks for the plug-in btw - great enhancement

[ ] That's exactly right. The display may be confusing because it differs from the actual date format. But it's difficult to change because it relies on the browser's date picker. Instead, we made an improvement to make the indicator icon larger. (Click the indicator icon on the right to display the picker.)
[x] I have adjusted the window size, so please check it at the new version.


Add Prompt

Sometimes I'll have tasks in my builds that are run manually. These may occasionally require data that I don't want to commit. One example would be publishing to NuGet, but in doing so, prompts for an API key.
An example in gulp: https://www.npmjs.com/package/gulp-prompt

Could be very useful for scenarios as the one you mention!

@ChrisMissal @patriksvensson
I was thinking to give this one a go. If I get it right, you want to be able to do something like this:
NuGetPush(packagePath, new NuGetPushSettings {
    ApiKey = Prompt("Enter api key for NuGetPush:")
});

So if we ignore all the fancy stuff gulp-prompt can do for the moment this would be a very simple API with just a single method:
string Prompt(string message)

Some thoughts about the implementation:

we need access to the console (read and write), should we use the Cake.Core.IConsole and add a ReadLine() method?
Is  there a better way to get access to the console than adding it to the CakeContext?

I see little use for adding the IConsole to ICakeContext. Especially adding functionality for something that require interaction from the user.
Since you know that the user runs in interactive mode (otherwise you should not display an prompt), you could use the Console directly.
if(Environment.UserInteractive)
{
   Console.WriteLine("What is you name?");
   var name = Console.ReadLine();
}

That said, A new property UserInteractive should be added the the ICakeEnvironment.

I'm not against adding IConsole to the ICakeContext, but this abstraction is mostly there for unit testing at the moment. I think that a Prompt alias must throw if it's not running in user interactive mode.

@devlead What do you think about this?

Throwing if not running in user interactive mode sounds very reasonable :+1:

I'm on the fence, can see the use case presented, for fallback scenarios i.e. environment variable / argument missing and some other scenarios. But impotent as stated that it fails if it runs in any server triggered/scheduled scenario.

I agree. Maybe this is better suited as an addin.

Well it could definitely start as such.

@yvschmid

If I get it right, you want to be able to do something like this

Exactly!
@patriksvensson @devlead

I agree. Maybe this is better suited as an addin.

:+1:

I've just added a very basic implementation: https://github.com/yvschmid/Cake.Prompt
This will prevent it from throwing:
cake.exe build.cake --interactive=true

@patriksvensson Should we still add the Environment.UserInteractive property?

Prompting seems to be used for secrets -- why not do something specific for secrets?  I'm thinking of the following:
var secretKey = Argument("encryption_key", null as string) ?? EnvironmentVariable("encryption_key");
var dbPassword = PromptOrDecryptAesSecret("db_password", "Please enter the DB password:", secretKey);

PromptOrDecryptAesSecret() would look in a folder called ".cake.secrets" for the file "db_password.aes".  If not found, it'd prompt and then save the secret in db_password.aes for later.
You probably could use async/await to detect if you're in a non-interactive session -- if there is no activity for 30 seconds, throw an exception.

This is what I did if anyone else is interested.  It works like I described above.
You can put your password in a password manager and then run the following after opening a powershell prompt:
$env:encryption_key = "your password as long as you want"
Below is the cake code:

var IsValidFilename = new Func<string, bool>((name) => {
    var invalidChars = from iv in System.IO.Path.GetInvalidFileNameChars()
    join nc in (name + ".aes") on iv equals nc
    select iv;

    return !invalidChars.Any();
});

var Decrypt = new Func<FileInfo, string, string>((file, encryptionPassword) => {

    if (!file.Exists) {
        return null;
    }

    byte[] cipherBytes = System.IO.File.ReadAllBytes(file.FullName);

    using (var cipher = System.Security.Cryptography.AesManaged.Create())
    {

        var salt = Convert.FromBase64String("mBLf3umGnNA=");

        using(var pdb = new System.Security.Cryptography.Rfc2898DeriveBytes(encryptionPassword, salt)) {
            cipher.Key = pdb.GetBytes(32);
            cipher.IV = pdb.GetBytes(16);
        }
        using (var ms = new MemoryStream())
        {
            using (var cs = new System.Security.Cryptography.CryptoStream(ms, cipher.CreateDecryptor(), System.Security.Cryptography.CryptoStreamMode.Write))
            {
                cs.Write(cipherBytes, 0, cipherBytes.Length);
                cs.Close();
            }
            return Encoding.UTF8.GetString(ms.ToArray());
        }
    }

});

var Encrypt = new Action<string, FileInfo, string>((unencrypted, fileInfo, encryptionPassword) => {

    using (var cipher = System.Security.Cryptography.AesManaged.Create())
    {

        var salt = Convert.FromBase64String("mBLf3umGnNA=");

        using(var pdb = new System.Security.Cryptography.Rfc2898DeriveBytes(encryptionPassword, salt)) {
            cipher.Key = pdb.GetBytes(32);
            cipher.IV = pdb.GetBytes(16);
        }

       var valueBytes = Encoding.UTF8.GetBytes(unencrypted);

        using (var encryptor = cipher.CreateEncryptor()) {
            using (var to = fileInfo.OpenWrite()) {
                using (var writer = new System.Security.Cryptography.CryptoStream(to, encryptor, System.Security.Cryptography.CryptoStreamMode.Write)) {
                    writer.Write(valueBytes, 0, valueBytes.Length);
                    writer.FlushFinalBlock();
                }
            }
        }

    }

});

var AskForSecret = new Func<string, string>((prompt) => {

    System.Console.WriteLine(prompt);

    string response = null;

    System.Threading.Tasks.Task.Run<Task>(() => {
        return System.Threading.Tasks.Task.WhenAny(
            new System.Threading.Tasks.Task[] {
                System.Threading.Tasks.Task.Run(() => {
                    response = Console.ReadLine();
                }),
                System.Threading.Tasks.Task.Delay(TimeSpan.FromSeconds(30))
            }
        );
    }).Wait();

    if (response == null) {
        throw new Exception("No response in 30 seconds, so I assume this is a non-interactive session.");
    }

    return response;
});

var PromptOrDecryptAesSecret = new Func<string, string, string, string>((name, prompt, encryptionPassword) => {

    if (!IsValidFilename(name)) {
        throw new Exception("The name, " + name + ", is not a valid filename.");
    }

    if (encryptionPassword == null) {
        throw new Exception("The encryption password is null.");
    }

    var d = new DirectoryInfo(".cake.secrets");

    if (!d.Exists) {
        d.Create();
    }

    var fileInfo = new FileInfo(System.IO.Path.Combine(d.FullName, name + ".aes"));

    var unencrypted = Decrypt(fileInfo, encryptionPassword);

    if (unencrypted == null) {

        unencrypted = AskForSecret(prompt);

        Encrypt(unencrypted, fileInfo, encryptionPassword);
    }

    return unencrypted;
});


Instructions for installing dev version don't work if deps are not already installed

Output:
$ python3 -m pip install -e git+https://github.com/machow/quartodoc.git#egg=quartodoc
Obtaining quartodoc from git+https://github.com/machow/quartodoc.git#egg=quartodoc
  Updating ./src/quartodoc clone
  Running command git fetch -q --tags
  Running command git reset --hard -q 681404024b5e7163559dcdaa88ee795ea2489ac5
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Collecting griffe==0.25
  Using cached griffe-0.25.0-py3-none-any.whl (87 kB)
Collecting sphobjinv
  Using cached sphobjinv-2.3.1-py3-none-any.whl (51 kB)
Collecting tabulate
  Using cached tabulate-0.9.0-py3-none-any.whl (35 kB)
Collecting importlib-metadata
  Using cached importlib_metadata-6.3.0-py3-none-any.whl (22 kB)
Collecting panflute
  Using cached panflute-2.3.0-py3-none-any.whl (36 kB)
Collecting pydantic
  Using cached pydantic-1.10.7-cp311-cp311-macosx_11_0_arm64.whl (2.5 MB)
Collecting typing-extensions
  Using cached typing_extensions-4.5.0-py3-none-any.whl (27 kB)
Collecting plum-dispatch
  Using cached plum_dispatch-2.0.1-py3-none-any.whl (27 kB)
Collecting colorama>=0.4
  Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting zipp>=0.5
  Using cached zipp-3.15.0-py3-none-any.whl (6.8 kB)
Collecting click<9,>=6
  Using cached click-8.1.3-py3-none-any.whl (96 kB)
Collecting pyyaml<7,>=3
  Using cached PyYAML-6.0-cp311-cp311-macosx_11_0_arm64.whl (167 kB)
Collecting beartype
  Using cached beartype-0.13.1-py3-none-any.whl (707 kB)
Collecting attrs>=19.2
  Using cached attrs-22.2.0-py3-none-any.whl (60 kB)
Collecting certifi
  Using cached certifi-2022.12.7-py3-none-any.whl (155 kB)
Collecting jsonschema>=3.0
  Using cached jsonschema-4.17.3-py3-none-any.whl (90 kB)
Collecting pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0
  Using cached pyrsistent-0.19.3-cp311-cp311-macosx_10_9_universal2.whl (82 kB)
Building wheels for collected packages: quartodoc
  Building editable for quartodoc (pyproject.toml) ... done
  Created wheel for quartodoc: filename=quartodoc-dynamic-0.editable-py2.py3-none-any.whl size=4480 sha256=abfe3c3d35fe32dc73bef3dc2675ec857e0649c413d33048dd57bcebe0857be7
  Stored in directory: /private/var/folders/vd/0_g4hj6d7kq_fw5gd_r0ml5w0000gn/T/pip-ephem-wheel-cache-17nlp31a/wheels/6c/d2/c3/e824117c292ad774f70d34dcbad782adda04bacaf896285c62
  WARNING: Built editable for quartodoc is invalid: Metadata 1.2 mandates PEP 440 version, but 'dynamic' is not
Failed to build quartodoc
ERROR: Could not build wheels for quartodoc, which is required to install pyproject.toml-based projects

Do you mind posting python --version and python -m pip --version? It seems like something else is going on, but I'm not able to replicate.
I wonder if this is using a fairly old version of pip? There might be a small pyproject.toml tweak that needs to happen...

Hm, I'm not able to reproduce this now. It's possible that's because I upgraded from 3.11.2 to 3.11.3 yesterday, after filing this issue. I was running this with a clean venv both yesterday and today.
Feel free to close this issue, since I can't reproduce it.

Oh weird--definitely re-open if you run into it again!


REMatch kernel

@ceriottm / @Luthaf Is the REMatch kernel from https://arxiv.org/abs/1601.04077 implemented in this repo? If not, where is it and how to use it from Python?

It is not. You can find a python implementation here https://github.com/lab-cosmo/glosim/blob/master/libmatch/structures.py, but I can't say it's well documented. If you are willing to put in some effort to contribute, it's be really cool to add the rematch calculation in a clean, modular way here https://github.com/scikit-learn-contrib/scikit-matter

This repo only computes the representations, it does nothing special with them. If you want to compute the classic SOAP power spectrum, we have an example here: https://luthaf.fr/rascaline/latest/how-to/computing-soap.html. This will give you per-atom features.
If you want per-structure features, you can use metatensor.sum_over_samples after installing metatensor-operations (for now, you'll have to install it from the Github repo).
Let us know if anything is not clear, we are still working on the documentation!


Add stars to enable teacher document curation

New Starred document feature allows teachers to create a curated list of published documents by starring one or more documents.
Starring rules:

published documents can be starred or unstarred using the star button next to the document title on the Class Work right tab
only teachers can star/unstar a document
a Starred section appears in the Class Work right tab panel and displays any starred documents relevant to that user
a teacher user ONLY sees stars that they have created (this includes the state of the star icon and the list of starred documents in Class Work)
all other user types see the complete list of starred documents in Class Work (but cannot change the star state)
when a document is unstarred, the star is not removed from Firebase but is instead marked as starred = false. This allows us to maintain some history of starred documents even when a document is no longer starred

Example:

teacher A stars published document 1 and published document 2
teacher B stars published document 2 and published document 3
teacher A sees active star icon next to doc 1 and doc 2 and sees doc 1 and doc 2 in their list of Starred documents in the Class Work tab
teacher B sees active star icon next to doc 2 and doc 3 and sees doc 2 and doc 3 in their list of Starred documents in the Class Work tab
student C sees doc1, doc2, and doc3 in their list of Starred documents in the Class Work tab

@kswenson I think we fixed all of the requests from your comments.  Anything else or is this ready for approval and a merge?


Envoy CORS missing headers access-control-allow-methods access-control-allow-headers

Title: Envoy CORS missing headers
Description:
I'm trying to add a CORS policy to my vhost in the ingress listener:
    - name: listener_1
      address:
        socket_address:
          protocol: TCP
          address: <IP_ADDRESS>
          port_value: 443
      filter_chains:
        - filters:
            - name: envoy.filters.network.http_connection_manager
              typed_config:
                "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
                codec_type: auto
                upgrade_configs:
                  upgrade_type: websocket
                access_log:
                  name: envoy.access_loggers.file
                  typed_config:
                    "@type": type.googleapis.com/envoy.extensions.access_loggers.file.v3.FileAccessLog
                    path: "/dev/stdout"
                stat_prefix: ingress_http
                http_protocol_options:
                  allow_chunked_length: true
                proxy_100_continue: true
                route_config:
                  name: local_route
                  virtual_hosts:
                    - name: web_servers
                      domains:
                        - "example.com"
                      routes:
                        - match:
                            prefix: "/"
                          route:
                            cluster: cluster_web_servers
                            timeout: 3s
                      cors:
                        allow_origin_string_match:
                          - prefix: "https://example.com"
                        allow_credentials: true
                        allow_headers: Accept, Content-Type, Cookie, Range, X-Auth-Token, X-Client-Request-Id, X-Upload-Id, X-User-Id
                        allow_methods: GET,POST,OPTIONS
                        max_age: "1728000"
                http_filters:
                  - name: envoy.cors
                    typed_config:
                      "@type": type.googleapis.com/envoy.extensions.filters.http.cors.v3.Cors
                  - name: envoy.filters.http.router
                    typed_config:
                      "@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router

Envoy service start and work. When I make request with curl -H "Origin: https://example.com" https://example.com curl return response without header access-control-allow-methods and access-control-allow-headers:
HTTP/1.1 200 OK
x-xss-protection: 1
x-content-type-options: nosniff
x-frame-options: sameorigin
content-security-policy: default-src 'self' ; connect-src * blob:; font-src 'self'  data:; frame-src blob: web_server://* *; frame-ancestors https://example.com; img-src * blob: data:; media-src * data:; script-src 'self' 'unsafe-eval' ; style-src 'self' 'unsafe-inline'
x-instance-id: 7zkRt5H7pWxHo8DQ4
x-powered-by: Express
content-type: text/html; charset=utf-8
vary: Accept-Encoding
date: Thu, 25 Apr 2024 09:36:54 GMT
x-envoy-upstream-service-time: 9
access-control-allow-origin: https://example.com
access-control-allow-credentials: true
server: envoy
transfer-encoding: chunked

How I can add missing headers to Envoy response?
Tested on envoy versions 1.23.1, 1.30.1

https://fetch.spec.whatwg.org/#http-responses
access-control-allow-methods and access-control-allow-headers are only be added to the response to the prefight request. And typically you send a single cors request witch is not prefight request.
You can send a prefight request by set the request method to OPTION and add additional Access-Control-Request-Method header.


Where did you download the vgg16 pretrained weight?

Hi, @YonghaoXu. Your work is great and inspires me lot.
I want to know the link that you download the vgg16 pretrained weight.
I notice that pytorch has already provided a vgg16 pretrained weight in models.vgg16(pretrained=True).
So I am curious about why you use another pretrained weight.
Thank you very much.

Hi @lauraset, thanks for your interest in this work. The pretrained VGG-16 model is the same one that I used in a previous project on cross-domain semantic segmentation. You can download it here. I think directly using the official pytorch pretrained weight would also be fine as here we just want to have a good initialization to accelerate the training procedure.

Hi, @YonghaoXu. Thank you for your detailed reply. I got it.

Hi, @YonghaoXu. Thank you for your detailed reply. I got it.
By the way, I used the well-trained weights of CRGNet.
When I run GenVaihingen.py, the results show that

The boundary seems poor. Is that right?

Hi, @YonghaoXu. Thank you very much. I have obtained the similar results by self-training as reported in your paper. It is a practical technique.


Add /about menu item

Santa's bot is missing an /about  command pointing to this repo and attributing credits to python-telegram-bot, see Züri Trash Bot for example.

Implemented with version 1.3.0


Fix type warnings

When you compile using Visual Studio, it will give some warnings about the variables type. I created this PR to solve this warnings and improve a casting to always working with these expected types.
I just changed the places where we are working with size_t (mainly strings), so wasn't needed to declare variables as integer.

Good catch, LGTM.


Style tag not being included with dynamic import?

I have a component like this:
<template>
  <component
    :is="customIcon"
    v-if="isCustom"
    class="icon"
    :data-icon="icon"
    aria-hidden="true"
  />
</template>

<script setup lang="ts">
import { defineAsyncComponent, ref } from "vue";
import { kebabCase } from "lodash";

type Props = {
  icon: string;
};

const props = defineProps<Props>();

const isCustom = ref(true);

const customIcon = defineAsyncComponent(async () => {
  try {
    return await import(`../assets/icons/${kebabCase(props.icon)}.svg`);
  } catch {
    isCustom.value = false;
    return await import(`../assets/icons/loading.svg`);
  }
});
</script>

And loading.svg looks like this:
<svg
  xmlns="http://www.w3.org/2000/svg"
  viewBox="-50 -50 100 100"
  data-spinner="true"
>
  <style>
    [data-spinner="true"] {
      animation: spin 2s linear infinite forwards;
    }

    @keyframes spin {
      from {
        transform: rotate(0deg);
      }
      to {
        transform: rotate(360deg);
      }
    }
  </style>
  <path
    fill="none"
    stroke="currentColor"
    stroke-width="10"
    d="M 0 40 A 40 40 0 1 1 40 0"
  />
</svg>

And the loading.svg isn't spinning because the <style> tag has been removed. I thought it might be some default SVGO setting removing the style as superfluous, but then I turned off SVGO completely and the problem is still there.
Then I figured this plugin was removing the style tag because Vue doesn't like a style tag in the template of a component, but I see in these lines you're trying to get around that.
Any idea what the issue could be?

Nevermind, just saw #110 and #92. I'm still on 4.0.0 (which I just installed and assumed would be the same version as what the latest stuff in main is. Closing as duplicate.


Inherited documentation (inheritdoc) is not used during signature help

When using inheritdoc as per #1806, documentation is now correctly inherited, but the inherited documentation is not used in places such as signature help, only in tooltips.
Example code that reproduces this for me:
public interface IA
{
    /// <summary>
    /// This is foo in the interface!
    /// </summary>
    /// <param name="param">This is my param.</param>
    void foo(int param);
}

public class A : IA
{
    /// <inheritdoc/>
    public void foo(int param)
    {
        // Hovering on "foo" will show "This is foo in the interface!", but getting signature help in between
        // the parantheses will not show any documentation for "foo" nor for "param".
        this.foo();
    }
}

If you make it explicit, it works as intended in both tooltips and signature help:
public interface IA
{
    /// <summary>
    /// This is foo in the interface!
    /// </summary>
    /// <param name="param">This is my param.</param>
    void foo(int param);
}

public class A : IA
{
    /// <summary>
    /// This is foo in the class!
    /// </summary>
    /// <param name="param">This is my param in the class.</param>
    public void foo(int param)
    {
        this.foo();
    }
}

Omitting inheritdoc entirely has the same problem as making it explicit.

And cheating by doing this:
/// <inheritdoc cref="IA.foo"/>

...also doesn't work.

Another case that doesn't work is for extension methods.
You want to wrap some BCL function in an extension method, and reuse that function's docs:
/// <inheritdoc cref="Array.IndexOf{T}(T[], T)"/>
public static int IndexOf<T>(this T[] array, T value)
{
  return Array.IndexOf(array, value);
}

Would also love to be able to see docs from inheritdoc inside of a param (see example constructor docs below), but it doesn't work in VSCode.
  public class MyObject {
    /// <summary>Represents a value.</summary>
    public int MyValue { get; }

    /// <summary>
    /// Create an object with a value.
    /// </summary>
    /// <param name="myValue"><inheritdoc cref="MyValue" /></param>
    public MyObject(int myValue) => MyValue = myValue;
  }


dialog resizes when buttons are focused or unfocused

When a button is focused, alertify draws a 1px border around that button. When unfocused, the border is removed. For some dialogs, like the first example dialog on alertifyjs.org, it shrinks/unshrinks the dialog by 2 pixels: open the example and then click anywhere but on the OK button and you will see the dialog shrink by 2 pixels. Here's a workaround that fixes it for me:
.alertify .dialog nav button:not(.btn):not(.pure-button):not(.md-button):not(.mdl-button){
border:1px solid transparent;
}

Thanks, good catch. That workaround is perfect. Will try to make sure it gets into the next release.

Fixed in 371e545


Snapshotter occasionally report error message

sudo nerdctl --snapshotter nydus   run -it --net none gechangwei/python:3.7-nydus bash

FATA[0001] wait until daemon ready by checking status: failed to check status: failed to create new nydus client: failed to build transport for nydus client: stat /var/lib/containerd-nydus-grpc/socket/1_jWaFHnQcezLGcQdXDfwg/api.sock: no such file or directory: unknown

In fact, the socket file existes

Thanks for reporting, are there any reproducible steps?

Please just run my converted v6 container image. It is quite easy to reproduce in my environment.
sudo nerdctl --snapshotter nydus   run -it --net none gechangwei/python:3.7-nydus bash

Thanks, a possible reproducible step via investigation like this:

start nydus snapshotter with options:

containerd-nydus-grpc \
  --config-path /path/to/nydus/config.json \
  --log-to-stdout

no --daemon-mode shared and --daemon-backend fscache option.
enable --log-to-stdout to print an error message from nydusd.

run with nerdctl/ctr:

nerdctl --snapshotter nydus run -it --net none gechangwei/python:3.7-nydus bash

An error message is thrown by nydusd:
[2022-07-11 03:34:13.578151 +00:00] ERROR [error/src/error.rs:21] Error:
	"failed to read metadata from backend, Registry(Request(Common(reqwest::Error { kind: Request, url: Url { scheme: \"https\", cannot_be_a_base: false, username: \"\", password: None, host: Some(Domain(\"localhost\")), port: Some(5000), path: \"/v2/ubuntu/blobs/sha256:83369b0db62aa01e50a6b4265a9270b184ccfaa92c22005009c6fc667d1a69ec\", query: None, fragment: None }, source: hyper::Error(Connect, Ssl(Error { code: ErrorCode(1), cause: Some(Ssl(ErrorStack([Error { code: 336130315, library: \"SSL routines\", function: \"ssl3_get_record\", reason: \"wrong version number\", file: \"ssl/record/ssl3_record.c\", line: 331 }]))) }, X509VerifyResult { code: 0, error: \"ok\" })) })))"
	at storage/src/meta/mod.rs:643
	note: enable `RUST_BACKTRACE=1` env to display a backtrace
[2022-07-11 03:34:13.578255 +00:00] ERROR [error/src/error.rs:21] Error:
	Rafs(CreateDevice(Os { code: 5, kind: Uncategorized, message: "I/O error" }))
	at src/bin/nydusd/daemon.rs:140
	note: enable `RUST_BACKTRACE=1` env to display a backtrace
[2022-07-11 03:34:13.578294 +00:00] ERROR [src/bin/nydusd/main.rs:663] Failed in starting daemon: Invalid argument (os error 22)

Let's close it since snapshotter will have a more detailed nydusd log with PR #118  and I no longer can reproduce it.


Add UTM to track docs referrals

Signed-off-by: Usha Mandya<EMAIL_ADDRESS>Adding a UTM for the Vulnerability scanning page to track docs referrals.

@eparisimio @jhratliff PTAL


ISPN-10462 Move jgroups defaults to core

https://issues.jboss.org/browse/ISPN-10462

Also include an Azure configuration
Add parser defaults for kubernetes, ec2, google, azure jgroups configs
Normalize mcast address properties between UDP and MPING
Default to SITE_LOCAL addresses for TCP
Update docs

@ryanemerson @danberindei updated

Integrated, thanks Tristan!


Model Options

For Head Models, we need the option to lower the head bone (potentially in all 3 directions) to adjust for different head types. Right now, there are only mammal head types that have raised heads, but fish-type heads would be on the front of the body instead.
Using this form of displacement will keep head attachments (ears, horns, hats) in their relative location without needing special models for different animal types.
Visual of the bone displacement:

This has been implemented.
Documentation has be created for this on the Wiki
https://github.com/sim2kid/Strange-Cargo/wiki/Body-Part-Json-Config


how to Configuration LADP

how to Configuration LADP

Thanks for your issue. LDAP is the default way in our company for logging in. If the organization you work at uses the same way for logging in, you can just set your ldap url in config.sh. If you just wanna try Linkis, we have set a special user - hadoop (password is hadoop as well).

LDAP is supported by default, please take a look at the deployment documentation, Thanks!


bump: version 1.1.0 → 1.1.1

RATIONALE
A short description of the changes in this pull request. If the pull request is related to an open issue, mention it here.
CHANGES

bump version

CHECKLIST

[ ] Tests covering the new functionality have been added
[ ] Documentation has been updated OR the change is too minor to be documented

Codecov Report
Patch coverage: 100.00% and no project coverage change.

Comparison is base (ea18910) 94.33% compared to head (e71259d) 94.33%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #176   +/-   ##
=======================================
  Coverage   94.33%   94.33%
=======================================
  Files          17       17
  Lines        1376     1376
  Branches      279      279
=======================================
  Hits         1298     1298
  Misses         47       47
  Partials       31       31

Files Changed
Coverage Δ

src/flake8_custom_import_rules/__init__.py
66.66% <100.00%> (ø)

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


update docs and refer to setuptools

This PR fixes some documentation issues that were missed in #1588:

fixes to distribute.rst:

replace leftover occurences of "distribute" with "setuptools"
fix minor grammatical errors

@untitaker my branch has references to easy_install removed, and adds a note about installation of setuptools and pip.  Could you re-review?

Thanks!


SQL injection exists in /jeecg-boot/sys/user/queryUserByDepId

版本号：
<=3.0
问题描述：
After testing, it is found that the code parameter of /jeecg-boot/sys/user/queryUserByDepId interface of jeecg-boot has SQL injection
截图&代码：
payload:/jeecg-boot/sys/user/queryUserByDepId?_t=1641263644&id=57197590443c44f083d42ae24ef26a2c&realname=%64%61%73%64%27%20%75%6e%69%6f%6e%20%73%65%6c%65%63%74%20%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%63%6f%6e%63%61%74%28%30%78%37%2c%69%66%6e%75%6c%6c%28%63%61%73%74%28%63%75%72%72%65%6e%74%5f%75%73%65%72%28%29%20%61%73%20%6e%63%68%61%72%29%2c%30%78%32%30%29%2c%30%78%37%29%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2c%4e%55%4c%4c%2d%2d%20%2d

The vulnerability code exists in the following code:\jeecg-boot\jeecg-boot-module-system\src\main\java\org\jeecg\modules\system\controller\SysUserController.java At line 366 of

友情提示（为了提高issue处理效率）：

未按格式要求发帖，会被直接删掉;
请自己初判问题描述是否清楚，是否方便我们调查处理；
针对问题请说明是Online在线功能(需说明用的主题模板)，还是生成的代码功能；
描述过于简单或模糊，导致无法处理的，会被直接删掉；

jl

问题已修复，下版本发布


"Please specify a valid group"

To create a new share, we need to call :
$this->groupManager->groupExists($shareWith)  at ShareAPIController.php
But, when we run the Reva Unit test for Share, we get this error:
"Please specify a valid group"

For now, just implement sharing with a user, we can implement sharing with a group later.


guest object has undefined properties

Guest object has properties that are defined when the dummy data is generated but when trying to access those properties from the list of initialized guest objects, those properties are undefined. All of the Bx properties are undefined.

This bug was fixed in commit 9853c72


Not working on macOS

Hi,
I just installed this plugin, but it just shows an empty box on the screen. Glow works great on the command line, but not in the plugin. I'm using LazyVim with a special config file:
-- every spec file under config.plugins will be loaded automatically by lazy.nvim
--
-- In your plugin files, you can:
-- * add extra plugins
-- * disable/enabled LazyVim plugins
-- * override the configuration of LazyVim plugins
return {

  {
    "ellisonleao/glow.nvim",
    config = function()
      require("glow").setup({ glow_path = "/opt/homebrew/bin/glow" })
    end,
    cmd = "Glow",
  },
}

I'm running nvim nightly using the bob installer.

Same here.
My setup
Version: NVIM v0.9.0-dev-2185+gd34c64e34-dirty
Config:
---@type LazySpec
local spec = {
    "ellisonleao/glow.nvim",
    cmd = "Glow",
    opts = {
        glow_path = "", -- will be filled automatically with your glow bin in $PATH, if any
        install_path = "/opt/homebrew/bin/glow", -- default path for installing glow binary
        border = "shadow", -- floating window border config
        style = "dark|light", -- filled automatically with your current editor background, you can override using glow json style
        pager = false,
        width = 80,
        height = 100,
        width_ratio = 0.7, -- maximum width of the Glow window compared to the nvim window size (overrides `width`)
        height_ratio = 0.7,
    },
    config = function(_, opts)
        require("glow").setup(opts)
    end,
}

return spec

Screenshot

I have the same issue

I have the same issue 😢

+1, same issue.

I had the same issue and it looks like it's the same reason as in #112.
I downgraded to 1.4.1 via homebrew:
brew tap-new local/glow-for-nvim # or some other tap name you want to use
brew extract --version=1.4.1 glow local/glow-for-nvim
brew install<EMAIL_ADDRESS>
and then configure this plugin (with Lazy) as
{
    "ellisonleao/glow.nvim",
    cmd = "Glow",
    opts = {
        glow_path =<EMAIL_ADDRESS>    },
},

Please rollback to glow 1.4.1 version until https://github.com/ellisonleao/glow.nvim/pull/107 is merged. Thanks!


Parallel downloads and youtube playlist regex fix

Hi,
I have added a feature to download multiple videos at same time, which will help in downloading a playlist faster. Please review the diff and merge. Comments/suggestions are welcome.

Should this be closed? The file in question does no longer exist.

The parallel part is still useful, and I guess it's not difficult to rebase.

Any updates on this?

The original author ("Ravi") of this PR has left Github, so I'm going to close this. Feel free to open a new PR with an implementation written from scratch or based on Ravi's work.


Live partial output

trackit provides no feedback while a command is running. I tried using it to run cabal:
trackit -t src/ -c "cabal v2-build"

But it's not convenient at all as I see no indication of progress while the command is running (which takes about 5 seconds in the project I tested).

That's a good suggestion. I also experienced this when using it with Cabal.
I'll have to think about what's the best way to do this.


Inconsistent behavior when cancelling ondragover/ondragleave events

Version
2.2.5
Reproduction link
https://jsfiddle.net/bluenote10/d2waamdk/10/
Steps to reproduce
In order to receive an ondrop event it is in general required to discard the default behavior of the ondragover/ondragleave events. The attached example discards events using the traditional return false approach.
The example has two versions, a manual version and a Vue based version. Both implementations are exactly identical. Discarding the ondragover/ondragleave events does work properly in the manual implementation, i.e., the drop event arrives without problem.
What is expected?
The Vue implementation should behave identical to the manual implementation.
What is actually happening?
In the Vue implementation the events do not seem to be properly cancelled. As a result the drop event does not work.

Note that using e.preventDefault or also @dragover.prevent does work. Only the traditional discarding of using return false is affected and leads to the unexpected behavior.
The issue has also been discussed here.

FYI return false is NOT part of the spec. It's supported for legacy reasons in some browsers but you should not rely on it.


"/index" path redirected to empty string

I'm seeing serve-handler redirect "/index" to "". But redirect location: "" causes firefox (and wget) to retry "/index" and get caught in a redirect loop.

Confirmed here. I used a rewrite rule to fix it: https://github.com/conorwsullivan/conorwsullivan.github.io/blob/master/serve.json


Minor script improvements

Fix shellcheck warnings
Improve prompt parsing
Use bash array for PACKAGES & remove bc dependency

Note: that this introduces a reliance on some bash 4.0 features, however I don't think it will be too much of a problem since bash 4.0 was released in 2009

This is great! thank you @ALX99


Debug mode json parser error

Steps to Reproduce
google/flutter-desktop-embedding#356
I was using the desktop embedding in debug mode and after an update it broke (For the error message look in the above referenced issue).
The error occurred because a float value was separated with a comma.
Fix
The simple fix:
export LC_NUMERIC="en_US.UTF-8"

I hope there is a way to specify the numeric language in the dart json serializer.
Maybe this issue has to go deeper into the dart repo.

It looks like the JSON implementation on linux used a locale setting where it shouldn't have.
More context from original bug:
Describe the bug
I updated this project and the example app stopped working in debug mode. The app starts fine, but the logger/debugger stops. I'm getting this error:
Launching lib/main.dart on Linux in debug mode...
Building Linux application...
Error initializing DevFS: FormatException: Unexpected character (at character
293)
...ns":0,"avgCollectionPeriodMillis":0,000000,"used":524288,"capacity":2097...
                                       ^

Lost connection to device.
Unhandled exception:
FormatException: Unexpected character (at character 293)
...ns":0,"avgCollectionPeriodMillis":0,000000,"used":524288,"capacity":2097...
                                       ^

#0      _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1392:5)
#1      _ChunkedJsonParser.parse (dart:convert-patch/convert_patch.dart:922:48)
#2      _parseJson (dart:convert-patch/convert_patch.dart:29:10)
#3      JsonDecoder.convert (dart:convert/json.dart:493:36)
#4      JsonCodec.decode (dart:convert/json.dart:151:41)
#5      jsonDecode (dart:convert/json.dart:94:10)
#6      _MapStream._handleData (dart:async/stream_pipe.dart:227:21)
#7      _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:164:13)
#8      _rootRunUnary (dart:async/zone.dart:1132:38)
#9      _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#10     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#11     CastStreamSubscription._onData (dart:_internal/async_cast.dart:81:11)
#12     _rootRunUnary (dart:async/zone.dart:1132:38)
#13     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#14     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#15     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#16     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#17     _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:132:11)
#18     _ForwardingStream._handleData (dart:async/stream_pipe.dart:98:10)
#19     _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:164:13)
#20     _rootRunUnary (dart:async/zone.dart:1132:38)
#21     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#22     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#23     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#24     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#25     _SyncStreamController._sendData (dart:async/stream_controller.dart:764:19)
#26     _StreamController._add (dart:async/stream_controller.dart:640:7)
#27     _StreamController.add (dart:async/stream_controller.dart:586:5)
#28     new _WebSocketImpl._fromSocket.<anonymous closure> (dart:_http/websocket_impl.dart:1138:21)
#29     _rootRunUnary (dart:async/zone.dart:1132:38)
#30     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#31     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#32     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#33     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#34     _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:68:11)
#35     _EventSinkWrapper.add (dart:async/stream_transformers.dart:15:11)
#36     _WebSocketProtocolTransformer._messageFrameEnd (dart:_http/websocket_impl.dart:334:22)
#37     _WebSocketProtocolTransformer.add (dart:_http/websocket_impl.dart:229:46)
#38     _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:120:24)
#39     _rootRunUnary (dart:async/zone.dart:1132:38)
#40     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#41     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#42     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#43     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#44     _SyncStreamController._sendData (dart:async/stream_controller.dart:764:19)
#45     _StreamController._add (dart:async/stream_controller.dart:640:7)
#46     _StreamController.add (dart:async/stream_controller.dart:586:5)
#47     _Socket._onData (dart:io-patch/socket_patch.dart:1774:41)
#48     _rootRunUnary (dart:async/zone.dart:1136:13)
#49     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#50     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#51     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:336:11)
#52     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:263:7)
#53     _SyncStreamController._sendData (dart:async/stream_controller.dart:764:19)
#54     _StreamController._add (dart:async/stream_controller.dart:640:7)
#55     _StreamController.add (dart:async/stream_controller.dart:586:5)
#56     new _RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1323:33)
#57     _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:844:14)
#58     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
#59     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
#60     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:115:13)
#61     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:5)

(Sometimes the stack trace is missing)
Development Environment (please complete the following information):

OS: Ubuntu 19.04
Developer tools version (Xcode, Visual Studio, or gcc):
gcc version: gcc (Ubuntu 8.3.0-6ubuntu1) 8.3.0

Doctor Output
For build issues, please provide the output of flutter doctor -v:
[✓] Flutter (Channel dev, v1.5.8, on Linux, locale en_US.UTF-8)
    • Flutter version 1.5.8 at /home/jld3103/flutter
    • Framework revision 0ba67226ee (3 days ago), 2019-04-24 17:18:28 -0700
    • Engine revision c63d1cf9c9
    • Dart version 2.3.0 (build 2.3.0-dev.0.1 1f1592edce)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /home/jld3103/Android/Sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = /home/jld3103/Android/Sdk
    • Java binary at: /home/jld3103/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/183.5452501/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b16-5323222)
    • All Android licenses accepted.

[✓] Android Studio (version 3.4)
    • Android Studio at /home/jld3103/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/183.5452501
    • Flutter plugin version 35.0.1
    • Dart plugin version 183.5901
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b16-5323222)

[✓] Connected device (1 available)
    • Linux • Linux • linux-x64 • Linux

• No issues found!

How are we going to fix this?

The bug is in the JSONWriter, it uses locale dependent format:
void JSONWriter::PrintValue(double d) {
  PrintCommaIfNeeded();
  buffer_.Printf("%f", d);
}

/cc @rmacnak-google

@bkonyi

As far as I can tell, vsnprintf (the underlying method used to write into our buffer) doesn't take the system locale into account. I can't seem to find anywhere else in the VM that could result in it being changed either...

Hm, maybe we just need to set LC_NUMERIC="en_US.UTF-8" as part of our build?

@bkonyi

As far as I can tell, vsnprintf (the underlying method used to write into our buffer) doesn't take the system locale into account.

$ man 3 printf
...
       For some numeric conversions a radix character ("decimal point") or thousands' grouping character is used.  The actual character used depends on  the  LC_NUMERIC
       part of the locale.  (See setlocale(3).)  The POSIX locale uses '.' as radix character, and does not have a grouping character.  Thus,

               printf("%'.2f", 1234567.89);

       results in "1234567.89" in the POSIX locale, in "1234567,89" in the nl_NL locale, and in "1.234.567,89" in the da_DK locale.

Hm, maybe we just need to set LC_NUMERIC="en_US.UTF-8" as part of our build?

I think we should just use DoubleToCString which uses Grisu, which always uses . as a separator.
(That what Double::ToCString does - so we would match JsonEncoder output).

Here solved with LC_NUMERIC, only the VS Code debug (F5) that presents the same error, but it executes normal the hot reload by the terminal.

Who is the right person to assign this to? This has already been reported several times by people trying desktop on Linux (which in desktop terms makes it a top-reported issue).

@bkonyi could you change JSONWriter::PrintValue(double d) do use Grisu (double-convertion) instead of printf?

@bkonyi could you change JSONWriter::PrintValue(double d) to use Grisu (double-convertion) instead of printf? Seems like a one line fix to me - so I am just assigning it to you.

Almost a one liner, but not quite :-) CL up for review here.


Show sequential scans on tables on Statistics page

Is your feature request related to a problem? Please describe.
It's hard to calculate index hit ratio (and hence utility) when we know the number of index scans, but not the number of seq scans on the table, which is available from the pg_stat_all_tables view.
Describe the solution you'd like
Show the number of seq_scans in the table statistics.
Describe alternatives you've considered
Fetch the number manually with a query.
Additional context

It's related to my issue, when I'm asking for even more statistics: https://github.com/dbeaver/dbeaver/issues/7159

closed as duplicate of #7159


Allow buying ETH

The smart contract sets the buy token address to 0xeeee...eee to indicate the user wants to buy the native token (ETH on mainnent, DAI on xDAI).
The solver currently doesn't support this magic number and treats it as a regular address (for which any trade will likely fail as we cannot find any uniswap base liquidity). This task captures adding support for it in both the API (for fee/amount estimations - for now it might be enough to just handle it as WETH and ignore the extra gas cost of unwrapping) as well as in the driver (adding an "unwrap" interaction to the execution).
LimitOrderSettlementHandling already allows returning a list of interactions ` when settle is invoked (method to get the smart contract relevant trade information). We can add an interaction for unwrap in https://github.com/gnosis/oba-services/blob/7cbe3c376b08a2658287d26ed2dda002489c2509/solver/src/liquidity/offchain_orderbook.rs#L44
Currently the interactions just get appended to the settlement interaction list. This can cause issues with the execution plan if e.g. we try to unrwap before we have gotten the WETH from the trade (assuming there is not WETH buffer in the smart contract).
We could try to order interactions in a post processing step in the driver and put unrwap interactions at the end of the list ( + potentially combining them so we only invoke WETH.unwrap once in case multiple people trade in the same batch).

This can cause issues with the execution plan if e.g. we try to unrwap before we have gotten the WETH from the trade

I think if we just do all wrap/unwrap operations for payouts last (so they are executed right before bought amounts are transferred out) then there should never be a problem.
For wrap/unwrap operations within settlement interactions (like wrapping DAI to cDAI to take advantage of some arbitrage opportunity in a cDAI-WETH pool for example) this is quite a bit more complex and would likely require solver support.


Feat/benet

Coverage decreased (-14.4%) to 70.754% when pulling 295ea6473edaacd6fd18e96035026c2bcdef96ec on feat/benet into 6258ceca43650324f8d6d1c7dd015f73f556c682 on master.

Coverage decreased (-4.3%) to 80.905% when pulling b663ded10e0702701634c57c83c1ee772a61dec5 on feat/benet into 6258ceca43650324f8d6d1c7dd015f73f556c682 on master.

Coverage increased (+3.2%) to 88.333% when pulling cbcaaed84242bba5bd1107afa71468de17239011 on feat/benet into 6258ceca43650324f8d6d1c7dd015f73f556c682 on master.

Coverage increased (+4.6%) to 89.777% when pulling 53a388bdc09e2b34c09702eb732fe1c8f25295fc on feat/benet into 6258ceca43650324f8d6d1c7dd015f73f556c682 on master.

Coverage increased (+4.6%) to 89.777% when pulling 7f00148c3cde7605d3c612d9e2ac26e2b2a80c9a on feat/benet into 6258ceca43650324f8d6d1c7dd015f73f556c682 on master.

Coverage increased (+4.6%) to 89.777% when pulling 5f5facec4de74ecbe3fb39bff7d22c7fdc3797eb on feat/benet into 6258ceca43650324f8d6d1c7dd015f73f556c682 on master.

Coverage increased (+4.6%) to 89.777% when pulling a8851c9dcde36d8b1296d923736ffbbe5b16d00f on feat/benet into 6258ceca43650324f8d6d1c7dd015f73f556c682 on master.


[Bug]: Show Password Icon Not Visible in Dark Theme

Contact Details
<EMAIL_ADDRESS>What happened?
What Happened?
When using the Digitomize website with the dark theme enabled, the "show password" icon next to the password input fields during registration and login is not visible. This makes it difficult for users to verify their passwords while entering them.
What Did You Expect to Happen?
I expected the "show password" icon to be clearly visible regardless of the dark theme being used. This feature is important for user experience, as it allows users to confirm their password entries without errors.
What browsers are you seeing the problem on?
Microsoft Edge
Relevant log output

Are you interested in contributing?

[x] I'd like to work on this issue

Code of Conduct

[X] I have used the search function to check if an issue already exists
[X] I agree to follow this project's Code of Conduct

Which program are you contributing in?
Not applicable

Hi @Symond1 I can able to see those features already available in local main branch

but i am not sure why it's not reflecting in Live


[BUG] - UI doesn't display the "join space" action correctly

Briefly describe the bug.
Unable to display joined spaces on the UI
How can we reproduce the bug?

Go to https://snapshot.org/#/, with the wallet which has joined at least 20 spaces
Click on 'Join'
See error: the space avatar status remains "Join" and nothing new added on the left sidebar

Debug:

When you click on "Join", there's no error in the browser console, which means the user has actually joined the space
Probably has nothing to do with the alias, clearing local storage won't improve the problem at any way
"20" spaces is a key figure, when one quits 1 of the previously joined spaces, a new space he failed to join before will pop up on the left sidebar, and its avatar status will turn to "Joined", which shows it could be a UI error

Images of Reproduction attached below
What is the expected behaviour?
Since there's no restriction on one's joined spaces, there should be a fix on the UI correctly showing joined ones.
Can you attach screenshots?

Can you provide your device specific details below?

Device Type - [Desktop]
Device OS - [Windows]
OS Version - [Windows 10]
Browser - [chrome, firefox]
Wallet - [metamask]
Space - [All]

@bonustrack somehow the space query seems to be capped on the backen. Adding the first:200 doesn't have an effect and it only return 20 spaces.

Actually there was a limit of 20 on the followers query.
@hjjlxm This will be fixed in the next update.


Fails to install on node 4.2.1

It seems like le_node fails to install due to dependent package dtrace-provider.
$ node -v
v4.2.1
$ npm install le_node

><EMAIL_ADDRESS>install /Users/plusaqua/tmp/le_node_test/node_modules/le_node/node_modules/gobble-cli/node_modules/v8flags
> node fetch.js

flags for v8 <IP_ADDRESS> cached.

><EMAIL_ADDRESS>install /Users/plusaqua/tmp/le_node_test/node_modules/le_node/node_modules/bunyan/node_modules/dtrace-provider
> node scripts/install.js

---------------
Building dtrace-provider failed with exit code 1 and signal 0
re-run install with environment variable V set to see the build output
---------------
<EMAIL_ADDRESS>node_modules/le_node
├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>├──<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>└──<EMAIL_ADDRESS><EMAIL_ADDRESS>

I couldn't replicate this locally, but the issue stems from one of Bunyan's there. Bunyan is only a dev dependency, for testing the integration. Install with npm install --production and most of those deps, including Bunyan, will disappear, as they are not used by le_node itself.

Maybe this only happens under Mac OS X 10.11 (El Capitan)
$ uname -a
Darwin SEONGui-MacBook-Pro.local 15.0.0 Darwin Kernel Version 15.0.0: Wed Aug 26 16:57:32 PDT 2015; root:xnu-3247.1.106~1/RELEASE_X86_64 x86_64

That could be the case, since I've heard that a lot of people have encountered issues with El Capitan's build tools, and the dtrace install has a compilation step. But perhaps it's related to other issues some people have encountered with Bunyan/dtrace on OSX even before El Capitan.
Since there's no need to perform a development install and this is really a dtrace or osx issue, I'm marking it closed. I've always thought it was somewhat odd that the default behavior of npm install is to do a development install. Note that in production environments the --production flag is usually implicit, it's only when you explicitly run npm install that you get the devel version of a module is considered default.


Add /resource/:pid/status and /resource/status endpoint

provide short, informative row for each item in regal.

on test


Error while trying to connect  'getPath'

Currently getting this error 'getPath' error whilst trying to connect to a server via SFTP

Hi guys,
Sorry for the long period of inactivity.
We are currently working on a new version : better code, more stable, and bug fixes.
This bug will be fixed at the next release.
Thank you for using our work ! :)

Hi guys,
A new version (1.0.0) was published tonight.
Feel free to reopen if the problem is still there.
Enjoy ! :D


Add X-CDP-SDK header to all requests

https://github.com/cognitedata/cognitesdk-js/pull/103

I believe we could start using this syntax for commits https://help.github.com/en/articles/closing-issues-using-keywords


Docs.MS Release Updates for Azure.ResourceManager.Resources

Update docs metadata and targeting for release of Azure.ResourceManager.Resources

Docs Build status updates of commit 15fae0e:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

api/overview/azure/resourcemanager.resources-readme-pre.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Add package db

E: db: a package by that name already exists.

You'll have to pick another name for your package.

thanks! I picked another name.
so, I close this PR


Typescript: ladders-matchmaker.js

All these renames........
format should be used for an actual Format instance. formatid is better if it's the well, ID.

Yeah, I don't understand why formatid was renamed format


Generate the first release

Instructions here: https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository

Need to think about version numbers for the whole package.  Should we use "build.version" or something else?  Consider SemanticVersion for guidelines.

Also need to decide where this would be "released" to ... Maven, or somewhere else. For Maven, we'd (probably, haven't looked) need a new name, or just make sure the package is named uniquely.


Restructure repo

to clearly separate app code, docs, tests, and setup/install code.
Following suggestions here:

https://hynek.me/articles/testing-packaging/
https://blog.ionelmc.ro/2014/05/25/python-packaging/#the-structure

Oh, also created a subfolder for the article 😁😁😁


Get CRISPR Tutorial for Python library working

Get CRISPR Tutorial for Python library working

By Dec 7

I'm not sure what the CRISPR tutorial is or what I have to do to get it working
Sent from my iPhone

On Nov 30, 2016, at 8:49 AM, Herbert Sauro<EMAIL_ADDRESS>wrote:
By Dec 7
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub, or mute the thread.

You were accidently put ont he issue, ignore it, it was reallocated to Kiri.
HErbert
On Wed, Nov 30, 2016 at 9:36 AM, Kyle Medley<EMAIL_ADDRESS>wrote:

I'm not sure what the CRISPR tutorial is or what I have to do to get it
working
Sent from my iPhone

On Nov 30, 2016, at 8:49 AM, Herbert Sauro<EMAIL_ADDRESS>wrote:
By Dec 7
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub, or mute the thread.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/SynBioDex/pysbol2/issues/23#issuecomment-263940006,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABAZDhkLqNBJNmv0QXQl2mAjzPrd-pH7ks5rDbQPgaJpZM4K6zS0
.

Move the code into the tutorial document in overleaf and update text.

Tutorial document updated

By Dec 21st of December


Return None if no GTFS departures found

Description:
Currently, if a bus timetable query returns nothing because no more departures are scheduled for today, then the resulting state is 0, as in "0 minutes until departure", which is wrong as it blurs the lines with the real state of 0 when a bus really is less than a minute until departure. This PR changes the resulting state when no results are found to None, which is more accurate.
Since a default result changes, this PR should be labelled breaking change.
Breaking Change: The GTFS sensor will now return None instead of 0 if no next departures are found.
Related issue (if applicable): relates to #7956, but does not fix the issue.
Checklist:

[x] The code change is tested and works locally.
[x] Local tests pass with tox. Your PR cannot be merged unless tests pass
[x] There is no commented out code in this PR.

Please highlight the breaking change in a paragraphin  the PR description for the release notes. Then we can merge.

Please highlight the breaking change in a paragraph in the PR description for the release notes. Then we can merge.

Done! 😃


literal: add support for .cfg file (like setup.cfg)

I would like to propose the ability to extract version or other information from setup.cfg, not only project.toml or yaml files.
This time with a test !

@nedbat I don't know what I did with the previous MR, but it got closed (my mistake in anways...). So I just re-do a MR, this time with a test. Hope it helps.

Thanks!

This is now released as part of scriv 1.3.1.


The filename, directory name, or volume label syntax is incorrect.

Sample code, running on Microsoft Windows, which panics:
package main

import (
	"bufio"
	"fmt"
	"os"
	"path/filepath"
	"time"

	"github.com/easyCZ/logrotate"
	jww "github.com/spf13/jwalterweatherman"
)

func main() {
	jww.SetLogThreshold(jww.LevelTrace)
	jww.SetStdoutThreshold(jww.LevelTrace)

	writer, err := logrotate.New(jww.TRACE, logrotate.Options{
		// Where should the writer be outputting files?
		// If the directory does not exist, it will be created.
		// Required.
		Directory: getExecutableDir(),
		// What is the maximum size of each file?
		// Optional. Use 0 for unlimited.
		MaximumFileSize: 1024 * 1024 * 1024,
		// How often should a new file be created, based on time?
		// Optional. Use 0 to disable time based log rotation.
		MaximumLifetime: time.Hour,
		// How would you like to name your files?
		// Invoked each time a new file is being created.
		FileNameFunc: logrotate.DefaultFilenameFunc,
	})
	if err != nil {
		fatal(err)
	}
	jww.SetLogOutput(writer)

	jww.INFO.Println("This is a test info log.")
	jww.TRACE.Println("This is a test trace log.")
	jww.ERROR.Println("This is a test error log.")
	jww.FATAL.Println("This is a test fatal log.")

	// Ensure all messages are flushed to files before exiting
	err = writer.Close()
	if err != nil {
		fatal(err)
	}
}

func fatal(err error) {
	jww.FATAL.Println(err)
	fmt.Print("Press the Enter key to continue...")
	bufio.NewReader(os.Stdin).ReadBytes('\n')
	os.Exit(1)
}

func getExecutableDir() string {
	ex, err := os.Executable()
	if err != nil {
		jww.FATAL.Println(err)
		panic("Failed to find the executable directory!")
	}
	dir := filepath.Dir(ex)
	return dir
}

Though, on the playground, it works.
On Microsoft Windows it fails with:
INFO 2021/07/22 16:23:43 This is a test info log.
TRACE 2021/07/22 16:23:43 This is a test trace log.
ERROR 2021/07/22 16:23:43 This is a test error log.
FATAL 2021/07/22 16:23:43 This is a test fatal log.
TRACE 2021/07/22 16:23:43 Failed to create log file failed to create new file at D:\2021-07-22T14:23:43Z-spD.log: open D:\2021-07-22T14:23:43Z-spD.log: The filename, directory name, or volume label syntax is incorrect.
TRACE 2021/07/22 16:23:43 Failed to rotate log file failed to create new file at D:\2021-07-22T14:23:43Z-dry.log: open D:\2021-07-22T14:23:43Z-dry.log: The filename, directory name, or volume label syntax is incorrect.
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x18 pc=0xebbd79]

goroutine 6 [running]:
bufio.(*Writer).Available(...)
        C:/Program Files/Go/src/bufio/bufio.go:624
bufio.(*Writer).Write(0x0, 0xc000010200, 0x32, 0x40, 0xe10, 0x0, 0x1)
        C:/Program Files/Go/src/bufio/bufio.go:634 +0x79
github.com/easyCZ/logrotate.(*Writer).listen(0xc0000a6000)
        D:/SOME/PATH/vendor/github.com/easyCZ/logrotate/writer.go:139 +0x13b
created by github.com/easyCZ/logrotate.New
        D:/SOME/PATH/vendor/github.com/easyCZ/logrotate/writer.go:206 +0x199

Hey @NuLL3rr0r,
Thanks for raising the Issue. I've had a chance to look at this briefly but struggling to reproduce without a Windows machine. I'll see if I can get my hands on a VM to test this out.
From a cursory search, this looks like interaction between the writer and the OS Filesystem but I don't really have any more insight than that at this point.
If you do have access to a Windows machine, running it in debug mode and stepping through it could shed more light.

Your error is:
Failed to create log file failed to create new file at D:\2021-07-22T14:23:43Z-spD.log: open D:\2021-07-22T14:23:43Z-spD.log: The filename, directory name, or volume label syntax is incorrect.

According to the official documentation, Windows has (amongst others) those restrictions for file names:
Use any character in the current code page for a name, including Unicode characters
and characters in the extended character set (128–255), except for the following:

The following reserved characters:
        < (less than)
        > (greater than)
        : (colon)
        " (double quote)
        / (forward slash)
        \ (backslash)
        | (vertical bar or pipe)
        ? (question mark)
        * (asterisk)
...

So 2021-07-22T14:23:43Z-spD.log is not valid.

Nice @mpsq. This format is generated by the logrotate.DefaultFilenameFunc. You can try supplying a custom format.
I'll create a fix to use filename scheme compliant with Windows and will cut a new version of this library.

Thank you! I ended up using (natefinch/lumberjack)[https://github.com/natefinch/lumberjack], which is very similar with some other features.


BoxShadow flickering with black color / memory lick with conditional rendering / crash after some time

Description
Here are some issues I found:

When using BoxShadow it sometimes randomly flickering (more in simulator, less in real device (14pro), but still often).
Memory leak when using condition rendering
Will crash after some time (may be related to #1517)
BoxShadow doesn't respect opacity (try to set opacity={0} to <Box> or <Group> components)

import {
  Box,
  BoxShadow,
  Canvas,
  Group,
  RoundedRect,
  rect,
  rrect,
} from '@shopify/react-native-skia'
import React, { useEffect, useState } from 'react'
import { Dimensions } from 'react-native'

function getRandomArbitrary(min: number, max: number) {
  return Math.random() * (max - min) + min
}

export function Board() {
  const [{ i, j }, setPosition] = useState<{ i: number; j: number }>({
    i: 2,
    j: 7,
  })

  useEffect(() => {
    const render = () => {
      setPosition({
        i: getRandomArbitrary(0, 8),
        j: getRandomArbitrary(0, 8),
      })
      setTimeout(render, 0)
    }

    render()
  }, [])

  return (
    <Canvas
      style={{ marginTop: 100, height: HEIGHT }}
      // onTouch={handleTouch}
    >
      <Group transform={[{ translateY: HOFFSET }, { translateX: HOFFSET }]}>
        <Box box={rrect(rect(0, 0, WIDTH, WIDTH), 20, 20)} color="#eee">
          <BoxShadow dx={0} dy={0} blur={10} color="#768083" />
        </Box>
        <RoundedRect
          x={i * 50}
          y={j * 50}
          width={50}
          height={50}
          r={25}
          color="#fff"
        />
        {i > 4 && (
          <RoundedRect
            x={i * 50}
            y={j * 50}
            width={50}
            height={50}
            r={25}
            color="#aaa"
          />
        )}
      </Group>
    </Canvas>
  )
}

const VERTICAL_PADDING = 100
const HOFFSET = 10
const WIDTH = Dimensions.get('window').width - HOFFSET * 2
const HEIGHT = WIDTH + VERTICAL_PADDING * 2

Details:

Flickering: Comment <BoxShadow ... /> and flickering will disappear
Remove conditional render {i > 4 && ( ... )} and memory leak will be fixed, but i thing it's wrong (as a workaround we can use conditional color, i. e. change to transparent).
Still sometimes crashes even without first 2

Demonstration (iphone 14 pro max):
https://github.com/Shopify/react-native-skia/assets/8122711/60414c75-2dac-46f7-bef2-201b2cdff178
Version
0.1.197
Steps to reproduce
https://github.com/mc-petry/skia-crash-black-screen
Snack, code example, screenshot, or link to a repository
https://github.com/mc-petry/skia-crash-black-screen

fix might be fixed by #2206 will double check


[WIP] Add Task.fromEither functions

Hi everyone,
I often need these functions maybe it could be useful to someone else ?

We need tests.

@alexandru Done. :)


fix parsing of emojis from json

Proposed changes:

fixes https://github.com/RasaHQ/rasa_nlu/issues/1564

Status (please check what you already did):

[x] made PR ready for code review
[x] added some tests for the functionality
~[ ] updated the documentation~
[x] updated the changelog

@MetcalfeTom Updated the docstrings if you want to have another look

Nice work 🤙


Ensure duplicate commands with different exit codes show correct command decorations

This is a follow up from https://github.com/microsoft/vscode/issues/143707 which worked around the majority case of an issue.
See the workaround: https://github.com/microsoft/vscode/commit/78a9a54d3817441aa4fb90d8ec82df7a734efa2e
The proper fix will involve sending both the exit code and the history ID over to VS Code which will then do what's happening now but also have the correct exit code to set, instead of assuming it's the last command's exit code.
We should write a little script as part of this that alternates exit codes by setting/unsetting an environment variable so it's easier to test and verify.

The issue being worked around is actually caused by ignoredups or ignoreboth being included in $HISTCONTROL.

Good test case from https://github.com/microsoft/vscode/issues/154343
python -c $'import random\nif (random.randint(0, 1000) % 2 == 0):\n raise NotImplementedError \n'


First implementation of the tls-certificates-operator charm

First implementation of the tls-certificates-operator charm.

Implements config to set certificates
Leverages the tls-certificates relation

@ghislainbourgeois @jnsgruk I added some stuff since you approved the PR (support for generating self-signed certs + certs have to be passed in base64 if they are provided). Let me know if you have more comments/suggestions.