Add systemd timers / crontab jobs to compute showback

Author Name: Ruben S. Montero (@rsmontero)
Original Redmine Issue: 3425, https://dev.opennebula.org/issues/3425
Original Date: 2014-12-09

None

Original Redmine Comment
Author Name: Jaime Melis (@jmelis)
Original Date: 2015-02-19T11:35:33Z

Showback is calculated periodically. The idea is to run "oneshowback calculate"

Petr's PRs to merge:

one: https://github.com/OpenNebula/one/pull/4744
packages: https://github.com/OpenNebula/packages/pull/154
docs: https://github.com/OpenNebula/docs/pull/1126


Package.swift doesn't include any sources

please check Package.swift

my bad. I should have import  BridgeMiddlewareCombine instead of BridgeMiddlewareCombine

Hi @haifengkao, I'm a bit busy these days, so that's why I couldn't reply.
Could you please open a PR with README giving installation instructions? That would be great, otherwise let's keep this issue open to keep track on that.


Fix values provisioning in helm deployment

How to categorize this PR?

/area helm-deployer
/kind bug
/priority 3
What this PR does / why we need it:
This PR fixes an error of the helm deployer with respect to the values provided.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note:

/test


fix link

addresses: https://github.com/patrick-kidger/equinox/issues/698

LGTM! Thank you for the fix.


Do not sell implementation

Task/Issue URL: https://app.asana.com/0/0/1191298152080292/f
Tech Design URL: https://app.asana.com/0/481882893211075/1195505979185439/f
CC: @brindy @catehstn @bwaresiak
Description:
This implements the Do Not Sell (DN$) signal in the browser. There is a new setting labeled "Global Privacy Control" in the settings page. Turning this on will send the Sec-GPC header on main document requests and set the window.globalPrivacyControl property to '1'.
Steps to test this PR:

Navigate to http://global-privacy-control.glitch.me

Initially the header and DOM sections should say not present

Turn on the "Global Privacy Control" setting

The webpage will refresh and the header and DOM sections of the web page should say present

Navigate to another site like twitter.com

Manually inspect the webview via safari and check the header is included in the main document request and log the value of window.globalPrivacyControl to ensure it is '1'

Copy Testing:

[x] Use of correct apostrophes in new copy, ie ’ rather than '

Orientation Testing:

[x] Portrait
[x] Landscape

Device Testing:

[x] iPhone SE (1st Gen)
[x] iPhone 8
[x] iPhone X
[x] iPad

OS Testing:

[x] iOS 11
[x] iOS 12
[x] iOS 13

Theme Testing:

[x] Light theme
[x] Dark theme

Internal references:
Software Engineering Expectations
Technical Design Template

While this is ready for review from a functionality stand point, the copy is subject to change.

FYI copy has been finalized


Revert "made changes in navbar section - allignment  resolving issue #301"

Reverts Suchitra-Sahoo/AgriLearnNetwork#302

When I merged your PR the alignment totally got disturbed so had to revert back your PR.


[do not merge] adding mason-installed lib and include dirs

Opening this PR for instructive purposes.  This is just to show how mason can be used to install Pynini's C++ dependencies.  The advantage of using mason is similar to the advantages of virtual environments: nothing depends on the state of the system or its shared libraries. The dependencies can be installed and even interlinked local to the project, making it easy to build/clean/update.
The steps to install become:

clone mason locally (you can also use submodule or do a simple curl install)

cd /path/to/Pynini
git clone git@github.com:mapbox/mason.git .mason

install re2 and openfst. If you need updated versions of either package, they need to be added to mason as a PR.  https://github.com/mapbox/mason/pull/580 is an example of updating OpenFST, and should illustrate what needs to be done. Contact me for help if anything's not clear, though.

.mason/mason install re2 2018-08-01
.mason/mason install openfst 1.6.7

This will create a mason_packages folder in the pwd, structured similarly to this (example from a laptop running OSX):
mason_packages/
└── osx-x86_64
    ├── openfst
    │   └── 1.6.7
    └── re2
        └── 2017-08-01

The changes to setup.py in this PR now allow you to make use of the mason-installed header files and libraries, so you can continue with installation as directed in the Pynini documentation.

+1.


Pinpoint Web Application not initialized due to pinpoint apm hbase ApplicationIndex Table not found

Prerequisites
Please check the FAQ, and search existing issues for similar questions before creating a new issue.YOU MAY DELETE THIS PREREQUISITES SECTION.

[x] I have checked the FAQ, and issues and found no answer.

What version of pinpoint are you using?
v2.0.2

Describe the bug
Problem -1:
========

I want to store hbase data into host VM instead of Docker container.
To store hbase data into VM repository, I mapped docker container   hbase data  data repository (/home/pinpoint/hbase/data) to host VM repository (/opt/hbase/data) in volumes section under pinpoint-hbase service in  docker-compose.yaml file.
When I mapped the volumes between docker container and host, Pinpoint-web application not able to initialize by throwing below excretion.

stacktrace=com.navercorp.pinpoint.common.hbase.HbaseSystemException: ApplicationIndex; nested exception is org.apache.hadoop.hbase.TableNotFoundException: ApplicationIndex
at com.navercorp.pinpoint.common.hbase.HbaseTemplate2.execute(HbaseTemplate2.java:763)
at com.navercorp.pinpoint.common.hbase.HbaseTemplate2.find(HbaseTemplate2.java:190)
at com.navercorp.pinpoint.common.hbase.HbaseTemplate2.find(HbaseTemplate2.java:219)
at com.navercorp.pinpoint.web.dao.hbase.HbaseApplicationIndexDao.selectAllApplicationNames(HbaseApplicationIndexDao.java:74)
at com.navercorp.pinpoint.web.service.CommonServiceImpl.selectAllApplicationNames(CommonServiceImpl.java:42)
at com.navercorp.pinpoint.web.controller.MainController.getApplicationGroup(MainController.java:49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)

When I revoke the volume  mappings, Application is back to running state.

Problem -2:
========

All the data in hbase database erased once I we shutdown application using docker compose with default (/home/pinpoint/hbase) volume mapping configuration in docker-copose.yml file.
I am unable to retrieve the  data once I restarted.
Above resulted loss of data and restart Pinpoint Agents once again.

What did you do to trigger the bug?
Problem -1:
========
Steps to reproduce, for example:

Open docker-compose.yml with your favorite editor in Pinpoint parent/base folder.
Disable/comment - /home/pinpoint/hbase under volumes in pinpoint-hbase service and add - /opt/pinpoint/hbase/data:/home/pinpoint/hbase/data or  - /opt/pinpoint/hbase:/home/pinpoint/hbase instead in docker-compose.yml .
Start the Pinpoint application using docker compose (docker-compose up -d).
Open Pinpoint application in browser.  You will notice that application startup stuck at applicationList.pinpoint.
Now check the the pinpoint-web application logs. (docker logs pinpont-web), to find exception details.

Problem -2:
========

Start the application using docker compose(docker-compose up -d).
Connect pinpoint agents to pinpoint server and feed some tracing data.
Shutdown whole pinpoint application using docker compose(docker-compose down).
Again start the application using docker compose(docker-compose up -d).

Now you see that old data is missing.

Expected behavior
When we map hbase  data volumes between docker container and host VM, pinpoint should run without any issues

Screenshots

Logs
pinpoint-web.log
pinpoint-hbase.log
Additional context

Hello, @srikanthtummala
This is something to do with the docker and the containers.
For issue 1
You should check if the ports are open for the containers. and also you need to get to know more about how to use them.
For issue 2
It's about storing data when using the database as containers.
Both issues are not about Pinpoint. so I don't think we can help much on this.
By the way. Take a look the docker files for Pinpoint
http://github.com/naver/pinpoint-docker
This may help you to get on the track.


automake: 1.16.2 -> 1.16.3

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/automake/versions.
meta.description for automake is: "GNU standard-compliant makefile generator"
meta.homepage for automake is: "https://www.gnu.org/software/automake/"
meta.changelog for automake is: ""
Updates performed

Version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 1.16.3 with grep in /nix/store/0anmflqsbivpfkhzpy9psswz1q2x7m1r-automake-1.16.3

directory tree listing: https://gist.github.com/28226df10f7c1d4e803424397add5dfd

du listing: https://gist.github.com/a1eb58dbf35effcf529516dc4cc75f46

Rebuild report (if merged into master) (click to expand)

129552 total rebuild path(s)

37778 package rebuild(s)

37629 x86_64-linux rebuild(s)
33307 i686-linux rebuild(s)
26004 x86_64-darwin rebuild(s)
32611 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath

AMB-plugins
AusweisApp2
CoinMP
DisnixWebService
EBTKS
EmptyEpsilon
FIL-plugins
Fabric
LASzip
LASzip2
Literate
MIDIVisualizer
MMA
NSPlist
OSCAR
OVMF
OVMF-CSM
OVMF-secureBoot
PlistCpp
QuadProgpp
R
SDL
SDL2
SDL2_gfx
SDL2_image
SDL2_mixer
SDL2_net
SDL2_ttf
SDL_Pango
SDL_gfx
SDL_gpu
SDL_image
SDL_mixer
SDL_net
SDL_sixel
SDL_sound
SDL_stretch
SDL_ttf
SPAdes
SkypeExport
Sylk
Xaw3d
_0x0
_1oom
_1password
_1password-gui
_2048-in-terminal
_20kly
_2bwm

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/0anmflqsbivpfkhzpy9psswz1q2x7m1r-automake-1.16.3 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A automake https://github.com/r-ryantm/nixpkgs/archive/19c2ca91061dc033b6fba032331585f9fa7a2332.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/0anmflqsbivpfkhzpy9psswz1q2x7m1r-automake-1.16.3
ls -la /nix/store/0anmflqsbivpfkhzpy9psswz1q2x7m1r-automake-1.16.3/bin

Pre-merge build results
NixPkgs review skipped

Maintainer pings

@GrahamcOfBorg eval

@ofborg eval

@ofborg eval


Bug Report

Describe the bug
i used to do it with bash scripts but i also tried with single compose. the problem is i can create a container attach/detach, but as soon as is use the command exit within hb. and restart the container. i can type in my password. but the after i hit enter nothing happens...
Steps to reproduce

create hb instance
exit instance
restart. type in password

Release version
1.21
Type of installation
Docker
Attach required files
No response

ok after testing this works again. tested on t2 micro and c6a large. with simple compose and bash scripts. i will try it on my main server where the error occured. will report back;)

Closing ticket, will reopen if issue persist.

ok after testing that it works as expected i followed the steps again to migrate to 1.21, and it seems the problem happens after i upload my scripts to the scripts folder and my connectors to the connectors folder.
please try these steps to replicate the error:

git clone https://github.com/hummingbot/deploy-examples
cd deploy-examples
cd simple_hummingbot_compose
docker compose up -d
docker attach hummingbot
Set your hummingbot password
Once inside the hummingbot terminal type exit
upload scripts and connector files <---------------------
Once you get to the terminal enter docker start hummingbot to restart the client
Attach to the container using docker attach hummingbot
Enter password and see if you get the same issue.

ok after trial and error i found the root of the bug. the bug happens when i copy all of my connector files. but only some connector files will cause the bug for example ascendex and gate or kucoin wont produce this effect, but the connector file from mexc will produce this bug;)

The fix for MEXC is already merged into the development branch and added in the 1.25.0 release


Add additional unwrap code in ToStatusError gRPC error handler

What this PR does / why we need it:
Add additional unwrap code in TostatusError() in grpchelper/status.go which unwrap’s error until cause is set to base inner error.
This additional code is needed to avoid errorToCode map’s hash of unhashable type runtime error which leads to server panic.
This will prevent Yorkie server(Yorkie SaaS API) to panic(service unavailable) on unexpected error triggered by user.
Below is ToStatusError()’s parameter, err’s inner stacks(errors)
error(*fmt.wrapError) *{
    	msg: "decode project info: connection(localhost:27017[-12]) incomplete read of message header: context canceled",
	err: error(go.mongodb.org/mongo-driver/mongo.CommandError) {
		Code: 0,
		Message: "connection(localhost:27017[-12]) incomplete read of message header: context canceled",
		Labels: []string len: 1, cap: 1, ["NetworkError"],
		Name: "",
		Wrapped: error(go.mongodb.org/mongo-driver/x/mongo/driver/topology.ConnectionError) *{
			ConnectionID: "localhost:27017[-12]",
			Wrapped: error(*errors.errorString) *{
				s: "context canceled"
			},
			init: false,
			message: "incomplete read of message header"
		},
		Raw: go.mongodb.org/mongo-driver/bson.Raw len: 0, cap: 0, nil
	}
}

Parameter err needs to be unwrapped to base inner error. If not, errorToCode[cause] map (maps error to gRPC status code) will get invalid key for map like errorToCode[mongo.CommandError] which will lead to server panic: runtime error: hash of unhashable type mongo.CommandError.
This runtime error will occur when parameter err has nested errors (ex: mongo.CommandError)
Which issue(s) this PR fixes:
No issue is related.
Special notes for your reviewer:
This PR started with server log provided by @hackerwins on discord thread on unexpected server down issue.

Does this PR introduce a user-facing change?:
NONE

Additional documentation:

Checklist:

[x] Added relevant tests or not required
[x] Didn't break anything

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Prevent "webpacking" of native dependencies

During debugging some connection issue on the react branch I found that utp-native couldn't be loaded and as a result utp wasn't available.
utp is loaded through node-gyp-build whichs load-method has a wildcard-require, resulting in following warning:
WARNING in ./node_modules/node-gyp-build/index.js
13:9-32 Critical dependency: the request of a dependency is an expression
    at CommonJsRequireContextDependency.getWarnings (/Users/m/Documents/dat-desktop/node_modules/webpack/lib/dependencies/ContextDependency.js:39:18)
    at Compilation.reportDependencyErrorsAndWarnings (/Users/m/Documents/dat-desktop/node_modules/webpack/lib/Compilation.js:703:24)
    at Compilation.finish (/Users/m/Documents/dat-desktop/node_modules/webpack/lib/Compilation.js:561:9)
    at applyPluginsParallel.err (/Users/m/Documents/dat-desktop/node_modules/webpack/lib/Compiler.js:502:17)
    at /Users/m/Documents/dat-desktop/node_modules/tapable/lib/Tapable.js:289:11
    at _addModuleChain (/Users/m/Documents/dat-desktop/node_modules/webpack/lib/Compilation.js:507:11)
    at processModuleDependencies.err (/Users/m/Documents/dat-desktop/node_modules/webpack/lib/Compilation.js:477:14)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)

This means that as-is webpack can not find the depending packages. This PR marks all node-modules as external, which puts it in a similar build structure as is currently used by the choo-builds and thus allows access to utp-native.

@martinheidegger please wait for at least 48h so @aks- also has time to review

Sorry for that faux-pass I hope it's okay this time? Should I revert the commit?

I think it's fine :) Just want to remind you of the culture we want to establish :)


Azure VE failed to failover after upgrade to 1.2.1

Do you already have an issue opened with F5 support?
Yes
Description
After upgrade to V17 from V15, customer also upgrade the cft rpm to 1.2.1, then find the failover failed .
finding that it stuck with  below error, note the fqdn is tailor with subscriptions
[f5-cloud-failover] Status: "getaddrinfo ENOTFOUND management.chinacloudapi.cnsubscriptions management.chinacloudapi.cnsubscriptions:443" Retries left: 60
Have verified the dns can resolve management.chinacloudapi.cn, but cannot resolve management.chinacloudapi.cnsubscriptions
Customer tested in lab, it works until 1.15.0, all 2.* does not work
similar issue reported
https://github.com/Azure/azure-cli/issues/26866
so is this issue related with the new rpm ?
Fri, 30 Aug 2024 17:00:59 GMT - finest: socket 484 opened
Fri, 30 Aug 2024 17:00:59 GMT - fine: [f5-cloud-failover] HTTP Request - POST /trigger
Fri, 30 Aug 2024 17:00:59 GMT - fine: [f5-cloud-failover] Performing failover - initialization
Fri, 30 Aug 2024 17:00:59 GMT - finest: [f5-cloud-failover] Device initialization complete
Fri, 30 Aug 2024 17:01:00 GMT - finest: [f5-cloud-failover] Fetched proxy settings:
Fri, 30 Aug 2024 17:01:00 GMT - finest: [f5-cloud-failover] {"protocol":"http","host":"","port":"8080","username":"","password":""}
Fri, 30 Aug 2024 17:01:00 GMT - fine: [f5-cloud-failover] config:
Fri, 30 Aug 2024 17:01:00 GMT - fine: [f5-cloud-failover] {"class":"Cloud_Failover","schemaVersion":"2.1.2","environment":"azure","externalStorage":{"scopingTags":{"f5_cloud_failover_label":"failover"}},"failoverAddresses":{"enabled":true,"scopingTags":{"f5_cloud_failover_nic_map":"external"},"requireScopingTags":false},"controls":{"class":"Controls","logLevel":"silly"}}
Fri, 30 Aug 2024 17:01:00 GMT - finest: [f5-cloud-failover] proxySettings:
Fri, 30 Aug 2024 17:01:00 GMT - finest: [f5-cloud-failover] {"protocol":"http","host":"","port":"8080","username":"","password":""}
Fri, 30 Aug 2024 17:01:00 GMT - finest: [f5-cloud-failover] Device initialization complete
Fri, 30 Aug 2024 17:01:00 GMT - finest: [f5-cloud-failover] Fetched proxy settings:
Fri, 30 Aug 2024 17:01:00 GMT - finest: [f5-cloud-failover] {"protocol":"http","host":"","port":"8080","username":"","password":"********"}
Fri, 30 Aug 2024 17:01:00 GMT - finest: [f5-cloud-failover] Subscriptions:  {"0":"93f5fd8e-993b-4cc0-9b68-43434897987f"}
Fri, 30 Aug 2024 17:01:00 GMT - finest: [f5-cloud-failover] Listing Storage Accounts
Fri, 30 Aug 2024 17:01:00 GMT - finest: [f5-cloud-failover] Status: "getaddrinfo ENOTFOUND management.chinacloudapi.cnsubscriptions management.chinacloudapi.cnsubscriptions:443" Retries left: 60
Fri, 30 Aug 2024 17:01:01 GMT - finest: [f5-cloud-failover] Status: "getaddrinfo ENOTFOUND management.chinacloudapi.cnsubscriptions management.chinacloudapi.cnsubscriptions:443" Retries left: 59
Fri, 30 Aug 2024 17:01:02 GMT - finest: [f5-cloud-failover] Status: "getaddrinfo ENOTFOUND management.chinacloudapi.cnsubscriptions management.chinacloudapi.cnsubscriptions:443" Retries left: 58
Fri, 30 Aug 2024 17:01:03 GMT - finest: [f5-cloud-failover] Status: "getaddrinfo ENOTFOUND management.chinacloudapi.cnsubscriptions management.chinacloudapi.cnsubscriptions:443" Retries left: 57
Fri, 30 Aug 2024 17:01:04 GMT - finest: [f5-cloud-failover] Status: "getaddrinfo ENOTFOUND management.chinacloudapi.cnsubscriptions management.chinacloudapi.cnsubscriptions:443" Retries left: 56
Fri, 30 Aug 2024 17:01:05 GMT - finest: [f5-cloud-failover] Status: "getaddrinfo ENOTFOUND management.chinacloudapi.cnsubscriptions management.chinacloudapi.cnsubscriptions:443" Retries left: 55
Fri, 30 Aug 2024 17:01:06 GMT - finest: [f5-cloud-failover] Status: "getaddrinfo ENOTFOUND management.chinacloudapi.cnsubscriptions management.chinacloudapi.cnsubscriptions:443" Retries left: 54
Fri, 30 Aug 2024 17:01:07 GMT - finest: [f5-cloud-failover] Status: "getaddrinfo ENOTFOUND management.chinacloudapi.cnsubscriptions management.chinacloudapi.cnsubscriptions:443" Retries left: 53
Fri, 30 Aug 2024 17:01:08 GMT - finest: [f5-cloud-failover] Status: "getaddrinfo ENOTFOUND management.chinacloudapi.cnsubscriptions management.chinacloudapi.cnsubscriptions:443" Retries left: 52
......................
Fri, 30 Aug 2024 17:01:53 GMT - finest: [f5-cloud-failover] Status: "getaddrinfo ENOTFOUND management.chinacloudapi.cnsubscriptions management.chinacloudapi.cnsubscriptions:443" Retries left: 8
Fri, 30 Aug 2024 17:01:54 GMT - finest: [f5-cloud-failover] Status: "getaddrinfo ENOTFOUND management.chinacloudapi.cnsubscriptions management.chinacloudapi.cnsubscriptions:443" Retries left: 7
Fri, 30 Aug 2024 17:01:55 GMT - finest: [f5-cloud-failover] Status: "getaddrinfo ENOTFOUND management.chinacloudapi.cnsubscriptions management.chinacloudapi.cnsubscriptions:443" Retries left: 6
Fri, 30 Aug 2024 17:01:56 GMT - finest: [f5-cloud-failover] Status: "getaddrinfo ENOTFOUND management.chinacloudapi.cnsubscriptions management.chinacloudapi.cnsubscriptions:443" Retries left: 5
Fri, 30 Aug 2024 17:01:57 GMT - finest: [f5-cloud-failover] Status: "getaddrinfo ENOTFOUND management.chinacloudapi.cnsubscriptions management.chinacloudapi.cnsubscriptions:443" Retries left: 4
Fri, 30 Aug 2024 17:01:58 GMT - finest: [f5-cloud-failover] Status: "getaddrinfo ENOTFOUND management.chinacloudapi.cnsubscriptions management.chinacloudapi.cnsubscriptions:443" Retries left: 3
Fri, 30 Aug 2024 17:01:59 GMT - finest: socket 484 closed
Fri, 30 Aug 2024 17:01:59 GMT - finest: [f5-cloud-failover] Status: "getaddrinfo ENOTFOUND management.chinacloudapi.cnsubscriptions management.chinacloudapi.cnsubscriptions:443" Retries left: 2
Fri, 30 Aug 2024 17:02:00 GMT - finest: [f5-cloud-failover] Status: "getaddrinfo ENOTFOUND management.chinacloudapi.cnsubscriptions management.chinacloudapi.cnsubscriptions:443" Retries left: 1
Fri, 30 Aug 2024 17:02:01 GMT - finest: [f5-cloud-failover] Status: "getaddrinfo ENOTFOUND management.chinacloudapi.cnsubscriptions management.chinacloudapi.cnsubscriptions:443" Retries left: 0
Environment information
For bugs, enter the following information:

Cloud Failover Extension Version: 1.21
BIG-IP version:17
Cloud provider: azure

Severity Level
Severity: 2
Severity level definitions:

Severity 1 (Critical) : Defect is causing systems to be offline and/or nonfunctional. immediate attention is required.
Severity 2 (High) : Defect is causing major obstruction of system operations.
Severity 3 (Medium) : Defect is causing intermittent errors in system operations.
Severity 4 (Low) : Defect is causing infrequent interuptions in system operations.
Severity 5 (Trival) : Defect is not causing any interuptions to system operations, but none-the-less is a bug.

Since you have a support case, I will track that. However, it does appear that Azure is returning an incorrect hostname when CFE queries it for endpoints; it seems to have been an issue with the Azure cli as well: https://github.com/Azure/azure-cli/issues/26866
Note the correct endpoints listed here: https://learn.microsoft.com/en-us/azure/china/resources-developer-guide#check-endpoints-in-azure
A possible workaround to bypass the incorrect endpoint lookup is to provide a customEnvironment in your CFE config using the endpoints for China cloud above. The default for CFE is Azure commercial and looks like this:
"customEnvironment": {
      "name": "AzureCustomEnviroment",
      "portalUrl": "https://portal.azure.com",
      "publishingProfileUrl": "http://go.microsoft.com/fwlink/?LinkId=254432",
      "managementEndpointUrl": "https://management.core.windows.net",
      "resourceManagerEndpointUrl": "https://management.azure.com/",
      "sqlManagementEndpointUrl": "https://management.core.windows.net:8443/",
      "sqlServerHostnameSuffix": ".database.windows.net",
      "galleryEndpointUrl": "https://gallery.azure.com/",
      "activeDirectoryEndpointUrl": "https://login.microsoftonline.com/",
      "activeDirectoryResourceId": "https://management.core.windows.net/",
      "activeDirectoryGraphResourceId": "https://graph.windows.net/",
      "batchResourceId": "https://batch.core.windows.net/",
      "activeDirectoryGraphApiVersion": "2013-04-05",
      "storageEndpointSuffix": ".core.windows.net",
      "keyVaultDnsSuffix": ".vault.azure.net",
      "azureDataLakeStoreFileSystemEndpointSuffix": "azuredatalakestore.net",
      "azureDataLakeAnalyticsCatalogAndJobEndpointSuffix": "azuredatalakeanalytics.net"
}

Thanks @mikeshimkus ， have  escalated this with a ene case. customer hope this can be fixed ,then they can upgrade to the latest release .

Hi @mikeshimkus
After checking the code, the issue is consistant defination missed a '/' for AzureChina in file constants.js
   AZURE_ENVIRONMENTS: {
        Azure: {
            name: 'Azure',
            portalUrl: 'https://portal.azure.com',
            publishingProfileUrl: 'http://go.microsoft.com/fwlink/?LinkId=254432',
            managementEndpointUrl: 'https://management.core.windows.net',
            **resourceManagerEndpointUrl: 'https://management.azure.com/',**
            sqlManagementEndpointUrl: 'https://management.core.windows.net:8443/',
            sqlServerHostnameSuffix: '.database.windows.net',
            galleryEndpointUrl: 'https://gallery.azure.com/',
            activeDirectoryEndpointUrl: 'https://login.microsoftonline.com/',
            activeDirectoryResourceId: 'https://management.core.windows.net/',
            activeDirectoryGraphResourceId: 'https://graph.windows.net/',
            batchResourceId: 'https://batch.core.windows.net/',
            activeDirectoryGraphApiVersion: '2013-04-05',
            storageEndpointSuffix: '.core.windows.net',
            keyVaultDnsSuffix: '.vault.azure.net'
        },
        AzureChina: {
            name: 'AzureChina',
            portalUrl: 'https://portal.azure.cn',
            publishingProfileUrl: 'http://go.microsoft.com/fwlink/?LinkID=301774',
            managementEndpointUrl: 'https://management.core.chinacloudapi.cn',
            resourceManagerEndpointUrl: 'https://management.chinacloudapi.cn',  // miss a '/' here
            sqlManagementEndpointUrl: 'https://management.core.chinacloudapi.cn:8443/',
            sqlServerHostnameSuffix: '.database.chinacloudapi.cn',
            galleryEndpointUrl: 'https://gallery.chinacloudapi.cn/',
            activeDirectoryEndpointUrl: 'https://login.chinacloudapi.cn/',
            activeDirectoryResourceId: 'https://management.core.chinacloudapi.cn/',
            activeDirectoryGraphResourceId: 'https://graph.chinacloudapi.cn/',
            batchResourceId: 'https://batch.chinacloudapi.cn/',
            activeDirectoryGraphApiVersion: '2013-04-05',
            storageEndpointSuffix: '.core.chinacloudapi.cn',
            keyVaultDnsSuffix: '.vault.azure.cn'
        },
}

which caused
${this.environment.resourceManagerEndpointUrl}subscriptions/
return as
https://management.chinacloudapi.cnsubscriptions
Can you please kindly have a check?

Hi,
Thanks for reporting. Added to the backlog and internal tracking ID for this request is: EC-549.

@washing20202020 @wdlid @pgouband See https://github.com/F5Networks/f5-cloud-failover-extension/releases/tag/v2.1.3


Update docs link after creating the Keystone app

Sorry that I was too slow on this @iamandrewluca, I have accepted and merged this as 71b8ff8

That is great news 🙂 Thanks!


multiple columns

I have this requirement for a form, columns are not repeating but in this case I need 3 columns for input, a divider and again 3 columns...

(why I need this: replacing an old terminal screen, laptopscreens 1366x768 where you have more width,)

Hi @GoNode5! Thanks for your interest in angular-formly. I'm sure that angular-formly can do this for you. The best way to get help is by following the instructions here: http://help.angular-formly.com
I'm going to go ahead and close this issue because the github issues for this project are reserved for bug reports and feature requests. See you on chat!


chore: update to build with rust 1.80

seeing some time related failure
error[E0282]: type annotations needed for `Box<_>`
  --> /Users/brew/Library/Caches/Homebrew/cargo_cache/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.34/src/format_description/parse/mod.rs:83:9
   |
83 |     let items = format_items
   |         ^^^^^
...
86 |     Ok(items.into())
   |              ---- type must be known at this point
   |
help: consider giving `items` an explicit type, where the placeholders `_` are specified
   |
83 |     let items: Box<_> = format_items
   |              ++++++++

has been addressed with 0.3.36, https://github.com/time-rs/time/issues/693

Thanks! I think it should actually be a good reason to bump the package. I'll do it after this merges


QS not indexing automatically

My catalog is set to rescan "every 10 minutes".
That hasn't worked in over a year with several QS versions: after adding an application to my Applications folder (which is checked as a Catalog source) I always need to push the rescan button manually to update the number of indexed applications. I sometimes give it a day but rescan automatically never works.
MacOS 12.6 on intel iMac Pro, QS 2.4.0 (4039)

I'm seeing the same.

touch /Applications/foobar.app
wait (much longer than config) minutes
QS -> foobar: no results
Look in QS settings -> Catalog -> /Applications -> Contents -- no foobar.app
Manually hit the refresh button (bottom right)
foobar.app now appears in Contents and appears in QS as expected

Thanks for reporting!

Cross-linking to the blacktree-quicksilver Google forum thread about a similar issue.

The first thing to check is whether this is only affecting entries with “Automatically update when files change” enabled. There were some changes related to that about a year ago, and I suspect it’s less reliable than the manual timer-based method.

It seems I cannot uncheck "Automatically update when files change" for the built-in /Applications catalog entry.

What is everyone doing to work around this?
Creating a manual custom entry for /Applications?
It would certainly be annoying to wait 10min for new applications to be available (since I'll usually want to launch them immediately after installing), but it's better than "actually never". 😛

Workaround (I can't remember where I found this):
Create a Custom catalog item of the Spotlight type, with the Query kMDItemContentTypeTree == 'com.apple.application'
My vague recollection is that this also worked around some problem caused by the fact that some applications are now actually stored in /System/Applications, and only seem to be in /Applications through some Finder magic.  (Use 'ls' in a terminal: they aren't really there!)  But I can't remember the details, nor confirm whether whatever the issue was has or hasn't been fixed.

This should now be fixed thanks to 64344eeab6e95f88d464433fc5c77d8aa62ddf36
We will try to get a new release out soon. Thanks!


Ensure that authentication occurs on both Github ServiceListener and ServiceEmitter

Also fixes issue which would cause VersionBot to fail.
Connects to #100
Change-type: patch

All the docs changes make reviewing this a mess. Will that happen on every PR from now on?

@brownjohnf See #103


Incorrect type of hyper parameter

Hello @keithito !
I noticed that parameter has  incorrect type. int instead float:
https://github.com/keithito/tacotron/blob/9fc433a8702a5e8392254f4c2cc6fe035c64e424/hparams.py#L14
Therefore, when we calculate the window length for stft we get 0, although we have to get 1000.

@omgShustrik Yes, this will not work correctly in Python 2. There are a few other places that are also broken in Python 2. For now, I'd recommend using Python 3.

@keithito  It works correctly, sorry.
Perhaps I was wrong in checking.
Thank you!


winpty charset question

winpty's default output charset is utf8,how to change the charset to gbk?
Windows PowerShell
鐗堟潈鎵€鏈▒ (C) 2015 Microsoft Corporation銆備繚鐣欐墍鏈夋潈鍒┿€▒

Currently, winpty always outputs UTF-8.  Assuming you're using winpty.exe to wrap a program (e.g. as opposed to embedding winpty.dll into an IDE), then maybe a workaround is to use iconv to convert UTF-8 to GBK?
You'd have to use the undocumented -Xallow-non-tty switch in current winpty master.  (I'm about to release 0.4.0, which will also have that switch.)  Example:
winpty -Xallow-non-tty cmd | iconv -f utf8 -t gbk --unicode-subst='?'

This example prints U+0037, U+4000, and U+56FD.  Apparently, U+4000 isn't representable in GBK, so it's converted into a question mark.  The first and third characters come through OK.  U+56FD ought to be double-width, but my computer is currently configured to use the US English locale (and code page 437), so East Asian widths don't work properly.
$ (cd misc && ./build32.sh Utf16Echo)
Compiling Utf16Echo.cc to Utf16Echo.exe

$ winpty -Xallow-non-tty misc/Utf16Echo 37 4000 56fd | iconv -f utf8 -t gbk --unicode-subst='?'
7?国
CHAR: 0037 0007
CHAR: 4000 0007
CHAR: 56fd 0007
CHAR: 0020 0007
CHAR: 0020 0007
CHAR: 0020 0007

winpty -Xallow-non-tty powershell |iconv -f utf8 -t gbk --unicode-subst='?'
Windows PowerShell
版权所有 (C) 2015 Microsoft Corporation。保留所有权利。
This is good way，tks @rprichard


Set aria-live on input box in quickpick so that errors are announced in real time.

It would be very useful to have the input box in quickinput announce the errors (e.g. missing pattern etc) in real time. setting aria-live on quickinput can fix this.

The fix for this issue resulted in a regression https://github.com/microsoft/vscode/issues/146636
Basically all content in quick pick was double read. Thus I had to revert this. So removing this issue from the milestone since it was not actually tackled.
Neelesh if you have an alternative solution to this problem please let us know. Thanks


Clearer contribution and merging directives for github

Thanks for nice improvemet @ErikBjare

This looks good to me, @ATheorell.


Cache responses [TODO]

Overview
Save ChatGPT-generated responses to save compute credits and $$$.
Completion criteria

[ ] Figure out the tasks that go with this issue and make new issues for each one :)

Discussion points and unknowns (optional)

Should answers be stored locally?  On a server run by neuromatch?  On a cloud computing platform?
Have some sort of "vote on quality of the response" mechanism
Possibly have some sort of feedback textbox so the learner can add known responses or other relevant info

no longer needed, with latest update; closing...


updates to checkpatch and clang-format configuration

Basic cleanup preparatory to addressing https://github.com/zephyrproject-rtos/zephyr/issues/21392#issuecomment-604488737, specifically to update checkpatch to be closer to current Linux, and verifying .clang-format is consistent with Zephyr needs.
FWIW, our .clang-format and LInux differ only in the ForEachMacros list. clang-format transforms those to add a space after the macro name, which gets diagnosed as a style error by checkpatch.  The Linux clang-format also makes changes that are rejected by Linux checkpatch (ForEachMacros and other whitespace diagnostics).  So it's not clear that clang-format is actually used by Linux.

@pabigot What version of clang-format should be used? I am asking because of lines like this:
#FixNamespaceComments: false # Unknown to clang-format-4.0

@chrta I have no idea.  Those lines are unchanged from the current Linux configuration.  It appears 11 is latest; my OS distribution gave me 9.
Since it doesn't seem like Linux actually uses this (since it creates code that doesn't pass checkpatch) I don't think it's useful, and I'm not planning to try to create a configuration that matches Zephyr style, but since it's already in tree it seemed worth getting it updated.

This patch introduced a SPDX license identifier-related noise, unless we are now enforcing Linux-style license identifier placement (i.e. in the first line):
-:22: WARNING:SPDX_LICENSE_TAG: Missing or malformed SPDX-License-Identifier tag in line 1
#22: FILE: drivers/interrupt_controller/intc_gicv3.c:1:
+/*

-:25: WARNING:SPDX_LICENSE_TAG: Misplaced SPDX-License-Identifier tag - use line 1 instead
#25: FILE: drivers/interrupt_controller/intc_gicv3.c:4:
+ * SPDX-License-Identifier: Apache-2.0


Better color for tmux error messages

In general, tmux seems to like a certain horrible brown color quite a lot. It would be nice to replace this with something prettier (and more legible).

Meh, horrible brown is fine. I've seen worse, and nobody else has complained about this.


increase node version of action

see https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/

Thanks. Can you maybe add a patch tag and a major tag like v2 to this repository :)

Done
https://github.com/reproducible-containers/buildkit-cache-dance/releases/tag/v2.1.3
https://github.com/reproducible-containers/buildkit-cache-dance/releases/tag/v2


limit aggregated values in chart

General description
_Analysis chart should show a maximun of 6 elements. If there are 6 in total, the chart should show 5 elements and "other" representing the 6th value. If there are more than 6, the chart should show 5 values and "others" representing the aggregation of the rest of the values. If there are less than 4 elements in legend, this shouldn't appear with ellipsis _
Testing instructions
Check the analysis chart and change the filters to see all possibilities.
Checklist before merging

[x] Branch name / PR includes the related Jira ticket Id.
[ ] Tests to check core implementation / bug fix added.
[x] All checks in Continuous Integration workflow pass.
[ ] Feature functionally tested by reviewer(s).
[x] Code reviewed by reviewer(s).
[x] Documentation updated (README, CHANGELOG...) (if required)

The task has been completed correctly, but the gray color should be reserved for "Others", in this case, Cotton should take another color. ¿Could you change it?


Add basic support for fuzzing in maelstrom-go-test.

Unlike #352 , this is about what happens when you don't enable fuzzing while running tests. The go documentation says:

When fuzzing is disabled, the fuzz target is called with the seed inputs registered with F.Add and seed inputs from testdata/fuzz/. In this mode, the fuzz test acts much like a regular test, with subtests started with F.Fuzz instead of T.Run.

We should support these tests. Every seed value + fuzz test would be its own Maelstrom test.

We already kind of support this today. The tests don't necessarily show up as individual tests, but they do get run.


[ALBERT] Attribute Error

Hello,
Thank you for the useful tools. Here is a error when I run run_classifier_with_tfhub.py:
Error while finding module specification for 'run_classifier_with_tfhub.py' (AttributeError: module 'run_classifier_with_tfhub' has no attribute '__path__')
Could you guys give me some hints? Thanks!

You should try to call the albert code from the root directory (not from the albert folder):
python -m albert.run_classifier_with_tfhub [params]

But there are some issues with the code, see for example #86
So I think we should give the albert team a little more time :)

@stefan-it Thank you very much!

@stefan-it Hi, I tried to call albert code from the parent directory of albert (i.e Projects/albert) , but still  Error while finding module specification for 'albert.run_classifier_with_tfhub.py' (AttributeError: module 'albert.run_classifier_with_tfhub' has no attribute '__path__')
I think it's might not the directory problem, could you please give me some suggestions?

Could you try to remove the .py ending when calling the command 🤔 Then it should work 🤗

@stefan-it Sorry to reply late, it works, thank you!


Figaro set downcased config var on Heroku?

Hi,
Figaro is really useful, thank you.
I'm using Heroku, and when I display the config vars:
=== someapp-staging Config Vars
DATABASE_URL:                           xxx
LANG:                                   en_US.UTF-8
NEW_RELIC_LICENSE_KEY:                  xxx
NEW_RELIC_LOG:                          stdout
RACK_ENV:                               staging
RAILS_ENV:                              staging
SENDGRID_PASSWORD:                      123456
SENDGRID_USERNAME<EMAIL_ADDRESS>WEBSOLR_URL:                            https://index.websolr.com/solr/0e1122334455
sendgrid_password:                      654321
sendgrid_username<EMAIL_ADDRESS>websolr_url:                            https://index.websolr.com/solr/0e1122334455

... some are defined more than once.
Heroku' advice is to set all vars with uppercased keys.
From https://devcenter.heroku.com/articles/add-ons:

Alias names must always conform to the same naming conventions as config vars.They must begin with a letter and can only contain uppercase alphanumeric characters or underscores.

1
So... when we execute figaro heroku:set --remote staging -e staging for example, why Figaro doesn't automatically set the keys to uppercase?
2
What to do next?
Must I set the vars in application.yml with mixed keys like:
staging:
  <<: *default
  app_name: 'someapp (staging)'
  SENDGRID_USERNAME<EMAIL_ADDRESS>  SENDGRID_PASSWORD: 123456
  WEBSOLR_URL: 'https://index.websolr.com/solr/0e1122334455'
  geocoder_api_key: 'azertyuiop123456789'
  airbrake_project_id: "987654"
  airbrake_project_key: 'a123456z789456123'

Thank you

You should write your application.yml to the exact case your application will use. While Heroku suggests a certain convention, there's no guarantee that everybody will (or can) use that convention consistently across the board. For that reason, Figaro won't automatically upcase, downcase, or otherwise. Hope that makes sense!

Ok. Maybe it could be an option of figaro heroku:set command.
What do you think of something like: `figaro heroku:set --option 'uppercase'
Does that make sense to add such feature?

Now I know the 'why' ;-) Here's the answer from Heroku:

The behaviour of config vars in this case is due to the underlying Linux operating system being case sensitive. "Behind the scenes" config vars are just a way of managing Unix environment variables to be set on the dynos and as such, our handling of these is fairly minimal to keep them consistent with any other Linux based hosts - if we started adapting the case automatically you might find situations where it didn't work locally whereas it did on Heroku.


Adds a new header_rewrite condition %{CIDR}

This can be used to produced a header (typically an @ header) which
can then be used in a custom log format to anonymize the client IP
address. But, one could for example put this into a header that gets
sent to the Origin server as well, again anonymized.

This will close issue #2535

Doc should say which hooks it works in

This should work in any hook, the client IP is always available.

@mlibbey I updated the docs, please approve :-)

[approve ci autest]

Can’t speak to code quality, but docs and functionality are +1 for me.


[Storage] [Tests] Adding test coverage for uneven pages sizes in a page blob

Adding tests to provide coverage for uneven pages in a page blob.

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

/checkenforcer override

/check-enforcer override


Page titles

The  of every page in the system is "Palaute" which is not good.

Is "Palaute" not good or the fact that the page title does not change not good?

I think "Palaute" is never good (it is too general), but the most important thing is that the title should change (for example, if the feedback from a course is shown, the name of the course should appear in ).

We changed "Palaute" to "Kurssipalaute" to reflect the main purpose of the app. The automatic changing requires a bit more work. I'll change the issue title.


Customizable SQL Schema

It looks like if I would like to use a different SQL schema than this project has built into it I would have to do it in a fork.
Since rocket_auth::db is private I cannot begin to make my own DBConnection implementation that used my own queries.
I'll probably cave and let your schema win, but this will make it difficult for people to integrate this authentication with existing systems.

I see what you are saying, what kind of API would you expect for this?

I would probably give you a better answer if I were more experienced with Rust, but I will try and muddle through.
I have reviewed your database implementations under /src/db/ - if I could make my own implementation for a database, I would be happy to replicate all of the code you've used for each database type to achieve my goal of custom schema.
It would have the added benefit of allowing others to extend your crate to support new data storage types as per their needs.
I am not sure how this can be accomplished, though. We would need to be able to implement our own open_... functions for Users that would use our custom DBConnection implementations. I think it might be sufficient to make the  involved declarations pub, but there may be a much better best practice than that.


Support CSSNumericValues as inset

Depends on https://github.com/flackr/scroll-timeline/pull/176
This PR adds support for passing  CSSNumericValues as insets to ViewTimeline.
new ViewTimeline({
  subject: elm,
  axis: 'block',
  inset: [ CSS.percent(10), CSS.percent(20) ]
})

To pass the tests the PR also do the following:

Adds MutationObserver to observe changes to class attribute on subject.
Adds getters for startOffset and endOffset read only attributes.
Adds support for parsing math functions such as calc, through a naive implementation of CSSNumericValue.parse()

This PR does not:

add support for relative units such as viewport relative units.

Uhoh, looks like my naive diff of test results approach has encountered it's first issue with what seems to be a flaky test.


Mar 3534.3 Adding validation for closing ATM briefs set too far in the future

The issue: The closing date was set too far in the future (+1 year in advance), the brief did not publish and no error was thrown.
Error should say: "You must enter a closing date not more than one year from now."
This issue with RFX + Training will be fixed since it was done in this ticket:
MAR-3481: Additional Information: Error validation in contact number typebox is not redCode Review
Just fixing it for ATM - spoke to Clippy and she is happy with that.
Note 13/03/2020: There have been some more additional changes. I have removed componetWillMount and the ATM stylesheet from ATM. We will be using the main style sheet as the primary source for styling. The reason for the removal of componentWillMount is because it is legacy code that will no longer be supported by the latest react versions (Thanks TB for that). I have made those changes for specialist, training and rfx and that is in a different pull request.

fix @tobiasbrown comments

Resolved ^


Update Azure Batch CODEOWNERS

Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.

/check-enforcer override


Linear eval for ResNet50?

The eval_linear.py doesnt seem to support ResNet50. How was it evaluated for the paper?
Any pointers to changes needed to make it work for resnet50?
Thanks for making this work open-source! <3

Also interested in this question.
I am assuming that:

ResNet50, once trained, will output features with dimension 2048
LinearClassifier will be: LinearClassifier(2048, num_labels=len(classes))

The below two lines should be used for loading the weights in the ResNet50:
# remove `module.` prefix
checkpoint = {k.replace("module.", ""): v for k, v in checkpoint.items()}
# remove `backbone.` prefix induced by multicrop wrapper
checkpoint = {
    k.replace("backbone.", ""): v for k, v in checkpoint.items()
}

Still some doubts:

Should the DINOHead be discarded? So is it only used during training for training the ResNet50?

Does this reasoning make sense? Am I missing something important?

As far as I understood it the weights would be from the teacher and the head is discarded (at least this seems to be the case for ViT).
The linear eval code trains a linear classifier appended to some of the last transformer blocks which are in eval mode. For ResNet perhaps freezing the model weights and retraining the last FC layer is enough.
If one of the authors could confirm would be nice, along with the respective optimisations.

With the above approach and without major changes to the eval_linear pipeline I am only able to achieve 74.5% compared to the paper 75.3%.
I am using this repo pretrained model for Resnet50, with --nproc_per_node=8 and replicating the following args (note that some are coming from the train args and not used):
{
    "arch": "resnet50",
    "out_dim": 60000,
    "norm_last_layer": true,
    "warmup_teacher_temp": 0.04,
    "teacher_temp": 0.07,
    "warmup_teacher_temp_epochs": 50,
    "use_fp16": false,
    "weight_decay": 0.000001,
    "weight_decay_end": 0.000001,
    "clip_grad": 0,
    "batch_size_per_gpu": 64,
    "epochs": 100,
    "freeze_last_layer": 1,
    "lr": 0.3,
    "warmup_epochs": 10,
    "min_lr": 0.000001,
    "global_crops_scale": [0.14, 1.0],
    "local_crops_scale": [0.05, 0.14],
    "local_crops_number": 6,
    "seed": 0,
    "num_workers": 10,
    "world_size": 8,
    "ngpus": 8,
    "nodes": 1,
    "optimizer": "lars",
    "momentum_teacher": 0.996,
    "use_bn_in_head": true}

Spot anything wrong or are there any tricks i might be missing? Any particular seed i should be trying?
Thanks!

I use a learning rate of 0.3 and a total batch size of 256 (2 gpus, batch size per gpu is 128).
You can take a look at the eval logs for ResNet-50: https://dl.fbaipublicfiles.com/dino/dino_resnet50_pretrain/dino_resnet50_pretrain_eval_linear_log.txt
I can adapt the linear code to train with RN50. Alternatively you can also use the code from swav: https://github.com/facebookresearch/swav/blob/master/eval_linear.py
There is no particular trick :)

https://github.com/facebookresearch/dino/commit/9085367cf5186b29f69c85eb7fdacc3057094031

Thanks Mathilde for the quick reply and code.
A fresh clone and that command results in 75.034% which is much closer.


There is CIFAR-400 in the papaer

The description of Figure2 has mentioned cifar400, which may be a mistake.

Thanks for point it out. It is indeed a mistake, which should be CIFAR-100 with 400 labels.
We will try to fix this in the future.


Feature request: inline edition

Right now to edit a byte, you have to right-click and select "edit value under cursor" and at the top of the window a new text input appears: you kinda loose your context.
It would be great if there was a way to edit inline, for example by double clicking.

AFAIK, this is now possible with the current state of the VS Code Extension API.
The hexdump window is a Read-only text buffer with syntax colorization. Customizing double-click is not supported yet, neither displaying an inputbox at the cursor location.
The shift-enter shortcut is currently the fastest way to edit a value.


Coin Change(DP)

Aim
Given a value N, find the number of ways to make change for N cents, if we have infinite supply of each of S = { S1, S2, .. , SM } valued coins.
Details
Algorithm Paradigm - I will be using Dynamic Programming(Unbounded Knapsack) for this problem.
I wish to work on this problem in C++ language.
Please assign this to me.

@Vanshikagarg17 @sakshigoel19 do look at this issue!

You can start working on this issue. All the best!


Blocks missing the prep_id meta data in testbed

Valentin, it looks like the testbed Go-based DBSWriter is failing to insert the prep_id block attribute. I see the same pattern in many test workflows that I have been running over the past days.
An example is:
amaltaro_ReReco_RunBlockWhite_Agent202_Val_220412_035330_7983
which gives me the following information when retrieving information from DBS (you can also see some block names):
    /HLTPhysicsIsolatedBunch/Run2016H-ReReco_RunBlockWhite_Agent202_Val_Alanv8-v11/AOD:
        /HLTPhysicsIsolatedBunch/Run2016H-ReReco_RunBlockWhite_Agent202_Val_Alanv8-v11/AOD#6ced57e5-88b2-4a2e-9590-b5e3a99a11a7:
            PNN: T2_CH_CERN
            isOpen: 0
            numFiles: 1
        dsetSize:<PHONE_NUMBER>
        events: 3008
        lumis: 3
        numBlocks: 1
        numFiles: 1
        prep_id: None
        release: CMSSW_8_0_23
    /HLTPhysicsIsolatedBunch/Run2016H-ReReco_RunBlockWhite_Agent202_Val_Alanv8-v11/DQMIO:
        /HLTPhysicsIsolatedBunch/Run2016H-ReReco_RunBlockWhite_Agent202_Val_Alanv8-v11/DQMIO#349459f4-a8c9-48d4-9cb4-b32179105baf:
            PNN: T2_CH_CERN
            isOpen: 0
            numFiles: 1
        dsetSize: 18308771
        events: 0
        lumis: 3
        numBlocks: 1
        numFiles: 1
        prep_id: None
        release: CMSSW_8_0_23
    /HLTPhysicsIsolatedBunch/Run2016H-ReReco_RunBlockWhite_Agent202_Val_Alanv8-v11/MINIAOD:
        /HLTPhysicsIsolatedBunch/Run2016H-ReReco_RunBlockWhite_Agent202_Val_Alanv8-v11/MINIAOD#bfc67a46-6ab4-41b2-850b-4cd3b1ffdb2d:
            PNN: T2_CH_CERN
            isOpen: 0
            numFiles: 1
        dsetSize: 151814182
        events: 3008
        lumis: 3
        numBlocks: 1
        numFiles: 1
        prep_id: None
        release: CMSSW_8_0_23

Can you look into the logs to see what the problem is? If you need a block dump, then I'd have to setup another test, which takes some effort but can be done.

@amaltaro I need to know the input JSON, there are two possibilities here:

either prep_id had a wrong data-type (string vs integer) which was provided within input JSON, or
DBSWriter needs to find prep_id based on information provided in JSON and somehow it fails
In either case I need an input to do the internal test and debug the issue (by default input HTTP POST payload is not dumped into the log since it can be very huge in size as you well aware).

That's going to take a while then. Nonetheless, prep_id is definitely not an integer. At the request level, this is one example:
  "PrepID": "TEST-ReReco-Run2016H-v1-09Nov2016-0016",

ok, that's good to know. Just tell me which API(s) was used to insert the data and then I can start looking into the code and try on my own to inject some data.

it's always the same client API, this: https://github.com/dmwm/WMCore/blob/1.5.7_wmagent/src/python/WMComponent/DBS3Buffer/DBSUploadPoller.py#L85
Valentin, to save you some time as well, I found this OLD block dump made by WMAgent, many years ago when I was talking to Yuyi:
https://amaltaro.web.cern.ch/amaltaro/forYuyi/dbsuploader_block.json
you can use it as a reference to your tests (note though that prep_id was null for this dump).

I found the problem, indeed, it was missing in bulkblocks API, the change is committed through this 6c4220e7257f76ab55226b36d25e6d568204fe3a commit and it is deployed on testbed. Please try again to insert new block and report the outcome. I'm performing DBS integration test now too.

@amaltaro did you get chance to run more injections and verify if issue is gone?

Hi @vkuznet , yes, it seems to be working fine now. Here are a few fresh blocks from the last 24h:
    /HLTPhysicsIsolatedBunch/Run2016H-ReReco_RunBlockWhite_Agent202_Val_Alanv9-v11/AOD:
        /HLTPhysicsIsolatedBunch/Run2016H-ReReco_RunBlockWhite_Agent202_Val_Alanv9-v11/AOD#0d13bcd3-a546-49f7-b5d4-e7079788f86e:
            PNN: T1_US_FNAL_Disk
            isOpen: 0
            numFiles: 1
        dsetSize:<PHONE_NUMBER>
        events: 1654
        lumis: 1
        numBlocks: 1
        numFiles: 1
        prep_id: TEST-ReReco-Run2016H-v1-09Nov2016-0016
        release: CMSSW_8_0_23
    /HLTPhysicsIsolatedBunch/Run2016H-ReReco_RunBlockWhite_Agent202_Val_Alanv9-v11/DQMIO:
        /HLTPhysicsIsolatedBunch/Run2016H-ReReco_RunBlockWhite_Agent202_Val_Alanv9-v11/DQMIO#2dd2af1e-6aa0-4953-b582-cbbe1eff28cf:
            PNN: T1_US_FNAL_Disk
            isOpen: 0
            numFiles: 1
        dsetSize: 17210254
        events: 0
        lumis: 1
        numBlocks: 1
        numFiles: 1
        prep_id: TEST-ReReco-Run2016H-v1-09Nov2016-0016
        release: CMSSW_8_0_23

Thank you for the prompt fix. Feel free to close this issue.


Need a sample configuration to document all possible options.

There is no definition of what configuration options are available for many components. Create a config.sample.yml which includes all possible configuration as a reference for users configuring their own repositories.

Is this covered by #236?

Looks like it.


[AutoPR mediaservices/resource-manager] [Portal Generated] Review request for Microsoft.Media to add version 2018-07-01

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/4483

(message created by the CI based on PR content)

Codecov Report

Merging #3801 into restapi_auto_mediaservices/resource-manager will increase coverage by <.01%.
The diff coverage is 42.85%.

@@                               Coverage Diff                               @@
##           restapi_auto_mediaservices/resource-manager    #3801      +/-   ##
===============================================================================
+ Coverage                                        56.01%   56.01%   +<.01%
===============================================================================
  Files                                             9401     9397       -4
  Lines                                           188742   188733       -9
===============================================================================
- Hits                                            105716   105711       -5
+ Misses                                           83026    83022       -4

Impacted Files
Coverage Δ

...gmt-media/azure/mgmt/media/models/job_error_py3.py
45.45% <ø> (ø)
:arrow_up:

...re-mgmt-media/azure/mgmt/media/models/aac_audio.py
62.5% <ø> (ø)
:arrow_up:

...odels/content_key_policy_play_ready_license_py3.py
31.25% <ø> (ø)
:arrow_up:

...mt/media/models/filter_track_property_condition.py
55.55% <ø> (ø)
:arrow_up:

...re-mgmt-media/azure/mgmt/media/models/image_py3.py
54.54% <ø> (ø)
:arrow_up:

...t-media/azure/mgmt/media/models/deinterlace_py3.py
57.14% <ø> (ø)
:arrow_up:

...e-mgmt-media/azure/mgmt/media/models/h264_video.py
50% <ø> (ø)
:arrow_up:

...gmt-media/azure/mgmt/media/models/png_image_py3.py
62.5% <ø> (ø)
:arrow_up:

...re-mgmt-media/azure/mgmt/media/models/jpg_image.py
62.5% <ø> (ø)
:arrow_up:

...t-media/azure/mgmt/media/models/storage_account.py
62.5% <ø> (ø)
:arrow_up:

... and 58 more

Continue to review full report at Codecov.

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

This PR has been merged into https://github.com/Azure/azure-sdk-for-python/pull/3872


add ProcessChallengeWithHash function

Great library! Totally helped me out with a project I’m working on.
Wanted to open this to start a conversation around exposing a function to process a challenge message when you already have an NTLM hash instead of just a password. This would make it easier to implement with other tools that already start with a user’s NT hash.
Let me know what you think? I decided to basically reimplement the whole function, but could also split up both functions into shared code as well.
Thanks!

Thanks for this PR, @ropnop!
I am entirely unfamiliar with this particular flow of the protocol, but I your addition read well like this. I don't think there is much value in factoring out the shared code from these two functions. It sounds like you have a use-case for this functionality?
I realize we don't have any tests for this part of the code, but would you mind adding one for the code you added?

Thanks! I come from a pentesting/security background, so a common use case is that during security assessments an NTLM hash is recovered (instead of the platinext password), and we need to use that hash to authenticate to services instead of the password ("pass-the-hash"). A lot of well known security tools/scanners support this functionality, and by having this function exported in the library it would open the door to more security tools written in Go. I've integrated a fork of this into my own AD scanning tool tool (https://github.com/ropnop/go-windapsearch) for example.
I'll take a look at your other tests and see how we can test this function as well!

I added a TestCalculateNTLMv2ResponseWithHash function to the tests, which calcuates the same expected challenge responses as the other tests, but with a hardcoded hex NT hash of the password instead of the string. Let me know if you think that's sufficient? I couldn't think of a really good way to test the whole flow otherwise

Thanks, this looks good. These tests will at least detect code drift, and hopefully bugs... 😉


refactor, clippy: edit syntax as per clippy standards

Makes CI validation green again by applying following changes

clippy: edit expressions that could be replaced by the question mark operator.
clippy: use if let instead of single match

Ref: https://rust-lang.github.io/rust-clippy/master/index.html#question_mark
Ref: https://rust-lang.github.io/rust-clippy/master/index.html#single_match

@cevich PTAL this should make CI green.

So for me rustup update updates all components including clippy, I think whenever we add a stable toolchain, i think clippy as a component is also updated here: https://github.com/containers/netavark/blob/main/contrib/cirrus/runner.sh#L84
But I need to confirm and figure out a way to lock individual component.
Pros and cons of locking clippy and not updating it with toolchain:
Cons

Maintainers can easily forget to update clippy and upon manual update it can create a bigger hammer to edit lot of code at once.

Pros:

CI never gets blocked.

LGTM

@flouthoc another idea is (and resembles the policy for podman/buildah/skopeo CI):  Install the latest/greatest available at the time of VM image build.  That's an activity which happens at a minimum every 6-months (i.e. Fedora Release cycle), but often more frequently.  This removes some of the human-memory-factors, but (based on history) makes integrating new VM images harder.  Though...this is an ongoing challenge most of us have a grasp of.

/lgtm


Dev 0.4.1

Codecov Report

Merging #38 (9e37d66) into master (a9a9de5) will decrease coverage by 0.36%.
The diff coverage is 78.40%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##           master      #38      +/-   ##
==========================================
- Coverage   88.25%   87.89%   -0.36%
==========================================
  Files          24       25       +1
  Lines        1924     2008      +84
==========================================
+ Hits         1698     1765      +67
- Misses        226      243      +17

Impacted Files
Coverage Δ

src/stackedtime/simulate.jl
88.78% <ø> (ø)

src/stackedtime/solverdata.jl
98.95% <ø> (ø)

src/Plans.jl
76.80% <43.47%> (-0.03%)
:arrow_down:

src/stackedtime/stoch_simulate.jl
83.33% <83.33%> (ø)

src/simdata.jl
75.51% <84.61%> (+8.84%)
:arrow_up:

src/simulate.jl
91.66% <93.10%> (+0.36%)
:arrow_up:

... and 6 files with indirect coverage changes
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Adopt site interface for site generation

Currently, the site generation was being handled by the Makefile, but recently we've added the site generation functionality in the CLI, so this commit adopts those changes, so eventually, we can phase out the Makefiles.
Reference #3

@ronaldtse: There are still a couple of files in the common directory, and actions are using the make targets but look like they are coming from here - https://github.com/metanorma/metanorma-build-scripts/blob/master/cimas-config/cimas.yml#L516, so I will create another pull request there for that.

Thanks @abunashir ! Sorry for the delay in this -- didn't see...


Dialogs should support a preset UpdatedAt value in CreateDialogCommand

Description
The way IUpdatable entities are handled, the UpdatedAt field is always overwritten
Reproduction
(requires #987)

Create a dialog with preset UpdatedAt
Fetch the dialog

Expected behavior
The dialog should have the UpdateAt field equal to the submitted value
Actual behavior
The dialog has a UpdateAt field set to the time of the create request
Additional information
There is probably missing validation ensuring that UpdatedAt >= CreatedAt

@elsand
This is only for createCommands, yes?
And should anyone be allowed, or is this another migration-only issue?

Keep it open for everyone, but only on createCommand


[BUG] Snowpack 3.1.0-pre.13 very slow download speed

Snowpack 3.1.0-pre.13, Node 12.20.0, npm, Windows 10
After some time of use, the download speed of the static content drops sharply. Restarting Snowpack helps.

Oh, that's very interesting. Maybe a memory leak somewhere?
I'd be curious if it exists in the next pre release, since we just did a bunch of performance testing on package import resolution

Perhaps something happens when the site cancels a lot of requests, there a big delay after this.

But probably not... Still I am trying to understand.

Can you update to v3.1.x (now released to "latest") and see if this is still happening?

Snowpack can't even start and prints an error:
[snowpack] EMFILE: too many open files, open 'path to jpg-file'
In my project there are thousands of pictures in the public folder.

I'm not sure, but maybe graceful-fs will help:
https://www.npmjs.com/package/graceful-fs
Improvement over fs module:

Queues up open and readdir calls, and retries them once something closes if there is an EMFILE error from too many file descriptors.

var realFs = require('fs')
var gracefulFs = require('graceful-fs')
gracefulFs.gracefulify(realFs)

But maybe we just need to ignore jpg-files, why open them at all?


admin.TabularInline editing not working before saving

When I add a new TabularInline row inside the admin panel it doesn't work to instantly add text, I have to save once and then it works

@erunor We've run into the same problem. Did you finally find a solution? We use Django Grappelli as an admin theme, maybe that has something to do with it?


Hello friends Is there any guide to make inertia.js app seo friendly with all meta desc og twitter

Hello friends Is there any guide to make inertia.js app seo friendly with all meta desc og twitter For noob developers stp by step and how to config it

Hello friends Is there any guide to make inertia.js app seo friendly with all meta desc og twitter For noob developers stp by step and how to config it

You could just do it client-side? If you're using Vue, you could use Vue Meta.

Hi,
Theoretically, there's two parts to implementing this.
First, and definitely the most important parts, is to render the tags as part of your Laravel Blade view:
<html>
<head>
<title>Title of your content here</title>
<meta name="description" content="Description of your content here" />

<meta property="og:locale" content="en_US" />
<meta property="og:type" content="article" />
<meta property="og:title" content="Title of your content here" />
<meta property="og:description" content="Description of your content here" />
<meta property="og:url" content="https://example.com/yourcontent.html" />
<meta property="og:image" content="https://example.com/yourimage.jpg" />
<meta property="og:site_name" content="The name of your site" />

<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:title" content="Title of your content here"/>
<meta name="twitter:description" content="Description of your content here"/>
<meta name="twitter:site" content="@yourusername"/>
<meta name="twitter:image"content="https://example.com/yourimage.jpg"/>
<meta name="twitter:creator" content="@yourusername"/>
</head>
<body>
    @inertia
</body>
</html>

To keep things simple, I've only included the tags relevant to your request. Basically, the twitter:-prefixed meta tags are those for Twitter, whereas the og:-prefixed ones are for OpenGraph, which basically means Facebook and might include some others. While these social tags don't have a direct impact on your SEO rating, the other two (title & description) do.
Since a normal browser visit (as well as SEO bots, Twitter & Facebook sharing etc.) make regular full-page browser requests (meaning, a page with with no special Inertia headers or data), it's important to make sure that these meta-tags are always there. For this reason, I suggest that you add them to your Blade Template, similar to the example above.
While I did say that these tags don't have a direct impact on your SEO rating, and because this 100% covers the 'sharing' part (where the functionality of these tags becomes relevant), you could argue that this is all you need to do.
However, if you do specifically care about the very small possibility that these tags become relevant for SEO later, then we'll need to do a bit more. The reason for this, is because Google (and possibly other bots) are able to crawl Single Page Apps these days.
What this means, is that if we change our page using an Inertia Request, the meta-tags will be outdated, because we've only set them initially using blade. To solve this, we'll need to manually 'update' the tags once the page itself changes.
In this comment, I've outlined why this is happens, as well as a couple of possible approaches to solving this (in VueJS), one of which (like @ScottyRobinson already suggested above) is using vue-meta. However, if you decide to go for one of the DIY-solutions instead, you'll need a bit more than just being able to update document.title. As such, here's a direct example of how you could these (slightly more complex) meta-tags:
mounted() {
    document.querySelector('meta[name="twitter:title"]').setAttribute('content', 'Welcome to my Inertia App!');
    document.querySelector('meta[property="og:title"]').setAttribute('content', 'Welcome to my Inertia App!');
}

Hope this helps!

You might also want to check out this page, which has some recommendations on how to do server-side rendering. In short though, Inertia.js does not currently support server-side rendering.

I wanted to maintain the CSR/SPA nature of the stack, looked at the mentioned SSR docs but for inertia.js it seems there is no way to do SSR on certain pages only.
My DIY solution after researching for a while is as follows:

in app.blade.php

 <!-- Meta Tags -->     <meta name="description" content="{{ session('meta_description', 'Default Description') }}">     <meta property="og:title" content="{{ session('meta_title', 'Default Title') }}">     <meta property="og:description" content="{{ session('meta_description', 'Default Description') }}">     <meta property="og:image" content="{{ session('meta_image', 'Default Image URL') }}">     <meta property="og:url" content="{{ session('meta_url', 'Default URL') }}">     <!-- Add more OG tags as needed -->     @routes     @vite(['resources/js/app.js', "resources/js/Pages/{$page['component']}.vue"])     @inertiaHead

in your controllers or routes, set the session vars before rending the Inertia view.

For anyone getting here from google looking for the same answer as me 🙈 . You can pass view data to the app blade template: https://inertiajs.com/responses. Then there is no need for using the session for that.

For anyone getting here from google looking for the same answer as me 🙈 . You can pass view data to the app blade template: https://inertiajs.com/responses. Then there is no need for using the session for that.

abolsute legend thanks. I skimmed trough the inertia docs but did not find it initially


1436790/1438462: Part 5: 20 files with MSDN link fixes.

Contributes to PR #2037 and applies to the following work items:

User Story 1436790: Content Update: update MSDN links for .NET content
Task 1438462: Update MSDN links for .NET content

#sign-off


Failed to obtain dependence path of CTKTesting

CMake Error at CMake/ctkMacroValidateBuildOptions.cmake:138 (message):
Failed to obtain dependence path of CTKTesting.
1
E:/hb/ctk/CTK-master/build-x64
E:/hb/ctk/CTK-master/build-x64/Utilities/DGraph/Debug/DGraph.exe
Error in file
'E:/hb/ctk/CTK-master/build-x64/DGraphInput-alldep-withext.txt' - First
line should look like: <#Vertices> <#Edges>
Usage: E:/hb/ctk/CTK-master/build-x64/Utilities/DGraph/Debug/DGraph.exe
 [-paths Label | -sort Label]
Call Stack (most recent call first):
CMakeLists.txt:864 (ctkMacroValidateBuildOptions)

What is the content of the file 'E:/hb/ctk/CTK-master/build-x64/DGraphInput-alldep-withext.txt?

Since there was no response to the question, I assume the problem was resolved.


Apply minor refactorings

This PR includes some minor refactorings.
Here are some additional things I noticed that might need some attention (so this PR is a draft for now):

In the CRBrowser, we have the two categories actions and button-actions. Shouldn't we just merge them into one actions categories? There's few methods in both of them and there's no semantical distinction between the actions themselves.
IMO, outsourcing the button props makes the code less readable. If we would just offer a buildButton:name:tooltip:action:isEnabled: method and have methods call that method directly (like, have a buildPickButton: aBuilder and buildLoadButton: aBuilder instead of pickButtonProps and loadButtonProps). The button props are some weird array of length 4 and you need to magically know which index corresponds to which property – I remember being confused when seeing this in the legacy code.
There's a hasValidChangeSelectionIndex and a hasSelectedChangeListItem. I have a hunch, but what exactly is the difference between them?
In updateCodePane it checks for self hasValidChangeListSelectionIndex and if so, it accesses self selectedChangeListItem That's weird – shouldn't it check if it hasSelectedChangeListItem before accessing it?

The conceptual difference between "actions" and "button-actions": Button-Actions are directly performed by buttons and usually button specific. Actions on the other hand are more general and might be used by other parts of the program as well. The idea behind Button-Actions is to find the actions called by buttons very fast, later, other more general actions were added and didn't fit into button-actions for that reason

that build-function sounds good to me, would you implement that here? :)

hasValidChangeSelectionIndex only checks the index, sometimes needed for list-specific conditions, while hasSelectedChangeListItem checks whether a changeListItem is selected (by comparing selectedChangeListItem against Nil). Yes, this seems to be an error, could you fix that please?

The button actions are loadPickedChanges, switchToDetailedView and togglePickStatus and I'd argue there's nothing inherently more button-specific about these than the other actions, which are pickAllChangeListItems and selectNextChangeListItem. In fact, weren't some of these button actions in the old design?
And also, it's just five actions in total so I doubt it'll make it much faster to find the actions called by buttons…
Okay, I'm on it 😊
That's what I thought. I'll fix the code.

Oh, one more thing: Do we add a newline at the end of methods or not?

I would say no newline at the end


[bug] Nearest neighbor search errors if using non-default feature size for a text embedding model

Bug reproduction steps

Generate a scope in latentscope 0.3.0 using open-ai-text-embedding-3-small model, but don't use the default feature size of 1536, change it to something smaller 768.
Visit the /datasets/<DATASET_NAME>/explore/<SCOPE_NAME> route , and use the "nearest neighbor search" feature
Submitting terms in the search box has no effect. Upon checking server logs, you'll have a message like this

Bug explanation
I think the error message demonstrates why the button has no effect . The search term was embedded with the default model size of 1536 instead of with the size of the embeddings it'll be matched against
https://github.com/enjalot/latent-scope/blob/b07a27bc6685f3b4b4287251bf094ee8e1767dc2/latentscope/server/search.py#L62
For nearest neighbors search to work, the query term's vector has to match the size of the embeddings for this scope
Possible fixes

Have the frontend pass updated dimensions through to the dimensions GET parameter, vs
The frontend shouldn't worry about this, the dimensions should be set based on the size of the features in the loaded model . In that case dimensions could be completely removed from the server's URL params since as far as I can see, the frontend does not send dimensions as a query parameter.

https://github.com/enjalot/latent-scope/blob/b07a27bc6685f3b4b4287251bf094ee8e1767dc2/web/src/pages/Explore.jsx#L359

thanks for the detailed bug report, this does make sense and should be accounted for.
We track the dimensions for the embedding in the scope.json ( along with all the other metadata from the process) so I think it would be fine for the front end to call the nearest neighbor endpoint with the dims. The API needs to be updated to then pass the dimensions to the model. The providers that support matroyshka take it as a parameter to embed.

Sounds good, I think the fix is straightforward 👍
https://github.com/enjalot/latent-scope/pull/50


After reconnecting, the addresses of 'nc.ConnectedUrl()' and 'nc.Opts.Servers' are different, is this correct?

Connect to NATS
	conn, err := nats.Connect(cfg.Addr,
		nats.MaxReconnects(-1), // always reconnect
		nats.DisconnectHandler(disconnectHandler),
		nats.ReconnectHandler(reconnectHandler),
		nats.ClosedHandler(closedHandler))
	if err != nil {
		return nil, err
	}

Reconnect event, print both nc.ConnectedUrl() and nc.Opts.Servers
// handle reconnect event
func reconnectHandler(nc *nats.Conn) {
	log.Warn("Reconnect to [%v], config-servers[%v]!", nc.ConnectedUrl(), strings.Join(nc.Opts.Servers, "|"))
}

Reconnect to [nats://<IP_ADDRESS>:4222], config-servers[nats://<IP_ADDRESS>:4222]!

After reconnecting, the two addresses are different
<IP_ADDRESS> is a gateway address and NATS server address is <IP_ADDRESS>.
Thanks.

Could you please provide the server configuration? Are you running a standalone server or is it clustered? Do you stop/restart the server to cause the disconnect/reconnect? Thanks!

The server basically uses the default configuration, cluster mode.
The server has not been manually restarted, but we suspect that it may be disconnected and reconnected due to firewall reasons.
Both the server and the client are running in docker.
The server is running on machine A, using the host network, exposing port 4222.
The client runs on machine B, using the docker default network.
Machine B also runs a NATS-Streaming server, which also uses the host network.
In the event of a problem, the client on machine B is connected to its own gateway address, but this address does not have any NATS service.
We tried to simulate this problem again, but it didn't work.
So ask the community to see if there are any similar issues, or if there is such a possibility from the code.

Configuration matters. If your server does not specify a specific IP or hostname in the listen specification, the server defaults to <IP_ADDRESS> which is "any" interface on that machine. When in cluster mode, the server will try to advertise its address for clients in the cluster to be able to (re)connect. Therefore, the server lists all non-local IPs that it can find and send that to both servers in the cluster and clients connecting to it.
When a client gets those URLs, it adds them to the list of URLs that it can use to reconnect. That could be the explanation of what you see.
There are 3 ways to prevent this unexpected URL:

Be explicit when you define the listen specification `listen: ":"
Use the no_advertise config to prevent servers from advertising URLs for clients to connect to. This requires then your clients to be explicitly configured to connect or reconnect to any server in the cluster.
Use the client_advertise config to instruct the server to use that URL when sending to the cluster and clients.

Some information can be found here. If you read through the "Configuration Options" chapter, there is a reference to advertise addresses.

Thanks a lot
| |
guce_baresi
<EMAIL_ADDRESS>|
Signature is customized by Netease Mail Master
On 12/18/2018 00:18, Ivan Kozlovic wrote:
Configuration matters. If your server does not specify a specific IP or hostname in the listen specification, the server defaults to <IP_ADDRESS> which is "any" interface on that machine. When in cluster mode, the server will try to advertise its address for clients in the cluster to be able to (re)connect. Therefore, the server lists all non-local IPs that it can find and send that to both servers in the cluster and clients connecting to it.
When a client gets those URLs, it adds them to the list of URLs that it can use to reconnect. That could be the explanation of what you see.
There are 3 ways to prevent this unexpected URL:
Be explicit when you define the listen specification `listen: ":"
Use the no_advertise config to prevent servers from advertising URLs for clients to connect to. This requires then your clients to be explicitly configured to connect or reconnect to any server in the cluster.
Use the client_advertise config to instruct the server to use that URL when sending to the cluster and clients.
Some information can be found here. If you read through the "Configuration Options" chapter, there is a reference to advertise addresses.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

But there is still a question, if my two NATS-Streaming servers belong to different clusters, will this problem not occur?

@guce Not sure I understand your question. Could you please elaborate?

When in cluster mode, the server will try to advertise its address for clients in the cluster to be able to (re)connect.

What I want to make clear is, the advertise function mentioned above should be limited to the inside of a cluster? Even if the server listen <IP_ADDRESS>, the client will not connect to the server of another cluster.
For example:
There is a 3 nodes NATS cluster and a NATS-Streaming server, and the servers of the NATS cluster are listening at <IP_ADDRESS>.
If there is such a possibility, the address of the NATS cluster advertisement to the client just happens to allow the client to connect to the NATS-Stream server when reconnection occurs?

I think you are still confused about the relation between NATS Streaming Server and NATS Server. I would recommend that you look at https://github.com/nats-io/nats-streaming-server#concepts.
The NATS cluster will form a full mesh in which clients connected to it can communicate. The Steaming Server acts as a client and define a Streaming cluster name, which is used internally in the subject space between the streaming server and its clients to isolate communication.


Slightly more readable fonts and viewport meta fix

Submitting for community review.

I approve that :+1:


Various fixes to letrecs

This PR tidies up somewhat the treatment of let recs by introducing a notion of "arity of recursion". Some review would be good, I'm not super confident in the code changes themselves.
The main motivation was to allow this kind of thing again:
let rec test (x:nat) : bool -> bool = if x = 0 then ...

which were rejected after the fix to #1017 by a check that forces the amount of binders in the lambda term and the binders in the expected type to match exactly. That check is at times annoying, and does not really prevent one from doing this kind of thing anyway:
let rec test (x:nat) : PURE (bool -> bool) (pure_null_wp _) = if x = 0 then ...

which makes the recursion happen at "arity 1". The check was, IMO, more of a typechecker bandaid.
This PR will make the recursion happen essentially at the minimum amount of binders from the expected type (until we hit an effect) and the lambda term, so in the example above, it happens at arity 1. This is also the case if we had an effect under the arrow:
let rec test_div (x:nat) : bool -> Dv bool = if x = 0 then ...

the recursion happens at arity 1, hence in Tot, hence with a totality check. If you don't want the check, eta expand it.
Other fixes include not blasting past decreases clauses when computing how many binders a type has, so things like this example from Nik:
assume val f1 (n : nat) (m : bool) : Dv bool

let rec f2 (l : list nat)
  : Tot (n : bool -> Dv bool)
        (decreases l)
  = fun n ->
    match l with
    | [] -> false
    | x :: l' ->
      let r = f1 x n in
      if r then f2 l' n else r

now actually do happen at arity 1, and actually do check the decreases clause. Before, it was silently dropped and the recursion was happening at arity 2 in Dv.
The decreases clauses are still in the types, this does not address #1974, but I think we'll have fewer surprises now that the arities are computed in a single spot.
Also things like this, from Bug379.fst, now work. Before we were stopping at the first Tot, for some reason.
val test2 : nat -> Tot (nat -> Tot nat)
let rec test2 x y = if x = 0 then y else test2 0 y

There is an awful hack in the code to make nested Tm_abs nodes so tc_abs will only take as much as needed. We should probably rework that completely, but I haven't done it yet.
Fixes #1182
Fixes #1901
Fixes #1902

Another comment:
I had previously advocated that Tm_abs nodes, along with Tm_app and Tm_arrow should be canonicalized and never allowed to nest. I've tried again to make that happen for Tm_app and gave up, since it's not so clear what it means to not allow them to nest: is a Tm_app (Tm_delayed (Tm_app _), _) valid? What about with a Tm_uvar, or Tm_meta? The only way I see this really flying is by forcing the invariant in compress, but perhaps just making sure that every piece of code that inspects these nodes does the right is the least painful. The new get_n_binders functions is a step in that direction.

This also fixes #258.

Hi @mtzguido
This looks great, overall. Thank you!
The main question in my mind is how this relates to the notion of let_rec_arity used in NBE
https://github.com/FStarLang/FStar/blob/master/src/typechecker/FStar.TypeChecker.NBE.fs#L126
https://github.com/FStarLang/FStar/blob/master/src/syntax/FStar.Syntax.Util.fs#L930
Can we unify these notions somehow?

Sorry, I just noticed that let_rec_arity function. It seems to compute an arity from the type alone, not looking at the lbdef, so it would potentially return an arity larger than the one computed in TcTerm now. Maybe we can unify them, and NBE would reduce a bit more then (as I think it should).
But maybe the real fix for that is keeping the arities in the lets themselves, which we chatted would be a solution for #1974 too. My current idea for that is that something such as
let rec f (x:a) : t = def

would force an arity 1, perhaps by desugaring into something like
Sig_let_rec ("f", [x:a], t, def)

regardless of the shape t and def. (This PR makes takes us a bit closer to this.)
If we had the arities in the syntax, the NBE and typechecker could just pick it up without doing anything fancy. So I would leave that for the (near!) future when we fix decreases.


digital bookshelf for al-folio

Hi,
I would like to request a new feature.
Is your feature request related to a problem? Please describe.
This is feature request to add a digital bookshelf to al-folio. Many of us, particularly academics and students, read a lot of books and it would be nice if we could display what we are reading on our website and link them to reviews that we may right for them. Think of it as your own personal (stripped-down) Goodreads running on your own personal website.
Describe the solution you'd like
I have been recently toying with this idea and created jekyll-bookworm for the Minima theme. You can see what it looks like here. Since I am thinking of shifting my academic website to al-folio from  the (the now abandoned) academicpages theme, I decided to see if I can implement it in al-folio. I have been modestly successful. You can take a look at my amatuer tinkering here.
I felt other users of al-folio might like this feature and I would be happy to send a pull request (you can, of course, take this idea ahead on your own).
There are however some issues that needs improvement:

the reviews are not displayed properly on phones and I can't seem to fix it, in general it can do with a lot aesthetic tweaks
it would be nice to have pagination in the bookshelf but I don't have the required expertise to do it quickly

Describe alternatives you've considered
I could not find an alternative or existing solution to what I was looking for: a digital bookshelf and a book review management system. I would be happy if you can point me to something that can implement this in a more polished fashion.
Additional context
I am not an expert in web development and I admit my attempts are probably amateurish but I would be happy to get your inputs and see if something like this can be incorporated into al-folio.
Best,
Subhodeep

@subhodeeps I took a look at your personal website and really liked what you've done with your bookshelf. I made an attempt to do what you were talking about on this al-folio template. I actually prefer the look of yours, as well the different statuses for each book you're reading.

If you manage to implement this, would you mind sending a PR? Maybe you could also add the subscribe via email that I saw you have in your site to this template? It is a feature that have been requested a while ago (#2097).

Yeah, I can do that. I'll make a PR when I've got those.

Hi, in the original post I had included my edits to the al-folio theme as well https://github.com/subhodeeps/al-folio and the statuses of the books can be implemented by adding a separate layout for the books and the front-matter https://github.com/subhodeeps/al-folio/blob/master/_layouts/books.html

@subhodeeps  this is such an incredible idea! I really like how the bookshelf looks on your website. I've been thinking about pulling in your changes here (unless you were waiting to open a PR). The only thing I noticed is that on Safari it seems like the books on your website seem to be very stretched (only showing one per line). Not sure if this is an issue with my computer or if you experienced the same?

You mean stretched like the image is stretched and out of proportion or stretched like each book is on one line? If its the latter, that's done on purpose. I like having the list instead of a grid view, that was something I've previously done on older websites.

Can you submit a PR with this? I've seen a few users asking for it.

Hi, thanks for the interest in this idea! I have no problem if someone else goes ahead and incorporates the code into al-folio. My attempts to incorporate this into al-folio can be found here https://subhodeeps.github.io/al-folio/_pages/books/
I am bit occupied at the moment to submit a PR request and it has been a while since I looked at al-folio's code, so it'd be difficult for me to submit a PR right now. I would be delighted if somebody took takes this idea forward!

Can you submit a PR with this? I've seen a few users asking for it.

Yea, I'll try to work on it. Thanks for the help @subhodeeps

Hi, the changes I made to al-folio is available in my fork of the al-folio repo https://github.com/subhodeeps/al-folio
The commits are available here (6th Oct): https://github.com/alshedivat/al-folio/compare/master...subhodeeps:al-folio:master
Since I have made several other changes to the site, I can't (shouldn't) create a pull request but I hope the commits will give you an idea of the changes that needs to be made.

I started implementing a mix-up version of both your solutions. I chose @subhodeeps version to list the books and @asboyer version to display the review itself. There are still some fixing to do though. Someday I can come to this again to finish its implementation.

@george-gca awesome. Gotten super busy with schoolwork but I can also take a look at it this weekend if you want help.

@asboyer @subhodeeps can you please check my new PR #2866? You'll have to test it locally, since for some reason the build on Netlify is failing.

Okay, I am going to take a look at this now, sorry for the late response!

@subhodeeps this is such an incredible idea! I really like how the bookshelf looks on your website. I've been thinking about pulling in your changes here (unless you were waiting to open a PR). The only thing I noticed is that on Safari it seems like the books on your website are very stretched (only showing one per line). Not sure if this is an issue with my computer or if you experienced the same?

Hi, I fixed this issue. Take a look https://github.com/subhodeeps/subhodeeps.github.io/blob/master/_layouts/books.html

#2866

This looks good!
https://deploy-preview-2866--relaxed-lollipop-b6bc17.netlify.app/books/

https://github.com/subhodeeps/subhodeeps.github.io/blob/master/_layouts/books.html

It looks really good, yeah. I like he combined the best elements of each of our implementations. @george-gca is there anything else you need help with?

Yes, there is a small layout issue when visualizing the book review in mobile layout. I believe that's the only thing missing, but I haven't had the time to look back at it. Can you guys take a look at this @asboyer @subhodeeps?


Reset user traffic option

Hello,
I think if you add "reset user traffic" option to web panel, it will be so useful.
Now i am handling this option maually with bash script and work with DB sqlite file.

Hello,
I think if you add "reset user traffic" option to web panel, it will be so useful.
Now i am handling this option maually with bash script and work with DB sqlite file.

Could you share here how you achieved it? I also need to do that manually until they implement it on the web.

Hello,
I think if you add "reset user traffic" option to web panel, it will be so useful.
Now i am handling this option maually with bash script and work with DB sqlite file.

Could you share here how you achieved it? I also need to do that manually until they implement it on the web.

What you can do is connect to the DB file with a sqlite client, navigate to the table <config_name>_transfer and find the correspondent peer and remove the row and restart the dashboard.

This is implemented in v4 :)


Update Set-Place.md

added nickname property

Docs Build status updates of commit c2fccc3:
:clock10: Full build: the average full build time is 14 min(s) 15 sec(s), this is based on the last 257 build(s) for this repository.

Docs Build status updates of commit c2fccc3:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/mailboxes/Set-Place.md
:white_check_mark:Succeeded
View (exchange-ps)

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.