Are transition callbacks supposed to fire when state changes on a regular save?

I have a model set up like this:
state_machine :state, :initial => :pending do
  event :complete do
    transition [:pending] => :unverified
  end
  event :verify do
    transition [:pending, :unverified] => :verified
  end
  after_transition [:pending, :unverified] => :verified do |listing, transition|
    listing.person.update_attribute(:member_type, :professional)
  end
end

Right now, the transition only fires if I call listing.verify! but not if I update the state directly. Is this the intended behavior or should the model be recording state changes when done through a regular update?

Hey @aaronchi -
Setting the state directly bypasses state_machine altogether, so it will not fire any callbacks when this is done.  You could consider using the attribute-based event transitions which allow you to fire off an event when the machine's action ("save" in this case) is called.  For example:
vehicle = Vehicle.first
vehicle.state_event = "park"
vehicle.save!

In that example, the "park" event will be run when the Vehicle record is saved.  This will run all of the relevant callbacks related to that event.
In the future, let's using the mailing list for general questions like this -- http://groups.google.com/group/pluginaweek-talk.
Thanks!


Workshop Still Requires Deployment to US-West-2 Only

Describe the documentation issue
According to this link: https://catalog.workshops.aws/eks-blueprints-for-cdk/en-US/020-setup/self-paced/1-create-workspace
Only the Oregon (us-west-2) is available for the CDK EKS Blueprints deployment.  However, developers report that it is available in all US regions now.
Text box containing warning:
This workshop was designed to run in the Oregon (us-west-2) region. Please don't run in any other region. Future versions of this workshop will expand region availability, and this message will be removed.
Links
https://catalog.workshops.aws/eks-blueprints-for-cdk/en-US/020-setup/self-paced/1-create-workspace

@atari1050 Yes - that is a specific language for AWS Event (as we have tested in those specific regions to ensure best quality event driven experience). One thing to note is that we have not tested all of the possible region combinations for pipelines - so for anyone running the workshop in their own machine/Cloud9, experiences can vary.
At the minimum, we will review and loosen up on the restrict language.

This is in progress - we are currently testing the provisioning code in regards to region pipeline assignment for Workshop Studio.

@atari1050 - per the requirements of Workshop Studio, at this time we are only able to select 1 region for deployment of our template (US-WEST-2). When the option is available to select multiple regions for deployment, we will revisit this issue. Closing it for now.


Podium API

I'm trying to integrate the Podium software into my site. For example showing a couple of posts in a thread so I can display them as a preview on a different page or automatically creating a new thread when certain actions happen in my application.
I want to avoid reading through all your code, not forever! but to a certain extent I shouldn't have to. I am trying to treat your application as a forum manager that I can talk to and control without needing to know too much about the guts of how you have done it.
I'm really missing some kind of PodiumService class that I can use to get at the functions I need to do. My preliminary reading of the code says that it's all there but its spread out across all the classes. So something simple that can draw all that functionality together would be great!

I've got plans to prepare API and to rewrite code to use it internally as well so this is something that will appear eventually. No ETA yet though.

I have been building one (of sorts) as I go along, which you can have once it starts to turn into something worth committing of course!
While trying to reuse as much of your code as I can I have noticed several annoyances that have been making that job more difficult. I am referring to looking up a thread/post.
Many of your calls require me to give the slug as part of the Thread search. In fact almost all of them require thread_id, forum_id, category_id as well as slug. So the model (technically) allows for the same Thread to be used in multiple categories across multiple forums with different posts depending on which category or forum you are currently in - I think.
Most of the time I just have a thread id so I have to circumvent your calls and go under the covers with a Thread::find("id") myself otherwise I have to do extra look ups find the extra bits I need in order to look up a record.
More seriously though why do I need the slug to lookup a thread. The slug is dynamically generated and subject to change.

If I remember correctly the general idea behind this was to prevent potential mistakes when referring to a thread or post. Right now I don't think it's necessary so this for sure needs to change.


Update README.md for CLAW/377

Warning added to README to inform users that our Docker stuff is not currently working, for Islandora-CLAW/CLAW#377
This first of many, if this works for everyone.

Anyone else? Bueller? Bueller? @Islandora-CLAW/sprinters? If this is good to go, I'll start copying it on the rest of the Docker repos.

:shipit:


Use perl for regex for install-briefcase

Since grep -P is not valid for BSD grep (and whatever is installed on Windows), updated to just use perl directly.
PR Checklist:

[x] All new features have been tested
[x] All new features have been documented
[x] I have read the CONTRIBUTING.md file
[x] I will abide by the code of conduct

For posterity....perl definitely doesn't seem like the best solution here....however, my regex skills limit my ability to write this in native bash via [[ "${PR_BODY}" =~ <REGEX> ]] && REF=${BASH_REMATCH[0]}.


Update README.md - DropDown

Created Number 22. DropDown
The users will be able to see the detailed message only when they click on the summary.

Yes Sir.
On Mon, Sep 19, 2022, 07:13 Tapas Adhikary @.***> wrote:

@.**** commented on this pull request.
@AmenaNajeeb https://github.com/AmenaNajeeb thanks for putting it. Can
you please create an issue for the PR so that we have a track of changes?
—
Reply to this email directly, view it on GitHub
https://github.com/atapas/markdown-cheatsheet/pull/12#pullrequestreview-1111632228,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHU5SOGGFRBZ4CEBV5G6BBTV67AMTANCNFSM6AAAAAAQPRKTNA
.
You are receiving this because you were mentioned.Message ID:
@.***>

All suggestions are considered and changes are made.

@AmenaNajeeb I do not see the changes though... Have you pushed?

Updated File.

Yes but it is in your forked Repo, you need to push it to UPSTREAM again to get reflected in the PR @AmenaNajeeb

Pushed the Updated File on your Original Repo.
Please check, Sir.
I referred this link:  https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/configuring-a-remote-for-a-fork

@AmenaNajeeb well, I still don't see your changes in the upstream repo. You can check it here: https://github.com/atapas/markdown-cheatsheet/pull/12/files
Can you please paste all the commands you are trying to push your changes to upstream?

Yes Sir.
The changes that I had done were on my repo in GitHub.
I first opened GitBash and cloned by repo to my local computer.
Then changed the directory path to this cloned repo.
Then..
$git remote add atapas git://github/atapas/markdown-cheatsheet
Then
$git remote -v

Pushed the Updated File on your Original Repo.
Please check.
Referred this link:
https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/configuring-a-remote-for-a-fork
On Tue, Sep 20, 2022, 16:24 Tapas Adhikary @.***> wrote:

Updated File.
[image: Screenshot (2135)]
https://user-images.githubusercontent.com/32102712/191238971-299b1132-926c-4159-ad3b-df40ac1e9fbd.png [image:
Screenshot (2136)]
https://user-images.githubusercontent.com/32102712/191238981-64e15251-eb33-4106-a973-d816a0c04b03.png
Yes but it is in your forked Repo, you need to push it to UPSTREAM again
to get reflected in the PR @AmenaNajeeb https://github.com/AmenaNajeeb
—
Reply to this email directly, view it on GitHub
https://github.com/atapas/markdown-cheatsheet/pull/12#issuecomment-1252180845,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHU5SOBSLFJR7VS5XNOIB4DV7GJU7ANCNFSM6AAAAAAQPRKTNA
.
You are receiving this because you were mentioned.Message ID:
@.***>


App list is stuttery

This might be due to this: https://github.com/soupslurpr/AppVerifier/blob/c6ca471627902c602a3ca76edcf6cb2d454acde1/app/src/main/kotlin/dev/soupslurpr/appverifier/ui/AppListScreen.kt#L66
Please try to remove AppVerifier from the packages list before that and not check for every item.

Nope, I tried it and that did not fix it.

It seems this is just because of the way the lazy column works it calculates the state of the list items as it loads to save memory.


add support for openstack trust to cloud provider config

This allows you to create an account with no permissions for use by the openstack cloud provider through the use of a trust relationship.  This implements the feature request made in issue #3124.

ci check this

/lgtm


[Moved] HermannSchinagl.ln version <IP_ADDRESS>

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?

[x] Does your manifest conform to the 1.2 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.
For context: Please see https://github.com/microsoft/winget-pkgs/pull/89774#issuecomment-1328308428
Microsoft Reviewers: Open in CodeFlow

@schinagl Please review and confirm the metadata.

Reviewed and confirmed.


kubecolor completion has color

Expected behavior
prompt completion should not be colorized:
 ~ % kc annotate
Completing completions
annotate       -- Update the annotations on a resource
api-resources  -- Print the supported API resources on the server
api-versions   -- Print the supported API versions on the server, in the form of "group/version"
apply          -- Apply a configuration to a resource by file name or stdin

Current behavior
when completing a command, the completion includes raw color strings:
 ~ % kc $'\033'\[33mannotate

Package manager
Other (please specify in "Additional context" section)
What operating system are you running?
No response
Kubectl and kubecolor version
~ % /usr/bin/kubecolor version --client
Client Version: v1.29.8
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3

Package: kubecolor
Version: 0.0.20-2ubuntu<IP_ADDRESS>
Built-Using: golang-1.22 (= 1.22.2-2ubuntu0.3), golang-github-google-go-cmp (= 0.6.0-1), golang-github-makenowjust-heredoc (= 1.0.0-1), golang-github-mattn-go-colorable (= 0.1.13-1), golang-github-mattn-go-isatty (= 0.0.20-1), golang-golang-x-sys (= 0.17.0-1)

### Additional context

installed with `apt install kubecolor`

resolved by installing modern version, do not use Ubuntu package manager to install kubecolor
created this issue only to describe solution, please close as duplicate of #170

resolved by installing modern version, do not use Ubuntu package manager to install kubecolor
created this issue only to describe solution, please close as duplicate of #170

resolved by installing modern version, do not use Ubuntu package manager to install kubecolor
created this issue only to describe solution, please close as duplicate of #170

If you (or anyone) knows how to get Ubuntu to update their package then I'm all ears.
I've tried following their docs on it before but I always give up before finishing it as it's weirdly tedious, and I don't have a contact person working on Debian or Ubuntu packaging


Windows builds failing due to libclang v16

Noticing that libclang 16 was published today sometime between (old build .. new build). I'm not 100% sure yet, but I think this is a bindgen issue that may be fixed on main. Unfortunately, v0.9 version of rb-sys cannot upgrade bindgen due to breaking MSRV changes. So we'll have to find another solution.
Awhile ago, I made a libclang-rb which packages native v14 binaries of libclang, so theoretically we should be able to hook that up. Something like:
$ gem install libclang
$ echo "LIBCLANG_PATH=$(ruby -rlibclang -e 'puts Libclang.libdir')" > $GITHUB_ENV

well, downgrading clang seems to fix one issue at least. however, now bindgen can't find strings.h when it used to before. it's unclear why on earth it can't be found now, despite using the same version of libclang that we were before (v15).
https://github.com/oxidize-rb/actions/actions/runs/4614267540/jobs/8157059868

any help on this would be much appreciated 🙏🏻

allegedly, /mingw64/include/strings.h exists... but even when i try to include it, it doesn't take.

I've been following along and I really thought the commit with -I/mingw64/include/strings.h was gonna work, 😕.
I installed an arm Windows on my Mac but did not manage to get things to build, the Microsoft C++ tooling for Windows wasn't available for arm. Might try a couple more things tomorrow.
The long feedback loop make it very painful to debug 😭.

I tried every possible way I could think of to include the directory... stumped.
clang_args.push("-I/mingw64/include".to_string());
clang_args.push("-IC:\\mingw64\\include".to_string());

clang_args.push("-I/msys64/include".to_string());
clang_args.push("-IC:\\msys64\\include".to_string());

And for record's sake, here's the build where I confirmed the file exists with: find / -name strings.h

Newer Windows Rubies are ucrt64, older Rubies are mingw64.  So, new Rubies should really be using ucrt64/include/strings.h

Ok, this CI run proves to me that strings.h does exist, and we are indeed including the path. Something very unexpected is happening.

I've been following along and I really thought the commit with -I/mingw64/include/strings.h was gonna work, 😕.
I installed an arm Windows on my Mac but did not manage to get things to build, the Microsoft C++ tooling for Windows wasn't available for arm. Might try a couple more things tomorrow.
The long feedback loop make it very painful to debug 😭.

Yes, I failed to get windows running on my mac as well, but even if I did I'm not sure how to create an environment similar to GHA. So here we are. Luckily, we have @MSP-Greg who has been super helpful with this stuff.

On Ruby 3.1, I get a different error when using /ucrt64/include:
BINDGEN_EXTRA_CLANG_ARGS="-I/ucrt64/include" bundle exec rake

[...]

thread 'main' panicked at 'generate bindings: ClangDiagnostic("C:/msys64/ucrt64/include\\stdlib.h:388:47: error: expected ';' after top level declarator\nC:/msys64/ucrt64/include\\stdlib.h:389:48: error: expected ';' after top level declarator\nC:/msys64/ucrt64/include\\stdlib.h:391:53: error: expected ';' after top level declarator\nC:/msys64/ucrt64/include\\stdlib.h:396:26: error: expected ';' after top level declarator\nC:/msys64/ucrt64/include\\stdlib.h:686:69: error: expected
[...]

Not sure if that's helpful.

Sorry.  A long day.  The full folder is C:/msys64/mingw64/include.  For Ruby 3.1 and later, it should be C:/msys64/ucrt64/include.
Also, msys64/include does not exist.

Sorry. A long day. The full folder is C:/msys64/mingw64/include. For Ruby 3.1 and later, it should be C:/msys64/ucrt64/include.
Also, msys64/include does not exist.

Trying this in https://github.com/oxidize-rb/rb-sys/actions/runs/4614987830

Ok, new error. Now we're cookin' with gas. mmintrin.h stuff.

I think I'm going to try to get some sleep here. But we need to figure this out tomorrow. I'd really like to find the root cause, because currently, I'm just firing off commits and hoping they work 😞

I think I'm going to try to get some sleep here

I was about to say the same.

But we need to figure this out tomorrow.

I'll be glad to help anyway I can.  I'm Central...

@MSP-Greg since you are more in tune with the windows ecosystem, maybe you could investigate if any runner actions changes got deployed that might affect this?
It seems strange to me that we now need to include -IC:/msys2/{mingw64,ucrt64} for clang to find the system paths when things "Just Worked" before. And I'm not sure where to start looking...

Also, I saw somewhere that there is some type of clang64 msys environment... I wonder if that's what we really want here?

I stumbled across https://github.com/rust-lang/rust-bindgen/issues/1760#issuecomment-612709054, so I added a (fairly ugly) commit to configure the sysroot and explicit clang target for bindgen. Let's see what happens.

I noticed this line is not working as expected....
echo "BINDGEN_EXTRA_CLANG_ARGS=$((gcm clang).source -replace "bin\clang.exe","include")" >> $env:GITHUB_ENV

But in the environment I see: BINDGEN_EXTRA_CLANG_ARGS: C:\Program Files\LLVM\bin\clang.exe...

Sorry, AFK
Try
echo "BINDGEN_EXTRA_CLANG_ARGS=$($(where.exe clang).replace('bin\clang.exe','include'))" >> $env:GITHUB_ENV

@MSP-Greg how did the builds go for https://github.com/oxidize-rb/actions/issues/20#issuecomment-1497709981

So after including the system paths (c:/msys2/{mingw64,ucrt64), we've made some progress. Now, it's having trouble finding mm_malloc.h. Anyone know what that is?

So they exist on the runner as well. I'm wondering why they aren't found by default with clang-15? Do I need to add clang-15 to my path?
/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/mm_malloc.h
/mingw64/opt/llvm-15/lib/clang/15.0.7/include/mm_malloc.h
/mingw64/opt/llvm-15/lib/clang/15.0.7/include/ppc_wrappers/mm_malloc.h

Ok so it looks like clang-15 installs to /mingw64/opt/llvm-15/, where as clang installs to /mingw64/.

Not sure.  That might be because clang (16) is the default package, and clang-15 is optional.

LFG https://github.com/oxidize-rb/rb-sys/actions/runs/4632322440/jobs/8196289444

That's nice to see.

Noticed that all the ucrt builds (and mswin) fail.  Maybe an issue with stable-x86_64-pc-windows-gnu being mingw?
Any thoughts on whether to try clang (16)?

@MSP-Greg Here's the diff I think should do it https://github.com/oxidize-rb/actions/pull/22/files#diff-458e5469c2f2c350461246fca9a5596e0d82b7de7aa0895555fff27b17ed952a

kind of annoying that clang-15 is 2gb to install, and pretty slow. but I can live with that for now.


STM32F1 load fail

Hi!
I've found this utility for flashing the STM32 mcu and I think it's very cool.
However, I've been trying to flash the STM32F1 and while at the beginning seems to load correctly, when it reaches add 0x08080000 the flash loader fails.
Does the utility support F1? Do I have to change anything in order to work correctly?
Thanks!

Feel free to open a new issue when the problem still remains with v1.2.0 or master. Thanks all for your contributions.

-v fixed the problem for me as well... very strange....

I did have this problem yesterday with the current git master version (hash 3f7d0f9df3b1b551ac317b9d3a185c48f19c0c97 )
But today (after a reboot) I can't reproduce the problem at all. It works with or without -v. I tried it 5 times and didn't have any problems.

Probably when adding -v printf output takes CPU time and "sleeps" te original code. This seems a timing issue, I have seen an issue with a broken usb cables resulted in super weird behaviour.


Update awssdk:auth, awssdk:core, ... to 2.17.157

Updates

software.amazon.awssdk:auth
software.amazon.awssdk:core
software.amazon.awssdk:regions

from 2.17.141 to 2.17.157.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "software.amazon.awssdk" } ]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #62.


Can you add some explanation about usage

Can you explain how can we use this extension.
How to create snippets and where to put them etc

Installed, got excited to use but .... where are they? How to use?

Installed, got excited to use but .... where are they? How to use?

Same


Nick ohman

no styling, got busy with helping move my sisters family in last min but plan on doing it over the weekend for a portfilio piece.


Invalid argument: During Variant Host->Device Copy: non-DMA-copy attempted of tensor type: string

Please make sure that this is a bug. As per our
GitHub Policy,
we only address code/doc bugs, performance issues, feature requests and
build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below):2.4.0rc3
Python version: 3.6.9
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version: cuda11.0
GPU model and memory:

You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with:

TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"

import os
import re
import shutil
import string
import tensorflow as tf

from tensorflow.keras import layers
from tensorflow.keras import losses
from tensorflow.keras import preprocessing
from tensorflow.keras.layers.experimental.preprocessing import TextVectorization

print(tf.__version__)

url = "https://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz"

dataset = tf.keras.utils.get_file("aclImdb_v1.tar.gz", url,
                                    untar=True, cache_dir='.',
                                    cache_subdir='')

dataset_dir = os.path.join(os.path.dirname(dataset), 'aclImdb')

os.listdir(dataset_dir)

train_dir = os.path.join(dataset_dir, 'train')
os.listdir(train_dir)

sample_file = os.path.join(train_dir, 'pos/1181_9.txt')
with open(sample_file) as f:
  print(f.read())

remove_dir = os.path.join(train_dir, 'unsup')
shutil.rmtree(remove_dir)

batch_size = 32
seed = 42

raw_train_ds = tf.keras.preprocessing.text_dataset_from_directory(
    'aclImdb/train',
    batch_size=batch_size,
    validation_split=0.2,
    subset='training',
    seed=seed)

for text_batch, label_batch in raw_train_ds.take(1):
  for i in range(3):
    print("Review", text_batch.numpy()[i])
    print("Label", label_batch.numpy()[i])

raw_val_ds = tf.keras.preprocessing.text_dataset_from_directory(
    'aclImdb/train',
    batch_size=batch_size,
    validation_split=0.2,
    subset='validation',
    seed=seed)

raw_test_ds = tf.keras.preprocessing.text_dataset_from_directory(
    'aclImdb/test',
    batch_size=batch_size)

def custom_standardization(input_data):
  lowercase = tf.strings.lower(input_data)
  stripped_html = tf.strings.regex_replace(lowercase, '<br />', ' ')
  return tf.strings.regex_replace(stripped_html,
                                  '[%s]' % re.escape(string.punctuation),
                                  '')

max_features = 10000
sequence_length = 250

vectorize_layer = TextVectorization(
    standardize=custom_standardization,
    max_tokens=max_features,
    output_mode='int',
    output_sequence_length=sequence_length)

# Make a text-only dataset (without labels), then call adapt
train_text = raw_train_ds.map(lambda x, y: x)
vectorize_layer.adapt(train_text)

def vectorize_text(text, label):
  text = tf.expand_dims(text, -1)
  return text, label

train_ds = raw_train_ds.map(vectorize_text)
val_ds = raw_val_ds.map(vectorize_text)
test_ds = raw_test_ds.map(vectorize_text)

AUTOTUNE = tf.data.experimental.AUTOTUNE

train_ds = train_ds.cache().prefetch(buffer_size=AUTOTUNE)
val_ds = val_ds.cache().prefetch(buffer_size=AUTOTUNE)
test_ds = test_ds.cache().prefetch(buffer_size=AUTOTUNE)

embedding_dim = 16

strategy = tf.distribute.MirroredStrategy()
with strategy.scope():
  model = tf.keras.Sequential([
    vectorize_layer,
    layers.Embedding(max_features + 1, embedding_dim),
    layers.Dropout(0.2),
    layers.GlobalAveragePooling1D(),
    layers.Dropout(0.2),
    layers.Dense(1)])
  model.compile(loss=losses.BinaryCrossentropy(from_logits=True),
                optimizer=tf.keras.optimizers.Adam(1e-3),
                metrics=tf.metrics.BinaryAccuracy(threshold=0.0))

epochs = 10
history = model.fit(
    train_ds,
    validation_data=val_ds,
    epochs=epochs)

Describe the current behavior
Traceback (most recent call last):
  File "official/nlp/bert/fasttext.py", line 71, in <module>
    tfa.callbacks.AverageModelCheckpoint(update_weights=False, filepath=os.path.join(MODEL_DIR, 'ckpt_moving_average'))])
  File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/training.py", line 1100, in fit
    tmp_logs = self.train_function(iterator)
  File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/eager/def_function.py", line 828, in __call__
    result = self._call(*args, **kwds)
  File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/eager/def_function.py", line 956, in _call
    filtered_flat_args)
  File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/eager/function.py", line 2943, in __call__
    filtered_flat_args, captured_inputs=graph_function.captured_inputs)  # pylint: disable=protected-access
  File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/eager/function.py", line 1919, in _call_flat
    ctx, args, cancellation_manager=cancellation_manager))
  File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/eager/function.py", line 560, in call
    ctx=ctx)
  File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/eager/execute.py", line 60, in quick_execute
    inputs, attrs, num_outputs)
tensorflow.python.framework.errors_impl.InvalidArgumentError: 3 root error(s) found.
  (0) Invalid argument:  2 root error(s) found.
  (0) Invalid argument: During Variant Host->Device Copy: non-DMA-copy attempted of tensor type: string
  (1) Invalid argument: During Variant Host->Device Copy: non-DMA-copy attempted of tensor type: string
0 successful operations.
0 derived errors ignored.
         [[{{node RemoteCall}}]]
         [[cond/else/_1/cond/StatefulPartitionedCall/IteratorGetNextAsOptional_1]]
         [[ConstantFoldingCtrl/cond/else/_1/cond/StatefulPartitionedCall/cond_2/switch_pred/_432_0/_293]]
  (1) Invalid argument:  2 root error(s) found.
  (0) Invalid argument: During Variant Host->Device Copy: non-DMA-copy attempted of tensor type: string
  (1) Invalid argument: During Variant Host->Device Copy: non-DMA-copy attempted of tensor type: string
0 successful operations.
0 derived errors ignored.
         [[{{node RemoteCall}}]]
         [[cond/else/_1/cond/StatefulPartitionedCall/IteratorGetNextAsOptional_1]]
         [[cond/else/_1/cond/StatefulPartitionedCall/cond/then/_410/cond/OptionalGetValue/_196]]
  (2) Invalid argument:  2 root error(s) found.
  (0) Invalid argument: During Variant Host->Device Copy: non-DMA-copy attempted of tensor type: string
  (1) Invalid argument: During Variant Host->Device Copy: non-DMA-copy attempted of tensor type: string
0 successful operations.
0 derived errors ignored.
         [[{{node RemoteCall}}]]
         [[cond/else/_1/cond/StatefulPartitionedCall/IteratorGetNextAsOptional_1]]
0 successful operations.
0 derived errors ignored. [Op:__inference_fn_with_cond_4681]

Function call stack:
fn_with_cond -> fn_with_cond -> fn_with_cond

Describe the expected behavior
Standalone code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate
the problem. If possible, please share a link to Colab/Jupyter/any notebook.
Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached.

Hi @fsx950223, I ran this code in 2.3 and in nightly and did not face any errors.

I write the code under bert folder.

Unfortunately, I can't reproduce the bug on public dataset. I met the bug in my dataset pipeline, but I can't open-source it.


Update image "vs2017-win2016" used for signing

Our pipelines currently use image vs2017-win2016 for signing:
https://github.com/Azure/azure-sdk-for-java/search?q=vs2017-win2016
This image will be deprecated on 11/15/21 and removed on 3/15/22, so we should try migrating to windows-2019 (and also moving from pool Azure Pipelines to azsdk-pool-mms-win-2019-general).
There might be issues on windows-2019 as suggested in this discussion, but we should try it again and see what happens:
https://github.com/Azure/azure-sdk-for-java/pull/18872#discussion_r566519881

We are getting:
##[warning]The windows-2016 environment will be deprecated on November 15, 2021, and removed on March 15, 2022. Migrate to windows-latest instead. For more details see https://github.com/actions/virtual-environments/issues/4312

in our release builds so this is likely going to start breaking things soon.


Zkbnb develop v0.8.0 contract solving update

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 5 committers have signed the CLA.:white_check_mark: HSG88:x: ZhAnGeek:x: yycen:x: ruslangm:x: muratekiciZhAnGeek seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Create Development environment defaults to Contoso

Lab: 00
Exercise: 02
Task: 01
Step: 02
Your Dev environment should now show in the list of Environments. This typically is named MOD Administrator’s Environment. For the rest of this course when it says Dev environment it will be this environment.
Description of issue
The name of my Environment is Contoso (default) and I do not seem to be able to create another
Repro steps:

@davidyack  Same issue here. I am following instructions as specified.
This is clearly an issue. Easy to repro with Skillable ALH.
Can you please investigate?


health data

I need to know if you can provide me with medical data about 50,000 patient with specific attributes; attribute like diabetes, stroke, hypertension.....

You should be able to generate 50,000 yourself by cloning or
downloading the synthea source code and running ./run_synthea -p
50000.
--Sam
On Mon, Oct 14, 2019 at 4:23 PM Abd Melhem<EMAIL_ADDRESS>wrote:

I need to know if you can provide me with medical data about 50,000 patient with specific attributes; attribute like diabetes, stroke, hypertension.....
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

You can also download pregenerated data sets here: https://synthea.mitre.org/downloads


Add unit-tests for stringToPDFString

The other day I was looking as the utilily function stringToPDFString, and I noticed that it didn't have any unit-tests. This patch fixes that.

/botio unittest

Thanks!


Description of series blocks with show_metadata=true spans the full width (hard to read)

There should be a max-width.

This also applies to the layout where title and description is shown. And while someone is at it, the padding/margin should be fixed, it looks weird as it is now:


[Fix-14895][API] Keep printing null if task log file not exist

Purpose of the pull request

close https://github.com/apache/dolphinscheduler/issues/14895

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:

(or)
If your pull request contain incompatible change, you should also add it to docs/docs/en/guide/upgrede/incompatible.md

Codecov Report

Merging #14912 (773f963) into dev (73e846d) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

:exclamation: Current head 773f963 differs from pull request most recent head fb8d823. Consider uploading reports for the commit fb8d823 to get more accurate results

@@             Coverage Diff              @@
##                dev   #14912      +/-   ##
============================================
- Coverage     38.85%   38.85%   -0.01%
+ Complexity     4589     4587       -2
============================================
  Files          1234     1234
  Lines         43377    43344      -33
  Branches       4792     4776      -16
============================================
- Hits          16854    16840      -14
+ Misses        24660    24639      -21
- Partials       1863     1865       +2

Files Changed
Coverage Δ

...nscheduler/api/service/impl/LoggerServiceImpl.java
47.28% <0.00%> (-1.16%)
:arrow_down:

... and 26 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


userbuttons not executing scripts

I'm having some trouble getting the userbuttons file to execute scripts properly. The buttons appear OK and I can execute the script manually, but clicking the buttons does not appear to work. Here's what I've got:
Raspi: RPi 2 Model B
OS: DietPi v6.25.3
rpicam files all located in /var/www/rpicam/
userbuttons:

#User buttons definitions
#maximum of six buttons
#button name,macro,button styles,other attributes
Button One,button1.sh,btn btn-danger btn-lg,style="width:20%" autofocus
Echo,echobutton.sh,btn btn-success btn-lg,style="width:20%"
#Warning Button,button2.sh,btn btn-warning btn-lg,style="width:50%"
#Success Button,button3.sh,btn btn-success btn-lg,style="width:50%"

echobutton.sh is just a test script that pipes 'hello world' to a new file in the rpicam directory:

#!/bin/bash
echo 'hello world' >> /var/www/rpicam/zZbuttonstest.log

userbuttons and echobutton.sh are both owned by www-data. I kept thinking it was a permissions issue but chmod 777 didn't solve anything either. When I click the button is it looking for a script in the wrong folder? Am I running the scripts as the wrong user?

Whoops, somehow I didn't notice that echobuttons.sh should go in the 'macros' folder, not the root directory. Sorry, all works well now.


TAJO-1352: Improve the join order algorithm to consider missed cases of associative join operators

Main changes are found at the GreedyHeuristicJoinOrderAlgorithm class. The findBestOrder() function finds the best relation pair among remaining join candidates based on join commutativity and associativity.

I'll share a simple performance test result soon.

Here is the simple evaluation result.
Query
select
  count(*)
from
  lineitem left outer join orders
    on l_orderkey = o_orderkey
  left outer join partsupp
    on ps_suppkey = o_custkey
  left outer join customer
    on ps_suppkey = c_custkey
  left outer join part
    on p_partkey = c_nationkey

Data

TPC-H of scale factor 100

Cluster

One master and 3 workers
Each worker equips 4 cores, 8 GB memory, and 2 HDDs.

Performance comparison

Elapsed time
Before patch: 25 mins, 23 sec
After patch: 19 mins, 59 sec
Performance improvement ratio: about 20%

Query plan
The query execution time is reduced due to the improved query plan as follows.
Before patch
-----------------------------
Query Block Graph
-----------------------------
|-#ROOT
-----------------------------
Optimization Log:
[LogicalPlan]
	> ProjectionNode is eliminated.
[#ROOT]
	> Non-optimized join order: ((((tpch100.lineitem ⟕ tpch100.orders) ⟕ tpch100.partsupp) ⟕ tpch100.customer) ⟕ tpch100.part) (cost: 1.0447965953264456E46)
	> Optimized join order    : ((((tpch100.lineitem ⟕ tpch100.orders) ⟕ tpch100.partsupp) ⟕ tpch100.customer) ⟕ tpch100.part) (cost: 1.0447965859707236E46)
-----------------------------

GROUP_BY(10)()
  => exprs: (count())
  => target list: ?count (INT8)
  => out schema:{(1) ?count (INT8)}
  => in schema:{(0) }
   JOIN(15)(LEFT_OUTER)
     => Join Cond: tpch100.part.p_partkey (INT8) = tpch100.customer.c_nationkey (INT8)
     => target list:
     => out schema: {(0) }
     => in schema: {(2) tpch100.customer.c_nationkey (INT8), tpch100.part.p_partkey (INT8)}
      SCAN(7) on tpch100.part
        => target list: tpch100.part.p_partkey (INT8)
        => out schema: {(1) tpch100.part.p_partkey (INT8)}
        => in schema: {(9) tpch100.part.p_partkey (INT8), tpch100.part.p_name (TEXT), tpch100.part.p_mfgr (TEXT), tpch100.part.p_brand (TEXT), tpch100.part.p_type (TEXT), tpch100.part.p_size (INT4), tpch100.part.p_container (TEXT), tpch100.part.p_retailprice (FLOAT8), tpch100.part.p_comment (TEXT)}
      JOIN(14)(LEFT_OUTER)
        => Join Cond: tpch100.partsupp.ps_suppkey (INT8) = tpch100.customer.c_custkey (INT8)
        => target list: tpch100.customer.c_nationkey (INT8)
        => out schema: {(1) tpch100.customer.c_nationkey (INT8)}
        => in schema: {(3) tpch100.partsupp.ps_suppkey (INT8), tpch100.customer.c_nationkey (INT8), tpch100.customer.c_custkey (INT8)}
         SCAN(5) on tpch100.customer
           => target list: tpch100.customer.c_nationkey (INT8), tpch100.customer.c_custkey (INT8)
           => out schema: {(2) tpch100.customer.c_nationkey (INT8), tpch100.customer.c_custkey (INT8)}
           => in schema: {(8) tpch100.customer.c_custkey (INT8), tpch100.customer.c_name (TEXT), tpch100.customer.c_address (TEXT), tpch100.customer.c_nationkey (INT8), tpch100.customer.c_phone (TEXT), tpch100.customer.c_acctbal (FLOAT8), tpch100.customer.c_mktsegment (TEXT), tpch100.customer.c_comment (TEXT)}
         JOIN(13)(LEFT_OUTER)
           => Join Cond: tpch100.partsupp.ps_suppkey (INT8) = tpch100.orders.o_custkey (INT8)
           => target list: tpch100.partsupp.ps_suppkey (INT8)
           => out schema: {(1) tpch100.partsupp.ps_suppkey (INT8)}
           => in schema: {(2) tpch100.orders.o_custkey (INT8), tpch100.partsupp.ps_suppkey (INT8)}
            SCAN(3) on tpch100.partsupp
              => target list: tpch100.partsupp.ps_suppkey (INT8)
              => out schema: {(1) tpch100.partsupp.ps_suppkey (INT8)}
              => in schema: {(5) tpch100.partsupp.ps_partkey (INT8), tpch100.partsupp.ps_suppkey (INT8), tpch100.partsupp.ps_availqty (INT4), tpch100.partsupp.ps_supplycost (FLOAT8), tpch100.partsupp.ps_comment (TEXT)}
            JOIN(12)(LEFT_OUTER)
              => Join Cond: tpch100.lineitem.l_orderkey (INT8) = tpch100.orders.o_orderkey (INT8)
              => target list: tpch100.orders.o_custkey (INT8)
              => out schema: {(1) tpch100.orders.o_custkey (INT8)}
              => in schema: {(3) tpch100.lineitem.l_orderkey (INT8), tpch100.orders.o_custkey (INT8), tpch100.orders.o_orderkey (INT8)}
               SCAN(1) on tpch100.orders
                 => target list: tpch100.orders.o_custkey (INT8), tpch100.orders.o_orderkey (INT8)
                 => out schema: {(2) tpch100.orders.o_custkey (INT8), tpch100.orders.o_orderkey (INT8)}
                 => in schema: {(9) tpch100.orders.o_orderkey (INT8), tpch100.orders.o_custkey (INT8), tpch100.orders.o_orderstatus (TEXT), tpch100.orders.o_totalprice (FLOAT8), tpch100.orders.o_orderdate (DATE), tpch100.orders.o_orderpriority (TEXT), tpch100.orders.o_clerk (TEXT), tpch100.orders.o_shippriority (INT4), tpch100.orders.o_comment (TEXT)}
               SCAN(0) on tpch100.lineitem
                 => target list: tpch100.lineitem.l_orderkey (INT8)
                 => out schema: {(1) tpch100.lineitem.l_orderkey (INT8)}
                 => in schema: {(16) tpch100.lineitem.l_orderkey (INT8), tpch100.lineitem.l_partkey (INT8), tpch100.lineitem.l_suppkey (INT8), tpch100.lineitem.l_linenumber (INT8), tpch100.lineitem.l_quantity (FLOAT8), tpch100.lineitem.l_extendedprice (FLOAT8), tpch100.lineitem.l_discount (FLOAT8), tpch100.lineitem.l_tax (FLOAT8), tpch100.lineitem.l_returnflag (TEXT), tpch100.lineitem.l_linestatus (TEXT), tpch100.lineitem.l_shipdate (DATE), tpch100.lineitem.l_commitdate (DATE), tpch100.lineitem.l_receiptdate (DATE), tpch100.lineitem.l_shipinstruct (TEXT), tpch100.lineitem.l_shipmode (TEXT), tpch100.lineitem.l_comment (TEXT)}

After patch
-----------------------------
Query Block Graph
-----------------------------
|-#ROOT
-----------------------------
Optimization Log:
[LogicalPlan]
	> ProjectionNode is eliminated.
[#ROOT]
	> Non-optimized join order: ((((tpch100.lineitem ⟕ tpch100.orders) ⟕ tpch100.partsupp) ⟕ tpch100.customer) ⟕ tpch100.part) (cost: 7.933924122078524E46)
	> Optimized join order    : ((tpch100.lineitem ⟕ (tpch100.orders ⟕ tpch100.partsupp)) ⟕ (tpch100.customer ⟕ tpch100.part)) (cost: 4.016549062824562E47)
-----------------------------

GROUP_BY(10)()
  => exprs: (count())
  => target list: ?count (INT8)
  => out schema:{(1) ?count (INT8)}
  => in schema:{(0) }
   JOIN(15)(LEFT_OUTER)
     => Join Cond: tpch100.partsupp.ps_suppkey (INT8) = tpch100.customer.c_custkey (INT8)
     => target list:
     => out schema: {(0) }
     => in schema: {(2) tpch100.partsupp.ps_suppkey (INT8), tpch100.customer.c_custkey (INT8)}
      JOIN(14)(LEFT_OUTER)
        => Join Cond: tpch100.part.p_partkey (INT8) = tpch100.customer.c_nationkey (INT8)
        => target list: tpch100.customer.c_custkey (INT8)
        => out schema: {(1) tpch100.customer.c_custkey (INT8)}
        => in schema: {(3) tpch100.customer.c_custkey (INT8), tpch100.customer.c_nationkey (INT8), tpch100.part.p_partkey (INT8)}
         SCAN(7) on tpch100.part
           => target list: tpch100.part.p_partkey (INT8)
           => out schema: {(1) tpch100.part.p_partkey (INT8)}
           => in schema: {(9) tpch100.part.p_partkey (INT8), tpch100.part.p_name (TEXT), tpch100.part.p_mfgr (TEXT), tpch100.part.p_brand (TEXT), tpch100.part.p_type (TEXT), tpch100.part.p_size (INT4), tpch100.part.p_container (TEXT), tpch100.part.p_retailprice (FLOAT8), tpch100.part.p_comment (TEXT)}
         SCAN(5) on tpch100.customer
           => target list: tpch100.customer.c_custkey (INT8), tpch100.customer.c_nationkey (INT8)
           => out schema: {(2) tpch100.customer.c_custkey (INT8), tpch100.customer.c_nationkey (INT8)}
           => in schema: {(8) tpch100.customer.c_custkey (INT8), tpch100.customer.c_name (TEXT), tpch100.customer.c_address (TEXT), tpch100.customer.c_nationkey (INT8), tpch100.customer.c_phone (TEXT), tpch100.customer.c_acctbal (FLOAT8), tpch100.customer.c_mktsegment (TEXT), tpch100.customer.c_comment (TEXT)}
      JOIN(13)(LEFT_OUTER)
        => Join Cond: tpch100.lineitem.l_orderkey (INT8) = tpch100.orders.o_orderkey (INT8)
        => target list: tpch100.partsupp.ps_suppkey (INT8)
        => out schema: {(1) tpch100.partsupp.ps_suppkey (INT8)}
        => in schema: {(3) tpch100.lineitem.l_orderkey (INT8), tpch100.partsupp.ps_suppkey (INT8), tpch100.orders.o_orderkey (INT8)}
         JOIN(12)(LEFT_OUTER)
           => Join Cond: tpch100.partsupp.ps_suppkey (INT8) = tpch100.orders.o_custkey (INT8)
           => target list: tpch100.partsupp.ps_suppkey (INT8), tpch100.orders.o_orderkey (INT8)
           => out schema: {(2) tpch100.partsupp.ps_suppkey (INT8), tpch100.orders.o_orderkey (INT8)}
           => in schema: {(3) tpch100.orders.o_orderkey (INT8), tpch100.orders.o_custkey (INT8), tpch100.partsupp.ps_suppkey (INT8)}
            SCAN(3) on tpch100.partsupp
              => target list: tpch100.partsupp.ps_suppkey (INT8)
              => out schema: {(1) tpch100.partsupp.ps_suppkey (INT8)}
              => in schema: {(5) tpch100.partsupp.ps_partkey (INT8), tpch100.partsupp.ps_suppkey (INT8), tpch100.partsupp.ps_availqty (INT4), tpch100.partsupp.ps_supplycost (FLOAT8), tpch100.partsupp.ps_comment (TEXT)}
            SCAN(1) on tpch100.orders
              => target list: tpch100.orders.o_orderkey (INT8), tpch100.orders.o_custkey (INT8)
              => out schema: {(2) tpch100.orders.o_orderkey (INT8), tpch100.orders.o_custkey (INT8)}
              => in schema: {(9) tpch100.orders.o_orderkey (INT8), tpch100.orders.o_custkey (INT8), tpch100.orders.o_orderstatus (TEXT), tpch100.orders.o_totalprice (FLOAT8), tpch100.orders.o_orderdate (DATE), tpch100.orders.o_orderpriority (TEXT), tpch100.orders.o_clerk (TEXT), tpch100.orders.o_shippriority (INT4), tpch100.orders.o_comment (TEXT)}
         SCAN(0) on tpch100.lineitem
           => target list: tpch100.lineitem.l_orderkey (INT8)
           => out schema: {(1) tpch100.lineitem.l_orderkey (INT8)}
           => in schema: {(16) tpch100.lineitem.l_orderkey (INT8), tpch100.lineitem.l_partkey (INT8), tpch100.lineitem.l_suppkey (INT8), tpch100.lineitem.l_linenumber (INT8), tpch100.lineitem.l_quantity (FLOAT8), tpch100.lineitem.l_extendedprice (FLOAT8), tpch100.lineitem.l_discount (FLOAT8), tpch100.lineitem.l_tax (FLOAT8), tpch100.lineitem.l_returnflag (TEXT), tpch100.lineitem.l_linestatus (TEXT), tpch100.lineitem.l_shipdate (DATE), tpch100.lineitem.l_commitdate (DATE), tpch100.lineitem.l_receiptdate (DATE), tpch100.lineitem.l_shipinstruct (TEXT), tpch100.lineitem.l_shipmode (TEXT), tpch100.lineitem.l_comment (TEXT)}

I expect that the performance will be more improved by simultaneously executing multiple execution blocks after our scheduler is implemented.

Not all changes are shown in the diff in github due to lots of changes. So, I leave some comments here.

cachekey in JoinGraphContext should be changed to a local member variable. Its cache effect is trivial because the object lifecycle is very short.
the member variable LOG in GreedyHeuristicJoinOrderAlgorithm is added but is not used.
PlannerUtil::isSymmetricJoin includes the comment about commutative. But, the method name has been changed from isCommutativeJoin to isSymmetricJoin. As far as I know, commutative join is used in common for the exact meaning we know. But, symmetric join is not usual. Please see two links: symmetric join (https://goo.gl/d4uOO3) vs. commutative join (https://goo.gl/oFCgtM).

I'm still reviewing the patch. I'll give more comments soon.

I'm leaving additional comments.

Nested if-condition branches in JoinedRelationsVertex::buildPlan for left-deep tree can be simplified. If you intend better code readability, it would be Ok.
isSymmetricJoinOnly in JoinGraph only seems to be affected by only the last addJoin() call. But, its name and isSymmetricJoinOnly() name seems that this join graph consists of only symmetric joins.
JoinGraph::addJoin cuts the cyclic if it find out the loop. It would be Ok in the current implementation. As a database researcher and aside from this patch, I have just a question. Arbitrary cyclic cuts like this can lose the better join opportunities. Is this singular position true? I'm just wondering. If so, should we find a join order from just a join graph even including loops?

Additional comments:

The javadoc in JoinOrderAlgorithm::FoundJoinOrder includes wrong parameter name. That is, joinGraph should be joinGraphContext.
Methods (especially public methods) in JoinOrderingUtil seem to need Javadoc because it may be hard to guess their exact purpose from their signature.

@hyunsik thanks for your review. I've reflected all your comments and added more comments to help your understanding.
Regarding on the question about JoinGraph::addJoin, it seems that there are some misunderstandings. The JoinGraph::addJoin method just checks whether there is a cycle rather than physically cutting it. This is to maintain the root vertexes which the graph traverse is started from. In this patch, the root vertexes are identified if they don't have any incoming edges. However, in the presence of a cycle, every vertex has at least one incoming edge, so cannot be the root vertex. The if clause related to the cycle at JoinGraph.java:43 is to prevent such case.

Thank you for your work.
I leave additional trivial comments.

LogicalPlanRewriteRule in LogicalOptimizer is not used.
handleRemainingFiltersIfNecessary needs a brief comment to explain its purpose.
JoinOrderingUtil includes several unused imports.
The multi line comments In 63 line in GreedyHeuristicAlgorithm.java should use // instead of /*.
GreedyHeuristicAlgorithm::prepareGraphUpdate needs a brief comment to its purpose.

The patch seems to be ready to be committed. After your answer, I'll finish the review.

Thank you for the detailed review.
I've reflect all your comments.

Test failures are fixed.

+1 The latest patch looks good to me.


[material-ui] Fix missing babel/runtime dependency in material-ui-nextjs

closes #41071

[x] I have followed (at least) the PR section of the contributing guide.

Rebased on HEAD, will see if it fixes the Netlify deploy.


Bad error when accessory cli is entered wrong

When trying to stop/remove an accessory I incorrectly edited the command and it gave a poor error message.
What I meant to type was mrsk accessory stop newrelic -d production and what I actually ran was mrsk accessory details stop -d production:
Which is a nonsense command, but it gives:
$ mrsk accessory details stop -d production
  ERROR (Module::DelegationError): Mrsk::Commands::Accessory#hosts delegated to accessory_config.hosts, but accessory_config is nil: #<Mrsk::Commands::Accessory:0x0000ffff7bd31708 @config=#<Mrsk::Configuration:0x0000ffff7bd3c838 @raw_config=#<ActiveSupport::InheritableOptions {}>, @destination="production", @declared_version=nil, @roles=[#<Mrsk::Configuration::Role:0x0000ffff7bd3c158 @name="web", @config=#<Mrsk::Configuration:0x0000ffff7bd3c838 ...>, @hosts=["<IP_ADDRESS>", "<IP_ADDRESS>"]>], @accessories=[#<Mrsk::Configuration::Accessory:0x0000ffff7bd314d8 @name="newrelic", @config=#<Mrsk::Configuration:0x0000ffff7bd3c838 ...>, @specifics={"image"=>"newrelic/infrastructure:latest", "roles"=>["web"], "env"=>{"clear"=>{"NRIA_LICENSE_KEY"=>"NOTTHEREALKEY"}}, "options"=>{"network"=>"host", "cap-add"=>"SYS_PTRACE", "privileged"=>true, "pid"=>"host"}, "volumes"=>["/:/host:ro", "/var/run/docker.sock:/var/run/docker.sock"]}>]>, @accessory_config=nil>

This is a confusing message because the problem isn't that there isn't a hosts config option, it's that I've used stop where the accessory_name (in my case newrelic) should be.
It would be helpful if it told me that it can't find my accessory stop.

Please do explore a PR for this 👍


Edit Scribe - Language Keyboards by @scribe-org

Adding the app store link and a link to the organization's page as the homepage.
This is really great :)

[x] Project URL
[x] Update contents.json instead of README
[x] One project per pull request
[x] Screenshot included
[x] Avoid iOS or open-source in description as it is assumed
[x] Use this commit title format if applicable: Add app-name by @github-username
[x] Use approved format for your entry

您好，您发出的邮件我已收到，我会尽快给你回复，请耐心等候。


Avoid adding non-zero offset to zero-pointer

Retarget of this PR: https://github.com/pfnet/chainer/pull/2726
Fixes https://github.com/pfnet/chainer/issues/2722

Could you add test?

Added test corresponding to the first case (cupy.ones((2,0))[1,:]).
The second case cupy.ones((0,0)[[],[]] is already covered in existing test: https://github.com/cupy/cupy/blob/4c3b56de03286fcb9c8958ccd3e6d8fca12b5b8e/tests/cupy_tests/core_tests/test_ndarray_adv_indexing.py#L77

LGTM!


cartificate can not be uploaded to iot center

after verify the certificate with IOT hub, the same certificate can not be uploaded to IOT center because it is grey in the selection icon. tried a new certificate, still can not be uploaded.

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

ID: 79eb45a2-0b0c-6449-5acc-504fb16583e6
Version Independent ID: fa9be175-df4d-a165-144f-8abe62ecb7ea
Content: Set up Azure IoT Central to work with Azure Sphere
Content Source: AzureSphere/articles/app-development/setup-iot-central.md
Product: azure-sphere
GitHub Login: @pennyo
Microsoft Alias: azurespheredocs

Hi @joeyjoey1984 I apologize for the delay. Just wanted to touch base and check if you were able to resolve this issue?

@joeyjoey1984 Thank you for reaching out. I am so sorry we did not get back to you on time. We will proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


Linting, Unit testing & Code Review Added

Added Linting, Unit testing & Code Review on feature1 branch.
Review and kindly merge accordingly.

Merging to develop should be fine.


Improved build speed - incremental builds are now ~10s. Enabled Gradl…

Improved build speeds - 1 line change incremental builds are now ~10s. Enabled Gradle daemon and set alwaysUpdateBuildId to false for Crashlytics.

Failing test is flaky. Merging.

Awesome build speed improvement!


Zorin OS on Crouton?

I was wondering if I could possibly use Zorin OS using Crouton.

maybe give a try debootstap is the method if you get the working then some update will work


Class not registered error

When creating the app object

winrt::MyApp::App app;

I get the error:

Exception thrown at 0x00007FF9CA2C9129 (KernelBase.dll) in SampleCppApp.exe: WinRT originate error - 0x80040154 : 'Class not registered'.

This is about the sample CppWin32App_With_Island  right. What build and SDK are you using? Xaml Islands is supported with the Windows 10 1903 build, and the SDK 18362.

My machine was Win10 1809. Thank you for clarifications.


Strict mode as default

Lots of users get caught out by typos and indentation errors in their configs. Currently, Benthos prints warning lines for each field in a config that isn't recognised. However, these warnings are easy to miss. There is an optional flag --strict which can be enabled in order to prevent Benthos from running with unrecognised fields present, but this should really be the default.
Setting --strict as default is arguably a breaking change as it will prevent currently functioning configs from running. However, it also kind of isn't because the behaviour of configs aren't going to change. If we wait for Benthos v4 then the debate is moot.

I've added this in for now, with an opt out --chilled flag.


Ability to automatically push to remote mirror repository

I like the feature of mirroring the repositories by pulling the remote repositories.
Is it possible to make gitea to push local repositories to remote mirror repositories?
It's nice if gitea is able to automatically push local repositories to remote mirror repositories such as github, gitlab or other git services.

Good idea, I have been looking for such a option already.
IMHO this would increase adoption of Gitea. People would be more inclined to using Gitea if they knew that they could easily mirror stuff to GitLab/Github without having to fiddle with hooks.

I'm also pretty interested in this, and wouldn't mind having a go at implementing it if someone could point me in the right direction!

I'd love to see such a feature as well.

Right now I am doing this on a project of mine. Since I am the admin of the instance, I have access to the git hooks of the repos, and I can add this as the post-receive hook:
#!/bin/bash
git push --mirror --quiet<EMAIL_ADDRESS>&> /dev/null
echo 'osuripple/hanayo updated'

Of course, this is just a hack, and a proper mechanism would be gladly appreciated.

this would be a really nice feature to have in Gitea, please!

Yeah this would be an amazingly useful feature!

Is this really just a limitation of other systems disguised to look like a feature in Gitea? If Webhooks can do it why run the risk and adding complexity trying to make Gitea manage features absent from other products?

Is this really just a limitation of other systems disguised to look like a feature in Gitea? If Webhooks can do it why run the risk and adding complexity trying to make Gitea manage features absent from other products?
Now, if we could have an SVN push mirror that would be extremely useful use case for the ad hoc nature of the umptysquillion poorly managed WordPress SVN repos in existence today who would gladly being porting over go Gitea to simplify their workflow and reduce premature aging.

@thehowl Thanks. I made a slight modification so I don't have to wait for the push to the mirror to complete (which can be slow).
#!/bin/bash
git push --mirror --quiet<EMAIL_ADDRESS>&> /dev/null &
echo 'osuripple/hanayo update initiated.'

Of course now you no longer have a confirmation that the push succeeded but a main motivation for my use case of gitea was to avoid the long lags of updates to slow remote hosts.

The git hook trick won't work for mirror repos. And a lot of services don't respond to inbound webhooks, for example gitea itself doesn't, a simple ssh server acting as a git remote, etc. Having this built in would be useful.

You have to store the token or private key on gitea if we implement that.

This is a very interesting feature!

+1

This would be a very useful feature. It would be great to have a system where users could develop a project on our hosted Gitea instance and then 'publish' it to github by setting it up as a mirrored repo.

You have to store the token or private key on gitea if we implement that.

No, ssh auth forwarding could be used.

After I used the hack from above, I've written an post receive script to update the remote repo with all changes from gitea. All changes made in gitea will be automatically pushed to the "mirror repo" but not the other way around. Updating the gitea repo is still manually.
It is unfortunatelly still necessary to update the config file of the repo and the git authentication on the maschine running gitea:
[remote "origin"]
	url = <remote_url_here>
	fetch = +refs/heads/*:refs/remotes/origin/*

#!/usr/bin/env bash

z40=0000000000000000000000000000000000000000

while read local_ref local_sha remote_ref remote_sha
do
    if [[ $remote_ref =~ refs\/heads\/(.+) ]]; then
        branch_name=${BASH_REMATCH[1]}

        if [ "$local_sha" = $z40 ]
        then
            # Handle delete
            echo HANDLE DELETE BRANCH ON <remote_url_here>
            echo ----------
            git push --delete origin $branch_name
            echo ----------
        else
            echo HANDLE PUSH BRANCH ON ON <remote_url_here>
            echo ----------
            git push --set-upstream origin $branch_name
            echo ----------
        fi
    else
        echo "unable to parse remote branch $branch_name"
    fi
done

Any progress on adding this to the gitea source? It seems like all we have are workarounds, Fairly clever ones at that, but some actual progress would be a good sign.

I am interested in this feature primarily because our current infrastructure uses mirrored servers globally for developers to use to improve speeds, there is a node next to (virtually) the build agent/cluster to speed up build checkouts etc. too. This includes failover too, if the primary node goes down, then we can turn one of the mirrors into primary. (I must note, we are using SVN, so the use of master/slave nodes may be redundant, but I want to pitch in with why I was looking and my use case to help, if possible, improve the end result.) I am loving the feel of this project and shall be looking to pull our SVN system over to GIT if corporate decision makers allow... just needs the right feature set!
Another use case we have discussed previously is to commit to one server for code reviews, and then once the code review is done, push it to the master. Whenever you checkout, you get it from the master. Similar to the diagram here (only the last two stages with "push to gerrit" and "submit". Mirroring functionality would allow such a feature to be offered.

[referenced from: https://www.bsi-software.com/fileadmin/daten/processed/5/7/csm_Gerrit_workflow_33e6332529.png]

It's not ideal but drone ci could be used to push changes further to other git server

@lafriks I have TeamCity already in place and working well for the business, so dont really want to change CI product, just keen to have a commit gating process like the one shown.

@WattsC-90 I mean it could be done in TeamCity too, it's an interesting suggestion and I'm considering it -- we have an internal CI server that we build everything on, then sometimes our customers have their own repos/servers/etc that right now we manually push to, would be nice to stop doing that..
I could just make part of TeamCity's build process to push out to the external repo on successful build (a good-ish idea), and even if TeamCity was on the other "side" of the push, I could just make a build that does nothing but sync on change.
Not the best workaround, but even with Gitlab we're worried that repo mirroring and security won't be the best, so it is kind of a "if nothing else works, make CI do it".

@StrangeWill I found this in my downtime, might be an interesting reference to how it could be done... https://github.com/takezoe/gitmesh just wonder if by having a topology similar to that shown in the github repo linked, the logic could be put in the "controller" level (see link), to push to "golden" repo (or potentially any other task..)

I wonder if it would also be possible to mirror the issue tracker with a bot.

@thehowl Thanks. I made a slight modification so I don't have to wait for the push to the mirror to complete (which can be slow).
#!/bin/bash
git push --mirror --quiet<EMAIL_ADDRESS>&> /dev/null &
echo 'osuripple/hanayo update initiated.'

Of course now you no longer have a confirmation that the push succeeded but a main motivation for my use case of gitea was to avoid the long lags of updates to slow remote hosts.

I took your adaptation a bit further:
https://github.com/keks24/git-hooks/blob/master/home/gitea/.local/share/gitea/hooks/post-receive.d/post-receive
Be aware, that git push --force will fail on the mirrors, if branches are protected.

If we want gitea to do that, it depends on #12065

For anyone wanting to update a github mirror with a deploy key rather than access token:
#!/bin/bash

# Setup ssh config
grep -qxF 'Include config.d/*' ~/.ssh/config || echo 'Include config.d/*' >> ~/.ssh/config
mkdir --parents ~/.ssh/config.d/
cat << EOF > ~/.ssh/config.d/github-mirror-setup
Host github.com
CheckHostIP no
EOF
# Need to add github to known hosts, because cannot press yes on first connect.
grep -qF 'github.com' ~/.ssh/known_hosts || echo 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==' >> ~/.ssh/known_hosts

# Setup ssh-agent
eval `ssh-agent`
cat << EOF | ssh-add -
-----BEGIN OPENSSH PRIVATE KEY-----
<your private key here>
-----END OPENSSH PRIVATE KEY-----
EOF

ssh -T<EMAIL_ADDRESS>git push --mirror git@github.com:<username>/<reponame>.git
echo 'github mirror updated.'

This is a very nice feature!

Bounty added:
If you'd like to promote this, please add
[![Bountysource](https://api.bountysource.com/badge/issue?issue_id=54827645)](https://www.bountysource.com/issues/54827645-ability-to-automatically-push-to-remote-mirror-repository)

To the Issue summary

I've started some days ago working on this.

@KN4CK3R dont forget to claim the bounty :)


fix: add apk add

Describe the changes in this pull request using active verbs such as Add, Remove, Replace ...
Add apk packages before upgrading. This works around the issue where packages require other packages in the dependency tree to be updated.
Closes #<issue_ID>

Codecov Report
Patch coverage has no change and project coverage change: -0.19 :warning:

Comparison is base (60433a8) 34.45% compared to head (9635348) 34.27%.

:exclamation: Current head 9635348 differs from pull request most recent head 5656d4e. Consider uploading reports for the commit 5656d4e to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #60      +/-   ##
==========================================
- Coverage   34.45%   34.27%   -0.19%
==========================================
  Files          12       12
  Lines        1126     1132       +6
==========================================
  Hits          388      388
- Misses        717      723       +6
  Partials       21       21

Impacted Files
Coverage Δ

pkg/pkgmgr/apk.go
45.23% <0.00%> (-2.27%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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


Remove example with parallel tasks with a fan-in task

Changes
The example with two parallel tasks using PVC based workspaces and a third fan-in task,
may be problematic in some environments. If the cluster is regional but the PVCs are
zonal the third task may never be able to mount both PVCs (it should have used a regional
PVC storageClass instead).
Since this depends so much of the environment e.g. type of cluster and capabilities of the
storage, I propose we remove this example. The intent was to document access modes and that
is possible without the example.
Related to #2540
and #2521

Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:

[ ] Includes tests (if functionality changed/added)
[ ] Includes docs (if user facing)
[x] Commit messages follow commit message best practices

See the contribution guide for more details.
Double check this list of stuff that's easy to miss:

If you are adding a new binary/image to the cmd dir, please update
the release Task to build and release this image.

Reviewer Notes
If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS, and they must first be added in a backwards compatible way.
/kind documentation

@jlpettersson there is a no-ci folder that shouldn't run on the CI. This allow us to add those example still, just not executed on the CI (yet :stuck_out_tongue: )
/ok-to-test

/lgtm

Thanks for figuring this out @jlpettersson !!! In the long run, I think it would be good to re-introduce this example - we might be able to make this work by using a storage class that allows the PVC to be used in multiple zones


Splitting Spikes in PSTH

Would it be possible to implement a manual splitter in the PSTH window? Here's a sample of what I'd like to be able to do:

good idea Zach.  There might be a waveform difference. I will build a GUI tool for that.
-James

On Feb 8, 2019, at 12:24 PM, zsperry<EMAIL_ADDRESS>wrote:
Would it be possible to implement a manual splitter in the PSTH window? Here's a sample of what I'd like to be able to do:
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

A thought: the tool might be best if it allowed separation of a time interval, as opposed to the polygon separation that is in the splitting GUI. Could even be a textbox tool instead of a graphical one. But whatever is simplest for you.

Okay. One idea is that a user can right-click on the PSTH window to draw
either horizontal (time separation) or vertical line (trial separation) and
split a cluster.
-James
On Fri, Feb 8, 2019 at 1:28 PM zsperry<EMAIL_ADDRESS>wrote:

A thought: the tool might be best if it allowed separation of a time
interval, as opposed to the polygon separation that is in the splitting
GUI. Could even be a textbox tool instead of a graphical one. But whatever
is simplest for you.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/jamesjun/ironclust/issues/12#issuecomment-461899270,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIhwuMwQQzHVy3cqJd75V1H2aSUqV4oPks5vLcHQgaJpZM4awsh8
.

I like it. In my current dataset I have utility for both


Calling ExecuteCommandLists multiple times with same ID3D12CommandAllocator

Hi,
I'm having an issue when calling ID3D12CommandQueue::ExecuteCommandLists multiple times in a frame using the same ID3D12CommandAllocator.
From what I understand from how ID3D12CommandAllocator works, it is possible to use an ID3D12CommandAllocator multiple times as long as Reset is not called while the memory is still used.
My issue is that the debugger will break when releasing the Device.
From my tests, here is a specific setup that reproduces it :

The debug layer and GPU validation are both enabled
A minimum of 2 frames buffering
An empty command list followed by a command list with multiple draw ( workload seems to have an influence )
Executing for some minimum amount of frames ( between 10 and 20 frames minimum )

I have joined a diff  from the D3D12HelloFrameBuffering sample that reproduces the issue.
Test context :

Happens on both NVidia and AMD GPUs.
Happens in both debug and release
Visual Studio 2017 Version 15.9.16
Windows SDK 10.0.17763.0

Callstack :
 	KernelBase.dll!wil::details::DebugBreak(void)	Unknown
 	DXGIDebug.dll!CDXGIDebug::RemoveProducer(void *)	Unknown
 	d3d12SDKLayers.dll!NDebug::CDevice::FinalRelease(void)	Unknown
 	d3d12SDKLayers.dll!CLayeredObject<class NDebug::CDevice>::Release(void)	Unknown
 	D3D12.dll!TComObject<NOutermost::CDevice>::`scalar deleting destructor'()	Unknown
 	D3D12.dll!TComObject<NOutermost::CDevice>::Release()	Unknown
 	dxgi.dll!CMTUseCountedObject<class CDXGISwapChainApplicationClass>::Release(void)	Unknown	D3D12HelloFrameBuffering.exe!Microsoft::WRL::ComPtr<IDXGISwapChain3>::InternalRelease() Line 176	C++
 	D3D12HelloFrameBuffering.exe!Microsoft::WRL::ComPtr<IDXGISwapChain3>::~ComPtr<IDXGISwapChain3>() Line 232	C++
 	D3D12HelloFrameBuffering.exe!D3D12HelloFrameBuffering::~D3D12HelloFrameBuffering()	C++
 	D3D12HelloFrameBuffering.exe!WinMain(HINSTANCE__ * hInstance, HINSTANCE__ * __formal, char * __formal, int nCmdShow) Line 19	C++
 	D3D12HelloFrameBuffering.exe!invoke_main() Line 107	C++
 	D3D12HelloFrameBuffering.exe!__scrt_common_main_seh() Line 288	C++
 	D3D12HelloFrameBuffering.exe!__scrt_common_main() Line 331	C++
 	D3D12HelloFrameBuffering.exe!WinMainCRTStartup() Line 17	C++
 	kernel32.dll!00007ffd3bf37974()	Unknown
 	ntdll.dll!00007ffd3ea6a271()	Unknown

Can you confirm whether this happens with just the debug layer enabled without GPU-based validation? This absolutely looks like a debug layer bug -- specifically, a leak that isn't the application's fault. My expectation is that this will only apply with GPU-based validation.

Scratch that, the patch was easy to apply and trigger a repro, so thanks for that! This is a bug in GPU-based validation.


Force production mode for concat and compress

See fix suggested in https://github.com/rstacruz/sinatra-assetpack/pull/180#issuecomment-70308355


[Request] Toraware no Paruma -Deluxe Edition- (Nintendo Switch)

Isnt there already a script for this one? or the Deluxe Edition is different ?


Deleting data causes shard to be dropped

Bug report
System info: influxdb:1.3.7, running in docker persisted via host mount
Steps to reproduce:
This is a followup issue on https://github.com/influxdata/influxdb/issues/8937 , occurred today, approx. 1 month after upgrading to 1.3.7.

Write data to default database
Delete data in a few different series rapidly

Expected behavior:
Only the deleted times and series are deleted.
Actual behavior:

The entire shard is dropped (or at least almost all data within the limits of the shard is no longer queryable)
570 default  autogen          570         2017-09-25T00:00:00Z 2017-12-18T00:00:00Z 2022-12-12T00:00:00Z
a few series still have data for this period (although I cannot find any other shard that corresponds to this time frame)
After this, writes to that shard succeed and are queryable but then disappear after a while
Writes continue to succeed (for the other 50% of time series)
The shard file itself was not empty (166MB)
In the client code there were no "drop shard" commands used, delete from is used with specific time series (but never for exactly the shard period)
Inside the shard directory the following files are present:

163M	000000601-000000005.tsm
3.1M	000000603-000000001.tsm

Additional info:
The relevant part of the output of show shard groups:
195 default  autogen          195         2017-01-09T00:00:00Z 2017-01-16T00:00:00Z 2022-01-10T00:00:00Z
293 default  autogen          293         2017-01-16T00:00:00Z 2017-01-23T00:00:00Z 2022-01-17T00:00:00Z
378 default  autogen          378         2017-01-16T00:00:00Z 2017-04-10T00:00:00Z 2022-04-04T00:00:00Z
432 default  autogen          432         2017-04-10T00:00:00Z 2017-07-03T00:00:00Z 2022-06-27T00:00:00Z
433 default  autogen          433         2017-07-03T00:00:00Z 2017-09-25T00:00:00Z 2022-09-19T00:00:00Z
570 default  autogen          570         2017-09-25T00:00:00Z 2017-12-18T00:00:00Z 2022-12-12T00:00:00Z
571 default  autogen          571         2017-12-18T00:00:00Z 2018-03-12T00:00:00Z 2023-03-06T00:00:00Z
654 default  autogen          654         2018-03-12T00:00:00Z 2018-06-04T00:00:00Z 2023-05-29T00:00:00Z
655 default  autogen          655         2018-06-04T00:00:00Z 2018-08-27T00:00:00Z 2023-08-21T00:00:00Z
652 default  autogen          652         2019-10-21T00:00:00Z 2020-01-13T00:00:00Z 2025-01-06T00:00:00Z

@daviskirk could you try upgrading to the latest release? It looks like https://github.com/influxdata/influxdb/pull/8981 might have fixed the issue. #8981 is included in the 1.4.2 release but as far as I know it wasn't backported to 1.3.7

@e-dard is the 1.4.2 release official yet? We are in the same boat, also see #8981, and the official site is stil on 1.3 and there has been no feedback from the team on #9133. As a matter of principal, we would only then upgrade our production systems

@e-dard The latest version 1.4.2 don't fix the problem of the drop shard when you delete multiple points in a raw.
I try the latest code in 1.5 and the problem still exist too, even worse as when I delete just one point, I lost nearly all the series from the measurement.

I can second @max3163 findings.  Is there a workaround for deleting data another "safe" way?  This is obviously pretty much a show stopper for running influx anywhere remotely important.

This should be fixed in master.

#9084 reworked how deletes are handled and fixed many long-standing issues with deletes.  Some of the changes in there are related to the issue seen here (data/index inconsistency).
#9185 fixed some issues related to lots of small deletes and compactions
#9173 fixed regression in master introduced in ca40c1a
#9179 fixed a regression introduced in #9084

One of the fixes from #9185 has been back ported to 1.3 (#9186) and 1.4 (#9187) that may be one cause of deletes removing too much data.  The other fixes are specific to issues that exist in master due to #9084.  #9084 can't be back ported so upgrading to the current nightly or 1.5 when released is the only option currently if this issue still exists in 1.3 and 1.4.

@jwilder @rbetts Can you please confirm if this fix has been merged in any version of 1.5.X?
Thanks

These should all have made it into 1.5.0


implement caching slices of polygons

loading a piece of an existing map when only a small portion of it is needed is quite wasteful and would be nice if it could be cached in the cache directory.

The question is: how would the code know that this piece of map data's cached value needs to be invalidated? Two parts make up the caching here: the initial data and the instructions. We can assume that the original level data never changes, but how to store the intructions and compare them to a later version to see if they changed?

createHashOfObject() can help here from src/services/cache.ts

Maybe the transformation functions could create a diff similarly to how sequelize makes migrations. Storing information, like "load polygons from level11 and move them by 100/0/0" seems something that is more compact than storing the polygons themselves.


iOS: Navigating back to a bottom tab route from a stack route broken

Environment
iOS / React-Native 0.76
Description
Almost the same issue as described here for Android: #906
If you enter a screen with pager view from a stack route and move back and forth. the following happens:

The screen with pager view is stuck in the first tab, nothing pressable anymore
The previos stack view is completely distorted and not usable anymore
It will stay like this even if you navigate somewhere else and come back

Reproducible Demo
Will follow if needed (issue already reported multiple times)

Please provide reproduction repo with 6.6.0 version of react-native-pager-view.


search score

is it clear what the value means with search score? It  is not clear to me that there is a defined meaning of the value. Is it always between 0 and 1?

This is the content from the FHIR page on the operation:
All patient records SHALL have a search score from 0 to 1, where 1 is the most certain match, along with an extension "match-grade" that indicates the MPI's position on the match quality.

I thought I looked there and didn't see anything like that... Thus, my error.


docs: Add hint how to install vscode

Only a small change, but one can not assume that people
use vscode already.
Definition of Done
The PR shall be merged only if all items mentioned in CONTRIBUTING.md have been followed. In case an item is not applicable as described, please provide a short explanation in the description.

[x] All steps in CONTRIBUTING.md have been handled

Note also the svgs are not displayed good if one uses a dark github setting and checks from the markdown files.

Note also the svgs are not displayed good if one uses a dark github setting and checks from the markdown files.

Thanks for the hint. I have created a #187 for that.


select2 4.0 - selection__choice longer than select2-container

In 4.0 when I'm using long names for options - li.selection__choice are longer than .select2-container. Looks bad.

Can you create a jsbin that reproduces this? I thought I tested it, but I may have missed it.

Here you are http://jsbin.com/pisejuleko/1/edit?html,output

Discussion of this issue is continued in #4585.


Should <|> just append?

We have
m <|> n = fromView (altView m n)

altView :: Monad m => SeqT m a -> SeqT m a -> m (View m a)
altView (toView -> m) n = m >>= \x -> case x of
  Empty -> toView n
  h :< t -> return (h :< cat t n)
    where cat (SeqT l) (SeqT r) = SeqT (l S.>< r)
{-# INLINE altView #-}

It's not at all obvious to me that this is any better than the simplest possible definition:
SeqT m <|> SeqT n = SeqT (m S.>< n)

except maybe when it fuses with fromView or something. In particular, while the current definition may look like it more eagerly drops Empty returns, that's not the case even for Identity since fromView is lazy, and it's not the case for general base monads because there's no way for <|> to actually force their computation.

Ah, it's to make it lazy enough! <|> is supposed to be lazy in its second argument, but S.>< is strict in its second argument. To fix this, we'd need a custom queue. The one in type-aligned says
instance TASequence q => TASequence (ToCatQueue q) where
 tempty       = C0
 tsingleton a = CN a tempty
 C0        >< ys  = ys
 xs        >< C0  = xs
 (CN x q)  >< ys  = CN x (q |> ys)

To make this simplification, we'd need to drop the xs >< C0 = xs line.

Another really wild idea.  Now basically everything is trivial except toView, which gets to do all the real work. This seems like a simpler way to make things lazy enough.

Here's another option:
SeqT m <|> n = SeqT $ m S.>< lazify n

lazify :: Monad m => SeqT m a -> SeqT m a
lazify s = fromView $ toView s

The obvious downside is that toView on the result is not fused.

I've just simplified <|> for now. >>= is kind of a mess for rewrite rules anyway; we'll probably need to think those through from scratch to deal with loop breakers and everything.


Documentation

Your installation section in the readme tells me to do: git clone git@github.com:zaquestion/lab
Which asks me for a fingerprint and then tells me: Permission denied
git clone https://github.com/zaquestion/lab does work indeed.

Another Documentation issue:
The Readme tells me that lab will ask me for my credentials. That is true, although the second line does not come up. Nonetheless, how to input my password?
lab happens to give me a 401, no further information.

Is there any documentation at all? Nor lab help neither man lab helps me further.
I know this is all your project, which you do in your spare time, so take this all as a friendly feedback.
Thanks a lot :hugs:

You can try lab --help. Each of the subcommands has pretty good help text, which is accessible via --help: so lab ci --help, lab issue create --help, etc.
I'll leave your other questions for Zaq to tackle.

I have tried lab --help. It just throws me the same error message.

@ShalokShalom Could you post the error you are seeing? I've seen some recent changes in the gitlab api and its possible some ux has degraded. Regarding your initial issue with git the fact that git clone worked over https vs ssh really indicated an issue with your ssh configuration. Make sure your public key is attached to a github accout for clones. Likewise you'll want to have a working ssh configuration with lab as it makes heavy use of that protocol.
If you're having trouble accessing documentation through the tool, we have the documentation hosted here: https://zaquestion.github.io/lab/

That is true, although the second line does not come up. Nonetheless, how to input my password?
Just to be sure we're on the same page, when inputing your api key the credentials will be masked so you will not seem them entered on the terminal for security purposes.

P.S. Thanks @claytonrcarter nice to see you around, I've finally getting out from underwater with the day job, should have a bit more time to tend this garden soon :D

There is no ssh configuration on my side. Your documentation says zero about this requirement.

Just to be sure we're on the same page, when inputing your api key the credentials will be masked so you will not seem them entered on the terminal for security purposes.

No. It does not come up at all. It simply skips the whole line.
Here is the error message:
2019/05/17 12:15:58 main.go:118: GET https://gitlab.com/api/v4/user: 401 {message: 401 Unauthorized}

Are you using the latest version of lab, somewhere in 0.14.x I believe there is a bug that checks to aggressively for the username from the api. I would check if a ~/.config/lab.hcl got created with bad data. In the worst case, you should at least be able to hand write the config and get going.
Happy to help troubleshoot this with you and get you going. That said, lets temper some of the expectations here.
By default, I expect users of lab to have a basic understanding of git. Further you are expected to know how to operate git for your repos without lab. git@github.com:<user>/<repo> is syntax (scp style) for ssh, we don't document "ssh configuration to github is required to pull repo over ssh using these install steps" because it should be evident in the steps.
If you're struggling to clone git repos from GitHub, you might find challenges integrating a git workflow extension like lab. Encourage you to reflect on the oweness when you're throwing around statements like

Your documentation says zero about this requirement.
If we can't expect our users to know how to clone a git repo, documentation for a tool around git workflows suddenly becomes challenging, there would simply be too many cases where basic concepts need to be broken down causing docs to be overly expository.

Now all that said, I'm happy to support you and make lab more accessible through easier documentation. The lab community is committed to getting every user up and running, and iterating on the tool.

Well, I have pulled your master, so I should be on the newest version.
I honestly think that the lack of documentation should simply be fixed by "ssh token on Github" in the requirement section. Everyone has its own workflow and in all those hundreds of pull requests and issues I had raised up, I had zero occasions like that. So its obviously a rare edge case and I guess you dont know 100% of Git either. I have never bothered setting ssh up and this is the first instruction in about a hundred of repos which requires this.
So thanks for your help.


feature: support healtcheck in backends

feature request
Add support for option httpchk and option tcp-check with the ability to define custom healthcheck rules

hi @mike-code
thank you very much for your suggestions. we will have a look at it.
meanwhile, PRs are highly appreciated.
cheers, andy

added with v1.0.6


Added documentation

This will be helpful in helping others better understand this API.

I would recommend making it as a Table, it looks much better for documentation:
API

Data
URL

National time series, statewise stats and test counts
https://api.covid19india.org/data.json

State-district-wise
https://api.covid19india.org/state_district_wise.json

Travel history
https://api.covid19india.org/travel_history.json

Raw data
https://api.covid19india.org/raw_data.json

Thank you for the suggestion @ars75. I've added it in.

Is there a general direction you'd like me to take this in, in terms of tone, content and/or technical representation? @JunaidBabu @sudevschiz


fix variable name in README.md

This PR addresses Issue #29.

Thank you for the PR.
I apologize for the extremely slow response. We've changed our processes so this doesn't happen again.


Clarify asset caching output

https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2049386
The output is changed such that, without --debug enabled:

Customers can observe a promise that Asset Caching is enabled or disabled.
Customers can observe a promise that x-block-origin is enabled or disabled.
Customers do not observe output that could be interpreted as downloading an external URL. (Unless it is downloading an external URL)

Scenario: asset cache hit!
Before:
Computing installation plan...
A suitable version of cmake was not found (required v3.29.2) Downloading portable cmake 3.29.2...
Downloading cmake...
https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz->/Users/javiermatos/dev/vcpkg/downloads/cmake-3.29.2-macos-universal.tar.gz
Extracting cmake...

After:
Computing installation plan...
A suitable version of cmake was not found (required v3.29.2).
Asset cache hit for cmake-3.29.2-macos-universal.tar.gz; downloaded from: file:///Users/javiermatos/dev/vcpkg-tool/work/testing/asset-cache/26aab0163965f3d560dfd6b1f72c5e77192338237ebe286099fd62f243f1bbd4857b9193118386b801c00dc5cfbc5bc8af84814692fcfadcf56c7d2faab52533
Extracting cmake...

Scenario:  asset cache miss (configured), x-block-origin disabled
Before:
Computing installation plan...
A suitable version of cmake was not found (required v3.29.2) Downloading portable cmake 3.29.2...
Downloading cmake...
https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz->/Users/javiermatos/dev/vcpkg/downloads/cmake-3.29.2-macos-universal.tar.gz
Extracting cmake...

After:
Computing installation plan...
A suitable version of cmake was not found (required v3.29.2).
Asset cache miss; downloading from https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz
Successfully stored cmake-3.29.2-macos-universal.tar.gz to  file:///Users/javiermatos/dev/vcpkg-tool/work/testing/asset-cache/26aab0163965f3d560dfd6b1f72c5e77192338237ebe286099fd62f243f1bbd4857b9193118386b801c00dc5cfbc5bc8af84814692fcfadcf56c7d2faab52533.
Extracting cmake...

Scenario: asset cache miss (configured), x-block-origin enabled
Before:
Computing installation plan...
A suitable version of cmake was not found (required v3.29.2) Downloading portable cmake 3.29.2...
Downloading cmake...
https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz->/Users/javiermatos/dev/vcpkg/downloads/cmake-3.29.2-macos-universal.tar.gz
error: Failed to download from mirror set

After:
Computing installation plan...
A suitable version of cmake was not found (required v3.29.2).
error: Asset cache miss for cmake-3.29.2-macos-universal.tar.gz and downloads are blocked by x-block-origin.

Scenario: asset cache miss (not configured), x-block-origin enabled
Before:
Computing installation plan...
A suitable version of cmake was not found (required v3.29.2) Downloading portable cmake 3.29.2...
Downloading cmake...
https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz->/Users/javiermatos/dev/vcpkg/downloads/cmake-3.29.2-macos-universal.tar.gz
error: Failed to download from mirror set

After:
Computing installation plan...
A suitable version of cmake was not found (required v3.29.2).
error: Missing cmake-3.29.2-macos-universal.tar.gz and downloads are blocked by x-block-origin.

Scenario: asset cache miss (not configured), x-block-origin disabled
Before:
Computing installation plan...
A suitable version of cmake was not found (required v3.29.2) Downloading portable cmake 3.29.2...
Downloading cmake...
https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz->/Users/javiermatos/dev/vcpkg/downloads/cmake-3.29.2-macos-universal.tar.gz
Extracting cmake...

After:
Computing installation plan...
A suitable version of cmake was not found (required v3.29.2).
Downloading https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz
Extracting cmake...

** When --debug the following promise is printed:**
Asset caching not enabled, x-block-origin disabled
...
[DEBUG] External asset downloads are allowed (x-block-origin is disabled)...
[DEBUG] Asset cache is not configured.
...

Asset caching enabled, x-block-origin enabled
...
[DEBUG] External asset downloads are blocked (x-block-origin is enabled)...
[DEBUG] Asset cache is enabled.
...

Could we make the output look something like this?
Asset Caching Enabled (that means x-azurl)
Scenario: x-azurl Asset Cache Hit!
Downloading file:///Users/javiermatos/dev/asset-cache/26aab0163965f3d560dfd6b1f72c5e77192338237ebe286099fd62f243f1bbd4857b9193118386b801c00dc5cfbc5bc8af84814692fcfadcf56c7d2faab52533 (asset cache URI for https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz ) -> /Users/javiermatos/dev/vcpkg/downloads/cmake-3.29.2-macos-universal.tar.gz
Scenario: x-block-origin disabled, x-azurl Asset Cache Miss!
Downloading file:///Users/javiermatos/dev/asset-cache/26aab0163965f3d560dfd6b1f72c5e77192338237ebe286099fd62f243f1bbd4857b9193118386b801c00dc5cfbc5bc8af84814692fcfadcf56c7d2faab52533 (asset cache URI for https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz ) -> /Users/javiermatos/dev/vcpkg/downloads/cmake-3.29.2-macos-universal.tar.gz
Asset cache miss, downloading original
Scenario: x-block-origin enabled, x-azurl Asset Cache Miss!
Downloading file:///Users/javiermatos/dev/asset-cache/26aab0163965f3d560dfd6b1f72c5e77192338237ebe286099fd62f243f1bbd4857b9193118386b801c00dc5cfbc5bc8af84814692fcfadcf56c7d2faab52533 (asset cache URI for https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz ) -> /Users/javiermatos/dev/vcpkg/downloads/cmake-3.29.2-macos-universal.tar.gz
Asset cache miss and fetching the original is prohibited by x-block-origin
Scenario: x-block-origin enabled, x-azurl Asset Caching Disabled
Can't download https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz because no asset caches are configured and fetching the original is prohibited by x-block-origin
Scenario: x-block-origin disabled, no asset cache configured
Downloading https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz -> /Users/javiermatos/dev/vcpkg/downloads/cmake-3.29.2-macos-universal.tar.gz
Scenario: x-script Asset Cache Hit!
Using script to downloads https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz -> /Users/javiermatos/dev/vcpkg/downloads/cmake-3.29.2-macos-universal.tar.gz
Scenario: x-block-origin disabled, x-script Asset Cache Miss!
???????? Do we try to download https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz anyway??? I don't know what we do.
Scenario: x-block-origin enabled, x-script Asset Cache Miss!
Using script to downloads https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz -> /Users/javiermatos/dev/vcpkg/downloads/cmake-3.29.2-macos-universal.tar.gz
Asset cache miss and fetching the original is prohibited by x-block-origin

Could we make the output look something like this?
Asset Caching Enabled (that means x-azurl) Scenario: x-azurl Asset Cache Hit!
Downloading file:///Users/javiermatos/dev/asset-cache/26aab0163965f3d560dfd6b1f72c5e77192338237ebe286099fd62f243f1bbd4857b9193118386b801c00dc5cfbc5bc8af84814692fcfadcf56c7d2faab52533 (asset cache URI for https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz ) -> /Users/javiermatos/dev/vcpkg/downloads/cmake-3.29.2-macos-universal.tar.gz
Scenario: x-block-origin disabled, x-azurl Asset Cache Miss!
Downloading file:///Users/javiermatos/dev/asset-cache/26aab0163965f3d560dfd6b1f72c5e77192338237ebe286099fd62f243f1bbd4857b9193118386b801c00dc5cfbc5bc8af84814692fcfadcf56c7d2faab52533 (asset cache URI for https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz ) -> /Users/javiermatos/dev/vcpkg/downloads/cmake-3.29.2-macos-universal.tar.gz Asset cache miss, downloading original
Scenario: x-block-origin enabled, x-azurl Asset Cache Miss!
Downloading file:///Users/javiermatos/dev/asset-cache/26aab0163965f3d560dfd6b1f72c5e77192338237ebe286099fd62f243f1bbd4857b9193118386b801c00dc5cfbc5bc8af84814692fcfadcf56c7d2faab52533 (asset cache URI for https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz ) -> /Users/javiermatos/dev/vcpkg/downloads/cmake-3.29.2-macos-universal.tar.gz Asset cache miss and fetching the original is prohibited by x-block-origin
Scenario: x-block-origin enabled, x-azurl Asset Caching Disabled
Can't download https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz because no asset caches are configured and fetching the original is prohibited by x-block-origin
Scenario: x-block-origin disabled, no asset cache configured
Downloading https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz -> /Users/javiermatos/dev/vcpkg/downloads/cmake-3.29.2-macos-universal.tar.gz
Scenario: x-script Asset Cache Hit!
Using script to downloads https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz -> /Users/javiermatos/dev/vcpkg/downloads/cmake-3.29.2-macos-universal.tar.gz
Scenario: x-block-origin disabled, x-script Asset Cache Miss!
???????? Do we try to download https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz anyway??? I don't know what we do.
Scenario: x-block-origin enabled, x-script Asset Cache Miss!
Using script to downloads https://github.com/Kitware/CMake/releases/download/v3.29.2/cmake-3.29.2-macos-universal.tar.gz -> /Users/javiermatos/dev/vcpkg/downloads/cmake-3.29.2-macos-universal.tar.gz Asset cache miss and fetching the original is prohibited by x-block-origin

I've updated the output to include some of the information you've suggested here. It's not one for one but I think it gets the point across.

I don't agree with the design change here to hide more things behind --debug

No longer hidden behind --debug and urls are sanitized :)