feat: tab borders

So right now the tab groups read like primary buttons. I think that should be avoided. I made some alternatives.
You can find the SVGs here:
https://drive.google.com/drive/folders/1ZX95b7iG2wtc6FhNwe1jXYhl4feh17h2
And the figma here:
https://www.figma.com/file/BNxiYPgG7l5ZxO7JXYGdJ0/Print-Design-System?node-id=0%3A1&t=iJM8fIbeJfXqS76C-0

done in #376


security/acme-client: DNS Validation with DuckDNS

DuckDNS doesn't allow subdomains, looked through the acmesh-official hub, and could find the info in the matching script.
https://github.com/acmesh-official/acme.sh/blob/master/dnsapi/dns_duckdns.sh
fulldomain may be 'domain.duckdns.org' (if using --domain-alias) or '_acme-challenge.domain.duckdns.org'
either way, return 'domain'. (**duckdns does not allow further subdomains** and restricts domains to [a-z0-9-].)

The OPNSENSE plugin tries to update the subdomain _acme-challenge.domain.duckdns.org
If I try the update manually the TXT record I get an "KO", but if I remove the subdomain "_acme-challenge" from the request I get an "OK"
os-acme-client (installed) | 1.36 | 392KiB | Let's Encrypt client
LOG - from bottom to top (removed token and txt record)

_on_issue_err
Error add txt for domain:_acme-challenge.domain.duckdns.org
Errors happened during adding the TXT record, response=KO
ret='0'
_CURL='curl -L --silent --dump-header /var/etc/acme-client/home/http.header -g '
timeout=
url='https://www.duckdns.org/update?domains=_acme-challenge.domain.duckdns.org&token={token}&txt={txt}'
GET
url='https://www.duckdns.org/update?domains=_acme-challenge.domain.duckdns.org&token={token}&txt={txt}'
param='domains=_acme-challenge.domain.duckdns.org&token={token}&txt={txt}'
Trying to add TXT record
Adding txt value: {txt} for domain: _acme-challenge.domain.duckdns.org

DuckDNS doesn't allow subdomains, looked through the acmesh-official hub, and could find the info in the matching script.

This seems to be correct. But the dns_duckdns.sh dnsapi file already implements a workaround for this:
https://github.com/acmesh-official/acme.sh/blob/f2d350002e7c387fad9777a42cf9befe34996c35/dnsapi/dns_duckdns.sh#L94-L107
However, it does not seem to work for all users, there is an upstream report for this issue: https://github.com/acmesh-official/acme.sh/issues/2933.

ahh ok, thanks, now I know what the DNS Alias Mode is for.
Now the certificate gets issued without an issue

Hey @chiwou could you give me a pointer as to which settings you used for the DNS Alias Mode, I'm having the same issue you did. Thanks!

@RafhaanShah yeah sure, I assume you've your API token
Common Name: yourdomain.duckdns.org I think you can even use a wildcard
DNS Alias Mode: Domain Alias Mode
Domain Alias: yourdomain.duckdns.org

i still ran into this issue after setting domain alias.


Possibility to add one custom tag inside code for examples to help to fork your project

Your project is awesome but I don't know how to fork the tag and the values because of the complexity of :lanes variable.
So I wish if you can put in comments in the code or other similar way a simple tag in a way?
(example: amenity=parking and parking=surface/underground)
Also, can you do it in a node? (like amenity=vending_machine vending_machine=tickets)
All the tags I suggest would be interesting for a parking map.
If this tag would work I can modify it to show and edit other tags.
Thanks

I will soon begin refactoring. I hope this will improve the readability of the code.


pdf issue

[Y] I have read the Getting Started section
[Y] I have already searched for the same problem

Environment

Technology
Version

[✓] Flutter (Channel stable, 3.16.6, on macOS 14.2.1 23C71 darwin-arm64, locale en-IN)

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)

[✓] Xcode - develop for iOS and macOS (Xcode 15.1)

[✓] Chrome - develop for the web

[✓] Android Studio (version 2021.2)

[✓] VS Code (version 1.85.1)

[✓] Network resources

Device information: same result in all device
**Expected behavior:
this method i was manual created in plugin   flutter_inappwebview: ^5.7.2+3
this method is for created webview  pdf save in application document directory   and its working perfectly for me approx 2 years
but after flutter upgrade and plugin update to flutter_inappwebview: ^6.0.0. this
**
**Current behavior:
this function behavior. not working properly
its creating pdf but 3 pdf creating out of 10 attempt
means if i click on creating pdf button 10 time then  but  its create only 3 time **
Steps to reproduce

//------newMethod. this method i was create in InAppWebView.java
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
public void printCurrentPageDirectShare(final String mobile, final String email, final String sendType,List extraFileListForShare) {
if (plugin != null && plugin.activity != null) {
PrintManager printManager = (PrintManager) plugin.activity.getSystemService(Context.PRINT_SERVICE);
  if (printManager != null) {
    String jobName = getTitle() + " Document";

    // Get a printCurrentPage adapter instance
    PrintDocumentAdapter printAdapter = createPrintDocumentAdapter(jobName);

    final ProgressDialog progress = new ProgressDialog(getContext());
    progress.setTitle("Please wait");
    progress.setMessage("creating pdf");
    progress.setCancelable(true); // disable dismiss by tapping outside of the dialog
    progress.show();
    PrintAttributes attributes = null;
    if (Build.VERSION.SDK_INT >= 19) {
      attributes = (new PrintAttributes.Builder()).setMediaSize(PrintAttributes.MediaSize.ISO_A4).setResolution(new PrintAttributes.Resolution("pdf", "pdf", 600, 600)).setMinMargins(PrintAttributes.Margins.NO_MARGINS).build();
    }
    PdfPrint pdfPrint = new PdfPrint(attributes);
    if (Build.VERSION.SDK_INT >= 21) {
      ContextWrapper contextWrapper = new ContextWrapper(getContext());
      File directory = getContext().getFilesDir();//get dir
      String name=getTitle();//get name
      SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yy HH:mm", Locale.getDefault());
      String formattedDateTime = sdf.format(currentDate);
      name=name.replaceAll("[;\\/:*?\"<>|&']"," ");
      name +=" (PDF GENERATED ON "+formattedDateTime+") ";
      final String fileName = name + ".pdf";
      final File f = new File(directory, fileName);
      if (f.exists()) {
        f.delete();
        Log.d("---del_Directory", String.valueOf(f));
      }
      try {
        f.createNewFile();
      } catch (IOException e) {
        e.printStackTrace();
      }
      Log.e(LOG_TAG, "startPrinting save");

      pdfPrint.print(printAdapter, directory, fileName, new PdfPrint.CallbackPrint() {
        public void success(String path) {
          Log.d("---new_file_path", path);
          progress.dismiss();
          File f=new File(path);
         // this f file we want to return in flutter so user can share this webview pdf
        }
        public void onFailure() {
          progress.dismiss();
        }
      });
    }
    Log.e(LOG_TAG, "direct share PrintManager available ------------------print screen here prashant");//------------------print screen here prashant
  } else {
    Log.e(LOG_TAG, "No PrintManager available");
  }
}

}
///-----this method for webview pdf save to files
package android.print;
import android.os.Build;
import android.os.CancellationSignal;
import android.os.ParcelFileDescriptor;
import android.print.PrintDocumentAdapter.WriteResultCallback;
import android.util.Log;
import java.io.File;
public class PdfPrint {
private static final String TAG = PdfPrint.class.getSimpleName();
public final PrintAttributes printAttributes;
public PdfPrint(PrintAttributes printAttributes) {
    this.printAttributes = printAttributes;
}

public void print(final PrintDocumentAdapter printAdapter, final File path, final String fileName, final CallbackPrint callback) {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
        printAdapter.onLayout(null, printAttributes, null, new PrintDocumentAdapter.LayoutResultCallback() {
            @Override
            public void onLayoutFinished(PrintDocumentInfo info, boolean changed) {
                if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
                    printAdapter.onWrite(new PageRange[]{PageRange.ALL_PAGES},
                            getOutputFile(path, fileName),
                            new CancellationSignal(),
                            new WriteResultCallback() {
                                @Override
                                public void onWriteFinished(PageRange[] pages) {
                                    super.onWriteFinished(pages);
                                    if (pages.length>0){
                                        File file = new File(path, fileName);
                                        String path=file.getAbsolutePath();
                                        callback.success(path);
                                    }else {
                                        callback.onFailure();
                                    }

                                }
                            });
                }
            }
        }, null);
    }
}

public ParcelFileDescriptor getOutputFile(File path, String fileName) {
    if (!path.exists()) {
        path.mkdirs();
    }
    File file = new File(path, fileName);
    try {
        file.createNewFile();
        return ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_WRITE);
    } catch (Exception e) {
        Log.e(TAG, "Failed to open ParcelFileDescriptor", e);
    }
    return null;
}

public interface CallbackPrint{
    void success(String path);
    void onFailure();
}

}
//-------
Images

yes

Why would you use something like that?
You should not change the Java API.
Probably, you can already do that using simply Dart on Flutter side.
To set pdf print properties, you can use the PrintJobSettings parameter of the InAppWebViewController.printCurrentPage method: https://pub.dev/documentation/flutter_inappwebview/latest/flutter_inappwebview/PlatformInAppWebViewController/printCurrentPage.html
Currently, changing the underlying native platform code could break something, so you should not do that.
If you are using a modified version of the plugin, then this is something up to you and not an issue with the official plugin.
If you want to add some new behaviour, create a pull request for the specific platform.

InAppWebViewController.printCurrentPage.   this is just open print as pdf screen -> save pdf -> then search this pdf file in file manager- then share its is too long process to share pdf of webview
but if this method can save direct to files or return Uint8List. or bytes xyz then  its easy to use and understandable i think

Currently no, this method is not able to get the bytes of the pdf.
There isn’t an API to get the PDF bytes such as we have on iOS WKWebView.
If you think this could be made using workarounds on Android, then you can try to make a pull request about it.
On iOS and macOS with have this: https://pub.dev/documentation/flutter_inappwebview/latest/flutter_inappwebview/PlatformInAppWebViewController/createPdf.html

i think. requested  you need to use this  implementation 'com.github.pramodkr123:ConvertWebViewToPdfDemo:1.0.4'. for android this is best way to convert Webview to pdf and save to directory  directly just pass- directory path, filename & webview its convert Webview to pdf smoothly  .
just like InAppWebViewController.printCurrentPage. for android.  i think you must try this
this lib. i was using in native android  above 5 year but now i am transfer in flutter.
most of things are full filled by your plugin  only for android. you try this and i guaranteed. this is best way .
please you must try please please please
we just need you provide this feature in build in your flutter inAppWebview plugin
for more details https://github.com/pramodkr123/ConvertWebViewToPdfDemo

please check  file InAppWebView.java
function name :  printCurrentPageDirectShare
flutter_inappwebview-5.7.2+3.zip
https://drive.google.com/file/d/1hbxSxaeKk_grOuDcWiezKahQi2gtT78O/view?usp=drive_web
On Thu, 18 Jan 2024 at 21:06, UNIQUE SOFTWARES @.***>
wrote:

Why you are going to onDownloadStart.
there is no need to go onDownloadStart.
'com.github.pramodkr123:ConvertWebViewToPdfDemo:1.0.4'.   this
implementation. is use for what your webview screen loaded from web
url this implementation.  is just convert html css content to pdf
file.
this 'com.github.pramodkr123:ConvertWebViewToPdfDemo:1.0.4'. lib not
use for  download any file. its convert webview to pdf file just like
you calling Ios pdf  system InAppWbviewCOntroller.createPdf() function
.
just for example.
step

We always first load any url in webview
then if we call this function from android side
File directory =
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM

"/PDFTest/");
final String fileName="Test.pdf";
      final ProgressDialog progressDialog=new

ProgressDialog(MainActivity.this);
progressDialog.setMessage("Please wait");
progressDialog.show();
PdfView.createWebPrintJob(MainActivity.this, webView,
directory, fileName, new PdfView.Callback() {
            @Override
            public void success(String path) {
                progressDialog.dismiss();

PdfView.openPdfFile(MainActivity.this,getString(R.string.app_name),"Do
you want to open the pdf file?"+fileName,path);
}
            @Override
            public void failure() {
                progressDialog.dismiss();

            }
        });

now we can share this file or convert in bytes xyz.

this is just for example what we need and what we want to do.
if you go deep in this
com.github.pramodkr123:ConvertWebViewToPdfDemo:1.0.4 code there is
just simple android print code
kindly requested
for this function InAppWbviewCOntroller.createPdf() your android side
code is pending in your flutter_inappwebview. flutter plugin .
I think it will take its place of android side.
again kindly requested please please please
this is for what you load content on Webview( like webpage html,css )
this api just convert webview page to pdf file
if you agree then can i share my flutter code that what i was changes
done in your plugin (flutter_inappwebview: ^5.7.2+3) natively for
android and its work perfectly nice and so fast quickly
On Thu, 18 Jan 2024 at 20:34, Lorenzo Pichilli @.***>
wrote:

@nilotpalkapri that’s another issue not related to this one.
Also, the fact that onDownloadStart is not called for some URLs depends
on how it is implemented natively under the hood by the engine of the
WebView itself and doesn’t depend on this plugin.
The implementation is pretty simple and just uses the Android Java
DownloadListener class:
https://developer.android.com/reference/android/webkit/DownloadListener.
If the onDownloadStart is not called, it means very likely that the Java
DownloadListener callback is not called on native side.
In that case, we can’t do nothing about that.
You can implement workarounds and detect the URL you need using the
other events and download it manually.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID:
@.***>

in  (flutter_inappwebview: ^5.7.2+3) i was created
printCurrentPageDirectShare. method natively please check one time only
On Thu, 18 Jan 2024 at 21:13, UNIQUE SOFTWARES @.***>
wrote:

please check  file InAppWebView.java
function name :  printCurrentPageDirectShare
flutter_inappwebview-5.7.2+3.zip
https://drive.google.com/file/d/1hbxSxaeKk_grOuDcWiezKahQi2gtT78O/view?usp=drive_web
On Thu, 18 Jan 2024 at 21:06, UNIQUE SOFTWARES @.***>
wrote:

Why you are going to onDownloadStart.
there is no need to go onDownloadStart.
'com.github.pramodkr123:ConvertWebViewToPdfDemo:1.0.4'.   this
implementation. is use for what your webview screen loaded from web
url this implementation.  is just convert html css content to pdf
file.
this 'com.github.pramodkr123:ConvertWebViewToPdfDemo:1.0.4'. lib not
use for  download any file. its convert webview to pdf file just like
you calling Ios pdf  system InAppWbviewCOntroller.createPdf() function
.
just for example.
step

We always first load any url in webview
then if we call this function from android side
File directory =
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM

"/PDFTest/");
final String fileName="Test.pdf";
      final ProgressDialog progressDialog=new

ProgressDialog(MainActivity.this);
progressDialog.setMessage("Please wait");
progressDialog.show();
PdfView.createWebPrintJob(MainActivity.this, webView,
directory, fileName, new PdfView.Callback() {
            @Override
            public void success(String path) {
                progressDialog.dismiss();

PdfView.openPdfFile(MainActivity.this,getString(R.string.app_name),"Do
you want to open the pdf file?"+fileName,path);
}
            @Override
            public void failure() {
                progressDialog.dismiss();

            }
        });

now we can share this file or convert in bytes xyz.

this is just for example what we need and what we want to do.
if you go deep in this
com.github.pramodkr123:ConvertWebViewToPdfDemo:1.0.4 code there is
just simple android print code
kindly requested
for this function InAppWbviewCOntroller.createPdf() your android side
code is pending in your flutter_inappwebview. flutter plugin .
I think it will take its place of android side.
again kindly requested please please please
this is for what you load content on Webview( like webpage html,css )
this api just convert webview page to pdf file
if you agree then can i share my flutter code that what i was changes
done in your plugin (flutter_inappwebview: ^5.7.2+3) natively for
android and its work perfectly nice and so fast quickly
On Thu, 18 Jan 2024 at 20:34, Lorenzo Pichilli @.***>
wrote:

@nilotpalkapri that’s another issue not related to this one.
Also, the fact that onDownloadStart is not called for some URLs depends
on how it is implemented natively under the hood by the engine of the
WebView itself and doesn’t depend on this plugin.
The implementation is pretty simple and just uses the Android Java
DownloadListener class:
https://developer.android.com/reference/android/webkit/DownloadListener.
If the onDownloadStart is not called, it means very likely that the
Java DownloadListener callback is not called on native side.
In that case, we can’t do nothing about that.
You can implement workarounds and detect the URL you need using the
other events and download it manually.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID:
@.***>

Why you are going to onDownloadStart.
there is no need to go onDownloadStart.
'com.github.pramodkr123:ConvertWebViewToPdfDemo:1.0.4'.   this
implementation. is use for what your webview screen loaded from web
url this implementation.  is just convert html css content to pdf
file.
this 'com.github.pramodkr123:ConvertWebViewToPdfDemo:1.0.4'. lib not
use for  download any file. its convert webview to pdf file just like
you calling Ios pdf  system InAppWbviewCOntroller.createPdf() function
.
just for example.
step

We always first load any url in webview
then if we call this function from android side
File directory =
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM

"/PDFTest/");
final String fileName="Test.pdf";
      final ProgressDialog progressDialog=new

ProgressDialog(MainActivity.this);
progressDialog.setMessage("Please wait");
progressDialog.show();
PdfView.createWebPrintJob(MainActivity.this, webView,
directory, fileName, new PdfView.Callback() {
            @Override
            public void success(String path) {
                progressDialog.dismiss();

PdfView.openPdfFile(MainActivity.this,getString(R.string.app_name),"Do
you want to open the pdf file?"+fileName,path);
}
            @Override
            public void failure() {
                progressDialog.dismiss();

            }
        });

now we can share this file or convert in bytes xyz.

this is just for example what we need and what we want to do.
if you go deep in this
com.github.pramodkr123:ConvertWebViewToPdfDemo:1.0.4 code there is
just simple android print code
kindly requested
for this function InAppWbviewCOntroller.createPdf() your android side
code is pending in your flutter_inappwebview. flutter plugin .
I think it will take its place of android side.
again kindly requested please please please
this is for what you load content on Webview( like webpage html,css )
this api just convert webview page to pdf file
if you agree then can i share my flutter code that what i was changes
done in your plugin (flutter_inappwebview: ^5.7.2+3) natively for
android and its work perfectly nice and so fast quickly
please check  file InAppWebView.java file in android
function name :  printCurrentPageDirectShare. i made this function and its working perfectly above 1 years
flutter_inappwebview-5.7.2+3.zip


[WIP][SPARK-23435][SPARKR][TESTS] Update testthat to >= 2.0.0

What changes were proposed in this pull request?

Update testthat to >= 2.0.0
Replace of testthat:::run_tests with testthat:::test_package_dir
Add trivial assertions for tests, without any expectations, to avoid skipping.
Update related docs.

Why are the changes needed?

testthat version has been frozen by SPARK-22817 / https://github.com/apache/spark/pull/20003, but 1.0.2 is pretty old, and we shouldn't keep things in this state forever.
Does this PR introduce any user-facing change?

No.
How was this patch tested?

Existing tests.
Note
This change leads to

Error: Test failed: 'cleanClosure on R functions'

node stack overflow

in test_utils cleanClosure test, which requires further investigation.
CC @HyukjinKwon

@shaneknapp

NOOOOOOOOOOOO!!!!!!!!11111one

i really don't want to touch the extremely fragile R "ecosystem" unless i have to. but, this looks like i probably should... :(

If you don't mind me asking ‒ have you thought about moving R environments to ananconda. If I recall correctly some discussions on dev, you we're pretty enthusiastic about using it with Python.

i just tried moving to anaconda and it doesn't seem to support versions high enough of many of the packages that we require (for example, testthat is 1.0.7 or something IIRC).

@shaneknapp

i just tried moving to anaconda and it doesn't seem to support versions high enough of many of the packages that we require (for example, testthat is 1.0.7 or something IIRC).

2.3.1 is available from forge, and if nothing changed, the remaining ones are as well. I should have working environment files stashed somewhere, if that helps, but there probably in some place I won't be able to access for a week or two.

a week of two is fine, and i'm more than happy to play w/an environment
file and see if that works.
On Fri, Feb 28, 2020 at 12:46 PM Maciej<EMAIL_ADDRESS>wrote:

@shaneknapp https://github.com/shaneknapp
i just tried moving to anaconda and it doesn't seem to support versions
high enough of many of the packages that we require (for example, testthat
is 1.0.7 or something IIRC).
2.3.1 is available https://github.com/conda-forge/r-testthat-feedstock
from forge, and if nothing changed, the remaining ones are as well. I
should have working environment files stashed somewhere, if that helps, but
there probably in some place I won't be able to access for a week or two.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/apache/spark/pull/27328?email_source=notifications&email_token=AAMIHLFM2YJV2U6PBNNOTHTRFFZ2HA5CNFSM4KKOGNIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENKDGWA#issuecomment-592720728,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAMIHLEYO4EBWKDDS7HVIGTRFFZ2HANCNFSM4KKOGNIA
.


Creation of the trainer

A first draft of the Trainer was extracted from the MAPSManager. To be more precise, the following methods have been transferred from MAPSManager to Trainer:
High level:

train
resume

Low level:

_train_single
_train_multi
_train_ssda
_train
_train_ssdann
_init_callbacks
_init_optimizer
_init_profiler
_erase_tmp
_write_weights

Trainer is still strongly dependent of MAPSManager as all Trainer's useful parameters, as well as useful functions, are still in the MAPSManager.

Hello @thibaultdvx! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file clinicadl/utils/maps_manager/trainer/trainer.py:

Line 481:13: E266 too many leading '#' for block comment


Provide a page in the manual for the Windows users

Our Windows users can run metadata docker --start with Windows, Docker, and WSL 2. We consolidate this information in the manual. It would be interesting to test if it is possible to run OM in Windows Intellij.

@amiorin since you are looking at this, please come up with doc page and @shannonbradshaw can help with formalizing it and adding to the docs


Better error messages

Currently when we get an exception in the ES call, we get back an exception that is not that helpful.
org.elasticsearch.common.util.concurrent.UncategorizedExecutionException: Failed execution
cause: java.util.concurrent.ExecutionException: java.lang.NullPointerException
with no stack info. Need to have stack so we know where it occurred.

I'm looking at the XContentResponseTransform, and I don't see how the exception you've reported could possibly be thrown. Can you provide any more information?

Specifically, the client never throws an UncategorizedExecutionException, only RuntimeException.

Might me ES issue. See org.elasticsearch.action.support.AdapterActionFuture
thats where its thrown out of

The issue was that the search response transform was producing an NPE. Sadly, the futures code swallows the stacktrace, and there's not much we can do about it. Closing for now...


Unable to add in dependencies

When I have added this in dependencies .
Error:(27, 13) Failed to resolve: se.emilsjolander:android-flipview:x.x.x
Show in FileShow in Project Structure dialog

use this version : implementation 'se.emilsjolander:android-flipview:1.1.0'


Error about expecting DS.Snapshot instead of DS.Model

I'm getting this error when trying to invoke .query on a model with the mixin:
"Assertion Failed: The `hasMany` method is not available on DS.Model, a DS.Snapshot was probably expected. Are you passing a DS.Model instead of a DS.Snapshot to your serializer?"

The error occurs when trying to invoke this.hasMany in this line.
Here are the steps I followed:
store.findRecord('structure', 123).then(structure => {
  structure.query('locations', { include: 'children' }).then(locations => {
    // I never get here
  });
});

The structure.query call breaks with the error message above.

Which version of Ember Data are you using? The DS.Model.hasMany method has been available since 2.5.0: http://emberjs.com/api/data/classes/DS.Model.html#method_hasMany.

Oh well, is there a workaround to use it in Ember 2.2.0 in the mean time? Unfortunately I'm on a project that has been heavily using deprecated stuff in 2.3 and we're in the process to clean up all that in order to upgrade Ember. If not possible never mind, we'll be able to use this after that upgrade is finished.

Try switching to version 0.0.6 of this addon in the meantime.

Thanks, will do!


merge master into dev after release 1.6.0

I thought we already did this, but it seems dev is still/again 80+ commits behind master. This shouldn't happen with Git Flow, but maybe we need one more merge like this to get a clean start from now on.

doens't like right, closing


Don't lint deleted files

Currently if you delete files locally and they are still open in VS Code. Their names will be strikethrough and red. But if you want to debug your project it will say failed because it detected errors. And in the Problems panel there are multiple errors shown by eslint concerning the deleted files.

There is a setting in VS Code that deleted files will close automatically when they are unchanged. If that setting is enabled ESLint extension will not validate the file anymore.


Needs to ignore ChildDao code/block 1920000

can you elaborate

This issue is a placeholder.  We will be starting an ECIP to flesh the logic of this out so that all classic impls can do the right thing

This code seems to be here:
https://github.com/ethereumproject/pyethereum/blob/44dace9a2c638277a267d87d7091cf8393c21b9a/ethereum/blocks.py#L1184-L1186
But, I am still trying to familiarize with everything.

From the original pull requests it looks like this one did the damage https://github.com/ethereum/pyethereum/pull/397

yep -- I think this is the extent of it.  So we need a few things:

undo the changes from the PR @realcodywburns linked
create a new test fixture in the tests repo that has the Classic version of block 1920000
update the tests so that more do not fail

Data for the new test fixture can be found in the ethereumj PR for fixing this same issue:  PR3
In my local build there are 3 tests that currently fail, the same as on the original develop branch.  @rguiu Are you seeing the same thing?

this issue was fixed with PR #7


[BUG] Rancher CLI panics when trying to kubectl after a login #44811

Forward port https://github.com/rancher/rancher/issues/44811

PR: https://github.com/rancher/cli/pull/348

@enrichman issue requires a 2.9 RC to validate this on.

Closing: https://github.com/rancher/rancher/issues/44332#issuecomment-2040033405

Re opening as this needs to be tested on 2.9

Hi @anupama2501, the fix for this issue was merged with https://github.com/rancher/cli/pull/348 and it should be already available in the latest v2.9 rc (https://github.com/rancher/cli/releases/tag/v2.9.0-rc1).

Verified on rancher cli: v2.9.0-rc1, rancher v2.9-head 98d8b89

Create a rancher server on 2.9-head
Installed rancher cli version v2.9.0-rc1
Ran the rancher context current without running the login command
Verified rancher did not panic but got an error FATA[0000] no configuration found, run login``
Re ran the same command and verified the context is displayed.

Kubectl:

Verified by changing the global setting to kubeconfig-generate-token=false
Ran rancher kubectl get pods -A
Verified the pods are displayed and no panics noticed


Fix eslint import errors

explicitly add eslint-plugin-import plugin

This PR fixes the failure of the Check code compatibility with Milo supported browsers check for every recent PR, e.g. https://github.com/adobecom/milo/actions/runs/4338115253/jobs/7574574652.


using a win+; icon in Layout-name deletes all Zones

15.2
Windows
Version	10.0.18363 Build 18363
So I renamed a custom zone and put this innocent little twin-heart 💕 before the name.
First of all, it appeared as a black-and-white version of itself in the naming-window, but I think that's just because a general issue with mandatory UWP/Metro-blandness.
Now this error appears whenever I hit win+`
Don't know if it'll persist after reboot, will update once I tried that.

Afterwards, it'll open the "choose your Layout"-menu and the custom-tab has less stuff than it should:

💕 This icon did it. Though I bet any icon would do the trick.

And worst of all.... it'll not only delete all your Custom Layouts, but..... it'll reenable space around
zones 💀

Hi @DavidGretzschel
this is now fixed in master and it will available in 0.16

As a workaround, manually edit:
 "C:\Users\%USERNAME%\AppData\Local\Microsoft\PowerToys\FancyZones\zones-settings.json"

to  remove the heart symbol.

Closing as duplicate of https://github.com/microsoft/PowerToys/issues/1322


Story of seasons friends of mineral town blurry graphics

This is not the right place to report issues on, a pull-request is for submitting code. You'll want to check out our games-list repository or come to our Discord server.


Fix error with load_raw_arrays() on multiple assets when one does not exist

We've observed an error getting the history of multiple assets in a bundle under certain conditions.
Based on my observations, the issue occurs with load_raw_arrays() when requesting multiple assets when the start or end date of one asset is outside of the range.

Looking at the logic in load_raw_arrays(), we are not achieving any performance gain by requesting multiple sids at once. It's looping through the sids and making separate requests.
So I'm now making individual load_raw_arrays() to ensure that the start_dt and end_dt provided always match the data of each asset.


Subscription filters

Component(s)
router
Is your feature request related to a problem? Please describe.
Hi, I see a few PRs aiming to implement subscription filtering logic and the changes are really recent.
There are comments in test files containing @openfed__subscriptionFilter directives. The code in 181d89d8:router/core/factoryresolver.go@158 which loads field configuration is not populating the SubscriptionFilterCondition field:
fieldConfig := plan.FieldConfiguration{
			TypeName:             configuration.TypeName,
			FieldName:            configuration.FieldName,
			Arguments:            args,
			HasAuthorizationRule: l.fieldHasAuthorizationRule(configuration),
//SubscriptionFilterCondition may have been populated here from subscription directive?
		}

question is: are subscription filters functioning now or I am missions something or is it still WIP and they are not ready? Thank you
Describe the solution you'd like
directives for filtering EDFS are implemented as intended and/or documented once available
Describe alternatives you've considered
No response
Additional context
you have really fantastic product with great potential. currently seriously consider using WG stack to get rid of monolith GraphQL service we have. Once all checkboxes are checked (federated subscriptions using EDFS are only thing that left to assess for our production use) we are going to use self-hosted WG service and once it is showing good results we will consider switching to managed service.

Alright, pulled a last version of main branch and still have to check if filtering functionality is in place. Documentation (or at least draft) would really help. Even though it is really exciting to crawl through the source code and debug it to find how it works (no sarcasm here) the documentation or sample code would really help. cheers

@xwrs is there somewhere that's stating "field" rather than "fieldPath"? And were the error messaged during composition unclear?

@Aenimus there were no errors during composition. Control plain produces corrupted config. CDN contails following config
...
 "subscriptionFilterCondition": {
                    "in": {
                        "json": "[\"{{ args.id }}\"]"
                    }
                }
...

instead of
...
 "subscriptionFilterCondition": {
                    "in": {
                        "fieldPath": [
                            "id"
                        ],
                        "json": "[\"{{ args.uavId }}\"]"
                    }
                }
...

SubscriptionFieldCondition is being deserialized then with empty field path and the filter is not working obviously.

Thank you for explaining @xwrs.
Would you be able to provide me with the subscription filter in the exact form it was written in the Event-Driven Graph? Even if that form was "incorrect", e.g., defining "field" rather than "fieldPath"?
I will then investigate to understand why such an instance was not caught by composition.
Thanks again!

Simplest filtering seems to be working fine. Plan is to verify if all cases we need can be covered by the SubscriptionFilterCondition. Considering it's recursive nature it should be possible.
I will switch to enrichment of this filters based on the context of subscriber (user) now (I mentioned in #774 ). It seems that I have all data I need in resolver context to introduce some kind of middleware. It is possible to do it kinda right way (custom directives) and let schema configure itself. Or just hardcode some middleware calls to external endpoint and obtain enriched filters. But it is totally different issue and topic. Just sharing my excitement.

Hi @xwrs
The validation logic is now working in the latest release. We did not want to delay the feature, so only the happy path was tested. Now the unhappy paths are also tested and functional. Fun fact: the validation logic was correct but some errors were not propagated due to a missing boolean set. 🙈
We're looking forward to reading your feedback on the new feature!


ssl.SSLError: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:2635)

使用get_series 下载的时候经常会报这个错误，调低并发数也会报同样的错误。
使用get_video下载报错的单个视频时，没有再报错。
下载命令如下，不不知道能不能复现：
bilix s https://www.bilibili.com/video/BV1hS4y1m7Ma --dir /mnt/e/tmp --subtitle --max-con 20
异常信息如下：
Traceback (most recent call last):
  File "/home/liy/.local/bin/bilix", line 8, in <module>
    sys.exit(main())
  File "/home/liy/.local/pipx/venvs/bilix/lib/python3.8/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home/liy/.local/pipx/venvs/bilix/lib/python3.8/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/liy/.local/pipx/venvs/bilix/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/liy/.local/pipx/venvs/bilix/lib/python3.8/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/liy/.local/pipx/venvs/bilix/lib/python3.8/site-packages/bilix/_cli.py", line 249, in main
    asyncio.run(download(**kwargs))
  File "/usr/lib/python3.8/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/home/liy/.local/pipx/venvs/bilix/lib/python3.8/site-packages/bilix/_cli.py", line 135, in download
    await d.get_series(key, quality=quality,
  File "/home/liy/.local/pipx/venvs/bilix/lib/python3.8/site-packages/bilix/download.py", line 287, in get_series
    await asyncio.gather(*cors)
  File "/home/liy/.local/pipx/venvs/bilix/lib/python3.8/site-packages/bilix/download.py", line 360, in get_video
    await asyncio.gather(*cors)
  File "/home/liy/.local/pipx/venvs/bilix/lib/python3.8/site-packages/bilix/download.py", line 492, in _get_media
    await asyncio.gather(*cors)
  File "/home/liy/.local/pipx/venvs/bilix/lib/python3.8/site-packages/bilix/download.py", line 512, in _get_media_part
    async for chunk in r.aiter_bytes():
  File "/home/liy/.local/pipx/venvs/bilix/lib/python3.8/site-packages/httpx/_models.py", line 1680, in aiter_bytes
    async for raw_bytes in self.aiter_raw():
  File "/home/liy/.local/pipx/venvs/bilix/lib/python3.8/site-packages/httpx/_models.py", line 1734, in aiter_raw
    async for raw_stream_bytes in self.stream:
  File "/home/liy/.local/pipx/venvs/bilix/lib/python3.8/site-packages/httpx/_client.py", line 145, in __aiter__
    async for chunk in self._stream:
  File "/home/liy/.local/pipx/venvs/bilix/lib/python3.8/site-packages/httpx/_transports/default.py", line 239, in
__aiter__
    async for part in self._httpcore_stream:
  File "/home/liy/.local/pipx/venvs/bilix/lib/python3.8/site-packages/httpcore/_async/connection_pool.py", line 346, in
__aiter__
    async for part in self._stream:
  File "/home/liy/.local/pipx/venvs/bilix/lib/python3.8/site-packages/httpcore/_async/http11.py", line 295, in __aiter__
    raise exc
  File "/home/liy/.local/pipx/venvs/bilix/lib/python3.8/site-packages/httpcore/_async/http11.py", line 288, in __aiter__
    async for chunk in self._connection._receive_response_body(**kwargs):
  File "/home/liy/.local/pipx/venvs/bilix/lib/python3.8/site-packages/httpcore/_async/http11.py", line 160, in
_receive_response_body
    event = await self._receive_event(timeout=timeout)
  File "/home/liy/.local/pipx/venvs/bilix/lib/python3.8/site-packages/httpcore/_async/http11.py", line 172, in
_receive_event
    data = await self._network_stream.read(
  File "/home/liy/.local/pipx/venvs/bilix/lib/python3.8/site-packages/httpcore/backends/asyncio.py", line 31, in read
    return await self._stream.receive(max_bytes=max_bytes)
  File "/home/liy/.local/pipx/venvs/bilix/lib/python3.8/site-packages/anyio/streams/tls.py", line 171, in receive
    data = await self._call_sslobject_method(self._ssl_object.read, max_bytes)
  File "/home/liy/.local/pipx/venvs/bilix/lib/python3.8/site-packages/anyio/streams/tls.py", line 108, in
_call_sslobject_method
    result = func(*args)
  File "/usr/lib/python3.8/ssl.py", line 888, in read
    v = self._sslobj.read(len)
ssl.SSLError: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:2635)

我尝试执行了
bilix s https://www.bilibili.com/video/BV1hS4y1m7Ma --subtitle --max-con 20

在我这边网络条件下完整的下载下来了🤣，看报错信息是SSLError，尚且不知道这个是因为什么导致的，你或许可以使用--max-con 1来最大限度避免未知的网络错误

那这个issue先关了吧，不容易复现


better documentation for locations, including VPC and keyPair

This looks good, just two minor points. Thanks!

thanks @drigodwin , updated and merging


Insufficient documentation for getIds() method in RedisDocumentRepository

Hi
I tried to use this method in my repository:

public interface UserRepository
		extends RedisDocumentRepository<User, Integer> {

Iterator<Integer> iterator = repository.getIds().iterator();
But received an exception:
java.lang.NullPointerException: Cannot invoke "String.endsWith(String)" because "keyspace" is null
	at com.redis.om.spring.RediSearchIndexer.getKey(RediSearchIndexer.java:512) ~[redis-om-spring-0.6.2.jar:na]
	at com.redis.om.spring.RediSearchIndexer.getIndexName(RediSearchIndexer.java:476) ~[redis-om-spring-0.6.2.jar:na]
	at com.redis.om.spring.repository.support.SimpleRedisDocumentRepository.getIds(SimpleRedisDocumentRepository.java:91) ~[redis-om-spring-0.6.2.jar:na]

Method itself doesn't have JavaDocs so it's not clear how and when to use it. So please JavaDocs or documentation in GitHub.
My User class:
@Getter
@Setter

@Document("users")
public class User {

	@Id
	private int id;

	private String name;

	private int age;

}

Also documentation is not correct for overloaded getIds() method:
@NoRepositoryBean
public interface RedisDocumentRepository<T, ID> extends KeyValueRepository<T, ID> {

  /**
   * Returns a {@link Page} of entities meeting the paging restriction provided in the {@code Pageable} object.
   *
   * @param pageable encapsulates pagination information
   * @return a page of entities
   */
  Page<ID> getIds(Pageable pageable);

It states that method returns entities but signature clearly shows that it return entity identifiers.

@sergey-morenets I think this should be resolved in https://s01.oss.sonatype.org/content/repositories/snapshots/com/redis/om/redis-om-spring/0.6.3-SNAPSHOT/
Could please try it? And thanks for the doc correction.

@sergey-morenets I think this should be resolved in https://s01.oss.sonatype.org/content/repositories/snapshots/com/redis/om/redis-om-spring/0.6.3-SNAPSHOT/
Could please try it? And thanks for the doc correction.

Thank you. getIds() works correctly. Unfortunately there're no sources in this repository so I couldn't check the documentation update.


The member 'value' can only be used within instance members of subclasses of 'package:get/get_rx/src/rx_types/rx_iterables/rx_list.dart'.

Dart Analysis will show
The member 'value' can only be used within instance members of subclasses of 'package:get/get_rx/src/rx_types/rx_iterables/rx_list.dart
when I am using the ".value" for RxList.
It will error if I used the RxList(List or Uint8List) without using ".value" in the Image.memory. How to fix the description in the Dart Analysis with still using ".value"?

Use . toList()

Hi, thank you for your answer.
I try to use .toList() and get error "Expect Uint8List but got one of type List".
Then I try to use  Image.memory(Uint8List.fromList(img), ..., then it's work. (When img is RxList<int>)
For this function, I can use img or img.toList() instead img.value.
PS.
img.toList() generate image slower than img.


Adding Workshop section to umatter

Fixes Issue
#906
https://github.com/MonalikaPatnaik/UMatter/assets/103810119/6c5d785b-bf8b-45de-9ee8-9856e6af3fa9

Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] My change requires changes to the documentation.
[ ] I have updated the documentation accordingly.
[x] All new and existing tests passed.

hey, since the issue is of level 3 , I expect you to add css to the page..currently the page lacks CSS and is not looking good..Also, Change the workshop form to something like this--

I will make the changes according to your feedback. 😇


[Sprig App] Snake Classic

Author name
Author: tonkatsu-dj
About your game
What is your game about?
recreated classic snake for Hack Club's Sprig.
How do you play your game?
i feel as if this is self explanatory :)) just use WASD to move around and eat apples, and don't crash into yourself!

Duplicate of #2568


add library

hi
When I add library files to Keil
Gives the following error
test2\test2.axf: Error: L6200E: Symbol GpsState multiply defined (by gps_neo6.o and main.o).

yes
I have same errore.


Cannot merge into table partitioned by date type column on 0.16.3

Environment
Delta-rs version: 0.16.3
Binding: python

Bug
What happened:
After upgrading to 0.16.3 from 0.15.3, I'm seeing a DeltaError: Generic DeltaTable error: Unable to convert expression to string error when trying to merge into a table that is partitioned by a column of type pa.date32(). If I don't partition by date, or partition by a  column of string/int type, the merge succeeds. So it is something to do with date type partitions.
What you expected to happen:
This used to work, so I would expect this behavior to not break in later versions. I'm not sure if this degradation came from 0.16.3 specifically, or some version in between 0.15.3 and now.
How to reproduce it:
import pyarrow as pa
import pandas as pd
from deltalake import DeltaTable

schema = pa.schema(
    [
        ("date", pa.date32()),
        ("k", pa.string()),
        ("v", pa.string()),
    ]
)

DeltaTable.create("test", schema=schema, partition_by=["date"])

t = pd.DataFrame.from_dict(
    {
        "date": [pd.to_datetime("2022-02-01")],
        "k": ["a"],
        "v": ["b"],
    }
)

dt.merge(
    t,
    predicate='s.date = t.date',
    source_alias="s",
    target_alias="t",
).when_matched_update_all().when_not_matched_insert_all().execute()

The above is a minimal reproduction, leading to the following error DeltaError: Generic DeltaTable error: Unable to convert expression to string.
More details:

@echai58 would you be able to check at what version this stopped working?

@echai58 would you be able to check at what version this stopped working?

@ion-elgreco Yes, just went through versions and it started breaking on 0.16.2, worked on versions before that.

@echai58 great, thanks for checking! I'll take a look in the next couple days, it may have to do with the early filter construction

@ion-elgreco thanks for working on a fix for this! Do you have plans to do a new version release with this fix soon? It's blocking me upgrading right now :slightly_smiling_face:

@ion-elgreco thanks for working on a fix for this! Do you have plans to do a new version release with this fix soon? It's blocking me upgrading right now :slightly_smiling_face:

Somewhere next week I guess

Hi @ion-elgreco, wanted to follow up and check if there are any updates on when 0.16.5 will be released?

Hi @echai58, I want to do a 0.17 release but with these PRs in as well:

https://github.com/delta-io/delta-rs/pull/2383
https://github.com/delta-io/delta-rs/pull/2396


Add prettier support

I wanted to make some small adjustments and bug fixes but realized the moment I try to save the file, my editor's prettier tries to auto-format the file which results in a lot of unrelated line changes.
This PR tries to add prettier support to the project so that everyone can follow the same code convention as well as making it easier for outside developers to make improvements to the project.
The 5f18aef9d439e1a81a3921a15ce53fb326b727e6 commit is a result of running npm run format script which was created on 40c6924eba1e60a1b1eb07673159b44aadf69716, and that's why the line changes are too much.
Let me know if you want me to change anything (: hopefully, I can make my other contributions after this gets merged.

Hi Mohammad Ali,
Thanks for the contribution.
PR (#71) has just landed on the master branch. You need to rebase your changes or just reformat the master and make your PR again.

Hey @mhemrg!
Ready for another review.

Thanks, @MohammadxAli.
Is it possible for you to add husky and pretty-quick to this setup?
And can you please just PR your configuration instead of the formatted version of all these files? It's not possible for us to review all these file changes right now. Then I can just run the format command myself and push it directly to the master.

And can you please just PR your configuration instead of the formatted version of all these files?

Yeah, definitely that makes much more sense. I was thinking the same.

Is it possible for you to add husky and pretty-quick to this setup?

Not sure about the pretty-quick, but a husky hook should be straightforward to add, will let you know once it's done.

@mhemrg Followed by prettier docs, and it's working as expected.
Gave it a try before making my own commits and it did work. Let me know if it's working on your side.

Thanks again, Mohammad Ali.


feature request: Robbins-Monro type learning rate decay

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

I was wondering if there is any appetite for a Robbins-Monro type learning rate decay in tensorflow? The decay would be roughly (a more general solution is implemented at the bottom):
decayed_learning_rate = learning_rate * (global_step + 1) ^ (-decay_rate)

As far as I can tell it is not already implemented in tensorflow, which surprised me since I think this is the learning rate decay rate required for theoretical convergence using the Adam optimizer in Section 4 of the paper, which has:
alpha_t = alpha / sqrt(t)

which is the same as the first equation with decay_rate = 0.5, and I assume they start at t = 1 while tensorflow starts with global_step = 0.
I have an implementation I have been using (mostly copied from the already implemented ones):
def robbins_monro_decay(learning_rate,
                        global_step,
                        decay_steps,
                        decay_rate,
                        staircase=False,
                        name=None):
    """A Robbins-Monro type decay"""

    if global_step is None:
        raise ValueError("global_step is required for robbins_monro_decay.")

    with tf.name_scope(
            name,
            "RobbinsMonroDecay",
            [learning_rate, global_step, decay_steps, decay_rate]) as name:

        learning_rate = tf.convert_to_tensor(
            learning_rate, name="learning_rate")
        dtype = learning_rate.dtype
        decay_steps = tf.cast(decay_steps, dtype)
        decay_rate = tf.cast(decay_rate, dtype)
        global_step = tf.cast(global_step, dtype)
        p = global_step / decay_steps

        if staircase:
            p = tf.floor(p)

        return tf.multiply(
            learning_rate, tf.pow(p + 1, -decay_rate), name=name)

I can make a full pull request if that would be useful? I would be more than happy to add some additional documentation/code or change any of the code/naming/whatever.
Thanks!

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks.
Have I written custom code
OS Platform and Distribution
TensorFlow installed from
TensorFlow version
Bazel version
CUDA/cuDNN version
GPU model and memory
Exact command to reproduce

It has been 16 days with no activity and the awaiting response label was assigned. Is this still an issue?

Nagging Assignee @jart: It has been 15 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Interested to try this out!

Nagging Assignee @jart: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @jart: It has been 30 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @jart: It has been 44 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @jart: It has been 60 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @jart: It has been 75 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @jart: It has been 90 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

@jeffpollock9,
Sorry for the delayed response. Can you please check  tf.keras.optimizers.schedules.ExponentialDecay is what you are looking for? Thanks!

@rmothukuru thanks for getting back on this. The docs for the keras optimizer have:
def decayed_learning_rate(step):
  return initial_learning_rate * decay_rate ^ (step / decay_steps)

whereas the Robbins-Monro one is:
decayed_learning_rate = initial_learning_rate * (step + 1) ^ (-decay_rate)

So I don't see how they could be the same.

@jeffpollock9 May be it is easy to implement the above  Robbins-Monro  learning rate decay through tf.keras.callbacks.LearningRateScheduler. You could also implement a custom callback to schedule the learning rate.
As this was an old issue, i guess you might have already implemented Robbins-Monro  learning rate decay method. If you want to contribute, you could raise a PR in TF-addons repo. Thanks!
Please let us know what you think. Thanks!

@jeffpollock9 May be it is easy to implement the above Robbins-Monro learning rate decay through tf.keras.callbacks.LearningRateScheduler. You could also implement a custom callback to schedule the learning rate.
As this was an old issue, i guess you might have already implemented Robbins-Monro learning rate decay method. If you want to contribute, you could raise a PR in TF-addons repo. Thanks!
Please let us know what you think. Thanks!

Hi @jvishnuvardhan I did indeed implement this learning rate, you can see it if you scroll to the top of the page.
I'm not really interested in this any more though unfortunately, mostly because it's been 3 years since opened this issue. If you would like to take my implementation and contribute it though, I think that'd be great. Thanks.

Development of keras moved to separate keras-team/keras repository.
I will close the issue here and open this in keras-team/keras repo and let team evaluate this feature. Thanks!


reload app while importing when temporal filter is set

The parameter "NumberOfImages" only exist when temporal filter is set to
"mean".
Ifm3d compares application to be imported with basically grated
application. So importing fails.
The application has to be imported again from device after imager json
object was imported.

This feature is merged with Release 0.20.1


update node docker image version

Codecov Report

Merging #1849 (1e6184a) into master (0ebf6ba) will decrease coverage by 0.63%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1849      +/-   ##
==========================================
- Coverage   72.71%   72.08%   -0.63%
==========================================
  Files          46       46
  Lines        4471     4471
==========================================
- Hits         3251     3223      -28
- Misses        882      902      +20
- Partials      338      346       +8


Add remove_variable option to build_computational_graph

Fix #156

Could you add test cases for this mode?

@muupan Thank you for reviewing this PR! I fixed points you pointed out and added a test for this remove_variable option.

Thanks for the fixes. They look good.
I noticed this PR will not only add a remove_variable option but also introduce additional two changes:

adding variable names to labels https://github.com/pfnet/chainer/pull/2207/files#diff-54541860b0345091e1a50777c35c730bR31
adding default styles https://github.com/pfnet/chainer/pull/2207/files#diff-54541860b0345091e1a50777c35c730bR6

I think these changes will break backward compatibility to some extent because the appearance of a resulting graph will be changed. For example, the figure in this page should be replaced: http://docs.chainer.org/en/stable/reference/graph.html What do you think?

Ah, right. So I'll update the documentation later. Should it be done at the same time as this?

From the offline discussion, I need to add a compatible mode that can output the completely same dot file as the previous version.

Fixed to allow backward compatible mode.
As I documented in the docstring, there are roughly three modes to make a graph. For example, let y be the output of MLP model defined in the official MNIST example,

Backward compatible mode

cg = build_computational_graph(y, variable_style=None, function_style=None, show_name=False)

Richest mode (as the dump_graph extension does)

cg = build_computational_graph(y)

Remove variables

cg = build_computational_graph(y, remove_variable=True)

@mitmul Can you resolve the conflicts?

@muupan Thank you for your comments! I fixed the note. Could you confirm it's appropriate?

Thanks for the fixes. LGTM.


event node unexpected delay

I'm using an event node to get STT messages from all my connected Echos.
When I say to Alexa "alexa, accendi lampada" it takes less than 1 second to send the message.
If I say "alexa, spegni lampada" it takes about 10 seconds.
I cannot image the reason why...

I have the same problem, it happens sporadically. It is mainly observable in speech nodes. But I've seen it happen in other nodes. When it sends a command to the node it has a "pending" status.

I'm using an event node to get STT messages from all my connected Echos. When I say to Alexa "alexa, accendi lampada" it takes less than 1 second to send the message. If I say "alexa, spegni lampada" it takes about 10 seconds. I cannot image the reason why...

Did you manage to solve the problem? I still have a delay on practically all nodes, it happens 25% of the time I make a request.

No I did'nt, unfortunately. It occours occasionally.


Add dedicated CI/CD section to KitOps docs (Dagger and Jenkins)

Add an expanded section to the kitops documentation that covers the CI/CD use case. This should include our daggerverse modules and our use case around Jenkins.

Add the KitOps GitHub action as well

Will be addressed by:

#586
#588

I assumed adding two PRs would close the issue with AND but seems to do it on OR...boo.


MyBot vs EvilBot match starts with a random board

First and second match start with an initialized board.
However, after the second match, the board is not the starting one, and it looks like it's randomized.
Is this on purpose? How to fix it?

This is intended behaviour to tell help testing bots from different positions. You can edit the Fens.txt file in the resources folder to change.

Ah got it, thank you


publish<EMAIL_ADDRESS>

Requested by: @priscilawebdev
Merge target: (default)
Quick links:

View changes
View check runs

Assign the accepted label to this issue to approve the release.
Leave the #retract comment under this issue to retract the release (original issuer only).
Targets

[ ] github

Targets marked with a checkbox have already been executed.  Administrators can manually tick a checkbox to force craft to skip it.

closing this since we released<EMAIL_ADDRESS>here


Finished First Lesson

I've read everything from README.md and finished all assignment in lesson 1.

@microsoft-github-policy-service agree [company="{your company}"]

@koyuncuoglum95 great to see you working through the lessons! The best way to track your work is to create a fork of this repo to your account and merge your completed lessons to your own repo.
Closing this PR, as no changes to the lessons. As you have questions, feedback or an issue with any lesson please feel free to open a discussion or open a new issue. Thank you for using this curriculum!


Getting an error "TypeError: a bytes-like object is required, not 'str'"

Hi @Hynix07 ,
I am trying to run python train.py getting an error
"Traceback (most recent call last):
File "train.py", line 43, in
if name == 'main':main()
File "train.py", line 14, in main
questions_train = prepare_data.get_questions_matrix('train')
File "/home/manikantha/Downloads/VQAM/Visual-Question-Answering-master/prepare_data.py", line 67, in get_questions_matrix
word_idx = ebd.load_idx()
File "/home/manikantha/Downloads/VQAM/Visual-Question-Answering-master/embedding.py", line 15, in load_idx
word_idx = pickle.load(file)
TypeError: a bytes-like object is required, not 'str'"
i was unable to understand the error can you tell me how to resolve the issue,
Thanks & Regards,
Manikantha Sekhar...

Hi @Hynix07 ,
I am Closing this issue i resolved it by reading the file with binary format and encoding with "encoding='latin1'"
though i resolved this issue


Fix copying_headers/test-dist so it uses both distribution tarballs

This work was merged with https://github.com/geopm/geopm/pull/1847


Add support for machine-readable output

Currently we only support human-readable tabular output. It's great for iterative development locally but it's hard to use from other scripts (i.e., for continuous performance tracking).
To fix this, we should add a JSON-based output format that contains information in the structured format.

The original Google benchmark project offers some strong guidance for CSV and JSON output formats. [1] It'd make sense to support the same format, and command-line / ENV variable arguments.

Hi @mattt, thanks a lot for the feedback, we'll try to make sure that the output format is close to the output of the original google/benchmark!


Documentation missing

The documentation page doesn't completely document the steps necessary to make I2C work.
Specifically, on a virgin Raspberry Pi, you need to do the following:
Put a # comment in front of the blacklist i2c-bcm2708 line in /etc/modprobe.d/raspi-blacklist.conf
Add the modules i2c-bcm2708 AND i2c-dev to the file /etc/modules <-- this took me a while to find out!
Restart, or run modprobe to install the modules.
After this, you can find the i2c bus using i2cscan -l. Before that, you will get "No such file or device" or similar errors.

Oh thanks for the feedback and digging in to find the solution.  It looks like this guide page should call out enabling I2C on the Pi like some later tutorials mention.  Just updated the page here to call it out: https://learn.adafruit.com/ssd1306-oled-displays-with-raspberry-pi-and-beaglebone-black/wiring  Thanks for raising the issue!

Oh thanks for the feedback and digging in to find the solution.  It looks like this guide page should call out enabling I2C on the Pi like some later tutorials mention.  Just updated the page here to call it out: https://learn.adafruit.com/ssd1306-oled-displays-with-raspberry-pi-and-beaglebone-black/wiring  Thanks for raising the issue!


revert useless workaround in HandlebarsPluginSpec

I believe the cause of indeterministic result is parallelExecution setting

#22 has resolved the issue #19 and this workaround must be unnecessary any more.
thanks !


Feature/wa 325 api version

Add api NamespaceVersioning
Add /about/ endpoint for version info

Pull Request Test Coverage Report for Build 84

12 of 14 (85.71%) changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.2%) to 89.749%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

gnosis_safe_push_service/safe/views.py
7
9
77.78%

Totals

Change from base Build 82:
-0.2%

Covered Lines:
429

Relevant Lines:
478

💛  - Coveralls


Speed boot time and enable GRO.

Hi Julius,
Can you split the two patches please?
We intentionally removed  RSC (GRO) support from the driver, because currently we cannot pass WHQL with it. So if we will add it, then either as a flag during build or only to master and not to stable branch.
Thanks.

For now we can add GRO (RSC) support only to master and not to stable.
The other way around is to enable the feature according to build parameter.
Best regards,
Yan.

RSC (GRO) is enabled by default in current drivers
I prefer to keep the current memory allocation scheme. In HCK scenario driver can be unloaded several times and memory will be fragmented. Allocation of large chunks might not be possible.


When your cursor sits somewhere for too long, it disappears.

The root of this is a Spyder editor problem rather than a spyder-vim problem, I think.  When your cursor is on a word for more than a second or two, it highlights this word and all other occurrences of this word in yellow.  Then spyder-vim's cursor totally disappears.  You have no idea where your cursor has disappeared too until you figure out this issue.  Then, when you've figured it out, you're still clueless when ever you pass through this word or another occurrence of this word.

I believe this is the same as issue #7?

Yes it is. A workaround for now is to disable word highlighting.

Sorry about that.  I should have read the other issues first (especially since there aren't many).  Thanks.


[Bug]: OpenAI agent execution doesn't propagate trace_ids to function calls

Bug Description
Initialize an OpenAIAgent as follows:
# Define very simple calculator tools for our agent

    def multiply(a: int, b: int) -> int:
        """Multiple two integers and returns the result integer"""
        return a * b

    multiply_tool = FunctionTool.from_defaults(fn=multiply)

    def add(a: int, b: int) -> int:
        """Add two integers and returns the result integer"""
        return a + b

    add_tool = FunctionTool.from_defaults(fn=add)
    llm = OpenAI(model="gpt-3.5-turbo-0613")
    cb_handler = OpenInferenceTraceCallbackHandler()
    callback_manager = CallbackManager(handlers=[cb_handler])
    agent = OpenAIAgent.from_tools(
        [multiply_tool, add_tool], llm=llm, verbose=True, callback_manager=callback_manager
    )
    agent.query("What is 2 * 3?")

where OpenInferenceTraceCallbackHandler can be any callback handler. even with nested_asyncio applied, the start_trace and end_trace don't get proper parent trace ids to correlate the function calls with the llm calls and vice versa
Version
llama-index==0.8.21
Steps to Reproduce

define a data agent

    def multiply(a: int, b: int) -> int:
        """Multiple two integers and returns the result integer"""
        return a * b

    multiply_tool = FunctionTool.from_defaults(fn=multiply)

    def add(a: int, b: int) -> int:
        """Add two integers and returns the result integer"""
        return a + b

    add_tool = FunctionTool.from_defaults(fn=add)
    llm = OpenAI(model="gpt-3.5-turbo-0613")
    cb_handler = MyCallbackHander()
    callback_manager = CallbackManager(handlers=[cb_handler])
    agent = OpenAIAgent.from_tools(
        [multiply_tool, add_tool], llm=llm, verbose=True, callback_manager=callback_manager
    )
    agent.query("What is 2 * 3?")

where MyCallbackHander implements the start_trace and end_trace callback.
Note that you will get distinct executions of llm and function_call but they will not be a part of the same trace.
Relevant Logs/Tracbacks
No response

Because CBEventType.LLM is a LEAF_EVENT, the current_trace_stack gets appended to, even though it engenders children such as CBEventType.FUNCTION_CALL. See here.

As @RogerHYang mentioned, the trace for a data agent ends up looking like a fan-out with no root, making it hard to analyze the final input and output of the execution.

@mikeldking
just curious -- a flat fan-out correct right? Just the the lack of a root node

@mikeldking
just curious -- a flat fan-out correct right? Just the the lack of a root node seems to be an issue?

Yes, I think having a root "span" would solve the issue

Hmm, ran a quick test using your example above, but using LlamaDebugHandler(print_on_trace_end=True) to print the trace to terminal
I get something like this
**********
Trace: query
    |_CBEventType.LLM ->  1.29725 seconds
    |_CBEventType.FUNCTION_CALL ->  0.000256 seconds
    |_CBEventType.LLM ->  0.735938 seconds
**********

The query is the trace_id -- it should definitely be renamed. But I would consider this to be the root essentially 🤔


new error

Hello
I have successfully uploaded the code however i cannot connect to the wifi nor mqtt. on my serial monitor this is what I get:
 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
vbb28d4a3
~ld

and the above keeps looping many times.
Can you please help?
Thanks.

Can you program anything to your NodeMCU? Does a simple blink LED example work?

Yeah works fine

I'm getting the same error. Any thoughts?

It's been a while, but...
I'm getting a similar error. Nothing connected to the rst pin, and the blink example sketch is working.


installDevTools(immutable) returns undefined.

Note that I also tried updating chrome. I will say that both import statements are valid as they both log out correct looking data for immutable and installDevTools from these two lines.
import immutable from 'immutable';
import installDevTools from 'immutable-devtools';

Yet when I log them out to install it, it's undefined such that:
console.log('installDevTools', installDevTools(immutable));
const stuff = installDevTools(immutable);
console.log('thingers', stuff);

always logs undefined.
And the code below always just spits out unformatted immutablejs objects.
const thing = {
  'thing':"oop",
  'mop':"glop",
  'weeks': [
    {goop:"date"},
    {goop:"date"},
    {goop:"date"},
    {goop:"date"}
  ],
  'used': 'meep'
};

const schA = Map (thing);

console.log(schA);

related to #15

installDevTools should not return anything, it just instruct Chrome to use formatters.


Version 0.1.0 Release

[x] #1.
[ ] #3.
[ ] #4.
[ ] #5.

Closed because the main branch no longer required to be pushed to the latest branch.


Light component always sending the 'on' attribute, making it impossible to use physical switches together with HA.

Home Assistant release (hass --version):
0.31.0
Python release (python3 --version):
Python 3.5.1
Component/platform:
light
light/hue
switch/flux
Description of problem:
If the Flux switch (or a script) updates a light that was recently deactivated by a physical switch, the light will turn back on at the next update. This way, it's impossible to turn off a light with a physical switch or using the native control application (in this case Hue).
The only function that allows changing color and brightness of a light always sends the 'on'-attribute.
Steps to reproduce the problem:

Turn on a light
Turn on the Flux switch that includes the light in step 1
Turn off the light via native app or physical switch
At the next Flux update the light will turn back on

Expected:
The light component should have three basic functions:

Turn on
Turn off
Change color, brightness

The Flux switch should only use function 3 to change color and (optionally) brightness, not turn on the lights - since this should be handled by Home Assistant switches and/or physical swithces.
Additional info:
Also, from the Hue FAQ:

Don’t always send ‘ON’ Once you have sent the ‘ON’ attribute to a light, it will stay on. Do not repeatedly send the ‘ON’ command as this will slow the responsiveness of the bridge.

I've also experianced this problem, it is incredibly annoying. Even when turning lights off with, for example, Alexa through HA (via Hue emulation) often many of my lights turn back on.

This is an issue I've discussed in part here  and here.
The issue is the light component of HA cares not about the attributes of the light if the light is off. So according to the paradigm of HA if the light it off, it has no brightness, no color, no hue, etc.
Which I guess is true in the sense of what is actually happening in the room, but does not address the issue of what you've described along with many other issues outlined in my links.
You see, if I turn off my lights without letting HA know about it, HA will assume they're still on at least until it polls to see if they're still on, which some light components do not do. In addition the light component sends the "on" attribute anytime you want to change any aspect of the light. So flux sends a brightness change along with the "on" attribute and ultimately the light comes back on.
What this also means is that if the lights are off, there is no way to change the brightness, hue, etc to ensure the light is at those settings next time it is turned on.
I've pleaded for the an additional attribute to be allowed to allow us to set the state of the lights if they're off but @balloob has repeatedly refused.
@balloob, my solution to this problem is to allow the state of the lights to be changed even if they're off, and to only send the "on" command/attribute to the light if the user truly intends to turn on the light. This will ensure things like the flux component will only change the attributes it should such as brightness and hue and leave the state of the light alone unless the user explicitly wants it on or off.
Since 0.27 I have hacked this solution on my own box by passing a "power" attribute to the light component with "on" or "off" if I really want the light to turn on and off. Obviously this breaks the paradigm of the turn_on turn_off service, but it does allow me to change the state of the light even if it is off and ensure that doing so does not inadvertently turn the lights on or off. I know this is a crappy solution but a true fix would require a rework of the entire light component. Ideally a change_state service would need to be added leaving the turn_off, turn_on service mostly unchanged and allowing the user to change the state of the light regardless of if it is "on" or "off"

@balloob would you be in favor of the change_state service discussed here? I wouldn't mind starting on the work myself as this flux thing and other limitations are a giant headache for me.

I'd also be willing to work on this over my winter break.

I don't see how we got from Flux turns on lights that are off to we should be able to set brightness on lights that are off. This can be simply fixed inside Flux by adding a check if the light is off before sending the turn_on command. A PR is welcome for this.
@keatontaylor issue is unrelated to this. See his linked issues for my position on it.

@balloob, like my position in the mentioned PRs/Issues this could also be solved by allowing the flux component to change the state of the lights while they're off, and only turning them on when  the user/automation explicitly says to do so. We've seen a recurring issue of the current implementation providing undesirable results.

Changing brightness, color, hue, temperature, etc should be apathetic to the on/off state of the light.
On/Off of the light should only be changed if the automation explicitly calls for it.

Fixing the flux component by checking if the light is off before sending the turn_on command will not fix the issue described above, since the issue is a result of HA not being aware of the change in state of the light until polling is complete. So even with polling set to a low value, there are still edge cases where HA will believe the light is on when it is not. Again, my solution solves this problem along with many others as described above.

@balloob the Flux component already calls is_on before sending the turn_on command. It's just not working correctly for some reason.
def set_lights_xy(hass, lights, x_val, y_val, brightness):
    """Set color of array of lights."""
    for light in lights:
        if is_on(hass, light):
            turn_on(hass, light,
                    xy_color=[x_val, y_val],
                    brightness=brightness,
                    transition=30)

def set_lights_temp(hass, lights, mired, brightness):
    """Set color of array of lights."""
    for light in lights:
        if is_on(hass, light):
            turn_on(hass, light,
                    color_temp=int(mired),
                    brightness=brightness,
                    transition=30)

https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/switch/flux.py#L61-L78

I'm running into this problem as well (using the flux switch). Whenever I turn the lights off without letting HA know about it, there's a big chance that flux will turn them back on.
Perhaps this could be changed by only sending on command in the hue component if the internal known state is not on? This would follow the instructions of the hue API (only send an on once). The polling of the hue component would then eventually put the internal state to off, which would also stop the flux switch.
I can only think of one situation where this would not be desirable: lights are on, lights are put off using Hue app, HA doesn't know lights are off, user changes color of light in HA, nothing happens (because the internal state is still on). But somehow this feels more desirable than the other way around. What do you think?

Plus one for @keatontaylor
The current attempt will IMHO never work well when combing lights with motion detectors. Now I will get a bright light at night until flux component correct brightness and color.  I don't see how this could work in a perfect manner  with the is_on command.

It seems like this may have been fixed in 0.40.1 I haven't exhaustively tested it, however, I no longer seem to end up in cyclical conversations with Alexa asking her to turn the lights off.

I can't confirm that. I'm running 0.41.0. When the fluxer switch is turned on all lights get turned on as soon as I turn on one light.

This is bugging me too.
I had the idea to use light.toggle followed by a flux update hoping that when it was toggled on, flux would update it accordingly, and when it toggled off, flux would do nothing.
Unfortunately, when the light toggles off, flux simply turns it back on again. Disappointing as I now have to create another specific automation, or a template condition perhaps :(

I tried the same thing. I rigged mine to automatically follow the state of the lights. No joy.
It seems to be some sort of bug in the outbid that runs flux.
Have you tried changing the update interval of flux?
Sent from my iPad
On Jun 3, 2017, at 7:49 PM, chimpy <notifications<EMAIL_ADDRESS>wrote:
This is bugging me too.
I had the idea to use light.toggle followed by a flux update hoping that when it was toggled on, flux would update it accordingly, and when it toggled off, flux would do nothing.
Unfortunately, when the light toggles off, flux simply turns it back on again. Disappointing as I now have to create another specific automation, or a template condition perhaps :(
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/home-assistant/issues/4005#issuecomment-306008278, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMTryooVolURQAl-fHPUlKW6wfgSTmwrks5sAfD1gaJpZM4KeKcr.

In the end I deleted my comment as I realised it was my fault.
I had a group of two lights (bedside_lights) and whenever I toggled one of the pair, I would flux_update the group:
action:
  - service: light.toggle
    entity_id: light.bedside_1
  - service: switch.bedside_group_flux_update

If both lights were on, it was impossible to turn one of them off as flux addressed the group and as long as one of the pair was on, the group would be on, so flux would update both (which would insta-turn-back-on the light I just toggled).
The fix was to create separate flux updates for each light. Essentially, each light or group that is toggled at once must be linked to its own flux update switch.

On 4 Jun 2017, at 18:34, alorman<EMAIL_ADDRESS>wrote:
I tried the same thing. I rigged mine to automatically follow the state of the lights. No joy.
It seems to be some sort of bug in the outbid that runs flux.
Have you tried changing the update interval of flux?
Sent from my iPad
On Jun 3, 2017, at 7:49 PM, chimpy <notifications<EMAIL_ADDRESS>wrote:
This is bugging me too.
I had the idea to use light.toggle followed by a flux update hoping that when it was toggled on, flux would update it accordingly, and when it toggled off, flux would do nothing.
Unfortunately, when the light toggles off, flux simply turns it back on again. Disappointing as I now have to create another specific automation, or a template condition perhaps :(
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/home-assistant/issues/4005#issuecomment-306008278, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMTryooVolURQAl-fHPUlKW6wfgSTmwrks5sAfD1gaJpZM4KeKcr.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/home-assistant/home-assistant/issues/4005#issuecomment-306051011, or mute the thread https://github.com/notifications/unsubscribe-auth/AAXOodVCyXGjlX251imAOVyLyBpj0zF7ks5sAtyggaJpZM4KeKcr.

Interesting! This may have some bearing on my problem! All of my flux bulbs are actually groups of lights within fixtures, so perhaps it's some residual command not being propagated.
I'll have to try separating my lights out into individual bulbs and seeing what I get.
Thanks!

From: chimpy<EMAIL_ADDRESS>Sent: Sunday, June 4, 2017 3:27 PM
To: home-assistant/home-assistant
Cc: alorman; Comment
Subject: Re: [home-assistant/home-assistant] Light component always sending the 'on' attribute, making it impossible to use physical switches together with HA. (#4005)
In the end I deleted my comment as I realised it was my fault.
I had a group of two lights (bedside_lights) and whenever I toggled one of the pair, I would flux_update the group:
action:

service: light.toggle
entity_id: light.bedside_1
service: switch.bedside_group_flux_update

If both lights were on, it was impossible to turn one of them off as flux addressed the group and as long as one of the pair was on, the group would be on, so flux would update both (which would insta-turn-back-on the light I just toggled).
The fix was to create separate flux updates for each light. Essentially, each light or group that is toggled at once must be linked to its own flux update switch.

On 4 Jun 2017, at 18:34, alorman<EMAIL_ADDRESS>wrote:
I tried the same thing. I rigged mine to automatically follow the state of the lights. No joy.
It seems to be some sort of bug in the outbid that runs flux.
Have you tried changing the update interval of flux?
Sent from my iPad
On Jun 3, 2017, at 7:49 PM, chimpy <notifications<EMAIL_ADDRESS>wrote:
This is bugging me too.
I had the idea to use light.toggle followed by a flux update hoping that when it was toggled on, flux would update it accordingly, and when it toggled off, flux would do nothing.
Unfortunately, when the light toggles off, flux simply turns it back on again. Disappointing as I now have to create another specific automation, or a template condition perhaps :(
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/home-assistant/issues/4005#issuecomment-306008278, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMTryooVolURQAl-fHPUlKW6wfgSTmwrks5sAfD1gaJpZM4KeKcr.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/home-assistant/home-assistant/issues/4005#issuecomment-306051011, or mute the thread https://github.com/notifications/unsubscribe-auth/AAXOodVCyXGjlX251imAOVyLyBpj0zF7ks5sAtyggaJpZM4KeKcr.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/home-assistant/issues/4005#issuecomment-306061421, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMTryhuXtLsiN7H6_0EqqdFhhhA6Le4nks5sAwU3gaJpZM4KeKcr.

I have the same problem with my hue lights. I have a fluxer component which is turned on by default.  But after a few seconds they light up again.
My assumption is that the hue bridge is polled every X seconds. And fluxer runs every Y seconds. Even if fluxer checks if the lights are off there is a high chance that between the last bridge call the lights got switched off. In order to have a higher chance fluxer should run as soon as the status got polled and do nothing until the next status got polled.

Added a last_update attribute to the hue light components shows that each status is only updated every 30 seconds.
What do you think about my proposed solution?

Unfortunately, your solution will only work for some types of bulbs. It will not work correctly for Z-Wave as those are local push, not local polling.

I suppose that this problem would not occur for local polling because, status updates are instant there... maybe it would occur if the transition is handled by fluxer in an interval of 1 second. But if you update the lights with fluxer only every 60 seconds there is a max chance of 1/60 to have it turned on again after you switched.
I have added my proposed attributes in my hue dev branch:
https://github.com/runningman84/home-assistant/tree/hue
This is the corresponding configuration:
sensor:
  - platform: template
    sensors:
      time_between_fluxer_and_hue_update:
        value_template: '{{
as_timestamp(states.light.hue_lightstrip_monitor.attributes.last_update) | int
-
as_timestamp(states.switch.fluxer_office.attributes.last_update) | int
        }}'
        friendly_name: 'Time between fluxer and hue light update'
        unit_of_measurement: 'seconds'

light:
  - platform: hue
    host: XXX
    filename: phue1.conf
    allow_unreachable: true
    allow_hue_groups: true

switch:
- platform: flux
  lights:
    - light.hue_fido
    - light.hue_lightstrip_monitor
  name: fluxer_office
  stop_time: '23:00'
  start_colortemp: 4000
  sunset_colortemp: 3000
  stop_colortemp: 1900
  brightness: 200
  disable_brightness_adjust: false
  mode: xy

automation:
- id:                   start_fluxer_in_sync
  alias:                Turn on fluxer after hue light update
  trigger:
    - platform:         numeric_state
      entity_id:        sensor.time_between_fluxer_and_hue_update
      above:            60
  condition:
    condition:          and
    conditions:
      - condition:      state
        entity_id:      light.hue_fido
        state:          'on'
  action:
    service:            switch.fluxer_office_update
    entity_id:
      - switch.fluxer_office

I could not reproduce the error with this configuration. I can switch off the lights at any time and they are not switched on again by fluxer. If the lights are on fluxer changes the status immediately after hue api is polled and the last fluxer update was more than 60 seconds ago.
The only problem is that if you switch off the light and turn it on and the template senor is already above 60 it is not triggered anymore. I do not know if we could run this at any value above 60. One solution would be multiple triggers with values like 60,600,3600,..

I can verify that this issue still occurs on the newest version of Home Assistant.

I can verify that this issue still occurs on the newest version of Home Assistant.

This is an issue for me as well. I have made sure HA is the only service interacting with my Hue lights, but the issue still occurs for example during transitions.
When you turn_off on a light with a transition, you would want HA to immediately register the light as OFF. It actually does, but within the next polling interval, HA will receive information from the Hue Bridge that this light is actually on, albeit with a reduced brightness. HA registers the light as ON again. The Flux component will then call the turn_on service with a new color temperature set-point. In the end, the Hue light respects the transitions and power commands, and therefor stays on at the minimum brightness level.
I completely agree with the suggestion to allow attribute changes of an object without changing it's power state. You should be able to adjust a light's brightness and color irrespective of it's power. I think it is the most sensible solution for a lot of use cases. The component could let HA know which attributes can be adjusted when it is off, depending on whether it can pass the attributes to the device.

I built a fix for this back in January, but it only support Hue lights since a set state function has to be added to every light. I haven't had the time to maintain it unfortunately, so it doesn't work with the newest version of Home Assistant.
Basically I added a 'set_state' function to lights that is able to adjust light parameters without explicitly turning them on. Every light type would have to be updated to support this new function, or we'd have to come up with a fallback option. I used this for about 6 months until I stopped maintaining it, but it was flawless during that time period.
https://github.com/tdickman/home-assistant/commit/a1a532fb185c8ecfc297c62382e58c1487f67be8

+1 on addressing this issue.

I have installed motion sensors in front of my switches. Motion disables the fluxer service. This is a quite expensive workaround

@tdickman Why not submit a PR with your changes so we can look at including the functionality in HASS? You wouldn't have to add it to all components.

The issue exists in the latest version of Home Assistant.

OK
On May 30, 2018 16:54, "Jeff Wilson"<EMAIL_ADDRESS>wrote:
The issue exists in the latest version of Home Assistant.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/home-assistant/home-assistant/issues/4005#issuecomment-393193515,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAKuaeDuRXIdQcK51rSBpQYJI6vjNKj6ks5t3rKkgaJpZM4KeKcr
.

Hey man,
Have you tried disabling flux from periodically updating? Do that, then simply call the fluxer switch « manually » in the action after the light.turn_on (with a delay 0.5s) after each motion event or switch toggle.
My switches all call flux update 0.5s after every toggle.
My motion sensors all call flux update after every turn_on (during the evening only).
The only shortcoming for this method is if you turn on lights during the daytime with a switch (not with motion sensors). This means they will flux update once when you toggle the switch, and that’s it.

On 28 Oct 2018, at 16:27, IceEyz<EMAIL_ADDRESS>wrote:
This issue still exists.
I've currently settled with fast or no transitions, or automations that stop the flux component before requesting a slow light transition.
A service that would allow changing an entity's attributes without changing it's power would fix this. Checking a light's current state doesn't cut it, since the current state is not telling you whether the light may be in a transition towards on or off.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Confirmed. I did this, same residual effect of sometimes coming on in the wrong flux state then updating over the next minute or so.
Still kind of hack-y.

From: chimpy<EMAIL_ADDRESS>Sent: Sunday, October 28, 2018 3:45 PM
To: home-assistant/home-assistant
Cc: alorman; Comment
Subject: Re: [home-assistant/home-assistant] Light component always sending the 'on' attribute, making it impossible to use physical switches together with HA. (#4005)
Hey man,
Have you tried disabling flux from periodically updating? Do that, then simply call the fluxer switch « manually » in the action after the light.turn_on (with a delay 0.5s) after each motion event or switch toggle.
My switches all call flux update 0.5s after every toggle.
My motion sensors all call flux update after every turn_on (during the evening only).
The only shortcoming for this method is if you turn on lights during the daytime with a switch (not with motion sensors). This means they will flux update once when you toggle the switch, and that’s it.

On 28 Oct 2018, at 16:27, IceEyz<EMAIL_ADDRESS>wrote:
This issue still exists.
I've currently settled with fast or no transitions, or automations that stop the flux component before requesting a slow light transition.
A service that would allow changing an entity's attributes without changing it's power would fix this. Checking a light's current state doesn't cut it, since the current state is not telling you whether the light may be in a transition towards on or off.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/home-assistant/issues/4005#issuecomment-433735318, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMTrymQvV-TSz9x4ubtA_sntO46Mi__8ks5upglXgaJpZM4KeKcr.

True. I guess what we really want is a kind of lifx_set_state to be used across all lights for the fluxer.

On 28 Oct 2018, at 20:49, alorman<EMAIL_ADDRESS>wrote:
Confirmed. I did this, same residual effect of sometimes coming on in the wrong flux state then updating over the next minute or so.
Still kind of hack-y.

From: chimpy<EMAIL_ADDRESS>Sent: Sunday, October 28, 2018 3:45 PM
To: home-assistant/home-assistant
Cc: alorman; Comment
Subject: Re: [home-assistant/home-assistant] Light component always sending the 'on' attribute, making it impossible to use physical switches together with HA. (#4005)
Hey man,
Have you tried disabling flux from periodically updating? Do that, then simply call the fluxer switch « manually » in the action after the light.turn_on (with a delay 0.5s) after each motion event or switch toggle.
My switches all call flux update 0.5s after every toggle.
My motion sensors all call flux update after every turn_on (during the evening only).
The only shortcoming for this method is if you turn on lights during the daytime with a switch (not with motion sensors). This means they will flux update once when you toggle the switch, and that’s it.

On 28 Oct 2018, at 16:27, IceEyz<EMAIL_ADDRESS>wrote:
This issue still exists.
I've currently settled with fast or no transitions, or automations that stop the flux component before requesting a slow light transition.
A service that would allow changing an entity's attributes without changing it's power would fix this. Checking a light's current state doesn't cut it, since the current state is not telling you whether the light may be in a transition towards on or off.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/home-assistant/issues/4005#issuecomment-433735318, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMTrymQvV-TSz9x4ubtA_sntO46Mi__8ks5upglXgaJpZM4KeKcr.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/home-assistant/home-assistant/issues/4005#issuecomment-433735606, or mute the thread https://github.com/notifications/unsubscribe-auth/AAXOocrOCjnuVezT6S6zrUQFOaKJSwYzks5upgpagaJpZM4KeKcr.

I would still like the light component to support changing the attributes of a light without turning it on.
This should be taken care of by the state machine, so that when the 'on' attribute is sent, the correct (last) values could be sent alongside.

Is this still an issue you are experiencing? Can you please try upgrading to the latest version of Home Assistant (0.90) and report back if this is still a problem? Thanks!

Yes this is still a feature that's required to solve problems with transitioning lights.

Still an issue on tradfri

This is still an ongoing issue with 0.103.6 and Trådfri lights. Clearly related to HA having stale status information from the gateway. I've tried various workarounds including decreasing transition time, increasing update interval, moving the interval to an automation, automating power-cycling of the Trådfri gateway overnight. Each measure reduces the incidence of the problem, but it is not completely eliminated. Another factor may be the number of devices, I have some large groups with 6 lights in each and a total of 30+ lights. It seems that the Trådfri gateway can become slow to poll/update status and so when switching many lights at once maybe some events are dropped. Despite this I still value the Flux component for the needed ability to change colour temperature during the day - it was a primary use case for implementing smart lighting and HA in the first instance. I am still hoping for a real solution to this problem.

eh this bot again... just because issue doesnt have activity doesn't mean it's ok to close it. When I see already open ticket for a bug I dont think "let's comment here  to send more notifications to random people" but "cool, someone already opened it, let's wait for reaction".

I read through all the conversation here and it seems that the only possible solution is to support set color/brightness without changing power states. However, it will require the devices to support. Many light bulbs only support changing color/brightness when turning on, which is the same behavior as HA. There is no easy fix for this problem without hardware support. And I think that is why this issue has been here for such a long time.

I believe home-assistant needs a component to represent the configuration of sensors and hardware switches and their related configuration.
At least for Philips Hue the configuration defining what the system will do when a for example a PIR sensor is triggered is accessible via the API. I don't own a hardware switch, but I think that the configuration for switches is the same as sensors for Hue. I don't think that the light component can cover that. In case of hue it is covered by different endpoints.
With hue you can make a POST request to /api/<username>/rules
with
{  "name":"Wall Switch Rule",    "conditions":[         {"address":"/sensors/2/state/buttonevent","operator":"eq","value":"16"}    ],    "actions":[             {"address":"/groups/0/action","method":"PUT", "body":{"scene":"S3"}} ]}
in the body which translates to  “If sensor 2 has created an event with number 16 then activate scene S3. https://developers.meethue.com/develop/hue-api/6-rules-api/