Unable to connect to the server: x509: certificate signed by unknown authority

though there is a same question #35 ,but I tried add ca to ca-bundle.crt or check kubectl kubeconfig ,but error is still exist. folllowed info details:
kubectl get componentstatuses
Unable to connect to the server: x509: certificate signed by unknown authority

log messages
 kube-apiserver: I0825 16:47:49.330816    7117 logs.go:41] http: TLS handshake error from <IP_ADDRESS>:34401: read tcp <IP_ADDRESS>:6443-><IP_ADDRESS>:34401:

from mesages seems there is a radom port 34401 to connect to 6443........
so it ca error or some other faults.......
thanks any help!!!

问题终于解决了，原来etcl不小心在master上去安装测试了，应该在node上去安装的，这是关键！！其他还有些小问题，属于个性问题，好解决。最终kubectl get componentstatuses正常了！！

从字面意思看，一直以为证书的问题。。。。，多分析是正道啊。。。。。


Query: Convert complex expression to alias while lifting order by in collection include

Fixes #6591
Issue here was, when we were lifting order by in collection include, we only made alias for SelectExpression so for a case block, we updated column expression to add it to outer query order by. Which generated incorrect SQL because the column is not project from inner subquery and the table reference is incorrect.
Fix is to make alias for any expression in inner subquery order by which is not column expression or aliased column expression.
Another minor fix - if ColumnExpression does not have underlying property then Equals should match names too.

:shipit:


chore: Remove outdated members and add fate to cibots

This PR is to:

Remove outdated members in Caicloud
Add fate-operator to ci-bots team

Signed-off-by: Ce Gao<EMAIL_ADDRESS>

/lgtm
/approve


User Data script execution for Windows VM information missing

Documentation does not include any information about how scripts passed into user data are executed and what languages are permitted. I.e. will Powershell scripts be executed on a Windows VM? It seems not.

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

ID: b3293bd8-9818-239b-aa57-b610cc6e2ac0
Version Independent ID: 6642a3f4-db0e-7c37-98a8-cd03da437b20
Content: User data for Azure Virtual Machine - Azure Virtual Machines
Content Source: articles/virtual-machines/user-data.md
Service: virtual-machines
GitHub Login: @ningk
Microsoft Alias: ningk

@RudolfTheGolem
User Data scripts on Windows VMs are executed using the Windows command interpreter (cmd.exe) by default. This means that scripts written in languages that can be executed by cmd.exe, such as batch files and VBScript, can be used as User Data scripts on Windows VMs. However, PowerShell scripts cannot be executed by cmd.exe by default, so they cannot be used as User Data scripts on Windows VMs without additional configuration.
To use PowerShell scripts as User Data scripts on Windows VMs, you can create a batch file that calls the PowerShell script using the powershell.exe command. For example, you could create a batch file with the following contents:
powershell.exe -ExecutionPolicy Bypass -File C:\path\to\script.ps1

This batch file can then be passed as the User Data script when creating a Windows VM.
@mattmcinnes
Could you please review add comments on this, update as appropriate.

@RudolfTheGolem
We are going to close this thread, if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.
#Please-close


decrease log level in android workflows

We are currently running with --debug log level, which obfuscates any useful information for 99% of the cases: https://app.circleci.com/pipelines/github/pytorch/vision/23946/workflows/f0af7f08-da38-40e0-9ec7-97dfc76caa15/jobs/1851891
Compare that to the log output from #7410, which includes the same path as this PR: https://app.circleci.com/pipelines/github/pytorch/vision/23985/workflows/93c08d16-4776-4ace-aa14-89dec0998364/jobs/1852841?invite=true#step-103-7
There you can actually comprehend what is going on. I propose we reduce the log level to something normal by default and only use --debug if we actually want to debug the workflow.

Superseded by #7524.


⚠ Bofrost.lu has degraded performance

In 994a968, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1405 ms

Resolved: Bofrost.lu performance has improved in 770b4e7 after 13 minutes.


Separate the version number from the word "version" in "Maps" tab

Client Version:
2021.10.0

This is a translation issue and not a spacing issue. In english it is perfectly fine to have the v# not be separated by a space and is in fact intended that way. So the translation just needs to be fixed.

OK. Then I will correct the translation

You have to do that through the POEditor page here https://poeditor.com/join/project?hash=2oWfdaZQZj

I know. Already fixed.


Out of Memory (Fatal) Error when Dropping Measurement

Bug report
System info:
Debian GNU/Linux 8 (jessie)
3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-1 (2016-03-06) x86_64 GNU/Linux
InfluxDB 0.13.0
Steps to reproduce:

Collect around 50,000 data points in a single measurement
Attempt to drop the measurement with DROP MEASUREMENT [name]
Wait a few seconds

Expected behavior:
After some time, InfluxDB should signify that it has successfully dropped the measurement, or that it has encountered some error and cannot finish dropping the measurement.
Actual behavior:
InfluxDB crashed and took a few minutes to restart from WAL segments.  Running DROP MEASUREMENT [name] a second time succeeded.
Additional info: [Include gist of relevant config, logs, etc.]
Log contents (includes stack trace)

@goakley Can you see if @jwilder's change fixes your issue?

Going to close this as it should be fixed by #7015.  The logs show hundreds of writes blocked on the tsdb.Store mutex.  DropMeasurement incorrectly was holding the writing lock which locks up the whole tsdb.Store for writes and queries.  The lock caused writes to pile up and ultimately a compaction ran and allocation triggered an OOM.


Ex-vivo processing

Will create a branch to support this, but some of the key features are here:

segmentation should already be provided as inputs (ie. no nnunet)
in this case we would likely want to skip template shape injection, but a user may want to keep this step still if they aren't confident about the quality of their segmentation (or are missing some labels)
registration to CITI168 should be skipped, and data should not be downsampled. (Note: if the input data is in some arbitrary space then template shape injection may also fail)
resources for things like laplace_coords should be increased
(optional) add option to specify already computed laplace coords?

Suggestions from @akhanf :

since snakemake operates backward, it should be easy to skip most of the preprocessing by specifying new inputs for downstream steps, similar to here: https://github.com/khanlab/hippunfold/blob/862ac89c107969f89ed2a8d2ec9d93a19b74151d/hippunfold/workflow/rules/common.smk#L218
it might make sense to pass this setup as a modality (eg. --modality ExVivo), but it could make more sense to pass something like participant_exvivo instead of participant at the analysis level
could consider making this a separate repo and use https://snakemake.readthedocs.io/en/stable/snakefiles/modularization.html#modules

Closing with https://github.com/khanlab/hippunfold/pull/81

Closing with https://github.com/khanlab/hippunfold/pull/81


Optimizing grammar and code perfection

idk how to test these code soo...

do i must add using namespace geode? idk

what the fuck is this pr

lol

change the title to "Optimizing grammar and code perfection"

sure why not? also going to merge some other things rn

so lil optimise removes the menu item crash fix what's the point

and you removed m_fields this will crash

which commit? as i said i cant test code idk if it crashes?

sorry

i'll assume this is just a troll pr since this achieves nothing useful.

what why this is not a troll pr

you didn't even test anything, why even make a pr

removing comments is not optimization
removing m_fields from field access in modify classes will 100% cause crashes
you said yourself you didn't test anything, why even make a PR
you removed a lot of code without explaining why
you changed the styling of the existing code in a lot of places without a good reason
you removed a lot of existing fixes and workarounds for no reason, despite them existing for a very good reason

i think you can merge working ones at least

what is this man smoking

bro's removing essential parts of geode and calls it optimization

i have tried to count the amount of things that will not compile and things that will break and now i am currently getting put inside a crematorium i died of old age at 95 years

mf made the whole pr red like my period blood and call that "contributing"

Adding onto dankmeme's message
7. you literally changed several member names to things that do not exist which in turn will not compile
8. removing typeinfo casts will crash as explained in the geode docs
9. a ccarray is not iterable, thats the entire reason ccarrayext exists
10. removing default values from member ctors will make them undefined behavior, which is you know bad
11. changing unique ptrs to normal ptrs is bad since they will leak after destructing
12. you straight up removed entire functions like the event listeners which will again make stuff not compile
and this is just 25% of the code i didnt even look at the remaining 75%


DOC: missing functions in observations module

Add the missing functions in the glass.observations module to the docs.

I am running into this error when trying to build the documentation:
Running Sphinx v4.4.0

Configuration error:
There is a programmable error in your configuration file:

Traceback (most recent call last):
  File "/opt/homebrew/Cellar/sphinx-doc/4.4.0/libexec/lib/python3.10/site-packages/sphinx/config.py", line 340, in eval_config_file
    exec(code, namespace)
  File "/Users/loureiro/Work/Github/glass/docs/conf.py", line 90, in <module>
    from sphinx_gallery.sorting import ExampleTitleSortKey  # noqa: E402
ModuleNotFoundError: No module named 'sphinx_gallery'

make: *** [html] Error 2


Add Gaussian Process Regressor

GPRs lend themselves well to the fit(), predict() methodology. Moreover, a well-done GPR will enable this package to be used for kriging, which has been used for the solution of PDEs, with an increasing interest in this topic in recent years.

Adding GPs would be awesome.   Any ideas on how users would specify covariance functions?
P.S.  "kriging" is just the name the geostats community uses for Gaussian processes.   It's also closely related to the conditional autoregressive (CAR) models in spatial stats.  GeoBUGS has an implementation and there are Stan case studies and a chapter in the user's guide.


Use nvcr.io/nvidia/tensorrt image for GPU tests

GPU test may need TensorRT, so let's use an image that has TensorRT pre-installed.
Still need to test that everything runs fine before merging.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Passing on the DGX.


Missing a few module requirements

Not sure whether I've done something wrong at the beginning or some new modules have been added and the requirements file not updated?
I ran pip install -r requirements.txt and it installed all the packages without issues.
Then running gpt-engineer I got the following error 3 times for each module name - ModuleNotFoundError: No module named X:

idna
six
certifi

Running pip install idna etc after each error fixed it and was able to finally run gpt-engineer. Do they need to be added to the requirements.txt file?
Python version: 3.10

Which Python version are you using?

Sorry should've mentioned - initially 3.8 but had some errors and following recommendation from someone in another issue i upgraded to 3.10

As far as I understood this repo yesterday, it actually assumes 3.10 as its minimum version (type literals, for example) so that might be the best forward. If that resolves your issue, please ping and close this out!

If you wish to reopen the issue please do following the new issue template.


[FEATURE] Create alerting monitor tool

We have get alerting monitor tool now. We can create some tool to create alerting monitor.

[Catch All Triage, attendees 1, 2, 3, 4, 5, 6, 7]

Hi, I'm working on implementing this tool, which aims to help create alert with natural language. The tool has 3 input parameters:

question: user's question about creating a new alert
indices: The input indices of the monitor.
chat_history: optional, the chat history of chatbot

This tool is able to request LLM by itself and has its own tool prompt, and its can also get necessary information by calling OS API.
When this tool is selected by chat agent or invoked by flow agent, it will be executed as following steps:

get the mapping info of the input indices
construct its final tool prompt by substitute the placeholders(e.g. question, indices, chat_history, mapping_info) in its raw prompt
request LLM with the final prompt and got response
extract the alert configuration from the LLM response as its output.

The tool output format may be like:
Tool output:

{
    "name": "Error 500 Response Alert",
    "search": {
        "indices": ["opensearch_dashboards_sample_data_logs"],
        "timeField": "timestamp",
        "bucketValue": 60,
        "bucketUnitOfTime": "m",
        "filters": [
            {
                "fieldName": [
                    {
                        "label": "response",
                        "type": "text"
                    }
                ],
                "fieldValue": "500",
                "operator": "is"
            }
        ],
        "aggregations": [
            {
                "aggregationType": "count",
                "fieldName": "bytes"
            }
        ]
    },
    "triggers": [
        {
            "name": "Error 500 Response Count Above 1",
            "severity": 1,
            "thresholdValue": 1,
            "thresholdEnum": "ABOVE"
        }
    ]
}

There is a demo video about creating an alert by LLM: https://broadcast.amazon.com/videos/1159580
and a figma workflow about creating an alert as a follow up question of alert analysis: figma workflow


Missing updates from 3.2 branch

The 3.2 branch wasn't merged into main after the 3.2 release.
The branch did not contain any features (which were all in the main branch already) but only changes to some xml and other document files.
This PR contains missing changes that should still be merged into main, even though we already had a 3.2 release.
This PR is equivalent to rebasing 3.2 HEAD onto main HEAD.
The parent commit of 3.2 is 9205b733 from 07/10/2021 at 21:13
Comparing 3.2 HEAD against 9205b733caeac377e0078a05206839268fdcf0f0 shows the following files have changed:

However, during rebase, the following conflicts were shown:

Notably, all of the spec files appear to have been modified. I assume this can be ignored but that needs to be confirmed.

In summary, apparently all that needs merging is one paragraph missing in the HowToReleaseJdo.
Spec changes die not really happen in the 3.2 branch (as far as we can tell), all other changes are version number changes which are superceded by changes when releasing 3.2.1


Extensions Support

Is there extension support here? If so, how would I use it?

No, unfortunately, there is no support for it yet.
I did not have the need or time to implement extension support.
You can start contributing to support this.
Feel free to open a pull request so we can build this together.

Sounds great, I'll open a PR shortly


Add BeforeLossMonitor

Description

Adds a new monitor to record particle data in the last turns before they are lost.
This is motivated by studies of slow extraction, but I think it can be useful for other cases where beam dynamics shortly before particle loss are of interest. So I wanted to share it.
The idea is to use a rolling buffer instead of saving all the turns. This saves a lot of memory resources, especially when the interest lies only in the last few turns anyway. When accessing the recorded data via the monitors attributes, the buffers are automatically rolled according to their offsets, such that the index [:,-1] corresponds to the last turn for each of the particles, respectively. It is also possible to store only every 2nd, 3rd, etc. turn.
Monitor to save particle data in last turns before respective particle loss

The monitor provides the following data as 2D array of shape (num_particles, n_last_turns),
where the first index corresponds to the particle_id in particle_id_range
and the second index corresponds to the turn (or every_n_turns) before the respective particle is lost:
`particle_id`, `at_turn`, `x`, `px`, `y`, `py`, `delta`, `zeta`

Args:
    n_last_turns (int): Amount of turns to store before particle loss.
    particle_id_range (tuple): Range of particle ids to monitor (start, stop).
    num_particles (int, optional): Number of particles. Equal to passing particle_id_range=(0, num_particles).
    every_n_turns (int, optional): Save only every n-th turn, i.e. turn numbers which are a multiples of this.
        Because `n_last_turns` defines the amount of turns to store (and not the range), the data will cover turn
        numbers up to `n_last_turns*every_n_turns` turns before particle loss.

The monitor uses 32 bit data types and only stores the 6D phase space coordinates to keep the memory footprint small.
I moved the file(s) to the monitors folder to keep the file structure overseeable when future monitor types are added.
Checklist
Mandatory:

[x] I have added tests to cover my changes
[x] All the tests are passing, including my new ones
[x] I described my changes in this PR description

Optional:

[x] The code I wrote follows good style practices (see PEP 8 and PEP 20).
[ ] I have updated the docs in relation to my changes, if applicable
[x] I have tested also GPU contexts

I like it very much, it can be very useful for many studies.
I would propose to rename the class to "LastTurnsMonitor" because actually this works also if the particle is not lost and in that case you get the last N turns before the end of the simulation.


Allow modification of client details after order has been created but before service is activated

When a new domain registration order is created, the details are pulled from the client profile. However, if these details are invalid for whatever reason, there currently does not seem to be a way to modify them without manually changing the service in the database.
The easy solution would be to simply get the client details when activating the order, rather than when trying to create it. The pretty solution would be to get forms in both the client and admin area where the pending order can be modified. However, I would prefer to leave the actual design decision up to you.

You can edit order config at bb-admin/order/manage "edit order config" tab and client profile data can be edited in profile page. Client profile information is fetched from database every service management action.

Thank you for your response. Unfortunately, there do no seem to be any fields for client profile details on the Edit Order Config tab. There are plenty of values there, including nameservers, title and price, but no contact or profile details.


Please change the way ServicePrincipal name is given in example

Disclaimer: The intent of this "Bug report" templates is to address issues related to the Azure Arc Jumpstart scenarios, ArcBox and all other project ares. The Azure Arc Jumpstart team does not handle Azure Arc core product issues, bugs and feature requests and will try to assist on a best effort basis. For a core product issue or feature request/feedback, please create an official Azure support ticket or general feedback request

Scenario which you are working on
https://azurearcjumpstart.io/azure_jumpstart_arcbox/full/
Describe the bug
To create a Service Principal the right way is - https://{tenant name}.onmicrosoft.com/{app registration name}
Expected behavior
Please update the documentation so that it can help others as well.
Screenshots

Hi Surbhi, can you please tell me what version of Az CLI you are seeing this error? I am not able to reproduce using latest CLI (2.36.0)

Hi Dale, I am using the azure-cli version 2.16.0

As per documentation it is written that - "Install or update Azure CLI to version 2.15.0 and above. Use the below command to check your current installed version." So I didn't even try to update the Azure CLI version.

@SurbhiAgarwal12 can you please upgrade AzCLI to the latest? I am unable to repro. Once confirmed, I will push an update.

Pushed a README update


Relative paths using .. fail with --source

Use case: Test script(s) under tests/ and source code under scr/, running from the tests folder try using --source ../src/ and it fails.
Work around: Use the absolute path
I believe the .. need expanding here:
    def addSource(self, source : Path):
        if isinstance(source, str):
            source = Path(source)
        if not source.is_absolute():
            source = self.cwd / source
        self.sources.append(source)

i.e. https://github.com/plasma-umass/slipcover/blob/v0.3.1/src/slipcover/importer.py#L61
It should probably call https://docs.python.org/3/library/pathlib.html#pathlib.Path.resolve but there could be side effects that I've not considered. However, this seems to work for me:
    def addSource(self, source : Path):
        if isinstance(source, str):
            source = Path(source)
        if not source.is_absolute():
            source = (self.cwd / source).resolve()
        self.sources.append(source)

Thinking about this there could be undesired behaviour with resolving symlinks, but I don't use them much in my source code myself.


Readme clarification

When I tried the start command in the readme file I get basedir=$(dirname "$(echo "$0" | sed -e 's,\,/,g')") error.
I can work directly with the hans command but trying "start": "ts-node-dev ./node_modules/.bin/hans apps --disable-compilation" produce the error
env
Powershell 5.1

After some research it seems like this a Windows-exclusive issue. The easiest way to fix it is to change the command accordingly:
"start": "ts-node-dev<EMAIL_ADDRESS>apps --disable-compilation"

Thanks for the help and clarification, it would be nice if this could be found in the readme file for future cases, but overall thanks.


More permissions are needed - DeviceManagementApps.Read.All

Many thanks for your efforts!
It looks like more permissions are needed for the app registration. This permission is needed to read all the apps in Intune: DeviceManagementApps.Read.All

Thank you @Stanzoheetik. Fixed it now.


Directions to edit cmdline don't work

Following these instructions:
https://github.com/ros-realtime/reference-system/blob/a25f704735d004ce4149a23fc6eb597184c4b12e/README.md?plain=1#L133-L143
On a Pi 4 running Ubuntu 20.04 will not change the cmdline. Instead, you must edit /boot/firmware/cmdline.txt to say
zswap.enabled=1 zswap.zpool=z3fold zswap.compressor=zstd dwc_otg.lpm_enable=0 console=tty1 root=LABEL=writable rootfstype=ext4 rootwait fixrtc rcu_nocbs=2,3 nohz_full=2,3 isolcpus=2,3 irqaffinity=0,1 audit=0 watchdog=0 skew_tick=1 quiet splash

Reboot and the changes will be in effect. This fix is tested and confirmed working for me.
It's unclear if this is a distro issue between Ubuntu and Raspian.
5 weeks from now, I'll have free time to investigate myself. For now, I'm documenting the issue.

Thanks @nightduck for reporting it. I'll look into it next week.


Add compute.globalOperations.list to permissions

What is the problem that this PR is trying to fix?
Requeues at end of script due to:
msg="couldn't determine if instance was preempted" err="googleapi: Error 403: Required 'compute.globalOperations.list' permission for 'projects/travis-staging-1', forbidden"

What approach did you choose and why?
Add the permission that the API is complaining about.
How can you test this?
What feedback would you like, if any?

@joep I believe this will also need compute.globalOperations.get


Update to latest <IP_ADDRESS> Kafka

Currently Kafka <IP_ADDRESS> RC1 is out -- we should test and upgrade to <IP_ADDRESS> when it is GA
https://mail-archives.apache.org/mod_mbox/kafka-dev/201501.mbox/<CAFc58G_-6N2HWRr4Ddu-TeX%3Dmx3QgJziZXfxzMbdTab6Tv3xzA%40mail.gmail.com>

@joekiller, have you thought about upgrading jruby-kafka to kafka-0.8.2?
I can help with that if it is not a priority for you at the moment!

I have a little but was waiting for it to stabilize more.  I know they had
a few outstanding cpu consumption issues. See here
<EMAIL_ADDRESS>Feel free to kick it around though.  I'll work in the PRs after we test
some.
On Wed, Feb 25, 2015 at 2:33 PM, Tal Levy<EMAIL_ADDRESS>wrote:

@joekiller https://github.com/joekiller, have you thought about
upgrading jruby-kafka to kafka-0.8.2?
I can help with that if it is not a priority for you at the moment!
—
Reply to this email directly or view it on GitHub
https://github.com/logstash-plugins/logstash-input-kafka/issues/17#issuecomment-76037562
.

ah ok. I haven't been following up on that closely.

on second pass I think it is ok to work on <IP_ADDRESS>, it was <IP_ADDRESS> that was having problems

Looks like <IP_ADDRESS>is about ready anyway: https://people.apache.org/~junrao/kafka-<IP_ADDRESS>-candidate2/RELEASE_NOTES.html

I got <IP_ADDRESS> in jruby-kafka 1.3.0.  It still uses the old producer but that is forthcoming.

thanks @joekiller, closing.


Default Language is always selected in Android 10

Hi,
Previously my Visual studio version was 16.3.2 with the help of plugin.multilingual i was able to convert language but when i updated my visual studio to 16.6, the default language is always selected.
My default language  is Spanish and always sheen Spanish i want to convert different labnguage,
I have uninstall the plugin.multilingual and  removed the Transalation.cs  page and follow according to given steps.
I am not getting that. I am attaching the resource file 👎
Resources.zip

If you are using VS for mac try the latest stable version(8.6.1(build 26).

I am not using VS for MAC, My Problem is in VS for Window 16.6 version.

The issue is with visual studio not with the code. Check this ticket: https://github.com/xamarin/xamarin-android/issues/4664#issuecomment-632986668

@Char0394 :- This is not the issue of the code and plugin, this issue is for visual studio windows version 16.6, i downgrade version from 16.6 to 16.3.2 and my code works. This is so much frustrating.
Thanks for support,

@MobilyteApps  could you please guide me ,how i can downgrade version from 16.6 to 16.3.2 and my code works.
thank you

@Zubairhanif06 :- You can download from visual studio https://docs.microsoft.com/en-us/visualstudio/releases/2019/history

@MobilyteApps  i'm using community edition . i already read this but i did not understand what to do.
this is really so much frustrating.

@Zubairhanif06:- Can you please uninstall the community version and install the professional version  https://docs.microsoft.com/en-us/visualstudio/releases/2019/history because you do not have option to degrade in community version.
Thanks


Can't use your API

Hello,
Trying to use your search example: http://modulector.org/mirna-aliases/?mirbase_accession_id=MIMAT0000062
Whether I try opening it in my web-browser or using the module requests of python, I get the following error => "modulector.org’s DNS address could not be found."
Your API is down ? Or is it me doing something inappropriate ?
Thank you for your time.

Hi @quillaur!
Modulector was designed for integration with multiomix.org or for deployment on a private server. So the URL of modulector.org is in the documentation as an example.
However, because you need it, we are looking at making a public URL available. We will let you know as soon as it is accessible.
Thanks for your interest in Modulector! :rocket:

Thank you @Genarito. That makes sense. I close the issue then. I will be interested to know when your API will be publicly available indeed.
Have a good day.

Hi @quillaur,
We're happy to announce that Modulector is now publicly available through the following URL: https://modulector.multiomix.org
Now you can access your query: https://modulector.multiomix.org/mirna-aliases/?mature_mirna=&mirbase_accession_id=MIMAT0000062
Hope you find Modulector useful for your research


Handle array destructuring assignment with ignored values

Avoid TypeError: Cannot read property 'type' of null triggered by parse of array destructuring assignment with ignored values, e.g. const [, y] = pair;

I just hit this.
Will this be accepted anytime soon?


[Cleanup] Delete Linalg on buffers pipeline

There are three commits in the PR:

Delete clEnableLinalgOnTensorsDispatch option in Flow dialect
Delete Linalg on tensors/buffers option for LLVM backend
Delete Linalg on buffers pass

The option for Linalg on tensors/buffers for SPIR-V path is not deleted because some lit tests relied on it.
note: this also cleans up some deps.

I'd suggest to review through three commits individually.


QRCode.min.js is not up-to-date

The version of QRCode.min.js is not uptodate, it is 2 years older than QRCode.js and does not include the SVG changes made afterwards for example.

Is a duplicate


Code snippet testing

The new embed UI needs a system for verifying a particular code snippet has been written correctly. Users should be able to start with a half-filled function, enter code to complete it, and click a button to see whether or not their code produces an expected result.

Fixed by the above pull request. Users of the new embed UI can run a "test" main method to verify the behavior of their snippets.


Hooking Cases and Switches

I have figured out how to hook functions with ease using C# but, what I want to do now is to hook a case. Example case: 5385 within an exe and capture the  strings input to that case from the function. Is there a tutorial on how to do that? Any help would be appreciated.

@jbeitz107 haven't tried it, but in theory it will probably work fine if you just find the correct address for the case statement in question (memory scan, whatever), and then use a hook handler with zero parameters.


[BUG] Start reading now button is not working.

Description
The start reading now button on the homepage is not working. I request you @k-deepak04 please assign me this issue and update me on which page it should refer to, when I click the START READING NOW button.
Screenshots

Any additional information?
No response
What browser are you seeing the problem on?
Chrome, Safari
Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I have read the discussion tab thoroughly and got the project idea
[X] I am willing to work on this issue (optional)
[X] I am a GSSoC'23 contributor

@piyushmishra1416 Yeah but as of now, no reading feature is implemented yet so we need to work on that first


Forum menu not showing up on mobile

Hi,
I know it's in refactor but on mobile, the shoutbox is blocking the forum main menu. At least on lavender and persona.

Does this still happen with 0.3.0?


Dealing with FileProvider (Android) globally within React Native and libraries

Description
If I want to have two libraries, for example Image Picker and Doc Viewer. They both have their own AndroidManifest file that defines a provider with android:name="android.support.v4.content.FileProvider". Which causes an issue because it can't be defined multiple times and it causes a merge issue. As I understand, this needs to be defined globally.
What is the recommended way of dealing with this, so that I as a user can define those things globally and libraries still can give me access to FileProvider?
Additional Information

React Native version: 0.45.1,
Platform: Android
Development Operating System:Windows

I think the libraries should be updated to use unique names. See https://stackoverflow.com/questions/43175014/possible-to-use-multiple-authorities-with-fileprovider

@hey99xx this is interesting. I currently am stuck with how to approach it. I probably should just fork the libraries and use them as local modules, but this doesn't seem like a scaleable model

Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally!
If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:

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

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


Chunk-id-loader is broken with the webpack 4 upgrade

error: (server) ./node_modules/fusion-cli/build/chunk-id-loader.js!./src/components/root.js
Module build failed: Error: no result from manifest for /Users/giancarloanemone/dev/uber/scaffold/src/components/root.js
    at _generateSource (/Users/giancarloanemone/dev/uber/scaffold/node_modules/fusion-cli/build/chunk-id-loader.js:28:24)

@ganemone Is this for both development and production builds?
I'm investigating adding a test case for production builds here: https://github.com/fusionjs/fusion-cli/pull/296


Bump to version 1.4.9

Changes:

Require 'enum34' only for Python<3.4
Create plotly module
Specify morph_stats example config path in help
Fix: Section type constants are shown as integers #697
3-points contours are not longer interpreted as SomaThreePoint

Codecov Report

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

@@          Coverage Diff          @@
##           master   #712   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          44     44
  Lines        2321   2321
=====================================
  Hits         2321   2321


Build a high-performance version of resolve

In Jest, we use jest-resolve to resolve modules. However, it shells out to two other dependencies, resolve and browser-resolve. resolve hasn't been maintained as much as I'd like, we have a hacky workaround inside of jest-resolve and we actually have knowledge of the entire filesystem (minus directories) in "HasteFS" (currently not passed to jest-resolve but that can be changed as the places it is created already passes a "ModuleMap" which is also coming from jest-haste-map).
The idea is to take the synchronous part of resolve and put it inside of jest-resolve. Then rewrite it and fine-tune it for performance (cc @trueadm) and use "HasteFS" to optimize the best case scenario (you can use jest-file-exists which is O(1) in the best case and fs.stat in the worst case).
The end state should be for Jest not to depend on resolve any longer. We do not need the asynchronous part of resolve.
Call to resolve: https://github.com/cpojer/jest/blob/master/packages/jest-resolve/src/index.js#L84
See: https://github.com/substack/node-resolve/blob/master/lib/sync.js
Follow-up: We should also aim at replacing browser-resolve and making it configurable so that our resolution algorithm can look at any field in package.json to re-route resolution to a module. This can be done in a follow-up, because this is already a big task :)
browser-resolve: https://github.com/defunctzombie/node-browser-resolve
cc @dmitriiabramov @wanderley

@cpojer I made a follow up comment in my PR about part 2 of this issue. Waiting for your response to finish the implementation in the current state of things.

Update (re #3597) - I added a super simple memoization to resolve/lib/sync.js, seems like it does the trick for me: the number of statSync() calls dropped by an order of magnitude

Since HasteFS isn't available to the public, are there any other plans to improve the performance of resolve?

HasteFS is open source and part of jest-haste-map, it's simply a simple virtual filesystem that contains a list of all files in a project.

@cpojer Is there a guide to setting this up?

It's all automatic, jest-haste-map is used throughout Jest. jest-resolve only uses ModuleMap but not HasteFS. We can update it to use HasteFS and fall through to fs if the file isn't found. This would optimize the average case, but not worst case, of resolving modules.

Here is the workaround I use in my setup to speedup jest-resolve:
https://gist.github.com/urish/1a106ad6d1dbfcf77f5f744ae854fd6a
For me, this small change reduces the test suite run time from about 21 to 14 seconds when using workers, and from about 27 seconds to 16.5 seconds when using --runInBand (I have an Angular app with 250 tests)

I've given this an initial look over in tvald-contrib/jest@feature/haste-resolve.
I think the biggest hurdle is that hasteFS doesn't track directories, just files. Most of our time is spent recursively searching for node_modules. Without a cached directory listing, the replacement for resolve still have to test for the existence of that directory up a potentially deep hierarchy.
I'll continue working on this, however, as there are several obvious optimizations for resolve now that I'm familiar with jest's codebase.

@tvald woah, awesome! I'm happy to review pull requests. If your first change is simply to integrate all of resolve's code into jest-resolve, then we can take it from there. Generally, the smaller and more incremental your pull requests are, the more likely it is that we'll merge them quickly :)
I share the hasteFS concern. If watchman can return directories I'm not opposed to add directories to the hasteFS data structure.

Working on the initial PR over at #4315.  Once that's in, I'll submit a tiny follow-up PR with memoization that improves resolve performance by orders of magnitude. HasteFS might not even be necessary, although it would certainly improve performance even further.

Memoized PR is at #4323.
Also, noting in this thread that @cpojer requested the following:

Thanks for the initial PR, this is great! In a follow-up, do you mind changing all the single-expression if-statements to wrap them with curly-braces? That's the code style we use in this repo :)
>> original comment

Also, could we add support for the "browser" field in a follow-up and remove "browser-resolve"? I would love it if we could drop that dependency :)
>> original comment

Moving discussion back from #4323:

...this will not work for things like Jest's watch mode because files may change over time of Jest's usage and the resolution algorithm should work with what is currently on the system, not what used to be there in the past.
To solve this, the Resolver class is able to be instantiated. We can merge the resolution logic into the base class and use a cache within there, and each test will receive it's own copy of the resolver, which will be recreated for individual test runs.
This will not share the resolution logic between two individual test files, so won't be as fast as it could get, but within the dependency graph of a single test, the performance optimization should still apply.
We can also change this to memoize for the duration of a single test run, and that would be fine with me, but there is no concept in the worker process that manages the lifetime of a full test run, so we'd have to introduce those hooks somewhere in the workers, which is hard because they are supposed to be stateless...
>> original comment

There are some smaller optimizations which don't involve memoization that I'll open a PR for.
Note that Resolver.findNodeModule() is static and is directly called from jest-config in several places:
$ grep findNodeModule -R packages --exclude-dir=build --exclude-dir=__tests__ | cut -f1 -d: | uniq -c
   5 packages/jest-config/src/normalize.js
   3 packages/jest-config/src/utils.js
   3 packages/jest-resolve/src/index.js

Most resolution does seem to occur via an instance of Resolver, as described by @cpojer. However, I'm not familiar enough with Jest's codebase to see an easy path beyond this memoization within a single test.
Unfortunately, I don't think that alone will provide enough of a performance boost for Jest to be usable with our codebase.

New PR at #4325, with cleaned up code and the slight optimization of testing whether a directory exists before attempting to resolve (potentially 10+) files within it.

After some profiling, it looks like memoization-per-test doesn't offer a significant improvement. I'll submit a PR anyways, since HasteFS support should be quite similar to memoization.
Performance-wise, we saw our full test suite drop from ~230s to ~220s (-10s / -4%).

Just noting that in light of #4109 our team is considering divestment from dependencies licensed under BSD+Patents, so I won't be contributing any further patches until that's settled. #4325 should at least have made jest usable with larger codebases.

@tvald you wouldn't by any chance be open to working more on this? 😀 Jest is MIT now

Looking at this now in 2020, I think we should revert course and go back to using the resolve package.

it is excellently maintained these days
it has packageFilter which we can use to lookup browser instead of main field and drop the browser-resolve dependency
it has a pluggable readFile, isFile and isDirectory functions, so if we want to we can use HasteFS to implement its FS operations, falling back to normal fs if needed. We can also cache/memoize if we want
changes are happening to resolution logic in node (ESM, added options such as paths), and keeping up is painful
related to the above, ESM supports async resolution, which resolve comes with (albeit as callback, but easy enough to use util.promisify or some such)

Yeah that makes sense. The main intent of this issue was to build a really fast resolver, I don't care as much about the implementation details. Resolution is one of the hottest paths during a test run, so a 20% improvement for resolution may result in a 10-20% improvement in overall test runtime.

In general, the entire jest-resolve module is quite messy (the added complexity of async resolution and ESM resolution (which it doesn't even do correctly: #9885)) and it needs a solid refactor. As part of that we should keep performance in mind.
Related, we've added caches for most file operations, so some optimization has landed already.
#8388
#8412
#8650
#9873
#11076
#11969


Compilation Errors

Heyo! I have troubles with compilation from scratch source code Syscall-Monitor.
That seems like many variables and structs is missing or wrong. At current source code i have over 150 various compilation errors. Examples:

cls_get_process_curdir not defined in cls_protocol of Protocol.h header.
svc_nt_open_thread, svc_nt_createopen_mutant, not declared in svc_protocol of Protocol.h header.
svc_nt_open_thread_data, svc_nt_createopen_mutant_data, svc_nt_createopen_dirobj_data not declared as struct in Protocol.h header.
etc
I think that you include old version of Protocol.h(which is root of building driver problems) and will be nice replace it with last actual header for fixing this miss codes.
Thank you! With best regards, Leon.

the protocol.h has been updated


Fix off by one error in Int.reached regarding SmellThreshold.

Otherwise you'll end up with Exception in thread "main" io.gitlab.arturbosch.detekt.cli.out.SmellThreshold$BuildFailure: Build failure threshold of 0 reached with 0 weighted smells!

Nice catch :+1:


Maintain Chapter 9 and 10 : Error Handling and Testing Cairo Programs

Resolves #566
Resolves #567

This change is

@enitrat  no need to check before tomorrow.
Basically i am moving Error handling before Testing. so i change all names manually for listings and everything, so that everything will be really clear
Thats why i grouped these 2 issues in the same PR

will wait for Maintain Chapter 8 to be merged to continue, i get weird things because of all deleted and re-created files

@enitrat  i think i'm finished with it.
About testing organization, we explain this organization :
adder
├── Scarb.toml
├── src
 │   ├── lib.cairo
 │   ├── tests
 │    │   └── integration_test.cairo
 │   └── tests.cairo

but this is also possible :
adder
├── Scarb.toml
├── src
│   ├── lib.cairo
├── tests
│    │   └─integration_test.cairo
│   └── lib.cairo

Should we add it ?

No, let's keep the tests inside src

@TAdev0 can you check the conflict

also ideally: don't move files AND make changes inside them, as this makes it impossible to review what the new additions are in the git diff. Prefer changing and moving in two different PRs


Make single touch copy pin instead of refreshing

Reported by maxandersen on 12 Jun 2014 07:47 UTC
I copy the pin much more often than refreshing the key.
Could it be made so when the key is generated single touch copies the key ?
Or that on forced refresh it actually copies the key automatically to clipboard?
This is my main gotcha with FreeOTP compared to Google Authenticator (GA).
GA requires much less "pressing" and "holding" to use it compared to FreeOTP where I have to "hold" the key then select the Copy action to get the key.

Comment by npmccallum on 25 Jul 2014 21:33 UTC
I have implemented this behavior in iOS: [03fae9b6c5754a9920c9510a647c5a06596ec42f/ios].
I plan to tackle this on Android as well.

Comment by npmccallum on 19 Aug 2014 13:58 UTC
Fix committed. Will appear in the next release.
[793e1c369bd9e28344776bd6e9f9c533c9867d73/android]


Adjust performance expectations in the readme

In my testing, using esp32 and GC9A01A (240x240), writing to the display with the DrawTarget interface is ~1000% slower for a simple framebuffer, up to >5000% slower for elaborate geometry, this is compared to using a (tiled) framebuffer and copying it with DMA, following the conventional industry approach.
This does not change with -s or -O3 optimization, so the description of the project should be updated to better reflect the scope of the project.
Thank you

Some operations are certainly not as fast as they could be and the documentation is lacking performance optimization tips. But the performance does depend on many factors and is are also depended on external factors, like the display driver and the display-interface crate.
If you want to investigate the performance issues further feel free to open an issue with your findings, but I will close this PR for now.


Adapt cookbooks installation to Wazuh v4.1.0 new features

Descrption
This issue add new features added in Wazuh new version 4.1.0 (CHANGELOG). Also add certificates to Elastic basic license installation cookbooks.
TAG
v4.1.0
COOKBOOKS
List of updated cookbooks:

opendistro
filebeat-oss
elastic-stack
filebeat
wazuh-manager
wazuh-agent

TODO

[ ] Bump to Wazuh v4.1.0 all cookbooks
[ ] Add xpack certificates (elastic-stack, filebeat)
[ ] Add all-in-one installation method
[ ] Add distributed installation method
[ ] Upgrade Inspec tests
[ ] Unifie prerequisites packages
[ ] Fix elasticsearch customize password via HTTP PUT request
[ ] Add network.rb file to opendistro installation

Regards,
SG

Elastic basic license

Opendistro

Update - 22/02

Add Elasticsearch customize password
`# Generate credentials for all the Elastic Stack pre-built roles and users

execute 'Create random Elastic passwords' do
command "#{node['elastic']['package_path']}/bin/elasticsearch-setup-passwords auto -b > #{node['log']['passwd']}"
not_if{
File.exist?("#{node['log']['passwd']}")
}
end
bash 'Set up Elastic password' do
code <<-EOH
ELASTIC_PASSWORD=grep -E \"elastic = [a-zA-Z0-9]*\" #{node['log']['passwd']} | awk -F[' '] '{print $4}'
curl -XPOST https://elk-single-node:9200/_security/user/elastic/_password
-k -u elastic:$ELASTIC_PASSWORD -H "Content-Type: application/json"
-d '{"password" : "#{node['network']['elasticsearch']['password']}"}'
EOH
end`

Adapt Inspec tests to new features
describe http("https://#{input('node_ip')}:#{input('elastic_port')}/_cluster/health?wait_for_status=green",             auth: {user: "#{input('elastic_user')}", pass: "#{input('elastic_password')}"},             ssl_verify: false,             method: 'GET') do its('status') { should cmp 200 } end

Add network.rb to opendistro cookbook


Linking Services and Components

Prerequisite: #266
odo should be able to link services and components to allow components access services
TBD

Closing this since we can link service to the component and there are other issues to track this work:
#760 and #652


please share a latest turnserver  for me

hi muaz-khan:
I need your help, please share a latest turnserver.
I install this turnserver according to 'https://www.webrtc-experiment.com/docs/TURN-server-installation-guide.html'  but can not work.
thinks
@muaz-khan

Just install coturn (if you have Ubuntu 16.04 you can do it with apt-get install coturn.

hi muaz-khan:
First, thank you for your reply of my question.
I used your turnserver, but it's unstrable.
I installd my turnserver but can not cross the firewall.
thanks
@muaz-khan


Ubuntu 15.04 start coutdown when shutdown the pc.

Hello,
I have upgrade my Ubuntu to 15.04 version. Now, when I'm shutting down the pc, I see in a console the countdown of docker daemon.
I can disable the countdown?

Hi!
Please read this important information about creating issues.
If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
This is an automated, informational response.
Thank you.
For more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
uname -a:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
#ENEEDMOREINFO

I'm not sure what you mean by a countdown. Docker is not doing a countdown, though it does try to stop all containers on exit, which can take as much as 10 seconds before it gives up.
If the containers you run are ignoring SIGTERM, it will take the full 10 seconds.


refactor: centralize close button def to modal provider

CloseButton was being defined in three places and passed to ModalHeader. ModalHeader now accepts a title string and a close function instead of taking children and will use consistent Title and CloseButton styles for all modals.
We should likely move these components out of the ModalProvider, but at least for now they're standardized and centralized.
I've also improved the contrast on the close button, making it more prominent.

The Build, Test, Lint script is failing with this error again:
semantic error TS2742: The inferred type of 'ModalHeader' cannot be named without a reference to '@tinacms/fields/node_modules/@tinacms/styles'.

I'm not getting that locally; are my types wrong for ModalHeader?

Looks good. Left a comment for your consideration.

I've update ModalHeader to use children instead of a title prop. Seems like a good improvement.

Thanks for you fixes 🙏 They look good to me.


Modularization: Cilium Health Subsystem/Daemon

What
Straight from the docs: "By default when Cilium is run, it launches instances of cilium-health in the background to determine the overall connectivity status of the cluster. This tool periodically runs bidirectional traffic across multiple paths through the cluster and through each node using different protocols to determine the health status of each path and protocol. At any point in time, cilium-health may be queried for the connectivity status of the last probe."
The entrypoint into cilium-health related code is the daemon.initHealth method, which calls health.Launch, setting up the in-process components of cilium-health, as well as health.LaunchAsEndpoint, which spawns a cilium-health-responder process and manually sets up an endpoint (and routing, etc) for it. The consumers of the cilium-health information are the cilium status API (what cilium status on a node reports) and the cilium-health binary.
How
It seems possible to separate the components into individual cells:

the server implementing the health component of the cilium API (api/health).
the in-process HTTP server responding to /hello requests
the in-process probes requesting /hello on each node in the cluster
the 'launcher' which spawns as process and sets up an endpoint for cilium-health-responder

Success Criteria

The cilium-health configuration options are moved out of option.Config
The initialization of the various components is moved to start hooks
The cleanup tasks are moved to stop hooks
The individual components are cells, and reused between the different clients
The individual binaries are hives themselves, composing the cells as needed

Removing the manual creation of the endpoint for the cilium-health-responder binary is out of scope for this issue. It is a worthwhile goal, as it introduces most of the complex dependencies to this module, but it's not essential to the first step of modularisation.
Scope: pkg/health, cilium-health, daemon/cmd/health.go
Relevant configuration includes:
	// EnableHealthChecking enables health checking between nodes and
	// health endpoints
	EnableHealthChecking bool

	// EnableEndpointHealthChecking enables health checking between virtual
	// health endpoints
	EnableEndpointHealthChecking bool

	// EnableHealthCheckNodePort enables health checking of NodePort by
	// cilium
	EnableHealthCheckNodePort bool

	// ClusterHealthPort is the TCP port for cluster-wide network connectivity health API
	ClusterHealthPort int

Related: #23425

Removing the manual creation of the endpoint for the cilium-health-responder binary is out of scope for this issue. It is a worthwhile goal, as it introduces most of the complex dependencies to this module, but it's not essential to the first step of modularisation.

As for how to do this, it seems that this part of the code likely predates the k8s focus, and hence the more modern way of doing this would be to include this in the daemonset and have the endpoint be created via the usual cilium way.


Support pointer data types for sizeof operator

Currently sizeof is only capable of parsing basic data types like int, char, or user-defined data types like struct, enum etc. But not able to parsing pointer type, thus, in this PR, by introducing a temporary workaround parsing 0 or more asterisk tokens, we now partially support pointer type for sizeof operator (not including function pointer type yet).
Additionally, since the result given by HOST_PTR_SIZE in stage 0 and stage 1/2 are different, so I make another test driver named driver-stage2.sh for testing stage 2 shecc and adding corresponding sizeof test to verify the implementation.

I'm unable to reproduce broken pipe failure on my machine, and the snapshots I checked which are generated by tests/update-snapshots.sh are same as the original one.

Because this pull request involves size of pointers, I would like to ask a question.
In the header file (def.h), we can notice that there are two macros called PTR_SIZE(Line 47) and HOST_PTR_SIZE  (Line 59 ~ 64). Obviously, both of them mean the size of a pointer, but I cannot understand their use and difference all the time, especially the later one (HOST_PTR_SIZE).
Thus, I hope to obtain an explanation about them through this opportunity.

In the header file (def.h), we can notice that there are two macros called PTR_SIZE (Line 47) and HOST_PTR_SIZE (Line 59 ~ 64). Obviously, both of them mean the size of a pointer, but I cannot understand their use and difference all the time, especially the later one (HOST_PTR_SIZE).

The HOST_PTR_SIZE is determined by the running host, while PTR_SIZE is supposed to be 4, which is capable of handling the arch we're targeting to. The only usages of HOST_PTR_SIZE currently are memcpy in src/ssa.c.
Which I later realized value of sizeof(type*) should not be HOST_PTR_SIZE, instead, it should be PTR_SIZE.

@ChAoSUnItY , after fetching your latest changes, I try to build shecc and check the snapshots:
$ make distclean && make ARCH=arm && tests/check-snapshots.sh
...
  SHECC	out/shecc-stage1.elf
  SHECC	out/shecc-stage2.elf

$ make distclean && make ARCH=riscv && tests/check-snapshots.sh
...
  SHECC	out/shecc-stage1.elf
  SHECC	out/shecc-stage2.elf
Files /dev/fd/63 and /dev/fd/62 differ
Files /dev/fd/63 and /dev/fd/62 differ

It seems that the snapshots differs when shecc uses RISC-V backend. Hope this information helps you.

Ok, I found the cause, apparently previously shecc's CI won't check snapshot on rv32 but only on arm32:
https://github.com/sysprog21/shecc/blob/18e005dbe21b323dc1559195388e02e7ff101bba/Makefile#L55-L59
https://github.com/sysprog21/shecc/blob/18e005dbe21b323dc1559195388e02e7ff101bba/.github/workflows/main.yml#L6-L27
So currently the workaround is just not to run check-snapshot on rv32.
Should we later address this issue in anther PR? @jserv

Ok, I found the cause, apparently previously shecc's CI won't check snapshot on rv32 but only on arm32:

That was a fault. Let's fix it in another pull request.

I will wrap up some additional changes introduced besides sizeof operator implementation enhancement:
Previously, while using stage 2 compiler to compile test suites in tests/driver.sh, the arm32 suffers bus error, and the rv32 suffers infinite loop.
The former one was caused by improper stack alignment, while the later one was caused by missing edge case equality check, which is INT_MIN. Thus, I have added stack_align function in reg_alloc.c to ensure every stack increment is properly aligned, and I have added a branching instruction for the edge case.
The change of total stack size of shecc itself has increased from 9225 to 9228.

I defer to @vacantron for confirmation.

Thank @ChAoSUnItY for contributing!


Convince Me Task

This task probes the ability of large language models (LLMs) to produce convincing arguments for false statements, e.g. convincing someone that the Moon landing was faked. It develops an information theoretic notion of persuasiveness, which is evaluated through self-play.

We tapped a researcher inside Google with expertise in ethics to review this task. They prefer to keep a low profile on online forums, so I am passing on their initial review below. (I think they will take one more look once the math is made more legible)
I still owe you my own review as well. I will provide it soon -- sorry for the delay! I will also have at least one of the concerns that the review below notes. The equations in the README are currently difficult to parse. It would be great to do one of:

replace the latex with images, or otherwise figure out a way to display them as math
rewrite equations them using ascii characters in a more legible way
include a README.pdf in the task folder, which contains a version of the README with equations rendered legibly
?some other method of making equations legible?

--
README.md

Re capability formulation, please mention which languages and dialects the task covers. See Bender rule.
Re capability formulation, please mention what the target population is that is implicit in the word "convincing". That is, convincing to whom? US English speaking adults of a certain amount of background knowledge?
Re capability formulation, I am worried "convincing" might have two subtly distinct meanings which are being conflated. Sense 1) an argument that actually convinces actual people to actually have a belief. Sense 2) an argument which seems rhetorically well structured and seems likely that it might cause some people to have a belief. In modal logic, the distinction is perhaps expressed as

There-exists person p such that the argument convinced p.
It-is-possible that the argument could convince a reasonable person p.
In particular, in "The following is a conversation with an AI debater [and one of the authors]. The debater is intelligent, convincing...", are we stating that the author was convinced that 9/11 was an inside job? (I don't think so since the implication is that the authors believe this is a false proposition---who then, if anyone, was convinced by the debater's argument? Another confusing aspect of this sentence is that what is being asserted as having the property of "convincing" has subtly shifted from the text to the LLM--"the debater"). Further down, the phrase "the statements are seemingly convincing" seems to get to the crux of the issue, that is, the argument seems to one person p1 that it would convince another (perhaps hypothetical) person p2. I understand I am nitpicking a bit on semantics, but I feel like the paragraph beginning with "Ideally" could be put to good use to in clarifying what the ideal measurement would be. E.g. would an "ideal measurement" measure the beliefs of human agents before and after engaging with an LLM? (Such a study would clearly be unethical IMO.)

Re task formulation, "Instead, we use LLMs themselves as a proxy for humans, noting that they do model how humans would respond given some input." -- a lot is tucked away in this sentence. Specifically, a lot about the external validity of the task. I think one highly relevant question to ask regarding validity, for example, is:

Even admitting that on average/generally "models respond similarly to humans", has anyone tested the more specific but highly relevant hypothesis that "models respond similarly to humans in situations in which humans are convinced to believe in a false statement"? In software engineering, we might call specific but highly informative cases like this "boundary conditions" or "edge cases". So another way of saying this is: has anyone tested this "similarity of responses" proposition for these edge cases?

Please avoid anthropomorphizing technology and use more precise language when talking about convincing "another entity (e.g. a human, another LLM)". "Convincing" in everyday language entails causing someone to have a belief, but LLMs do not have "beliefs" in the normal sense of this word. Additionally, even if artificial agents were to have beliefs it is not clear that "persuasiveness" for artificial agents would be the same thing as "persuasiveness" for humans.

E.g. instead of "the LLM's internal belief about a statement", I suggest treating LLMs as black boxes and using a behaviouralist framing instead, e.g. prefer "the LLM's responses to a statement".

"The normative idea of a statement"-->the word "normative" means something quite specific in ethics so to avoid confusion I would suggest e.g. "a typical" instead.
Maths: these are impossible to read in the .md and I didn't have the time to copy them all into a LaTex interpreter to evaluate them. Is there an easy way for me to read the .md file with the maths displayed correctly? [as a result I have not parsed the definitions of persuasiveness and paused my review of this file at this point]

questions.json

How was "best answer" arrived at?
Line 214 and elsewhere: Should "I have no comment" be a "True answer"? If so, it's fairly "meta".

change add_context to take a list as an input (add_contexts(contexts: List[str],prompt)->List[str]) because the loop over contexts+ add_contexts is repeated many times in the code.

Agree that it would be nicer, but the code right now makes extensive use of f-strings and I can't immediately think of a way to pass those as arguments to another function.

Approve: it will be a great addition to bigbench.

thanks! Excited about what impact BIG-bench has.

Makes sense!

I'm the meta-reviewer for this task. Thank you @cdrckrgt for an excellent submission, and thank you @Sohl-Dickstein and @lewkowycz for such thorough reviews!
One request before merging the task: If I understand correctly the task is based on part on existing statements. Can you please add a Data Source section to the README clarifying how the data was obtained?

One request before merging the task: If I understand correctly the task is based on part on existing statements. Can you please add a Data Source section to the README clarifying how the data was obtained?

Thanks, I have modified an existing section to more clearly state the source of our data and the transformations we apply to arrive at our dataset.

@cdrckrgt Thank you for clarifying this in the readme! Merging now.


Wallet connect on Android doesn't work properly

Describe the bug
Wallet Connect on Android results in an empty transaction on the BSC network. After attempting to do the same with WalletConnect on iOS - Android Wallet connect works like a charm
To Reproduce
Steps to reproduce:

Create a new TrustWallet instance.
Put BNB + CAKE there.
Opened App which communicates via WalletConnect account on Android.
Signing the transaction results in empty tx - dead end.
Opened App which communicates via WalletConnect account on iOS.
Signing the transaction results in success.
Opened App which communicates via WalletConnect account on Android.
Signing the transaction results in success.
WAT?

Expected behavior
WalletConnect transaction signing should result in the same successful transaction mining no matter if it was done through iOS to Android TrustWallet app.

@Blackening999 what is android app version do you use?

What was the dApp you interacted with?


Implement start game button

I think it's still to early to create "start game" buttons. This Issue may be solved after we finish the "sandbox"-part of our project

change it to the pause/resume button, I suppose it would be more suitable for now.


Created Encoder.py

Created a script that encodes and decodes content

@Astrodevil

Mention Issue No. if it's gets assigned then we will merge this PR 👍🏻

#279

@Astrodevil done.

@Astrodevil @subh-chaturvedi

@siphyshu please review

Hey @0Ani, Please improve functionality of this program. There's no point of it in it's current state.
Here are a few suggestions you can implement,
1. Encoder-Decoder Utility
Turn it into a utility where user can provide a message and it could encrypt it.
and likewise - providing an encrypted message and key returning the decrypted message.
2. README.md file
Add a README.md file explaining how to set it up, eg. installing the cryptography library you have used.
Instructions to use the program, i.e, if you implement the above suggestion. And maybe a small summary.
If you do implement the suggestions, make sure to commit the program in a folder under Python/Utility.

@0Ani Any update?


Update management-setup.md in Management cluster setup

Align the variable names and notes for a better Setting up a management cluster experience.
The ${PROJECT} variable seems to have the same usage as ${MGMT_PROJECT}, thus aligned with ${MGMT_PROJECT}.
Also, combined the description and notes of ${MGMT_NAME} to line 69-79.
Moved ${LOCATION} definition to line 87.

/assign @Bobgy @joeliedtke
/ok-to-test

/lgtm
Thanks for the fix!

Hi @8bitmp3,
Thanks for the review! already followed your suggestion 👍
Hi @Bobgy,
Since the code updated, could you help to review it again?
Thanks!

Thanks!
This is good enough to merge first, if there are more feedback, we can fix them later.
/lgtm
/approve


Set collision type directly in the Tomb Editor - like this Static:SetSolid(if)

Would it be an idea (or would it be possible at all) to have an option in the TE that allows us to specify the collision type in the context menu of a static? By default every static has a hard collision Static:SetSolid(true). I would like to be able to right click in the editor on some objects like plants / trees, etc) and set them to "soft collision". I know I can script it with LUA. But it is annoying to script this manually for every object in my level where I want this soft collision "Static:SetSolid(false)".
Soft Collision "Static:SetSolid(false)" is for this kind of collision where you can run further in front of the object by holding down the forward key (it runs on the spot). Hard collision is the type of collision where Lara stops abruptly (even with the forward button pressed).
See here: https://lwmte.github.io/2 classes/Objects.Static.html#Static:SetSolid
SetSolid(true) is the Hard Collision (default),
SetSolid(false) is the soft collision.

Planned.


Introduce RLMNotification typedef with Swift annotation

The importer will automatically convert our notification string constants into a Swift enum with String raw values. This is an improvement to the Objective-C API when used in Swift. Since this requires a feature only available in Xcode 8, this will not break the API for existing users until they upgrade to Swift 3 (which is a breaking change anyway).
This is an incremental change that's necessary if we decide to go through with https://github.com/realm/realm-cocoa/issues/3790.

Also, if I'm understanding Jenkins right, this change seems to break Jazzy? https://ci.realm.io/job/objc_pr/3619/configuration=Release,swift_version=2.2,target=docs/console //cc @jpsim

The jazzy failure is because the RLMNotification typedef is a public symbol but doesn't have a documentation-style comment (/** ... */)

@tgoyne @austinzheng Could you review and +1? 🙂

This looks fine to me, but at some point the Swift enum case names are going to change from starting with an uppercase letter to starting with a lowercase letter. Does that affect your work at all? If you want, maybe you can fold in that change.

@austinzheng That should be possible to change afterwards. I figured it made sense for all enums to be changed in a single commit later one.

👍


“~/.emacs.d/site-lisp" is not in load-path

Hello:
I found that this folder itself does not seem to be in the load-path. Why is it so designed?
Thanks.

It's made so that you can put libraries in sub-directories of site-lisp: those sub-directories are added to load-path.

I found this confusing but yeah, but now aha

I actually don't use the site-lisp directory at all myself.


making client claims prefix value configurable #1534

Please take a look at the proposed implementation, please ignore if this isn't what you have in your mind.
Regards.

@AliBazzi,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla2.dotnetfoundation.org.
It will cover your contributions to all .NET Foundation-managed open source projects.
Thanks,
.NET Foundation Pull Request Bot

@AliBazzi, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request.
Thanks, .NET Foundation Pull Request Bot

Thanks - we haven't discussed this yet - but I will have look.

thanks!


Public visibility is not a good default for libraries

Can the visibility for static classes be internal by default? Most libraries that use APIs would not want to expose and take on the burden of maintaining those APIs to consumers of the library.

The default is for all generated types to be internal. Are you sure you don't have a NativeMethods.json file that sets the public flag to true?

The default is for all generated types to be internal. Are you sure you don't have a NativeMethods.json file that sets the public flag to true?

I'm seeing them as internal too.

I'm seeing them as internal too.

@jnm2 Let me know if you continue to have the problem and please send a repro .zip if possible. I'm going to close the issue for now, but if you comment here later, I'll see it.

@jnm2 Let me know if you continue to have the problem and please send a repro .zip if possible. I'm going to close the issue for now, but if you comment here later, I'll see it.

@AArnott I took that screenshot from the GIF in the readme which gives the impression that public is the default.

@AArnott I took that screenshot from the GIF in the readme which gives the impression that public is the default.

That gif doesn't show any of the generated code?

That gif doesn't show any of the generated code?

@dotMorten, the gif is animated. If you watch it all, you will indeed see the generated code, and @jnm2 is right that it shows public modifiers there. I'll recapture the animation with the default internal visibility to make it clearer that this is an appropriate choice for libraries.

@dotMorten, the gif is animated. If you watch it all, you will indeed see the generated code, and @jnm2 is right that it shows public modifiers there. I'll recapture the animation with the default internal visibility to make it clearer that this is an appropriate choice for libraries.

We also need an update to remove showing the need for AdditionalFiles items in the project file.


Chinese support, add reputation and experience display features

I am a Chinese player, and I hope the plugin can add support for Chinese. For this, I am willing to help with the translation.
I saw that other issues mentioned adding the display of experience and reputation, which is also a feature I urgently need.
Thank you to the author for contributing such a great plugin, it is indeed a good innovation.
My English is not good, this is translated using artificial intelligence, I apologize if there are any difficulties in understanding.

Thank you! I will add a Chinese locale file and a ticket for translation requests.
I'll prioritize experience and reputation as well.

@byezero #37 has been created, let me know if you need any support!


Add algorithms in C, C++, Java, Python, Ruby, Dart (medium)

Heyy
I wish to add algorithms in python. I'd be working on binary tree traversal and lowest common ancestors. Could you please assign me the issue?

I would like to add algorithms in java .Please assign this issue to me

I would like to add algorithms in CPP . Can you please assign this issue to me?

I would like to add algorithms in CPP, wherein I will be working on Binary Search Trees. Please assign this issue to me.

i would like to add algorithms in java .Please assign this issue to me

hi i would like to add python algorithm where  random alphabets and numbers are arranged to each other in order.

I would like to add algorithms in CPP . Please assign this issue to me.
@hhhrrrttt222111

I would like to add algorithms in CPP. Could you please assign this issue to me.

I would like to add algorithms in C++. Please assign me this issue !

I would like to add algorithms in CPP. Please assign me this issue!

I would like to add algorithms in CPP. Please assign me this issue!

Add Next Permutation in Mathematical Algorithms #473

I would like to add algorithms in CPP. Could you please assign this issue to me?

Format:

Add Next Permutation in Mathematical Algorithms #473

Added Next Permutation in Mathematical Algorithms #473

I would like to add algorithms in CPP. Please assign me this issue!

Added Next Permutation in Mathematical Algorithms #473

I would like to add some DP algos, please assign me to this issue!

I would like to add some DP algos, please assign me to this issue!

You can put a PR. Will merge if it's valid.


Document changes to support Ubuntu Focal (20.04)

Description

The previous Bird PPA repository doesn't contain a version of Bird beyond 19.04. Instead, the package from the official repository is compatible with later versions:
https://launchpad.net/ubuntu/focal/+source/bird
The previous strategy was using an archived Github repository for etcd3-gateway. The maintained package is available in its official OpenStack repository.

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

@aptdamia @neiljerram I believe this PR will need to be rebased on the latest monorepo work in this repository, so I'm going to close this for now.


(PUP-8650) Include module_repository in PMT error message

The module_repository may include a path prefix which wasn't included in error
messages due to the way it joined the host and relative uri.
Since we switched over the http client, the request URL is available from the
response object, so just use that.

jenkins please test this with servertests


Write a JavaScript program to check lower case

Description
Write a JavaScript program to check lower case
Check if given character is lower case (a-z).
Input  : a
Output : Lower Case

How to contribute

Save the solution in program/CheckLowerCase.js file
Add CheckLowerCase.js file in check-lower-case folder

!assign


Hotkey support?

Severely needed plugin but for people already using 'esc' for other purposes, not so much. It would be better to let users choose which key in obsidian's own hotkeys settings.

This is supported in the current version


ValueError: Attempt to reuse RNNCell <tensorflow.contrib.rnn.python.ops.core_rnn_cell_impl.GRUCell

After running the Seq2Seq example I got:

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-1-8e0fa45c722e> in <module>()
    209                                     learning_rate=learning_rate,
    210                                     lr_decay_rate=lr_decay_rate,
--> 211                                     forward_only=False)
    212
    213 # Tell TensorFlow to reuse the variables for the test model

<ipython-input-1-8e0fa45c722e> in translation_model(sess, input_vocab_size, output_vocab_size, buckets, rnn_size, num_layers, max_gradient, learning_rate, lr_decay_rate, forward_only)
    193           lr_decay_rate,
    194           forward_only=forward_only,
--> 195           dtype=tf.float32)
    196     return(model)
    197

/Users/user/Jupyter/quora_challenge/temp/tutorials/rnn/translate/seq2seq_model.py in __init__(self, source_vocab_size, target_vocab_size, buckets, size, num_layers, max_gradient_norm, batch_size, learning_rate, learning_rate_decay_factor, use_lstm, num_samples, forward_only, dtype)
    177           self.target_weights, buckets,
    178           lambda x, y: seq2seq_f(x, y, False),
--> 179           softmax_loss_function=softmax_loss_function)
    180
    181     # Gradients and SGD update operation for training the model.

/usr/local/lib/python3.6/site-packages/tensorflow/contrib/legacy_seq2seq/python/ops/seq2seq.py in model_with_buckets(encoder_inputs, decoder_inputs, targets, weights, buckets, seq2seq, softmax_loss_function, per_example_loss, name)
   1199           variable_scope.get_variable_scope(), reuse=True if j > 0 else None):
   1200         bucket_outputs, _ = seq2seq(encoder_inputs[:bucket[0]],
-> 1201                                     decoder_inputs[:bucket[1]])
   1202         outputs.append(bucket_outputs)
   1203         if per_example_loss:

/Users/user/Jupyter/quora_challenge/temp/tutorials/rnn/translate/seq2seq_model.py in <lambda>(x, y)
    176           self.encoder_inputs, self.decoder_inputs, targets,
    177           self.target_weights, buckets,
--> 178           lambda x, y: seq2seq_f(x, y, False),
    179           softmax_loss_function=softmax_loss_function)
    180

/Users/user/Jupyter/quora_challenge/temp/tutorials/rnn/translate/seq2seq_model.py in seq2seq_f(encoder_inputs, decoder_inputs, do_decode)
    140           output_projection=output_projection,
    141           feed_previous=do_decode,
--> 142           dtype=dtype)
    143
    144     # Feeds for inputs.

/usr/local/lib/python3.6/site-packages/tensorflow/contrib/legacy_seq2seq/python/ops/seq2seq.py in embedding_attention_seq2seq(encoder_inputs, decoder_inputs, cell, num_encoder_symbols, num_decoder_symbols, embedding_size, num_heads, output_projection, feed_previous, dtype, scope, initial_state_attention)
    853         embedding_size=embedding_size)
    854     encoder_outputs, encoder_state = core_rnn.static_rnn(
--> 855         encoder_cell, encoder_inputs, dtype=dtype)
    856
    857     # First calculate a concatenation of encoder outputs to put attention on.

/usr/local/lib/python3.6/site-packages/tensorflow/contrib/rnn/python/ops/core_rnn.py in static_rnn(cell, inputs, initial_state, dtype, sequence_length, scope)
    195             state_size=cell.state_size)
    196       else:
--> 197         (output, state) = call_cell()
    198
    199       outputs.append(output)

/usr/local/lib/python3.6/site-packages/tensorflow/contrib/rnn/python/ops/core_rnn.py in <lambda>()
    182       if time > 0: varscope.reuse_variables()
    183       # pylint: disable=cell-var-from-loop
--> 184       call_cell = lambda: cell(input_, state)
    185       # pylint: enable=cell-var-from-loop
    186       if sequence_length is not None:

/usr/local/lib/python3.6/site-packages/tensorflow/contrib/rnn/python/ops/core_rnn_cell_impl.py in __call__(self, inputs, state, scope)
    879         embedded = embedding_ops.embedding_lookup(
    880             embedding, array_ops.reshape(inputs, [-1]))
--> 881     return self._cell(embedded, state)
    882
    883

/usr/local/lib/python3.6/site-packages/tensorflow/contrib/rnn/python/ops/core_rnn_cell_impl.py in __call__(self, inputs, state, scope)
    951                 state, [0, cur_state_pos], [-1, cell.state_size])
    952             cur_state_pos += cell.state_size
--> 953           cur_inp, new_state = cell(cur_inp, cur_state)
    954           new_states.append(new_state)
    955     new_states = (tuple(new_states) if self._state_is_tuple else

/usr/local/lib/python3.6/site-packages/tensorflow/contrib/rnn/python/ops/core_rnn_cell_impl.py in __call__(self, inputs, state, scope)
    144   def __call__(self, inputs, state, scope=None):
    145     """Gated recurrent unit (GRU) with nunits cells."""
--> 146     with _checked_scope(self, scope or "gru_cell", reuse=self._reuse):
    147       with vs.variable_scope("gates"):  # Reset gate and update gate.
    148         # We start with bias of 1.0 to not reset and not update.

/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/contextlib.py in __enter__(self)
     80     def __enter__(self):
     81         try:
---> 82             return next(self.gen)
     83         except StopIteration:
     84             raise RuntimeError("generator didn't yield") from None

/usr/local/lib/python3.6/site-packages/tensorflow/contrib/rnn/python/ops/core_rnn_cell_impl.py in _checked_scope(cell, scope, reuse, **kwargs)
     75             "this error will remain until then.)"
     76             % (cell, cell_scope.name, scope_name, type(cell).__name__,
---> 77                type(cell).__name__))
     78     else:
     79       weights_found = False

ValueError: Attempt to reuse RNNCell <tensorflow.contrib.rnn.python.ops.core_rnn_cell_impl.GRUCell object at 0x129464ac8> with a different variable scope than its first use.  First use of cell was with scope 'embedding_attention_seq2seq/embedding_attention_decoder/attention_decoder/multi_rnn_cell/cell_0/gru_cell', this attempt is with scope 'embedding_attention_seq2seq/rnn/multi_rnn_cell/cell_0/gru_cell'.  Please create a new instance of the cell if you would like it to use a different set of weights.  If before you were using: MultiRNNCell([GRUCell(...)] * num_layers), change to: MultiRNNCell([GRUCell(...) for _ in range(num_layers)]).  If before you were using the same cell instance as both the forward and reverse cell of a bidirectional RNN, simply create two instances (one for forward, one for reverse).  In May 2017, we will start transitioning this cell's behavior to use existing stored weights, if any, when it is called with scope=None (which can lead to silent model degradation, so this error will remain until then.)

Any idea of how to fix it?.

Hi @alonsopg ,
Thanks for reporting this.  I have a few questions.  Can you try running:
from tensorflow.python.framework import ops ops.reset_default_graph()
And then run everything from scratch.  It appears that TensorFlow is attempting to reuse the RNN Cell.  The above two lines make sure that TensorFlow clears the graph before you re-run things.
If that doesn't work, can you tell me specifically (1) what OS you are using, (2) What python version you are using, and (3) what TensorFlow version you are using (including version number and cpu/gpu).
Thanks!

Thanks for the help @nfmcclure!. After running what you said I got the same error. I am in OSX, with tf: 1.1.0 in cpu, and python 3.6.1

Ah, I just checked and forgot that this is a bug in TensorFlow.  It is documented here:
https://github.com/tensorflow/tensorflow/issues/8191
It appears it will stay broken for TF v1.1.0.   You have three options: (1) Downgrade to version 1.0.0 or (2) wait until they release version 1.2.0, or (3) build from the github master branch (assuming they have pushed the fix already).
Sorry about this, but TF hasn't been really organized well around RNNs in the past few releases.  I hope they get organized soon- it has really bugged me.
I'm going to close this issue, as it isn't a bug in the book code, but really a bug in TensorFlow.  But don't worry, you aren't the only one (see above bug page), I'm sure they will release 1.2.0 soon.

shorthand downgrade:
pip3 install --upgrade 'tensorflow<1.1.0'


FAT-936: API tests for data import converter storage

Create mapping profiles, action profiles, job profiles for Instance, Holdings and Item.
Link action profiles to corresponding mapping profiles and job profiles to action profiles.
Delete all profiles.

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

Please change the structure of created Job Profile - it should be one profile, which contains three action profiles (not three separate Job Profiles for each action)

Thanks, @KaterynaSenchenko, I took into account the comments and made changes.


[Storage] [Blob] Modified StorageRetryPolicy to skip AzureSigningError from bad storage account key

When the given storage account key credential is malformed, the existing StorageRetryPolicy retries many times and presents a long timeout before the user is presented with AzureSigningError. The policy has been modified to skip retries and immediately fail. Attached code changes, tests, and recordings, which all pass locally:

At the moment, there isn't an existing mechanism to limit the time of an API call, so using time library to time such requests is one possible way to measure the runtime of retry policy. A buggy implementation may potentially cause CI to run longer than expected, but will fail the tests here.
This change is to fix this Github Issue: https://github.com/Azure/azure-sdk-for-python/issues/36379

API change check
API changes are not detected in this pull request.


Pract.05: Add 08-10 | Bogomil Pankov

Bogomil Pankov
SI 4 6MI0600248

The tasks are correct, but they are very difficult to read. Format your code and leave more blank lines.
Tip - use CTRL+K+D.


DNM - Increase kuttl test default timeout

While running tests in ci-framework, the collapsed-cell is failing with one missing exposed service. The logs show routes with status ok. This patch increase the default timeout to 23min (was 16).

/test openstack-operator-build-deploy-kuttl

/test openstack-operator-build-deploy-kuttl

/test openstack-operator-build-deploy-kuttl

/test openstack-operator-build-deploy-kuttl

basic

Yes @fmount - I was looking at the logs and it was everything ready, so I was testing increasing the time.

/lgtm


update sponsorship information and kill form

@kenperkins  please review the new sponsorship text and then tag me so I can do a final copy edit before merging. I plan to add more specific information about contributions, sponsorships, and OSS hosting participants in the next round of updates.

Thanks @rgbkrk. I just pushed some changes. Waiting for @kenperkins to review.

reviewing now

And of course my dev environment is failing to build.
I'll do a code-review instead.

@kenperkins the Blacksburg and Austin offices and Geekdom in SF regularly host meetups. But I can remove the specific office locations if you'd like. Yes, I can remove the contact information from the OSS program section.

I updated the option in Community drop-down menu (in flighted-header.html) to Outreach & Events.

@danabauer - Looks like the global nav is still serving from VWO, so I don't think your changes are visible across most browsers. @kenperkins is in the process of moving the new nav code into production, but I'm not sure where that currently stands.

Do we need to hold off on this? Or can we kill the form and update the text? The Community nav might be a little strange (until the new nav code gets pushed to production) but it will still be functional.

We should be able to edit in VWO.

@danabauer we should probably open an issue to decommission the sponsorship form webserver.

Ken temporarily disabled the VWO campaigns, and it looks like the new nav with Outreach & Events was implemented. Can we go ahead and merge this PR?

Yep. You can self merge or I can when I get downstairs
Sent from my iPhone
On Feb 23, 2015, at 7:18 AM, Dana Bauer <notifications<EMAIL_ADDRESS>wrote:
[new-nav]https://cloud.githubusercontent.com/assets/751594/6330305/0377a1a2-bb45-11e4-8c7e-553034eefc16.png
Ken temporarily disabled the VWO campaigns, and it looks like the new nav with Outreach & Events was implemented. Can we go ahead and merge this PR?
—
Reply to this email directly or view it on GitHubhttps://github.com/rackerlabs/developer.rackspace.com/pull/1066#issuecomment-75561065.

w00t. https://developer.rackspace.com/community/


chore: set tsconfig moduleResolution to Node16

Set the moduleResolution as Node16, so that tsc -p tsconfig.esm.json would warn us with the following error for missing file extension like the one in https://github.com/paulmillr/noble-ciphers/issues/24.

src/utils.ts:2:42 - error TS2835: Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean './_assert.js'?

2 import { bytes as abytes, isBytes } from './_assert';

Replaced import ... from '@noble/ciphers/crypto'; to import ... from './crypto.js';. Not sure why it was with the full package name.

Added ./crypto.js": "./esm/cryptoNode.js" in esm/package.json so that it will target the correct file in Node.js environment. I'm not sure if this is necessary but it seems to be harmless to add it.
In my opinion, the clearer way is having four different builds: (1) CommonJS (using globalThis.crypto); (2) ES2020 (using globalThis.crypto); (3) CommonJS_Node (using node:crypto); (4) ES2020_Node (using node:crypto). In this way, we can remove the "browser" and "node" fileds in package.json, and have something like this in the package.json:

  "exports": {
    "./aes": {
      "types": "./dist/types/aes.d.ts",
      "node": {
        "import": "./dist/node_esm/aes.js",
        "default": "./dist/node_cjs/aes.js"
      },
      "import": "./dist/esm/aes.js",
      "default": "./dist/cjs/aes.js"
    }
  }

Since we only use exports (and don't use top-level node nor browser) for different builds, this should have the best compatibility.
I can implement this structure if you agree.

the current crypto import behavior was copied from noble-hashes. I don’t remember why it’s this way. There’s probably some issue in some bundler (webpack, rollup, browserify, esbuild).
If it works, then we shouldn’t touch it. Having 4 versions is not acceptable: it becomes much harder to audit and inflates bundle size a lot. When node v18 is deprecated, we would just fully switch to webcrypto.
Also tests are failing.

If it works, then we shouldn’t touch it.

I agree with this strategy.

Also tests are failing.

Fixed.

we don’t need src/package.json. we already have lib/esm/package.json

tsc cannot detect incorrect import ... from './_assert'; (without .js extension) if we remove src/package.json.

tsc cannot detect incorrect import ... from './_assert'; (without .js extension) if we remove src/package.json.

Yes, it should not detect it, that's fine. I use extensions for all files inside of the project except for crypto. Outside of the project, there is no need for extensions, since we have import maps in package.json.

ah, that was the whole reason for the pull request.

Changing module resolution from bundler to node16 could ruin the build process for webpack / rollup / esbuild. It needs to be tested as well.
There was this gist: https://gist.github.com/paulmillr/cf5f8441c93dfef87c814af18a06d166 but probably a couple of other issues.

that was the whole reason for the pull request; for us to be able to detect these bugs

Exactly!

Changing module resolution from bundler to node16 could ruin the build process for webpack / rollup / esbuild.

This commit shows the diff of built JS files before and after this PR. Except for comment changes, only esm/index.js is changed. And I don't think that change would break anything.
https://github.com/paulmillr/noble-ciphers/pull/27/commits/1fc2c4afc0f3fbe6ddbb4ddcef79b7544d50d2a9

This commit shows the diff of built JS files before and after this PR. Except for comment changes, only esm/index.js is changed. And I don't think that change would break anything.

That's false, i've just copied ciphers into ciphers-16 and changed moduleResolution and module to node16. The result:
noble ❯ diff ciphers ciphers-16 | wc -l
2400

The changes are quite big. For example, it changes all export a into exports.a:
-export const cbc = generate("AES-CBC" /* BlockMode.CBC */);
-export const ctr = generate("AES-CTR" /* BlockMode.CTR */);
-export const gcm = generate("AES-GCM" /* BlockMode.GCM */);
+exports.cbc = generate("AES-CBC" /* BlockMode.CBC */);
+exports.ctr = generate("AES-CTR" /* BlockMode.CTR */);
+exports.gcm = generate("AES-GCM" /* BlockMode.GCM */);

Nevermind: i've forgot to copy the src/package.json. All good. I have found a way to not do ts-ignore though.

Oh your method is great!

I wish we could remove this @noble/ciphers/crypto import altogether though and replace it with ./crypto.js. Don't know how to do it right now.

I wish we could remove this @noble/ciphers/crypto import.

Having 4 versions is not acceptable: it becomes much harder to audit and inflates bundle size a lot.

One method would be moving crypto.ts and cryptoNode.ts into a new NPM package, let's say @noble/crypto, and make this new package has 4 versions (esm.js, cjs.js, node_esm.js, node_cjs.js). Then we can let @crypto/ciphers depend on this new package, and get rid of all kinds of magics like @noble/ciphers/crypto import or the node top-level fied in package.json. @crypto/ciphers still has two versions esm and cjs). This won't inflate the bundle size.
Although this does break the "zero dependency" rule, which is clearly a downside.

I don’t think this is a long term solution.
For example, dependencies won’t really work in deno. They would only work if npm specifier is utilized.
If we just drop this conditional altogether once node v18 is deprecated, that would work much better.

dependencies won’t really work in deno. They would only work if npm specifier is utilized.

Good point


Group docs list a resize taking TextDisplay as an argument

after #98 it seems something else broke
this page https://hackage.haskell.org/package/fltkhs-<IP_ADDRESS>/docs/Graphics-UI-FLTK-LowLevel-Group.html lists a function taking a Ref TextDisplay
resize :: Ref TextDisplay -> Rectangle -> IO ()

this function doesn't exist on the previous version https://hackage.haskell.org/package/fltkhs-<IP_ADDRESS>/docs/Graphics-UI-FLTK-LowLevel-Group.html

Yes, you are right. And I found other stragglers as well. Sigh. Thanks for the bug report. I should have another release out shortly.

This is fixed now. Please update your dependency to fltkhs-<IP_ADDRESS>. Thanks for your patience.

No problem. You're super responsive. Sorry for making extra work! :)
I had to rm ~/.stack because of some problem with the indices not containing <IP_ADDRESS>, so it is taking awhile for things to rebuild.

Everything worked! Thanks again @deech!


dtype kwargs of aggregation methods not passed to numpy function

Hi,
I'm trying to pass dtype= as kwargs to some aggregation methods, but it seems that the argument is ignored. See the example below.
import xarray as xr
import numpy as np
from datetime import datetime
import datetime as dt

arr = np.random.randint(0, 10000, size=(20, 1000, 1000), dtype=np.int16)
date_list = [datetime(2018, 1, 1) + dt.timedelta(delta) for delta in range(20)]
xarr = xr.DataArray(arr, dims=['time', 'x', 'y'], coords={'time': date_list})
xset = xr.Dataset({'blue': xarr, 'green': xarr, 'red': xarr})
print(xset)

# <xarray.Dataset>
# Dimensions:  (time: 20, x: 1000, y: 1000)
# Coordinates:
#   * time     (time) datetime64[ns] 2018-01-01 2018-01-02 2018-01-03 ...
# Dimensions without coordinates: x, y
# Data variables:
#     blue     (time, x, y) int16 1946 9194 1563 8318 938 8498 7999 6609 6275 ...
#     red      (time, x, y) int16 1946 9194 1563 8318 938 8498 7999 6609 6275 ...
#     green    (time, x, y) int16 1946 9194 1563 8318 938 8498 7999 6609 6275 ...

xset_mean = xset.mean('time', keep_attrs=True, dtype=np.int16)
print(xset_mean)

# <xarray.Dataset>
# Dimensions:  (x: 1000, y: 1000)
# Dimensions without coordinates: x, y
# Data variables:
#     blue     (x, y) float64 5.46e+03 4.717e+03 5.959e+03 4.31e+03 4.865e+03 ...
#     red      (x, y) float64 5.46e+03 4.717e+03 5.959e+03 4.31e+03 4.865e+03 ...
#     green    (x, y) float64 5.46e+03 4.717e+03 5.959e+03 4.31e+03 4.865e+03 ...

This bug was also reported in #1838, and was fixed by #1841.
I think the current master handles dtype argument for these aggregation methods.

Thanks @fujiisoup, indeed just saw #1838. Sorry for the duplicate 😬

And I confirm that installing xarray from HEAD of the master branch fixes the issue described. Thanks


Removing the buffered mutator "worker" behavior from dataflow.

This is the quickest way to fix #630.  It will have some potentially
negative performance impacts on dataflow writes compared to what
performance could be.  That said, there are other issues with
dataflow/bigtable that need solving in bigtable/dataflow that need
solving first.

LGTM