/dist/crypto.js uses CommonJS syntax, even though it is in an ES module

Hi! I'm trying to make a function for generating ALTCHA challenges on my Appwrite server, but while doing so I've found a bug in altcha-lib.
This bug prevents the altcha-lib library from working in NodeJS 16.0, as this condition is only triggered when crypto is not present in globalThis.
if (!('crypto' in globalThis)) {
    // eslint-disable-next-line @typescript-eslint/no-var-requires
    globalThis.crypto = require('node:crypto').webcrypto; // <-- Should be using import, not require
}
export {};

Trying to use altcha-lib in NodeJS 16.0 gives this error:
ReferenceError: require is not defined in ES module scope, you can use import instead
This file is being treated as an ES module because it has a '.js' file extension and '/usr/local/server/src/function/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
    at file:///usr/local/server/src/function/node_modules/altcha-lib/dist/crypto.js:3:5
    at ModuleJob.run (node:internal/modules/esm/module_job:198:25)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:385:24)
    at async importModuleDynamicallyWrapper (node:internal/vm/module:437:15)
    at async execute (/usr/local/server/src/server.js:142:32)
    at async action (/usr/local/server/src/server.js:174:13)
    at async /usr/local/server/src/server.js:10:9

Would it be possible to change the syntax to ES module syntax (for compatibility reasons)? Thank you!

Hi, thanks for reporting, this part of code has been removed from the latest version 0.4.0, allowing you to add the global reference manually depending your setup. You'll have to add this before using the lib:
import { webcrypto } from 'node:crypto';

globalThis.crypto = webcrypto;


stm32: async hal implementations

I thought it'd be good to have a tracking issue for this, so people can coordinate work on this topic

[ ] USART
[ ] I2C
[ ] SPI
[ ] ADC
[ ] Delay
[ ] GPIO

Don't forget the new async Delay trait and the async pin traits that are now in the PR.

Is this in reference to some embedded-hal async variants, or within Embassy's own async traits?

This is within Embassy's own traits. Currently the STM32 hal only mostly has blocking APIs.

Ah, right on.
So we've made pretty good progress with USART and SPI for all versions, and @thalesfragoso has a soon-to-land PR for I2C. They were all awaiting DMA implementation, which we now have behind us.
There's async Delay also in-tree for STM32.

All the features in OP are suppored in embassy-stm32 now.


update not fetching virtualenv installed dependencies

Context
I've used Zappa many times before but I'm attempting to $ zappa update dev an already $ zappa deploy dev project.
Expected Behavior
I expect when I perform a $ zappa deploy dev that all the dependencies in the active venv to be packed up.
Actual Behavior
$ zappa deploy dev only installs
 - scipy==1.4.1: Using locally cached manylinux wheel
 - pandas==1.0.1: Using locally cached manylinux wheel
 - numpy==1.18.1: Using locally cached manylinux wheel
 - markupsafe==1.1.1: Downloading

Full output from $ zappa deploy dev is
Calling update for stage dev..
Downloading and installing dependencies..
- scipy==1.4.1: Using locally cached manylinux wheel
- pandas==1.0.1: Using locally cached manylinux wheel
- numpy==1.18.1: Using locally cached manylinux wheel
- markupsafe==1.1.1: Downloading
Packaging project as gzipped tarball.
You are using pip version 19.0.3, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Downloading and installing dependencies..
Packaging project as zip.
Uploading ds-production-dev-1586805569.tar.gz (272.4MiB)..
Updating Lambda function code..
Updating Lambda function configuration..
Uploading ds-production-dev-template-1586806171.json (1.6KiB)..
Deploying API Gateway..
Scheduling..
Unscheduled ds-production-dev-zappa-keep-warm-handler.keep_warm_callback.
Scheduled ds-production-dev-zappa-keep-warm-handler.keep_warm_callback with expression rate(4 minutes)!

Possible Fix
Have none.
Steps to Reproduce
Since it a private repo, one can't actually follow these steps on my repo

create a new virtual env python3 -m venv venv
activate that newly created env source venv/bin/activate
installed dependencies pip3 install -r requirements.txt
attempt to update $ zappa update dev

Your Environment

Using Python 3.7.4
OSX 10.15.4 (19E287)
Zappa version used: 0.51.0
output of $ pip3 freeze --local

argcomplete==1.11.1
boto3==1.12.39
botocore==1.15.39
certifi==2<IP_ADDRESS>
cfn-flip==1.2.2
chardet==3.0.4
click==7.1.1
dill==<IP_ADDRESS>
docutils==0.15.2
durationpy==0.5
Flask==1.1.2
future==0.18.2
hjson==3.0.1
idna==2.9
importlib-metadata==1.6.0
itsdangerous==1.1.0
Jinja2==2.11.1
jmespath==0.9.5
joblib==0.14.1
kappa==0.6.0
MarkupSafe==1.1.1
numpy==1.18.2
pandas==1.0.3
pip-tools==4.5.1
placebo==0.9.0
python-dateutil==2.6.1
python-slugify==4.0.0
pytz==2019.3
PyYAML==5.3.1
requests==2.23.0
s3transfer==0.3.3
scikit-learn==0.22.2.post1
scipy==1.4.1
six==1.14.0
text-unidecode==1.3
toml==0.10.0
tqdm==4.45.0
troposphere==2.6.0
urllib3==1.25.8
Werkzeug==0.16.1
wsgi-request-logger==0.4.6
zappa==0.51.0
zipp==3.1.0

Your zappa_settings.json:

{
    "dev": {
        "app_function": "api.api.app",
        "profile_name": "personal",
        "project_name": "ds-production",
        "runtime": "python3.7",
        "s3_bucket": "zappa-5c9lkbow7",
        "slim_handler": true
    }
}

While the output didn't show all my dependencies being installed, they were infact installed.


Cloning from DevOps with remote WSL active

Issue:
On Win10 (Build 1904) using WSL2 and an active remote WSL session for my distro (Ubuntu 18.04), if I select 'clone in VS Code' from an Azure Devops repo and then when VS Code pops up I select a local windows folder (so I'm not just cloing into a WSL linux directory) to clone into (by using the 'Show Local' button and then selecting my local windows code folder using the file explorer windows that pops up as a result of using the 'Show Local' folder), then vs code shows the repo being cloned (progress bar, bottom right) but once finished the folder doesn't show up in the target windows folder. If I clone using VS Code without an active remote WSL session then everything clones into my windows folder without issue.
A search of my hard drive shows that cloning using an active remote WSL session results in the repo being cloned to:
C:\Users\username.vscode\extensions\ms-vscode-remote.remote-wsl-0.44.2\c\Users\username\source\repos\c\Users\username\source\repos
It should have gone to (i.e. this is the target path and directory for the clone):
C:\Users\username\source\repos
It's not a huge issue - I now clone and then activate my remote WSL session, but it looks like vs code tries to support cloning whilst a remote session is active so thought I'd mention it.

select a local windows folder

If you are in a WSL session, please select a WSL folder
If you'd like it to go to a local Windows folder, please use a normal Windows session.


Error occurred while trying tns run android

Dears
whenever i try to run this app i get  an error
below is the error details

Executing before-liveSync hook from /FakePath/nativescript-sdk-examples-ng/hooks/before-liveSync/nativescript-angular-sync.js
Skipping prepare.
Building project...
Gradle build...
+ applying user-defined configuration from /FakePath/nativescript-sdk-examples-ng/app/App_Resources/Android/app.gradle
Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
Configuration 'debugCompile' in project ':app' is deprecated. Use 'debugImplementation' instead.
+ adding nativescript runtime package dependency: nativescript-optimized
+ adding aar plugin dependency: /FakePath/nativescript-sdk-examples-ng/node_modules/tns-core-modules/node_modules/tns-core-modules-widgets/platforms/android/widgets-release.aar
FAILURE: Build failed with an exception.

What went wrong:
A problem occurred configuring project ':app'.

All flavors must now belong to a named flavor dimension. Learn more at https://d.android.com/r/tools/flavorDimensions-missing-error-message.html

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Get more help at https://help.gradle.org

BUILD FAILED in 1s
Unable to apply changes on device: emulator-5554. Error is: Command ./gradlew failed with exit code 1.
Executing after-watch hook from /FakePath/nativescript-sdk-examples-ng/hooks/after-watch/nativescript-dev-typescript.js

Any thoughts on this issue?
regards

I had just git cloned the repo and ran the tns run android command and got the exact same error
Node v6.13.0 - Win10 - NativeScript v3.4.3
Presently learning more about Angular (v5) animations inside NativeScript. Would love to play with a working version of this project ;)

1

i also having same error.
i'm using tns cli 3.4.2

Go into your package.json file and change "tns-android":
"tns-android": {
"version": "3.4.1"
}

Hi all,
The nativescript-sdk-examples-ng application refers next version of tns-core-modules, ios and android runtime, which requires @next CLI as well. This is needed because the app is used for testing the upcoming release.
As you have already discussed, to build the project with the official CLI you should change the versions in the package.json file as follow:
{
 ..................
  "nativescript": {
    "id": "org.nativescript.nativescriptsdkexamplesng",
    "tns-ios": {
      "version": "3.4.1"
    },
    "tns-android": {
      "version": "3.4.2"
    }
  },
  "dependencies": {
   ..................
    "tns-core-modules": "3.4.0",
   ..................
  },

 ..............
}

This issue still facing in build.... Any solution on this??

Hi @pujareaditya,
Please provide more info about the exact steps, which you are using while building the app. Also, attache the error log from the console.
I tested the Android and iOS build on my side after making a clean git clone and it was built correctly.

Hello same problem here as soon as I run
tns update next
My project wouldn't run.
Log :     problem occurred configuring project ':app'.
> All flavors must now belong to a named flavor dimension. Learn more at
https://d.android.com/r/tools/flavorDimensions-missing-error-message.html
Information and versions :

cmd ->   tns info
nativescript     │ 3.5.0-2017-12-13-10254 │ 4.1.1          │ Update available
tns-core-modules │ 4.2.0-2018-06-21-01    │ 4.1.0          │ Up to date
tns-android      │ 4.2.0-2018-06-18-02    │ 4.1.3          │ Up to date

cmd -> node -v
v10.4.1

Removing and adding android platform solved this for me.

Thanks @TheOnlyMatt , that's also what worked for me. In particular:
$ rm -rf platforms/android/
$ tns build android

Thanks @TheOnlyMatt @t3hmrman

I just want to share this, in my package.json's scripts block I added a command "cleanse" and added the "rm -rf platforms" command. For easier clearing of the platforms folder.
"scripts": {
    "cleanse": "rm -rf platforms",
    ...
}


Fix python3Packages.astroquery

Description of changes

python3Packages.astroquery has been broken since the last automatic update, because of a missing dependency (pyvo). This PR adds the missing dependency and fix astroquery build. The tests for astroquery have been restored.
Note that this requires #167922 to be merged first in order to build.
Things done

Built on platform(s)

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

[x] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] 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.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (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 168006 run on x86_64-linux 1

4 packages built:

python310Packages.astroquery
python310Packages.pyvo
python39Packages.astroquery
python39Packages.pyvo


GH-2602: Fix x-delay header to Long

#2602

Thanks for the review.
Is it okay if I change it like this?

Remaining deprecated API usage is to ensure that the old setDelay method works.
X_DELAY_MAX  is set to public for user pre-checking.
link this
if (delay > X_DELAY_MAX) {
	// do something
}
rabbitTemplate.convertAndSend(...)

All problems have been fixed, and I have run the ./gradlew check.
Thanks for your help.

Merged as https://github.com/spring-projects/spring-amqp/commit/966338e95a1e63fddda0b8fef2c95c7597516be2.
@raylax ,
thank you for contribution; looking forward for more!


ProtectKeysWithCertificate only searches the "My" StoreName

We push various certificates to workstations and server groups via GPO, and sometimes these end up in the Trusted Root Certification Authorities store.
ProtectKeysWithCertificate(thumbprint) seems to only search StoreName.My by default, e.g. the Personal store for both the Current User and the Local Computer accounts.
This means that we cannot use certificates in anything but the Personal stores to encrypt keys at rest.
A) Can this be a feature added? The ability to either automatically search all stores, or the ability to search specific StoreNames. e.g. StoreName.Root.
configure.ProtectKeysWithCertificate("thumbprint", StoreName.Root);
B) Or...is it the intention that if I need to search for a certificate by thumbprint in a different StoreName, that I just duplicate the code already in the CertificateResolver and search my own stores with the X509Store.
var store = new X509Store(StoreName.Root, StoreLocation.LocalMachine);
try
{
    store.Open(OpenFlags.ReadOnly);
    var matching = store.Certificates.Find(
        X509FindType.FindByThumbprint,
        "thumbprint",
        validOnly: true);
}
finally
{
    store.Close();
}

Thanks.

@blowdart thoughts?

By design. You can of courser provide your own X509Certificate2 when configuring.

Providing certificate doesn't solves anything.
Using ProtectKeysWithCertificate( X509Certificate2 ) still searches the stores and if the certificate is not there raises Cryptography_Xml_MissingDecryptionKey (System.Security.Cryptography.Xml.EncryptedXml).
If the certificate is in the store then the exception becomes Bad key\r\n which is guess is because of the certificate purposes.

I also ran into:
System.InvalidOperationException: A certificate with the thumbprint 'C03BB5A6410741CDD2927B4FF88C3E67215A393B' could not be found.

and looking at the code here - i get the impression that it should be implemented such it first look in User Store, then Machine. Therefore I am confused that it fails with above when below works- where I find the certificate myself.
services.AddDataProtection()                     .ProtectKeysWithCertificate(X509.LocalMachine.My.Thumbprint.Find("C03BB5A6410741CDD2927B4FF88C3E67215A393B", validOnly: false).FirstOrDefault())

Anyway, the latter solution is fine for me - just expected the overload to work also

Remarking for triage: .NET Core 2.0 adds support for EncryptedXml, however, at the moment, the X509Store on Linux will only support the 'Root' and 'CertificateAuthority' stores.
See this issue: https://github.com/dotnet/corefx/issues/3690 - currently marked as up-for-grabs

To clarify my last comment, CurrentUser\My is supported on Linux in .NET Core 2.0. It's LocalMachine\My that isn't which means there's no good machine-wide place to add store certs.

This issue was moved to aspnet/Home#2524


Saving a script during debugging causes 2D editor to steal focus

Godot 3.2 alpha1, beta1
Godot 3.2.2 rc1
When I test my game (or debug), it happens that I leave the game running while I do some corrections to my code, and doing so I sometimes press Ctrl+S, which in my shortcut settings saves the current script.
However, when I do, Godot switches to the 2D editor. It does that also if I use the File->Save menu.
It doesn't always happen, but when following the same steps in my project it happens everytime. I'm not sure which specific step causes it.
My project has a main scene with instances of other scenes in it. What I do:

Have main scene open
Start debugging session
In the main scene, click on an instance icon to open its scene (that one might be optional but I'm not sure)
Click on a node from the scene tree
Switch to the Script editor
Write something
Save script: boom, editor switches to 2D editor.

Affects 3.2 final also.
Since my automatic muscle memory ctrl-S hand saves every 30 seconds this makes Godot 3.2 almost unusable for me.

Just another +1. Its super annoying.
Only happens when a node is selected in the scene AND currently running debug (Thx Zylan i didn't realized before that it  only occurs when running debug).

Keeps happening...

By the way, I think the way to reproduce this is to have a _process method on the selected node. Still not 100% sure since the bug was in a really different place.

What exactly is meant by "debug mode" here? I've unchecked everything under "Debug" menu, but this still happens to me on play, depending on the node selected, and without making any changes or manually saving.

Start debugging session

Means you click the "Play" button of the editor


Add dependent libs to shell-stack.nix: gmp and libffi

Would not compile on NixOS without these added, would fail with missing .so files.
The messages were akin to:
setenv                           > configure
setenv                           > /home/fizzixnerd/.stack/setup-exe-cache/x86_64-linux-nix/Cabal-simple_mPHDZzAJ_<IP_ADDRESS>_ghc-8.10.2: error while loading shared libraries: libffi.so.7: cannot open shared object file: No such file or directory

Thanks, Matt.
Can you still reproduce those errors? I suppose they are slightly old since we moved to ghc-8.10.7, and they refer to ghc-8.10.2.

I can no longer reproduce these errors. I even tried deleting ~/.stack to ensure things were recompiled, and everything works fine. :shrug: heck if I know!
Closing.


No validation error in the response when validating a @RequestParam

Hi,
I've been trying to validate a @RequestParam in a controller method, like this:
public ResponseEntity<Page<User>> getAllUsers(@RequestParam(value = "page", defaultValue = "0", required = false)  @Min(value = 0, message = "Page must be positive") int page)
But when the validation fails the response only says:
{     "code": "VALIDATION_FAILED",     "message": "Validation failed. Error count: 1" }
instead of showing which parameter failed and the validation error.
I've noticed that the validation error gets logged, along with other message:
i.g.w.e.ErrorHandlingControllerAdvice    : getAllUsers.page: The page must be positive
h.ConstraintViolationApiExceptionHandler : Unable to convert constraint violation with element kind PARAMETER: ConstraintViolationImpl{interpolatedMessage='The page must be positive', propertyPath=getAllSimulatorConfigs.page, rootBeanClass=class com.predictor.api.controller.SimulatorConfigController, messageTemplate='The page must be positive'}
Is there something that I can do to send the error in the json response?

This is indeed an oversight in the library. I will fix it.
I would propose something like this:
{
  "code": "VALIDATION_FAILED",
  "message": "Validation failed. Error count: 1",
  "parameterErrors": [
    {
      "code": "VALUE_LESS_THAN_MIN",
      "message": "must be greater than or equal to 0",
      "property": "someGetMethod.page",
      "rejectedValue": -1
    }
  ]
}

Note:

It uses parameterErrors (next to the fieldErrors and globalErrors that already exist.
Not sure if property is the best name for the indication of the method and the parameter name? Or maybe only the parameter name is needed as the name of the method is probably not that useful for the caller?

Let me know your thoughts on this!

Thank you for the quick answer.

I think grouping them in a parameterErros array is a good idea.
I don't think the name of the method is useful to the caller, so I would leave it as parameter with just the name of the parameter.

Ok, I have done it like that. If you want, you can take a look at PR #21 . If you don't have any remarks, I can merge and do a release.

Nothing else to add.
Thank you again for the quick answer!


example from README fails in python3 - comparing bytes to (unicode) string

Running the first example in the README under python 3.5.2, the assertion fails:
assert conn.get_bucket('mybucket').get_key('steve').get_contents_as_string() == 'is awesome'

Because 'is awesome' is a (unicode) string, and conn.get_bucket('mybucket').get_key('steve').get_contents_as_string() returns an object of type bytes.
mock = moto.mock_s3()
mock.start()
conn = boto.connect_s3()
conn.create_bucket('mybucket')
model_instance = MyModel('steve', 'is awesome')
model_instance.save()
actual = conn.get_bucket('mybucket').get_key('steve').get_contents_as_string()
actual # returns "b'is awesome'"
actual.__class__ # returns "bytes"

Thanks for opening.
We don't officially support Python 3.5 as of yet. I would be happy to accept some PRs though if anyone is interested in adding it.

I've updated the README. It should be good now. Let me know if there are still issues.


⚠ Bofrost.fr has degraded performance

In 0435f5a, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1267 ms

Resolved: Bofrost.fr performance has improved in c296dfc.


Insert from dataframe to Nullable(Float) column depends on how values are ordered

Describe the bug
I am trying to insert object column from dataframe to Nullable(Float64) column in ClickHouse. Values in df are str convertible to float or  None. The insert succeeds when the first value in the block is str, but fails if it's None (the corresponding columns in the example below are float_col_1 and float_col_2).
What I have found:

here Nones are replaced with 0
on the next step here, if None is the first in the block and has already become 0 (int), all the str values won't be converted, and this leads to an error

N.B.: however, the problem doesn't appear with integers as strings, as they are converted to int here
Steps to reproduce

run clickhouse server
run code example

Expected behaviour
The same result no matter how the values ordered.
Code example
import pandas as pd
from clickhouse_connect import get_client

def main():
    client = get_client(host="localhost", database="default")
    client.command("DROP TABLE IF EXISTS insert_df_test")
    client.command(
        """CREATE TABLE insert_df_test
        (
            row_id UInt64,
            float_col_1 Nullable(Float64),
            float_col_2 Nullable(Float64)
        )
        ENGINE MergeTree
        ORDER BY row_id
        """
    )
    df = pd.DataFrame(
        [[0, '1.0', None], [1, None, '1.0']],
        columns=["row_id", "float_col_1", "float_col_2"],
    )
    client.insert_df("insert_df_test", df)

if __name__ == '__main__':
    main()

clickhouse-connect and/or ClickHouse server logs

Error traceback
Error serializing column `float_col_2` into data type `Nullable(Float64)`
Traceback (most recent call last):
  File "C:\Users\user\PycharmProjects\clicktest\venv\Lib\site-packages\clickhouse_connect\driver\common.py", line 57, in write_array
    dest += buff.pack(*column)
            ^^^^^^^^^^^^^^^^^^
struct.error: required argument is not a float

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\user\PycharmProjects\clicktest\venv\Lib\site-packages\clickhouse_connect\driver\transform.py", line 104, in chunk_gen
    col_type.write_column(data, output, context)
  File "C:\Users\user\PycharmProjects\clicktest\venv\Lib\site-packages\clickhouse_connect\datatypes\base.py", line 209, in write_column
    self.write_column_data(column, dest, ctx)
  File "C:\Users\user\PycharmProjects\clicktest\venv\Lib\site-packages\clickhouse_connect\datatypes\base.py", line 224, in write_column_data
    self._write_column_binary(column, dest, ctx)
  File "C:\Users\user\PycharmProjects\clicktest\venv\Lib\site-packages\clickhouse_connect\datatypes\base.py", line 341, in _write_column_binary
    write_array(self._array_type, column, dest, ctx.column_name)
  File "C:\Users\user\PycharmProjects\clicktest\venv\Lib\site-packages\clickhouse_connect\driver\common.py", line 62, in write_array
    raise DataError(f'Unable to create Python array{col_msg}.  This is usually caused by trying to insert None ' +
clickhouse_connect.driver.exceptions.DataError: Unable to create Python array for source column `float_col_2`.  This is usually caused by trying to insert None values into a ClickHouse column that is not Nullable
Traceback (most recent call last):
  File "C:\Users\user\PycharmProjects\clicktest\venv\Lib\site-packages\clickhouse_connect\driver\common.py", line 57, in write_array
    dest += buff.pack(*column)
            ^^^^^^^^^^^^^^^^^^
struct.error: required argument is not a float

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\user\PycharmProjects\clicktest\venv\Lib\site-packages\clickhouse_connect\driver\transform.py", line 104, in chunk_gen
    col_type.write_column(data, output, context)
  File "C:\Users\user\PycharmProjects\clicktest\venv\Lib\site-packages\clickhouse_connect\datatypes\base.py", line 209, in write_column
    self.write_column_data(column, dest, ctx)
  File "C:\Users\user\PycharmProjects\clicktest\venv\Lib\site-packages\clickhouse_connect\datatypes\base.py", line 224, in write_column_data
    self._write_column_binary(column, dest, ctx)
  File "C:\Users\user\PycharmProjects\clicktest\venv\Lib\site-packages\clickhouse_connect\datatypes\base.py", line 341, in _write_column_binary
    write_array(self._array_type, column, dest, ctx.column_name)
  File "C:\Users\user\PycharmProjects\clicktest\venv\Lib\site-packages\clickhouse_connect\driver\common.py", line 62, in write_array
    raise DataError(f'Unable to create Python array{col_msg}.  This is usually caused by trying to insert None ' +
clickhouse_connect.driver.exceptions.DataError: Unable to create Python array for source column `float_col_2`.  This is usually caused by trying to insert None values into a ClickHouse column that is not Nullable

Configuration
Environment

Python version: 3.11.8
clickhouse-connect version: 0.8.3
pandas version: 2.2.3
Operating system: Windows

ClickHouse server

ClickHouse Server version: <IP_ADDRESS>

Thanks for the detailed investigation.  I think the float or int conversion needs to be moved up into the _write_column_binary method of each relevant data type.


Blurry Text

I've also noticed while developing my application that the text on the electron window looks blurry, I read off of the electron documentation that this is caused due to sub-pixel rendering being off.
The documentation recommends to add a background color to the main electron window, but due to the acrylic effect, we need to set the background to transparent correct? Is there a way to combat this?

Just thought I'd add a screenshot to show the differences between the sub-pixel rendering in google chrome, and then without in the electron application.

In fact, I didn't notice the bug when I was using the module. As you mentioned, sub-pixel antialiasing is impossible when Windows is transparent or semi-transparent. Link However, looking for a method, it is said that disabling hardware acceleration can solve the problem. Link But I can't check the blurs even in the basic state, so can you check them for me?
First, put app.disableHardwareAcceleration() at the top of the app and test it. Must be inserted directly below require ('electron'). If this works, add an app.commandLine.appendSwitch("in-process-gpu") below upper code and check it again.

@Seo-Rii I didn't notice any changes to the antialiasing, however the application did use about 50 less MB of Memory. Sadly I assume this is something that wont be fixed? Kinda makes all our applications look terrible if we can't make the text displayed in it crisp.

-webkit-font-smoothing: subpixel-antialized; add this to CSS and please try again.

This is an Electron thing. Having a non-white background (ex. transparent) changes how text is rendered. See: https://github.com/electron/electron/issues/10025
I don't believe this is something that can be fixed while also using Acrylic blur with Electron.

@R3MOTE-GOD  As @xanderfrangos mentioned, it's hard to find a way to correct the blurry text at the moment. Therefore, I will not consider this issue until the electron corrects the bug, so I will close this issue. I'm sorry about this.


Read-only mode for v1-staging

Isn't this already completed?

It is enforced by the dashboard, but not by the backend.

Please consider leaving this unchanged, or at least keep allowing registration of new ABP devices. This helps in a seamless migration, see https://www.thethingsnetwork.org/forum/t/seamless-migration-from-staging-to-production-for-otaa-devices/6196

Ok


File conflict with /usr/bin/host in dotnet-runtime

Hey,
I was packaging dotnet runtime prebuild binaries for Linux and had an issue with file conflicts. The dotnet binary is looking for the fxr folder in /usr/bin/host/fxr. The problem is, that /usr/bin/host is also a typical tool commonly installed via. the package bind-tools.
A fatal error occurred, the folder [/usr/bin/host/fxr] does not exist

Is it possible to configure a different runtime path?
Best regards,
Jonas

Hi! I am one of the packagers working on packaging .NET Core for Fedora and RHEL. I have not seen this error before. I do have both dotnet and /usr/bin/host (bind-utils in Fedora) installed. Can you please share more details about what you are doing?
In particular:

What version of .NET Core is this?
Where are you extracting the files?
What is /usr/bin/dotnet? Is it a real file or a symlink to where the real dotnet SDK is installed?

@omajid
thanks for the replay. here is my package build file: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=dotnet-runtime-bin
this might be a good hint to place the dotnet binary into /usr/share/dotnet-runtime and symlink it to /usr/bin ... so the working directory should be /usr/share/dotnet-runtime. i'll give that a try later

Yup, that should fix it: you dont want to split up anything out of the main dotnet directory. Otherwise everything will break. The dotnet binary mostly looks next to itself to find things.
On Fedora, we install everything to /usr/lib64/dotnet. /usr/bin/dotnet is just a symlink to /usr/lib64/dotnet/dotnet.
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=dotnet-core-preview does it okay too:
cp -dr --no-preserve='ownership' dotnet host "${pkgdir}"/opt/dotnet/
...
install -Dm 755 "${srcdir}"/dotnet.sh "${pkgdir}"/usr/bin/dotnet

where dotnet.sh basically does exec /usr/opt/dotnet/dotnet.


Fix FP with sql having in 942230 (mv PR from old repo)

This is a copied PR from the old repo. See https://github.com/SpiderLabs/owasp-modsecurity-crs/pull/1674 for history.
This PR solves issues #1607 and #1598 and adds new regression tests.
A "having" SQL statement only makes sense in combination with a SELECT statement somewhere.
The whole new regex is:
(?i:[\s()]case\s*?\(|\)\s*?like\s*?\(|select.*?having\s*?[^\s]+\s*?[^\w\s]|if\s?\([\d\w]\s*?[=<>~])
The important part is select.*?having\s*?[^\s]+\s*?[^\w\s] (original part was |having\s*?[^\s]+\s*?[^\w\s] only)
I'm not quite sure about my .*? maybe there would be a better option. But we definitely solve the reported false positives. A word boundary with \b would not be sufficient.
For info:
We cover the having clause in 5 other rules too:
util/regexp-assemble/regexp-942190.data:[\"'`];?\s*?having\b\s*?[^\s]
util/regexp-assemble/regexp-942210.data:\/\w+;?\s+having\W
util/regexp-assemble/regexp-942260.data:[\"'`]\s*?and\s+[\s\w]+=\s*?\w+\s*?having\s+
util/regexp-assemble/regexp-942260.data:[\"'`]\s*?nand\s+[\s\w]+=\s*?\w+\s*?having\s+
util/regexp-assemble/regexp-942260.data:[\"'`]\s*?or\s+[\s\w]+=\s*?\w+\s*?having\s+
util/regexp-assemble/regexp-942260.data:[\"'`]\s*?xor\s+[\s\w]+=\s*?\w+\s*?having\s+
util/regexp-assemble/regexp-942260.data:[\"'`]\s*?xxor\s+[\s\w]+=\s*?\w+\s*?having\s+
util/regexp-assemble/regexp-942260.data:[\"'`]\s*?div\s+[\s\w]+=\s*?\w+\s*?having\s+
util/regexp-assemble/regexp-942260.data:[\"'`]\s*?like\s+[\s\w]+=\s*?\w+\s*?having\s+
util/regexp-assemble/regexp-942260.data:[\"'`]\s*?between\s+[\s\w]+=\s*?\w+\s*?having\s+
util/regexp-assemble/regexp-942260.data:[\"'`]\s*?not\s+[\s\w]+=\s*?\w+\s*?having\s+
util/regexp-assemble/regexp-942260.data:[\"'`]\s*?\|\|\s+[\s\w]+=\s*?\w+\s*?having\s+
util/regexp-assemble/regexp-942260.data:[\"'`]\s*?\&\&\s+[\s\w]+=\s*?\w+\s*?having\s+
util/regexp-assemble/regexp-942380.data:\b(?i:having)\b\s+\d{1,10}\s*?[=<>]
util/regexp-assemble/regexp-942380.data:\b(?i:having)\b\s+'[^=]{1,10}'\s*?[=<>]
util/regexp-assemble/regexp-942380.data:\bhaving\b ?\d{1,10} ?[=<>]+
util/regexp-assemble/regexp-942380.data:\bhaving\b ?[\'\"][^=]{1,10}[\'\" ?[=<>]+
util/regexp-assemble/regexp-942380.data:exists\s\b(?i:having)\b\s+\d{1,10}
util/regexp-assemble/regexp-942480.data:\bgroup\b.*?\bby\b.{1,100}?\bhaving\b

@dune73 reviewed this PR already and was waiting for a test by Verizon. But afaik did not get any response. So how do we want to proceed here?

According to Émile-Hugo Spir, it appears to be solving the FPs he had.
We find the risk of introducing FNs low, especially since we have extra coverage for libinjection.
So merging this, thanks to everybody involved in solving this issue!


My attempt at implemtenting a quadtree

I'm using a fork of silflow's quadtree. I wasn't sure where to put the quadtree.js file. As far I know it's working. Please review.

I fixed the merge conflicts and moved quadtree.js in the main folder.

That looks great :)

Nice! I was going to put a quadtree myself. :+1:

:)


[SR-14789] Linux - Getting value from property InputStream.streamError traps.

Previous ID
SR-14789

Radar
rdar://problem/79456450

Original Reporter
GalenRhodes1967 (JIRA User)

Type
Bug

Environment

Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-74-generic x86_64)

Swift version 5.4 (swift-5.4-RELEASE) Target: x86_64-unknown-linux-gnu

Ubuntu 20.04.2 LTS (GNU/Linux 5.8.0-55-generic x86_64)

Swift version 5.4 (swift-5.4-RELEASE) Target: x86_64-unknown-linux-gnu

Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-1036-raspi aarch64) - Raspberry PI 4 (4GB)

Swift version 5.5-dev (LLVM c64e53b8742ea89, Swift 3f6eb2f8a0a1287) Target: aarch64-unknown-linux-gnu

Ubuntu 20.04.2 LTS (GNU/Linux 4.9.241-70 aarch64) - ODROID C4

Swift version 5.5-dev (LLVM c64e53b8742ea89, Swift 3f6eb2f8a0a1287) Target: aarch64-unknown-linux-gnu

Additional Detail from JIRA

Votes
0

Component/s
Foundation, Standard Library

Labels
Bug

Assignee
None

Priority
Medium

md5: 8041e548b25e485dcc7fa65e64e981dc

Issue Description:
Attempting to read the value of property streamError in InputStream class causes a trap with the error message "Illegal Instruction" on Linux.  I've tried this on 4 different Linux machines.  Works fine in macOS.
import Foundation
import CoreFoundation

let testDataDir: String = "Tests/RubiconTests/Files"

guard let inputStream = InputStream(fileAtPath: "\(testDataDir)/Test_UTF-8.xml") else {
    print("Unable to create input stream!")
    exit(1)
}
inputStream.open()
if let e = inputStream.streamError { // <----- Crashes here.
    print("File not opened: \(e.localizedDescription)")
    exit(1)
}
var array  = [ UInt8 ](repeating: 0, count: 100)
let result = inputStream.read(&array, maxLength: 100)
guard result >= 0 else {
    let e   = inputStream.streamError // <----- Crashes here.
    let msg = (e?.localizedDescription ?? "Unknown Error")
    print("Error reading file: \(msg)")
    exit(1)
}
let str = String(bytes: array, encoding: .utf8)
print(str ?? "???")
inputStream.close()
exit(0)

Can confirm this still happens using the 5.9.2-jammy image, with the same setup as @alanfalloon
I'm encountering the issue specifically with Alamofire. Alamofire is not officially supported on Linux, but everything that I use works fine except for Multipart requests (as they hit this same crash)
The same tests work perfectly on macOS. The Linux use case is only even relevant as our CI runs on Linux.
Just wanted to document in case any other Alamofire-on-Linux folk run into this.


trustedIdentity flag in provider config

It should resolve #61

Oh wow this looks 💯 - thank you!
As I still haven't rigged up automated testing - which is super embarrassing at this point I'm going to merge but not update the published NPM version with this, or another recent PR, till I've done that; hopefully later this week.
I'd like to be sure the flows are right and would like to take a look at updating the examples and documentation, and maybe including some default sign in views to simplify usage, as a bridge to an even simpler version.


Child bridge process ended

The process of stasrting the child bridge are restarting and can finally start.
always the same log, reteat again and again.
If i cancel using child bridge give me other error and cant start the homebridge service
<
Raspbian GNU/Linux Buster (10)
v18.17.1
pi/var/lib/homebridge
/var/lib/homebridge/config.json
[31/08/2023, 14:53:42] [Tapo Smart Platform] Restarting Process...
[31/08/2023, 14:53:43] [Tapo Smart Platform] Launched child bridge with PID 27762
[31/08/2023, 14:53:46] Registering platform 'homebridge-tapo.TapoP100'
[31/08/2023, 14:53:46] [Tapo Smart Platform] Loaded homebridge-tapo v1.4.17 child bridge successfully
[31/08/2023, 14:53:46] [Tapo Smart Platform] Adding new accessory: undefined
[31/08/2023, 14:53:46] Homebridge v1.6.1 (HAP v0.11.1) (Tapo Smart Platform) is running on port 41308.
AssertionError [ERR_ASSERTION]: Accessories must be created with a non-empty displayName.
at new Accessory (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:491:11)
at new PlatformAccessory (/usr/local/lib/node_modules/homebridge/src/platformAccessory.ts:71:9)
at TapoPlatform.discoverDevices (/usr/local/lib/node_modules/homebridge-tapo/src/platform.ts:159:25)
at HomebridgeAPI. (/usr/local/lib/node_modules/homebridge-tapo/src/platform.ts:59:12)
at HomebridgeAPI.emit (node:events:514:28)
at HomebridgeAPI.signalFinished (/usr/local/lib/node_modules/homebridge/src/api.ts:275:10)
at ChildBridgeFork.startBridge (/usr/local/lib/node_modules/homebridge/src/childBridgeFork.ts:189:14)
[31/08/2023, 14:53:46] [Tapo Smart Platform] Child bridge process ended
[31/08/2023, 14:53:46] [Tapo Smart Platform] Process Ended.
AssertionError [ERR_ASSERTION]: Accessories must be created with a non-empty displayName.
at new Accessory (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:491:11)
at new PlatformAccessory (/usr/local/lib/node_modules/homebridge/src/platformAccessory.ts:71:9)
at TapoPlatform.discoverDevices (/usr/local/lib/node_modules/homebridge-tapo/src/platform.ts:159:25)
at HomebridgeAPI. (/usr/local/lib/node_modules/homebridge-tapo/src/platform.ts:59:12)
at HomebridgeAPI.emit (node:events:514:28)
at HomebridgeAPI.signalFinished (/usr/local/lib/node_modules/homebridge/src/api.ts:275:10)
at ChildBridgeFork.startBridge (/usr/local/lib/node_modules/homebridge/src/childBridgeFork.ts:189:14)
[31/08/2023, 14:53:57] [Tapo Smart Platform] Child bridge process ended
[31/08/2023, 14:53:57] [Tapo Smart Platform] Process Ended. Code: 1, Signal: null
[31/08/2023, 14:54:04] [Tapo Smart Platform] Restarting Process...
[31/08/2023, 14:54:06] [Tapo Smart Platform] Launched child bridge with PID 27784
[31/08/2023, 14:54:08] Registering platform 'homebridge-tapo.TapoP100'
[31/08/2023, 14:54:08] [Tapo Smart Platform] Loaded homebridge-tapo v1.4.17 child bridge successfully
[31/08/2023, 14:54:08] [Tapo Smart Platform] Adding new accessory: undefined
[31/08/2023, 14:54:09] Homebridge v1.6.1 (HAP v0.11.1) (Tapo Smart Platform) is running on port 41308.
AssertionError [ERR_ASSERTION]: Accessories must be created with a non-empty displayName.
at new Accessory (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:491:11)
at new PlatformAccessory (/usr/local/lib/node_modules/homebridge/src/platformAccessory.ts:71:9)
at TapoPlatform.discoverDevices (/usr/local/lib/node_modules/homebridge-tapo/src/platform.ts:159:25)
at HomebridgeAPI. (/usr/local/lib/node_modules/homebridge-tapo/src/platform.ts:59:12)
at HomebridgeAPI.emit (node:events:514:28)
at HomebridgeAPI.signalFinished (/usr/local/lib/node_modules/homebridge/src/api.ts:275:10)
at ChildBridgeFork.startBridge (/usr/local/lib/node_modules/homebridge/src/childBridgeFork.ts:189:14)
[31/08/2023, 14:54:09] [Tapo Smart Platform] Child bridge process ended
[31/08/2023, 14:54:09] [Tapo Smart Platform] Process Ended. Code: 1, Signal: null

@katapablo Could you please share your configuration ?

Hello dear Andreas, what configuration you want?
Plugin config or homebridge config?
Regards, and thanks you so much for your email
El jue, 19 oct 2023 a las 8:48, Andreas Zimnas @.***>)
escribió:

@katapablo https://github.com/katapablo Could you please share your
configuration ?
—
Reply to this email directly, view it on GitHub
https://github.com/apatsufas/homebridge-tapo-p100/issues/45#issuecomment-1770168152,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BCIRKR3YMZYRBJNOVJNXUPLYADEMNAVCNFSM6AAAAAA4GEQQBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZQGE3DQMJVGI
.
You are receiving this because you were mentioned.Message ID:
@.***>

Now the problem of child bridge ended is solved, the problem is other. See attachment Enviado desde mi iPhoneEl 19 oct 2023, a las 12:23, Andreas Zimnas @.***> escribió:
@katapablo the plugin config.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>


Use outputs dictionary keys as output_names if provided

This PR is meant to resolve issue #16405.
This implementation is the first solution mentioned in https://github.com/keras-team/keras/issues/16405#issuecomment-1102255538. You are still invited to discuss other solutions.
The implementation relies on the behavior of tf.nest.flatten when model._output_layers are created. Particularly, on the ordering, which is the sorted order of the dictionary keys. An alternative might be to search each layer from model._output_layers in the nested structure and then select its name. That strategy seems more complicated but would be independent of the way how model._output_layers is created.

We can't change the behavior on this.  This is potentially confusing though, so a warning would be great!

Thanks for the PR. Yes, so it would be inconsistent to use Input.name as the input name for every situation (list of Inputs, tuples of inputs...) except the dict case. We should always use Input.name, even in the dict case.
Now, it's certainly true that if you use dict keys that differ from Input.name, then "what is the name of my input?" becomes an ambiguous question. Users should make sure to use consistent input names and dict keys in order to avoid any confusion. Let's simply add a warning in case of mismatch.

If you keep two sets of names to refer to the same objects, that's on you. The framework cannot read your mind to determine which set you intended to use. Hence why it would be helpful to introduce a warning to force the user to keep a single consistent set of names to refer to Input objects.

@szleb Any update on this PR? Please. Thank you!

Hi @szleb Any update on this PR? Please. Thank you!


Vscode xmake 插件无法启动

Xmake 版本
xmake v2.7.9+20230515
操作系统版本和架构
MacOS 13.3 Intel
描述问题
Visual Studio Code 1.81.1 (Universal)
使用 XMake vscode 插件, 版本v2.1.9, 插件不能启动, 输出提示:

期待的结果
使其可以正常工作即可
工程配置
target("demo")
    add_files("src/*.cpp")
    set_kind("binary")

附加信息和错误日志
2023-08-30 14:18:05.099 [info] ExtensionService#_doActivateExtension tboox.xmake-vscode, startup: false, activationEvent: 'onLanguage:xmake'
2023-08-30 14:18:05.202 [error] Activating extension tboox.xmake-vscode failed due to an error:
2023-08-30 14:18:05.202 [error] TypeError: The argument 'file' cannot be empty. Received ''
	at new NodeError (node:internal/errors:387:5)
	at normalizeSpawnArguments (node:child_process:530:11)
	at Object.spawn (node:child_process:745:13)
	at execv (/Users/rivers/.vscode/extensions/tboox.xmake-vscode-2.1.9/out/src/process.js:80:23)
	at Object.runv (/Users/rivers/.vscode/extensions/tboox.xmake-vscode-2.1.9/out/src/process.js:72:12)
	at XMake.<anonymous> (/Users/rivers/.vscode/extensions/tboox.xmake-vscode-2.1.9/out/src/xmake.js:370:37)
	at Generator.next (<anonymous>)
	at /Users/rivers/.vscode/extensions/tboox.xmake-vscode-2.1.9/out/src/xmake.js:8:71
	at new Promise (<anonymous>)
	at __awaiter (/Users/rivers/.vscode/extensions/tboox.xmake-vscode-2.1.9/out/src/xmake.js:4:12)
	at XMake.start (/Users/rivers/.vscode/extensions/tboox.xmake-vscode-2.1.9/out/src/xmake.js:359:16)
	at /Users/rivers/.vscode/extensions/tboox.xmake-vscode-2.1.9/out/src/extension.js:63:21
	at Generator.next (<anonymous>)
	at /Users/rivers/.vscode/extensions/tboox.xmake-vscode-2.1.9/out/src/extension.js:8:71
	at new Promise (<anonymous>)
	at __awaiter (/Users/rivers/.vscode/extensions/tboox.xmake-vscode-2.1.9/out/src/extension.js:4:12)
	at activate (/Users/rivers/.vscode/extensions/tboox.xmake-vscode-2.1.9/out/src/extension.js:19:12)
	at Dn.eb (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:116:13102)
	at Dn.db (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:116:12816)
	at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:116:10913
	at async p.n (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:102:6206)
	at async p.m (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:102:6169)
	at async p.l (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:102:5626)

这边可以，你可以拉下插件源码调下

好的, 我试试


Service cards 'Learn more' link

Each card shows the link of the first card. Probably something wrong in the mapping of the cards & links.

Turns out it was just the same button used for all three packages


test: Add max_weight_to_satisfy test

Add a test for max_weight_to_satisfy.  Marking as a draft for now since I had to change the visibility of a few things which may not be desirable.  However, I'm looking to possibly use this in an external crate, so the visibility may need to be adjusted to make that viable.  Also of note that most key types return an error when tying to compute the satisfaction weight.

Testing max_weight_to_satisfy this way is too complicated.


Update a screenshot

This image need to be updates
https://docs.microsoft.com/en-us/azure/active-directory/enterprise-users/media/directory-delete-howto/cancel-choose-subscription.png
https://docs.microsoft.com/en-us/azure/active-directory/enterprise-users/media/directory-delete-howto/cancel-command.png
https://docs.microsoft.com/en-us/azure/active-directory/enterprise-users/media/directory-delete-howto/delete-command.png
because section was renamed to "your products"
text "If you cannot find the subscription in the Products & services page" for navigation also need to be updated due to rename.

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

ID: ea77d5a9-6619-0f31-9567-6085b7a4b5a2
Version Independent ID: f4cf720d-60dd-f086-3ace-1ff17e427757
Content: Delete an Azure AD organization (tenant) - Azure Active Directory
Content Source: articles/active-directory/enterprise-users/directory-delete-howto.md
Service: active-directory
Sub-service: enterprise-users
GitHub Login: @curtand
Microsoft Alias: curtand

Hi @SychevIgor
Thanks for your contribution! I have several GitHub issues on this article that I'm now able to close. Your updates are to be published today at 3 PM PST.


[OpenImageIO] Windows & Linux build with python 2.7 bindings

I'm looking to build OpenImageIO for Windows & Linux (Centos) with python bindings. I noticed that build by default is setup to build for python 3.8.
How do I build for Python 2.7 ?
What is command for installing on Linux?

Does the upstream support python 2.7?

Yes we are a CG studio and at this point we are forced to stick to python 2.7 until VFX platform upgrades to python3

@JackBoosY - Do you have any updates on this?

@akilaln  First, pybind11 in vcpkg should add feature python2 and python3, and oiio should also add feature pybind11-3 and pybind11-2.

According to our policy, we can't add this feature, sorry for that.

@JackBoosY - Thanks for letting us use your changes. I pull your changes and ran the install like you suggested. The build completed without any errors but I don't see the .pyd file anywhere in the installed folder

@akilaln I don't much know about oiio, can you tell me which port the .pdb belongs to and what it does?

It is the OpenImageIO.pyd, the python windows dll for OpenImageIO that is used for importing in Python. It was previously getting created inside of the vcpkg\installed\x64-windows\lib folder but I don't see it in the build I ran using your changes.

@akilaln Please pull my latest changes and rebuild oiio.
Thanks.

@JackBoosY - Really appreciate your quick turnaround. I was able to successfully build on Windows. Is it set to work on Linux as well?
Again, thanks for all the help so far

@akilaln Maybe, but I didn't test on Linux.

On Linux, it is failing while trying to build pybind11 with Python2
sudo ./vcpkg/vcpkg install pybind11[core,python2]:x64-linux
Computing installation plan...
The following packages will be built and installed:
    pybind11[core,python2]:x64-linux -> 2.6.2#1
  * python2[core]:x64-linux -> 2.7.18
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x64-linux...
Could not locate cached archive: /root/.cache/vcpkg/archives/b2/b24bdec02e7f13d46134568d9c128ec2f989284b.zip
Could not locate cached archive: /root/.cache/vcpkg/archives/ea/ea2f45d39aee14c52ef4b338c0b03ef6d589babd.zip
Starting package 1/2: python2:x64-linux
Building package python2[core]:x64-linux...
-- Using cached /home/alakshminarayanan/test/oiio_test/vcpkg/downloads/Python-2.7.18.tar.xz
-- Cleaning sources at /home/alakshminarayanan/test/oiio_test/vcpkg/buildtrees/python2/src/Python-2-98bb9d6a54.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/alakshminarayanan/test/oiio_test/vcpkg/downloads/Python-2.7.18.tar.xz
-- Applying patch /home/alakshminarayanan/test/oiio_test/vcpkg/ports/python2/001-build-msvc.patch
-- Applying patch /home/alakshminarayanan/test/oiio_test/vcpkg/ports/python2/002-build-msvc.patch
-- Applying patch /home/alakshminarayanan/test/oiio_test/vcpkg/ports/python2/003-build-msvc.patch
-- Applying patch /home/alakshminarayanan/test/oiio_test/vcpkg/ports/python2/004-static-library-msvc.patch
-- Applying patch /home/alakshminarayanan/test/oiio_test/vcpkg/ports/python2/006-static-fix-headers.patch
-- Applying patch /home/alakshminarayanan/test/oiio_test/vcpkg/ports/python2/007-fix-build-path.patch
-- Using source at /home/alakshminarayanan/test/oiio_test/vcpkg/buildtrees/python2/src/Python-2-98bb9d6a54.clean
-- Building /home/alakshminarayanan/test/oiio_test/vcpkg/buildtrees/python2/src/Python-2-98bb9d6a54.clean/PCBuild/pythoncore.vcxproj for Release
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:105 (message):
    Command failed: msbuild /home/alakshminarayanan/test/oiio_test/vcpkg/buildtrees/python2/src/Python-2-98bb9d6a54.clean/PCBuild/pythoncore.vcxproj /p:Configuration=Release /t:Rebuild /p:Platform=x64 /p:PlatformToolset=external /p:VCPkgLocalAppDataDisabled=true /p:UseIntelMKL=No /p:WindowsTargetPlatformVersion= /p:VcpkgManifestInstall=false /p:VcpkgManifestEnabled=false /m /p:WholeProgramOptimization=false /p:VcpkgEnabled=false
    Working Directory: /home/alakshminarayanan/test/oiio_test/vcpkg/buildtrees/python2/x64-linux-rel
    Error code: No such file or directory
    See logs for more information:

Call Stack (most recent call first):
  scripts/cmake/vcpkg_build_msbuild.cmake:129 (vcpkg_execute_required_process)
  ports/python2/portfile.cmake:55 (vcpkg_build_msbuild)
  scripts/ports.cmake:139 (include)

Error: Building package python2:x64-linux failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `./vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: python2:x64-linux
  Vcpkg version: 2021-05-05-unknownhash


[DCOS-15322] Change postflight command to work on both DCOS/OSS and DCOS/E

High Level Description
This changes make postflight to work on DC/OS Enterprise.
Related Issues

DCOS-15322 DC/OS Docker - Postflight does not complete on DC/OS Enterprise.

Testing
I have tested this by creating clusters with DC/OS Enterprise master and DC/OS OSS master. Both complete and the commands seem to work at the same time as the old command worked on OSS.
I would appreciate a reviewer doing a similar check to confirm.

cc @karlkfi @vespian @gpaul @jgehrcke @mhrabovcin

I tested this in Open and EE with both the permissive and strict security modes and it worked.
Now we just need a workaround for @jgehrcke's comment regarding EE security:disabled mode (where there is no https:// and only http://)
I believe that DCOS_POSTFLIGHT_BODY is run in the context of the master container so you could do something with /opt/mesosphere/etc/user.config.yaml, or /opt/mesosphere/etc/*.
If you need to, you could shell out to a python one-liner to parse yaml, etc.

Thanks @gpaul and @jgehrcke for the reviews.

If you need to, you could shell out to a python one-liner to parse yaml, etc.

I wrote this, and for posterity, or if a reviewer prefers it, it is something like:
export PYTHON_COMMAND="eval python -c \"\
import sys; \
import yaml; \
config = yaml.load(sys.stdin); \
security = config.get('security'); \
result = int(security != 'disabled'); \
sys.exit(result);
\""

if  echo "${CONFIG_BODY}" | ${PYTHON_COMMAND} ; then
	ADDRESS="http://<IP_ADDRESS>"
else
	ADDRESS="https://<IP_ADDRESS>"
fi

However I'd prefer to go with something which checks both.
I have tested this with all security options.
This is now ready for another look @gpaul @jgehrcke .

cc @karlkfi

I suspect that just removing the --max-redir 0 would be sufficient because HTTP should redirect to HTTPS on strict mode. I think the zero redirect flag was added to defend against DNS hijacking of m1.dcos in dcos-vagrant's post-flight script, but that doesn't apply here because we're using an IP instead of a domain.

Thank you for the feedback @gpaul and @karlkfi .
Based on @karlkfi 's comments I have changed this to remove the --max-redir option. This required adding --insecure. This has been tested on three security modes.
This is now ready for another review.

Thanks!


Enable auto_approve for hello-world

I am unsure whether this is necessary, because #98 has a checkbox for this, but later says We've currently made any hello-world exercises auto-approved in the backend.
Either way, shall we set other exercises to "auto_approve": true?

Thanks for following up on #98!
I interpret it as saying that auto_approve: true should be set on the first exercise if it isn't hello-world (and that hello-world will be auto-approved by default), but agree that's it's better to be explicit just in case.
I don't think we need/want to auto-approve anything else just yet though.


Issue with profile image

I have used one image then removed my image again I have added a new image. But still it is showing the oldest image.

It should show updated image every where.

@avijitmondal , Did you tried sign out/sign in from teams once?

This is a company account, I have tried using restarting my system.

@Trinetra-MSFT I have tried after sign out/sign in again.
It is working fine now.

We are Microsoft Teams Developer Community, Please share your feedback and rating to improve developer response experience.
Thanks


[Feature] Release Pipeline

Is your feature request related to a problem? Please describe.
We need a Release Pipeline to build docker images and agent artifacts to release the first Liqo version.

I think it is partially solved, since we still need a pipeline to build the Liqo agent.


cpu_features: add v0.9.0 version

Add alias package.
Support more platform.

Convenient for users to find.
$ xmake require cpu_features
checking for cpu_features ... no
note: the following packages were not found in any repository (check if they are spelled correctly):
  -> cpu_features

We should probably improve xmake tooltips when it doesn't find something (based on levenshtein distance for example) instead of adding fake packages


Replace request lib

Request is very bloated -<EMAIL_ADDRESS>Can possibly replace with<EMAIL_ADDRESS>or<EMAIL_ADDRESS>or something similar?

in the browser under UMD browser-request is used.
That bundle size should please you<EMAIL_ADDRESS>In node, I would question the wisdom of individual package analysis like this(under fetch no logic can be shared, whereas request uses dependencies... which is a good thing). So exclude request from your bundle configuration and make sure browser-request is used, and you're golden.


Logo uploaded, should be out in the next site refresh.


"Database error granting user" on sign up/sign in

I have been very inconsistently getting a this error "Database error granting user" with a 500 HTTP status code.
Sometimes I try it a bit more and then it starts working again.
Has anyone had that before?

Hey everyone, these errors are usually returned when there is a failing trigger created on one of the tables in the auth schema. If anyone's still facing this issue and require assistance, please contact Supabase at our support link (https://app.supabase.com/support/new)

Super old, but ran into this tonight. It was an issue with a trigger function having a misnamed param. To debug, start with a basic trigger like this and work back:
create function public.handle_new_user()
returns trigger
language plpgsql
security definer set search_path = public
as $$
begin
  insert into public.profiles (id)
  values (new.id);
  return new;
end;
$$;

-- trigger the function every time a user is created
create trigger on_auth_user_created
  after insert on auth.users
  for each row execute procedure public.handle_new_user();

@saltcod yeah, this error is returned if you have a trigger on the auth schema that fails - it causes the entire transaction to be rolled back

For me it was because i was hashing the password by myself first - then i inspected that supabase makes that for ya

Happened to me when running my project locally and I had to manually remove all Docker Supabase volumes in addition to supabase stop --no-backup. I also deleted all images for good measure and made sure I was starting absolutely everything from zero, but I think the image refetch step is not necessary.


update .getCapability() to return nil if cap disallowed + tests

Closes: #159

Codecov Report
All modified lines are covered by tests :white_check_mark:

Comparison is base (84ab4b8) 83.95% compared to head (a7fb7ba) 83.95%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #160   +/-   ##
=======================================
  Coverage   83.95%   83.95%
=======================================
  Files           4        4
  Lines         349      349
=======================================
  Hits          293      293
  Misses         56       56

Files
Coverage Δ

contracts/HybridCustody.cdc
81.54% <100.00%> (ø)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


External CSS in Polymer Elements is ignored in Chrome Extensions

I'm using Polymer JS version 0.4.0. My custom element has some styling rules, but these rules don't apply if I place them in an external CSS file and link to it using a <link rel="import" href="..."/>. They do work when I replace the <link> with a <style> and move the rules inside it.

I have the same issue, when i moved the CSS after template it works.
Thanks


PowerOff the device,and then Power On;the Preview is Black

device: Xiaomi Note.
but when i press home event, and open the app, it work well;
I dot khnow what the problem

i have the same problem , did you solve it?

@o0o0oo00
no, I use another lib

@cxmmxc Could you tell me which lib you are using?

@hjh2881 https://github.com/jeasonlzy/ImagePicker，
I use the lib, but I modify its code

@cxmmxc 谢谢!


Mods: lucky-blocks - Missing License Information in file Mod File: /data/mods/luckyblock-1.16.1-1.jar

Hi,
I've installed the luck-blocks module ( https://www.luckyblockmod.com/docs/#/add-ons?id=installing ).
But when I start the container I get an error: Missing License Information in file Mod File: /data/mods/luckyblock-1.16.1-1.jar
Setup:

MineCraft: 1.16.3

This sounds like an issue to report with the lucky block authors.


uint overflow fix

Was seeing a panic when we tried to clearUpthrough an overflowed uint so we abort early to fix. I tried grepping around to see if we had any similar bugs and there may have been one in the storage_blockengine I think there may still be a bug though, i'm not sure why we call ClearBefore (https://github.com/keybase/client/compare/joshblum/convload-panic-CORE-8082?expand=1#diff-cf8add58c26f1cbee6e6e1e5f4a20d6eR1091) on a DELETE message -- don't we only want to clear out the single message from the DELETE instead of everything upto?

How was the param overflown? What was the root cause?

if our max message is a DELETE we call ClearFromDelete in the background: https://github.com/keybase/client/blob/master/go/chat/sync.go#L407 but don't find a delete so we call expunge:
https://github.com/keybase/client/blob/master/go/chat/convsource.go#L1076 which then finds a min message ID of 0 which ClearBefore passes  as upto - 1= -1 to clearUpthrough
I'm a little confused with the logic for calling the expunge stuff it. Why do we call expunge on a single DELETE and not a DELETE_HISTORY? Things seems to have changed here https://github.com/keybase/client/commit/670aa984651bcbe6a18d88aff8e4af49abb4e6a7#diff-cf8add58c26f1cbee6e6e1e5f4a20d6eL1036 when we used to call storage.Expunge which aborted on Upto=0 https://github.com/keybase/client/blob/master/go/chat/storage/storage.go#L635


Use Alpine Linux for Tiny Images

I saw there was a PR for using Debian instead of the PHP official images. There's another official image that I think is very useful for building good base images: Alpine. For comparison:
# Current images
$ docker images | grep composer/composer
composer/composer                                   base                eb1df2aafe51        3 weeks ago         521.9 MB
composer/composer                                   1.0.0-alpha8        aa4d3eabda20        3 weeks ago         522.9 MB
composer/composer                                   1.0.0-alpha10       11b069d27b51        3 weeks ago         523 MB
composer/composer                                   latest              b87b6a34ca39        3 weeks ago         523 MB
composer/composer                                   1.0.0-alpha9        58acc7adbc48        3 weeks ago         523 MB

# Alpine images
$ docker images | grep composer/composer
composer/composer                                   1.0.0-alpha8        5b8d2ca4148a        14 minutes ago      22.57 MB
composer/composer                                   1.0.0-alpha9        fc5edf265f13        14 minutes ago      22.64 MB
composer/composer                                   1.0.0-alpha10       e858b3a69ef1        14 minutes ago      22.68 MB
composer/composer                                   latest              e9eb902514ea        17 minutes ago      22.72 MB
composer/composer                                   base                2bf3879927f9        17 minutes ago      21.6 MB

Wow, it ends up being about the same size as the Composer install file.

@kojiromike There were some additional extensions introduced in https://github.com/RobLoach/docker-composer/pull/18 at https://github.com/RobLoach/docker-composer/pull/18/files#diff-9191b36467823e825f341c2f13a49c61R6 , not sure how much we really need them though. Testing locally seemed pretty good.

@RobLoach So in thinking about this, I definitely missed git, but maybe I should install the commands for all the supported vcs systems. That does kick the image sizes up to ~90MB, but still respectably small. What do you think?

OK, the last commit has support for everything but Perforce, including unrar and pear.
$ docker images | grep composer/composer
composer/composer                                   1.0.0-alpha8        0a61c00d0e9e        6 minutes ago       90.07 MB
composer/composer                                   1.0.0-alpha9        ad14c95ceb13        6 minutes ago       90.15 MB
composer/composer                                   1.0.0-alpha10       14cb66d0231f        6 minutes ago       90.18 MB
composer/composer                                   latest              f7e30f27d6d5        6 minutes ago       90.22 MB
composer/composer                                   base                d5f637f79af5        6 minutes ago       89.11 MB

I'd love to see this merged, currently the image is ~500MB which this change really improves upon!

Might want to wait for docker-library/php/pull/176 now?

I suppose better to commit that and file follow-up to wait php containers based on alpine
that will save a lot of time

php:7.0-alpine is in now, are we waiting on anything else?

+1

The approach taken in https://github.com/RobLoach/docker-composer/pull/56 is a bit more verbose, so that is now merged. Thank you, @kojiromike, for pushing this forwards. :+1:

👍


How do I initiate session disconnection from the server?

I know I can listen to 'disconnected' event to handle a client going away.
But how can I kick a client from the server?

To disconnect a client you can simply call res.end(). However, this will cause the client to attempt to reconnect to the server after a short timeout, so you'll need to implement an event that makes the client disconnect themselves.
As an example, add a disconnect event that makes the client close its own connection:
const source = new EventSource("/sse");

source.addEventListener("disconnect", () => {
  source.close();
});

Then from the server you can simply send that event whenever you want to disconnect them:
session.push(null, "disconnect");

Also keep in mind you can send an HTTP 204 response code to ask a client to stop reconnecting.

Thanks for the great reply @MatthewWid
I am still getting my head around EventSourcing, didn't occur to me client might try to reconnect.
I'll re-architect my thing a bit given what you said.


Add Velvetyne Foundry / Fonts

Velvetyne Type Foundry

Velvetyne Type Foundry - VTF, or the Velvetyne Type Foundry were making fonts since 2010, they're designing and distributing free and open source typefaces. They also organise ass-kicking workshops for humans and computers.
License:  SIL Open Font License (OFL)
Why do you think this helps users privacy?: They're openly supporting free/libre and open source movement.
Under what section should this service be listed?: Fonts
Additional comments / info: I have used a few experimental typefaces and I have to say that not only are they aesthetically amazing and original, but they are also very transparent with the development and have a very good portfolio presentation.
It's also hosted in France (EU). They use Piwik (Matomo) as the main web analytics service.

Added in d5aa7b8858438c42748972d24e757fedafd57a11


Throws errors on Kube 1.8+

kubectl logs lovely-sasquatch-ny-power-metrics-rhlg2
Error from server (Forbidden): nodes is forbidden: User "system:serviceaccount:default:default" cannot list nodes at the cluster scope
Error from server (Forbidden): pods is forbidden: User "system:serviceaccount:default:default" cannot list pods in the namespace "kube-system"
Error from server (Forbidden): configmaps "cluster-info" is forbidden: User "system:serviceaccount:default:default" cannot get configmaps in the namespace "kube-system"
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
100   315    0    11  100   304     57   1589 --:--:-- --:--:-- --:--:--  1591
{"ok":true}

The collector assumes a certain level of access. It would be best if this created a dedicate role that allowed those permissions just for the job in question.

A quick way to fix this is to apply a view role to the job.
apiVersion: v1
kind: ServiceAccount
metadata:
  name: tracker
  namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
  name: tiller
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: view
subjects:
  - kind: ServiceAccount
    name:  tracker
    namespace: kube-system

This means the job is able to read all the secrets and configmap in kube-system. I am fading out of this project, so I am not sure does it involve any legal stuff.

For what it's worth, this is what I came up with that worked in helm
{{- if .Values.reportMetrics -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ template "ny-power.fullname" . }}-metricssa
namespace: default
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
namespace: default
name: {{ template "ny-power.fullname" . }}-metricsrole
rules:

apiGroups: [""]
resources: ["configmaps"]
verbs: ["get"]
apiGroups: [""]
resources: ["nodes", "pods"]
verbs: ["list", "get", "watch"]

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ template "ny-power.fullname" . }}-metricsrolebind
namespace: default
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ template "ny-power.fullname" . }}-metricsrole
subjects:

kind: ServiceAccount
name:  {{ template "ny-power.fullname" . }}-metricssa
namespace: default

apiVersion: batch/v1
kind: Job
metadata:
name: {{ template "ny-power.fullname" . }}-metrics
spec:
template:
metadata:
name: {{ template "ny-power.fullname" . }}-metrics
spec:
serviceAccountName: {{ template "ny-power.fullname" . }}-metricssa
containers:
- env:
- {name: config, value: '{"repository_id":
"ny-power", "target_runtimes":
["Kubernetes Cluster"], "target_services":
[null], "event_id": "web", "event_organizer":
"dev-journeys"}'}
- {name: language, value: ''}
image: journeycode/kubernetes:latest
name: ny-power-metrics
resources:
limits: {cpu: 100m}
restartPolicy: Never
{{- end -}}


CREATE CUSTOM ISSUE TEMPLATE

Related Issue
Fixes: #1904

Description
Creating a custom issue template for the project can significantly enhance the process of issue reporting and tracking. Here’s why it is necessary and some key components to include in your custom issue template:
Why a Custom Issue Template is Necessary

Consistency: Ensures that all issues reported follow a uniform structure, making it easier for contributors and maintainers to understand and prioritize issues.
Clarity: This feature helps users articulate their issues clearly, providing all necessary information upfront, which minimizes back-and-forth communication for clarification.
Efficiency: Guides users through the reporting process, reducing the time spent reviewing and responding to issues, and streamlining workflow for reporters and maintainers.
Prioritization: Helps assess the severity and urgency of issues based on the information provided in the template.
Documentation: Documentation to educate users on what constitutes an acceptable issue report.
Encouragement: Simplifies the reporting process, encouraging more contributions and community engagement.

Type of PR

[ ] Bug fix
[x] Feature enhancement
[ ] Documentation update
[ ] Other (specify): _______________

Screenshots/videos (if applicable)
N/A

Checklist:

[x] I have made this change from my own.
[ ] I have taken help from some online resources.
[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my code.
[x] I have commented on my code, particularly in hard-to-understand areas.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.
[x] I have tested the changes thoroughly before submitting this pull request.
[x] I have provided relevant issue numbers and screenshots after making the changes.

@PriyaGhosal the task has been completed. Kindly Review the PR

@PriyaGhosal the task has been completed. Kindly Review the PR

@PriyaGhosal

@PriyaGhosal the task has been completed. Kindly review the PR

@PriyaGhosal the task has been completed. Kindly review the PR

@PriyaGhosal the task has been completed. Kindly review the PR

@PriyaGhosal


terse-webpack binary

[ ] npm start can run terse-webpack
[ ] This is largely the same as webpack --config webpack.config.server.babel.js.
[ ] Have a default config if it doesn't exist.
[ ] Same for browser.js?
[ ] Should we call it client.js or browser.js?

Closed in favor of #9.


bug in "analyze" method of sweep_pulsed.py ?

Hi, I was having issues analyzing data acquired with SweepPulsed class in sweep_pulsed.py, in particular was having "division by zero" error and plots were returning all zeros.
I noticed line 204 being:
nr_samples = IDX_HIGH - IDX_LOW
which was causing "t" defined at line 228 to be an empty array (as IDX_HIGH = -1 by default).
I changed line 204 to:
nr_samples = len(self.t_arr)
as well as eliminated lines 223 and 224. Now the analysis method seem to run correctly.
I understand this is now forcing to analyze the whole stored data, including portions with no useful signal, but having to change IDX_LOW and IDX_HIGH in sweep_pulsed.py can get clunky.
I guess one option would be to pass IDX_LOW and IDX_HIGH as parameters to the "analyze" method, and have a line of code doing something like:
if IDX_HIGH < 0: IDX_HIGH += len(self.t_arr) + 1
to support numpy indexing notation.

Thanks, working on it.

Should be fixed. See PR #4 for details.


Nvshas 7505 - Fixing : Process execution denied on pods even after the specific process is allowed on process profile with ZeroDrift enabled

Problem: Process execution denied on pods even after the specific process is allowed on process profile with ZeroDrift enabled
Fix: I went thru the code and it looks like evaluateApp doesn't check the whitelist so it continues to block processes if they're new to the image. (that's why the work-around was to restart the container so the binaries would look like they're not new to the container). I put in a fix to check the whitelist before doing anymore checks on the process -- if its on the whitelist, it should reduce overhead and just skip to allow the process to continue.

Closing, looks like it is behaving as it should.


Migrations failing on Django 1.8.8 and 1.9.1 with PostgreSQL

Weird bug.
$ python manage.py migrate
...truncated
  Applying wagtailimages.0004_make_focal_point_key_not_nullable... OK
  Applying wagtailimages.0005_make_filter_spec_unique...Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/Users/mixxorz/.virtualenvs/dj191-wg13/lib/python2.7/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
    utility.execute()
  File "/Users/mixxorz/.virtualenvs/dj191-wg13/lib/python2.7/site-packages/django/core/management/__init__.py", line 345, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/Users/mixxorz/.virtualenvs/dj191-wg13/lib/python2.7/site-packages/django/core/management/base.py", line 348, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/Users/mixxorz/.virtualenvs/dj191-wg13/lib/python2.7/site-packages/django/core/management/base.py", line 399, in execute
    output = self.handle(*args, **options)
  File "/Users/mixxorz/.virtualenvs/dj191-wg13/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 200, in handle
    executor.migrate(targets, plan, fake=fake, fake_initial=fake_initial)
  File "/Users/mixxorz/.virtualenvs/dj191-wg13/lib/python2.7/site-packages/django/db/migrations/executor.py", line 92, in migrate
    self._migrate_all_forwards(plan, full_plan, fake=fake, fake_initial=fake_initial)
  File "/Users/mixxorz/.virtualenvs/dj191-wg13/lib/python2.7/site-packages/django/db/migrations/executor.py", line 121, in _migrate_all_forwards
    state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
  File "/Users/mixxorz/.virtualenvs/dj191-wg13/lib/python2.7/site-packages/django/db/migrations/executor.py", line 198, in apply_migration
    state = migration.apply(state, schema_editor)
  File "/Users/mixxorz/.virtualenvs/dj191-wg13/lib/python2.7/site-packages/django/db/migrations/migration.py", line 123, in apply
    operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
  File "/Users/mixxorz/.virtualenvs/dj191-wg13/lib/python2.7/site-packages/django/db/migrations/operations/fields.py", line 201, in database_forwards
    schema_editor.alter_field(from_model, from_field, to_field)
  File "/Users/mixxorz/.virtualenvs/dj191-wg13/lib/python2.7/site-packages/django/db/backends/base/schema.py", line 482, in alter_field
    old_db_params, new_db_params, strict)
  File "/Users/mixxorz/.virtualenvs/dj191-wg13/lib/python2.7/site-packages/django/db/backends/postgresql/schema.py", line 116, in _alter_field
    self.execute(like_index_statement)
  File "/Users/mixxorz/.virtualenvs/dj191-wg13/lib/python2.7/site-packages/django/db/backends/base/schema.py", line 110, in execute
    cursor.execute(sql, params)
  File "/Users/mixxorz/.virtualenvs/dj191-wg13/lib/python2.7/site-packages/django/db/backends/utils.py", line 79, in execute
    return super(CursorDebugWrapper, self).execute(sql, params)
  File "/Users/mixxorz/.virtualenvs/dj191-wg13/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
    return self.cursor.execute(sql, params)
  File "/Users/mixxorz/.virtualenvs/dj191-wg13/lib/python2.7/site-packages/django/db/utils.py", line 95, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/Users/mixxorz/.virtualenvs/dj191-wg13/lib/python2.7/site-packages/django/db/backends/utils.py", line 64, in execute
    return self.cursor.execute(sql, params)
django.db.utils.ProgrammingError: relation "wagtailimages_filter_spec_42ad6e02_like" already exists

Happens on both Wagtail 1.2 and 1.3, but only on Django 1.8.8 and 1.9.1. Migrations continue to work on Django 1.8.7 and 1.9.0. In addition, migrations still work with SQLite.
A workaround right now is to downgrade the Django version to 1.8.7 or 1.9.0, migrate, then upgrade Django.
This doesn't look like a wagtail issue given that migrations still work for older versions of Django. Heads up though.

Thanks @mixxorz
This looks like a Django bug (https://code.djangoproject.com/ticket/26034) but we're currently investigating workarounds.

That was fast. Thanks! :+1:


No means of supplementing an instantiated Config

As mentioned in the issue #28 thread:
As a lib user
I want a means of supplementing values from env (or from file even)
So I can anchor a Config with known values and defer to values from elsewhere

available in v0.5.0


Keep branch in Pipfile.lock ref for VCS requirements

Is your feature request related to a problem? Please describe.
I would like to ask you if is it possible to change your decision

Always store exact commit in the lockfile

from https://github.com/pypa/pipenv/pull/2209 for case when VCS requirement uses branch. I think it could be handy for development. For example, in our team we set branch for VCS requirement when we develop some new feature. When the feature is done we release it and in our project we set the tag or in some cases we set the specific commit.
Describe the solution you'd like
I think it should respect passed ref in Pipfile.lock when installing package:
pipenv install -e<EMAIL_ADDRESS>should keep update-3.0 branch in ref.
And pipenv install -e git+https://github.com/requests/requests.git@190a68550ac2172d9651470558f90cb6b754d065#egg=requests should keep 190a68550ac2172d9651470558f90cb6b754d065 hash commit in ref.

$ pipenv --support
Pipenv version: '2018.11.26'
Pipenv location: '/home/jcas/.local/lib/python3.5/site-packages/pipenv'
Python location: '/usr/bin/python3'
Python installations found:

3.5.2: /home/jcas/projects/olc/mp/virtual/pipenv_respecting_vcs_branch/bin/python3.5
3.6.7: /usr/bin/python3.6m
3.5.2: /usr/bin/python3.5m
3.6.7: /usr/bin/python3.6
2.7.12: /usr/bin/python2.7
3.5.2: /usr/bin/python3

PEP 508 Information:
{'implementation_name': 'cpython',
 'implementation_version': '3.5.2',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '4.8.17-040817-generic',
 'platform_system': 'Linux',
 'platform_version': '#201701090438 SMP Mon Jan 9 09:40:28 UTC 2017',
 'python_full_version': '3.5.2',
 'python_version': '3.5',
 'sys_platform': 'linux'}

System environment variables:

SESSION_MANAGER
PATH
DESKTOP_SESSION
USER
LC_TELEPHONE
PIP_SHIMS_BASE_MODULE
USERNAME
HOME
VTE_VERSION
SSH_AUTH_SOCK
XDG_CONFIG_DIRS
PS1
QT_QPA_PLATFORMTHEME
LOGNAME
QT_ACCESSIBILITY
XDG_DATA_DIRS
MANDATORY_PATH
PYTHONDONTWRITEBYTECODE
GJS_DEBUG_TOPICS
_
VIRTUAL_ENV
LC_PAPER
CLUTTER_IM_MODULE
WINDOWPATH
MDM_LANG
GTK_IM_MODULE
DISPLAY
MDMSESSION
LC_MEASUREMENT
LC_IDENTIFICATION
XDG_CURRENT_DESKTOP
LESSOPEN
LC_ADDRESS
OLDPWD
PYTHONFINDER_IGNORE_UNSUPPORTED
GTK_MODULES
QT_LINUX_ACCESSIBILITY_ALWAYS_ON
LANG
LESSCLOSE
PIP_PYTHON_PATH
SSH_AGENT_PID
XDG_SEAT
XDG_SESSION_COOKIE
XDG_RUNTIME_DIR
XMODIFIERS
GJS_DEBUG_OUTPUT
WINDOWID
CINNAMON_VERSION
LC_NUMERIC
XDG_VTNR
GDMSESSION
GNOME_DESKTOP_SESSION_ID
XDG_SESSION_ID
QT4_IM_MODULE
PIP_DISABLE_PIP_VERSION_CHECK
LC_NAME
LC_TIME
QT_STYLE_OVERRIDE
XAUTHORITY
LS_COLORS
SHELL
PWD
DBUS_SESSION_BUS_ADDRESS
LC_MONETARY
GTK_OVERLAY_SCROLLING
MDM_XSERVER_LOCATION
SHLVL
XDG_SESSION_DESKTOP
TERM
GDM_XSERVER_LOCATION
DEFAULTS_PATH

Pipenv–specific environment variables:
Debug–specific environment variables:

PATH: /home/jcas/projects/olc/mp/virtual/pipenv_respecting_vcs_branch/bin:/home/jcas/bin:/home/jcas/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/mssql-tools/bin:/opt/mssql-tools/bin
SHELL: /bin/bash
LANG: en_US.UTF-8
PWD: /home/jcas/projects/olc/mp/virtual
VIRTUAL_ENV: /home/jcas/projects/olc/mp/virtual/pipenv_respecting_vcs_branch

Contents of Pipfile ('/home/jcas/projects/olc/mp/virtual/Pipfile'):
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]
requests = {git = "https://github.com/requests/requests.git",editable = true,ref = "update-3.0"}

[requires]
python_version = "3.5"

Contents of Pipfile.lock ('/home/jcas/projects/olc/mp/virtual/Pipfile.lock'):
{
    "_meta": {
        "hash": {
            "sha256": "7df504f061ad19aa986a0dbb6caa8ed0f975a41bcf07f20be5bd245a704e67aa"
        },
        "pipfile-spec": 6,
        "requires": {
            "python_version": "3.5"
        },
        "sources": [
            {
                "name": "pypi",
                "url": "https://pypi.org/simple",
                "verify_ssl": true
            }
        ]
    },
    "default": {
        "certifi": {
            "hashes": [
                "sha256:47f9c83ef4c0c621eaef743f133f09fa8a74a9b75f037e8624f83bd1b6626cb7",
                "sha256:993f830721089fef441cdfeb4b2c8c9df86f0c63239f06bd025a76a7daddb033"
            ],
            "version": "==2018.11.29"
        },
        "chardet": {
            "hashes": [
                "sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae",
                "sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691"
            ],
            "version": "==3.0.4"
        },
        "idna": {
            "hashes": [
                "sha256:3cb5ce08046c4e3a560fc02f138d0ac63e00f8ce5901a56b32ec8b7994082aab",
                "sha256:cc19709fd6d0cbfed39ea875d29ba6d4e22c0cebc510a76d6302a28385e8bb70"
            ],
            "version": "==2.5"
        },
        "requests": {
            "editable": true,
            "git": "https://github.com/requests/requests.git",
            "ref": "190a68550ac2172d9651470558f90cb6b754d065"
        },
        "urllib3": {
            "hashes": [
                "sha256:8ed6d5c1ff9d6ba84677310060d6a3a78ca3072ce0684cb3c645023009c114b1",
                "sha256:b14486978518ca0901a76ba973d7821047409d7f726f22156b24e83fd71382a5"
            ],
            "version": "==1.21.1"
        }
    },
    "develop": {}
}

No. The lock file, by definition, should be a reproducible snapshot of the dependencies. Referencing a requirement using a branch means pointing to a moving target, essentially defeating the purpose of locking. If you need to update the ref, you should re-generate the lock file.

Yeah closing this out for now -- @uranusjr basically covered why


Create Proposal - Larger Text fields

See shutter dao member feedback here

As you can see here our text fields are a good size for addresses (e.g. EOAs, multisigs etc)

However for smart contract transactions they require side scroll

This issue will be satisfied (at least, much less of an issue) after the completion of #1363. The main problem right now is that all parameters for a function call need to be stuffed into one single-line input. After #1363, each parameter will receive its own single-line input, which is totally acceptable IMO.
Closing.


Prepare example to isolate shader miscompilation

When tile_alloc uses a workgroup shared variable to broadcase tile_offset, it gives wrong answers seemingly consistent with a nonexistent barrier on mac.

I have indeed reduced the example a lot. Currently it's just running tile_alloc.wgsl, which is now a very simple shader that just does an atomic add (on one thread), followed by a barrier and writing the result of that add.

Not intended to merge, so closing. Working around the miscompilation is still a relevant issue, though, and this could be done at many possible layers in the stack: in the shader (as is currently the case), disabling buffer robustness (or possibly changing the configuration to use clamping rather than conditionalization), or in naga to avoid patterns (such as passing threadgroup shared variables by reference to the main entry point) that trigger miscompilation. Probably an issue should be opened to track that work.


Add a 'sprite_source' property to tie sprites to a feature property

sprite_source is a new draw group property for points that sets the sprite value to that of the specified feature property. For example:
sprite_source: kind
is syntactic sugar for
sprite: function() { return feature.kind }
The reasoning to add a specific property for it is:

It turns out it's a fairly common way to specify feature/sprite mappings, with a pre-defined sprite sheet texture that lines up with known feature property values.
It pairs well with the recently added sprite_default property. By setting a sprite_source and a sprite_default, it's easy to setup data-driven sprites with a clear fallback.
The behavior and name is similar to the existing text_source field for the text style.

@blair1618 what do you think of this?
@nvkelso this is intended to further simplify our POI style rules

Nice!

I wonder if there's a more general way we can provide shortcuts access feature properties, so that we don't have to add a specific style property every time. Can we allow something like $kind or $feature.kind in general?

@blair1618 yes I have been thinking about that too. Here's a quick test of that, it was easy to do and is more generic:
https://github.com/tangrams/tangram/compare/property-substitution
On the other hand, we should think about normalizing the different ways we are already referring to feature properties. Current syntax examples:

Draw group filter object, implicit feature property as key:

filter: { kind: park }

Draw group filter function, explicit w/feature scope (equivalent to above example):

filter: function() { return feature.kind === 'park' }

Text style text_source property, implicit feature property as value:

draw: { text: { text_source: kind } }

Draw group filter object, referencing non-feature property w/$ syntax:

filter: { $zoom: { min: 10 } }

How should we think about rectifying these to use the same syntax, without making it unwieldy? For instance, the filter syntax assumption that a feature property was being access, kind instead of something like $feature.kind, was a trade-off recognizing that it was a cleaner, simpler syntax that is used for 90% of filters. On the other hand, one could argue it is less clear.
Minimally, we could change the filter function syntax to be $feature. instead of just feature., and/or accept both forms in filter objects or functions for backwards compatibility.
Ideas?

@bcamper yeah you're right, I had forgotten about all the ways we reference feature properties. In terms of making the syntax consistent and intuitive, it seems like we should have some principle that the syntax follows here. For instance, make $property in yaml always refer to feature.property. The examples then become:

filter: { $kind: park }
filter: function() { return feature.kind === 'park' } (JS should probably keep JS syntax)
draw: { text: { text_source: $kind } }
filter: { zoom: { min: 10 } } ($ isn't used because zoom isn't in the feature data)

This is just one option that made sense to me. You also make a good point that if we change this, we can accept both syntaxes for a time (maybe with a warning).

@blair1618 ah right, but don't forget we already have "special" syntax, like
filter: { $zoom: { min: 10 } }
That does not refer to a feature property :/

Yeah check the last bullet point in my reply - zoom is kind of a special word already so this would just change they way that it's "special"

Oh sorry. Regarding JS, $feature isn't inherently any less "JS" than feature. is. Right now a variable called feature is put into JS function scope, it would be a one-character change to make it $feature :)

To elaborate, our initial thinking was that since feature properties were special, they would get the simplest syntax, meaning they could just be referred to directly, kind. This only really started breaking down with a property like sprite, which already excepts single-word string values that refer to named sprites. We didn't have this with the existing text_source property because it's overloaded to be either a feature property (when a string), or a function (returning the text to use for the label).

Ah, I suppose you could provide a variable $feature instead of feature, but that might suggest that one is referencing feature.feature :P
I definitely like how we prefer concise syntax for the most common styling cases, that's one of the best things about the stylesheet. Referring to feature properties with $property instead of property does involve that one extra character, it trades some typing for (what I think is) a pretty significant improvement in comprehensibility. This seems like a good trade-off to me because I don't think anyone has complained that the stylesheet is too verbose, but we have definitely seen cases of people struggling with understanding.

So there are also a couple branches relating to adding access to "scene"-level (global) properties. We have a scene block already for defining background color, with the intention to expand it to support things like language preference, and other user-defined properties that can be accessed in filters or functions. Zoom can also be considered one of these (it's a view-dependent scene property).
So we should take into account a syntax that provides access to those as well. These are not often-accessed, so I am thinking some kind of prefix like scene.language.

$ for feature properties and scene. for scene properties is growing on me, and if we could make it consistent within function scopes, so much the better – though I don't know that there's a good way to support both styles in a transition period, in the case of conflicts between style and function property names…

yeah been leaving this open because I'm hesitant to make any changes that require massive re-writing of styles with unclear overall benefit (kind -> $kind, etc. -- really that much better?)

Actually @blair1618, as mentioned the other day, still interested in possibly merging this as-is, because even though it's another explicitly defined property tying to features, it eliminates the (possibly wasteful) need for a JS property, and Eraser Map will need this, so it could be worth it.

Supporting both syntax forms in a single version does seem tricky. We can always make the change part of a new release, right?
@bcamper yeah regardless of the JS solution we end up with, the fastest JS function is the one we never have to run :) I had anticipated treating the special-keyword-feature-properties as a sort of built-in function, so we could access the value without running JS at all.

Right, I'm just looking for some reasonable solution in the near-term. I'm hesitant to introduce new syntax yet because the benefits just don't seem that great to me (my main dissatisfaction is with the different between bare-word feature property kind in filters, vs. scoped as feature.kind in JS functions... but this does not seem worth rewriting all styles to me).
This solution might be obviated by a more generic one in the future (if it turns out that a feature property as value is a common enough use case), but it conforms to the existing text_source behavior, so we could replace both at the same time.

This is likely to be resolved with a more generic approach, such as sprite: feature.kind.


src: Place init functions into .init.text section

We determine whether a function is an init function by whether it
is defined in the .init.text section. But there are some init
functions are placed in .ref.text section, and we put them into
.init.text at the linking stage.
Signed-off-by: Cruz Zhao<EMAIL_ADDRESS>

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Cruz Zhao seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


[HOTFIX] Fix CI

What is this PR for?
CI is failing since https://github.com/apache/zeppelin/commit/970b8117a48a31a9375bf7f76142117fd9b3bd86
This PR tries to make CI green
What type of PR is it?
Hot Fix
How should this be tested?
CI Green
Questions:

Does the licenses files need update? no
Is there breaking changes for older versions? no
Does this needs documentation? no

CI became green.
I'm merging it to master and branch-0.7 as a hotfix.
Created issue https://issues.apache.org/jira/browse/ZEPPELIN-2284 to make sure remove AngularObject on interpreter restart in the future.


Limit regex set, make a "traditional set" plugin

RegexSet can be used to spam a lot, eg. /regexset . - SPAM will reply to every message - make 10 such regexsets, and you've got a huge spam multiplier.
It was suggested in chat that we restrict the usage of RegexSet to trusted users with the "permission to spam" (i.e. mods), and make a "traditional set" plugin open to everyone.
The traditional set plugin will work like !set in @rtars, matching only the first word in a sentence.
Ping @crisbal and @blackdev1l to discuss this. If it's okay, we can either split that into two issues and work on them, or just push the fix and close this issue in the same day.

My thought is that Regex is way too powerful to be left to users in high message traffic groups.
I suggest some sort of whitelist (where it should preferably be stand alone from other whitelists, altough this could be too much effort on a single plugin) like mod or a global whitelist.

Traditional set implemented in 461e93567c7509946e5a940d8f17a6a9bcf22102.


Added Google Maps and Pinterest with testing them and adding them to …

…README file

Very nice! Thanks for adding all of these ..
Small note: I noticed you haven't pulled the latest changes from the main repo, you might want to do that before making more changes.

Your welcome ..
I'm really sorry but I didn't get your note. Could you please explain more?
Each time I forked the main repo, it's ok?

You basically have to add the main repo's url to your local fork, and pull the latest changes from there.
I made a quick post about it http://mazyod.com/blog/2015/12/29/contributing-on-github/