Initial commit to add API to retrieve min throughput for a CosmosContainer

This changeset adds an API to the CosmosContainer to allow users to fetch the minimum throughput that a container in Cosmos DB can be scaled down to.

@kushagraThapar - tests added.

The builds are failing for some other reason, I am working with Azure Engineering team to get them fixed. We will merge this PR after the builds are done.

/azp run java - cosmos - ci

/azp run java - cosmos - tests


docs: Say "Set up" instead of "Setup".

I think "setup" generally implies a noun.

Automated message from Dropbox CLA bot
@showell, it looks like you've already signed the Dropbox CLA. Thanks!

Merged, thanks @showell!


[do not merge] Versions, Deployments, Gradual Deployments

Documentation for Versions, Deployments, Gradual Deployments closed beta.

Do analytics docs need updates to reflect version field? Logpush / Trace Events docs? To highlight breaking down metrics by version?

Do analytics docs need updates to reflect version field? Logpush / Trace Events docs? To highlight breaking down metrics by version?

Yes, but minor. Merging this PR since it's needed for tomorrow's wrangler release. Will follow up with additions in a separate PR.


Add test flag for running a test only on the host

@bors r+

:pushpin: Commit 8527bfc63b8c6eb9451e1adb08c39cc4d54c1bc5 has been approved by oli-obk
It is now in the queue for this repository.

:hourglass: Testing commit 8527bfc63b8c6eb9451e1adb08c39cc4d54c1bc5 with merge 006bb3cd268a12499eea2534c428975d1134a540...

:sunny: Test successful - checks-actions
Approved by: oli-obk
Pushing 006bb3cd268a12499eea2534c428975d1134a540 to master...


Feature request: NO_COLOR standard implementation

Hi, it would be great implement the NO_COLOR standard on xq since there's many CLI already with it (jaq, miller, crop, upx, etc..,) and save the users from use "color=never", "--monochrome-color" or whatever.
Command-line software which adds ANSI color to its output by default should check
 for a NO_COLOR environment variable that, when present and not an empty string
 (regardless of its value), prevents the addition of ANSI color.

By adopting this standard, users that prefer to have plain, non-colored text output
 can export NO_COLOR=1 to their shell’s environment and automatically disable color
 by default in all supported software.

If your software outputs color by default, please consider not doing so.

More info on: https://no-color.org/

Cheers

Released v0.4.1 which respects NO_COLOR :)


🌱 Make unit tests not require envtest

Summary
When we look at a failed CI check, we see the invalid go version '1.22.0': must match format 1.23 message. Looks like it is due to some recent change that includes patch version of go in go.mod. It is suggested developers should not include patch version, as discussed here.
We can just disable envtest for now because we are not yet using it, similar to what we did in https://github.com/kubestellar/kubestellar/pull/1921.

/approve


Not automatic set my +18 claim correctly, when I enter my birthday

When I enter my birthday, +18 claim not set correctly.

Does not set 18+ false claim if the user is younger than 18


error occured when running "python setup.py bdist_wheel"

fail to run "python setup.py bdist_wheel"; error information is as folloews:
.....
running install_scripts
error: [WinError 5] 拒绝访问。: 'build\bdist.win-amd64\wheel\mindnlp-0.0.1.dist-info\dependency_links.txt'

This is an issue of python wheel lib.  See Building wheel from read-only source on Windows gives "Access Denied" on cleanup #327
.
The contributor claims the bug has been fixed but seems not.


Mockup create Linode from Clone

@eatonphil did you have anything for this previously?

Nope. Requirements are: it's a list of Linodes you can pick from.

round one: https://projects.invisionapp.com/boards/WF36Y3WP4SVH8/

working on a round 2 that retains form sections and shows potential clone control from a linode list item

@eatonphil round 2 which includes a simple list and the full form is up on the invision board.
making an example of clone from dropdown next

another round of updates added, includes clone in list item dropdown with a modal to clone the selected Linode. see annotations

@na3d @abemassry take a look when you have a minute.

+1 to the clone modal and breaking it out of the create flow.

closing for now, can be reopened with comments as needed.


Color Detection on images using python

Aim

Color Detection on images using python

Details

We have use opencv and pandas for color detection and dataset csv in the script

Plss assign me this issue under gssoc21

@Ayush7614 we already have this script: https://github.com/avinashkranjan/Amazing-Python-Scripts/tree/master/Color_detection


Distorted capsule geometry type on ignition gazebo fortress 6.12

Environment

OS Version: Ubuntu 20.04
Binary build, version 6.12

Rendering plugin: ogre2

[x] Sensor rendering error.
[x] GUI rendering error.

EGL headless mode:

[?] Running in EGL headless mode
[x] running on a dual GPU machine (integrated GPU + discrete GPU)
[ ] running on a multi-GPU machine (it has multiple discrete GPUs)
[x] running on real hardware

Rendering system info:
GPU: GTX970M driver version: 515.65.01

Capsule geometry looks severely distorted.

Description

Expected behavior: Capsule geometry looks normal
Actual behavior: Capsule geometry is distorted

Steps to reproduce
Add an entity with capsule geometry to the scene, e.g. run ign gazebo shapes.sdf

@j-rivero reproduced this locally for me.

Closed by gazebosim/gz-common#475


Document the meaning of white

Btw what meaning for white?

+1 what does white mean? iam guessing higher harvest than expected?

i have many whife what is that color mean


Fix incompatibility with AE2 Import Export Card

I think I have a Déjà-vu xD

Did I break that again...

actually it turns out the fix never was in the main branch


az resource list is broken

Describe the bug
az resource list (among other list commands like az functionapp list) do not return all the resources.
Command Name
az resource list
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

az resource list -g {}

I have no idea how to cause this, some groups list fine, others do not. I looked at the --debug and tries the api call myself with az rest and that returns all the resources, so something is getting lost from the response from the api and the output.
I verified also this behavior is local and in Azure Shell. Using Azure PowerShell the Get-AzResource lists all resources as expeceted.
Expected Behavior
So me the resources actually in the resource group.
Environment Summary
Windows-10-10.0.22621-SP0
Python 3.10.5
Installer: MSI

azure-cli 2.40.0

Extensions:
application-insights 0.1.16
azure-devops 0.25.0
log-analytics-solution 0.1.1
resource-graph 2.1.0

Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1

Additional Context
Example output I captured:
❯ Get-AzResource -ResourceGroupName app-thing-test | ft Name,ResourceType,Kind,Location

Name                                                                ResourceType                                     Kind              Location
----                                                                ------------                                     ----              --------
company-app-thing-test-eastus2                                   Microsoft.Cdn/profiles                           frontdoor         global
company-app-thing-test-eastus2/company-app-thing-test-eastus2    Microsoft.Cdn/profiles/afdendpoints                                global
company-app-thing-test-eastus2                                   Microsoft.EventGrid/domains                                        eastus2
company-app-thing-test-eastus2                                   Microsoft.Insights/components                    web               eastus2
company-app-thing-test-eastus2                                   Microsoft.ManagedIdentity/userAssignedIdentities                   eastus2
company-app-thing-test-eastus2                                   Microsoft.OperationalInsights/workspaces                           eastus2
h1234567g2g                                                      Microsoft.Storage/storageAccounts                StorageV2         eastus2
appthingteststg                                                  Microsoft.Storage/storageAccounts                StorageV2         eastus2
z1234567u7w                                                      Microsoft.Storage/storageAccounts                StorageV2         centralus
company-app-thing-test-centralus                                 Microsoft.Web/serverFarms                        functionapp       centralus
company-app-thing-test-eastus2                                   Microsoft.Web/serverFarms                        functionapp       eastus2
company-app-thing-test-centralus                                 Microsoft.Web/sites                              functionapp,linux centralus
company-app-thing-test-eastus2                                   Microsoft.Web/sites                              functionapp,linux eastus2

❯ az resource list -g app-thing-test | convertfrom-json |  ft name,kind,type,location

name                                                                kind              type                                     location
----                                                                ----              ----                                     --------
company-app-thing-test-eastus2                                   frontdoor         Microsoft.Cdn/profiles                   global
company-app-thing-test-eastus2/company-app-thing-test-eastus2                      Microsoft.Cdn/profiles/afdendpoints      global
company-app-thing-test-eastus2                                                     Microsoft.EventGrid/domains              eastus2
company-app-thing-test-eastus2                                                     Microsoft.OperationalInsights/workspaces eastus2
h1234567g2g                                                      StorageV2         Microsoft.Storage/storageAccounts        eastus2
z1234567u7w                                                      StorageV2         Microsoft.Storage/storageAccounts        centralus
company-app-thing-test-eastus2                                   functionapp       Microsoft.Web/serverFarms                eastus2
company-app-thing-test-eastus2                                   functionapp,linux Microsoft.Web/sites                      eastus2

route to CXP team

@smokedlinq Thank you for reaching out to us, we are looking into it.

have this as well... working fine all day ... was recreating the resource group periodically, then...
$ az resource list -g myrg
[]
when I look in the portal its got many vms, LBs, SA etc

Adding Service team to look into this.
@josephkwchan, @jennyhunter-msft Could you please look into this once you get a chance ?

Hi I'm being affected by this too when running on MS Buildagents from Azure DevOps.
Locally this works on Windows, WSL and an Ubuntu VM running Focal, when authenticated as a service principal.
I've also checked proxying and I can reach management.azure.com.
I've also compared local (2.42.0) and buildagent (2.40.0) azure-cli versions and even downgraded my local version to match and this still works locally. Others can replicate this behaviour in my organization too.
  - task: AzureCLI@2
    condition: always()
    displayName: "Just output please"
    inputs:
      azureSubscription: $(azureServiceConnectionLock)
      scriptType: "pscore"
      scriptLocation: "inlineScript"
      powerShellErrorActionPreference: stop
      inlineScript: az resource list --resource-group "rg-xpl-test-uks-network" --debug

The SPN that returned empty had the following permissions over the resource group.
{
    "id": "",
    "properties": {
        "roleName": "Example Management Lock Service Principal",
        "description": "",
        "assignableScopes": [
            ""
        ],
        "permissions": [
            {
                "actions": [
                    "Microsoft.Authorization/locks/read",
                    "Microsoft.Authorization/locks/write",
                    "Microsoft.Authorization/locks/delete",
                    "Microsoft.Resources/Resources/read"
                ],
                "notActions": [],
                "dataActions": [],
                "notDataActions": []
            }
        ]
    }
}

After testing with a more privileged SPN (contributor), I got the expected result. It looks like this may be an inconsistently unhandled permissions error as when I changed the permissions from the above to the below it now works both in pipeline and local.
{
    "id": "",
    "properties": {
        "roleName": "Example Management Lock Service Principal",
        "description": "",
        "assignableScopes": [
            ""
        ],
        "permissions": [
            {
                "actions": [
                    "Microsoft.Authorization/locks/read",
                    "Microsoft.Authorization/locks/write",
                    "Microsoft.Authorization/locks/delete",
                    "Microsoft.Resources/*/read"
                ],
                "notActions": [],
                "dataActions": [],
                "notDataActions": []
            }
        ]
    }
}

I am observing the same issue when doing this az cli command from ado build agents

I am also observing the same behaviour. az resource list --resource-group group does not return the Backup Vault resource that can be seen in the Portal.
$  az resource list --resource-group rg-backup-singledb-tftest
[]  <- no result but accessing the Backup Vault directly in the same resource group shows that the resource is there.

$  az dataprotection backup-instance list --vault-name bvault-singledb-tftest-ircgu  --resource-group rg-backup-singledb-tftest   -o table
Command group 'dataprotection' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Name                                      ResourceGroup
----------------------------------------  -------------------------
bkinst-psql-backup-singledb-tftest-sofnr  rg-backup-singledb-tftest

Hi! I've noticed that the list of resources changes depending on from where you are calling the API. If I fetch the list from an AVD (Azure Virtual Desktop), it matches what's shown on the Portal, but if I fetch the list from my company's internal network (tested from 2 different machines), it yields an incomplete list.
Looking deeper, management.azure.com resolves to different DNS names depending on the origin:

From our corporate network (incomplete list): arm-fdweb.francesouth.cloudapp.azure.com [<IP_ADDRESS>]
From the AVD (complete list): arm-fdweb.westeurope.cloudapp.azure.com [<IP_ADDRESS>]

I must add that this inconsistency happened yesterday evening. Today morning the results are OK everywhere.
The resources I'm querying happen to be deployed in West Europe, so probably the issue is not on AZ CLI, but on how Azure propagates information internally.

I am observing the same issue when doing this az cli command from ado build agents

The answer I have received from the Azure support team is to use 'az graph' command, since 'az resources' is not reliable due to Azure region replication delays for its underlying implementation.

We understand that this issue may have caused you some inconvenience and would like to assure you that we are taking action to address it. There is a long-term restructuring of the platform's underlying storage systems and routing logic to reduce the endpoint inconsistencies and prevent cache discrepancies. This new infrastructure has already been released for subscription level calls. However, it is still undergoing testing for resource group level calls and will be rolled out as soon as it is verified.
Meanwhile, Azure Resource Graph, which is the service behind the az graph command, is what powers most Azure Portal experiences, and calling those commands will be the best way to ensure consistency in what you are seeing there.

Hi @jennyhunter-msft
Do you know if now situation with az resource list is changed now? Is the fix currently working in subscription level and is it pushed for resource group level?
I'm asking, because we have hacks for that issue implemented in so many places, that I would be super happy to remove them :).

I hit this one today. The az graph recommendation works like a charm...


Add test unit dep and tweaks

Coverage increased (+0.2%) to 79.121% when pulling 79d86c295a516af72191094997b6918a5fb9fcf3 on cosmo0920:add-test-unit-dep-and-tweaks into 4771ebec60fc7f395ff39e561a26ed3c3edc5bed on marcy-terui:master.

Coverage increased (+0.2%) to 79.121% when pulling f07cf63363eba6b9e4fa53460b3797aeeac80e63 on cosmo0920:add-test-unit-dep-and-tweaks into 4771ebec60fc7f395ff39e561a26ed3c3edc5bed on marcy-terui:master.

@marcy-terui Any thoughts?

Sorry, I'm late. I appreciate your work!!

Thanks!


status and menu

Hi
I’ve looked everywhere trying to find out to activate/toggle the view of the remote-sync status. When I first unchecked the Log status option it appeared at the bottom of the Atom editor pane. But if I click the “x” at the far right side of the status it goes away and stays away till I close and reopen Atom. I can not find a key binding or Cmd-Shift-P command to toggle this view. Your docs do not mention it at all.
Please make it clear and obvious.

Please also put the remote-sync menu under the Packages top nav menu along with all the other packages that put their menus there. It’s a pain having to scroll up to the project root folder in the left sidebar and right-clicking to get to it.

Please respond to these two requests.

from Bruce.Holm

I don't know if "auto hiding log panel after transferring" it's implemented yet, but appear in commits.

This feature has now been implemented see #254 for more details.


KerasClassifier, GridSearchCV ignore with tf.device('cpu:0')

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
TensorFlow installed from (source or binary): pip install tensorflow
TensorFlow version (use command below): 2.4.1
Python version: 3.8.5
CUDA/cuDNN version: CUDA v11.0.2/cuDNN v<IP_ADDRESS>
GPU model and memory: Quadro M1200

Describe the current behavior
Using KerasClassifier in combination with GridSearchCV ignores if I force to use CPU computing instead of GPU using with tf.device('cpu:0')
Describe the expected behavior
TF and Keras libraries should use specified hardware (CPU or GPU) if it is inside the with tf.device(DEVICE_NAME).
Standalone code to reproduce the issue
import numpy as np
import tensorflow as tf
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Dropout
from tensorflow.keras.wrappers.scikit_learn import KerasClassifier
from sklearn.model_selection import GridSearchCV

tf.debugging.set_log_device_placement(True)
X_train = np.random.rand(1000,7)
input_dim = X_train.shape[1]
epochs = [5, 10, 15]
batch_size = [10, 20, 30, 40]
param_grid = dict(epochs=epochs, batch_size=batch_size)

def create_sequential_model(activation='relu', dropout_rate=0.2, optimizer='SGD'):
    model = Sequential()
    model.add(Dense(4, input_dim=input_dim, activation=activation))
    model.add(Dropout(dropout_rate))
    model.add(Dense(2, activation=activation))
    model.add(Dense(4, activation=activation))
    model.add(Dense(7, activation='sigmoid'))
    model.compile(loss='mse', optimizer=optimizer, metrics=['accuracy'])
    return model

with tf.device('cpu:0'): # This works and runs on CPU
    a = tf.constant([[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]])
    b = tf.constant([[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]])
c = tf.matmul(a, b) # This works and runs on GPU
print(c)

with tf.device('cpu:0'): # This doesn't work
    model = KerasClassifier(build_fn=create_sequential_model, verbose=1)
    grid = GridSearchCV(estimator=model, param_grid=param_grid, n_jobs=-1, cv=5)
    grid_result = grid.fit(X_train, X_train)

Other info / logs
Proof it is using GPU instead of CPU

Please find the error displayed below (I know this error is because the parameter n_jobs=-1 of GridSearchCV is not supported on tensorflow if using GPU)
TerminatedWorkerError: A worker process managed by the executor was unexpectedly terminated. This could be caused by a segmentation fault while calling the function or by an excessive memory usage causing the Operating System to kill the worker.

Also, I would like to add that I tried using the "trick" of setting os.environ["CUDA_VISIBLE_DEVICES"] = "-1" and it works. However I intend to use GPU after I obtained best hyperparameters with other created model and using the fit and predict function. So if I set CUDA_VISIBLE_DEVICES to -1 and then I try to set it back again to '0' or '1', GPU won't work anymore and I would have to reinitize my whole program in order for GPU to work.

I have tried in colab with TF-GPU version 2.4.1 . Please, find the gist here.You are also seeing the same behavior?
Thanks!

@dvelaren
I have tried in colab with TF-GPU version 2.4.1 . Please, find the gist here.You are also seeing the same behavior?
Thanks!

Hello @ravikyram your colab works even in the GridSearchCV. However error persist when trying outside of Colab.

Hi @dvelaren ! Is this issue still valid in 2.8 version?


Add pre-commit git hook support

Feature:
Pre-Commit Git Hook
Description:
This will allow us to add a pre-commit hook.  This hook will run the npm run lint script on any git commit command.  If there are errors returned from the linter, it will block the commit from executing.  In addition, we can also enable this for any tests as well.
Changes I Made:
Added two packages:  npm-run-all and ghooks.  The npm-run-all package will allow us to run multiple scripts.  The ghooks package implements the git hooks functionality.
package.json

Modified the scripts section in such that it adds a verify: prefix to the test and lint script commands.  In the future, we can then use npm-run-all to run all verify:* scripts.  Currently, we will only be running the linter as we don't have any tests yet.
Added a config section to configure the pre-commit git hook.

Installation:
Run npm install to add the new packages.

Nice add!


Style/SafeNavigation gives bad suggestion in if/else block

The SafeNavigation cop has a false negative in case of an if/else block
Expected behavior
Given this block of code:
  def for_each_affected_element(&block)
      if some_precomputed_array
        some_precomputed_array.each(&block)
      else
        SomeModel
          .some_complicated_query_logic
          .some_other_methods
          .find_each(&block)
      end
    end

I expect not to receive a warning.
Actual behavior
Style/SafeNavigation suggests to use safe navigation instead of checking in an object exists before calling the method.
RuboCop version
$ rubocop -V
0.43.0 (using Parser <IP_ADDRESS>, running on ruby 2.3.1 x86_64-darwin15)

I have a example that rubocop thinks is a problem as well
        if ruby_gemset
          ruby_gemset.update!(used_at: DateTime.now)
        else
          ruby_gemset = RubyGemset.create!(gemset: gemset, version: version)
        end

I think that in general if there is an "else" condition (or if it's part of a ternary operator expression), the check shouldn't apply.
Also, the autocorrect attempts to do very weird things, producing broken ruby code

This was fixed as a part of #3517.


Add new builder append interfaces and implement entire row split for ListArray

Hi @zhouyuan
Have validated by https://github.com/oap-project/gazelle_plugin/pull/548


Adding a new link for React

New interview questions link for React Redux under React section.

Unable to merge PR. Write access required

Unable to merge PR. Write access required

Opps sorry


Codeunit 31362 "Match Bank Payment CZB" - procedure FillMatchBankPaymentBufferVendor() - BC version 23

Describe the request
I would like to request the same publisher described in issue #25710 but for the version 23 of BC.
Additional context
We have the same scenario, but for Business Central Version 23.

Hi,
Unfortunately the process for event requests is only for the next minor, backporting this to 23 versions would require hotfixing the already released 24.0 to avoid breaking the dependent extension. We do not usually hotfix events unless they are causing a livesite issue.
I'll close this issue as "Won't fix".
FYI: @JesperSchulz


Add missing bracket in Markdown link.

@sauparna : Thanks for your contribution! The author(s) have been notified to review your proposed change.


Revert "Revert "[Dependency Scanning] Restore passing external target map as inputs to the scanning action.""

This reverts commit 095cdac250314895c6b77146d78595c3fa2599b5, restoring the reverted functionality.

@swift-ci please test

@swift-ci please test


Error checking deps

Describe the bug
deno run --allow-net --allow-read --allow-write<EMAIL_ADDRESS>check
Gathering facts...
Reading deps.ts to gather your dependencies...
error: Uncaught TypeError: Cannot read property 'split' of undefined
        ? (dep.split("@" + importedVersion + "/")[1]).split("/")[0]
                                                      ^
    at Function.constructModulesDataFromDeps (https://deno.land/x/dmm@v1.1.4/src/services/module_service.ts:94:55)
    at async check (https://deno.land/x/dmm@v1.1.4/src/commands/check.ts:14:19)
    at async run (https://deno.land/x/dmm@v1.1.4/mod.ts:13:5)
    at async https://deno.land/x/dmm@v1.1.4/mod.ts:56:1

To Reproduce

Open root project
Launc dmm check

Desktop (please complete the following information):

OS: Windows 10 and WSL2 Ubuntu

Additional context
Test repo link: https://github.com/kKen94/deno-test

Hey @kKen94, thanks for your issue. We will address it as soon as possible!

@kKen94 can you paste the whole contents of your deps.ts file?

@kKen94 can you paste the whole contents of your deps.ts file?

Sure!!
export { Drash } from<EMAIL_ADDRESS>export { Dexter } from<EMAIL_ADDRESS>export { v4 } from<EMAIL_ADDRESS>export * as log from<EMAIL_ADDRESS>export { Paladin } from<EMAIL_ADDRESS>

Ahhh so it's due to the regex that tries to get the imported version: /(v)?[0-9].+[0-9].+[0-9]/g, which is matching the export { v4 } bit (when it shouldn't), so importedVersion is v4 } from 'https://...'


Animation issue.

Describe the bug
Unarmed crouch animation on female character (haven't checked male).
Is it already a known issue?
No
Steps to reproduce
Holster weapon, go in 3rd person and crouch/stand up.
Contact:
just_baron

Additional context
Unarmed character starts crouching in vanilla animation, then twitches and stands in cautious crouch animation, and moves with the same speed as running (not sprinting on "shift", just a regular speed) one.

Please update to the newest patch. I have not been able to reproduce this issue.


Support BEF on Windows machines

As a BEF user
I would like to use Eclipse+BEF on my Windows machine
Such that all the features work as expected
Background:
I am filing this having only tested on Mac and Linux. I assume the BEF will need to be updated to support Windows (path constructions, etc) but I don't know the scope of work right now. I will need to get a Windows machine to do the assessment.

Doc note about Windows now included in install.md
https://github.com/salesforce/bazel-eclipse/blob/master/docs/install.md#supported-platforms

I have made a lot of progress on this, and the tests are almost passing now. I expect to be done with this soon.

MVP support on Windows is now done. Remaining work:

Problems View is not showing some errors. I need to compare the behavior of the Problems view before and after current state and 1.3.0. I believe there is a regression there, but not sure yet.
Figure out why 3 Problems tests are failing on Windows but not Mac
Test launchers need more testing on Windows.
Set a better default value for the Bazel Preference for the path to Bazel Executable for Windows.
Do validation for the BAZEL_SH env variable and make the error more obvious if set incorrectly (UI popup).
Dedicated Windows install/user guide documentation supplement.
Dedicated Windows dev guide documentation supplement.
Centralize the "\\" regex pattern
Test this whole thing on Linux, to make sure we are still good there
Test install BEF into Windows Eclipse via update site zip
Finish updating the old bazel-demo test workspaces and test in Windows BEF

I probably won't get to this next task in this work item, if not file as a follow up issue:

Most of this porting work was distinguishing String paths between Bazel and Filesystem paths. On *nix, the delimiter is the same so we could be vague and it worked. But to prevent Windows bugs from being introduced into the code we need to strongly type any variable that is holding a path. Something like BazelLabel (already have this) and BazelFilesystemPath (relative paths in the workspace but in FS delimiter form).

All the remaining action items have been resolved. Closing....we now officially support Windows.


Add hardhat task to verify contracts using config.toml

Adds a new hardhat task to verify deployed contracts using a config.toml with the constructor args. The new task can be executed with:
npx hardhat --network $NETWORK --show-stack-traces verify-contracts --factory-address $FACTORY_ADDRESS --config-file $PATH_TO_CONFIG

@vtleonardo Is there any documentation for this in the wiki? Is it expected to do this for every release of the contracts?


Issues occurring when users have a NULL name

Twice now Paul Atkins has reported Hylo crashing on load for him and it has had to do with a user having a NULL name which is causing bugs (most recently in PeopleInfo). The question is how do they get a NULL name? For one when they delete themselves it can happen, but then why is the UI interacting with a Deleted User, and why isnt the name being returned as Deleted User? Or is their name being deleted and then they reactivate themself? Or is there another way their name is becoming NULL?

duplicate of preventing null names from happening


Status of the codebase

Hey Andrew,
What is the status of that codebase? Can the processor be synthesized?
I am fooling around memory subsystems and I am looking for a RISC.

I reckon maybe a couple of weeks work to get the basic 5 stage pipeline running C-code.  Possibly less - it was very nearly working when I was pulled away to work on something else.
There are various other bits including CSRs, interrupts, cache interfaces etc that are in varying states of readiness.

Cool, I'll take a shot at it.


feat: build against SPDK 22.01

Fixes CAS-1287

bors try

bors merge

bors merge

bors try

bors merge


Add "@tailwindcssinjs/macro"

Hello!
I added "@tailwindcssinjs/macro" to the tools section.
Package description:
@tailwindcssinjs/marco is a babel macro that transforms Tailwind classes into css object styles. These css object styles can be used with your favorite css-in-js library.
Full disclosure: I am the author of this package.

Great work @Arthie. I starred the repo and will most likely start using it myself. As soon as you resolve @hawezo's correction we'll merge in.

@joshmanders Thank you! I resolved the issue.


Tome

Changed SmartDeviceLink scheme to run app
changed button.textLabel.setTitle --> [button setTitle:forState:]

Hey thanks for the PR. However, there are multiple schemes in there, including one that already runs the example project. The SmartDeviceLink scheme is purely for building the dynamic framework.
In addition, please separate differing features into different pull requests. I cannot pull in this pull request, because although the button state change is good, the scheme change is not.

In addition, we are still working on getting our CLA in place, so we unfortunately cannot accept PRs from outside of Ford until that is cleared up.


MM-18717 Edit a message in permalink view

Summary
This PR adds a Cypress integration test for viewing edited messages in permalink mode.  Integration test behavior is listed below:
Steps

Log in as User_1 and visit root path
Post a message
Search for the message
Click the jump link to view message in permalink mode
Select the ... button, edit the message, and submit changes
Verify changes
Log out

Log in as User_2 and visit root path
Search for edited message
Click the jump link to view message in permalink mode
Verify changes

Issues that Need Addressing
This is my first time ever using Cypress, and my first time contributing to Mattermost, so getting a feel for the new environment took some time.  In the assigned issue, it specifies to test one user with a different browser/device.  Currently, I am unsure of how to implement this in to the test.  I researched the browser launch API a bit, but would appreciate the input of someone more experienced.
Ticket Link
Fixes https://github.com/mattermost/mattermost-server/issues/12305

@Mycobee Can you sync and merge with master? After that, we should be good to go! Thanks!


Specify minimum boost version for benchmark

On cades, it picked up 1.53 by default, which just does not compile:
/home/xap/code/arborx-paper/test/ArborX_BoostRTreeHelpers.hpp:41:36: error: ‘index’ in namespace ‘boost::geometry’ does not name a type
 using Parameter = boost::geometry::index::linear<16>;

But the configure stage passes as we don't check it (we only check min version for tests).
Need to figure out what's the minimum version and add that.

The minimum Boost version containing Boost.Geometry index is 1.54.

Don't we check that we have at least 1.69 in https://github.com/arborx/ArborX/blob/27c4f9c04e32d99c97c0d9eca6583de3bed8c769/test/CMakeLists.txt#L27-L35?

@masterleinad The version is checked only in tests/, not in benchmark. But both include ArborX_BoostRTreeHelpers.hpp, where this error is coming from.


Osekai does a 301 redirect for no reason

no clue why this is happening, but when you visit snapshots, it immediately redirects you (to add the /)
https://osekai.net/snapshots?version=86

same thing applies for medals, this makes google not happy

seems pages which can't be indexed do get indexed anyway based on their redirect, but it'd still be better to not have this issue imo

doesn't seem to be something we can fix

Could be something with how the redirect part of the router would work

this isn't just on the router, this is on all pages, and it does it with the htaccess completely removed as well. as i say i dont think we can fix it

What's weird is that it also happens locally.


docs: Update user guide notifications

What type of PR is this?

Uncomment only one  /kind line, and delete the rest.
For example, > /kind bug would simply become: /kind bug

/kind bug
/kind cleanup
/kind failing-test
/kind enhancement
/kind documentation
/kind code-refactoring

What does this PR do / why we need it:
updates GitOps user guide for argocd-notifications
Have you updated the necessary documentation?

[x] Documentation update is required by this PR.
[x] Documentation has been updated.

Which issue(s) this PR fixes:
Fixes #?
Test acceptance criteria:

[ ] Unit Test
[ ] E2E Test

How to test changes / Special notes to the reviewer:

/retest

/test v4.8-e2e

/retest

/retest

/retest


feat(options): add options.runtimeImportFunctionName

Description
This feature allows a browser to determine, at runtime, the relative path from where to import the worker script file.
I decided to avoid using publicPath because I concluded that it's best to have it resolved during build time by webpack.
Instead, options.runtimeImportFunctionName is meant to be used during runtime. It can be combined with options.publicPath, too.

This PR contains a:

[ ] bugfix
[x] new feature
[ ] code refactor
[x] test update
[ ] typo fix
[ ] metadata update

Motivation / Use-Case

In browser context, the script that pulls imports the worker script file (not inlined) may be served from different URL paths, thus option.publicPath is unable to provide the relative path from where to download the worker script.
Example:

Build outputs files dist/index.js and dist/worker.js
Case 1: Files get deployed into https://my.website.com/cdn/index.js and https://my.website.com/cdn/worker.js, respectively.

index.js needs to import worker.js from /cdn/

Case 2: Files get deployed into https://another.website.com/something/index.js and https://another.website.com/something/worker.js, respectively.

index.js needs to import worker.js from /something/

The path value cannot be specified during build time, so another approach is needed (this PR).
I need a function that executes during runtime, providing the appropriate path.
Breaking Changes

There are no breaking changes

Additional Info

It somewhat addresses issue #161

I'll make it again.


Support for Dataviews

Dataviews is a heavily used plugin for Obsidian and I am not even sure if its possible for Perlite to integrate with Dataviews.
However this would be a very big enhancement if it could be implemented. Since the entire Vault is included, access to the dataviews main.js and styles.css are possible

Sorry, but supporting plugins is currently not planned, there are to many and it's to much work to implement, track and maintain changes from plugins


Issue getting filters, loading some sheets with server side rendering

I am attempting to get the underlying data (if possible) of which summary tables and graphs are presented in the workbook [here](https://tableau.soa.org/t/soa-public/views/USPostLevelTermMortalityExperienceInteractiveTool/3_PLTDuration?%3AisGuestRedirectFromVizportal=y&%3Aembed=y).
Loosely following your TableauCIESFootball code, I start like this:
from tableauscraper import TableauScraper as TS

url='https://tableau.soa.org/t/soa-public/views/USPostLevelTermMortalityExperienceInteractiveTool/DataTable3?%3AisGuestRedirectFromVizportal=y&%3Aembed=y'
wb = TS()
wb.loads(url)

workbook = wb.getWorkbook()
sheets = workbook.getSheets()
print(sheets)

#data2=s.goToSheet("Data Table 2")
data3=workbook.goToSheet("3. PLT Duration")
filters3 = data3.getFilters()

data3V2=workbook.getWorksheet("3. PLT Duration")
filters3V2 = data3V2.getFilters()

Issues:

The line: #data2=s.goToSheet("Data Table 2") doesn't work, despite there being a worksheet with exactly that name.
I can run the .goToSheet("3. PLT Duration") command but no the getWorksheet("3. PLT Duration").
After running goToSheet, the getFilters() returns an error.

So I haven't been able to even get started with the data. But my overall objective to somehow get the granular underlying data of which the worksheets present amalgamated summaries.
Thanks for your help!

For the series of issues:

The line: #data2=s.goToSheet("Data Table 2") doesn't work, despite there being a worksheet with exactly that name.

It triggered an error because dataSegments field was missing in the response, which is normal since it's using server side rendering for this sheet

After running goToSheet, the getFilters() returns an error.

The filters are in fact parameters (at the top level whereas filters are specific to sheets):
from tableauscraper import TableauScraper as TS

url = "https://tableau.soa.org/t/soa-public/views/USPostLevelTermMortalityExperienceInteractiveTool/DataTable3"

ts = TS()
ts.loads(url)
wb = ts.getWorkbook()

for t in wb.worksheets:
    print(t.name)
    print(t.data)

wb = wb.goToSheet("Data Table 2")

print(wb.getParameters())

Note that you can use the sheet name in the url:
https://tableau.soa.org/t/soa-public/views/USPostLevelTermMortalityExperienceInteractiveTool/DataTable2
and you get the worksheet directly without goToSheet

For getting the data, it seems there is no filter (parameter) that is cleared by default (even the last one seems to server side render some values). But, it's still possible to get the data via the download button as described :

The above can be done programatically but it's not implemented for the "crosstab" only the "data" button is implemented. That would be a new feature to implement with the api:

/commands/tabsrv/export-crosstab-server-dialog
/commands/tabsrv/export-crosstab-to-csvserver

This way you would reproduce the same flow as described above without using any filtering trick

Thanks for this. I think I follow. I was hoping there is some way to get at the more granular data (that is rendered and amalgamated server-side). Is this simply impossible?

@adamsolMIT it depends on the filter you want to set, some filters result in data rendered client side and other are server side rendered.
The crosstab csv result seems to be what you would expect isn't it ?

@bertrandmartel when each row contains exposures of 10,000 or 100,000 it means that the raw data contains 10,000/100,000 entries that are being summed to produce this table. Nowhere on this workbook are the individual entries listed, but I was hoping it could be accessed somehow.

You can only extract data that is displayed on the webview. If the filters don't allow you to unwind/extract all those individual entries, it will not beb possible to extract it programatically. I can help you extract only data that is visible in the webview. If it's not possible via filters, it could have been possible (and that's not certain) to get it via the "download" feature which is disabled for this dashboard and require authentication it seems

@adamsolMIT The modification above are available in v0.1.19. If this is of interest, you can get the data (only the visible data) using:
from tableauscraper import TableauScraper as TS

url = "https://tableau.soa.org/t/soa-public/views/USPostLevelTermMortalityExperienceInteractiveTool/DataTable2"

ts = TS()
ts.loads(url)
wb = ts.getWorkbook()

wb.setParameter(inputName="Count or Amount", value="Amount")

data = wb.getCrossTabData(sheetName="Data Table 2 - Premium Jump & PLT Duration")

print(data)

Thanks @bertrandmartel !


Leave dump and pass in tact when modifying an entry

Hello again, sorry for opening 2 issues in one day :smile:
Suppose I start with this entry in fstab:
/dev/mapper/vg_volgrp01-lv_tmp /tmp                    ext4    defaults        1 2

And all I want to change is the options, I tried the following:
  mounttab { '/tmp':
    ensure   => present,
    options  => ['defaults', 'nodev', 'nosuid', 'noexec'],
    provider => augeas,
  }

However, this changes my pass and dump values too:
Notice: /Stage[main]/Profiles::Base::Compliance::Mounts/Mounttab[/tmp]/options: options changed 'defaults' to 'defaults,nodev,noexec,nosuid'
Notice: /Stage[main]/Profiles::Base::Compliance::Mounts/Mounttab[/tmp]/pass: pass changed '2' to '0'
Notice: /Stage[main]/Profiles::Base::Compliance::Mounts/Mounttab[/tmp]/dump: dump changed '1' to '0'

By comparison, my original augeas version didn't affect these parameters:
  augeas { 'set_tmp_mount_options':
    context => "/files/etc/fstab/*[file='/tmp']",
    changes => [
      "rm opt",
      "insert opt after vfstype",
      "set opt[last()] defaults",
      "insert opt after opt[last()]",
      "set opt[last()] nodev",
      "insert opt after opt[last()]",
      "set opt[last()] nosuid",
      "insert opt after opt[last()]",
      "set opt[last()] noexec",
    ],
  }

Granted it's rather ugly though, hehe :smile:
Any help on this one would be awesome, and really sorry again for bothering you today
Cheers
Fotis

I can see the original Puppet mounttab define does the same thing actually.  Is it a behaviour that you would reconsider in your module?
And forgive me for the really really silly question, but what exactly is the benifit of using this provider instead of the regular mounttab that comes with Puppet?
Thanks again
Fotis

Yeah, I think I filed a bug report about it a very long time ago.  I'm not sure I'd be able to find it again, it's probably on the old Puppet Labs Redmine instance.
Unfortunately the mounttab module has just faded away - at one point it looked likely that the mount type in Puppet core would be replaced by mounttab+mountpoint, but nobody's worked on it for years so it seems unlikely now.

That's such a shame really, especially for something so essential.  I might hunt around to see if anyone has implemented something that overcomes this but I imagine it is unlikely.  I'll report this against the official module repository and add a link here.
You're welcome to close this issue if you like though :smile:
Thanks again for ally our help
Fotis

Three years ago, how time flies: https://projects.puppetlabs.com/issues/16122.  It probably needs re-reporting into the MODULES project under JIRA.
Sorry there's no good solution, I hope it does get some life again.

Wow, thanks for digging that up for me.  I guess I'm talking to the right person since you raised it (hehe).  I may try to re-file it in the new JIRA ticket tracker.
Cheers mate
Fotis


ISS_1814 Fixing the merge command of the monorepo builder tool

Previously the 'repositories' section were deleted when using the merge function
This is adding it back and fixing the test to make sure it never happen again

Why closed?


[re-apply][cxx-interop] Support class templates containing typedefs.

This prevents an assertion in "isOverAligned" caused class templates that contain and use typedefs.
Re-landing 7f2b0aad2be0a3ed30ef831d4d883d2e4a1048fc after being reverted in 5ef0136356a6b03ab939db52409d2c7acae5bb7f.
Refs #34590 and #34557.

@swift-ci please smoke test.

@swift-ci please smoke test OS X platform.

@swift-ci please smoke test OS X platform.


[AzureMonitorDistro] update vendored instrumentation libraries to 1.6.0-beta3

There was a major change in the source repo to use file scoped namespaces. When reviewing this PR, please select "hide whitespace".
Changes

Added a GlobalUsings.cs. The source repo is now using global usings and we need to do the same to simplify syncing future changes.

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


DCIM>Interface Connection Export Template - Form Factor Label Blank Output

Issue type
[ ] Feature request
[X] Bug report
[ ] Documentation
Environment
Python version: 3.5.2
NetBox version: 2.2.6
Description
When creating an export template for interface connections, if you include the form factor label as per the API call reference interface_a.form_factor.label there is no output returned, example export template below
{% for connection in queryset %}
{{connection.interface_a.device|addslashes}},{{connection.interface_a.name|addslashes}},{{connection.interface_a.form_factor.label|addslashes}},{{connection.interface_b.device.name|addslashes}},{{connection.interface_b.name|addslashes}},{{connection.interface_b.form_factor.label|addslashes}}
{% endfor %}

The form_factor field doesn't have a label attribute. (Template variables differ somewhat from the API structure.) Referencing connection.interface_a.get_form_factor_display should return what you want.


⚠ TorrentLeech has degraded performance

In 364eb39, TorrentLeech ($TL) experienced degraded performance:

HTTP code: 200
Response time: 1070 ms

Resolved: TorrentLeech performance has improved in 7959662 after 6 minutes.


Provide option to view the cluster template revision

Version: Master-head
Steps

As global admin, create cluster template and template revision.
We need an option to view the template revision so that the creator and anyone who uses the template revision can see the selections  made.

Version: master-head (v2.3) (8/12/19)
You can now click on the name of the CTR to get a "detail" view much like viewing details of a workload, pod, etc. This is a read-only view that lets us see what is set for the cluster template revision.
I believe the intent of adding this enhancement was so a user may review and see how the cluster template is set up before leveraging the template. I had expected when viewing the details of a CTR to be able to tell what fields do or do not have an override associated with them, but you can't tell what has an override or not in this view. Overrides seem to be important to be able to know so I think the detail view should show what has overrides and what does not.
As such, I'd like to reopen the issue and see if we can add this in. I'm not certain how we could visually show if a field has an override or not. Perhaps the override toggle switches need to be shown but not be interactive.

@davidnuzik can you create a new issue for the enhancement to be able to see the override options in the template revision from this view? and then we can close this original issue.

@deniseschannon thanks; I created a separate issue to track that: https://github.com/rancher/rancher/issues/22183
I am going to close the issue based on my testing performed earlier. I wasn't able to spot any other issues during my testing 8/12. Reference my last comment https://github.com/rancher/rancher/issues/21716#issuecomment-520548709


Confusion " Create an AKS cluster in the virtual network"

I am still in a confusion on what to use kubenet or azureCNI. Considering the IP sizing i decided to go on kubenet Network with existing vNET/SUBNET which i can specify only from AZURE CLI. However, other IPs like Service CIDR and Docker Bridge CIDR IP selection will be taken care by Azure.
Confusion below :  Why do i need to worry about below as it is purely an internal communication and it is not a matter what IPs it has taken.
The --service-cidr is used to assign internal services in the AKS cluster an IP address. This IP address range should be an address space that isn't in use elsewhere in your network environment. This range includes any on-premises network ranges if you connect, or plan to connect, your Azure virtual networks using Express Route or a Site-to-Site VPN connection.
The --dns-service-ip address should be the .10 address of your service IP address range.
The --pod-cidr should be a large address space that isn't in use elsewhere in your network environment. This range includes any on-premises network ranges if you connect, or plan to connect, your Azure virtual networks using Express Route or a Site-to-Site VPN connection.
This address range must be large enough to accommodate the number of nodes that you expect to scale up to. You can't change this address range once the cluster is deployed if you need more addresses for additional nodes.
The pod IP address range is used to assign a /24 address space to each node in the cluster. In the following example, the --pod-cidr of <IP_ADDRESS>/16 assigns the first node <IP_ADDRESS>/24, the second node <IP_ADDRESS>/24, and the third node <IP_ADDRESS>/24.
As the cluster scales or upgrades, the Azure platform continues to assign a pod IP address range to each new node.
The --docker-bridge-address lets the AKS nodes communicate with the underlying management platform. This IP address must not be within the virtual network IP address range of your cluster, and shouldn't overlap with other address ranges in use on your network.

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

ID: 719f4010-810f-b3c7-d807-222b39b20e20
Version Independent ID: 82ac8cfa-b0a2-c77a-408a-ab9aa2b6bce4
Content: Configure kubenet networking in Azure Kubernetes Service (AKS) - Azure Kubernetes Service
Content Source: articles/aks/configure-kubenet.md
Service: container-service
GitHub Login: @mlearned
Microsoft Alias: mlearned

Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate.

Thank you @srisaiazure for the feedback.
We have added an item to our backlog and will prioritize accordingly.
#please-close


Next.js 13 Amplify - CustomerError: The size of the build output exceeds the max allowed size of 230686720 bytes

Before opening, please confirm:

[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
[X] I have removed any sensitive information from my code snippets and submission.

App Id
d2moft81gtdgs7
Region
us-west-2
Environment name
Frontend builds
Figma File Version (if applicable)
No response
Amplify CLI Version
No response
If applicable, what version of Node.js are you using?
18.13
What operating system are you using?
Mac
Browser type?
Chrome
Describe the bug
CustomerError: The size of the build output (264015647) exceeds the max allowed size of 230686720 bytes. Please reduce the size of your build output and try again.
I'm aware that Amplify has a limit of 200MB build output size for Next.js 12 and 13 apps. But our application is big and the 200MB limit is just too small for any large application. Many large-scale apps built with Next.js exceed the 200MB build output as demonstrated by other users who reported the same issue.
We already followed the build step command in the Amplify docs on how to reduce the build output size, but the size reduction is not enough to reduce the build output to less than 200MB.
du -h -d1 public:
12K	        public/js
128K	public/favicon
3.2M	public/img
48K	public/sounds
120K	public/json
4.0K	public/maintenance
3.6M	public
du -h -d1 .next/static:
636K	.next/static/css
12M	.next/static/chunks
28K	.next/static/puGf1Ftyu3ImEPqhcvPhF
264K	.next/static/media
13M	.next/static
du -h -d1 .next/server:
5.1M	.next/server/chunks
62M 	.next/server/pages
67M	         .next/server
Expected behavior
Build runs successfully.
Reproduction steps
Run build, then await for build to complete.
Project Identifier
No response
Additional information

Hi @karloespiritu 👋 , thanks for sharing the detailed information about the issue you are experiencing while deploying your Next.js application using Amplify Hosting.
Unfortunately, the 200 MB build output size is a hard limitation at the moment. Generally, our recommendation to reduce the build output size is as follows:

Build app using the esbuild JS bundler: https://docs.aws.amazon.com/amplify/latest/userguide/troubleshooting-ssr-deployment.html#build-output-too-large
Store and serve your image and video files from Amazon S3 instead of the public directory.

Based on the size of the files in your .next/server directory, it seems that your Next.js application has a large amount of pages and thus it is resulting in this deployment error. A potential workaround that you can consider is to use dynamic routes within your Next.js application as it will reduce the overall number of pages and in turn the build output size.

+1
Having the same issue on a relatively small project after adding Sentry.

Hi 👋, we recently made the improvement and resolved this issue, please rebuild your application. Feel free to open the new issue if it persists. Thanks

Hi 👋, we recently made the improvement and resolved this issue, please rebuild your application. Feel free to open the new issue if it persists. Thanks

@victorccccc Could you confirm when the improvement was made and what the improvement is? We saw this limit just last week.

hi @pachoclo - this improvement was pushed out today. The team added logic to remove unnecessary packages for production that are typically large. Can you give it another try and let us know?


format file fails but it compiles and runs

I reduced my code and created this example.
The formatter rightfully throws its hands up but the compiler gets the job done and the code works as "expected"
https://play.crystal-lang.org/#/r/bk4f
class Test
  getter results : Array(Array(Int32)) { [[1,2,3,4]] }

  def print_nums
    results.each do |result|
        begin
          result.each do |number| # do without end
            puts number
        rescue error
          Log.warn(exception: error) { "failed to print number" }
        end
      end # technically there are enough 'end's here just not in the right order
    end
  end
end

Test.new.print_nums

The rescue is associated with the each loop:
require "log"

class Test
  getter results : Array(Array(Int32)) { [[1,2,3,4]] }

  def print_nums
    results.each do |result|
      begin # Expressions
        result.each do |number| # ExceptionHandler
          puts number
        rescue error
          Log.warn(exception: error) { "failed to print number" }
        end
      end
    end
  end
end

Test.new.print_nums

So this is valid syntax and it seems the formatter doesn't handle implicit exception handlers in blocks.


[SPARK-7912] [SPARK-7921] [MLLIB] Update OneHotEncoder to handle ML attributes and change includeFirst to dropLast

This PR contains two major changes to OneHotEncoder:

more robust handling of ML attributes. If the input attribute is unknown, we look at the values to get the max category index

change includeFirst to dropLast and leave the default to true. There are couple benefits:
a. consistent with other tutorials of one-hot encoding (or dummy coding) (e.g., http://www.ats.ucla.edu/stat/mult_pkg/faq/general/dummy.htm)
b. keep the indices unmodified in the output vector. If we drop the first, all indices will be shifted by 1.
c. If users use StringIndex, the last element is the least frequent one.

Sorry for including two changes in one PR! I'll update the user guide in another PR.
@jkbradley @sryza

Merged build triggered.

Merged build started.

Test build #33672 has started for   PR 6466 at commit 00dfd96.

The original rationale for includeFirst=true was to be consistent with scikit-learn
http://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.OneHotEncoder.html.
You think it's more important to be consistent with those tutorials?

To clarify, I mean that scikit-learn uses a component in the vector for every category.  No preference on includeFirst vs. includeLast.

Test build #33672 has finished for   PR 6466 at commit 00dfd96.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
class OneHotEncoder(override val uid: String) extends Transformer

Merged build finished. Test FAILed.

@sryza I think keeping all categories by default is a bad practice. It throws in an extra column that carries no extra info and causes numerical problems. I checked several tutorials online and it seems that only sklearn keeps all by default.

http://www.ats.ucla.edu/stat/mult_pkg/faq/general/dummy.htm
http://en.wikiversity.org/wiki/Dummy_variable_(statistics)
http://dss.princeton.edu/online_help/analysis/dummy_variables.htm

Ok, that's fine with me.  Can we include a note in the doc that mentions we differ from sklearn?

Good idea! Added a sentence in the doc.

Merged build triggered.

Merged build started.

Test build #33680 has started for   PR 6466 at commit 171b276.

Test build #33680 has finished for   PR 6466 at commit 171b276.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
class OneHotEncoder(override val uid: String) extends Transformer

Merged build finished. Test FAILed.

Merged build triggered.

Merged build started.

Test build #33714 has started for   PR 6466 at commit a280dca.

Test build #33714 has finished for   PR 6466 at commit a280dca.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Merged into master and branch-1.4.

Merged into master and branch-1.4.


Update LSTMModel.py

changed the syntax for tf.split, tf.concat and replaced rnn & seq2seq w/ the corresponding tf.contrib.rnn & tf.contrib.legacy_seq2seq

The LSTMModel.py update made it work on TF 1.0.1, thanks @stevenhurwitt ! I was also looking for a Python 3x port, is anyone working on it?


Wallet

There needs to be a way to run with only the node (without wallet).

Just to clarify, the issue I pointed out was the spelling WalletSever -- note the missing "r".  It was fine having defaultWalletServer where you had it before.
However, I think this needs PR needs to be done so that the default wallet server is "", which signals no wallet connection, and there has to be handling everywhere appropriate to deal with this.  dcrdata has to be able to run with just the node as that is an application that needs to be supported.

we can find this in the future


Outreach/UGIC

Benefit: Increased awareness of UGRC products and services, enhance our reputation with broader community, learn new tools/features/software, networking, getting feedback
Acceptance: Give presentations, build/enhance survey, build some sort of game/activity, organize bike rides


WebpackModuleFederation is verbose and documented poorly

I'm currently working on several features demanding abilities like Module Federation should provide. I do need to use the dynamic module federation features specifically. I've encountered several barriers I haven't been able to overcome for several days now, so I decided to fill in a 'complain', hinting at some issues I discovered with provided examples.
Since I don't know how Module Federation works and since I'm unable to use it properly, I'm also unable to provide suggestions on how to improve the documentation specifically.
First of all, I could barely use WebPack's official documentation at all since the documentation itself seems to be unnecessarily verbose, especially on technical details, and does not get to the point on how to use it properly, especially when it comes to TypeScript.
Then, there are the examples, which do have one major issue - When it comes to dynamic modules, you can find on line across the entire Google results list, which is:
const container = window[scope]; // or get the container somewhere else
Several questions come up:

What is the container?
Who's responsible for it's lifecycle?
If it's me, where and how should I create it?
What's the purpose of the container?
Why is it undefined per default?

Other than that, as it is almost always the case with WebPack's configuration file, I think the configuration's properties are unnecessarily verbose - and it's again very, very hard to make any sense of them.
  new ModuleFederationPlugin({            name: "app2",            filename: "remoteEntry.js",            remotes: {                 app1: "app1@http://localhost:3001/remoteEntry.js",            } })

The string 'app2' occurs 2 times within this example configuration. Why?
'remoteEntry.js' occurs 2 times. Why?
What's the point of configuring remotes statically within webpack.config.js? Shouldn't it be espacially focused on dynamic remotes, since development and production environments can be very different from one another?

Please don't interpret this as a rampage, it's just a list of hints. I'm going to try my best to get it to run, but I've decided to share my pain during the process with you guys.
Maybe you'll agree on specific points with me, maybe you don't, none of this is an offence :)

/cc @ScriptedAlchemy Maybe you can use here too :smile:

I can refine the docs a little. However I'm not sure I can reduce the verbosity.
I wrote a 150 page book on MF and that didn't even cover it all.
Definitely can address some of the glaring errors you outlined here though

@ScriptedAlchemy Yep, I understand this, maybe just popular problems and solutions

@alexander-akait happy to
Will start working on it the following week, traveling at the moment

This could probably be merged with #4283.

@daodaoker https://module-federation.myshopify.com/products/practical-module-federation

The problem I am having with Webpack Module Federation is that while there are lots of neat examples around the web, it is not a substitute for adequate documentation. For example, take this example from here:
https://github.com/paloitsingapore/webpack-module-federation/blob/main/subA/webpack.config.js
Yes, the project works, but when I try to adapt this code to my project:
    new ModuleFederationPlugin({
      name: 'sub_a',
      filename: 'remoteEntry.js',
      exposes: {
        './SubAApp': './src/index',
      },
    }),

I am at a loss because there is no actual API documentation for ModuleFederationPlugin. Maybe that would be a great place to start.

What does name do?
What does filename do? What else do I need so the code is available at website/remoteEntry.js (or whatever the filename is) is live, so other people can access it?
What does exposes do?
What other properties are there?

There are other things that are necessary, but an API document would be essential.

After a good night's sleep, I thought I'd add this.
Like many programmers, I trust webpack to do its thing. I'm from React world, with create-react-app to set up the essentials. I don't want to touch the webpack configuration. It works. I don't want to break it.
But microfrontends are starting to be a thing, and so people are looking around, and Webpack Module Federation is one of those technologies that promise to deliver it. It's even more flexible than single-spa - you can run a React App as a container on domainA:portA and have it talk to domainB:portB. But you can't do it with the existing webpack documentation.
So for quite a few developers, Webpack Module Federation may be the first time that they have to change the webpack configuration. They've never needed to do so before. But there comes a time in a programmer's life where it is time to eject or use craco or react-app-rewired or what have you, and Webpack Module Federation could be it. And so ModuleFederationPlugin is one of the first parts of webpack that they will looking for documentation. Do you see the issue here?
That's another reason why ModuleFederationPlugin needs better documentation. Especially the API.

https://github.com/sokra/slides/blob/master/content/ModuleFederationWebpack5.md

I've got tons of content about MFP. PR process for webpack docs is a little bit tedious and don't really have time to deal with it.
That said. Some basics like what does each key does on the api could be helpful.
I kind of expected developers to know what filename does tho, but I get the point about cracking open a config for the first time. If you don't know basic options of webpack then it's a little abstract.

Thank you for getting back to me, @ScriptedAlchemy, and thanks for providing the slides. I guessed filename is the name of a file, and I furthermore guessed the endpoint will occur at ${host:domain}/${filename}. But I am guessing. When I take the code above and put it in another project that I made, I am not getting the endpoint happening.
I set my filename to remoteEntry.js, and point my browser to http://localhost:3000/remoteEntry.js, and I get nothing. I try http://localhost:3000/static/js/remoteEntry.js, and I get nothing either. So why isn't it happening? Yes, filename is for filenames, but the context is missing here.
If there was practical API documentation (like say Redux or React or even Django), then it would tell the reader:

What is the purpose of filename
If "filename" is required or optional (and if so, what was the default),
What other criteria is necessary (such as having a publicPath in output in module.exports, perhaps?) to make it work.

One thing I notice is that ModuleFederationPlugin seems to be doing two things. I've been using it (well, trying to) make my code available to others as a microfrontend. But ModuleFederationPlugin is also used in containers when it is fetching data from microfrontends. I am wondering why two plugins were created instead of one? It would make it easier to document.
Thank you again.

It's actually 4 plugins under the hood, webpack is mostly just a bunch of plugins.
Options are not required. Technically none are since the api activates different parts of the plugin (sub plugins) depending on what options you add.
Set publicPath to auto. Look in your build output file and see where the remote entry is ending up.
Have you looked at module-federation-examples? Thats the "official" source of reference. If I didn't author the repo you are referencing, there's a high probability it's not done properly.
Webpack is hard to document, I wrote a 200 page book just on federation, still that doesn't cover everything.
This is open source software. React is heavily funded. Redux has a pretty small api. The surface area of webpack is massive in comparison.
If you're stuck DM me on twitter and we can do a zoom call. Take notes and PR the docs.

Thank you for getting back to me. My point is that I don't (well, didn't) need everything. Documenting an API should not take 200 pages. Perhaps it could take 20 or more pages; I'll concede that. But it shouldn't take 200 pages.
I once wrote a learning guide for CSS that covered quite a lot - paragraph styling, page layout, and even stuff like media queries and font loading; it came to just over 100 pages. Are you going to say that the surface area of Webpack Module Federation (not Webpack, but just the Federation) is bigger than Cascading Style Sheets?
I've been looking at the Webpack API, and none of the subpages come close to 20 pages. You could even start with the existing documentation for the Module Federation Plugin API and actually complete it. I am delighted to see you have runtime and shared in there already. So why not append descriptions of name, filename and exposes as well, and other properties you would use? And if it is actually 4 plugins under the hood, why not copy and paste the APIs of the plugins in there? Or if you are pressed for time, why not write the names of those 4 plugins and tell the reader what they are?
I can't help but notice that there are 77 contributors for the Module Federation Examples, lots of them dated like yesterday. Maybe at least one of those contributors could actually update the API. It could even be you.

I can't help but notice that there are 77 contributors for the Module Federation Examples, lots of them dated like yesterday. Maybe at least one of those contributors could actually update the API. It could even be you.

He's got a point: Maintaining open source can become tiresome and he does not owe anyone of us anything. It's an issue with Open Source in general that people start to raise their expectations.

Not trying to be rude, I can empathize with the struggles. I also have a very deep understanding of webpack. It's hard to document something you built, to me it makes perfect sense lol. I've also been a contributor to webpack since v1 so it's pretty easy to lose grip on the reality of what people know vs what I know.

And I think that is an issue with webpack in general. It's powerful, useful, but full of people with specialized niche knowledge, which they themselves seem to consider to be common knowledge. Webpack config files speak volumes of this, they're almost incomparable to anything else I've seen out there (but somewhat more powerful as well).

Of course he doesn't owe us anything, @Akazm. But I'm trying to hint pretty strongly that he actually has some control over whether Module Federation is used or not, one way of getting stuff into the used column is actually providing useful documentation, and here's a way forward that suggest themselves. There's enough documentation on Webpack itself, which is used hundreds of thousands of times a day around the world. Perhaps the problem here isn't not understanding webpack?

Of course he doesn't owe us anything, @Akazm. But I'm trying to hint pretty strongly that he actually has some control over whether Module Federation is used or not, one way of getting stuff into the used column is actually providing useful documentation, and here's a way forward that suggest themselves.

I basically agree with you on this, that's why I did submit this issue in the first place :).
But eventually, it's up to him or any contributor to acknowledge this issue or to leave it untouched. I've given up on trying to use Module Federation a while ago and I'm totally fine with that without expecting anything.

There's enough documentation on Webpack itself, which is used hundreds of thousands of times a day around the world. Perhaps the problem here isn't not understanding webpack?

It isn't.

I’ll opening a pr, will reference this thread - could use some guidance one what’s helpful or missing. During the review.
yeah 77 contributors to the MF examples but very few work on webpack itself unfortunately.
200 page book, fair point. But what the api keys are vs leveraging the mechanism is very different. That said an extra paragraph would probably save users a lot of time and head scratching.
Sorry to hear you’ve given up on using the plugin. Issue acknowledged

I’ll opening a pr, will reference this thread - could use some guidance one what’s helpful or missing. During the review.

Could you add a link here in case GitHub won't notify us?

Sorry to hear you’ve given up on using the plugin. Issue acknowledged

Don't worry about that, it's not your fault, it's my own laziness.

@ScriptedAlchemy: I am very pleased that you are opening a PR. I would also be willing to help with guidance and wording.
One bit of advice I'd add is maybe add a one or two line summary of what Webpack Module Federation does to the official docs, before you start with the Motivation. Something like:

Webpack Module Federation allows your application to compile JavaScript code from other Webpack modules running on a separate host. That allows your application to use another as a microfrontend.

As for using Webpack Module Federation, my organisation won't be using it now, but we may revisit our decision in three or six months' time. We've just had a research spike on microfrontends, because we are looking at running out a suite of applications with a common container application; technology used is React+Redux+TypeScript+React Router+Material UI, for your interest. We looked at quite a few things, even iframes.
As it stands, we can get webpack for one React application to get the JavaScript files at another host; it's stable most of the time, but every now and then Redux complains about createStore being called multiple times. Our approach is based on this Cam Jackson article with some advice from this Jennifer Fu piece about React apps that start their lifetime from Create React App. (Rather than use react-app-rewired, we are using craco, as it seems to be better maintained.) We might go well with the approach, but I will still have Webpack Module Federation in the back of my mind.
I should add that there's one more reason why we (and others) may be making or revising microfrontends decisions in the near future. We use apps bootstrapped from Create React App, which uses Webpack 4; and many other groups. However, Module Federation comes with Webpack 5. CRA will be going Webpack 5 real soon now... except that there are still some milestones to pass before the thing rolls into production. By the end of the year? Almost definitely.
Anyway, I am delighted that you are opening a PR, and yes, I'd love to help.

Not to sound entitled (more like desperately looking for some good documentation), but -
Where is this PR lol? The docs are still terrible.


How to save the attention maps

Hey, this is an very interesting work!
I tried to save the cross-attention maps by setting save_cross_attention_maps in config.py to True, but sadly found no attention map was saved. Can you show how to save the attention maps?
Thanks!

Hi @rulixiang, thanks for your interest!
This configuration is currently not supported in the code, however, you can use our cross-attention visualization notebook to visualize the cross-attention maps obtained with and without Attend-and-Excite.

Thanks, I found it!


Include Localizable.strings content in xCode's "export for localization"

Hello,
is there a way to include the content of Localizable.strings in xCode's exported for translation .xliff files?
At the moment, it doesn't work because xcode searches for NSLocalizedString in code, not for actual content in Localizable.strings
If you have any thought, it will be much appreciated.
Thanks

Hi @ribasal1,
Sorry for the long delay. I'm afraid this is not currently possible (as far as I know).
Sorry again,
Roy


[927] add skylight

Context
Adding skylight to the app.
Changes proposed in this pull request
All the gubbings required to get Skylight working, including the badge in the README. We'll still need to add the appropriate env var to configure the token.

 [S] Skylight for register


Add port conflicts in General Troubleshooting Section

Suggestion to add a "General Troubleshooting" section to the top-level readme, for troubleshooting that applies to all the Docker images. Perhaps could move the 16GB GPU memory requirement there.
And one additional troubleshooting item I'd like to see is for port conflicts when hosting multiple students running the workshop containers  on the same cluster. They will clobber each other on port 8888. So anyone hosting this workshop should be prepared to assign ports to students. Perhaps there there any other solutions you've encountered?

Yes we could ideally add another section on the how to use in cluster env where multiple participants are using the material.

Closing. Added to the README general troubleshooting. We plan to add additional README guides for the basics of container and multi-tenancy environment in the future as well. https://github.com/gpuhackathons-org/gpubootcamp/commit/00fcdff199ca24599d799853a62e02c0ab99c4d7


Add seconds to stop_times

The format should include seconds, as mentioned here : https://developers.google.com/transit/gtfs/reference/stop_times-file
It might be better to use seconds from TfL though, but it seems to me that it is not provided.

Looks good, thanks for the PR!


还更新不更新了啊？

⚠ IMPORTANT ⚠ Please check the following list before proceeding. If you ignore this issue template, your issue will be directly closed.

[ ] Read the docs.
[ ] Make sure the code is up to date. (Some bugs have been fixed in the latest code)
[ ] This is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.

Describe the bug
A clear and concise description of what the bug is..
Reproduction
Please describe the steps of the problem in detail to ensure that we can restore the correct problem
System Info

Operating System:
Node version:
Package manager (npm/yarn/pnpm) and version:

直接拉main

既然问到了，我们都在等楼主更新呢

参考群里公告


For the Review

In this activity, we had to prepare a Kanban board with a GitHub project. We prepared a template that we need to copy. All tasks in the template board have assigned workload and a category. Our job was to split the tasks in a way that gives each member a chance to work with the tasks from all categories so that the estimated time is divided fairly between all members. In order to copy the Kanban board quickly, we have used a special script prepared for us.
here's the link for our Kanban board
Basically we are working in a team of three (3) of us

Hi Team,
Your project is complete! :shipit:
Congratulations! 🎉
Approved :ok_hand: :ok_hand: :ok_hand:
Optional suggestions
Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.

@ShahierNashaat thank you for the review 😄


Adding AWS certs for US-East-1 for our DB

Jira Ticket: PXP-xxxx

[ ] Remove this line if you've changed the title to (PXP-xxxx):

New Features
Breaking Changes
Bug Fixes
Improvements
Dependency updates
Deployment changes

closing this one as it is stale, and probably meant for our 2.15 branch which already got this fix through this commit https://github.com/uc-cdis/WebAPI/commit/28a5c78e42a02b209f0a5a132f6e7fcd40a472f1


clasp should not try to push if GaxiosError fails because of SyntaxErrors

Expected Behavior
clasp should not try to push the code if GaxiosError fails because of SyntaxErrors
Actual Behavior
clasp spits out that GaxiosError failed because of SyntaxErrors and then pushes the code.
Below we can see that there are syntax errors, yet it still pushed. I would think/expect that if there are syntax errors then it would not try to push -- no point.
nacho@machine folder % clasp push
/ Pushing files...Push failed. Errors:
GaxiosError: Syntax error: SyntaxError: Invalid or unexpected token line: 5 file: code.gs
    at Gaxios._request (/usr/local/lib/node_modules/@google/clasp/node_modules/gaxios/build/src/gaxios.js:85:23)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async OAuth2Client.requestAsync (/usr/local/lib/node_modules/@google/clasp/node_modules/google-auth-library/build/src/auth/oauth2client.js:350:18) {
  response: {
    config: {
      url: '...',
      method: 'PUT',
      paramsSerializer: [Function (anonymous)],
      data: [Object],
      headers: [Object],
      params: [Object: null prototype] {},
      validateStatus: [Function (anonymous)],
      retry: true,
      body: `{...}`,
      responseType: 'json',
      retryConfig: [Object]
    },
    data: { error: [Object] },
    headers: {
      'alt-svc': 'h3-Q050=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-27=":443"; ma=2592000,h3-T051=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"',
      'cache-control': 'private',
      connection: 'close',
      'content-encoding': 'gzip',
      'content-type': 'application/json; charset=UTF-8',
      date: 'Fri, 02 Oct 2020 15:36:55 GMT',
      server: 'ESF',
      'transfer-encoding': 'chunked',
      vary: 'Origin, X-Origin, Referer',
      'x-content-type-options': 'nosniff',
      'x-frame-options': 'SAMEORIGIN',
      'x-xss-protection': '0'
    },
    status: 400,
    statusText: 'Bad Request',
    request: {
      responseURL: '...'
    }
  },
  config: {
    url: '...',
    method: 'PUT',
    paramsSerializer: [Function (anonymous)],
    data: {
      scriptId: '...',
      files: [Array]
    },
    headers: {
      'x-goog-api-client': 'gdcl/3.2.2 gl-node/14.12.0 auth/5.10.1',
      'Accept-Encoding': 'gzip',
      'User-Agent': 'google-api-nodejs-client/3.2.2 (gzip)',
      Authorization: 'Bearer ...',
      'Content-Type': 'application/json',
      Accept: 'application/json'
    },
    params: [Object: null prototype] {},
    validateStatus: [Function (anonymous)],
    retry: true,
    body: `{...}`,
    responseType: 'json',
    retryConfig: {
      currentRetryAttempt: 0,
      retry: 3,
      httpMethodsToRetry: [Array],
      noResponseRetries: 2,
      statusCodesToRetry: [Array]
    }
  },
  code: 400,
  errors: [
    {
      message: 'Syntax error: SyntaxError: Invalid or unexpected token line: 5 file: code.gs',
      domain: 'global',
      reason: 'badRequest'
    }
  ]
}
└─ appsscript.json
└─ code.js

Pushed 2 files.

Steps to Reproduce the Problem

write invalid JS code
push it

Specifications

Node version (node -v): 14.12.0
Version (clasp -v): 2.3.0
OS (Mac/Linux/Windows): MacOS 10.15

I have the same problem.
Additionally, I cannot find the pushed version of the scripts at script.google.com.
It seems the scripts are not really pushed anywhere.

The GaxiosError is actually a response from script.google.com.  After pushing the file GAS will perform a syntax check and reject any invalid pushes.

Isn't the GaxiosError check done before the push?

Isn't the GaxiosError check done before the push?

Well the HTTP response is right there in the error object.

I will show myself the door.
Sorry!


Update start.sh

On NIX OS there is no /bin/bash.
It located in
▶ where bash
/run/current-system/sw/bin/bash

But /usr/bin/env should be on most of Linux distros

Yeah.. I being using this in all other scripts and forgot to update this one. Thanks!

Guys, can you please explain why you are:

accepting a change for an insecure shebang statement?
(sorry but different bash versions on one host in the age of docker is nonsense.)
changing the shebang of only one sh file, why not all other files too? (Please don't do it)

Please don't take me wrong, Docker-Compose-Letsencrypt is one of the coolest projects ever. I LOVE IT!
But it gets frustrating if things stop working after an update...

Hello @teslasoft-de!
You have your point of view which I agree in part as I have used FreeBSD and even Solaris in the past which we would need this portability.
I am pushing these docker scripts to a whole new level and will make it public in a few month now. I will keep this updated with this version. I have being working too much due to covid... as most of us.
Let's discuss the best option to accomplish those who need this portability. No need it for myself these days, once all my sever's images are well customized using regular bash, so I would be glad to use only /bin/bash shebang.
Thanks for you message and your concern.
What do you guy think?
@j7an, @fracz


Unable to convert dat to caffe

Hi, I'm attempting to convert one of the sample vehicle detection models to caffe and am running into an issue.
Expected Behavior

I was expecting to run the dtoc program on mmod_front_and_rear_end_vehicle_detector.xml (generated by calling dlib::net_to_xml(net, "mmod_front_and_rear_end_vehicle_detector.xml")) and get a Caffe conversion.
Current Behavior

Instead, I get the following error:
~/src/dlib/tools/convert_dlib_nets_to_caffe/.build/dtoc mmod_front_and_rear_end_vehicle_detector.xml 1 1 928 478
Writing python part of model to mmod_front_and_rear_end_vehicle_detector_dlib_to_caffe_model.py
Writing weights part of model to mmod_front_and_rear_end_vehicle_detector_dlib_to_caffe_model.weights

*************** ERROR CONVERTING TO CAFFE ***************
string cast error: invalid string = 'true'

Steps to Reproduce

Steps shown above.  I simply compiled dtoc, called net_to_xml(), ran dtoc on resulting xml, and got an erro (no ou

Version:

19.24.99

Where did you get dlib:
github repo

Platform:
Mac

Compiler:
Apple clang version 13.0.0 (clang-13<IP_ADDRESS>)

That model isn't convertible to something caffe could understand.
On Tue, May 31, 2022 at 4:18 AM Christopher Sean Morrison <
@.***> wrote:

Hi, I'm attempting to convert one of the sample vehicle detection models
to caffe and am running into an issue.
Expected Behavior
I was expecting to run the dtoc program on
mmod_front_and_rear_end_vehicle_detector.xml (generated by calling
dlib::net_to_xml(net, "mmod_front_and_rear_end_vehicle_detector.xml")) and
get a Caffe conversion.
Current Behavior
Instead, I get the following error:
~/src/dlib/tools/convert_dlib_nets_to_caffe/.build/dtoc mmod_front_and_rear_end_vehicle_detector.xml 1 1 928 478
Writing python part of model to mmod_front_and_rear_end_vehicle_detector_dlib_to_caffe_model.py
Writing weights part of model to mmod_front_and_rear_end_vehicle_detector_dlib_to_caffe_model.weights
*************** ERROR CONVERTING TO CAFFE ***************
string cast error: invalid string = 'true'
Steps to Reproduce
Steps shown above. I simply compiled dtoc, called net_to_xml(), ran dtoc
on resulting xml, and got an erro (no ou

Version:

19.24.99

Where did you get dlib:
github repo
Platform:
Mac
Compiler:
Apple clang version 13.0.0 (clang-13<IP_ADDRESS>)
—
Reply to this email directly, view it on GitHub
https://github.com/davisking/dlib/issues/2592, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABPYFR6YHN6YPY64ABPDXETVMXDMXANCNFSM5XMV5SNA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

I'm not sure I understand the terse response.  The model clearly didn't convert (i.e., isn't convertible).  Is the input simply unsupported presently or is it outright an invalid input that cannot possibly convert?

In my humble opinion, there are two key aspects unique to dlib in that network:

the input layer: input_rgb_image_pyramid

this layer creates a tiled pyramid of the input image which, as far as I know, it's not supported anywhere else

the loss layer: loss_mmod

this loss layer is also unique to dlib, no equivalent in other machine learning frameworks exists.

As for the rest of the network, it's just a bunch of the standard convolution + batch norm + relu blocks, so nothing special there.
Therefore, unless you write those layers on caffe, there's no way that network would work.
I'd suggest you read about this blog post, which explains it in more detail.

Thank you for the responses.  The gist I'm understanding is that the dtoc tool cannot support any dlib network via xml, but only certain ones.  Thus the syntax error in my report is really an indication that should have simply reported back as "unsupported" or even "unsupportable" (though I don't know if that's strictly true).  Thanks for the responses received.


Update kubelet summary api vendor

Related to https://github.com/kubernetes/heapster/issues/1872
Include changes from https://github.com/kubernetes/kubernetes/pull/55188 and https://github.com/kubernetes/kubernetes/pull/55908
Feature repo: https://github.com/kubernetes/features/issues/369

This change is

/cc @piosz @vishh @loburm @andyxning

/lgtm

/lgtm thx


Got tabs replaced by literal '\t' when saving

Describe the bug
When saving tab characters back to the IBM i, the string '\t' (that is, the two-character string composed of a literal backslash and a literal 't') get written into the source member.
To Reproduce

Open a source member in VS Code.
Set indentation to "Indent Using Tabs".
Insert a tab.
Save.

Expected behavior
A tab character in the appropriate CCSID gets written to the source member.
Screenshots
SEU before editing:

Open in VS Code:

Setting indent mode:

Code containing tab:

SEU after saving:

Environment (please complete the following information):

Code for IBM i v1.6.8
IBM i OS version 7.4

Additional context
I realize you would rarely want actual tabs in your code, especially if it will also be worked on with SEU. But if the tabs are already there in the source member on the IBM i, VS Code opens them as tabs, and they need to make the round-trip intact.

Huh, fun bug. Likely something to do with VS Code and it writing files. I will look into it. Thanks!

So I was going to make a new issue but I decided to look through the open issues and came across this. I have been experiencing this as well in certain situations. I have a SQL source file that had a tab character in it most likely from when it was made. When I pull it down from production to work on it using VS Code the characters don't show up until I make a change and save it. When I reopen it the \t is put in place of the tab characters.
So I started testing to see where and how this is getting put in. Came to the conclusion that when I disable the Source dates option, VS Code will start translating the tab characters correctly and replace it with a space or however you may have your tab indentation setup. When I re-enable Source dates it creates the \t again.
Now I have no idea why this is the case because what would source dates have to do with translating tab characters but here we are.
If you want me to make a new issue I totally can but I just figured I would throw this comment on this open issue.

Excellent detective work! I'm glad you found this issue; commenting here was absolutely the best thing to do. I'm sure your new information will help someone track down the bug.

It's the Source date option in combination with the Source date tracking mode:

When set to diff, all tabs are converted to \t...!

You can easily replicate this by running the VS Code command Convert Indentation to Tabs... - this will trigger this error when the member is saved.
This is definitely a bug!

It's the Source date option in combination with the Source date tracking mode:
When set to diff, all tabs are converted to \t...!

So, does this mean you can find it in the code? Or are you just noting more specifics about the behavior?

So, does this mean you can find it in the code? Or are you just noting more specifics about the behavior?

I was only doing some extra testing - I didn't check the code. I've been involved in the save operation (particularly regarding hex color codes) and was curious as to what was causing this.
My initial thought about this problem was that having EBCDIC tab converted into \t after conversion to UTF-8 (VS Code) and back to EBCDIC (member) should not be categorized as an error... since non-displayed hex values in source code is a pain in the neck and should be avoided, and this made the non-display code visible and apparent and fixable!
But seeing that tabs inserted by VS Code was also converted into \t changed my mind - because this is of course not the intention and is of course a bug.
But at least now we know in which specific part of the code where to look for the bug...

It looks like the issue is with the escapeString function in extendedContent.ts; is that right?
I found that the function is executed for each line of a source member when the member is saved, but only if Enable Source Dates is turned on and the date tracking mode is set to diff. The function replaces each instance of \t with \\t; I tried changing the function to replace \t with 0x05 instead (since this is evidently the tab character in EBCDIC), and after preliminary testing it appears to work as expected.


os.Environ is empty

What version of CUE are you using (cue version)?

$ cue version
cue version v0.4.3 darwin/arm64

Does this issue reproduce with the latest release?
Yes
What did you do?
cd $(mktemp -d)
cat <<EOF > test.cue
import (
        "tool/os"
)

os.Environ
EOF
bash -c "cue export test.cue"

What did you expect to see?
{
    "$id": "tool/os.Environ"
    "PATH": "/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
    "TERM": "xterm"
...etc
}

What did you see instead?
{
    "$id": "tool/os.Environ"
}

Debugging Steps Taken
Not a Go developer but using printf debugging I can see that the pkg/tool/os/env.go:init function is called, but it does appear that pkg/tool/os/env.go:newEnvironCmd or pkg/tool/os/env.go:Run are called.

The tools/* packages are for use in the scripting layer. For the environment variables to be populated, it must be executed as part of a command (see cue help commands).
Consider the following instead:
// env_tool.cue
package main

import (
	"strings"
	"tool/cli"
	"tool/os"
)

command: env: {
	envs: os.Environ

	print: cli.Print & {
		text: strings.Join([ for k, v in envs {"\(k): \(v)"}], "\n")
	}
}

Running cue env will then display all environment variables.

Ah I see, thank you very much


Example of setting the size of the popup doesn't show setting the size of the popup

the snippet shown doesn't set width and height properties

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

ID: 503e124f-2b80-d6ae-581a-ca77f0a1999f
Version Independent ID: 66d2bd8a-536b-1a45-f71c-eb2a0199de46
Content: Add authentication to your messaging extension - Teams
Content Source: msteams-platform/messaging-extensions/how-to/add-authentication.md
Product: msteams
GitHub Login: @surbhigupta
Microsoft Alias: anclear

Thank you for the feedback. We will check it and take necessary actions.

@surbhigupta12 - Please replace Value = $"{_siteUrl}/searchSettings.html?settings={escapedSettings}" with Value = $"{_siteUrl}/searchSettings.html?settings={escapedSettings}&height=600&width=600" in the Note mentioned above this section https://docs.microsoft.com/en-us/microsoftteams/platform/messaging-extensions/how-to/add-authentication#start-the-sign-in-flow.


Added try.txt for testing

Testing what?

You know, try.txt

for reading

If they wanna check or try it out like you told in the README file, they need try.txt


Group<EMAIL_ADDRESS><EMAIL_ADDRESS>Add as MEMBER Failed: Invalid Input: memberKey

hi every one , i m trying to add members to a group via csv file using this  command
gam update group<EMAIL_ADDRESS>add member file Desktop\test.csv
but i git this error !
Group<EMAIL_ADDRESS><EMAIL_ADDRESS>Add as MEMBER Failed: Invalid Input: memberKey
in the csv file  are they inputs all in one column like this  firstname,lastname,email
any ideas! ?
thankou

If you have a CSV file with a column header, email for example, the command should be:

gam update group<EMAIL_ADDRESS><EMAIL_ADDRESS>add member csvfile Desktop\test.csv:email

Ross
<EMAIL_ADDRESS>
On May 5, 2018, at 11:56 AM, Wittentry<EMAIL_ADDRESS>wrote:
hi every one , i m trying to add members to a group via csv file using this command
gam update group<EMAIL_ADDRESS><EMAIL_ADDRESS>add member file Desktop\test.csv
but i git this error !
Group<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Add as MEMBER Failed: Invalid Input: memberKey
in the csv file are they inputs all in one column like this firstname,lastname,email
any ideas! ?
thankou
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/jay0lee/GAM/issues/725, or mute the thread https://github.com/notifications/unsubscribe-auth/AIU8L4R1nuH6GBueSw-pCexHpq9-dWzlks5tvfXlgaJpZM4TzwGN.


9283 review followup

Resolves some final comments from the previous PR review, as well as an issue gosec noticed.

/cc @yiraeChristineKim


Show Toast warnings on invalid data adding

Toast warnings should be shown on Exception catches when importing Data.
This will more than likely require refactoring in the Model classes, since they do not hold an Activity instance.

Put out of scope for now.


Cannot navigate to Nested Razor Component

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
When nesting razor components using .filenesting.json settings, you are unable to navigate to the component using the underscore as the reference.
https://github.com/user-attachments/assets/d617d159-a635-46e0-8806-d05411d734d5
Expected Behavior
Navigating to the sub component works properly
Steps To Reproduce
Use filesettings for nesting, try to navigate to a subcomponent
Exceptions (if any)
No response
.NET Version
No response
Anything else?
No response

I suspect this bug has nothing to do with nesting, and is just a due to the . in the filename. The method where this probably needs to be accounted for is currently pretty simple: https://github.com/dotnet/razor/blob/main/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Extensions/IDocumentSnapshotExtensions.cs#L52-L61


support pair of IRIs

Some time application needs to composes multiple IRIs to meaningful structs.
E.g. encode/decode multiple IRIs to path and back.

It would be hard to make it generic.