[1.1 Run the Demo] Cannot get SDL demo test to run successfully

I'm trying to run the demo test with the LED colors (4.2-paho...), but I run into errors after installing the Python package. I'm not sure how to resolve it as I followed all of the instructions before this.

@uznab16 can you include the full stack trace as text? Hard to see what's going on based on what you shared.

Also, the public demo was offline for a bit. Maybe try again?

Empty                                     Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/self_driving_lab_demo/utils/observe.py in mqtt_observe_sensor_data(R, G, B, atime, astep, gain, pico_id, session_id, timeout, queue_timeout, client, username, password, hostname, port, tls, mongodb, extra_info)
105         try:
--> 106             sensor_data = sensor_data_queue.get(True, queue_timeout)
107         except Empty as e:
6 frames
/usr/lib/python3.10/queue.py in get(self, block, timeout)
178                     if remaining <= 0.0:
--> 179                         raise Empty
180                     self.not_empty.wait(remaining)
Empty:
The above exception was the direct cause of the following exception:
Empty                                     Traceback (most recent call last)
 in <cell line: 31>()
29 )
30
---> 31 sdl = SelfDrivingLabDemoLight(
32     autoload=True,  # perform target data experiment automatically
33     target_inputs=target_inputs,  # if None, then defaults to random color using target_seed attribute
/usr/local/lib/python3.10/dist-packages/self_driving_lab_demo/demos/light.py in init(self, random_rng, target_seed, target_inputs, rest_seconds, max_power, autoload, simulation, simulator, observe_sensor_data_fn, observe_sensor_data_kwargs)
158         >>> demo.evaluate(dict(R=50, G=150, B=250))
159         """
--> 160         super().init(
161             random_rng=random_rng,
162             target_seed=target_seed,
/usr/local/lib/python3.10/dist-packages/self_driving_lab_demo/core.py in init(self, random_rng, target_seed, target_inputs, rest_seconds, max_power, autoload, simulation, simulator, observe_sensor_data_fn, observe_sensor_data_kwargs)
75         if autoload:
76             # must come after creating sensor attribute
---> 77             self.observe_target_results()
78
79     def observe_sensor_data(self, parameters):
/usr/local/lib/python3.10/dist-packages/self_driving_lab_demo/core.py in observe_target_results(self)
107
108     def observe_target_results(self):
--> 109         self.target_results = self.observe_sensor_data(self.get_target_inputs())
110         if self.target_results is None or (
111             self.target_results.get("error", None) is not None
/usr/local/lib/python3.10/dist-packages/self_driving_lab_demo/core.py in observe_sensor_data(self, parameters)
82         sleep(self.rest_seconds)
83
---> 84         return self.observe_sensor_data_fn(
85             **parameters, **self.observe_sensor_data_kwargs
86         )
/usr/local/lib/python3.10/dist-packages/self_driving_lab_demo/utils/observe.py in mqtt_observe_sensor_data(R, G, B, atime, astep, gain, pico_id, session_id, timeout, queue_timeout, client, username, password, hostname, port, tls, mongodb, extra_info)
106             sensor_data = sensor_data_queue.get(True, queue_timeout)
107         except Empty as e:
--> 108             raise Empty(
109                 f"Sensor data retrieval timed out ({queue_timeout} seconds)"
110             ) from e
Empty: Sensor data retrieval timed out (60 seconds)

I am getting the same exact error

Could you try one more time? We've been having a bunch of issues with certificates, but I think we have a fix for these.
I just verified with https://huggingface.co/spaces/AccelerationConsortium/light-mixing, but maybe it's something specific to the notebook, in which case I'll reproduce.
Can you also verify that it works correctly if you set simulation=True?
Sorry for the trouble with this. Also, I've updated my notifications for this repo so hopefully I see these sooner.

I see that the same error is occurring in the unit tests: https://github.com/sparks-baird/self-driving-lab-demo/actions/runs/11602495968/job/32307659409#step:5:1.
Since the device appears to be online and accessible through the hugging face spaces app, I'll need to debug a bit more to figure out the source of the issue.

I just ran parts of https://colab.research.google.com/github/sparks-baird/self-driving-lab-demo/blob/main/notebooks/4.2-paho-mqtt-colab-sdl-demo-test.ipynb#scrollTo=N88u4HkItJoj and it seems to be ok.

Are you doing this with your own microcontroller, or are you trying to access the public test demo?

@sgbaird I tried to run the microcontroller (I have my own) one more time and still got the same error. I then altered the code to make simulation=True (line 36) and the code compiled, BUT the LED light did not turn on or turn purple-ish.
Leaving simulation=True and letting it compile, I ran the sdl.observe_sensor_data code and although it compiled, the LED did not turn on. Am I doing something wrong?

@uznab16 maybe have a look at https://ac-microcourses.readthedocs.io/en/latest/courses/hello-world/1.1-running-the-demo.html.
Can you copy your output from Thonny or wherever you're running the microcontroller script and paste it here?
Are you trying this with the default public test broker or your own broker?
Due to some recent changes, you'll also need to generate your own certificate (see instructions in linked microcourse page).

@sgbaird This is the feedback I get after running main.py in Thonny:

%Run -c $EDITOR_CONTENT

MPY: soft reboot
RSA parameters (keep private):
{'e': 65537, 'bits': 256, 'd':<PHONE_NUMBER>3089246402076931315474481926489343369511888292782728727795363801233, 'n':<PHONE_NUMBER>1312645780827169534086734687139341511602084818941201465477938020457}
PICO_ID: ###
Unencrypted PICO ID (keep private): ###
Encrypted PICO ID (OK to share publicly):<PHONE_NUMBER>2947404908625381720892202114024157235484360548200632962736012813675
Truncated, encrypted PICO ID (OK to share publicly):<PHONE_NUMBER>
MQTT prefix: sdl-demo/picow/e6632c8593733f30/
MAC address: d8:3a:dd:fe:99:8d
connected
ip = <IP_ADDRESS>
However, a few minutes later, it will show this:
Traceback (most recent call last):
File "", line 99, in
File "ntptime.py", line 1, in settime
File "ntptime.py", line 1, in time
OSError: [Errno 110] ETIMEDOUT
Retrying ntptime.settime(), still with pool.ntp.org
Traceback (most recent call last):
File "", line 104, in
File "ntptime.py", line 1, in settime
File "ntptime.py", line 1, in time
OSError: [Errno 110] ETIMEDOUT
Retrying ntptime.settime() with time.google.com
Traceback (most recent call last):
File "", line 109, in
File "ntptime.py", line 1, in settime
File "ntptime.py", line 1, in time
OSError: [Errno 110] ETIMEDOUT
PROBLEM IN THONNY'S BACK-END: Exception while handling 'Run' (ConnectionError: EOF).
See Thonny's backend.log for more info.
You may need to press "Stop/Restart" or hard-reset your MicroPython device and try again.
Process ended with exit code 1.
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Traceback (most recent call last):
File "main.py", line 24, in
KeyboardInterrupt:
MicroPython v1.23.0 on 2024-06-02; Raspberry Pi Pico W with RP2040
Type "help()" for more information.
MPY: soft reboot
MicroPython v1.23.0 on 2024-06-02; Raspberry Pi Pico W with RP2040
Type "help()" for more information.

Process ended with exit code<PHONE_NUMBER>.
The actual pico_ID is listed. I just want to post it here. I'm sorry; I don't know what you mean by broker. I have the hivemq-com-chain.pem file from the microcourse included in the sdl_demo folder and I highlighted it as well in the "Upload to /" step. Just now, I have to create my own certificate by creating a HiveMQ account followed by a Serverless Cluster. Then I used the URL from the cluster as my host name to run the code in 7.2.1-hivemq-openssl-certificate.ipynb. I then uploaded the certificate to the Pico and reran main.py in Thonny. The output is generally the same as above. Sometimes I do have to press the "Stop" button. Other times, I get this:
Traceback (most recent call last):
File "main.py", line 44, in
KeyboardInterrupt:
MicroPython v1.23.0 on 2024-06-02; Raspberry Pi Pico W with RP2040
Type "help()" for more information.
MPY: soft reboot

If you can reproducible get the following error
Traceback (most recent call last):
File "", line 99, in
File "ntptime.py", line 1, in settime
File "ntptime.py", line 1, in time
OSError: [Errno 110] ETIMEDOUT

and you've been able to connect to the WiFi as you showed, then it seems likely it's an issue with the WiFi you're using.
Could you comment a bit on that setup? Are you able to test with any other WiFi's for debugging?

I'm using my company WiFi which may present some security issues. I will try and Hot Spot my personal phone to see if it solves the issue.

@sgbaird Using my phone's hot spot has solved the issue. I'm able to run the code and see the LED turn on. Thank you, Sterling!


Parser issue - NullReferenceException

When the type and property have the same name the parser takes the type instead of property.
Sample:
        public class Test
        {
            public int Id { get; set; }

            public string Value { get; set; }
        }

        public class Test2
        {
            public Test Test { get; set; }
        }

        .
        .
        .

        IQueryable<Test2> queryable = ...;
        var result = queryable.Where(parsingConfig, "Test.Id > 1");  // throw System.NullReferenceException

What if you use
queryable.Where(parsingConfig<EMAIL_ADDRESS>> 1");

It worked! But I have no way to force the use of this syntax. I solved it with a small change. Pull request #357

@konzen can you take a look at my review comment please?

Changed

Code merged to master branch, closing this one.


Feature: Market configuration

I have 2 things that needed to be implemented:

Configurable price delta in "Top offer +/- (delta)"
Configurable tax (currently 0% because there is no tax)

Added in https://github.com/nahkd123/stonks/commit/95ccf4d5a46ec278db12184b6025ce61e8fcdd48


I have a problme when i try to download the manga_ocr_base from huggingface.co, and i fail to get the access

the error information is like this way:
requests.exceptions.ProxyError: (MaxRetryError("HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /kha-white/manga-ocr-base/resolve/main/preprocessor_config.json (Caused by ProxyError('Unable to connect to proxy', SSLError(SSLZeroReturnError(6, 'TLS/SSL connection has been closed (EOF) (_ssl.c:1131)'))))"), '(Request ID: c****
i thought it's the problme of my VPN so i want to download it and put the model into the right place in file, but i don't know where to place the manga_ocr_base

download https://huggingface.co/kha-white/manga-ocr-base/tree/main ==>D:/mangaocr/manga-ocr-base，run.py pretrained_model_name_or_path='D:/mangaocr/manga-ocr-base',


Send messages from scheduler to tasks

Description
This PR enables the scheduler to send messages to particular tasks. More precisely, messages are sent to workers via the RPC message system which dispatches them to a specified task. Running tasks
can access a multiprocessing.Queue object (named scheduler_messages, set via the StatusReporter) which stores incoming messages. Users can implement custom behavior to react to certain messages (see code example below).
The new config scheduler.send_messages controls whether a scheduler is capable of sending messages in the first place. By defining accepted_messages a task can define whether it accepts messages, independent of the scheduler the worker is talking to. The message button is only visible in the UI when the scheduler is able to send messages, and the task can receive them (see screenshots).
There is also a simple "respond" mechanism so tasks can immediately respond to incoming messages which is shown in the scheduler.
"Send message" action button:

Message prompt:

Awaiting response:

Response arrived:

When Await response is not checked, the prompt closes upon Send. Otherwise, the prompt remains open and a response container is shown. This triggers a simple polling to fetch and display the actual response.
Motivation and Context
There are many use cases when the messaging could be useful. One particular example is machine learning. Our training tasks publish their current results to the scheduler. Although they contain predefined termination criteria, it could be nice to manually trigger graceful training termination if the training stagnates:
class Training(luigi.Task):

    def requires(self):
        ...

    def output(self):
        return luigi.LocalTarget("my_ml_model.pb")

    def run(self):
        # setup the training
        model = ...

        for _ in training_loop():
            # training stuff with internal termination criterion
            model.train(...)

            # check messages
            if not self.scheduler_messages.empty():
                msg = self.scheduler_messages.get()
                if msg.content == "terminate":
                    break
                else:
                    msg.respond("unknown message")

        # save the model
        model.save(self.output().path)

Have you tested this? If so, how?
Yep, I added unit tests and docs.

Are you happy with this now? Is it ready to merge? Is it reasonably tested?

Yep, I'm happy with the PR. Docs and tests should be fine.

Thanks!! This is so cool!


Food101 new dataset api

In this PR, I migrate the Food101 dataset to the new datasets API. For the code, I have got some inspiration from the dtd.py new dataset particulary for the Demultiplexer usage.
The pre-commits and food101 tests seem to work locally, hope that's the case within the CI/CD.
Any reviews are welcome, many thanks in advance. :smiley_cat:

@pmeier CLA is uploaded, let me know if I need to finish anything else. Thanks for your help and guidance.

@yassineAlouini I see you are updating the PR from the current main branch. Please let me know if the PR is ready for another round of review.

Also, don't worry about CI at the moment. There is a larger outage.

@pmeier Mock data should be good now. Ready for a final check I guess. :ok_hand:


Bug fix for: "ImportError: cannot import name 'FileWriter' from 'tensorboard'"

Bug fix for ImportError: cannot import name 'FileWriter' from 'tensorboard' https://github.com/hanzhanggit/StackGAN-Pytorch/issues/16

@hanzhanggit can you please review the changes and accept if necessary


Add Injector

Hey, thanks for the contribution and apologies for the delay. I decided to wait a little bit for the library to mature. I see there's been very little movement in the repo since the PR, so I'm closing this for now.


Issue with context typing

Hey @rohit-ganguly  I bumped into an issue today because of this typing:
interface AIChatCompletionOptions {
    context?: object;
    sessionState?: unknown;
}

Because of the object type, you can't index it on arbitrary property as TypeScript reports an error. Some linters like @typescript-eslint reports an error because of this type too.
The same issue also exists with the other context occurrences in AIChatCompletion, AIChatCompletionDelta, AIChatMessage, AIChatMessageDelta.
I recommend updating the type from object to Record<string, unknown> which solves the issues above. This is a common type used in TS for generic indexable objects.

My bad, I was using an older alpha version and npm outdated doesn't report me the newest version (which might be an issue!).
The latest version has the fixed types :)

Reopening, as something's weird: I downloaded the latest beta as it still has object for the context type, event though the source code has the fixed code: https://github.com/microsoft/ai-chat-protocol/blob/main/sdk/js/packages/client/src/model/model.ts#L8
@rohit-ganguly would it be possible to publish a new version with the fixed types? It seems the commit that fixes it was made after the currently published version on NPM.


ImportError: djangorestframework_jwt needs to be installed

When using rest_framework_simplejwt, I am getting ImportError: djangorestframework_jwt needs to be installed when I hit login or registration.
INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'rest_framework',
    'rest_framework_simplejwt.token_blacklist',
    'dj_rest_auth',
    'django.contrib.sites',
    'allauth',
    'allauth.account',
    'dj_rest_auth.registration',
    ...
]

REST_FRAMEWORK = {
    # Use Django's standard `django.contrib.auth` permissions,
    # or allow read-only access for unauthenticated users.
    'DEFAULT_PERMISSION_CLASSES': [
        'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly'
    ],
    'DEFAULT_AUTHENTICATION_CLASSES': (
        'rest_framework_simplejwt.authentication.JWTAuthentication',
    )
}

REST_USE_JWT = True

Thank you for reporting this issue @mjlabe.  Simple JWT support was merged last week, but it has not been released to PyPi yet. So the docs are a little ahead of the release.
I'll go ahead and revert the docs for now. This task needs to be completed before releasing.

That what I assumes based on the commits, but I was hopeful when I saw the
docs. Is there an ETA for the Pypi release?
Thanks.
On Tue, Mar 24, 2020, 6:30 PM Michael<EMAIL_ADDRESS>wrote:

Thank you for reporting this issue @mjlabe https://github.com/mjlabe.
Simple JWT support was merged last week, but it has not been released to
PyPi yet. So the docs are a little ahead of the release.
I'll go ahead and revert the docs for now. This task
https://github.com/jazzband/dj-rest-auth/issues/12 needs to be
completed before releasing.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jazzband/dj-rest-auth/issues/13#issuecomment-603538210,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AG3DIIP5NJNX4FXFZIB5R53RJEX67ANCNFSM4LS5ZH2Q
.

In the next 1-3 days.

I've pushed it to PyPi as 1.0.0.

I'm still getting this issue

Solved it for me!

Help, it is mandatory to install "rest-framework-simplejwt" so I do not use it, I am following the documentation and at the moment of "migrate" it indicates "ImportError (" rest-framework-simplejwt needs to be installed ").

Can you post you INSTALLED_APPS in settings?

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django.contrib.sites',

    # 3rd party
    'allauth',
    'allauth.account',
    'allauth.socialaccount',
  ...,
    'rest_framework',
    'rest_framework.authtoken',
    'dj_rest_auth',

    # Local apps
    ...,
]

REST_FRAMEWORK = {
    # Use Django's standard `django.contrib.auth` permissions,
    # or allow read-only access for unauthenticated users.
    'DEFAULT_PERMISSION_CLASSES': [
        'rest_framework.permissions.IsAuthenticated'
    ],
    'DEFAULT_AUTHENTICATION_CLASSES': [
        'rest_framework.authentication.TokenAuthentication',
    ]
}

Please post your entire stack trace @edgarmacas


Ensure we do have an error before testing it

Fix panic when no error is returned

/lgtm, thanks!


Announcement: new maintainer wanted

Hello all,
I've realized that I do not have time to maintain this project any longer and am looking for a new maintainer. Please ping @dan-bowen in this thread if you are interested in becoming a maintainer.
-Dan

Hello @dan-bowen
I am using Chargify for my project many years. I have updated to PHP 8.1 recently, and notice many warning about deprecated. This project hasn't been maintained for years. I'd like to take this project and make it be compatible with newer PHP version. I volunteer become a maintainer of chargify-sdk-php if you don't mind

Hello @lhkhang
Thank you for your interest! I've sent an invitation to the organization. I may need to grant additional permissions once you join but let me know if you are missing anything.

Hello @lhkhang
Thank you for your interest! I've sent an invitation to the organization. I may need to grant additional permissions once you join but let me know if you are missing anything.

Hello @dan-bowen
I have joined crucialwebstudio already, but it is likely i m still a readonly user. Please grant write permission to my account so that i am able to commit my changes.
Thank you

@lhkhang
I believe this is sorted now. You should have an invite for write access to the repository as an outside collaborator, rather than a member of the organization.

Thanks @dan-bowen
I can see my account having write permission to project.
Cheers,
Khang

HI @dan-bowen
I have made changes to branch develop in order to compatible with PHP 8.1. But i noticed i don;t have permission to merge master and release. Would you please grant permission, or have a look on my changes and cut a new release.
Thank you,
Khang


undefined return values ?

dyn_client.c:289:13: error: non-void function 'client_handle_response' should
      return a value [-Wreturn-type]
            return;
            ^
dyn_client.c:295:9: error: non-void function 'client_handle_response' should
      return a value [-Wreturn-type]
        return;
        ^

Will take a look. Some day I will work on all the compilation warnings that come up.

Fixed in release/v0.5.6 branch. Will be in master soon.


Remove container

Codecov Report

Merging #3 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master       #3   +/-   ##
=======================================
  Coverage   45.56%   45.56%
=======================================
  Files           4        4
  Lines         169      169
=======================================
  Hits           77       77
  Misses         92       92

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 0015eb8...8af677a. Read the comment docs.


Actually use ldap_attr_group

There is a config variable ldap_attr_group which isn't used anywhere:
stretz@slpn-nb-mss:/tmp/pfsense$ grep -R ldap_attr_group *
usr/local/www/wizards/openvpn_wizard.inc:                       $auth['ldap_attr_group'] = $pconfig['step1']['groupattr'];
usr/local/www/system_authservers.php:                   $pconfig['ldap_attr_group'] = $a_server[$id]['ldap_attr_group'];
usr/local/www/system_authservers.php:                                           "ldap_attr_user ldap_attr_group ldap_attr_member ldapauthcontainers");
usr/local/www/system_authservers.php:                   $server['ldap_attr_group'] = $pconfig['ldap_attr_group'];
usr/local/www/system_authservers.php:                   document.getElementById("ldap_attr_group").value = "<?=$tmpldata['attr_group'];?>";
usr/local/www/system_authservers.php:                                                           <input name="ldap_attr_group" type="text" class="formfld unknown" id="ldap_attr_group" size="20" value="<?=htmlspecialchars($pconfig['ldap_attr_group']);?>"/>

I guess it should be used in auth.inc where currently "cn" is hardcoded.
Next: Implement RFE #2869.

CLA was not signed, closing.

I hope the bug gets/got fixed anyway. I will see when I need that feature again but getting through legal for a few line patch (I wrote this patch at work) wasn't worth it.


added project_id label to libvirt_domain_info_meta metric

Changes i think that are needed to add the project_id to libvirt_domain_info_meta
like mentioned in the https://github.com/Tinkoff/libvirt-exporter/issues/46 Issue

Hi @priteau,
i will look at your clue. I think then this pr can be canceled.
Could it be interesting to add to every metric the project_uuid label. With the current behaviour, there have to be some merge operations to get to the right data.

Thanks @priteau for your help

OK.
The change is suitable but not very nice to implement in kolla-ansible. i have to clone the upstream repo and then copy over the new prometheus.yml.j2 file to the kolla-ansible project folder. I think it would be nicer if kolla-ansible will look in the config folder for a prometheus.yml.j2 file and parse this a runtime like the one that is in the kolla-ansible repo folder. Think this is a request for kolla-ansible now.

Kolla Ansible does look for a custom prometheus.yml file, see this config task. You have to store it in your Kolla config at prometheus/prometheus.yml.
You may also be able to use the prometheus/prometheus.yml.d functionality to override this block (I know you can add additional scrape configs with it, but I am not sure if you can override one).

Kolla Ansible does look for a custom prometheus.yml file, see this config task. You have to store it in your Kolla config at prometheus/prometheus.yml.
You may also be able to use the prometheus/prometheus.yml.d functionality to override this block (I know you can add additional scrape configs with it, but I am not sure if you can override one).

Yes, i saw this possibilities in the ansible code too. But these ways only let you insert/override statically defined config options. If the infra is a way bigger, than this can become very fast to a complex and faulty way.
Like i mentioned above, i will contact the kolla-ansible team to discuss a solution with a jinja template in the configuration folder of kolla-ansible.


0.6.1 podspec points to 0.6 instead of 0.6.1

Therefore, it's not possible to install 0.6.1 with CocoaPods.

Thanks!
We have released version 0.6.2 that addresses this issue.


feat: add koala sign methods having the same api as ecko

A copy of eckoWallet with all types and methods renamed to Koala using window.koala instead of window.kadena

Koala is revamping their signing API, let's revisit this when that's done.


TLS oversized record error

Hi,
I'm trying to setup HTTPs capturing, but I'm receiving multiple errors like this when initializing HTTPs requests:
2015/03/08 12:48:15 http: TLS handshake error from <IP_ADDRESS>:52759: tls: oversized record received with length 20037

I'm running the latest OS X and have followed the tutorials on https://hyperfox.org/capturing-https-traffic. Hyperfox version is 0.9. HTTP capturing works fine.
Any idea what might be wrong?

I have the same problem:
2015/12/20 16:21:33 http: TLS handshake error from <IP_ADDRESS>:53250: tls: oversized record received with length 20037
2015/12/20 16:21:33 http: TLS handshake error from <IP_ADDRESS>:53251: tls: oversized record received with length 20037
2015/12/20 16:21:41 http: TLS handshake error from <IP_ADDRESS>:53258: tls: oversized record received with length 20037
2
seems https proxy doesn't work for Chome.

I used Chromium, so that might been it. I recall getting hyperfox to work eventually, but I cant remember whether it was on Chromium or Firefox.

因为heartbleed漏洞, 所以golang限制了密文的长度，自己自定义生成一组证书指定进去
./hyperfox.bin -c="./ssl/rootCA.crt" -k="./ssl/rootCA.key"

https://github.com/pipeviz/pipeviz/issues/198
Upgrade your golang language, don't use https://hyperfox.org/files/*.bin
it's too old, Two years ago

I am also facing this issue! Is there now a solution for this, as the thread has been closed?
I am using:

OS X El Capitan
Hyperfox v1.9.7
Firefox 49.0.2
go1.7.3

HTTP works fine, but HTTPS keeps throwing the same error as reported above:
2016/11/15 13:41:37 http: TLS handshake error from <IP_ADDRESS>:55926: tls: oversized record received with length 20037

Faced with the same issue:
tls: oversized record received with length 20037
Still looking for solution.

Facing same issue
tls: oversized record received with length 20037


Can we pass command line arguments in opentest?

Hi,
is there any way to pass a particular value as an argument in the command line and access it in Opentest code..?

Another requirement.
Can we pass Actortags in the command line, similar to passing environment using --env option


1020: Revert "PIM: Support deleteObject"

1020: Revert "PIM: Support deleteObject"
This reverts commit 91b598d066efe0e2c4f213875924166de49a53cd.

We'll get it in at a later stage with a MF approval


Disallow bad comma left operands

Fixes #10814
This PR disallows the left operand of the comma operator to be an expression form whose evaluation is known to not have side effects. The allowUnreachableCode option suppresses this warning, as does the unary void operator.
The check for "might have side effects" is shallow, which might be considered surprising. The intuition here is that
let y = 0;
let x = ([1, 2, y++], 4);

is not made valid by the side effect inside the unused array literal.

baselines needs updating.

👍

:snail: Travis :snail:

:+1:


examples: Add P, S -velocity and density parametrization option based on C matrix and gradient vector

Just as a note for future PRs, these commits have way too many lines, its kinda hard to follow the history of the changes when there are so many lines changed in each commit.

@guaacoelho


fixed foldl

This is not a fix, but rather introduces a bug instead. If you would have bothered to run the test, you would have discovered that on your own.

fair enough but that's not the proper foldl behavior if you want to be consistent with the definition; foldl is this: (((a - b) - c) - d)


Crash while loading Space Exploration/K2 game

Problem Description
`The mod Factory Planner (1.1.75) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event factoryplanner::on_configuration_changed
factoryplanner/backend/data/ModuleSet.lua:120: attempt to perform arithmetic on field 'module_limit' (a nil value)
stack traceback:
factoryplanner/backend/data/ModuleSet.lua:120: in function 'count_modules'
factoryplanner/backend/data/ModuleSet.lua:47: in function 'insert'
factoryplanner/backend/migrations/migration_1_1_73.lua:107: in function 'convert_floor'
factoryplanner/backend/migrations/migration_1_1_73.lua:90: in function 'convert_floor'
factoryplanner/backend/migrations/migration_1_1_73.lua:90: in function 'convert_floor'
factoryplanner/backend/migrations/migration_1_1_73.lua:133: in function 'migration_function'
factoryplanner/backend/handlers/migrator.lua:57: in function 'apply_migrations'
factoryplanner/backend/handlers/migrator.lua:95: in function 'migrate_player_table'
factoryplanner/backend/init.lua:243: in function <factoryplanner/backend/init.lua:228>`
Reproduction
No response

Hello, thanks for the report. This is a dupe with #173 actually, so we'll redirect there.


Move GUI language switcher to user settings menu

Motivation
We have two different "languages": one for the content and one for the admin back end UI. This needs to be cleanly separated to not confuse users. In #630 we want to improve the languages switcher. However, I see a danger of confusing a language switcher with the GUI language switcher. And I think that it is almost never necessary for a user to switch the language. This frequently confuses even me in WordPress / WPML.
Proposed Solution
The user GUI language option/setting should be moved to the user settings, and be removed from the top navigation bar.
Alternatives
Keep as is or move it into the expandable user menu.

Possible options:

Store the language setting on a browser-cookie-basis (as it is in the moment) and just change the location of the switcher

Pro: less effort
Con: setting not preserved over multiple devices

Add a new field to the user profile model, store the setting in the database and after each login, explicitly set the active language

Pro: setting preserved over multiple devices
Con: more effort

Possible options:

Store the language setting on a browser-cookie-basis (as it is in the moment) and just change the location of the switcher

Pro: less effort
Con: setting not preserved over multiple devices

Add a new field to the user profile model, store the setting in the database and after each login, explicitly set the active language

Pro: setting preserved over multiple devices
Con: more effort

I would vote for option 1 and keeping the browser-cookie-basis as is, that should be sufficient.


Unable to run http server outside of examples folder

Hi, I am trying to use httpd server. I can build and run examples/http_server successfully.
Then I copy examples/http_server outside of SDK folder and change Makefile to use SDK_PATH instead of ../..:
include $(SDK_PATH)/common.mk
Project builds fine, but when I run I get:

ćdlpb���o��odlg���d�$l$�'�n�ۓ�b�dldsd�#�og��d�'o'��Ĝn�o$�#�og��$�ng'�����`;l�ng��|���o��#dpp_task_hdl : 3ffef9b0, prio:14, stack:512
pm_task_hdl : 3ffef2a0, prio:1, stack:176
frc2_timer_task_hdl:0x3fff3bc8, prio:12, stack:200
ESP-Open-SDK ver: 0.0.1 compiled @ Jul  3 2020 10:18:15
phy ver: 273, pp ver: 8.3
SDK version:0.9.9
mode : sta(bc:dd:c2:16:29:f5)
add if0
Function called without core lock
Function called without core lock
Function called without core locTask stack overflow (high water mark=0 name="HTTP Daemon")
kaFunction called without core lock
Function calleTask stack overflow (high water mark=0 name="HTTP Daemon")
dflow (high water maFunction called without core lock
Function called without core lock
Function called without core lock
Function called without coreTask stack overflow (high water mark=0 name="HTTP Daemon")
er maTask stack overflow (high water mark=0 name="HTTP Daemon")
Task stack overflow (high water mark=0 name="HTTP Daemon")
scandone
Task stack overflow (high water mark=0 name="HTTP Daemon")
Task stack overflow (high water mark=0 name="HTTP Daemon")
Task stack overflow (high water mark=0 name="HTTP Daemon")
Task stack overflow (high water mark=0 name="HTTP Daemon")
Task stack overflow (high water mark=0 name="HTTP Daemon")

Am I doing something wrong?

Increasing stack size seem to get it working. But I don't understand why it works fine from examples folder.


already initialized constant Klaviyo::Campaigns

I get the following at server startup:
/gems/klaviyo_sdk-<IP_ADDRESS>20329/lib/klaviyo_sdk.rb:91:
/gems/klaviyo_sdk-<IP_ADDRESS>20329/lib/klaviyo_sdk/models/campaigns.rb:17: warning: previous definition of Campaigns was here

@maple-klaviyo any update on this?


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target_58471b63-bc9f-4012-9661-769de53b2a1e/pull/1 is merged into live branch.
Auto archive content to https://github.com/opstest2/docs-archive-test-target_58471b63-bc9f-4012-9661-769de53b2a1e.git

Docs Build status updates of commit a23b858:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error: RepositoryUnauthorizedWithSourceCommit] Git data access to 'https://github.com/opstest2/docs-archive-test-source-1' (branch: Release_Archive_main_2022-02-21-10-10-34) is not authorized.. It looks like this might be the first time user: v-alji submitted a pull request to this repo. Before user can run builds in a pull request, he/she can enable 'v-alji' GitHub account in Docs by visiting Docs Portal (https://ops.microsoft.com). After enabling his/her account (v-alji), close and then reopen this pull request to start another build.

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


cgo: "exit status -1073741819"  on windows

What version of Go are you using (go version)?
1.7
What operating system and processor architecture are you using (go env)?
set GOARCH=386
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=386
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\Dayhane & Lucas\Go
set GORACE=
set GOROOT=C:\Go
set GOTOOLDIR=C:\Go\pkg\tool\windows_386
set CC=gcc
set GOGCCFLAGS=-m32 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\DAYHAN~1\AppData\Local\Temp\go-build422804030=/tmp/go-build
set CXX=g++
set CGO_ENABLED=1
C compiler
Reading specs from c:/mingw/bin/../lib/gcc/mingw32/4.3.3/specs
Target: mingw32
Configured with: ../gcc-4.3.3/configure --prefix=/mingw --build=mingw32 --enable-languages=c,ada,c++,fortran,objc,obj-c++ --with-bugurl=http://www.tdragon.net/recentgcc/bugs.php --disable-nls --disable-win32-registry --enable-libgomp --disable-werror --enable-threads --disable-symvers --enable-cxx-flags='-fno-function-sections -fno-data-sections' --enable-fully-dynamic-string --enable-version-specific-runtime-libs --enable-sjlj-exceptions --with-pkgversion='4.3.3-tdm-1 mingw32'
Thread model: win32
gcc version 4.3.3 (4.3.3-tdm-1 mingw32)
Error
My code build but not runs, returns this error 'exit status -1073741819'

In ideone works http://ideone.com/yvW02W
(sorry my english)

The code is:
package main

/*
int teste() { return 2 + 1; }
*/
import "C"

func main(){
	println(C.teste());
}

It does seem like that should work. The exit code is 0xc0000005, access violation (like Unix SIGSEGV).
@WesleiRamos, what versions of Windows are you using? Thanks.

This works for me on:
go version devel +bba1ac4 Thu Oct 27 22:55:30 2016 +0000 windows/386

with both gcc (GCC) 4.8.1 and gcc (tdm-1) 5.1.0.
I use Windows XP.
Alex

Windows 10

Is there a reason you are using 32-bit x86 with Windows 10 instead of 64-bit x86? I wouldn't think Windows 10 would run on any 32-bit-only hardware.
I wonder if maybe something somewhere is getting confused about whether it should be 32-bit or 64-bit code.

I switched compiler and it worked, to version 4.7.1 of gcc.

Sounds like this is resolved. Let me know if I'm confused.


refactor(localization): localization of validation methods

Localization has been added to validation methods as needed.
Closes #692
Type of change

[X] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation change
[ ] Other (please specify)

Checklist

[ ] Documentation added for the feature
[ ] CI and all relevant tests are passing
[ ] Code Review completed
[ ] Verified independently by reviewer

Bug fix (non-breaking change which fixes an issue)

Just so you know this is not a bug fix!

Could you add verification steps so I know which commands I need to check, otherwise I need to inspect each file to work it out.


chore: use codecov bash uploader

Switches to use the codecov bash uploader rather than the npm package.

Current coverage is 88.21% (diff: 100%)

Merging #511 into master will not change coverage

@@             master       #511   diff @@
==========================================
  Files           170        170
  Lines          1825       1825
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           1610       1610
  Misses          215        215
  Partials          0          0

Powered by Codecov. Last update dea0835...c32b352


Fake TLS Proxy

Hello. Do you have any plans to add Fake TLS Proxy support?

Yes, guys, I gonna support it. I've actually already started to do that and realized that the project requires some refactoring before I'll introduce yet another tunneling for client connection. So, right now I'm refactoring the project (approximately I did about 50% this week) and after that, I gonna implement TLS-tunneling.
My plan is also to make the 2nd attempt for connection multiplexing for proxies with adtags but if I fall down into rabbit hole again, I'll postpone it.
So, my rough ETA is 2-3 weeks.

这个新开发是否可以是一键式交互式脚本，方便我们在不了解代码的情况下轻松安装，谢谢。这个新开发是否可以是一键式交互式脚本，方便我们在不了解代码的情况下轻松安装，谢谢。

是的，伙计们，我会支持它。我实际上已经开始这样做，并意识到在我为客户端连接引入另一个隧道之前，该项目需要进行一些重构。所以，现在我正在重构这个项目（大约我本周做了大约50％），之后，我将实施TLS隧道。
我的计划也是用adtags进行代理连接多路复用的第二次尝试，但如果我再次陷入兔子洞，我会推迟它。
所以，我粗略的ETA是2-3周。

Whether this new development can be a one-click interactive script, so that we can easily install without knowing the code, thank you. Whether this new development can be a one-click interactive script, so that we can easily install without knowing the code, thank you. Because he is very good in mainland China.

Well, 2-3 weeks was quite a rough estimation, because I had to concentrate on my primary work. This still ongoing and I plan to finish it anyway. Please see a current progress on next branch

You need an example of a tls launch, it's not quite clear.
./mtg proxy xxx yyy -b <IP_ADDRESS>:443 it's works.

@hookzof fake TLS is not completely implemented. Stay tuned, it is coming!

Thanks, @gudvinr. Unfortunately, this key format is a part of the protocol. The client extracts domain name from such key in absolutely the same way. So, even if it can look misleading (tbh, I'm not sure why), this is how both proxy and client work if they want to talk with each other.

I see now, thanks. Though I didn't find any explanation for this until now.
Can you add this into README for the sake of clarity?

I'm not sure why

If you don't know already how this works, it looks like any other hex-encoding stream and not ee + <secret> + <hex-encoded domain name string>.

If you don't know already how this works, it looks like any other hex-encoding stream and not ee +  + .

This phrase makes no sense to me. What are you trying to tell me?

I see now, thanks. Though I didn't find any explanation for this until now.
Can you add this into README for the sake of clarity?

Please feel free to make PR.


the telegraf download file name should be telegraf.conf

when you download a telegraf config from the ui, the name of the file should be telegraf.conf

as long as it ends in .conf and not .toml then we are good.


Out reference are muddled

The reference that should be supported is referenced in the cell, the reference that is suggested does not actually exist.

More bizarre behavior seen here as this is what these references suggest they should look like but they also error out


add  lua plugins

Thanks for the additions @glepnir !
I think indent-guides.nvim may be a little rough right now. Would need a better explanation and maybe into a more stable state.

yep. added it.


Conflicting license messages in Log and About page

Binary Ninja Version: 1.2.1913-dev, 36a4cab6
Platform: Windows 10 (10.0)
When I initially installed Binary Ninja, I used a license that soon after expired.  I renewed my license, but Binary Ninja still shows that the support expired in the log when the application starts, however, on the "About" page, the support information is correct.
I looked for a way to reset my license but couldn't find anything, so I figured I'd raise a bug.

This has been fixed in 1.2.1915-dev.


added ocpp to latest

Automated adapter checker
ioBroker.froeling

:thumbsup: No errors found
ioBroker.lg-thinq

:thumbsup: No errors found
ioBroker.ocpp

[ ] :heavy_exclamation_mark: [object Object]

ioBroker.openhab

[ ] :heavy_exclamation_mark: [E104] No common.titleLang found in io-package.json
[ ] :heavy_exclamation_mark: [E150] No common.connectionType found in io-package.json
[ ] :heavy_exclamation_mark: [E152] No common.dataSource found in io-package.json
[ ] :heavy_exclamation_mark: [E140] width and height of logo are not equal
[ ] :heavy_exclamation_mark: [E301] Tests on Travis-ci.com are broken. Please fix.
[ ] :heavy_exclamation_mark: [E605] No actual year found in copyright. Please add "Copyright (c) 2017-2022 bluefox<EMAIL_ADDRESS>at the end of README.md
[ ] :heavy_exclamation_mark: [E701] No actual year found in LICENSE. Please add "Copyright (c) 2017-2022 bluefox<EMAIL_ADDRESS>at the start of LICENSE
[ ] :eyes: [W113] Adapter should support compact mode
[ ] :eyes: [W505] setTimeout found in "main.js", but no clearTimeout detected

ioBroker.rainbird

[ ] :heavy_exclamation_mark: [E150] No common.connectionType found in io-package.json
[ ] :heavy_exclamation_mark: [E152] No common.dataSource found in io-package.json
[ ] :heavy_exclamation_mark: [E605] No actual year found in copyright. Please add "Copyright (c) 2022 Marius Burkard<EMAIL_ADDRESS>at the end of README.md
[ ] :heavy_exclamation_mark: [E701] No actual year found in LICENSE. Please add "Copyright (c) 2022 Marius Burkard<EMAIL_ADDRESS>at the start of LICENSE

Add comment "RE-CHECK!" to start check anew

@foxriver76 Please correct the automatically found errors.

[object Object]

@ldittmar81 Okay

Please close https://github.com/ioBroker/AdapterRequests/issues/582 after review

Hi,
some review comments:

please put admin dep (https://github.com/foxriver76/ioBroker.ocpp/blob/main/io-package.json#L144) in globalDepenencies
you might want to add a bit error handling on https://github.com/foxriver76/ioBroker.ocpp/blob/main/src/main.ts#L64 ? :-)

Rest is ok

Admin fixed,
Error handling not sure if theres something catchable and if I can only restart, it's a custom impl https://github.com/elifTech/cpd-ocpp/blob/969d124a8c6f87d67f854246be1356fe11afe927/src/centralSystem.js#L20


How can I access an upstream Agent's events?

Hi, I'm trying to merge events in similar effect to what was described in this PR.
I tried using {% previous_event 'my_agent', '{{my_key | as_object}}' %}, but received a Liquid formatting error. On the sidebar of EventFormattingAgent it states that events from upstream agents are accessible, but I'm not really sure on how to properly format it, and couldn't find any examples.
My workflow looks like: WebsiteAgent => EventFormattingAgent => De-DuplificationAgent => PostAgent => WebsiteAgent2 => EventFormattingAgent2 => DataOutputAgent.
I'm trying to combine {{key}} from the De-DuplificationAgent and {{key2}} from WebsiteAgent2, into EventFormattingAgent2  and output it as one event. Any examples of accessing upstream events would be greatly appreciated.

Here's an example scenario: https://www.pastiebin.com/593f002544327
Is it possible to just keep passing previous events within new events, or maybe specify multiple data_from_events to a website agent?

Hi @Toast707,
I don't think that is possible at the moment. Your problem is that the PostAgent does not allow to merge the received Event with it's created payload, right?
It would be really great to have a universal way to either access previous Event data or allow all Agents to merge Events. Maybe you can try to revive the discussion in the PR.

Hi @dsander yes, if the post agent allowed merging the received event with the results of the post request, my issue would be handled. I'll comment on the 'suggest an Agent' thread and see if that gets any attention.

Switching to the docker container huginn:pr-1746 fixed my issue. Thanks for the help @dsander .


chore: Bump sigs.k8s.io/karpenter to latest

Fixes #N/A
Description
How was this change tested?
Does this change impact docs?

[ ] Yes, PR includes docs updates
[ ] Yes, issue opened: #
[x] No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>6
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 79.261%

Totals

Change from base Build<PHONE_NUMBER>9:
0.0%

Covered Lines:
5981

Relevant Lines:
7546

💛  - Coveralls


Testrpc crash on advanceBlock call

Expected Behavior
I have medium size truffle project with some tests. And working on increasing test coverage. Just added new tests file with simple new test and wanna it to pass or fail.
Current Behavior
I see testrpc failure on await advanceBlock():
evm_mine
evm_mine
evm_snapshot
Saved snapshot #1
TypeError: Cannot read property 'modified' of undefined
    at /usr/local/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:63964:18
    at Object.whilst (/usr/local/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:12674:5)
    at module.exports.Cache.flush (/usr/local/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:63961:9)
    at /usr/local/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:69191:31
    at /usr/local/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:17637:36
    at /usr/local/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:63236:9
    at item.task (/usr/local/lib/node_modules/ethereumjs-testrpc/build/cli.node.js:62914:29)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)

Possible Solution
Commenting line await advanceBlock()
Steps to Reproduce (for bugs)

Download sources from bug/demo branch: https://github.com/bitclave/crowdsale/tree/bug/demo
Run testrpc within script: ./scripts/run.sh
Run tests: truffle test

Context
I can't add this simple test to project
Your Environment

Version used: EthereumJS TestRPC v4.1.3 (ganache-core: 1.1.3)
Environment name and version (e.g. PHP 5.4 on nginx 1.9.1):
Server type and version: MacBook Pro Retina 15" Mid 2015
Operating System and version: macOS 10.13
Link to your project: https://github.com/bitclave/crowdsale/tree/bug/demo
Truffle: Truffle v3.4.11 - a development framework for Ethereum
NodeJS: NodeJS v8.7.0

Found reason:
contract('AnyContract1', async function ([_, wallet, wallet2, wallet3]) {
    await advanceBlock();
    // ...
})

contract('AnyContract2', async function ([_, wallet, wallet2, wallet3]) {
    await advanceBlock();
    // ...
})

Moved await advanceBlock(); into before blocks


Release v1.6.2

Sorry, did not see this before opening and landing https://github.com/fusionjs/fusion-cli/pull/381
This should be released now!


mem_tg test channel synchronization and documentation

Added documentation/instructions for #2983
Adjusted tg_test.h do the starting write to each channel around the same time when multiple channels are used.
Fixed bug where summary statements could collide after tests completed.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

0 of 46 (0.0%)  changed or added relevant lines in 2 files are covered.
10 unchanged lines in 3 files lost coverage.
Overall coverage decreased (-0.07%) to 67.64%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

samples/mem_tg/mem_tg.h
0
1
0.0%

samples/mem_tg/tg_test.h
0
45
0.0%

Files with Coverage Reduction
New Missed Lines
%

libraries/plugins/xfpga/open.c
1
74.68%

samples/mem_tg/tg_test.h
3
0.0%

libraries/plugins/xfpga/mmio.c
6
82.87%

Totals

Change from base Build<PHONE_NUMBER>:
-0.07%

Covered Lines:
13785

Relevant Lines:
20380

💛  - Coveralls


Deny assignment documentation

This page is really unclear, I can't get my deny assignment to work.
Can you please include a fully working example and not snipits of random bits isolated?
Show me from the time i connect to the azure portal blueprint how to create a deny assignment, where all service principals are denied access except two principal (1) one user, and (2) one service principal, and then exclude few actions for completeness.
Your documentation keeps pointing back to the RBAC, and they're in denial of this being their responsibility, because every sane person would go to their pages where we expect RBAC matters to be, and the portal points to their pages, so traffic is really there, but as far as they're concerned it is a blueprint feature!

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

ID: 8741c7bd-2fc5-36cc-eee5-7dff9e862d03
Version Independent ID: bf23f21b-a6ce-fb97-66c9-55503ab73748
Content: Understand resource locking - Azure Blueprints
Content Source: articles/governance/blueprints/concepts/resource-locking.md
Service: blueprints
GitHub Login: @DCtheGeek
Microsoft Alias: dacoulte

@sarah026 Thank you for your feedback! We will review and update as appropriate.

#reassign:DCtheGeek

@sarah026 Thanks for the feedback.  You ask for an example of creating a denyAssignment through the portal, and this already exists as a Tutorial.  As you are looking for creating exclusions (either a principal or action) to the denyAssignment, that must be done through REST API and the documentation has a complete example of a blueprint assignment JSON here, which isn't a snippet. properties.locks.mode sets the assignment to configure a denyAssignment while properties.locks.excludedPrincipals or properties.locks.excludedActions allows you to exclude principals or actions from the denyAssignment.
Please also note that the denyAssignment (locks) are only applied to resources deployed by your blueprint definition.  Existing resources, even in the same resource group, don't get the locks.
If you'd like to see these capabilities added to the service, please post a request on UserVoice.  If using the full blueprint assignment in this article as an example with the REST API still isn't working for you on resources deployed by the blueprint definition, please open a support ticket.
@MicrosoftDocs/azure-cxp-triage #please-close


Add finalizer support in async API

This is another take on adding finalizer to the async API. Some things are taken from #926 but the implementation is completely rewritten and includes a rewrite of pubsub handling and adds reference counting for callbacks in the async API.
API changes

The redisAsyncCommand() family of functions have got new variants with "WithFinalizer" suffixes. The new functions are redisvAsyncCommandWithFinalizer(), redisAsyncCommandWithFinalizer(), redisAsyncCommandArgvWithFinalizer() and redisAsyncFormattedCommandWithFinalizer().
For each call to redisAsyncCommandWithFinalizer or one of its variants, the finalizer will be called exactly once.
The finalizer is called when a callback (even if the callback function is NULL) is no longer associated with any command or pubsub channel or pattern.
The finalizer is called after the last call to the callback. The callback is never called after the finalizer has been called.
Support the RESET command: It cancels subscriptions and MONITOR mode.
Accept commands while in MONITOR mode.
Add support for sharded pubsub (SSUBSCRIBE, SUNSUBSCRIBE).

Internal changes
The callback queue is changed so that each callback is allocated once and freed once. The operations "push" and "shift" don't copy the callback struct between heap and stack anymore, but instead they and just set the 'next' pointer to link callbacks into a list, without doing any allocations. For pubsub channels, one callback can be mapped to multiple channels, and they can be unsubscribed independently, so we use a reference counter to keep track of references to a callback. This makes adding finalizer support, and making sure it is called only once when the callback is freed, strait-forward.
The way hiredis kept tack of 'pubsub mode' using pending_subs and unsubscribe_sent was flawed. It couldn't handle multiple pending subscribe commands with an overlapping but different set of channels and it couldn't handle an error reply to a SUBSCRIBE or UNSUBSCRIBE command. Now we change this so that all commands, even SUBSCRIBE and UNSUBSCRIBE, are added to the reply queue and the 'subscribe' and 'unsubscribe' replies are matched against them in the queue. The channel-to-callback dicts are updated when a 'subscribe' or 'unsubscribe' reply is received, confirming that the client has subscribed or unsubscribed to a channel, rather than when the command is sent. This change makes it possible to handle an error reply for a pubsub command.
With this change, there is no need to keep a different replies queue for subscribe commands and regular commands. All are added to the same replies queue.

This is really good work.  If it's ready I'll go through it and get it merged.

This is really good work. If it's ready I'll go through it and get it merged.

Thanks. I thought it was ready, but there is some minor issue (timeout in a test) after I added the last commit (RESET command). I hope to get it fixed today or in the next days.

@michael-grunder Did you restart the mac build? :-)
I believe this is ready now.

If you want to squash-merge, we can use the top comment as the commit message.
If not, I can squash the fixup commits into the main commits later.

Its been a long time since I looked at this code, but are the callbacks hashed (and refcounted) according to both the callback function pointer and the privdata?

are the callbacks hashed (and refcounted) according to both the callback function pointer and the privdata?

No, they are refcounted only per call to redisAsyncCommandWithFinalizer or its variants. The code doesn't check if the same privdata or function is used for other async commands.

This means hiredis doesn't care at all what privdata is. If the user wants to use the same privdata for multiple calls, they can put a refcounter on the privdata and decrement it in the finalizer. @kristjanvalur Do you think it is the right design or do you have another idea?

I haven't thought too deeply about it but I suspect the design is fine, if every call gets one call back.  I remember having concerns about the previous attempt where callbacks were registered sepearately, if I remember correctly.  https://github.com/redis/hiredis/pull/926

if you go with redisAsyncSetFinalizer then you need to specify probably that only a single finalizer can be active, or something similar.

Yes, it's like a config, so only a single finalizer can be set. Setting a new one replaces the previous one. Is that what you mean?
The finalizer would be called once for each command, whenever the command's callback struct is freed internally. (For UNSUBSCRIBE, this means the finalizer is called immediately (because the replies to UNSUBSCRIBE are passed to SUBSCRIBE's callback) and even if privdata and callback are NULL, but this is fine to me too.)
I don't have a strong preference regarding *WithFinalizer vs redisAsyncSetFinalizer.

So, here is the thing:
The finalizer is intended to finalize a callback, which has been registered.  A callback is a unique tuple (redisCallbackFn*, privdata).  The finalizer is supposed to be called when the (function, data) will never be called again.
So, if you go with the withFinalizer thing, you will have to change it so that it receives both the function pointer and the privdata.

OK, I see what you mean. But in the implementation, there is nothing that requires the tuple (callback_fn, privdata) to be unique. Even the exact same tuple can be used multiple times. I don't think the implementation should check that. It would be unnecessary complex and maybe even undesirable. Probably we should change the description to something like
"The finalizer is called when a callback (even if the callback function is NULL) is no longer associated with the command where it was provided"
instead of "... with any command or pubsub channel or pattern".
Btw, I realized now I haven't documented this feature in the README. I'll do that when there is a decision about the API.

"The finalizer is called when a callback (even if the callback function is NULL) is no longer associated with the command where it was provided"

Yes, that is clearer.  I just want to make sure that the finalizer then, needs to get both the callback pointer and the privdata provided to the API method which is being finalized.
You may even want to provide the finalizer with its own privdata.  That way, both the callback and finalizer can effectively be "bound methods."
typedef void (redisFinalizerCallback)(struct redisAsyncContext *ac, void *finalizer_privdata, redisCallbackFn * cb, void *cb_privdata)
You could add some blurb  in the line of "for most commands, that will be right after the callback is called for the only time, but for subscriptions that happens only when the subscription completes."

I just want to make sure that the finalizer then, needs to get both the callback pointer and the privdata provided to the API method which is being finalized.

Why would you need that? Do you have a use case?
The use case so far is to free the privdata when it is no longer used. This assumes you do not reuse privdata for multiple commands (or if you do, you can use a reference counter) but I can't see why you would need the callback function pointer in the finalizer.

You may even want to provide the finalizer with its own privdata. That way, both the callback and finalizer can effectively be "bound methods."

I'd rather avoid that. I can't see why this would be useful. If you want special data for the finalizer, it can be embedded in the same privdata argument passed to the command.

You could add some blurb in the line of "for most commands, that will be right after the callback is called for the only time, but for subscriptions that happens only when the subscription completes."

Good idea. I'll add something like that.

I just want to make sure that the finalizer then, needs to get both the callback pointer and the privdata provided to the API method which is being finalized.

Why would you need that? Do you have a use case?

Sure, you call two API functions.  Both take different callback pointers and different privdata.   Different callbacs can have different privdata formats.
Once you get a "finalizer" call, you have no idea which one of those calls are being finalized, unless both the callback and privdata are returned.  The privdata is meaningless without a corresponding function pointer to associate it with.
I think that the point I'm trying to get across here, is that we should be able to consider a (func_ptr, data_ptr) as a bound method, a pointer to a class method, and they should always be kept around and used as a pair.  The data_ptr is meaningless without the corresponding func_ptr and vice versa.
Whenever, in C, a callback is provided, the callback should always be a function pointer and some anynomus arg.  That way, you can easily take an C++ class instance method and wrap it into a static method + this pointer.
Each callback function registered  in C should (in general for C api, not just here) always have its own private data like that.  That way, the callbacks can belong to different objects and you can register object methods as callbacks everywhere.    Otherwise you are forced to view all your callbacks as  different static methods bound to a single "object" which puts limits on how an api is used.
That's how I would design an API to be the most general.  However, you could argue that people should just declare a single "privdata" data structure and use that everywhere where they use the api.   Make it a limitation of the api.  But then that should probably be explicitly mentioned.


pagefind find extra page

If search with "lexima".
Hit below:

The pages

there are expected.

The category pages

there are not expected.

The top page

these are not expected.

Umm. path-based excluting is existed?

pagefind、日本語に弱いっぽいので一旦無効化


Fix: GestureHandler for Android.

Issue: Unable to draw on Android
Solution:  Add zIndex: 1 to GestureHandler styles in gesture-responder.tsx

Issue still persist

Issue: Unable to draw on Android Solution: Add zIndex: 1 to GestureHandler styles in gesture-responder.tsx

Just confirmed that this is the solution.
This issue still exists on the project, and should get more attention!

approve
чт, 12 янв. 2023 г. в 13:07, stoicrounin @.***>:

Issue still persist
Issue: Unable to draw on Android Solution: Add zIndex: 1 to
GestureHandler styles in gesture-responder.tsx
Just confirmed that this is the solution.
This issue still exists on the project, and should get more attention!
—
Reply to this email directly, view it on GitHub
https://github.com/dev-event/react-native-maps-draw/issues/13#issuecomment-1380091943,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANQ5A4WATLKIPPRMZWCTTSDWR7JVDANCNFSM6AAAAAASWDLMXE
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

thanks👍
чт, 12 янв. 2023 г. в 17:18, Алексей Петрусевич @.***>:

approve
чт, 12 янв. 2023 г. в 13:07, stoicrounin @.***>:

Issue still persist
Issue: Unable to draw on Android Solution: Add zIndex: 1 to
GestureHandler styles in gesture-responder.tsx
Just confirmed that this is the solution.
This issue still exists on the project, and should get more attention!
—
Reply to this email directly, view it on GitHub
https://github.com/dev-event/react-native-maps-draw/issues/13#issuecomment-1380091943,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANQ5A4WATLKIPPRMZWCTTSDWR7JVDANCNFSM6AAAAAASWDLMXE
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


[QUESTION] Volumes are stuck at attaching state

Hello,
Question
Attach  volume takes a long time. Just as follows:

Environment

Longhorn version:1.3.1
Kubernetes version:1.24
Node config

OS type and version:ubuntu 22.04

Can you check the longhorn-managers' log?

Thanks very much for your reply.
I found that the problem is the system error of operating system Ubuntu 22.04.
After I reboot the system， this question is solved.
Thanks again.


Don't use DateTime for testing

Because -ddate.timezone does not propagate. Alternatively would have to add --INI-- everywhere.

:+1: thanks!


Some dependencies are missed in a group

Is there an existing issue for this?

[X] I have searched the existing issues

Package ecosystem
cargo
Package manager version
No response
Language version
No response
Manifest location and content before the Dependabot update
No response
dependabot.yml content
https://github.com/risingwavelabs/risingwave/blob/24c25b4e52d4bc04af14c09b1d3e928604853998/.github/dependabot.yml#L16-L18
Updated dependency
No response
What you expected to see, versus what you actually saw
In PR https://github.com/risingwavelabs/risingwave/pull/11679
Part of aws-* are updated. I expect to update all of them.

This also caused multiple versions of the dependencies occuring.

Native package manager behavior
No response
Images of the diff or a link to the PR, issue, or logs
No response
Smallest manifest that reproduces the issue
No response

👋🏼
We are running into the same problem in https://github.com/strapi/design-system/pull/1292 The group update did miss @storybook/react, but picked up all other dependencies based on the group patterns.
The config is:
storybook:
  patterns:
    - '@storybook/*'
    - 'storybook-dark-mode'
    - 'storybook'

We also have the same problem with sentry-updates, missing @sentry/core.
In our config-file we have:
sentry:
        patterns:
          - "@sentry/tracing"
          - "@sentry/core"
          - "@sentry/browser"

However, dependabot only detects updates on tracing and browser, and core does not show up in the grouped PR (or even in a separate PR).

Hi we have made a lot of improvements to grouped updates since this issue was first reported. Can you confirm whether the issue is still present? One big fix is that groups are correctly order dependent now.

tagging @idaame and @xxchan and @gu-stav

Thanks for the work. But I didn’t check it recently. Let’s close the issue first. Will report if there’s still problems.

I find the problem still exists.
The config:
https://github.com/risingwavelabs/risingwave/blob/4ba2e667b0f70896ea32e19d86ebe6b3dd763aec/.github/dependabot.yml#L39-L41
The dependabot PR:
https://github.com/risingwavelabs/risingwave/pull/16517
From this commit, https://github.com/yoshidan/google-cloud-rust/commit/56a7d262b315f72a65c227b24dd692e0665d3ae3#diff-fd11a88e3e9d445df3f28639d7adc24dce7b710fe07bb689e814465af6a556b6
We can see other dependencies in the group, e.g., google-cloud-pubsub are also updated, but dependabot only updates one of them google-cloud-bigquery.

Just to add another example. Dependabot opened https://github.com/k3s-io/docs/pull/356, with this configuration.
In that PR you can see that it mentioned Updates @docusaurus/theme-common from 3.6.0 to 3.6.1 However if you look at the actual code changes, that dependency is never bumped https://github.com/k3s-io/docs/pull/356/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L20

It doesn't even seem to recognize that the dependency is not even on 3.6.0, its still on 3.5.2. Its seems to be tracking which version entirely independently of what is actually in the file.

I can reproduce the issue on https://github.com/podman-desktop/podman-desktop/pull/9992
the group is
      docusaurus:
        applies-to: version-updates
        patterns:
          - "@docusaurus/*"

but it's only updating few of the dependencies
as you can see, it doesn't update all @docusaurus packages
https://github.com/podman-desktop/podman-desktop/blob/54752f5600d5486a76269f82048bb3df800f0482/website/package.json
"dependencies": {
...
    "@docusaurus/core": "^3.6.1",
    "@docusaurus/plugin-client-redirects": "^3.6.1",
    "@docusaurus/preset-classic": "^3.6.1",
    "@docusaurus/theme-mermaid": "^3.6.1",
    "@docusaurus/theme-common": "^3.6.2",
...
  },
  "devDependencies": {
...
    "@docusaurus/module-type-aliases": "^3.6.2",
    "@docusaurus/tsconfig": "^3.6.2",
    "@docusaurus/types": "^3.6.2",
...

only half of them are updated from 3.6.1 to 3.6.2


Support custom comment thread header

I am developing an extension with Comments api, I noticed that when I click the comment icon to add a new comment, the thread header is "Start discussion", and there is no api to change it.

Only after added the comment, I can set content to thread.label for changing it.
there is a discussion here: https://github.com/microsoft/vscode-discussions/discussions/151
Is it possible to provide an api to change it? Maybe it can be an property of commentController?
const scanCommentController = vscode.comments.createCommentController('demo-controller', 'Demo comment controller');
scanCommentController.threadLabel = "Custom start disucssion";

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.
Happy Coding!


Document Marketplace API

VSCode is an open source product. It should have available documentation for the Marketplace & a way to run your own, even if you don't allow third parties to browse the Microsoft-owned Marketplace.

https://github.com/microsoft/vsmarketplace/issues/238


As a developer, I want to manage our postgres versions and preserve config

Currently, the postgis container image is built from an existing hydroshare image. Currently, there is no way to build the existing image from scratch, which will allow future upgrade texting, and preserve/use the pg.development.sql seed as well as the configuration logic stores in hydroshare/conf_postgres.
Anticipated deliverables:

local-dev.yml (dockercompose) includes build instructions for Dockerfile-postgis
Dockerfile-postgis updated to source from postgis/postgis:9.5-2.4 *

Possible issues:

postgis versions in docker start at 9.5 and we are at a 9.4 version

is related to https://github.com/hydroshare/hydroshare/issues/4540 closing


Page Scrolls On Initial Click of Select2 element

Prerequisites

[yes] I have searched for similar issues in both open and closed tickets and cannot find a duplicate
[yes] The issue still exists against the latest master branch of Select2
[yes] This is not a usage question (Those should be directed to the community)
[yes] I have attempted to find the simplest possible steps to reproduce the issue
[ ] I have included a failing test as a pull request (Optional)

Steps to reproduce the issue

I have 24 select2 elements on my page (i know its a lot, but a possible layout for me)
Clicking on any of the elements farther down the page (14 - 24) causes the page to jump up a certain amount.  For me it is about 500px or so.
I can scroll back down to see the drop down visible and that part will work as expected, but clicking on any other element near it will result in the page scrolling up again.

Expected behavior and actual behavior
When I follow those steps, I see... the page instantly scroll up about 500px. I can scroll back down to see the drop down list is positioned correctly, but the initial scrolling up of the page is a problem for me.
I was expecting... the page to not scroll at all when i click on the select2 element.
Environment
Browsers

[yes] Google Chrome
[ ] Mozilla Firefox
[ ] Internet Explorer

Operating System

[ ] Windows
[yes] Mac OS X
[ ] Linux
[ ] Mobile

Libraries

jQuery version: 3.1.1
Select2 version: 4.0.3

Isolating the problem

[ ] This bug happens on the examples page
[not tested] The bug happens consistently across all tested browsers
[yes] This bug happens when using Select2 without other plugins
[ ] I can reproduce this bug in a jsbin

BEFORE I CLICK ON 'FILTER 4' - There is a whole other section above this (about 12 more select2 elements)

AFTER I CLICKED ON 'FILTER 4' - the page scrolls up to a whole different section. Note where the scroll bar is. The original select2 element is no longer visible until i scroll down so it is back into view.

I'm getting the exact same behavior using 4.0.3, with two select2 instances on the page. One is a "multiple" select, the other is a "single" select. Both select2 dropdowns are below the fold, and clicking on the second dropdown bumps to page up to the top.

I'm getting the exact same behavior using 4.0.3, with two select2 instances on the page. One is a "multiple" select, the other is a "single" select. Both select2 dropdowns are below the fold, and clicking on the second dropdown bumps to page up to the top.

Can you create a working demonstration of this issue in an http://jsbin.com?  Otherwise, we cannot help.

Closing, as this is now discussed more thoroughly in #5022.

[ ] @ #1. > _****_


dopewars: init at 1.6.2

Description of changes
Adds new package: dopewars.
Closes  #251175
The source code stipulates that a high score file dopewars.sco can be read and written by all users. I don't have a solution for this yet. Can someone with more experience please help me with this? In any case, you can start the game if you explicitly specify an alternative file when calling the program.

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

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

The source code stipulates that a high score file dopewars.sco can be read and written by all users. I don't have a solution for this yet. Can someone with more experience please help me with this? In any case, you can start the game if you explicitly specify an alternative file when calling the program.

I reckon the source code should be patched to use a user-local directory for this.

I think this is the place to patch: https://github.com/benmwebb/dopewars/blob/b98cbc8bddada17be48bb000a7fe8d7d3da06f18/src/dopewars.c#L2797
Or you could also use makeWrapper to specify the scorefile by default

I was going to patch the source code to look for the scoreboard file in ~/.local/share but that turned out to be too much of a hassle since the game was looking in a potentially non-existent directory. I ended up using makeWrapper and got it working that way by running mkdir before the game starts.
Add scoreDirectory ? "$HOME/.local/share" and makeWrapper to the expression's arguments at the top and add this post install phase:
  postInstall = ''
    wrapProgram $out/bin/dopewars \
      --run 'mkdir -p ${scoreDirectory}' \
      --add-flags '-f ${scoreDirectory}/dopewars.sco'
  '';

Please create a new file named chmod755.diff in the same directory as package.nix with these contents:
diff --git a/src/Makefile.am b/src/Makefile.am
index 4b0c466..ce008fa 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -54,7 +54,7 @@ install-exec-hook:
 	@chgrp games ${DOPEBIN} || chgrp wheel ${DOPEBIN} || \
 	  ( echo "WARNING: Cannot change group of dopewars binary - the high"; \
 	    echo "score file may be unreadable or unwriteable by some users" )
-	chmod 2755 ${DOPEBIN}
+	chmod 755 ${DOPEBIN}

 install-data-local:
 	${mkinstalldirs} ${PIXDIR}

Remove patchPhase and replace it with this line:
  patches = [ ./chmod755.diff ];

This wraps dopewars so that it looks for the scoreboard file in ~/.local/share rather than the default /usr/share

Thank you! :1st_place_medal:

Builds and runs successfully. Looks good to me 👌

Thank you for your effective and instructive help.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/3377


Sunstone wizard drops DISK/SIZE when selecting different image

Description
When there is VM template with DISK, which has configured SIZE, e.g.:
DISK = [
  IMAGE = "Ubuntu 21.04",
  IMAGE_UNAME = "oneadmin",
  SIZE = "10000" ]

being updated via Sunstone VM Template Wizard, the DISK/SIZE attribute is dropped if different IMAGE is selected from a list of available images.

Expected behavior
Parameters stay same across image changes.
Details

Affected Component: Sunstone
Version: 5.12+

Progress Status

[ ] Branch created
[ ] Code committed to development branch
[ ] Testing - QA
[ ] Documentation
[ ] Release notes - resolved issues, compatibility, known issues
[ ] Code committed to upstream release/hotfix branches
[ ] Documentation committed to upstream release/hotfix branches

@tinova PRs to be approved:

Code
Docs 5.12
Docs 6.0


Add Uninstallation Protection

Can someone add Uninstallation Protection in the software, so it is not easily removable and It will require an password
to remove this app from the system. This would make this  a very secure app.
Thanks.

The app can't be uninstalled without putting in your sudo password like any other app in Ubuntu. To prevent a user from uninstalling you would need to ensure the user doesn't have the ability to uninstall an app on Ubuntu

The app can't be uninstalled without putting in your sudo password like any other app in Ubuntu. To prevent a user from uninstalling you would need to ensure the user doesn't have the ability to uninstall an app on Ubuntu

Can this have admin level uninstall protection just like cleanbrowsing client on windows....it cannot be uninstalled without an additional password that the user setup.


Expanding Autonomy

Thank you for the work you’ve done. 🙏
I would like to discuss an idea: currently, this package is suitable only for Laravel projects, but not for their packages.
I think it would be great if we could use importmap for various packages, such as forums, admin panels, and so on.
At the moment, builds are usually done using Vite or Laravel Mix, as they are not tied to a specific project.
I believe it would be beneficial if we could perform these actions as a standalone resource. What do you think?

Do you mean for package authors or app modules?
Package files are already supported via:

Package publishes assets to public/vendor/{package}/
Package added a new pin line to routes/importmap.php that points to the package in /vendor/{package}/file.js

The Stimulus Laravel package is an example.
If you mean app modules, I think it already supports it but I haven't tried it (I saw the discussion in the rails-importmap about it). I think it's already supported, but the DX isn't great. You'd have to do something like:

Bind a new Importmap class (like this)
Create a new routes/{module}-importmap.php entrypoint then require it in the Service Provider so it registers the mapping (like here)
Here's the ugly part, you'd have to register the  pins using the new binding key from the Service Provider, so if you bound the new Importmap as admin-importmap, you'd have to do resolve('admin-importmap)->pin(...)` instead of using the Facade
Then, when you're using the <x-importmap::tags>  component on your admin template, you would have to pass the importmap down like <x-importmap::tags :importmap="resolve('admin-importmap')" /> so the mappings would be registered correctly

I do have some ideas on how to maybe improve this, but would also be open for contribution.

I'm not sure if I expressed myself clearly, and I want to ensure we're on the same page. What I mean is that it would be useful to have a more independent tool that is suitable for Laravel package authors.
For example, I would like to replace Mix with Importmap in the Orchid package. The idea is to create an importmap.php file in the root directory of the project, and then use the following command:
php vendor/bin/importmap

This would also apply to other commands like php artisan importmap:outdated.


adding to github collection doesn't work on heroku, but works locally

I've started a github collection here: https://github.com/akeshavan/brainspell-collection-MS_atrophy  on gray matter atrophy in MS. I'm getting a 500 error on the herokuapp, but not locally - so I'm not sure how to debug. Can someone post the heroku logs of this?

Also, I was able to create a collection on http://brainspell.herokuapp.com/repos so that's good!

2017-04-18T17:05:27.512690+00:00 app[web.1]: ERROR:tornado.access:500 POST /add-to-collection?pmid=16919481&collection=brainspell-collection-Main (<IP_ADDRESS>) 4.52ms
Disconnected from log stream. There may be events happening that you do not see here! Attempting to reconnect...
2017-04-18T17:05:27.511876+00:00 app[web.1]:     return json.dumps(value).replace("</", "<\\/")
2017-04-18T17:05:27.511877+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.5/json/__init__.py", line 230, in dumps
2017-04-18T17:05:27.511877+00:00 app[web.1]:     return _default_encoder.encode(obj)
2017-04-18T17:05:27.511878+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.5/json/encoder.py", line 198, in encode
2017-04-18T17:05:27.511879+00:00 app[web.1]:     chunks = self.iterencode(o, _one_shot=True)
2017-04-18T17:05:27.511879+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.5/json/encoder.py", line 256, in iterencode
2017-04-18T17:05:27.511880+00:00 app[web.1]:     return _iterencode(o, 0)
2017-04-18T17:05:27.511880+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.5/json/encoder.py", line 179, in default
2017-04-18T17:05:27.511887+00:00 app[web.1]:     raise TypeError(repr(o) + " is not JSON serializable")
2017-04-18T17:05:27.511887+00:00 app[web.1]: TypeError: b'eyJub3RlcyI6ICJIZXJlIGFyZSBteSBub3RlcyBvbiB0aGlzIGFydGljbGUiLCAicG1pZCI6ICIxNjkxOTQ4MSJ9' is not JSON serializable
2017-04-18T17:05:27.512690+00:00 app[web.1]: ERROR:tornado.access:500 POST /add-to-collection?pmid=16919481&collection=brainspell-collection-Main (<IP_ADDRESS>) 4.52ms

This was the error message. If you think it might be easier, I can also add you as a contributer on the Heroku page, so you can directly see it.

I believe it may have something to do with the get_current_github_user method in BaseHandler. I put the entire statement in a Try Catch loop to avoid having the page crash on startup.

adding Anisha as a contributer on the Heroku page could help: can you do it?

Yes, I just need an emailaddress.

anishakeshavan  on gmail

Ok done.

thanks! This PR should fix it: https://github.com/OpenNeuroLab/brainspell-neo/pull/23

So it looks like this works, but I'm seeing another issue on the Heroku that I'm not seeing locally -- I can't connect to Github on Heroku if I'm not already logged into the app (w/ email). Are you seeing this?
I think its getting confusing w/ 2 logins, maybe its worth removing the login/register, and using the github login information to populate your Users table?

Is this issue ready to be closed?

Yep


Level always at 0% in heating groups after last update

Describe the issue you are experiencing
The data point Level in a device group always shows 0%. The groups consist of two or three radiator thermostats with a wall thermostat. The error occurs here since the update to <IP_ADDRESS>40316. The data point (Level) on the single device works.
Describe the behavior you expected
Before the update, the last changing value was always displayed here.
Steps to reproduce the issue
Change in value of the valve position.
What is the version this bug report is based on?
<IP_ADDRESS>40316.
Which base platform are you running?
rpi4 (RaspberryPi4, ARM64/aarch64)
Which HomeMatic/homematicIP radio module are you using?
RPI-RF-MOD
Anything in the logs that might be useful for us?
N/A

Additional information
No response

Sorry, but your description is too generic. No technical details on the actual homematic devices you are using in the group, etc. In additon, this cannot be a general issue/problem since thousands of other users are happily using it. Thus, will convert it to a discussion so that you seek for help.


Completion

hyper attach
hyper compose
hyper config
hyper create
hyper cron
hyper exec
hyper fip
hyper history
hyper images
hyper info
hyper inspect
hyper kill
hyper load
hyper login
hyper logout
hyper logs
hyper port
hyper ps
hyper pull
hyper rename
hyper restart
hyper rm
hyper rmi
hyper run
hyper search
hyper service
hyper sg
hyper snapshot
hyper start
hyper stats
hyper stop
hyper update
hyper version
hyper volume

ok to review?


MQTT works fine reporting wise but no sensors auto discovered

i can see using MQTT Explorer that the sensor data is being published, but HA has not detected or had any devices added.  The wording on the  description of your "Acurite" version doesn't mention "autodiscovery" in the wording the same way that the generic version does.  Do they both need to be installed?
Also when I'm viewing my MQTT server, even though my autodiscover prefix says "homeassistant" as the config suggests, nothing is being published to that topic, only to rtl_433
Thx

Hi!
I have the exact problem.

Since I updated the OS and Core a few days ago, none of the Accurite sensors show up.  I was in a place before the update that had a ton of Accurite sensors and they show up in MQTT when I listen with #.  I have two installations, one at home and one in the RV.  They both quit working after the update.  Core is 2021.12.10, OS is Home Assistant OS 7.2,  supervisor-2021.12.2 Acurite to Home Assistant (0.3.9b).
tarting RTL_433 with parameters:
MQTT Host = <IP_ADDRESS>
MQTT port = 1883
MQTT User = mosquito
MQTT Password = xxxxxxxx
MQTT Topic = rv_rtl_433
MQTT Retain = true
PROTOCOL = -R 11 -R 40 -R 41 -R 55 -R 74
Whitelist Enabled = false
Whitelist =
UNITS = customary
DISCOVERY_PREFIX = homeassistant
DISCOVERY_INTERVAL = 600
DEBUG = false
rtl_433 version 21.12-45-gf4e2ef5b branch master at<PHONE_NUMBER>09 inputs file rtl_tcp RTL-SDR
Use -h for usage help and see https://triq.org/ for documentation.
Trying conf file at "rtl_433.conf"...
Trying conf file at "/root/.config/rtl_433/rtl_433.conf"...
Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...
Trying conf file at "/etc/rtl_433/rtl_433.conf"...
Publishing MQTT data to <IP_ADDRESS> port 1883
Publishing device info to MQTT topic "rv_rtl_433[/model][/id][/channel:0]".
Publishing events info to MQTT topic "rv_rtl_433/events".
Publishing states info to MQTT topic "rv_rtl_433/states".
Registered 5 out of 211 device decoding protocols [ 11 40-41 55 74 ]
No supported devices found.
Any thought where to start looking would be appreciated.
Thanks.

Hi, I have identical OS etc ... Still works, but from your log it's that the USB dongle is not recognized. Try unplug / plug , restart complete device , for troubleshooting you might check if the host device can recognize the usb-adapter. Check when u plug the device if there is an entry what identifies the USB adapter correctly: (configuration/add-ons/system/ and change log provider to host) and plug it should identify it as USB .... Realtek or something familiar at least you should get USB action when plug and reading some identification of USB not an error or unknown or no action at all ...

I had restarted Home Assistant many times, but had not done a total reboot of the device.  When I rebooted the devices from within Home Assistant, everything came up working again.  THANK YOU VERY MUCH!

Hi!
I looked at the MQTT broker log and found lots of these as soon as I started the Acurite:
1645449093: New client connected from <IP_ADDRESS> as rtl_433-057fffff (p2, c0, k60, u'mqttuser').
1645449140: New connection from <IP_ADDRESS> on port 1883.
1645449140: Socket error on client , disconnecting.
1645449260: New connection from <IP_ADDRESS> on port 1883.
1645449260: Socket error on client , disconnecting.
1645449380: New connection from <IP_ADDRESS> on port 1883.
1645449380: Socket error on client , disconnecting.
1645449500: New connection from <IP_ADDRESS> on port 1883.
1645449500: Socket error on client , disconnecting.
1645449620: New connection from <IP_ADDRESS> on port 1883.
1645449620: Socket error on client , disconnecting.
1645449740: New connection from <IP_ADDRESS> on port 1883.
1645449740: Socket error on client , disconnecting.
1645449860: New connection from <IP_ADDRESS> on port 1883.
1645449860: Socket error on client , disconnecting.
1645449980: New connection from <IP_ADDRESS> on port 1883.
1645449980: Socket error on client , disconnecting.
1645450102: New connection from <IP_ADDRESS> on port 1883.

That MQTT looks like a bad login or a login that hasn't been whitelisted for MQTT. I have seen that if I was using ACL and hadn't whitelisted the login.

This is what my logs look like. Not seeing any devices.
022-12-28 23:13:52: Opening ipv4 listen socket on port 1883.
2022-12-28 23:13:52: Opening ipv6 listen socket on port 1883.
2022-12-28 23:13:52: Opening websockets listen socket on port 1884.
2022-12-28 23:13:52: Opening ipv4 listen socket on port 8883.
2022-12-28 23:13:52: Opening ipv6 listen socket on port 8883.
2022-12-28 23:13:52: Opening websockets listen socket on port 8884.
2022-12-28 23:13:52: mosquitto version 2.0.11 running
2022-12-28 23:13:52: New connection from <IP_ADDRESS>:38082 on port 1883.
2022-12-28 23:13:52: Client  closed its connection.
2022-12-28 23:13:52: New connection from <IP_ADDRESS>:57742 on port 1883.
2022-12-28 23:13:52: New client connected from <IP_ADDRESS>:57742 as rtl_433-057fffff (p2, c0, k60, u'mqtt-user').
2022-12-28 23:13:53: New connection from <IP_ADDRESS>:57750 on port 1883.
2022-12-28 23:13:53: New client connected from <IP_ADDRESS>:57750 as auto-C418218B-C50F-E815-BFC6-8FC89AADA87B (p2, c1, k60, u'mqtt-user').
2022-12-28 23:13:53: New connection from <IP_ADDRESS>:36233 on port 1883.
2022-12-28 23:13:53: New client connected from <IP_ADDRESS>:36233 as 2tjhN6psdHe8fRBs7pOHUx (p2, c1, k60, u'mqtt-user').
2022-12-28 23:14:00: New connection from <IP_ADDRESS>:47346 on port 1883.
2022-12-28 23:14:00: Client  closed its connection.
2022-12-28 23:16:00: New connection from <IP_ADDRESS>:58422 on port 1883.
2022-12-28 23:16:00: Client  closed its connection.
2022-12-28 23:16:18: Client 2tjhN6psdHe8fRBs7pOHUx closed its connection.
2022-12-28 23:16:29: New connection from <IP_ADDRESS>:56511 on port 1883.
2022-12-28 23:16:29: New client connected from <IP_ADDRESS>:56511 as 6Nnnm2y8bwpav67cCIBk3j (p2, c1, k60, u'mqtt-user').
2022-12-28 23:17:52: Client rtl_433-057fffff closed its connection.
2022-12-28 23:17:52: Client auto-C418218B-C50F-E815-BFC6-8FC89AADA87B closed its connection.


[Android] Fix bug in timer clean up

One of the impacts of this bug is that Java is firing timer
completion events into JavaScript for timers that should have
been deleted. JavaScript filters these out so it doesn't impact
the app developer. However, Java is completing more timers
than necessary.
When cleaning up a timer, we were accidentally deleting the
whole set of timers for that context. Instead, we should
just delete that timer from its context.
Adam Comella
Microsoft Corp.

By analyzing the blame information on this pull request, we identified @janicduplessis and @astreet to be potential reviewers.

@janicduplessis @astreet: Have either of you had a chance to look at this yet?

@rigdern Should we remove the context from mTimerIdsToTimers when it doesn't contain anymore timers?
I don't get how this causes Java to fire more timer than necessary, aren't we removing more timers than we should causing timers to not be fired?

@janicduplessis Thanks for taking a look. Removing empty contexts from mTimerIdsToTimers  sounds reasonable to me. I'll do that.
Here's an explanation for why this can cause Java to complete more timers than necessary. The confusing thing is probably that there are a couple of data structures storing the timers: mTimerIdsToTimers which maps an executor token to a list of tokens and mTimers which is a list of all of the timers. mTimerIdsToTimers is used as a lookup for deleting timers and mTimers is used as a lookup for completing timers.
If you recall, the bug is that when you delete a timer, you remove all of the timers associated with that executor token from mTimerIdsToTimers. However, those timers are still in mTimers so they will fire. But because they are no longer in mTimerIdsToTimers, it's impossible to cancel them (deleteTimer relies on mTimerIdsToTimers for looking up timers).

@rigdern updated the pull request - view changes

CI issues look unrelated let's try shipping it
@facebook-github-bot shipit

Thanks for importing. If you are an FB employee go to Phabricator to review internal test results.


sentry_sdk.init fails mypy checks

How do you use Sentry?
Sentry Saas (sentry.io)
Version
1.5.10
Steps to Reproduce

$ python3.10 -m venv venv
$ source ./venv/bin/activate  # assuming unix
[venv] $ pip install sentry-sdk==1.5.10 mypy==0.950 (currently the latest versions of sentry-sdk and mypy)
create file to test (mytest.py for example purposes)

# mytest.py
import sentry_sdk

sentry_sdk.init(dsn="this is a string")

[venv] $ mypy mytest.py

Expected Result
no errors
Actual Result
❯ mypy mytest.py
mytest.py:3: error: Cannot instantiate abstract class "init" with abstract attribute "__exit__"
Found 1 error in 1 file (checked 1 source file)

Thanks @dhuckins , we are on this and we expect to have a fix for this by Wednesday.

Thanks @dhuckins , we are on this and we expect to have a fix for this by Wednesday.

awesome! thank you!

thanks for taking care of this so quickly! when is the next release (with these changes) planned?

@dhuckins released 1.5.11

Thanks!

@sl0thentr0py any reason why https://peps.python.org/pep-0612 was not used as a fix? I was looking at https://github.com/python/typing/issues/270 and saw that @untitaker was involved in discussion about it so I assumed that it would be the fix.

Honestly I can't wrap my head around that PEP right now so if you think you have a better solution i'd create a patch.

@untitaker I took a closer I guess PEP 612 does not apply.
How I understand that could work, is to remove the hacks with _Client and Client make the class simply being called Client and _get_options and get_options then copy all of the parameters from the mockup Client to get_options (alternatively use TypedDict).
then add:
F = TypeVar('F', bound=Callable[..., Any])

class copy_signature(Generic[F]):
    def __init__(self, target: F) -> None: ...
    def __call__(self, wrapped: Callable[..., Any]) -> F: ...

As mentioned in the comment, and add then @copy_signature(get_options) to the init() function.

@takeda if you make a PR, I'll happy to merge in the changes

I think using a decorator instead of a class hierarchy to patch in the signature might be a good idea that makes things more legible, but I think TypedDict (still) cannot be used to type out kwargs.