Event loop is closed

Hello
Cant get my head around this:
Jun 27 14:27:34 localhost.localdomain systemd[1]: adsbcot.service: Scheduled restart job, restart counter is at 39.
Jun 27 14:27:34 localhost.localdomain systemd[1]: Stopped ADS-B to TAK Gateway.
Jun 27 14:27:34 localhost.localdomain systemd[1]: Started ADS-B to TAK Gateway.
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]: Traceback (most recent call last):
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:   File "/usr/local/bin/adsbcot", line 8, in
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:     sys.exit(main())
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:              ^^^^^^
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:   File "/usr/local/lib/python3.11/site-packages/adsbcot/commands.py", line 31, in main
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:     pytak.cli(name.split(".", maxsplit=1)[0])
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:   File "/usr/local/lib/python3.11/site-packages/pytak/client_functions.py", line 395, in cli
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:     asyncio.run(main(app_name, config), debug=debug)
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:   File "/usr/lib64/python3.11/asyncio/runners.py", line 190, in run
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:     return runner.run(main)
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:            ^^^^^^^^^^^^^^^^
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:   File "/usr/lib64/python3.11/asyncio/runners.py", line 118, in run
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:     return self._loop.run_until_complete(task)
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:   File "/usr/lib64/python3.11/asyncio/base_events.py", line 653, in run_until_complete
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:     return future.result()
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:            ^^^^^^^^^^^^^^^
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:   File "/usr/local/lib/python3.11/site-packages/pytak/client_functions.py", line 293, in main
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:     clitool.add_tasks(create_tasks(config, clitool))
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:   File "/usr/local/lib/python3.11/site-packages/adsbcot/functions.py", line 88, in create_tasks
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:     raise ValueError
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]: ValueError
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]: Exception ignored in: <function DatagramStream.del at 0x7f03b59b5f80>
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]: Traceback (most recent call last):
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:   File "/usr/local/lib/python3.11/site-packages/pytak/asyncio_dgram/aio.py", line 49, in del
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:   File "/usr/lib64/python3.11/asyncio/selector_events.py", line 839, in close
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:   File "/usr/lib64/python3.11/asyncio/base_events.py", line 761, in call_soon
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:   File "/usr/lib64/python3.11/asyncio/base_events.py", line 519, in _check_closed
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]: RuntimeError: Event loop is closed
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]: Exception ignored in: <function DatagramStream.del at 0x7f03b59b5f80>
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]: Traceback (most recent call last):
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:   File "/usr/local/lib/python3.11/site-packages/pytak/asyncio_dgram/aio.py", line 49, in del
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:   File "/usr/lib64/python3.11/asyncio/selector_events.py", line 839, in close
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:   File "/usr/lib64/python3.11/asyncio/base_events.py", line 761, in call_soon
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]:   File "/usr/lib64/python3.11/asyncio/base_events.py", line 519, in _check_closed
Jun 27 14:27:34 localhost.localdomain adsbcot[6686]: RuntimeError: Event loop is closed
Jun 27 14:27:34 localhost.localdomain systemd[1]: adsbcot.service: Main process exited, code=exited, status=1/FAILURE
Jun 27 14:27:34 localhost.localdomain systemd[1]: adsbcot.service: Failed with result 'exit-code'.
Jun 27 14:27:39 localhost.localdomain systemd[1]: adsbcot.service: Service RestartSec=5s expired, scheduling restart.
Jun 27 14:27:39 localhost.localdomain systemd[1]: adsbcot.service: Scheduled restart job, restart counter is at 40.
Has it something to do with Python version and event handling or anything else.
Best regards

I disabled the service and ran: adsbcot
This is what happened.
[root@localhost ~]# adsbcot
2023-06-28 09:43:05,926 pytak INFO - CoT_URL Dest: udp://<IP_ADDRESS>:6969
2023-06-28 09:43:05,926 pytak INFO - Run: <class 'pytak.classes.CLITool'>
2023-06-28 09:43:05,930 pytak INFO - Run: <class 'pytak.classes.TXWorker'>
2023-06-28 09:43:05,930 pytak INFO - Run: <class 'pytak.classes.RXWorker'>
2023-06-28 09:43:05,930 pytak INFO - Running <class 'adsbcot.classes.ADSBWorker'>
2023-06-28 09:43:05,930 pytak INFO - Complete: <Task finished name='Task-4' coro=<ADSBWorker.run() done, defined at /usr/local/lib/python3.11/site-packages/adsbcot/classes.py:146> exception=FileNotFoundError(2, 'No such file or directory')>
Task exception was never retrieved
future: <Task finished name='Task-4' coro=<ADSBWorker.run() done, defined at /usr/local/lib/python3.11/site-packages/adsbcot/classes.py:146> exception=FileNotFoundError(2, 'No such file or directory')>
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/adsbcot/classes.py", line 189, in run
inotify.add_watch(
File "/usr/local/lib/python3.11/site-packages/asyncinotify/init.py", line 450, in add_watch
raise e
File "/usr/local/lib/python3.11/site-packages/asyncinotify/init.py", line 447, in add_watch
wd = _ffi.libc.inotify_add_watch(self.fd, bytepath, mask)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/asyncinotify/_ffi.py", line 24, in check_return
raise OSError(errno, os.strerror(errno))
FileNotFoundError: [Errno 2] No such file or directory: PosixPath('/run/dump1090-fa')
I guess in this case it just uses defaults? Not any config parameters?

Hey @taksalo. The default behavior is to read decoded ADS-B data from the filesystem at /run/dump1090-fa/aircraft.json. See: https://adsbcot.readthedocs.io/en/latest/config.html
To change this location, or to use another method to read the ADS-B data, you'll need to set the FEED_URL parameter, see: https://adsbcot.readthedocs.io/en/latest/config.html#example-configurations

Ok thank you very much for the help so far.
I'm running dump1090 on the same server and tried
[adsbcot]
COT_URL = udp://<IP_ADDRESS>:6969
FEED_URL = http://<IP_ADDRESS>:30002
Seems to be working better, output is now
[root@localhost ~]# adsbcot -c /etc/adsbcot.ini
2023-06-30 10:11:44,650 pytak INFO - CoT_URL Dest: udp://<IP_ADDRESS>:6969
2023-06-30 10:11:44,650 pytak INFO - Run: <class 'pytak.classes.CLITool'>
2023-06-30 10:11:44,651 pytak INFO - Run: <class 'pytak.classes.TXWorker'>
2023-06-30 10:11:44,651 pytak INFO - Running <class 'adsbcot.classes.ADSBWorker'>
2023-06-30 10:11:44,651 pytak INFO - <class 'adsbcot.classes.ADSBWorker'> polling every 3s: http://<IP_ADDRESS>:30002
2023-06-30 10:11:44,652 pytak INFO - Run: <class 'pytak.classes.RXWorker'>
I will try to get the TAK server to view the CoT messages. Havent got so far yet.
//taksalo

Ok, I think you might be confused about the FEED_URL parameter. Currently you're using http://<IP_ADDRESS>:30002, however, the 30002 port should use a URL like: tcp+raw://<IP_ADDRESS>:30002 or tcp+beast://<IP_ADDRESS>:30002.

Ok, thanks again.
Since I didnt install with raw or beast support I will try using:
FEED_URL = http://localhost:8080/data/aircraft.json
or the json file if i can locate it.


Reduce error handling verbosity in CI tests scripts

This PR adds a less verbose trap method, for error handling to help ensure that we capture all potential error codes in our test scripts, and works as follows:

setting an environment variable, EXITCODE, with a default value of 0
setting a trap statement triggered by ERR signals which will set EXITCODE=1 when any commands return a non-zero exit code

cc @ajschmidt8

/merge


Refer to 5.3 docs for windows migration

As noted in https://github.com/openmicroscopy/ome-documentation/pull/1783#issuecomment-333086345 I started updating this page to point to the 5.3 docs and realized people would likely get hopelessly lost swapping between versions so it would be easier just to refer to all the content on 5.3 instead. I haven't deleted the page though so no redirect needed.

https://ci.openmicroscopy.org/view/Docs/job/OMERO-DEV-merge-docs/860/ updated to include this PR


Make cowboy compatible with ranch 2

This PR makes cowboy compatible with ranch 2, while it can still be used with ranch 1.

I think you might also need to update the dep in the Makefile and/or the rebar.config.

We are not moving Cowboy to Ranch 2.0 until Cowboy 3.0 is released.

Merged, thanks!


Setup mergify

Codecov Report

Merging #86 into master will decrease coverage by 1.97%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master      #86      +/-   ##
==========================================
- Coverage   92.97%   90.99%   -1.98%
==========================================
  Files          19       19
  Lines         313      311       -2
==========================================
- Hits          291      283       -8
- Misses         22       28       +6

Impacted Files
Coverage Δ

src/zygote.jl
0% <0%> (-100%)
:arrow_down:

src/NoBang/linearalgebra.jl
50% <0%> (-50%)
:arrow_down:

src/BangBang.jl
66.66% <0%> (-33.34%)
:arrow_down:

src/linearalgebra.jl
57.89% <0%> (-15.79%)
:arrow_down:

Continue to review full report at Codecov.

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


Mail settings in config/mail.php and .env ignored

Laravel Version: 7.8.1
PHP Version: 7.2.19
Database Driver & Version:

Description:
I have TestMail class like below on local server and it is not working.
All adjusted just like in official documentation here https://laravel.com/docs/master/mail
Maildriver is Mailgun.
Steps To Reproduce:
in controller
	public function TestMailSend(TestMailRequest $request) {

        Mail::to( env('MAIL_TO_ADDRESS') )->send(new TestMail());
		return [
			'message' => 'Success!',
			'alertclass' => 'success',
				];
	}

app/Mail/TestMail.php
use Illuminate\Http\Request;
use App\Http\Requests\FreeZamerRequest;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;

class TestMail extends Mailable
{
    use Queueable, SerializesModels;

    public $subject = 'Test mail subject';

    public function __construct()
    {

    }

    public function build(FreeZamerRequest $request)
    {
        $this->view('mail.test')->withRequest($request);
    }
}

config/mail.php
    'from' => [
        'address' => env('MAIL_FROM_ADDRESS', 'noreply@myhost.ru'),
        'name' => env('MAIL_FROM_NAME', 'FromUsername'),
    ],
    'reply_to' => [
        'address' => env('MAIL_REPLY_TO_ADDRESS', 'reply@myhost.ru'),
        'name' => env('MAIL_REPLY_TO_NAME', 'ReplyUsername')
    ],

.env
MAIL_DRIVER=mailgun
<EMAIL_ADDRESS>MAIL_FROM_NAME="${APP_NAME}"
<EMAIL_ADDRESS><EMAIL_ADDRESS>MAIL_REPLY_TO_NAME=ReplyUsername

After click on sendmail button on the page I see success message
In chrome devtools on Network tab I see status 200 OK
In Laravel Debugbar I see new mail and FROM field is empty!!!
Message-ID<EMAIL_ADDRESS>Date: Tue, 28 Apr 2020 22:54:33 +0300
Subject: =?utf-8?Q?=D0=97=D0=B0=D1=8F=D0=B2=D0=BA=D0=B0_=D0=BD?=
 =?utf-8?Q?=D0=B0_=D0=B1=D0=B5=D1=81=D0=BF=D0=BB=D0=B0?=
 =?utf-8?Q?=D1=82=D0=BD=D1=8B=D0=B9_=D0=B7=D0=B0=D0=BC=D0=B5=D1=80?=
From:
Reply-To: =?utf-8?Q?=D0=98=D0=BB=D1=8C=D1=8F?=<EMAIL_ADDRESS>To<EMAIL_ADDRESS>MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Then I go to<EMAIL_ADDRESS>mailbox and I don't see this mail.
Then I go to mailgun account and see this mail Bounced.
Tech support in Mailgun said that it is Bounced, because FROM field is empty.
Then if I change code like that I have mail delivered
    public function build(Request $request)
    {
        $this->from('noreply@myhost.ru')->view('mail.freezamer')->withRequest($request);
    }

Why default FROM settings in config/mail.php and .env ignored?

You shouldn't be using the env function outside of configuration files. You shouldn't be using it in your controller.

In Laravel 6 this code worked

Env value MAIL_FROM_ADDRESS return null whereas MAIL_REPLY_TO_ADDRESS return its value.
Why?

env variables can only be trusted in config files. Some may work some may not. It's documented in Laravel docs and the package docs.

Laravel 7 renamed MAIL_DRIVER to MAIL_MAILER. This change should be backwards compatible, but I've had some trouble with it myself too.
Could you try renaming MAIL_DRIVER to MAIL_MAILER and see if that helps?

OK. No env outside config files. I changed like that.
controller
Mail::to( config('mail.to.address') )->send(new TestMail());

app/Mail/TestMail.php
$this->view('mail.test')->withRequest($request);

config/mail.php
    'from' => [
        'address' => env('MAIL_FROM_ADDRESS'),
        'name' => env('APP_NAME'),
    ],
    'to' => [
        'address' => env('MAIL_TO_ADDRESS'),
        'name' => env('toName'),
    ],
    'reply_to' => [
        'address' => env('MAIL_REPLY_TO_ADDRESS'),
        'name' => env('APP_NAME')
    ],

And anyway I see empty from field in laravel debugbar after this mail sent and mail is not delivered
From:
Reply-To: =?utf-8?Q?=D0=98=D0=BB=D1=8C=D1=8F?=<EMAIL_ADDRESS>To<EMAIL_ADDRESS>

This is working fine for me. I can't recreate. If you find a bug feel free to PR a fix.

@schel4ok I had the same problem today, run php artisan config:cache and it'll works!

I'm facing a similar issue with Laravel 7.x locally, using a new installation.
config/mail.php
'from' => [
    'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
    'name' => env('MAIL_FROM_NAME', 'Example'),
],

.env
The rest of the MAIL_* variables are correctly set with working credentials.
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME="${APP_NAME}"

When I send an email without specifying the from address:
Mail::to($user)->send(new DummyEmail());

then I get the following exception:
Swift_TransportException Cannot send message without a sender address
vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:195 Swift_Transport_AbstractSmtpTransport::send
vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mailer.php:71 Swift_Mailer::send
vendor/laravel/framework/src/Illuminate/Mail/Mailer.php:521 Illuminate\Mail\Mailer::sendSwiftMessage
vendor/laravel/framework/src/Illuminate/Mail/Mailer.php:288 Illuminate\Mail\Mailer::send
vendor/laravel/framework/src/Illuminate/Mail/Mailable.php:170 Illuminate\Mail\Mailable::Illuminate\Mail\{closure}
vendor/laravel/framework/src/Illuminate/Support/Traits/Localizable.php:19 Illuminate\Mail\Mailable::withLocale
vendor/laravel/framework/src/Illuminate/Mail/Mailable.php:171 Illuminate\Mail\Mailable::send
vendor/laravel/framework/src/Illuminate/Mail/Mailer.php:304 Illuminate\Mail\Mailer::sendMailable
vendor/laravel/framework/src/Illuminate/Mail/Mailer.php:258 Illuminate\Mail\Mailer::send
vendor/laravel/framework/src/Illuminate/Mail/PendingMail.php:122 Illuminate\Mail\PendingMail::send
...

I did some investigation and I found that the mail.from.address config value is null, because the MAIL_FROM_ADDRESS in the .env is set to null.
If I remove the null, i.e. MAIL_FROM_ADDRESS= then the config value is an empty string, which also throws the same exception.
If I remove the MAIL_FROM_ADDRESS from the .env, then the config value is<EMAIL_ADDRESS>which doesn't throw an exception.
So it seems that the env() helper is picking up the $default value only if the env variable is not set at all.
The solution for this would be to remove the default value from the config/mail.php and add it to .env.example.
'from' => [
    'address' => env('MAIL_FROM_ADDRESS'),
    'name' => env('MAIL_FROM_NAME', 'Example'),
],

<EMAIL_ADDRESS>MAIL_FROM_NAME="${APP_NAME}"

@taylorotwell Should I submit a PR for this in the develop branch of the laravel/laravel repository? I think that should be fixed in the next major version.

* Laravel Version: 7.8.1

* PHP Version: 7.2.19

* Database Driver & Version:

Description:
I have TestMail class like below on local server and it is not working.
All adjusted just like in official documentation here https://laravel.com/docs/master/mail
Maildriver is Mailgun.
Steps To Reproduce:
in controller
	public function TestMailSend(TestMailRequest $request) {

        Mail::to( env('MAIL_TO_ADDRESS') )->send(new TestMail());
		return [
			'message' => 'Success!',
			'alertclass' => 'success',
				];
	}

app/Mail/TestMail.php
use Illuminate\Http\Request;
use App\Http\Requests\FreeZamerRequest;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;

class TestMail extends Mailable
{
    use Queueable, SerializesModels;

    public $subject = 'Test mail subject';

    public function __construct()
    {

    }

    public function build(FreeZamerRequest $request)
    {
        $this->view('mail.test')->withRequest($request);
    }
}

config/mail.php
    'from' => [
        'address' => env('MAIL_FROM_ADDRESS', 'noreply@myhost.ru'),
        'name' => env('MAIL_FROM_NAME', 'FromUsername'),
    ],
    'reply_to' => [
        'address' => env('MAIL_REPLY_TO_ADDRESS', 'reply@myhost.ru'),
        'name' => env('MAIL_REPLY_TO_NAME', 'ReplyUsername')
    ],

.env
MAIL_DRIVER=mailgun
<EMAIL_ADDRESS>MAIL_FROM_NAME="${APP_NAME}"
<EMAIL_ADDRESS><EMAIL_ADDRESS>MAIL_REPLY_TO_NAME=ReplyUsername

After click on sendmail button on the page I see success message
In chrome devtools on Network tab I see status 200 OK
In Laravel Debugbar I see new mail and FROM field is empty!!!
Message-ID<EMAIL_ADDRESS>Date: Tue, 28 Apr 2020 22:54:33 +0300
Subject: =?utf-8?Q?=D0=97=D0=B0=D1=8F=D0=B2=D0=BA=D0=B0_=D0=BD?=
 =?utf-8?Q?=D0=B0_=D0=B1=D0=B5=D1=81=D0=BF=D0=BB=D0=B0?=
 =?utf-8?Q?=D1=82=D0=BD=D1=8B=D0=B9_=D0=B7=D0=B0=D0=BC=D0=B5=D1=80?=
From:
Reply-To: =?utf-8?Q?=D0=98=D0=BB=D1=8C=D1=8F?=<EMAIL_ADDRESS>To<EMAIL_ADDRESS>MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Then I go to<EMAIL_ADDRESS>mailbox and I don't see this mail.
Then I go to mailgun account and see this mail Bounced.
Tech support in Mailgun said that it is Bounced, because FROM field is empty.
Then if I change code like that I have mail delivered
    public function build(Request $request)
    {
        $this->from('noreply@myhost.ru')->view('mail.freezamer')->withRequest($request);
    }

Why default FROM settings in config/mail.php and .env ignored?

OK. No env outside config files. I changed like that.
controller
Mail::to( config('mail.to.address') )->send(new TestMail());

app/Mail/TestMail.php
$this->view('mail.test')->withRequest($request);

config/mail.php
    'from' => [
        'address' => env('MAIL_FROM_ADDRESS'),
        'name' => env('APP_NAME'),
    ],
    'to' => [
        'address' => env('MAIL_TO_ADDRESS'),
        'name' => env('toName'),
    ],
    'reply_to' => [
        'address' => env('MAIL_REPLY_TO_ADDRESS'),
        'name' => env('APP_NAME')
    ],

And anyway I see empty from field in laravel debugbar after this mail sent and mail is not delivered
From:
Reply-To: =?utf-8?Q?=D0=98=D0=BB=D1=8C=D1=8F?=<EMAIL_ADDRESS>To<EMAIL_ADDRESS>

Clearing cache, restart supervisor and nginx work for me.
php artisan cache:clear
sudo supervisorctl restart all
sudo nginx -s reload


Feature request: recursive processing of directories

Hi @wildlyinaccurate,
I have a feature request. It'd be nice if all folders in the root could be recursively processed.
Starting with:
| - config.ml
| - assets
  | - postA
    | - 1A.jpg
  | - 1.jpg

Currently yields:
| - _site
  | - assets
    | - postA
      | - 1A.jpg
    | - resized
      | - 1.jpg
    | - 1.jpg

I'd like it to yield:
| - _site
  | - assets
    | - postA
      | - 1A.jpg
    | - resized
      | - postA
        | - 1A.jpg
      | - 1.jpg
    | - 1.jpg

Thanks,
Greg

Hey Greg, thanks for the feature request -- that's a totally valid case that I hadn't even considered.
I'll get onto it ASAP.

This is possible since v0.14.0 with the new dirname value. For example you could set output_path_format to something like assets/resized/%{dirname}/%{filename}-%{width}x%{height}.%{extension}.


[QUESTION] AA chams

How hard would it be to add chams for the fake angles on legit aa?

100/10 from the way you're asking it.
But its like 2-3/10 if you have the knowledge.

@effex1337 bruh is this effex,ur xy0 repaste is op

@effex1337 do you have the knowledge?

https://youtu.be/2K8zN8b585o
See it for yourself.


cli update-htaccess creates new line at end of file

Running ./mp multiplane/update-htaccess creates new lines at the end of .htaccess after running it multiple times, which happens automatically when using composer update.
Solution 1: remove empty line at EOF in .htaccess.dist
Solution 2 (cleaner): Don't use the whole dist file as replacement string, but only the text inside '/# BEGIN CpMultiplane.*# END CpMultiplane/s'

will be fixed after merging the permalink-update branch


Problem with Xml special characters

The XmlRecordReader escapes XML content when reading a valid XML document. If the payload of the XmlRecord is escaped, it becomes invalid, which leads to a RecordMappingException when trying to map the XmlRecord to a domain object. Here is an example:
<website name="google" url="http://www.google.com?query=test&sort=asc"/>

The XmlRecordReader returns the following as payload:
<website name="google" url="http://www.google.com?query=test&sort=asc"/>

This is actually invalid XML content! So the reader should keep characters unescaped in order to the XmlRecordMapper correctly map the records to domain objects.

I am having this problem with current release 5.0.0 in which it happens as described in issue, however what is changed is that the text containing the & tag is the char data instead of an attribute.
A sample would be like this:
<website name="google">http://www.google.com?query=test&sort=asc</website>
I tested and same code I have can handle the & as attribute but not as char data.

Hi,
Thank you for reporting this.
I'll see if the fix can be applied to char data too.
Will keep you informed when the fix is published.
You are welcome to contribute a fix if you want!
Kind regards
Mahmoud

Hi @lsoltero35
Thank you for reporting this issue. I do confirm, the xml reader alters the payload by escaping special characters in the tag's body. I've created a new issue for this issue ( see #277 ) and fixed the problem.
The fix will be included in the upcoming release.
Stay tuned!
Kind regards
Mahmoud

Thank you, I will check it there and let you know.


Allow running istio-cni as unprivileged

Describe the feature request
Today, the main istio-cni container runs as a Daemonset with privileged: true. This isn't great to have a privileged container running on every node; instead, we should do whatever privileged actions are necessary in a separate initcontainer (this is the approach kube-proxy takes: https://www.kubernetes.dev/blog/2024/01/05/kube-proxy-non-privileged/). Note that the repair controller currently requires privileged: true because it reads procfs; we should allow turning that off if we don't already. Users may have other options (e.g. a cloud provider process) for handling the race-conditions, so istio-cni should be able to turn off that functionality
Describe alternatives you've considered
Affected product area (please put an X in all that apply)
[ ] Ambient
[ ] Docs
[ ] Dual Stack
[ ] Installation
[X] Networking
[ ] Performance and Scalability
[ ] Extensions and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Affected features (please put an X in all that apply)
[ ] Multi Cluster
[ ] Virtual Machine
[ ] Multi Control Plane
Additional context

The repair controller can be disabled by setting values.cni.repair.enabled to false. https://istio.io/latest/docs/setup/additional-setup/cni/#race-condition--mitigation


Fixed an issue which prevents reporting the last found location when a location discovery fails due to timeout

If location discovery fails by timeout the handler doesn't receive the last available location. I see in the code that this happens because it doesn't satisfy accuracy constraint. But in error handler, it might be useful to provide the last discovered location.

Absolutely true, I've integrated your change in develop branch, ready for 3.3.0. Thank you for your help.


feature(logging): Add a get sink sample

Refs: #1863

Adding some people from the logging team to take a look first. cc @arbrown @daniel-sanche

Adding some people from the logging team to take a look first. cc @arbrown @daniel-sanche

Is there someone else who could review this, @enocom ?

Let me ping the reviewers again and see what we can do.

Thanks for the contribution @jhonatanlteodoro, but after checking with the product team and reviewing our contribution guidelines, I'm going to close this. We will happily accept bug fixes, but don't accept new samples (or unused region tags).
Sorry for the trouble.
https://github.com/GoogleCloudPlatform/golang-samples#contributing-changes


RuboCop clean-up

Fix two outstanding RuboCop offences and drop unnecessary disablings (RuboCop started flagging them in recent versions).

Thanks!


@conda-forge-admin, please add bot automerge

@conda-forge-admin, please add bot automerge

Hi! This is the friendly automated conda-forge-webservice.
I just wanted to let you know that I added bot automerge in conda-forge/types-pyopenssl-feedstock#6.


Added installation notes in the summary page

Summary of the pull request

Added installation notes in the summary page
Updated the summary page task group sections to be collapsable
Created installation notes window for when the text is too long (and trimmed)
Updated the computation for the secondary window to be centered and consistent on multi-monitor setup.

References and relevant issues
Detailed description of the pull request / Additional comments
Validation steps performed

PR checklist

[ ] Closes #xxx
[ ] Tests added/passed
[ ] Documentation updated

Is it possible for installation notes to support markdown so that the **s can be converted to bold text, possibly via a markdown text block?

@MattHyman as discussed offline, here's the github issue for tracking this request.

https://github.com/microsoft/devhome/issues/1535


running API /w query params

@jim-sheldon thanks, we already did some of this in a PR that was merged yesterday (exposing the REST API, etc.).


BadMessageLength from receiveRPC on closed Channel in Call

test/Call.hs demonstrates this failure

Closing; same as #11, wontfix as not applicable to this library.


Scrot not working in Snapcraft

When packaged with Snapcraft, Scrot doesn't seem to work, and I get the following:
[ERROR] getColor Error: Command failed: /snap/swach/x1/app/resources/app.asar.unpacked/node_modules/electron-color-picker/library/linux/linux-scrot/scrot /run/user/1000/snap.swach/temp-screenshot.png
giblib error: Saving to file /run/user/1000/snap.swach/temp-screenshot.png failed

    at ChildProcess.exithandler (child_process.js:308:12)
    at ChildProcess.emit (events.js:210:5)
    at maybeClose (internal/child_process.js:1021:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) {
  killed: false,
  code: 2,
  signal: null,
  cmd: '/snap/swach/x1/app/resources/app.asar.unpacked/node_modules/electron-color-picker/library/linux/linux-scrot/scrot /run/user/1000/snap.swach/temp-screenshot.png'

Any ideas what the problem might be?

I'm thinking we need to allow the scrot executable path to be configurable here https://github.com/mockingbot/electron-color-picker/blob/master/source/linux/linux-scrot/index.js#L7 then I think I could bundle my own version of scrot and pass the path. Thoughts?

Since snap is sort of a linux sandbox, my guess is scrot might not be allowed or cannot get the "desktop" screen buffer inside a snap environment.
And if it does work the resulting desktop screenshot may not include the full desktop, maybe sort of like getting the whole system df -h inside a docker container...
With MacOS and Ubuntu pushing more and more permission and sand-boxing, my bet is getting desktop screenshot correctly will get harder if not impossible.

Related snap issue: https://forum.snapcraft.io/t/cannot-publish-an-electron-app/17493/43

@ThatBean I wonder if we could use something else instead of scrot? I am unsure what this package is using, but they distribute on Snap https://github.com/stuartlangridge/ColourPicker

My guess is how they config the snap/snapcraft.yaml? (not tested snaps yet)
https://github.com/stuartlangridge/ColourPicker/blob/34e4f32400f991ac9cc47684af11a670a4533e33/snap/snapcraft.yaml#L38-L42
https://snapcraft.io/docs/interface-management
https://snapcraft.io/docs/dbus-interface

And about replacing scrot, I'm not C expert, but checking https://github.com/resurrecting-open-source-projects/scrot/blob/master/src/scrot.h#L34-L43, it seems scrot gets screenshot from X11 interface as a 27.3 KB binary.
So similar X11 screenshot binary may not work in snaps either?
Another option is to rewrite and use Electron desktopCapturer from the renderer process (browser window) to get a screenshot, this may save more bytes, but whether that will work under snaps is also unknown:

https://www.electronjs.org/docs/api/desktop-capturer
https://ourcodeworld.com/articles/read/280/creating-screenshots-of-your-app-or-the-screen-in-electron-framework

@ThatBean so you think we need to allow some kind of dbus connection? If you have something in mind, I am happy to try it to see if it works.
As for maybe switching to desktopCapturer, I think that could potentially be a good idea, but it may also be blocked in Snap. I am not sure.

Or maybe the x11 config: https://github.com/stuartlangridge/ColourPicker/blob/34e4f32400f991ac9cc47684af11a670a4533e33/snap/snapcraft.yaml#L46-L57
After skimming the doc, slot looks like a connector for interact with outside snap/program.
For testing maybe just put all permission-ish config in first, and test if scrot in snaps can output a desktop screenshot successfully. Then trim down the extra config.

@ThatBean the problem I ran into is the scrot binary is not executable. We need to whitelist it in some way.

If anyone else is hitting this, this is how we fixed it:
  "build": {
    "productName": "Swach",
    "linux": {
      "icon": "./resources/icon.png",
      "category": "Development",
      "description": "A robust color management tool for the modern age.",
      "synopsis": "A robust color management tool for the modern age.",
      "target": [
        "snap"
      ]
    },
    "snap": {
      "stagePackages": [
        "default",
        "giblib1",
        "libimlib2",
        "libx11-6",
        "libxcursor1",
        "libxfixes3",
        "scrot"
      ]
    }
  }


DOC: describe the SD_ENABLE_ASIO environment variable

This adds documentation for #556.

Rendered: https://python-sounddevice--558.org.readthedocs.build/en/558/installation.html#asio-support


feat: Implement Transcript abstraction for Poseidon

A full Fiat-Shamir transcript primitive is missing for native and corresponding circuit use cases. At the moment, we only have the RO trait which is essentially just a 1-round transcript.
We want the same interface as the existing ROTrait, but with the ability to perform multiple absorbs and squeezes to generate challenges over several rounds of incoming prover data.

Small challenges are useful for reducing the cost of a scalar multiplication performed in the circuit. The CycleFold circuit is designed to support any sized scalar and the performance is independent of this size. Therefore, we do not need to decompose the challenge from the transcript output which costs an additional ~254 constraints and variables.
A simple initial implementation could use the existing code for the RO trait. The transcript caches the previously squeezed challenge and prepends it to the next list of elements that are added to the transcript. In a more complex version, we would use neptune's IOPattern to define the exact sequence of absorbs and squeezes throughout the protocol.
It seems like we can remove the num_absorbs parameter from RO::new() since it is only used by the squeeze function when initializing the Poseidon state. We can instead compute this from the size of the state.

Very rough implementation exists here.
Missing:

Proper trait for into_field_iter()
Handling different Commitment over E and Dual<E>
Usage of SAFE API (deriving the fixed IO pattern could be tricky)
Better handle on Poseidon arity (currently fixed to 24)
Separate primary commitment hashing from constants


Code does not comply with 5.6.1 Service and Characteristic Types of the HAP spec

I would fix this, but am not sure how to. In practise, I don't think this breaks anything but it means that we are not compliant with the spec. Relevant extract from the public spec:
5.6.1 Service and Characteristic Types
When Apple-defined UUIDs are encoded as JSON strings, a short form must be used by including only the first 8 characters with leading zeros removed. When converting short form UUIDs back to full UUIDs, the process is reversed by prefixing the string with 0 or more '0' characters to expand it to 8 characters then "-0000-1000-8000-0026BB765291" is appended to form the full 36-character UUID.
For example, the public.hap.service.accessory-information full UUID is "0000003E-0000-1000-8000-0026BB765291". When encoded as a JSON string, the first 8 characters are "0000003E" and with leading zeros removed it becomes "3E". Converting back to a full UUID would prefix "3E" with six '0' characters to get "0000003E" then append "-0000-1000-8000-0026BB765291" to form a full UUID of "0000003E-0000-1000-8000-0026BB765291". Other examples:

Is probably to save bandwidth. As the uuids are reassembled on the other side there is probably no change in functionality when changing this.
It is nothing with top priority but we should definitely consider implementing this.
We should ensure though, that third party uuids are still supported by HAP-NodeJS.
Thanks for uncovering this.

Waiting for #747 to close.


RCTNetworkingNative.sendRequest in Android does not respect timeout value

Description
Used react-native-fetch-polyfill to fetch an API with timeout. The timeout works in iOS but does not work in Android.
Reproduction Steps and Sample Code
The fetch-demo repo has the sample code to reproduce the issue.
handleFetch() {
    this.setState({ loading: true });
    fetch('http://<IP_ADDRESS>:8085/app.json', { timeout: 5000 })
      .then(response => response.json())
      .then(json => {
        this.setState({ loading: false });
      })
      .catch(err => {
        this.setState({ loading: false });
      });
  }

Solution
RCTNetworkingNative.sendRequest in Android does not timeout for some reason.
Additional Information

React Native version: 0.44
Platform: Android
Development Operating System: macOS
Dev tools: VS Code

Hi there! This issue is being closed because {:search=>"repo:facebook/react-native is:open is:issue updated:<2017-05-25 -label:"Good First Task" -label:"Help Wanted" ", :message=>"it has been inactive for a while"}. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally!
If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:

Does the issue still reproduce on the latest release candidate? Post a comment with the version you tested.
If so, is there any information missing from the bug report? Post a comment with all the information required by the issue template.
Is there a pull request that addresses this issue? Post a comment with the PR number so we can follow up.

If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.

Please don't close this.
I am experiencing the exact same behavior: timeout set at 5000 and it actually timeouts over 2/3 minutes later:
import { Component } from 'react';

import { Props, State } from './../react-interfaces';

import fetchTimeout from 'react-native-fetch-polyfill';

export class MyService extends Component<Props, State>
{
    public getMy(): Promise<any>
    {
        return fetchTimeout('http://<IP_ADDRESS>:54388/ReactNativeTesting', {timeout: 5000 });
    }
}

This is reproducible both in the Android Emulator and on a Samsung Galaxy S6 with Android 7


Allow HF token also from an environment variable

As in the title
Contributor (creator of pull-request) checklist

[x] Tests updated (for new features and bugfixes)?
[x] Documentation updated (for new features)?
~Issue referenced (for PRs that solve an issue)?~

📚 Documentation preview 📚: https://metatrain--409.org.readthedocs.build/en/409/

@Luthaf @abmazitov we can rename to HF_TOKEN if you guys agree


html: add parse_html

This PR renames lona.html.parsing.html_string_to_node_list to lona.html.parse_html to make it official API that will replace HTML parsing in lona.html.HTML and lona.html.HTML2 (#268)

How does renaming make this an official API?
We probably want to add it to the documentation though :-)
Otherwise LGTM.

How does renaming make this an official API?

lona.html.parsing.html_string_to_node_list was never meant to be documented, because the name is so clunky. Giving it a cleaner name and putting it into the documentation makes it "official" :)

Codecov Report
Patch coverage: 80.00% and project coverage change: -0.03 :warning:

Comparison is base (d0b50b9) 71.30% compared to head (d2e6824) 71.27%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #436      +/-   ##
==========================================
- Coverage   71.30%   71.27%   -0.03%
==========================================
  Files          83       83
  Lines        5697     5699       +2
  Branches     1226     1227       +1
==========================================
  Hits         4062     4062
- Misses       1345     1346       +1
- Partials      290      291       +1

Impacted Files
Coverage Δ

lona/html/parsing.py
87.50% <71.42%> (-1.17%)
:arrow_down:

lona/html/__init__.py
100.00% <100.00%> (ø)

lona/html/widgets.py
62.50% <100.00%> (ø)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

@SmithChart: I updated the documentation and all tests are green. I think in this state this is mergeable and closes #268

@SmithChart: \o/ Thanks for your review and your patience


'Rename' object not iterable

I am unable to successfully use the nco.ncrename command using pynco 1.0 with nco 4.8.2 on Linux. The error is:
File "/home/arcgis/arcgis/miniconda3/envs/arcpython/lib/python3.6/site-packages/nco/nco.py", line 210, in get cmd.extend(option)
TypeError: 'Rename' object is not iterable

Here is the code I am using:
        for name in ['dimension', 'variable']:
            rDict = param['names'][name]
            nco.ncrename(input=nc_file, options=[Rename(name, rDict)])

Am I doing something wrong or is there a bug? I have no problems renaming when using nco directly from the terminal.
Thanks!

I have also been having this same issue for quite some time. I run into a similar problem when using Rename

I had some trouble too, but found that this worked for me on both nco 4.5.3 and 4.6.2:
from nco import Nco
from nco.custom import Rename
nco = Nco()
rename_dict = dict({'old_name':'new_name'})
nco.ncrename(
    input="in.nc",
    output="out.nc",
    options=[Rename("v",rename_dict).prn_option()]
)

@HarshulShuk
@seaspatial
HI Guys,
am aware of this problem and have patch that fixes this so that teher is no need to add the method "prn_option()" to the "Rename" onject
...Henry

Hi @hmb1 ,
do you have this patch available? or is it still work in progress?

@ferrighi
I made a pull request back in january
Waiting on @jhamman to review it

I just installed pynco via anaconda and had the same problem, so chuaxr's solution was helpful.

Hi,
Just to note, I was having the same issue with Limit for ncks, and solved it with the same solution, as in (with dimension "year"):
nco.ncks(input="in.nc", output="out.nc", options=[Limit("year", 0, 1).prn_option()])
so thanks for the tip.

@hmb1 multiple people have shown this issue (that your January 2020 patch was supposed to have fixed) still exists. It affects at least ncks and ncrename (and possibly other) operators. This is unfinished business. Please submit a new patch that resolves this issue. Thanks!

Weirdly, it seems this is fixed for version 1.0.0 on macOS, but not on linux. I think there was a mistake when preparing the 1.0.0 release? This is the output of pip show nco on both systems:
Name: nco
Version: 1.0.0
Summary: python bindings to NCO
Home-page: https://github.com/nco/pynco
Author: Joe Hamman
Author-email<EMAIL_ADDRESS>
A workaround would be to install from the git repository using pip install git+https://github.com/nco/pynco.git.

Version 1.1.0 has been released which fixes this issue

@mx-moth thanks, where is this available? Right now the release on github is still marked at 1.0.0, and I don't see anything earlier in pip/conda.

For some reason the conda-forge automated release had not succeeded. I fixed that. 1.1.0 has been released on conda-forge now (link).
1.1.0 has also been published on PyPI, but under the nco name (link). The pynco name on PyPI has not been updated since 2015. I will make an issue to sort out the nco/pynco confusion on PyPI


Add exoplayer to media interface

Add exoplayer to media interface. Add set context method in class JZUtils and JZVideoPlayerStandard

Great
JZVideoPlayerManager.getCurrentJzvd().getContext() to get Context, and remove Util.getContext.
then I will merge the pr,
Do you want btc xrp ht, I want give you some.

Sorry, but what does btc xrp ht mean ?

Bitcoin  Ripple

I will fix it

i'm glad to get it ! :D

Give me a address.

@lipangit - My address is : rDu5Tv7cDKh5kmr6NjnxKmyezweCT3gzU4

bitcoin or xrp  whitch coin

My address is XRP coin

Trader, patiently wait for the deal

My xrp are in aex.com but can not withdrawal in that website.

give you 100 xrp Just wait

Sorry i'm new bie of xrp, and this address "rDu5Tv7cDKh5kmr6NjnxKmyezweCT3gzU4" need 20xrp to use it. So i create a new host address, can you stop old address and trade to new my address: 366377532

Sorry for this inconvenience !

XRP提现必须填写Destination Tag备注信息，请放在收款地址后面，空格隔开，格式： Address 备注
what is this mean , destination tag is what

This is my tag:<PHONE_NUMBER>

https://xrpcharts.ripple.com/#/graph/rDu5Tv7cDKh5kmr6NjnxKmyezweCT3gzU4<PHONE_NUMBER>

https://xrpcharts.ripple.com/#/transactions/F37B60BA61F7A1F574C6CDC7496F63CF4CC083BAD77DEA085621F24D26005376

good night

Thanks a lot! I received it

Does we have now support to Exoplayer? \o/

yes @felipetorres

你好，咱们项目推出数字通证饺子token，https://github.com/lipangit/JZT， 给所有提交过pr的朋友30000个JZT，表示对你过去对项目支持的感谢。
请下载币威钱包https://www.bitcv.app/，把里面的以太坊地址给我，币威的地址站内转账不需要手续费。这东西值不值钱不重要，玩的是信仰。
Hello, let's launch the JiaoZiToken, https://github.com/lipangit/JZT, and give all the friends who submitted pr 30,000 JZT, thank you for your support of the project.
Please download the coin wallet https://www.bitcv.app/?from=bitcvCom and give me the address of the Ethereum. There is no charge for transferring money at the address station. It is not important that the value of this thing is worthless. It is faith.


About CLIP-based adapter

HI, I am trying to reproduce the CLIP with adapter for action recognition. But I met an issue ' Variable._execution_engine.run_backward(  # Calls into the C++ engine to run the backward pass
RuntimeError: Expected is_sm80 to be true, but got false.  (Could this error message be improved?  If so, please report an enhancement request to PyTorch.)' . Could I know about whether you also met this before?

Hi, I didn't have this issue. What is your environment?


Prototype update import paths on file rename/move for JS/TS

#19439
Adds a prototype that updates import paths when you rename or move a js/ts file. This is accomplished by introducing a new proposed VS Code API for understanding when a resource has been renamed or rename (we don't try detecting renames/moves that happen outside of vscode). The new proposed API is rough and needs more thought, see #43768
TODO:

[X] Remove setTimeout and replace with proper handler for when TS opens file.
[X] Add prompt to update paths on rename? Only should fire if there are changes
[X] Add setting to always update paths on rename (if we add a prompt)

@jrieken and @alexandrudima I'm merging this prototype with the understanding that the proposed VS Code api component is not complete. I'd like to schedule getting a proper rename file handler API for next iteration


Works in Progress

Just letting people know that there is a public list of things we are working on to check before posting issues:  http://audiokit.io/wip/

There's also now a "project" on Github called "Works in Progress" that also lists the same tasks.


In chart Maximize mode we are not able to see an error description

Expected results
Popup is displayed in maximize mode
Actual results
Popup is displayed in the background
Screenshots

How to reproduce the bug
Go to http://localhost:9000/superset/dashboard/tabbed_dash/#
Click on Tab menu
Choose maximize for chart which met unexpected error
In full screen mode tap on See more
Environment
I run configuration SUPERSET_CONFIG=tests.superset_test_config
I run FLASK_ENV=development superset run -p 8088 --with-threads --reload --debugger
Then npm run dev-server

superset version: latest master
python version: 3.7.7
node.js version: 11.0

Checklist
Make sure to follow these steps before submitting your issue - thank you!

[ ] I have checked the superset logs for python stacktraces and included it here as text if there are any.
[ x] I have reproduced the issue with at least the latest released version of superset.
[x ] I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context
Add any other context about the problem here.

I think it might be related to popups refactor. Can you assign me?

it's in trello assigned to @kgabryje. thank you both for making my life easier 🙏


Concurrent system updates added

Added concurrent execution for updates to system entities.  Initial performance tuning done to maximize the effect of concurrency, initially coded to maintain serial execution below 20 entities per system.
Tuning should be continued upon each entity update.

Thanks for the contribution! I'll be reviewing this in a few hours. :heart:

LGTM.

Thanks for the contribution!


What do you mean "Version 3.0.6-alpha fixes the problem"?

 Are you talking about NuGet or what? Sorry but pls explain more.
Version 3.0.6-alpha fixes the problem
Originally posted by @bernhardpetautschnig in https://github.com/AlturosDestinations/Alturos.Yolo/issues/111#issuecomment-604435569

Solved it!

Hi,
Do you mind explaining how you did solve it? I don't quite understand Version 3.0.6-alpha fixes the problem either...
Thank you.

solved #119


FW-887 fix compile issues and update openmote-b, openmote_cc2538  oos…

fix compile issues and update openmote-b, openmote_cc2538  oos_openwsn project for IAR toolchain
Conflicts:
openweb/opencoap/oscore.c

@changtengfei and @TimothyClaeys
hey guys this relates to the issue I posted some days ago: https://openwsn.atlassian.net/jira/software/c/projects/FW/issues/FW-887
it fixes additional warnings and errors for IAR compiler, these changes do not interfere with the scons build script, they still produce the same output as before
BR Chris

It seems that something with fragmentation fails for python which I haven't touched hope thats something you can have a look at and it does not block the PR

@chris-ho Thank you for the PR. I'll have a look at why it fails during the Travis build.

@TimothyClaeys thank you I found an indicator for it and updated the PR

as side note on windows latest develop branch can not be compiled for python, which has maybe the same root cause as for IAR that some o those socket related code is not correctly suppported. I'm using gcc version 6.3.0 (MinGW.org GCC-6.3.0-1)
scons board=python toolchain=gcc oos_openwsn
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
Objectifying       build\python_gcc\openapps\c6t\c6t.h -> c6t_obj.h
Objectifying       build\python_gcc\openapps\cexample\cexample.h -> cexample_obj.h
Objectifying       build\python_gcc\openapps\cinfo\cinfo.h -> cinfo_obj.h
Objectifying       build\python_gcc\openapps\cjoin\cjoin.h -> cjoin_obj.h
Objectifying       build\python_gcc\openapps\cled\cled.h -> cled_obj.h
Objectifying       build\python_gcc\openweb\opencoap\coap.h -> coap_obj.h
Objectifying       build\python_gcc\openapps\cstorm\cstorm.h -> cstorm_obj.h
Objectifying       build\python_gcc\openapps\cwellknown\cwellknown.h -> cwellknown_obj.h
Objectifying       build\python_gcc\openstack\03a-IPHC\frag.h -> frag_obj.h
Objectifying       build\python_gcc\openweb\opencoap\oscore.h -> oscore_obj.h
Objectifying       build\python_gcc\openapps\rrt\rrt.h -> rrt_obj.h
Objectifying       build\python_gcc\openstack\04-TRAN\async.h -> async_obj.h
Objectifying       build\python_gcc\openstack\04-TRAN\sock.h -> sock_obj.h
Objectifying       build\python_gcc\openstack\04-TRAN\sock_types.h -> sock_types_obj.h
Compiling (shared) build\python_gcc\projects\common\03oos_openwsn\03oos_openwsn_obj.o
Compiling (shared) build\python_gcc\projects\common\03oos_openwsn\openwsnmodule_obj.o
build\python_gcc\projects\common\03oos_openwsn\openwsnmodule_obj.c: In function 'initoos_openwsn':
build\python_gcc\projects\common\03oos_openwsn\openwsnmodule_obj.c:404:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
Py_INCREF(&openwsn_OpenMoteType);
^~~~~~~~~
Objectifying       build\python_gcc\openstack\openstack.c -> openstack_obj.c
Compiling          build\python_gcc\openstack\openstack_obj.o
Compiling          build\python_gcc\openstack\02a-MAClow\topology_obj.o
Compiling          build\python_gcc\openstack\02a-MAClow\IEEE802154_obj.o
Compiling          build\python_gcc\openstack\02a-MAClow\IEEE802154E_obj.o
Compiling          build\python_gcc\openstack\02a-MAClow\adaptive_sync_obj.o
Compiling          build\python_gcc\openstack\02a-MAClow\IEEE802154_security_obj.o
Compiling          build\python_gcc\openstack\02b-MAChigh\neighbors_obj.o
Compiling          build\python_gcc\openstack\02b-MAChigh\msf_obj.o
Compiling          build\python_gcc\openstack\02b-MAChigh\schedule_obj.o
Objectifying       build\python_gcc\openstack\02b-MAChigh\sixtop.c -> sixtop_obj.c
Compiling          build\python_gcc\openstack\02b-MAChigh\sixtop_obj.o
Objectifying       build\python_gcc\openstack\03a-IPHC\frag.c -> frag_obj.c
Compiling          build\python_gcc\openstack\03a-IPHC\frag_obj.o
Objectifying       build\python_gcc\openstack\03a-IPHC\iphc.c -> iphc_obj.c
Compiling          build\python_gcc\openstack\03a-IPHC\iphc_obj.o
Compiling          build\python_gcc\openstack\03a-IPHC\openbridge_obj.o
Compiling          build\python_gcc\openstack\03b-IPv6\forwarding_obj.o
Compiling          build\python_gcc\openstack\03b-IPv6\icmpv6_obj.o
Compiling          build\python_gcc\openstack\03b-IPv6\icmpv6echo_obj.o
Compiling          build\python_gcc\openstack\03b-IPv6\icmpv6rpl_obj.o
Compiling          build\python_gcc\openstack\04-TRAN\udp_obj.o
Objectifying       build\python_gcc\openstack\04-TRAN\sock.c -> sock_obj.c
Compiling          build\python_gcc\openstack\04-TRAN\sock_obj.o
build\python_gcc\openstack\04-TRAN\sock_obj.c: In function 'sock_udp_create':
build\python_gcc\openstack\04-TRAN\sock_obj.c:52:25: error: 'EADDRINUSE' undeclared (first use in this function)
return -EADDRINUSE;
^~~~~~~~~~
build\python_gcc\openstack\04-TRAN\sock_obj.c:52:25: note: each undeclared identifier is reported only once for each function it appears in
build\python_gcc\openstack\04-TRAN\sock_obj.c:65:21: error: 'EAFNOSUPPORT' undeclared (first use in this function)
return -EAFNOSUPPORT;
^~~~~~~~~~~~
build\python_gcc\openstack\04-TRAN\sock_obj.c: In function 'sock_udp_send':
build\python_gcc\openstack\04-TRAN\sock_obj.c:105:21: error: 'EAFNOSUPPORT' undeclared (first use in this function)
return -EAFNOSUPPORT;
^~~~~~~~~~~~
build\python_gcc\openstack\04-TRAN\sock_obj.c:142:17: error: 'ENOBUFS' undeclared (first use in this function)
return -ENOBUFS;
^~~~~~~
build\python_gcc\openstack\04-TRAN\sock_obj.c: In function 'sock_udp_get_local':
build\python_gcc\openstack\04-TRAN\sock_obj.c:183:17: error: 'EADDRINUSE' undeclared (first use in this function)
return -EADDRINUSE;
^~~~~~~~~~
build\python_gcc\openstack\04-TRAN\sock_obj.c: In function 'sock_udp_get_remote':
build\python_gcc\openstack\04-TRAN\sock_obj.c:193:17: error: 'ENOTCONN' undeclared (first use in this function)
return -ENOTCONN;
^~~~~~~~
scons: *** [build\python_gcc\openstack\04-TRAN\sock_obj.o] Error 1
scons: building terminated because of errors.

@TimothyClaeys everything is solved now, windows works as well


Update all the README files

Update the README files to describe using the public versions of the demos.

PTAL (rebased).

LGTM


Data Pipeline

To ease the process of generating synthetic data for use in training.

Pipeline is up. Need to work on some improvement train-test and train-validation.

Completed Pipeline on https://github.com/joelowj/NeuralTest/commit/1e37de7a29877afef07daebaa2536657a1f55a8d


windows_ddev_nfs_setup.sh issue with spaces in path name

Describe the bug
If the Windows username has a space in it, the nfsd service will not be able to start due to the pathFile argument not being escaped properly.
To Reproduce
Steps to reproduce the behavior:

Run windows_ddev_nfs_setup.sh
You get the error "nfsd: Unexpected status SERVICE_PAUSED in response to START control".

Expected behavior
The nfsd service should start without issues.
Screenshots
If applicable, add screenshots to help explain your problem.
Version and configuration information (please complete the following information):

Host computer OS and Version: Windows 10
Docker version 2.0.2
ddev version 1.6.0

@kristoftorfs could you please test the script at https://raw.githubusercontent.com/drud/ddev/57f1dc61d2c0bd865e5f02335f534946f5d9dfd0/scripts/windows_ddev_nfs_setup.sh, in #1453 ?
Thanks for the report!

The actual issue is in this line:
sudo nssm install nfsd "${winnfsd}" -id ${DDEV_WINDOWS_UID} ${DDEV_WINDOWS_GID} -log off -pathFile "$HOME/.ddev/nfs_exports.txt"

I managed to solve this with
winpty sudo nssm install nfsd "${winnfsd}" -id ${DDEV_WINDOWS_UID} ${DDEV_WINDOWS_GID} -log off -pathFile "\"$HOME/.ddev/nfs_exports.txt\""

Hmm, in testing I had line 43 failing; However it looks like you're testing in a git-bash window, and I was testing in a cmder window. Did you really need winpty?

In git bash without winpty the path would be converted to /c/Users/Kristof Torfs/.ddev/nfs_exports.txt as soon as I added quotes. Perhaps another possibility (instead of writing console-specific code) is adding a note to the documentation informing the user that he would need to edit the service and add the quotes manually in cases like this.

@kristoftorfs thanks so much for hanging in there on this. It's way too painful! I have another version out there that should work in most git-for-windows environments. Please test https://github.com/drud/ddev/blob/e0fdc174813b2c5e0ef5aa8267ef6a9a022ce547/scripts/windows_ddev_nfs_setup.sh raw
Reporting results in #1453 would be slightly easier for me, but whatever is easiest for you. Thanks so much!


feat(macros): add repository macros

- What I did
- How I did it
- How to verify it
- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Hey @Narayanbhat166 how do you feel about this Pull request ? isn't it better to use generic function instead of macro ?
Like you did for the creation of the Metrics, could you help us achieving this please ?


tgkill issues...

The error appears to be in the line below, any help welcome on this one!
its a tgkill crash with this line towards the bottom it doesnt happen on every device,
Currently happening on - Galaxy Note 5, Galaxy 8+
libjniPdfium.so (Java_com_shockwave_pdfium_PdfiumCore_nativeGetPageSizeByIndex+156

@barteksc are you able to assist with my issue of tgkill fatal crashing, i have seen other posts in the past which had a similar issue but not with 156 on the end of the error, which you closed as fixed.
What does the 156 imply ?
If you have not fixed this issue could you point me the right direction to resolve this issue so i am working on the correct code, its difficult to fix something when i cant replicate the error?


Update healthcheck url

The url was moved to /api/server/* as of this release
https://github.com/immich-app/immich/releases/tag/v1.118.0

Thanks!


In-line edit form "dirty" detection is a little over-zealous

Affected Version
4.x
Description
Currently it appears even the act of focusing any field in an in-line edit form is enough to mark a page as "dirty". This is observable by the fact you get an "unsaved changes" pop-up when you browse away.
Steps to Reproduce

Add/edit a block on a page
Focus the title field (but don't change anything)
Attempt to browse away
Observe an "unsaved changes" warning

cc @sachajudd

Closed in #520


base16 themes are almost all the same

environment

vim: VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Feb 09 2021 23:51:55) Included patches: 1-2489
vim-airline: 07ab201a272
colorscheme: base16_ashes
OS: Arch linux
Have you reproduced with a minimal vimrc:

call plug#begin('~/.vim/plugged')
Plug 'vim-airline/vim-airline-themes'
Plug 'vim-airline/vim-airline'
call plug#end()

let g:airline_theme = 'base16_ashes'

What is your airline configuration: see above
if you are using terminal:
terminal: alacritty
$TERM variable: xterm-256color, screen-256color
color configuration (:set t_Co?): t_Co=256
if you are using Neovim:
does it happen in Vim: ???

actual behavior
After https://github.com/vim-airline/vim-airline-themes/commit/fa3911ebbdf80a88dcab7c948de33865c8b161ed most of the randomly checked base16* themes looks the same (the left part on the screenshot)
expected behavior
The right part of the screenshot, the commit https://github.com/vim-airline/vim-airline-themes/commit/fa808d74e0aacf131337b58f01ee45fd3d3588af
screen shot (if possible)

yeah, my gruvbox theme transformed into a black/white theme:
https://imgur.com/Anktlkc.png

There was a similar issue with https://github.com/vim-airline/vim-airline-themes/issues/250
It's worth pinging @ShiromMakkad to see how the color schemes were changed and how they were validated as correct or still working in https://github.com/vim-airline/vim-airline-themes/pull/244
If the code isn't easy to fix, then perhaps it's worth rolling the commit back and cherry-picking the ones that are still working as intended?

okay, we just may need to revert that PR #244

Please, I am begging you to do so ^_^

@Felixoid What happens if you set the following: let g:airline_theme = 'base16'? Does that match the colors you expect?

After update, the 'base16_gruvbox_dark_hard' theme is not working properly.
Seeing that the 'red' color looks like the 'original red', it seems that the color values aren't being reflected properly.
Sorry for not providing detailed information. : (

@justinpage hello. I am not sure what do you mean by "colors I expect". I don't use the scheme. But it looks definitely different compared to working commit

Can you, maybe, consider reverting #244 and make a proper update lately? The current state looks very wrong to me

Also would support reverting. My themes have gone from left to right since recent updates:

None of the base16 themes seem to change from this new washed out normal mode.
Possibly not the best place to ask, but what I've never understood is why all the different base16 themes are needed. Can't you just set the base16 scheme in your terminal app, and then vim outputs the same ANSI escape codes for every base16 colour scheme?
So all that would be required here is the different airline modes like [TmuxLine's airline, airline_insert, airline_visual themes(https://github.com/edkolev/tmuxline.vim)?


Failed to login

Afternoon,
Suspect FA changed login procedure again.
Script gets login failed when reconfiguring, and trying "get data" results in "Failed to perform the action button/press. 'NoneType' object is not subscriptable"

Thanks for reporting. Will check.

Ferroamp has updated the terms and conditions for using the portal. Please login using a web browser and approve the new agreement. After that, the integration will work again.

Made an v1.6.1 that detects the need of extra action from the user, and creates an error message in the HA logs.


make insecure-bind-address of apiserver template file configurable

SSIA

@redhat-k8s-bot test please

lgtm


Gender by Culture from Usability Study

[ ] Include a column in both Recent changes and All time tables showing percentage of females
[x] Remove the e+ mathematical notation on the Y-axis and replace them with wholes numbers
[ ] Fix bug: Instead of ten (10) cultures, the tables display only nine (9). In fact if you can just show top 10, without bottom 10 that would be fine.

For point 1, we can also plot the bar chart using percentage figures instead of using absolute numbers. What do you suggest?

@vivekiitkgp keep the absolute numbers in the graphs, and just include the % figure in the tables.


Add Boolean Operations on Meshes

What problem does this solve or what need does it fill?
Adding boolean operations should enable for an ergonomic foundation for constructive geometry
What solution would you like?
Meshes should have a function, similar in usage as merge(), like so:
base_mesh.intersection(operand_mesh);
base_mesh.union(operand_mesh);
base_mesh.subtraction(operand_mesh;
base_mesh.XOR(operand_mesh);

union or subtraction should consume operand_mesh modifyng base_mesh inplace.
intersection and XOR should consume both meshes to return an array or list of resulting meshes.

What alternative(s) have you considered?
Boolean operations are resource intesive and a solution that's not going to be closely integrated in the current mesh handling would degrade performance even further.
In addition having tried to do so by myself anyway it's a feature too big to tackle by myself at the moment.

I expect that this would be best tackled as a working group, but IMO this is desirable and within scope :)

I would be pleased to help with this  -- i really want to see this happen .
Here is a related talk I found.   I think we could make a crate for this named "bevy_csg' or something and its responsibility would be these meshing operations.   But also it could allow one to spawn an editable  object  in a bevy world  with tools to edit it .
https://www.youtube.com/watch?v=Iqmg4gblreo

I think the most simple naive implementation is to build a fn that can take a cuboid and subtract another cuboid.
Basically what you have to do is think in terms of faces.  You need to remove certain faces from the base mesh and add faces from the applying mesh.
The tricky part is you kind of need to do a loopcut tool operation on the base mesh by using the planes of the applying mesh.    Im sure having some intermediate data format (not just vertices and indices) will be extremely helpful here .
A first sample impl can be something like this

CSG is very nice, but it's not general mesh boolean ops
The idea with CSG is that you start with base objects that you know how to define mathematically

Yeah but that is closed source so entirely useless

union or subtraction should consume operand_mesh modifyng base_mesh inplace.

Just want to point out there is no need to consume the mesh, taking a reference is just as performant.

union or subtraction should consume operand_mesh modifyng base_mesh inplace.

Just want to point out there is no need to consume the mesh, taking a reference is just as performant.

No, it's not, because you'll end up doing a lot of cloning, assuming the mesh is first converted to some sort of spatial tree. Unless you mean a mutable reference, which is essentially the same thing, but much harder to manage in this case.

Yeah but that is closed source so entirely useless yes its confusing there are many terms so we need to work through that as well. In any case csg uses those operations

It can't hurt to have someone around who has been researching and working on this problem for a long time. But for the same reason, I'm not willing to just hand my work over, and it's unlikely anyone else would be able to contribute in any meaningful way without spending nearly as much time studying the underlying algorithms. I don't mind sharing references that I've used, and I track other algorithms and implementations.
I suggest using an existing robust implementation such as elalish's Manifold; he has spent a long time working on his implementation as well. Unless there is someone with the background and willing to do this kind of work.

I agree, I'd like to add to the resources InteractiveAndRobustMeshBooleans.
It's an university project in C++ with many caveats but the general step used seems to be straightforward, implementation on the other hand can be confusing.

union or subtraction should consume operand_mesh modifyng base_mesh inplace.

Just want to point out there is no need to consume the mesh, taking a reference is just as performant.

No, it's not, because you'll end up doing a lot of cloning, assuming the mesh is first converted to some sort of spatial tree. Unless you mean a mutable reference, which is essentially the same thing, but much harder to manage in this case.

I meant the right hand side mesh if there's any misunderstanding.
fn union(self, rhs: &Mesh)

It is because data are already in Vecs in both meshes. There's no way to merge vecs in rust.

I don't think we should use another project written in C++ (I don't hate C++, I was C++ developer), I like that Bevy built in Rust and FFI usage will make it dirty.
This task is not so complex if we divide it to a set of simple tasks (I put here list of naive task list. It based on expectation that mesh is complete and has not gaps. Resulting mesh should also be complete with no gaps):

[ ] Determine whether the point is inside of the mesh. This can be done by simply set axis (for example Z) through the point and find the most close to the point triangles crossing this axis from two sides. If projections of triangles normal on axis look outside of point, the point is inside, if opposite then point is outside, if normal's projection has same direction, then mesh has gaps and axis hit that gap. The third most rare state of point is being on the surface of another mesh.
[ ] When we have mesh with marked point relative to other mesh, we can make desicions triangle-wise. If all points of triangle have same state (all inside for example) and all sides of triangle don't cross any other triangle, then this triangle could be dropped (if it is inside the mesh and we make union, or it outside and we make intersection) or can be added to the new mesh (point list of triangle should be reversed to change normal direction in case of substraction)
[ ] The most complex case if triangles are crossing each other, then we should divide triangle into parts so each of them would have simple borders to other. Each triangle subdivide into three triangles by each cross.

Operation is heavy indeed. I think it could be nice job for compute shader.

The other intresting question is: what color should new surface have (only union have no new surface, other operations have cut place, every point of which should have some color or UV coordinate for texture). Should this operations take extra parameter (closure?) which would make such decision?

As a note, bevy aims to be able to manage assets on web as well as native. That doesn’t mean that C++ dependencies can’t be used, but bear in mind that they will not be available on web and will likely have to be behind a feature flag as they can’t be considered core functionality given they are not available everywhere. Or something like that. I don’t know if we maintainers have explicitly defined that policy anywhere but the cross-platform support and web asset handling support is clear.

Just to clarify my suggestion was not to include a C++ library as an external dependency but as a possibile reference that being C++ would need a substantial effort to transpose code/concepts.

It might be possible to include Manifold as a dependency for WASM builds:

https://github.com/rafaelbeckel/test-c-rust-wasm
https://github.com/rustwasm/wasm-bindgen/issues/3454
https://github.com/elalish/manifold/blob/master/README.md#wasm

I have some experience optimizing mesh boolean performance, here are my opinions on some of the points mentioned above:

I think the most simple naive implementation is to build a fn that can take a cuboid and subtract another cuboid.

That is a voxel-based approach, which can work. This approach impose limits on the precision of the input that you can work with, as the number of voxels will quickly blow-up as you increase precision, and the artifacts can be fairly noticeable.
Also, it can be hard to map texture back to the result.

Just want to point out there is no need to consume the mesh, taking a reference is just as performant.

No, it's not, because you'll end up doing a lot of cloning, assuming the mesh is first converted to some sort of spatial tree. Unless you mean a mutable reference, which is essentially the same thing, but much harder to manage in this case.

From my experience, cloning the mesh is not that slow comparing to the actual boolean operation. It is practically impossible to do the computation in-place, so you need allocation anyway. The resulting mesh will usually be quite different from the input, so the input buffer usually can't be reused.
Using references will allow you to do some optimization on the csg tree (DAG), enables sharing without expensive cloning, etc. We wrote some general tips here: https://github.com/elalish/manifold/wiki/Performance-Considerations
There may be use cases where you want to modify part of the mesh, but it is hard to make an algorithm that just mutate a part of the mesh that is changed, at least manifold is not able to do that for now (and no one is asking us to do that).

This task is not so complex if we divide it to a set of simple tasks (I put here list of naive task list. It based on expectation that mesh is complete and has not gaps. Resulting mesh should also be complete with no gaps):

Probably not that simple, you can also have self-intersection or invalid topology and things will become really complicated, see https://github.com/elalish/manifold/wiki/Manifold-Library
Also, mesh boolean and triangulation are full of corner cases which can be tricky to handle correctly. It took years for manifold to get to the current state, and there are still known issues. Performance is also a difficult subject, it will not be very useful if boolean operation on simple things take hours to complete (e.g. openscad is well-known for this previously when input is complicated).

Operation is heavy indeed. I think it could be nice job for compute shader.

This will be very hard because you are often memory-bound (host to device transfers). manifold used to have CUDA backend for some algorithms, but we later ditched it because proper CPU implementation is faster.

There may be use cases where you want to modify part of the mesh, but it is hard to make an algorithm that just mutate a part of the mesh that is changed, at least manifold is not able to do that for now (and no one is asking us to do that).

This would be difficult with a monolithic mesh, but is possible If the mesh/shape is split into smaller components.

I think Godot has some decent docs on this, plus their source is fairly readable.
I've used these APIs a bit, and while not perfect, they seem more than capable of doing those operations. :)

docs: Prototyping levels with CSG - CSG tools features
src: godot/core::math::geometry_2d::Geometry2D


Return class name in the features when /currentfilemembersastree request is sent

We added a "Run All Tests" and "Debug All Tests" utility in vscode. We should display the class name in the logs : Running tests in class : abc

We can add a node is ClassDeclarationSyntax if statement here, but how to model the syntax feature here, what should be the name and data fields ?
cc @DustinCampbell

I'm not sure I understand. Shouldn't the node that the Run All Tests and Debug All Tests code lenses are attached to already have a name that we can display?

@DustinCampbell This is all the information we have. I do see a "Text" property in "Location" but that is just the name of the class. Should we just print Running Tests in Class UnitTest1 or should we have the metadata name as we have for the test methods ?

I think we can provide better information here. Let me take a look.

@DustinCampbell @akshita31 If we move the unit tests codelens to call Dustin's new "codestructure" API, do we get this info?

Yes. I'm working on a PR to move all of CodeLens over to the /codestructure endpoint.

The PR will also move DocumentSymbolProvider over to /codestructure as well.

This has been resolved by using the new CodeStructure APi


services.mysql.package needs to be set, but does not appear in man configuration.nix

If you add
services.mysql.enable = true;

then nixos-rebuild switch fails because services.mysql.package isn't defined. However, if you search configuration.nix, this option isn't even mentioned, which leaves users in the dark as to what they are meant to set this to.

Yes, I have the same problem with 15.09. So what do you have to set services.mysql.package to?

@mucaho:
{ config, pkgs, ... }:
{
  services.mysql = {
    enable = true;
    extraOptions = ''
      max_allowed_packet = 64M
    '';
    package = pkgs.mysql;
  };
}

is working for me.

Looks like this is a case of adding this:
  config = mkIf config.services.mysql.enable {

    services.mysql.package =
      mkDefault pkgs.mysql;

Do people think that would do the job?

@ocharles It seems to me that the option does exist in nixos options, and does indeed not exist in configuration.nix. This is one of the rare cases where you must provide an option.
See the commit message of 1ce6fff4 for the reason behind the scene.
This is also well explained for postgres (https://nixos.org/nixos/manual/index.html#module-postgresql).
Note that there is information about this in https://nixos.org/nixos/options.html.
So this is not a bug, but you are most welcome to update the documentation of this option or the error message.
You could even add an assert with a more verbose failure in the module.
A pull request with better documentation would be merged very fast!
PS @mucaho: using pkgs.mysql works but may not be reliable.
/cc @shelvy, want to comment on this issue and/or close it ?

I believe this was resolved by 4358d3d43938666834d3e1fd5a8ea69b49c08112

Hm, is that a good idea though? Above has a fairly convincing argument as
to why you wouldn't want such a default.
On Sat, 17 Dec 2016, 3:45 am Joachim F<EMAIL_ADDRESS>wrote:

Closed #10917 https://github.com/NixOS/nixpkgs/issues/10917.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/NixOS/nixpkgs/issues/10917#event-897484034, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AABRjiMpYNdVu6YCEhRqaLnaQu-SkUz9ks5rI1rGgaJpZM4GegCp
.

@ocharles I did not know about that. I had thought that those who cared would pin it regardless, but that is perhaps too naive. I shall revert to the old behavior.

(triage) status?

@Profpatsch The original issue is fixed. I can find services.mysql.package in configuration.nix. The description could be improved tough.

@layus would you be willing to prepare a patch?

Ah, I see. It is possible to mark options as default, in this case this seems to have been a bug where package had no default. Having a package option for services is customary; as a first step I suggest adding a section documenting such patterns to the wiki, somewhere around https://nixos.wiki/wiki/NixOS_Modules


Expose c8 excludeAfterRemap argument to coverage config

We have a project which runs tests using the CLI against a webpacked extension and the node_modules aren't correctly excluded from coverage stats even if it's done explicitly. Manually bodging vscode-test-cli to add excludeAfterRemap: true to the Report in coverage.mts allows it to be successfully excluded. Could we get this exposed as an option or set to true by default?

Thanks, we should have exclude logic that takes into account sourcemaps. However, I don't want to expose c8 internals directly since that's a bit of an implementation detail (and I might write a v8-to-vscode helper at some point that bypasses istanbul.)


Firebase Dynamic Links: App preview page for IOS not showing the broken logo

Description
App preview page not showing the logo and by checking more we found that the logo URL responding 403 while visiting the preview page.
Reproducing the issue

Firebase SDK Version
N/A
Xcode Version
N/A
Installation Method
Swift Package Manager
Firebase Product(s)
DynamicLinks
Targeted Platforms
iOS
Relevant Log Output
No response
If using Swift Package Manager, the project's Package.resolved
No response
If using CocoaPods, the project's Podfile.lock
No response

Hi @aliahmad-dev, please note that the Firebase Dynamic Links service will be shutdown on August 25, 2025. In the meantime, only critical or security issues will be fixed in the SDK. See https://firebase.google.com/support/dynamic-links-faq for details.

even if it's going to shutdown at least you can provide more information about the issue as we have our application in production and our influencer raising that issue while sharing the URL with users. @rizafran


KHR_draco_mesh_compression Extension

Hi, thanks. Do you plan to support it?

Hi, i have requested a megagrant for it a couple of months ago, we should get the answer soon. Btw if you need to decrease asset space you can gzip them (the loader automatically decompresses them). Not the same thing (and compression ratio) but should definitely help


Add a human online customer service system.

Add a human online customer service system.

Integrating the online customer service system with RAG-GPT is currently in the planning stages. Please stay tuned.


CraftTweaker Support for Grove Recipes

Added CraftTweaker support for adding/removing grove crafting recipes.
Also fixed the addCraftingRecipe(GroveCraftingRecipe) helper method overload not calling setName on the new recipe (which does not matter unless someone is trying to look up the recipe based on its name).
Note that grove recipes are registered into a map indexed by ResourceLocation whereas pyre recipes are registered into a map indexed by String; I did not attempt to change this.

Yeah the disparity between string/ResourceLocation registration is slightly problematic. Eventually all recipes will be registered via ResourceLocation -- hopefully before release. Thanks so much for this! It's really appreciated.

Oof I just saw this, yeah I added the grove crafting crt support file to git when I copied it from the pyre crafting one but I forgot to add it again once I'd written it.  I can put my fork back up and pr again but it looks like you already added a fixed version, I'm very sorry about that it was such a silly mistake.


Artist Type has been replaced with User Title

A change to the website a while ago meant users can now specify any title to themselves on their profile instead of preset types like "Watcher".
https://github.com/boothale/faexport/blob/master/lib/faexport/scraper.rb#L236

Sorry for the delay on this.  Should be fixed in 513574993bf30af18260cf15788be2dc1fe58577


Fix mystery 'cant resolve reference' linting message

When linting with eslint, a can't resolve reference #/definitions/directiveConfigSchema from id # message is thrown. This does not appear to be preventing the linter from working, but we should still track it down and resolve it.

Closed by #184 by upgrading @typescript-eslint/eslint-plugin.


How to automatically restart KrakenD when rabbitMQ connection is not available?

I have the problem when I start krakend before my rabbitMQ server that I have to restart the server krakend server to establish a connection.
The Krachend server is ready before the startup process of the rabbit is completed. Or also if the Krakend server was started before the RabbitMq server. Unfortunately, I could not find anything in the documentation how to solve the problem. Is there any war to automatically trigger a krakend reboot or exit when the connection fails?
Running on docker compose:
Steps:
01: Starting RabbitMQ
02: Starting krakend
03: Calling krakend endpoint
--> ❌ KRAKEND ERROR: [ENDPOINT: /api/user/register-user/:key] Post "amqp://guest:***@rabbit:5672/": unsupported protocol scheme "amqp".
04: Restarting krakend
05: Calling krakend endpoint
--> ✅ Success
THANKS A LOT!
{
  "version":3,
  "timeout": "2000ms",
  "port":8080,
  "async_agent": [
    {
      "name": "cool-agent",
      "connection": {
        "max_retries": 10,
        "backoff_strategy":"exponential-jitter",
        "health_interval": "10s"
      },
      "consumer": {
        "topic": "*",
        "workers": 1,
        "timeout": "150ms",
        "max_rate": 0.5
      },
      "backend": [
        {
          "host": [
            "http://<IP_ADDRESS>:8080"
          ],
          "url_pattern": "/__debug/"
        }
      ],
      "extra_config": {
        "async/amqp": {
          "host": "amqp://guest:guest@rabbit:5672",
          "name": "krakend",
          "exchange": "foo",
          "durable": true,
          "delete": false,
          "exclusive": false,
          "no_wait": true,
          "prefetch_count": 5,
          "auto_ack": false,
          "no_local": true
        }
      }
    }
  ],
  "endpoints":[
    {
      "endpoint":"/api/user/register-user/{key}",
      "timeout": "2000ms",
      "method":"POST",
      "backend": [{
        "host": ["amqp://guest:guest@rabbit:5672"],
        "disable_host_sanitize": true,
        "extra_config": {
          "backend/amqp/producer": {
            "name": "queue-1",
            "exchange": "some-exchange",
            "durable": true,
            "delete": false,
            "no_wait": true,
            "no_local": false,
            "routing_key": "#",
            "prefetch_count": 10,
            "prefetch_size": 1024,
            "mandatory": false,
            "immediate": false
          }
        }
      }]
    }
  ]
}

docker-compose up

docker-compose.yml
 ...
  krakend_ce:
    container_name: 'api-gateway'
    image: devopsfaith/krakend:latest
    restart: on-failure
    volumes:
      - ./krakend:/etc/krakend
    ports:
      - "1234:1234"
      - "8080:8080"
      - "8090:8090"
    command: ["run", "-d", "-c", "/etc/krakend/krakend.json"]
    depends_on:
      - rabbitmq

Logs
If applicable, any logs you saw in the console and debugging information
api-gateway
[devopsfaith/krakend:latest](https://github.com/devopsfaith/krakend-ce/issues/new?assignees=&labels=question&template=help-and-questions.md&title=)
RUNNING

Parsing configuration file: /etc/krakend/krakend.json

2022/04/27 10:49:17 KRAKEND ERROR: [SERVICE: Logging] Unable to create the logger: getting the extra config for the krakend-gologging module

2022/04/27 10:49:17 KRAKEND DEBUG: [SERVICE: Gin] Debug enabled

2022/04/27 10:49:17 KRAKEND INFO: Starting the KrakenD instance

2022/04/27 10:49:17 KRAKEND INFO: [SERVICE: Gin] Building the router

2022/04/27 10:49:17 KRAKEND DEBUG: [SERVICE: AsyncAgent][cool-agent] Starting the async agent

2022/04/27 10:49:17 KRAKEND DEBUG: [ENDPOINT: cool-agent] Building the proxy pipe

2022/04/27 10:49:17 KRAKEND DEBUG: [BACKEND: /__debug/] Building the backend pipe

2022/04/27 10:49:17 KRAKEND DEBUG: [ENDPOINT: /api/user/register-user/:key] Building the proxy pipe

2022/04/27 10:49:17 KRAKEND DEBUG: [BACKEND: /] Building the backend pipe

2022/04/27 10:49:17 KRAKEND ERROR: [BACKEND: /][AMQP] Error getting the channel for amqp://guest:guest@rabbit:5672/queue-1: dial tcp <IP_ADDRESS>:5672: connect: connection refused

2022/04/27 10:49:17 KRAKEND DEBUG: [ENDPOINT: /api/user/register-user/:key] Building the http handler

2022/04/27 10:49:17 KRAKEND DEBUG: [ENDPOINT: /api/user/register-user/:key][JWTSigner] Signer disabled

2022/04/27 10:49:17 KRAKEND INFO: [ENDPOINT: /api/user/register-user/:key][JWTValidator] Validator disabled for this endpoint

2022/04/27 10:49:17 KRAKEND INFO: [SERVICE: Gin] Listening on port: 8080

2022/04/27 10:49:18 KRAKEND INFO: [SERVICE: AsyncAgent][AMQP][cool-agent] Starting the consumer

2022/04/27 10:49:18 KRAKEND ERROR: [SERVICE: Asyncagent][cool-agent] building the amqp subscriber: dial tcp <IP_ADDRESS>:5672: connect: connection refused

2022/04/27 10:49:20 KRAKEND INFO: [SERVICE: AsyncAgent][AMQP][cool-agent] Starting the consumer

2022/04/27 10:49:20 KRAKEND ERROR: [SERVICE: Asyncagent][cool-agent] building the amqp subscriber: dial tcp <IP_ADDRESS>:5672: connect: connection refused

2022/04/27 10:49:22 KRAKEND DEBUG: [SERVICE: Telemetry] Registering usage stats for Cluster ID a9SodgjZ2GbNIpO/Et3MPJjSs/QjUYbaSO2b8romk4E=

2022/04/27 10:49:23 KRAKEND INFO: [SERVICE: AsyncAgent][AMQP][cool-agent] Starting the consumer

2022/04/27 10:53:55 KRAKEND ERROR: [ENDPOINT: /api/user/register-user/:key] Post "amqp://guest:***@rabbit:5672/": unsupported protocol scheme "amqp"

[GIN] 2022/04/27 - 10:53:55 | 500 |   13.027833ms |      <IP_ADDRESS> | POST     "/api/user/register-user/123"

Planned for KrakenD 2.2 to have retries with different retry strategies


Error when trying to import the class 'Operation'

Issue description
When trying to import the class 'Operation' to build a customized gate it rises an import error.

*Import happens successfully

Actual behaviour: Import error

Reproduces how often: More than once

System information:
Name: PennyLane
Version: 0.7.0
Summary: PennyLane is a Python quantum machine learning library by Xanadu Inc.
Home-page: https://github.com/XanaduAI/pennylane
Author: None
Author-email: None
License: Apache License 2.0
Location: c:\users\tiago\anaconda3\envs\q_env\lib\site-packages
Requires: scipy, networkx, numpy, appdirs, toml, semantic-version, autograd
Required-by: PennyLane-qiskit
Platform info:           Windows-10-10.0.18362-SP0
Python version:          3.7.5
Numpy version:           1.18.1
Scipy version:           1.4.1
Installed devices:

default.gaussian (PennyLane-0.7.0)
default.qubit (PennyLane-0.7.0)
expt.tensornet (PennyLane-0.7.0)
expt.tensornet.tf (PennyLane-0.7.0)
qiskit.aer (PennyLane-qiskit-0.7.1)
qiskit.basicaer (PennyLane-qiskit-0.7.1)
qiskit.ibmq (PennyLane-qiskit-0.7.1)

Source code and tracebacks
File "C:\Users\Tiago\PycharmProjects\QBNN-Variacional\code\plugins\operators\control.py", line 4, in
from pennylane import Operation
ImportError: cannot import name 'Operation' from 'pennylane' (C:\Users\Tiago\Anaconda3\envs\Q_env\lib\site-packages\pennylane_init_.py)

Hi @Tiagoblima, thank you so much for your question! :blush:
This is so because the Operation class is not imported explicitly in the pennylane.__init__.py file (and is not an attribute of the pennylane module while importing).
One thing you could do is to have the import as from pennylane.operation import Operation.
Let me know how it works!

Ok. Thank you very much.


Use vagrant's SyncedFolders rather than a custom one.

vagrant-aws made this change a year ago, see mitchellh/vagrant-aws#320
For me this fixes various issues such as double -z option (doubled means
same as --new-compress which requires a newer remote rsync) as well as
repairing rsync-auto.

Thank you for this pull request. Can you think of any backwards compatible issues with Vagrantfile directives?

I don't have long experience with the digitalocean provider, but the only backward compat issue I know of is how the two implementations deal with the default rsync__args. Yours appends but upstream overrides, see https://github.com/mitchellh/vagrant/blob/master/plugins/synced_folders/rsync/helper.rb#L95

+1 this has fixed the rsync-auto and new-compress issues for us. We didn't need to make any adjustments to our existing Vagrantfiles.

Thank you - we will look into releasing this in the coming weeks.


encode_plotly does not handle plot_ly objects made with plotly::subplot

Creating a plotly object with subplot gives a data element, and no visdat element, so encode_plotly fails to mutate it to contain just data and layout elements. These objects then fail to render on dashr apps.
The issue seems to be here:
https://github.com/plotly/dashR/blob/eff322cdf83bb0c3ba14840443e2497e6330b59e/R/utils.R#L578-L581
reproducible example:
library(plotly)

linePlot <- plot_ly(x = c(1,2,3), y = rnorm(3), type = "scatter", mode='line')
subPlot <- subplot(list(linePlot, linePlot), nrows=2)

str(subPlot)
#List of 8
 #$ x            :List of 7
  #..$ data     :List of 2              # <- data element instead of visdat, cannot be mutated by encode_plotly
  #.. ..$ :List of 10
  #.. .. ..$ x      : num [1:3] 1 2 3
  #.. .. .. ..- attr(*, "apiSrc")= logi TRUE
# ....

str(linePlot)
#List of 8
 #$ x            :List of 6
  #..$ visdat  :List of 1               # <- visdat element can correctly be mutated by encode_plotly
  #.. ..$ 45f77f423b03:function ()
  #..$ cur_data: chr "45f77f423b03"
  #..$ attrs   :List of 1

@sacul-git Thanks for this 🌟 issue! I'm going to open a PR to address this one, it's an easy fix.


add default .pxt git ignore, set excludeGitIgnore setting

ignore generated .pxt files, and default 'on' for the explorer.excludeGitIgnore setting which makes explorer not show built files can drop that second one if we don't like that or think it's potentially confusing? I guess the thing to note is that it'll hide pxt_modules unless you e.g. go to definition which might be controversial:

test repo: https://github.com/jwunderl/ignore-me-testing-2

I like hiding pxt-modules