Error 403

Describe the bug
Hi, I'm using your API to fetch from vinted articles, but when I try to use my code on a VPS I get this error: RuntimeError: Cannot fetch session cookie from https://www.vinted.fr, because of status code: 403 different from 200. I'm using residential proxies, what should I change to not get errors?
Example.
I removed all information regarding proxies
username = ''
password = ''
proxy = f"”
vinted_proxies = {
         “http": proxy,
          “https": proxy
        }
item_id = match.group(1)

item_info = VintedScraper(“https://www.vinted.fr/”, proxies=vinted_proxies).item(item_id)

Hi,
Vinted may be blocking traffic from certain VPNs, which could be causing the issue.
To verify if this is the case, you can run the following curl command:
curl -v -c - -L "https://www.vinted.fr/"

At the moment, i created my own function to get a session cookie using proxies, this is the output of the curl command:
* Host www.vinted.fr:443 was resolved.
* IPv6: 2606:4700::6812:79e8, 2606:4700::6812:78e8
* IPv4: <IP_ADDRESS>, <IP_ADDRESS>
*   Trying <IP_ADDRESS>:443...
* Connected to www.vinted.fr (<IP_ADDRESS>) port 443
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / X25519 / id-ecPublicKey
* ALPN: server accepted h2
* Server certificate:
*  subject: CN=vinted.fr
*  start date: Aug 11 05:04:31 2024 GMT
*  expire date: Nov  9 05:04:30 2024 GMT
*  subjectAltName: host "www.vinted.fr" matched cert's "*.vinted.fr"
*  issuer: C=US; O=Google Trust Services; CN=WE1
*  SSL certificate verify ok.
*   Certificate level 0: Public key type EC/prime256v1 (256/128 Bits/secBits), signed using ecdsa-with-SHA256
*   Certificate level 1: Public key type EC/prime256v1 (256/128 Bits/secBits), signed using ecdsa-with-SHA384
*   Certificate level 2: Public key type EC/secp384r1 (384/192 Bits/secBits), signed using ecdsa-with-SHA384
* using HTTP/2
* [HTTP/2] [1] OPENED stream for https://www.vinted.fr/
* [HTTP/2] [1] [:method: GET]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: www.vinted.fr]
* [HTTP/2] [1] [:path: /]
* [HTTP/2] [1] [user-agent: curl/8.5.0]
* [HTTP/2] [1] [accept: */*]
> GET / HTTP/2
> Host: www.vinted.fr
> User-Agent: curl/8.5.0
> Accept: */*
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
< HTTP/2 403
< date: Fri, 23 Aug 2024 12:46:51 GMT
< content-type: text/plain; charset=UTF-8
< content-length: 16
< x-frame-options: SAMEORIGIN
< referrer-policy: same-origin
< cache-control: private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
< expires: Thu, 01 Jan 1970 00:00:01 GMT
* Added cookie __cf_bm="LOaSsyPowxOHlPi0WjLJbMGJLtV6yzBakAfvozJULy0-1724417211-<IP_ADDRESS>-Fiyk6B7Wfvx3iZvavGuJFGz6E6zpBthgBH0e.O_R2Jy.7ESoa71PuQLPyMX7ctMQUduR_qD7VAwoUbQce7NJYa.5zbUYwTOzovti_OYIZq4" for domain vinted.fr, path /, expire<PHONE_NUMBER>
< set-cookie: __cf_bm=LOaSsyPowxOHlPi0WjLJbMGJLtV6yzBakAfvozJULy0-1724417211-<IP_ADDRESS>-Fiyk6B7Wfvx3iZvavGuJFGz6E6zpBthgBH0e.O_R2Jy.7ESoa71PuQLPyMX7ctMQUduR_qD7VAwoUbQce7NJYa.5zbUYwTOzovti_OYIZq4; path=/; expires=Fri, 23-Aug-24 13:16:51 GMT; domain=.vinted.fr; HttpOnly; Secure; SameSite=None
< server: cloudflare
< cf-ray: 8b7b3535adc53608-FRA
<
* Connection #0 to host www.vinted.fr left intact
error code: 1005# Netscape HTTP Cookie File
# https://curl.se/docs/http-cookies.html
# This file was generated by libcurl! Edit at your own risk.

#HttpOnly_.vinted.fr    TRUE    /       TRUE<PHONE_NUMBER>      __cf_bm LOaSsyPowxOHlPi0WjLJbMGJLtV6yzBakAfvozJULy0-1724417211-<IP_ADDRESS>-Fiyk6B7Wfvx3iZvavGuJFGz6E6zpBthgBH0e.O_R2Jy.7ESoa71PuQLPyMX7ctMQUduR_qD7VAwoUbQce7NJYa.5zbUYwTOzovti_OYIZq4

As you can see from the curl command you are receiving a 403 status code: < HTTP/2 403, and also in the cookie section you don't see the Added cookie _vinted_fr_session= that we need to retrieve the cookie.
Is it possible that you workaround by getting the cookie outside the proxy and after that, you use it with the proxy?
It can be a cool workaround!


feat(build): make Apache Uber JAR OSGi-compliant

Following the requests made by some recent users, this commit changes
the pom.xml configuration of our algoliasearch-apache-uber module in
order to make it installable as a valid OSGi bundle.
To ensure this works, we have created a new example-osgi directory.
This project is a "Hello World"-like OSGi bundle application which
depends on the algoliasearch-apache-uber module at runtime. It
contains both the code and a detailled README.md on how to install,
build and deploy such application from scratch, using the Apache Karaf
OSGi-application runner.

Thanks for all the research on this topic! Looking great. 💯
Question: Do we plan to deploy the bundle along the other jars or do we let our users build it by their-self?

Thanks for the kind words @Ant-hem. :)
No I don't think we should deploy it to Maven Central for now since this is just a demo OSGi application to ensure our Apache Uber JAR is a valid OSGi bundle. In other words, no one will ever need to import this example-osgi as a bundle. It's just, well, an example code one can use to test OSGi.
For now, this PR is just a first step: showing how to build and integrate our unmodified Apache Uber JAR into an OSGi application. In the future, if we have the time to investigate if OSGi applications have a common way to fetch dependencies from Maven repositories, we'll do that as a second step.

@Aallam @Ant-hem @BenoitPerrot Any last minute comment / question before I merge?

Let's go. It's a great first step, we can still iterate on it in the future.

Nice work! especially the detailed steps in the README :D


not clear how to actually access diagnostic logs after turning them on

https://docs.microsoft.com/bs-cyrl-ba/azure/mysql/howto-configure-server-logs-in-portal

doesn't tell you how look up the logs you just turned on, so it's hard to know if you actually did it correctly, especially when outputting to log analytics, since in that interface it's hard to distinguish between whether there's no data present vs. user queried for the data wrong / not looking in the correct log name

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

ID: 131b90e6-7d8a-8824-1186-8557979c614a
Version Independent ID: 81092e88-8ce8-f638-b098-1c5711c90c1b
Content: Access slow query logs - Azure portal - Azure Database for MySQL
Content Source: articles/mysql/howto-configure-server-logs-in-portal.md
Service: mysql
GitHub Login: @ajlam
Microsoft Alias: andrela

@kelvinatph We are checking this and will get back to you.

@kelvinatph You can use Azure Storage explorer for accessing the logs. To download the tool, see Azure Storage Explorer. After downloading and installing the software, configure it to use the same Azure storage account that was configured as a destination to the Diagnostics Logs.
Additionally you can search for the containers, table or share/queues that you used through portal or other tools and access the logs directly.

Hope this helps.

@kelvinatph Were you able to check the above information. Please let us know if you have any other question.

Hi @NavtejSaini-MSFT -- yep, I was able to get it, thanks.  I was outputting the logs to Log Analytics and wanted to know the name of the Log table.  It is "AzureDiagnostics" -- found it in another tutorial.


MAINT: Add maintenance tool to check status

To follow steering committee policies we need to know member activity levels. This PR adds a tool to use PyGitHub to figure out the steering committee member activity levels across all of mne-tools for commits, issue comments, and PR comments:
{'GuillaumeFavelier': {'Commit': 0, 'IssueComment': 8, 'PullRequestComment': 0, 'Total': 8},
 'adam2392         ': {'Commit': 18, 'IssueComment': 95, 'PullRequestComment': 125, 'Total': 238},
 'agramfort        ': {'Commit': 24, 'IssueComment': 351, 'PullRequestComment': 141, 'Total': 516},
 'alexrockhill     ': {'Commit': 35, 'IssueComment': 262, 'PullRequestComment': 103, 'Total': 400},
 'bloyl            ': {'Commit': 0, 'IssueComment': 0, 'PullRequestComment': 0, 'Total': 0},
 'britta-wstnr     ': {'Commit': 5, 'IssueComment': 76, 'PullRequestComment': 63, 'Total': 144},
 'cbrnr            ': {'Commit': 23, 'IssueComment': 439, 'PullRequestComment': 63, 'Total': 525},
 'dengemann        ': {'Commit': 2, 'IssueComment': 29, 'PullRequestComment': 6, 'Total': 37},
 'drammock         ': {'Commit': 73, 'IssueComment': 564, 'PullRequestComment': 418, 'Total': 1055},
 'hoechenberger    ': {'Commit': 45, 'IssueComment': 688, 'PullRequestComment': 194, 'Total': 927},
 'jasmainak        ': {'Commit': 3, 'IssueComment': 47, 'PullRequestComment': 15, 'Total': 65},
 'larsoner         ': {'Commit': 348, 'IssueComment': 1737, 'PullRequestComment': 692, 'Total': 2777},
 'mmagnuski        ': {'Commit': 3, 'IssueComment': 104, 'PullRequestComment': 24, 'Total': 131},
 'mscheltienne     ': {'Commit': 63, 'IssueComment': 229, 'PullRequestComment': 113, 'Total': 405},
 'rob-luke         ': {'Commit': 24, 'IssueComment': 53, 'PullRequestComment': 12, 'Total': 89},
 'sappelhoff       ': {'Commit': 49, 'IssueComment': 148, 'PullRequestComment': 31, 'Total': 228},
 'wmvanvliet       ': {'Commit': 5, 'IssueComment': 60, 'PullRequestComment': 20, 'Total': 85}}

I can add other categories if it would be helpful, but I think these are already maybe good enough. We could even probably get away without having "Commit" in there (people who commit almost always comment on PRs), but it's quick enough to include.
FWIW these tools could someday perhaps be used to help with #11605. PyGitHub is pretty awesome as it gives access to a lot of attributes and such. So instead of just doing counts you could do "word counts" or something better instead. 🤔

@drammock feel free to try at your end and/or push commits to make it work or look better if you want

on my list for this afternoon :)

FWIW these tools could someday perhaps be used to help with https://github.com/mne-tools/mne-python/issues/11605.

I ❤ it!

It would be nice to include activity in our Discourse forum as well.

I was going to translate this task to use the same [gh + jq] idiom, but this works already so good enough for now.

FWIW I actually slightly prefer the current solution because it stays in Python. MNE-Python being a Python package and PyGitHub being in Python makes me think it's a better approach and will be more accessible to MNE contirbutors than gh and jq, which are new/different tools to learn. But if it's way or has features we need then sure.


chore: docs

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign jstrachan
You can assign the PR to them by writing /assign @jstrachan in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jstrachan: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

gsm
1c4b5074d9d405c98d7cb8a25329fb937bdebca9
link
/test gsm

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

/test gsm


fix get_or_add_objects() so you can actually post STIX2 to a TAXII2 collection

Codecov Report

Merging #12 into master will decrease coverage by 0.02%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master      #12      +/-   ##
==========================================
- Coverage   14.81%   14.78%   -0.03%
==========================================
  Files          14       14
  Lines         594      595       +1
==========================================
  Hits           88       88
- Misses        506      507       +1

Impacted Files
Coverage Δ

medallion/views/objects.py
0% <0%> (ø)
:arrow_up:

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 b5c0e5c...15585f8. Read the comment docs.

As of 0.11, Flask's get_json should work if the media type matches application/.*+json (implemented here). Are you sure you're using stix+json or taxii+json and not json+stix or json+taxii? It's also possible that the version suffix is causing problems. If so, that's an enhancement that should be made to Flask (but would require a temporary workaround like the one in this PR).

@treyka any updates on this? Are you still experiencing problems related to posting STIX2 content to a TAXII 2 Collection?


Uncaught TypeError: Cannot read property 'top' of undefined

Hi,
I use magnific pop up to display a gallery of pictures, using angularjs.
when I use the zoom I have this error message in the console ("Uncaught TypeError: Cannot read property 'top' of undefined"). Without the zoom it's ok all works.
I have this in my service.js
initMagnificPopup: function() {
$(function() {  //(I have to put it in a function else it doesn't work)
$('.with-caption').magnificPopup({
type: 'image',
gallery: {
enabled: true
},
zoom: {
enabled: true
}
});
});
}
and in my html:

{{ moment[0].time }}

I try to call my function initMagnificPopup with differents ways:
angular.element(document).ready(function () {
myService.initMagnificPopup();
});
or simply: myService.initMagnificPopup();
Thank you for responding!

Maybe it's because the option zoom is activated and your thumbs on the aspect ratio does not match with a detailed image. I had a similar problem which was solved by disabling this option.

Maybe it's because the option zoom is activated and your thumbs on the aspect ratio does not match with a detailed image.

This worked for me. Thank you

This solution worked for me. Thanks afider

@afider  This worked for me. Thank you

@afider I'm sorry but I didn't understand what do you mean?
What should I do?
I have the same problem and I don't know how to solve it

@ahmedbeheiry setting
zoom: {
enabled: false
}

or removing the whole zoom object and properties should have the same result

You can keep the zoom option enabled but you have to make sure the opener element exists. Probably if you have copied the code from the Magnific Popup site then you have something like this:
opener: function(element) {
  return element.find('img');
}

and the <img> tag does not exists inside the opener so you have to change it to:
opener: function(element) {
  return element;
}


Speed up when using MaskablePPO

❓ Question
Hi,
I'm using MaskablePPO on a powerful computer but the speed of the training doesn't change compared to a normal computer. Is there any option or line of code that increases the speed of training?
Thank you,
class customenv(gym.Env):....
env = customenv()
env = ActionMasker(env, mask_fn)
model = MaskablePPO(MaskableActorCriticPolicy, env, verbose=0)
model.learn(1000000)
Checklist

[X] I have checked that there is no similar issue in the repo
[X] I have read the documentation
[X] If code there is, it is minimal and working
[X] If code there is, it is formatted using the markdown code blocks for both code and stack traces.

Hello,

I'm using MaskablePPO on a powerful computer but the speed of the training doesn't change compared to a normal computer. Is there any option or line of code that increases the speed of training?

Related: https://github.com/DLR-RM/stable-baselines3/issues/1245 and https://github.com/DLR-RM/stable-baselines3/issues/90#issuecomment-659607948 and https://github.com/DLR-RM/stable-baselines3/issues/682
You should probably use multiple envs too, in that case, you should define the action mask function directly in the env, see https://github.com/Stable-Baselines-Team/stable-baselines3-contrib/issues/49#issuecomment-1422869188

Sorry for opening again, but I face an error when using with custom env. All my environment methods are the same as "InvalidActionEnvDiscrete":
`---------------------------------------------------------------------------
EOFError                                  Traceback (most recent call last)
 in <cell line: 2>()
1 model = MaskablePPO("MlpPolicy", env, verbose=1, tensorboard_log="/content/drive/MyDrive/Colab Notebooks/JOM/test")
----> 2 model.learn(100000)
7 frames
/usr/local/lib/python3.10/dist-packages/sb3_contrib/ppo_mask/ppo_mask.py in learn(self, total_timesteps, callback, log_interval, tb_log_name, reset_num_timesteps, use_masking, progress_bar)
524
525         while self.num_timesteps < total_timesteps:
--> 526             continue_training = self.collect_rollouts(self.env, callback, self.rollout_buffer, self.n_steps, use_masking)
527
528             if continue_training is False:
/usr/local/lib/python3.10/dist-packages/sb3_contrib/ppo_mask/ppo_mask.py in collect_rollouts(self, env, callback, rollout_buffer, n_rollout_steps, use_masking)
287         rollout_buffer.reset()
288
--> 289         if use_masking and not is_masking_supported(env):
290             raise ValueError("Environment does not support action masking. Consider using ActionMasker wrapper")
291
/usr/local/lib/python3.10/dist-packages/sb3_contrib/common/maskable/utils.py in is_masking_supported(env)
31         try:
32             # TODO: add VecEnv.has_attr()
---> 33             env.get_attr(EXPECTED_METHOD_NAME)
34             return True
35         except AttributeError:
/usr/local/lib/python3.10/dist-packages/stable_baselines3/common/vec_env/subproc_vec_env.py in get_attr(self, attr_name, indices)
171         for remote in target_remotes:
172             remote.send(("get_attr", attr_name))
--> 173         return [remote.recv() for remote in target_remotes]
174
175     def set_attr(self, attr_name: str, value: Any, indices: VecEnvIndices = None) -> None:
/usr/local/lib/python3.10/dist-packages/stable_baselines3/common/vec_env/subproc_vec_env.py in (.0)
171         for remote in target_remotes:
172             remote.send(("get_attr", attr_name))
--> 173         return [remote.recv() for remote in target_remotes]
174
175     def set_attr(self, attr_name: str, value: Any, indices: VecEnvIndices = None) -> None:
/usr/lib/python3.10/multiprocessing/connection.py in recv(self)
248         self._check_closed()
249         self._check_readable()
--> 250         buf = self._recv_bytes()
251         return _ForkingPickler.loads(buf.getbuffer())
252
/usr/lib/python3.10/multiprocessing/connection.py in _recv_bytes(self, maxsize)
412
413     def _recv_bytes(self, maxsize=None):
--> 414         buf = self._recv(4)
415         size, = struct.unpack("!i", buf.getvalue())
416         if size == -1:
/usr/lib/python3.10/multiprocessing/connection.py in _recv(self, size, read)
381             if n == 0:
382                 if remaining == size:
--> 383                     raise EOFError
384                 else:
385                     raise OSError("got end of file during message")
EOFError:`

Hello,

I'm using MaskablePPO on a powerful computer but the speed of the training doesn't change compared to a normal computer. Is there any option or line of code that increases the speed of training?

Related: DLR-RM/stable-baselines3#1245 and DLR-RM/stable-baselines3#90 (comment) and DLR-RM/stable-baselines3#682
You should probably use multiple envs too, in that case, you should define the action mask function directly in the env, see #49 (comment)

Sorry for opening again, but I face an error when using with custom env. All my environment methods are the same as "InvalidActionEnvDiscrete":
`---------------------------------------------------------------------------
EOFError                                  Traceback (most recent call last)
[<ipython-input-44-67cc0d019c11>](https://localhost:8080/#) in <cell line: 2>()
      1 model = MaskablePPO("MlpPolicy", env, verbose=1, tensorboard_log="/content/drive/MyDrive/Colab Notebooks/JOM/test")
----> 2 model.learn(100000)

7 frames
[/usr/local/lib/python3.10/dist-packages/sb3_contrib/ppo_mask/ppo_mask.py](https://localhost:8080/#) in learn(self, total_timesteps, callback, log_interval, tb_log_name, reset_num_timesteps, use_masking, progress_bar)
    524
    525         while self.num_timesteps < total_timesteps:
--> 526             continue_training = self.collect_rollouts(self.env, callback, self.rollout_buffer, self.n_steps, use_masking)
    527
    528             if continue_training is False:

[/usr/local/lib/python3.10/dist-packages/sb3_contrib/ppo_mask/ppo_mask.py](https://localhost:8080/#) in collect_rollouts(self, env, callback, rollout_buffer, n_rollout_steps, use_masking)
    287         rollout_buffer.reset()
    288
--> 289         if use_masking and not is_masking_supported(env):
    290             raise ValueError("Environment does not support action masking. Consider using ActionMasker wrapper")
    291

[/usr/local/lib/python3.10/dist-packages/sb3_contrib/common/maskable/utils.py](https://localhost:8080/#) in is_masking_supported(env)
     31         try:
     32             # TODO: add VecEnv.has_attr()
---> 33             env.get_attr(EXPECTED_METHOD_NAME)
     34             return True
     35         except AttributeError:

[/usr/local/lib/python3.10/dist-packages/stable_baselines3/common/vec_env/subproc_vec_env.py](https://localhost:8080/#) in get_attr(self, attr_name, indices)
    171         for remote in target_remotes:
    172             remote.send(("get_attr", attr_name))
--> 173         return [remote.recv() for remote in target_remotes]
    174
    175     def set_attr(self, attr_name: str, value: Any, indices: VecEnvIndices = None) -> None:

[/usr/local/lib/python3.10/dist-packages/stable_baselines3/common/vec_env/subproc_vec_env.py](https://localhost:8080/#) in <listcomp>(.0)
    171         for remote in target_remotes:
    172             remote.send(("get_attr", attr_name))
--> 173         return [remote.recv() for remote in target_remotes]
    174
    175     def set_attr(self, attr_name: str, value: Any, indices: VecEnvIndices = None) -> None:

[/usr/lib/python3.10/multiprocessing/connection.py](https://localhost:8080/#) in recv(self)
    248         self._check_closed()
    249         self._check_readable()
--> 250         buf = self._recv_bytes()
    251         return _ForkingPickler.loads(buf.getbuffer())
    252

[/usr/lib/python3.10/multiprocessing/connection.py](https://localhost:8080/#) in _recv_bytes(self, maxsize)
    412
    413     def _recv_bytes(self, maxsize=None):
--> 414         buf = self._recv(4)
    415         size, = struct.unpack("!i", buf.getvalue())
    416         if size == -1:

[/usr/lib/python3.10/multiprocessing/connection.py](https://localhost:8080/#) in _recv(self, size, read)
    381             if n == 0:
    382                 if remaining == size:
--> 383                     raise EOFError
    384                 else:
    385                     raise OSError("got end of file during message")

EOFError:`


Add a11y attributes

Fixes #9

This change is

Reviewed 2 of 2 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks broke.

test/input-test.html, line 159 at r1 (raw file):

it ('

Nit: remove spaces. It will cause linter error.

test/input-test.html, line 166 at r1 (raw file):

          it ('text-field should have the `aria-live` attribute', () => {
            expect(timePicker.__inputElement.getAttribute('aria-live')).to.be.eq('assertive');

Nit: should this be aligned with other tests eq -> equal?

Comments from Reviewable

Review status: 1 of 2 files reviewed at latest revision, 2 unresolved discussions.

test/input-test.html, line 159 at r1 (raw file):
Previously, YuriyVaadin (Yuriy Yevstihnyeyev) wrote…

it ('

Nit: remove spaces. It will cause linter error.

Done.

test/input-test.html, line 166 at r1 (raw file):
Previously, YuriyVaadin (Yuriy Yevstihnyeyev) wrote…
Nit: should this be aligned with other tests eq -> equal?

Done.

Comments from Reviewable

Reviewed 1 of 1 files at r2.
Review status: all files reviewed at latest revision, all discussions resolved, some commit checks broke.

Comments from Reviewable


Add parent name to sub task

Example:
Before:

After:

label no_parent doesn't add name from parent
label no_sub_parent doesn't add name from this task to children

I like it!

I like it!

I'm having trouble getting this to run 😕
2023-07-21 13:24:37 2023-07-21 18:24:37 INFO     You are running with the following functionalities:
2023-07-21 13:24:37
2023-07-21 13:24:37    Next action labelling mode: Enabled
2023-07-21 13:24:37    Regenerate sub-tasks mode: Disabled
2023-07-21 13:24:37    Shifted end-of-day mode: Disabled
2023-07-21 13:24:37    Add parent mode: Enabled
2023-07-21 13:24:37
2023-07-21 13:24:38 2023-07-21 18:24:38 INFO     Autodoist has successfully connected to Todoist!
2023-07-21 13:24:38 2023-07-21 18:24:38 INFO     SQLite DB has successfully initialized!
2023-07-21 13:24:38
2023-07-21 13:24:39 2023-07-21 18:24:39 ERROR    Error trying to sync with Todoist API: 400 Client Error: Bad Request for url: https://api.todoist.com/sync/v9/sync
2023-07-21 13:24:39 Traceback (most recent call last):
2023-07-21 13:24:39   File "/usr/src/app/./autodoist.py", line 550, in sync
2023-07-21 13:24:39     response.raise_for_status()
2023-07-21 13:24:39   File "/usr/local/lib/python3.11/site-packages/requests/models.py", line 1021, in raise_for_status
2023-07-21 13:24:39     raise HTTPError(http_error_msg, response=self)
2023-07-21 13:24:39 requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.todoist.com/sync/v9/sync
2023-07-21 13:24:40 2023-07-21 18:24:40 INFO     You are running with the following functionalities:

I see that it is enabled?  Add parent mode: Enabled
But the container just keeps on failing upon start with 400 errors?

my docker compose command looks like this:
command: ["-l", "next_action", "-r", "1", "-hf", "0", "-a", "<redacted>", "-ap", "|"]

I have also tried removing the "-ap" and it's value and it seems to work just fine on your branch.

Do you happen to see where I have made a mistake @jVallant ?

@erauner12
I don't run it in a container. And I use the following command:
autodoist.py -a [[[[API KEY]]]] -e 3 -l next_action -d 15 -ap '|'
all your arguments seem to work fine for me, I have run them like this:
autodoist.py -a [[[[API KEY]]]] -l next_action -r 1 -hf 0  -ap '|'
This seems to be an issue only in a container.
I suspect the problem is, as I got "bad request errors" for no seemingly no reason in the development, the line 496:
https://github.com/jVallant/autodoist/blob/c83ff59ed5edb681241c5bce80f3a48f1c8ba723/autodoist.py#L496C7-L496C7
Originally it was basically a copy of the function above, but for some reason I had to remove the quote(       )  around the content to get it to function without an error.  It is the only part of my code  (if I remember correctly)  which access the API. Tough since I don't use containers I can't tell for sure.

I was able to get it to work! I actually had to comb through all of my tasks and remove all hyperlinks from the subtask text. After doing this, I ran it with the same parameters and it worked.


nuclei: 2.3.2 -> 2.3.3

Motivation for this change
Update to latest upstream release 2.3.3
Change log: https://github.com/projectdiscovery/nuclei/releases/tag/v2.3.3
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x]  Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 118209 run on x86_64-linux 1

1 package built:

nuclei


[Hotfix 1.41] Update STS

Update STS to <IP_ADDRESS>
https://github.com/microsoft/sqltoolsservice/compare/<IP_ADDRESS>...<IP_ADDRESS>

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
3 unchanged lines in 2 files lost coverage.
Overall coverage increased (+0.009%) to 41.8%

Files with Coverage Reduction
New Missed Lines
%

extensions/sql-bindings/src/common/azureFunctionsUtils.ts
1
80.65%

extensions/machine-learning/src/common/processService.ts
2
81.48%

Totals

Change from base Build<PHONE_NUMBER>:
0.009%

Covered Lines:
28971

Relevant Lines:
64425

💛  - Coveralls


Additional Info for Relative URLs

The relative URLS tripped me up.  So I figure it might be nice to let others know about that.

Thanks!


Make legacyPackages look like pkgs in a nixos module

Description of changes
This change the package set in legacyPackages.<system> look the same as it would in a nixos module using jetpack-nixos, so the same pkgs.nvidia-jetpack is present in both.
Testing
N/A

Is this actually needed? It creates another import of nixpkgs and nothing in jetpack-nixos should be directly consuming itself via pkgs.nvidia-jetpack, that should just be for external users

It creates another import of nixpkgs
Where would the other import of nixpkgs be? My understanding of this change is that it moves the import of nixpkgs from https://github.com/nixos/nixpkgs/blob/592c139bdb42bf14ae13d183ec85221a4dbd9c81/flake.nix#L86 to this flake directly.

Is this actually needed?
Not at all, but I think it brings a few benefits.

If we have any documentation that shows example usage of jetpack-nixos in a nixos configuration, any use of jetpack-nixos derivations will come from pkgs.nvidia-jetpack, so a user can simply use the same attribute path when using nix build, nix run, etc. against this flake.
By defining our own custom package set and putting it on legacyPackages, we don't get to take advantage of any paradigms that exist in nixpkgs such as pkgsCross.
The flake output schema docs (https://nixos.wiki/wiki/Flakes) say legacyPackages is for nixpkgs packages, so us using it as a way to amend our own packages to nixpkgs instead of overriding it entirely feels more true to  that description.

It creates another import of nixpkgs

Where would the other import of nixpkgs be? My understanding of this change is that it moves the import of nixpkgs from https://github.com/nixos/nixpkgs/blob/592c139bdb42bf14ae13d183ec85221a4dbd9c81/flake.nix#L86 to this flake directly.

I was thinking the nixpkgs.lib, but after looking at upstream's flake.nix it looks like it doesn't actually instantiate a nixpkgs fixpoint if you just grab nixpkgs.lib.

Is this actually needed?

Not at all, but I think it brings a few benefits.

If we have any documentation that shows example usage of jetpack-nixos in a nixos configuration, any use of jetpack-nixos derivations will come from pkgs.nvidia-jetpack, so a user can simply use the same attribute path when using nix build, nix run, etc. against this flake.
By defining our own custom package set and putting it on legacyPackages, we don't get to take advantage of any paradigms that exist in nixpkgs such as pkgsCross.
The flake output schema docs (https://nixos.wiki/wiki/Flakes) say legacyPackages is for nixpkgs packages, so us using it as a way to amend our own packages to nixpkgs instead of overriding it entirely feels more true to  that description.

I actually dislike exposing the entire nixpkgs set from flakes outside of nixpkgs unless the overlay actually modified something that affects things in the top-level package set.  Providing the whole package set implies that our overlay does more than it does (e.g. building pkgs.hello is the same as upstream nixpkgs). I just want the packages in nvidia-jetson  exposed.  Also, this changes the flake interface to jetpack-nixos in a backwards-incompatible way and I don't think this is worth it.


Updating documentation for manual installation

I've had a go at updating the Getting Started documentation - and in particular the Manual Installation instructions.
You'll see that I've moved around some of the later instructions for project integration (now called accessing and configuring CLJ).  I've also preferred the non key-based HTTPS URL schemes for the git clone and submodule examples to avoid the risk of permissions errors when getting the source.
I'd be pleased if the team could review these changes for accuracy and any oversights.  As our friends at Apple might say: Focus Areas are CocoaPods, Carthage and Swift ;)

Thansk @DD-P


Please upload AppImage to GitHub Releases

https://github.com/lighttransport/gltf-insight/blob/2bbf56f2294c36d72cecc93dea3b36ef36ba355a/.travis.yml#L71
Please upload AppImage to GitHub Releases, thank you. Maybe https://github.com/probonopd/uploadtool can help.

I finished following the guide. I'm using upload.sh to push releases to GitHub.
https://github.com/lighttransport/gltf-insight/releases/tag/continuous
I'm just learning how all of this works, and knew I was going to need to do that, but hey, thanks for the tip!


How can I implement partial output in the react demo?

Question
Hello! I am reading the Transformers.js documentation for "Building a react application", but I encountered an issue at step 4.
I don't know how to implement the partial output of the translation results, even though the documentation provides the following instructions:
  let output = await translator(event.data.text, {
      tgt_lang: event.data.tgt_lang,
      src_lang: event.data.src_lang,

      // Allows for partial output
      callback_function: x => {
          self.postMessage({
              status: 'update',
              output: translator.tokenizer.decode(x[0].output_token_ids, { skip_special_tokens: true })
          });
      }
  });

I have completed all the steps in the tutorial documentation, but I still cannot get the output to work properly. I tried using console.log for debugging and found that the callback_function is not working, and the main thread is not receiving any messages with the status update. I have also not found any information about the callback_function in the transformers.js documentation. I apologize for taking up your time, but I sincerely need your help. 🙏

Hi there 👋 Apologies for the delayed response. This is possible with the TextStreamer class, which was introduced in Transformers.js v3. Example code:
import { pipeline, TextStreamer } from "@huggingface/transformers";

// Create a text generation pipeline
const generator = await pipeline(
  "text-generation",
  "onnx-community/Qwen2.5-Coder-0.5B-Instruct",
  { dtype: "q4" },
);

// Define the list of messages
const messages = [
  { role: "system", content: "You are a helpful assistant." },
  { role: "user", content:  "Write a quick sort algorithm." },
];

// Create text streamer
const streamer = new TextStreamer(generator.tokenizer, {
  skip_prompt: true,
  callback_function: (text) => console.log(text), // Optional callback function
})

// Generate a response
const output = await generator(messages, { max_new_tokens: 512, do_sample: false, streamer });
console.log(output[0].generated_text.at(-1).content);

However, this has not yet been updated in the documentation. If anyone would like to make a PR for this, I would greatly appreciate it!


Comments not being respected by sass-loader

The following code breaks the sass-loader, the //bg-[path/to/your/image.jpg] is not being treated as a comment.
`import Nullstack from 'nullstack'
class FunFact extends Nullstack {
data = {}
render() {
// bg-[path/to/your/image.jpg]
return
}
}
`
Some deps related to issue.
    "nullstack": "^0.16.4",      "eslint": "^8.20.0",     "eslint-plugin-nullstack": "^0.0.26",      "postcss": "^8.4.19",     "postcss-loader": "^7.0.1",      "tailwind-merge": "^1.4.0",     "tailwindcss": "^3.2.4"

Thanks for reporting @robgetTheJobDoneSP  💜 Can you check if it still happens on 0.19.3, please? I'm unable to reproduce it on recent versions. Also, the new HMR on the latest versions might speed up your daily workflow by a lot!


python312Packages.dnachisel: 3.2.11 -> 3.2.12

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python312Packages.dnachisel is: Optimize DNA sequences under constraints
meta.homepage for python312Packages.dnachisel is: https://github.com/Edinburgh-Genome-Foundry/DnaChisel
meta.changelog for python312Packages.dnachisel is: https://github.com/Edinburgh-Genome-Foundry/DnaChisel/releases/tag/v3.2.12
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 3.2.12 with grep in /nix/store/48llqh3cdxlxhn31w1kgvksmibdjf68g-python3.12-dnachisel-3.2.12
found 3.2.12 in filename of file in /nix/store/48llqh3cdxlxhn31w1kgvksmibdjf68g-python3.12-dnachisel-3.2.12

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

3 total rebuild path(s)

3 package rebuild(s)

First fifty rebuilds by attrpath

python311Packages.dnachisel
python312Packages.dnachisel

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/48llqh3cdxlxhn31w1kgvksmibdjf68g-python3.12-dnachisel-3.2.12 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

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

Or:
nix build github:r-ryantm/nixpkgs/e83bfaacfb0726295f6c51a830a7bef19ae60814#python312Packages.dnachisel

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/48llqh3cdxlxhn31w1kgvksmibdjf68g-python3.12-dnachisel-3.2.12
ls -la /nix/store/48llqh3cdxlxhn31w1kgvksmibdjf68g-python3.12-dnachisel-3.2.12/bin

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

x86_64-linux

:white_check_mark: 4 packages built:

python311Packages.dnachisel
python311Packages.dnachisel.dist
python312Packages.dnachisel
python312Packages.dnachisel.dist

Maintainer pings
cc @prusnak for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

Add a :+1: reaction to pull requests you find important.

@GrahamcOfBorg build python312Packages.dnachisel


Can't build because debian_sid_amd64-sysroot is missing

Hello! I trying to build ungoogled chromium on ubuntu 20.04 following this intruction
But on './out/Default/gn gen out/Default --fail-on-unused-args' step I'm getting error:
ERROR at //build/config/sysroot.gni:64:7: Assertion failed.
      assert(
      ^-----
Missing sysroot (//build/linux/debian_sid_amd64-sysroot). To fix, run: build/linux/sysroot_scripts/install-sysroot.py --arch=amd64
See //build/config/sysroot.gni:65:11:
          exec_script("//build/dir_exists.py",
          ^-----------------------------------
This is where it was set.
See //chrome/installer/BUILD.gn:8:1: whence it was imported.
import("//build/config/sysroot.gni")
^----------------------------------
See //BUILD.gn:82:5: which caused the file to be included.
    "//chrome/installer",
    ^-------------------

triend run build/linux/sysroot_scripts/install-sysroot.py --arch=amd64
and it cannot download:
Installing Debian sid amd64 root image: /home/build/ungoogled-chromium/build/src/build/linux/debian_sid_amd64-sysroot
Downloading https://commondatastorage.9oo91eapis.qjz9zk/chrome-linux-sysroot/toolchain/95051d95804a77144986255f534acb920cee375b/debian_sid_amd64_sysroot.tar.xz
Failed to download https://commondatastorage.9oo91eapis.qjz9zk/chrome-linux-sysroot/toolchain/95051d95804a77144986255f534acb920cee375b/debian_sid_amd64_sysroot.tar.xz

You need to change the URL from commondatastorage.9oo91eapis.qjz9zk to commondatastorage.googleapis.com for that to work

You need to change the URL from commondatastorage.9oo91eapis.qjz9zk to commondatastorage.googleapis.com for that to work

Thanks! But now I'm getting another errror:
/bin/sh: 1: ../../third_party/llvm-build/Release+Asserts/bin/clang: not found
clang is installed on system.


Turnstile Seems To be Broken

Filled in both keys and selected turnstile in the settings but after 7 days it seems to be collecting no data. This leads me to think something may not be working. Nothing seen in the log related to turnstile or captcha.

Hi, but isn't turnstile supposed to be captcha, not analytics? Or it's analytics of users trying to solve captcha

That's just the analytics they show you about your turnstile setup as far as I know. Solve rates, traffic through it, etc as far as I understand. My turnstile setup in cloudflare is named "cart"

Are you using latest master? e.g. did you run ./install-master.sh to re-verify? Because it works on the demo

No, let me try an update and report back.

The issue is most likely fixed by now


Set map afterRender

To prevent warnings in console to not update properties in didInsertElement, moved the code to afterRender.

Great thanks @WimAtIHomer


Display property for SignoutPopup args

Not really an issue but in this line the display argument is set to "popup" for a popup logout request but then it looks to me that the value is not used (and not required by the specs) when building the logout. So I was wondering if it can be removed.

Oh that's passed to the authorize endpoint (in case it cares).

Oh that's passed to the authorize endpoint (in case it cares).


I can't put hex color code using grapesjs-style-bg

There is something weird in the plugin, previously I was able to put a hex color code inside the color section, now I can't.
I think the problem is that :
The type is not defined in => typeProps: ƒ typeProps(result, type) ...
@artf

If you're using the latest grapesjs release (> v0.18.*), this plugin won't work, check the release note here https://github.com/artf/grapesjs/releases/tag/v0.18.1


[FEAT] Set chained entity name on tasks and tasks child spans

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


Missing definition of the HasPostgres instance in the example and the docu

Hi,
right now I'm trying to port my old snap project to the new snaplet-postgres-simple release, but I get No instance nor default method for class operation Snap.Snaplet.PostgresqlSimple.Internal.setLocalPostgresState for my Type as soon as I try to load a page with an database query.

@mightybyte, What do I write if I have a lens defined directly (to be able to use provide it from upper-level snaplet in initializer)?
data MySnaplet b = MS{db :: SnapletLens b Postgres}

instance HasPostgres (Handler b (MySnaplet b)) where
  setLocalPostgresState s = ???


Fix all remaining stream names to be IDs, modulo server support

This follows #5246, #5223, #5205, #5183, #5069, #5056, #5000, and #4635 in switching us over from identifying streams by their names to doing so with their stable numeric IDs: #3918. This prevents buggy behavior when a stream gets renamed.
At this point the bulk of the work has been done already. The previous PR in this series, #5246, marked with TODO(#3918): all the remaining places we needed to fix. This PR then eliminates each of those in turn. Mostly this means parsing and using stream IDs when present in notifications; that's followed by a handful of trivial fixes.
As forecast at https://github.com/zulip/zulip-mobile/issues/3918#issuecomment-1026479673 , there remain some places where we use stream names that should be IDs, but these are limited to interacting with the server in places where it doesn't support IDs. For those, moreover:

We nevertheless make sure to convert promptly to stream IDs at the edge (e.g., maintaining the muted-topics model in terms of stream IDs). This means that while we're still exposed to bugs if a stream rename races with another interaction we have with the server about that stream, we at least don't hit a bug simply because a stream was renamed while the app was open -- in other words, the race window is much narrower.
Some of them were fixed in the server a while ago, and have comments like TODO(server-2.0):. We'll take care of those sometime soon in a followup to #5100, as we concretely drop support for ancient server versions we already don't support.
Some (well, one -- notifications) were fixed in the server recently, and have comments like TODO(server-5.0):. We'll take care of those circa late 2023, when we drop support for all server releases that exist today. In the meantime, we make sure to take advantage of stream IDs when the server is new enough to provide them.
Some aren't fixed yet: zulip/zulip#10744. These have TODO(server-future): comments.

Fixes: #3918

(Just pushed a rebase, since there were conflicts.)

Thanks for the review! Merging, with that fix.
I also auto-formatted the files, having rebased past #5267 which did that more broadly. That caused one formatting change in FcmMessageTest.kt.


Rebase and add spec file and Dockerfile

This is intended to keep the master branch of openshift fork of cloud-provider-openstack up-to-date: rebased to the latest upstream and adding the spec and Docker file, so the development images for OpenShift could be built from master.
@childsb this looks to be the standard way to maintain the external components. Other possibility would be to branch early for the upcoming openshift release and keep the master "clean" (whithout the dockerfiles and spec file).
NONE

Agreed with @childsb to create the new release branch first... Closing.


Agent and client setup tutorial?

⚠ Please verify that this bug has NOT been raised before.

[X] I checked and didn't find similar issue

🛡 Security Policy

[X] I agree to have read this project Security Policy

📝 Describe your problem
Hello everybody,
I really apologize if my question is redundant, but I really searched a lot here in the issues and didn't find exactly what I need.
I wanted to know first if it is possible, if so, could someone point me to an updated tutorial on how to install and configure an Uptime Kuma agent on a server to monitor it and its services (mainly the Docker containers on that server) that communicate with the Uptime Kuma client that is on another server?
How do I install this agent? Your config files? Which ports on the firewall should I allow?
And on the client side, how do I configure the Dashboard to receive information from this agent, and from the Docker containers it is monitoring?
PS: I didn't put the Uptime Kuma version because I didn't know how to check it, since I installed the client by command:
docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:1

Suggested at: https://uptime.kuma.pet/

I'm really grateful for any help!
📝 Error Message(s) or Log
No response
🐻 Uptime-Kuma Version
0.0.0
💻 Operating System and Arch
Ubuntu 20.04 x86
🌐 Browser
Google Chrome 112.0.5615.49
🐋 Docker Version
Docker 23.0.3
🟩 NodeJS Version
No response

It is not possible unfortunately.

Oh, ok :/
Anyway thank you!


Improve cataloging of Ruby Gems under development

What would you like to be added:
Running syft pointed at a directory that contains the source code of a Ruby gem should find that gem and its dependencies.
Why is this needed:
Syft's current Ruby catalogers, which focus on Gemfile.lock (directory cataloger) and **/specifications/**/*.gemspec in an image context. However, when running Syft on a directory that contains a checkout of the source of a gem, neither of these catalogers finds anything. (For example, running git clone git@github.com:CanCanCommunity/cancancan.git && syft packages --catalogers all dir:cancancan prints No packages discovered; it should instead print cancancan itself and its dependencies.)
Additional context:
https://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/ is a helpful post on understanding how working on a gem is different from having an installed gem and different from working on an application.
Thanks @mscottford for pointing out this issue!

I haven't run this code, but I think something similar to this would do the trick: https://github.com/anchore/syft/pull/1971#issuecomment-1690484083

The new code added in 0.95.0 will show the gem name as a package but none of the dependencies present in the gemspec file, unless you have a Gemfile.lock
if you don't have a Gemfile.lock you won't see anything added in Gemfile or *.gemspec. That is unfortunate.
Example:
my_gem.gemspec:
# ...

Gem::Specification.new do |spec|
  spec.name          = "my_gem"
  spec.version       = MyGem::VERSION
  spec.authors       = ["MyTeam"]
  spec.email         =<EMAIL_ADDRESS>
  # ...

  spec.add_dependency "rails"
  spec.add_development_dependency "rake"
  spec.add_development_dependency "rspec"
end

# ...

This will only list my_gem as the package


Add Status and Type as ListRunnersOptions

Objective
Add Type and Status fields to ListRunnersOptions since Scope is being deprecated. See the updated docs: https://docs.gitlab.com/ee/api/runners.html
Context
As of GitLab 11.4, Type and Status filters are supported for filtering Runners, and Scope has been deprecated.

Type: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/19649
Status: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/19625

As a heads up, the TagList filter will be rolling out with 11.9: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/19740

LGTM! Thanks @ailsachiu!


How do i delete files on b2 ?

Starting using this now.
Current Files:    27,778,197
How do I delete files on b2 when the model is deleted ?
Do I need to do it myself ?

Hey @jimmy927 somehow I completely missed your issue -- did you get it resolved?
By default, Django isn't doing any cleanup, you'd have to use a library like django-cleanup

Resolving for now, seeing as no further discussions.


Cannot use let's encrypt certificate

I'm having trouble enabling TLS in MQTT and wondering whether it's a bug or I'm missing something. I have configured mosquitto (HA addon) to use a certificate from let's encrypt (not self-signed), and I can connect to it from various places using the following ca file: https://letsencrypt.org/certs/isrgrootx1.pem
Eg
mosquitto_pub --cafile isrgrootx1.pem <host> ...

But it doesn't work in nuki hub. In fact, I can't even upload this file since the "MQTT SSL CA Certificate" field is 1500 chars max, while the cert (in PEM format) is larger. Should I use some other format?

@rodriguezst Can you help here?

Maybe 1500 bytes is the limit in binary form? (but certainly not in the PEM format). Btw I tried patching the textarea limit in chrome, but I think there is also a 1500 chars limit in the actual code.

What's a reasonable value? In the end they have to be stored in flash and in memory.

Found some thoughts on PEM file size here: https://groups.google.com/g/mailing.openssl.users/c/awvGfcOwfZM

There doesn't seem to be a hard limit since keys can in theory be arbitrarily large and certs can also contain metadata. But the larger root cert in my /etc/ssl/certs is 2772 bytes.

What about going with 2048? Recommended in the google groups discussion and it would fit @chatziko 's pem file.

2048 would cover 85% of my /etc/ssl/certs. 2200 would push it to 96%.

There are three definitions for certificates. What about TLS_CERT_MAX_SIZE and TLS_KEY_MAX_SIZE ?
add_compile_definitions(TLS_CA_MAX_SIZE=1500)
add_compile_definitions(TLS_CERT_MAX_SIZE=1500)
add_compile_definitions(TLS_KEY_MAX_SIZE=1800)

For the key 1800 bytes should be ok for 2048 rsa (of course a large key wouldn't fit, but I doubt anyone will use larger keys for mqtt). For the cert no idea, but the client cert will likely be self-generated, and with the standard way 1500 bytes is ok.

I think by default (unless the documentation explicitly tells me otherwise in very bold type), I'd create a 4096 bit key for everything.

I doubt you get any practical improvement in security, and the performance penalty for devices like the esp32 would be non-negligible.

You are very likely right, I'm just saying it should be prominently documented because I'm not sure that the assumption "nobody would use larger keys" holds.

Good point indeed, it took me some time to realize that the cert I was copy/pasting was being truncated. The size limit should be stated in the config page.

I tested the different options (CA only, CA & client validation) with test.mosquitto.org and everything was working fine.

@rodriguezst : Is your connection to test.mosquitto.org stable?
When connecting to test.mosquitto.org port 8883 I see in the log:
Attempting MQTT connection
MQTT: Connecting without credentials
MQTT connected
Nuki start pairing
Attempting MQTT connection
MQTT: Connecting without credentials
MQTT connected
Nuki start pairing
Attempting MQTT connection
MQTT: Connecting without credentials
MQTT connected
Nuki start pairing
Attempting MQTT connection
MQTT: Connecting without credentials
MQTT connected
Nuki start pairing
Attempting MQTT connection
MQTT: Connecting without credentials
MQTT connect failed, rc=-2
ERROR - Generic error

Looks like the connection succeeds but then it disconnects a few seconds later.
But when I use port 1883 the connection seems stable:
MQTT: Connecting without credentials
MQTT connected
Nuki start pairing
Nuki start pairing
Nuki start pairing
Nuki start pairing
Nuki start pairing
Nuki start pairing
Nuki start pairing
Nuki start pairing
Nuki start pairing

Btw I just noticed that test.mosquitto.org also offers TLS with a let's encrypt cert on port 8886 !
I tried it (with isrgrootx1.pem), after increasing the 1500 limit to 2200, and it works fine! Except from the fact that the unstable behaviour shown above also happens.

Increasing only TLS_CA_MAX_SIZE is enough? Should be fine, we just cleared ~5k of memory by removing CSS content.

I made a build with just TLS_CA_MAX_SIZE = 2200 and it works fine, tested with both

test.mosquitto.org:8886 (pretty useful, it uses let's encrypt)
my own mosquitto

Except from the "instability" issue I just noticed and reported above, which seems a whole different issue anyway.
I think it's worth making a release with TLS_CA_MAX_SIZE = 2200 at this point.

Not directly related, but could someone check this binary. Exchanged the mqtt library yet again, because the new also has problems, want to make sure encryption still works. This binary has a ca size of 2200.
nuki_hub-esp-mqtt-7.zip

Maybe I did something stupid, I took the latest release, replaced nuki_hub.bin and ran
esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0xe000 boot_app0.bin 0x1000 bootloader_qio_80m.bin 0x10000 nuki_hub.bin 0x8000 nuki_hub.partitions.bin

Then I got a crash while testing with test.mosquitto.org:8883
WiFi connected: <IP_ADDRESS>
Host name: nukihub
MQTT Broker: test.mosquitto.org:8883
Guru Meditation Error: Core  1 panic'ed (StoreProhibited). Exception was unhandled.

 CRC=0x7bd5c66f instead of 0x0
Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
load:0x40078000,len:13516
load:0x40080400,len:3604
entry 0x400805f0
E (457) esp_core_dump_flaKr��core dump partition found!
E (457) esp_core_dump_flash: No core dump partition found!
Using PIN 26 for network device selection
Network device: Builtin WiFi
MQTT without TLS.
*wm:AutoConnect
*wm:Connecting to SAVED AP: koko-isolatedlan
*wm:connectTimeout not set, ESP waitForConnectResult...
*wm:AutoConnect: SUCCESS
*wm:STA IP Address: <IP_ADDRESS>

Does this always happen, or is it a single crash?

Right now on every boot I get this, I can't even access the web interface to change the settings.

Flashing back v7.3 (and no other change in settings) it boots fine and manages to connect to test.mosquitto.org:8883 (although with the instability reported above).

How do I connect to test.mosquitto.org:8883 ? I changed broker, port and copy / pasted the certificate, but it can't connect.

You need this cert and no username/password.

Doesn't work ... just to make sure this into "MQTT SSL CA Certificate" right?

My fault I didn't switch to Wifi ...

I could reproduce the crashed. 8.0 is out, the crash is fixed.

Just tested it, the release looks awesome. Connects fine (with let's encrypt certs) and the disconnects are gone. Closing this, thanks @technyon.


[BUG] titleAlign have no effect

Category

[ ] Enhancement
[x] Bug
[ ] Question
[ ] Documentation gap/issue

Version
Please specify what version of the library you are using: [    3.3.1     ]
Please specify what version(s) of PowerPoint you are targeting: [    Office 365    ]
Expected / Desired Behavior / Question
titleAlign property on addChart method does not have any effect on the alignment of the chart title.
Observed Behavior
I expect the chart title to be aligned correctly.
Steps to Reproduce
Apply 'left', 'center', or 'right' value on the titleAlign property of a chart.

Unable to reproduce:
slide.addChart( pptx.charts.PIE, dataChartPieLocs,
    {
        x:9.8, y:0.5, w:3.2, h:3.2, dataBorder:{pt:'1',color:'F1F1F1'},
        showLegend: true,
        legendPos: 't',
        legendFontSize: 14,
        showLeaderLines: true,
        showTitle: true,
        title: 'Right Title & Large Legend',
        titleAlign: 'right', // this works
        titlePos: {x: 0, y: 0}
    });


Update README for installing Python 3.7

Need instructions for Mac and Linux

it appears that running "brew install python3" installs python 3.7.2 it on my mac, but it was already installed. it would be cool to verify that this works.

i find terrible non working install instructions on github all the time. it would be cool if we can test this. perhaps one of the new people?

I used the instructions from this answer https://askubuntu.com/a/1086830/219582 --
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install python3.7

which seemed to work fine.

Closing this since it doesn't seem urgent and we haven't had any activity in a while. Feel free to reopen if you want to work it!


unserialize(): Error at offset 0 of 13 bytes

Just a notice, but we see it in logging
Notice: unserialize(): Error at offset 0 of 13 bytes  in /home/user/domains/domain.com/public_html/.modman/magento/app/code/community/Adyen/Payment/Block/Form/Abstract.php on line 75

Hi Sean,
Something to ignore. Unserialize can go wrong if it is empty there is already a check if this failed to return empty array see code: https://github.com/Adyen/magento/blob/develop/app/code/community/Adyen/Payment/Block/Form/Abstract.php#L74-77
Regards,
Rik

@rikterbeek I'm guessing you're missing @shirtsofholl point...
It's creating log entries on the server side... maybe you want to check this before calling unserialize() instead.

Hi @frenck,
I think there comes a lot of overhead if you want to check if a string is serialized or not. see for example: https://gist.github.com/cs278/217091.
What you can do is add an operator so the notice will be ignored. http://www.php.net/manual/en/language.operators.errorcontrol.php
See as well this post:
http://stackoverflow.com/questions/1369936/check-to-see-if-a-string-is-serialized
But @ operators is discouraged by PHP codeSniffer so that is why we do not do this.
Regards,
Rik
Adhen

Hi! What is causing the unserialized strign anyways? I see it in our logs several times a day. Maybe the function creating the serialized data can instead of sending an empty string send a certain serialized variable, that when read means: I am empty?

2016-03-01T15:43:21+00:00 ERR (3): Notice: unserialize(): Error at offset 0 of 8 bytes  in app/code/community/Adyen/Payment/Block/Form/Abstract.php on line 75
Still exists in 2.5.3


warning message

I get this when I start up the program.  Please advise.
~/miniforge3/envs/voicechat2/lib/python3.11/site-packages/TTS/utils/io.py:54: FutureWarning: You are using torch.load with weights_only=False (the current default value), which uses the default pickle module implicitly. It is possible to construct malicious pickle data which will execute arbitrary code during unpickling (See https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models for more details). In a future release, the default value for weights_only will be flipped to True. This limits the functions that could be executed during unpickling. Arbitrary objects will no longer be allowed to be loaded via this mode unless they are explicitly allowlisted by the user via torch.serialization.add_safe_globals. We recommend you start setting weights_only=True for any use case where you don't have full control of the loaded file. Please open an issue on GitHub for any issues related to this experimental feature.
return torch.load(f, map_location=map_location, **kwargs)

Looks like you can just ignore the warning for now.


Update Action versions; use SHAs

Background
Several of our upstream Actions were outdated and were not pinned to known versions. This PR updates them and uses the known SHA.
Changes

Updates outdated Actions; uses the SHA for the latest version

Testing

CI Checks pass as expected

I'll open a PAT PR to ignore the Dependabot file.


Added website of bareos to the README.md

Many thanks for your work on all your the Ansible roles! I just want to share the idea to add direct links to the webpage of the used projects to make it easier for users to find the product details.

Great idea! I'll do that in meta/main.yml, which is used to generate the other files.

Implemented on all bareos roles.


Update README.md

Add "Rethinking How to Evaluate Language Model Jailbreak" in the Evaluation & Analysis Section.

thanks


SQL migration from: spotweb v<IP_ADDRESS>  to: spotweb v<IP_ADDRESS>

Hello,
I want to move user's and their settings from the mysql database to a new server
From: spotweb v<IP_ADDRESS>
To: spotweb v<IP_ADDRESS>
Is this possible? and if so, what the best way to do so?
I have already tried to export the table's users and usersetting and importing them in the new server but i cannot login using a test user, nor are their details shown:
Username
Firstname
Lastname
E-mail Address
Member of group seems also to be empty for the copied users.

You also need to export the 'settings' table as it contains the users' password salt. My suggestion would be to not migrate part of Spotweb, but:
Migrate everything, except

commentsxover
commentsfull
cache
spots
spotsfull
reportsxover

After you done this, run upgrade-db.php to ensure we have a consistent database, and then start retrieving spots again.
My real suggestion, however, would be to just do a full backup/restore. Databass don't have an expiration date and they don't go "bad", there usually is no need to start from fresh.

Yes, did exactly like you said and it works now.


Move and change natural_batches

Problem

Ideally would be able to benchmark insertion separately from popping
However, cannot easily do that with the current impl of PrioGraph::natural_batches

Changes
Breaking Change

Move existing PrioGraph::natural_batches to module level i.e. prio_graph::natural_batches
Change PrioGraph::natural_batches to operate on an already initialized graph to create batches in same manner as previously done
Make prio_graph::natural_batches insert then call graph.natural_batches()

Closed in favor of #82


Add ability to close notifications

Notifications display when certain actions or errors occur. These messages display at the top of the screen. Similar to how Anthem offers the ability to close these alerts, it might be beneficial to add this option to Autotune. Because these alerts persist until the page is reloaded, users may appreciate the ability to dismiss them without having to reload.

Navigate to autotune (https://autotune.voxmedia.com/)
From list of created projects delete one
Confirm deletion
Observe notification displays at the top of the screen
Note no way to dismiss without reloading

Anthem:

Autotune:

This is great big +1


bug

This occurs because you have not setup your own API key, the documentation hasn't been updated in a while so this could be clearer.
To get your own API key you will need to create an account at wallhaven.cc .
Once you have created your own account navigate to the top right of the screen and open up the user menu.
Click on the Settings -> Account section, there will be a section where you can create an API key.
Simply replace EnterYourAPIKeyHere on line 25 of the code with your API key and it should work.

This occurs because you have not setup your own API key, the documentation hasn't been updated in a while so this could be clearer.
To get your own API key you will need to create an account at wallhaven.cc .
Once you have created your own account navigate to the top right of the screen and open up the user menu.
Click on the Settings -> Account section, there will be a section where you can create an API key.
Simply replace EnterYourAPIKeyHere on line 25 of the code with your API key and it should work.

Oh, thank you for your fast feedback! I'll try it now

Oh, thank you for your fast feedback! I'll try it now

Oh, i see that i can't select purity and category from search...it sad, i just wanted to download animals pictures pack for my kid, anyway thank you

Oh, i see that i can't select purity and category from search...it sad, i just wanted to download animals pictures pack for my kid, anyway thank you

No Worries, Here is a version of search that has purity and category filters.
Hope this helps.
You will need to change the API Key in this file and then you can run "python searchwithcatandpurity.py" to use the new file.
searchwithcatandpurity.zip

No Worries, Here is a version of search that has purity and category filters.
Hope this helps.
You will need to change the API Key in this file and then you can run "python searchwithcatandpurity.py" to use the new file.
searchwithcatandpurity.zip

Oh my gosh! Thanks man!  Thank you very much!

Oh my gosh! Thanks man!  Thank you very much!


BigQueryIO: add clarification about authorized views (doc only pr)

When reading from authorized view with BigQueryIO, we need to use withQueryLocation to avoid 403 errors trying to determine the location from the metadata of the dataset containing the view's underlying tables (users with access to the view will not have access to that metadata).
This pull request adds some clarifications to the documentation of BigQueryIO.
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[X] Choose reviewer(s) and mention them in a comment (R: @username).
[X] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[X] If this contribution is large, please file an Apache Individual Contributor License Agreement.

Post-Commit Tests Status (on master branch)

Lang
SDK
Apex
Dataflow
Flink
Gearpump
Samza
Spark

Go

---
---

---
---

Java

Python

---

---
---

XLang
---
---
---

---
---
---

Pre-Commit Tests Status (on master branch)

---
Java
Python
Go
Website

Non-portable

Portable
---

---
---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

@jkff

Sorry, I'm not really active on Beam these days - @chamikaramj could you take a look?

LGTM. Thanks.


adding sat name to inscription page

fixes #3199
I didn't add the degree, though.  Please let me know if that is still desired and if you think it should be in a separate PR or not.

I think degree is probably not worth it. I don't think anyone aside from me has ever even mentioned degree notation 😅 Otherwise this looks good to me. @raphjaph what do you think?


[tensorflow] ARM support

Hi,
It seems that tensorflow currently doesn't support ARM, but according to https://www.tensorflow.org/lite/guide/build_cmake_arm maybe there are some options there.
I wonder what could be done to be able to have a lightweight version of tensorflow that can execute a network on ARM?
I can do the training on intel cpu, but I'd like to execute the network on ARM device as well.
Thank you very much!
Regards,
Alex

@abique Thanks for posting this issue,
We don't support currect that build TensorFlow Lite through vcpkg'cmake on arm machine, sorry. 😢
However TensorFlow offically supports cmake to build TensorFlow Lite progrect on arm machine.
You can refer to the complete cmake project documentation provided by them.
References：https://www.tensorflow.org/lite/guide/build_cmake

currectly ? currently or correctly ? or both ?
I mean, the port file is using bazel, if I add some options to make the entire bazel target tensorflow-lite or tensorflow with android, I will probably work won't it ?
I'll will try that.
fingers crossed we don't get problems with the freaking libstdc++ from GNU versus LLVM used by Android.
Otherwise someone is going to have to learn how to create cross-tools on bazel, or use such things one of the AQuery to convert it to CMake.

@Luiz-Monad We very much welcome you to modify this function. Could you submit a PR to try it out? we will help you. :)

I'm currently on vacation, I'll continue it when I return.
But thanks for responding.

From: Frank @.>
Sent: Monday, October 24, 2022, 5:07 AM
To: microsoft/vcpkg @.>
Cc: Luiz Felipe Stangarlin @.>; Mention @.>
Subject: Re: [microsoft/vcpkg] [tensorflow] ARM support (Issue #24139)
@Luiz-Monadhttps://github.com/Luiz-Monad We very much welcome you to modify this function. Could you submit a PR to try it out? we will help you. :)
—
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/vcpkg/issues/24139#issuecomment-1288594497, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABC44CMR6E2F4QDFCUUV6JLWEY7TZANCNFSM5TNIG6FQ.
You are receiving this because you were mentioned.Message ID: @.***>


LWIP and axTLS connection

I would like to use your axTLS library. In the old Espressif IoT example this function was used to create the ssl client object:
EXP_FUNC SSL *STDCALL ICACHE_FLASH_ATTR SSLClient_new(SSL_CTX *ssl_ctx, struct tcp_pcb *SslClient_pcb, const
        uint8_t *session_id, uint8_t sess_id_size)
{
    SSL *ssl = ssl_new_context(ssl_ctx, SslClient_pcb);
    ssl->version = SSL_PROTOCOL_VERSION_MAX;
    if (session_id && ssl_ctx->num_sessions) {
        if (sess_id_size > SSL_SESSION_ID_SIZE) {
            ssl_free(ssl);
            return NULL;
        }
        os_memcpy(ssl->session_id, session_id, sess_id_size);
        ssl->sess_id_size = sess_id_size;
        SET_SSL_FLAG(SSL_SESSION_RESUME);
    }
    SET_SSL_FLAG(SSL_IS_CLIENT);
    do_client_connect(ssl);
    return ssl;
}

Shall I use that one  or there is a better way to do it with raw LWIP with axTLS?

#5 is replacing this ticket.


Arch varnish

this started as a PR to build varnish packages for arch, but I had to fix a few things along the way. Notably, digest and pesi don't compile/test cleanly and need local patches until the fixes are upstreamed. Also, I figured out why tests didn't fail previously: set -e was thwarted by && (see https://mywiki.wooledge.org/BashFAQ/105 for some fun)

By the way, "digest" and "pesi" are used for testing because they require additional packages and special specifications at build time, and are suitable for testing custom builds.
However, I can't think of any other VMODs that would be suitable, so if you have such a package, you can replace it with that one :)

https://mywiki.wooledge.org/BashFAQ/105

Interesting :)


[HB-6722] Google Bidding <IP_ADDRESS>.4

Could y'all take a look at the new commit? We're offloading another call. Thanks.


MetaSound Prefix? MS_ or A_?

My personal preference is MS_ but don't mind either way.
MS_
Pros:

Most prefixes follow UE naming.
Its unique

Cons:

MSPresets is a popular naming convention for Quixel so could generate some confusion/

A_
Pros:

They function similar to Sound Cues
One character on already long names

Cons:

Metasounds can do a lot more than cues so might not be the most appropriate

Personally, I use MS, but I am now thinking of doing MSS for Metasound Sources and MSP for Metasound Patches.
This allows me to look for all Metaasounds with MS, and differentiate easily in the search between sources and patches when I need to.
Metasound and Audio/SoundBases are in my opinion different enough to have this difference, I usually look for either Audio files or Metasounds, rarely both of them together, so I will likely keep naming my assets like this

P.s. I'll probably look for further differentiation between MetaSound Preset and Patches, will be interesting to know other sound people opinion on these


[CRITICAL][SECURITY] database passwords are set to a hard-coded password, should be random and undisclosed

We currently assume trust in the local deployments.


[Bug]: py_test does not work with bazel coverage

What happened?
Using bazel coverage with an aspect py_test target always results in no coverage data being collected.
Version
Development (host) and target OS/architectures:
Output of bazel --version: aspect 5.10.1
Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file: Current latest releases. See repro linked below.
Language(s) and/or frameworks involved: Python
How to reproduce
Please see https://github.com/jab/aspect-py-test-coverage-bug for a minimal reproduction.

https://github.com/aspect-build/rules_py/issues/303 seems related - I see you aren't using a py_pytest_main so I'm not sure if the workaround there is useful.

I didn't use py_pytest_main so as to provide a more minimal reproduction. But I am interested in experimenting with py_pytest_main more at some point.
I did take a quick a look at #303, but since I prefer not to use pytest-cov, it didn't seem like it would apply to me. (I agree with the reasons in https://www.youtube.com/watch?v=sPgvHGkmd0U for preferring to use coverage.py to invoke my test runner directly, as bazel coverage does with py_test targets.)


Unknown Hook is existed in report

In my report, it exists an Unknown Hook which I'm not sure what it is and how can skip it

I think I find the solution for this. I am using Mocha.
disableMochaHooks: true
https://webdriver.io/docs/allure-reporter.html

I think I find the solution for this. I am using Mocha.
disableMochaHooks: true
https://webdriver.io/docs/allure-reporter.html

No, it does not work in my case mate

Please make sure you run WebdriverIO v5. This repo contains the code of v4 which is not maintained anymore.

Please make sure you run WebdriverIO v5. This repo contains the code of v4 which is not maintained anymore.

Yeah confirm that I npm i the lastest wdio


Is it possible to get the event guests too?

Hi, thanks for this amazing plugin.
Is it possible to show the guest list with their responses (accepted or not) under every event?
Tks!

I've poked at this before and it should be doable, yes. I'd punted on it because it was part of #19 which went further but this would be a relatively easy step towards that.

Thank you!

Shameless plug: Am using another plugin, https://github.com/cloud-atlas-ai/obsidian-client to build this!

😀

@andrecarlucci - ideas in terms of the participant list formatting?

@muness I'm new to obsidian, but this is the thing I would like to have:
Every day, I open my daily note and get the list of meetings. This part works really well (thanks!) and I formatted the list to use proper Headings so I can reference that section elsewhere.
I have one note that represents a Person. All sorts of information there.
In every meeting, I interact with other people. From the meeting guests, I would like to create a subheading for each person, linking it with their Personal Note (a note I create for each Person I interact with). Now, there is the challenge of mapping names and emails with the names I use for the personal notes, but that's another thing.
For the feature, wouldn't be better to just have those "models" as a Json structure where Plugin users could template the output the way they want? You document the json structure with the plugin and everything else becomes configuration.
Wdyt?

For the feature, wouldn't be better to just have those "models" as a Json structure where Plugin users could template the output the way they want? You document the json structure with the plugin and everything else becomes configuration.

That's exactly how it works. The built-in uses the same object as the community supplied templates and is documented in the IEvent interface.
In the PR implementing the participant list, I added a guest interface and an array of guests to an event: https://github.com/cloud-atlas-ai/obsidian-ics/blob/dad4fc23047faa095bf486ad13f2c7173188ac47/src/IEvent.ts
@andrecarlucci : Any suggestions for the json structure?

Nice! I will experiment with it. Thank you!


User Guide

Hello,
I found that this extension might suit an experiment that I am working on.
However, I cannot find a way to get started. How do you use the extension in vscode?
Thank you.

i have same issue that how can i start extensions


Write a program to Use ADC1, ADC2 and ADC3 in Triple interleaved mode and DMA mode2

Out of curiosity, did you manage to do this?

I did use the triple interleaved mode and dma mode but not with the 6msps...
Actually I forgot to remove that...sorry

No issue! Even out of curiosity, could you point to the code you used for the triple interleaved mode? Thanks in advance!

Sure...
Driver: STM32F4-Dev -> Project_templates -> stm32f4_bsp_template ->Drivers -> BSP-> stm32f4_discovery_adc.c
Example : STM32F4-Dev -> Example Projects -> ADC -> Eg6 -> Src ->main.c


Further standardization on camel case for methods and Pascal case for classes

There are still classes and interfaces such as DSOLModel, AbstractDSOLModel, AbstractDEVSModel, etc. that can be renamed to use Pascal case.
Also, the package names nl.tudelft.simulation.dsol.formalisms.devs.ESDEVS and nl.tudelft.simulation.dsol.formalisms.devs.ESDEVS.exceptions in dsol-core can be renamed to contain lower case.

All classes, with a few exceptions such as XYChart, XYDataset have been renamed. XY is not an abbreviation, but the X and Y both have a separate meaning. They are, in a sense, a one-letter word. The same holds for the MM1 demo models. The 'M' and 'M' are not an abbreviation, but each stand for the fact the exponential interarrival times and service times are used.


 Closes #284 and #231

As laid out in #231, I think this is a terrible idea regarding unlatch (and contrary to HA's architectural decisions).
Regarding lock'n'go I don't see the use-case? Why would anyone use a virtual button in HA for instead of the physical one on the lock?

Personally, I'm in total agreement with this PR.

As laid out in #231, I think this is a terrible idea regarding unlatch (and contrary to HA's architectural decisions).

You meant #284 probably.

Regarding lock'n'go I don't see the use-case? Why would anyone use a virtual button in HA for instead of the physical one on the lock?

I rarely touch the lock, I always use the phone: when entering home and when leaving. I already have a button for that. So having an auto-discovered button is easier to configure.

Yeah, #284.
Well, if people really want to use a virtual button for lock'n'go, I have strong aversion against that change. I think it is likely a niche thing, but I could of course be wrong about that.
I do maintain that any button entity that triggers an unlatch command should be disabled by default, though, if @technyon decides to include them after all. (By disabled I mean the enabled_by_default property should be set to false in the discovery payload, not a config option in the web interface.)

if people really want to use a virtual button for lock'n'go, I have strong aversion against that change

what does that change cause that you don't like? it's an easier way to configure a button if a user wants to configure it. I really can't understand the rationale of your aversion, let alone the fact that it is a STRONG aversion. It doesn't change anything, it doesn't remove anything, it adds something that is useful to users who want to use the lock'n'go service in a button.

I do maintain that any button entity that triggers an unlatch command should be disabled by default

and why should it be disabled by default? because users are stupid? again, you're being paternalistic: I'm a user and I would love to have this button enabled in autodiscovery, why should I have it disabled by default? In order to have a button, users have to still put it on the lovelace card, it's not that automagically it appears and they click it not knowing what it does.

Take into account that users of Nuki Hub are not basic users...it's not a zigbee light...they're using a microcontroller, they update the firmware, they use MQTT, etc. I think they can handle a button better than you think.

if people really want to use a virtual button for lock'n'go, I have strong aversion against that change

what does that change cause that you don't like?

Sorry, typo. I meant to say no strong aversion.


Cannot include different versions of the framework 'FBLPromises.framework'

I have this problem when using it with Plugin.FirebasePushNotification in Xamarin Form iOS Project. Please help me

When you look into the package Plugin.FirebasePushNotification, you can see the dependency is old version of firebase. I think this is the reason why you have this issue.
Xamarin.iOS 1.0

[Xamarin.Firebase.iOS.CloudMessaging](https://www.nuget.org/packages/Xamarin.Firebase.iOS.CloudMessaging/) (>= 4.3.0)

And Xamarin.Firebase.iOS.CloudMessaging 4.3.0 depends on
Xamarin.iOS 1.0

[Xamarin.Build.Download](https://www.nuget.org/packages/Xamarin.Build.Download/) (>= 0.10.0)
[Xamarin.Firebase.iOS.Core](https://www.nuget.org/packages/Xamarin.Firebase.iOS.Core/) (>= 6.6.6)
[Xamarin.Firebase.iOS.Installations](https://www.nuget.org/packages/Xamarin.Firebase.iOS.Installations/) (>= 1.1.1)
[Xamarin.Firebase.iOS.InstanceID](https://www.nuget.org/packages/Xamarin.Firebase.iOS.InstanceID/) (>= 4.3.3)

In BarcodeScanner, it is using the latest version.
[Xamarin.Firebase.iOS.Core](https://www.nuget.org/packages/Xamarin.Firebase.iOS.Core/) (>= <IP_ADDRESS>)

So for the possible fix, I think you could try to update the cloud message library or use the old version of the barcode scanner...
Maybe be BarcodeScanner.XF 5.0.9 would work
https://www.nuget.org/packages/BarcodeScanner.XF/5.0.9
Otherwise, <IP_ADDRESS> should work as it is using the same version of Xamarin.Firebase.iOS.Core
https://www.nuget.org/packages/BarcodeScanner.XF/<IP_ADDRESS>

Thanks, This problem solved with your method


Failed at the<EMAIL_ADDRESS>postinstall script

When running the command "npm install" after clonning zenbot, an issue keeps appearing, preventing me from succesfully installing the tool.
Find attached the mentioned log
[npm-debug.txt](https://github.com/carlos8f/zenbot/files/1180416/npm-debug.tx
Anyone can help?

(I Think) you don't have the latest version of node installed. see 624 error node v6.11.1 625 error npm  v3.10.10. try upgrading to node 8.

me too have same problem, already install latest version of node,
before they add forex.analytics, i'm already succsesfull install this zenbot, but after they add forex.analystic it's not work anymore, any solution ?

Are you both Windows users? @angelsalinasm @newb1ez

I'm on Ubuntu and I think receive a related error message now after updating to master
module.js:487
throw err;
^
Error: Cannot find module 'forex.analytics'
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (/root/zenbot/commands/train.js:9:17)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)

@webworker01 do npm install forex.analytics and that should fix your issue.
However, I think there's a few more issues regarding the btce module still being present.

@shed909 thanks, that fixed up the issues after I updated all dependencies.  Will try to do that anytime I update from master

@DeviaVir i'm already installed what you mention in my issues before, and it still occur when i try to update it to master, but it's not happen when i installed it before the latest version, maybe we should have python installed before ??

Sounds like we broke Windows support in that case, @newb1ez you should still be able to run it as a docker.

I'm superseding this by https://github.com/carlos8f/zenbot/issues/420, please move relevant discussions there


Add base64 utility

Libsodium seems to have different Base64 utility than .NET . Thought it would be a good idea to have libsodium's version of Base64.

Thanks for contributing, @Nithilim! 👍


Update README to run dep from GOPATH

This ensures that the dep command gets added to the path.

@nealedj also your commit message titles are too long.
See how they truncate and get wrapped.


set_timeout_pinned moves self?

Cut-down example:
pub async fn foobar<UR, DW>(upstream_reader: UR, downstream_writer: DW)
where
    UR: AsyncRead + Unpin + Send + 'static,
    DW: AsyncWrite + Unpin + Send + 'static,
{
    let upstream_reader = TimeoutReader::new(upstream_reader);
    pin!(upstream_reader);
    let downstream_writer = TimeoutWriter::new(downstream_writer);
    pin!(downstream_writer);

    let timeout = std::time::Duration::from_secs(180);

    upstream_reader.set_timeout_pinned(Some(timeout));

    tokio::io::copy(&mut upstream_reader, &mut downstream_writer).await;
}

This doesn't compile:
295 |     pin!(upstream_reader);
    |     --------------------- move occurs because `upstream_reader` has type `Pin<&mut TimeoutReader<UR>>`, which does not implement the `Copy` trait
...
301 |     upstream_reader.set_timeout_pinned(Some(timeout));
    |                     --------------------------------- `upstream_reader` moved due to this method call
302 |
303 |     tokio::io::copy(&mut upstream_reader, &mut downstream_writer).await;
    |                     ^^^^^^^^^^^^^^^^^^^^ value borrowed here after move
    |
note: this function takes ownership of the receiver `self`, which moves `upstream_reader`
   --> /home/agrover/git/tokio-io-timeout/src/lib.rs:129:31
    |
129 |     pub fn set_timeout_pinned(self: Pin<&mut Self>, timeout: Option<Duration>) {
    |                               ^^^^

You can use Pin::as_mut to "reborrow" the pin across multiple calls.
Alternatively, you can set the timeout before pinning the writer with set_timeout instead.


BaseField: the parameters required and nullable have counter-intuitive results

Hi, first off, thanks for writing and maintaining this library!
The code below shows a very basic jsonmodel with two different permutations of required and nullable for BaseField.
The two problems are:

nullable is not properly enforced - even if a field is not required, it should be possible to deny null values. (required=false, nullable=False).
It seems impossible to enforce the existence of a value, but still allow nulls. (required=True, nullable=True).

I looked through the documentation and examples, and couldn't find a way to achieve these two goals, although I could have missed something.
Example (tested with jsonmodels 2.5.1):
from jsonmodels import models, fields, errors, validators

# Problem 1: Nullable is not enforced
class Foo(models.Base):
    bar = fields.IntField(required=False, nullable=False)

Foo(bar=None)  # This should fail because nullable=False, but instead this passes validation.

# Problem 2: It's impossible to enforce { foo: null } as a valid value.
class Foo(models.Base):
    bar = fields.IntField(required=True, nullable=True)

Foo(bar=None)  # This fails validation with Field is required!, but should succeed because nullable=True.

Also, there doesn't appear to be much documentation on nullable.

Just to add to this - if the jsonmodel is used to produce a jsonschema, and that schema is used to validate json, then nullable does have an effect: if nullable is False, null values in the json will throw an error. So it seems that this behavior is inconsistent between the jsonschema the jsonmodel creates and the jsonmodel's own expectations.

Hey, thanks @vaughnkoch - will dive into this problem during next days