Multi Timeline Nonces for out of order execution

This issue follows discussion with @frozeman and @YamenMerhi.
What this issue is about?
We want relayer services to be able to send relayed transactions, independently of the order of execution of nonces.
For instance, if executing 3 transactions that send 1 LYX to Alice, Bob and Carol, Carol should not have to wait for Alice and Bob transaction to complete to receive its token.
Each transactions should be executed on separate timelines

Relayer -> Alice tx -> Account   => timeline 1
Relayer -> Bob tx -> Account    => timeline 2
Relayer -> Carol tx -> Account  => timeline 3

Multi timeline nonces
Based on Permit Contract: https://github.com/Amxx/Permit
==========================================================================>
(timeline 0) nonce   0 --> 1 --> 2 --> 3
(timeline 1)         0
(timeline 2)         0
(timeline 3)         0
(timeline n)         0
(...)

Unlike in this example of use of multi timeline nonce, it is not necessary to use uint128 bit shifting to represent the timeline.
Nonces can just be represented in a nested mapping. The second key represents the timeline. where:

timeline 0 = sequential order
timeline 1 or more = out of order

First time we use a timelineN, gas cost = 20000 (write to slot for timelineN for the first time) + execution cost.
If a timelineN is reused, gas cost = 5000 (update slot for timelineN) + execution slot.

relay service calls getNonce(signer, timeline)) -> return nonce (for timeline)

executeRelay(...) function should be overriden like this:

function executeRelayCall(
        // other parameters...
        uint256 _nonce  // retrieved from 1.
        uint256 _timeline // 0 for sequential, 1 or more for out of order
        bytes memory _signature
    ) external payable returns (bool success_) {

        // checks signedFor is the KeyManager + create blob to recover address

        // recover the signer
        address from = keccak256(blob).toEthSignedMessageHash().recover(
            _signature
        );

        require(
            _nonceStore[from][_timeline] == _nonce,
            "KeyManager:executeRelayedCall: Incorrect nonce"
        );

        // increase the nonce
        _nonceStore[from][_timeline] = _nonceStore[from][_timeline].add(1);

        // check permissions + make call
    }

We could use the batchRequest from web3 to test this: https://web3js.readthedocs.io/en/v1.4.0/web3-eth.html?highlight=batch#batchrequest

@frozeman @YamenMerhi
Feature implemented in #17
https://github.com/lukso-network/lsp-universalprofile-smart-contracts/pull/17

Description of Multi-channel nonce is found here: https://docs.lukso.tech/standards/faq/channel-nonce


Silex 2.x Form Runtime Error with Symfony 3.x Components

I'm currently trying to get a form to work however I seem to be running into an issue as of late. The main issue here is when trying to use symfony/form and twig together I keep running into a renderer error when trying to use form_widget(form)
So the error i'm receiving whenever trying to use form_widget and I receive the error

Twig_Error_Runtime in Template.php line 381:
An exception has been thrown during the rendering of a template ("Unable to load the "Symfony\Bridge\Twig\Form\TwigRenderer" runtime.") in "form.twig" at line 11.

I'm also using the following Service Providers Form, Twig, Validator, Translation, Locale and CSRF
composer.json
"require": {
        "php": ">=5.5.9",
        "pimple/pimple": "~3.0",
        "symfony/event-dispatcher": "~2.8|^3.0",
        "symfony/http-foundation": "~2.8|^3.0",
        "symfony/http-kernel": "~2.8|^3.0",
        "symfony/routing": "~2.8|^3.0",
        "symfony/form": "^3.1",
        "symfony/validator": "^3.1",
        "symfony/config": "^3.1",
        "symfony/translation": "^3.1",
        "symfony/twig-bridge": "^3.1",
        "symfony/security": "^3.1",
        "symfony/security-csrf": "^3.1"
    },
    "require-dev": {
        "symfony/asset": "~2.8|^3.0",
        "symfony/expression-language": "~2.8|^3.0",
        "symfony/browser-kit": "~2.8|^3.0",
        "symfony/css-selector": "~2.8|^3.0",
        "symfony/debug": "~2.8|^3.0",
        "symfony/dom-crawler": "~2.8|^3.0",
        "symfony/finder": "~2.8|^3.0",
        "symfony/intl": "~2.8|^3.0",
        "symfony/monolog-bridge": "~2.8|^3.0",
        "symfony/doctrine-bridge": "~2.8|^3.0",
        "symfony/options-resolver": "~2.8|^3.0",
        "symfony/phpunit-bridge": "~2.8|^3.0",
        "symfony/process": "~2.8|^3.0",
        "symfony/serializer": "~2.8|^3.0",
        "symfony/var-dumper": "~2.8|^3.0",
        "twig/twig": "~1.8|~2.0",
        "doctrine/dbal": "~2.2",
        "swiftmailer/swiftmailer": "~5",
        "monolog/monolog": "^1.4.1"
    }

Form Code
$data = [
        'firstName' => 'First Name',
    ];
    $form = $app['form.factory']->createBuilder(FormType::class, $data)
        ->add('firstName', TextType::class, [
            'constraints' => [new Assert\NotBlank()]
        ])
        ->getForm();
    return $app['twig']->render('form.twig', [
        'form' => $form->createView()
    ]);

So looking more into this it seems like an issue with 3.1 and I had to roll back to ~2.8 for this to work properly.


tests: Adjust expected issue show output

I managed to mess up tests ... again /o\

LOL :D
Interesting is how 1 single line can make coverity check hit +40 hahaha.
Thanks Florian.


Poisson objective function log link

@guolinke It seems like the poisson objective function is missing a link function. Better results seen when using ConvertOutput is exp and score[i] is exponentiated. This can also be seen in xgboost
Let me know what you think

See https://github.com/Microsoft/LightGBM/pull/863


Where is "List View"?

What feature or improvement do you think would benefit Files?
I updated to the current version and saw that the "list view" is no longer there.  Is there a way to re-enable it? Thank you.
Requirements
Not sure is needed.
Files Version
Version: <IP_ADDRESS>
Windows Version
Windows 11 22H2
Comments
No response

List view has never been supported but it's on the roadmap.

@sumasage thank you for your patience, I'm excited to share that a List View layout will be included in the next release.

@sumasage thank you for your patience, I'm excited to share that a List View layout will be included in the next release.

Awesome!! thank you dev team for your hard works.


Run sample of experts is not work on local

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

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:no
TensorFlow installed from (source or binary):pip install tensorflow-gpu
TensorFlow version:2.0.0
Python version:Python 3.6.8
Installed using virtualenv? pip? conda?: pip
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version:V10.0.130
GPU model and memory:GTX1080TI

Describe the problem
I can obtain the TensorFlow version with
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)" . But when running sample of experts, is not work on local. ModuleNotFoundError: No module named 'tensorflow.keras'; 'tensorflow' is not a package
source file is following:
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals

import tensorflow as tf

from tensorflow.keras.layers import Dense
from tensorflow.keras.layers import Conv2D
from tensorflow.keras.layers import Flatten
from tensorflow.keras import Model

mnist = tf.keras.datasets.mnist

(x_train, y_train), (x_test, y_test) = mnist.load_data()
x_train, x_test = x_train / 255.0, x_test / 255.0

x_train = x_train[..., tf.newaxis]
x_test = x_test[..., tf.newaxis]

train_ds = tf.data.Dataset.from_tensor_slices(
  (x_train, y_train)).shuffle(10000).batch(32)
test_ds = tf.data.Dataset.from_tensor_slices(
  (x_test, y_test)).batch(32)

class MyModel(Model):
  def __init__(self):
    super(MyModel, self).__init__()
    self.conv1 = Conv2D(32, 3, activation='relu')
    self.flatten = Flatten()
    self.d1 = Dense(128, activation='relu')
    self.d2 = Dense(10, activation='softmax')

  def call(self, x):
    x = self.conv1(x)
    x = self.flatten(x)
    x = self.d1(x)
    return self.d2(x)

model = MyModel()

loss_object = tf.keras.losses.SparseCategoricalCrossentropy()
optimizer = tf.keras.optimizers.Adam()

train_loss = tf.keras.metrics.Mean(name='train_loss')
train_accuracy = tf.keras.metrics.SparseCategoricalCrossentropy()

test_loss = tf.keras.metrics.Mean(name='test_loss')
test_accuracy = tf.keras.metrics.SparseCategoricalCrossentropy(name='test_accuracy')

@tf.function
def train_step(images, labels):
  with tf.GradientTape() as tape:
    predications = model(images)
    loss = loss_object(labels, predications)
  gradients = tape.gradient(loss, model.trainable_variables)
  optimizer.apply_gradients(zip(gradients, model.trainable_variables))

  train_loss(loss)
  train_accuracy(labels, predications)

@tf.function
def test_step(images, labels):
  predictions = model(images)
  t_loss = loss_object(labels, predictions)

  test_loss(t_loss)
  test_accuracy(labels, predictions)

EPOCHS = 5

for epoch in range(EPOCHS):
    for images, labels in train_ds:
      train_step(images, labels)

    for test_images, test_labels in test_ds:
      test_step(test_images, test_labels)

    template = 'Epoch: {}, Loss: {}, Accuracy: {}, Test Loss: {}, Test Accuracy: {}'
    print (template.format(epoch+1,
                           train_loss.result(),
                           train_accuracy.result()*100,
                           test_loss.result(),
                           test_accuracy.result()*100))

Provide the exact sequence of commands / steps that you executed before running into the problem
python tensorflow.py (tensorflow.py is source code file)

Tried to reproduce it on google colab but I don't face any error. Heres the gist. Looks like the issue is that tensorflow is not installed well.
I cannot really find the rot cause of this issue but you can take a look at this issue and let me know if you can figure out. Thanks!

@yangzhuoran Were you able to solve the issue?

@yangzhuoran Were you able to solve the issue?

when I run it on jupyter notebook , I don't face any error. But when I run it in local file by command 'python sourcefile.py', I face this error. I don't understand what happened. I think reinstall tensorflow in local compute.

Please install all the dependencies in the fresh environment and it should work. Let me know if you are still facing the same issue?

@yangzhuoran Are you still facing the issue?

Yes, But I can find .pyc file in pycache folder. I can run .pyc using python command. I’m thinking the reason of this situation.

2019年10月16日 上午1:56，gowthamkpr<EMAIL_ADDRESS>写道：
@yangzhuoran https://github.com/yangzhuoran Are you still facing the issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/tensorflow/tensorflow/issues/32993?email_source=notifications&email_token=AM3KTQ6FKSEHBWK2P2ISJ6DQOX76DA5CNFSM4I4Y2PFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBJUOIQ#issuecomment-542328610, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM3KTQ7ZB5AZZCJKW6OTDFLQOX76DANCNFSM4I4Y2PFA.

@yangzhuoran Can I see your pip list

My pip list as follows:
Package               Version

absl-py               0.8.0
apturl                0.5.2
asn1crypto            0.24.0
astor                 0.8.0
bleach                2.1.2
Brlapi                0.6.6
certifi               2018.1.18
chardet               3.0.4
chrome-gnome-shell    0.0.0
command-not-found     0.3
cryptography          2.1.4
cupshelpers           1.0
cycler                0.10.0
decorator             4.1.2
defer                 1.0.6
distro-info           0.18ubuntu<IP_ADDRESS>
entrypoints           0.2.3.post1
gast                  0.2.2
google-pasta          0.1.7
grpcio                1.24.0
h5py                  2.10.0
html5lib              0.999999999
httplib2              0.9.2
idna                  2.6
ipykernel             4.8.2
ipython               5.5.0
ipython-genutils      0.2.0
ipywidgets            6.0.0
Jinja2                2.10
jsonschema            2.6.0
jupyter-client        5.2.2
jupyter-console       5.2.0
jupyter-core          4.4.0
Keras-Applications    1.0.8
Keras-Preprocessing   1.1.0
keyring               10.6.0
keyrings.alt          3.0
kiwisolver            1.1.0
language-selector     0.1
launchpadlib          1.10.6
lazr.restfulclient    0.13.5
lazr.uri              1.0.3
linecache2            1.0.0
louis                 3.5.0
macaroonbakery        1.1.3
Mako                  1.0.7
Markdown              3.1.1
MarkupSafe            1.0
matplotlib            3.1.1
mistune               0.8.3
nbconvert             5.3.1
nbformat              4.4.0
notebook              5.2.2
numpy                 1.17.2
oauth                 1.0.1
olefile               0.45.1
opt-einsum            3.1.0
pandas                0.25.1
pandocfilters         1.4.2
pbr                   3.1.1
pexpect               4.2.1
pickleshare           0.7.4
Pillow                5.1.0
pip                   19.3
prompt-toolkit        1.0.15
protobuf              3.9.2
pycairo               1.16.2
pycrypto              2.6.1
pycups                1.9.73
Pygments              2.2.0
pygobject             3.26.1
pymacaroons           0.13.0
PyNaCl                1.1.2
pyparsing             2.4.2
pyRFC3339             1.0
python-apt            1.6.4
python-dateutil       2.8.0
python-debian         0.1.32
pytz                  2018.3
pyxdg                 0.25
PyYAML                3.12
pyzmq                 16.0.2
reportlab             3.4.0
requests              2.18.4
requests-unixsocket   0.1.5
scipy                 1.3.1
SecretStorage         2.3.1
setuptools            41.2.0
simplegeneric         0.8.1
simplejson            3.13.2
six                   1.11.0
ssh-import-id         5.7
system-service        0.3
systemd-python        234
tensorboard           2.0.0
tensorflow            2.0.0
tensorflow-estimator  2.0.0
tensorflow-gpu        2.0.0
termcolor             1.1.0
terminado             0.7
testpath              0.3.1
testresources         2.0.0
tornado               4.5.3
traceback2            1.4.0
traitlets             4.3.2
ubuntu-drivers-common 0.0.0
ufw                   0.36
unattended-upgrades   0.1
unittest2             1.1.0
urllib3               1.22
usb-creator           0.3.3
wadllib               1.3.2
wcwidth               0.1.7
webencodings          0.5
Werkzeug              0.16.0
wheel                 0.30.0
wrapt                 1.11.2
xkit                  0.0.0
zope.interface        4.3.2

@yangzhuoran I think the installation is not done well. Try uninstalling Tensorflow and installing ot back.
Inorder just to test, you can create a clean virtual environment and try installing tensorflow and running this code.


Update Contract Address of FUTURAX (FXC)

In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

[x] Filename in the lowercase format
[x] Image format: png
[x] Image size: 256 by 256 px

@endofthepain lowercase filename please

https://etherscan.io/token/0xc92D6E3E64302C59d734f3292E2A13A13D7E1817 my contract like this

Committed in https://github.com/TrustWallet/tokens/commit/88a8b67f2a0817696ba522a1704cc9eaaec7312a

Also, you can use these graphics to say that your ERC20 token fully compatible with Trust Wallet (https://trustwalletapp.com/logo-assets). Tokens will show up automatically once the user receives them.
Feel free to share this on social media and tag Trust Wallet:
Twitter: @TrustWalletApp
Facebook: @TrustWalletApp


volk: disable flaky tests

Description of changes
As in the title.
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 199454 run on aarch64-darwin 1

19 packages built:

gnuradio
gnuradio3_8
gnuradio3_8Minimal
gnuradio3_8Packages.ais
gnuradio3_8Packages.gnuradio
gnuradio3_8Packages.grnet
gnuradio3_8Packages.osmosdr
gnuradio3_8Packages.rds
gnuradio3_9
gnuradioMinimal (gnuradio3_9Minimal)
gnuradio3_9Packages.gnuradio
gnuradio3_9Packages.grnet
gnuradioPackages.gnuradio
sdrpp
sigdigger
sigutils
suscan
suwidgets
volk

Hope someday volk & cpu_features can get official support on M1 ;)


Supersenses extra

Expanding on #138 now that I had a meeting with Bolette and Sussi about it.

Comparing with the English WordNet, which uses adj rather than adjective for the adjective grouping, we should switch to match theirs.
Certain food-related words are tagged as verb.creation whereas they should be verb.consumption like in the OEWN. Special rules for food may apply, perhaps in other cases too.
Once the supersenses are cleaned up and officially in DanNet, I can begin to attach supersenses to the Semdax corpus (CoNLL-U Format). About 7700 senses exist in this corpus that come from DanNet, while the rest are mostly from DDO (not DanNet) and can't be annotated using the Supersenses from DanNet. These will have to be done manually or using data from DDO.

Current status: I have binned the verb.creation synsets into 14 separate groups based on their hypernyms. These and the remaining 9 synsets need to be checked by Sussi/Bolette.

I have remapped all of the verb.creation synsets with Bolette. They will need to be imported into the graph and added to the dataset in the next release.
The next step is to do the ConNLL-U file for Danish found at: https://www.clarin.si/repository/xmlui/handle/11356/1842
Most of these are mapped to DanNet senses. Perhaps the supersense can be added at the end of the lines? I also need to figure out a smart way to do tag much of the remaining ~2500 senses, since they are not directly linked to DanNet. Some of them might be able to be added via the lemma.


:memo:  doc/help.txt

Hullo,
First of all, thanks so much for the plugin. It's absolutely perfect.
I just have a small nitpick; I keep having to go back to this repo to look up the relevant commands and think that this project would greatly benefit from a help.txt file.
If PRs are welcome I could (try to) whip something up over the weekend.
Thanks again :)

Hi and thank you :D
I totally agree that it would be a great addition, sadly I'm very busy at the moment, and although it should be a pretty small job, as I'm not some one who creates plugins regularly (this is my first), i don't really know the correct syntax, it will take me some time to to do it.

If PRs are welcome I could (try to) whip something up over the weekend.

PR are totally welcome :)
In any case i'll do my best to deliver the help file as soon as possible!


remove default features

Hello!
By default diesel enables two feature flags, 32-column-tables and 32-column-tables. Disabling them improves compile times, but users of this library cannot do that since this library enables them.
This PR fixes that. Explicit imports were added, since the implicit imports are deprecated.

Thank you, merged!

@PPakalns thanks for the quick reply!


Make-the-page-responisve-and-more-beautiful

I am adressing the issue of making the web page more responsive :)

This are the webpage on three different screen , working scaled up and perfectly
I will be glad if this get merged
thanks

Please mention the issue you are resolving.

#8


Use ruby-lsp ruby extension instead of a deprecated one

rebornix.Ruby is deprecated and VSCode itself recommends installing ruby-lsp as a substitution - https://marketplace.visualstudio.com/items?itemName=Shopify.ruby-lsp

ruby-lsp is the officially recommended extension for Ruby - https://code.visualstudio.com/docs/languages/ruby
So let's use it by default and help developers to avoid manually uninstalling the deprecated extension

Thanks @nvasilevski for updating this 👍


Returning some of a JSON array

Let's say the server returns a JSON array of photos. Each photo should have an ID, a URL, and maybe the name of the person who took it.
struct Photo {
   let id: String
   let authorName: String
   let URL: NSURL
}

Now, we don't wanna show a photo in the app if info is missing. A photo without the author's name breaks things, so I don't wanna mark it as optional. However, in it's current form, the decode function would return nil if one photo out of 20 were missing the name.
How complicated would it be to make decode return the 19 valid photos and maybe have information somewhere to say "this one photo was invalid" instead of showing 0 photos in the app when 19 are totally fine to show?

you could write your own parser to handle this. It would look a lot like the built in Array parser, but with catOptionals instead of sequence:
public func decodePartialArray<A where A: Decodable, A == A.DecodedType>(value: JSON) -> Decoded<[A]> {
  switch value {
  case let .Array(a): return catOptionals(A.decode <^> a)
  default: return .TypeMismatch("\(value) is not an Array")
  }
}

func catOptionals<T>(xs: [T?]) -> [T] {
    return xs.reduce([]) { accum, elem in
        return elem.map { accum + [$0] } ?? accum
    }
}

Then, in your decode function:
j <| "photos" >>- decodePartialArray

Yes, it's doable, but you might want to look into why you have partial information about a photo. If it's just because you're dealing with bad data that you don't have control over then that's one thing but if you do control that then fixing the data source to return full or no data for an image might be easier and more reliable.

You'll need to wrap that successful return statement in pure, too.

Ah yes, that would work.
Tony: In this one case I have control over the API, but on most client projects I don't so I was curious.
Thanks again!


Fix CI

See #103

Codecov Report

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

@@           Coverage Diff           @@
##           master     #104   +/-   ##
=======================================
  Coverage   90.28%   90.28%
=======================================
  Files          12       12
  Lines         453      453
  Branches       56       56
=======================================
  Hits          409      409
  Misses         27       27
  Partials       17       17

Continue to review full report at Codecov.

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


[Bug]: Library does not support python = "^3.9"

Is there an existing issue for this?

[X] I have searched for similar issues and discussions

Bug Description
1. I tried to install the lib using `poetry add datapane`
2. The app failed on: `The current project's Python requirement (>=3.9,<4.0) is not compatible with some of the required packages Python requirement:
  - datapane requires Python >=3.8.0,<3.12.0, so it will not be satisfied for Python >=3.12.0,<4.0
Because no versions of datapane match >0.16.5,<0.17.0
 and datapane (0.16.5) requires Python >=3.9,<3.12.0, datapane is forbidden.
So, because ofv-lib depends on datapane (^0.16.5), version solving failed.`

Is there a reason not to support all minor version releases?
Minor version release should only introduce new features, enhancements, or optimizations without breaking existing functionality.

System Information
- Datapane version: 0.16.4
- Python version: 3.9
- Operating System: MacOS
- Using Jupyter: No
- Pip or Conda: Pip (Poetry)
- Dependencies:
  python = "^3.9"`

Anything else?
https://github.com/numpy/numpy/blob/4b1369249975afab557a8c182bcd03c4b1cc373c/pyproject.toml#L19
https://github.com/pandas-dev/pandas/blob/1e90f9e3c5371bf65347bc1ea5e9b3cef9dfa189/pyproject.toml#L26

https://github.com/datapane/datapane/pull/386

Thanks for your PR - as mentioned it doesn't quite fix the issue, but we'll push out a fix this week that resolves it. It's more an issue when using poetry more so than anything else. Cheers!

Fixed in https://github.com/datapane/datapane/commit/aa42436e688fe7dacfe8b8e9883e6fde0728a698#diff-475ac1d7b037b5b3c515a6d37c40b6fae08b579dd19995b2cfc451177044dacfR41 and released in 0.16.7 on pypi


Legacy maintainer should be deprecated

The @Ocramius module is really starting to show it's age, can we please simply wish it a happy birthday and retire it?

Inb4 EWONTFIX old-by-design

I'd say that the old model needs to be kept for BC compliance: newer models tend to introduce regressions too quickly. Maybe slowly transition to newer implementations?


Allow to "internalize" package dependencies

Sometime we have conflicts in our dependency graph.
One solution to solve (even if not always applicable) is to install both versions of the package.
NuGet puts the version no. in the path to solve this. But this makes updates a nightmare since the path is not stable.
I propose the following:
We add a new syntax to the paket.dependencies file which specifies that a given dependency of a package should be internalized.
nuget FSharp.Formatting
    internalize nuget Microsoft.AspNet.Razor
    internalize nuget RazorEngine

then we propagate this into the paket.lock file.
During restore we would create the following structure:
- packages/FSharp.Formatting/... // normal package
- packages/FSharp.Formatting/dependencies/Microsoft.AspNet.Razor/...
- packages/FSharp.Formatting/dependencies/RazorEngine/...

This would allow people to deal with conflicts and still have stable paths.

:+1:

:+1:
I just stumbled on a use case for this recently:

I have a solution which has a windows service targeting .NET 4.5 and uses Microsoft.AspNet.WebApi.OwinSelfHost which depends on Microsoft.Owin version >= 3.0.0 (which only has a .NET 4.5 target).
I have a webproject which targets .NET 4.0 and references Microsoft.Owin.Host.SystemWeb 2.1.0 which needs Microsoft.Owin version 2.1 (which has both a .NET 4.5 and 4.0 target).

With paket in its current state I can't proceed and it looks like I need to revert to using vanilla NuGet.

I tried to implement this but it's too hard. Closing this for now


Column CPU unit could be microsecond?

Column CPU in all other extended events are microsecond except this one. In real data it actually seems like microsecond.

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

ID: 207f4d6b-9d6e-1d6b-cd64-f30c107d2dd5
Version Independent ID: 9a737c53-1a35-422d-a790-64cfc68ab307
Content: SQL:BatchCompleted Event Class - SQL Server
Content Source: docs/relational-databases/event-classes/sql-batchcompleted-event-class.md
Product: sql
Technology: supportability
GitHub Login: @stevestein
Microsoft Alias: sstein

@matriarchvip Thank you for the feedback, assigning this to the author for review.
@stevestein

@matriarchvip Sorry for the long delay in replying, and thanks for the question. In doing some research from the community experience with this column (see https://stackoverflow.com/questions/976628/sql-profiler-cpu-duration-units), it seems that there might be a difference between what you see in SQL Server Profiler (milliseconds) and what you see in exported data (microseconds). There also might be a UI setting to adjust this.
I think the answer is spelled out in a different article: SQL Trace. It says:

Data column
Column number
Description

Duration
13
The duration (in microseconds) of the event. The server reports the duration of an event in microseconds (one millionth, or 10-6, of a second) and the amount of CPU time used by the event in milliseconds (one thousandth, or 10-3, of a second). The [!INCLUDEssSqlProfiler] graphical user interface displays the Duration column in milliseconds by default, but when a trace is saved to either a file or a database table, the Duration column value is written in microseconds.

At this time, I am going to close this issue, but please let me know if this does not address your concern. Thanks!


dart2js does not allow all built-in identifiers to be used as identifiers

At least abstrace, external, static and typedef are not allowed.
Failing test is language/built_in_identifier_test/01
Same issue for dart2dart.

dup of #6972?


Feature/add timestamp extension

Closes #9.
I also took the liberty of fixing some function names with what I believe were typos.
Please note that I was unable to run the full test suite on my laptop, as I ran out of memory pretty quickly. That said, I ran the unit tests that I added, and they all succeeded. I guess we'll see that CircleCI says.
I tried to decode timestamps into PosixDate objects, but ran into a lot of difficulty with integer types. From what I understand, PosixDate uses I32 for its fields, but the underlying struct tm uses time_t, which is specified to be long int, which should be 64-bits on 64-bit systems, but only 32-bits on 32-bit systems. Trying to massage the 64-bit seconds value into the I32 members proved too difficult to me, so now I return something similar to what Time.now() gives.
Please let me know if there are any changes you'd like to see!

Thanks @rkallos. I can run the full test suite on my machine to verify. Can you update your PR to include a CHANGELOG entry? I'm not going to have a chance to review the changes for a few days but that small detail did jump out.

@rkallos all tests pass locally.

Thanks for this, I think its an excellent start. Perhaps we want PosixDate as the format in the future. Perhaps not. Getting something in that folks can use and give feedback on is a great first step. Thanks @rkallos.
I'm going to merge this, do you have time to write up an explanation of how to use and a bit more for release notes for this addition?


Chapter 5: Generics

Description
This PR looks into the usage of generics according to Chapter 5 of the Effective Java book and improves the usage of generics overall around the app.
More specifically:

Preferred the usage of Generics for references instead of concrete implementations (Item 26)
Removed "unchecked warnings (Item 24)

Test(s) added
nope. Just updated the already existing ones

Preferred the usage of Generics for references instead of concrete implementations

https://github.com/alexstyl/Memento-Namedays/pull/61/commits/b647d90a45787c8185c8e36b3618c51378ad370a FYI Even moar generic usage this is not use of generics, this is 'coding to the interface' https://en.wikipedia.org/wiki/Liskov_substitution_principle
is this what you meant to change? Maybe a bit more explanation in your PR description for what you are trying to achieve

@blundell Sounds the same. That specific commit is the Item 26 of the book as written on the description, isn't it?

@alexstyl yeah i see "prefer the more generic type" 💯

i dont have admin to merge. lgtm!


OSP-19 ensure policy is deleted in MLR case

Reviewer: @wolverineav

last rule cannot be deleted no longer applies

Refer to this link for build results (access rights to CI server needed):
https://jenkins.bigswitch.com/job/openstack_horizon_bsn_pull_req/98/


strerror: String returned for code zero (0) violates POSIX

Currently, strerror(0) returns "No error information".
However, POSIX says:

if the value of errnum is zero, the message string shall either be an empty string or indicate that no error occurred

Now, I haven't seen any explicit statement that this libc intends to comply with POSIX, and C11 <IP_ADDRESS> does not contain this requirement, but it would seem like bringing strerror into POSIX compliance ought to be easy, and doing so would be beneficial to those with POSIX expectations.

Thanks for the quick response!
But there's a problem with this change.  The way the code currently works, the E(0, ...) entry applies to both the case of err_no being zero and the case of it being unrecognized.  Here's the full paragraph from POSIX:

If the value of errnum is a valid error number, the message string shall indicate what error occurred; if the value of errnum is zero, the message string shall either be an empty string or indicate that no error occurred; otherwise, if these functions complete successfully, the message string shall indicate that an unknown error occurred.

Note the final clause, requiring that upon an invalid and non-zero error number, "the message string shall indicate that an unknown error occurred."  That part is now violated.


Link to the next page at the bottom  of each chapter

I was reading the site on my phone and  when I scrolled to the bottom of chapter one there was no obvious link to move to chapter two - I had to scroll to the top of the page and then open the burger bar menu to find it.

Closed in https://github.com/Sobeston/ziglearn/pull/197


Allow to rename animation just after it was duplicated in Editor

What I am proposing are two very tiny quality-of-life improvements over AnimationPlayer EditorPlugin.

right after 'Duplicate' is chosen, user is presented with dialog box where it's possible to rename that duplicate - instead of setting duplicate's name as: 'anim (copy)' and going again into that menu to pick 'Rename animation' option.
I can't count how many times I was doing that while setting animations in Godot - so it may be valuable to other users too.

when 'Delete' is picked under animation - it adds animation name to the dialog, just to visually confirm which animation user is about to delete

Thanks!


Space page update for swecha

As per issue https://github.com/coderplex/coderplex/issues/162

@duttakapil
Please get the key for Google Maps Embed API , i will replace current with that

I'm seeing this when I open the deploy link

Browser : Firefox (latest)
OS : Windows (Latest)

Ok can you get the key. It's the key fault


Breakdown work to implement storage::noex::Client.

The goal in this bug is to write a brief design document and break down the work.  There are several things that come to mind:

[ ] We need to change the wrappers around libcurl to return a Status instead of raising exceptions when there is a local error (e.g. unable to connect at all).
[ ] We need to change the code for all the JSON parsing return a Status if the parsing fails.
[ ] We need to decide if we will use the StatusOr approach for error handling or the error_code for error handling.
[ ] We need to create a storage::noex::Client class that returns a Status on error.

The biggest decision is how to write an API that does not raise an exception on errors.  When C++ has adopted APIs that do not throw exception (we use std::filesystem in these examples, but std::experimental::net has a similar approach) they look like this:
bool function( std::string const& foo, std::error_code& ec ) noexcept;

The application uses these APIs as follows:
void AppCode() {
  std::error_code ec;
  bool result = function("foo/bar/baz", ec);
  if (ec) {
    // handle the error, throw or return...
  }
  // normal path.

The alternative is to use something like StatusOr, or the proposed std::expected:
StatusOr<bool> function(std::string const& p) noexcept;

void AppCode() {
  auto result = function("foo/bar/baz", ec);
  if (not result.ok()) {
    // handle the error, throw or return...
  }
  // normal path, use *result to get the data.
}

Both are problematic, of course, that is why C++ has exceptions.  The second is more familiar to Google developers.  The first will become increasingly familiar as the standard adopts the networking TS.

This is done.


Grafana doesn't get any data (synology/docker)

I've installed the latest docker container vwsfriend and vwsfriend-grafana on my Synology NAS and configured vwsfriend like described in the wiki: https://github.com/tillsteinbach/VWsFriend/wiki/Install#install-on-synology-docker-native-synology-ui-no-docker-compose
I can now login to vwsfriend on my NAS on ip_adress:4000 and I get the Vehicle Status for my ID.3 without any problems.
After that I configured also vwsfriend-grafana, but after log in on ip_adress:3000 I get only some blank "no data" controls and a warning "You have to set the URL for the VWsFriend user interface correctly: Go to the user interface on port 4000 and select "Database" > ”Connection Settings"".
Back on the user interface from vwsfriend I can not find any Database settings. Only the status page, where I can pick my car and view the informations and status from the car.
Back on the Synology docker settings for vwsfriend-grafana I've checked the VWSFRIEND_HOSTNAME setting and it seems ok:

Is there anything I have to configure for Grafana?
Thank you!

Did you also Setup the postgres container?

I installed and set up the postgres container and configured the hosts IP in the docker settings for the grafana docker (DB_HOSTNAME). But for now, without any further access.
I've taken some screenshots from the container settings - maybe this helps.
Postgres Container Settings

VWsFriends Container Settings

VWsFriends-Grafana Container Settings

Web UI

WEB UI after clicking the two gears

Web UI after clicking on my car

Web UI Grafana with errors

Do you have the connection settings environment variable:
DATABASE_URL=postgresql://${DB_USER-admin}:${DB_PASSWORD-secret}@${DB_HOSTNAME-postgresdbbackend}:${DB_PORT-5432}/${DB_NAME-vwsfriend}
and
—with-database In the ADDITIONAL_PARAMETERS?

After adding the ADDITIONAL_PARAMETER and the string for DATABASE_URL:

the VWsFriends container doesn't start and the log throws this output:

I think it has to do with Synologys own Docker implementation (and editing) of the .env file with the Disk Station Manager.
Maybe I'm now going to cancel the installation with Synologys DSM and try it with docker compose on the console.

Ah yes I think the variables are only substituted in docker compose. So you have to replace the variables the real values. e.g. ${DB_USER-admin}  with the database password you configured in postgres.

The error looks like there is no connection at all possible to the database. It is sometimes a bit tricky to allow connections between the containers. Maybe you have to configure something in the UI for it to work?
Regarding the database. The database should exist if you put the Variable POSTGRES_DB=vwsfriend to the postgres container. It then creates it when starting the first time.

One last question: What is the difference between "Usable battery capacity (net)" and "Total battery capacity (gross)" in the vehicle parameters form?

Ah, I found it by myself.

Great that it works now!
If you would write a small manual for the DSM setup I would be very happy adding it to the wiki for other users.

I'll write a documentation for the installation with DSM and ssh (which also works fine with synology), when I find some time.

@escuco Did you find time to write the documentation? I'm stuck at the same problem.


[5] Investigate namespace creation aaS: hierarchical namespaces

What should be investigated.
What technology/product/concept should be investigated?
We might want to give our customers the ability to create namespaces themselves, without giving them access to the whole cluster. This is very difficult (impossible?) to do with just RBAC so we will need some other tool.
Try adding hierarchical namespaces to solve this problem and try it as a user.
We would like answers to the following:

Is it possible to install in compliant kubernetes?
Does installing it produce any security concerns or other problems?
Does it solve the problem for our users?
Is it lacking any features and if so, how important are those features?

What artifacts should this produce.

The answers to the questions above should be documented.
The artifacts used to install it should be saved for potential future implementation.
The results should be discussed with the team and a decision should be made to either move forward with adding this to compliant kubernetes or investigate other alternatives. Follow up issues should be created based on the decision.

The HNC moved to its own repo: https://github.com/kubernetes-sigs/hierarchical-namespaces
Currently it is at v0.8, with plans to release a v1.0 "Likely late Q2 or early Q3 2021: HNC recommended for production use."
We decided to wait for HNC to be production-ready before working on self-service namespaces.
Until then, let us document a snippet that allows the Compliant Kubernetes administrator to quickly create namespaces. Next person tasked to create a namespace will also document how to do it.

I rewrote the issue to focus on testing hierarchical namespaces for now, if that is not the right fit for us then we can try other options.

Investigation doc: https://github.com/elastisys/ck8s-ops/blob/main/docs/investigations/hierarchical-namespaces.md (private repo).
Conclusions:
HNC seems rather straight forward to add to compliant kubernetes, even though we will have to make our own helm chart. I do not think HNC creates any security issues for us (it does have a lot of RBAC permissions, but that can be locked down). Maybe most importantly HNC solves the problem of letting users create their own namespaces without escalating their privileges in the cluster.
On the negative side I miss some things related to monitoring (alerts, grafana dashboards and service monitor), but that should be easy for us to fix (and maybe upstream). More importantly I'm slightly unsure of the velocity/stability of the project. It is still a rather young project, I'm unsure how many actually use it, and it seems like it is maintained by a rather small group of people. Although it is an official kubernetes project, which is very positive.
As a final conclusion I think that this is a good enough project for us to add to compliant kubernetes and I do not think that we need to do any deep investigations of other alternatives for now.

Somewhat late to the party. Nice investigation @viktor-f !


[Feature] E2E Test plan for RayJob

Search before asking

[X] I had searched in the issues and found no similar feature requirement.

Description
We should have a test plan for RayJob after #759 is merged.
Use case
No response
Related issues
#759
Are you willing to submit a PR?

[ ] Yes I am willing to submit a PR!

Assign to the expert of RayJob @architkulkarni. We can schedule a meeting to discuss the plan in the future.


Updates<EMAIL_ADDRESS>

Ran yarn upgrade<EMAIL_ADDRESS>Removes depreciated dedupePlugin()
Updates commons chunk too new format
Updates no errors to no emit errors plugin
Uses new module/loaders format

Thanks @ncrmro for this great PR 👍

@lvarayut no problem, this project is great!
I think HMR has a slightly different config now, whoops!
Working on getting something together it looks like a few changes.
https://webpack.js.org/guides/hmr-react/#project-config
// ./src/index.js
import React from 'react';
import ReactDOM from 'react-dom';

import { AppContainer } from 'react-hot-loader';
// AppContainer is a necessary wrapper component for HMR

import App from './components/App';

const render = (Component) => {
  ReactDOM.render(
    <AppContainer>
      <Component/>
    </AppContainer>,
    document.getElementById('root')
  );
};

render(App);

// Hot Module Replacement API
if (module.hot) {
  module.hot.accept('./components/App', () => {
    render(App)
  });
}

That's interesting. Please don't hesitate to send an awesome PR again :)


boards: rak: Add Rak11720 board

Added support for the Rak11720 board. Rak11720 is a WisBlock Core module with Apollo3 Blue SoC from Ambiq and a Semtech SX1262 LoRa® transceiver. For more information about this board please check: https://docs.rakwireless.com/Product-Categories/WisDuo/RAK11720-Module/Overview/#product-description
There are known issues that have been identified while communicating with SX1262 transceiver:

Gpio interrupt handling error: ambiq_gpio_pin_interrupt_configure function is not able to configure SX1262 Dio1 interrupt pin correctly. Please check issue 73958.
Spi communication error: Rak11720 uses a custom CS pin. Firstly, custom CS pin support is necessary.  Secondly, current spi_ambiq_xfer function is not able to communicate with SX1262 transceiver correctly. Please check issue 73959.

These issues have been documented for future solutions. Despite these limitations, the current support enables basic functionality.
Examples can be build by below command for Rak11720: west build -b rak11720 samples/hello_world

@srcnert thanks for your submission. May I know what other samples can be run for the new module/board verification? I see you are finding some peripheral issues, do you just have some local samples for LoRa testing?

@aaronyegx Thanks for quick response and support. I used following example projects to test rak11720 board.
samples/hello_world
samples/ble/beacon
samples/basic/blinky
samples/basic/button
samples/sensor/sht3xd (only build, did not check it is really working)
I prepared a shtc3 sensor communication example to check I2C interface. It is working.
I checked mcuboot example. It is working on apollo3 but needs some changes on apollo3 soc definitions. I am able to update board over BLE.
If you want me to check any extra project, please inform me.
By the way, according to previous discussions, gpio interrupt issue will be fixed at #73890
To check LoRa side, I used samples/subsys/lorawan/class_a example project. You can find main sx1262 driver files at drivers/lora destination. Please check #73959 for more info. I shared some logic analyzer output there. If you need more info, please inform me. Thanks.


build: bump TensorFlow to 2.3.0

The TensorFlow 2.3.0 release is GA'ed.  Update the version that we use.

I believe that setting reshuffleForEachIterator explicitly to false will resolve the test failure:
let shuffled = dataset.shuffled(sampleCount: 5, randomSeed: 42, reshuffleForEachIterator: false)

The failure is caused by shuffle behaving differently, which I suspect is caused by an upstream bugfix. Datasets.shuffled() defaults to reshuffleForEachIterator:  true, which did not have any effect before.
Here's a reduction:
import TensorFlow

let scalars = Tensor<Float>(rangeFrom: 0, to: 5, stride: 1)
let dataset = Dataset(elements: scalars)
print("dataset: \(dataset.flatMap { $0.scalars })")
let shuffled = dataset.shuffled(sampleCount: 5, randomSeed: 42)
print("shuffled: \(shuffled.flatMap { $0.scalars })")
print("shuffled: \(shuffled.flatMap { $0.scalars })")
print("shuffled: \(shuffled.flatMap { $0.scalars })")

Nightlies:
dataset: [0.0, 1.0, 2.0, 3.0, 4.0]
shuffled: [0.0, 4.0, 1.0, 3.0, 2.0]
shuffled: [0.0, 4.0, 1.0, 3.0, 2.0]
shuffled: [0.0, 4.0, 1.0, 3.0, 2.0]

TF 2.3:
dataset: [0.0, 1.0, 2.0, 3.0, 4.0]
shuffled: [0.0, 4.0, 1.0, 3.0, 2.0]
shuffled: [3.0, 4.0, 1.0, 0.0, 2.0]
shuffled: [2.0, 4.0, 3.0, 0.0, 1.0]

Passing in reshuffleForEachIterator:  false gives us behavior that matches TF 2.2:
dataset: [0.0, 1.0, 2.0, 3.0, 4.0]
shuffled: [2.0, 1.0, 3.0, 4.0, 0.0]
shuffled: [2.0, 1.0, 3.0, 4.0, 0.0]
shuffled: [2.0, 1.0, 3.0, 4.0, 0.0]

I wonder why the shuffled values are different, given the same seed? It's probably fine just to update the expected values in the test.


feat [KKST-114] API wrapper scaffold with chains API wrapped

Link to spec
https://www.notion.so/kabukstyle/Kabuk-Platform-API-wrapper-scaffold-with-Chains-15fdf9dd923a809398cff624b2f0b3d6?pvs=4
Basic API wrapper scaffold structure with chains

Would this suffer from the same deployment problem were it hosted as libs/platform-client in the hafh monorepo?  Presumably the infra deploy already has access to that repo.


[gardening] Add missing licensing headers.

Inspired by @gottesmm's licensing gardening fix in f9fefa48a59154c8d7025a30fe4242da406d41ec.

@swift-ci please smoke test

@swift-ci please test

Build failed
Jenkins build - Swift Test Linux Platform
Git Commit - 5bc293cc093807d91042b635d2cb181c06477c35
Test requested by - @practicalswift


Manual backport from Beats 7.17

What does this PR do?
It contains some commits that needed backporting from Beats 7.17
Why is it important?
Some improvements did not get backported.
Checklist

[x] My code follows the style guidelines of this project
[x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] I have added an entry in CHANGELOG.md

## Author's Checklist
## Related issues

:green_heart: Build Succeeded

Buildkite Build
Commit: 3a9b5194f565c6d0a422cedc253dc51737be24d9

:hourglass_flowing_sand: Build in-progress, with failures

Buildkite Build
Commit: 1bf3eebf91e0d84e3fc8378c308593592ef1e640

Failed CI Steps

:buildkite: Lint

History

:green_heart: Build #45 succeeded 3a9b5194f565c6d0a422cedc253dc51737be24d9

:hourglass_flowing_sand: Build in-progress, with failures

Buildkite Build
Commit: 9ece44ab311f4665b7e5d05d97bf18d895a89a99

Failed CI Steps

:buildkite: Lint

History

:broken_heart: Build #46 failed 1bf3eebf91e0d84e3fc8378c308593592ef1e640
:green_heart: Build #45 succeeded 3a9b5194f565c6d0a422cedc253dc51737be24d9

:hourglass_flowing_sand: Build in-progress, with failures

Buildkite Build
Commit: e5d3520cda194eaf3a342a824baef29ee8b5436a

Failed CI Steps

:buildkite: Lint

History

:broken_heart: Build #47 failed 9ece44ab311f4665b7e5d05d97bf18d895a89a99
:broken_heart: Build #46 failed 1bf3eebf91e0d84e3fc8378c308593592ef1e640
:green_heart: Build #45 succeeded 3a9b5194f565c6d0a422cedc253dc51737be24d9

:green_heart: Build Succeeded

Buildkite Build
Commit: bf2bb7f46cdf692203fd64dfe7ba19cc7a5816e4

History

:broken_heart: Build #48 failed e5d3520cda194eaf3a342a824baef29ee8b5436a
:broken_heart: Build #47 failed 9ece44ab311f4665b7e5d05d97bf18d895a89a99
:broken_heart: Build #46 failed 1bf3eebf91e0d84e3fc8378c308593592ef1e640
:green_heart: Build #45 succeeded 3a9b5194f565c6d0a422cedc253dc51737be24d9

:hourglass_flowing_sand: Build in-progress, with failures

Buildkite Build
Commit: 78c64270b1f0185e5eb0861c91c2857dd8259388

Failed CI Steps

:buildkite: Lint

History

:green_heart: Build #49 succeeded bf2bb7f46cdf692203fd64dfe7ba19cc7a5816e4
:broken_heart: Build #48 failed e5d3520cda194eaf3a342a824baef29ee8b5436a
:broken_heart: Build #47 failed 9ece44ab311f4665b7e5d05d97bf18d895a89a99
:broken_heart: Build #46 failed 1bf3eebf91e0d84e3fc8378c308593592ef1e640
:green_heart: Build #45 succeeded 3a9b5194f565c6d0a422cedc253dc51737be24d9

:green_heart: Build Succeeded

Buildkite Build
Commit: 42f296731bf728426470057a1acd3b69f3188f95

History

:broken_heart: Build #50 failed 78c64270b1f0185e5eb0861c91c2857dd8259388
:green_heart: Build #49 succeeded bf2bb7f46cdf692203fd64dfe7ba19cc7a5816e4
:broken_heart: Build #48 failed e5d3520cda194eaf3a342a824baef29ee8b5436a
:broken_heart: Build #47 failed 9ece44ab311f4665b7e5d05d97bf18d895a89a99
:broken_heart: Build #46 failed 1bf3eebf91e0d84e3fc8378c308593592ef1e640


python312Packages.webassets: drop nose dependency

Description of changes

#326513

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

@pyrox0 Did you want to handle this one too? Looks like the existing substitutions need updating or dropping.

Submitted #348621, which builds on top of this PR and solves outstanding review comments.


ekrcec has extra spacing in result

ekrcec is a function that reads data from a character column in a specified EK record. Here are the specified inputs and returns:
    Inputs:
      int       handle = Handle attached to EK file.
      int       segno  = Index of segment containing record.
      int       recno  = Record from which data is to be read.
      string    column = Column name.

    Returns:
      string[*] cvals  = Character values in column entry.
      bool      isnull = Flag indicating whether column entry is null.

Here is a shortened version of the unit test:
import cspyce as cs
import numpy.testing as npt
import os
import pytest

from gettestkernels import TEST_FILE_DIR

def cleanup_kernel(path):
    cs.kclear()
    cs.reset()
    if os.path.isfile(path):
        os.remove(path)  # pragma: no cover
    pass

ekpath = os.path.join(TEST_FILE_DIR, "example_ekmany.ek")
tablename = "test_table_ekmany"
cleanup_kernel(ekpath)
# Create new EK and new segment with table
handle = cs.ekopn(ekpath, ekpath, 0)
decls = [
    "DATATYPE = CHARACTER*(10),   NULLS_OK = FALSE, SIZE = VARIABLE",
    "DATATYPE = DOUBLE PRECISION, NULLS_OK = FALSE, SIZE = VARIABLE",
    "DATATYPE = INTEGER,          NULLS_OK = FALSE, SIZE = VARIABLE",
]
segno = cs.ekbseg(handle, tablename, ["c1", "d1", "i1"], decls)
# Insert records:  1, 2, and 3 entries at rows 0, 1, 2, respectively
c_data = [["100"], ["101", "101"], ["102", "102", "102"]]
d_data = [[100.0], [101.0, 101.0], [102.0, 102.0, 102.0]]
i_data = [[100], [101, 101], [102, 102, 102]]
for r in range(0, 3):
    cs.ekinsr(handle, segno, r)
    cs.ekacec(handle, segno, r, "c1", c_data[r], False)
    cs.ekaced(handle, segno, r, "d1", d_data[r], False)
    cs.ekacei(handle, segno, r, "i1", i_data[r], False)
# Try record insertion beyond the next available, verify the exception
with pytest.raises(Exception):
    cs.ekinsr(handle, segno, 4)
# Close EK, then reopen for reading
cs.ekcls(handle)
cs.kclear()
handle = cs.eklef(ekpath)
assert handle is not None
# Test query using ekpsel
query = "SELECT c1, d1, i1 from {}".format(tablename)
nmrows = cs.ekfind(query)
# Validate the content of each field, including exceptions when
# Loop over rows, test .ekgc/.ekgd/.ekgi
for r in range(nmrows):
    # get row int data
    rc_data, c_null = cs.ekrcec(handle, segno, r, "c1")
    assert not c_null
    assert rc_data == c_data[r]

This test is currently failing the assertion because the resulting array contains a lot of extra whitespace, or something akin to it. The result should be [100] when it is returning [100                                                                                ]. What could be causing the extra whitespace?

I just looked at SpiceyPy.  When converting an array of C strings to an array of Python strings, the code removes all extraneous right-side spaces.  We don't do that.
Should be easy to fix.


Bottom-pinned clippings losing anchoring when deleting unpinned clippings above

Hello and thanks for this great clipboard manager.
I stumbled upon this bug after changing the location of pinned items from top to bottom.
Steps to reproduce:

Pin some clippings to the bottom
Delete one or two unpinned clippings
Press <esc> to hide Maccy
Open Maccy again

Pinned items are no longer anchored to the bottom — unpinned older clippings are shown below them. Occasionally pinned items are shown twice, once in the middle of other items, once at the bottom.
This persists until a restart.

Can you please share the output of running defaults read org.p0deje.Maccy in Terminal.app?
I'm trying to reproduce the issue, but I can't. Can you please provide more concrete steps to see it?

Can you please share the output of running defaults read org.p0deje.Maccy in Terminal.app?

Sure, here it is:
{
    "KeyboardShortcuts_popup" = "{\\"carbonModifiers\\":768,\\"carbonKeyCode\\":9}";
    "NSStatusItem Visible Item-0" = 0;
    "NSWindow Frame SUUpdateAlert" = "352 288 620 392 0 0 1280 777 ";
    "NSWindow Frame com.sindresorhus.Preferences.FrameAutosaveName" = "429 284 549 591 0 0 1440 875 ";
    SUEnableAutomaticChecks = 1;
    SUHasLaunchedBefore = 1;
    SULastCheckTime = "2021-03-16 22:31:33 +0000";
    WebKitDefaultFontSize = 13;
    WebKitJavaEnabled = 0;
    WebKitJavaScriptEnabled = 0;
    WebKitPluginsEnabled = 0;
    WebKitStandardFont = "-apple-system-font";
    WebKitUserStyleSheetEnabledPreferenceKey = 1;
    WebKitUserStyleSheetLocationPreferenceKey = "/Applications/Maccy.app/Contents/Frameworks/Sparkle.framework/Resources/ReleaseNotesColorStyle.css";
    enabledPasteboardTypes =     (
        "public.png",
        "public.utf8-plain-text",
        "public.file-url",
        "public.tiff"
    );
    fuzzySearch = 1;
    hideFooter = 1;
    hideTitle = 1;
    history = {length = 42, bytes = 0x62706c69 73743030 a0080000 00000000 ... 00000000 00000009 };
    ignoredPasteboardTypes =     (
        "net.antelle.keeweb",
        "com.agilebits.onepassword",
        "com.typeit4me.clipping",
        "de.petermaurer.TransientPasteboardType",
        "Pasteboard generator type"
    );
    maxMenuItems = 10;
    migrations =     {
        "2020-02-22-history-item-add-copied-at" = 1;
        "2020-02-22-history-item-add-number-of-copies" = 1;
        "2020-04-18-switch-storage-to-core-data" = 1;
        "2020-04-25-allow-custom-ignored-types" = 1;
        "2020-06-19-use-keyboardshortcuts" = 1;
        "2020-09-01-ignore-keeweb" = 1;
        "2021-02-20-allow-to-customize-supported-types" = 1;
    };
    pasteByDefault = 1;
    pinTo = bottom;
    playSounds = 0;
    popupPosition = cursor;
    removeFormattingByDefault = 1;
    showInStatusBar = 0;
    sortBy = lastCopiedAt;
}

I'm trying to reproduce the issue, but I can't. Can you please provide more concrete steps to see it?

The steps I described above are really all there is to it. I'm still able to reproduce using the settings above, running on Big Sur 11.2 on an M1 MacBook Air. I pinned two clips to the bottom, then deleted two clips from the top using alt+backspace, pressed esc, opened Maccy again with my custom shortcut cmd+shift+v, and the pinned clips moved two steps upwards.

Thanks for fixing it!


Earley fails when parsing comments

I'm attempting to parse a grammar that uses '!' or '//' for commenting everything starting with the token to the end of the line. Everything is fine in LALR(1) but Earley throws a ParseError.
The code in question, with the grammar;
from __future__ import print_function
from lark import Lark

grammar = r"""
COMMENT: /(!|(\/\/))[^\n]*/
%ignore COMMENT

%import common.WS
// _WS: WS

%import common.INT
int_stmnt: "INT"i WS+ INT WS*
"""

parser = Lark(grammar, start="int_stmnt", parser="earley")

tree = parser.parse("int 1 ! This is a comment\n")

print(tree.pretty())

For emphasis, the regular expression I'm using for comments; COMMENT: /(!|(\/\/))[^\n]*/
The traceback from this script when run as is;
Traceback (most recent call last):
  File "lark_earley_bug.py", line 18, in <module>
    tree = parser.parse("int 1 ! This is a comment\n")
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lark/lark.py", line 193, in parse
    return self.parser.parse(text)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lark/parser_frontends.py", line 144, in parse
    return self.parser.parse(text)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/lark/parsers/xearley.py", line 128, in parse
    raise ParseError('Incomplete parse: Could not find a solution to input')
lark.common.ParseError: Incomplete parse: Could not find a solution to input

The error free output of this script when using the LALR parser;
int_stmnt

  1

You'll find that removing the comment will also get the error free output from Earley.

Hi, this is a bug with the dynamic lexer. Thanks for providing an example, I'll try to fix it soon.
Meanwhile, your code should work with:
parser = Lark(grammar, start="int_stmnt", parser="earley", lexer='standard')

Fixed in latest master.


shall  "legend_example" work on Jupyterlab-0.27.0, holoviews-1.8.4, bokeh-0.12.9 ?

this example works on Notebook, but not in jupyterlab-0.27.0.
Is it normal (could be me ?)
https://github.com/ioam/holoviews/blob/master/examples/gallery/demos/bokeh/legend_example.ipynb

We still haven't done any testing or compatibility work on JupyterLab. Have you tested other examples or is it specific to this example?

well, now testing the same on "notebook" with matplotlib-2.1.0rc1, it doesn't go very much better

well, it's just that now that I have bokeh and ipyleaflet working on jupyterlab, I tried to be a little more adventurous, and tried your most recent example.

It looks like you're running the bokeh example in matplotlib, does the corresponding matplotlib version of the notebook work?

heu I did run the exampl  in matplotlib/boke h * notebook/jlab. apparently only the notebook/bokeh example works

What I mean is that it looks like you simply ran the bokeh version and switched to the matplotlib extension. There are backend specific versions of each notebook, e.g. notice how the example exists in:
examples/gallery/demos/bokeh/legend_example.ipynb

There is an equivalent example for matplotlib in, which should work:
examples/gallery/demos/matplotlib/legend_example.ipynb

oups!  I didn't notice the last cell was different. so Matplotlib*Notebook is ok

Going to close this since we have an existing issue for JupyterLab compatibility.


Semantic tags of an actor in python

Is it possible to access the semantic_tags variable (list) of an actor in a python code?

As now i get this when trying to access semantic_tags:
tags = vehicle.semantic_tags

TypeError: No to_python (by-value) converter found for C++ type: std::vector<unsigned char, std::allocator<unsigned char> >

@NicGalli @ndeshp2s, any solution for this issue? Thanks.

I have exactly the same problem under CARLA 0.9.6 built from source. Any solution ?

Bump for interest, the same issue in 0.9.10 on Linux


CreateListFromArrayLike on non-object error

while broadcasting to all events on *, this error came up, also similar to #7
/opt/connector/node_modules/event-pubsub/es6.js:79
            handler.apply(this, type, args);
                    ^

TypeError: CreateListFromArrayLike called on non-object
    at Client.emit$ (/opt/connector/node_modules/event-pubsub/es6.js:79:21)
    at Client.emit (/opt/connector/node_modules/event-pubsub/es6.js:58:25)
    at Socket.connectionMade (/opt/connector/node_modules/node-ipc/dao/client.js:140:20)
    at emitNone (events.js:91:20)
    at Socket.emit (events.js:185:7)
    at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1067:10)

this could be fixed with
in es6.js replace line 78
handler.apply(this, type, args);

with
args.unshift(type)
handler.apply(this, args);

args.unshift(type) is too slow. switching to .call

btw, thats what the ES5 module does.


Remove Bootstrap

Remove Bootstrap

Use the grid and helper functions if needed
Remove Bootstrap JS & Main CSS File

Closing in favor of #5


Make 'Other character' methods use player id as intended

I got these reported to me via DM:
hey, just wanted to report few things I found with the SDK 1.2.1

this function says GetOtherPlayersCharacterLoadout but the parameter has incorrect name and info it says characterId but should be playerId

the other thing is I'm getting this error with GetCurrentLoadOutToOtherCharacter

FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
System.Text.StringBuilder.AppendFormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) (at <b5ac4fa8faf34bc9be9b9c54f8ce8a43>:0)
System.String.FormatHelper (System.IFormatProvider provider, System.String format, System.ParamsArray args) (at <b5ac4fa8faf34bc9be9b9c54f8ce8a43>:0)
System.String.Format (System.String format, System.Object arg0) (at <b5ac4fa8faf34bc9be9b9c54f8ce8a43>:0)
LootLocker.LootLockerAPIManager.GetCurrentLoadOutToOtherCharacter (LootLocker.Requests.LootLockerGetRequest lootLockerGetRequest, System.Action1[T] onComplete) (at Assets/LootLockerSDK/Runtime/Game/Requests/CharacterRequest.cs:291)
LootLocker.Requests.LootLockerSDKManager.GetCurrentLoadOutToOtherCharacter (System.String characterID, System.Action1[T] onComplete) (at Assets/LootLockerSDK/Runtime/Game/LootLockerSDKManager.cs:2121)

looks like its pointing to the wrong endpoint

LGTM 👍


Define the abstract minos.saga.SagaManager class

This issue is closed by https://github.com/Clariteia/minos_microservice_common/issues/229


rename MovingBlock to FallingBlock

Would be much more obvious. No idea why I haven't thought of this before.

There's still at least MovingDrill.

Also get_moving_square()


Difference between UseHealthChecks and MapHealthChecks

This Health checks in ASP.NET Core page doesn't mention UseHealthChecks at all, and the few places in this repository that contain it, don't explain the difference between UseHealthChecks and MapHealthChecks very well. The 2.2 to 3.0 migration page mentions benefits of authentication, but that wouldn't apply to the Kubernetes use that this page is using as an example.
Because this page mentions Kubernetes readiness and liveness probe, and these endpoints are called a lot, I think this distinction would especially helpful. I've seen it mention that one might want to use one vs. the other when using logging middleware of requests.
I view one of the advantages of UseHealthChecks is that it will terminate the pipeline if the path matches so it can be placed before the logging middleware and the logs will be skipped.

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

ID: c0cbb094-29e9-740a-9fd6-db372641d753
Version Independent ID: 52d8efc9-a336-71d9-6d90-98173cbf6bf4
Content: Health checks in ASP.NET Core
Content Source: aspnetcore/host-and-deploy/health-checks.md
Product: aspnet-core
Technology: aspnetcore-hostdeploy
GitHub Login: @Rick-Anderson
Microsoft Alias: riande

Associated WorkItem - 97769

I view one of the advantages of UseHealthChecks is that it will terminate the pipeline if the path matches so it can be placed before the logging middleware and the logs will be skipped.

I agree. But the difference is confusing. See https://github.com/dotnet/AspNetCore.Docs/pull/29439#discussion_r1221227616


Adding additional push_back/operator+= rvalue overloads for JSON object

I propose adding the following three overloads to basic_json:
void push_back(typename object_t::value_type&& val);
value_type& operator+=(typename object_t::value_type&& val) &;
value_type&& operator+=(typename object_t::value_type&& val) &&;

These are symmetric to existing const typename object_t::value_type& overloads,
they bring the interface more in line with std::map (there are both insert(value_type const&) and insert(value_type &&) methods). The third overload allows rvalue json object to remain a temporary after operator+=.
Most importantly, these should allow for this simple code perform without copying:
return json {
   {"type", "Polygon"},
} += json::object_t::value_type {"coordinates", std::move(coordinates)};

Please note that this code is not equivalent to
return json {
   {"type", "Polygon"},
   {"coordinates", std::move(coordinates)},
};

because sadly in C++ std::initializer_list breaks perfect forwarding, and (possibly large) subobject is silently copied in this case.
Without these overloads, I think that this could only be expressed (without runtime overhead) by
json result = {
   {"type", "Polygon"},
};
result.emplace("coordinates", std::move(coordinates));
return result;

which is not very convenient.
Another alternative is to provide an explicit chainable method instead of (ab-)using operator+=. This could lead to cleaner code like:
return json {
   {"type", "Polygon"},
}.method_name("coordinates", std::move(coordinates));

This method should return an rvalue reference when called on an rvalue object, too.

This seems like a reasonable addition. PRs welcome!

Most of proposed additions (and probably all of them) are unnecessary since #663 landed and only complicate the API, therefore closing.

Thanks for checking back!


Android 64-bit for new Google Play requirement

As of August, 2019, Google Play requires to support 64-bit version too.
But I don't know how to build a 64-bit version.
Can anyone teach me how to and where to look when building a 64-bit version of mozc for Android?

When I tried to build an arm64 apk by specifying 'arm64' in '--android_arch', the build process stops fails with the following log. Can anyone help me with this? Should I update protobuf?
[109/609] CXX obj/third_party/protobuf/src/google/protobuf/protobuf.descriptor.pb.o
FAILED: /home/mozc_builder/mozc/src/out_android/mozc_build_tools/ndk-standalone-toolchain/arm64/bin/aarch64-linux-android-g++ -MMD -MF obj/third_party/protobuf/src/google/protobuf/protobuf.descriptor.pb.o.d -DMOZC_BUILD -DCHANNEL_DEV -DMOZC_USE_SEPARATE_CONNECTION_DATA -DMOZC_USE_SEPARATE_DICTIONARY -DNO_USAGE_REWRITER -DGOOGLE_PROTOBUF_NO_RTTI -DOS_ANDROID -D_WCHAR_H_CPLUSPLUS_98_CONFORMANCE_ -DNDEBUG -DQT_NO_DEBUG -DNO_LOGGING -DIGNORE_HELP_FLAG -DIGNORE_INVALID_FLAG -I/home/mozc_builder/mozc/src -Igen -I../../protobuf -I../../third_party/protobuf/src -Wall -Wno-char-subscripts -Wno-sign-compare -Wno-deprecated-declarations -Wwrite-strings -fPIC -fno-exceptions -fmessage-length=0 -fno-strict-aliasing -funsigned-char -include base/namespace.h -pipe -pthread -fno-omit-frame-pointer -fstack-protector --param=ssp-buffer-size=4 -Wno-conversion-null -Wno-unused-function -Wno-unknown-warning-option -Wno-unused-local-typedefs -fPIE -O2 -Wno-deprecated -std=gnu++0x  -c ../../third_party/protobuf/src/google/protobuf/descriptor.pb.cc -o obj/third_party/protobuf/src/google/protobuf/protobuf.descriptor.pb.o
In file included from ../../third_party/protobuf/src/google/protobuf/stubs/atomicops.h:59:0,
from ../../third_party/protobuf/src/google/protobuf/stubs/once.h:81,
from ../../third_party/protobuf/src/google/protobuf/descriptor.pb.cc:10:
../../third_party/protobuf/src/google/protobuf/stubs/platform_macros.h:61:2: error: #error Host architecture was not detected as supported by protobuf
#error Host architecture was not detected as supported by protobuf
^
In file included from ../../third_party/protobuf/src/google/protobuf/stubs/once.h:81:0,
from ../../third_party/protobuf/src/google/protobuf/descriptor.pb.cc:10:
../../third_party/protobuf/src/google/protobuf/stubs/atomicops.h:161:1: error: stray '#' in program
#error "Atomic operations are not supported on your platform"
^
../../third_party/protobuf/src/google/protobuf/stubs/atomicops.h:191:1: note: in expansion of macro 'GOOGLE_PROTOBUF_ATOMICOPS_ERROR'
GOOGLE_PROTOBUF_ATOMICOPS_ERROR
^
../../third_party/protobuf/src/google/protobuf/stubs/atomicops.h:161:2: error: 'error' does not name a type
#error "Atomic operations are not supported on your platform"

Since the build system for Android library has been changed to Bazel, and CIs for Android was resumed.
Please let us close this issue as obsolete.
Thanks,


Add camel-quarkus-gson to the set productized extensions

So, adding camel-gson to cq is just a matter of editing camel-quarkus-product-source.json and then all the other files are generated/updated from there ?

Yes, it is documented in product/README.adoc which I just made little bit more complete: https://github.com/jboss-fuse/camel-quarkus/pull/86


Issue with OSX and Intel Iris Pro under OS X 10.10.5 (14F1605)

kaos:head_shot2 sam$ lua -l cltorch -e 'cltorch.test()'
running tests...
after requiring cltorch.unit_storage
Running 2 tests
1/2 test_get ............................................................ [WAIT]
Using Apple , OpenCL platform: Apple
Using OpenCL device: Iris Pro
dyld: lazy symbol binding failed: Symbol not found: _lua_pcall
Referenced from: /Users/sam/torch/install/lib/libEasyCL.dylib
Expected in: flat namespace
dyld: Symbol not found: _lua_pcall
Referenced from: /Users/sam/torch/install/lib/libEasyCL.dylib
Expected in: flat namespace
Trace/BPT trap: 5
kaos:head_shot2 sam$ th -l cltorch -e 'cltorch.about()'
cltorch.  OpenCL backend for Torch
Built from commit 7979ae8
More info, doc: https://github.com/hughperkins/cltorch
Issues: https://github.com/hughperkins/cltorch/issues
kaos:head_shot2 sam$ uname -a
Darwin kaos.fritz.box 14.5.0 Darwin Kernel Version 14.5.0: Tue Sep  1 21:23:09 PDT 2015; root:xnu-2782.50.1~1/RELEASE_X86_64 x86_64
kaos:head_shot2 sam$ clinfo
Number of platforms                               1
Platform Name                                   Apple
Platform Vendor                                 Apple
Platform Version                                OpenCL 1.2 (May 10 2015 19:38:45)
Platform Profile                                FULL_PROFILE
Platform Extensions                             cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event
Platform Name                                   Apple
Number of devices                                 2
Device Name                                     Intel(R) Core(TM) i7-4750HQ CPU @ 2.00GHz
Device Vendor                                   Intel
Device Vendor ID                                0xffffffff
Device Version                                  OpenCL 1.2
Driver Version                                  1.1
Device OpenCL C Version                         OpenCL C 1.2
Device Type                                     CPU
Device Profile                                  FULL_PROFILE
Max compute units                               8
Max clock frequency                             2000MHz
Device Partition                                (core)
Max number of sub-devices                     0
Supported partition types                     None
Max work item dimensions                        3
Max work item sizes                             1024x1x1
Max work group size                             1024
Preferred work group size multiple              1
Preferred / native vector sizes
char                                                16 / 16
short                                                8 / 8
int                                                  4 / 4
long                                                 2 / 2
half                                                 0 / 0        (n/a)
float                                                4 / 4
double                                               2 / 2        (cl_khr_fp64)
Half-precision Floating-point support           (n/a)
Single-precision Floating-point support         (core)
Denormals                                     Yes
Infinity and NANs                             Yes
Round to nearest                              Yes
Round to zero                                 Yes
Round to infinity                             Yes
IEEE754-2008 fused multiply-add               Yes
Support is emulated in software               No
Correctly-rounded divide and sqrt operations  Yes
Double-precision Floating-point support         (cl_khr_fp64)
Denormals                                     Yes
Infinity and NANs                             Yes
Round to nearest                              Yes
Round to zero                                 Yes
Round to infinity                             Yes
IEEE754-2008 fused multiply-add               Yes
Support is emulated in software               No
Correctly-rounded divide and sqrt operations  No
Address bits                                    64, Little-Endian
Global memory size<PHONE_NUMBER> (8GiB)
Error Correction support                        No
Max memory allocation<PHONE_NUMBER> (2GiB)
Unified memory for Host and Device              Yes
Minimum alignment for any data type             128 bytes
Alignment of base address                       1024 bits (128 bytes)
Global Memory cache type                        Read/Write
Global Memory cache size                        64
Global Memory cache line                        6291456 bytes
Image support                                   Yes
Max number of samplers per kernel             16
Max size for 1D images from buffer            65536 pixels
Max 1D or 2D image array size                 2048 images
Base address alignment for 2D image buffers   1 bytes
Pitch alignment for 2D image buffers          1 bytes
Max 2D image size                             8192x8192 pixels
Max 3D image size                             2048x2048x2048 pixels
Max number of read image args                 128
Max number of write image args                8
Local memory type                               Global
Local memory size                               32768 (32KiB)
Max constant buffer size                        65536 (64KiB)
Max number of constant args                     8
Max size of kernel argument                     4096 (4KiB)
Queue properties
Out-of-order execution                        No
Profiling                                     Yes
Profiling timer resolution                      1ns
Execution capabilities
Run OpenCL kernels                            Yes
Run native kernels                            Yes
Prefer user sync for interop                    Yes
printf() buffer size                            1048576 (1024KiB)
Built-in kernels
Device Available                                Yes
Compiler Available                              Yes
Linker Available                                Yes
Device Extensions                               cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event cl_khr_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_image2d_from_buffer cl_APPLE_fp64_basic_ops cl_APPLE_fixed_alpha_channel_orders cl_APPLE_biased_fixed_point_image_formats cl_APPLE_command_queue_priority
Device Name                                     Iris Pro
Device Vendor                                   Intel
Device Vendor ID                                0x1024500
Device Version                                  OpenCL 1.2
Driver Version                                  1.2(Nov 12 2015 16:12:02)
Device OpenCL C Version                         OpenCL C 1.2
Device Type                                     GPU
Device Profile                                  FULL_PROFILE
Max compute units                               40
Max clock frequency                             1200MHz
Device Partition                                (core)
Max number of sub-devices                     0
Supported partition types                     None
Max work item dimensions                        3
Max work item sizes                             512x512x512
Max work group size                             512
Preferred work group size multiple              32
Preferred / native vector sizes
char                                                 1 / 1
short                                                1 / 1
int                                                  1 / 1
long                                                 1 / 1
half                                                 0 / 0        (n/a)
float                                                1 / 1
double                                               0 / 0        (n/a)
Half-precision Floating-point support           (n/a)
Single-precision Floating-point support         (core)
Denormals                                     No
Infinity and NANs                             Yes
Round to nearest                              Yes
Round to zero                                 Yes
Round to infinity                             Yes
IEEE754-2008 fused multiply-add               Yes
Support is emulated in software               No
Correctly-rounded divide and sqrt operations  Yes
Double-precision Floating-point support         (n/a)
Address bits                                    64, Little-Endian
Global memory size<PHONE_NUMBER> (1.5GiB)
Error Correction support                        No
Max memory allocation                           402653184 (384MiB)
Unified memory for Host and Device              Yes
Minimum alignment for any data type             128 bytes
Alignment of base address                       1024 bits (128 bytes)
Global Memory cache type                        None
Image support                                   Yes
Max number of samplers per kernel             16
Max size for 1D images from buffer            25165824 pixels
Max 1D or 2D image array size                 2048 images
Base address alignment for 2D image buffers   4 bytes
Pitch alignment for 2D image buffers          32 bytes
Max 2D image size                             16384x16384 pixels
Max 3D image size                             2048x2048x2048 pixels
Max number of read image args                 128
Max number of write image args                8
Local memory type                               Local
Local memory size                               65536 (64KiB)
Max constant buffer size                        65536 (64KiB)
Max number of constant args                     8
Max size of kernel argument                     1024
Queue properties
Out-of-order execution                        No
Profiling                                     Yes
Profiling timer resolution                      80ns
Execution capabilities
Run OpenCL kernels                            Yes
Run native kernels                            No
Prefer user sync for interop                    Yes
printf() buffer size                            1048576 (1024KiB)
Built-in kernels
Device Available                                Yes
Compiler Available                              Yes
Linker Available                                Yes
Device Extensions                               cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_image2d_from_buffer cl_khr_gl_depth_images cl_khr_depth_images cl_khr_3d_image_writes
NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  Apple
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Success [P0]
clCreateContext(NULL, ...) [default]            Success [P0]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  Success (1)
Platform Name                                 Apple
Device Name                                   Intel(R) Core(TM) i7-4750HQ CPU @ 2.00GHz
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  Success (1)
Platform Name                                 Apple
Device Name                                   Iris Pro
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  <checkNullCtxFromType:2073: create context from type CL_DEVICE_TYPE_CUSTOM : error -30>
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  Success (2)
Platform Name                                 Apple
Device Name                                   Iris Pro
Device Name                                   Intel(R) Core(TM) i7-4750HQ CPU @ 2.00GHz
Just thinking about it I used lua from brew rather than the luajit from torch, could that be the issue?
Sam

Hmmmm, I test using luajit.  It should work using lua, and if it doesnt I need to fix that.  However, I havent actually tested it as such recently/ever, and you can probably fix your current issue by using luajit from torch,rather than lua from brew.

I just wanted to chime in here regarding a similar issue. The error seems to specifically be:
"dyld: lazy symbol binding failed: Symbol not found: _lua_pcall"

Using the laujit version does appear to work though as you've suggested.
The GPU performance does not seem to be a huge improvement over the CPU for whatever reason. I'm using dual AMD Radeon HD - FirePro D700, and have tried using --gpu 0, --gpu 1, --opencl, and they all seem to be about the same. If you have any suggestions on how to increase performance out out the GPU I'm eager to know — thanks.

I was having this issue on my Mac when I built cltorch with lua 5.2 using the following command:
TORCH_LUA_VERSION=LUA52 ./install.sh
When I rebuilt it with lua 5.1, the error went away.  I'm not sure why though.  If you're having problems, try doing:
cd ~/torch-cl
./clean.sh
TORCH_LUA_VERSION=LUA51 ./install.sh


ffmpeg build failure

Operating system
linux ubuntu18
Compiler
gcc
Steps to reproduce the behavior
suddenly ffmpeg is try to build pkgconfig.  that seems new.  anyway, the pkgconfig won't run now
should this one be issued against pkgconfig?

Failure logs
-- Building ffmpeg for Release
-- Building Debug Options: --debug --disable-optimizations --extra-ldflags=-L"/home/build/tmp/Qi/qitissue/build-master-manifest-gcc-9-ninja-RelWithDebInfo/vcpkg_installed/x64-linux-dynamic/debug/lib"
-- Building ffmpeg for Debug
-- Fixing pkgconfig file: /home/build/tmp/Qi/qitissue/3rdParty/vcpkg/packages/ffmpeg_x64-linux-dynamic/lib/pkgconfig/libavcodec.pc
-- Fixing pkgconfig file: /home/build/tmp/Qi/qitissue/3rdParty/vcpkg/packages/ffmpeg_x64-linux-dynamic/lib/pkgconfig/libavdevice.pc
-- Fixing pkgconfig file: /home/build/tmp/Qi/qitissue/3rdParty/vcpkg/packages/ffmpeg_x64-linux-dynamic/lib/pkgconfig/libavfilter.pc
-- Fixing pkgconfig file: /home/build/tmp/Qi/qitissue/3rdParty/vcpkg/packages/ffmpeg_x64-linux-dynamic/lib/pkgconfig/libavformat.pc
-- Fixing pkgconfig file: /home/build/tmp/Qi/qitissue/3rdParty/vcpkg/packages/ffmpeg_x64-linux-dynamic/lib/pkgconfig/libavutil.pc
-- Fixing pkgconfig file: /home/build/tmp/Qi/qitissue/3rdParty/vcpkg/packages/ffmpeg_x64-linux-dynamic/lib/pkgconfig/libswresample.pc
-- Fixing pkgconfig file: /home/build/tmp/Qi/qitissue/3rdParty/vcpkg/packages/ffmpeg_x64-linux-dynamic/lib/pkgconfig/libswscale.pc
-- Fixing pkgconfig file: /home/build/tmp/Qi/qitissue/3rdParty/vcpkg/packages/ffmpeg_x64-linux-dynamic/debug/lib/pkgconfig/libavcodec.pc
-- Fixing pkgconfig file: /home/build/tmp/Qi/qitissue/3rdParty/vcpkg/packages/ffmpeg_x64-linux-dynamic/debug/lib/pkgconfig/libavdevice.pc
-- Fixing pkgconfig file: /home/build/tmp/Qi/qitissue/3rdParty/vcpkg/packages/ffmpeg_x64-linux-dynamic/debug/lib/pkgconfig/libavfilter.pc
-- Fixing pkgconfig file: /home/build/tmp/Qi/qitissue/3rdParty/vcpkg/packages/ffmpeg_x64-linux-dynamic/debug/lib/pkgconfig/libavformat.pc
-- Fixing pkgconfig file: /home/build/tmp/Qi/qitissue/3rdParty/vcpkg/packages/ffmpeg_x64-linux-dynamic/debug/lib/pkgconfig/libavutil.pc
-- Fixing pkgconfig file: /home/build/tmp/Qi/qitissue/3rdParty/vcpkg/packages/ffmpeg_x64-linux-dynamic/debug/lib/pkgconfig/libswresample.pc
-- Fixing pkgconfig file: /home/build/tmp/Qi/qitissue/3rdParty/vcpkg/packages/ffmpeg_x64-linux-dynamic/debug/lib/pkgconfig/libswscale.pc
/home/build/tmp/Qi/qitissue/build-master-manifest-gcc-9-ninja-RelWithDebInfo/vcpkg_installed/x64-linux-dynamic/tools/pkgconf/pkgconf: symbol lookup error: /home/build/tmp/Qi/qitissue/build-master-manifest-gcc-9-ninja-RelWithDebInfo/vcpkg_installed/x64-linux-dynamic/tools/pkgconf/pkgconf: undefined symbol: pkgconf_cross_personality_deinit
CMake Error at /home/build/tmp/Qi/qitissue/build-master-manifest-gcc-9-ninja-RelWithDebInfo/vcpkg_installed/x64-linux-dynamic/share/vcpkg-pkgconfig-get-modules/x_vcpkg_pkgconfig_get_modules.cmake:27 (execute_process):
  execute_process failed command indexes:

    1: "Child return code: 127"

Call Stack (most recent call first):
  /home/build/tmp/Qi/qitissue/3rdParty/vcpkg/buildtrees/versioning_/versions/ffmpeg/9f33fe16e3a4e278bc2eb92b24483d00b90e9f3a/portfile.cmake:757 (x_vcpkg_pkgconfig_get_modules)
  /home/build/tmp/Qi/qitissue/3rdParty/vcpkg/scripts/ports.cmake:168 (include)

Additional context
No response

This is a vcpkg issue. x64-linux-dynamic is only a second class citizen in vcpkg. Did you also change the host triplet to x64-linux-dynamic?

yes I have this:
        set(VCPKG_HOST_TRIPLET "x64-linux-dynamic")
        set(VCPKG_TARGET_TRIPLET "x64-linux-dynamic")

Well, better leave the host triplet on the supported, static x64-linux, even if it means building a few extra packages.

seems to work today.  I don't know what changed.  anyway, closing this

no, still there.

Can/did you remove pkgconf:x64-linux-dynamic?
You shouldn't close the issue. The original problem should be fixed despite being a "community triplet" issue. I only want to give you a quick mitigation now.

Found it. I hope.
A long time ago I created my own triplet file for x64-linux-dynamic which is being found by my project's buildsystem.
if I add set(VCPKG_FIXUP_ELF_RPATH ON)  to that file things work as expected.
I think the best solution is to trash my own  x64-linux-dynamic triplet file and use the official community version.


Translate Part 5 into Hindi

Hey @rcallaby ,
I can help you with all Hindi translation issues open, please assign me.
Thank you!

@ruhi47 Of course, thanks for helping out.


Clicking on the "Edit" button for the bot creation and tutorial pages lead to a 404

Describe the bug
Hello!
Clicking on the "Edit" button in the top-right corner of these pages leads to a 404 page:

Tutorial: Create a basic bot ➡ leads to non-existent https://github.com/MicrosoftDocs/bot-docs/blob/live/articles/v4sdk/bot-builder-tutorial-create-basic-bot.md
Tutorial: Deploy a basic bot ➡ leads to non-existent https://github.com/MicrosoftDocs/bot-docs/blob/live/articles/v4sdk/bot-builder-tutorial-deploy-basic-bot.md

To Reproduce
Steps to reproduce the behavior:

Go to Tutorial: Create a basic bot or Tutorial: Deploy a basic bot
Click on the "Edit" button
See 404

Expected behavior
To be redirected to the docs page on GitHub.
Screenshots
Not attaching them since it's a default GitHub 404 page, let me know if I need to include them anyway.
Additional context
Note that the edit button for the last tutorial works correctly: Tutorial: Use QnA Maker in your bot to answer questions
redirects to https://github.com/MicrosoftDocs/bot-docs/blob/live/articles/v4sdk/bot-builder-tutorial-add-qna.md.

We've disabled the edit button for now, until we update the full process on our side. In the meantime, please file issues if you find problems in an article, or suggest edits in the private bot-docs-pr repo.


Default Julia startup arguments for Juno and the REPL

The new arguments for Julia v1.0 include the ability to activate a project when julia starts up.
It isn't documented especially well yet, but I think the options are:

--project=. to select the current project file
<EMAIL_ADDRESS>to recursively go up the tree until it finds a project file (or default otherwise)?

These can be set in Juno (by going to the Julia Client settings and setting the Additional Julia Startup Arguments.
The question is: what should the settings be in our setup guides - and is it something we should submit a PR for to the Juno to change the default.
We should ask on slack to see how it is supposed to work test both versions with the following permutations:

[ ] Open up the Juno repl after starting Juno in a particular directory with a project file
[ ] Same, but with a project that doesn't have a project file yet.  This shouldn't error, and should default to the standard v1.0 project
[ ] Same but in a sub-directory of something with a project file.  It would be nice if it picked up the parent directory project file, but not essential.  Again, shouldn't error

We should also make sure that this workflow is the one we want.  Finally, what other features for working with Pkg3 would make sense.  An instantiate button/command?  A test one?  Asking to create a new project when starting the REPL in a folder without a project file, etc.

sorry @jstac , wrong assignment... unless you want to learn the new package manager :-)

Sounds good, @jlperla. Will do. Also worth noting that recommended startup for Atom (at least on macOS, and I suspect on Linux) is to run atom . in the folder you want to load. So that could give us a natural default of "check if there's a Project.toml, and load it if there is."

Yeah but in practice after you use Atom, you right click on the menubar to start the project.  Not sure on OSX though.
I am not sure if the default of --project=. works... the problem is that if it starts in a folder without a Project file, it doesn't seem to default to the basic v1.0 one.  We can ask what the @. is supposed to do.

Discussed with the core-devs.  The advice needs to be not to change those settings in Juno... if people want to do it themselves, then they probably know enough about environment variables for it to be caveat emptor.
The issue is that it can be a security hole, and hence we want to force users to make an active decision to activate a project.


Best practice for having multiple themes

Is there a best practice for having multiple themes?
E.g. a light and dark theme which can be toggled at runtime?
I had no problem in setting up one theme with sveltekit. Also overriding variables using @forward was fine.
But I could not find a solution to get it working with multiple theme files, because overriding with @forward can only be defined in one file because it's at compile time.
But for having multiple themes there must be some other dynamic approach 🤔
Of course I could globally overwrite every attraction component class, but would be nice to be able to only override the variables dynamically.

I must confess that this issue wasn't really considered, hence there are no best practices that we may offer. In fact, considering this right now, I don't even know how I would implement this.
All I know, if this feature is to be implemented nicely, it would have to be an overhaul in the styles of Attractions itself, I don't think much elegant solutions can be done from outside. I'm thinking something like a Sass function for selectors that can be overriden to turn a regular selector into a dark theme selector (that could prepend :global(body.dark)  by default) and a special set of variables for the dark theme colors, and make it opt-in somehow. But I can't promise to get working on that any time soon, so if you're interested in a major contribution like this, I'd gladly provide guidance :)

I saw this other issue where one approach was using css variables as an input to the scss variables.
But i think then we can not use the nice sass helpers like color.adjust(...) etc. anymore.
ok let's see I will also think about it and maybe look how other frameworks tackle this.
thx 🚀


Allow Comments at Beginning of Prelude & Parse Code Directly

Closes #80. Updates the Parser to allow whitespace before the declarations in the prelude. The declarations themselves already allow whitespace inbetween themselves, but this makes it so comments at the top are valid now.

Since this PR already was messing with prelude stuff. I added an additional commit to interpret code directly from a string for /runCode. Before it was writing temporary files, but thinking about it there was no need to do that, as they're read immediately after writing just to parse the contents. I added some additional functions to the parser to allow parsing of content directly without a file.

There's new conflicts after I merged your previous PR. I tried fixing them but messed it up once, so I will pass it off to you. Once they're resolved I will check it out again.


Patch hourTime option in the dropdown mode

Bug fix for the new option 'hourTime' in the 'dropdown' mode

I already changed. I just push a wrong version.

I think there is still a "problem" in the dropdown mode : there is no check of the hourTime option in the moment-time div => it's always the 12 hour mode