use /tmp for eicar download

As pointed out by @mifurm, ~/Downloads/ most likely won't exist on a Linux system.
This PR changes the directory to /tmp.
Closes #4869
Signed-off-by: Thomas Sjögren<EMAIL_ADDRESS>

@JohanFreelancer9 - kindly do the copy editor review for this PR. Thanks

@mjcaparas Please merge this PR. Thanks


Audio played with 'AudioCache' is delayed the first time even if preloaded.

The first time audio is played with AudioCache, even if IAudioCache.loadAll is used beforehand, is played with a slight delay; second and further attempts do not have any delay.
Description
It seems like loadAll or load are not enough the first time. A possible workaround would be to play each sound with volume set to 0 to 'worm up', but it is a pretty ugly hack.
Code to Reproduce
import 'package:audioplayers/audioplayers.dart';
import 'package:flutter/material.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await initPlayer();

  runApp(App());
}

class App extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: Scaffold(
        body: Center(
          child: TextButton(
            onPressed: playAlarm,
            child: Text('Play'),
          ),
        ),
      ),
    );
  }
}

// ----------

const _timerAlarmAudioFile = 'timer_alarm.mp3';

late final AudioCache _audioCache;

Future<void> initPlayer() {
  _audioCache = AudioCache(
    prefix: 'assets/audio/',
    fixedPlayer: AudioPlayer(),
  );

  return _audioCache.loadAll([_timerAlarmAudioFile]);
}

void playAlarm() {
  _audioCache.play(_timerAlarmAudioFile, mode: PlayerMode.LOW_LATENCY);
}

Platforms

iPhone Xs + iOS 14.5.
Pixel 3XL + Android 11.
Flutter version 2.2.1 stable channel.
audioplayers version: 0.19.0
App run in release mode run with the following command: flutter run --release -d <device id>
The sound I'm playing is this: https://www.zedge.net/ringtone/99a9a13c-2881-32ff-aa8b-84302fb3532c

same here, I'm trying to get sounds to seamlessly run one after the other, but there is this delay..

I also had the same problem

I'm also facing the same problem

Can you retest with audioplayers: ^1.1.0 ?

Marking as stale. May have a look at #1469 or we may need to replace the Android implementation with ExoPlayer. Feel free to open a new issue with current AP version.


refactor($compile): allow transclude data to be GCed after a non-cloning transclusion

This does two things:

nulls out some data when a non-cloning transclude completes to allow mainly the boundTranscludeFn func/closure to be GCed (the other things are probably still referenced)
throws if that transclude is executed again since that would either re-link the same element or clone the linked element

I believe this has the potential to break some people's apps, simply because it's not obvious how you are supposed to use $transclude. But it's good for 1.6.x, with a BC notice.

Anything that breaks was probably already broken, although this might make it more broken (by throwing).
Which makes me think this should also be done on link functions, not only on the transclude functions...

I've added a second commit to do this to all link functions.  Is it worth having a transclude specific error message? Or allowing a couple more transclude closures to be GCed in addition to the link ones? I'd so no to the error message, yes to the closures...

The transclusion slot stuff made this a bit more complicated so I've simplified it to only null out the link function data (not transclusion function data - which really just wraps the link function data). This is probably a better first step anyway...

Any thoughts on this for 1.6?

I think we can try it for 1.6. We should probably keep a list of possibly problematic commits for when we will snyc 1.6 to g3 in the future.
Before we merge it, we need an error doc for the multilink error with description and examples what can cause this.

I've added an error doc.

1.6? :grin:

Even though it's unlikely that this is going to break apps, I feel like we should mark this as "fix", just so that it shows up in the changelog, and when people have their app broken, they might see what's causing it.

I've updated the commit message

Finally landed! Thanks for your preserverance jbedard. Due to how easy it is to make this mistake, I'll leave it in 1.6 only (for now). Especially since with some simple directives (such as interpolation), you won't notice any difference in behavior when linking multiple times.

I think just 1.6 is best unless there's a strong reason to put it into 1.5. This can be considered a BC for those using $compile incorrectly...


[BUG] unix_timestamp on GPU returns invalid data for bad input

Describe the bug
The unix_timestamp function should either return null values or throw an exception for values that cannot be parsed given the specified format (depending on the value of spark.sql.legacy.timeParserPolicy).
However, the function currently returns incorrect data.
Steps/Code to reproduce bug
testSparkResultsAreEqual("Test unix_timestamp mix of valid and invalid inputs",
  spark => {
    import spark.implicits._
    Seq(
      "31/12/1999",
      "31-12-1999",
      "12/31/1999",
      "12-31-1999",
      "1999-12-31",
      "1999/12/31",
    ).toDF("c0")
  },
  conf()) {
  df => df.withColumn("c1", unix_timestamp(col("c0"), "yyyy-MM-dd"))
}

Running on the GPU and on the CPU did not match
CPU: ArrayBuffer([31/12/1999,null], [31-12-1999,null], [12/31/1999,null], [12-31-1999,null], [1999-12-31,946598400], [1999/12/31,null])

GPU: ArrayBuffer([31/12/1999,-61206796800], [31-12-1999,-61206796800], [12/31/1999,-61806412800], [12-31-1999,-61806412800], [1999-12-31,946598400], [1999/12/31,946598400])

Expected behavior
Behavior should match Spark on CPU.
Environment details (please complete the following information)
N/A
Additional context
N/A

cuDF now has an is_timestamp function that we could use to filter out invalid values.


Introducing ephemeral workers

Resolves #933
User facing changes:

In the gRPC APIs, every invocation-related endpoint now allows passing None as worker name. This is binary compatible with the existing API (and this is verified by a test)
On the HTTP APIs there are new variants of the two invocation endpoints for the case where the user is not specifying a worker name. So for example beside of /v1/components/{component_id}/workers/{worker_name}/invoke-and-await we have also /v1/components/{component_id}/invoke-and-await
In the CLI, worker url and worker urn can be specified without a worker name now, (for example worker://<component-id>) and it is accepted for invoke commands. For other commands where specifying an exact worker by name is necessary, it ends up in an error.

@afsalthaj isn't the linked routing configurations already routing the new endpoints to worker service (based on their first rule?)

current worker-service apis (prior ephemeral workers) have paths like
/v1/components/<component-id>/workers*
if there is not /workers  part, it is taken like component endpoint
new APIs are:
/v1/components/{component_id}/invoke-and-await
/v1/components/{component_id}/invoke
witch will not match /v1/components/<component-id>/workers*


Default Communication device

Can the command for set-'Default Communication device' Be added.

It seems like the issue #9 (Supporting Recording Devices, enhancement) is already covering this.


remove the bit of code responsible for appending Z to date/times when using Firefox

Fixes #3172 #3176
Purpose
Make it so that osfHelpers.FormattableDate can accept ISO 8601 formatted date strings, rather than just date-time strings, in Firefox
Changes
No longer append "Z" to the date/time string in Firefox
Side-effects
I'm not sure why that "Z" is appended (locally on my firefox, the behavior is the same with or without the "Z"), but if there was a good reason for adding that then other places that display datetimes may be broken. Will try to find them.

Actually I added the "Z" code. Here is the pull request explanation -- #2988

Since the issue in Firefox only applies to values with a time component, perhaps restricting the addition of the "Z" to dates containing a time would fix both problems?
if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1 && date.indexOf('T') && date.slice(-1) !== 'Z') {
    date = date + 'Z';
}

Also - what would happen if the browser detection were removed? Although the issue only impacts Firefox, browser detection is generally considered an anti-pattern.

Thanks @haoyuchen1992, I didn't manage to find that, good to know.
@lyndsysimon That solution is good (I always like functions), but the only problem is that the T isn't 100% necessary for ISO 8601. If we want to only support datetimes where the separation between date and time is designated by a T, I think that would be fine, but I thought I should at least note this.

Also, I like applying this change across all browsers, because the Firefox method is actually following the (ISO, not ES) specification

First pass complete - onward! :dancer:


cannot  find imageoptimal in file menu when build from source

when build from source after restarting Xcode,  I cannot  find imageoptimal option in file menu.I do not why, my Xcode is 10.1, and I can confirm the plugin was at the right location(I have RSImageOptimPlugin.xcplugin at ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins).
any answer will be grateful.

Please note that plugins are not supported by Xcode 8. Please see: https://github.com/alcatraz/Alcatraz/issues/475


/etc/keyd/default.conf isn't an INI

Describe the bug
The keyd module writes keybind configurations using the INI genorator, causing = to be escaped.
Steps To Reproduce
Steps to reproduce the behavior:

Write a keyd config, particularly one that rebinds =.

Expected behavior
The keyd config will rebind keys as stated in user configuration.
Additional context
Was duscivered during an attempt to replicate a symmetrical keyboard layout.
Notify maintainers
@peterhoeg @woojiq
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here
```nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.10.5, NixOS, 24.11 (Vicuna), 24.11.20240818.8a33541`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Lix, like Nix) 2.92.0-dev-pre20240813-f9a3bf6
System type: x86_64-linux
Additional system types: aarch64-linux, i686-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/axolotl/.config/nix/nix.conf:/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/bqns0s2g37v08lqklxcq7ym0iksgfb15-lix-2.92.0-dev-pre20240813-f9a3bf6/share`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/store/d9gbq853jvbccrz5g3y0irbwgc57w137-source`
---

Add a :+1: [reaction] to [issues you find important].

[reaction]: https://github.blog/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/
[issues you find important]: https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc

Use extraConfig as a workaround: https://search.nixos.org/options?channel=unstable&show=services.keyd.keyboards.<name>.extraConfig&from=0&size=50&sort=relevance&type=packages&query=keyd

Writing a good keyd configuration "nix way" is hard/impossible because it keyd doesn't use default file formats like toml, json, etc. It also depends on the order, so the nix language isn't very suitable for this. Just use extraConfig :)

@woojiq

Writing a good keyd configuration nix module (using nix best practices) is hard/impossible

Well, that's a shame. Anyway, would it be possible to use the below patch to write a working keyd configuration nix module (using nix practices of dubious quality) instead?
From 98535d1d60dae79072dcab8770899cddcaebf49b Mon Sep 17 00:00:00 2001
From: shitpostalotl<EMAIL_ADDRESS>Date: Sat, 28 Sep 2024 21:30:38 -0700
Subject: [PATCH 1/1] nixos/services.keyd: replace toINI program-specific gen
 fn

---
 nixos/modules/services/hardware/keyd.nix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nixos/modules/services/hardware/keyd.nix b/nixos/modules/services/hardware/keyd.nix
index 92b62fe2e..0e25d9710 100644
--- a/nixos/modules/services/hardware/keyd.nix
+++ b/nixos/modules/services/hardware/keyd.nix
@@ -101,7 +101,7 @@ in
             [ids]
             ${lib.concatStringsSep "\n" options.ids}

-            ${lib.generators.toINI {} options.settings}
+            ${lib.concatLines (lib.attrsets.mapAttrsToList (section: binds: "[${section}]\n"+(lib.concatLines (lib.attrsets.mapAttrsToList (key: value: "${key} = ${value}") binds))) options.settings)}
             ${options.extraConfig}
           '';
         })
--
2.45.2

Potential fix in #345243.

Duplicate of https://github.com/NixOS/nixpkgs/issues/236622
I think the docs for the options are pretty clear about when to use which and what to do with special chars.


Add postcode finder link to local transactions

Adds the Royal Mail's Postcode Finder as link to the location form for local transactions. It also adds the Finder to 'licences' pages (https://www.gov.uk/house-to-house-collection-licence) and 'places' pages (https://www.gov.uk/number-plate-supplier), as they use the same partial.
One of the ACs mentions to set up exit link tracking. It appears this comes free from the static app, which includes the gem govuk_frontend_toolkit and thereby JS code for tracking clicks on external links. We've manually tested successfully that the CSS selector includes the new link to the Postcode Finder. We also used the Google Analytics Debugger Chrome extension to check that the right event is triggered.

Looks good. :+1:


fix issues 10552 and 10553 - enums and access specifiers

http://d.puremagic.com/issues/show_bug.cgi?id=10552
http://d.puremagic.com/issues/show_bug.cgi?id=10553

@hpohl sorry for us being slow on your PRs. Are you around?

The enhancement in 10552 was filed by me in 2013 but since then I've come to realize the feature request doesn't really have any merit. Sorry for any work involved here!
Issue 10553 on the other hand was a bug, but it seems to have been resolved since.
Closing this PR.


Update README with details about the project

add the icon
add the salient points from the experiments
add the plots for all the methods

5c1e5daaec7d1d24e8b86d1879c73d24e7d3e236


Heatseeker base nin

Can you get this rebased so we can use it for this years demo?

ok

ping

dunno if it works though, going to test it

ping

It works!


openbsd: glob_t recently changed to conform posix (use size_t)

on openbsd, upcoming stable version have changed glob_t definition to follow posix definition (using size_t instead of int on some fields)
the change preserves bitrig definition
r? @gnzlbg

@bors: r+

:pushpin: Commit 568d40f0eb6c966b6370a993fea8effd73a051a3 has been approved by gnzlbg

@semarie i'm slowly cleaning up libc-test/build.rs to make it 100% clear what headers impact which targets, and what is tested and what is skipped on each target.
Since we don't run any tests on OpenBSD ? Would you be able to give doing that a try ? (see how it is done for Apple, windows, etc.). Basically it requires extracting copying the whole main function into a test_openbsd function, and then disable everything from the main function that was used only by OpenBSD. Once that works, you can try disabling everything that OpenBSD does not need from its test function. And if you are feeling brave, trying to enable all the tests (there are some utilities like cfg.verbose_skipped(true) that will tell you which stuff is actually skipped, so that you can remove all the code to skip stuff that's actually not encountered. I'm on Discord and Zulip in case you want to give that a try, and have questions.

:hourglass: Testing commit 568d40f0eb6c966b6370a993fea8effd73a051a3 with merge 841dbe36a509217c5914f4887448c5f8061cfc04...

:sunny: Test successful - checks-cirrus, checks-travis, status-appveyor
Approved by: gnzlbg
Pushing 841dbe36a509217c5914f4887448c5f8061cfc04 to master...


Error 500 "connection refused" with docker compose

Environment info:

KrakenD version: Version 2.7.2 from devopsfaith/krakend:watch
System info: docker compose
Hardware specs: MacOs

Describe the bug
I use a docker-compose file with two services, keycloak and krakend :
version: '3.9'

services:
  keycloak:
    image: quay.io/keycloak/keycloak:latest
    container_name: keycloak-api-gateway
    ports:
      - "7080:8080"
      - "9001:9000"
    volumes:
      - ./keycloak:/opt/keycloak/data/import
    environment:
      KC_BOOTSTRAP_ADMIN_USERNAME: admin
      KC_BOOTSTRAP_ADMIN_PASSWORD: admin
    command: "start-dev --features=admin-fine-grained-authz --import-realm --verbose --health-enabled=true"

  krakend:
    image: devopsfaith/krakend:watch
    container_name: krakend-gateway
    ports:
      - "11080:8080"
    volumes:
      - .:/etc/krakend/
    command: "run --config /etc/krakend/krakend.json"

networks:
  default:
    name: krakend-keycloak-ntw

My Keycloak container exposes a health/ready endpoint on port 9001 which returns a simple json message :

The two services are on the same network and as you can see in the krakend config file below I use the name of the keycloak service to define the host of the endpoint which is a problem for me.
When I call it (http://localhost:11080/ready) krakend returns me always an error 500 "connection refused".

As you can see, the call is made on the container ip address of the keycloak service, so the replacement of the service name in the host declaration is well done. But it does not work.
Your configuration file:
{
	"$schema": "https://www.krakend.io/schema/krakend.json",
	"version": 3,
	"name": "KrakenD - API Gateway",
	"timeout": "3000ms",
	"cache_ttl": "300s",
	"output_encoding": "json",
	"endpoints": [
		{
			"endpoint": "/ready",
			"method": "GET",
			"output_encoding": "no-op",
			"backend": [
				{
					"url_pattern": "/health/ready",
					"encoding": "json",
					"sd": "static",
					"method": "GET",
					"host": ["http://keycloak:9001"]
				}
			]
		}
	],
	"debug_endpoint": true,
	"echo_endpoint": true
}

If I replace the host name "keycloak" by the IP of my machine, all is ok, krakend returns the good result.
I found the solution after long research on google (https://www.youtube.com/watch?v=ZGp-rM666KQ).
It seems I'm not the only one facing this problem, I've never encountered it with any other docker-compose project.
Do I miss something or it is really a bug which needs to be fixed ?
Thx for having read.

Hello @Skawx , your host is not pointing to the right port: "host": ["http://keycloak:9001"]. It should be "host": ["http://keycloak:9000"] because the containers communicate in the internal network, not in the port exposed in the host.

Hello @alombarte, thank you so much. It works. My bad...


Expose distinct UUID generation and parser/constructor for cookie payload

Is your feature request related to a problem?
I'd love to hand out one URL domain.com/download-app to send users to the android and apple stores by having a dynamic redirect depending on the user agent visiting that page in place — of course I'd love to track this event in PostHog.
Initiating the client inside a lambda function is straight forward, there are two things I'm doing manually right now:

reading the cookie headers, checking for an existing PH cookie and grabbing the distinct_id from there.
generate a new v4 uuid() if there is no PH header present (the phone did not visit our main landing page before) and write it into a cookie via Set-Cookie header which the client side PostHog then picks up and continues to use when the phone visits our domain.com.

All that works great!
I noticed that ph uses this generateUUID function but does not export it on the posthog-node package. The anonymous uuids seem to share a common prefix 081b in my case, which differs from what the v4 uuids are looking which I am generating (via uuid).
Also parsing and constructing the cookie myself feels error prone, exposing those three building blocks from the lib would make this future proof.
Describe the solution you'd like

export the generateUUID function to reuse it
export a method to construct the cookie payload
export a method to parse a PH cookie payload

Related sub-libraries

[ ] All of them
[ ] posthog-web
[x] posthog-node
[ ] posthog-react-native

Additional context
Thank you for your feature request – we love each and every one!

@joernroeder we use the uuidv7() method now.
would you like to contribute with a PR exposing the construct and parse of cookies?


Updated guidelines v.1.7

Updated guidelines (v.1.7 01/27/2020), including updated full text corpus.

Thanks! In this pull request though, some other files were reverted to older versions, so I separately added the new version of the guidelines here 6adee57607c411688231c79558f53af2011fea07 and will close this pull request.
For future updates via pull requests, please always make sure to first pull the current state of the main repo into your fork before adding new or changing files to avoid merge conflicts.


refactor(contributing.md): made all code-commands into shell snippets…

…, easier to copy and paste
Shell snippets can be copied with the press of a button and are already present throughout the file. This change makes them present any  time a piece of code is suggested.
re #476
What is it?

[ ] Feature / enhancement
[ ] Bug
[x] Docs / tests

Description
Made all code-suggestions easier to copy and paste. Made file more uniform in style (all shell snippets now).
Use cases and why

More effective guide

Checklist:

[x] My code follows the developer guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] Added new tests to cover the fix / functionality

I have read the CLA Document and I hereby sign the CLA

@all-contributors please add @TheMcnafaha for code, ideas, maintenance


Laplace prior for the trend component

[x] implement a Laplace prior for the trend component $\tau$ that in the baseline model is given by a multivariate normal:

$\tau|\sigma^2_{\eta}\sim\mathcal{N}_T$
$(\mathbf{0}, \sigma^2_{\eta}(\mathbf{H}'\mathbf{H})^{-1})$

[x] write a short note
[x] a quick derivation or full conditional posterior presentation
[x] an R function with the sampler
[x] include your name in the author list

Hey @comeseemeintheocean
This is super cool! This note is probably too long but it is very good! Congratulations and thank you! There are quite some things that had to happen in #33 but I managed to merge :)
Cheers, T


Move from Homestead to Rancher

We currently install a homestead chart for minimal rancher. This is an in-development project that doesn't appear to be reaching production readiness in the near future. We need to move to using rancher itself instead.
We can start by replacing the the homestead chart tgz file with one from rancher and renaming the release-name to rancher.
Also, the UI calls it minimal rancher and that will need to be changed.

For anyone's info: Using this install script:
#!/usr/bin/env bash

set -ex

kubectl apply -f https://raw.githubusercontent.com/jetstack/cert-manager/release-0.9/deploy/manifests/00-crds.yaml

kubectl create namespace cert-manager

kubectl label namespace cert-manager certmanager.k8s.io/disable-validation=true

helm repo add jetstack https://charts.jetstack.io

helm install cert-manager --namespace cert-manager --version v0.9.1 jetstack/cert-manager

helm repo add rancher-stable https://releases.rancher.com/server-charts/stable

helm repo update

kubectl create namespace cattle-system

count=1
while kubectl get pods -n cert-manager | grep -q ContainerCreating ; do
    echo "containers still starting up: ${count}"
    count=$((count + 1))
    sleep 3
done

helm install rancher rancher-stable/rancher --namespace cattle-system --set hostname=rancher.demo

Closing as we are no longer going to have homestead/rancher as part of the mvp launch.


Merge branch '5.5.x' into 6.0.x

The conflicts resolved here were:
spec/unit/provider/cron/parsed_spec.rb
lib/puppet/provider/cron/crontab.rb
acceptance/lib/puppet/acceptance/common_utils.rb

Plus two new acceptance tests added in PUP-9217 were deleted since they are for the cron resource.

@McdonaldSeanp @melissa Thanks for catching that -- updated.

Waiting for CLA signature by @ehom
@ehom - We require a Contributor License Agreement (CLA) for people who contribute to Puppet, but we have an easy click-through license with instructions, which is available at https://cla.puppet.com/
Note: if your contribution is trivial and you think it may be exempt from the CLA, please post a short reply to this comment with details. http://docs.puppet.com/community/trivial_patch_exemption.html


Check failure stack trace: Aborted (core dumped) Check failed: registry.count(type) == 1 (0 vs. 1)

hi, when  I download the code and just cd  to the  python-demo dir , run the  'python test_deconv.py ' command,, then it  throw  an error like blew:
I0527 20:22:11.013113 17197 layer_factory.hpp:77] Creating layer input
I0527 20:22:11.013123 17197 net.cpp:84] Creating Layer input
I0527 20:22:11.013126 17197 net.cpp:380] input -> data
I0527 20:22:11.013139 17197 net.cpp:122] Setting up input
I0527 20:22:11.013146 17197 net.cpp:129] Top shape: 10 3 227 227 (1545870)
I0527 20:22:11.013147 17197 net.cpp:137] Memory required for data: 6183480
I0527 20:22:11.013150 17197 layer_factory.hpp:77] Creating layer conv1
I0527 20:22:11.013155 17197 net.cpp:84] Creating Layer conv1
I0527 20:22:11.013159 17197 net.cpp:406] conv1 <- data
I0527 20:22:11.013161 17197 net.cpp:380] conv1 -> conv1
I0527 20:22:11.182510 17197 net.cpp:122] Setting up conv1
I0527 20:22:11.182545 17197 net.cpp:129] Top shape: 10 96 55 55 (2904000)
I0527 20:22:11.182548 17197 net.cpp:137] Memory required for data: 17799480
I0527 20:22:11.182562 17197 layer_factory.hpp:77] Creating layer relu1
I0527 20:22:11.182570 17197 net.cpp:84] Creating Layer relu1
I0527 20:22:11.182572 17197 net.cpp:406] relu1 <- conv1
I0527 20:22:11.182575 17197 net.cpp:367] relu1 -> conv1 (in-place)
I0527 20:22:11.182678 17197 net.cpp:122] Setting up relu1
I0527 20:22:11.182696 17197 net.cpp:129] Top shape: 10 96 55 55 (2904000)
I0527 20:22:11.182698 17197 net.cpp:137] Memory required for data: 29415480
I0527 20:22:11.182699 17197 layer_factory.hpp:77] Creating layer pool1
F0527 20:22:11.182725 17197 layer_factory.hpp:81] Check failed: registry.count(type) == 1 (0 vs. 1) Unknown layer type: PoolingSwitches (known types: AbsVal, Accuracy, ArgMax, BNLL, BatchNorm, BatchReindex, Bias, Concat, ContrastiveLoss, Convolution, Crop, Data, Deconvolution, Dropout, DummyData, ELU, Eltwise, Embed, EuclideanLoss, Exp, Filter, Flatten, HDF5Data, HDF5Output, HingeLoss, Im2col, ImageData, InfogainLoss, InnerProduct, Input, LRN, LSTM, LSTMUnit, Log, MVN, MemoryData, MultinomialLogisticLoss, PReLU, Parameter, Pooling, Power, Python, RNN, ReLU, Reduction, Reshape, SPP, Scale, Sigmoid, SigmoidCrossEntropyLoss, Silence, Slice, Softmax, SoftmaxWithLoss, Split, TanH, Threshold, Tile, WindowData)
*** Check failure stack trace: ***
Aborted (core dumped)

because  I  am not familiar with  caffe,  so pls help  me  how to solve the problem , thanks

same problem with you

same problem with you! could you tell me that how did you solve it ?Thank you very much！


add directlinespeech support to prompts

Fixes in JS: https://github.com/microsoft/botframework-sdk/issues/5950
Description
Adds directlinespeech to channel.ts which determines the suggestedAction and cardAction support in the prompts.
The buttonCount limits follow Web Chat and Directline because this is in the context of Direct Line Speech via Web Chat.
Specific Changes

Adds directlinespeech to channel.ts helper functions
Add tests for channel.ts changes
Regenerate botbuilder-dialogs.api.md

Testing
Unit tests and manually tested via 06.using-cards & 03.speech/a.direct-line-speech on chromium edge.
FYI @varunbmallik, @compulim, @NickEricson, @dmvtech

Pull Request Test Coverage Report for Build 143248

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.002%) to 81.043%

Totals

Change from base Build 143084:
0.002%

Covered Lines:
12982

Relevant Lines:
15303

💛  - Coveralls


Rename and update MPPA compiler

Kalray's core has been renamed from k1/k1c to kvx/kv3.
It has been decided with Matt that the easiest solution is to remove
the old compilers and replace with the new one with correct name.

On April 22, 2020 1:51:35 AM UTC, Matt Godbolt<EMAIL_ADDRESS>wrote:

@mattgodbolt commented on this pull request.

@@ -52,7 +52,6 @@ build_cross arm64 6.4.0
build_cross arm64 7.3.0
build_cross arm64 8.2.0 GS
build_cross riscv64 8.2.0
-build_cross k1 7.4.1
-build_cross k1 7.5.0
+build_cross kvx 7.5.0

what happened to 7.4.1? Is that gone now?

we have only one version in active dev 7.5), and 7.4.1 is an old one now, it is missing bugfixes and it has not been renamed. It's dead 😃 @apmorton was willing to keep anything ever published so it has not been removed when adding 7.5.

(I can leave the k1 compilers of course, but that may be confusing to users that may not understand that it's the same processor and not 2 different chips...)

I would keep 7.4.1 and remove 7.5.0, but in the compiler-explorer amazon properties add an alias for k1 7.5.0

They are not compatible as the builtin macros and functions are different, command line option have also changed. Having an alias can easily yields strange error, depending on what it does.

They are not compatible as the builtin macros and functions are different, command line option have also changed. Having an alias can easily yields strange error, depending on what it does.

They are not compatible as the builtin macros and functions are different, command line option have also changed. Having an alias can easily yields strange error, depending on what it does.

Right, so it's really not just a rename, but a new compiler. So both k1's need to stay.

Ok, I can do this. I'll respin this patch. How would you make it obvious that the k1 compilers are obsolete ? Maybe by changing the name (adding (obsolete)) and having an alias ?

We can do that with just a display name change

Discussing using the pre-built github images here instead for the newer compilers.

The pre-built images work a treat! Sorry to be late on this, and to be somewhat split-brained on "build it ourselves" / download... Going to close this but I appreciat ethe work you put into it. I hope the prebuilts will mean quicker updates when new versions are ready


feat: add redis 6.1.0RC1 release

update redis with release 6.1.0RC1

:tada: This issue has been resolved in version 1.328.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


(maint) Fix rspec deprecation warning caused by merge from stable.

Stable still uses the previous rspec "should" calls that cause rspec
deprecation warnings in master.  Converting to "expect" calls.

CLA signed by all contributors.

@peterhuene I ran into this earlier and pushed straight to master, not realizing you had a PR up, sorry about that.

No worries.


Add search by email endpoint to guest service

This adds the service endpoint for "search for all guests with a provided email address". The backing implementation will be in application.
The higher-level goal is to enable association of a quasi-anonymous "web booker" with a previous guest, based on their supplied email address.
[#133051095]

Thanks


GAuthClient logging error with base64 string

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain.js documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain.js rather than my code.
[X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code

Create Google Vertex model:

new ChatVertexAI({
  modelName,
  temperature,
  authOptions: {
    projectId: this.configService.get('FIREBASE_PROJECT_ID'),
  },
})

Call model with audio input

new HumanMessage({
    content: [
      {
        type: 'text',
        text: 'Transcribe what is said in the audio file in a valid WEBVTT format.',
      },
      {
        type: 'media',
        mimeType: 'audio/wav',
        data: audioData,
      },
    ],
  }),

If the call fails, it logs the base 64 string.

Error Message and Stack Trace (if applicable)
Here's the redacted error to give you an idea of the issue. It's logging the entire base 64 string.
call to gauth.request opts= {
  "url": "<project url>",
  "method": "POST",
  "headers": {
    "User-Agent": "langchain-js/0-ChatConnection google-api-nodejs-client/8.9.0",
    "Client-Info": "0-ChatConnection",
    "x-goog-user-project": "<project>",
    "Authorization": "Bearer <token>",
    "x-goog-api-client": "gl-node/20.14.0"
  },
  "data": {
    "contents": [
      {
        "role": "user",
        "parts": [
          {
            "inlineData": {
              "mimeType": "audio/wav",
              "data": "AAAAHGZ0eXBpc29tAAACAGlzb21pc28ybXA0MQAAAAhmcmVlAATp1G1kYXT7g/5A/jF/al+yTRo4HOVsPBeA69/o452+DC1nv7ZExNT63PObUV6ba4N34G39RSpznlGQYxuEAv8SloiuBLb1FjWdbsRK1YFOsSuM0gmWBRsQ5EGrvqj6smZXmdnH/UqG5dJYGPj8u9VSpyL5FZ0AlXtq9HUbsFweK9wufkfV1Dhc8fWwG6qqg3PW4F25Zk4O9UBEZUTyP1yW8RbkqEuUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8pC8QTpMwuR5OwtwgZhtEx3EWs3gwzoLFckBnLU6e9JGZUfylKhj+Hw//RdEsiBs0Ds4tU0FRX0gnKuG3XLWUIOuqe7/UYYoQwF9tmM2nmXfbaWDPEYb99YiX7KSCMIAAUEkGvVCw0T9DXlaXneVnd45/JXXNHQx5Hth37TLCEFX2PRKWFUdiEZve/Uz9fja8mWdgOW2hlq3z9Z8pYbwH3sNTiTa11fHiTHPswXnd1IextcUypvgBNlDntkvXQtrNRQXdngEOJbwU3OqFNePSowPKypJUt8TYSOLTPttS/GcyC9ekI3SbdRejkH8g4c/wjmcFNF7+ZHTeu3ePIBQX9em91fV9ur8CozGT7mRuwQzrxwjRXpn8MF3bTougLVV5BWfZynT79YokDFUlyPMS2mJbAWh5TKJ/SRntQ1iARTlrr1AxUDPwnKblPFctMJSfmFAAAAAAAAIjbVapZWSjVDsoYoEhpDo/KcIkLJXn/eOdLJ3Illgfgk3Q8JdV9nxflIhtCcHYr4M4W0uPosbNMx3jb0dKyeFXUPTqBx5p5ILR5NrIvJ4ORY/QGAYFVxQSSDXVA1q3Vu9gBwY+nbis9QAs8ivRg8QWjd4sKOtPnFcWFOJy/hLGndSzfZwAz2UQmOooRIHrcGzUM3PMzA2sNWbVihV5bVrdDrOiTO8tANfELJI6raa15nc/EEEKmKFABLq/mbKPrCeR6vR9d8VWGecrmcSTBxfsavyBzFGTq16rKNB5hNmXv3wlPS0CFRkFSvkHR7/lhoa3zTZ0+2xF0yhAu0UNDG3Oldl2jbkCwR5GSl3CYj3IcxfzML1qV0gwKt6t+3tKU3EUI+DWKHPJleyD7SJzTw6mv4MYL1xbfqDmEiuEbEEUpGuzvLqxkMYzazhqGl33oFCPVkEwkyeOlN24YZ5aDlVJXKg1AaCV6ChxV5zbZwiVjb7O+shdqD7W2gsWrSfWzN...

Description
Summary: The GAuthClient is logging the error when the request fails. This is fine normally, but when you include base64 data (in my case, audio), it logs the entire thing, which seems problematic and may cause issues at scale (not to mention increase logging costs in Datadog).
System Info
<EMAIL_ADDRESS>| MIT | deps: 16 | versions: 283
Typescript bindings for langchain
https://github.com/langchain-ai/langchainjs/tree/main/langchain/
keywords: llm, ai, gpt3, chain, prompt, prompt engineering, chatgpt, machine learning, ml, openai, embeddings, vectorstores
dist
.tarball: https://registry.npmjs.org/langchain/-/langchain-0.2.11.tgz
.shasum: d97e5bbd57e8954f21356fd85603aa39e3efe03f
.integrity: sha512-6FQWKNAXuTmwuhHHMOmurLo8pydSRu5C/FwCYvYbR4ulCLqcsj+jre/kfXvA5BdHOZHNo6oQn0/5kxDNnhxMUA==
.unpackedSize: 5.4 MB
dependencies:
@langchain/core: >=0.2.11 <0.3.0  @langchain/textsplitters: ~0.0.0  js-tiktoken: ^1.0.12              jsonpointer: ^5.0.1               langsmith: ~0.1.30                openapi-types: ^12.1.3            uuid: ^10.0.0                     zod-to-json-schema: ^3.22.3
@langchain/openai: >=0.1.0 <0.3.0 binary-extensions: ^2.2.0         js-yaml: ^4.1.0                   langchainhub: ~0.0.8              ml-distance: ^4.0.0               p-retry: 4                        yaml: ^2.2.1                      zod: ^3.22.4
maintainers:

nfcampos<EMAIL_ADDRESS>jacoblee93<EMAIL_ADDRESS>andrewnguonly<EMAIL_ADDRESS>davidduong<EMAIL_ADDRESS>hwchase17<EMAIL_ADDRESS>basproul<EMAIL_ADDRESS>
dist-tags:
latest: 0.2.11    next: 0.2.3-rc.0
published 3 days ago by basproul<EMAIL_ADDRESS>
node 20.14.0
npm 10.7.0

Good catch!
The reason the error is happening is that Vertex can't take a Data URL with audio with media at the moment. The logging is so that we can see these exact kind of scenarios (where we're generating JSON that handles things incorrectly) and know what we need to do about it.
A couple of things currently in progress that address all the issues:

#5835 will let you save media and reference them somewhat transparently. This will let you use a WAV file (or data URL).
#6207 will let us make the error logging so it can just log a failure and turn on request/response debugging only when necessary

@jacoblee93  / @bracesproul - Please assign this to me to make sure I track removing this logging when I address #6207

@afirstenberg Thanks for the explanation. I'm currently using Vertex (Gemini 1.5 Flash) with a Data URL with audio. I think they recently added support for this.
The issue I outlined above is more that when a request occasionally fails, my logs are clogged with the whole data URL.
That being said, the Media Manager and other steps outlined seem like the right medium and long-term solutions. Thanks for sharing!
I put a bandaid on this issue by copying and rewriting a few of the Langchain classes locally to remove the logging, so good to go until the other changes are implemented.
Thanks again!


chore: upgrade to TS-ESLint@6

Summary
Why not 🙂

Test plan
Green CI

This needs to wait until we drop Node 14


Fix model shader generation when normals are missing

processPbrMetallicRoughness always expects normals to exist, but that is not always the case. We should have a separate shader path for those models that would look similar to the constant lighting in processModelMaterialsCommon.
This will fix https://github.com/AnalyticalGraphicsInc/cesium/issues/5835.

See implementation note:  https://github.com/AnalyticalGraphicsInc/gltf-vscode/issues/28#issuecomment-321996956

When normals are not specified, client implementations should calculate flat normals.

Hm.. that might not look good for photogrammetry.

Came up on the forum: https://groups.google.com/forum/#!topic/cesium-dev/eXxk3Oi0hEM

We ran into this as well. With GLTF 1.0, Cesium seemed happy to compute normals from our models, which isn't happening with  GLTF 2.0. I tried the --materialCommon hint from the linked forum topic, but that appears to be the worst of both worlds (missing textures in Cesium; incompatibility in other GLB viewers). Is there a current suggested fix for this, other than expanding the size of our models with explicit normals?

@lilleyse Apologies for the highlight and double comment on this; I wanted to check if there was anything else I could do to help to investigate or work around this issue, especially since GLTF 1.0 models appear to work (ie, generate normals) as expected. Thanks in advance for your help.

@KermMartian I'm not sure if we ever generated normals for 1.0 models on load. I tried a simple box model and it shows the image below. If you are able to send me one of your models I could confirm.
But I do think we should generate normals for 2.0 models eventually, including options for smooth normals vs. hard normals like gltf-pipeline has. Cesium even has a built-in methods for doing this but no one has gotten around to integrating it yet. Until then I don't have a suggested fix.

@lilleyse Do you know if perhaps the 1.0 branch of KhronosGroup/COLLADA2GLTF was generating the normals unbidden, or perhaps creating a shader to generate the normals on the fly (and 2.0 doesn't)? I'll see if I can answer that question for myself if I can reproduce the GLTF 1 behavior, and I'm happy to send you one of those models, if I reproduce it. Making our DAE-to-CMPT pipeline generate normals along the way isn't too bad, but I'd like to avoid it there's an easy fix in COLLADA2GLTF, since it sounds like an easy fix in Cesium is out for the time being.

I'm not sure. @tfili do you know if COLLADA2GLTF master generates normals by default?

I don't think it does. That's why we use gltfPipeline to do it.

Duly noted; thanks for the help, everyone! In the end, we just generate normals ourselves before they get to COLLAGA2GLTF (and thence Cesium), so everything is resolved for us as below. I'm afraid that doesn't help those using models without normals, so definitely a strong vote for me in favor of Cesium eventually being able to compute those normals on the fly.

BabylonJS has an option to createNormals based on the mesh:
https://doc.babylonjs.com/api/classes/babylon.abstractmesh#createnormals
Might be worth looking at it and get inspiration from here:
https://github.com/BabylonJS/Babylon.js/blob/c54863cf32d8045db2fc0b56949974563db75fd7/src/Mesh/babylon.abstractMesh.ts#L1801

Lately I've been pondering whether Cesium could just show "unlit" materials (baseColor * occlusion + emissive) in the absence of normals.  It's technically not what the spec advises, but it's quick to implement and would get us visibility of models that are currently pitch black.

@emackey I think that's a great idea

Workaround added in #6501, closing this in favor of #6507 and #6506

Congratulations on closing the issue! I found these Cesium forum links in the comments above:
https://groups.google.com/forum/#!topic/cesium-dev/eXxk3Oi0hEM
https://groups.google.com/forum/#!topic/cesium-dev/se_9ov5HwA8
https://groups.google.com/forum/#!topic/cesium-dev/YSNaoirGXMw
If this issue affects any of these threads, please post a comment like the following:

The issue at https://github.com/AnalyticalGraphicsInc/cesium/issues/5838 has just been closed and may resolve your issue. Look for the change in the next stable release of Cesium or get it now in the master branch on GitHub https://github.com/AnalyticalGraphicsInc/cesium.

I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome.
:earth_africa: :earth_americas: :earth_asia:


fix(assign): typing Issues and add type-safety tests

[!TIP]
The owner of this PR can publish a preview release by commenting /publish in this PR. Afterwards, anyone can try it out by running pnpm add radashi@pr<PR_NUMBER>.

Summary
Currently, the typing of assign has some issues:

It does not handle two objects with different structures.
It does not correctly merge the typings.

This PR addresses these problems and adds a layer of type tests for the assign function, making it more type-safe.

Related issue, if any:
https://github.com/sodiray/radash/issues/420
For any code change,

[ ] Related documentation has been updated, if needed
[x] Related tests have been added or updated, if needed
[ ] Related benchmarks have been added or updated, if needed

Does this PR introduce a breaking change?
No
Bundle impact

Status
File
Size

[^1337]: Function size includes the import dependencies of the function.

/publish

Duplicate of #142, did you see that one? :)
Looking at what's going on with the preview releases. Thanks for testing!

really XD, when I saw the issue I didn't find any markings so I didn't even check


Fix macros broken if namespace std exists in current namespace.

If the macro is used in a namespace that contains the namespace std (that is not the compiler library std), the current macro breaks.  Add :: to fix this.

Bump, is there interest in this?

Thank you very much. I did not see this PR up to now because of my watch settings. I cherry-picked your commit (will be merged soon) because I was already on the same part of code before I saw your changes.


Software breakpoints with OpenOCD + GDB

When connecting OpenOCD I get the following warning:
Info : datacount=2 progbufsize=0
Warn : We won't be able to execute fence instructions on this target. Memory may not always appear consistent. (progbufsize=0, impebreak=0)
With icache enabled is there any way of reliably setting a SW breakpoint? Build options via swerv.config? I imagine this would require a fence instruction to be issued to flush cache but there's no program buffer to do so...
The custom CSR (0x7C4) seems that it would work via 'expose_csr' on OCD but initial results show inconsistent behavior

Yes, you need to use the custom DMST (0x7c4) CSR to force a fence.i before returning from debug mode, if you have used the system bus to update cacheable memory.
Could you be more specific about the "inconsistent behavior" ? Whats your setup and flow? Please provide your use case and steps so we can try and understand if it is a usage issue or a design issue.

OpenOCD out of box doesn't support DMST register, you'll need write it manually with debugger command every time you setting SW Breakpoint, or patch openOCD, including the register write into SW Breakpoint setting/removing functions.

A note in case anyone else runs into the same issue -
With the present day SweRV 1.8+ and riscv-openocd, the preferred solution is to enable abstract memory access. That will properly populate the SW breakpoint even when ICache is present. Add the following line to your OpenOCD configuration file:
riscv set_mem_access abstract

For robustness, you may also have OpenOCD clear the ICache every time the processor is resumed from the debug mode. To do so, add this to your OpenOCD configuration:
# Expose custom SweRV CSR dmst (CSR 0x7c4 == 1988)
riscv expose_csrs 1988

proc swerv_eh1_execute_fence {} {
    # Execute fence + fence.i via "dmst" register
    reg csr1988 0x3
}

# Configure events hooks in OpenOCD to execute Fence + Fence.i when resuming
# the processor from the debug mode:

$_TARGETNAME configure -event resume-start {
    swerv_eh1_execute_fence
}

$_TARGETNAME configure -event step-start {
    swerv_eh1_execute_fence
}


we cannot return on util.say()

The change to use util.say() in the konami challenge has broken it again. This was addressed in https://github.com/kra/futel-installation/pull/345

This results in an endless loop that fails to ever accept input.


Install the annotate gem rake file and run it

The Gemfile contains the annotate gem, but it looks like it was never run. This PR is the result of running rails g annotate:install and rails annotate_models with the default settings.
The annotate gem adds comments to the top of every ActiveRecord model class with the column names, indexes, and foreign keys. It makes it easy to see what columns (and hence auto-generated attributes) are available on a class without having to skim through db/schema.rb.

I've personally found this a useful tool when navigating codebases that I don't know well, or codebases that are too large for anyone to know well. I think in an open-source project context, this could make the project more welcoming for new contributors.
annotate does auto-update annotations when you run migrations, so these comments do stay up-to-date.
I'm comfortable with the suggestion of moving them to the bottom, but I would like to offer a counterpoint -- if we start using something like yardoc for internal documentation, keeping them at the top might integrate nicely with that. (I stress the might. I'm familiar with both yardoc and annotate, but not on the same project, so I don't actually know if they play nicely together.)
I've never seen schema annotations on factories before, but they feel clarifying to me there.
I agree that they feel extraneous & verbose in the context of spec files.

I've moved the annotations to the bottom of classes and factories, and removed them from specs (and updated the config to automatically add new annotations this way.)

It's pretty easy to move it back to the top if we change our minds about it later.


Getting csv files fail

After long-running admin-ui, getting a csv file from admin-ui fails. I have attached a snippet of admin_ui.log file.
admin_ui.log.txt
It seems that NATS discovery failed and after that, getting a csv file always fail (size is 0). I am using a bit old version (commit id: 75853b56ba4afd11eea1d1d89d06b627b1f68bfd (corresponding to a commit made on  Nov 19, 2015).

@MNitta Since the commit you reference, I have moved up through four iterations of the DataTables Buttons JavaScript library where the CSV function is supported.
Can you further define how getting a csv file from admin-ui fails?  Are you meaning the Save/CSV operation or the Download operation?
Also, it might be interesting for you to turn on your javascript console within your browser to see if any errors appear there when this fails.
Lastly, can you please try with the latest version of the Admin UI and see if this still occurs?
I have run the latest Admin UI against cf release 237 intentionally configuring the NATS connection incorrectly and I cannot recreate your lack of CSV functionality.


Consistently emit close event after quit even if server rejects

This changeset ensures we consistently emit a close event after a quit() call even if the server rejects. This is more of an edge case I've encountered while working on support for multiple connections as discussed in #175, so I figured it makes sense to properly close the connection in case the server does not already do this as usually expected.
Follow-up PRs will build on top of this to use dedicated open and close events as discussed in #147 and support multiple connections as discussed in #175.
Builds on top of #187

Rebased to fix merge conflict now that #188 is in :shipit:


Simplify and generalize navigation

🛠 Summary of changes
Updates how side navigation is generated within the local documentation site, to avoid tying it specifically to components.
This is part of a series of changes looking to introduce new sections for "Utilities" in addition to components, which will need to have its own side navigation.
📜 Testing Plan
The only meaningful change is that visiting the root URL will redirect automatically to the first component.

npm start
Visit http://localhost:4000/
Observe that you are redirected to http://localhost:4000/accordions/

Visual regression tests caught a change that I wasn't intending, which is that previously the side navigation would "expand" and show sub-headings of a page, e.g. "Button sizes and states" on the Buttons page. This no longer happens. I think I'm fine with this side-effect and we could consider the In-Page Navigation component if we wanted something like this in the future, but good to highlight another instance of the visual regression tests doing their job.

Before
After


V4.1.2 cfund logic fix

fixes a logic bug where expired proposals never get the expired state and sit indefinitely waiting for end of the voting period

@aguycalled so do we have a completely new payment server for the CFund?

the uri handler code is hosted in paymentserver.* but the new functionality is not related to the cfund but introduces a way to verify address ownership from websites using an specific uri scheme


Problem with hotmail

{"wellFormed":true,"validDomain":true,"validMailbox":null}
validMailbox: null with<EMAIL_ADDRESS>server

see #24

Can you check my comment on https://github.com/getconversio/email-deep-validator/issues/24?


Add wlr_egl_from_context

This function (in egl.c and egl.h) is to import an external EGL context (specifically to get https://github.com/technobaboo/sk-wlroots working, but useful in many other areas). It's been tested and known to work, and does not appear to harm any of the wlroots examples.

How will this interact with https://github.com/swaywm/wlroots/pull/2671?

How will this interact with #2671?

From what I can see it shouldn't be an issue (see https://github.com/swaywm/wlroots/pull/3013#discussion_r673118299), but I am in the middle of debugging an issue when using EGL for OpenXR and wlroots. I'll ask on the IRC channel when I get back to working on this part (focusing on other parts of my project for now).

Needs a rebase on top of #2671.

wlroots has migrated to gitlab.freedesktop.org. This pull request has been moved to:
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3013


Browser feature check

Fixes #293
Fixes #330
This does not check if WebRTC is blocked by uBlock. This require asking for mic permissions on login page, will that be good UX?

I can confirm this works.

Awesome work! I think we can try the WebRTC one with a datachannel only.


Addon not reading pressure from Acurite Atlas 733

This addon is reading information from my Acurite Atlas 733 correctly, but the barometric pressure reading is not showing up in HASS. As best I can tell, it is not reading this information because there's no configuration for pressure coming through in inHg (inches of mercury), and that seems to be the units the Atlas 733 uses to report pressure.

Thanks for the heads up!
If that's all it is then it should be an easy fix.
I'm working on an update now.

Update the code to include a definition for inHG. I dont have a way to test if that solves it though. So let me know if that fixes it.

Apologies for the delay in response. A little research turned up the interesting fact that the Atlas device doesn't actually measure / broadcast pressure - that sensor is inside the display console, so there's nothing to read from the SDR dongle. That seems to be true of a number of multi-function Atlas devices. Given that, I'm closing this issue as "NOTABUG".


Eval command bug

When you do
!e py
a

Here the language is specified outside the code block
It gives error: https://discord.com/channels/789192517375623228/793570459945926717/800007399778811954
but when you do
!e
a

Here the language is specified inside the code block
It does not give error: https://discord.com/channels/789192517375623228/793570459945926717/800007441349345281

Hmmm, do you know what is causing this issue?

Hmmm, do you know what is causing this issue?


[Event Request] Table 7602 Customized Calendar Change - procedure IsDateCustomized - OnBeforeIsDateCustomized

Describe the request
Please add the following Event/-s OnBeforeIsDateCustomized to procedure IsDateCustomized in Table 7602 Customized Calendar Change
    procedure IsDateCustomized(TargetDate: date) Result :Boolean
    var
        IsHandled: Boolean;
    begin
        IsHandled := false;
        OnBeforeIsDateCustomized(Rec,TargetDate, Result, IsHandled);
        if IsHandled then
            exit;
        case "Recurring System" of
            "Recurring System"::" ":
                Result := (TargetDate = Date);
            "Recurring System"::"Weekly Recurring":
                Result := (Date2DWY(TargetDate, 1) = Day);
            "Recurring System"::"Annual Recurring":
                Result := ((Date2DMY(TargetDate, 2) = Date2DMY(Date, 2)) and (Date2DMY(TargetDate, 1) = Date2DMY(Date, 1)));
        end;
    end;

    [IntegrationEvent(false, false)]
    local procedure OnBeforeIsDateCustomized(var CustomizedCalendarChange: Record "Customized Calendar Change";TargetDate:Date;var Result:Boolean; var IsHandled:Boolean)
    begin
    end;

Additional context
Extension of the calendar function to include additional functions such as even/odd week, etc.
Internal work item: AB#506140

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 17295.


Add Discord to the sponsors list

Hey! I figured it might be appropriate to do this, given Discord currently contributes 2,500 EUR/mo to this project! :)

We are actually about to remove these due to the transition into the rust org 😅
https://github.com/rust-analyzer/rust-analyzer/pull/11641#issuecomment-1069568849:

We actually should revome mentions of sponsors and branding from the repo, due to transition to rust-lang org. I'll do that when I have time (should have some by the time ! hits stable)

Ah well.

I mean we could probably add it until we moved the repo? I am not sure when that will be happening tbh.

No worries - it doesn't really matter!


Display human readable name for constraints

Description
Changed default constraints naming to a more human readable format
General Checklist

[ ] Tests added for this feature/bug
if it was a bug, test must cover it.
[ ] Conform by the style guides, by using formatter
[ ] Documentation updated
[ ] (optional) Please add a label to your PR

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

210 of 242 (86.78%)  changed or added relevant lines in 1 file are covered.
5 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.5%) to 82.492%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/whylogs/core/statistics/constraints.py
210
242
86.78%

Files with Coverage Reduction
New Missed Lines
%

src/whylogs/core/statistics/constraints.py
5
84.91%

Totals

Change from base Build<PHONE_NUMBER>:
-0.5%

Covered Lines:
4729

Relevant Lines:
5584

💛  - Coveralls


Fix potential out of bounds access issue in utf8 parsing.

substr returns a substring consisting of at most the requested length, but less than requested if there are too few bytes available. The next loop uses unchecked accessors, which could result in an invalid read.

This is safe as-written, relying on std::string's guaranteed null terminator as of C++11. If esc winds up containing "a", then esc[1] will be \0, which won't pass any of the in_range checks, so we'll stop before reading past that.
That said, it's definitely subtle and potentially brittle (if someday later we used a string_vew for esc then we'd have a bad time), so I'm fine with the explicit length check or a comment explaining the subtlety. Can you resubmit with a less scary commit message? :)

Ok.


Question about PORT env var

I've been trying to make sense of this buildpack and I'm stuck on this line:
https://github.com/heroku/heroku-buildpack-metrics/blob/master/.profile.d/heroku-metrics-daemon.sh#L32
AGENTMON_FLAGS=("-statsd-addr=:${PORT}")

So, we're telling agentmon to boot up and scrape/forward stats from statsd, and statsd is hosted on port $PORT? But isn't this the same $PORT env var that the web app is going to bind to?

I believe the answer is: Yes, it's the same PORT env var that the main Heroku app binds to, but it doesn't cause a problem because statsd is UDP, the Heroku app is TCP, and both protocols are allowed to use the same port number at the same time.


Updated eslint-plugin-minecraft-linting and fixed errors

eslint-plugin-minecraft-linting was updated to catch a few more potential issues here: https://github.com/Mojang/minecraft-scripting-libraries/pull/21 and this PR updates all the samples and ensures they all pass npm run lint.
Tested by running the ts-starter-complete-cotta and ensuring my score was reset to 0 when restarting.

Updated to 1.2.1 to get rid of a bunch of dependencies (nearly 1000 lines from each package-lock.json woo!)

Updated to 1.2.1 to get rid of a bunch of dependencies (nearly 1000 lines from each package-lock.json woo!)

was only the version the issue? 😮

was only the version the issue? 😮

@frgarc Ah, no, I should've been more clear. Raph moved a bunch of core build tool dependencies to dev dependencies: https://github.com/Mojang/minecraft-scripting-libraries/pull/22

@microsoft-github-policy-service agree company="Skybox Labs"

@frgarc After grabbing your changes this PR is significantly smaller! Re-requesting a review post merge :)


All Inputs should be changed to "strings"

When we try to edit any heading and if we don’t enter any changes in existing fields, which consists of numbers only. All numbers changed their view (for ex. 11 -> 11.0)
Here is the PUT request: http://prntscr.com/hbqa2s
Here is the server response to GET request for the info, which was updated: http://prntscr.com/hbqaje
Here is the log: http://prntscr.com/hbq9ps
According to the freshehr's comment:
The problem here is that both of the fields being populated should be strings not numerics.
"clinical_notes/clinical_synopsis:0/_name|value": "SOAP Note",
"clinical_notes/clinical_synopsis:0/notes": "Some sort of note"
The related issues: RippleOSI/Ripple-Qewd#63
https://github.com/PulseTile/PulseTile-React/issues/76

It was changed successfully.


lineinfile is creating multiple sudoers entries

This play:
https://github.com/mtlynch/ansible-role-tinypilot/blob/a4e195ab6ee349a2ab2d66ded1255d6d1d0c1784/tasks/main.yml
Needs a regexp to pattern match the line to update. Otherwise it keeps creating duplicate entries for the tinypilot user.

Fixed in #88


[bug] Qubino Flush Dimmer does not send off topic

Hi,
I have an issue with 2 Qubino Flush Dimmers as there are no OFF messages sent to Dz
Version
Build/Run method: [ ] Docker
Zwavejs2Mqtt version: 5.12.0
Z-Wave JS version: 8.7.6
Describe the bug
When I switched OFF the Qubino Flush Dimmer Plus  ZMNHDD (in the wall) there are no message OFF in mqtt
The light in real life is switched OFF
It was ok when it's switched ON
To Reproduce
Switch OFF the light fram the switch in the wall and noting is sent by mqtt
Expected behavior
A message is expected from mqtt (to domoticz for me)
Additional context
The same for another another Flush Dimmer, but others works.
The Watt are well reporting
I did several refresh, re-interviews
Today the issue was reversed sometimes after some  refresh, re-interviews, I saw some OFF messages, no ON messages (the log are from yesterday test)
[113-134-0-libraryType] Library type
[3] Enhanced Slave
[113-134-0-protocolVersion] Z-Wave protocol version
4.38
[113-134-0-firmwareVersions] Z-Wave chip firmware versions
["3.8","3.10"]
[113-134-0-hardwareVersion] Z-Wave chip hardware version
4
zwavejs2mqtt_2021-12-11.log

@robertsLando
I'll redo the log.
Before, just to be sure, I've done another quick test with this log
Initial context: the switch is off in real and in dz
To ON
2021-12-15 17:25:22.056 INFO ZWAVE: Node 113: value updated: 38-0-currentValue 0 => 99
2021-12-15 17:25:23.095 INFO ZWAVE: Node 113: value updated: 50-0-value-66049 0 => 4.5
OK : 38-0-currentValue 0 => 99
To OFF
2021-12-15 17:25:33.109 INFO ZWAVE: Node 113: value updated: 50-0-value-66049 4.5 => 0
2021-12-15 17:25:34.113 INFO ZWAVE: Node 113: value updated: 50-0-value-66049 0 => 0
NO 38-0-currentValue 99 => 0
To ON
2021-12-15 17:25:41.097 INFO ZWAVE: Node 113: value updated: 38-0-currentValue 99 => 99
2021-12-15 17:25:42.134 INFO ZWAVE: Node 113: value updated: 50-0-value-66049 0 => 4.1
From 99, not from 0
To OFF
2021-12-15 17:25:49.152 INFO ZWAVE: Node 113: value updated: 50-0-value-66049 4.1 => 0
NO 38-0-currentValue 99 => 0

@hestiap What I don't understand here is if when you switch off the switch in real you actually see the change in UI or not

@robertsLando
After switched ON the real switch and refresh the browser

no change in the UI.
After REFRESH

it's ok.
The same when switched off
So no change in UI

Did you try the procedure listed in the Home Assistant forum at https://community.home-assistant.io/t/zwavejs2mqtt-and-qubino-flush-dimmer/278515/12? I also have ZMNHDD dimmers and the status reported does not match the actual status. However, I haven't had the time to try the linked procedure.

Most of the times this is a device issue, if you don't see the change there it means it's the device that isn't reporting it's state change to the controller. This could be solved with a firmware update, a device configuration or with group associations, it's not a bug with z2m or zwavejs.
Thanks @andyboeh for the link, let's see if that helps

I took this as an opportunity to finally test it on my four ZMNHDDs: So far, it seems to fix the issue for me.

@andyboeh
Thanks for the solution.
In my case I already have the parameters set (but I'm not sure I did the exclusion / inclusion, I'll try but pretty risky with the devices in the wall...).
One other point is that I think I have recent HW and FW

So perhaps the solution is not appropriate
@robertsLando

Most of the times this is a device issue, if you don't see the change there it means it's the device that isn't reporting it's state change to the controller. This could be solved with a firmware update, a device configuration or with group associations, it's not a bug with z2m or zwavejs.

I not so sure it is a device issue as it was working with OpenZwave before I moved to zwaveje2mqtt
What do you mean by "with group associations" please?

I've found results of test I did before moving from OWZ to z2m and on basic testing it was working

In August, I could not find the version
Now:
zwavejs2mqtt: 6.1.1
zwave-js: 8.9.0-beta.1

@hestiap Did you try to enable poll of that value?

In my case I already have the parameters set (but I'm not sure I did the exclusion / inclusion, I'll try but pretty risky with the devices in the wall...).

Yeah for whatever reason, I never succeeded to get the Qubino in inclusion/exclusion mode with the attached switch - not even when installing the first time. With Fibaros, it always worked on the first or second try.
You should be able to tell whether you excluded/included by the number of available endpoints, they are only changed when the device is excluded/included. If I'm not mistaken, this information is available in the manual.

@hestiap Did you try to enable poll of that value?
When it was working with OZW there was no polling
When I've got some tests working with zwavejs2mqtt there was no polling
Now, I did it like this

No progress, no change, no off message when I switched off the real switch

@andyboeh

You should be able to tell whether you excluded/included by the number of available endpoints, they are only changed when the device is excluded/included. If I'm not mistaken, this information is available in the manual.

I didn't find it in the manual. Anyway, I know I excluded/included these devices several times, but I couldn't know if I set the parameters before or after

Dunno if @AlCalzone has any tips here

All I know is that many Qubino devices (at least the ones where you can add/remove endpoints with a config parameter) need to be excluded without reset and re-included for the changes to take effect. Without this, they won't include the new endpoints in their capability lists, so Z-Wave JS doesn't know about them.
Also, the endpoint configuration may have an influence on how the lifeline associations need to be set up for reports to work properly.
@hestiap if you're not sure you did the exclusion-inclusion dance, I'd start there.

@AlCalzone
regarding the endpoint, they are like this

Is this good? No lifeline available when I use ADD!
I'll do the exclusion-inclusion dance, probably next week...

Your Screenshot is showning associations, not endpoints.

@AlCalzone

@hestiap if you're not sure you did the exclusion-inclusion dance, I'd start there.

I did the exclusion-inclusion dance... with no better outcome :-(
I did it on 2 different modules
Also I did it after I made a reset, inclusion with zwavejs and waiting more than 30 s
It's still the same: I'd got the on topic but not the off ones
What is strange is that I've got another Flush Dimmer with the same version that works well and 4 that doesn't work!!!
ON after an ON/OFF
2022-01-14 19:31:30.586 INFO ZWAVE: Node 146: value updated: 38-0-currentValue 99 => 99

2022-01-14 19:31:32.081 INFO ZWAVE: Node 146: value updated: 50-0-value-66049 0 => 11.4

OFF
2022-01-14 19:31:35.633 INFO ZWAVE: Node 146: value updated: 50-0-value-66049 11.4 => 0

2022-01-14 19:31:58.726 INFO ZWAVE: Node 146: value updated: 50-0-value-66049 0 => 0

I've added a group

and with this there are topic on On and Off
ON
2022-01-14 19:57:46.973 INFO ZWAVE: Node 146: value updated: 32-0-currentValue 0 => 255
2022-01-14 19:57:47.896 INFO ZWAVE: Node 146: value updated: 38-0-currentValue 0 => 99
2022-01-14 19:57:48.928 INFO ZWAVE: Node 146: value updated: 50-0-value-66049 0 => 11.6
OFF
2022-01-14 19:58:19.810 INFO ZWAVE: Node 146: value updated: 32-0-currentValue 255 => 0
2022-01-14 19:58:21.061 INFO ZWAVE: Node 146: value updated: 50-0-value-66049 11.6 => 0

2022-01-14 19:58:22.062 INFO ZWAVE: Node 146: value updated: 50-0-value-66049 0 => 0
ON
2022-01-14 19:58:39.482 INFO ZWAVE: Node 146: value updated: 32-0-currentValue 0 => 255
2022-01-14 19:58:41.110 INFO ZWAVE: Node 146: value updated: 38-0-currentValue 99 => 99
OFF
2022-01-14 19:58:58.060 INFO ZWAVE: Node 146: value updated: 32-0-currentValue 255 => 0
2022-01-14 19:58:59.212 INFO ZWAVE: Node 146: value updated: 50-0-value-66049 11 => 0
2022-01-14 19:59:00.212 INFO ZWAVE: Node 146: value updated: 50-0-value-66049 0 => 0

But I get nothing in Domoticz...
Could it be something to dig or do you have another idea?

this there are topic on On and Off

Your logs still show that updates for the Multilevel Switch CC (38) aren't sent on off. The association just caused a Basic CC Set to be sent (which is normally used to control other devices).
If you haven't already, you should contact the Qubino support. Either this is a misconfiguration which they should be able to tell you quickly, or faulty devices in which case this is something for the support anyways.

@AlCalzone
I'll do it... again
I did it in 2019 but their answer was that Domoticz OZW was faulty!

Le 22/11/2019 à 08:26, Qubino Support a écrit :
...
That is definitely an issue of the integration, also all of the functions of our devices are tested well before we sent them into the production. I can tell you that we forward our findings and the issues reported from customers that have problems of integration to the developers of the gateway so that they have the list of the things to check / fix for the next releases

Domoticz OZW was faulty

Well, now you can say that Z-Wave JS doesn't work with the device either and the logs definitely show that the device doesn't send any message.

In my case I am in "dimmer mode" and the binary switch report is not reporting its status automatically as well, except if I click "refresh" in Zwavejs2mqtt control panel

I would say this is expected. The device is in dimmer mode and should be controlled through the corresponding CC (Multilevel Switch), which should get updated automatically on status changes.

@AlCalzone
after some discussion with Qubino, I've got a dimmer upgraded with the last FW.
And the problem is solved.
I going to send the others.
Thanks for your help :-)


New release?

The current release of reason-cli is 3.3.3, which as far as I can tell, was released in Aug. 2018 (hard to say because the release isn't tagged). For those getting started with Reason, the docs suggest using bs-platform to pull in your version of Reason. As far as I can tell, the latest 5.x release of BuckleScript ships with refmt 3.4.2. Consequently, there's a disparity between what would be installed globally via reason-cli and what a project would get by invoking yarn bsrefmt. I think pushing out a newer update of reason-cli could cut down on the confusion.

Correct! Yeah, reason-cli is mostly not necessary because projects should be declaring tooling as part of their devDependencies to ensure that things "just work" when contributors develop.
However, the one exception to this might be rtop - which I think is really useful as a global package. We were just talking about releasing that as one prebuilt global package. Thoughts?

It's a bit hard for me to say. I don't recall what prompted me to install reason-cli, but I've only been working with Reason for about a month, so it was something fairly recent. I strongly suspect I either read it in a tutorial or as a setup stage for an IDE plugin. If tooling best practices have been changing, I don't know if the word has really gotten out and consequently you have people like me getting old versions and invoking the tools improperly. Maybe a new release that removes refmt would force a resolution to the issue.
I think this may be a proxy issue for a larger problem though, and this may not be the best place to raise it. But, in an effort to help justify what prompted this, I'll lay it out and we can decide where to move the discussion from there. Basically, I had no idea which version of Reason I was running. I saw that 3.5.1 was "released" from the Discord GitHub hook. But, I couldn't tell how to get it: no tagged release, no tarballs, no corresponding packages on NPM that I could find. Moreover, I couldn't tell which version of Reason I was actually running to tell if I should be upgrading.
Someone on Discord suggested to run refmt -v to get the version, which is where I saw the 3.3.3 and I eventually traced my refmt installation back to reason-cli. I was a bit surprised to see I would be running a release of Reason that was essentially 6 releases back and a year old, since I've set this all up in the past month. Then I noticed in my project's package.json, that I really use bsrefmt. Running that, it looks like I'm running Reason 3.4.2. But, it's still all rather confusing. bs-platform doesn't indicate anywhere what version of Reason it's using; it makes no mention of Reason in its devDependencies and it has no runtime dependencies. I suppose the only case left is it's rebundling Reason somehow, which is fine, but doesn't align with your suggestion of projects using devDependencies.
Adding to the confusion, both of my IDE plugins (IntelliJ and VS Code) have refmt support, but I don't really know what versions they're using either (I hope they're just using bsrefmt through my project). Looking briefly, VS Code has an option to specify a path to refmt, but
I think that's another setting that could lead a user into trouble if refmt shouldn't be installed globally.
I appreciate the tight coupling with BuckleScript for basically any React projects, so ensuring compatibility with BuckleScript should be of the utmost importance. On the other hand, I think a more conventional distribution of the toolchain would cut down on confusion. Of course, I may just be the odd case out, in which case feel free to tell me so.

Great feedback. yeah bs bundles reason but it does so very opaquely without any obvious way of knowing which version it uses. I would prefer moving to a model where each project can specify the version in the package.json as long as it never causes breakages with bs.
Bs's vendoring of Reason tends to lag behind the actual releases, which remain available for native Reason/OCaml, and compiling to js via jsoo. The reason-cli essentially lags way behind by nature of being deprecated. I do think we should have a global installation toolchain but you can see how much more complicated it makes it when people are already confused how the other tools work and which versions they pull from. It would be asking for even more confusion. But right now, we're looking for immediate ways to reduce the confusion.

For reference this book is recommending to install reason-cli: http://reasonmlhub.com/exploring-reasonml/ch_getting-started.html @nirvdrum could it be where you saw it ?

And yes I believe releasing rtop as a prebuilt global package alone would be great imho.


feat(rate-limiting,response-ratelimiting) optionally hide client headers

Summary
Add a config option to the rate-limiting and response-ratelimiting plugins to not send the rate-related headers (limit and remaining) normally sent to the client. For publicly exposed APIs, this can be useful for security.
Full changelog

Add boolean config option hide_client_headers
Add related tests

Docs in https://github.com/Mashape/getkong.org/pull/393


Clarify authentication and keys

This article starts with:

You can restrict access to web services and secure the data submitted by clients using secure socket layers (SSL) and key-based authentication.

The article describes only how to setup SSL, but it doesn't say how key-based authentication works and I have a feeling it confuses the SSL certificate private key (in the article only named "key") with the primary/secondary authentication keys that are used within the Authentication header of an HTTP(S) request and which can be defined per deployment.

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

ID: 2d00728b-7e0d-c586-8a37-c2f5dbc8b115
Version Independent ID: 7aa5d565-40a8-7b7c-4e9d-8ecd16829f87
Content: Secure web services with SSL - Azure Machine Learning service
Content Source: articles/machine-learning/service/how-to-secure-web-service.md
Service: machine-learning
GitHub Login: @aashishb
Microsoft Alias: aashishb

@letmaik Thanks for the feedback! We are currently investigating and will update you shortly.

Test

@letmaik I think the wording in question can be rephrased as "secure socket layers (SSL) key-based authentication" instead of "secure socket layers (SSL) and key-based authentication", Since we are not using the keys that are to be passed in authentication headers.
I feel this article may not be the right place to include the working details of key based authentication. We have some detailed examples from Azure key vault service that can be linked in this page though. I would leave this decision to the content author to decide if they can include it. @aashishb Could you please review Maik's comments and update the content accordingly?

Thanks for the feedback @letmaik and @RohitMungi-MSFT
I'll work with @aashishb to publish an update to this document to clarify that it's just SSL and not passing keys in authentication headers, along with pointers to other docs for generic info on keys. We're currently doing some updates to the publishing system, so it will be Monday before the update is published.

This update has been checked in and will be published later today. #please-close

@Blackmist Thanks for the update. @letmaik The requested changes will be published in azure docs later today. We will now proceed to close this thread. If there are further questions regarding this matter, please tag @RohitMungi-MSFT in your reply. We will gladly continue the discussion and we will reopen the issue.


Add --multiple flag

We could add a --multiple flag that, if checked, at the end of each component creation asks the user if he wants to exit.
Otherwise the creator command will be launched once again.
Doing the user is able to easily create more components in a row

Hi Giuliano, if you want now I'm free ✌🏻

Ahaha Fine! You take it from here 😃

Hi @andrearanica are you still interested in working on this issue? Otherwise, I'd leave it for others interested in it and you can take on a new one when you feel to 😄

Yes I was trying to do this issue but I was blocked because I don't know how to continue, if there is someone who wants to do it assign it to him

Okay then :) Thank you for the quick response, I'm reassigning this then :)

Hi @Giuliano1993! I would like to work on this issue.

Perfect @cristinagenduso I'm assigning this to you then! Thanks!


Create a Code of Conduct file

We also need the CONTRIBUTING.md, we can adapt this file from 522 and 521 projects. @manvirsingh96

Sure I will take care of it!

#7


[BUG]

Describe the bug
call erc20's method balanceOf occur errors
error msg:
Internal Error - [-32000] Server error: The node reached its limits. Try again later. More details: StorageInconsistentState("Trie node missing")
eg:
erc20 contract:0xdDAdf88b007B95fEb42DDbd110034C9a8e9746F2
addr:0x1aE62F41dd7ABFd106234564A97f70c89886CB93
To Reproduce
Steps to reproduce the behavior, e.g.:
use multicall to call erc20's balanceOf
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Technical Details (please complete relevant fields):

NEARcore commit/branch
Rust version (if local)
Docker (if using docker)
Mainnet/Testnet/Betanet/local
Name of the dApp used
Wallet name and version
Browser name and version
Tokens used
RPC Public/Private
Technology used (JS, TS, etc.)
Gas related issue — Yes/No

Additional context
Add any other context about the problem here.

This repository is deprecated. If issue still persists, please reopen it on a new repository of Aurora Relayer v2.


Music share Bug on Android v8.1.0

Describe the bug
app crashes when click on share .
To Reproduce

open the app
try to share music from home page
note the bug.

Expected behavior
I expected that the app would not crash when I click on "share"option.
Device:

OS: Android 8.1.0
appVersion <IP_ADDRESS>

Recording Of The Bug:
https://youtu.be/cbUmXtahWI4

You can try it with the new version, this function works fine on my device, or you can grab the log


Update builder specs to include deneb types

The builder specs still include capella definitions. I believe we can modify them to update the deneb specs. I want to understand if there is a reason behind not updating the builder.md file. If it is required to update, I m willing to take it up!

I just don't think anyone has gotten around to it -- please feel free to open a PR!

Thanks for letting me know this @ralexstokes ! Will work on this


Incorrect argument pointer creation

From https://bugs.immunefi.com/dashboard/submission/32859
Brief/Intro
compile_expression_to_ptr treats all arguments as pointers, but copy type arguments will be values.
Vulnerability Details
Sway allow users to take reference of values. The references may then be passed around and dereferenced later. However, when creating a pointer to a function argument, sway incorrect assumes all arguments are already pointers. If a pointer is a copy type, such as u64, u32, u16, u8, the compiler casts the integer directly to a pointer, which is incorrect.
let ptr_val = if is_argument {
    // The `ptr_to_int` instructions gets the address of a variable into an integer.
    // We then cast it back to a pointer.
    let ptr_ty = Type::new_ptr(context, ty);
    let int_ty = Type::get_uint64(context);
    let ptr_to_int = self.current_block.append(context).ptr_to_int(val, int_ty);
    let int_to_ptr = self
        .current_block
        .append(context)
        .int_to_ptr(ptr_to_int, ptr_ty);
    int_to_ptr
} else {
    ...
}

Confusion between values and pointer are dangerous because they will lead to incorrect execution results.
Impact Details
As usual, it is hard to come up with a precise impact estimation of undefined behavior because it depends on what code the user writes. The best case scenario would be contracts that run into those bugs getting bricked, and the worst case scenario would be that incorrect program behaviors lead to loss of funds.

The assert fails because get_ref casts the u64 to a u64 pointer directly, so *a will actually read data from the address 100.
#[inline(never)]
fn get_ref(n: u64) -> &u64 {
    &n
}

#[test]
fn test() -> () {
    let a = get_ref(100);

    assert(*a == 100);
}

We also provide a test to show how this bug can turn into a loss of funds bug. To run this as a unit test with forc test, you need to modify the test cli command to provide more input coins, the default is 1.
contract;

use std::hash::Hash;
use std::{
    call_frames::msg_asset_id,
    context::msg_amount,
};

const ADDRESS_ADMIN = Address::from(0x0000000000000000000000000000000000000000000000000000000000000003);

storage {
    bank: StorageMap<Address, u64> = StorageMap {},
    fee: u64 = 0,
}

struct Request<A, F, T> {
    amount: &A,
    from: &F,
    to: &T,
}

impl<A, F, T> Request<A, F, T> {
    fn new(amount: A, from: F, to: T) -> Request<A, F, T> {
        Request {
            amount: &amount,
            from: &from,
            to: &to,
        }
    }
}

abi Bank {
    #[payable]
    #[storage(read, write)]
    fn deposit_to(to: Address) -> ();

    #[storage(read, write)]
    fn withdraw_to(from: Address, to: b256, amount: u64) -> u64;
}

impl Bank for Contract {
    #[payable]
    #[storage(read, write)]
    fn deposit_to(to: Address) -> () {
        if msg_amount() == 0 {
            log("Amount is zero");
            revert(1);
        }

        if msg_asset_id() != AssetId::base() {
            log("Not base asset");
            revert(2);
        }

        storage.bank.insert(to, msg_amount());
    }

    #[storage(read, write)]
    fn withdraw_to(from: Address, to: b256, amount: u64) -> u64 {
        if let Some(value) = storage.bank.get(from).try_read() {
            let request = Request::new(amount, from, to);
            if value < amount {
                log("Insufficient balance");
                revert(3);
            }
            let withdrawn = distribute_withdrawal(request, value);
            storage.bank.insert(from, value - amount);
            withdrawn
        } else {
            log("Failed to get value from bank");
            revert(4);
        }
    }
}

#[storage(read, write)]
fn distribute_withdrawal(request: Request<u64, Address, b256>, value: u64) -> u64 {
    if (*request.from != ADDRESS_ADMIN) {
        storage.fee.write(storage.fee.read() + *request.amount / 2);
        __smo(*request.to, "withdraw", *request.amount - *request.amount / 2);
        *request.amount - *request.amount / 2
    } else {
        __smo(*request.to, "withdraw", *request.amount);
        *request.amount
    }
}

#[test]
fn arg_ref_casting_to_loss_of_funds() {
    const ADDRESS_ALICE = Address::from(0x0000000000000000000000000000000000000000000000000000000000000001);
    const ADDRESS_BOB   = Address::from(0x0000000000000000000000000000000000000000000000000000000000000002);

    let val: u64 = 100000;
    let ptr = __addr_of(&val);
    let ptr_int = asm(ptr: ptr) {
        ptr: u64
    };
    assert(ptr_int < 100000 / 2); //check profibility

    let bank = abi(Bank, CONTRACT_ID);
    bank.deposit_to{asset_id : AssetId::base().into(), coins: ptr_int}(ADDRESS_ALICE);
    bank.deposit_to{asset_id : AssetId::base().into(), coins: 100000}(ADDRESS_BOB);
    let withdrawn = bank.withdraw_to(ADDRESS_ALICE, 0x0000000000000000000000000000000000000000000000000000000000000010, ptr_int);
    assert(withdrawn > ptr_int); //assert profit
}

This will be fixed by https://github.com/FuelLabs/sway/issues/6351


Automate Versioning (TS)

Usage: $ yarn run update-version 'X.X.X' in root directory.

Awesome, thanks for refactoring this to TS! Will merge this soon and use it for the 0.7.0 mainnet version update.


[EN] Feedback for: /web/tools/chrome-devtools/profile/network-performance/resource-loading?hl=en

What happened to the window measurements that would appear on the top right of the screen when you resized your window? I used this feature almost everyday. It'll be a big disadvantage to remove it. Thanks! -Joe R

Hi @joero24,
This is a known bug that apparently has been fixed already: https://groups.google.com/forum/#!topic/google-chrome-developer-tools/fbueXIfX09k
This repo is for DevTools docs. crbug.com or the mailing list are better places to discuss devtools features / bugs.


[New game]:  Unruly Tower

🎮 Game Request
I would like to contribute a new game under the GSSoc label.
In this game there will an object (object can be a man or ghost) who is climbing up the tower.
You have to enter space to jump and use arrows to move left and right.
Point down the features
Game
Select program in which you are contributing
GSSoC23
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

Hey @Keya17Desai !
Thank you for raising an issue 💗
You can self assign the issue by commenting /assign in comment 😀
Make sure you follow CODE OF CONDUCT and CONTRIBUTING GUIDELINES 🚀
Don’t Forget to ⭐ our GameZone🎮
Make sure you join our Discord🕹

Hello @Keya17Desai, Time's Uppp!⏰
Sorry for closing your issue!
But it's more than a week since we haven't received anything from your side 😢 .
Come up with new ideas, create a new issue and make sure you finish it within a week! 🔥
All the best! 🚀
Happy Hacking! 💗

Hey @Keya17Desai ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇


intermediateTransitionTo once inside an Engine

An edge case we hadn't considered has cropped up.
So imagine we're already in an Engine. We know that any intermediateTransitionTo needs to be synchronous, but we also know that any route in an Engine is always loaded asynchronously (even if it is just Promise.resolve()).  Thus, if you’re in an Engine and do an intermediateTransitionTo (such as to a loading state/route) then you're gonna have a bad time.
One way to fix this would be to return handlers synchronously, once you are in an Engine. This can be accomplished by setting a flag on the engineInfo object associated with each Engine route.
Alternatively, we can exempt loading/error routes from the lazy loading semantics, but this seems brittle.
I'm open to other suggestions, but this is what I have so far.
cc @nathanhammond @rwjblue

Fixed via #246.


Weird beam search outputs

While playing with it I've stumbled upon strange behavior that might indicate that there is some issue when the beam search is used.
I've started the server with: python3 -m vllm.entrypoints.api_server --model mosaicml/mpt-30b
When I request:
curl http://vllm.ai/generate \
    -d '{
        "prompt": "San Francisco is a",
        "max_tokens":64,
        "temperature": 0,
        "n":1
    }'

I get more or less expected answer:
{"text": ["San Francisco is a city of neighborhoods, and each has its own character. The following is a brief description of the most popular areas.\n\n\u2022 **Downtown** (also called SoMa, for South of Market) is the city's financial district, with a few hotels, restaurants, and shops.\n\n\u2022 **Union Square"]}

However when I use beam_search:
curl http://vllm.ai/generate \
    -d '{
        "prompt": "San Francisco is a",
        "max_tokens":64,
        "use_beam_search": true,
        "temperature": 0,
        "n":4
    }'

I get:
{"text": [
  "San Francisco is a very city, visit each with its own personality and and The\n\n###  Fisherman's Wharf**Fisherman's Wharf is the city's is the  | ###  Top Sights  | ###  Sights  | ###  Eating  | ###  Drinking & Night",
   "San Francisco is a great place to live, but it's character and flavor. TheTheTheFisherman's Wharf\n\nThe city\u00bb  Fisherman's Wharf  is the city's most aSights  | ###  Activities  | ###  Courses  | ###  Festivals  |",
  "San Francisco is a big that for be a and and play distinct character.\n\n###  Neighborhoods at a Glance\n\n###  Name  | ###  Character\n\n---|---\n\nDowntown &\n\n---|---|---\n\nDowntown\n\n---|---|---|---Eating  | ###  Drinking & Nightlife",
 "San Francisco is a city of neighborhoods, and work, and play. charm. The\u2022\u2022 **Downtown in Brief & the Piers\n\nThe, San Francisco's most(Click here ) is theThe Marina  | The city'sEating  | ###  Drinking & Nightlife  | ###  Entertainment"
]}

I'm not sure but it looks like the answers are corrupted ot intermingled after certain number of tokens (like cumming from different answers?).
Interestingly enough the problem manifest only with n>2. I've tested for n=3, n=4 and n=5, for n=2 it looks correct:
{"text": [
"San Francisco is a great place to live, but it's not a great place to work. It's a city that's beautiful culture, its beautiful architecture, and its many attractions. Whether you're looking for a fun day trip or a longer stay, San Francisco has something for everyone. Here are some of the best things to do in",
"San Francisco is a city of for be a and it is also a great place to visit. The city is known for its diverse neighborhoods, its unique architecture, and its beautiful natural setting. There are visiting to explore the city's many neighborhoods, or you're just looking for to offer everyone\nThe just a few of the many things to"
]}

Originally posted by @emsi in https://github.com/vllm-project/vllm/issues/334#issuecomment-1619134531

I also found that beam_search always get much worse results than greedy decoding.

meeting the same phenomenon in beam search when n>2... anyone get solutions for it?

anyone solve this question?

Fixed by #857. Please raise a new issue if there is any new error.


Remove obsolete references to "flutter refresh" in hello_services

Fixes https://github.com/flutter/flutter/issues/6947


[BEAM-2477] BeamAggregationRel should use Combine.perKey instead of GroupByKey

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

[ ] Make sure the PR title is formatted like:
[BEAM-<Jira issue #>] Description of pull request
[ ] Make sure tests pass via mvn clean verify.
[ ] Replace <Jira issue #> in the title with the actual Jira issue
number, if there is one.
[ ] If this contribution is large, please file an Apache
Individual Contributor License Agreement.

R: @XuMingmin @xumingming @takidau

Changes Unknown when pulling 2ed6075ece20b553047e5ee3918460ea4e2c995f on JingsongLi:BEAM-2477 into ** on apache:DSL_SQL**.

retest this please

retest this please

Changes Unknown when pulling 2ed6075ece20b553047e5ee3918460ea4e2c995f on JingsongLi:BEAM-2477 into ** on apache:DSL_SQL**.

Thanks a lot, nice improvement. LGTM. Will merge as soon as I can.

Merged, feel free to close. Thank you!


tiktok dowland

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm asking a question and not reporting a bug or requesting a feature
[X] I've looked through the README
[X] I've verified that I have updated yt-dlp to nightly or master (update instructions)
[X] I've searched known issues and the bugtracker for similar questions including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue

Please make sure the question is worded well enough to be understood
when i try to dowland video
eroor :
2024-12-22 00:41:00,566 - aiogram.event - INFO - Update id=982902920 is handled. Duration 192 ms by bot id=7787285309
ERROR: [TikTok]<PHONE_NUMBER>019449622: Video not available, status code 10204; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[X] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
No response

Please share complete verbose output
IIRC, status code 10204 means the video is blocked in your region
We should probably catch this and raise_no_formats(expected=True)


Tracker expects to be attached to a player

Reported by Sirus in the Hideous Destructor discord server.
Mod crashes with an address zero error when loaded with another HD mod that uses the HDSpectator class. Suspect this is because the tracker expects to be attached to an HDPlayerPawn, and would probably manifest similarly in a multiplayer game.

Proposed solution: Add a null-pointer check to the tracker.

Yeah that's the intended fix, I just haven't gotten around to doing it yet :stuck_out_tongue:
Committing now.

Fixed in c3d8130e414d2829deba61e71d15a46c141b1f52


Gradle dependency locking > inconsistent dependencies resolution with/without --write-locks option

I am using Gradle 6.2 (tried with 6.3 as well).
I have an issue with a transitive dependency (org.aspectj:aspectjrt:1.9.5) not being included in the locked dependencies.
I have activated dependency locking like this:
dependencyLocking {
    lockAllConfigurations()
}

I have run the following command lines:
gradle dependency insight --dependency aspectjrt --configuration runtimeClasspath --scan
and
gradle dependencyInsigh --dependency aspectjrt --configuration runtimeClasspath --write-locks --scan
When I use the '--write-locks' parameter the aspectjrt is not resolved.
When I don't use it is resolved and fails because it is not part of the lock.
It is not the first time I observe this kind of issue I had the same with JUnit platform at one point (solved it by upgrading JUnit).
I can't provide you access to source code but I can provide you with more information by email if you wish (build scans).

I've reached out on the Gradle community slack to get a build scan.
If possible, could you share here the report output of the dependencyInsight task?

So the underlying issue is linked to excludes and in particular having different excludes on edges that request the same version of a dependency.
More investigation is required to assess how this could be fixed and at which cost, mostly performance wise.


must_be/2 is slow

Hi, I just tried:
% numbervars2(+Term, +Integer, -Integer)
numbervars2(T, N, M) :-
   term_variables(T, L),
   numbervars_list(L, N, M).

% numbervars_list(+List, +Integer, -Integer)
numbervars_list(['$VAR'(N)|L], N, M) :-
   H is N+1,
   numbervars_list(L, H, M).
numbervars_list([], N, N).

?- time((between(1,1000000,_), numbervars(f(X,g(Y,X),Y), 0, M), fail; true)).
Time elapsed 8.92 secs
   true.
?- time((between(1,1000000,_), numbervars2(f(X,g(Y,X),Y), 0, M), fail; true)).
Time elapsed 1.39 secs
   true.

It seems that the must_be/2 eats a lot of time, its even not the catch/3
inside the numbervars/3 implementation. One can try:
?- time((between(1,1000000,_), numbervars_(f(X,g(Y,X),Y), 0, M), fail; true)).
Time elapsed 7.76 secs
   true.

Somehow I have the feeling must_be/2 is even not necessary,
since numbervars_list/3 calls H is N+1 which would anyway catch
a non-number, but it would also allow a float, so there is a little dilemma.

Yes, must_be/2 & can_be/2 from error.pl are slow. I will change to use my
own implementations in the builtins.
On Sun, Jun 5, 2022 at 9:38 PM Jean-Luc-Picard-2021 <
@.***> wrote:

He I just tried:
% numbervars2(+Term, +Integer, -Integer)
numbervars2(T, N, M) :-
term_variables(T, L),
numbervars_list(L, N, M).
% numbervars_list(+List, +Integer, -Integer)
numbervars_list(['$VAR'(N)|L], N, M) :-
H is N+1,
numbervars_list(L, H, M).
numbervars_list([], N, N).
?- time((between(1,1000000,), numbervars(f(X,g(Y,X),Y), 0, M), fail; true)).
Time elapsed 8.92 secs
true.
?- time((between(1,1000000,), numbervars2(f(X,g(Y,X),Y), 0, M), fail; true)).
Time elapsed 1.39 secs
true.
It seems that the must_be/2 eats a lot of time, its even not the catch/3
inside the numbervars/3 implementation. One can try:
?- time((between(1,1000000,), numbervars(f(X,g(Y,X),Y), 0, M), fail; true)).
Time elapsed 7.76 secs
true.
—
Reply to this email directly, view it on GitHub
https://github.com/trealla-prolog/trealla/issues/584, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFNKSESVSBADBZB6JSSQFJTVNSGTFANCNFSM5X45VVIA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

I think must_be/2 can be made faster, it has must_be_(type, Type),
but the type is known. Wouldn't it be valid to call must_be_/2 directly
in trusted code?
Not sure what the way out is...