Investigate removing requirement for UAC admin rights on JMM Server

Reported by werndlymob, Jul 29, 2012
Investigate removing requirement for UAC admin rights on JMM Server
http://forum.team-mediaportal.com/threads/my-anime-3.107475/page-19#post-886628
Jan 14, 2013  Craige1Emmott
It looks to me its the update program that needs the admin rights. Tho if you can remove the admin requirements from the whole program and just invoke the update process with admin rights, that should be an easy fix(cross fingers). The fix for the server uac should also work on the jmm desktop client, solving yet another issue with jmm needing admin rights when running on a shared PC(not good program ethics).

Was about to create a new ticked about this.  Would be very good to get JMM to stop creating files in "Program Files".

It adds the necessary "netsh http add urlacl" commands to the installer so that the Server is able to register the URLs. It registers them for the group Local, so anybody with an account on the computer should be able to bring up the server.

A bit of new info on this, I've tried the following, launched JMM Server with "Run as Administrator" changed port from 8111 to 8113 and back which led to urlacl rules being recreated, I checked the rules with "netsh http show urlacl", rules created accessible to user Everyone.
Then trying to run server as user I just get "Access denied" looking into the log shows that the issue is in ServiceHost. As long as we use ServiceHost which in turn uses http.sys for port sharing, it is impossible to make it run as a user.
I tested on Windows 10 Home.

It just a blind shot but maybe moving to 'Nancy' would help ?

As long as we use ServiceHost which in turn uses http.sys for port sharing, it is impossible to make it run as a user.
This statement is incorrect and not specific enough it is not the ServiceHost that is preventing it but the http:// urls, if we switch to net.tcp:// this issue should be resolved so it doesn't look like we have to rewrite entire service part as it would be with Nancy.

Better wait till we move JMMServer to a Windows service (In case of
WIndows). Network and system account have the necessary rights.
On Fri, Jul 1, 2016 at 3:16 AM, hidden4003<EMAIL_ADDRESS>wrote:

As long as we use ServiceHost which in turn uses http.sys for port
sharing, it is impossible to make it run as a user.
This statement is incorrect and not specific enough it is not the
ServiceHost that is preventing it but the http:// urls, if we switch to
net.tcp:// this issue should be resolved so it doesn't look like we have to
rewrite entire service part as it would be with Nancy.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/japanesemediamanager/jmmserver/issues/20#issuecomment-229862871,
or mute the thread
https://github.com/notifications/unsubscribe/ABHDbXqR7Sa3Ht8dnoSUjVjmRi3mL5Aoks5qRLDGgaJpZM4CYnVu
.

For the time being this is not possible as JMM Server needs Admin privileges to function correctly. I'm removing this from the 3.6 milestone but keeping it open for further investigation.

Done.


Best node.js version for this module

Hi all, i'm using this module to implement push notification on iOS platform, but sometimes i see that i have sent 1000 requests but only get responses less than of them. Now my solution is set a function call after one minutes to check if finish or not. And i realise that version of node.js is the problem. 6.3.0 always have problem. So i wanna ask if someone have the same problem with me, or any suggest for me about this problem. Thanks so much, sorry cause my english not good :(

Looking at some other bugs we have, it would appear that node 6.3.0 has caused some issues. Whether it's node-http2 bugs that were just exposed by node 6.3.0, or bugs in node 6.3.0 is to be determined. For now, I would stick with node 6.2.x or the LTS (currently 4.4.7)

Just wondering if could be possible merging this module into official Nodejs' "http" one...


help: proxy to secured docker registry container

problem statement

i am unable to proxy to my internal docker registry container

context

registry must secure itself to enable auth.  therefore, I must configure the registry container to consume a cert of its own

my cert are for my *.TLD, but the proxied URI is probably not.

i see that this image supports "basic auth,"  but it's not clear how auth here in the proxy tells the registry that "yes, this user logged in."  reference links:

https://docs.docker.com/registry/recipes/nginx/
https://github.com/jwilder/nginx-proxy#basic-authentication-support

any tips would be appreciated!  thanks!
# docker-compose.yaml
version: '2'
services:
  # service proxy
  nginx-proxy:
    image: jwilder/nginx-proxy
    container_name: nginx-proxy
    ports:
      - "80:80"
      # - "443:443"
    volumes:
      - /var/run/docker.sock:/tmp/docker.sock:ro
      # - /www/certs/:/etc/nginx/certs
    environment:
      - DEFAULT_HOST=$HOSTNAME
    restart: always

  # docker registry
  docker_registry:
    image: registry:2
    expose:
      - 5000
    restart: unless-stopped
    # volumes:
      # - /www/registry/auth:/auth
      # - /www/registry/registry:/var/lib/registry
      # - /www/certs:/certs
    environment:
      - VIRTUAL_HOST=registry.$HOSTNAME
      - VIRTUAL_PORT=5000
      # - HTTPS_METHOD=noredirect
      # - STORAGE_PATH=/www/registry
      # - CERT_NAME=server
      # - REGISTRY_AUTH=htpasswd
      # - REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm
      # - REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd
      # - REGISTRY_HTTP_TLS_CERTIFICATE=/certs/server.crt
      # - REGISTRY_HTTP_TLS_KEY=/certs/server.key
      # - REGISTRY_HTTP_SECRET=<SOME_SECRET>

the solution was to use Basic Authentication support and authenticate at the proxy and not run an authenticated registry.

Hi @cdaringe it seems that you solved your problem. I'm having the same troubles, so do you think you could post a working version of your docker-compose.yml ? Thanks :)

hey @npotier, my code is private ATM, so maybe i could slap something together later, but pretty much just run the registry insecurely (don't configure any SSL or auth bits), and follow https://github.com/jwilder/nginx-proxy#basic-authentication-support

what i dont like about this strategy is that if you misplace or misconfigure your someservice.domain's htpsswd, then your registry gets exposed wide open.  it would be nice if we could add to this package a FORCE_BASIC_AUTH flag that redundantly exposure in the event of a misconfig.  I feel like given the ease of making a mistake, a failsafe is warranted

Thank you for your help and questions @cdaringe and @npotier. One year and a half later, this issue helped me.
An easy way to prevent any unexpected exposure of the container is to just let the proxy forward the request and do not expose any port on the host machine. The proxy will automatically pick the port 5000.
I was able to configure a secured registry easily with that configuration. If it can help others as well, here is my docker-compose.yml file (this applies for docker-compose v2 only, I'm not up to date):
version: '2'

services:

  proxy:
    container_name: nginx-proxy
    image: jwilder/nginx-proxy:alpine-0.6.0
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - /var/run/docker.sock:/tmp/docker.sock
      - /var/docker/proxy/htpasswd/:/etc/nginx/htpasswd
      - /var/docker/proxy/certs:/etc/nginx/certs
      - /var/docker/proxy/vhost.d:/etc/nginx/vhost.d
      - /var/docker/proxy/html:/usr/share/nginx/html
    labels:
      - "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true"

  letsencrypt:
    container_name: lets-encrypt-companion
    image: jrcs/letsencrypt-nginx-proxy-companion:v1.6
    volumes:
      - /var/docker/proxy/certs:/etc/nginx/certs:rw
      - /var/run/docker.sock:/var/run/docker.sock:ro
    volumes_from:
      - proxy
    restart: always

  registry:
    container_name: docker-registry
    image: registry:2.6.2
    environment:
      VIRTUAL_HOST: registry.my-domain.com
      LETSENCRYPT_HOST: registry.my-domain.com
      LETSENCRYPT_EMAIL<EMAIL_ADDRESS>
      REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /var/docker/registry
      REGISTRY_HTTP_SECRET: whateveryouwantgoeshere

I created a file called registry.my-domain.com in the directory /var/docker/proxy/vhost.d with the following content to allow the uploading of images with a size up to 512m.
client_max_body_size 512m;

I eventually created a htpasswd file called registry.my-domain.com in /var/docker/proxy/htpasswd to enable user auth
The TLS part is automatically managed by the letsencrypt companion for me

@Ovski4 there is a very obnoxious edge case with this configuration that needs an additional line in your docker-compose.yml
version: '2'

services:

  proxy:
    container_name: nginx-proxy
    image: jwilder/nginx-proxy:alpine-0.6.0
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - /var/run/docker.sock:/tmp/docker.sock
      - /var/docker/proxy/htpasswd/:/etc/nginx/htpasswd
      - /var/docker/proxy/certs:/etc/nginx/certs
      - /var/docker/proxy/vhost.d:/etc/nginx/vhost.d
      - /var/docker/proxy/html:/usr/share/nginx/html
    labels:
      - "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true"

  letsencrypt:
    container_name: lets-encrypt-companion
    image: jrcs/letsencrypt-nginx-proxy-companion:v1.6
    volumes:
      - /var/docker/proxy/certs:/etc/nginx/certs:rw
      - /var/run/docker.sock:/var/run/docker.sock:ro
    volumes_from:
      - proxy

  registry:
    container_name: docker-registry
    image: registry:2.6.2
    volumes:
      - /var/docker/registry:/var/docker/registry       # this line here
    environment:
      VIRTUAL_HOST: registry.my-domain.com
      LETSENCRYPT_HOST: registry.my-domain.com
      LETSENCRYPT_EMAIL<EMAIL_ADDRESS>
      REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /var/docker/registry
      REGISTRY_HTTP_SECRET: whateveryouwantgoeshere

The registry will attempt over a period of 10 seconds 3 times (30 seconds in total) to look for a registry at REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY inside of itself, but it does not exist because it must be created for. It will then fail. What must be done is add a volume on your host so that this path is created. This is a similar issue for any other storage service (e.g. S3 buckets).
You may not have ran into this issue because if you push an image within 30 seconds you force the registry contain to make that path, creating the registry. However this volume is not persistent if you do not define it in relation to the host.


[bug fix] Import module types with optional arguments

When importing a module type containing a function value taking an
optional argument of type t, the imported type for the argument was
t option instead of t.

Sorry if this isn't the right place to ask, but are there any plans to cut an opam release with this bugfix?  Asking because I just ran into precisely this bug myself when using the opam release of ppx_import! :slightly_smiling_face:

Hi @MattWindsor91 , sure, I'll push a release right now. @whitequark this PR was missing a CHANGES.md entry, IMVHO maybe we should require PRs to always modify that? [We could add a CI check for example]

maybe we should require PRs to always modify that? [We could add a CI check for example]

Seems heavy-handed... Not sure what I think about it.

For smaller projects like this one I've been writing release notes myself at release time, mentioning only the PR that were not purely internal (that I thought may affect the users of the software). It's generally 3/4 things to mention each release, so fine. It's less hassle than forcing the users to do this -- of course if users include a Changelog entry in their PR, that's swell too.


BUG: variables outside won't update in DNNLinearCombinedRegressor

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Mac 10.11.6
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): 1.3.0
Python version: 3.5
Bazel version (if compiling from source): N/A
CUDA/cuDNN version: N/A
GPU model and memory: N/A
Exact command to reproduce: N/A

Describe the problem
Variables outside won't update for DNNLinearCombinedRegressor, while everything is OK for DNNRegressor.
The bug stems from that only variables in dnn / linear scope will be updated in the code below:
https://github.com/tensorflow/tensorflow/blob/107cc777af7880c140d089e44ad898a6ba929286/tensorflow/python/estimator/canned/dnn_linear_combined.py#L214-L227
Source code / logs
This is a tiny code to see whether w is updated or not.
import numpy as np

import tensorflow as tf
from tensorflow import feature_column as fc
from tensorflow.python.summary import summary

tf.logging.set_verbosity(tf.logging.DEBUG)

BATCH_SIZE = 4

def input_fn():
    x = tf.constant(np.random.randn(BATCH_SIZE, 4), dtype=tf.float32)

    w = tf.Variable(np.array([1, 2, 3, 4]).reshape((4, 1)), dtype=tf.float32, name="test/w")
    summary.scalar("test/w_0_0", w[0][0])
    summary.scalar("test/w_1_0", w[1][0])
    summary.scalar("test/w_2_0", w[2][0])
    summary.scalar("test/w_3_0", w[3][0])

    y = tf.matmul(x, w)
    label = tf.constant(np.random.randint(0, 1, size=(BATCH_SIZE,)))

    return {"y": y}, label

f = fc.numeric_column("y")

def gen_estimator(cls, model_dir):
    if cls == "dnn":
        return tf.estimator.DNNRegressor(
                feature_columns=[f],
                hidden_units=[2],
                model_dir=model_dir)
    else:
        return tf.estimator.DNNLinearCombinedRegressor(
                dnn_feature_columns=[f],
                dnn_hidden_units=[2],
                model_dir=model_dir)

gen_estimator("dnn", model_dir="/tmp/tf/facai/test_dnn").train(input_fn, steps=1000)
gen_estimator("deep_and_wide", model_dir="/tmp/tf/facai/test_wide_and_deep").train(input_fn, steps=1000)

Results

For DNNRegressor, w variables are updated:

For DNNLinearCombinedRegressor, w keeps constant:

Hi, @ispirmustafa . I am not sure whether I understand correctly, could you take a look (or verify)? Thanks.

It has been 14 days with no activity and the awaiting tensorflower label was assigned. Please update the label and/or status accordingly.

Hi @facaiy ,
It is not recommended to have variables within input_fn.


How to organize tasks when mixed ditros

Yo Ox,
I was wondering, how should we organize tasks when dealing with multiple distros ?
You know, with centos_7.yml, ubuntu_18.yml etc files, because for some tasks packages only is not enough :-( you have to deal with paths or services also...

Hello Johnny,
Sorry for the (big) delay.
I think we can create some main file with all tasks using vars from roles, and then only create specific tasks files when we have actions for only one OS.
I will also work on replacing old with_items by loops. If you can also use these now :-)
Cluster should be up soon, are you ready on Ubuntu side ?
Ox

Always late man, as usual :-p
Ok, thanks. I will do it this way, as we discuss yesterday. I am almost done on Ubuntu, just some strange very long hang during OS install, don't know what is going on, no messages from installer. But after 10min install goes on.
Do you know when Tumulus cluster will be up?

Yo Ox,
I could reach management. Wasn't expecting aarch64 system, I will rebuild packages for this platform. So mixed aarch64/x86_64 cluster, with Ubuntu and Centos systems. Lot of fun in perspective :heart_eyes:
I agree with roles, let's split them. Its boring to handle these big CORE/ADDON stuff. Can you do it?

Hello Johnny,
OK, I will do that. I will also update ansible.cfg file to handle these new PATH, and same for the documentation.
Ox

Hello Johnny,
Done !
Ox


[WIP] Data flows with Labels and Attributes

Still need to clean up the UI/CSS, but it seems to be working functionally

[ ] Missing tests on the new flow api routes

Fixes #46


Clique networks do not handle ttd and finalized events.

In TransitionBesuControllerBuilder, when we make the DefaultSynchronizer and EthProtocolManager we register them as event listeners with the MergeContext. CliqueConsensus does not implement MergeContext, so that can't be done on Clique networks.

Closing as 'no longer an issue'.


Inconsistent ordering on elements of union and intersection types

import 'reflect-metadata'
import { reflect } from 'typescript-rtti'

class B {
  async floatNullable(): Promise<number | null> {
    return 10
  }
}

let bClass = reflect(B)

bClass
  .getMethod('floatNullable')
  .returnType.as('generic')
  .typeParameters[0].as('union')
  .types.forEach((t) => {
    console.log(t)
    console.log(t.isNull())
  })

outputs:

shouldn't the second console log print true for the first type in the union?
Also why is the order of types different than the one in the source code? Why is number the second in the array? Wouldn't it be nicer to retain order same as in the source?
tested with 0.4.19

OK so this is a known thing. Typescript does not provide the element types of a union or intersection type in a defined order. I'm not sure why this is, or if there is a way to improve this. You can of course work around it by searching the array for the type you are interested in for now

I'd like to dig into this more, but since it has a solid workaround it isn't the biggest priority. If you are so inclined as to dig in and debug this, the unit tests around union types can be easily debugged in VS Code (the launch.json is all set) to see if there's some way to ensure ordering given the ts.Type instances involved.

The relevant code is here: https://github.com/typescript-rtti/typescript-rtti/blob/main/src/transformer/type-encoder.ts#L107

Oh wait isNull() should still be returning true here though, that's a proper bug

v0.5.0 has the fix for #32 (isNull()). Checks for true, false and undefined were also affected by that bug since those types were changed to use TΦ type indicators instead of being literal null/undefined/true/false values in the emitted type values.


[ Backport 1.19 ] - etcd subcommands

Proposed Changes

Backports the etcd subcommand functionality found in mastser to the release-1.19 branch.
Types of Changes

Verification

Linked Issues

Further Comments

This is only relevant for 1.21 and newer.


Xamarin.iOS: A Microsoft Azure Mobile Services assembly for the current platform was not found

Hi,
I'm trying to add MobileServiceClient to a Xamarin.iOS project but keep getting the exception above.
As soon as the code calls
_client = new MobileServiceClient( mobileServiceUri );
I get the "A Microsoft Azure Mobile Services assembly for the current platform was not found. Ensure that the current project references both Microsoft.WindowsAzure.Mobile and the following platform-specific assembly: Microsoft.WindowsAzure.Mobile.Ext."
I am using Microsoft.Azure.Mobile.Client 3.0.3 from NuGet, and the Microsoft.WindowsAzure.Mobile & Microsoft.WindowsAzure.Mobil.Ext dlls are referenced in the project references.
I've tried changing the iOS target versions, as well as manually adding references from the lib/monotouch folder (as opposed to lib/Xamarin.iOS10) but to no avail.
Any ideas?
Thansk!
Marco

Do you have a project we can look at that exhibits this behavior?  Also, are you building this on Mac (if so, Xamarin Studio or VS for Mac and version of the build?) or PC (in which case, VS version and Xamarin version is needed, plus the Xamarin version on your connected Mac).

Hi Adrian, thanks for the prompt response!
Attached is a test project, which is basically a vanilla iPhone app + the Microsoft.Azure.Mobile.Client package. The error occurs when trying to initialise MobileServiceClient inside AppDelegate.FinishedLaunching.
I am working on Xamarin Studio on Mac. Details below:
=== Xamarin Studio Indie ===
Version 6.1.2 (build 44)
Installation UUID: 8b7332c0-48f1-4e69-80d9-a81413af849c
Runtime:
Mono 4.6.2 (mono-4.6.0-branch/08fd525) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
Package version: 406020007

=== NuGet ===
Version: <IP_ADDRESS>
=== Xamarin.Profiler ===
Not Installed
=== Apple Developer Tools ===
Xcode 8.1 (11544)
Build 8B62
=== Xamarin.Mac ===
Version: <IP_ADDRESS> (Xamarin Indie)
=== Xamarin.Android ===
Version: <IP_ADDRESS> (Xamarin Indie)
Android SDK: /Users/marco/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
2.3   (API level 10)
4.0.3 (API level 15)
4.1   (API level 16)
4.2   (API level 17)
4.4   (API level 19)
5.0   (API level 21)
5.1   (API level 22)
6.0   (API level 23)
SDK Tools Version: 25.1.6
SDK Platform Tools Version: 24.0.0
SDK Build Tools Version: 23.0.2
Java SDK: /usr
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
=== Xamarin Android Player ===
Not Installed
=== Xamarin.iOS ===
Version: <IP_ADDRESS> (Xamarin Indie)
Hash: 44931ae
Branch: xcode8.1
Build date: 2016-11-01 20:52:28-0400
=== Xamarin Inspector ===
Version: <IP_ADDRESS>
Hash: 1f3067d
Branch: master
Build date: 15/11/2016 21:13:59
=== Build Information ===
Release ID: 601020044
Git revision: 0ccfcd52b95305ebd5b7eca0d88c1017035910ae
Build date: 2016-10-28 15:12:43-04
Xamarin addins: a39a869d8a78d87bdc6775f696c13a4cc9024501
Build lane: monodevelop-lion-cycle8
=== Operating System ===
Mac OS X 10.12.1
Darwin MacBook-Pro-6.local 16.1.0 Darwin Kernel Version 16.1.0
Thu Oct 13 21:26:57 PDT 2016
root:xnu-3789.21.3~60/RELEASE_X86_64 x86_64
=== Enabled user installed addins ===
NuGet Package Management Extensions 0.11
Xamarin Inspector <IP_ADDRESS>
Test.zip

I have also tried compiling the package myself but keep getting the same error. Looks like Microsoft.WindowsAzure.Mobile.Ext.dll fails to load at runtime due to some missing dependency. No idea which one though, all the relevant dlls should be linked and available.

I had the same problem recently but with Android, and apparently it was happening because I had installed WindowsAzure.MobileServices package through NuGet and it was somehow interfering with Microsoft.Azure.Mobile.Client. So the only way I could make it to work again was to rollback the project to a state before the WindowsAzure.MobileServices was installed and installed just the Microsoft.Azure.Mobile.Client package. I hope this helps!

I just compiled your project with no problems from my PC with a connected Mac doing the build.  Does the error occur during build or running?

Hi Adrian,
Compilation is fine. The error occurs at runtime.
Marco
Get Outlook for iOS
	_____________________________

From: Adrian Hall<EMAIL_ADDRESS>Sent: Friday, December 16, 2016 6:30 pm
Subject: Re: [Azure/azure-mobile-apps-net-client] Xamarin.iOS: A Microsoft Azure Mobile Services assembly for the current platform was not found (#271)
To: Azure/azure-mobile-apps-net-client<EMAIL_ADDRESS>Cc: Strillo<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>I just compiled your project with no problems from my PC with a connected Mac doing the build.  Does the error occur during build or running?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

You are missing a CurrentPlatform.Init() call.  Adding that before your MobileServiceClient fixed the problem.
A good example is our TodoItem samples, available at azure/azure-mobile-apps-quickstarts

Wonderful it worked!
Thanks, I wasn't using the pre-built samples and hadn't seen that line anywhere in the documentation. The call to Init seems to fix the issue. 👍

I'll get the docs updated.


How to put host into maintenence Mode

If you create vm object, you can Power Down, pause, reset, Power on a vm.
Can you elaborate on maintenance Mode, you are mentioning about.
Are specific about some guest OS ?

With the HostSystem object call the enterMaintenanceMode task and provide a timeout (in case DRS can not evacuate the VMs in that time, or in a non-DRS cluster/standalone host, the user does not manually migrate or power them off).


buster alpha image no battery monitor

It's been a while since I fired up my Blue, but I just installed Debian 10.0 2019-07-07 4GB SD IoT. After booting, I noticed there are no battery lights. Apparently the ADC isn't being loaded by default. There is nothing in /sys/bus/iio/devices/.
root@beaglebone:/# rc_battery_monitor
WARNING: instance of rc_battery_monitor already running
Killing it and starting a new instance
ERROR in rc_adc_init, failed to open iio adc interface
: No such file or directory
Perhaps kernel or device tree is too old

root@beaglebone:/# /opt/scripts/tools/version.sh
git:/opt/scripts/:[46d33928c4a396ef472829bcf22761546e550a6f]
eeprom:[A335BNLTBLA21703EMBL0014]
model:[TI_AM335x_BeagleBone_Blue]
dogtag:[BeagleBoard.org Debian Image 2019-07-07]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2019.04-00002-gb96b20de74]:[location: dd MBR]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2017.03-rc2-00002-g11d4fd]:[location: dd MBR]
kernel:[4.19.50-ti-r20]
nodejs:[v10.15.2]
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-19-TI-00A0.dtbo]
uboot_overlay_options:[enable_uboot_cape_universal=1]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade <pkg>]
pkg:[bb-cape-overlays]:[4.4.20190610.0-0rcnee0~buster+20190610]
pkg:[bb-wl18xx-firmware]:[1.20190227.1-0rcnee0~buster+20190227]
pkg:[kmod]:[26-1]
pkg:[librobotcontrol]:[1.0.4-git20190227.1-0rcnee0~buster+20190327]
pkg:[firmware-ti-connectivity]:[20190114-1]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal bluetooth netdev i2c cloud9ide gpio pwm eqep admin spi tisdk weston-launch xenomai]
cmdline:[console=ttyO0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 rng_core.default_quality=100 cape_universal=enable quiet]
dmesg | grep remote
[    1.379128] remoteproc remoteproc0: wkup_m3 is available
[    1.540959] remoteproc remoteproc0: powering up wkup_m3
[    1.541085] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217168
[    1.544472] remoteproc remoteproc0: remote processor wkup_m3 is now up
dmesg | grep pru
dmesg | grep pinctrl-single
[    1.102508] pinctrl-single 44e10800.pinmux: 142 pins, size 568
dmesg | grep gpio-of-helper
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END

I guess I need to update the eMMC bootloader even though I am booting from an SD card?

yup, that made the difference.

FYI, I had to edit /opt/scripts/tools/developers/update_bootloader.sh to flash mmcblk1 instead of mmcblk0.


Data loader for many to many relationship

Hi,
I was following the guide from the docs about  implementing data loaders in my resolvers and I've run into an issue with many to many relationship.
I have Recipe class with the many to many relationship to Tag.  I want to make an query
query {
  recipes {
    tags {
      name
    }
  }
}

where I would fetch the Tags with Recipes. I've tried with the GroupDataLoader but it I cannot make it work that way.
How can I implement this use case ?
Thanks in advance !

Can you provide some code to point to the issue at hand?

Yes. Well,  I have Users, Recipes, and Tags. There is 1:N relationship between users and recipes and N:M between Recipes and Tags, standard EF Core mapping. So for the recipes field of UserType I had this implementation
 descriptor
                .Field("recipes")
                .Type<NonNullType<ListType<RecipeType>>>()
                .Resolver(ctx =>
                {
                    var repository = ctx.Service<IRecipeRepository>();

                    IDataLoader<Guid, Recipe[]> recipeDataLoader =
                        ctx.GroupDataLoader<Guid, Recipe>(
                            "recipesByUserId",
                            repository.GetRecipesByUserId);

                    return recipeDataLoader.LoadAsync(ctx.Parent<User>().Id);
                });

with the repository.GetRecipesByUserId having this implementation
 public async Task<ILookup<Guid, Recipe>> GetRecipesByUserId(IReadOnlyList<Guid> guids)
        {
            List<Recipe> recipes = await _dbContext.Recipes
                .Where(r => guids.Contains(r.UserId))
                .ToListAsync();

            return recipes.ToLookup(r => r.UserId);
        }

I wanted to use the similar approach for the tags field in the RecipeType but I cannot do it that way. This is because, as I understood, data loader needs all the data fetched implementing ILookup interface. It was easy for the recipes i would fetch for user, they have the UserId foreign key as lookup key. But in the many to many relationship one Tag can appear in the list of tags for more than one recipe, and does not have the lookup key as it is in the Many to many class. I could implement dirty solution and return list of custom objects having the recipe id and list of it's tags, for each recipe but then I'd have to use different schema for the tags property instead of  <ListType< TagType>> which i want to avoid. I hope I explained it thoroughly.

@michaelstaib any ideas ?

I will look tomorrow at this ... sorry for the wait.

ok, thanks, much appreciated

No news @michaelstaib ?

Hi @strahinja16 did you get to any conclusion?
Is there any output of the slack conversation that perhaps we could link here for future reference?


fix ci

Codecov Report

Merging #1168 (9bd8f4b) into main (289c18c) will increase coverage by 0.15%.
The diff coverage is 82.60%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##             main    #1168      +/-   ##
==========================================
+ Coverage   62.68%   62.84%   +0.15%
==========================================
  Files          72       72
  Lines        9646     9660      +14
==========================================
+ Hits         6047     6071      +24
+ Misses       3182     3174       -8
+ Partials      417      415       -2

Impacted Files
Coverage Δ

internal/cmd/egctl/config.go
6.91% <50.00%> (+0.98%)
:arrow_up:

internal/cmd/egctl/translate.go
72.86% <100.00%> (+1.90%)
:arrow_up:

internal/xds/translator/route.go
90.66% <100.00%> (+0.03%)
:arrow_up:

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


Upgrade terraform-provider-artifactory to v8.9.1

This PR was generated via $ upgrade-provider pulumi/pulumi-artifactory --kind=provider.

Upgrading terraform-provider-artifactory from 8.6.0  to 8.9.1.
Fixes #440
Fixes #437
Fixes #438
Fixes #433
Fixes #426

Closing as superseded by #441


Redesign.

Can we get some volunteers to redesign the site? It would be a good exercise for someone starting out.
cc @rameshsyn @abs-zero

@anarchyrucks Good idea.


Bug with reactive field and afterStateUpdate

Package
filament/filament
Package Version
v3.0.12
Laravel Version
v10.18.0
Livewire Version
No response
PHP Version
8.1.12
Problem description
I am currently facing an issue with a field marked as reactive to update another field accordingly. Specifically, I have two fields inside a Repeater, namely "quantity" and "total". My objective is that when the quantity changes, the "total" field should be automatically calculated accordingly. However, when I change the quantity to a value like 1111, the "quantity" field seems to reset with a truncated value, for example, 1.
https://github.com/filamentphp/filament/assets/10780686/90ce4754-facd-4720-9f0b-c02594764e9a
Expected behavior
When the user enters a value in the "quantity" field, this value should not be altered or truncated.
Steps to reproduce
Forms\Components\Repeater::make('billets')
    // ... (other Repeater parameters)
    ->schema([
        Forms\Components\Select::make('cash_denomination_id')
            // ... (other Select field parameters)
        ),

        Forms\Components\TextInput::make('quantity')
            // ... (other Quantity field parameters)
            ->reactive()
            ->afterStateUpdated(function($state, callable $get, callable $set) {
                $quantity = intval($state);
                $denomination = CashDenomination::find($get('cash_denomination_id'));
                $total = $denomination->value * $quantity;

                $set('total', $total);
            }),

        Forms\Components\TextInput::make('total')
            // ... (other Total field parameters)
    ])

Clone the repository to your local environment: git clone https://github.com/lepresk/filament-reactive-bug.git
Install all dependencies and Filament: Run composer install and php artisan filament:install --panels
Seed the CashDenomination table: Execute php artisan db:seed CashDenominationSeeder
Create a user to log in to the dashboard: Run php artisan make:filament-user
Navigate to the "Deposits" section and click on "New."
Enter a value in one of the "quantity" fields within the repeater to observe the bug.

Reproduction repository
https://github.com/lepresk/filament-reactive-bug.git
Relevant log output
No response

I'm not sure this is a bug. It looks like a network latency issue. i.e. by setting it to reactive you are saying that it should change on every input, so you are typing faster than the network can process the request and send it back to you, so Livewire is updating the state based on what it was when you sent the request initially.
Try using ->live(debounce: 500ms) or similar or only calculate it on blur.

This can be closed.
Downloaded and tested with your repository.
Just add ->debounce(600), and the problem is gone.
… or a debounce value of your preference :-)
Forms\Components\TextInput::make('quantity')
                                          ->label('Quanity')
                                          ->numeric()
                                          ->default(0)
                                          ->required()
                                          ->reactive()
                                          ->debounce(600)
                                          ->afterStateUpdated(function($state, callable $get, callable $set) {
                                              $quantity = intval($state);
                                              $denomination = CashDenomination::find($get('cash_denomination_id'));
                                              $total = $denomination->value * $quantity;

                                              $set('total', $total);
                                          }),

It's true that debounce solve the issue for typing only small number, but if you type a bunch of number until you trigger the 600ms, than you get the same result
example:
actual typing :<PHONE_NUMBER>1234567890
result        :<PHONE_NUMBER>12345678

I just bump into this issue when following this article https://laraveldaily.com/post/filament-repeater-live-calculations-on-update,
And also filament example has the same issue https://demo-crm.filamentexamples.com/admin/quotes/create
I don't have much knowledge about livewire or filament,
but I suggests to make debounce or new feature for a setTimeout with clearTimeout when typing,
so after the user finish typing, it then should trigger the update (ajax or fetch or something that triggers the bug).
Additional information:
I also tried to use custom javascript to set the total value (without live feature), but not sure why it also bugs.
The total value reset to empty whenever I add a new item via Repeater, the network said that the snapshot doesn't have a value in total field.

Agree

I understand this specific issue is closed, Shall I create another issue ?
similar issue I face as well in my forms
the input value is truncated or goes missing
I have an image uploaad field as well and if I give it a file to upload and then enter other fields in the meantime, similar missing values/form field reset happens
I am trying to work with onblur and large debounce values, but I think this needs a better resolution

I just bump into this issue when following this article https://laraveldaily.com/post/filament-repeater-live-calculations-on-update, And also filament example has the same issue https://demo-crm.filamentexamples.com/admin/quotes/create

FilamentExampels and Laravel daily is run by another dev, not directly by filament people - I will check if similar issue is in the official filament demo and if not, how is it solved there.

In my humble personal opinion, this is not a bug.
It is up to the dev to set longer debounce values based on the expected length of the input value.
Also to consider the type of user.
I always have to consider that the age of our users are 60+, they type sloooowly.
I can never use the default 500.

THANKS - yes, live(onblur) works :)


bugfix incorrect guest counter

updated logic in leave and disconnect chat events on the server
closes #21

Note.. this messes up when someone chooses the name guest!

looks good!


Handle multiple user features for prepareFeature task

#728
Currently generates features JSON for whichever is processed last.

@jjiwooLim Do we need a similar issue for ci.maven?

@cherylking I will do some investigation on my side and create the issue for Maven if needed.


Youtube player features availability

Question / Problem
Summary
Platform : Android Application
Hey @PierfrancescoSoffritti ,
Is there a way to access the playback speed, quality and other options that will pop out when we click  on gear icon in web layout using custom view elements like buttons etc..?
Also , if some video is playing then if i click on the title of video or on the watermark that appears at bottom right it is navigating to youtube app can i prevent these actions without using custom layout
What I've tried
I have tried onclick Listeners for player but could not get it

Is there a way to access the playback speed, quality and other options that will pop out when we click on gear icon in web layout using custom view elements like buttons etc..?

You can set volume, playback rate etc using the YouTubePlayer interface. Currently there is no way to change the quality. Last time I tried it wasn't supported by the IFrame Player (they have an API but was no-op on mobile).

Also , if some video is playing then if i click on the title of video or on the watermark that appears at bottom right it is navigating to youtube app can i prevent these actions without using custom layout

There are hacky ways to remove these elements through CSS. But it's against YouTube terms of service so I wouldn't recommend doing that.


Action invoke fails when coreshare value > 7 in group_vars/all

Environment details:
Single and distributed Ubuntu 16.04 deployment
Docker version 18.03.1-ce, build 9ee9f40
CPU - Intel(R) Xeon(R) CPU E5-2697 v4 @ 2.30GHz
Server has 80 cores.
Steps to reproduce the issue:

Change  the value of "coreshare" in ansible/group_vars/all to "8"
Build using gradlew distDocker
Deploy openwhisk using ansible
Create a python action (wsk action create prime prime.py) - FYI "which" action does not matter, the underlying issue is in the support of the infrastructure to the parameter "coreshare"
Invoke action as "wsk invoke action prime -b -v"

Provide the expected results and outputs:
Expected result is that the action completes and returns "Hello" to the user.
Provide the actual results and outputs:
The action is created but fails during invoke with an internal error.
wsk action -i invoke prime-py -b -p range 10000 -d
[commands.NewQualifiedName]:132:[Inf] Qualified pkg+entity (EntityName): prime-py
[commands.NewQualifiedName]:133:[Inf] Qualified namespace: _
[commands.NewQualifiedName]:134:[Inf] Qualified package:
[commands.NewQualifiedName]:135:[Inf] Qualified entity: prime-py
[li/commands.getParameters]:071:[Inf] Parsing parameters: []string{"{"range": 10000}"}
[mmands.getJSONFromStrings]:099:[Inf] Convert content to JSON: []string{"{"range": 10000}"}
[mmands.getJSONFromStrings]:109:[Inf] Created map 'map[range:10000]' from '{"range": 10000}'
[k.(*ActionService).Invoke]:294:[Inf] HTTP route: actions/prime-py?blocking=true&result=false
[k.(*Client).addAuthHeader]:299:[Inf] Adding basic auth header; using authkey
REQUEST:
[POST]  https://<IP_ADDRESS>/api/v1/namespaces/_/actions/prime-py?blocking=true&result=false
Req Headers
{
"Authorization": [
"Basic MjNiYzQ2YjEtNzFmNi00ZWQ1LThjNTQtODE2YWE0ZjhjNTAyOjEyM3pPM3haQ0xyTU42djJCS0sxZFhZRnBYbFBrY2NPRnFtMTJDZEFzTWdSVTRWck5aOWx5R1ZDR3VNREdJd1A="
],
"Content-Type": [
"application/json"
],
"User-Agent": [
"OpenWhisk-CLI/1.0 (2018-09-05T22:00:18.848+0000) linux amd64"
]
}
Req Body
{"range":10000}
[go/whisk.PrintRequestInfo]:459:[Inf] Req Body (ASCII quoted string):
"{"range":10000}\n"
RESPONSE:Got response with code 500
Resp Headers
{
"Access-Control-Allow-Headers": [
"Authorization, Content-Type"
],
"Access-Control-Allow-Origin": [
"*"
],
"Connection": [
"keep-alive"
],
"Content-Length": [
"89"
],
"Content-Type": [
"application/json"
],
"Date": [
"Mon, 10 Sep 2018 21:18:40 GMT"
],
"Server": [
"nginx"
],
"X-Request-Id": [
"1891fb56a3e7c0f90c15bbd777700574",
"1891fb56a3e7c0f90c15bbd777700574"
]
}
Response body size is 89 bytes
Response body received:
{"error":"There was an internal server error.","code":"1891fb56a3e7c0f90c15bbd777700574"}
[o/whisk.PrintResponseInfo]:500:[Inf] Response body received (ASCII quoted string):
"{"error":"There was an internal server error.","code":"1891fb56a3e7c0f90c15bbd777700574"}"
[/whisk.parseErrorResponse]:515:[Inf] HTTP failure 500 + body
[/whisk.parseErrorResponse]:530:[Inf] HTTP failure 500; server error There was an internal server error. (code 1891fb56a3e7c0f90c15bbd777700574)
[k.(*ActionService).Invoke]:309:[Err] s.client.Do() error - HTTP req https://<IP_ADDRESS>/api/v1/namespaces/_/actions/prime-py?blocking=true&result=false; error 'There was an internal server error. (code 1891fb56a3e7c0f90c15bbd777700574)'
[nds.handleInvocationError]:1014:[Err] Client.Actions.Invoke(prime-py, &{%!t(*whisk.ErrorResponse=&{0xc420019680 0xc420336f40 0xc420336f60}) %!t(int=244) true false false true false false}) error: %!s(MISSING)
[-cli/commands.ExitOnError]:1187:[Inf] err object type: *whisk.WskError
[-cli/commands.ExitOnError]:1198:[Err] Got a *whisk.WskError error: &whisk.WskError{RootErr:(*errors.errorString)(0xc420337230), ExitCode:244, DisplayMsg:true, MsgDisplayed:false, DisplayUsage:true, DisplayPrefix:true, ApplicationError:false, TimedOut:false}
error: Unable to invoke action 'prime-py': There was an internal server error. (code 1891fb56a3e7c0f90c15bbd777700574)
Run 'wsk --help' for usage.
Additional information you deem important:
Are the Openwhisk limits of coreshare been tested? Are they hardcoded anywhere to be less than 8?

Hi,
how old is the version of Openwhisk you are using? I'm asking, because the paramter coreshare has been removed some weeks ago.
If you are using a new version of Openwhisk, this parameter should not be used at all and unrelated to the problem.
If you are using an older version I suggest to go to a newer version and configure the maximum amount of invoker_user_memory per invoker instead.

Its a couple of moths old I think. Here is what I got from the property in the wsk CLI:
whisk API version       v1
whisk namespace         _
whisk CLI version       2018-09-05T22:00:18.848+0000
whisk API build         2018-09-08T00:08:41Z
whisk API build number  latest
I dont however understand how "coreshare" can be replaced by "invoker_user_memory"?
coreshare defines the number of actions/containers you can invoke per core/thread. If this parameter is removed, then how is parallelism or scheduling being managed? i.e What is the limit of number of actions that can be simultaneously handled by a core?

Hi,
this topic has been discussed on the dev list<EMAIL_ADDRESS>To summarise the main argument:
The user defines, how many memory its action should consume, but the invoker-implementation limited the amount of containers based on the CPU share. This could lead to a massive over- or underload of the invoker (memory-wise).

Thanks - I will try it out.
On Tue, Sep 11, 2018 at 8:42 AM Christian Bickel<EMAIL_ADDRESS>wrote:

Hi,
this topic has been discussed on the dev list.
<EMAIL_ADDRESS>To summarise the main argument:
The user defines, how many memory its action should consume, but the
invoker-implementation limited the amount of containers based on the CPU
share. This could lead to a massive over- or underload of the invoker
(memory-wise).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/apache/incubator-openwhisk/issues/4014#issuecomment-420319805,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AdN8HJV3ju8COIadhhsAfj0O4OiYHv_Rks5uZ9nSgaJpZM4WiMyG
.


How to use CustomSemanticsAction

I'm thinking to use CustomSemanticsAction of semantic class.
I tried to make a following code.
But it was announced a error.
I don't know why error message was announced.
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        // This is the theme of your application.
        //
        // Try running your application with "flutter run". You'll see the
        // application has a blue toolbar. Then, without quitting the app, try
        // changing the primarySwatch below to Colors.green and then invoke
        // "hot reload" (press "r" in the console where you ran "flutter run",
        // or simply save your changes to "hot reload" in a Flutter IDE).
        // Notice that the counter didn't reset back to zero; the application
        // is not restarted.
        primarySwatch: Colors.blue,
        // This makes the visual density adapt to the platform that you run
        // the app on. For desktop platforms, the controls will be smaller and
        // closer together (more dense) than on mobile platforms.
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  // This widget is the home page of your application. It is stateful, meaning
  // that it has a State object (defined below) that contains fields that affect
  // how it looks.

  // This class is the configuration for the state. It holds the values (in this
  // case the title) provided by the parent (in this case the App widget) and
  // used by the build method of the State. Fields in a Widget subclass are
  // always marked "final".

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

   _incrementCounter() {
    var link = [1, 10, 25, 50];
    showDialog<bool>(
  context: context,
  builder: (BuildContext context){
return AlertDialog(
  title: Text('select number'),
  content: Container(
    height: 300,
    width: 300,
    child: ListView.builder(
itemBuilder: (BuildContext context, int num){
    return Card(
      child: GestureDetector(
    child: Padding(
      padding: EdgeInsets.all(20.0),
      child: Text(link[num].toString()),
         ),
         onTap: (){
           setState((){
             _counter += link[num];
           });
           Navigator.of(context).pop(true);
         },
      ),
    );
},
    itemCount: link.length,
  ),
  ),
actions:     <Widget>[FloatingActionButton(
      onPressed: () => Navigator.of(context).pop(true),
      tooltip: 'close',
      child: Icon(Icons.close),
    ),
],
);
  }
    );
  }

  @override
  Widget build(BuildContext context) {
    // This method is rerun every time setState is called, for instance as done
    // by the _incrementCounter method above.
    //
    // The Flutter framework has been optimized to make rerunning build methods
    // fast, so that you can just rebuild anything that needs updating rather
    // than having to individually change instances of widgets.
    return Scaffold(
      appBar: AppBar(
        // Here we take the value from the MyHomePage object that was created by
        // the App.build method, and use it to set our appbar title.
        title: Text(widget.title),
                  ),
      body: Center(
        // Center is a layout widget. It takes a single child and positions it
        // in the middle of the parent.
        child: Column(
          // Column is also a layout widget. It takes a list of children and
          // arranges them vertically. By default, it sizes itself to fit its
          // children horizontally, and tries to be as tall as its parent.
          //
          // Invoke "debug painting" (press "p" in the console, choose the
          // "Toggle Debug Paint" action from the Flutter Inspector in Android
          // Studio, or the "Toggle Debug Paint" command in Visual Studio Code)
          // to see the wireframe for each widget.
          //
          // Column has various properties to control how it sizes itself and
          // how it positions its children. Here we use mainAxisAlignment to
          // center the children vertically; the main axis here is the vertical
          // axis because Columns are vertical (the cross axis would be
          // horizontal).
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text(
              'You have pushed the button this many times:',
            ),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.headline4,
            ),
          ],
        ),
      ),
      floatingActionButton: Semantics(
        customSemanticsActions: <CustomSemanticsAction, VoidCallback>{
CustomSemanticsAction(label: 'Increment'): _incrementCounter,
        },
      child: FloatingActionButton(
        onPressed: () { _incrementCounter (); },
        tooltip: 'Increment',
        child: Icon(Icons.add),
      ), // This trailing comma makes auto-formatting nicer for build methods.
      ),
    );
  }
}

Hi @yama3nomori,
This issue doesn't seem to describe a bug or a feature request. Please see https://flutter.dev/community for resources and asking questions like this.
You may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you


Does prediction with the pre-trained model use GPU?

I don't have a GPU and can't figure out whether any of the prediction (not training) tasks use a GPU, or only the CPU. Would running it on a GPU speed things up considerably?

Predictions uses the GPU if there is one available.
Not sure the exact speedup, but you can try running the code on a GPU with colab - https://colab.research.google.com/github/bearpelican/musicautobot/blob/master/notebooks/multitask_transformer/Generate_colab.ipynb


fix jquery dependency

During #4 I broke the jQuery dependency...

Fixed on release-1.0.x (v1.0.3) and master (v1.1.0).


[North Star Applicant UI] Add unit test parity for question types

As I created the question types, I've been prioritizing getting screenshot tests up and running. I have not finished reaching test parity to the existing tests (due to limitations like the toasts not being rendered yet etc.)
This is a tracking bug to go back and fill out those tests

I filed bugs for each browser test under applicant/


FrameBuffer.mm not recognize float_32t

Build fail with float_32t on FrameBuffer.mm, tested with release 2.0.0

I tried to change float_32t with float_t/double_t, the build succeed, but I'm not sure about the fix:
+ (size_t) getBytesForDataType:(ConvertDataType)dataType {
  switch (dataType) {
    case UINT8:
      return sizeof(uint8_t);
    case FLOAT32:
      // double_t ?
      return sizeof(float_t);
  }
}

hey - Does this fix your issue? https://github.com/mrousavy/vision-camera-resize-plugin/pull/27

I'm guessing you are building for x86/Intel/Rosetta, because float32_t is defined on all ARMs as far as I know.
But we can just use float (I think)

I'm guessing you are building for x86/Intel/Rosetta, because float32_t is defined on all ARMs as far as I know.
But we can just use float (I think)

Yes, you're right! On simular I'm using Rosetta. Actually I have not encountered any problems building on real device.
Thanks for the fix ;)


(maint) Remove plan_executor POC code

Given the plan executor was implemented in Clojure/JRuby in the orchestrator repo, this POC code is no longer used. This commit removes it.

I think this can also probably remove ./spec/fixtures/plan_executor and ./config/plan_executor_config.rb

CLA signed by all contributors.


Sac Discrete Error

Hi I'm trying to run SAC Discrete and I keep getting following error
Warning: Error detected in AddmmBackward. Traceback of forward call that caused the error:
  File "results/Cart_Pole.py", line 144, in <module>
    trainer.run_games_for_agents()
  File "/home/Deep-Reinforcement-Learning-Algorithms-with-PyTorch/agents/Trainer.py", line 79, in run_games_for_agents
    self.run_games_for_agent(agent_number + 1, agent_class)
  File "/home/Deep-Reinforcement-Learning-Algorithms-with-PyTorch/agents/Trainer.py", line 117, in run_games_for_agent
    game_scores, rolling_scores, time_taken = agent.run_n_episodes()
  File "/home/Deep-Reinforcement-Learning-Algorithms-with-PyTorch/agents/Base_Agent.py", line 189, in run_n_episodes
    self.step()
  File "/home/Deep-Reinforcement-Learning-Algorithms-with-PyTorch/agents/actor_critic_agents/SAC.py", line 87, in step
    self.learn()
  File "/home/Deep-Reinforcement-Learning-Algorithms-with-PyTorch/agents/actor_critic_agents/SAC.py", line 147, in learn
    policy_loss, log_pi = self.calculate_actor_loss(state_batch)
  File "/home/Deep-Reinforcement-Learning-Algorithms-with-PyTorch/agents/actor_critic_agents/SAC_Discrete.py", line 87, in calculate_actor_loss
    qf2_pi = self.critic_local_2(state_batch)
  File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 550, in __call__
    result = self.forward(*input, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/nn_builder/pytorch/NN.py", line 119, in forward
    out = self.process_output_layers(x)
  File "/usr/local/lib/python3.6/dist-packages/nn_builder/pytorch/NN.py", line 163, in process_output_layers
    temp_output = output_layer(x)
  File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/module.py", line 550, in __call__
    result = self.forward(*input, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/linear.py", line 87, in forward
    return F.linear(input, self.weight, self.bias)
  File "/usr/local/lib/python3.6/dist-packages/torch/nn/functional.py", line 1610, in linear
    ret = torch.addmm(bias, input, weight.t())
 (print_stack at /pytorch/torch/csrc/autograd/python_anomaly_mode.cpp:60)
Traceback (most recent call last):
  File "results/Cart_Pole.py", line 144, in <module>
    trainer.run_games_for_agents()
  File "/home/Deep-Reinforcement-Learning-Algorithms-with-PyTorch/agents/Trainer.py", line 79, in run_games_for_agents
    self.run_games_for_agent(agent_number + 1, agent_class)
  File "/home/Deep-Reinforcement-Learning-Algorithms-with-PyTorch/agents/Trainer.py", line 117, in run_games_for_agent
    game_scores, rolling_scores, time_taken = agent.run_n_episodes()
  File "/home/Deep-Reinforcement-Learning-Algorithms-with-PyTorch/agents/Base_Agent.py", line 189, in run_n_episodes
    self.step()
  File "/home/Deep-Reinforcement-Learning-Algorithms-with-PyTorch/agents/actor_critic_agents/SAC.py", line 87, in step
    self.learn()
  File "/home/Deep-Reinforcement-Learning-Algorithms-with-PyTorch/agents/actor_critic_agents/SAC.py", line 150, in learn
    self.update_all_parameters(qf1_loss, qf2_loss, policy_loss, alpha_loss)
  File "/home/Deep-Reinforcement-Learning-Algorithms-with-PyTorch/agents/actor_critic_agents/SAC.py", line 192, in update_all_parameters
    self.hyperparameters["Actor"]["gradient_clipping_norm"])
  File "/home/Deep-Reinforcement-Learning-Algorithms-with-PyTorch/agents/Base_Agent.py", line 283, in take_optimisation_step
    loss.backward(retain_graph=retain_graph) #this calculates the gradients
  File "/usr/local/lib/python3.6/dist-packages/torch/tensor.py", line 198, in backward
    torch.autograd.backward(self, gradient, retain_graph, create_graph)
  File "/usr/local/lib/python3.6/dist-packages/torch/autograd/__init__.py", line 100, in backward
    allow_unreachable=True)  # allow_unreachable flag
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.FloatTensor [64, 2]], which is output 0 of TBackward, is at version 3; expected version 2 instead. Hint: the backtrace further above shows the operation that failed to compute its gradient. The variable in question was changed in there or anywhere later. Good luck!

Any thoughts?

The same problem!

I think you may need to do this in calculate_actor_loss
with torch.no_grad():
    qf1_pi = self.critic_local(state_batch)
    qf2_pi = self.critic_local_2(state_batch)

Because we already propagate loss for critical_local and critic_local_2 in calculate_critic_losses so policy_loss will raise exception here? is it?

Hi.
The problem is due to the update of PyTorch (greater than 1.4.0 causes this problem.).
I made PullRequest #60 to fix this issue.
Cloneing from my branch or executing pip install torch==1.3.1 would solve your issue.
Thanks :)


feat: add logic to auto trigger release-pipeline once "-ga" tag arrive

Fix: https://github.com/adoptium/temurin-build/issues/3167
Test run:

mock in 2022 Oct release when we have _adopt tag ready for jdk19 https://ci.adoptopenjdk.net/view/work-in-progress/job/wen_releaseTrigger/80/console
Triggering projects: [test-release-openjdk19-pipeline](https://ci.adoptopenjdk.net/job/test-release-openjdk19-pipeline/)
mock in 2022 Oct release we already built jdk19 from (1) no more need trigger

Release tag jdk-19.0.1+10_adopt has been used in the current release
Will not continue job
Not triggering due to missing file

Detail:

remove non-git tracked files: e.g properties from previous run
either git clone jdkXXu or git fetch if the repo already there
get expectedTag from releasePlan.cfg file
check workspace/tracking file if exists from previous run and get the previous tag name
compare the previous tag with expectedTag => if previous tag is used already, no need continue job, wont generate properties file => next step wont trigger due to lack of preperties file
otherwise, continue to get the latest GA tag in the repo
compare the GA tag and expectedTag to decide if GA tag is what we want for this release, if not wont continue job, wont generate properties file => next step wont trigger due to lack of preperties file
otherwise, try to find its _adopt tag on the same commit
if _adopt tag exists (meaning, mirror job already applied tag)  , write into preperties file and exit to next step (trigger)
if _adopt tag not exist yet (mirror job still working/ongoing) , sleep 10mins and loop 4 times.

Example:
created job for jdk8
https://ci.adoptopenjdk.net/job/build-scripts/job/utils/job/releaseTrigger_jdk8u/
which uses this PR's script and on scheduler of 0 H 17-20 1,3,4,7,9,10 1-5 refer to https://www.java.com/releases/
This should not auto trigger if it is jdk8 arm32 build:
Ref: https://github.com/adoptium/ci-jenkins-pipelines/pull/525 to remove jdk8 arm32 linux from default settings.

Just for fun (this is the review from openai):
This script is used to trigger a build in a continuous integration/continuous deployment (CI/CD) pipeline. It does this by checking whether the latest -ga tag in a Git repository matches the expected GA tag for a release, and if so, triggers the build using the -ga tag. The script takes two arguments: JDKVERSION, which specifies the version of the JDK being built, and ADOPTIUM_REPO, which specifies the URL of the Git repository containing the code. If ADOPTIUM_REPO is not specified, the default URL is https://github.com/adoptium/$JDKVERSION.git. The script performs a number of steps to accomplish this:
It clones the Git repository specified by ADOPTIUM_REPO (or the default URL) to a local workspace directory.
It reads the expected GA tag for the release from a configuration file (releasePlan.cfg).
It fetches all new references from the origin remote, including tags.
It finds the latest -ga tag in the repository, and checks whether it matches the expected GA tag or a higher GA tag. If not, the script exits.
It finds the original commit that the -ga tag points to, and lists all tags that point to this commit (excluding the -ga tag itself).
It has a for loop that checks for the existence of the -adopt tag (created by appending _adopt to the first tag in the list of tags that point to the original commit) up to five times, with a 10-minute sleep between each attempt. If the -adopt tag is not found, the script exits.
If the -adopt tag is found, the script saves the tag name to a file named properties in the SCRIPT_DIR directory, and saves the previous tag to a file named tracking in the WORKSPACE directory. These files are used by the CI/CD pipeline to determine which tag to use for the build.
Overall, the purpose of this script is : to ensure that the correct version of the code is built in the CI/CD pipeline by checking the latest -ga tag in the repository and using it to trigger the build, includes a for loop to check for the -adopt tag and save it to a file for use in the build process.

@zdtsw Where does the actual pipeline trigger occur?

take the test job for example: https://ci.adoptopenjdk.net/view/work-in-progress/job/wen_releaseTrigger/configure
it is in the last section "trigger/call buidls on other projects"

I think I'm OK with this - but can we test it with a dry run somehow?

the only dry-run i have is in https://ci.adoptopenjdk.net/view/work-in-progress/job/wen_releaseTrigger/80/console for jdk19 to mimic 2022 Oct release.


Auto update redirect to Github Release

Environment
Windows build number: Microsoft Windows [version 10.0.18363.836]
PowerToys version: 0.18.1
PowerToy module for which you are reporting the bug (if applicable): Auto update

Steps to reproduce

Expected behavior

Receive the update notification, and by clicking on it, update PowerToys.
In PowerToys settings, when I search for updates, just tells me there is none.
Actual behavior

When I was still in version 0.18.0, I got a notification telling me I could update, but when I clicked on update, it launched my browser to the Release page of the PowerToys Github.
When I click on Search for updates in the settings of PowerToys, it opens my browser to the latest release on Github.
Important to note : as far as I recall, auto updating from 0.17 to 0.18 worked perfectly.
Sorry, I didn't think of taking screenshots when it happened.
Hope it still helps to fix this.

I also expireince the same, however I have never been able to auto update PowerToys even from 0.17-0.18. Both 0.18.1 and 0.18 I have had to manually download the release

Hi @TheoForay @Riiskyy
we will improve the update process. The tracking issue is https://github.com/microsoft/PowerToys/issues/2535
I'm closing this one as duplicate.
Thank you.


feat: docs rework using vitepress

Reworked documentation with vitepress.
Changes:

using vitepress 1.0.0-rc45.
moved /docs/benchmark/ folder to root.
added github workflow for auto deploying on push.

You can preview an example of Zedio documentation at my fork: https://gottyduke.github.io/zedio/
中文模板已添加至/docs/.vitepress/zh.ts/和/docs/zh/, 但只做了ui翻译, 内容依然是原文镜像.
To apply changes, change repo Settings/Pages/Source to GitHub Actions prior to merging.

greate feat Thank you for your help


[2.x] Update service stub override capabilities.

What does this PR do? :robot:
Passes the service id to the getStub() function to check whether or not a stub override exists and use it instead.
Does this relate to any issue? :link:
Allows for https://github.com/payavel/checkout/pull/51

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

Project coverage is 92.73%. Comparing base (fa24e62) to head (cf5505f).

Additional details and impacted files
@@            Coverage Diff            @@
##             master      #63   +/-   ##
=========================================
  Coverage     92.73%   92.73%
  Complexity      185      185
=========================================
  Files            21       21
  Lines           661      661
=========================================
  Hits            613      613
  Misses           48       48

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


[Bug]: 404 with GraphQL endpoint in Github Enterprise Server

GitHub CLI Version
2.63.2
gh-skyline Version
0.0.4
What Operating System are you seeing the problem on?
macOS
What happened?
I am trying to generate my Skyline against a Github Enterprise Service instance.
When running gh skyline as it, it attempts to connect to github.com:
➜ gh skyline
Error: [NETWORK] failed to initialize GitHub client: failed to create REST client: authentication token not found for host github.com

Using GH_HOST, the cli is using the wrong GraphQL endpoint:
➜ GH_HOST=github.XXX.YYY gh skyline
Error: failed to fetch contributions: [GRAPHQL] failed to fetch contributions: HTTP 404: Not Found (https://github.XXX.YYY/api/v3/graphql)

The correct GraphQL URL would be https://github.XXX.YYY/api/graphql. This is also encoded by the corresponding logic in graphQLEndpoint.
I would appear to be correctly authenticated, with the "active" instance being set to the GHE instance:
➜ gh auth status
github.XXX.YYY
  ✓ Logged in to github.XXX.YYY account ZZZZZZZ (keyring)
  - Active account: true
  - Git operations protocol: https
  - Token: gho_************************************
  - Token scopes: 'gist', 'read:org', 'repo', 'workflow'

github.AAAA.BBB.CCC # other GHE instance
  ✓ Logged in to github.AAAA.BBB.CCC account ZZZZZZZ (keyring)
  - Active account: true
  - Git operations protocol: https
  - Token: gho_************************************
  - Token scopes: 'gist', 'read:org', 'repo', 'workflow'

Appreciate your support, the X1C needs a break from churning out multiboard parts :)

Thanks @mhaas, I've started taking a look at this one. Your link to the graphQLEndpoint in go-gh was super helpful. I think this is happening because I've implemented some parts in REST vs GraphQL and have been inconsistent in the approach.
I'll be making some tweaks to try and separate out some of the concerns a little more, so I'll keep you posted on progress 😄 Thank you for the interest and raising this 🙏

Thanks, happy to test if you got a PR as well :)

Thanks, happy to test if you got a PR as well :)

Thank you! Here's the first pass at the PR, though I'd like to go back and clean up a few bits before merging it in ☺

Hey @mhaas! Just a note to say that I've merged that PR ☝ into main, but it's not yet made its way into a new release of the CLI.
If you wanted to run a local version of main and run the ./rebuild.sh script (which uninstalls any existing Skyline extension and installs the one from the local repo), then you would be able to test it there 😄


How to implement custom functionality

How to implement custom functionality in serenity project using MVC. I want custom UI (like AdminLTE/Examples/Register form means own html control) and some logics, so how can be achieve this in serenity project. Is it possible or not. If possible please implement some customize functionality as soon as possible. Please help me.

They are ordinary MVC pages, so you can implement custom functionality using MVC guides, check some books. I can only offer help for Serenity specific questions.

 Additionally, there are many samples and resources you can play with by simply searching for MVC on Google.
w3Schools is also a good simple introduction to different coding types.
http://www.w3schools.com/aspnet/mvc_intro.asp
If you look, you can find a lot of reference material online for MVC. It's actually not as difficult to learn.


Is that a bug?

I wrote my own version of CRC algorithm and experienced a problem when the Input string has an odd number of digits (I work with hexadecimal type of string). But when Input has an even number off charracters, my algorithm works well.
I tried a simple test and did the calculations by hand. The result points that maybe there is bug in algorithm of site http://crccalc.com/   (either I am not knowing how to calculate CRC yet) .
WHAT IS WORNG ? (Is its my test bellow or a bug?)
(Try to copy and paste lines bellow to a text editor with nomospaced fonts to easy view.)
Input String: C23
String Type: Hexadecinal characters
Input Bitstream: 0xC23
CRC version: CRC-8/CDMA2000
Polynomial: 0x9B
Init: 0xFF
Bitstream:
1100 0010 0011
Start of calculation process:
11000010001100000000             <:= Original Input bitstream plus excess remainder (0000 0000)

Xor 11111111  <:= Init (FF)          <:= CRC Initial value Xored to first byte of bitstream and the rest of bitstream

00111101001100000000             <:= CRC Remainder and the rest of bitstream
..111101001   		     <:= shift 2 bits and include 3 bits from the rest of bitstream

Xor..110011011    <:= Polynomial(9B)

...01110010100000000             <:= CRC Remainder and the rest of bitstream
....111001010   		     <:= shift 1 bit and include 2 bits from the rest of bitstream
Xor 110011011    <:= Polynomial(9B)
  ______________
.....010100010000000             <:= CRC Remainder and the rest of bitstream
......101000100                  <:= shift 1 bit and include 2 bits from the rest of bitstream
  Xor 110011011    <:= Polynomial(9B)
    ______________
.......1101111100000             <:= CRC Remainder and the rest of bitstream
.......110111110                 <:= NO shift but include 1 bit from the rest of bitstream
   Xor 110011011    <:= Polynomial(9B)
     ______________
........001001010000             <:= CRC Remainder and the rest of bitstream
..........100101000              <:= shift 2 bits and include 3 bits from the rest of bitstream
     Xor  110011011    <:= Polynomial(9B)
       ______________
...........101100110             <:= CRC Remainder and the rest of bitstream
...........101100110             <:= NO shift but include 1 bit from the rest of bitstream
       Xor 110011011    <:= Polynomial(9B)
         ______________
............11111101    <:= CRC = 0xFD

Or using a different  view approach:
Start of calculation process:
1100 0010  [0011 (0000 0000)]    <:= Original Input bitstream plus excess remainder (0000 0000)

Xor 1111 1111  <:= Init (FF)         <:= CRC Initial value Xored to first byte of bitstream and the rest of bitstream

0011 1101  [0011 (0000 0000)]    <:= CRC Remainder and rest of bitstream
  1 1110 1001   		     <:= shift 2 bits and include 3 bits from the rest of bitstream

Xor (1)1001 1011    <:= Polynomial(9B)
______________
0111 0010  [1 (0000 0000)]   <:= CRC Remainder and rest of bitstream
1 1100 1010   		     <:= shift 1 bit and include 2 bits from the rest of bitstream
Xor (1)1001 1011    <:= Polynomial(9B)
______________
0101 0001 [000 0000]      <:= CRC Remainder and rest of bitstream
1 0100 0100              <:= shift 1 bit and include 2 bits from the rest of bitstream
Xor (1)1001 1011    <:= Polynomial(9B)
______________
1101 1111  [0 0000]    <:= CRC Remainder and rest of bitstream
1 1011 1110            <:= NO shift but include 1 bit from the rest of bitstream
Xor (1)1001 1011    <:= Polynomial(9B)
______________
0010 0101  [0000]    <:= CRC Remainder and rest of bitstream
1 0010 1000        <:= shift 2 bits and include 3 bits from the rest of bitstream
Xor (1)1001 1011    <:= Polynomial(9B)
______________
1011 0011  [0]     <:= CRC Remainder and rest of bitstream
1 0110 0110        <:= shift 2 bits and include 3 bits from the rest of bitstream
Xor (1)1001 1011    <:= Polynomial(9B)
______________
1111 1101    <:= CRC = 0xFD

http://crccalc.com/?crc=0C23&method=crc8&datatype=hex
result = 0x0B for CRC-8/CDMA2000
http://www.sunshine2k.de/coding/javascript/crc/crc_js.html
select CRC8_CDMA2000
Input: 0x0c 0x23
Result = 0xB
The test result is also correct.
I think there is no error.

Thanks a lot, meetanthony.
NO BUG.
I got it. The algorithm of the those sites (http://crccalc.com/?crc=0C23&method=crc8&datatype=hex  and http://www.sunshine2k.de/coding/javascript/crc/crc_js.html ) are based on BYTE stream. My algorithm is based on BIT stream.
So working in those sites anyone must enter an Input String of size equal to a multiple of  8 bits like 0x0C23 ( 0000.1100.0010.0011_B) but in my algorithm I entered a string of 3 nibbles (3 groups of four bits) 0xC23 (1100.0010.0011_B). This is the answer, the BIT STREAMs are different.


Trajectron++

I have read your paper<Trajectron++: Multi-Agent Generative Trajectory Forecasting
With Heterogeneous Data for Control>, but the repo does not exist anymore. So, will you share this great work again?
Thanks

Yep! We just released it today :) Check it out here: https://github.com/StanfordASL/Trajectron-plus-plus


Issue when calling csvtomd function

I just installed csvtomd and have the following issue when trying to call the function csvtomd doc.csv > doc.md.
Traceback (most recent call last):
  File "/opt/conda/envs/python2/bin/csvtomd", line 11, in <module>
    load_entry_point('csvtomd==0.2.1', 'console_scripts', 'csvtomd')()
  File "/opt/conda/envs/python2/lib/python2.7/site-packages/pkg_resources/__init__.py", line 561, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/opt/conda/envs/python2/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2631, in load_entry_point
    return ep.load()
  File "/opt/conda/envs/python2/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2291, in load
    return self.resolve()
  File "/opt/conda/envs/python2/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2297, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/opt/conda/envs/python2/lib/python2.7/site-packages/csvtomd/__init__.py", line 1, in <module>
    from .csvtomd import *
  File "/opt/conda/envs/python2/lib/python2.7/site-packages/csvtomd/csvtomd.py", line 79
    def md_table(table, *, padding=1, divider='|', header_div='-'):
                         ^
SyntaxError: invalid syntax

Hey @naileakim, it looks like you are using Python 2. This script doesn't support Python 2.
You'll need to install this with Python 3 instead: pip3 install csvtomd.


(WIP) (IAC-672) Ensure testing against PS & xplat pwsh

This commit updates the CI test suite to include runs against
PowerShell core on both Windows and linux.

NB: This is currently failing because pwsh cannot discover any DSC resources except for the out of the box ones, meaning this also can't work cross-platform yet. Filed a private bug with the PowerShell team but we can't move forward until our test resources are discoverable.
I also commented on a public issue which seems to be related.


Winston fails with "TypeError: Converting circular structure to JSON"

Please tell us about your environment:

winston version? 3.3.3 (and before)

[ ] winston@2
[x] winston@3

node -v outputs: v14.17.1
Operating System?: Amazon Linux 8ae1a37af318 4.14.186-110.268.amzn1.x86_64 SMP Tue Jul 14 02:57:34 UTC 2020 x86_64 GNU/Linux
Language? any

What is the problem?
App crashes with TypeError: Converting circular structure to JSON when logging through Winston.
What do you expect to happen instead?
Winston should safely convert any object to be logged.
Other information
> node --stack-trace-limit=50 cluster.js

TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'Socket'
    |     property '_writableState' -> object with constructor 'WritableState'
    |     property 'afterWriteTickInfo' -> object with constructor 'Object'
    --- property 'stream' closes the circle
    at JSON.stringify (<anonymous>)
    at Http._request (/usr/src/app/node_modules/winston/lib/winston/transports/http.js:200:30)
    at Http.log (/usr/src/app/node_modules/winston/lib/winston/transports/http.js:52:10)
    at Http._write (/usr/src/app/node_modules/winston-transport/index.js:82:19)
    at doWrite (/usr/src/app/node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js:428:64)
    at writeOrBuffer (/usr/src/app/node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js:417:5)
    at Http.Writable.write (/usr/src/app/node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js:334:11)
    at DerivedLogger.ondata (/usr/src/app/node_modules/readable-stream/lib/_stream_readable.js:681:20)
    at DerivedLogger.emit (events.js:375:28)
    at DerivedLogger.emit (domain.js:470:12)
    at addChunk (/usr/src/app/node_modules/readable-stream/lib/_stream_readable.js:298:12)
    at readableAddChunk (/usr/src/app/node_modules/readable-stream/lib/_stream_readable.js:280:11)
    at DerivedLogger.Readable.push (/usr/src/app/node_modules/readable-stream/lib/_stream_readable.js:241:10)
    at DerivedLogger.Transform.push (/usr/src/app/node_modules/readable-stream/lib/_stream_transform.js:139:32)
    at DerivedLogger._transform (/usr/src/app/node_modules/winston/lib/winston/logger.js:305:12)
    at DerivedLogger.Transform._read (/usr/src/app/node_modules/readable-stream/lib/_stream_transform.js:177:10)
    at DerivedLogger.Transform._write (/usr/src/app/node_modules/readable-stream/lib/_stream_transform.js:164:83)
    at doWrite (/usr/src/app/node_modules/readable-stream/lib/_stream_writable.js:409:139)
    at writeOrBuffer (/usr/src/app/node_modules/readable-stream/lib/_stream_writable.js:398:5)
    at DerivedLogger.Writable.write (/usr/src/app/node_modules/readable-stream/lib/_stream_writable.js:307:11)
    at DerivedLogger.log (/usr/src/app/node_modules/winston/lib/winston/logger.js:244:14)
    at DerivedLogger.<computed> [as error] (/usr/src/app/node_modules/winston/lib/winston/create-logger.js:95:19)
    at /usr/src/app/lib/util.js:241:12
    at Layer.handle_error (/usr/src/app/node_modules/express/lib/router/layer.js:71:5)
    at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:315:13)
    at /usr/src/app/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:335:12)
    at Domain.next (/usr/src/app/node_modules/express/lib/router/index.js:275:10)
    at Domain.emit (events.js:375:28)
    at Domain.emit (domain.js:470:12)
    at Request.<anonymous> (/usr/src/app/node_modules/aws-sdk/lib/request.js:29:25)
    at Request.<anonymous> (/usr/src/app/node_modules/aws-sdk/lib/request.js:690:12)
    at Request.callListeners (/usr/src/app/node_modules/aws-sdk/lib/sequential_executor.js:116:18)
    at Request.emit (/usr/src/app/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
    at Request.emit (/usr/src/app/node_modules/aws-sdk/lib/request.js:688:14)
    at Request.transition (/usr/src/app/node_modules/aws-sdk/lib/request.js:22:10)
    at AcceptorStateMachine.runTo (/usr/src/app/node_modules/aws-sdk/lib/state_machine.js:14:12)
    at /usr/src/app/node_modules/aws-sdk/lib/state_machine.js:26:10
    at Request.<anonymous> (/usr/src/app/node_modules/aws-sdk/lib/request.js:38:9)
    at Request.<anonymous> (/usr/src/app/node_modules/aws-sdk/lib/request.js:690:12)
    at Request.callListeners (/usr/src/app/node_modules/aws-sdk/lib/sequential_executor.js:116:18)
    at Request.emit (/usr/src/app/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
    at Request.emit (/usr/src/app/node_modules/aws-sdk/lib/request.js:688:14)
    at Request.transition (/usr/src/app/node_modules/aws-sdk/lib/request.js:22:10)
    at AcceptorStateMachine.runTo (/usr/src/app/node_modules/aws-sdk/lib/state_machine.js:14:12)
    at /usr/src/app/node_modules/aws-sdk/lib/state_machine.js:26:10
    at Request.<anonymous> (/usr/src/app/node_modules/aws-sdk/lib/request.js:38:9)
    at Request.<anonymous> (/usr/src/app/node_modules/aws-sdk/lib/request.js:690:12)
    at Request.callListeners (/usr/src/app/node_modules/aws-sdk/lib/sequential_executor.js:116:18)
    at Request.emit (/usr/src/app/node_modules/aws-sdk/lib/sequential_executor.js:78:10)

I know this has been discussed before. And it seems that at some point in v2 development JSON.stringify() was replaced with fast-safe-stringify (see https://github.com/winstonjs/logform/pull/35) to address this issue. But I no longer find any reference to this module, but JSON.stringify() seems to be used again in v3?
I yet have to find a reproducible way to trigger this failure. It only happens "once in a few million" requests. But it's still something we'd like to get rid of.

Or maybe it's only the HTTP transport in https://github.com/winstonjs/winston/blob/2625f60c5c85b8c4926c65e98a591f8b42e0db9a/lib/winston/transports/http.js#L200 which was not updated?

Same thing happening to me

Looks like @mherger has found at least one source of the issue and an example of a prior commit which solved the same issue elsewhere.  A PR applying that to this instance and any other (especially non-test) instances of JSON.stringify would be welcome.  A PR with tests to help avoid regression would be too.


Edgescan azure sentinel integration

Fixes #
Proposed Changes

Hi Sarah!
Are you talking about the readme in  Azure-Sentinel/Playbooks/Edgescan-AzureSentinel-Integration ? I'm seeing all pictures rendering there just fine. It does look like the readme in Azure-Sentinel/Playbooks/ is not rendering a picture but I have not modified that file. I searched through my links for the localization tag you mentioned and was unable to find anything. Please let me know what else I can try.

Hmmm okay, it might render fine when merged, seen that before. Doing further digging, the locale scan was upset by some of the .png files which makes no sense so going to ignore that. :)

Thank you Sarah!


Rename stamps and badges to achievements

Idea Description
The sections previously referred to as stamps and badges have caused a conflict with other terminology used in DroidKaigi.
As a result, we have decided to rename them to achievement.
Please update all functions, module names, and areas where the terms stamp, stamps, Badge, and Badges are used to achievement or achievements
Reference images and links

🙋♀

Thanks! Assigned 👍


deprecated function EOL in HA 2025

potential future problem
Please can you update the function ? thank you
error i get when using your cozylife integration
Source: helpers/deprecation.py:205
TEMP_CELSIUS was used from hass_cozylife_local_pull, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please report it to the author of the 'hass_cozylife_local_pull' custom integration

I quickly looked into the source code and it seems that TEMP_CELSIUS is imported but not being used. Seems this project is not being maintained for a while, so it should be something easy to to. Fork this project, do the change, and add it to HA.

I quickly looked into the source code and it seems that TEMP_CELSIUS is imported but not being used. So it should be something easy to to.


User can see the password that he enters using the eye button

Opening new pull request due to merge conflicts


Preinstall installs devDependencies

Do I need that preinstall set if I don't plan on developing inside the library? I'd like to use it, but I don't want to install those extra libraries, or force my team to as well. This occurs when just doing a normal npm install angular-2-daterangepicker.

no that's right you do not need to install those. I did not realize I have left it there in scripts, I have removed it. Please take latest version. And thank you for pointing it out.

Next problem I hit seems to be another small change, that I believe only matters with webpack, but should be beneficial in general. The error reads:
Uncaught Error: moduleId should be a string in "DaterangepickerComponent". See https://goo.gl/wIDDiL for more information.
If you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.

Angular-cli has an open issue about it: https://github.com/angular/angular-cli/issues/3576. I haven't looked into it deeply enough to determine if this is a fault of webpack or angular, but just adding .toString() to module.id in the components should fix it. It looks like the typescript -> javascript conversion adds this metadata automatically, so maybe manually including it in typescript would be the solution.
I did test, and editing in the .toString() to daterangepicker-component.js and calendar-component.js does fix this, and I am able to successfully load the daterangepicker at that point.

sure i wll remove the dependancy on it. webpack seems to give problem with it.

@james-criscuolo Closing the issue. Assuming your issue is solved.


Build Option/Separate Function to Allow to Throw on Duplicate Keys

In reference to the #375 , I would like to request a compile time option to allow the library to throw on encountering duplicate keys. Or at least a completely separate parse function to do the same?

I think it's rather hard to detect duplicate keys in operator[], because it always returns a reference to a value - it could also be a default-constructed null. That is,
j["foo"] = 1;

could not detect whether foo was stored before. We could also not add a check, because we cannot know whether the returned reference is used to read or to add a value.
So how could an API for this look like?
j.add_or_throw("foo", 1);

Like this?

Apologies for not being clear in my request. I meant encountering duplicate keys on parsing of JSON file. I know the standard does not specify any behaviour. But, it would be good to have a non-default option to parse a JSON and ensure a unique key.

This could be done by implementing the key event of the SAX interface (see https://github.com/nlohmann/json/blob/develop/include/nlohmann/detail/input/json_sax.hpp#L145) differently. It is currently:
bool key(string_t& val)
{
    // add null at given key and store the reference for later
    object_element = &(ref_stack.back()->m_value.object->operator[](val));
    return true;
}

To throw, one would need to check whether val (the key) is already stored in the object we are parsing to (ref_stack.back()).
Here is a complete example:
#include "json.hpp"
#include <iostream>

using json = nlohmann::json;

class throwing_sax : public nlohmann::detail::json_sax_dom_parser<json>
{
  public:
    throwing_sax(json& j) : nlohmann::detail::json_sax_dom_parser<json>(j) {};

    bool key(json::string_t& val)
    {
        if (ref_stack.back()->contains(val))
        {
            throw std::invalid_argument("key " + val + " was already stored");
        }
        return nlohmann::detail::json_sax_dom_parser<json>::key(val);
    }
};

int main(int argc, char *argv[])
{
    json j;
    throwing_sax sax_consumer(j);

    auto input = "{ \"key\": 1, \"key\": 2 }";
    json::sax_parse(input, &sax_consumer);
    std::cout << j << std::endl;
}

The only problem left is that ref_stack is a private variable of json_sax_dom_parser. If you set it to protected, the code compiles. Would this be an approach that works for you?

Yes, this works for me. Thank you.

The solution @nlohmann provided works but we could also implement this into the library itself under a feature macro. I know is not the way of the true c++ but it could work. I leave the proposed solution, let me know if you guys want me to submit a PR.
bool key(string_t& val)
{
#ifdef JSON_THROW_REPEATED_KEY
    if (ref_stack.back()->contains(val))
    {
        JSON_THROW(parse_error::create(115, "found duplicated key: " + val));
    }
#endif
    // add null at given key and store the reference for later
    object_element = &(ref_stack.back()->m_value.object->operator[](val));
    return true;
}

I would also need to add the 115 to the json parser error docu :wink:

I feel the advantage of the first method is that you can use both behaviors in the same build as necessary.

Hi! Sorry to raise this issue again, but is there some plan to provide this functionality in the future? Thanks.


AR kit for WPF?

Hi there,
Just curious if there are plans for an AR kit for WPF.  Unless I missed it, I can only see kits for iOS, Android, and UWP.
Thanks!
Chris

We rely on ARKit for iOS and ARCore for Android. There's no AR library for Windows we can build on, so we currently have no plans for Windows.
We might do a GPS/Look-around based approach for UWP down the line (you've probably seen some (disabled) parts of that on the code base). I don't see us doing WPF as the APIs to do this bit relies on various Win10 APIs and the performance and blending that UWP/WinUI delivers with its SwapChainPanel

Thanks for your prompt response @dotMorten.
Cheers.


Fix missing import for dart:ui in google_fonts_base.dart

Description
I encountered an error when using the google_fonts package, specifically version 6.2.0. The error is related to the missing FontFeature type. It appears that the import for dart:ui is missing in the google_fonts_base.dart file. Adding the missing import resolves the issue and ensures that the FontFeature type is recognized.
Tests
The change is a simple import addition, which doesn't affect the logic of the package but fixes the compilation error. Manual testing was performed to ensure the package compiles and works correctly after the import addition.
Issues
Fixes #
I did not create an issue for this fix. This pull request addresses the following error directly:
AppData/Local/Pub/Cache/hosted/pub.dev/google_fonts-6.2.0/lib/src/google_fonts_base.dart:69:8: Error: Type 'FontFeature' not found.
List? fontFeatures,
^^^^^^^^^^^
AppData/Local/Pub/Cache/hosted/pub.dev/google_fonts-6.2.0/lib/src/google_fonts_base.dart:69:8: Error: 'FontFeature' isn't a type.
List? fontFeatures,
^^^^^^^^^^^
Checklist

[x] I've reviewed the contribution guide.
[x] I've updated the package CHANGELOG.md

I suspect you're using an old Flutter version, can you please flutter upgrade and try again?

I suspect you're using an old Flutter version, can you please flutter upgrade and try again?

You're right, after the Flutter upgrade, the error stopped occurring.
... after hours upgrading because of package restrictions and all that, thanks a bunch, mate.
cheers


LinearSnapHelper and scrollToPosition

Hi there,
I'm using "LinearSnapHelper" for center snapping and when using "scrollToPosition" the RecyclerView's layout is not centering as if i were scrolling manually.
Tried "smoothScrollToPosition" as i found on Stack OverFlow but then i'm getting a blank RecyclerView.
Any solution?
Thanks!

Ok, so smoothScrollBy(1, 0) after scrollToPosition(5) worked, but the movement animation is visible to user which is weird.
Any idea on how to fix it via the "scrollToPosition" function?


New Theme

The old theme is feeling a bit crowded, time to freshen up.

I'm calling the general theme work done here: 4fbf47ccbb2e0b5860a3696b7e453cc126dfb87e


[BUG] Run test in Nunit failed while succeeded in UnitTest

Our company use Nunit as our test automation framework. I have tried your sample in earlier version using Nunit successfully. But for the sample I cloned today I am failed when modify your code to use Nunit, the error I am getting is:
UciTestCreateAccount Failed: OpenQA.Selenium.DriverServiceNotFoundException : The file C:\Users\xhuang\AppData\Local\Temp\oqz4aep4.edy\ha5cor2y.adk\chromedriver.exe does not exist. The driver can be downloaded at http://chromedriver.storage.googleapis.com/index.html
OpenQA.Selenium.DriverServiceNotFoundException : The file C:\Users\xhuang\AppData\Local\Temp\oqz4aep4.edy\ha5cor2y.adk\chromedriver.exe does not exist. The driver can be downloaded at http://chromedriver.storage.googleapis.com/index.html
at OpenQA.Selenium.DriverService..ctor(String servicePath, Int32 port, String driverServiceExecutableName, Uri driverServiceDownloadUrl)
at OpenQA.Selenium.Chrome.ChromeDriverService..ctor(String executablePath, String executableFileName, Int32 port)
at Microsoft.Dynamics365.UIAutomation.Browser.BrowserDriverFactory.CreateWebDriver(BrowserOptions options)
at Microsoft.Dynamics365.UIAutomation.Browser.InteractiveBrowser.get_Driver()
at Microsoft.Dynamics365.UIAutomation.Browser.BrowserPage.Execute[TResult,T1,T2,T3,T4](BrowserCommandOptions options, Func`6 delegate, T1 p1, T2 p2, T3 p3, T4 p4)
at Microsoft.Dynamics365.UIAutomation.Api.UCI.WebClient.Login(Uri orgUri, SecureString username, SecureString password)
at Microsoft.Dynamics365.UIAutomation.Api.UCI.OnlineLogin.Login(Uri orgUrl, SecureString username, SecureString password)
at NunitCRMTestProject.TestsBase.CreateApp(Boolean privateMode) in C:\Users\xhuang\source\repos\NunitCRMTestProject\NunitCRMTestProject\TestsBase.cs:line 44
at NunitCRMTestProject.TestsBase.InitTest() in C:\Users\xhuang\source\repos\NunitCRMTestProject\NunitCRMTestProject\TestsBase.cs:line 25
at NunitCRMTestProject.CreateAccountNunit.InitTest() in C:\Users\xhuang\source\repos\NunitCRMTestProject\NunitCRMTestProject\CreateAccount Nunit.cs:line 12
It looks when using Nunit with your latest sample code, the chromedriver needs to copy to a temp folder which does NOT exist after test run. I reran my Nunit with your earlier sample code, I do not have any issues. Could you fix this asap? Thanks!

This is related with the private mode. I commented out the line //options.PrivateMode = privateMode || _usePrivateMode; then the test runs for Nunit as well as UnitTesting.
Is private mode a must for the test if we need to switch users in the same testfixture?

The DriverPath & the PrivateMode are not really related, they are configured independently. I think it depends of which Test Runner you use & which NuGet package for the Selenium Web Driver is installed in each Version. You can also put the DriverPath in app.config to indicate where the driver is installed.
Anyway I also remove this code in the las version of TestsBase (no released yet)

Is private mode a must for the test if we need to switch users in the same testfixture?
I will say Yes, because in other case you need to SignOut & Close the browser, all instances probably. That will cost more execution time & is unnecessary. Private Mode do it automatically because the browser do not save any user data, inclusive the user credentials.

But deactivating PrivateMode, do not means automatically that the credentials will be saved. In Chrome for example is not the case, because "Chrome is being controlled by an automated Software" create automatically a temporal user profile in each test execution, i tried unsuccessfully to set always the same user profile. This behavior can be different in Edge or Firefox.
I was trying not to close the browser after each tests. to save the Login execution time. But as soon I got an alert or modal Dialog in one tests the follow tests fails. It can be done, but I don't wanted to invest more time in this. Also because the MSTest framework was not working properly with the class initialisier methods (in NUnit, that works better). For this reasons is difficult to implement this Logic that works fine for all scenarios.
br

Can you close this also?


New devices beyond cmos

The previous commit was only an empty file.
@JR6PLB Does this look ok?

Thanks Mehdi.
Looks perfect.
Sadayuki
2024年8月11日(日) 23:43 Mehdi Saligane @.***>:

Merged #22
https://github.com/msaligane/US_Japan_Semiconductor_Workshop/pull/22
into main.
—
Reply to this email directly, view it on GitHub
https://github.com/msaligane/US_Japan_Semiconductor_Workshop/pull/22#event-13835541717,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A4TTVNF443XXSQJG3Q2S77TZQ52CTAVCNFSM6AAAAABMJGRWFOVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTHAZTKNJUGE3TCNY
.
You are receiving this because you were mentioned.Message ID:
<msaligane/US_Japan_Semiconductor_Workshop/pull/22/issue_event/13835541717
@github.com>


Dependency upgrades

Holding back node-fetch to 2.x for CJS support
Holding back all Mantine dependencies to 6.x because we're not ready for that migration
Holding back Docusaurus dependencies clsx and prism-react-renderer for Docusaurus compatibility

coverage: 93.866%. remained the same when pulling c100987363abf32c0ff2a496e988e8302a094f1d on cody-dep-upgrades-2023-10-14 into 703ef1a80da06705a55e1bd39db39f5d75b45000 on main.


.git folder selected when publishing to github

create a folder
git init
add a .gitignore file
do a local commit
F1 > Publish to GitHub
Result: you get a picklist with the .git folder selected.  I don't think we want this folder to be published, do we?

if i do include it, my .gitignore file gets overwritten... if i had node_modules in there and other foldres (e.g. .next), i get an error about there being too many files and asking me if i want to include node_modules in .gitignore.  i say yes, then everything else in my .gitignore is lost


📈 Logarithmic volume curve

Hi there!
This PR adds a "Logarithmic" option to the popup menu that controls whether the volume slider is linear or logarithmic. This utility is a God-send, but Windows' volume mixer being linear means I have the majority of my inputs at very low settings most of the time.
It uses a not-so-ideal-but-still-quite-good curve.
Notable changes:

Each Fader now has its own power setting. Currently, the Logarithmic option sets this to 2f. Otherwise, it's 1f.
Upon setup or changing the Logarithmic option, Faders that are actually knobs (or otherwise use a MIDI "note" to go up/down) set up an array of "steps", listing each volume level they should hit at each interval. When a volume is set, it firsts find what interval it's at before moving to the next/previous one. This solves some volume jumping that happened when changing volumes without NK2.

Please shout if you need any specific changes for this (or whether it's something that's seen as useful). I'm not a C# dev by trade, so pieces here might be a bit shaky. 😉

Just pushed a fix for the volume indicators on the XTM.
They were already behaving as expected, but the initial indicator level upon booting the software was incorrect if using a logarithmic control.
The initial boot should now set the indicator level logarithmically or linearly just like it does on a fader update. 👍🏻

Awesome work @jpwilliams, and thanks for the testing and assist, @ReapersDragon!

awesome feature 👍 just tested it with my NK2 and it works like a charm. I was thinking about approaches to solve the issue with the slider always in the lower ranges and this is just so simple and nice :)