Make DynamoDBCrudPolicy Include Global Secondary Indexes

I'm trying to give a Lambda access to my DynamoDB table, and am running into an error about not having permissions on the GSI. Wouldn't it make more sense to include GSIs on the DynamoDBCrudPolicy rather than requiring someone to make a new policy, just to add access to a GSI?
AFAICT it's as easy as changing:
"arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}"
To:
"arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}/*"
And, moreso, from a semantics standpoint, if a Table has a GSI attached, wouldn't you assume that DynamoDBCrudPolicy would include it?

I assume appending /* doesn't break any of the existing permissions? Should be a simple PR for anyone willing.

Hello! Opened https://github.com/awslabs/serverless-application-model/pull/620 for this, can you please take a look?

The documentation suggests using
arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}
arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}/index/*

like @mhart commented to access both the table and its indexes.
@clickyotomy can you verify that adding /* does indeed still work to access both the table and the indexes? This will also allow access to the streams; does it make sense to and do we want to allow access to those in this policy as well?

@keetonian - Yes, you are right. I will update the PR and restrict access to the table and it's indexes only.
I checked if changing Resource to ...table/${tableName}/* would allow access to table indexes, but it does not; adding ...table/${tableName}/index/* works.

I just ran into this. This is painful.

Released!


browserify --node with require.extentions

This seems to not work.  Sorry if I missed another issue that mentions it, but I am using version 12.0.2 and doing a command like this:
$ browserify --node -t [babelify] --debug -u tinyliquid [A bunch of other ignores...] bin/app -o build/bin/app

One of the modules that it includes is consolidate, which uses require.extentions to modify imports.  I am probably going to move away from that package after having these issues and seeing that it registers those hooks whether or not we are using that template engine, but the issue stands that I cannot run my bundle in node if it runs anything that uses that feature.
I looked at https://github.com/substack/browser-pack and see that maybe the issue is in the prelude, that it would need to include proxying the require.extentions field, but figured this issue is better opened here for discussion.  Tell me if you would rather this be moved somewhere else (edit: or closed) :)
Also I understand that bundling the app together means that require.extentions is not used, regardless the code doesn't run.

As you are likely already aware, require.extension is deprecated. Browserify doesn't support it (consider that a subtle bug), as it doesn't make much sense in a browser environment (where you'd likely much rather compile ahead of time).
I don't see us spending any time attempting to add this functionality as a result.

Actually @terinjokes I did not know, but I intentionally don't use it because I was aware of it's issues.  Just so happens that a module I DO use uses it in a way that is both unexpected and IMHO bad.  As it turns out I was able to get a more up-to-date version of that module where the hard error was fixed.
Maybe this would be a good small thing I could add to the docs for the --node flag?  Something like "This flag does not have feature parity with node's require, for example it does not support the deprecated require.extentions field.  Use at your own risk."?
Thanks for the input and I totally understand the choice to not support it.


Feature/no context

This builds upon the previous pull request:
https://github.com/jhaals/ansible-vault/pull/20
It relaxes the Python >= 2.7.9 requirement, in that it now works in earlier versions if you are not using an SSL context.
I'm not sure of the etiquette of cumulative pull requests. Is it confusing that this is a superset of the previous pull request? Should I have held off with the previous request and submitted all of these changes as a single pull request? Please let me know if you'd like me to do things differently in the future.

I can redo this once #24 (a redo of #20) is complete, but it appears to me that it's not possible in github to create separate pull requests that are truly separate (and not including the preceeding commits) if there are open dependent pull requests.

Replaced by #26


Learning rate schedule for trainer

The trainer interface passes learning_rate to the tensorflow optimizer. So learning rate schedules can already be used with the trainer.
We are keeping this issue open as a reminder to discuss:

Default learning rates
Default learning rate scheduler (?)

If any further functionality is desired, please issue a feature request.


SQL Developer connections import - no network alias

Description
Connections import from SQL Develop for TNS connections doesn't import the TNS "Network Alias".
DBeaver Version
Community Edition 22.3.5
Operating System
Microsoft Windows 10 Entreprise 2016 LTSB
Database and driver
Oracle 19c
Steps to reproduce

Create a TNS connection in SQL Developer

Import the connection with "File > Import > Third Party Configuration > Oracle SQL Developer"
Check the TNS "Network Alias". It is the default value (the first TNS alias)

Additional context
No response

Thank you for bug report.

@E1izabeth is this issue claimed? If not, I would like to look into it

@hawthorne3341 you can work on this. Let me know if you meet difficulties and need help

Thanks a lot @hawthorne3341 !


replaced "console.log" with an optional dependence on "debug."

I replaced the direct calls to "console" with a wrapper around "debug" in lib/debug.js. If "debug" is not found, it will just eat log messages.
If you would rather, I can have the lack of a dependence on "debug" to revert to use "console.log" instead of an empty function.

@crzidea  I like debug too.


Can't make babel-plugin-idx works with async function

Description
Everything is working fine until I use idx inside async function
const obj = { a: 0, b: { c: 1 } }

const Working = () => {
  idx(obj, _ => _.b.c)
}

const notWorking = async () => {
  idx(obj, _ => _.b.c)
}

I'm getting this :

babel config :
"babel": {
    "presets": [
      [
        "es2015",
        {
          "modules": false
        }
      ],
      "react",
      "stage-0"
    ],
    "plugins": [
      "idx",
      [
        "transform-runtime",
        {
          "helpers": false,
          "polyfill": false
        }
      ]
    ]
  }

cc @fbonniec

Looks like t.isArrowFunctionExpression might only be returning true for non-async functions (if I'm reading babel-types/README.md correctly).
I would most welcome a PR if you're up for it!


Error compiling

I followed the instructions given in the website. I also have
all the dependencies listed here.
But I obtain the follwing error:
cd lib; g++ -O3 -I/home/nguarinz/software/mfem-3.3 -DGLVIS_MULTISAMPLE=4 -DGLVIS_MS_LINEWIDTH=1.4 -I/usr/X11R6/include -DGLVIS_USE_LIBPNG -DGLVIS_USE_FREETYPE -I/usr/X11R6/include/freetype2 -I/usr/include/freetype2 -c aux_vis.cpp
aux_vis.cpp:36:35: fatal error: fontconfig/fontconfig.h: No such file or directory
compilation terminated.
makefile:167: recipe for target 'lib/aux_vis.o' failed
make: *** [lib/aux_vis.o] Error 1

I already have fontconfig installed, so I don't know what the problem is.

Hi @nicoguaro,
Do you know where fontconfig/fontconfig.h is installed in your system?
If it is not in /usr/include or /usr/X11R6/include you can modify the FT_OPTS variable in the makefile to add the directory where it can be found.
Hope that helps,
Tzanio

The path in my system is
 /home/nguarinz/anaconda2/include/fontconfig/fontconfig.h

And I changed the line 134 of the makefile for
FT_OPTS = -DGLVIS_USE_FREETYPE -I/usr/X11R6/include/freetype2\

-I/usr/include/freetype2 -I/home/nguarinz/anaconda2/include/fontconfig
And obtain the following error when trying to compile
usr/bin/ld: cannot find -lfontconfig
collect2: error: ld returned 1 exit status
makefile:175: recipe for target 'glvis' failed
make: *** [glvis] Error 1

Try adding -L /home/nguarinz/anaconda2/lib to FT_LIBS.
You can also run without freetype (not recommended) by setting USE_FREETYPE = NO.

I tried that and obtained much more errors. You can check the output in this file

It would seem that your version of fontconfig requires a library called libiconv.  This library is responsible for converting between different language or country specific text encodings.  If you can find libiconv on your system you can add its path in the same way that you added the path for libfontconfig.  If you don't have it, then you'll need to install this as well.

You can also try running pkg-config fontconfig --libs -- that should give you all the options/libraries you need to add to FT_LIBS. You can do the same for freetype: pkg-config freetype2 --libs. This is mentioned in the comments in the makefile, see here.

One more thing: the output file you posted has a lot of messages about missing std::... - I see this type of messages if I use g++ (i.e. GCC) to build one library/source and then use clang++ when linking, or vice versa. In cases like that, run make clean in both the mfem and the glvis source directories and rebuild them making sure you use the same compiler for both.
Hope this helps,
Veselin

I just did all that you suggested, and I have a different issue now
url: https://gist.github.com/anonymous/0003c0b019888d0462522a63fdc7b672

One small issue is that "-L/home/nguarinz/anaconda2/lib/libiconv.so" is invalid.  The "-L" option is used to add directories to the library search path during linking but you're passing a filename not a directory.  This directory is already in the search path because it was added so that libfontconfig could be found.  Rather than this "-L" option all you need is "-liconv" which tells the linker to look for a library called "libiconv.*" in the current library search path.
The other errors seem to indicate that g++ can't find its own libraries.  As Veselin pointed out this suggests that different C++ compilers are being used for different object files.  A closer look at the undefined symbols shows that they are part of the C++ 11 standard so it's also possible that the same compiler is being used with different standards.  Is is possible that some of your libraries were built with the C++11 standards activated but GLVis was not?  I believe the compiler option to look for is "-std=c++11".

The only drawback when USE_FREETYPE = NO is that the fonts used by GLVis will be standard X11 fonts instead of the anti-aliased fonts that are used when USE_FREETYPE = YES.
If you want to try to get USE_FREETYPE = YES working, one more thing you can try (in addition to replacing -L/home/nguarinz/anaconda2/lib/libiconv.so with -liconv or /home/nguarinz/anaconda2/lib/libiconv.so) is to force g++ to use the c++11 standard by adding the option -std=c++11, e.g. compile MFEM with
make CPPFLAGS=-std=c++11 serial -j

and then in the GLVis source directory:
make clean
make MFEM_DIR=../mfem-3.3 -j

By the way, what version of g++ do you use? (You can check with g++ -v)

I tried with all these options but it did not work.
The version of g++ is 5.4. Thi is the output from g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 5.4.0-6ubuntu1~16.04.4' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)


home page contents not aligned properly

Describe the bug

Launch Simulator and For Teachers buttons not aligned properly
The new_homepage_sketch image is not aligned with corresponding content.

To Reproduce
Steps to reproduce the behavior:

Go to beta.circuitverse.org
See error

Expected behavior
The forementioned buttons must be aligned properly and the image must be aligned with it's contents.
Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.
Are you working on this issue? (Yes/No)
Yes

Can I work on this?

@Vishruth-S PR already linked


Fixed error for execution of the CI pipeline on non-amd64 cluster

Fixed below error at the digest-pinning step for Pipeline Run with Image Digest Pinning on the non-amd64 cluster -
PermissionError: [Errno 13] Permission denied: '/workspace/source/operators/ppc64le-cluster-testing-operator/1.12.0/manifests/ppc64le-cluster-testing-operator.clusterserviceversion.yaml'

@amisstea, @Allda can u please review?

We discovered that this isn't compatible with the git commit after automatic digest pinning because it touches every file. E.g.
[main-pinned 7dda390] Pin the operator manifests
 1656 files changed, 1215 insertions(+), 1210 deletions(-)

More investigation is needed so we've agreed to close this.


incorrect initial block in ship if started from portable snapshot

related issue:  https://github.com/EOSIO/abieos/issues/110
on EOS mainnet, I'm starting a node from a portable snapshot, and reading the state history from initial block.
It works well if started from a block in February (167140183). It breaks on recent blocks (tested 173530238 - 177157201).
My guess is that state history plugin writes the initial block incorrectly. Probably it's related to the size of state RAM.

detected in 2.0.8, reproduced in 2.0.11

Were you able to reproduce this issue in 2.1?

no, my ship reader is not prepared for 2.1 format yet

same error encountered with a fresh WAX snapshot (block 115261182)

for your reference, compressed snapshot sizes. It looks related to the size only: https://snapshots.waxsweden.org/

so, on WAX it failed on snapshots at blocks  110167654 to 115261182, and I could only get the data from 105676632
WAX is using a modified version of eosio (with RSA signature verification intrinsic). The sources are at https://github.com/cc32d9/wax2.0  and binary packages at http://apt.eossweden.org/wax/pool/

Potential fix:
eos repo:
--- a/plugins/state_history_plugin/include/eosio/state_history_plugin/state_history_serialization.hpp
+++ b/plugins/state_history_plugin/include/eosio/state_history_plugin/state_history_serialization.hpp
@@ -99,7 +99,7 @@ template <typename ST>
 void history_pack_big_bytes(datastream<ST>& ds, const eosio::chain::bytes& v) {
    history_pack_varuint64(ds, v.size());
    if (v.size())
-      ds.write(&v.front(), (uint32_t)v.size());
+      ds.write(&v.front(), v.size());
 }

 template <typename ST>

fc:
--- a/include/fc/io/datastream.hpp
+++ b/include/fc/io/datastream.hpp
@@ -37,7 +37,7 @@ class datastream {
       }

       inline bool write( const char* d, size_t s ) {
-        if( _end - _pos >= (int32_t)s ) {
+        if( _end - _pos >= (int64_t)s ) {
           memcpy( _pos, d, s );
           _pos += s;
           return true;

Thanks cTodd!  We'll give it a shot.


Exception using PGAdapter with Spring JPA

I'm following along with this documentation https://cloud.google.com/spanner/docs/use-spring-data-jpa-postgresql.  My PGAdapter class matches the one in your example.  When my service starts up I see the following logs.
Oct 05, 2023 10:40:40 AM com.google.cloud.spanner.pgadapter.ProxyServer startServer
INFO: Server started on port 9432

However, after these additional log entries:
o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
o.apache.catalina.core.StandardService   : Starting service [Tomcat]
org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.78]
o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 2898 ms
o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]
org.hibernate.Version                    : HHH000412: Hibernate ORM core version 5.6.15.Final
o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.1.2.Final}
com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
c.g.cloud.spanner.pgadapter.ProxyServer  : Socket ServerSocket[addr=localhost/<IP_ADDRESS>,localport=9432] stopped

The following exception is thrown:
Exception in thread "spanner-postgres-adapter-proxy-listener" java.lang.NoSuchMethodError: 'com.google.common.cache.CacheBuilder com.google.common.cache.CacheBuilder.expireAfterWrite(java.time.Duration)'
	at com.google.cloud.spanner.pgadapter.ConnectionHandler.<init>(ConnectionHandler.java:112)
	at com.google.cloud.spanner.pgadapter.ConnectionHandler.<init>(ConnectionHandler.java:143)
	at com.google.cloud.spanner.pgadapter.ProxyServer.createConnectionHandler(ProxyServer.java:315)
	at com.google.cloud.spanner.pgadapter.ProxyServer.runServer(ProxyServer.java:287)
	at com.google.cloud.spanner.pgadapter.ProxyServer.runTcpServer(ProxyServer.java:247)
	at com.google.cloud.spanner.pgadapter.ProxyServer.lambda$doStart$2(ProxyServer.java:143)
	at com.google.cloud.spanner.pgadapter.ProxyServer$1.run(ProxyServer.java:159)

Here is the entry point of my Spring Boot application.
public class MyApplication {

	private static final PGAdapter pgAdapter = new PGAdapter();

	public static void main(String[] args) {
		SpringApplication.run(MyApplication.class, args);
	}

	@PreDestroy
	public void onExit() {
		// Stop PGAdapter when the application is shut down.
		pgAdapter.stopPGAdapter();
	}
}

Im using postgres driver 42.6.0 and I've tried both 0.23.1 and 0.24.0 of google-cloud-spanner-pgadapter.

@HendPro12 Thanks for reporting this. Would you mind sharing your pom.xml or other build file? My expectation is that it is caused by a dependency conflict in the build, most likely related to two different versions of Guava being added by different build dependencies.

@olavloite  Thanks. My project was built using two dependencies required by my employer that are using springboot 2.7.14 including spring-boot-starter-data-jpa.  I think that is where the issue is stemming from.

@olavloite Thanks. My project was built using two dependencies required by my employer that are using springboot 2.7.14 including spring-boot-starter-data-jpa. I think that is where the issue is stemming from.

Thanks for getting back to us. Is there anything you would like us to do? Or can we close this issue for now?

@olavloite No, I think this is something I need to sort out from my end.  Thanks for the guidance.


Added Safe (Gnosis) connector.

We've been having issues recently with WalletConnect so we worked on adding the official Safe connector to our dApp.
Wanted to share the implementation with you guys, hopefully this is useful.
Related convo #348

On testing the connector
The Safe connector is designed to get activated only when the dApp is loaded directly from the Safe.

In order to enable the auto-connect support, a little trick is required (triggers the Safe connector if it's found):
import React from 'react';
import { useConnect, createClient } from 'wagmi';
import { publicProvider } from 'wagmi/providers/public';

const { connect, connectors } = useConnect();
const wagmiClient = createClient({ connectors, publicProvider() });

// Auto-connect to Safe if available
React.useEffect(() => {
  const safeConnector = connectors.find((c) => c.id === 'safe' && c.ready);

  if (safeConnector) {
    connect({ connector: safeConnector });
  } else {
    // Comment out to disable auto-connect...
    wagmiClient.autoConnect();
  }

}, [connect, connectors]);

Custom Safe dApp integration
In order to make it easier to connect to Safe, you can add the dApp to their apps list and access it just as it would be a normal Safe app.

You will need to add a /manifest.json file to your dApp. Here's an example:
{
  "short_name": "Velodrome",
  "name": "Velodrome Finance",
  "description": "The Trading and Liquidity Marketplace on Optimism",
  "icons": [
    {
      "src": "logo.svg",
      "sizes": "any",
      "type": "image/svg+xml"
    }
  ],
  "start_url": ".",
  "display": "standalone",
  "theme_color": "#4862D8",
  "background_color": "#ffffff"
}

Updated the integration snippet to solve the issue of safe auto-connect conflicting with default autoConnect: true client config.

this would be great to get in! any chance we can get this merged @RainbowWalletAdmin @rainbow-infra ?

Any ETA on this?

eta on this?

Wooooooo!!!

@DanielSinclair we'd have to bump the wagmi to v0.11, are you guys ok with that?
The PR should be using the wagmi connectors now btw. I have limited time, so if it's a larger project to update everything to latest wagmi it might take longer to wrap up the PR.

@stas There are some TypeScript changes, so you can rebase to #1000. That should be merged later today or tomorrow anyway.

what happened to this PR @DanielSinclair

@benjileibo No ETA. Might require larger changes. Working on my own experimental PR at #1028.

Closing in favor of cherrypicks and additional changes in #1028. The behavior seems to be working as expected but requires additional testing. Feel free to try it out.


Add coordinate (de-)serialisation, including z

In addition to all the Geometry types (including point), in some cases the we are interested in (de-)serialising the coordinates themselves.
The deserialisation code aceppts both pairs/triples of coordinates, such as [X,Y, Z], as well as the format {'x': X, 'y': Y, 'z': Z}, where Z is, similarly to JTS, optional and signalled with a NaN.

Hi @joprodrigues ,
thanks a lot for your contribution.
In order to publish your work within the 52N repositories, we need your official permission. For this purpose we have a so called contributors license agreement (CLA) in place. With this agreement you grant us the rights to use and publish your code under an open source license.
The contributors license agreement is available here
Please note: as you are working on the code as part of your work it is important, that the CLA is signed by an authorized representative of your company.
Further explanations about the contributors license agreement are available here.
Finally, we have also prepared an FAQ about the contributors license agreement.
We are really looking forward to host your code on 52N. If you have any further questions or need for clarification just let us know. We will be happy to help you.
Thanks,
Christian


Make last_enqueue_time be always an instance of Time.

On my laptop in Japanese-language environment, loading @last_enqueue_time raises a parse error:
2022-08-08T05:59:06.992Z pid=58672 tid=2kqk WARN: Date::Error: invalid date
2022-08-08T05:59:06.992Z pid=58672 tid=2kqk WARN: /Users/ryotarai/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/sidekiq-cron-1.7.0/lib/sidekiq/cron/job.rb:632:in `parse'
/Users/ryotarai/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/sidekiq-cron-1.7.0/lib/sidekiq/cron/job.rb:632:in `rescue in parse_enqueue_time'
/Users/ryotarai/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/sidekiq-cron-1.7.0/lib/sidekiq/cron/job.rb:629:in `parse_enqueue_time'
/Users/ryotarai/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/sidekiq-cron-1.7.0/lib/sidekiq/cron/job.rb:285:in `initialize'

This PR makes @last_enqueue_time be always Time instance.
Closes #397

Hi @ryotarai and thanks for contributing here!
To be honest I'm not sure about this change, is there a place in the code where we can set the  @last_enqueue_time.strftime(LAST_ENQUEUE_TIME_FORMAT) only once?

Wouldn't it be enough if you just changed the to_hash method?

@markets it seems backwards compatible since this is explicitly formatting timestamps with the format we try first before falling back to DateTime.parse, which remains for deserializing existing jobs

Could make a method

That would be 👌

hi @ryotarai 👋🏼 Do you mind to update from master and address @danilogco @serprex comments?

not stale

Your stacktrace is a bit odd. For one, save_last_enqueue_time should be at line 480, but your stacktrace is saying 473. Secondly, PR has conn.hset redis_key, 'last_enqueue_time', @last_enqueue_time.strftime(LAST_ENQUEUE_TIME_FORMAT) which should be avoiding sending raw time value error is complaining about

@serprex  is my code , can you please out to me, basically i am not sending Raw time. instead rescue to nil
https://github.com/sidekiq-cron/sidekiq-cron/compare/master...farooqch11:sidekiq-cron:master

You didn't update save_last_enqueue_time

Hello @ryotarai did you have the chance to take a look to those comments? I'd like to include this fix in the next release.
If you don't have time right now, maybe @farooqch11 or @serprex can take it over?

Hi. Sorry for late response.
I've resolved conflict and commited https://github.com/sidekiq-cron/sidekiq-cron/pull/354/commits/c00fb144a19e9d6f812b8bc474277e73f8bca724 to deal with this change.

are these changes compatible with already existing jobs?

Yes, this does not break compatibility.

Cool, now its ready for master ?
On Thu, 2 Mar 2023 at 8:08 PM, Marc Anguera @.***>
wrote:

Merged #354 https://github.com/sidekiq-cron/sidekiq-cron/pull/354 into
master.
—
Reply to this email directly, view it on GitHub
https://github.com/sidekiq-cron/sidekiq-cron/pull/354#event-8650446793,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIFWI2YMGSCQOZMIGW5GPM3W2CZW5ANCNFSM5535JJDQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
[image: logo-1.png]
Farooq Ashraf
Founder
@.*** @.***> | +923347188223
stackworx.co

Yes @farooqch11! Please, in case you can test it out (from the canonical master branch) any feedback is really appreciated.

Sure, i will start using this on production.
On Thu, 2 Mar 2023 at 8:12 PM, Marc Anguera @.***>
wrote:

Yes @farooqch11 https://github.com/farooqch11! Please, in case you can
test it out (from the canonical master branch) any feedback is really
appreciated.
—
Reply to this email directly, view it on GitHub
https://github.com/sidekiq-cron/sidekiq-cron/pull/354#issuecomment-1452033242,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AIFWI23PC5TR5MBSBPP6KPDW2C2HNANCNFSM5535JJDQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
[image: logo-1.png]
Farooq Ashraf
Founder
@.*** @.***> | +923347188223
stackworx.co


Add support for UUID selection of NVIDIA MIG devices

Introduce a new parameter mig.uuid which reflects the new MIG UUID format used by Nvidia 470+ drivers (eg. MIG-74c6a31a-fde5-5c61-973b-70e12346c202), the MIG- prefix can be omitted.
This extension supersedes old mig.gi and mig.ci parameters which are kept for compatibility with old drivers and
cannot be set together.
Resolves #9518.
Signed-off-by: Vincent KHERBACHE<EMAIL_ADDRESS>

This pull request didn't trigger Jenkins as its author isn't in the whitelist.
An organization member must perform one of the following:

To have this branch tested by Jenkins, use the "ok to test" command.
To have a one time test done, use the "test this please" command.

Those commands are simple Github comments of the format: "jenkins: COMMAND"

jenkins: test this please


More parameters/query pairs in the PgConnectOptions uri parser

The PgConnectOptions uri parser currently supports only 4 keys: "sslmode", "sslrootcert", "statement-cache-capacity", and "host"
The Postgres connection uri spec notes that there are many more, for example user and password
Should these not be added so that a connection string can be built using only named parameter keys?

Should these not be added so that a connection string can be built using only named parameter keys?

More of a matter of it's not something we use and hasn't been requested (yet) so we haven't worked to expand the URI parser. Note that user and password can be set normally such as: postgres://user:password@host:port/database.


[Meta] PHP 7.4 support

(Syntax) changes that require new tests to make sure the tool is compatible with PHP 7.4:

[x] Null Coalescing Assignment Operator (#4603)
[x] Typed Properties 2.0 (#4593)
[x] Spread Operator in Array Expression (#4602)
[x] Arrow Functions 2.0 (#4600)
[x] Change the precedence of the concatenation operator (couldn't find any issue with this on 2.15)
[x] Numeric Literal Separator (#4596)

Other:

[x] Reflection for references (class casing) (couldn't find any issue with this on 2.15)
[x] Password Hashing Registry (function casing) (couldn't find any issue with this on 2.15)
[x] mb_str_split (#4380 -> #4534)
[x] New custom object serialization mechanism (#4381)

TODO:

[x] PHP 7.4 integration test (#4637)
[x] do the same checks for rules added in v2.16 (#4638)
[x] do the same checks for rules added on master (couldn't find any issue with this on master)
[x] VisibilityRequiredFixer (#4641)

Sources:
Approved RFC's list for PHP7.4

Will it be possible to automatically add property typehints if constructor has assignment, but property itself doesn't have @var annotation?
Example:
class Product
{
	private $category;

	public function __construct(Category $category)
	{
		$this->category = $category;
	}
}

The reason is that I never put @var annotations, PHPStorm is smart enough to figure the type from constructor and give me autocomplete.

can be problematic in cases like
        private $foo;
	public function __construct(Category $category)
	{
		$this->foo = validateCategory($category) ? $category : createDummyCategory();
	}

i know, stupid code, but possible.
PHP CS Fixer is not going that deep into looking on code execution

Those should check first PHP version installed, no? Just got str_split replaced with mb_str_split on PHP 7.2...

I checked Deprecate left-associative ternary operator item as I don't think we have anything to do for it (it does not introduce any syntax change).

I checked every item of the list: all seem ok to me or have a corresponding PR to improve support. Please review :)
Note that merging those PRs should allow us to claim support for PHP 7.4 on branch 2.15 only. We still need to do the same checks on master for new fixers that have been added.

can you take a look at higher branches, @julienfalque , please ?

It took us quite a while, but i'm supper happy we have it now, just before 7.4 official release at 28th of Nov

Is there any documentation available on how to use these new PHP 7.4 feautres?

i am also interested, how to use new features?

This issue was not about implementation of new features for PHP 7.4 but to make sure that existing features were compatible with new PHP 7.4 syntax changes.

see also https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/4834 for the introduction of the PHP7.4 rule sets to easy migration


Scrolling up an down = page break, post titles dissapear.

Hi there,
I’ve disabled both visual effects in coreframe but I am still having the below issue whilst scrolling up and down a categories/main page on both mobile and on the laptop (tried in supported browsers safari/google chrome/firefox)
Please see image @ https://imgur.com/a/oZJfBRp
The theme is great, just hindering user experience.
Appreciate the support.
A

Hi @aramwot!
Thank you for reporting the issue!
Is this happening on a Windows/ Linux or Mac OS?

Hi there,
It is happening on Windows & Mac to my understanding so far. Haven't tested on any other systems, it also happens on Mobile.

hello?

Are you going to respond?

.......


Fix a bug when training with sparse matrices

model.fit assumes it can figure out the size of the input.
A broader question: maybe I should replace all those len(x[0]) in the file with x[0].shape[0]?

Thanks!


Add a tutorial to the TamTam Micro activity

Add a tutorial to the MazeWeb activity following tutorial 9 in Sugarizer development tutorial: https://github.com/llaske/sugarizer/blob/dev/docs/tutorial_step9.md
The tutorial:

[ ] Should display a welcome message to explain the activity (could reuse the help message describing the activity in Sugarizer activities List view)
[ ] Should be localized
[ ] Should respect the Sugarizer UI, as explained in tutorial

Fixed in https://github.com/llaske/sugarizer/pull/506


🛠 Tooling: Allow local website development without a Liveblocks key?

Right now, if you don't set a NEXT_PUBLIC_LIVEBLOCKS_PUBLIC_KEY environment key and then pnpm dev the website, the page throws an error in the terminal:
 ✓ Compiled / in 6s (3741 modules)
 ⨯ Error: Invalid Liveblocks client options. Please provide either a `publicApiKey` or `authEndpoint` option. They cannot both be empty. For more information: https://liveblocks.io/docs/api-reference/liveblocks-client#createClient
    at prepareAuthentication (file:///Users/josh/repos/million/node_modules/.pnpm/@liveblocks+core@1.5.0/node_modules/@liveblocks/core/dist/index.mjs:1449:9)
    at createAuthManager (file:///Users/josh/repos/million/node_modules/.pnpm/@liveblocks+core@1.5.0/node_modules/@liveblocks/core/dist/index.mjs:1298:26)
    at createClient (file:///Users/josh/repos/million/node_modules/.pnpm/@liveblocks+core@1.5.0/node_modules/@liveblocks/core/dist/index.mjs:6001:23)
    at eval (webpack-internal:///./liveblocks.config.ts:15:80) {
  page: '/'
}

...which gets shown as a blocking Next.js error modal:

It'd be nice if we didn't need to have a Liveblocks account to run the website locally. Would you be open to letting the website run without one in dev mode? I'd be happy to send a PR that refactors this a bit to just log a warning! ❤

I'd like to work on this issue

Hey, I was working on this, I logged a warning for the absence of the env variable
@tobySolutions , are you open to run the website like this in dev mode??

something like this could work as a solution would love to contribute

🤔 this feels like an unnecessarily aggressive stale bot. It probably shouldn't close issues that aren't waiting on an external person, no?

bamp

bibbity

bobbity

boomp

bidoof

can someone change the stale bot my god..

Liveblocks GONE


endpoint: Only perform full synchronization periodically

Performing a full dump of the policy map on every policy map synchronization
is expensive and is only necessary to catch rare cases where the agent's view
of the policy map has diverged from the kernel's view which should only happen
either due to kernel or other bugs or some other application modifying the
endpoint policy map.
To reduce the cost of synchronizing large endpoint policy maps perform the
full synchronization only periodically. The full synchronization is defaults
to 15 minutes. Configurable with the hidden option
"--policy-map-full-reconciliation-interval".
Fixes: 9dc1350fdb ("endpoint: Enhance policy map sync")
endpoint: Only perform the full policy map synchronization periodically (every 15 minutes) to reduce overhead with large endpoint policy maps

/test

We know Cilium wasn’t relying on this because we were not seeing the warnings that would be logged if full sync did catch something. Furthermore, @jrajahalme who wrote this originally did not intend this as he expected UpdateController to be a no-op after the first call and not a trigger to run it immediately.

/test

Huh, I was pondering why the policy trigger doesn't ratelimit these and then realized that's because the policy trigger is for triggering re-evaluation of the policy, not attempting a fresh synchronization of the synchronized policy to the BPF policymaps. So fair :+1:

I managed to resolve the conflicts for v1.14, but the conflicts for v1.13 and v1.12 are more complex (i.e. there is no managedController type). Marking as backport/author.


Add test to check 'column_names' argument is working as expected on FlowRequest results

Add tests under tests/statistics_filter
Get the traffic statistics based on column_names argument
Validate the stats returned are based on user provied column_names

Added with #190


Attach container to an existing network using it's id

I'd like to attach a newly pulled container to an existing set of containers (started externally using docker compose) running on network 'docker_default'.
Please advice how could this be done. Thanks.
Or simply allow the compose module to attach to an existing (and running) compose 'project' started from outside and create the socat container inside it so that we are able to do port maps.

You can instantiate a new Network using the external id:
Network n = new Network() {
    @Override
    String getId() {
        return "existingId" // use id of external network
    }

    @Override
    void close() throws Exception {

    }

    @Override
    Statement apply(Statement base, Description description) {
        return null
    }
}

container.withNetwork(n)


DATE filter

We should support a custom DATE() filter.
Example 1
Format a datetime value during a WHERE clause.
SELECT * FROM table_name WHERE DATE(column, 'YYYY-MM-DD') = '2021-09-20'

Example 2
Format an output and a WHERE clause. In this example u formats the datetime value to a unix timestamp.
SELECT DATE(column, 'MM/DD/YYYY') FROM table_name WHERE DATE(column, 'u') >= $startDate AND DATE(column, 'u') <= $endDate

This should also include the addition of a NOW() function. The function should support formatting NOW('YYYY-MM-DD') but defaults to a UNIX timestamp.

This feature has expanded (again) to include the following functions:

INT()
FLOAT()
BOOL()
JSON()

This feature has expanded (again) to include the following functions:

INT()
FLOAT()
BOOL()
JSON()


could not find MARK

Hi, this project is very helpful for me to write my thesis, can you solve the problem about the installation guide of dependencies for local deployment?

Also, the link for processed Marmot dataset is not working, so please provide a new link, thank you!

Links are dead for processed data and trained models. I will re-create the project over weekend and provide fresh links

The links to the processed data and trained models are dead. I will rebuild the project this weekend and provide new links

Thank you very much！

The links for processed data and trained models are dead. I will rebuild the project over the weekend and provide new links Hello, has this project reconstruction been completed?

It will take some time, need to restart the project with new dependencies, will do that soon in a week.
Raw and processed data both are corrupted on my end. Along with that , the trained model is also corrupted.
An alternative for this would be follow along the blog post I shared and reiterate everything on your own.

This will take some time and requires a restart of the project with new dependencies, which will happen within a week. In my case, both the original data and the processed data were corrupted. Rebuilding this project will hopefully allow you to recreate the data as progress is made.

If there is any progress in rebuilding this project, I hope you could share. I am also replicating according to your blog, but unfortunately there are still errors that I cannot solve.

Let me know till which point you were able to rebuild the project, if possible i shall guide you ahead from that point.
Meanwhile I am rebuilding the project using the same blog

processed marmot dataset : https://drive.google.com/file/d/1ZkLjqywNF5I_5IoQjElrqGaxITWXmbqM/view?usp=share_link
trained model link : https://drive.google.com/file/d/13eDDMHbxHaeBbkIsQ7RSgyaf6DSx9io1/view?usp=share_link
training code : https://drive.google.com/file/d/1Ay-9ZBBKjCgSkoXLntI0iqIEIhn88tw6/view?usp=share_link
processed_data_v2.csv : https://drive.google.com/file/d/1ngihDDNo7ToKlqzC3w1oh8tgz9Z08b5h/view?usp=share_link
The processed marmot data is generated using the steps mentioned in the blog and links of the raw data is already provided in the readme. The process is to use EDA_v1 followed by EDA_v2 to generate the processed_data_v2.csv.
There is no change done to the code. Training can be done using the link shared above which is exactly same as the code present in the repo, I used the same code to train on google colab. To train your own model, you just need to update the data paths in config.py and dataset.py from the training code.
The requirements to train the model is almost straight forward, I ll add latest requirements to train the model here.
torch==2.0.0
seaborn==0.12.2
pytorch_model_summary==0.1.2
efficientnet_pytorch==0.7.1
albumentations==1.2.1
Let me know if you face any other challenges.


Add OpenBB (with link) to OSS Capital

OpenBB being one of the biggest checks of OSS Capital, I think it makes sense to add to the list.
I also thought that adding a link to the website or even GitHub project (e.g. https://github.com/OpenBB-finance/OpenBBTerminal/) could add an incentive to the companies to update the list (which is what I'm doing now).
Let me know if this is ok 😄

@DidierRLopes Thanks for the suggestion! We'll add links to all companies over time.

Great! Thanks! 🙏🏽


Updated Xamarin.Essentials: Contacts

Added information on Getting All Contacts
Linked Issue and Pull Request

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

@jamesmontemagno Views?

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

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

Main pull request  was changed.

I think we are still awaiting a merge and then a nuget release.

@jamesmontemagno
@mattleibow  is doing a merge at the moment

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

Is this ready to merge?

@davidbritch the  nuget package has not been released yet.
we should probably get a comment from @jamesmontemagno

Once a nuget has been released then it can be merged in.

This also needs a preview banner on it

@jamesmontemagno
this tag has already been added
https://docs.microsoft.com/en-us/xamarin/essentials/contacts?context=xamarin%2Fxamarin-forms&tabs=android

@davidbritch @jamesmontemagno
1.6.0-pre5 nuget is ready

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


Datasource, index, indexer support for Azure Search CLI

Preconditions

[X] No need to upgrade Python SDK or the Python SDK is ready.

Related command
az search
Resource Provider
Microsoft.Search
Description of Feature or Work Requested
Support CRUD of data plane objects
https://learn.microsoft.com/en-us/rest/api/searchservice/preview-api/create-or-update-index
https://learn.microsoft.com/en-us/rest/api/searchservice/preview-api/create-or-update-indexer
https://learn.microsoft.com/en-us/rest/api/searchservice/preview-api/create-or-update-data-source
https://learn.microsoft.com/en-us/rest/api/searchservice/preview-api/create-or-update-skillset
Minimum API Version Required
2023-07-01-Preview
Swagger PR link / SDK link
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/search/data-plane/Azure.Search/preview/2023-07-01-Preview/searchservice.json
Request Example
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/search/data-plane/Azure.Search/preview/2023-07-01-Preview/examples/SearchServiceCreateOrUpdateIndex.json
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/search/data-plane/Azure.Search/preview/2023-07-01-Preview/examples/SearchServiceCreateOrUpdateDataSource.json
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/search/data-plane/Azure.Search/preview/2023-07-01-Preview/examples/SearchServiceCreateOrUpdateIndexer.json
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/search/data-plane/Azure.Search/preview/2023-07-01-Preview/examples/SearchServiceCreateOrUpdateSkillset.json
Target Date
2024-08-01
PM Contact
magottei
Engineer Contact
beloh
Additional context
No response

Thank you for opening this issue, we will look into it.

@mattmsft,
For Azure CLI, now we have a new codegen tool which is UI based and easy to use. We encourage your team to use it to generate CLI commands automatically as nobody knows your logic better than your team. Using our new codegen tool, you can have the following benefits:

Shorten development cycle (save 50%+ development time, if no block issues, usually it takes less than 1 week).
Directly generate CLI commands from swagger instead of waiting for SDK release.
Consistent code style improves command quality and avoids code review efforts.


pyodbc - Unable to install on Solaris Box

Hi,
Your site is great, and I am trying to get pyodbc installed on my Solaris machine. However it's not working and going through. Any help is much appreciated. Thanks.
SunOS XXX 5.10 Generic_150400-32 sun4v sparc SUNW,Sun-Fire-T200
Python 3.5.3 (default, Feb 23 2017, 11:44:49) [C] on sunos5
Tried same with different versions : pyodbc-master & pyodbc-3.1.2.tar
bash-2.03$ /Python/bin/python3.5 setup.py build
running build
running build_ext
building 'pyodbc' extension
cc: illegal option -Wno-write-strings
error: command 'cc' failed with exit status 1

Hmmm.  Your compiler doesn't support '-Wno-write-strings' which is set in setup.py.  I'm not sure how I would detect that automatically.
If you can build from source, either by downloading or checking out the code, you would look for:
# Other posix-like: Linux, Solaris, etc.

# Python functions take a lot of 'char *' that really should be const.  gcc complains about this *a lot*
settings['extra_compile_args'].append('-Wno-write-strings')

And comment out the settings line.

Hello,
I also have the problem with build on my Solaris machine.
My Solaris is: SunOS z29-ld6 5.11 11.2 sun4v sparc sun4v
$ python setup.py build
...
creating build/temp.solaris-2.11-sun4v-2.6/src /usr/lib/python2.6/pycc -DNDEBUG -KPIC -DPYODBC_VERSION=4.0.0-unsupported -I/usr/include/python2.6 -c src/cnxninfo.cpp -o build/temp.solaris-2.11-sun4v-2.6/src/cnxninfo.o -Wno-write-strings -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=4 -I/usr/include/odbc
**gcc: error: unrecognized command line option '-KPIC'**
error: command '/usr/lib/python2.6/pycc' failed with exit status 1
On the one web-site (here) I found:

In this case "-KPIC" is a valid option for the Sun C compiler,
but not for gcc. The equivalent option for gcc is "-fPIC"

Do you know how to set up "-fPIC" instead "-KPIC"?

Closed due to inactivity. Feel free to re-open with current information if necessary.


Add offers to account endpoint

As a means to introspect the offers which an account makes, this
implements the account endpoint action for offers.
Fixes #60
Note that the doc-tests here rely on the trade::All endpoint being implemented in #127. That will need get merged ahead of this.
Is there a GIF that reflects how this work made you feel?

FYI, at this point, there will soon be a Limit trait and Order trait that can be derived. Should simplify even more 👍
It also appears there's a compile err?
https://travis-ci.org/kbacha/stellar-sdk/builds/365400419?utm_source=github_status&utm_medium=notification

Updated to use Limit and Order traits and addressed the silly compile error (made a tiny name change one place but not the order 🤦♂ ).
This still has one failing doc test until #127 merges.


Can't build for 1.16.5

When building a plugin for Minecraft 1.16.5 using the command:
crx build -o ./dist/ExamplePlugin.jar -mc 1.16.5
The plugin will not build because of the following error:
zip: not a valid zip file.
Here is the full output:
============================================================
Bundling JavaScript code using Webpack
============================================================
asset bundle.js 5.66 KiB [emitted] [minimized] (name: main)
orphan modules 16.3 KiB [orphan] 11 modules
./src/main.ts + 8 modules 18.7 KiB [built] [code generated]
webpack 5.63.0 compiled successfully in 3964 ms

Downloading JAR plugin runtime
============================================================
 -> https://github.com/customrealms/bukkit-runtime/releases/latest/download/bukkit-runtime-1.16.5.jar
 -> DONE

============================================================
Generating final JAR file for your plugin
============================================================
zip: not a valid zip file

Hi there! This bug was just fixed. CustomRealms didn't support Minecraft 1.16.5, but support has been added: https://github.com/customrealms/bukkit-runtime/releases/tag/v2.0.5
Please re-run your build command, and that should work.


Release all packages of WiKit under v2.0.0

Release docs, tokens, vue-components under Wikit 2.0.0

What happened to Storybook? It passed the ui-review test yesterday... I haven't changed anything dramatic...

What happened to Storybook? It passed the ui-review test yesterday... I haven't changed anything dramatic...

I think it is that the border radius was changed ever so slightly in #446 and chromatic isn't good at understanding git and wrongly thinks that this is related to this pull request. I.e. this is a false positive.

I’ve noticed this too late, but vue-components/package.json still has this line which should probably have been updated:
    "@wmde/wikit-tokens": "^2.0.0-alpha.12",

Hopefully we can fix that for the next release.


Some artifacts in output log file

if i use option reporterOutput, i get some artifacts in output log file.
for example
[4m......\User_Part\Source\htdocs\ps\scc\js\common\login.js[24m
[90mline 93[39m [90mcol 0[39m [36mIdentifier 'get_frame_val' is not in camel case.[39m
[90mline 99[39m [90mcol 0[39m [36mIdentifier 'get_cookie' is not in camel case.[39m
[90mline 102[39m [90mcol 0[39m [36mIdentifier 'set_frame_val' is not in camel case.[39m
i add this code to file node_modules/grunt-contrib-jshint/tasks/jshint.js:
output += out.replace(/[\d+m/g,"");

You probably need to have a  --no-color flag set

@bessdsv Does the above work for you?

@arthurvr, Yes It worked for me.


Fix issue with data block for RG being independent of var.use_existing_resource_group

Changes:
Make data referencing RG dependent on var.use_existing_resource_group
Add local.resource_group and set to either the data "azurerm_resource_group" block or the locally deployed RG dependent on var.use_existing_resource group
Update references to the RG throughout main.tf to use local.resource_group (and since this is now a real resource group object we can use .name, .location to get at attributes)

👍


UI not rendering (black window) on laptop, works on desktop

I've compiled the plugin-examples and the UI with text labels (Info plugin) doesn't show anything but a black window on my laptop
Kubuntu 17.04 intel onboard gfx card
On the desktop pc (nvidia gfx card) everything works fine.
Mint 18 (== Ubuntu 16.04)

Please try the MVerb plugin.
Text display requires OpenGL 2.0, while normal bitmaps only needs OpenGL 1.1.
MVerb uses both bitmaps and text, it's a good plugin to test these things.
Link https://github.com/DISTRHO/MVerb (don't forget the submodules before building)
To see if it's an issue with graphics drivers, you can use this:
export LIBGL_ALWAYS_SOFTWARE=1
/path/to/MVerb

found it !
fFont = createFontFromFile("sans", "/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf");
I don't have that font installed on the laptop .. facepalm
I'm closing this issue :-)

dpf has a font included that you can use freely.
see mverb code on how to access it.

Found it :-)
On 3 Aug 2017 1:13 p.m., "Filipe Coelho"<EMAIL_ADDRESS>wrote:

dpf has a font included that you can use freely.
see mverb code on how to access it.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/DISTRHO/DPF/issues/21#issuecomment-319940167, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AKNuh7H7Cq5-TO0k9xSDHr4uBdhFKsqeks5sUatagaJpZM4OsCz2
.


Xml with nested structure, values being put in wrong fields.

When parsing this file:
<test>
  <field1>field1_val</field1>
  <struct1>
    <inner_field1>inner_field1_val</inner_field1>
    <inner_field2>inner_field3_val</inner_field2>
    <inner_field3>inner_field2_val</inner_field3>
  </struct1>
</test>

With Following Code:
customSchema = StructType([
    StructField("field1", StringType(), True),
    StructField("field2", StringType(), True),
    StructField("struct1", StructType([
        StructField("inner_field1", StringType(), True),
        StructField("inner_field2", StringType(), True),
        StructField("inner_field3", StringType(), True)
    ]))
])

df = sqlContext.read.format('com.databricks.spark.xml').options(rowTag='test').load('test.xml', schema = customSchema)

df.select('struct1.*').show()

gives:
+----------------+----------------+----------------+
|    inner_field1|    inner_field2|    inner_field3|
+----------------+----------------+----------------+
|inner_field1_val|inner_field3_val|inner_field2_val|
+----------------+----------------+----------------+

expected:
+----------------+----------------+----------------+
|    inner_field1|    inner_field2|    inner_field3|
+----------------+----------------+----------------+
|inner_field1_val|inner_field2_val|inner_field3_val|
+----------------+----------------+----------------+

This issue is not present for top level fields, they are populated with same value not matter the order they appear in the xml.
I am not sure what other information to add, but please ask and i will provide it.

Yea, it was fixed in https://github.com/databricks/spark-xml/pull/126. Thanks for reporting this. I will publish a release soon.

Excellent!  Thanks!  Sorry for creating a duplicate,  I did search for existing issues honest :)

@ElectricMonk92 I do understand. It's fine :) Do you mind closing this issue then?


REPL!

cc @jeromesimeon @mttrbrts
This provides a small repl to execute Ergo snippets on the command line. As a byproduct, we get a small executable specification for the Ergo calculus.

Looks good for a first pass. We will open issues for consolidation of the REPL and usability features. 🍾


[BUG] C type error in tests/run/cpdef_extern_func.pyx

Describe the bug
A C compiler that does not recognize -fpermissive and treats incompatible pointer types as type errors fails the tests/run/cpdef_extern_func.pyx test with a compiler error:
distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1
Compiler output:
cc1: warning: command-line option ‘-fpermissive’ is valid for C++/ObjC++ but not
 for C
cpdef_extern_func.c: In function ‘__pyx_pymod_exec_cpdef_extern_func’:
cpdef_extern_func.c:3597:144: error: passing argument 1 of ‘__Pyx_CFunc_4274a4__
__const_char__ptr__lParen__const_char__ptr__comma_int__rParennoexcept__etc_to_py
_8haystack_6needle’ from incompatible pointer type
 3597 |     PyObject* wrapped = __Pyx_CFunc_4274a4____const_char__ptr__lParen__c
onst_char__ptr__comma_int__rParennoexcept__etc_to_py_8haystack_6needle(strchr);
      |
                                                                       ^~~~~~
      |
                                                                       |
      |
                                                                       char * (*
)(const char *, int)
cpdef_extern_func.c:2733:151: note: expected ‘const char * (*)(const char *, int
)’ but argument is of type ‘char * (*)(const char *, int)’
 2733 | static PyObject *__Pyx_CFunc_4274a4____const_char__ptr__lParen__const_ch
ar__ptr__comma_int__rParennoexcept__etc_to_py_8haystack_6needle(char const *(*__
pyx_v_f)(char const *, int)) {
      |
                                                                ~~~~~~~~~~~~~~^~
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Code to reproduce the behaviour:
Run the Cython test suite with a sufficiently strict C compiler.
Expected behaviour
The test tests/run/cpdef_extern_func.pyx should pass with a C compiler.
OS
No response
Python version
No response
Cython version
No response
Additional context
I suspect this is a real problem with current Clang builds because it does not recognize -fpermissive in C mode. It will not be a problem for GCC 14 because it interprets -fpermissive to turn a bunch of type and syntax errors into warnings (just as in GCC 13 and earlier).

You're likely to hit https://github.com/cython/cython/issues/2747 too.


aoc: Renaming link for shared folder

Aspera CLI version: 3.x, 4.x
Problem:
I am unable to rename links to shared folders that are created by Aspera in root folder when someone shares a folder with me (adds as a collaborator).
There is a command ascli aoc files rename ... but it forks only with 'file' and 'folder' objects, not 'link' objects.

Please check with version 4.14 , this should be fixed


Cleanup MobileCore APIs

Cleanup MobileCore APIs to use the new Eventhub.
New API
Added new API so that extensions can explicitly specify timeout for each call.
public static void dispatchEventWithResponseCallback(final Event event, long timeoutMS, final AdobeCallbackWithError<Event> responseCallback)
Deprecated APIs
These APIs were only used by Extensions. Going forward, they can use equivalent APIs in ExtensionAPI class.
public static void dispatchEventWithResponseCallback(final Event event,                                                          final AdobeCallbackWithError<Event> responseCallback)
public static boolean dispatchEvent(final Event event, final ExtensionErrorCallback<ExtensionError> errorCallback)
public static boolean dispatchEventWithResponseCallback(final Event event,                                                             final AdobeCallback<Event> responseCallback,                                                             final ExtensionErrorCallback<ExtensionError> errorCallback)
public static boolean dispatchResponseEvent(final Event responseEvent, final Event requestEvent,                                                 final ExtensionErrorCallback<ExtensionError> errorCallback)
Added seperate issues to fix

Cleanup App class used to store ApplicationContext
Remove MobileCore.getEventHistory API.

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[ ] I have signed the Adobe Open Source CLA.
[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

IMO, the pendingHubStart class is way too complicated. Can we just use an atomic boolean and a concurrent list to guard the Eventhub start and the register extension operations? If the Eventhub was started the later start/registerExtension calls should be ignored. If the extension registration failed,  we don't even need to remove it from the registered extension list as we don't support registering the same extension multiple times.

I agree. I added the logic to support current registration logic. I have removed EventHubExtensionRegistarar class for now and will revisit as part of https://github.com/adobe/aepsdk-core-android/issues/155

Improve code inspection with annotations

@praveek one more question, can we consider adding @Nullable/@NonNull annotations to the public APIs in SDK 2.0?


Rationalize the usage of Connection in the JDBC appender

The JDBC appender takes a very conservative approach to SQL connection sharing:

as most appenders, each append call is synchronized,
each event (or batch of events) is logged using a different Connection object, which is closed at the end of the call,
to prevent the high performance hit from creating many Connections, users are advised to use a connection pool like DBCP2.

This approach has many disadvantages:

it does not profit from the connection pool, since at any time at most one connection will be borrowed from the pool,
on the other hand users that use DriverManager get a performance hit, even if 1. ensures that no Connection object will be used concurrently on multiple threads.

We already do sharing through the log4j-jdbc-dbcp2 module. The default behavior should be as simple as possible IMO. Or, we can bake in the use of Commons DBCP and always offer pooling through that. I don't think we should provide a third behavior. Either you get the stock KISS behavior or you get pooling through Commons DBCP.
To muddle the waters further, some JDBC Driver do their own connection pooling; I was the co-author of such a Driver.

We already do sharing through the log4j-jdbc-dbcp2 module. The default behavior should be as simple as possible IMO.

I am OK with using one Connection per log event or batch, but in that case we should allow multiple Connections to be used by multiple threads. Currently all database appenders have the same limitations that OutputStream appenders, with synchronization in AbstractDatabaseManager.write():
https://github.com/apache/logging-log4j2/blob/d229eda077c313a8a2060caa42531f6b539b1a09/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/db/AbstractDatabaseManager.java#L297-L303
Currently this limitation is only due to the fact that Connection and PreparedStatement created in the connectAndStart() method are passed to writeInternal through instance fields of JdbcDatabaseManager:
https://github.com/apache/logging-log4j2/blob/d229eda077c313a8a2060caa42531f6b539b1a09/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/db/AbstractDatabaseManager.java#L325-L332
We can easily:

Use ThreadLocal in 2.x.
Change the API in 3.x to pass that context data as method parameters.


Default / Previous gameplay template remains selected even if dependencies are invalid

What you were trying to do
Play something like JoshariasSurvival which depends on a bunch of modules and is the default gameplay template selected if you run the game fresh via the Omega zip.
What actually happened
While JS was selected and you could start the game that way it silently was in fact not activated as would be visible if you actually check the Modules section. Only JS itself was highlighted and one or more dependencies were listed as red.
How to reproduce

Have a series of modules available with one or more invalid dependencies. For instance increase the current version of a module to the next major version (2.0.0 -> 3.0.0) then anything that depends on it will show as red (cannot satisfy dependencies as a major new release is too new)
Run the game while the previous gameplay template selection (or default on a first run) is affected by a
broken dependency. It will have been set without considering the dependency state of the involved modules.
You'll be allowed to start a game without realizing your selection is invalid. Making it really confusing to be dumped into a seemingly working Perlin world yet none of the JS stuff is active :-)

Instead if the selected gameplay template cannot resolve all its dependencies then disable the button that would start the game and perhaps color the selected gameplay template in red text. You could also highlight the Modules button's text in red. The user should be able to pick a different gameplay template and if that one is valid let the start game button activate.
As an extra we could do something similar if there is no valid world generator in that dropdown.
This could probably be turned into a GCI task if there is interest.

Hey, I'm interested in giving this issue a shot. I've looked through the code a bit and it seems like I should be validating dependencies with DependencyResolver in the CreateGameMenu java file and updating the look of the menu UI from there, but I have a couple questions:
Is there better way to do this that I seem to be overlooking? Also, how do I go about changing the dropdown text color? Would I do this with the default skin, or can I affect the text element directly?


"\n" and "" does not work when sending message with markdown

I use the following code to format markdown , but it does not newline
TdApi.ParseTextEntities("11111\n22222", new TdApi.TextParseModeMarkdown(1))
TdApi.ParseTextEntities("1111122222", new TdApi.TextParseModeMarkdown(1))
I also try
TdApi.ParseTextEntities("11111\n22222", new TdApi.TextParseModeMarkdown(2))
TdApi.ParseTextEntities("1111122222", new TdApi.TextParseModeMarkdown(2))
How to newline when use TextParseModeMarkdown ?

This is not a question about TDLib, this is a question about basic Java programming. New line character is an ordinary character and it is no different from any other cheracter. "11111\n22222" definitely works:
TdApi.FormattedText text = (TdApi.FormattedText) Client.execute(new TdApi.ParseTextEntities("11111\n22222", new TdApi.TextParseModeMarkdown(1)));


Invalid OF calculation - sub

Description
Incorrectly calculates overflow flag OF.
Reference:
Ref. Intel 64 and IA-32 Architecture Software Developer's Manual Vol. 2B 4-652
Affected instructions:
0x28c0
0x29c0
0x2ac0
0x2bc0

NOTE: All combinations of prefixes are omitted.
Reproduction guide
Instruction:
00000000  28C0              sub al,al

Input:
bap-mc "28c0" --show-bil --arch=X86

Observed output:
{
  v1 := low:8[low:32[EAX]]
  EAX := (extract: 31:8[EAX]).((low:8[low:32[EAX]]) - (low:8[low:32[EAX]]))
  CF := v1 < (low:8[low:32[EAX]])
  OF := high:1[(v1 ^ (low:8[low:32[EAX]])) & (v1 ^ (low:8[low:32[EAX]]))]
  AF := 0x10:8 = (0x10:8 & (((low:8[low:32[EAX]]) ^ v1) ^ (low:8[low:32[EAX]])))
  PF := ~(low:1[let v2 = ((low:8[low:32[EAX]]) >> 0x4:8) ^ (low:8[low:32[EAX]]) in
    let v2 = (v2 >> 0x2:8) ^ v2 in
    (v2 >> 0x1:8) ^ v2])
  SF := high:1[low:8[low:32[EAX]]]
  ZF := 0x0:8 = (low:8[low:32[EAX]])
}

Expected output:
OF should be cleared whenever the given two operands are identical.
System Info
OS:
# uname -a
Linux ubuntu 4.10.0-28-generic #32-Ubuntu SMP Fri Jun 30 05:32:18 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=17.04
DISTRIB_CODENAME=zesty
DISTRIB_DESCRIPTION="Ubuntu 17.04"

BAP:
# bap-mc --version
1.0.0
# bap --version
1.2.0

So, what I'm seeing here is that OF is cleared. The expression is just not simplified. In BAP 1.3 we have much better printer (that doesn't print unnecessary parenthesis), as well as better expression simplifier, e.g.,
 echo '\x28\xc0' | bap-mc --arch=x86 --show-bil --show-insn=asm
subb %al, %al
{
  v1 := low:8[EAX]
  EAX := extract:31:8[EAX].0
  CF := v1 < low:8[EAX]
  OF := high:1[v1 ^ low:8[EAX]]
  AF := 0x10 = (0x10 & (low:8[EAX] ^ v1 ^ low:8[EAX]))
  PF := ~low:1[let v2 = low:8[EAX] >> 4 ^ low:8[EAX] in
    let v2 = v2 >> 2 ^ v2 in
    v2 >> 1 ^ v2]
  SF := high:1[low:8[EAX]]
  ZF := 0 = low:8[EAX]
}

You may see that high:1[v1 ^ low:8[EAX]] is zero since v1 is equal to low:8[EAX] and xor of two equal values is 0, this the high bit of 0 is also a zero.

Also in this case, like Issue #3, every statement should be executed sequentially so at the point of OF calculation, the lower 8 bit of EAX register is 0, not same as v1.
So if al  contains a negative 8-bit width integer, OF should be 1 in BIL's semantics.


fix: partial update not working as expected (?)

Branch
https://github.com/equinor/dm-core-packages/tree/fix/form-payload
Entrypoint
SIMPOS -> "Analyses"-> "Positioning" -> "Line Tensions" -> pick a run
Partial update doesn't keep old values
Expected behavior
When only updating and passing some primitives, it should update the passed new values and keep old values for primitives not in payload.
Test form - Scenario form with fields label and description

Blueprint
https://github.com/equinor/dm-app-simpos/blob/main/application/app/data/SIMPOSDS/mtsmo/analysis/positioning/srs/Scenario.json
Example Payload
{ "type": "dmss://SIMPOSDS/mtsmo/analysis/positioning/srs/Task", "label": "Offset ULS UPDATED" }

What happens
It updates label value, but removes other primitive values from object, like description. Seems to keep complex objects.
Throws error on missing required primitive in complex object
Think this is actually related to the issue above where it doesn't keep the unchanged primitive values. If you try updating one field in Wave form, it will throw an error saying that the other unsent fields are required and missing, and if you edit all fields in Wave form, it throws an error saying "Missing required attribute 'seed'" which is a required attribute in Wave, but not shown in the UI. If you try submitting a form with all optional values (like Analyses -> Stability) it saves without error, but doesn't keep unchanged/previous values.

@awesthouse not able to recreate this. Everything seems to work okey on the tests I've been doing.
Can you show the whole request going to DMSS?
Or, we can have a sit down together on this


add graph name to page title if logged in

for now - part of E2.app.path excluding 'username/'

lgtm


301 Redirection

hi,
I use following configuration as example:

  "ReverseProxy": {
    "Routes": [
      {
        "RouteId": "route1",
        "ClusterId": "cluster1",
        "Match": {
          "Path": "{**catch-all}"
        },
        "Transforms": [
          {
            "ResponseHeader": "Location"
            "Set": "https://example.com/{location path}",
            "When": "???"
          }
        ]
      }
    ],
    "Clusters": {
      "cluster1": {
        "Destinations": {
          "cluster1/destination1": {
            "Address": "https://example.com/"
          }
        }
      }
    }
  }

I need change the location 301 response header  based on old value path:
like
location: https://hostname.com/api/test
to
location:  https://example.com/api/test
Maybe this should be done in code ?
thanx

See https://github.com/microsoft/reverse-proxy/discussions/466

Neither "A" nor "B" of #466 match requirements.
As I see "B" allows to add value at design time.
I rather need to access runtime values ( Location  header)
What about some kind of handler class TransformResponseHandler with override method
public abstract StringValues OnTransformedResponseHeader(HttpContext context, HttpResponseMessage response, StringValues oldValues, StringValues newValues)
so this handler could be called after ResponseHeaderTransform.Apply
having access to oldValues and newValues  should do the job

That's still within the scope of "B" for a custom transform. ResponseHeaderTransform is given the value of the header it's registered for (Location in this case), and returns the modified value. It has full access to the HttpContext and HttpResponseMessage for any data it needs to create a dynamic value.

current code allows to add value at design time, I made a slip,
however, when do you plan to allow custom transform ...?

#60 is planned for the 1.0 release, but we haven't decided when yet.

I ask to report info to client
see you

#60 has been completed by #703, please try out the daily builds and let us know how it works for you.


Everything is broken in version 5.0.3.  Integration fails to set up, indicates to check the logs.  Log data as follows:

https://github.com/bropat/eufy-security-ws/issues/172
    Everything is broken in version 5.0.3.  Integration fails to set up, indicates to check the logs.  Log data as follows:

This error originated from a custom integration.

Logger: homeassistant.config_entries
Source: custom_components/eufy_security/eufy_security_api/camera.py:132
Integration: Eufy Security (documentation, issues)
First occurred: 5:05:50 PM (2 occurrences)
Last logged: 5:25:41 PM

Error setting up entry localhost for eufy_security
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 372, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/eufy_security/__init__.py", line 45, in async_setup_entry
    await coordinator.initialize()
  File "/config/custom_components/eufy_security/coordinator.py", line 39, in initialize
    await self.api.connect()
  File "/config/custom_components/eufy_security/eufy_security_api/api_client.py", line 66, in connect
    await self._set_products()
  File "/config/custom_components/eufy_security/eufy_security_api/api_client.py", line 123, in _set_products
    self.devices = await self._get_product(ProductType.device, result[MessageField.STATE.value]["devices"])
  File "/config/custom_components/eufy_security/eufy_security_api/api_client.py", line 141, in _get_product
    product = Camera(self, serial_no, properties, metadata, commands)
  File "/config/custom_components/eufy_security/eufy_security_api/camera.py", line 35, in __init__
    self.set_stream_prodiver(StreamProvider.P2P)
  File "/config/custom_components/eufy_security/eufy_security_api/camera.py", line 132, in set_stream_prodiver
    url = url.replace("{server_address}", str(self.config.rtsp_server_address))
AttributeError: 'NoneType' object has no attribute 'rtsp_server_address'

Originally posted by @chicknlil in https://github.com/fuatakgun/eufy_security/issues/591#issuecomment-1366221995

@chicknlil please get v5.1.0

Got 5.1.0, downloaded it twice, checked and restarted twice. Refreshed several times. Cleared cache etc. Error persists:
This error originated from a custom integration.

Logger: homeassistant.config_entries
Source: custom_components/eufy_security/eufy_security_api/camera.py:132
Integration: Eufy Security (documentation, issues)
First occurred: 5:45:45 PM (1 occurrences)
Last logged: 5:45:45 PM

Error setting up entry localhost for eufy_security
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 372, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/eufy_security/__init__.py", line 45, in async_setup_entry
    await coordinator.initialize()
  File "/config/custom_components/eufy_security/coordinator.py", line 39, in initialize
    await self.api.connect()
  File "/config/custom_components/eufy_security/eufy_security_api/api_client.py", line 66, in connect
    await self._set_products()
  File "/config/custom_components/eufy_security/eufy_security_api/api_client.py", line 123, in _set_products
    self.devices = await self._get_product(ProductType.device, result[MessageField.STATE.value]["devices"])
  File "/config/custom_components/eufy_security/eufy_security_api/api_client.py", line 141, in _get_product
    product = Camera(self, serial_no, properties, metadata, commands)
  File "/config/custom_components/eufy_security/eufy_security_api/camera.py", line 35, in __init__
    self.set_stream_prodiver(StreamProvider.P2P)
  File "/config/custom_components/eufy_security/eufy_security_api/camera.py", line 132, in set_stream_prodiver
    url = url.replace("{server_address}", str(self.config.rtsp_server_address))
AttributeError: 'NoneType' object has no attribute 'rtsp_server_address'

I am sorry, juggling with many stuff, forgot to publish local changes to github.

released a new version https://github.com/fuatakgun/eufy_security/releases/tag/v5.1.1
installed my production machine
removed integration to be sure that there is no residue
restarted home assistant instance
added back successfully

I was poking around in HACS and saw 5.1.1 was available so I grabbed it, and that did the trick.  Side note: I seem to have maybe 2 to 3x more entities now from this integration.  Is that expected behavior?

yes, it is expected

Alright.
Everything is showing as unavailable, and in looking at the 3 devices (backyard floodlight camera, doorbell camera, keyless entry), they all indicate Debug (Device) and Debug (Station) are on, but I don't see a way to turn that off.  I can live without the cameras, but the keyless entry is part of my alarmo arm/disarm setup.

these Debug sensors are showing you the state of the device inside their attributes.
please share logs so we can understand why everythins is available.

I can tell you that the two cameras are now showing as available (I removed the integration, restarted, and readded it) but the keyless entry (T8520) is being difficult.  It doesn't even show a mechanism to lock or unlock the door currently.
Here are the 3 Eufy related logs in my logs:
Logger: homeassistant.components.switch
Source: helpers/entity_platform.py:520
Integration: Switch (documentation, issues)
First occurred: 6:20:33 PM (2 occurrences)
Last logged: 6:24:17 PM

Platform eufy_security does not generate unique IDs. ID eufy_security_T8422N1021151309_motionDetection already exists - ignoring switch.backyard_motion_detection

Logger: homeassistant.components.lock
Source: custom_components/eufy_security/lock.py:24
Integration: Lock (documentation, issues)
First occurred: 6:20:33 PM (2 occurrences)
Last logged: 6:24:17 PM

Error while setting up eufy_security platform for lock
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 281, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/eufy_security/lock.py", line 24, in async_setup_entry
    product.properties.append(product.metadata[MessageField.LOCKED.value])
AttributeError: 'dict' object has no attribute 'append'

Logger: homeassistant.components.sensor
Source: core.py:1131
Integration: Sensor (documentation, issues)
First occurred: 6:20:33 PM (4 occurrences)
Last logged: 6:24:17 PM

Error adding entities for domain sensor with platform eufy_security
Error while setting up eufy_security platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 428, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 692, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 789, in add_to_platform_finish
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 545, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 659, in _async_write_ha_state
    self.hass.states.async_set(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1470, in async_set
    state = State(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1131, in __init__
    raise InvalidStateError(
homeassistant.exceptions.InvalidStateError: Invalid state encountered for entity ID: sensor.backyard_last_camera_picture_url. State max length is 255 characters.

please retest with 5.1.2

expecting all to be gone.

No joy.
I tried updating, still had the errors, so I removed the integration, restarted, readded, and checked the logs, and all 3 persist and appear to be identical.  Just for giggles, I restarted one more time, and checked the logs again - still the same.

v5.1.4 is released

Should I be pehaps removing every aspect of your integration + addon, doing the check and restart, and then trying again from fresh?
The cameras still don't display for me (though I'd have been shocked if they did!) and I did try changing the cards to the url path the latest addon provides.
I'm telling it to find my Eufy devices via "localhost" ... is this perhaps problematic? I'd tried with my router's IP, but it wouldn't connect to that.

but these logs are saying that, you are not even getting connected to add-on.
if you are using supervised or hass OS, <IP_ADDRESS> should be enough.
If you are using self managed docker, you need to out its address here.

That bit of direction might have been helpful to know.
Regardless, I just removed the integration, restarted, and readded it using <IP_ADDRESS> ... it set it up pretty much identically to how it was when it was localhost.  Same 3 error logs.

would you like to share your devices with me so I can debug them?
On Wed, 28 Dec 2022 at 21:06, chicknlil @.***> wrote:

That bit of direction might have been helpful to know.
Regardless, I just removed the integration, restarted, and readded it
using <IP_ADDRESS> ... it set it up pretty much identically to how it was when
it was localhost. Same 3 error logs.
—
Reply to this email directly, view it on GitHub
https://github.com/fuatakgun/eufy_security/issues/598#issuecomment-1366889692,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUSN7TDY2MXR72Q4ZOSZDDWPSMVZANCNFSM6AAAAAATKYLHJU
.
You are receiving this because you were assigned.Message ID:
@.***>

would you like to share your devices with me so I can debug them?
we can even have a google meet session?

It sorta fixed the lock. I was able to lock the door once from HA, but it is ignoring subsequent attempts to unlock the door (and as an added bonus, shows that the door is still unlocked).
I'm in the States, so I shared access with the gmail address listed in the repository, and just set up debugging.
Let me know if I can help any other ways.

Can i lock and unlock?
Can i watch the stream?

Have a blast.

Hahaha, the cat of mine that's down here with me is all sorts of confused.  Usually the door locking or unlocking means I'm coming or going. But he was sitting on my lap when you were using it and he just kept looking back and forth between me and the door.
Truly, the highlight of my day so far.

lock is working
camera streams are working (doorbell and backyard)
error is fixed.
I will publish a new version soon, do not forget to install RTSP addon and configure add-on to use it.

please get v5.2.0

Yes, I've had the RTSP Simple Server Addon mentioned in your readme from the getgo.
Lock is definitely working again - yay!
Cameras are not streaming to the cards.
Could you advise how the cards should be set up given these recent changes?
I was using the card code from the readme:
type: grid
square: false
cards:
  - type: conditional
    conditions:
      - entity: binary_sensor.front_streaming_sensor
        state: 'False'
    card:
      type: picture-entity
      entity: camera.front
      tap_action:
        action: call-service
        service: camera.turn_on
        target:
          entity_id: camera.front
  - type: conditional
    conditions:
      - entity: binary_sensor.front_streaming_sensor
        state: 'True'
    card:
      type: vertical-stack
      cards:
        - type: custom:webrtc-camera
          entity: camera.front
        - type: button
          name: Stop Streaming
          show_state: false
          show_icon: false
          tap_action:
            action: call-service
            service: camera.turn_off
            target:
              entity_id: camera.front
columns: 1

Nothing displays in the regular view, and I get the same error I'd been getting: can't get URL for camera(in my case doorbell or backyard).
Thanks for your time and patience.

Please use this and you are welcome. thanks for volunteering for Alpha.
square: false
columns: 1
type: grid
cards:
  - type: conditional
    conditions:
      - entity: camera.entrance
        state: idle
    card:
      show_state: true
      show_name: true
      type: picture-entity
      entity: camera.entrance
      camera_image: camera.entrance
      tap_action:
        action: call-service
        service: camera.turn_on
        data: {}
        target:
          entity_id: camera.entrance
  - type: conditional
    conditions:
      - entity: camera.entrance
        state: streaming
    card:
      type: vertical-stack
      cards:
        - show_name: true
          show_icon: false
          type: button
          tap_action:
            action: call-service
            service: camera.turn_off
            data: {}
            target:
              entity_id: camera.entrance
          entity: camera.entrance
          name: Stop
        - type: custom:webrtc-camera
          entity: camera.entrance


Improve the position of the dark/light theme toggler button in mobile devices

Describe the bug
The theme toggler button is very close to text in case of mobile devices.
To Reproduce
Steps to reproduce the behavior:
Open website in mobile view
Expected behavior
A little space between text and button would look good.
Screenshots
Current State:

Expected State:

Can I work on this?

-- yes you can work on this.. But before doing that.. Kindly check it out in your laptop and then decide the position

@Adarsh-jaiss Can you please tell me how to edit the CSS?

@Adarsh-jaiss assign me with part. @developer-diganta if you would like to ?

#70 We need Change the css of the logo  Top : 5px to top:8px for the mobile view

@Adarsh-jaiss Can you please tell me how to edit the CSS?

this should be it? https://github.com/collab-community/journey-book/blob/main/style.css

@Adarsh-jaiss assign me with part. @developer-diganta if you would like to ?

Will assign you if @developer-diganta is fine with it :)!

@KendallDoesCoding yeah sure if @Abhinavkar wants it!

@KendallDoesCoding yeah sure if @Abhinavkar wants it!

Yes, he wants to work alongside with you, ig.

Any update on this @developer-diganta @Abhinavkar?


Add regression tests of BA issue cases.

what's "BA issue"?

what's "BA issue"?

The cases that verify the issue fix of bytecode alliance wamr repo (this repo).

LGTM


fix: Fixed to be able to import from #imports

🔗 Linked issue

❓ Type of change

[ ] 📖 Documentation (updates to the documentation or readme)
[x] 🐞 Bug fix (a non-breaking change that fixes an issue)
[ ] 👌 Enhancement (improving an existing functionality like performance)
[ ] ✨ New feature (a non-breaking change that adds functionality)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description
The #imports alias is set inside the import module.
So even if imports: false, I think you need to run import module.
In Nuxt 3, I believe the import module is executed even with autoImport: false.
https://github.com/nuxt/nuxt/blob/master/packages/nuxt/src/core/nuxt.ts#L406-L412
(I am wondering if I should be able to set it with the imports.autoImport option like in Nuxt 3.)
📝 Checklist

[ ] I have linked an issue or discussion.
[ ] I have updated the documentation accordingly.

@danielroe
Thanks for the review!
I agree with your opinion!
I added a warning in the following commit.
https://github.com/nuxt/bridge/pull/853/commits/1dfe5629691b68c405fb289d6b7fd9f86414b040


Prerequisites

[X] I have searched all issues/PRs to ensure it has not already been reported or fixed.

Criteria

[X] Reasonably well-known and widely used (e.g. if it's a GitHub project, it should have at least 100 stars and/or 50 forks)
[X] English interface (or at least English documentation)
[X] Latest stable version
[X] Full version (i.e. not a trial version)
[X] Fairly standard install (e.g. uses a version-specific download URL, no elaborate pre/post install scripts)

Name
godots
Description
Ultimate go-to hub for managing your Godot versions and projects!
Homepage
https://github.com/MakovWait/godots
Download Link(s)
https://github.com/MakovWait/godots/releases
Some Indication of Popularity/Repute
godots has 227 stars and 20 forks at the moment.

/verify

Closed by #13026.


Unattended upgrades that reload apparmor profiles break Engine 1.13, requiring a restart

(If you're in a hurry, scroll down to "Steps to reproduce the issue".)
Symptoms
This happened twice to me already: I spin up a 5-nodes Ubuntu 16.04 cluster on EC2, do some work on it; then the day after, I login again, and the cluster seems functional, except that I can't start new containers. Existing containers seem fine, but any attempt at starting a new container results in:
$ docker run -ti alpine sh
Unable to find image 'alpine:latest' locally
latest: Pulling from library/alpine
Digest: sha256:1354db23ff5478120c980eca1611a51c9f2b88b61f24283ee8200bf9a54f2e5c
Status: Downloaded newer image for alpine:latest
docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "process_linux.go:359: container init caused \"apparmor failed to apply profile: no such file or directory\"".

The "interesting" part is that this behavior is consistent across the whole cluster; i.e. I all my nodes appear to be botched.
Running a privileged container, however, works fine. What could it be?!? :mag_right: :beetle:
Restarting the Engine (or, more drastically, rebooting the node) fixes the issue.
Analysis
I dynamically enabled debug (through config file + SIGHUP), and looked into the Engine's logs when trying to start a container; but nothing special was appearing. (If I compare a "sane" Engine and a broken one, the first different line is the one mentioning the apparmor error.)
The kernel logs indicate that the docker-default profile doesn't exist anymore:
[96551.680251] audit: type=1400 audit(1480734916.438:79): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="docker-default" pid=9524 comm="runc:[2:INIT]"

This prompted me to try to start a container with --security-opt apparmor=unconfined, and that worked! Same if I specify another "OK-ish" AppArmor profile, e.g. --security-opt apparmor=lxc-container-default.
We're getting closer.
Looking at the kernel logs, I saw a blast of mysterious (i.e. unsolicited) messages like the following:
Dec  2 07:41:17 ubuntu kernel: [26112.997698] audit: type=1400 audit(1480664477.757:17): apparmor="STATUS" operation="profile_
replace" profile="unconfined" name="/sbin/dhclient" pid=15189 comm="apparmor_parser"
Dec  2 07:41:17 ubuntu kernel: [26112.998057] audit: type=1400 audit(1480664477.757:18): apparmor="STATUS" operation="profile_
replace" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=15189 comm="apparmor_parser"
Dec  2 07:41:17 ubuntu kernel: [26112.998338] audit: type=1400 audit(1480664477.757:19): apparmor="STATUS" operation="profile_
replace" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-helper" pid=15189 comm="apparmor_parser"
...

What could be happening at 7:41 to cause a merry-go-round of apparmor profiles?
I looked at FBI_Surveillance_Van data to figure out if I had been sleepwalking to the console and issued random commands to my nodes, but found nothing.

Specifically, I suspect ~colonel Mustard, in the INT gate, with the task_struct~ lxc-common. (But really, I think anything pulling AppArmor profiles will do!)
Steps to reproduce the issue:
This gives us the following steps to reproduce (on Ubuntu 16.04 with 1.13-rc2):

Install Docker on Ubuntu 16.04
Run your favorite container (e.g. docker run alpine echo ♥)
Move fast and break all the things with sudo dpkg-reconfigure lxc-common
Run your favorite container again

Describe the results you received:
I get one ♥, and then the following error message:
container_linux.go:247: starting container process caused "process_linux.go:359: container init caused \"apparmor failed to apply profile: no such file or directory\""
docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "process_linux.go:359: container init caused \"apparmor failed to apply profile: no such file or directory\"".

Describe the results you expected:
I expected two ♥
Additional information you deem important (e.g. issue happens only occasionally):
Issue will randomly break your Engine subrepticiously¹ with undercover, randomly-timed, unattended upgrades.
¹Did I just make up that word? :book: :eyes:
Output of docker version:
Client:
 Version:      1.13.0-rc2
 API version:  1.25
 Go version:   go1.7.3
 Git commit:   1f9b3ef
 Built:        Wed Nov 23 06:32:39 2016
 OS/Arch:      linux/amd64

Server:
 Version:             1.13.0-rc2
 API version:         1.25
 Minimum API version: 1.12
 Go version:          go1.7.3
 Git commit:          1f9b3ef
 Built:               Wed Nov 23 06:32:39 2016
 OS/Arch:             linux/amd64
 Experimental:        false

Output of docker info:
Containers: 13
 Running: 0
 Paused: 0
 Stopped: 13
Images: 3
Server Version: 1.13.0-rc2
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 45
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
Swarm: active
 NodeID: b0vdva852jomk6kbvlklh23qc
 Is Manager: true
 ClusterID: bianshirja3n5k5qrt4jmvtng
 Managers: 3
 Nodes: 5
 Orchestration:
  Task History Retention Limit: 5
 Raft:
  Snapshot Interval: 10000
  Number of Old Snapshots to Retain: 0
  Heartbeat Tick: 1
  Election Tick: 3
 Dispatcher:
  Heartbeat Period: 5 seconds
 CA Configuration:
  Expiry Duration: 3 months
 Node Address: <IP_ADDRESS>
 Manager Addresses:
  <IP_ADDRESS>:2377
  <IP_ADDRESS>:2377
  <IP_ADDRESS>:2377
  <IP_ADDRESS>:2377
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 03e5862ec0d8d3b3f750e19fca3ee367e13c090e
runc version: 51371867a01c467f08af739783b8beafc154c4d7
init version: 949e6fa
Security Options:
 apparmor
 seccomp
  Profile: default
Kernel Version: 4.4.0-47-generic
Operating System: Ubuntu 16.04.1 LTS
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 3.858 GiB
Name: node2
ID: EFCV:WAAA:U4AO:7Q5A:NLIS:EXZ5:LHSB:G5FB:37ZK:ELVE:7MQ2:NUQW
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Labels:
 provider=generic
Experimental: false
Insecure Registries:
 <IP_ADDRESS>/8
Live Restore Enabled: false

Additional environment details (AWS, VirtualBox, physical, etc.):
I can provide unlimited supplies of broken instances on demand.
I can confirm that the problem only shows up on 1.13; not on 1.12.
I can't confirm or deny whether this is related to #26823.
I can also provide :cookie:  or suitably adequate bribes if that gets fixed before my workshop next week (or even if it doesn't, because one should never pass on an opportunity to show :sparkling_heart: to our benevolent maintainers, may their path be sowed with one thousand rose petals).
Thank you :sparkles:

Probably caused by https://github.com/docker/docker/pull/26518

cc @cyphar

Yeah, it looks like it's related to the fact that I removed -W from the apparmor_parser flags -- the cached version is no longer written so the apparmor service won't reload it? The problem is that there's only really two solutions to this:

We set up some sort of packaging setup that means that AppArmor will be configured by distributions to use Docker's generated apparmor profile (which ).
We revert #26518 entirely, which means that we no longer have /etc be read-only as a supported configuration (which would be a shame).

There's also a third solution, which I'm not sure if it's a good idea: we attempt to re-build Docker's AppArmor profile and re-insert it if we have any errors when starting a container (or we can just proactively check if the profile has been inserted and if it hasn't then we insert it).

@cyphar some text is missing after "(which )"...

Ah right. The text was meant to be "which would be fragile since it would require distribution co-operation and would also make a bunch of assumptions about Docker's profile generation".

From my (extremely naive, external by-stander point of view 🐧 ) it looks like the third solution would be the most robust, especially if there is a way to check "does this profile exist?" and load it if necessary.
Oh, and here is another option: check if /etc is read-only and call apparmor_parser without -Wif it's the case? (Or call it with-W, and if it fails, try again without -W`?) I don't think this is a great option, but I'm listing it just in case it has other advantages that I cannot see. 🙈

#29130 has my attempt at fixing this by using an ensure-style setup.

I'm experiencing this issue on 1.13.0-rc2 too but it happens intermittently and it appears not to be related to apparmor.

@robvelor You can verify if the apparmor profile has been removed by looking at /sys/kernel/security/apparmor:
% sudo grep docker-default /sys/kernel/security/apparmor/profiles
docker-default (enforce)

If the above command has no output your AppArmor profiles have been removed.

@cyphar Nice to know :). My issue is not related thank you.

I experienced this last night on 1.13.1
apparmor="DENIED" operation="change_onexec" info="label not found" etc after an unattended sercurity upgrade on ubuntu16.04
Wouldn't #29130 have been part of 1.13.1?

@byrnedo it was cherry-picked into the 1.13.x branch through https://github.com/docker/docker/pull/29229. Perhaps best to open a new issue with details

I created one here #31733. Feel free to suggest a better name for the issue.

I had exactly same issue a few days ago,
docker version
Client:
 Version:      1.13.1
 API version:  1.26
 Go version:   go1.7.5
 Git commit:   092cba3
 Built:        Wed Feb  8 06:50:14 2017
 OS/Arch:      linux/amd64

Server:
 Version:      1.13.1
 API version:  1.26 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   092cba3
 Built:        Wed Feb  8 06:50:14 2017
 OS/Arch:      linux/amd64
 Experimental: false

Running on
Ubuntu 16.04.2 LTS (Xenial Xerus)
Linux 4.4.0-64-generic #85-Ubuntu SMP Mon Feb 20 11:50:30 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

It happened on all cluster nodes, just with same update of lxc packages.
For those who encounter same problem - no need to restart containers, just run a new container (any container) on each node, and it loads the apparmor profile.

I'm also having this issue
Client:
 Version:      1.13.1
 API version:  1.26
 Go version:   go1.7.5
 Git commit:   092cba3
 Built:        Wed Feb  8 06:50:14 2017
 OS/Arch:      linux/amd64

Server:
 Version:      1.13.1
 API version:  1.26 (minimum version 1.12)
 Go version:   go1.7.5
 Git commit:   092cba3
 Built:        Wed Feb  8 06:50:14 2017
 OS/Arch:      linux/amd64
 Experimental: false

@vkrot @equake see the discussion above and the issue that @byrnedo created (https://github.com/docker/docker/issues/31733)
That issue was fixed in docker 17.03.1, which is the new versioning scheme, and what 1.13.3 would've been.
I'm locking the conversation on this issue, because both the original issue and the follow up was resolved.
If you're having this issue on the current release of docker, please open a new issue instead, because comments on a closed issue may easily get overlooked.