RM4C mini Bestcon Unknown

Used Broadlink app to connect Bestcon RM4C mini to wifi.
Already use multiple devices so have set
device_type = 'multiple_lookup'  in custom.conf
Running python3 ./mqtt.py in terminal I see
[2021-01-24 16:53:45,752] DEBUG Connected to 'Unknown' Broadlink device at '<IP_ADDRESS>' (MAC a0:43:b0:31:d3:63) and started listening to MQTT commands at 'broadlink/Unknown_31_d3_63/#'
As well as other broadlink devices.
Sending commands via mosquitto_pub
replay -> broadlink/Unknown_31_d3_63/soundbar/power
in terminal I get
[2021-01-24 16:55:46,276] DEBUG Received MQTT message broadlink/Unknown_31_d3_63/soundbar/power replay [2021-01-24 16:55:46,277] WARNING Unrecognized MQTT message replay
The above command works fine if sent to other broadlink devices.
Have deleted RM4C from broadlink app and re-added wifi again without continuing full configuration.
Have installed the latest broadlink-mqtt revision.
But can't get this device working.

This issue is related to the https://github.com/mjg59/python-broadlink library. I'm also using a RM4C device, I'm able to debug it:
import broadlink

devices = broadlink.discover(timeout=5)

>>> for device in devices:
...   print(device.type)
...
RM2
Unknown

It has been added to python-broadlink, but it hasn't been released: https://github.com/mjg59/python-broadlink/commit/bc6719dc2a125ef6979d017f98fe640a9d959b72. I've fixed it installing the package from Github with the command:
pip3 install --upgrade git+https://github.com/mjg59/python-broadlink.git@master#egg=broadlink

Thanks -  added
0x6539: (rm4, "RM4C mini", "Broadlink"),
to
/usr/local/lib/python3.7/dist-packages/broadlink/init.py
and RM4C mini is working great.


Allow sharing the Go cache directory for crossbuilds

@simonpasquier I am massively rewriting cmd/crossbuild.go in #177

@sylr yes I know but I'm not sure it's the right direction...

I've managed to make it work (though a few things need to be cleaned up). The build job with a prefilled buildcache goes down from 13m40s to 1m28s.
One concern is that the build cache's size for this repository (which isn't too big) is approximately 390MB while Circle CI recommends keeping it under 500MB.

When does the build cache is effective ? if the go sources are modified will it still improve things ?

@simonpasquier As I rewrote crossbuild entirely to not use docker anymore (I created a crossbuild-docker command) would you mind to only commit the tweak you made in the .circleci/conf.yml to save the GOCACHE dir ?

@sylr

When does the build cache prove effective ? if "our" go sources are modified from one commit to another will it still improve things ?

Obviously it would need to be tested on Circle CI but this is what I get with my local machine when crossbuilding different versions of github.com/prometheus/prometheus.
# crossbuild the release-2.15 branch without cache.

real    23m53.257s
user    0m3.456s
sys     0m7.881s

# crossbuild the master branch with the cache directory from the previous step.

real    14m23.807s
user    0m6.726s
sys     0m13.227s

# crossbuild the master branch with the cache directory from the previous step.

real    11m38.822s
user    0m6.661s
sys     0m13.647s

So the difference between a fresh cache and an outdated cache isn't huge. Note that it assumes that go.mod hasn't changed between master and release-2.15 which isn't true. We can also have a per-project context variable keeping the cache's version number and bump it to force a refresh of the cached data.

OK, thank you for this.
I also did some tests on my side and running crossbuild on prometheus on my mac generated 6GB of data in the cache dir, do you roughtly have the same number ?

I've reached 8.5GB of build cache after the runs I've described.

How's this going? It's approved, but there's a lot of un-resolved threads.

Ping, should we finish this up?

Ping @simonpasquier, can you rebase this?


Fix link to examples directory in README.md

I noticed that the main branch was renamed from master, but the link to examples weren't updated.
I changed it to a relative path, this way it'll work correctly for every branch.

good catch thanks!


can you help me?

T run this comman :python3.6 main.py demo --openpose /home/lc/Downloads/openpose-master/cmake-build-debug --video /home/lc/Downloads/st-gcn/resource/media/clean_and_jerk.mp4 --device 0
then got a error
ERROR: unknown command line flag 'display'
ERROR: unknown command line flag 'write_json'
Can not find pose estimation results.

Hi, Lucheng,
It seems that the Openpose version you used is unmatched.


TransformedDistribution Documentation is not readable

Describe the problem
The documentation of tfp.TransformedDistribution is not readable in between, seen the attachement
Source code / logs
Please see attachment

Ok. Thanks. Done.

@ramakrse  Could you please go ahead and close the issue.


Changing data does not invoke onDataChange

Perhaps I am missing some crucial information regarding the data object, it appears to be immutable, so does that mean I must create a snapshot every time I wish to modify it.
var UserModel = Caplet.createModelClass({
  initialize: function () {
    console.log('Initialized:', this.data)
  },

  onChange: function (data) {
    console.log('Saving Model Data', this.data)
  },

  setTokenData: function (token) {
    // here is where it happens, you have to clone it then set it
    var data = this.toData(this.data)
    data.token = token
    return this.set('data', data)
  }
})

The above will invoke onDataChange properly, however, this example will not:
this.set('data.token', token)

Meaning now there are two states on the model, direct properties user.token and user.data.token which are no longer synced.

Reason as to why I am doing the toData:

Looked more into it and it has to do with watchable-object library, as it doesn't keep a snapshot, if you modify this.data that is modifying what I will call the source of truth and what is compared against meaning that it thinks there was no change.
A better solution is to make it immutable, or store a snapshot of data to compare against and update the snapshot only when onDataChange is fired.

Currently doing something like this to get around this issue:
Caplet.Model.prototype.__proto__.onDataChange = function (data) {
  this.setProperties(this.fromData(data))
  this.state = this.toData(data)
}

Then doing:
  setTokenData: function (token) {
    this.state.token = token
    this.set('data', this.state)
  }

Now everything is propagated properly.

Yep, the data property is the source of truth, and shouldn't be modified within the Model.
Got any ideas on how you'd like this API to be?

Got any ideas on how you'd like this API to be?

I added a post of how I got around it, perhaps you have some thoughts on making a snapshot of data, and this.data is no longer the source of truth but rather a snapshot of the current state that data is

Yep, the data property is the source of truth, and shouldn't be modified within the Model.

How should it be updated, perhaps my approach is flawed, I can't do user.set('data.token') as it doesn't propagate the data change either.

It seems ditching .data fares pretty well

The data property is still tremendously useful if you have a remote data source. I just wonder if it could either a) be moved to a mixin, or b) defined as a private property (.__data, instead of .data) since you should never really mutate the data property on a model explicitly. Here's a proper example of how I'm currently using the data prop in some production apps:
var mesh            = require("mesh");
var createMemoryBus = require("mesh-memory");
var caplet          = require("caplet");
var extend          = require("xtend/mutable");

var persistenceMixin = {

  /**
   * load data on the model
   */

  load: function(onLoad) {
    return this.fetch({ name: "load", query: this.getSelfQuery() }, onLoad);
  },

  /**
   * load data on the model
   */

  remove: function(onLoad) {
    return this.fetch({ name: "remove", query: this.getSelfQuery() }, onLoad);
  },

  /**
   */

  insert: function(onUpdate) {
    return this.fetch({ name: "insert" }, onUpdate);
  },

  /**
   */

  update: function(onUpdate) {
    return this.fetch({ name: "update", query: this.getSelfQuery() }, onUpdate);
  },

  /**
   */

  save: function(onSave) {
    return this.isNew() ? this.insert(onSave) : this.update(onSave);
  },

  /**
   */

  isNew: function() {
    return !this.data; // no data prop? No source of truth = new
  },

  /**
   */

  getSelfQuery: function() {
    var q = {};
    q[this.idProperty] = this[this.idProperty];
    return q;
  },

  /**
   */

  fetch: function(operation, onComplete) {
    if (!onComplete) onComplete = function() { };

    return this.bus(extend({
      name  : operationName,
      data  : this.data = this.toData() // freeze data for now
      model : this
    }, operation))
    .once("data", this.set.bind(this, "data"))
    .once("error", onComplete)
    .once("end", onComplete);
  }
}

var Person = caplet.createModelClass({
  idProperty: "name",
  mixins: [persistenceMixin],
  toData: function() {
    return {
      name: this.name,
      age: this.age
    };
  }
});

var bus = mesh.limit(1, createMemoryBus());

var person = Person({
  bus: bus,
  name: "Jake",
  age: 42
});

person.isNew(); // true
console.log(person.name); // Jake
person.save(); // bus({ name: "insert", data: { name: "Jake", age: 42 }})
person.age = 30;
person.save(); // bus({ name: "update", data: { name: "Jake", age: 30 }});

var person2 = Person({
  bus: bus,
  name: "Jake"
});

person2.load(function() {
  console.log(person2); // { name: "Jake", age: 42 }
}); // loads Jake

My needs are less for a remote source and more of a localstorage situation. I suppose I could architect it this way, but that just introduces a lot of hassle. Not to mention not using mesh.


Is there any way to completely release the camera and then retrieve it again?

My app has a single screen where I can use the camera to read barcodes or use another external device to do so, like a physical barcode scanner connected via USB.
The user needs to be able to switch between these two "modes", meaning that the app needs the ability to turn off the camera and then turn it on again if necessary, all within the same screen.
Some of those external devices won't work if they detect the camera is not released, meaning I need a way to completely release the camera before using those devices.
Initially, I thought the camera would be released upon disposing the BarcodeView's Observable subscription, but as far as I understand now, this only happens when the BarcodeView itself is completely destroyed.
How can I completely release the camera and retrieve it again if necessary using this library?

Hi @renanferrari ,
thank you for submit this bug. Yeah you are right, the camera should be released when the subscription gets disposed. There was a mistake in the last update. I fixed the bug and released a new version. Can you test it now?

@bobekos It's working fine now, thank you for fixing it!

mDisposable?.dispose() it's working well with Android 11, but it does not release the camera on Android 8.1.0  !


Filtering events via before_send just moves spam from Sentry to log file

I am using a before_send function to not spam our sentry server with tons of reports we don't need.
However, due to this line...
https://github.com/getsentry/sentry-python/blob/master/sentry_sdk/client.py#L207
The filtered events still end up blowing up our log file(s) on the server significantly.
This logging should either be debug or not log anything at all.
After all, the point of the before_send is to prevent spam, not just move spam to a different place.

@TheSHEEEP I can offer you to replace the logged event payload with the event ID but I feel like if you don't want to see that noise, just turn up the log level or remove debug=True from your config? (not sure how your setup looks like)

The problem is that this is logged at the info level. I don't have debug logging enabled. But anything info or higher is logged.
I'm fine receiving other info level events that aren't spam - but this is a VERY frequent event that I filtered out (nothing to be done about it, it's a problem with a used library out of my hands).
Which is why I'm saying it should not log at info level, but at the debug level. Or make it configurable, that would be fine as well.

I am not sure how you are receiving those log messages if you do not have debug enabled. We do not output anything to stdout/err if that flag is not set, so something else in your system must have registered a log handler onto that logger.
In any case, it is configurable. You are able to set the log level of each individual logger (including sentry_sdk.errors) via the standard logging API:
logging.getLogger("sentry_sdk.errors").setLevel(logging.WARNING)

Closing due to inactivity. It cannot be expected that every logger in your system logs at the level you want it to log, that's why levels can be set per-logger.


SwipeoutBtn: 'key' is not prop.

Description
Got warning message "SwipeoutBtn: 'key' is not prop. Trying to access it will result in ...".
ENV
platform: iOS simulator
react-native-swipeout: newest
react-native: 0.39.2
react: 15.4.1

+1

The problem is here:
getDefaultProps: function() {     return {       backgroundColor: null,       color: null,       component: null,       underlayColor: null,       height: 0,       key: null,       onPress: null,       disabled: false,       text: 'Click me',       type: '',       width: 0,     };   },
The key prop has a special meaning in React. It it is not passed to the component as prop but is used by React to aid the reconciliation of collections. https://facebook.github.io/react/docs/lists-and-keys.html#keys

I will fix this later, Thanks


Switch graphula from an initial algebra to a final tag-less representation.

This commit introduces MonadGraphulaFrontend and MonadGraphulaBackend, the two demarcations of functionality in Graphula. We can likely split this even more, but it isn't necessary now.
Most graphula graphs are very small and this switch would likely not be necessary. However recently we've been experimenting with graphula for generating large sets of arbitrary test data for benchmarking etc. The free representation is extremely problematic in this situation.
With profiling and benchmarking we can see this
Free
	total time  =       12.38 secs   (12382 ticks @ 1000 us, 1 processor)
	total alloc = 23,944,694,912 bytes  (excludes profiling overheads)

COST CENTRE        MODULE                            SRC                                                    %time %alloc

>>=.\               Graphula                          src/Graphula.hs:(232,24)-(234,10)                        1.0    0.5
innerProduct.\      Graphula                          src/Graphula.hs:507:17-22                                2.4    3.5
basicUnsafeWrite       Data.Vector.Primitive.Mutable     Data/Vector/Primitive/Mutable.hs:114:3-69                2.1    1.5
generate               Test.QuickCheck.Gen               Test/QuickCheck/Gen.hs:(101,1)-(103,20)                  2.0    2.7
newQCGen               Test.QuickCheck.Random            Test/QuickCheck/Random.hs:80:1-31                        1.9    0.0
fmap                   Data.Vector.Fusion.Stream.Monadic Data/Vector/Fusion/Stream/Monadic.hs:(125,3)-(127,20)    1.8    2.3
logNode                Main                              bench/Main.hs:65:3-21                                    1.7    0.0
basicUnsafeIndexM      Data.Vector.Primitive             Data/Vector/Primitive.hs:215:3-75                        1.7    2.1
rSquare.p              Statistics.Regression             Statistics/Regression.hs:109:5-66                        1.6    1.6
innerProduct.\         Statistics.Matrix.Algorithms      Statistics/Matrix/Algorithms.hs:42:3-51                  1.5    1.7
kbnAdd                 Numeric.Sum                       Numeric/Sum.hs:(138,1)-(141,39)                          1.5    0.9
basicUnsafeIndexM      Data.Vector.Unboxed.Base          Data/Vector/Unboxed/Base.hs:283:841-899                  1.2    0.0
qr.\.\

The additional newtype wrapping with ReaderT comes nowhere near the pain of Free

@eborden generally I think this looks good. It's a little unclear how each flavor of Graphula is supposed to be used  together. This is what I was able to gather, but it might be nice to have a central diagram or explanation about how these fit together:

GraphulaIdentity uses Identity as the node, but it's carrying around a computation in IO (?)
GraphulaT seems to be the main transformer type that must be applied to some concrete type with instances for MonadGraphulaFrontend/Backend (e.g. GraphulaIdentity or GraphulaPersistT SqlBackend _ IO)
GraphulaIdempotentT, GraphulaLoggedT, and GraphulaReplayT add further functionality to GraphulaT

GraphulaIdentity uses Identity as the node, but it's carrying around a computation in IO (?)
GraphulaT seems to be the main transformer type that must be applied to some concrete type with instances for MonadGraphulaFrontend/Backend (e.g. GraphulaIdentity or GraphulaPersistT SqlBackend _ IO`)
GraphulaIdempotentT, GraphulaLoggedT, and GraphulaReplayT add further functionality to GraphulaT

There are seemingly three categories of transformers.
Backend
There are concrete backends that implement all of that type classes functionality.

GraphulaT - Arbitrary generation with no logging.
GraphulaLoggedT - Arbitrary generation with JSON logging.
GraphulaReplayT - generation from a log file via JSON, no logging.

Frontend

GraphulaIdentity - A simple identity wrapper around a generated node.
GraphulaPersistT - Insertion and deletion from a persistent database.

Frontend Extensions

GraphulaIdempotentT - Extends a given fronted to run removal finalizers on error or completion.

So you could do:
runGraphulaIdentity $ runGraphulaT graph
runGraphulaIdentity . runGraphulaIdemptotentT $ runGraphulaT graph
runGraphulaIdentity $ runGraphulaLoggedT graph
runGraphulaIdentity . runGraphulaIdemptotentT $ runGraphulaLoggedT graph
runGraphulaIdentity $ runGraphulaReplayT logFile graph
runGraphulaIdentity . runGraphulaIdemptotentT $ runGraphulaReplayT logFile graph
runGraphulaPersist runDB $ runGraphulaT graph
runGraphulaPersist runDB . runGraphulaIdemptotentT $ runGraphulaT graph
runGraphulaPersist runDB $ runGraphulaLoggedT graph
runGraphulaPersist runDB . runGraphulaIdemptotentT $ runGraphulaLoggedT graph
runGraphulaPersist runDB $ runGraphulaReplayT logFile graph
runGraphulaPersist runDB . runGraphulaIdemptotentT $ runGraphulaReplayT logFile graph

Or you could just implement the frontend/backend type classes for your specific transformer stack and roll your own graphula runner.

GraphulaIdempotentT could almost be thought of as middleware.


Visitors of the Public Engagement website will be able to see frequently updated data without PSE admins having to reupload the data

This is a stage 2 user story, and is most likely linked closely with AE integration with SiteFarm.


New Store Message component (11/6/24) doesn't work without external memory

Bug Description
When attempting to use the new Store Message component in DS Langflow without external memory I see the following error:
Error building Component Store Message: (sqlite3.ProgrammingError) Error binding parameter 2: type 'Message' is not supported [SQL: INSERT INTO message (timestamp, sender, sender_name, session_id, text, id, flow_id, files) VALUES (?, ?, ?, ?, ?, ?, ?, ?)] [parameters: ('2024-11-06 22:15:27.000000', Message(text_key='text', data={'text': '', 'files': [], 'timestamp': '2024-11-06 22:15:28'}, default_value='', text='', sender=None, sender_name=None, files=[], session_id='', timestamp='2024-11-06 22:15:28', flow_id=None), Message(text_key='text', data={'text': '', 'files': [], 'timestamp': '2024-11-06 22:15:28'}, default_value='', text='', sender=None, sender_name=None, files=[], session_id='', timestamp='2024-11-06 22:15:28', flow_id=None), Message(text_key='text', data={'text': '01418a0a-be42-4773-ad3e-a009819fb8c5', 'files': [], 'timestamp': '2024-11-06 22:15:28'}, default_value='', text='01418a0a-be42-4773-ad3e-a009819fb8c5', sender=None, sender_name=None, files=[], session_id='', timestamp='2024-11-06 22:15:28', flow_id=None), 'Yes, streaming works effectively, allowing for realistic video and audio streams in real-time during meetings.', '10754203627848a2b81c6388e3fd50a1', '01418a0abe424773ad3ea009819fb8c5', '[]')] (Background on this error at: https://sqlalche.me/e/20/f405)
The previous version of this component seems to work fine using the same scenario.
Reproduction

Create a Store Message component
Wire up an input
Execute without external memory attached

Expected behavior
The component should work with or without external memory attached
Who can help?
No response
Operating System
DataStax Langflow
Langflow Version
1.0.19.post1???
Python Version
None
Screenshot

Flow File
Zoom _ Astra_ERROR.json

@erichare  Please consult with @ogabrielluiz  regarding this issue.
I believe this is fixed in one of the agent branches.
if its an issue related to datetime not JSON serializable

Thanks for the heads up @edwinjosechittilappilly .  @ogabrielluiz would love your comments before diving further

@SonicDMG
Do you need any assistance with this case? If not, please let us know if this issue can be closed.
Give a try on version 1.1.1


Initial refactor

Mendel and Pedigree are now isolated from Jannovar.
Deleted @Immutable and deprecated classes.
Adjusted JannovarException to GregorException.

[INFO] Compiling 34 source files with javac [debug target 17] to target/classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.433 s
[INFO] Finished at: 2024-04-23T09:08:07Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project gregor: Fatal error compiling: error: invalid target release: 17 -> [Help 1]
[ERROR]

Ok I did some adjustments.
Context:
Maven searches for the JDK in the following order:

Maven looks for the JAVA_HOME environment variable. If it is set, Maven uses the JDK specified by this variable.
If JAVA_HOME is not set, Maven searches for a JDK in the PATH environment variable.
If no JDK is found in the PATH, Maven uses the JDK that was used to start Maven itself.

In my case I did not have anything set in JAVA_HOME or inside the PATH so it was using the JDK that was used to start Maven.
However in your case you might have set any other Java version in your JAVA_HOME or PATH. Thats why it was giving the error.
To ensure that our project always uses Java 17, regardless of the environment settings, I made the following changes to the pom.xml:

Set the java.version property to 17 to explicitly specify the required Java version.
Configured the maven-compiler-plugin to use the java.version property for both the source and target versions. This ensures that the project is always compiled with Java 17.
Added the maven-enforcer-plugin to enforce the Java 17 requirement during the build process. If the project is built with a different Java version, the build will fail with a clear error message indicating that Java 17 is required.

If you use a JDK 17 or any other version above you should be fine and don't need to change any JAVA_HOME or PATH pointing to 17 now. As long as maven was started with 17+.

OK that's a good change with the 'java.version' in the pom. Turns out it was my fault - I was using GitHub Codespaces and for some reason they are using JDK 11 as the default Java version. It built, ok once I navigated to the gregor sub-directory and then did a mvn clean test.
Can you move everything up from the gregor sub-directory so that pom.xml and src are in the top-level of the project with the
README.md etc. so that the project can be checked out and built using:
$ git clone ...
$ cd gregor
$ mvn package


RouterCertsDegraded after replacing default ingress certificate

Describe the bug
Replacing the default ingress certificate with one signed by our internal CA according to https://docs.okd.io/latest/authentication/certificates/replacing-default-ingress-certificate.html degrades the authentification cluster operator. All other operatores are fine.

As a consequence, the Webconsole displays a generic error and reloads every few seconds.
The following messages were displayed in the webconsole under Cluster Operator Detailes (before refreshing the page) RouterCertsDegraded: secret/v4-0-config-system-router-certs.spec.data[apps.test-okd.test.el.eee.intern] -n openshift-authentication: not found
RouteHealthDegraded: failed to GET route: x509: certificate is valid for oauth-openshift.openshift-authentication.svc, oauth-openshift.openshift-authentication.svc.cluster.local, not oauth-openshift.apps.test-okd.test.el.eee.intern
Version
OKD version release: 4.4.0-0.okd-2020-04-21-163702
UPI on Vmware, provisioned with terrafrom
How reproducible
100% reproducible, with no other changes made to the cluster, following these steps https://docs.okd.io/latest/authentication/certificates/replacing-default-ingress-certificate.html
Log bundle
oc adm must-gather archive:  https://drive.google.com/file/d/1AvWZlOfsa_Ac6iuM8WgdnMgDv-lV_gr4/view?usp=sharing

eeeroot-ca configmap doesn't look good:
    ca-bundle.crt: "-----BEGIN CERTIFICATE-----\r\nMIIFXTCCA0WgAwIBAgIQEifNm7wmP41GvrbX29vQrDANBgkqhkiG9w0BAQUFADBB\r\nMRYwFAYKCZImiZPyLGQBGRYGaW50ZXJuMRMwEQYKCZImiZPyLGQBGRYDZWVlMRIw\r\n

instead of
 ca-bundle.crt: |
      -----BEGIN CERTIFICATE-----
      MIIDMDCCAhigAwIBAgIIPXuZXlbLKRQwDQYJKoZIhvcNAQELBQAwNjESMBAGA1UE
      CxMJb3BlbnNoaWZ0MSAwHgYDVQQDExdhZG1pbi1rdWJlY29uZmlnLXNpZ25lcjAe
      Fw0yMDA1MjIxNDE3MTlaFw0zMDA1MjAxNDE3MTlaMDYxEjAQBgNVBAsTCW9wZW5z

in other CAs. Perhaps its some Windows encoding?
Ingress certificate looks good though

Thanks a lot, this was indeed one of the problems!
The other one being a single unnecessary blank space in front of the certificate name in the ingress config. Sorry about the fuss.


After updating HA and MASS, unable to play anything

What version of Music Assistant has the issue?
2022.8.4
The problem
Was running HA 2022.7.6 and MASS 2022.7.4 without any issues but after updating to latest HA and MASS, Im unable to play anything. I have only local filesystem music so have tested only that. When I click on a track or click play now, nothing happens. I am able to call TTS and the speakers speak and Im able to adjust volume from within MASS. Using Google cast speakers. I am able to use the built in HA media browser to play the music on the Google speakers, that works fine
Happy to supply more info, just let me know. Thank you
How to reproduce
.
Relevant log output
No response
Additional information
No response
What version of Home Assistant Core are your running
2022.10.4
What type of installation are you running?
Home Assistant Supervised
On what type of hardware are you running?
Raspberry Pi

Are you playing the TTS to the MASS entities? Have you cleared the browser cache? Are there any errors in the logs?

Browser cache did it, thanks for the suggestion and sorry for not trying that first myself. I deleted just site specific cache and that didnt do it, had to delete everything for some reason and then it worked.


Dynamic prompt generation script for parameter scans

Programatically generate a large number of images varying by prompt and other image generation parameters
This is a little standalone script named dynamic_prompting.py that enables the generation of dynamic prompts. Using YAML syntax, you specify a template of prompt phrases and lists of generation parameters, and the script will generate a cross product of prompts and generation settings for you. You can save these prompts to disk for later use, or pipe them to the invokeai CLI to generate the images on the fly.
Typical uses are testing step and CFG values systematically while holding the seed and prompt constant, testing out various artist's styles, and comparing the results of the same prompt across different models.
A typical template will look like this:
model: stable-diffusion-1.5
steps: 30;50;10
seed: 50
dimensions: 512x512
cfg:
  - 7
  - 12
sampler:
  - k_euler_a
  - k_lms
prompt:
  style:
       - greg rutkowski
       - gustav klimt
  location:
       - the mountains
       - a desert
  object:
       - luxurious dwelling
       - crude tent
  template: a {object} in {location}, in the style of {style}

This will generate 96 different images, each of which varies by one of the dimensions specified in the template. For example, the prompt axis will generate a cross product list like:
a luxurious dwelling in the mountains, in the style of greg rutkowski
a luxurious dwelling in the mountains, in the style of gustav klimt
a luxious dwelling in a desert, in the style of greg rutkowski
... etc

A typical usage would be:
python scripts/dynamic_prompts.py --invoke --outdir=/tmp/scanning my_template.yaml

This will populate /tmp/scanning with each of the requested images, and also generate a log.md file which you can open with an e-book reader to show something like this:

Full instructions can be obtained using the --instructions switch, and an example template can be printed out using --example:
python scripts/dynamic_prompts.py --instructions
python scripts/dynamic_prompts.py --example > my_first_template.yaml

Very cool! Is this effectively the “dynamic prompt” feature? I.e., it’s creating every possible permutation of all those settings?

Yeah, that's what this is. Hang on a bit and I'll add a syntax for combining prompt fragments like this:
style:
       - greg rutkowski
       - gustav klimt
       - renoir
       - donetello
subject:
       - two friends walking in the park
       - two dogs playing in the dogpark
prompt: {subject} in the style of {style}

I believe that dynamic prompting with some syntax ((a,b).allOf()/(a,b).oneOf()) is on the compel roadmap, but that's a @damian0815 question.

I believe that dynamic prompting with some syntax ((a,b).allOf()/(a,b).oneOf()) is on the compel roadmap, but that's a @damian0815 question.

That's why this is going into the v2.3 branch as a standalone script that doesn't touch the main code base. I know it will be superseded by @damian0815 's compel work.

I believe that dynamic prompting with some syntax ((a,b).allOf()/(a,b).oneOf()) is on the compel roadmap, but that's a @damian0815 question.

That's why this is going into the v2.3 branch as a standalone script that doesn't touch the main code base. I know it will be superseded by @damian0815 's compel work.

Part of it, yes... but compel doesn't handle parameters and I think being able to vary those will be very helpful on main in the CLI or via a script like this.

I believe that dynamic prompting with some syntax ((a,b).allOf()/(a,b).oneOf()) is on the compel roadmap, but that's a @damian0815 question.

That's why this is going into the v2.3 branch as a standalone script that doesn't touch the main code base. I know it will be superseded by @damian0815 's compel work.

Part of it, yes... but compel doesn't handle parameters and I think being able to vary those will be very helpful on main in the CLI or via a script like this.

Nothing preventing this from going into main as well, but I'm already getting more feature requests; for instance, it doesn't do img2img

Update: To allow for faster dynamic prompt generation, the script now renders in parallel across multiple processes and GPUs. By default, it will launch one process per CUDA GPU, but this can be controlled using --processes_per_gpu. For example this will run 4 invokeai instances on each GPU, assuming there is enough VRAM to support the rendering:
scripts/dynamic_prompts.py example2.yaml --invoke --outdir=~/outputs --processes=4
>> Spawning 8 invokeai processes across 2 CUDA gpus
>> Process 2262144 running on GPU 1
>> Process 2262141 running on GPU 0
>> Process 2262139 running on GPU 0
>> Process 2262145 running on GPU 0
>> Process 2262140 running on GPU 1
>> Process 2262143 running on GPU 0
>> Process 2262142 running on GPU 1
>> Process 2262146 running on GPU 1
[133] /home/lstein/outputs/dp.0001.a sunny meadow in the mountains in the style of greg rutkowski.png
[134] /home/lstein/outputs/dp.0009.a gathering storm in the mountains in the style of greg rutkowski.png
[133] /home/lstein/outputs/dp.0002.a sunny meadow in the mountains in the style of greg rutkowski.png
[135] /home/lstein/outputs/dp.0010.a gathering storm in the mountains in the style of greg rutkowski.png
[134] /home/lstein/outputs/dp.0011.a gathering storm in the mountains in the style of gustav klimt.png
[135] /home/lstein/outputs/dp.0013.a gathering storm in the mountains in the style of renoir.png
[136] /home/lstein/outputs/dp.0012.a gathering storm in the mountains in the style of gustav klimt.png
[133] /home/lstein/outputs/dp.0003.a sunny meadow in the mountains in the style of gustav klimt.png
[133] /home/lstein/outputs/dp.0007.a sunny meadow in the mountains in the style of donetello.png
[133] /home/lstein/outputs/dp.0005.a sunny meadow in the mountains in the style of renoir.png
[137] /home/lstein/outputs/dp.0015.a gathering storm in the mountains in the style of donetello.png
[136] /home/lstein/outputs/dp.0014.a gathering storm in the mountains in the style of renoir.png
[133] /home/lstein/outputs/dp.0008.a sunny meadow in the mountains in the style of donetello.png
[133] /home/lstein/outputs/dp.0006.a sunny meadow in the mountains in the style of renoir.png
[133] /home/lstein/outputs/dp.0004.a sunny meadow in the mountains in the style of gustav klimt.png
[134] /home/lstein/outputs/dp.0016.a gathering storm in the mountains in the style of donetello.png

Note that the images come out in higgledy-piggledy order, but on the filesystem they will sort in the order specified in the prompt template.
I am considering a simple extension to allow this script to run across multiple nodes of a compute cluster, provided that the user has installed invokeai each of the nodes, but I should get back to working on nodes first.

I am considering a simple extension to allow this script to run across multiple nodes of a compute cluster, provided that the user has installed invokeai each of the nodes, but I should get back to working on nodes first.

@lstein interestingly enough, the way you've structured the YAML is exactly how I'd write this as an input of an Argo workflow, which could easily parallelize it across hundreds of GPU instances. What's the approach you're thinking of? I did take a stab at it again using nodes over the weekend, but didn't get very far yet.

That's an interesting coincidence!
The approach I'm thinking of is the same one as is used by gnu-parallel.
Basically it requires that each worker node has a public key-based ssh
login for the current user and that each worker has the same set of
InvokeAI models installed (or they may all use a shared directory). The
master node runs an ssh session across each worker which launches InvokeAI,
feeds the expanded prompts to the worker via its pseudo-tty standard in,
and accepts the resulting image via stdout. It's not at all elegant, but it
is actually quite scaleable and benefits from the built-in strong
authentication and encryption that ssh provides.
This almost can work now, but it requires a modification to the CLI to
encapsulate the image and its metadata as JSON-encoded objects rather than
writing to local disk.
Did you have a chance to test the multiprocessing on a local machine? I
haven't done much in the way of exception handling and am wondering whether
the errors are interpretable when there is a crash due to out of RAM or out
of VRAM conditions.
On Mon, Mar 6, 2023 at 11:54 PM Eugene Brodsky @.***>
wrote:

I am considering a simple extension to allow this script to run across
multiple nodes of a compute cluster, provided that the user has installed
invokeai each of the nodes, but I should get back to working on nodes first.
@lstein https://github.com/lstein interestingly enough, the way you've
structured the YAML is exactly how I'd write this as an input of an Argo
workflow, which could easily parallelize it across hundreds of GPU
instances. What's the approach you're thinking of? I did take a stab at it
again using nodes over the weekend, but didn't get very far yet.
—
Reply to this email directly, view it on GitHub
https://github.com/invoke-ai/InvokeAI/pull/2831#issuecomment-1457529192,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAA3EVJIJSKMGIMMNY6DFCTW225QFANCNFSM6AAAAAAVJ7KXU4
.
You are receiving this because you were mentioned.Message ID:
@.***>

Cool! sounds similar to the SLURM scheduler, right? haven't worked with it it myself, but i know it's widely used in academia.
I started looking into doing this on Nodes, but no significant progress yet.
Yes, i did test multiprocessing (single GPU, 3 threads) - worked very well with the exception of a couple stumbling blocks - see my previous comments. Main issues were the prompt-in-filename and the lack of log output. Worked great once over those hurdles.

Cool! sounds similar to the SLURM scheduler, right? haven't worked with it it myself, but i know it's widely used in academia. I started looking into doing this on Nodes, but no significant progress yet.
Yes, i did test multiprocessing (single GPU, 3 threads) - worked very well with the exception of a couple stumbling blocks - see my previous comments. Main issues were the prompt-in-filename and the lack of log output. Worked great once I figured out my prompts were not filename-friendly.
obscured logging output IS indeed a problem for troubleshooting though. I haven't gotten a CUDA OOM (will try!), but overall it would be helpful to capture and print stdout/stderr from the threads, even at the expense of pretty output, at least for now.
I can approve to unblock this, but please ping me to re-test if you'd like.

I think the lack of logging is a blocker, and I'll fix this by redirecting stderr to a file rather than trying to suppress it. The reason I tried to suppress it is that I couldn't stand the sight of 8 TQDM's fighting with each other for control of the console!

[..] I couldn't stand the sight of 8 TQDM's fighting with each other for control of the console!

agreed! I'm very tempted to solve this with rich.Live or try my hand at npyscreen, but must resist getting nerd-sniped at the moment. Redirecting stderr to a file would definitely do the trick for now


Add a tox.ini file?

Is it worth adding a template tox.ini file to this template? It should be fairly easy to add a simple tox.ini file that supports running on different operating systems and python verisons.

There is one already, feel free to submit a PR.


JADE to PUG change

JADE was renamed to pug, and now it does not works. Can you fix it?

<template lang="pug"> is support in vscode-vue-0.1.3.
I've updated the latest .tmLanguage file from vuejs/vue-syntax-highlight.


Stop adding project folders to the window

This is my single most painful papercut with Atom. Every time I open Atom with, e.g. atom ~/.wine/system.reg, Atom adds the WHOLE FOLDER (e.g. .wine) to the window, which blows up my memory and CPU and pollutes my search with millions of files I'm not interested in. I almost never want Atom to add and index the folder of the file I'm editing.

the same for when I want to edit e.g. ~/.bash_profile or ~/.gitconfig, hello whole home directory.
What I expect should happen is

when I open a folder/directory, then I see the tree and can search project etc. (as current)
When I open a single file I should just be able to edit that file, and not have to have the overhead of having it's containing folder indexed.

I agree, this is a really weird behavior. Especially coupled with restoring sessions.
I don't want ~/.ssh or whatever to be a project folder, unless I explicitly add it! It's also a waste of screen real-estate, having to close the Tree View every time I open the app... :/

I was actually expecting even a higher number of complaints regarding this, since this is not common among other editors. In my experience, too, opening a file opens just the file. And the difficulty of removing the project folder from the tree (you can't assign a shortcut for it, you have to right-click and select the action!) adds insult to injury for me...

I love the idea of Atom, as the hackable editor. However, this single issue has me running back to Sublime Text. I'm subscribing here to hopefully discover when, if ever, it gets fixed.

Has anything changed? This one thing is bugging me a lot.

Has anything changed? This one thing is bugging me a lot.

Not that I know of. I switched back to Sublime about a year ago because of this issue so I'm unaware of any fixes or changes. Hopefully, someday...

Thanks for reaching out!
Improving the launch story of Atom to address problems like this is something that we are tracking in https://github.com/atom/atom/issues/10517. You may want to subscribe there for updates.


Add cssClass Dialog Shortcuts Parameters

Is your feature request related to a problem? Please describe.
It's not really a problem, in terms of code optimization it would be nice to have the "cssClass" property to allow developers to set a class for all dialogs. In my case a class to make the dialog scrollable.
Describe the solution you'd like
Simply add this entry as a default entry
var app = new Framework7({
  dialog: {
    ...
    cssClass: 'class',
    ...
  }
});

Describe alternatives you've considered
At the moment I have to put it in each dialog manually.

If you want to add it to every dialog, then it is even better to use just .dialog class which all dialogs have


unable to get transactions confirmed

Description
i want to setup a private network that is gasless and able to submit contracts
Acceptance Criteria
able to get my contract deployed and transactions approved.
Steps to Reproduce (Bug)
setup my besu using ibft2 with 4 validators and 1 rpc node
validators are up and running and able to create blocks.
when i sent a test raw transaction t send eth, it is not getting confirmed and pending in the txpool
Expected behavior: [What you expect to happen]
able to get my transaction confirmed
Actual behavior: [What actually happens]
transactions are pending
Frequency: [What percentage of the time does it occur?]
100%
Logs (if a bug)
Please post relevant logs from Besu (and the consensus client, if running proof of stake) from before and after the issue.
2024-10-18 04:35:03.011+00:00 | BftProcessorExecutor-IBFT-0 | INFO  | IbftBesuControllerBuilder | Imported #1,073 / 0 tx / 1 pending / 0 (0.0%) gas / (0xa13307f072a5713c1a1d19e9fee16323d0ff85964e8d23fcf482585cffbddff6) 2024-10-18 04:35:05.011+00:00 | BftProcessorExecutor-IBFT-0 | INFO  | IbftBesuControllerBuilder | Imported #1,074 / 0 tx / 1 pending / 0 (0.0%) gas / (0x53aaa499e48212a3e434870076a704df5189a970934c4fbaba293d72c9cae07f) 2024-10-18 04:35:07.016+00:00 | EthScheduler-Workers-0 | INFO  | PersistBlockTask | Block 1075 (0x1ff6bf60a1fdfa4a78a62fcf57e994c020f4e6374ca0c9a321dd9d04a23b96ba) is already imported 2024-10-18 04:35:07.018+00:00 | BftProcessorExecutor-IBFT-0 | INFO  | IbftBesuControllerBuilder | Imported #1,075 / 0 tx / 1 pending / 0 (0.0%) gas / (0x1ff6bf60a1fdfa4a78a62fcf57e994c020f4e6374ca0c9a321dd9d04a23b96ba) 2024-10-18 04:35:09.012+00:00 | BftProcessorExecutor-IBFT-0 | INFO  | IbftBesuControllerBuilder | Produced #1,076 / 0 tx / 1 pending / 0 (0.0%) gas / (0xb09c2808dbaf69b15d15c2e879dc6ca37121c87ee86336f8c35f75be98b7367b) 2024-10-18 04:35:11.012+00:00 | EthScheduler-Workers-0 | INFO  | PersistBlockTask | Block 1077 (0x05e359653f936fb4e44c28c0ef1fbdc61d02a45f633374ae39968d561c39998d) is already imported 2024-10-18 04:35:11.013+00:00 | BftProcessorExecutor-IBFT-0 | INFO  | IbftBesuControllerBuilder | Imported #1,077 / 0 tx / 1 pending / 0 (0.0%) gas / (0x05e359653f936fb4e44c28c0ef1fbdc61d02a45f633374ae39968d561c39998d) 2024-10-18 04:35:13.011+00:00 | EthScheduler-Workers-0 | INFO  | PersistBlockTask | Block 1078 (0xc401550a871ac0fcf4f16f39be010175ec9765921474d4a59b0d381100bb3224) is already imported 2024-10-18 04:35:13.013+00:00 | BftProcessorExecutor-IBFT-0 | INFO  | IbftBesuControllerBuilder | Imported #1,078 / 0 tx / 1 pending / 0 (0.0%) gas / (0xc401550a871ac0fcf4f16f39be010175ec9765921474d4a59b0d381100bb3224) 2024-10-18 04:35:15.011+00:00 | BftProcessorExecutor-IBFT-0 | INFO  | IbftBesuControllerBuilder | Imported #1,079 / 0 tx / 1 pending / 0 (0.0%) gas / (0xcda4d8d317c0401957e93fbd06ba300ec56e6ee9b7b676f425fa9dbfca4c831f) 2024-10-18 04:35:17.012+00:00 | EthScheduler-Workers-0 | INFO  | PersistBlockTask | Block 1080 (0x0a9b7b41de3542ed6eb0a5968789609a688ac4abd816b7705524295169bec18c) is already imported 2024-10-18 04:35:17.014+00:00 | BftProcessorExecutor-IBFT-0 | INFO  | IbftBesuControllerBuilder | Produced #1,080 / 0 tx / 1 pending / 0 (0.0%) gas / (0x0a9b7b41de3542ed6eb0a5968789609a688ac4abd816b7705524295169bec18c) 2024-10-18 04:35:19.010+00:00 | BftProcessorExecutor-IBFT-0 | INFO  | IbftBesuControllerBuilder | Imported #1,081 / 0 tx / 1 pending / 0 (0.0%) gas / (0x705f63ed1488337c8c40b5fcee740eb1f685cf818348f2ccfdb0bc8fbbeefbe1) 2024-10-18 04:35:21.011+00:00 | BftProcessorExecutor-IBFT-0 | INFO  | IbftBesuControllerBuilder | Imported #1,082 / 0 tx / 1 pending / 0 (0.0%) gas / (0x45320130d441a6451245c7dfeb9494ed18169c6a4f6244591f20810890cba791) 2024-10-18 04:35:23.014+00:00 | EthScheduler-Workers-0 | INFO  | PersistBlockTask | Imported empty block #1,083 / 0 tx / 0 om / 0 (0.0%) gas / (0x6d5a9f750e2e02e713a6a0b0063fcb36a31fb30cf264c153efee7d34a6f085df) in 0.001s. Peers: 4
Versions (Add all that apply)

Software version: [besu --version] 24.10.0

Java version: [java -version] openjdk 21

OS Name & Version: [cat /etc/*release] rhel9

Kernel Version: [uname -a] Linux xxx.ap-southeast-1.compute.internal 5.14.0-427.20.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 23 16:37:13 EDT 2024 x86_64 x86_64 x86_64 GNU/Linux

Virtual Machine software & version: [vmware -v] na

Docker Version: [docker version] na

Cloud VM, type, size: [Amazon Web Services I3-large] ec2 t2-micro

Consensus Client & Version if using Proof of Stake: [e.g. Teku, Lighthouse, Prysm, Nimbus, Lodestar] ibft2

Smart contract information (If you're reporting an issue arising from deploying or calling a smart contract, please supply related information)

Solidity version [solc --version]
Repo with minimal set of deployable/reproducible contract code - please provide a link
Please include specifics on how you are deploying/calling the contract
Have you reproduced the issue on other eth clients

Additional Information (Add any of the following or anything else that may be relevant)

Besu setup info - genesis file, config options
System info - memory, CPU

genesis file#
{
"config" : {
"chainId" : 112023,
"berlinBlock" : 0,
"contractSizeLimit":<PHONE_NUMBER>,
"ibft2" : {
"blockperiodseconds" : 2,
"epochlength" : 30000,
"requesttimeoutseconds" : 4
}
},
"nonce" : "0x0",
"timestamp" : "0x58ee40ba",
"gasLimit" : "0x1fffffffffffff",
"difficulty" : "0x1",
"mixHash" : "0x63746963616c2062797a616e74696e65206661756c7420746f6c6572616e6365",
"coinbase" : "0x0000000000000000000000000000000000000000",
"alloc" : {
"fe3b557e8fb62b89f4916b721be55ceb828dbd73" : {
"balance" : "0xad78ebc5ac6200000"
},
"627306090abaB3A6e1400e9345bC60c78a8BEf57" : {
"balance" : "90000000000000000000000"
},
"f17f52151EbEF6C7334FAD080c5704D77216b732" : {
"balance" : "90000000000000000000000"
}
},
"extraData" : "0xf87ea00000000000000000000000000000000000000000000000000000000000000000f854946663516ffd62bf68dc10c04e80353576b843a76794cc749f56157f0f5daae7aecce641722b807c66af940db38f49026dac42db9adf65e94d8e905110d2829488bb2fa8d2e50344d2b52f9bbddc7396ce5da4a2808400000000c0"
}
validator node config file#
data-path="/opt/syst/besu/data" # Path
bootnodes=["enode://d361a6527c20de2bd332090b95acdff697cc708b58889b46b74b18d48a277ab2752a8a202e8b354215611207168ffea32347f2ae3c6b9ab2aa851c6562b96fe6@xxx:30303","enode://e79e594ecb09b28f2658bc5931c908f6d186c5b71e89a8384a0b7efb4a148179817df4328cee84291339aefdd3c94fbbda14d243cca232d632cb1a0f4deb03f0@xxx:30303","enode://a233fc85b9ee21ce42fedd8a3100e01150c2a9fe0cdc85d4b778609f583db2926aeedd7554e0d01a1637e593e2f3471feb32a6fc829e8655a1532b382e6faea4@xxx:30303","enode://dda98f3c87640ad264f8a0b74992d403758268e2e9a4d9f6ca5a7dadf5146c118e175c0b775909cc00910b0e3c149b9c6dccf00134830808b8956ab425307d07@xxx:30303"]
p2p-host="xxx"
p2p-port=30303
max-peers=42
host-allowlist=["*"]
metrics-enabled=true
metrics-host="xxx"
metrics-port=9545
metrics-protocol="PROMETHEUS"
min-gas-price=0
genesis-file="/opt/syst/besu/data/genesis.json" # Path to the custom genesis file
RPC node config#
data-path="/opt/syst/besu/data" # Path
bootnodes=["enode://d361a6527c20de2bd332090b95acdff697cc708b58889b46b74b18d48a277ab2752a8a202e8b354215611207168ffea32347f2ae3c6b9ab2aa851c6562b96fe6@xxx:30303","enode://e79e594ecb09b28f2658bc5931c908f6d186c5b71e89a8384a0b7efb4a148179817df4328cee84291339aefdd3c94fbbda14d243cca232d632cb1a0f4deb03f0@xxx:30303","enode://a233fc85b9ee21ce42fedd8a3100e01150c2a9fe0cdc85d4b778609f583db2926aeedd7554e0d01a1637e593e2f3471feb32a6fc829e8655a1532b382e6faea4@xxx:30303","enode://dda98f3c87640ad264f8a0b74992d403758268e2e9a4d9f6ca5a7dadf5146c118e175c0b775909cc00910b0e3c149b9c6dccf00134830808b8956ab425307d07@xxx:30303"]
p2p-host="xxx"
p2p-port=30303
max-peers=42
rpc-http-enabled=true
rpc-http-api=["ETH","NET","WEB3", "IBFT", "TRACE", "DEBUG", "PRIV", "TXPOOL", "EEA"]
rpc-http-host="xxx"
rpc-http-port=8545
host-allowlist=[""]
rpc-http-cors-origins=[""]
rpc-ws-enabled=true
rpc-ws-host="xxx"
rpc-ws-port=8546
metrics-enabled=true
metrics-host="xxx"
metrics-port=9545
metrics-protocol="PROMETHEUS"
min-gas-price=0
genesis-file="/opt/syst/besu/data/genesis.json" # Path to the custom genesis file

Can you try using the sequenced txpool https://besu.hyperledger.org/public-networks/concepts/transactions/pool#sequenced-transaction-pool
@fab-10 did you have another theory on this one?

I tried sending transactions with gasfee 1 apparently the transactions went through. It seems that even though the chain is started as a zero gass fee network (confirmed during startup), it seems that it still requires gas fee. Not sure if it is a bug or not..
I managed to solved it by changing the genesis to start with londonblock and zerobasefee=true and able to take in 0 gas fee in transactions and it is getting confirmed. Seems berlinblock has issues with zero gas fees


Minor update STOR_VSS_BackupRestore to make case more stable

Minor update SROR_VSS_BackupRestore_ISO_NoNetwork case

after send "at -f runtest.sh now + 1 minutes" by plink, it gets error "Error:Unable to submit runtest.sh to the vm", so ignore the return value checking, it could be covered by pingresult checking.
Extend the Start-sleep -Seconds 65 to check the network status
WaitforVMToStartKVP failed in Fedora, so update to WaitforVMToStartSSH.

Thank you for the improvements @lixuemin2016
One question from reviewing the code - I see that you've switched functions to WaitForVMToStartSSH.
This might be a problem if the VM IP changes between the original VM and the time it gets restored, so then the IP would be different - and WaitForVMToStartSSH  relies on the ipv4 param.

Thank you @chvalean , yes, my mistake directly changes WaitForVMToStartKVP to WaitForVMToStartSSH and WaitForVMToStartSSH replies on ipv4 param.
I still could not find the reason why fedora failed after restore vm then start vm, even it works by manual execution and pass on rhel7. I need to further check related log.


Update RemoteHost lost CreatedBy & CreatedOn

API-Mgr. CLI version
APIM-CLI 1.3.8
API-Manager and Service-Pack Version
7.7.20200730
Expected behavior
Update a remote host configuration
Created on: 18 June 2021, 15:44
Created by: My user

Actual behavior
Update a remote host configuration but lost the "createdOn" and "createdBy" fields when updating
Created on: NaN undefined 0NaN, NaN:NaN
Created by: API Manager Administrator

When clicking on API Manager Administrator, a window is displayed : "Not Found. A user with the ID "null" cannot be found - it may have been already approved."
Log-Output in Debug
First call and second call have the same logs ;
----------------------------------------------------------------------------------------
Module: API-Manager - S E T T I N G S (1.3.8)
----------------------------------------------------------------------------------------
266    INFO     APIManagerAdapter| Successfully connected to API-Manager (7.7.20200730) on: https://myapimanager.com
781    INFO  PIManagerSettingsApp| API-Manager configuration (Remote-Hosts) successfully updated.

Test case sample
Call apim settings import with the following json, two times :
{
  "remoteHosts":  {
    "mywebsite.com":  {
      "port":  443,
      "offerTLSServerName":  true,
      "name":  "mywebsite.com",
      "verifyServerHostname":  true,
      "organization":  "Test"
    }
  }
}

Thanks for reporting this issue @archi73. I fixed basically two issues to fix this problem, which I haven't identified before. Will be part of the release 1.3.9.


Improve CLI

Currently, cli.py throws a FailedAPICallException when encountering errors, which is caught in main() and causes an exit with status 1.
An error case is missed by this, where cmd()  can also throw an uncaught exception that doesn't necessarily lead to a sys.exit(1):
    def wrapped(*args, **kwargs):
        try:
            f(*args, **kwargs)
        except TypeError:
            # TODO TypeError is probably too broad here.
            sys.stderr.write('Invalid arguements.  Usage:\n')
            help(f.__name__)
   command_dict[f.__name__] = wrapped

I believe the right thing to do here is to also catch TypeError in main().
@gsilvis @knikolla - appreciate your input.

No matter what, we should raise some error in the except clause there.  I chose to raise FailedAPICallException.  If we want the return code to be different in this case, we should make a new exception (InvalidAPIArgumentsException, perhaps?), raise that one, and catch that one in main.

On @knikolla's advice, made a new exception


fix: address issue causing failure to receive heartbeat

Rename 'heart-beat' to 'heartbeat' to align with emit in puppet.py:1017.

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


[suggestion] Hide menu (or parts of menu) and username when integrated with owncloud

Not sure how hard this could be, but (optionally) hiding the top right menu (or at least the logout button) and the username when integrated with owncloud would make the overall experience more cohesive. With these items showing, it feels a lot more like rainloop inside a frame. Also, with auto-login from owncloud, I'm not sure how logging out would work.
In the attached image, I'm suggesting an option to hide the items I've highlighted in green boxes.

In order to hardcode some changes, I tried to edit files in [owncloud]apps/rainloop/app/rainloop/v/<IP_ADDRESS>3/app/templates/Views/User but the changes didn't seem to be reflected in production.

Try to clear RainLoop cache folder.
./data/_data_/_default_/cache

Clearing ./data/data/default/cache broke logins completely. tried a full reinstall and it's completely broken now.

Did you delete cache folder?

No. Just the contents.

So I reinstalled then made changes before activating and it worked ok. Tried to roll back my changes by editing files and clearing the cache. Same thing happened. Can no longer login. It's not failing at login saying my password is bad or anything. It's just bringing me back to the login screen after taking me to the loading screen.

Been playing with this all morning. More often than not when I make any changes to the files in [owncloud]apps/rainloop/app/rainloop/v/<IP_ADDRESS>3/app/templates/Views/User and delete the cache I end up breaking something and can't login. A for effort? F for outcome.
Feel free to delete all this rambling and consider this an enhancement request.

I'm sorry for the delay.
You are using ownCloud and rainloop data folder stored in the ownCloud data storage.
RainLoop's cache folder
./data/rainloop-storage/_data_/_default_/cache


Remove Ruby code

Hi @TimotheeVille and @CynthiaMaillard - well done adding the schema and tests!
I don't think this repo should contain any code or publish any libraries.
This repo should be programming language agnostic, and its sole purpose should be to host and version the JSON Schema file(s).
So I propose we delete all the Ruby related code. Let me know what you think.

Thanks @aslakhellesoy. That's what we thought first but how to use it in code then if we can't import it?

Ok, you want it to be accessible through api of the SchemaStore. Make sense


Allow user to opt for rounded bounds for selection

I'm working on it.

I was thinking about something like this: (might need some changes on Bounds)

Please don't change this component like this. You are basically changing the way it works, and for me at least, I will not be able to use the cropper in my project.
So it is either supporting both ways, or keep the old square functionality.
Please let me know of your decision, so I know what to expect for the future.

No worries ... the component will not change the initial functionality. It will be added as an option.

hello @Mihai-B i've just released 0.4.2 and removed all .ts files from the published package.
please check the readme.md file (or plnkr) for js usage (if you used .ts files before)

Ok. Thnx for the heads up


Add DOT support

This tool should be (and could be!) useful for developers so it's great to support engineer graph visualizer like Graphviz instead of fancy animated bubbles. At least "Export as DOT" would be great.

Closing as obsolete.


PP-4064 Correction: rename cardholder name field

-renamed cardholder_name to name_on_card
Author: @cobainc0

renames cardholder_name field to name_on_card. Also updates README with working CURL request.

Thanks for the review. i'll close this now


Training time and procedure

Amazing work! I had a practical question about the time it took to train these models on the setup you described in the article. Would you be able to share more? In addition, would this repository be the best way to be notified of when the code would be available?

Hi!
I'm in the process of cleaning up the TensorFlow implementations of the experiments and will be putting them out on GitHub soon. For my implementation, VAE and MDN-RNN trains in ~ 1 hour each (on a single P100 GPU). The Doom controller takes a few hours on a 64-thread evolution strategy process (based off my previous ESTool project), inside a virtual latent-environment as discussed in the article. The car racing controller takes a bit longer, since it trains on the actual environment and that is the main bottleneck.
Once the code is released I'll update you.

Thank you for the update, that is much quicker than I expected in terms of training time, very exciting.


Use clap as cli parser.

Relates to https://github.com/jwilm/alacritty/issues/287
Help output:
alacritty 0.1.0
GPU-accelerated terminal emulator

USAGE:
    alacritty [FLAGS] [OPTIONS]

FLAGS:
    -h, --help            Prints help information
        --print-events
        --ref-test        Generates ref test
    -V, --version         Prints version information

OPTIONS:
    -d, --dimensions <columns> <lines>    Defines the window dimensions
    -t, --title <title>                   Defines the window title [default: Alacritty]

Thanks for putting this together @kurnevsky!
This looks great. I've merged a few PRs this morning that have caused some conflicts here (sorry!). One of them added some flags to the CLI: -v, -vv, -vvv, -q, and -qq. Would you mind rebasing and including these changes? The current code shows how the flags were used.

@jwilm when this gets merged, I can rebase the build_info mod on top of that; see #326. Interested in that?

@lukaslueg let's hold off on doing anything with that PR until the dust settles on command line parsing and the -e argument.

@jwilm rebased. Also my code allows to specify any numbers of v and q letters (I always forget how many I should type to get the max level of verbosity :) ).

This looks great; thanks for putting it together @kurnevsky!


Maint: Add time limit to --pre and comprehensive tests.

Those usually finish in ~30 minutes. The comprehensive sometime take close to an hour total.
Those got "stuck" a few days ago for 5+ hours.
So add a much stricter time limit, but with still quite a bit of breathing room.

the problem with sphinx-favico was solved here https://github.com/napari/docs/pull/116


Update README.md

:tada: This PR is included in version 1.0.23 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Aligned parameter for TTL

Parameter for TTL was listed as uppercase I, but the ping application itself in Windows 10 and Server 2022 lists the parameter as lowercase i.

@robinharwood, @Xelu86
Can you review the proposed changes?
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team


NNS1-2966: Place tooltip directly in body

Motivation
In NNS dapp we want to add a tooltip to every rounded number in the UI to show the number in high precision.
Some of these numbers appear in the label of a Checkbox component, which has overflow:hidden.
Currently this makes the tooltip completely invisible.
To avoid this, we have to place the tooltip element outside the overflow:hidden element, for example in the document body.
Changes

Place the tooltip element in the document body in onMount.
Remove the tooltip element in onDestroy to avoid getting more and more elements in the body.
Use onmouseenter and onmouseleave instead of CSS to make the tooltip appear, because the elements are no longer close enough in the DOM to do this with CSS.
Increase the z-index of the tooltip to make sure it's not covered by the backdrop when used inside a modal dialog.
Position the tooltip element when we show, because its position relative to the body element might depend on the scroll position of child containers. This also means that when you scroll while the tooltip is shown, it may not track the tooltip target element. This should be OK as the tooltip shouldn't be displayed for long.
Stop positioning the tooltip element on window resize because it is now positioned when the tooltip is shown.
Remove debounce from tooltip positioning. It was there because it could be triggered many times in a short time while resizing the window. But we no longer trigger positioning on window resizing. Now that we position the tooltip when it is shown, debouncing would cause a delay in showing the window.
Remove the code to find the overflow container as we now always use the body as the tooltip container.
Use display:none instead of {#if} to hide the tooltip when no text is specified. Otherwise it may be moved back inside an overflow:hidden container once text is defined again.

In the showcase:

Remove rerendering that was necessary to reposition the tooltip. Now that the tooltip is positioned when shown, it's no longer necessary.

Tested

Updated and added unit tests.
Updated e2e test to find the tooltip in the body.
Updated e2e test to hover a different button, demonstrating that the tooltip is visible outside the overflow:hidden container.
Tested manually for every tooltip listed in this document (which I wrote the previous time I updated the tooltip).

You can try it here: https://qsgjb-riaaa-aaaaa-aaaga-cai.dskloet-ingress.devenv.dfinity.network/
Screenshots
See updated screenshot of e2e test in changed files.

It's a little bit weird when the user scrolls.

Yes, I mentioned this in point 5 in the PR description. I also don't think it's a blocker.
For example, Gmail has the same behavior:
https://github.com/dfinity/gix-components/assets/122978264/048762ca-30fe-4c05-aa08-629294efad7c

If the component should be attached to the body, then it probably needs to be reviewed.

What do you mean by this?

For example, I would approach this differently, similarly to how we handle toasts, by having one component declared in the main layout or in a container, with consumers that propagate child elements to be displayed. In my opinion, this approach is more appropriate for a Svelte UI library than attaching elements directly to the DOM, which leans more towards a frameworkless or web components approach.

This is an interesting point and worth considering, but I see some downsides:

It would require an additional component and store that must be used before one can use tooltips. In addition to being extra work and confusing, it would also break existing clients that use the tooltip component.
There still needs to be low level communication between the tooltip target and the tooltip content to make sure it ends up in the right place so it's not clear to me how much benefit we get from the extra overhead.

So I think I would rather go with the current approach.
Do you consider this blocking? Do you have suggestions on how to deal with the points above?

Besides this consideration, it appears the PR does not implement any touch events. Is it supposed to work only on desktop?

It's tested on iPhone and Android. You can try it for yourself.

Do you consider this blocking?

We keep re-engineering the same component over and over. At some point, we should admit that the implementation is not good enough and redesign it to overcome the continuous issues. Therefore, I think a breaking change is actually beneficial here.
Regarding confusion, I actually think the opposite. In my humble opinion, I'm not sure it's a good practice to mix framework and native (DOM) approaches in a UI kit.
Personally, I would reimplement it and redesign the solution's approach. But I'm not the foundation, so I guess it's not a blocker.

It's tested on iPhone and Android. You can try it for yourself.

A bit suprising I would have expected an on touch start and end and the need to map/normalize the position but, if it works, it works. Coolio.

It's a little bit weird when the user scrolls.

Is the position fixed and can it be changed to absolute given that the tooltips are now direct descendant of the body? If so, they might follow the scroll.

We keep re-engineering the same component over and over.

When I found the tooltip in NNS dapp 3 months ago, it was not in a great state.
I only moved it to gix-components 3 months ago in order to improve it.
With the first round of improvements, I already had in mind that it should really be in the body, but I wanted to limit the amount of work and change at the time.
The additional changes with this PR are separate from the improvements 3 months ago and don't redo the part that was redone back then.
So I would say that we keep improving the tooltip rather than keep re-engineering it.

Personally, I would reimplement it and redesign the solution's approach. But I'm not the foundation, so I guess it's not a blocker.

In that case I'll proceed with the current approach but I'm happy to review any alternative you propose. But in that case I'd still really prefer a drop-in replacement over breaking changes.

Is the position fixed and can it be changed to absolute given that the tooltips are now direct descendant of the body? If so, they might follow the scroll.

It's already position:absolute. It would probably work if it were the body being scrolled, but it's some other container that's scrolling so the tooltip doesn't follow that.


rbd: default nouuid if the formattype is xfs

The problem happens when multiple PVCs with the same UUID are attached/mounted on a node. This can happen after creating a PVC from a snapshot or cloning a PVC.
make nouuid as the default mount option if
the format type is xfs to avoid mounting
issues.
updates: #966
Signed-off-by: Madhu Rajanna<EMAIL_ADDRESS>

@humblec PTAL

@humblec PTAL


Feature Request: Allow cargo to specify the directory to run in

This would just be a nice feature for interfacing with other build systems, like Make. Currently, you have to
cd dir && cargo build

whereas, in this case you could just
cargo build --directory dir

This would be nice for integration with things like vim's make command, because cargo currently gives the wrong file: as if dir is the base directory, not dir/...

This is actually already possible! If you do cargo build --manifest-path=dir/Cargo.toml it should do the trick.

Thanks! I'm sorry for wasting y'all's time :stuck_out_tongue_closed_eyes:

No worries, thanks for the issue regardless!

Sorry for the necro, but a quick question, does the --manifest-path=dir/Cargo.toml thing also apply to commands other than build, like for example third-party cargo sub-commands? I personally am searching for something similar to make's, ninja's, and git's -C option that applies command wide and this was one of the first results that popped up

@1480c1 I would most recommend you test it out yourself! 😉

It's such a pity that every tool requires its own name for the same concept. Maven requires '-o', git '-C' and cargo '--manifest-path' :-(

This is already possible via an unstable flag -C. See https://github.com/rust-lang/cargo/issues/10098 for more.


fix: add missing cython version pin to the build system

related comment: https://github.com/Bluetooth-Devices/dbus-fast/pull/264#issuecomment-2334550288

https://github.com/Bluetooth-Devices/dbus-fast/releases/tag/v2.24.2 should appear in a hour or so


Wrong value being added to path variable on installation

steps
Install SBT from http://www.scala-sbt.org/download.html.
Open cmd and run "sbt sbt-version".
You will get error "sbt is not recognized as an internal..."
problem
C:\Program Files (x86)\sbt\bin being added to path variable instead of C:\Program Files (x86)\sbt\bin
expectation
Set path variable automatically to C:\Program Files (x86)\sbt\bin
notes/resolution
When you go and change the path variable and restart cmd, "sbt sbt-version" works fine. I also added the path to JRE bin to the path variable (path to JDK bin was already existing).

C:\Program Files (x86)\sbt\bin being added to path variable instead of C:\Program Files (x86)\sbt\bin

That's "C:\Program Files (x86)\sbt\bin", twice.
Also, I believe there was an issue with how the path was set for Windows that we've since resolved. So I think this can be closed. Please reopen if I'm mistaken.


Javascript backend: Client login (Google) in IE can trigger small fixed popup

Hi,
We have an issue with the Google OAuth popup when we trigger client.login('google') in Internet Explorer. The popup is fixed (no resizing possible) and there are no scrollbars. This happens if the original screen is small and when the original screen is maximized and the new screen is small (last known size). See below screenshot:
Google consent screen (not possible to accept):

This also is an issue when a user has to create a new account in this small popup. In Chrome it's possible to resize the popup, maximize screen and Chrome add scrollbars. In IE all these are not available. We use MobileServices.Web-1.2.7.min.js client library.
Regards,
Jeroen

Transitioned to azure-mobile-apps-js-client#2

@adrianhall Is azure-mobile-apps-js-client a private repository? I can't find it on github.

@jeroencusters Right now, we are splitting up the azure-mobile-services into SDK specific repositories for easier handling.  The repositories will appear with the same membership as before once we get the builds working.


Error issuing the --help flag on create command

When I run guaka create --help, it looks like it outputs the content of a different command:
Usage:   guaka new [name or path]

Closing.. Fixed in #64


a question about unsupervised loss

loss_w_1 = torch.max(F.softmax(logits_cons_tea_1, dim=-1))
loss_w_2 = torch.max(F.softmax(logits_cons_tea_2, dim=-1))
in train.py ,line 181-182, the dim seem to be wrong?

Thank you for pointing this out! We will check if we upload the wrong version for other experiments.


Use /^_.*$/ as the pattern for reserved words

Reserved words are those that don't denote a user/space/path but a system operation. For example, this issue is created using the URL https://github.com/fabric8io/fabric8-ui/issues/new - fabric8io/fabric8-ui are the user/space, and issues/new are the reserved words. If we reserve and use underscore, it means we don't need to worry about reserved words.
/cc @qodfathr @joshuawilson

I implemented this a while back in the UI


pkg/allocator: only release local keys if global key is released

If a global key is not released for any error condition, the local key
should not be released as well otherwise the reference counting will be
out of sync.
Fixes: 7ccf87701fc9 ("kvstore: New kvstore abstraction API")
Signed-off-by: André Martins<EMAIL_ADDRESS>

This change is

test-me-please

test-me-please

test-me-please


Update changelog for 1.2.3 release

@swift-ci please test

@compnerd gonna try to merge/tag this today (I'm OOO tomorrow and Nate is currently OOO)

@swift-ci please test

@compnerd any idea why CI isn't triggering?

Not sure .. @shahmishal?

@swift-ci please test

I wonder if release/ is reserved...

There we go... Weird...

@compnerd merged and tagged!


Add Date-related parameter types

I apologize if this is the wrong way to open this up, I went to the IRC channel and posted there but did not really get any response.
Many of the scripts I write have date options, e.g.:
$ my-app import-task --start-date=2015-01-01 --end-date=2016-01-01
$ my-app import-task --date=2015-01-01 --lookback=3days
$ my-app import-task --lookback=1week

Explicit dates/times.
timedeltas
Defaults settable to now/utcnow

I think this would be pretty trivial to add, focused strictly on the built-in datetime package. One could take advantage of other date parsing utility libraries, but that would add dependencies that might not be needed by others.
I'm willing to make a PR for this, just wanted to get a bit of feedback or a nod before submitting something from left field. Also, if you think simple "DateType" support would be better as a click-contrib package, and I'll go that route.

I agree that this is a common use case. I am also willing to contribute, and am curious if the correct route is to submit a PR or create a click-contrib package.

I have created a repo called click-datetime and have started working on supporting Datetime objects. @numbsafari I sent you an invite as a contributor to the repo.

I think a better path for now would be click-contrib. I can invite either of you as member such that you can create your own repos there (and transfer existing ones).

@untitaker sounds good. I have created https://github.com/ddaws/click-datetime and will migrate to click-contrib when added.

Done

@untitaker should this issue be closed because this functionality is now available via a contrib package?

Yes, thanks for the reminder.

@ddaws - thanks for contributing click-datetime, was looking for exactly this (and I kinda expected it to be in Click core, but hey, dates / times can get complicated, so maybe it's better in a separate project), will give it a try now.

@Jaza glad it's useful to you. It is very minimal so please let me know if there is any functionality you would like to see added :)


docs: replace serve command with dev to start a dev server

Description
Is there a typo? Should it say dev here instead of serve ?
Additional context

What is the purpose of this pull request?

[ ] Bug fix
[ ] New Feature
[X] Documentation update
[ ] Other

Before submitting the PR, please make sure you do the following

[ ] Read the Contributing Guidelines.
[ ] Read the Pull Request Guidelines and follow the PR Title Convention.
[ ] Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
[ ] Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
[ ] Ideally, include relevant tests that fail without this PR but pass with it.

oh, yes, thanks. missed the aliases...


Smartblock trigger

Hi kdnk,
Non-coder here, so please excuse my ignorance. I love what you have built here and I am very keen to incorporate it into my workflow.
I have successfully setup Roamist within my Roam graph. I believe that I have configured it correctly, but I am sure I will be able to figure that out.
My challenge is with the smartblocks. I already run smartblocks for a number of different things in my graph. In this case, it isn't clear to me how to create the relevant smartblock that will run the process of importing Todoist tasks into Roam.
In your CleanShot I can see that you have 3 smartblocks setup from which to choose which process to run. Could you perhaps help me out by letting me know what these should consist of i.e. what should be nested under each smartblock in order to trigger the process?

@Egger1513
Sorry for the inconvenience. I know this readme is not sufficient, so I'll update it soon.
Are you talking about this screenshot? https://github.com/kdnk/roamist#pull-tasks
To import tasks from Todoist, you need to configure Todoist's filter on [[roam/roamist]] page.

The first block

it should be literally filters. (I want to improve it, but I don't have good ideas for now.)

The second block

it is the names of your filter. You can use anything you want.

The third block

it is Todoist's filter. You can make it with reference to https://todoist.com/ja/help/categories/using-todoist/filters-and-labels.

ref. my filters
-  filters
    - work
        - #🔨Work & today & !@waiting
    - daily
        - (!#🔨Work & !#Inbox & !#Quick Capture & !#🧘Routine & !#🦒Personal) & today

After setting these up, you need to reload your Roam.

I've updated README https://github.com/kdnk/roamist#setup, so please refer to this if you have some problems.

Hi
It is no inconvenience. Thank you for your quick response.
I have been able to resolve the issue with regards to the smartblocks, and those are now generating correctly based on what I enter in the configuration.
I am currently not yet able to import the Todoist task when running the smartblock, and I suspect it might have something to do with my filters.
The below is a screenshot of my Todoist filter (Filter name and Filter query):
I have therefore done the configuration as follows:
I was unsure if I should be using the Todoist filter name or the filter query in the third block. I have however tried it for both but have not yet been able to import. Is there perhaps something you can see that I am doing wrong?
Regards
Jaco
On 09 Mar 2022, 09:28 +0000, Kodai Nakamura @.***>, wrote:

@Egger1513
Sorry for the inconvenience. I know this readme is not sufficient, so I'll update it soon.
Are you talking about this screenshot? https://github.com/kdnk/roamist#pull-tasks
To import tasks from Todoist, you need to configure Todoist's filter on [[roam/roamist]] page.
• The first block
• it should be literally filters. (I want to improve it, but I don't have good ideas for now.)
• The second block
• it is the names of your filter. You can use anything you want.
• The third block
• it is Todoist's filter. You can make it with reference to https://todoist.com/ja/help/categories/using-todoist/filters-and-labels.
ref. my filters

filters

work

#🔨Work & today & @.***

daily

(!#🔨Work & !#Inbox & !#Quick Capture & !#🧘Routine & !#🦒Personal) & today

After setting these up, you need to reload your Roam.

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: @.***>

Update:
After I sent my previous response, I tried the minimum config option you suggested and managed to import the tasks from Todoist into Roam. Your tool therefore works exactly as you described, and I suspect it is rather me that just needs to adjust my Todoist filters.
To make sure I do this correctly, I would just like to confirm, for the third block where you indicate that I should use the Todoist filter, is this the Filter Name or the Filter Query?
On 09 Mar 2022, 16:14 +0000, Jaco Rademeyer @.***>, wrote:

Hi
It is no inconvenience. Thank you for your quick response.
I have been able to resolve the issue with regards to the smartblocks, and those are now generating correctly based on what I enter in the configuration.
I am currently not yet able to import the Todoist task when running the smartblock, and I suspect it might have something to do with my filters.
The below is a screenshot of my Todoist filter (Filter name and Filter query):
<Attachment.png>
I have therefore done the configuration as follows:
<Attachment-1.png>
I was unsure if I should be using the Todoist filter name or the filter query in the third block. I have however tried it for both but have not yet been able to import. Is there perhaps something you can see that I am doing wrong?
Regards
Jaco
On 09 Mar 2022, 09:28 +0000, Kodai Nakamura @.***>, wrote:

@Egger1513
Sorry for the inconvenience. I know this readme is not sufficient, so I'll update it soon.
Are you talking about this screenshot? https://github.com/kdnk/roamist#pull-tasks
To import tasks from Todoist, you need to configure Todoist's filter on [[roam/roamist]] page.
• The first block
• it should be literally filters. (I want to improve it, but I don't have good ideas for now.)
• The second block
• it is the names of your filter. You can use anything you want.
• The third block
• it is Todoist's filter. You can make it with reference to https://todoist.com/ja/help/categories/using-todoist/filters-and-labels.
ref. my filters

filters

work

#🔨Work & today & @.***

daily

(!#🔨Work & !#Inbox & !#Quick Capture & !#🧘Routine & !#🦒Personal) & today

After setting these up, you need to reload your Roam.

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: @.***>

@Egger1513
The third one should be a query of Todoist's filter.
FYI: This is my config.
-  filters
    - work
        - #🔨Work & today & !@waiting
    - daily
        - (!#🔨Work & !#Inbox & !#Quick Capture & !#🧘Routine & !#🦒Personal) & today

If you couldn't get any tasks, you might misconfigure something with your Todoist's query.
I recommend you check it on Todoist before configuring on Roam.

@Egger1513 Could you make this work as expected? I'll close this issue, but feel free to open this if you still have some problems.


ES private field check

Describe the bug
ES private field check failed.
Input code
class Foo {
  static foo(foo) {
    return #foo in foo;
  }

  #foo = 'foo';
}

Config
default
Expected behavior
When lhs of "in" operator is a private identifier.
If there is a corresponding private field in the class definition, there is no error and it should be transpiled as it is.
If the corresponding private field does not exist in the class definition, an error should be raised that the corresponding private field in the class definition must exist.
Version
The version of @swc/core: 1.2.91

I know the maintainers are busy.
If I get a guide on how to approach it, I'll try PR. Is it possible?
Although I am making a small financial support to swc, I also wanted to make a technical contribution.

This is already implemented by https://github.com/swc-project/swc/pull/2079, but not published yet.

good.
It's already been done...
I respect that speed.

It's almost resolved, so I'll close the issue now.


Fix make warning on GCC

This pr fixes the warning make[4]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule. on GCC with -j/--jobs parameter larger than 1.

Seems ninja does not support something like $(MAKE), but I current have no idea how to workaround it.

Oh, I think one workaround is to check CMAKE_GENERATOR.

What about we set MAKE_COMMAND at the top level?
nit: revert whitespace changes.

done

Thanks for your contribution @Yangsx-1! Merging...


Does this also work for libraries that contain their types?

I tried to use "moment" and followed everything you did.
It works during runtime but VsCode complains about the import.
ErrorMessage: Cannot find module 'moment'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
I did:
npm i moment -D
//package.json
"ui5": {
    "dependencies": [
      "ui5-middleware-livereload",
      "moment",
      "lodash"
    ]
  },

//ui5.yaml
---
specVersion: "2.0"
kind: extension
type: project-shim
metadata:
  name: my.project.thirdparty # this can be your project shim name
shims:
  configurations:
    moment: # name as defined in package.json
      specVersion: "2.0"
      type: module # Use module type
      metadata:
        name: moment
      resources:
        configuration:
          paths:
            "/thirdparty/moment/": "" # location where modules are stored
    lodash: # dependency name as defined in package.json
      specVersion: "2.0"
      type: module # module type
      metadata:
        name: lodash
      resources:
        configuration:
          paths:
            "/thirdparty/lodash/": "" # map root directory of lodash module into projects' thirdparty namespace

//Component.ts
sap.ui.loader.config({
  map: {
    "*": {
      moment: "my/project/thirdparty/moment/moment",
      lodash: "my/project/thirdparty/lodash/lodash",
    },
  },
  shim: {
    "my/project/thirdparty/moment/moment": {
      amd: true,
      deps: [],
      exports: "moment",
    },
    "my/project/thirdparty/lodash/lodash": {
      amd: true,
      deps: [],
      exports: "_",
    },
  },
});

//MyController.controller.ts
import Controller from "sap/ui/core/mvc/Controller";
import moment from "moment";
export default class MyController extends Controller {
    onInit() {
        console.log(moment());
    }
}

I do think that my tsconfig.json might be the problem cause it is working during runtime and only complaining about the import.

@Naxos84 check #1 , I opened very similar issue, some npm packages need tsconfig adjustment in order to be properly used in such project

Ok. So I read and tried a few things.
I set "moduleResolution": "node" and this seems to fix the issue.
I'm not sure why this works.


Cookie not decoded

hello
The cookie is saved but not decoded.
The site in https
cakephp 3.6.9 (but same problem with 3.6.7)
The config :
$this->loadComponent('Auth', [
            'authenticate' => [
                'RememberMe.Cookie' => [
                    'userModel' => 'Users',
                    'fields' => ['username' => 'user_login'],
                    'always' => true,
                    //'inputKey' => 'remember_me',

                    'cookie' => [
                        //'name' => 'rememberMe',
                        //'expires' => '+10 days',
                        'secure' => true,
                        'httpOnly' => false,
                    ],

                ],
                'Form' =>[
                    'fields' => ['username' => 'user_login','password' => 'user_pass'],
...

When the user is loged the fist time:

there is an entry in the databse
a cookie is created

When the user try to reconnect after some time :

the cookie is send to the application
the cookie is not decoded
so the user must loggin again

I add some debug in your code (but found no solution to correct it)
1st debug  in function checkFields
$cookie = $this->getCookie($request);
Log::write('debug',$cookie);

I can see :
2018-07-30 21:55:57 Debug: Q2FrZQ==.MGE0YTc3MzJjMzhjMzM1ODg5NjU0M2U5NDZjYzU1YWY5ODczOGRkMmEzZTA0NGYzYjk3OGExMzgzODU0YTFkOfZ/eLunwTFYUBZ7SqIPdBr0d
EVIatGD6l8lOLrftHbE+JcgikbUoAQPBQscnsKm21p3FT3TgHiUWxP96nZAJy8=

2nd debug in function checkFields again
$decoded = $this->decodeCookie($cookie);
Log::write('debug',$decoded);

$decoded variable is empty :
2018-07-30 21:55:57 Debug:
Thanks for your help
F.

Are you using EncryptedCookieMiddleware?
If EncryptedCookieMiddleware is enabled when login and you disabled EncryptedCookieMiddleware after login, please try enabled EncryptedCookieMiddleware again.

No I do not use EncryptedCookieMiddlewar. How can I check that ? I have to
activate it ?
But this application comes from an old one develop witch cakephp 2.x and I
used the cookie module of cake 2.x,
Perhaps something is still present ?
2018-07-31 9:52 GMT+02:00 Takashi Nojima<EMAIL_ADDRESS>
Are you using EncryptedCookieMiddleware?
If EncryptedCookieMiddleware is enabled when login and you disabled
EncryptedCookieMiddleware after login, please try enabled
EncryptedCookieMiddleware again.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/nojimage/cakephp-remember-me/issues/8#issuecomment-409129505,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAQMv2cgQ-MhQ868PkzoG9saPU6A8AnDks5uMAy_gaJpZM4VnGQ3
.

Please check src/Application.php to see if middleware is active.
See also:

Using Middleware https://book.cakephp.org/3.0/en/controllers/middleware.html#using-middleware
Encrypted Cookie Middleware https://book.cakephp.org/3.0/en/controllers/middleware.html#encrypted-cookie-middleware

I also tried enabling EncryptedCookieMiddleware.
I saw that the cookie was not decoded, too.
It's seems this plugins cookie was include binary, then decode failure.
I'll fix it.

fixes it!, v2.2.0 released!
thank you for reporting. 😄


[bug]: Startup Error Breaks Invoke on Mac M1 & M2

Is there an existing issue for this?

[X] I have searched the existing issues

OS
macOS
GPU
mps
VRAM
192GB
What version did you experience this issue on?
3.2.0
What happened?
Found a reproducible error that breaks Invoke. Confirmed in 3.2.0. first noticed in version 3.1.0. Tested on two Macs (M1 and M2). Despite trying fresh installs and version upgrades, the issue persists. It occurs when adding models or LORAs, resulting in Invoke failing to startup. All of these models/Loras are .safetensors and have work on previous Invoke versions. Re-run the configure script has no effect.
Screenshots
No response
Additional context
Here's my Terminal readout:
default - python3.11 - invoke.sh - 141x50
[2023-10-05 22:32:04, 341]:: [InvokeAI]::INFO -→> Patchmatch not loaded (nonfatal)
[2023-10-05 22:32:04, 687]:: luvicorn.error]::INFO -→> Started server process [24773]
[2023-10-05 22:32:04, 687]:: luvicorn.error]::INFO -> Waiting for application startup.
[2023-10-05
[2023-10-05
22:32:04, 688]:: [InvokeAI]::INFO --> InvokeAI
version 3.2.0
[2023-10-05
22:32:04, 688]:: [InvokeAI]::INFO --> Root directory = /Users/default/invokeai
22:32:04, 688]:: [InvokeAI]::INFO --> Using database at /Users/default/invokeai/databases/invokeai.db
[2023-10-05 22:32:04, 688]:: [InvokeAI]::INFO -> GPU device = mps
[2023-10-05
22:32:04, 700]:: [InvokeAI]::INFO --> Scanning /Users/default/invokeai/models for new models
[2023-10-05 22:32:04, 702]:: [InvokeAI]: :WARNING
--> Not a valid model: sd-1/main/.DS_Store. Not a valid model: sd-1/main/.DS_Store
[2023-10-05 22:32:04,704]::[uvicorn.error]::ERROR -—> Traceback (most recent call last):
File "/Users/default/invokeai/.venv/lib/python3.11/site-packages/starlette/routing-py", line 671, in lifespan async with self. lifespan context(app):
File "/Users/default/invokeai/.venv/lib/python3.11/site-packages/starlette/routing-py", line 566, in _aenter… await self. router. startup()
File "/Users/default/invokeai/.venv/lib/python3.11/site-packages/starlette/routing-py", line 648, in startup
await handler()
File "/Users/default/invokeai/.venv/lib/python3.11/site-packages/invokeai/app/api_app-py", line 78, in startup_event
ApiDependencies.initialize(config=app_config,
event_handler_id=event_handler_id, logger=logger)
File "/Users/default/invokeai/.venv/lib/python3.11/site-packages/invokeai/app/api/dependencies-py", line 131, in initialize model_manager=ModelManagerService(config,
logger),
File "/Users/default/invokeai/.venv/lib/python3.11/site-packages/invokeai/app/services/model_manager_service py", line 341, in init.
self.mgr = ModelManager(
File "/Users/default/invokeai/.venv/lib/python3.11/site-packages/invokeai/backend/model_management/model_manager-py", line 354, in init.
self. read models(config)
File "/Users/default/invokeai/.venv/lib/python3.11/site-packages/invokeai/backend/model_management/model_manager-py", line 377, in _read_mode
1s self.scan_models_directory()
File "/Users/default/invokeai/.venv/lib/python3.11/site-packages/invokeai/backend/model_management/model_manager-py", line 997, in scan_model s_directory
model_config: ModelConfigBase = model_class.probe_configl
File "/Users/default/invokeai/.venv/lib/python3.11/site-packages/invokeai/backend/model_management/models/sdx1-py", line 58, in probe_config
checkpoint = read_checkpoint_meta (path)
File "/Users/default/invokeai/.venv/lib/python3.11/site-packages/invokeai/backend/model_management/models/base-py", line 451, in read_checkpo int meta
checkpoint = torch.load(path, map_location=torch.device ("meta" ))
File "/Users/default/invokeai/.venv/lib/python3.11/site-packages/torch/serialization py", line 815, in load retuzn legacy load opened tile map location pickle module trickle load ans)
File "/Users/default/invokeai/.venv/lib/python3.11/site-packages/torch/serialization py", line 1033, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
pickle.UnpicklingError: invalid load key, '\x00'.
[2023-10-05 22:32:04,704]::luvicorn.error]::ERROR --> Application startup failed. Exiting.
Contact Details
No response

Could you share links to the LoRAs / models that are causing the issue?

Here are the models that were installed during this most recent Invoke break. Please note that this time around all models were converted to diffusers (from within Invoke), and no LORAs were installed. Happy to provide any other info. Thank you!
epiCPhotoGasm - V4 - Inpainting
epiCRealism - pure Evolution V5-inpainting
epiCRealism - Natural Sin RC1 VAE
dreamlike-art/dreamlike-photoreal-2.0
Colossus Project XL (SFW&NSFW) - v2.02
RealVisXL V2.0
Juggernaut XL
XL13 Asmodeus (SFW & NSFW) - v2.2_baked_VAE

 --> Not a valid model: sd-1/main/.DS_Store. Not a valid model: sd-1/main/.DS_Store

@lstein Hello darkness, my old friend...

Hi, i also have the same error but when I try to unhide, such files are now showing?

It happened after I tried to copy my custom CKPT and Loras from my A1111 into the Invoke folders. I remove them but this error keeps happening and not able to start app

@Humanoidme There are quite a few folders in the models directory. Please check through all of them - there must be a hidden file in one of them to cater this problem.

@psychedelicious I've just updated invoke to version 3.3.0post1, and it was immediately broken. I've looked for the .DS Store file you mentioned, but it's not in sd-1/main/ folder, nor the SDXL counterpart.
When the Invoke startup fails, the Mac OS Terminal automatically returns to the default menu, hiding error messages. I've been capturing these errors via screen recording. Is there a way to access Invoke logs or stop the Terminal from auto-resetting to diagnose the issue?

I couldn't find this file anywhere, so I reinstalled it from scratch and it
is now working fine
On Fri, Oct 13, 2023 at 5:02 PM MrSegundus @.***> wrote:

@psychedelicious https://github.com/psychedelicious I've just updated
invoke to version 3.3.0post1, and it was immediately broken. I've looked
for the .DS Store file you mentioned, but it's not in sd-1/main/ folder,
nor the SDXL counterpart.
When the Invoke startup fails, the Mac OS Terminal automatically returns
to the default menu, hiding error messages. I've been capturing these
errors via screen recording. Is there a way to access Invoke logs or stop
the Terminal from auto-resetting to diagnose the issue?
—
Reply to this email directly, view it on GitHub
https://github.com/invoke-ai/InvokeAI/issues/4815#issuecomment-1762410363,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACDISOHW36MYCFFKJLEWOJ3X7HJDBAVCNFSM6AAAAAA5VFAHRWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRSGQYTAMZWGM
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Eduardo Yeh
Co-Founder, CEO
Selvz LLC http://selvz.com/
NOTICE:  This transmission may contain privileged and confidential
information.  It is intended only for the use and view of the intended
recipients SPECIFICALLY LISTED as addressees above.  If you are not the
intended recipient, YOU are hereby notified that any review, dissemination,
distribution or duplication of this communication is strictly prohibited.
If you are not the intended recipient, please contact the sender by reply
email and destroy all copies of the original message.  Also, due to the
susceptibility of electronic communication to corruption, the sender
warrants neither the accuracy nor the completeness of this communication

@MrSegundus

@psychedelicious I've just updated invoke to version 3.3.0post1, and it was immediately broken. I've looked for the .DS Store file you mentioned, but it's not in sd-1/main/ folder, nor the SDXL counterpart.
When the Invoke startup fails, the Mac OS Terminal automatically returns to the default menu, hiding error messages. I've been capturing these errors via screen recording. Is there a way to access Invoke logs or stop the Terminal from auto-resetting to diagnose the issue?

Ok, maybe the .DS_Store is a red herring. You could upload the video here (paste it into the comment box).
Or, I believe this will work to run the app without erasing the log outputs:

Run the launcher
Choose the developer console
Run invokeai-web


SAK-30338 - A few followup issues for the simple rss portlet tool after

merge

Thanks for this Matt!


Is there an option to change the path prefix?

If I want to host it behind a URL like http://example.com/ocpp is this possible?

Yes.
Out of the box, this module will create a standard Node.js http.Server when you call sever.listen(port).  The server listens for websocket Upgrade request events and process them as OCPP RPC clients.  It will process upgrade requests for any URL path.
If you wanted to restrict the path which can be used, you can do so within your auth handler, like so:
server.auth((accept, reject, handshake) => {
    if (handshake.endpoint !== '/ocpp') {
        reject(404, `Endpoint path not found`);
    }

    // else, accept the incoming client
    accept();
});

Of course, you can use whatever HTTP server you like (e.g. express.js), or host it behind a reverse-proxy restricted to a certain path.  There are many ways you could achieve this.