Added possibility to include custom scripts

Describe the solution you'd like
There should be a feature to include custom scripts. This makes it possible to easliy include custom software. eg

a script to install customized vs code (preinstalled with exstentions)
a script to install openbox with configs

This makes it possible for the community to easily change the tos installation.
Describe alternatives you've considered
Manually installing those piece of software. However this requires you to know how to install those. How to fix certain issues and takes time for every install.
This also gives you only a bare install (not with custom skins etc)
Additional context
This feature could be integrated with dialogarchinstall so that new installs can install those pieces of software with them

This feature has been included in the helper-scripts repository. Go over there and read on how to add custom scripts to the system. To explain it here briefly do the following.
Inside the helper-scripts repo you have a directory installer. Inside this directory you find multiple files.
One of which is called framework.sh This is a simple script that exposes multiple functions for you to use in a self contained installer script.
If you want to add a custom installer script you will have to put it inside that directory. Give the file a usefull name such as spotify.sh to indicate that it installs custom spotify.
Currently the framwork is setup as followed:
source $framework # this will give you all the framework functions

prmpt "This is a prompt" # give the users information about the current state

ask "I am asking something" "default answer" # ask for user input
echo $result # $result holds the answer of the user (by default "default answer" as seen above)

packages git wget # install git and wget to the system

# Download repo.pbfp.xyz to $HOME/test/testfile
# If the directory doesn't exist it will be created
download $HOME/test testfile https://repo.pbfp.xyz


Remove remaining YAML recordings

Description
As part of the effort to externalize all of the Python SDK's recordings, we're removing any recordings from the old vcrpy setup. This PR deletes these YAML recordings and, where necessary, makes tests live-only with a message to migrate to the test proxy in order to restore recording capabilities. For azure-servicemanagement-legacy, test collection is disabled altogether by prefixing test file names with "disable_".
All SDK Contribution checklist:

[x] The pull request does not introduce [breaking changes]
[x] CHANGELOG is updated for new features, bug fixes or other significant changes.
[x] I have read the contribution guidelines.

General Guidelines and Best Practices

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[x] Pull request includes test coverage for the included changes.

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


Fix Issue 13853 - Assert fail in std.random unittests

I'm not sure, if we want to have unittests, that only work high likely but not certain. If yes, the bug report can be closed as invalid. If not, this PR fixes it by commenting out the test.
Anyway, I reduced the amount of cycles run in this tests in PR #7270, because the test did run too long. It's still one of the slowest of all tests of phobos.

I'm not sure, if we want to have unittests, that only work high likely but not certain.

No, we do not. Unit tests need to be 100% reliable.

If yes, the bug report can be closed as invalid.

It's valid if it fails every now and again.

If not, this PR fixes it by commenting out the test.

Please don't do that. At most loop through the test N amount of times so that it'll nearly always pass.

I'm not sure, if we want to have unittests, that only work high likely but not certain.

No, we do not. Unit tests need to be 100% reliable.
[...]

If not, this PR fixes it by commenting out the test.

Please don't do that. At most loop through the test N amount of times so that it'll nearly always pass.

I don't understand. IMHO these two sentences are a contradiction. The first one states a unittest should be "100% reliable" and the second one askes me to make it "nearly always pass" which I translate to <100% reliable. What did I get wrong?

You're right, they're contradictory. But looping should be enough to guarantee 0% flakiness. If it doesn't, we need to rethink how to do this.

You're right, they're contradictory. But looping should be enough to guarantee 0% flakiness. If it doesn't, we need to rethink how to do this.

I think, that's exactly the problem. It's allready a loop of 50.000 steps (has been even 100.000 when the bug was reported and the original author confesses that this is actually to few for good estimates). I would not mind to increase this value, but the test is very slow, the slowest test in whole Phobos. So we should really rethink, what we want to test here exactly...


ValueError: Input 0 of layer "sequential" is incompatible with the layer: expected shape=(None, 219566, 6), found shape=(None, 6)

Guys, do you have any idea how to solve this problem (LSTM, Keras, Tensorflow)?
I looked through the similar topics but suggested solutions do not work for me. The code is pretty simple:
import pandas as pd
import numpy as np
import tensorflow as tf
import sklearn
import keras_tuner as kt
from tensorflow import keras
from sklearn.preprocessing import MinMaxScaler
from sklearn.model_selection import train_test_split
from tensorflow.keras import layers
df_training_data = pd.read_csv (r'G:\Research\Oils\REQUESTS\US_data\ProdAbo_AllHeaders_csv.csv')
x_total = df_training_data.loc[:,['Lat_X1','Lon_X2','Month_X3',
'Well_length_X5','Density_X7','Month_from_start_X8']]
y_total = df_training_data.loc[:,'Liquids_Y1']
scaler = MinMaxScaler()
x_total = scaler.fit_transform(x_total)
x_total = np.array(x_total).astype(np.float32)
y_total = np.array(y_total).astype(np.float32)
x_train, x_test, y_train, y_test = train_test_split(x_total, y_total, test_size = 0.3, random_state = 0)
num_rows, num_cols = x_train.shape
x_train = tf.reshape(x_train, [num_rows, num_cols])
y_train = tf.reshape(y_train, [num_rows, 1])
batch_size = 100
num_epochs = 5
model = tf.keras.models.Sequential([tf.keras.layers.LSTM(num_cols,
input_shape=(num_rows,num_cols),
activation = tf.nn.tanh,
return_sequences=True),
tf.keras.layers.LSTM(10, activation = tf.nn.tanh),
tf.keras.layers.Dense(1, activation = tf.nn.relu)])
model.compile(optimizer='adam', loss='mse', metrics=[tf.keras.metrics.RootMeanSquaredError()])
model.fit(x_train, y_train, epochs=num_epochs, batch_size=batch_size, validation_data=(x_test, y_test))
And here we are:
ValueError                                Traceback (most recent call last)
 in
3 num_epochs = 5
4
----> 5 model.fit(x_train, y_train, epochs=num_epochs, batch_size=batch_size, validation_data=(x_test, y_test))
6
7 #model.fit(train_data, epochs=num_epochs, batch_size=batch_size, validation_data=test_data)
C:\ProgramData\Anaconda3\lib\site-packages\keras\utils\traceback_utils.py in error_handler(*args, **kwargs)
65     except Exception as e:  # pylint: disable=broad-except
66       filtered_tb = _process_traceback_frames(e.traceback)
---> 67       raise e.with_traceback(filtered_tb) from None
68     finally:
69       del filtered_tb
C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\framework\func_graph.py in autograph_handler(*args, **kwargs)
1145           except Exception as e:  # pylint:disable=broad-except
1146             if hasattr(e, "ag_error_metadata"):
-> 1147               raise e.ag_error_metadata.to_exception(e)
1148             else:
1149               raise
ValueError: in user code:
File "C:\ProgramData\Anaconda3\lib\site-packages\keras\engine\training.py", line 1021, in train_function  *
    return step_function(self, iterator)
File "C:\ProgramData\Anaconda3\lib\site-packages\keras\engine\training.py", line 1010, in step_function  **
    outputs = model.distribute_strategy.run(run_step, args=(data,))
File "C:\ProgramData\Anaconda3\lib\site-packages\keras\engine\training.py", line 1000, in run_step  **
    outputs = model.train_step(data)
File "C:\ProgramData\Anaconda3\lib\site-packages\keras\engine\training.py", line 859, in train_step
    y_pred = self(x, training=True)
File "C:\ProgramData\Anaconda3\lib\site-packages\keras\utils\traceback_utils.py", line 67, in error_handler
    raise e.with_traceback(filtered_tb) from None
File "C:\ProgramData\Anaconda3\lib\site-packages\keras\engine\input_spec.py", line 264, in assert_input_compatibility
    raise ValueError(f'Input {input_index} of layer "{layer_name}" is '

ValueError: Input 0 of layer "sequential" is incompatible with the layer: expected shape=(None, 219566, 6), found shape=(None, 6)

Problem resolved:
x_train = np.reshape(x_train, (x_train.shape[0],1,x_train.shape[1]))
x_test = np.reshape(x_test, (x_test.shape[0],1,x_test.shape[1]))
model = tf.keras.models.Sequential([tf.keras.layers.LSTM(num_cols,
input_shape=(1,num_cols),
activation = tf.nn.tanh,
return_sequences=True),
tf.keras.layers.LSTM(10, activation = tf.nn.tanh),
tf.keras.layers.Dense(1, activation = tf.nn.relu)])

x_train = np.reshape(x_train, (x_train.shape[0],1,x_train.shape[1]))
x_test = np.reshape(x_test, (x_test.shape[0],1,x_test.shape[1]))
If I try this methods its giving this error
Must pass 2-d input. shape=(53656, 1, 54)

Is there any alternate way to solve expected =____ ;found=___ error?


Connect RUCIO to FTS Pilot at CERN

FTS is the file transfer service used by RUCIO to manage data. RUCIO needs to authenticate with an FTS instance in our case https://fts3-pilot.cern.ch:8446. This is done via a Grid Robot Certificate requested by a Service Account  at CERN. For now we use the existing Service Account (see tbag for credentials) called ewp2c01 and thus can copy the secrets from the current cluster. The secrets are called <releasename>-fts-key and <releasename>-fts-cert, refer to https://github.com/rucio/helm-charts/tree/98664975284c03b18a74c295d19ec013ee43ea10/charts/rucio-daemons#conveyor

Daemons helm install fails due to missing FTS VOMS certificate, which needs to be created by the fts-cronjob. The cronjob fails as it does not find the cert/key file although they exist:
NAMESPACE↑                 NAME                                         TYPE                    DATA                 AGE                   │
│ rucio                      rucio-daemons-cvre-fts-cert                  Opaque                  1                    48m                   │
│ rucio                      rucio-daemons-cvre-fts-key                   Opaque                  1                    48m

│ =================== Delegating ========================                                                                                │
│ cp: cannot stat '/opt/rucio/certs/usercert.pem': No such file or directory                                                                 │
│ cp: cannot stat '/opt/rucio/keys/new_userkey.pem': No such file or directory                                                               │
│ chmod: cannot access '/tmp/key.pem': No such file or directory                                                                             │
│ PCI extension info:                                                                                │
│  Path length: -1                                                                                │
│  Policy language not specified.                                                                                │
│  Policy file not specified.                                                                                │
│ Number of bits in key :2048                                                                                │
│ Unable to find user certificate or key: /tmp/cert.pem                                                                                │
│ (2, 'No such file or directory')                                                                                │
│ error: error reading /tmp/x509up: no such file or directory                                                                                │
│ error: no objects passed to apply                                                                                │
│ Stream closed EOF for rucio/rucio-daemons-cvre-renew-fts-proxy-manual-2jx--1-glm47 (renew-fts-cron)

The debugging session with Radu concluded that the naming was the issue: usercert.pem and new_userkey.pem are hardcoded in the Docker script.
Now the secrets are picked up by the script but issues remain:
=================== Delegating ========================                                                                                │ │ PCI extension info:                                                                                │ │  Path length: -1                                                                                │ │  Policy language not specified.                                                                                │ │  Policy file not specified.                                                                                │ │ Number of bits in key :2048                                                                                │ │ Files being used:                                                                                │ │  CA certificate file: none                                                                                │ │  Trusted certificates directory : /etc/grid-security/certificates                                                                                │ │  Proxy certificate file : /tmp/x509up                                                                                │ │  User certificate file: /tmp/cert.pem                                                                                │ │  User key file: /tmp/key.pem                                                                                │ │ Output to /tmp/x509up                                                                                │ │ error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:707Expecting: ANY PRIVATE KEY                                                    │ │ no start lineExpecting: ANY PRIVATE KEY                                                                                │ │ Function: PEM_read_bio                                                                                │ │ error:800693F5:lib(128):proxy_init_cred:processing key:sslutils.c:3133                                                                            │ │         File=/tmp/key.pem                                                                                │ │ processing key                                                                                │ │         File=/tmp/key.pem                                                                                │ │ Function: proxy_init_cred                                                                                │ │ (2, 'No such file or directory')                                                                                │ │ error: error reading /tmp/x509up: no such file or directory                                                                                │ │ error: no objects passed to apply                                                                                │ │ Stream closed EOF for rucio/rucio-daemons-cvre-renew-fts-proxy-manual-dxc--1-52rtz (renew-fts-cron)

The issue was a false key file. The then adjusted script: https://github.com/EOSC-Future/eosc-future-cern/blob/main/iac/scripts/fts.sh was able to deploy a valid x509up certificate for rucio and the conveyors are starting successfully now.


How can I use HTTP_CLIENT(jdk 17) on clickhouse-http-client

the client version:
        <dependency>
            <groupId>com.clickhouse</groupId>
            <artifactId>clickhouse-http-client</artifactId>
            <version>0.5.0</version>
        </dependency>

Is this a duplicate of https://github.com/ClickHouse/clickhouse-java/issues/1407 ?


Install location of gitproj dependency

I'm curious if I can specify location of dependency installed.
For example,
repos:
	folder/repo git@github.com:3ptscience/repo.git

But it seems folder prefix cannot do that?

hmm.
That should work.
It needs to be the same in the states section of the gitproj too though:
repos:
    path/to/repo url.git
states:
   path/to/repo branch commit

I'm not positive as to whether or not it will create folder though. You may have to do that manually.


chore(post): show args passed

this is good in case you accidentally provide too many args by mistake

related to OSD-9903

related to OSD-9903

@georgettica  would it make sense to only enable this when a --verbose flag is being set?

@georgettica  Also: I don't see where your code is related to the Issue you are working on. Can you add a comment or an explanation how your code solves the issue described in: https://issues.redhat.com/browse/OSD-9903 ?

Seems ok to me, but I am already printing the command sent.
Once we move it to verbose, no on will use them

/lgtm
/approve

/retest

Oh! I didn't know that approve would "automerge" this. Sorry @fahlmant

Yeah, this is the automation we should have had in CAD, not there yet


Bug on deletion.

Hello. Version 2.2.1 spontaneously removes jobs from the queue.
https://1drv.ms/v/s!AmTnbvtJXCZYgX5Dgsr6aKfJZ4q5?e=gCx7Cr

Thanks for the report, I've released v2.2.2 to fix this.


Teardown

closes #83

@awcrotwell This is good to go after we get the listTables to work in the frontend again. Can you take a look at that please? 🙂


Add withoutNotifying support for asyncWrite / writeAsync

Problem
Background: https://github.com/realm/realm-swift/issues/6760
This was added to realm.write - would be amazing to have for asyncWrite and writeAsync
Solution
No response
Alternatives
No response
How important is this improvement for you?
Would be a major improvement
Feature would mainly be used with
Local Database only

need too

Bumping this issue as I'm running into this issue again
Added context: I had to transition away from synchronous realm writes in order to eliminate a bunch of crashing instability, and now use async exclusively (behind the same actor for writing, too) which has worked alright except now I've lost this critical functionality

Can you give a concrete example of what the code using it looks like? The use-case which originally motivated withoutNotifying: specifically required that the write be synchronous, so my concern with exposing it on asyncWrite is that it might be something that looks like it'll work but actually just blows up when things are scheduled in a certain way. If you are doing something that'll work with the current design, exposing it should be trivial.


How to export enum for typescript correctly

Summary

I'm trying to export an enum - but when importing it, to use as both a type and value am getting an error in the typescript code: "TypeSystemPropertyName refers to a value, but is being used as a type here. Did you mean 'typeof TypeSystemPropertyName". I need to use commonjs import syntax (require). How should I be importing this using the below code? My typescript code example:

namespace something {
  const {TypeSystemPropertyName} = require("typescript-compiler-checker-wasm");

  function badlyNamedFunction(propertyName: TypeSystemPropertyName) {
             //do something....
  }
}

The rust code for enum looks like:
#[wasm_bindgen]
#[repr(u8)]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum TypeSystemPropertyName {
    Type,
    ResolvedBaseConstructorType,
    DeclaredType,
    ResolvedReturnType,
    ImmediateBaseConstraint,
    EnumTagType,
    ResolvedTypeArguments,
    ResolvedBaseTypes,
}

It then looks like this in the .d.ts file:
export enum TypeSystemPropertyName {
  Type,
  ResolvedBaseConstructorType,
  DeclaredType,
  ResolvedReturnType,
  ImmediateBaseConstraint,
  EnumTagType,
  ResolvedTypeArguments,
  ResolvedBaseTypes,
}

Additional Details
When I don't import this, and instead do the enum directly inside of the file, it compiles with no issues.
edit: added full error

Hm that looks right to me, but sorry other than that I'm not familiar enough with the intricacies of TypeScript to know how to further help here :(

@alexcrichton maybe this is the case? https://stackoverflow.com/questions/50564756/exporting-enum-from-typescript-type-definition-file

Ah yep that would make sense. Missed the fact that it's not exporting as a const enum. Any work arounds for this?

Ah if all we need to do is tweak the *.ts or js file itself, a PR should be fine to do that!

Ah if all we need to do is tweak the *.ts or js file itself, a PR should be fine to do that!

For any future people searching errors:
When I tried using exported enums as values, I did not get any compile errors, but I got this error at runtime. I'm using native import syntax with the webpack plugin.
Firefox: Uncaught TypeError: wasmExports is undefined
// exec wasm module
wasmExports[""]()

Chrome: Cannot read property '' of undefined – this error trace doesn't make much sense to me; here's the second to last location in the trace.
// Execute the module function
__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);

@370417 That is most definitely a webpack loading problem. If you could remove it as a dependency (at least temporarily), you'd likely end up with something else.


TypeError: Cannot set property 'title' of null

Hi,
I just came across what I believe could be a bug.
I have a function defined as follows:
var send = function (body, contentAvailable, title, tokenIos) {

    // Setup the notification:
    var notification = new apn.Notification();

    notification.badge = 1;
    notification.body = body;
    notification.contentAvailable = contentAvailable ? 1 : 0;
    notification.expiry = Math.floor(Date.now() / 1000) + 3600; // Expires 1 hour from now.
    notification.sound = title ? "ping.aiff" : null;
    notification.title = title;

    // Etc.

When I try sending a "silent" notification (with body = null, contentAvailable = true and title = null) I get the following error:
TypeError: Cannot set property 'title' of null
    at Object.title (/home/ubuntu/app/node_modules/apn/lib/notification/apsProperties.js:37:24)
    at send (/home/ubuntu/app/notification.js:114:24)
    at /home/ubuntu/app/notification.js:58:9
    at /home/ubuntu/app/notification.js:46:16
    at /home/ubuntu/app/db.js:29:16
    at .<anonymous> (/home/ubuntu/app/node_modules/pg/node_modules/pg-pool/index.js:104:11)
    at Query.handleReadyForQuery (/home/ubuntu/app/node_modules/pg/lib/query.js:114:10)
    at .<anonymous> (/home/ubuntu/app/node_modules/pg/lib/client.js:172:19)
    at emitOne (events.js:101:20)
    at emit (events.js:188:7)
    at Socket.<anonymous> (/home/ubuntu/app/node_modules/pg/lib/connection.js:121:12)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:177:18)
    at Socket.Readable.push (_stream_readable.js:135:10)
    at TCP.onread (net.js:542:20)

The error therefore appears to be traceable to this setter method in apsProperties.js (line 37):
set title(value) {
    this.prepareAlert();
    this.aps.alert.title = value;
},

And in turn, the reason why the alert property is null can be found here (line 15):
set body(value) {
    if (typeof this.aps.alert !== "object") {
      this.aps.alert = value;
    }
    else {
      this.prepareAlert();
      this.aps.alert.body = value;
    }
},

Due to the fact that this.aps.alert !== "object" is true and I am setting the body (as well as the title of the notification) to null an exception is thrown.
Am I doing something wrong? Thank you in advance.

I think if you want to achieve what you're looking for, body should be undefined not null. Optimally, don't set the body/title at all if send is not provided with one.

Right, that's exactly how I'm going about it now and it's not a big deal.
Just thought that perhaps it would be useful to highlight this behavior for re-factoring/resiliency purposes.
Thanks anyway!


azure-cli version >= 2.0.30 fails to run basic commands from workstations

azure-cli version >= 2.0.30 fails to run basic commands from workstations
Since azure-cli version 2.0.30, many az commands fail to run.  They instead timeout after trying to reach <IP_ADDRESS>.  I'm guessing that the Python code is trying to interact with the Azure metadata service available from VMs and with MSI.  I believe the error would not be visible if run from an Azure VM but manifests itself from workstations.
See trace dumps below for timeout and retry.
Environment summary
Mac OS High Sierra (10.13.4)
Installed via Homebrew
Shell: bash
Similar errors also observed on Linux and Windows workstations
Workaround: revert to <= 2.0.29.
Output of az -v
 ~/Desktop/tmp/test  $  az -v
azure-cli (2.0.30)

acr (2.0.22)
acs (2.0.30)
advisor (0.5.0)
appservice (0.1.30)
backup (1.1.0)
batch (3.1.11)
batchai (0.1.6)
billing (0.1.7)
cdn (0.0.13)
cloud (2.0.12)
cognitiveservices (0.1.11)
command-modules-nspkg (2.0.1)
configure (2.0.14)
consumption (0.2.2)
container (0.1.20)
core (2.0.30)
cosmosdb (0.1.19)
dla (0.0.18)
dls (0.0.20)
eventgrid (0.1.11)
eventhubs (0.1.1)
extension (0.0.11)
feedback (2.1.0)
find (0.2.8)
interactive (0.3.18)
iot (0.1.18)
keyvault (2.0.20)
lab (0.0.20)
monitor (0.1.4)
network (2.0.26)
nspkg (3.0.2)
profile (2.0.21)
rdbms (0.2.0)
redis (0.2.11)
reservations (0.1.1)
resource (2.0.26)
role (2.0.21)
servicebus (0.1.1)
servicefabric (0.0.11)
sql (2.0.24)
storage (2.0.30)
vm (2.0.29)

Python location '/usr/local/opt/python/bin/python3.6'
Extensions directory '/Users/{redacted}/.azure/cliextensions'

Python (Darwin) 3.6.5 (default, Mar 30 2018, 06:41:53)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-9<IP_ADDRESS>)]

Output from az group list:
HTTPConnectionPool(host='<IP_ADDRESS>', port=80): Max retries exceeded with url: /metadata/identity/oauth2/token?resource=https%3A%2F%2Fmanagement.core.windows.net%2F&api-version=2018-02-01 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10531cdd8>: Failed to establish a new connection: [Errno 60] Operation timed out',))
Traceback (most recent call last):
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/urllib3/connection.py", line 141, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/urllib3/util/connection.py", line 83, in create_connection
    raise err
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/urllib3/util/connection.py", line 73, in create_connection
    sock.connect(sa)
TimeoutError: [Errno 60] Operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/urllib3/connectionpool.py", line 357, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/local/Cellar/python/3.6.5/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 964, in send
    self.connect()
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/urllib3/connection.py", line 166, in connect
    conn = self._new_conn()
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/urllib3/connection.py", line 150, in _new_conn
    self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x10531cdd8>: Failed to establish a new connection: [Errno 60] Operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/requests/adapters.py", line 440, in send
    timeout=timeout
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/urllib3/connectionpool.py", line 639, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/urllib3/util/retry.py", line 388, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='<IP_ADDRESS>', port=80): Max retries exceeded with url: /metadata/identity/oauth2/token?resource=https%3A%2F%2Fmanagement.core.windows.net%2F&api-version=2018-02-01 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10531cdd8>: Failed to establish a new connection: [Errno 60] Operation timed out',))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/knack/cli.py", line 197, in invoke
    cmd_result = self.invocation.execute(args)
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 347, in execute
    six.reraise(*sys.exc_info())
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/six.py", line 693, in reraise
    raise value
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 319, in execute
    result = cmd(params)
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 180, in __call__
    return super(AzCliCommand, self).__call__(*args, **kwargs)
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/knack/commands.py", line 109, in __call__
    return self.handler(*args, **kwargs)
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/azure/cli/core/__init__.py", line 420, in default_command_handler
    result = op(**command_args)
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/azure/cli/command_modules/resource/custom.py", line 436, in list_resource_groups
    return list(groups)
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/msrest/paging.py", line 121, in __next__
    self.advance_page()
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/msrest/paging.py", line 107, in advance_page
    self._response = self._get_next(self.next_link)
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/azure/mgmt/resource/resources/v2017_05_10/operations/resource_groups_operations.py", line 520, in internal_paging
    request, header_parameters, **operation_config)
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/msrest/service_client.py", line 191, in send
    session = self.creds.signed_session()
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/azure/cli/core/msi_imds_authentication.py", line 65, in signed_session
    self._set_token()
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/azure/cli/core/msi_imds_authentication.py", line 43, in _set_token
    token_entry = self.get_token()
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/azure/cli/core/msi_imds_authentication.py", line 60, in get_token
    token_entry = self._retrieve_token_from_imds_with_retry()
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/azure/cli/core/msi_imds_authentication.py", line 85, in _retrieve_token_from_imds_with_retry
    result = requests.get(request_uri, params=payload, headers={'Metadata': 'true'})
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/requests/api.py", line 72, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/Cellar/azure-cli/2.0.30/libexec/lib/python3.6/site-packages/requests/adapters.py", line 508, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='<IP_ADDRESS>', port=80): Max retries exceeded with url: /metadata/identity/oauth2/token?resource=https%3A%2F%2Fmanagement.core.windows.net%2F&api-version=2018-02-01 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x10531cdd8>: Failed to establish a new connection: [Errno 60] Operation timed out',))

@brichins  what command you used to login? If you invoked  az login w/o --msi or --identity, CLI should not try to connect to the IMDS wireserver as revealed from the stack trace you pasted.

Also, please share the output of az account show

I just login with az login.  It give me a link and a code to paste into a browser.  Here's a redacted version of az account show
az account show -o json
{
  "environmentName": "AzureCloud",
  "id": "{redacted}",
  "isDefault": true,
  "name": "{redacted}",
  "state": "Enabled",
  "tenantId": "{redacted}",
  "user": {
    "name": "{redacted}",
    "type": "user"
  }
}

I tried to logout and backend.  That didn't fix it.  I also deleted my $HOME/.azure* directories but that didn't fix it either.

So your VM does have MSI associated or no?

Also to confirm you still see the error after the following steps?
  az account clear
  az login   (use the code and link to login)
  az group list

I'm not working on a VM.  I'm working from a local workstation.  Outside Azure.

What is the the name field value of the az account show

~/Desktop/tmp $ az login
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code REDACTED to authenticate.
CloudName    IsDefault    Name                 State    TenantId
-----------  -----------  -------------------  -------  ------------------------------------
AzureCloud   True         {REDACTED------}     Enabled  REDACTED
AzureCloud                {REDACTED---------}  Enabled  REDACTED
AzureCloud                {REDACTED----}       Enabled  REDACTED
AzureCloud                {REDACTED--------}   Enabled  REDACTED
AzureCloud                {REDACTED------}     Enabled  REDACTED
 ~/Desktop/tmp $ az group list
HTTPConnectionPool(host='<IP_ADDRESS>', port=80): Max retries exceeded with url: /metadata/identity/oauth2/token?resource=https%3A%2F%2Fmanagement.core.windows.net%2F&api-version=2018-02-01 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x111cbab38>: Failed to establish a new connection: [Errno 60] Operation timed out',))

Output of the az account show name is at https://pastebin.com/raw/H0N15WHS

This is a bug i will fix. It looks like your subscription name collides with a MSI pattern. For now if possible, can you rename it to not start with MSI-?

Any update on when this will be fixed?  It's starting to impact more and more teams that we are onboarding to Azure. ~250 developers now, and growing.

The fix will be public released on May 7

Thanks for the update

@derekbekoe for the best recommendation here, but I think you would want to get the Edge Build temporarily until the next public release:
https://github.com/Azure/azure-cli#edge-builds

Installed edge build as per documentation and confirmed it's working.


Error fixing

I fixed the links pointing to the raw files to make it possible to download them.

Hi Nena,
they were relative links before (and pointing nowhere btw, my fault). However the problem is that the file behind a relative link is html formatted and not a executable script (and therefore not "downloadable" by right-clicking and saving). With pointing to the raw file I would like to avoid this problem.
Is there another way? (releases might not be viable in terms of only one or two script files)
Best regards,
Alessandro

okay, that's an argument. I'm not aware on how to refer to the "raw" document while using a relative link.

@nenaraab : Once you approve, I'll merge the change


Chore remove ColumnVectorHelper

Proposed changes
remove ColumnVectorHelper
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall


fix: Prevents Notifications on Linux to show the message "Rocket.Chat is ready"

Closes #2043
Closes #2113
When a new message is received on Linux, the text "Rocket.Chat is read" was appearing instead of the text message, as reported in issue #2043

Please correct me if I'm wrong, are you going to remove flash support for all platforms apart from Windows (which basically revert https://github.com/RocketChat/Rocket.Chat.Electron/pull/1949) in next releases ?
If you do, could be please reconsider ?
I have a lot of Linux users who want to have flash support in Linux and for which 3.2.3 notifications are working properly, so please, don't disable flash support for Linux and others platforms.

@tmartincpp we are planning to provide a configuration in preferences to change it.


chore: rename buildName flag to name

Solves issue #65

I wonder whether we should keep both flags for now with buildName called out as deprecated, and we remove it in a v0.6.0 release? dont want to break people, in case anyone is using it in a CI or something.

Agree with this. The issue was written when we didn't have to worry about backward compatibility just yet.
Thanks for this PR and would love to merge it once the flag is preserved.

@nabuskey @nimakaviani so you suggest to modify the actual PR with both flags to keep backward compatibility showing a message like deprecated, will be removed in future versions use name in buildName flag?

@nabuskey @nimakaviani so you suggest to modify the actual PR with both flags to keep backward compatibility showing a message like deprecated, will be removed in future versions use name in buildName flag?

Yep. It should accept either one, name or build-name.  If build-name is used, print out a message like you said, then continue. Something like --build-name flag is deprecated and will be removed in a future release. Please use --name instead.

Closing this due to inactivity. Feel free to reopen.

Closing this due to inactivity. Feel free to reopen.

I will submit a PR soon ;-)

Done through a different PR


Dev

Pre 0.2.0 pull request

Codecov Report

Merging #26 into master will decrease coverage by 23.75%.
The diff coverage is 67.2%.

@@             Coverage Diff             @@
##           master      #26       +/-   ##
===========================================
- Coverage   97.53%   73.78%   -23.76%
===========================================
  Files          13       15        +2
  Lines        1420     1892      +472
===========================================
+ Hits         1385     1396       +11
- Misses         35      496      +461

Impacted Files
Coverage Δ

src/randomization.jl
100% <ø> (ø)
:arrow_up:

src/export.jl
0% <0%> (ø)

src/sim.jl
0% <0%> (ø)

src/ClinicalTrialUtilities.jl
36.36% <100%> (+3.03%)
:arrow_up:

src/powersamplesize.jl
100% <100%> (ø)
:arrow_up:

src/freque.jl
100% <100%> (ø)
:arrow_up:

src/info.jl
100% <100%> (ø)
:arrow_up:

src/deprecated.jl
27.33% <27.33%> (ø)

src/ci.jl
84.69% <54.54%> (ø)

src/pk.jl
58.15% <58.15%> (ø)

... and 9 more

Continue to review full report at Codecov.

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

pre 2.0.0


Azure Dev Space outdated reference to be replaced by Bridge to Kubernetes

https://docs.microsoft.com/en-us/azure/aks/intro-kubernetes#development-tooling-integration refers to Azure Dev Space which is deprecated, should be updated with Bridge to Kubernetes

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

ID: ed330edc-c3ab-d053-faad-4dc5da373b48
Version Independent ID: 625ab8a7-8379-0a1c-c633-fa7bf80f161e
Content: Introduction to Azure Kubernetes Service - Azure Kubernetes Service
Content Source: articles/aks/intro-kubernetes.md
Service: container-service
GitHub Login: @mlearned
Microsoft Alias: mlearned

Thanks for your feedback! We will review and update this doc accordingly.

Thanks for your feedback! We will review and update this doc accordingly.

Thank you for the feedback.
We've updated the article to address your feedback.
#please-close


It keeps stopping

It says unfortunately block launcher has stopped

For me it doesn't even open it just shows a white screen then goes back to the homepage :/

For me it pops a white screen goes back to home menu then says
unfortunately it stopped.
On Jun 24, 2016 10:08 AM, "SparringGirl"<EMAIL_ADDRESS>wrote:

For me it doesn't even open it just shows a white screen then goes back to
the homepage :/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/zhuowei/MCPELauncher/issues/1158#issuecomment-228371747,
or mute the thread
https://github.com/notifications/unsubscribe/ATMnSeGs7HsqfjcVdqAZi7UYz6NbjWiTks5qO_LlgaJpZM4I92kY
.

its because its not updated read other issues and stop make it stopped
working issues posts
On Jun 24, 2016 11:05 AM, "jason080803"<EMAIL_ADDRESS>wrote:

It says unfortunately block launcher has stopped
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/zhuowei/MCPELauncher/issues/1158, or mute the thread
https://github.com/notifications/unsubscribe/APr5lLmuftyA2ByL7pIOvXMddMAh3QQSks5qO_IogaJpZM4I92kY
.

So it is something wrong with their latest update? I just thought it might have been because my tablet is older and laggy.

I thought it just didn't want to work.
On Jun 24, 2016 10:46 AM, "SparringGirl"<EMAIL_ADDRESS>wrote:

So it is something wrong with their latest update? I just thought it might
have been because my tablet is older and laggy.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/zhuowei/MCPELauncher/issues/1158#issuecomment-228381588,
or mute the thread
https://github.com/notifications/unsubscribe/ATMnSZ1gXIGJ1GQRERxp_q53PEMPC3I8ks5qO_vFgaJpZM4I92kY
.

If your Minecraft is updated to .15 then they will be fixing this issue by the end of today hope this helps

It still hasn't fixed for me... :/

Plz, close this report cause, were spending pore time dealing with reports than porting BL!
Thx!

 And again
Plz, close this report cause, were spending pore time dealing with reports than porting BL!
Thx!

I can offer that if you have updated Minecraft to 0.15, that is why.  BlockLauncher does not support 0.15 yet.  Please close this so we do not have to sort this later.  The issue is being worked on.
Check twitter and you'll see that he is having issues with OpenGL and closing the app as well as a few more things.  What should have been a week has gotten much longer.  Please close this issue so the author does not have to sort this out later.


ReturnType and InstanceType don't work for functions/constructors with never in their parameters

🔎 Search Terms
ReturnType InstanceType any never
🕗 Version & Regression Information

This is the behavior in every version I tried, and I reviewed the FAQ for entries about ReturnType and InstanceType.

⏯ Playground Link
https://www.typescriptlang.org/play#code/C4TwDgpgBA+gjFAvFAShYBXATgOwCrgQA8AFAHQUCGWA5gM4BcUOEAbhFgJRIB8UA5ADMA9sP48AUAHopUOQD0A-BImhIsAExIoASRx1glHAGMIBSERYB3KOSq1GzNh26I+Q0eOmyFioA
💻 Code
type _1 = ReturnType<(...args: never) => 'foo'>
//   ^? type _1 = any

type _2 = InstanceType<new (...args: never) => 'foo'>
//   ^? type _2 = any

🙁 Actual behavior
ReturnType and InstanceType always evaluate to any when given a function/constructor whose parameters are ...args: never (or ...args: never[], a: never, b: string, etc).
🙂 Expected behavior
ReturnType and InstanceType should return the actual return/instance type.
Additional information about the issue
Changing the parameter constraint in the conditions of these types from any to never seems to fix the issue:
type ReturnType<T extends (...args: any) => any> = T extends (...args: never) => infer R ? R : any

type InstanceType<T extends abstract new (...args: any) => any> = T extends abstract new (...args: never) => infer R ? R : any

I don't think this will cause any regressions, and did some spot-checking to validate that, but haven't run the entire test suite or anything like that yet.

If someone wants to put up a PR for the suggested lib file change, we can run the battery of test suites against it and see if any breaks turn up in the wild.


Poor type inference for reduce

TypeScript Version:  3.0.0-dev.20180705
Code
function toStrings(arr: ReadonlyArray<object>): string[] {
	return arr.reduce((acc, obj) => {
		acc.push(obj.toString());
		return acc;
	}, [] as string[]);
}

Expected behavior:
No error.
Actual behavior:
src/a.ts:2:2 - error TS2322: Type 'object' is not assignable to type 'string[]'.
  Property 'length' is missing in type '{}'.

2  return arr.reduce((acc, obj) => {
   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3  	acc.push(obj.toString());
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~
4  	return acc;
  ~~~~~~~~~~~~~
5  }, [] as string[]);
  ~~~~~~~~~~~~~~~~~~~~

src/a.ts:3:7 - error TS2339: Property 'push' does not exist on type 'object'.

3  	acc.push(obj.toString());

No error if arr is ReadonlyArray<number> or some other non-object type.
No error if I explicitly specify arr.reduce<string[]>.
No error if I remove the first two overloads to reduce, which are non-generic.

I think this goes here:
const things: Things[] = [{num:1}, {num:5}, {num: 2}];
this.things.slice(0, index).reduce((prevVal, curVal): number => {
      return prevVal.num + curVal.num;
    });

Error:
Argument of type '(prevVal: Things, curVal: Things) => number' is not assignable to parameter of type '(previousValue: Things, currentValue: Things, currentIndex: number, array: Things[]) => Scene'.
Expected result is no error. We should be allowed to reduce an object to a single value that isn't the same object.

@willyboy It's indicating a bug in your code.
You're not passing an intial value into .reduce(), so JavaScript expects both prevVal and curVal to be Things. But you're returning a number from the callback, which goes into prevVal.
TypeScript says that you have => number but it should be => Things. This is a legit, helpful error message.
Check out this snippet for comparison.

I can add something to this.

The reduce result is a positive number, but TS infers it will be 0 | 1.
const arr = [0, 1, 0, 0, 1, 1, 1, 1, 1, 1].map(v => v === 0 ? 0 : 1)
const sum = arr.reduce((p, c) => p + c, 0)


Openmim support

Problem description
Besides the conda and pip, sometimes the developers are required to use the libraries from open-mmlab, which uses openmim library to install the libraries for easier CUDA extension build process.
For instance, the following commands are used to install mmcv and mmdet:
pip install -U openmim
mim install mmcv==2.1.0
mim install mmdet

Currently, conda support in pixi provides a valuable toolkit for the AI/deep learning community, simplifying GPU-related environment setup. However, there seems to be no support for openmim in pixi currently.
Are there any plans to support openmim for those who use OpenMMLab libraries? If not, could you offer any guidance or suggestions on how to address this scenario for users relying on the openmim workflow?

This is the first time I hear about mim but it seems like you can install it into your environment or globally with:
pixi init project && cd project
pixi add openmim
pixi run mim

# Or globally
pixi global install openmim
mim

Are you looking for more or would that be enough? If not so, could you write out what the openmim workflow means/looks like?

@ruben-arts Thank you for your suggestion. Yeah, I think that's one way to achieve it. Of course the best solution is to write it in the pixi.toml then just one command install it.
Currently I'm deploying the method relies on mmdetection3d, which requires the openmim.
Here is my current environment preparation script after git clone mmdetection3d,
conda create -n det3d python=3.10 -y
conda install pytorch==2.4.0 torchvision==0.19 torchaudio==2.4.0 nvidia/label/cuda-12.4.0::cuda pytorch-cuda=12.4 -c pytorch
conda install ninja -y
pip install openmim fsspec
mim install mmengine
CUDA_HOME=$CONDA_PREFIX && mim install "mmcv<2.2.0,>=2.0.0rc4"
CUDA_HOME=$CONDA_PREFIX && mim install 'mmdet>=3.0.0'
CUDA_HOME=$CONDA_PREFIX python projects/BEVFusion/setup.py develop
pip install numba pyquaternion trimesh open3d

As you see, it includes the installation with openmim, and local cuda extension compilation, which is quite complex.

I tried to create your environment in a pixi project. Here is the gist: https://gist.github.com/ruben-arts/9e95e7d6b4e85d0010e8ec99b1999a49#file-pixi-toml
I couldn't limit the mmcv to only these versions but the rest should be similar.
You can still use mim for all the model logic. But at least you don't have to mix 3 different package managers anymore.
The channel-priority = "disabled" was added to avoid our priority logic. This is not really nice but with these channels it's a pain to mix them with the priority set.
I hope this could help.
Ps. We've had lots of conversations with Nvidia and they're working on making the conda experience much better on conda-forge

Thank you for your help. From your gist, seems the solution is to find the conda alternative of these mm packages, which might work for some libraries such as mmcv and mmdet with older versions, but not for less-popular one, such as mmdet3d. But worst case, I can use pypi build from source (which seems is what mim is doing).

@ControlNet if you are interested we can help to get them on conda-forge! :)

@wolfv Thank you, but I think the maintainer from open-mmlab should do that rather than us :)


Remove notification light check box in the settings

The user is able to decide if he wants to be informed or not. The way how this is done is given by us.

UNTIL: 8 o'clock PM


Low sound level on font_car_start.wav

I really like the firmware with all disctrete tones, but I cant hear the tone for the "70mai_font_car_start.wav" even when there is quiet in the car. On High Speaker level, I can hear a faint Poping sound, when the camera detects the vehicle ahead moving. For test I have enabled the other two options in ADAS, for Lane departure and Collision warning. They are strong enough even on Low speaker level.
Can you replace the sound of "70mai_font_car_start.wav" with "70mai_lane_departure.wav" or something similar?

I join, a very quiet sound of the beginning of movement. Help with this problem.

Updated 70mai_font_car_start.wav to 70mai_lane_departure.wav


Wrong tag names: 0.7.1 -> v0.7.1

shards install expects the tag v0.7.1 when specifying version: 0.7.1. Please start by duplicating the latest tag and then switch to the correct scheme.

Sure; thanks for the heads up.
Was this caused by a change in shards? I recall this working before.

Fixed by https://github.com/woodruffw/x_do.cr/commit/3c5aea5e5073ba01ab82aaabdedf26e8b34873dc.


Webnovel.com not working??

this is what i get when trying to download something from webnovel.com is there a soulation?
Error -> [SCRIPT] Cannot read properties of null (reading 'value')

Please also provide the link where you faced this issue

On my side all seems to be fine, and the fanfiction download seems to be working

From the info that is provided, I'm unable to find out the exact issue on your side. Seeing that the WebNovel related rule was last modified 2 years ago https://github.com/gmastergreatee/Fanfiction-Manager/commit/c12df32b51948fdc20bad25d322fb7ddab7ecf79 , so trying to fix by updating the rules is unlikely to work.
Please provide more info, viz. maybe show whats actually happening by attaching a gif file here. There are multiple gif recorders out there. I use LICEcap though, simple and easy. Make sure the FPS is > 10FPS

Please update Rules and check, maybe fa0bf0fe2b89e5461919ebf707f0e91308287818 also fixed your issue


.net 8 update

Will this be updated to latest .net 8 and latest version of monogame ?

Updated, please check out latest released nuget version.


Scan results as PR comment

Pls add an option to get the results of the scan as PR comment. As similar feature in tfsec-pr-commenter and terrascan actions

Up!!

Up!!


[DEV] mutex: add generic mutex/varcond implementation

for platform which doesn't have one. In this case, we must have a
semaphore implementation available.
Variable condition implementation has been copied from the SDL 2
under zlib license.

Any comments about this ?

Patch updated and it should also respect your coding style, I think.

I don't see the update in the pull request ?

Sorry, I messed up my push, it should be ok now.

I think having a big block of code enclosed by #ifdef/endif make it less readable. I mean, we must pay attention on which ifdef we are...
Since the generic implementation doesn't depend on the presence or not of pthread,  I think we can keep it outside of #ifdef.
It may be also problematic when for instance we have a mutex implementation but no variable condition. I mean if we don't have pthread but another header, ie:
#ifdef PTHREAD_H
...
#elif defined(MY_MUTEX_IMPL)
...
#else
/* generic */
#end

Also as you stated above, if not used generic implementation will be striped from resulting object, so object size won't increase.
I also made some basic test for compilation time (time make), and it seems to have no or very little impact on my machine (i5 4570).

I'll check tomorrow at work if the code is properly stripped, if it's the case (it should be), I'll merge this ;)

I update the patch to add a missing static to one of the generic varcond implementation


compilation regexps: Match line before, too.

"New format" (since 2016) Rust error messages look like this:
error[E0308]: mismatched types
--> src/bin/e19b.rs:672:47
|
672 |                 ExprRef::new(0, Nt(NT{ args : others, ..x_nt })),
|                                               ^^^^^^ expected struct ExprRef, found enum ExprCore
|
= note: expected type std::vec::Vec<ExprRef>
found type std::vec::Vec<ExprCore>
The regexp matches the line with the -->'.  But of course next-error scrolls the window so the start of the regexp is at the top of the buffer.  So we must match the line before, too.  Rust won't ever start its messages with a -->' so we can unconditionally include the
previous line in the match.
Signed-off-by: Ian Jackson<EMAIL_ADDRESS>

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @pnkfelix (or someone else) soon.
If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.
Please see the contribution instructions for more information.

I filed a Debian bug about this too; that has a formal "steps to reproduce" and a patch against 0.3.0 (the forward/back-port has trivial conflicts).  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=918373

Is it possible to add a regression test for this to rust-mode-tests.el as well?

There is a reason we did not use this approach: multi-line regex in compiler-mode were found to be unrealiable in practice. My theory (unverified) was that there was some kind of line-by-line buffering going on.

(Also, this doesn't seem to eliminate the "scrolling up" code?)

Niko Matsakis writes ("Re: [rust-lang/rust-mode] compilation regexps: Match line before, too. (#294)"):

There is a reason we did not use this approach: multi-line regex in
compiler-mode were found to be unrealiable in practice. My theory (unverified)
was that there was some kind of line-by-line buffering going on.

Hrm.  Well, it worked for me, obviously, although only in my easy test
cases (I guess, for example, no buffering boundaries at the critical
point.)
I wonder if this might nevertheless be better than the alternative.
The current situation is quite bad.
Ian.
--
Ian Jackson<EMAIL_ADDRESS> These opinions are my own.
If I emailed you from an address @fyvzl.net or @evade.org.uk, that is
a private address which bypasses my fierce spamfilter.

Ian Jackson writes ("Re: [rust-lang/rust-mode] compilation regexps: Match line before, too. (#294)"):

Hrm.  Well, it worked for me, obviously, although only in my easy test
cases (I guess, for example, no buffering boundaries at the critical
point.)
I wonder if this might nevertheless be better than the alternative.
The current situation is quite bad.

Oh, and:
I would guess that when it goes wrong, it is for
buffering/concurrency/etc. kind or reasons which are much less likely
when the error in question is the first in the output.  That means
that I guess that often the user has a workaround of `rerun the
compile', which I would guess helps make such a bug less bad.
Ian.
--
Ian Jackson<EMAIL_ADDRESS> These opinions are my own.
If I emailed you from an address @fyvzl.net or @evade.org.uk, that is
a private address which bypasses my fierce spamfilter.

There is a reason we did not use this approach: multi-line regex in compiler-mode were found to be
unrealiable in practice. My theory (unverified) was that there was some kind of line-by-line buffering going on.

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25133

This bug seems to have been fixed differently in #406. From the current rust-compile.el:
(defun rustc-scroll-down-after-next-error ()
  "In the new style error messages, the regular expression
matches on the file name (which appears after `-->`), but the
start of the error appears a few lines earlier.  This hook runs
after `next-error' (\\[next-error]); it simply scrolls down a few lines in
the compilation window until the top of the error is visible."

This seems to be addressing exactly what this PR is concerned with.
I tried out the steps to reproduce in the Debian bug, and next-error put the line starting with "error: " at the top of the window, so I think this is working.
If this isn't correct, please re-open this issue and provide more details.


happy dom environmentoptions in vite.config.ts don't work

Describe the bug
since https://github.com/vitest-dev/vitest/pull/3972 fixed pass environmentOptions to happy-dom integration,  set url by adding annotation before test file works well, but set url by environmentoptions in vite.config.ts file still has no effect.
Reproduction
https://stackblitz.com/edit/vitest-happy-dom-environmentoptions-test?file=test%2Fglobal.test.ts
global.test.ts failed, annotation.test.ts passed.
System Info
System:
    OS: Windows 10 10.0.19045
    CPU: (8) x64 Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
    Memory: 3.18 GB / 15.92 GB
  Binaries:
    Node: 16.17.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - D:\nodejs\node_global\yarn.CMD
    npm: 8.15.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: 116.0.5845.97
    Edge: Spartan (44.19041.1266.0), Chromium (116.0.1938.62)
    Internet Explorer: 11.0.19041.1566
  npmPackages:
    @vitejs/plugin-legacy: ^2.1.0 => 2.1.0
    @vitejs/plugin-vue: ^3.1.0 => 3.1.0
    @vitejs/plugin-vue-jsx: ^2.0.1 => 2.0.1
    @vitest/coverage-v8: ^0.34.3 => 0.34.3
    @vitest/ui: ^0.34.3 => 0.34.3
    vite: ^3.1.0 => 3.1.0
    vitest: ^0.34.3 => 0.34.3

Used Package Manager
yarn
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

It should be happyDom in the config, but even then it didn't work for me.

It should be happyDom in the config, but even then it didn't work for me.

Should it be happyDOM? I tested it with happyDOM and all test cases passed
https://github.com/vitest-dev/vitest/blob/c48fef540ac685dee331df0330814042fc856580/packages/vitest/src/integrations/env/happy-dom.ts#L8

Should it be happyDOM? I tested it with happyDOM and all test cases passed

Yes, sorry. JS name is consistent with how happyDOM names it in its js API


Fix ArrayWidget to support static supermodel vocabulary

Fixes #1332
I tried to follow the practice in SelectWidget

@datakurre thanks! You forgot to run prettier :)
(This is why Travis is failing).


Sound title and Description redesigned

closes #51

You have some merge conflicts because Hamir's changes just got merged. You can click the "resolve conflicts" button to fix this.

@amilajack for sure, I'll take care of those merge conflicts! Thanks!


feat(hubble): update s3 snapshot metadata to include database statistics

Motivation

As part of improvements to scaling Hub sync, we want to use snapshots more often
Determining whether to use s3 snapshot for catch up sync requires additional information in metadata JSON

Change Summary

Update s3 snapshot metadata to include database statistics
Add snapshot-url command to print latest snapshot URL for convenience

Within apps/hubble run yarn snapshot-url or node build/cli.js snapshot-url

Merge Checklist
Choose all relevant options below by adding an x now or at any time before submitting for review

[x] PR title adheres to the conventional commits standard
[x] PR has a changeset
[x] PR has been tagged with a change label(s) (i.e. documentation, feature, bugfix, or chore)
[x] PR includes documentation if necessary.
[x] All commits have been signed

Additional Context
If this is a relatively large or complex change, provide more details here that will help reviewers

PR-Codex overview
This PR enhances the Hubble application by updating S3 snapshot metadata with database statistics and adding a new snapshot-url command.
Detailed summary

Added snapshot-url command to print latest snapshot URL and metadata from S3
Updated MerkleTrie class with a static method to get the number of items in the trie
Introduced SnapshotMetadata type and functions to fetch and validate snapshot metadata

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

I think this looks OK, but can you check to make sure it works with snapshots? Both generating snapshots and restoring a snapshot?

Confirmed upload and download working
{"level":30,"time":1710985820939,"pid":5242,"hostname":"mbp.local","component":"Hub","progress":{"loaded":10485760000,"total":24114175697,"part":10,"Key":"snapshots/MAINNET/DB_SCHEMA_9/snapshot-2024-03-21-1710983283.tar.gz","Bucket":"test-bucket"},"msg":"Uploading snapshot to S3"}
{"level":30,"time":1710985925021,"pid":5242,"hostname":"mbp.local","component":"Hub","progress":{"loaded":11534336000,"total":24114175697,"part":11,"Key":"snapshots/MAINNET/DB_SCHEMA_9/snapshot-2024-03-21-1710983283.tar.gz","Bucket":"test-bucket"},"msg":"Uploading snapshot to S3"}
{"level":30,"time":1710986006718,"pid":5242,"hostname":"mbp.local","component":"Hub","progress":{"loaded":12582912000,"total":24114175697,"part":12,"Key":"snapshots/MAINNET/DB_SCHEMA_9/snapshot-2024-03-21-1710983283.tar.gz","Bucket":"test-bucket"},"msg":"Uploading snapshot to S3"}


Create UI of animal-list page

Choose a solution to present Animal listing.
Select Animal props that are most relevant to the listing.
Use proper UI elements. Can be the List or DataTable.
Mind the responsive modes: more data visible on desktop, less data (the critical) visible on mobile.
Link each item to its own details page.
Move GraphQL data providing features to a separate (data-only) component. Add Loader Component while query is loading.
If API endpoint does not offer pagination, skip it as well.

Design sketch of animal card for mobile and desktop version
https://xd.adobe.com/view/1f2da00c-c0a0-44d6-b6ed-292f788e8567-4a7e/

Design sketch of animal card for mobile and desktop version
https://xd.adobe.com/view/1f2da00c-c0a0-44d6-b6ed-292f788e8567-4a7e/


user multiarch image as base image.

ref: open-cluster-management/backlog#11324

test-e2e succeed bu the test-e2e-gather-aws-console failed, it's the prow env issue.

/lgtm


dosage-override and dosage-override-reason

Hi,
Where will we be able to find à structured posologyNote that will allows us to notify the doctor that the prescription he is doing is over the maximum dosage?
I'll take an example
In SAMV2 for "Inuvair" you'll see the following information in the posologyNote :
ns2:Fr- asthme, traitement d'entretien chez l’adulte: 2 x p.j. 1 à 2 doses

asthme, à la demande: 1 dose (max. 8)
BPCO, traitement d'entretien des formes sévères à très sévères chez l'adulte (100/6): 2 x p.j. 1 à 2 doses
</ns2:Fr>

With those information, I don't think that split the text will be possible or will give a good result.
So we won't be able to detect if there is a "dosage override" and to notify it to the doctor or to Vidis.
I think that without structured information in SAM we won't be able to make something good but I may be wrong.
KR.

01-10-2024:
We will clarify that the dosageOverride and dosageOverrideReason are expected to be manually filled by the prescriber, indicating that this dosage is not entered in error. This information is an indication (for example) for the pharmacist to see that there is a justification of the dosage difference.
We will also add a constraint that when dosageOverride is true, dosageOverrideReason must be filled in. This means that dosageOverrideReason may be only free text or the valueset must include a catch-all value such as "other - my responsibility" or "unspecified - prescriber discretion". We will request this from RIZIV-INAMI.


schema.prisma not found when using React Server Components

I started migration a side project of mine to react-t3-turbo
When I try to access a page that fetches data using prisma on a React Server Component, it gives an error of schema.prisma not found
Below is the code

and Below here is the error

If I copy the schema.prisma to ".nextjs/server/app/product" the error goes away

From the Next.js Beta documentation on: https://beta.nextjs.org/docs/api-reference/next.config.js#servercomponentsexternalpackages

If a dependency is using Node.js specific features, you can choose to opt-out specific dependencies from the Server Components bundling and use native Node.js require

So, for this use case, under the experimental property on the next.config.mjs file:
experimental: {
  // Enables hot-reload and easy integration for local packages
  serverComponentsExternalPackages: ["@prisma/client"],
  transpilePackages: ["@acme/api", "@acme/auth", "@acme/db"],
  appDir: true,
},

Tested locally under the latest changes on main branch and it seems to work okay.
Altough Server Components enables database querying directly from the component, I don't actively encourage it in detriment of just using the tRPC layer provided by the template, but I don't think the core maintainers will integrate tRPC with Next's /app directory until it's out of beta and becomes stable.

Changing from using prisma directly to tRPC server side caller looks great. Thanks!


add core.battery provider

Had to make the navigator object available for the provider to load, but I think this should work. Let me know if I should also be adding anything to the tests, etc. Thanks!

:+1: Seems reasonable.


Changing documentation of the VEP_G2P_plugin documents

Changing the documentation https://www.ebi.ac.uk/gene2phenotype/g2p_vep_plugin adding the new terminology information.

Merged into release/105 and master


The Linux Foundation announcement July 28

Adding this guidance:
These are the suggestions made in order to build a community of end-users and contributors around your Linux Foundation winning project:

[x] Add the Apache 2 LICENSE.md to your GitHub repository and include the specific copyright header to your source code files using the relevant comment syntax for the programming language. Add the license file as is, then use 2018 and list the names of your team members in your individual source files. http://www.apache.org/licenses/LICENSE-2.0#apply
[x] Look at improving your documentation so that first-time visitors clearly see the problem you are solving and how they can understand the solution in your README.md. Also consider enabling alternative language translations.
[ ] Look at carefully documenting installation/duplication steps so that new developers can explore the technology on their own systems in order to contribute back fixes. This will also help you identify any potential dependency issues you might have on clean installations.
[x] Add a basic CONTRIBUTING.md that describes how others can start to collaborate with you. The Linux Foundation has a few sample files you can use for inspiration. The way you choose to accept fixes is up to you though. Here's a good sample: https://github.com/nodejs/node/blob/master/CONTRIBUTING.md
[ ] Strongly consider adding the Developer Certificate of Origin bot to your repositories. This provides assurance that anyone who contributes to your repository has the rights to the code they want to provide: https://github.com/apps/dco
[x] Consider configuring GitHub pages to create a basic description and FAQ site, like https://gql.foundation/
[x] Customize the project charter template from The Linux Foundation

You can see an example of all these things here: https://github.com/Call-for-Code/project-sample

excellent guide, thanks.


COR-470: add text area story

COR-470 / COR-483
TextArea uses the styles for Input
The styles for FormControl.Label had to be adjusted to have a second version/size.

/lgtm


Add option to disable default property evaluation

This breaks our API schema as it evaluates the .default(() => createId()) in our models, and creates a random cuid on each evaluation.
This causes our API to shard with allOf in an unfriendly way, and it is also an unexpected behaviour.
I believe this is related to https://github.com/asteasolutions/zod-to-openapi/pull/63
Perhaps function based defaults should just be left alone, as this doesn't happen with constant defaults. It doesn't make sense to evaluate a default function.

@WilliamABradley I see your point however I do not agree that this is a problem on our side.
The regular scenario for people to use default is to actually define a default value - and we would want to "evaluate" that. Let's say z.number().default(42). That way you would want to have default: 42 in the API specs.
In your case - your default is "unique" every time => it is not really something to add you your documentation at all. So I think semantically you would be off using something like preprocess (or refine).
const schema = z
  .preprocess(val => val ?? Math.random(), z.number())
  .openapi('Schema');

this would result in the following OpenAPI schema:
"Schema": {
  "type": "number",
  "nullable": true
}

note that from an API standpoint having nullable: true is correct since you can pass an empty argument and that the default would appear on an application level. And if you want to have an indication that there is a defaul you can alter it like that:
const schema = z
  .preprocess(val => val ?? Math.random(), z.number())
  .openapi('Schema', { default: '<a-generated-cuid>'}); // you can add whatever you want here

Since I believe this is the way that this library should work I will be closing the issue. Hope my suggestions help you out. And if you still feel like there should be a fix on out end - feel free to re-open the issue and/or open up a new one with further explanation.


Is it possible to attach a different role to Cognito group created via amplify-cli?

Just as in the title: is it possible to attach a different IAM role to the user pool group that I create via amplify cli? I noticed that I can change the role on AWS Management Console, I can add customPolicies to user-pool-group-precedence.json but I can not modify the template.json file so it points to different IAM role than props.groups[i].groupName %>GroupRole: https://github.com/aws-amplify/amplify-cli/blob/master/packages/amplify-category-auth/resources/cloudformation-templates/user-pool-group-template.json.ejs#L52
Amplify CLI Version
4.26.0
What AWS Services are you utilizing?
Auth - userPoolGroups

Yes, whenever I modify the template.json with the new rule it is getting overwritten if only I do the amplify push. My use case is quite normal - I created a new Cognito group for admins of my app. If only I add a user to this group, they instantly lose their authRole role and they can not perform all actions as before. This SO post describes exactly the same issue I am experiencing: https://stackoverflow.com/questions/66690288/aws-amplify-cognito-user-group-members-lose-permissions-granted-by-the-default

@ammarkarachi I noticed that when doing the amplify push we always recreate the template.json file associated with the created user pool group: https://github.com/aws-amplify/amplify-cli/blob/master/packages/amplify-category-auth/src/provider-utils/awscloudformation/utils/transform-user-pool-group.js#L47 I wonder if it is possible to add another supported property to user-pool-group-precedence.json called: role which, when present, would override the default role: https://github.com/aws-amplify/amplify-cli/blob/master/packages/amplify-category-auth/resources/cloudformation-templates/user-pool-group-template.json.ejs#L63
I'm not fully aware of all of the things that are required to do this change.

@leszczynski-mikolaj This role is also referenced across in other categories such as api, storage. There would be some undesirable behavior if you try to attach the policies to the original role but actually the group is using overridden role.

@ammarkarachi could you please show me the places in codebase where that role is used? I would like to dig deeper into this : )

Hey @leszczynski-mikolaj ,
Some examples
The S3 template
https://github.com/aws-amplify/amplify-cli/blob/c3d60cd6798785867fbd47d1b98755cfb16a93d1/packages/amplify-category-storage/resources/cloudformation-templates/s3-cloudformation-template.json.ejs#L277
Tha API template
https://github.com/aws-amplify/amplify-cli/blob/c3d60cd6798785867fbd47d1b98755cfb16a93d1/packages/amplify-category-api/resources/awscloudformation/cloudformation-templates/apigw-cloudformation-template-default.json.ejs#L50

Adding wontfix and closing issue due to inactivity and the limitations present upon switching a group's role


[QUESTION]: Where to find my OPNSense API Key?

Where do I find my OPNSense API Key using os-node_exporter plugin?
I have this running in a docker on my server, and then on OpnSense, I've installed the os-node_exporter (v1.2). I cannot seem to find any mention of my API Key on OpnSense. Just very confused on what it's asking me to do in the README.

You need to generate API key from the OPNSense UI. Node exporter has nothing to do with this exporter or the api key

Thanks!


feat(choiceNodes): add source for choice nodes

#43

Oh nice, that was fast :D
I think I'll add some api-functions for getting/setting choices to Luasnip, if anything changes internally we can prevent incompatibilities.
But it might be best to not use them right away in this patch, but do a follow-up when they were available in Luasnip for a while, that should prevent issues like those from the switch to add_snippets.

I added get_current_choices and set_choice to require("luasnip").
On second thought, it probably won't hurt to use these in a new source, putting some small warning to update luasnip before using it somewhere should be enough

yeah sure sounds good. once @p0da can try it out I'll update it

Sorry for the delay, the extra source works quite well (may want to toss a mention in the readme about it). One quick question, is there any way to activate the source automatically (and prompt the user with the relevant choices) when jumping to a choice node as that would be a nice additional improvement.

If it's possible to trigger cmp from lua, you could use LuaSnips events

@L3MON4D3  have updated the code base to use the new api. let me know if it looks ok and I'll merge

A bit busy with work hopefully will pick this up in the coming weekend :)

Will this be merged in the near future?

Hi there, yes :) hopefully. Just been busy with my new job so haven't had the time to do some final things on this

Ok all good. Hope all is going well with all of that

Looking forward to this

+1 looking forward to this!
I even switchted to the branch to try it out .. I wish I had more lua skills to help

Hi everyone. Sorry for the delays on dev stuff! Been on a vacation plus just general busy with life. I'll be back next week and hope to finish this feature soon :)

any updates on this?


Move to new-central/MPITrampoline

Move ClimaComms to new-central. This is not straightforward because of https://github.com/JuliaParallel/MPI.jl/issues/820.

Closed by #75


fix: markdown indentation in getting-started-helm

(If this PR fixes a github issue, please add Fixes #<xyz>.)
Fixes #
(or if this PR is one task of a github issue, please add Master Issue: #<xyz> to link to the master issue.)
Master Issue: #
Motivation
On the docs Get started in Kubernetes i found the indentation is incorrect like

Modifications
I fixed the indentation issue in Get started in Kubernetes docs.
Verifying this change

[ ] Make sure that the change passes the CI checks.

(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end deployment with large payloads (10MB)
Extended integration test for recovery after broker failure

Does this pull request potentially affect one of the following parts:
If yes was chosen, please highlight the changes

Dependencies (does it add or upgrade a dependency): (yes / no)
The public API: (yes / no)
The schema: (yes / no / don't know)
The default values of configurations: (yes / no)
The wire protocol: (yes / no)
The rest endpoints: (yes / no)
The admin cli options: (yes / no)
Anything that affects deployment: (yes / no / don't know)

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
If a feature is not applicable for documentation, explain why?
If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

@Anonymitaet PTAL


The Observation Reports Feature Service is used by GeoEvent Services

The Observation Reports Feature Service is used by GeoEvent Services that are going to be released. This service needs to be released or the GeoEvent Input/Outputs need to be removed.
As a reminder the nsecgee is not a development machine, it is for ready to release GeoEvent content.
Service Item 1be76160f5de45d59f0246161696c10b Map Service
Service Item 5e8dc9bf8bcd4e2a98bfb7ff9d6b6bdc Feature Service

@conklinbd I have shared with the Demo Review.

@conklinbd @topowright Interesting. I had fixed the issues with this service, and was already released but today I see my changes were thrown away.

@elinz @conklinbd I think these are the same thing and they have been fixed.
https://github.com/Esri/ops-server-config/issues/1235

I have assigned to @lfunkhouser to release

#1212 depends on this issue

Services released by Demo Military

Verified


Question: Transition Overlay Color

Hey, I'm using ignite to dig in to react native a bit more and I've played around a lot to see what happens and at some point I noticed this weird faded white overlay when transitioning between scenes and I have no idea where I could enabled / changed it. I'm completely lost so I am asking if someone can point me in the right direction?

This color is griefing you because of this.
I got hung up on this before as well.


404 ItemNotFound using Upload Sessions

Bug Report
Prerequisites

[X ] Can you reproduce the problem?
[X ] Are you running the latest version?
[ X] Are you reporting to the correct repository?
[ ] Did you perform a cursory search?

For more information, see the CONTRIBUTING guide.
Description
If one of my users shares a file from their one drive to another user with write permissions, but does not share the folder the file is contained then anything time the uploadUrl from a createUploadSession is used they receive a 404 "ItemNotFound". This includes trying to delete the uploadsession.
If using the standard upload for small files <4MB these scenarios work fine. If the user shares the folder that the file is contained then the upload sessions seem to work as expected.
My suspicion is that an upload session is simply creating a temporary file to upload to, but when that temporary file is created the permissions are not transferred from the original file, hence being invisible(404) to all users other than the users who have access to the parent folder.
Console Errors: [Is there any console error]
Screenshots: [If applicable, add screenshots to help explain your problem]
Steps to Reproduce

Share file from one user to another that is contained within a folder
Have the other user attempt to upload new content to the file using an upload session

Expected behavior:
Using the uploadUrl works
Actual behavior:
Anytime the uploadUrl is used even trying to delete the upload url the server responds with 404 ItemNotFound

Thanks for your feedback.  Could you please clarify whether this issue reproduces in OneDrive Personal or OneDrive for Business?
Also could you please provide the following response headers corresponding to your request(s) that resulted in a 404:

Date (in UTC, please)
request-id
SPRequestGuid (for requests made to OneDrive for Business)

@chackman
OneDrive for Business
Upload Session creation:
Date: Wed, 11 Mar 2020 17:08:40 GMT
client-request-id: ce03a58e-9f16-9ac5-8bf5-8cc040756be2
request-id: d800a19b-2520-4832-b195-a3b8da6b01d4
Failed PUT on the uploadUrl
date: Wed, 11 Mar 2020 17:08:44 GMT
request-id: ebcb3d9f-e0f3-9000-7eb6-30555a5ada05
sprequestguid: ebcb3d9f-e0f3-9000-7eb6-30555a5ada05
Response:
{"error":{"code":"itemNotFound","message":"The resource could not be found."}}
Failed DELETE on the uploadUrl
date: Wed, 11 Mar 2020 17:08:44 GMT
request-id: ebcb3d9f-30fd-9000-5c9a-58faa1091715
sprequestguid: ebcb3d9f-30fd-9000-5c9a-58faa1091715
Response:
{"error":{"code":"itemNotFound","message":"The resource could not be found."}}

Thanks for the additional information.  We'll put this issue on our backlog to address.  Thanks!

As part of a repository clean up effort we are closing older issues. If this issue remains, please: open a new issue, reference this issue, and provide any additional details that may help in resolution. Thank you for your understanding as we work to improve our responsiveness.


Error updating container registry with az aks update

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az aks update
Errors:
No module named 'azure.mgmt.containerservice.v2019_08_01'
Traceback (most recent call last):
pip-install-68v0_w99\knack\knack\cli.py, ln 206, in invoke
cli\core\commands\__init__.py, ln 445, in execute
azure\cli\core\__init__.py, ln 267, in load_arguments
cli\core\commands\__init__.py, ln 274, in load_arguments
pip-install-68v0_w99\knack\knack\commands.py, ln 89, in load_arguments
...
cliextensions\aks-preview\azext_aks_preview\_helpers.py, ln 8, in <module>
    from azure.mgmt.containerservice.v2019_08_01.models import ManagedClusterAPIServerAccessProfile
ModuleNotFoundError: No module named 'azure.mgmt.containerservice.v2019_08_01'

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Put any pre-requisite steps here...
az aks update -n {} -g {} --attach-acr {}

Expected Behavior
Environment Summary
Windows-10-10.0.17763-SP0
Python 3.6.6
Shell: powershell.exe

azure-cli 2.0.63 *

Extensions:
aks-preview 0.4.23

Additional Context

This parameter is not support in such an old CLI
Please use latest.

Sorry for late response. Everything works fine after updating azure-cli.
Thanks


Dev branch: toy training stops after 2 epochs

I test toy example.
I use Google Colab
If I use master branch CPU then everything is good
But if I want to use GPU and run:
TRAIN_PATH='data/toy_reverse/train/data.txt'
DEV_PATH='data/toy_reverse/dev/data.txt'
# Start training
!python examples/sample.py --train_path $TRAIN_PATH --dev_path $DEV_PATH

then I get:
/usr/local/lib/python2.7/dist-packages/torch/nn/functional.py:52: UserWarning: size_average and reduce args will be deprecated, please use reduction='elementwise_mean' instead.
  warnings.warn(warning.format(ret))
2018-10-28 15:59:34,815 root         INFO     Namespace(dev_path='data/toy_reverse/dev/data.txt', expt_dir='./experiment', load_checkpoint=None, log_level='info', resume=False, train_path='data/toy_reverse/train/data.txt')
/usr/local/lib/python2.7/dist-packages/torch/nn/functional.py:52: UserWarning: size_average and reduce args will be deprecated, please use reduction='sum' instead.
  warnings.warn(warning.format(ret))
/usr/local/lib/python2.7/dist-packages/torch/nn/modules/rnn.py:38: UserWarning: dropout option adds dropout after all but last recurrent layer, so non-zero dropout expects num_layers greater than 1, but got dropout=0.2 and num_layers=1
  "num_layers={}".format(dropout, num_layers))
2018-10-28 15:59:37,915 seq2seq.trainer.supervised_trainer INFO     Optimizer: Adam (
Parameter Group 0
    amsgrad: False
    betas: (0.9, 0.999)
    eps: 1e-08
    lr: 0.001
    weight_decay: 0
), Scheduler: None
Traceback (most recent call last):
  File "examples/sample.py", line 129, in <module>
    resume=opt.resume)
  File "/usr/local/lib/python2.7/dist-packages/seq2seq/trainer/supervised_trainer.py", line 186, in train
    teacher_forcing_ratio=teacher_forcing_ratio)
  File "/usr/local/lib/python2.7/dist-packages/seq2seq/trainer/supervised_trainer.py", line 103, in _train_epoches
    loss = self._train_batch(input_variables, input_lengths.tolist(), target_variables, model, teacher_forcing_ratio)
  File "/usr/local/lib/python2.7/dist-packages/seq2seq/trainer/supervised_trainer.py", line 55, in _train_batch
    teacher_forcing_ratio=teacher_forcing_ratio)
  File "/usr/local/lib/python2.7/dist-packages/torch/nn/modules/module.py", line 477, in __call__
    result = self.forward(*input, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/seq2seq/models/seq2seq.py", line 48, in forward
    encoder_outputs, encoder_hidden = self.encoder(input_variable, input_lengths)
  File "/usr/local/lib/python2.7/dist-packages/torch/nn/modules/module.py", line 477, in __call__
    result = self.forward(*input, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/seq2seq/models/EncoderRNN.py", line 68, in forward
    embedded = self.embedding(input_var)
  File "/usr/local/lib/python2.7/dist-packages/torch/nn/modules/module.py", line 477, in __call__
    result = self.forward(*input, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/torch/nn/modules/sparse.py", line 110, in forward
    self.norm_type, self.scale_grad_by_freq, self.sparse)
  File "/usr/local/lib/python2.7/dist-packages/torch/nn/functional.py", line 1110, in embedding
    return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse)
RuntimeError: Expected object of type torch.cuda.LongTensor but found type torch.LongTensor for argument #3 'index'

Then I tested dev branch. this error is no more, but training stops after 2 epochs. (??)
And as result I have wrong output sequences. Is this ok?
I.e. I run
!scripts/toy.sh

TRAIN_SOURCE='data/toy_reverse/train/src.txt'
TRAIN_TARGET='data/toy_reverse/train/tgt.txt'
DEV_SOURCE='data/toy_reverse/dev/src.txt'
DEV_TARGET='data/toy_reverse/dev/tgt.txt'

# Start training
!python examples/sample.py $TRAIN_SOURCE $TRAIN_TARGET $DEV_SOURCE $DEV_TARGET

And I get error:
2018-10-28 19:41:05,614:root:INFO: train_source: data/toy_reverse/train/src.txt
2018-10-28 19:41:05,615:root:INFO: train_target: data/toy_reverse/train/tgt.txt
2018-10-28 19:41:05,615:root:INFO: dev_source: data/toy_reverse/dev/src.txt
2018-10-28 19:41:05,615:root:INFO: dev_target: data/toy_reverse/dev/tgt.txt
2018-10-28 19:41:05,615:root:INFO: experiment_directory: ./experiment
2018-10-28 19:41:09,111:seq2seq.trainer.supervised_trainer:INFO: Optimizer: Adam (
Parameter Group 0
    amsgrad: False
    betas: (0.9, 0.999)
    eps: 1e-08
    initial_lr: 0.001
    lr: 0.001
    weight_decay: 0
), Scheduler: <torch.optim.lr_scheduler.StepLR object at 0x7f83459c6ef0>
Train Perplexity: 22.6210: 100% 20/20 [00:01<00:00, 15.11it/s]
2018-10-28 19:41:10,528:seq2seq.trainer.supervised_trainer:INFO: Finished epoch 1: Train Perplexity: 11.3105, Dev Perplexity: 14.0211, Accuracy: 0.2420
Train Perplexity: 8.4440: 100% 20/20 [00:01<00:00, 13.06it/s]
2018-10-28 19:41:12,152:seq2seq.trainer.supervised_trainer:INFO: Finished epoch 2: Train Perplexity: 9.3128, Dev Perplexity: 7.3888, Accuracy: 0.3452
2018-10-28 19:41:12,153:root:INFO: Training time: 3.00s
Type in a source sequence: 1 2 3 4 5
['5', '5', '1', '1', '<eos>']
Type in a source sequence: 5 4 3 2 1
['1', '1', '1', '1', '<eos>']
Type in a source sequence:

For the dev branch, you should change the parameters ;-) I got the same problems a couple of months ago. The batch & epoch in master were 32 & 6 and here they are 512 and 2. If you change them, it will work

Working! Thanks
sample.py
batch_size=512 ---> batch_size=32
n_epochs=2 ---> n_epochs=6


Add IsUnreferencedError to Editor

It useful to be able to ignore rewrite errors if they are because
the symbol isn't referenced anywhere. This happens when auto generating
code, which is then optimized by clang to remove all references to
a particular symbol.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@e1a9433). Click here to learn what that means.
The diff coverage is 71.42%.

@@            Coverage Diff            @@
##             master      #73   +/-   ##
=========================================
  Coverage          ?   61.93%
=========================================
  Files             ?       10
  Lines             ?     1529
  Branches          ?        0
=========================================
  Hits              ?      947
  Misses            ?      443
  Partials          ?      139

Impacted Files
Coverage Δ

editor.go
82.22% <71.42%> (ø)

Continue to review full report at Codecov.

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


9 per participant results

depends on #167, #168, and #169

bam bam, passing!

Very minor comments.  Otherwise I think it looks good.


Why use aggregate instead of find ????????

OS : ubuntu 16.04
PHP : 7.1.2
MongoDB extension version : 1.2.5
Laravel version : 5.2.31
MongoDB version : 3.4.4
Jessengers MongoDB : 3.2.2
There are 10 million pieces of data in the collection, and just count all, It took 10 seconds to spend.
like this
MyCollect::count();
// getQueryLog()
// 'query' => 'MyCollect.aggregate([{"$group":{"aggregate":{"$sum":1},"_id":null}}],{"typeMap":{"root":"array","document":"array"}})'
// 'time' => float 10149.57

But it takes only a few milliseconds to use count.
if use
db.getCollection('MyCollect').count()
db.getCollection('MyCollect').find({}).count()
query will be completed in 0.001 seconds

vote


Fixed hardcoded hostnames and other variables

The hostname and other parameters to read the value from .env file first otherwise use those defined in the database.php file

@sampoyigi

Oh! I got your point. I'll check this.

Yes we can use env() method , nothing will get affected from this changes and all the codes will be fine

If it's ok I'm going to close this as it's got to be pretty out of date at this point.
We could revisit env variables after v3?

If it's ok I'm going to close this as it's got to be pretty out of date at this point.
We could revisit env variables after v3?

Makes sense!

Makes sense!


Adds liberty.edu to stoplist documentation

See #23522
Updates CONTRIBUTING.md to prevent future PRs

@bmatt468 Thank you for the suggestion. Pull request merged.


Reason of errClass in error handler response

Hi! 👋Very nice work creating this framework!
I just wanna ask, what is the reason behind errClass reply prop inside error handler?

Hi @nandanugg, thanks for your kind words.
The errClass property  was part of the initial err handling approach (https://github.com/jkyberneees/ana/blob/master/libs/response-extensions.js#L29), it basically indicates the class of the error for developers convenience.
This is only available on the response event of restana.
Basically this approach can be revisit, as we have a new global error handler listener now available.
Would you have another input here?
Thanks and Regards

Hmm, to be honest, I can't find any use case where frontend need a error class.
Because of that, do you have any plan to support custom error response template in the future? Or it's already implemented?

Hi @nandanugg , not sure if we are in the same page here. This feature is for backend devs to process errors on their API.
Can you describe in more details what do you mean with a "custom error response template" feature?
Regards

in response-extensions.js there is an assignment like:
data = {
      errClass: data.constructor.name,
      code,
      message: data.message,
      data: data.data
    }

And I have your api gateway with error handler, I want to use this to tell client if anything goes wrong
restana: {
    errorHandler: (err, req, res) => {
      const modifiedErr = err;
      modifiedErr.code = 400;
      modifiedErr.status = false;
      modifiedErr.data = null;
      res.send(err);
    },
  },

After I test it, I get the reply
{
    "errClass": "TypeError",
    "code": 400,
    "message": "",
    "data": null
}

I'm so sorry if I post this issue on wrong repo, I just see the root cause is on this repo.

Hi @nandanugg, this is the correct repo. Thanks.
Can you please just try:
restana: {
    errorHandler: (err, req, res) => {
      ...
      res.send({
          status: false,
          message: err.message
      }, 400);
    },
  }
  ...

I guess removing the err reference will fix issue.