'Magic' operation - automatically detect and run operations

Summary
The 'Magic' operation attempts to automatically detect what format the input data is in and which operations can be used to make more sense of it. It does this through a variety of methods:

Using magic bytes to detect file types.
Using regular expressions to detect data encoded in a specific format (e.g. Base64, hex, URL encoding etc.)
Using byte frequency analysis to detect how closely the data matches various natural languages.

Once a possible encoding has been detected, the 'Magic' operation performs that operation and carries out the same process again. This can continue for several levels, controlled by the 'Depth' argument.
Examples

This example shows the 'Magic' operation detecting three levels of encoding. The results are listed in order of likelihood. The first row shows that the three operations 'From Base64', 'Gunzip' and 'From Hex' will result in an output that looks quite likely to be written in English. The second row shows that just running 'From Base64' results in an output that looks like a gzip file. The third row shows that the raw data without any operations applied doesn't look very much like any language, although it is closest to Portuguese.

This example shows a PNG image which has been URL and Base32 encoded. The 'Magic' operation has correctly detected these encodings and has also discovered that the 'Render Image' operation can be used to further improve the recipe.

This example shows the 'Magic' operation correctly discovering Hindi text underneath three levels of encoding and compression.
Details
The three detection methods mentioned above are explained here in further detail.
Magic bytes
This detection method was already available in CyberChef in the form of the 'Detect file type' operation. It has been incorporated into this operation to provide further metadata to make decisions from.
Regular expressions to detect encodings
Patterns have been added to all relevant operations in the OperationConfig.js file. These patterns specify as strictly as possible what the data should look like if it is to match the operation. For example, the following configuration is used for the 'From Base64' operation:
{
    match: "^(?:[A-Z\\d+/]{4})+(?:[A-Z\\d+/]{2}==|[A-Z\\d+/]{3}=)?$",
    flags: "i",
    args: ["A-Za-z0-9+/=", false]
}

Alternative patterns can be added for use with different arguments, for example Base64 encoding using the BinHex alphabet is specified like so:
{
    match: "^[!\"#$%&'()*+,\\-0-689@A-NP-VX-Z[`a-fh-mp-r]{20,}$",
    flags: "",
    args: ["!-,-0-689@A-NP-VX-Z[`a-fh-mp-r", false]
}

Byte frequency analysis
Using Pearson's Chi-Squared test, we can determine how closely a given set of data matches the byte frequency of a certain language. To generate the truth data, I downloaded dumps of Wikipedia in 284 different languages, stripped out the wiki formatting, then measured the frequency of every byte. This gave me a set of data, unique to each language, which shows how common each byte is when the characters are encoded in UTF-8.
Future improvements

[x] Show which operations the data matches even if the 'Depth' argument does not allow running them
[ ] Add entropy calculations for each branch. Entire input and sliding window to generate structural map.
[x] Run speculative XOR, ROT, Bit shift and Rotate brute forcing. This should be optional as it will drastically increase the running time.
[x] Attempt to convert data from various character encodings at each stage - does it match UTF8?
[x] Add support for more languages
[ ] Allow the user to enter a crib pattern

An example of the new extensive language support and intensive brute-forcing capabilities:


Can't reproduce the results for GLUE CoLA

My steps:
git clone https://github.com/microsoft/LoRA.git
cd LoRA
pip install -e .
cd examples/NLU
pip install -e .

Change export num_gpus=8 to export num_gpus=1 in roberta_large_cola.sh
Then CUDA_VISIBLE_DEVICES=0 bash roberta_large_cola.sh
Running on a single A100
Using:

datasets 2.6.1
python 3.9.13
PyTorch 1.13.0+cu117

During training, the eval_matthews_correlation is stuck to 0 at all epochs. I actually had the same issue on the current transformers version, and decreasing the learning rate + no warmup helped to regain OKeyish numbers during training, but not as shiny as 0.68.
Do you have an idea of what I could be doing wrong?

I am facing the similar problem: when I set num_gpu=2 and add gradient_accumulation_steps=4 (which makes the batch size still 32), the average of 5 random seeds on CoLA of roberta-large using LoRA is 67.0. This results are "the result for each run is taken from the best epoch".

Did anyone know the solution? I am assuming the setting per_device_train_batch_size = 4 on a single GPU is equivalent to total batch size = 4 which is the paper setting, but I am still getting matthews_correlation = 0 during evaluation.

Did anyone know the solution? I am assuming the setting per_device_train_batch_size = 4 on a single GPU is equivalent to total batch size = 4 which is the paper setting, but I am still getting matthews_correlation = 0 during evaluation.

Hello, I also encountered the same problem. Did you finally solve it?


[Relay][Frontend][Tensorflow] Fix GatherV2, Add StopGradient

These changes are needed to parse a BERT TF model into relay.

GatherV2
TensorFlow recently added batch_dims as an attribute of the GatherV2 op to support batched gather. This would cause the parser the fail since it didn't expect that attribute. I added a check to make sure the attribute doesn't change the behavior of the op if it happens to exist and also added it to the ignore list. We can support parsing of batched gather at a later date.

StopGradient
This is a training op meant to stop gradient flow over certain edges in the graph. It has no purpose in inference so it can be safely mapped to identity.

@trevor-m Thank you for adding this. Can you take a look at the CI failure.

@trevor-m Thank you for adding this. Can you take a look at the CI failure?

Thanks @kevinthesun, the link http://ci.tvm.ai:8080/job/tvm/job/PR-4238/1/display/redirect isn't working for me.

please kick ci later.

I object mapping it to identity directly. Can it be replaced with an operator that map to identity, and has grad of 0?

I object mapping it to identity directly, because we have an ad algorithm. Can it be replaced with an operator that map to identity, and has grad of 0?

That makes sense to me. How do you see this being implemented? Do you mean creating a new op in relay or is there a way to do it just in the parser?
Looks like nnvm had an op block_grad which is equivalent to StopGradients.

You have to create an op in relay.
Then, it will have a grad function, which will return [zeros_like(orig.args[0])].
It wont be a big change (probably ~30 lines, most of which will be copied), and it will help you learn a bit about the stack.
I can do it if you found it too difficult though.

That sounds good, thanks for the description!
I’ll update this PR with the change shortly.


test gateway

Codecov Report

Merging #2081 (bacb5b2) into main (35918c3) will increase coverage by 0.01%.
The diff coverage is 73.33%.

@@            Coverage Diff             @@
##             main    #2081      +/-   ##
==========================================
+ Coverage   61.87%   61.88%   +0.01%
==========================================
  Files         138      138
  Lines       24839    24834       -5
==========================================
  Hits        15368    15368
+ Misses       7659     7656       -3
+ Partials     1812     1810       -2

Impacted Files
Coverage Δ

pkg/meta/sql.go
65.60% <73.33%> (-0.17%)
:arrow_down:

cmd/rmr.go
58.73% <0.00%> (-1.93%)
:arrow_down:

pkg/chunk/cached_store.go
76.37% <0.00%> (+0.18%)
:arrow_up:

pkg/fuse/fuse.go
78.10% <0.00%> (+0.50%)
:arrow_up:

pkg/vfs/reader.go
80.29% <0.00%> (+0.54%)
:arrow_up:

pkg/chunk/utils_unix.go
93.33% <0.00%> (+20.00%)
:arrow_up:

Continue to review full report at Codecov.

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


Gpl534 only rename collections post import

Closes #38
Changes proposed in this pull request:

Improves test coverage of main.run
Existing sample collection only replace by new collection if import happens without critical errors

Just noticed this contains #50 (GPL-531) as well. Happy to rebase to remove it if you prefer, but its pretty much just config for the new centre.

Rebase to remove cambridge az

And of course, the rebase has broken the tests which assumed the cambridge-az files were in place.


feat: #tno-2543 - add chart for Sections over time

makes it possible to plot a chart like this:

Requires creation of a report which has a section for each line. This report would become the data source for the chart


document process for migrating module repo

document the process for migrating IBM repos from the cloud-native-toolkit org to terraform-ibm-modules.

use our existing actions, only move repo to new org and use our api keys
update module catalog
update documentation of each module

Need admin access to both https://github.com/terraform-ibm-modules and https://github.com/cloud-native-toolkit
Transfer ownership of the repo to the https://github.com/terraform-ibm-modules organization.

Go to settings, scroll down to "Danger Zone, and select "Transfer Ownership"

Grant access to the github-admins team.
Rename the repo to indicate it is one of ours.   Change the terraform-ibm prefix to terraform-ibm-toolkit.
Add a respository secret IBMCLOUD_API_KEY and put one of our API keys in there (so the github action runs against our account).
Add other secrets that are necessary for the module
Go to the repo settings -> GitHub Apps, then add the repo to DCO under "Only select repositories"
Create a PR and edit the README with a "migrated from  message" to trigger automation.
If everything passes, merge it.
Modify the module catalog to point to the new repository location
merge changes to the module catalog
generate a BOM using iascable to test the new location

I just ran a test and pointed terraform at the URL for the migrated repo in the terraform-ibm-modules org (which has been moved back to our org, so the redirects will behave the same), like so:
module "at_resource_group" {
  source = "github.com/terraform-ibm-modules/terraform-ibm-toolkit-resource-group"
  ibmcloud_api_key = var.ibmcloud_api_key
  purge_volumes = var.purge_volumes
  resource_group_name = var.at_resource_group_name
  sync = module.kms_resource_group.sync
}

and Terraform was able to successfully pull the module from the redirected location.  It automatically followed the redirect and pulled from the cloud-native-toolkit org.  So, we can expect Terraform to be fully backwards compatible for redirected URLS.
We can easily regenerate our boms to point at the new locations (once iascable is fixed), but no way around relying on these redirects for anything that has already been generated/published/cloned etc…
I even checked .terraform/modules/modules.json, and it is pointing at pre-redirect location, yet was able to download the module and i can run terraform plan without any issues.
EX (modules.json):
{"Modules":[{"Key":"","Source":"","Dir":"."},{"Key":"at_resource_group","Source":"github.com/terraform-ibm-modules/terraform-ibm-toolkit-resource-group","Dir":".terraform/modules/at_resource_group"},{"Key":"at_resource_group.clis","Source":"cloud-native-toolkit/clis/util","Version":"1.16.8","Dir":".terraform/modules/at_resource_group.clis"}]}%

Made some minor updates to the instructions and put them in Box. Ultimately these should probably go in the Operate site - https://ibm.box.com/s/5tmk9s3houumkvl1xyz8bvp765adpxm3


Login for default mongodb installation with no authentication

I have Installed MongoDB with no authentication enabled. so when I open mydomain:8081 It asks for login, so what should I enter for credential?

Default credentials for basicAuth are admin:pass but it is highly recommended you change these by copying the config.default.js file to config.js and adjusting the relevant lines.
https://github.com/andzdroid/mongo-express/commit/c418318d58db9e2025d899f1e9c1798e1448a048


Different timed traffic light programs, configurable per daytime interval

http://steamcommunity.com/workshop/filedetails/discussion/583429740/357286033299200961/
https://github.com/VictorPhilipp/Cities-Skylines-Traffic-Manager-President-Edition/issues/26

This would be essential if we were to also implement "Tidal Lanes" #122

Migrated comment:
"At specific intervals, priority signs may take over controlling the junction. The traffic light then flashes yellow. (@GordonDry)"

Migrated comment:
"Not sure if this should go here, but here goes:
Provide the ability to mark one state of a timed light plan as the "default" or "rest" state. I'll give an example to demonstrate the use of this feature.
There is an intersection of an arterial road and a collector road. There needs to be a traffic light (instead of priority signs) because there is a heavy volume on the arterial road. The volume coming from the collector road is very light. We have a timing plan such that the maximum amount of time cars would have to queue on the collector road is 45 seconds (aka the max timer of arterial road). The arterial road is in a green state, the max timer has started counting down from 45, but there are no cars in the queue on the collector road. The states will cycle at the end of 45 seconds, even though there are no calls for service on any conflicting movement (wait = 0). The arterial road will cycle to red until all the other states are cycled through. If we could set the state that serves the arterial road as the "default" or "rest" state, then if the wait value is equal to 0, it would not cycle to the next state.
Ideas:

If the active state is "default/rest", and wait value = 0, then do not start max timer. When wait value > 0 (a car has queued for service on a conflicting movement), begin the max timer. The max timer runs out due to heavy volume, and the state terminates as normal, moving to the next state in the timing plan.

If the current state is NOT the "default/rest" state, and flow = 0 and wait = 0, immediately terminate the current state and jump to the "default/rest" state (regardless of current position in timing plan).

Assumptions:

Players would (optionally) indicate which state is the "default/rest" state in their timing plan (state with heaviest anticipated volume/flow).
If player does not designate the "default/rest" state, the timing plan will operate as it currently does."

Do we have an estimate of the work required for this feature? Reads like "rest on green" would be a minor mod of the timer.

Part Time Signals
In UK, usually on roundabouts near motorways (highways), traffic lights often only operate during rush hour or certain times of day. In evenings or when there is low traffic they switch off to allow traffic to move more freely (follow normal priority rules, with traffic usually yielding).
https://assets.publishing.service.gov.uk/government/uploads/system/uploads/attachment_data/file/9209/traffic-signals-low-demand-periods.pdf
There are also trials of using them on slip roads for traffic joining a motorway: https://www.youtube.com/watch?v=xv6DOvNfzVQ
The part time signals are usually visually different to normal signals; part time traffic lights generally have a big yellow border around them as shown in video below (unlike the small white border as shown in image at the end of this comment).
Part time signals can't be used when there is a pedestrian crossing controlled by same signals (although vehicle-only signals on same road can still be part time) - visually impaired people wouldn't know if they are on or off: http://www.roadsafetyknowledgecentre.org.uk/help-forum/835.html
Where part time signals exist (in UK at least) they are accompanied by this traffic sign (in which case traffic would use normal priority rules):

However, in some cases traffic must stop rather than yield, in which case this sign is used instead:

In some countries traffic lights just have a yellow flashing light when 'not in use'.
Some info in wikipedia: https://en.wikipedia.org/wiki/Traffic_light_control_and_coordination#Other_types_of_control

Note that if we could detect power failure (as the game does for buildings), that could also affect traffic lights. Will create new issue for that.

Part time signals could be dependent on traffic volume; if there is low traffic the lights could be disabled.


Adding sourcedata filename to a column in the scans.tsv file

Problem
I've been working with conversion of sourcedata files over to BIDS for the sake of i) speeding up my analysis work streams and ii) speeding up sharing of datasets. However, many times you'll have new datasets coming in, or maybe you want to determine if the file you uploaded with some filename (e.g. subject001_eeg_001.edf) was converted or not.
Moreover, many of my collaborators (i.e. clinicians) only remember their original file naming scheme, not the organized BIDS files. Unfortunately, then there's a lot of back and forth about which file is which unless there is a backwards trace of which BIDS file corresponds to which source file. There is no easy way to check this right now.
Suggestion
My proposal is to add a SHOULD requirement in the scans.tsv that suggests that users add a column to the file for original_filename, which adds the filename of the source file. This way, one can backtrack what was converted easily. To be honest, I think it should be a MUST, unless there is some sort of PHI embedded in the source filename?

You mean https://bids-specification.readthedocs.io/en/stable/05-derivatives/02-common-data-types.html here?
I suppose that serves the same purpose as adding original_filename in scans.tsv. However, where would these go? Would they go in the sidecar JSON?
I'm okay w/ either option as long as it's specified in BIDS, then we can support it in mne-bids.

You mean https://bids-specification.readthedocs.io/en/stable/05-derivatives/02-common-data-types.html here?

Yes.

I suppose that serves the same purpose as adding original_filename in scans.tsv. However, where would these go? Would they go in the sidecar JSON?

Yes.

Another approach to this could just be a table in sourcedata/ or code/ with source/destination columns. It could serve as a log or an input to a tool that performs the conversions.

Should this just go in the sidecar json part for each MEG, EEG and iEEG?

closed, because we discussed in #906 that implementing this on the tooling side of things would suffice ... see https://github.com/mne-tools/mne-bids/pull/890


cannot start

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.
[X] My answer given in the checkbox above is a lie.

What problem did you encounter?
System.InvalidOperationException: Cannot start process because a file name has not been provided.

Can you send the log file please?

Duplicate of #2315
If you're trying to find out why Roblox isn't launching, see https://github.com/pizzaboxer/bloxstrap/wiki/Roblox-crashes-or-does-not-launch


Usage example doesn't match real output

The --cwd option doesn't seem to work for me, but simply passing a path does (which is preferrable)

Good catch!
This cli cals pkgDir.sync with the input and the flags. But it seems that pkg-dir doesn't have options and it just accepts the cwd as main argument.


Increase timeout for scaladoc gen

Perhaps a 10 min bump will be sufficient to avoid the recent timeouts we've been seeing.


Make install more configurable

Currently, the bash install includes all packages. While this is fine, it would make more sense to have an option to select how the PaPi is interfacing with PaPiDuck (WiFi vs serial vs other).

At some point might make sense to have some kind of GUI to select the mode

The plan to resolve this as I was thinking. Was to have a docker container run MQTT on any device and the duck would connect to it via your local network. This would eliminate the need for a USB serial since people sometimes have issues with that.  If you want to operate in an offline capacity you could always run a script to turn say a raspi into an AP and use it remotely in the field without having the need to rely on home internet connection.


Support Docker Compose V2

Bug description
With Docker Compose V2 (see https://docs.docker.com/compose/cli-command/), the commands build and up don't work anymore but are showing error messages.
Steps to reproduce

Enable Docker Compose V2 in Docker for Windows
Run docker-compose build or docker-compose up
See error

Expected behavior
Build or run the docker images
Deployment method (select with an X)

[x] Docker
[ ] Kubernetes
[ ] GoDojo
[ ] setup.bash / legacy-setup.bash

Environment information

Operating System: Microsoft Windows 10
DefectDojo version 2.0.3

Console logs
WARN[0000] The NGINX_VERSION variable is not set. Defaulting to a blank string.
WARN[0000] The NGINX_METRICS_ENABLED variable is not set. Defaulting to a blank string.
WARN[0000] The DD_PORT variable is not set. Defaulting to a blank string.
WARN[0000] The DD_TLS_PORT variable is not set. Defaulting to a blank string.
WARN[0000] The DJANGO_VERSION variable is not set. Defaulting to a blank string.
WARN[0000] The DD_DJANGO_METRICS_ENABLED variable is not set. Defaulting to a blank string.
WARN[0000] The DD_ALLOWED_HOSTS variable is not set. Defaulting to a blank string.
WARN[0000] The DD_DATABASE_URL variable is not set. Defaulting to a blank string.
WARN[0000] The DD_CELERY_BROKER_USER variable is not set. Defaulting to a blank string.
WARN[0000] The DD_CELERY_BROKER_USER variable is not set. Defaulting to a blank string.
WARN[0000] The DD_SECRET_KEY variable is not set. Defaulting to a blank string.
WARN[0000] The DD_CREDENTIAL_AES_256_KEY variable is not set. Defaulting to a blank string.
WARN[0000] The DD_MEDIA_ROOT variable is not set. Defaulting to a blank string.
WARN[0000] The DJANGO_VERSION variable is not set. Defaulting to a blank string.
WARN[0000] The DD_DATABASE_URL variable is not set. Defaulting to a blank string.
WARN[0000] The DD_CELERY_BROKER_USER variable is not set. Defaulting to a blank string.
WARN[0000] The DD_CELERY_BROKER_USER variable is not set. Defaulting to a blank string.
WARN[0000] The DD_SECRET_KEY variable is not set. Defaulting to a blank string.
WARN[0000] The DD_CREDENTIAL_AES_256_KEY variable is not set. Defaulting to a blank string.
WARN[0000] The DJANGO_VERSION variable is not set. Defaulting to a blank string.
WARN[0000] The DD_DATABASE_URL variable is not set. Defaulting to a blank string.
WARN[0000] The DD_CELERY_BROKER_USER variable is not set. Defaulting to a blank string.
WARN[0000] The DD_CELERY_BROKER_USER variable is not set. Defaulting to a blank string.
WARN[0000] The DD_SECRET_KEY variable is not set. Defaulting to a blank string.
WARN[0000] The DD_CREDENTIAL_AES_256_KEY variable is not set. Defaulting to a blank string.
WARN[0000] The DD_MEDIA_ROOT variable is not set. Defaulting to a blank string.
WARN[0000] The DJANGO_VERSION variable is not set. Defaulting to a blank string.
WARN[0000] The DD_DATABASE_URL variable is not set. Defaulting to a blank string.
WARN[0000] The DD_ADMIN_USER variable is not set. Defaulting to a blank string.
WARN[0000] The DD_ADMIN_USER variable is not set. Defaulting to a blank string.
WARN[0000] The DD_ADMIN_FIRST_NAME variable is not set. Defaulting to a blank string.
WARN[0000] The DD_ADMIN_LAST_NAME variable is not set. Defaulting to a blank string.
WARN[0000] The DD_INITIALIZE variable is not set. Defaulting to a blank string.
WARN[0000] The DD_SECRET_KEY variable is not set. Defaulting to a blank string.
WARN[0000] The DD_CREDENTIAL_AES_256_KEY variable is not set. Defaulting to a blank string.
WARN[0000] The DD_DATABASE_URL variable is not set. Defaulting to a blank string.
WARN[0000] The DD_DATABASE_USER variable is not set. Defaulting to a blank string.
WARN[0000] The DD_DATABASE_PASSWORD variable is not set. Defaulting to a blank string.
WARN[0000] The DD_DATABASE_NAME variable is not set. Defaulting to a blank string.
yaml: line 42: did not find expected alphabetic or numeric character

Docker compose V2 is available as a release candidate. There are currently 2 issues:

Unit tests are not working because of https://github.com/docker/compose-cli/issues/1994
Some environment variables need to be quoted

@StefanFl do we have PR that cover this one?

Fixed in dev / 2.3.0


Feature Suggestion for OCR

I think OCR feature is so far so good, some suggested PaddleOCR which is great as well. The following repo also do well for OCR, might consider as well,
https://github.com/VikParuchuri/surya?tab=readme-ov-file

+1 from me.  What we have now seems to be word recognition and , and make no sense of sentences or layout.  Improving this would be great.

Duplicate of #972


Cluster API links are broken

https://docs.microsoft.com/en-us/previous-versions/windows/desktop/mscs/standard-order-of-preference
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/mscs/general-utility-functions
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/mscs/property-list-parsing-functions
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/mscs/cluster-registry-access-functions
The above are pages that I explicitly seen issues with. All pages associated with Cluster API have the issue.
All links that I have attempted to use that should have taken me to the function information have been broken. I am taken to the 404 page.
Some examples of links that do not work:
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/api/ResApi/nc-resapi-presutil_find_binary_property
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/api/ResApi/nc-resapi-presutil_find_dword_property
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/api/ClusAPI/nf-clusapi-clusterregsetvalue
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/api/ClusAPI/nf-clusapi-clusterresourcecontrol
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/api/ClusAPI/nc-clusapi-pcluster_reg_batch_add_command
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/api/ClusAPI/nc-clusapi-pcluster_reg_create_batch_notify_port
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/api/ClusAPI/nf-clusapi-clusterregcreatekey

@b-ammons Thanks for your feedback. Unfortunately all the above contents are no longer updated due to out of product lifecycle. Please go to newer version to find up to date document.

I cannot find a newer version. When I click on the "Recommended Version" button at the top of these pages I am taken to a generic page.
Where is the newer version page?


Caret should maintain its current position during CMD+Z and CMD+Y operations within a text block

CMD+Z and CMD+Y operations on text selections within a text block cause the caret to unexpectedly jump to the end of the current text block rather than remaining in its current location.
CMD+Z and CMD+Y operations on text selections within a text block should not cause the caret to unexpectedly jump to the end of the current text block. The caret should remain in the position it was in when the CMD+Z or CMD+Y operation was initiated.
If text deleted from within a text block is restored using CMD+Z, the restored text should be highlighted, indicating that it is currently selected.

If the user then presses the left or right arrow on their keyboard, the caret should be appear at the beginning or end of the restored text, respectively.
If the user begins entering new characters while a restored selection is highlighted, the restored selection should be replaced and the caret should appear to the right of the first character entered.
If the user presses CMD+Y to re-delete a restored (and highlighted) selection, the caret should appear immediately to the left of where the first character in the deleted selection was located.

The caret currently jumps to the end of the current text block when CMD+Z and CMD+Y are used, as shown below:
https://user-images.githubusercontent.com/19937217/152803643-5b5024a5-879b-486b-9a58-870ad39e3975.mov
The caret should maintain its position during CMD+Z and CMD+Y operations, as shown below:
https://user-images.githubusercontent.com/19937217/152804766-8ecfd431-d34e-42da-9e18-53fef4f7986c.mov

@trevrdspcdev Thanks for report the issue!, it was solved, and it will be available in the next release soon.

Best,
Mario


Filter instances based on EBS baseline bandwidth

Description
What problem are you trying to solve?
Currently, I can't see a way to provision EC2 EBS optimised instances by filtering based on the EBS baseline bandwidth. This can help in provisioning the instances where the workload requires higher EBS bandwidth.
Example: We have cypress tests which are failing when using m5a instances (large,xlarge,2xlarge) as they don't have enough EBS baseline bandwidth and can only extend upto 2880Mbps. But, cypress tests require at least 3000Mbps. This is preventing us to allocate wide range of instance categories to the nodepool and defeating the purpose of Karpenter as have restricted our workload to only few instance families.
Need something like karpenter.k8s.aws/instance-ebs-bandwidth.
How important is this feature to you?
It will be helpful to filter EBS optimised instances and also use wide range of instance categories.

Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment

Looking at the describe-instance-types API I see this bit:
            "EbsInfo": {
                "EbsOptimizedSupport": "default",
                "EncryptionSupport": "supported",
                "EbsOptimizedInfo": {
                    "BaselineBandwidthInMbps": 90,
                    "BaselineThroughputInMBps": 11.25,
                    "BaselineIops": 500,
                    "MaximumBandwidthInMbps": 2085,
                    "MaximumThroughputInMBps": 260.625,
                    "MaximumIops": 11800
                },
                "NvmeSupport": "required"
            },

And I see other instance types with this value.
            "EbsInfo": {
                "EbsOptimizedSupport": "unsupported",
                "EncryptionSupport": "supported",
                "NvmeSupport": "unsupported"
            },

I'm assuming you'd want it to be match of EbsInfo.EbsOptimizedSupport != "unsupported". Are you more concerned with the baseline bandwidth or the maximum?

@njtran Yes. I want to pick up the EBS optimized instances which matches EbsInfo.EbsOptimizedSupport != "unsupported" and would like to filter the instances based on their baseline and maximum ebs bandwidth.

At the surface I don't have any complaints with this. Are you willing to make the contribution?

I can help
/assign


pool page return ""

machinaris is running in docker.
image: ghcr.io/guydavis/machinaris:latest
Chia 2.0.0
Chiadog 0.7.5+dev
Machinaris 2.0.0
Plotman 0.5.3+dev
2023-09-04 23:01:52 [710551] [ERROR] Exception on /pools [GET]
Traceback (most recent call last):
  File "/chia-blockchain/venv/lib/python3.10/site-packages/flask/app.py", line 2190, in wsgi_app
    response = self.full_dispatch_request()
  File "/chia-blockchain/venv/lib/python3.10/site-packages/flask/app.py", line 1486, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/chia-blockchain/venv/lib/python3.10/site-packages/flask/app.py", line 1484, in full_dispatch_request
    rv = self.dispatch_request()
  File "/chia-blockchain/venv/lib/python3.10/site-packages/flask/app.py", line 1469, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
  File "/machinaris/web/routes.py", line 604, in pools
    return render_template('pools.html', pools= p.load_pools(), global_config=gc, selected_blockchain = selected_blockchain)
  File "/machinaris/web/actions/pools.py", line 47, in load_pools
    return Pools(pools, plotnfts)
  File "/machinaris/web/models/pools.py", line 75, in __init__
    errors = self.extract_unique_errors(pool_state)
  File "/machinaris/web/models/pools.py", line 112, in extract_unique_errors
    if not error['error_message'] in errors:
TypeError: list indices must be integers or slices, not str
2023-09-04 23:01:52 [710551] [INFO] <IP_ADDRESS> - - [04/Sep/2023:23:01:52 +0800] "GET /pools HTTP/1.1" 500 265 "http://<IP_ADDRESS>:8926/wallet" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36"

dump pool_state['pool_errors_24h'] from "/machinaris/web/models/pools.py", line 112
    "pool_errors_24h": [
        [
<PHONE_NUMBER>,
            {
                "error_code": 16,
                "error_message": "Server disconnected"
            }
        ]
    ],

Hi, a patch has already been made for this reporting error in Machinaris, to reflect the underlying Chia error.  Please try image: machinaris:develop in the development stream.

yes, it is fixed.


502 Bad Gateway when trying to run actions/setup-java@v3

Description:
The action suddenly stopped working 15min ago. All workflows containing the setup-java@v3 step are breaking with the message: 502 Bad Gateway
Task version:
actions/setup-java@v3
Platform:
Ubuntu
Runner type:
Self-hosted
Repro steps:
Run any workflow containing actions/setup-java@v3
Expected behavior:
Java jdk should be installed on the vm
Actual behavior:
workflow fails.

We have seen same thing in our workflows

Adoptium has problems, works if you change distribution to something else

Temurin distribution does not work as well

Seems to be working again now

seems to be working again.

Hi, all 👋 Sorry for the inconvenience, seems like it was a temporary problem with the Adoptium API. Now I can confirm that everything works as expected: https://github.com/actions/setup-java/actions/runs/4375687483
I'm closing this issue now, thank you for the fast signaling! ❤

@IvanZosimov may I ask you to elaborate something w. r. t. this issue today? We use temurin JRE for v17, which according to the docs appears to be cached locally/on GitHub somewhere. Also, we do not have check-latest enabled.
How come that this Adoptium API problem was bothering us then? We were assuming that there is no need to poll any 3rd party when using these settings.

Thanks, @mheing-epro! We will take a look!

@IvanZosimov I believe the issue is in:
https://github.com/actions/setup-java/blob/main/src/distributions/base-installer.ts#L50
If I understand this code correctly, either checkLatest is false, in which case it will use the local cached version without the external api hit, but you might use an out of date version. Or checkLatest is true in which case a successful hit to the external api MUST succeed even if you have a cached version available. My guess is you really want 3 behaviours:

Use local cache without checking the api
Only proceed if you have checked with upstream API and confirmed you are using the latest version
Check with the upstream API if possible, if it fails just use whats in the cache

We use runners hosted by GitHub, it's plain simple
      - uses: actions/setup-java@v3
        with:
          distribution: 'temurin'
          java-version: '17'
          java-package: jre

Thanks for the information, @mheing-epro! As I see you're using java-package input and set it to jre. The thing is that on the runners we have precached jdk Temurin. That's why, when the API was down, action didn't work as expected for you. If it's OK for you to setup JDK instead of JRE, you can change jre -> jdk and action will use precached JDK in case of any external problems.

Alright, the limitation to the JDK here wasn't explicit in the docs, but we can use as a workaround then. Thanks.


Mark run_release_test  flaky

https://github.com/flutter/flutter/issues/105715

Manually land to green the tree.


Mod is disabled by default.

The current release has a config.json file with "enabled": false. As a result of this, when I install the mod with the mod manager,  it's disabled by default (even though the mod manager should prevent this, see https://github.com/ow-mods/ow-mod-manager/issues/176).  The config.json file should be deleted from the release.

Just tested it out. Can confirm: after downloading the mod it's not enabled by default, user have to do it himself manually.

fixed in v1.0.7


Request to update package - log4dart

This issue was originally filed by<EMAIL_ADDRESS>
I have updated log4dart to version 1.1 to comply with M1 and also added some new features. Please update the hosted version on http://pub.dartlang.org/packages/log4dart with the latest source from https://github.com/Solvr/log4dart

This issue has been moved to dart-lang/pub#255.


Overrule smart battery management

Added a possibility to overrule the battery management.
Not to switch it off permanently but on demand for cases like these:

you mistrust the forecast for today and want to enforce loading
you want to force loading at peak times to be friendly to the grid management

If you would take over this change in the main line, but comment for release note or translation is needed, please let me know. I could add those during next days.

Thanks. It's fine for now :-)


Ref: using schema for ZodUpload validation

That custom type is actually a regular zod schema, but still with a dedicated class for handling by generators.

coverage: 100.0%. remained the same
when pulling b9b432d41c2475e0b91598965f62bfd270ac59be on ref-upload-validation-schema
into e36b4961700c50696b12f5f066309a81902ed3c2 on master.


Add missing itype column in SQLite migration

The testing for #549 focussed on PostgreSQL and one of the updates to the migration got missed in the SQLite one.
Raising and will do a test before looking for a review.

Codecov Report

Merging #577 (896da73) into main (78c00cd) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 896da73 differs from pull request most recent head cd70f66. Consider uploading reports for the commit cd70f66 to get more accurate results

@@            Coverage Diff            @@
##              main      #577   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files          295       295
  Lines        17000     17000
=========================================
  Hits         17000     17000

Continue to review full report at Codecov.

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

I've tested this migration now with SQLite from v0.13.1


Add NOTE to keywords of Style/CommentAnnotation

This PR adds # NOTE:  annotation that is occasionally used to keywords of Style/CommentAnnotation.

Before submitting the PR make sure the following are checked:

[x] Wrote good commit messages.
[ ] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[ ] Added tests.
[x] Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.
[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Run bundle exec rake default. It executes all tests and RuboCop for itself, and generates the documentation.

Good catch!


ban: Transfermarket ban

Prerequisites

[X] I havent used any other script which could have caused the ban.

Script Version
Newest Version
Platform
Webapp
Safety Settings
Wait time: 1-2
Pause cycle: 100-120
Pause for: 50-60s
Filter Used
No response
Additional Information
Got banned on the console and web app is there a safe way to use the bot.

Did you own the game on this account or just the webapp?

@Princinho22 what was the wait time you were using?

have the same problem and had autobuyer all last year and used same wait time 2-4


Idea: split buffer types into DynamicBuffer, ImmutableBuffer, PersistentBuffer

...with different APIs.
Note that by "dynamic" I mean "handled by OpenGL". In other words a buffer created with glBufferData and not glBufferStorage.
The way you handle a non-persistent buffer is really different from the way you use a dynamic buffer, especially with the triple buffering idiom.
This split would allow to:

Change the size of a dynamic buffer at runtime.
Forbid all modifications of an immutable buffer.
Use glMapBuffer(UNSYNCHRONIZED) to map a persistent buffer if persistent buffers are not supported.

Seems good to me

While we're at it, the PersistentBuffer should be separated from the object that provides synchronization.
In other words, a PersistentBuffer alone would be useless. In order to use it, you would need a Fenced<PersistentBuffer> or a ReadWriteFenced<PersistentBuffer> or a DiscreteFenced<PersistentBuffer> depending on how you want to handle accesses between the CPU and GPU.


Log the chaincodes in chaincodes collection

https://github.com/Real-Dev-Squad/website-backend/pull/486
In this PR we are generating the chaincode for a user.
What to do:

[ ] Create a firestore model for chaincodes collection
[ ] Log the data whenever a new chaincode is generated for user.

chaincodes Collection Object:
{
  username: <username>,
  chaincode: <chaincode>,
  timestamp: <timestamp>
}

[ ] Write the tests for it.

is this chaincode generated only once for the user? and if not then when exactly are we generating the chaincode?

@shaksham08 as of now, the user can generate it as many times as he/she wants but we are going to restrict it to 4 times a week and when the crypto site gets in action we will charge some dineros(virtual money) for every new chain code.

ok got it. also one thing when referring to a chaincode , is it something specific or just any random code ?

Is the firestore related to Google Firebase?

@shaksham08 chain code is randomly generated code
@samspecial yes its google firestore

@lakshayman ok

@shaksham08 chain code is randomly generated code @samspecial yes its google firestore

Ok

please assign me


Error message ''A room with this name already exist'' isn't displayed after type the same name for room the Room Name input

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Click "New Room" in the global create menu
Type test_room_name into the room name input and select a workspace. Click "Create Room".
Type test_room_name into the Room Name input and Click "Create Room".

Expected Result:
Verify that the A room with this name already exists error message displays (in real-time as you finish typing test_room_name).
Actual Result:
Error "the A room with this name already exists" message isn't displays.
Workaround:
Unknown
Platform:

Where is this issue occurring?

Web
iOS
Android
Desktop App
Mobile Web

**Version Number:1.1.20-0
**Reproducible in staging?:Yes
**Reproducible in production?:No
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Video
Expensify/Expensify Issue URL:
**Issue was found when executing:**https://github.com/Expensify/App/pull/6314
Slack conversation:
View all open jobs on GitHub

:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

Identify the pull request that introduced this issue and revert it.
Find someone who can quickly fix the issue.
Fix the issue yourself.

Triggered auto assignment to @mountiny (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@TomatoToaster This is a regression from the New Room PR. I do not think this must be a deploy blocker as it does not break anything, but it would be good to investigate. The tester has copied the string name into the text input field, which is different way than what I could see on the videos in the PR where it was typed, so not sure if that could be the reason.

:wave: Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

Identify the pull request that introduced this issue and revert it.
Find someone who can quickly fix the issue.
Fix the issue yourself.

PR up and ready


VS Code uninstalled itself

Last night I installed an update to VS Code and after the update was installed I was no longer able to access VS Code because it seems to have been uninstalled. I installed the update last night and went to sleep. When I woke up VS Code was gone. I do not know if it was gone before I went to sleep or not.
The C:\Program Files\Microsoft VS Code directory has all folders in it but they are all empty other than the root folder and tools.
In the root folder I have the following files:
unins000.dat
unins000.exe
unins000.msg

and in the tools folder:
inno_updater.exe
vcruntime140.dll

VSCode Version: Unsure. I think it was the version right before the latest.
OS Version: Windows 10 Pro 1803

Steps to Reproduce:

Open VSCode
When asked to install update accept
Install update
Close laptop
Wake laptop
VSCode deleted

Does this issue occur when all extensions are disabled?: N/A

That's not great. We are currently tracking update issues in #47841. It seems that you might've hit one. Can you see if you find an update log in %TMP%?


Greek translation

Can you please put all of your translations into one pull request?

I don't know how to merge them, sorry.

That's alright, just know for the future it's probably better to make one PR.

OK.
I will have it in mind for next time


Factored data parsing out of main

Summary of Changes
This merge factors the data parsing aspects out of the main function. Instead, data parsing is now done in a function called parse_org_data() which takes in an org_json and a manual_data_file. The output of this function is given to write_org_data() which puts this into finaldata.csv.
Explanation of Debatable Decisions
I chose to remove comments that explained intuitive, straightforward code. My personal view on comments is that they should be used to explain non-intuitive decisions in code that would be difficult to understand otherwise. However, with that said, I understand that there are many varying philosophies on how to handle comments, and if your organization's policy is different, I'd be happy to go back and comment using a different paradigm.
Other notes
A minor detail to note is that the code in my fork is currently written such that the data in finaldata.csv is organized from oldest filing to most recent filing. This is the reverse of how the output was organized before. I chose not to correct this because I assumed it would have little to no bearing ones ability to use finaldata.csv. However, if this is an issue, I can fix it.
I've also added TODOs in the code to note areas for further improvement.

A lot of the code we're working with seems super-custom. It's hard to think of any code that we could make reusable for others without having to jump through a lot of hoops. So I think keeping it custom is fine for now.

As long as this works in testing, it's good in my eyes!


Is is possible to make it use tab or 4 spaces for indent?

Hi, thx for the formatter,
Is there an option to make indents 4 spaces? Or tab?

I think it possible, will try add when have more time

Hey, just FYI, sql-formatter have own command line cli, this package is not maintained anymore! good luck


Correct spelling

https://en.wikipedia.org/wiki/Homage_(arts)

Thanks.  I included that change manually in the most recent iteration (will they ever end).


Support accessibility tools like screen readers

This is an important feature, and it must be implemented at some point.

This will likely not be implemented for v2, but it is a high priority and will be implemented as soon as possible.


Unable to push new images after adding auth

Hello,
I added authentication to my private registry and now am unable to push new images. Oddly enough, pulling images and pushing UNCHANGED images work fine.
However, when I push a new image, or an image that requires any layers to be updated, I get this:
bash-3.2$ docker push docker.djsdomain.com/gleaner
The push refers to a repository [docker.djsdomain.com/gleaner] (len: 1)
c2dce7213213: Pushing [==================================================>]     32 B/32 B
unauthorized: access to the requested resource is not authorized

Logs from the authentication server for this transaction:
I0930 00:47:27.582009       1 server.go:220] Auth request: {djenriquez:***@<IP_ADDRESS>:37572 {djenriquez pull,push repository gleaner}}
I0930 00:47:27.586096       1 server.go:103] Authn static djenriquez -> true, %!s(<nil>)
I0930 00:47:27.586165       1 acl.go:37] {djenriquez pull,push repository gleaner} matched {"Match":{"account":"djenriquez"},"Actions":["*"]}
I0930 00:47:27.586436       1 server.go:122] Authz static ACL {djenriquez pull,push repository gleaner} -> [pull push], %!s(<nil>)
I0930 00:47:27.595800       1 server.go:184] New token for {djenriquez:***@<IP_ADDRESS>:37572 {djenriquez pull,push repository gleaner}}: {"iss":"djsdomain ACME server","sub":"djenriquez","aud":"Docker Registry","exp":1443574947,"nbf":1443574046,"iat":1443574047,"jti":"6833611524882594851","access":[{"type":"repository","name":"gleaner","actions":["pull","push"]}]}
I0930 00:47:27.595879       1 server.go:250] {"token":"<Removing token for security -DJ>"}

I think the authentication server is doing everything correctly, but I figured i'd check if anything here looks odd. I do know that before adding authentication, I was able to push new images just fine.
I also opened an issue in the official docker/distribution repo.
Any ideas?

yes, to me this also looks like auth server has issued a token that includes push action, so registry should allow push.
please verify that issuer in the registry config matches issuer configured in the auth server, namely that it is set to issuer: "djsdomain ACME server".
other than that i have no ideas, please re-open if you determine this to be auth server issue.


Altering SPDM Context Leaks to Subsequent Tests

The same SPDM context is shared amongst the test suite. This means any alterations that aren't torn down are leaked to subsequent tests. This issue manifests in the following example:

Responder Under Test supports SPDM Version 1.1
Setup function spdm_test_case_capabilities_setup_version_10, called, changing requester version to 1.0
Setup fails due to version mismatch in libspdm_get_version.
Next test calls spdm_test_case_capabilities_setup_version_all, which does not alter requester version, meaning setup will fail again due to version mismatch.

Had the step 2. been reverted or not leaked, step 4. would have passed.
https://github.com/DMTF/SPDM-Responder-Validator/blob/5ae6af6e38c2a902d144dd22218952766b095287/library/spdm_responder_conformance_test_lib/spdm_responder_test_2_capabilities.c#L17-L46
This is happening anywhere ..._setup_version_XX is called.

I think we need add init in every case setup function and deinit in every case teardown function.


maybe relax password requirements

nice work! have you thought of relaxing passwpord requirements?
it took me several attemps to make a valid password - each time I thought about - the symbols requirements do not add to password security - it is the length of a password that does
given your focus is to demostrate the blockchain - accepting any password even like zzz would be a fair bet and make you users happier.

Thanks for your feedback.
As this project was for the CS50 Final project, the password requirements were from that project's necessities. but you are right after that project it should be simpler.

As a side note - maybe this could get a mention in a CS50 class:

Feel free to close an issue at your discretion.

Updated. https://github.com/hawshemi/Blockchain/commit/82a20f97fe7665b76de2b179ea055dc52ef03337
Thanks.


chore: release v0.6.6

:robot: I have created a release beep boop
0.6.6 (2023-11-12)
What's Changed

chore(cmd/gdenv): remove extra newline after version by @coffeebeats in https://github.com/coffeebeats/gdenv/pull/161

Full Changelog: https://github.com/coffeebeats/gdenv/compare/v0.6.5...v0.6.6

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/coffeebeats/gdenv/releases/tag/v0.6.6 :sunflower:


DO NOT MERGE: Add in the c3i_test channel and DLL mod

As title.

Testing purposes only. CC @mingwandroid

Testing done. Closing.


Issue #24 SetText(CharSequence text) method passing empty string

Here's a fix for clearing the text ( setText(null) or setText("") ).

Hey there!
sorry for the super delayed response.
I just released v2.0 of the library but still need to get this fix merged in.
Rather than merge this right into master (a bad habit I'm trying to get myself out of), could you retarget this pull request to 'next'? Then I'll pull it in and give it a once-over before merging it into the main branch when I get a few other bugs worked out.

I've updated my branch with all your changes. I could not test because I'm not running Android Studio 3.0

Error:This Gradle plugin requires Studio 3.0 minimum

It should get you close enough.

So I checked out your branch and there were a couple issues/bugs, some related to the merge, others probably just because you couldn't run the app to check things out.
Rather than go through the night-long struggle of back-and-forth commits/PRs to get things squared away using an environment you don't have access to, would it be alright with you if I just manually add your updates to the main Next branch to close this one out?

Sure, that's fine with me. Thanks!


Network map missing ports

Documentation for: https://github.com/mattermost/docs/issues/4107
Updated:

Self-Managed Admin Guide > Architecture Overview > Basics

Added new section called Mattermost Services Ports

@sadohert - The port details documented as part of this PR have been graciously provided by @streamer45. Can you provide a second set of eyes as a technical reviewer, please?


can't destroy deployment on dev net

Terraform Version:
terraform -v
Terraform v1.5.1
on linux_amd64
+ provider registry.terraform.io/threefoldtech/grid v1.9.0-dev

Terraform Configuration Files
terraform {
  required_providers {
    grid = {
      source = "threefoldtech/grid"
      version = "1.9.0-dev"
    }
  }
}

provider "grid" {
}

locals {
  metas = ["meta1", "meta2", "meta3", "meta4"]
  datas = ["data1", "data2", "data3", "data4"]
}

resource "grid_network" "net1" {
  nodes       = [11]
  ip_range    = "<IP_ADDRESS>/16"
  name        = "network"
  description = "newer network"
}

resource "grid_deployment" "d1" {
  node = 11
  dynamic "zdbs" {
    for_each = local.metas
    content {
      name        = zdbs.value
      description = "description"
      password    = "password"
      size        = 10
      mode        = "user"
    }
  }
  dynamic "zdbs" {
    for_each = local.datas
    content {
      name        = zdbs.value
      description = "description"
      password    = "password"
      size        = 10
      mode        = "seq"
    }
  }
}

resource "grid_deployment" "qsfs" {
  node         = 11
  network_name = grid_network.net1.name
  qsfs {
    name                  = "qsfs"
    description           = "description6"
    cache                 = 10240 # 10 GB
    minimal_shards        = 2
    expected_shards       = 4
    redundant_groups      = 0
    redundant_nodes       = 0
    max_zdb_data_dir_size = 512 # 512 MB
    encryption_algorithm  = "AES"
    encryption_key        = "4d778ba3216e4da4231540c92a55f06157cabba802f9b68fb0f78375d2e825af"
    compression_algorithm = "snappy"
    metadata {
      type                 = "zdb"
      prefix               = "hamada"
      encryption_algorithm = "AES"
      encryption_key       = "4d778ba3216e4da4231540c92a55f06157cabba802f9b68fb0f78375d2e825af"
      dynamic "backends" {
        for_each = [for zdb in grid_deployment.d1.zdbs : zdb if zdb.mode != "seq"]
        content {
          address   = format("[%s]:%d", backends.value.ips[1], backends.value.port)
          namespace = backends.value.namespace
          password  = backends.value.password
        }
      }
    }
    groups {
      dynamic "backends" {
        for_each = [for zdb in grid_deployment.d1.zdbs : zdb if zdb.mode == "seq"]
        content {
          address   = format("[%s]:%d", backends.value.ips[1], backends.value.port)
          namespace = backends.value.namespace
          password  = backends.value.password
        }
      }
    }
  }
  vms {
    name       = "vm"
    flist      = "https://hub.grid.tf/tf-official-apps/base:latest.flist"
    cpu        = 2
    memory     = 1024
    entrypoint = "/sbin/zinit init"
    planetary  = true
    env_vars = {
      SSH_KEY = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC9MI7fh4xEOOEKL7PvLvXmSeRWesToj6E26bbDASvlZnyzlSKFLuYRpnVjkr8JcuWKZP6RQn8+2aRs6Owyx7Tx+9kmEh7WI5fol0JNDn1D0gjp4XtGnqnON7d0d5oFI+EjQQwgCZwvg0PnV/2DYoH4GJ6KPCclPz4a6eXrblCLA2CHTzghDgyj2x5B4vB3rtoI/GAYYNqxB7REngOG6hct8vdtSndeY1sxuRoBnophf7MPHklRQ6EG2GxQVzAOsBgGHWSJPsXQkxbs8am0C9uEDL+BJuSyFbc/fSRKptU1UmS18kdEjRgGNoQD7D+Maxh1EbmudYqKW92TVgdxXWTQv1b1+3dG5+9g+hIWkbKZCBcfMe4nA5H7qerLvoFWLl6dKhayt1xx5mv8XhXCpEC22/XHxhRBHBaWwSSI+QPOCvs4cdrn4sQU+EXsy7+T7FIXPeWiC2jhFd6j8WIHAv6/rRPsiwV1dobzZOrCxTOnrqPB+756t7ANxuktsVlAZaM= sameh@sameh-inspiron-3576"
    }
    mounts {
      disk_name   = "qsfs"
      mount_point = "/qsfs"
    }
  }
}
output "metrics" {
  value = grid_deployment.qsfs.qsfs[0].metrics_endpoint
}
output "ygg_ip" {
  value = grid_deployment.qsfs.vms[0].ygg_ip
}

Expected Behavior
deployment get deleted
Actual Behavior
it gives error
first attempt:
grid_deployment.qsfs: Destroying... [id=31661]
grid_deployment.qsfs: Destruction complete after 4s
grid_network.net1: Destroying... [id=ee029597-334c-4444-a2ef-eaa823ca049d]
grid_deployment.d1: Destroying... [id=31660]
grid_network.net1: Still destroying... [id=ee029597-334c-4444-a2ef-eaa823ca049d, 10s elapsed]
grid_network.net1: Destruction complete after 12s
╷
│ Error: couldn't cancel deployment with error: failed to delete deployment: 31660: failed to cancel contract: error extracting events from block(0x70a6ee36f741dbb7857e16f9783dfdcdf04b20587c066ebc82c0477752c3647e): failed to decode event: unable to find field Balances_Locked for event #8 with EventID [2 17]
│

second and third attempt:
grid_deployment.d1: Destroying... [id=31660]
╷
│ Error: couldn't cancel deployment with error: failed to delete deployment: 31660: failed to cancel contract: NodeUpdateNotAuthorized

Steps to Reproduce
Please list your bug environment:

OS: Ubuntu 22.04.2 LTS
NETWORK: DEV
...

Please list the steps required to reproduce the issue, for example:

terraform init && terraform apply
terraform destroy

issue resolved


Can't install

I'm trying to use one of the install methods as described on the front page of the lodgy website.
└─> go get github.com/logdyhq/logdy-core/logdy
go: go.mod file not found in current directory or any parent directory.
	'go get' is no longer supported outside a module.
	To build and install a command, use 'go install' with a version,
	like 'go install example.com/cmd@latest'
	For more information, see https://golang.org/doc/go-get-install-deprecation
	or run 'go help get' or 'go help install'.

Thanks, I don't know anything about Go and was just trying to follow the instructions on the home page of the project.


SD card Data block CRC failure when chunk size is larger than 512

I need to write file to sd card with around 100kb/s, thus chunk size larger than 512 is required, in my case, I choose 4096:
write(fd,buff,4096);

The error logs is generated:
stm32_interrupt: ERROR: Data block CRC failure, remaining 0

The used board: stm32f407ve
sdcard: sandisk class 10
interface: sdio

Problem solved. I compared my configurations carefully with PX4 flight controller's, as my pixhawk log perfectly with the same SDCard. It seems that, in addition to the Youtube SD card guide, some further config needs to be done:

System Type → SDIO Configuration, check SDIO Card support
Device Drivers → MMC/SD Driver Support, check Use D0 Busy to detect Write Complete and SDIO block setup

I hope more guide as well as documents can be given for nuttx, I have to investigate very deep into the system source code implementing every single function, that is surely not the behaviour of a usable OS. Most people are interested in nuttx just because they are interested in PX4, not nuttx side at all. As a comparison, RT-thread brings much better community support as well as official documents.


Handle CSS changes by codemod tool

Changes
This PR adds CSS change handling to appui-codemod tool.
Testing
Manual:

Packed the appui-codemod tool
Installed appui-codemod globally
Ran the tool on test-apps directory (3.x version)

Added new unit tests to appui-codemod package.

Maybe something that we want to look into later, but should it remove @imports as well ?

Do you think we should get rid of all SCSS @imports from a specific package? Or just a list of specific partials? Otherwise, we'd have to track all variables/functions defined in the partial.

Do you think we should get rid of all SCSS @imports from a specific package? Or just a list of specific partials? Otherwise, we'd have to track all variables/functions defined in the partial.

Yes, I'm not sure how we could handle that, we can certainly remove direct imports to file that no longer exists (the ones removed in #204, for example) but I'm not sure if we can make more than this with confidence without making it much more intelligent.
Maybe we could report updated files that were removed variables but still have imports and leave it to the user ?


Unable to build and run main.cc on Win32

What OS are you using (uname -a, or Windows version)?
Windows 7 (32 bit)
What programming language are you using (C/C++/Go/Rust)?
C++
What did you expect to see and what you saw instead?
I tried building main.cc with the instructions and got this error:
In file included from main.cc:4:
webview.h:746:10: fatal error: winrt/Windows.Foundation.h: No such file or direc
tory
 #include <winrt/Windows.Foundation.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

What did I do incorrect?

I did a little digging and found out that WinRT is only for windows 8.

I could compile and run with Visual Studio

I did a little digging and found out that WinRT is only for windows 8.
You can get WinRT library by installing Windows 10 SDK. The folder to include is somewhere like C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0. But it does not seem to work with MinGW.

That minimal C++ example is broken on Windows: there is still a need for this SDK even with the DLL. Does anyone figured out how to compile it with MinGW ?

Can confirm this does not work with MinGW, I tried that

@ainar I used CMake to compile and run it. I had to do few things

Copy .lib files in script\Microsoft.Web.WebView<IP_ADDRESS>5\build\native\x64\WebView2Loader.dll.lib as WebView2Loader.lib to the same location where we have the dll folder(to respective dir x64 or x86). VS links DLL using a .lib file. Without it, will not link it
Use CMake to find that library
find_library(WEBVIEW2LOADER_LIB NAMES WebView2Loader HINTS dll/x64)
Copy WebView2.h to where you keep webview.h
Then in your cmake file use the library above

add_executable(example WIN32 ${SOURCES})
target_include_directories(example PUBLIC webview) # webview is where we keep headers and dll
target_link_libraries(example ${WEBVIEW2LOADER_LIB})

This is just an example
Generally, when linking you should also present the .lib file to VC to do the job

Closing because WinRT usage was removed in #753 and therefore the described issue is no longer relevant.


Comments on project

You folks look to be in good shape in many ways. You have excellent design documentation, and substantial code. My main concern is the absence of tests, unless I missed where you put them. If you don't have tests yet, START NOW. You'll need to do this anyway, and you'll save yourself a lot of problems with bugs.

Tests accumulating now, along with Travis CI. Fixed with 846c781


about cdata

hello i am new swift developer i need some idea or help that i can fix this problem
<theme type="text" name=".BASLIK"><![CDATA[ color: #000000; font-size: 40px; font-family: 'Arial'; text-align: center; vertical-align: middle; font-weight: normal; font-style: none; text-decoration: none; display: table-cell;]]></theme>

its writing like this on xml file
color: #000000; font-size: 40px; font-family: 'Arial'; text-align: center; vertical-align: middle; font-weight: normal; font-style: none; text-decoration: none; display: table-cell;
its come with like this
how can i take this data to append an array like
arraytitles[0] = 'color'
arraytitles[1] = 'font-size'
arrayresult[0] = '#000000'
arrayresult[1] = '40px'
how can i do it that what i looks like ?

Hi @alkincakiralar1996,
CDATA is still not supported in this version of library (check out issue #101), you might wanna try version from PR #119 if that helps you.
Cheers,
// T


Prevent ignored touches on Android Chrome.

Android Chrome will not trigger a click event if a user drags an item,
even if the item is dropped back into its original placement. This
means that whenever the "ignore next click" handling is activated, the
user's next click (unrelated to dragging) will be ignored.
This commit solves this by never activating the "ignore next click"
handling on Android Chrome.

@owen-m1 any chance of this being merged? We at github.com/thelounge/thelounge are waiting on this


Identify the PR number from the branch name.

In my use case, there are situations where I need to identify the PR number from the branch name, so I have made it possible to perform such operations.

@pyama86 Thank you!!


SQLiteException on showConversations

Got this on some devices, when trying to show conversations with Mobihelp.showConversations(context).
java.lang.RuntimeException: An error occured while executing doInBackground()
        at android.support.v4.content.ModernAsyncTask$3.done(ModernAsyncTask.java:137)
        at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
        at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
        at java.util.concurrent.FutureTask.run(FutureTask.java:242)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
        at java.lang.Thread.run(Thread.java:841)
 Caused by: android.database.sqlite.SQLiteException: no such table: notes (code 1): , while compiling: SELECT ticket_id, COUNT(1) FROM notes WHERE  unread = 1  GROUP BY ticket_id
        at android.database.sqlite.SQLiteConnection.nativePrepareStatement(Native Method)
        at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:889)
        at android.database.sqlite.SQLiteConnection.prepare(SQLiteConnection.java:500)
        at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
        at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:58)
        at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:37)
        at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:44)
        at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1314)
        at android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1161)
        at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1032)
        at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1200)
        at com.freshdesk.mobihelp.c.d.e(Unknown Source)
        at com.freshdesk.mobihelp.d.h.a(Unknown Source)
        at com.freshdesk.mobihelp.d.h.loadInBackground(Unknown Source)
        at android.support.v4.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:242)
        at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:51)
        at android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:40)
        at android.support.v4.content.ModernAsyncTask$2.call(ModernAsyncTask.java:123)

Can you please share the following information to allow us to check this ?

Mobihelp SDK Version you currently use
Did you upgrade mobihelp from an older version to this version and this started appearing soon after?

It happens with sdk 1.3 and 1.3.1 (dont know about other versions).
No.

It sometimes appears on some devices, when changing MobihelpConfig. And, it may dissapear on some devices, when simply relaunch application. Also, if you clear app data (in android settings), this error will dissapear.

@stedi-akk This is an edge case that happens only when changing app config and invokes UnreadCountAsync API from launcher activity's start. We've added a fix for this in SDK v1.4. I'm marking this issue closed. Feel free to re-open if the this surfaces again.


TaskItemSpecFilenameComparer cleanup

Avoid allocating strings for filenames, when we can take a slice of the ItemSpec instead.
Also some general style cleanup.

One day I'm going to write some allocation-free Path manipulation that returns a "segment" (think ArraySegment) for strings...


Units and doc changes

Part 1 - December 6, 2022
The logic for the existing units class looked a little convoluted and I thought it might nicer to have it as a class. This way we can store all the conversions and the method names clearly define how the unit is changing. In addition, we can store common conversions in here like F to C, which is used in a few places in the code.
I updated the units tests to cover the new methods, but replacing the existing Units class look like a big task, so that will be done later.
I also started making a constants file for storing constants. The constants can then be defined in one place and referenced where they originated from.
Part 2 - December 10, 2022
Started updating the documentation to capture what data should be in the instruction set json file.
Added the sample json file from the documentation to give new users a starting point.

I need to chunk this into smaller commits and rebase with the current development branch.


added index support

I took the code that was implemented by Rodolfocartas with https://github.com/chennaione/sugar/pull/64 and updated it to resolve the merge conflicts.

Is there any reason this has not been merged? It looks like the most promising way to be able to Index a column (I think).


Update .coveragerc

Description:
Related issue (if applicable): fixes #
Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#<home-assistant.io PR number goes here>
Example entry for configuration.yaml (if applicable):

Checklist:

[ ] The code change is tested and works locally.
[ ] Local tests pass with tox. Your PR cannot be merged unless tests pass

If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.io

If the code communicates with devices, web services, or third-party tools:

[ ] New dependencies have been added to the REQUIREMENTS variable (example).
[ ] New dependencies are only imported inside functions that use them (example).
[ ] New or updated dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[ ] New files were added to .coveragerc.

If the code does not interact with devices:

[ ] Tests have been added to verify that the new code works.

Hi @kraakkop,
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!


Apply new rider/resharper method body refactors

These are showing up in the latest Rider beta and seem harmless enough. Make sure during review that someone checks with a non-beta release to ensure they don't show inspections there.

When you say "show up", what does that mean? Are they showing up as warnings, or are they purely informational? If they're showing up as errors, I think we should turn them off, in the same way that it's turned off for normal method bodies.

It's set to warning level on both framework and osu! projects, and doesn't look to stop compilation:

That's unrelated to this PR, right?

Ah, wrong PR. They are showing as warnings here as well. I'm okay with turning off as well, but considering how few cases there are where we weren't already using this style it felt like leaving be was okay.

Hmm, okay, let's see how it turns out.

Make sure during review that someone checks with a non-beta release to ensure they don't show inspections there.

Checked the changes on stable Rider 2021.2.2 and it looks good, no inspections.

I was a little bit partial to the other format as well, but I'm trying not to nitpick every little thing in hopes of reducing conversation on simple PRs.


Razor.SDK defines DotNetCoreRazorConfiguration project capability for <= 3.0 projects

Line of interest: https://github.com/aspnet/Razor/blob/master/src/Microsoft.NET.Sdk.Razor/build/netstandard2.0/Microsoft.NET.Sdk.Razor.DesignTime.targets#L29
Basically, in pre-3.0 world the DotNetCoreRazorConfiguration was either defined by Razor.DesignTime or not at all. With the SDK as it is currently we see every project as a >= 2.1 project (even when no Razor is available).

8d733ecc0422a56ae8dfc7dd296d475bb8b3d790


Does ms1m_align_112 dataset exclude the overlapped data in LFW?

Hi~
Does the ms1m training data exclude the overlapped data in LFW?
Thank you.

Hi, thank you for your question. Yes, the overlapping parts have been removed.


First test.

@willglynn excellent job! :clap:
I'm going to learn ruby just for this! :sparkles:
It still works! Luckily it seems nothing has changed from the Lavu side so far, but I'm more of a Python guy so I'll try to interface with poslavu from Python first.

Good luck! I'm happy to have entirely forgotten about that company :-)


Loss of :a functionality from ipython-sql

I am just migrating from ipython-sql and find that the change in variable substitution appears to have reduced simplicity and usability of the sql extension.  The notes in #137 state:

Please aware the variable substition as {a}, $a, and :a format has been deprecated.  Use {{a}} instead.

But {{a}} appears to be a simple string substitution, which is a very different functionality to that provided by :a, which ensures that the variable is safely quoted for insertion into SQL.  Using {{a}} instead does not seem to work.
For users using the sql extension to created SQL focussed notebooks with minimal python (essentially documenting queries) this now means that the simple variable substitution must be replaced with code to quote and escape strings.  For example the following code breaks:
id=42
name='arthur'
%sql create table test(id integer, name varchar(30));
%sql insert into test values (:id,:name)

Is there something I have missed in the documentation that handles this common use case.

thanks for your feedback!
We deprecated the old behavior because having three ways of doing parameter interpolation was confusing. Furthermore, the :variable syntax was causing issues with some DuckDB queries.
Honestly, I never thought about the use case you're mentioning, and I considered it confusing that :variable would quote strings while the others passed the value as is.
But we can work on bringing this feature back. Do you have any recommendations?
I think we could do something like:

{{variable}}: substitute the variable as is
[[variable]]: quotes and escapes if needed

thoughts?

@edublancas Thanks for looking at this.
I'm not familiar with DuckDB so not sure what constraints that might impose on implementation.  I'm a long time fan of SQLite but looks like DuckDB may be a good option for some of my work, so very interesting pointer!
In terms syntax, that may be a bit harder.  I think [] is probably not suitable as it is extensively used in PostgreSQL arrays and would conflict with nested arrays in SQL.  That said, there probably are not many escape sequences that are not used in some variant of SQL.
Since jupysql is already processing {{ }} I wonder if the best solution might be to use something within the {{ }} expansion.  Possibly this could borrow from ipython and use {{:variable}} - though given it is going to change in any case maybe something like {{$variable}} would be appropriate?

Please de-deprecated :variable substitution, as this is the most beautiful notation of the four :variable, {a}, {{a}} and $a, and widely used across various DBs and APIs ecosystem. This hinders our migration from ipython-sql to jupysql.

hi all, many thanks for your feedback. we keep getting observations around this so we've decided to get this back

Glad this will be brought back. I want to emphasize that bind variables are different from substitution:

The SQL statement is sent to the server with bind variable placeholders, and the values for the placeholder
The database server performs the replacement

Why is this a recommended pattern?

It protects against sql injection
If the same SQL statement is sent to the server again, it does not need to be parsed. The server recognizes it, gets it from the cache, replaces the bind variables and executes it. This is a performance benefit.

Then there is the syntax of the bind variables. This differs somewhat per database, but both Oracle and Postgresql use :varname.
This makes it possible to simply cut & paste a query with bind variables from the notebook into an Oracle or Postgresql SQL execution tool to test/debug/optimize.
So I'll be happy to see the previous syntax restored.

the :variable feature is back! It'll be part of the next release 0.9 which will be out during the week!

That is brilliant news!  Thankyou!!

JupySQL 0.9 is out now! Here's how to use the :variable feature https://jupysql.ploomber.io/en/latest/user-guide/template.html#id1
I'd greatly appreciate if you can share our page https://github.com/ploomber/jupysql in your social channels so we get to 400 ⭐!
feel free to open more issues if you have feedback and thanks for using JupySQL!


Mango emoji

Ripe mangos characteristically show a gradient from red through yellow to green, but are unremarkable in monochrome depictions. The flesh is also often cut in a special pattern.
Petitions

change.org  ❎
change.org
Emoji Request

Proposed in L2/17-203 and L2/17-211.

Yes, thank you @Podgorica. It seems I have missed too document some proposals released this summer. I will recheck them when the candidates for Unicode 11 are official, which should be tomorrow.

The candidate emojis for Unicode 11 include a Mango emoji as U+1F96D.
http://www.unicode.org/L2/L2017/17284-emoji-recs.pdf


Is there a way to specify other report time instead of the default 10s?

Hi,
I'm wondering whether there's way to specify other report time instead of the default 10 seconds. Right now I'm using ycsb 0.12.0.
When execute/run the load, I add the -s in the command. But the default interval is 10 seconds. Could I change it to other value, like 100 milliseconds?
THANKS!

Jun

There is a property called status.interval. It is in terms of seconds. That may do what you are looking for. I don't know if you would want it as frequent as 100 milliseconds since that would affect the performance of running YCSB most likely.
https://github.com/brianfrankcooper/YCSB/blob/master/core/src/main/java/com/yahoo/ycsb/Client.java#L1095

@risdenk
Thank you so much for the response!
Yes, I've tested the status.interval and it works. But it can only support  integers with unit in second. I'm wondering whether it can support for update of every 100 ms.
Actually my purpose is to use YCSB to test the performance of Cassandra. I want to know how many requests Cassandra can process in a 100 ms units and how vary it could be for every 100 ms. So that's why I want to setup the interval time.
Any comments on this?
Thanks!
Jun

100ms is a small window. Decreasing the status.interval from 10 seconds to 100ms is 100x smaller. This means that 100x more work is done to print status out. If you are trying to push a Cassandra cluster you will most likely need multiple YCSB clients. If each YCSB client is doing 100x more printing out of status that would mean you need to have more YCSB clients to push Cassandra.
There is non trivial amount of work when you change something 100x even if its printing out to the console.

The code could be changed to support smaller intervals than a second but you would need to do that. If there is a backwards compatible change we could try to add it to YCSB.

Thank you so much for the explanation! @risdenk
I'll try to see the result if I change it to 1 second instead of 100 milliseconds.
Again, your information is quite useful and I really appreciate it!

@wuxiaomin98 any update here?

@risdenk Thanks for asking.
Yes, I've tried with 1 second. I did not compare my previous result with this 1 second interval result, but just take a look, the result seems to be almost similar. I did not tried with 100 ms, as I do not figure out how to get the data every 100ms.


Support for private-repo examples?

In my private repo, I have a README.md with this YAML example block in it.
steps:
  - command: echo foo
    plugins:
      -<EMAIL_ADDRESS>{}

It fails linting:
$ docker-compose run --rm lint
Creating toolshare-buildkite-plugin_lint_run ... done
TAP version 13
ok 1 - plugin.yml is valid
not ok 2 - No readme config examples found with plugin id 'improbable/toolshare'. Have you configured the linter with the correct plugin id?
ok 3 - Readme version numbers are up-to-date (v0.0.1)
1..3
# failed 1 of 3 tests
# time=85.235ms

I think this is because the regexes (https://github.com/buildkite-plugins/buildkite-plugin-linter/blob/master/lib/linters/example-linter.js#L80) are not supporting my I-think-legit example...?

To start off, I deeply apologize it has taken us so long to get back to you!
With that out of the way, indeed your example is quite valid, but it would appear that the example linter expects the ID of private repositories to be the whole URL. While not strictly the fault of using regexes, they certainly do not help. I don't think that behaviour makes a lot of sense so I'll be looking into changing that (and maybe even remove the regexes :stuck_out_tongue:)


DEX-824 Account verification emails

Use User.ensure_user in user creation API
This is so we have a function for creating a user which can include
sending account verification emails.

APIs for account verification emails
For re-sending verification emails:
POST /api/v1/users/<user-guid>/verify_account_email

The email looks like:

Hello Codex user,
Please click on this link to verify your email: http://localhost:84/auth/code/B466F3E0145CB540C84481830C202D1E099A5D6CB53DF1BDB62D886F67918F9F
The Codex team

For verifying the email:
POST /api/v1/auth/code/<code>

/rebase


Added uuid()

Thanks a lot :) Do you know about the ramsey/uuid package?

Thanks a lot :) Do you know about the ramsey/uuid package?

Yes. The code is adapted from https://github.com/ramsey/uuid/blob/3.2.0/src/Uuid.php#L624

Awesome, thanks :)


Use Scala versions matrix for running tests in CI

That should speed up running tests in CI.

3m 17s against the current 9m 14s for running the whole GA workflow. Not bad.


Fastlane not generated automatic build in tesflight

I have setup the fastlane in my project and pushed all changes in one branch, but the automatic build does not generated in the testflight. Kindy clarify
I am new to this.
🚫 fastlane environment 🚫
Stack

| Key                         | Value                                       |
| --------------------------- | ------------------------------------------- |
| OS                          | 10.12.6                                     |
| Ruby                        | 2.2.4                                       |
| Bundler?                    | false                                       |
| Git                         | git version 2.14.3           |
| Installation Source         | ~/.fastlane/bin/bundle/bin/fastlane         |
| Host                        | Mac OS X 10.12.6 (16G29)                    |
| Ruby Lib Dir                | ~/.fastlane/bin/bundle/lib                  |
| OpenSSL Version             | OpenSSL 1.0.2g  1 Mar 2016                  |
| Is contained                | false                                       |
| Is homebrew                 | true                                        |
| Is installed via Fabric.app | false                                       |
| Xcode Path                  | /Applications/Xcode.app/Contents/Developer/ |
| Xcode Version               | 9.2                                         |

System Locale

| Variable | Value       |   |
| -------- | ----------- | - |
| LANG     | en_US.UTF-8 | ✅ |
| LC_ALL   | en_US.UTF-8 | ✅ |
| LANGUAGE | en_US.UTF-8 | ✅ |

| Gem      | Version | Update-Status      |
| -------- | ------- | ------------------ |
| fastlane | 2.94.0  | 🚫 Update available |

Loaded fastlane plugins:
No plugins Loaded

Loaded gems

| Gem                       | Version      |
| ------------------------- | ------------ |
| slack-notifier            | 2.3.2        |
| atomos                    | 0.1.2        |
| CFPropertyList            | 2.3.5        |
| claide                    | 1.0.2        |
| colored2                  | 3.1.2        |
| nanaimo                   | 0.2.5        |
| xcodeproj                 | 1.5.7        |
| rouge                     | 1.11.1       |
| xcpretty                  | 0.2.6        |
| terminal-notifier         | 1.7.1        |
| unicode-display_width     | 1.1.3        |
| terminal-table            | 1.7.3        |
| plist                     | 3.2.0        |
| public_suffix             | 2.0.5        |
| addressable               | 2.5.1        |
| multipart-post            | 2.0.0        |
| word_wrap                 | 1.0.0        |
| tty-screen                | 0.6.4        |
| tty-cursor                | 0.5.0        |
| tty-spinner               | 0.8.0        |
| babosa                    | 1.0.2        |
| colored                   | 1.2          |
| highline                  | 1.7.8        |
| commander-fastlane        | 4.4.6        |
| excon                     | 0.55.0       |
| faraday                   | 0.12.1       |
| unf_ext                   | <IP_ADDRESS>      |
| unf                       | 0.1.4        |
| domain_name               | 0.5.20170404 |
| http-cookie               | 1.0.3        |
| faraday-cookie_jar        | 0.0.6        |
| fastimage                 | 2.1.0        |
| gh_inspector              | 1.1.3        |
| json                      | 1.8.1        |
| mini_magick               | 4.5.1        |
| multi_json                | 1.12.1       |
| multi_xml                 | 0.6.0        |
| rubyzip                   | 1.2.1        |
| security                  | 0.1.3        |
| xcpretty-travis-formatter | 0.0.4        |
| dotenv                    | 2.2.0        |
| bundler                   | 1.14.6       |
| faraday_middleware        | <IP_ADDRESS>     |
| naturally                 | 2.1.0        |
| simctl                    | 1.6.4        |
| uber                      | 0.0.15       |
| declarative               | 0.0.10       |
| declarative-option        | 0.1.0        |
| representable             | 3.0.4        |
| retriable                 | 2.1.0        |
| mime-types-data           | 3.2016.0521  |
| mime-types                | 3.1          |
| little-plugger            | 1.1.4        |
| logging                   | 2.2.2        |
| jwt                       | 1.5.6        |
| memoist                   | 0.15.0       |
| os                        | 0.9.6        |
| signet                    | 0.7.3        |
| googleauth                | 0.5.1        |
| httpclient                | 2.8.3        |
| google-api-client         | 0.13.6       |
| emoji_regex               | 0.1.1        |
| libxml-ruby               | 3.0.0        |

Thank you for your answer @RishabhTayal

Closing this as @RishabhTayal kindly answered this issue 😊


chore: add Translator key

Simply adds the Translator tag to available string keys

Thank you for this addition, if you see other elements missing don't hesitate @domenicoblanco !

Sure c:


refactor: misc refactoring in instantsend, llmq, coinjoin

I could split this into multiple PRs if desired

They could be broken into multiple lines if desired, but I think that's better then nesting


[site/theme,#70]: add social links to nav and footer

Social links with icons added for:
Nav:

[x] YouTube life itself channel
[x] Github repo
[x]  Life Itself - lifeitself.us/labs

Footer:

[x] YouTube life itself channel
[x] Podcast

@khalilcodes 👍 - beautifully done.


facet should be hiden if not information is provided

@baimingze @Ricardo-Ke
I have been looking other services an when not facet value is provided, we should hide the corresponding block. This will enable in the future to grow the number of facet boxes and make easier the search. Also in the future some omics and provider will have facets that others do not have making strong and consistent the layout. For example if I search in the future for http://www.omicsdi.org/search?q="loco como loco" I should expect no boxes because no data is available. What do you think?

done


Build native image without docker daemon

Can you add instructions on how to build the native image without docker daemon, specifically useful for solutions like codefresh which dont allow access to daemon.
Thanks

This is already documented. this section describe how you can configure the native-mave-plugin.
If you want to start from your repackaged achive, this section describes how ti can be achieved.


LocalDateTime fields serializes as a nested document, but fails to de-serialize back

My class (extended from CouchDbDocument) contains LocalDateTime field. When I save it through the repository it saves like this:
... some fields...
"date": {
    "second": 11,
    "hour": 17,
    "minute": 21,
    "nano": 661000000,
    "year": 2018,
    "monthValue": 8,
    "month": "AUGUST",
    "dayOfMonth": 14,
    "dayOfYear": 226,
    "dayOfWeek": "TUESDAY",
    "chronology": {
      "calendarType": "iso8601",
      "id": "ISO"
    }
  }
...other fields...

However, when I try to de-serialize the document back, I get an exception:

org.ektorp.DbAccessException: com.fasterxml.jackson.databind.JsonMappingException: No suitable constructor found for type [simple type, class java.time.LocalDateTime]: can not instantiate from JSON object (missing default constructor or creator, or perhaps need to add/enable type information?)
at [Source: N/A; line: -1, column: -1] (through reference chain: model.HemaAnalysis["date"])

Do I provide my own ObjectMapper? Do I use jackson-modules-java8? Do I add another constructor? This is not documented anywhere as far as I can tell.

This is not a issue on Ektorp.
This is a Jackson usage issue.
Please see https://stackoverflow.com/questions/27952472/serialize-deserialize-java-8-java-time-with-jackson-json-mapper


OpenCV 4.x

I suggest to add a new library for the public catalog, OpenCV 4.x

Hi @micham1111
There's a PR in progress #5169 to add OpenCV 4.

How to install OpenCV4.x?
the command  ./vcpkg search opencv  stil return opencv   3.4.3-8
On Mon, Aug 12, 2019 at 7:22 PM Victor Romero<EMAIL_ADDRESS>wrote:

Closed #5876 https://github.com/microsoft/vcpkg/issues/5876 via #5169
https://github.com/microsoft/vcpkg/pull/5169.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vcpkg/issues/5876?email_source=notifications&email_token=AA7XRWZ4QTS4D5F5M6G56YDQEGE57A5CNFSM4HCPKS4KYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOTAE2I5Q#event-2550768758,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA7XRW2WMZVK2H57FOQ3KBTQEGE57ANCNFSM4HCPKS4A
.

Hi @michan1111
It should be a simple vcpkg install opencv.
The current default version is OpenCV 4.1.1.
Do you have the latest vcpkg sources?
Please try these instructions:
cd <path to vcpkg>
git pull origin master
./bootstrap-vcpkg.bat
./vcpkg install opencv

Thanks.
On Sat, Aug 24, 2019 at 3:45 PM Victor Romero<EMAIL_ADDRESS>wrote:

Hi @michan1111
It should be a simple vcpkg install opencv.
The current default version is OpenCV 4.1.1.
Do you have the latest vcpkg sources?
Please try these instructions:
cd
git pull origin master
./bootstrap-vcpkg.bat
./vcpkg install opencv
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/vcpkg/issues/5876?email_source=notifications&email_token=AA7XRW75TKOIV6ZASY6N2QTQGEUOXA5CNFSM4HCPKS4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5B7LMA#issuecomment-524547504,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA7XRWYGAR5XNNIYEGOLZ33QGEUOXANCNFSM4HCPKS4A
.


Testing the POST method code snippet

Can someone please give a way to test the following code snippet (appearing in this article):
[HttpPost]
[ProducesResponseType(StatusCodes.Status201Created)]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
public ActionResult<Pet> Create(Pet pet)
{
pet.Id = _petsInMemoryStore.Any() ? _petsInMemoryStore.Max(p => p.Id) + 1 : 1;
_petsInMemoryStore.Add(pet);
return CreatedAtAction(nameof(GetById),
    new { id = pet.Id }, pet);

}
My completed code for the above is:
public class TestController : ControllerBase
{
// private readonly string GetById = string.Empty;
List<Pet> _petsInMemoryStore = new List<Pet>();
public TestController()
{
_petsInMemoryStore.Add(new Pet { Id = 1, petType = "Puppy" });
_petsInMemoryStore.Add(new Pet { Id = 2, petType = "Cub" });
_petsInMemoryStore.Add(new Pet { Id = 3, petType = "Kitten" });
}
public ActionResult<Pet> Create(Pet pet)
{
        pet.Id = _petsInMemoryStore.Any() ? _petsInMemoryStore.Max(p => p.Id) + 1 : 1;
        _petsInMemoryStore.Add(pet);

        return CreatedAtAction(nameof(GetById),
            new { id = pet.Id }, pet);
    }
    [HttpGet("{id}", Name = "GetTodo")]
    private IActionResult GetById(int id)
    {
        // throw new NotImplementedException();
        var item = _petsInMemoryStore.Find(x=>x.Id==id);
        if(item==null)
        {
            return NotFound();
        }
        return new ObjectResult(item);
    }

public class Pet
{
public int Id { get; set; }
public string petType { get; set; }
}

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

ID: b391017f-25e1-d5e1-c4f7-020408ade7b5
Version Independent ID: 263a7b64-2e42-bbfc-c1d3-61680438e1e4
Content: Create web APIs with ASP.NET Core
Content Source: aspnetcore/web-api/index.md
Product: aspnet-core
Technology: aspnetcore-webapi
GitHub Login: @scottaddie
Microsoft Alias: scaddie

Hello @krchome ... We have an open issue to provide a testing doc for web API at https://github.com/aspnet/AspNetCore.Docs/issues/13575. With regard to providing tests of the code that you cited, your best bet is to go off of samples on the web (e.g., there are a lot of blog posts out there that deal with this subject), discuss with devs in a support forum, such as Stack Overflow, or discuss with devs on a support chat, such as Slack or Gitter. We don't have the staffing to provide code-level support ... there are only a few of us here working on docs. 🏃🏃😅

Hello @guardex - Thanks very much. I appreciate your suggestions and shall proceed accordingly.


Nesting FZF with preview

[x] I have read through the manual page (man fzf)
[x] I have the latest version of fzf
[x] I have searched through the existing issues

Info

OS

[ ] Linux
[x] Mac OS X
[ ] Windows
[ ] Etc.

Shell

[x] bash
[ ] zsh
[ ] fish

Problem / Steps to reproduce
fzf is my favorite command-line utility, thanks Junegunn! This morning I've been indulging in levelling up a few scripts (unrelated, but --phony and the change event changed the game for some CLI full-text index search scripts I use).
I noticed that I think it's not possible to nest fzf with --preview. {} will be default in the --bind be replaced with whatever was selected (if unescaped), even if it's another fzf command.
Simple, reproducible command:
fzf --bind "enter:execute[echo {} | fzf --preview 'less {}']"

I wanted this for a file-manager script I was doing, where I first browse some files by tags (grep matches for #<word>), hit enter, and then browse all files that have that tag, previewing them. In my local script, the echo is a  grep.

.. per what you've presented, it's possible.
a) Environment variable
export NESTEDPREVIEW="less {}"
fzf --bind "enter:execute[echo {} | fzf --preview \"\$NESTEDPREVIEW\"]"

b) script
Just put a script containing
fzf --preview 'less {}'

in the PATH, and pipe into that instead.
All that said, why can't you just escape it?
fzf --bind "enter:execute[echo {} | fzf --preview 'less \{}']" seems to me to produce the expected result.

@0ion9 you're absolutely right. I had escaped with \{\}, not \{}. That worked, thanks a lot, really appreciate it! 👏 🥇


caching compressed static content

Is there a way in which when using compression on static content served using express static, the compressed content can be cached somewhere so that we can avoid the need to re-compress stuff often?

So this is a generic module that compresses all responses, including dynamic content. This module has no way to know if it's from a static file, though. There are several modules on npm that can serve compressed static content from disk if you like, but it's almost impossible to search around from a cell phone. I'm sure you'll find them, but yes, this module cannot do that.