[Discussion] General tutorial improvements?

I would like to ask people who used these tutorials and opened issues early on to reflect a bit:
After you learned seq2seq implementation in TF, what would you change in the tutorials? What was confusing/misleading?
@brortao
@suriyadeepan
@yanwii

The best tutorial about RNN in TF that I have ever read.
It would be great if you add:

How we can assign ID numbers to the each word from corpus(the best way with TF API)
What if would like to download pre-trained embeddings

Yes, these tutorials were very helpful. Thank you for writing them!
Using pre-trained embeddings was also an issue I came across. One of the main difficulties I've had with learning to write encoder-decoder models in TF has been the rapidly changing API. I don't think that your tutorials actually use the legacy seq2seq API at any point - this is a selling point that's probably worth noting!

These tutorials help a lot. Thanks so much!
But I just consider that how to coding after we change the parameter time_major. It seems that the code would change a lot if we set the parameter time_major as True which means the format of the inputs is [batch_size, time_major].

How can I implement attention in 'Advanced dynamic seq2seq with TensorFlow'

I also want to ask the question that @pushpankar asked, it seems in 2-seq2seq-advnaced ipython notebook there aren't any implementation for attention mechanism

@pushpankar
@ryh95
Yep, attention implementation is missing as of now. I was going to implement it in tutorial 2.5, but switched to pytorch soon after finishing tutorial 3.
I would definitely like to return to it at some point in the future.

Matvey:
Thank you for tutorial. I have couple of questions regarding the Tutorial #1.

Is the seq2seq trained to output  [W, X, Y, Z, ] or just [X,Y,Z, ] ?
The vocab_size is set to 10 ? why? and why we have input_embedding_size = 20 which is greater than vocab_size? I would expect that vocab_size should be far greater than embedding_size?
Should we include less.close() at the end to close interaction session?

@ematvey Thank you for your tutorial. Best one I've found yet (and I've looked at lots of them). I am implementing a multi-dimensional regression seq2seq with Mixture Density Networks. If you could explain how to implement attention mechanism then it would be perfect.
Again, thanks for the tutorial. It is awesome as is!!


Add file for running docker on windows

@mricos , this needs a little love from you before a final merge - specifically, explaining why winpty needs to be at the start of the command. let me know if I can assist.

Thanks Greg this is great, I'll merge then then refine. This will get people going.


Add support for Webpack 2.2 RC, fixes #309

Should allow this package to be installed alongside Webpack 2.2 RC releases by adding it to peer dependencies.

Current coverage is 86.14% (diff: 100%)

Merging #310 into master will increase coverage by 0.30%

@@             master       #310   diff @@
==========================================
  Files             4          4
  Lines           332        332
  Methods          68         68
  Messages          0          0
  Branches         71         71
==========================================
+ Hits            285        286     +1
+ Misses           47         46     -1
  Partials          0          0

Powered by Codecov. Last update 8232a3e...040ddec

Oh geez, there's already 2 other PRs for this. Mornings... Closing in favor of https://github.com/webpack/extract-text-webpack-plugin/pull/306


Expose CPU/memory/disk information

Would love to have the agent expose CPU, memory, and disk information about the machine it's running on to the buildkite service.
For example, we've just added 2 new, beefier builders and want to retire the old ones, but aside from IP addressing, there's not really a means to differentiate them in the UI.

I like the idea of showing system stats, but for the differentiating of agents have you checked out the --name argument? (I noticed you're not using it). You can also specify a %n pattern in it (e.g. --name "beefy-agents-%n"). We do this for ours ("buildkite-ci-%n")

I actually started this a while back! But I couldn't find a cross platform library that'd let me get this info.

You may want to take a look at: https://github.com/kelseyhightower/terminus
:grin:

I actually saw that one, but no Windows support :P I'll keep looking thoughQ

Now thanks to proctitle support in the linux build we've support for adding linux-only features. So we could look at adding this in via terminus…

Also found this: https://github.com/shirou/gopsutil

We're doing some spring cleaning of our GitHub issues, and I might close this one for now. Tracking stats is a really interesting idea, but not sure how useful it'd be when you've got 10-100's of agents all running on the same machine. We totally want to improve the agents page in the future though so you can get a sense of how an agent is performing.


Update Survival analysis with lifelines.rst

Added  'exponential Greenwood CI' to the documents. The link was also dead. I included another link about the method instead.

This looks a good change :)

Thanks @springcoil. Should I close this?

Never mind. I guess this hasn't been approved yet.

👍 thanks for the updates, @javadnoorb!

Thanks @CamDavidsonPilon


Add more logs trying to see what is wrong with file uploads

Task linked: QF-2540 Debug EmptyContentError: Empty content when uploading files


TP-LINK L520E

Hello
I have used the integration to control successfully Tapo devices ( P100 , L530E).
Today I added the TAPO L520E and although it was discovered only 2 entitles were identified  - RF Signal and overheat.
Unfortunately ON/Off and brightness  has not been identified so I cannot control the bulb.
Should I provide any assistance with logs please let me know to submit them.

Best Regards and thanks for your efforts.

Hello
I added the following line on const.py , restarted the HA and all functionality has been available for L520E
SUPPORTED_DEVICE_AS_LIGHT = {
"l920": SUPPORT_BRIGHTNESS | SUPPORT_COLOR,
"l900": SUPPORT_BRIGHTNESS | SUPPORT_COLOR,
"l530": SUPPORT_BRIGHTNESS | SUPPORT_COLOR_TEMP | SUPPORT_COLOR,
"l510": SUPPORT_BRIGHTNESS,
"l520": SUPPORT_BRIGHTNESS,
Pease update the sources for any future use.
Regards

Thanks for support, you can try to open a pull request with these changes. I will approve and release a new version

New release 1.2.12 contains the l520 support :)

Greetings! I have the same problem with Tapo L520E.

Same problem with Tapo L530E, displays as L530 without color control.
Integration version 3.0.0 (HACS)
Core 2024.3.1
Supervisor 2024.03.0
Operating System 12.1
Frontend 20240307.0


[SP-5181] Backport of PDI-17759 - XSD Validator step and job entry ar…

…e vulnerable to XXE hacks (8.3 Suite)
@pentaho-lmartins @ssamora

Build Completed
:fire: This pull request has some issues. It would be preferable to fix them in order for it to be just perfect. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
mvn -B -f 'pom.xml' -pl 'core,plugins/xml/core' -P '!assemblies' -Dsurefire.runOrder=alphabetical -Daudit -amd clean install

Cleanup Commands
mvn -B -f 'pom.xml' -pl 'core,plugins/xml/core' -P '!assemblies' -amd build-helper:remove-project-artifact

Changed files
  core/src/main/java/org/pentaho/di/core/Const.java
  plugins/xml/core/src/main/java/org/pentaho/di/job/entries/xsdvalidator/JobEntryXSDValidator.java
  plugins/xml/core/src/main/java/org/pentaho/di/trans/steps/xsdvalidator/XsdValidator.java
  plugins/xml/core/src/main/java/org/pentaho/di/trans/steps/xsdvalidator/XsdValidatorMeta.java
  plugins/xml/core/src/main/resources/org/pentaho/di/job/entries/xsdvalidator/messages/messages_en_US.properties
  plugins/xml/core/src/main/resources/org/pentaho/di/trans/steps/xsdvalidator/messages/messages_en_US.properties

Unit Test Coverage
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.

:warning: Coverage Changes (click to expand)
org.pentaho.di.job.entries.evalfilesmetrics.JobEntryEvalFilesMetrics

Branch Change: -0.4% :small_red_triangle_down:
Complexity Change: -0.5% :small_red_triangle_down:
Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.job.entries.ftpsget.JobEntryFTPSGet

Branch Change: -0.6% :small_red_triangle_down:
Complexity Change: -0.5% :small_red_triangle_down:
Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.step.BaseStep

Branch Change: -0.6% :small_red_triangle_down:
Complexity Change: -0.5% :small_red_triangle_down:
Instruction Change: -0.7% :small_red_triangle_down:
Line Change: -0.8% :small_red_triangle_down:
Method Change: -0.9% :small_red_triangle_down:

org.pentaho.di.trans.step.StepMeta

Branch Change: -0.6% :small_red_triangle_down:
Complexity Change: -0.5% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:
Line Change: -0.3% :small_red_triangle_down:

org.pentaho.di.trans.step.StepStatus

Branch Change: -3.3% :small_red_triangle_down:
Complexity Change: -1.6% :small_red_triangle_down:
Instruction Change: -1.5% :small_red_triangle_down:

org.pentaho.di.trans.steps.constant.ConstantMeta

Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.csvinput.CsvInputMeta

Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.excelwriter.ExcelWriterStepMeta

Branch Change: -1.3% :small_red_triangle_down:
Complexity Change: -0.7% :small_red_triangle_down:

org.pentaho.di.trans.steps.groupby.GroupByMeta

Branch Change: -2% :small_red_triangle_down:
Complexity Change: -2.1% :small_red_triangle_down:
Instruction Change: -0.3% :small_red_triangle_down:
Line Change: -0.7% :small_red_triangle_down:

org.pentaho.di.trans.steps.ldapinput.LDAPInputMeta

Branch Change: -1.6% :small_red_triangle_down:
Complexity Change: -0.9% :small_red_triangle_down:
Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.memgroupby.MemoryGroupByMeta

Branch Change: -1.1% :small_red_triangle_down:
Complexity Change: -1.3% :small_red_triangle_down:
Instruction Change: -0.1% :small_red_triangle_down:
Line Change: -0.4% :small_red_triangle_down:

org.pentaho.di.trans.steps.processfiles.ProcessFilesMeta

Branch Change: -3.5% :small_red_triangle_down:
Complexity Change: -2.1% :small_red_triangle_down:
Instruction Change: -0.4% :small_red_triangle_down:

org.pentaho.di.trans.steps.sort.SortRowsMeta

Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.gpload.GPLoadMeta

Branch Change: -0.9% :small_red_triangle_down:
Complexity Change: -0.8% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:

org.pentaho.di.job.entries.xsdvalidator.JobEntryXSDValidator

Complexity Change: -5.4% :small_red_triangle_down:
Method Change: -9.6% :small_red_triangle_down:

Note: The list of offending coverage changes extends beyond the presented results and was truncated to prevent reaching the comment size limit.


ansible errors on provision or up

Ansible version is 2.1?
(girder)elysium:HPCCloud-deploy tristan$ vagrant provision
==> hpccloud: Running provisioner: ansible...
    hpccloud: Running ansible-playbook...
PYTHONUNBUFFERED=1 ANSIBLE_FORCE_COLOR=true ANSIBLE_HOST_KEY_CHECKING=false ANSIBLE_SSH_ARGS='-o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o ControlMaster=auto -o ControlPersist=60s' ansible-playbook --connection=ssh --timeout=30 --limit='hpccloud' --inventory-file=/Users/tristan/Envs/girder/HPCCloud-deploy/.vagrant/provisioners/ansible/inventory --extra-vars={"default_user":"vagrant","development":"1","hpccloud_password":"letmein","demo":false} -vv ansible/site.yml

PLAY [None] *******************************************************************

GATHERING FACTS ***************************************************************
<<IP_ADDRESS>> REMOTE_MODULE setup
ok: [hpccloud]

TASK: [fail msg="Playbook requires ansible >= {{required_ansible_version}}"] ***
failed: [hpccloud] => {"failed": true}
msg: Playbook requires ansible >= 2.0.2

FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
           to retry, use: --limit @/Users/tristan/site.retry

hpccloud                   : ok=1    changed=0    unreachable=0    failed=1

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
(girder)elysium:HPCCloud-deploy tristan$

Yes 2.1 will do it.

wait...
(girder)elysium:HPCCloud-deploy tristan$ ansible --version
ansible 1.9.4

why would I keep getting this after
sudo pip install --upgrade ansible==2.1

it was falling back on an ansible version I had in /usr/bin/python instead of virtualenv's  x_X
closing

Different message now:
{"failed": true, "msg": "Failed to set permissions on the temporary files Ansible needs to create when becoming an unprivileged user. For information on working around this, see https://docs.ansible.com/ansible/become.html#becoming-an-unprivileged-user"}

What task is it failing on?

...
PLAY [Common configuration] ****************************************************

TASK [setup] *******************************************************************
fatal: [hpccloud]: FAILED! => {"failed": true, "msg": "Failed to set permissions on the temporary files Ansible needs to create when becoming an unprivileged user. For information on working around this, see https://docs.ansible.com/ansible/become.html#becoming-an-unprivileged-user"}

NO MORE HOSTS LEFT *************************************************************
	to retry, use: --limit @ansible/site.retry

PLAY RECAP *********************************************************************
hpccloud                   : ok=6    changed=4    unreachable=0    failed=1

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

Please try this, in ansible/roles/common/tasks/main.yml please add 'become: yes', where ever you see become_user

This is a known issue that is common for vagrant deployments because the default user for connecting to the machine is vagrant not root.    Because the machine is a trusted host (its a VM after all) I would recommend we add allow_world_readable_tmpfiles to the Vagrantfile's  ansible.extra_vars which (i believe)  should resolve the issue.

Tried rebranching from master added allow_world_readable_tmpfiles: true to ansible.extra_vars with no luck

This may need to go into the ansible.cfg file to work (e.g. it may be processed before extra_vars are taken into account).  If that doesn't work we'll have to do a little deeper digging.


cleanup(driver): allow some "write-like" syscall to send data also when they fail

What type of PR is this?
/kind cleanup
Any specific area of the project related to this PR?
/area driver-kmod
/area driver-bpf
/area driver-modern-bpf
Does this PR require a change in the driver versions?
No
What this PR does / why we need it:
This PR addresses some of the inconsistencies reported here https://github.com/falcosecurity/libs/issues/942#issuecomment-1463712325. More in detail, now we collect data also when the following syscalls fail:

[ ] sendmsg
[ ] wrte
[ ] sendto

This refactor will end I will close #942 when I will implement the last "write" syscalls pwrite64, writev ,pwritev
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

NONE

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: Andreagit97
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [Andreagit97]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: Andreagit97, FedeDP, incertum
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [Andreagit97,FedeDP,incertum]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


"npm uninstall" do not remove all files

Using "npm" from Debian stable. I am not familiar with npm and its universe.
I installed an application via
$ npm i https://github.com/vweevers/hallmark

First problem is that this command did create a new folder (node_modules) and two files (package-lock.json and package.json) direct in my current working folder. This is behavior I do not expect from a package manager. From my users perspective this is a bug. I would expect to get the application installed into the system (like pip(x) does it in the Python universe).
Second problem is that even after installing the "hallmark" command is not available in my PATH. Don't know how to execute it. What is it what "npm" does when not installing it?
Third problem is that $ npm uninstall hallmark did not remove the three objects from the file system I mention in the first problem.

This repo is for issue with the documentation site of npm itself. For bugs in the cli use https://github.com/npm/cli/issues.


cockpituous: Run release in a GitHub workflow

Enter the new world of GitHub actions [1]/GitLab pipelines [2]. This
simplifies our end of the infrastructure considerably:

No need any more to set up webhooks, all the relevant configuration
is right in the workflow file.

Does not need any infrastructure on our side any more.

GitHub automatically provides a temporary GITHUB_TOKEN with
sufficient write access to the project to publish a release, so we
don't need to carry around that secret.

[1] https://github.com/features/actions
[2] https://docs.gitlab.com/ee/ci/pipelines/

We have previously done this to cockpit-ostree and cockpit-podman, and I'm currently converting starter-kit.
cockpit-ostree did a successful release yesterday.
This is an effort to simplify/robustify our infrastructure and make projects less dependent on the Cockpit team infra/secrets.

@Gundersanne : FYI (just in case you release c-composer tomorrow)

@Gundersanne : FYI (just in case you release c-composer tomorrow)

And @jkozol too 😉

@larskarlitski , @jkozol , is this d'accord with you as well?


2021.12 - implements device_state_attributes

Hi,
I´m receiving below error messages since I upgraded to HA 2021.12.
Logger: homeassistant.helpers.entity
Source: helpers/entity.py:549
First occurred: 08:59:25 (6 occurrences)
Last logged: 08:59:25
Entity sensor.feuchtigkeitsensor_soil_humidity (<class 'custom_components.gardena_smart_system.sensor.GardenaSensor'>) implements device_state_attributes. Please report it to the custom component author.
Entity sensor.feuchtigkeitsensor_battery_level (<class 'custom_components.gardena_smart_system.sensor.GardenaSensor'>) implements device_state_attributes. Please report it to the custom component author.
Entity sensor.gartenbewasserung_battery_level (<class 'custom_components.gardena_smart_system.sensor.GardenaSensor'>) implements device_state_attributes. Please report it to the custom component author.
Entity switch.gartenbewasserung (<class 'custom_components.gardena_smart_system.switch.GardenaSmartWaterControl'>) implements device_state_attributes. Please report it to the custom component author.
Entity switch.pumpe (<class 'custom_components.gardena_smart_system.switch.GardenaPowerSocket'>) implements device_state_attributes. Please report it to the custom component author.

My integration is also broken since upgrading to 2021.12
This error originated from a custom integration.
Logger: homeassistant.config_entries
Source: custom_components/gardena_smart_system/init.py:87
Integration: Gardena Smart System integration (documentation, issues)
First occurred: 12:43:43 (1 occurrences)
Last logged: 12:43:43
Error setting up entry for gardena_smart_system
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 313, in async_setup
result = await component.async_setup_entry(hass, self)  # type: ignore
File "/config/custom_components/gardena_smart_system/init.py", line 51, in async_setup_entry
await hass.async_add_executor_job(gardena_system.start)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/gardena_smart_system/init.py", line 87, in start
self.smart_system.authenticate()
File "/usr/local/lib/python3.9/site-packages/gardena/smart_system.py", line 113, in authenticate
self.token = self.oauth_session.fetch_token(
File "/usr/local/lib/python3.9/site-packages/requests_oauthlib/oauth2_session.py", line 360, in fetch_token
self._client.parse_request_body_response(r.text, scope=self.scope)
File "/usr/local/lib/python3.9/site-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 429, in parse_request_body_response
self.token = parse_token_response(body, scope=scope)
File "/usr/local/lib/python3.9/site-packages/oauthlib/oauth2/rfc6749/parameters.py", line 425, in parse_token_response
validate_token_parameters(params)
File "/usr/local/lib/python3.9/site-packages/oauthlib/oauth2/rfc6749/parameters.py", line 432, in validate_token_parameters
raise_from_error(params.get('error'), params)
File "/usr/local/lib/python3.9/site-packages/oauthlib/oauth2/rfc6749/errors.py", line 402, in raise_from_error
raise cls(**kwargs)
oauthlib.oauth2.rfc6749.errors.InvalidGrantError: (invalid_grant) The provided access grant is invalid, expired, or revoked.

Hi @LucTs
if you're using HACS, navigate to HACS, Integrations, click the 3 dots on the "Gardena Smart System" card, then "Redownload". In the popup, choose "master" in the "Select version"-dropdown ... Then "DOWNLOAD", restart HA, and you should be done :) ... (maybe it needs a second HA-restart - don't ask me why ;))
Hope that helps :)
cheers,

I have the same issue. I tried the workaround by re-downloading master and restarting twice but that didn't work.
The proper way to handle new features is by releasing a new version, one should not be forced to download the master branch.

I have the same issue. I tried the workaround by re-downloading master and restarting twice but that didn't work.
The proper way to handle new features is by releasing a new version, one should not be forced to download the master branch.

Hi @rasssta
you're absolutely right ;) ... I'm also just a user who's looking for fixes/workarounds. And I'm absolutely with you, the proper way would be to release a new version, then such workarounds won't be needed :) ... @grm is there maybe a comment from your side? :) ... May we can help you maintaining this repo?

Ok, I'll release a new version tomorrow.
The issue I have today is that depending on installation (docker, directly
from pip, ...), a required library has breaking changes that make it
incompatible.
I am planning on rewriting everything to not be dependent on this library
but did not find the time yet :)
I'll do a new release tomorrow !
Thanks for the report
Le jeu. 27 janv. 2022 à 21:30, unsign @.***> a écrit :

I have the same issue. I tried the workaround by re-downloading master and
restarting twice but that didn't work.
The proper way to handle new features is by releasing a new version, one
should not be forced to download the master branch.
Hi @rasssta https://github.com/rasssta
you're absolutely right ;) ... I'm also just a user who's looking for
fixes/workarounds. And I'm absolutely with you, the proper way would be to
release a new version, then such workarounds won't be needed :) ... @grm
https://github.com/grm is there maybe a comment from your side? :) ...
May we can help you maintaining this repo?
—
Reply to this email directly, view it on GitHub
https://github.com/py-smart-gardena/hass-gardena-smart-system/issues/96#issuecomment-1023613063,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAARGI72DA766M63RDIHUN3UYGTN3ANCNFSM5J5PCNMA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID:
@.***
com>

Before releasing a new version.  You are using the beta version ?
Or the main version ? (they are not using the same implementation of the faulty lib)

I'm using the main version. Not sure who the question was directed to? :)

@grm I'm using the master branch

@grm will you release a new stable version? That would be nice.


Make Taggable of AutomationManager's authentications/playbooks/repos

https://bugzilla.redhat.com/show_bug.cgi?id=1526219
https://bugzilla.redhat.com/show_bug.cgi?id=1526218
https://bugzilla.redhat.com/show_bug.cgi?id=1526217

@miq-bot add_labels enhancement, providers/ansible_tower

@jameswnl probably should add acts_as_miq_taggable to the base models not just the ansible ones

@agrare I actually thought about adding to the base models. But the BZs ask for scope of Ansible.  Now I've added to AutomationManager.
I don't have specific reason opposing to tag the base models.   But If we do want to, essentially we are making all Authentication taggable.  Is that Ok?

@jameswnl okay that's fine with me, @h-kataria do you know if not having these at the base model will impact the UI RBAC work?

@agrare @jameswnl these changes don't look harmful to me, we will need these to turn on Tagging support in UI for these models.

Thanks @h-kataria

@h-kataria what abstraction level does UI call on? Does UI call on ManageIQ::Providers::AutomationManager?  Or it call on the base models?

gaprindashvili/yes ?

@miq-bot add_labels gaprindashvili/yes

Gaprindashvili backport details:
$ git log -1
commit 71b010697829b6ba2451b14dcae1a9ab2d8987c8
Author: Adam Grare<EMAIL_ADDRESS>Date:   Tue Feb 27 14:54:27 2018 -0500

    Merge pull request #17049 from jameswnl/taggable

    Make Taggable of AutomationManager's authentications/playbooks/repos
    (cherry picked from commit dd90df8863441ef705f6dfc1e6f3f0b338ef58a5)

    https://bugzilla.redhat.com/show_bug.cgi?id=1553393
    https://bugzilla.redhat.com/show_bug.cgi?id=1553768
    https://bugzilla.redhat.com/show_bug.cgi?id=1553396

@jameswnl I had to move acts_as_miq_taggable to base classes to fix errors when editing Ansible Credential/Repository (https://github.com/ManageIQ/manageiq/pull/17244)


Compile to runnable jar (with runtime and dependencies)

I am trying to figure out how to compile a Ceylon program as a runnable jarfile, complete with the Ceylon runtime and the transitive closure of dependencies (Ceylon modules and other jarfiles) all packaged up as a single "fat jar". As far as I can tell, this is not currently possible without doing it manually:
http://ceylon-lang.org/documentation/1.1/reference/interoperability/ceylon-on-jvm/
I would suggest that compiling to "fat jar" would be a much more useful default for many people than compiling to .car files, because in most cases end users of software written in Ceylon will want to be able to simply launch a complete compiled program on the JVM using java -jar prog.jar (or double-click on the jarfile in a desktop environment), and not have to manually install and set up a separate Ceylon runtime, or launch the program using ceylon run or similar.
I see some discussion about this, but I figured I'd create a bug for it, since I believe this would be widely useful. As it is, I can't figure out how I'm going to get Ceylon to work on my company's (obtuse) internal build system, due to the separation of runtime and generated code (I really just need a single runnable jar to be generated from compiling Ceylon programs, anything else is going to be extremely complicated to get working).

So this is related to the Android work I'm doing where we will be able to set up the metamodel from a fat jar. Once I've merged this part, making the fat jar is trivial.

That's awesome, thanks. Dare I ask about your projected timeline?

Created #5937 to track.
Note that given a fat jar you won't be able to access any module outside of the far jar.
As a temporary workaround you can already run your ceylon module with plain java tools: java -cp `ceylon classpath my.module/1` com.redhat.ceylon.compiler.java.runtime.Main my.module/1.

I have this working in a prototype already, for Android. Hopefully I can merge this in February.

I'll just mention that I'm looking forward to this once it is available. If the place where my Ceylon code executes doesn't need any dependency on Ceylon (and already has a dependency on Java) then it make it just one step easier to use.

Done!

I'm getting:
$ ceylon fat-jar hello/1.0.0
ceylon fat-jar: null
java.lang.NullPointerException
	at com.redhat.ceylon.tools.fatjar.CeylonFatJarTool.run(CeylonFatJarTool.java:124)
	at com.redhat.ceylon.common.tools.CeylonTool.run(CeylonTool.java:520)
	at com.redhat.ceylon.common.tools.CeylonTool.execute(CeylonTool.java:405)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.redhat.ceylon.launcher.Launcher.runInJava7Checked(Launcher.java:115)
	at com.redhat.ceylon.launcher.Launcher.run(Launcher.java:41)
	at com.redhat.ceylon.launcher.Launcher.run(Launcher.java:34)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.redhat.ceylon.launcher.Bootstrap.runInternal(Bootstrap.java:139)
	at com.redhat.ceylon.launcher.Bootstrap.run(Bootstrap.java:93)
	at com.redhat.ceylon.launcher.Bootstrap.main(Bootstrap.java:85)

Should be fixed.

Still exactly the same error, but now if I do ceylon fat-jar --out hello.jar hello/1.0.0 I get:
$ ceylon fat-jar --out hello.jar hello/1.0.0
ceylon fat-jar: invalid entry compressed size (expected 696 but got 695 bytes)
java.util.zip.ZipException: invalid entry compressed size (expected 696 but got 695 bytes)
	at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:248)
	at java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:177)
	at java.util.jar.JarOutputStream.putNextEntry(JarOutputStream.java:109)
	at com.redhat.ceylon.tools.fatjar.CeylonFatJarTool.run(CeylonFatJarTool.java:171)
	at com.redhat.ceylon.common.tools.CeylonTool.run(CeylonTool.java:520)
	at com.redhat.ceylon.common.tools.CeylonTool.execute(CeylonTool.java:405)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.redhat.ceylon.launcher.Launcher.runInJava7Checked(Launcher.java:115)
	at com.redhat.ceylon.launcher.Launcher.run(Launcher.java:41)
	at com.redhat.ceylon.launcher.Launcher.run(Launcher.java:34)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.redhat.ceylon.launcher.Bootstrap.runInternal(Bootstrap.java:139)
	at com.redhat.ceylon.launcher.Bootstrap.run(Bootstrap.java:93)
	at com.redhat.ceylon.launcher.Bootstrap.main(Bootstrap.java:85)
	Suppressed: java.util.zip.ZipException: invalid entry compressed size (expected 696 but got 695 bytes)
		at java.util.zip.ZipOutputStream.closeEntry(ZipOutputStream.java:248)
		at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:343)
		at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:238)
		at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:360)
		at com.redhat.ceylon.tools.fatjar.CeylonFatJarTool.run(CeylonFatJarTool.java:179)
		... 16 more

Damnit, try now?

Ok, the NPE is gone, but now I always get the ZIP error, no matter what

Perhaps this might help: http://stackoverflow.com/questions/13435683/invalid-entry-compressed-size

Yup, setting the zip entry size to -1 before adding it fixes the problem. I pushed the fix.

Thanks. Weird that I did not get those errors, though…

Perhaps the combination of files that was used in your case didn't result in a change of size while in my case it did, dunno.

I did find another issue though with resources, I opened an issue for it: #6181

@FroMage: thanks for your work on this! Is there any documentation on how this works and how to use it? In particular I'm interested in any caveats or gotchas to do with using Ceylon fat-jars to interoperate more easily with legacy Java code. (I don't know how static Ceylon metamodels work together with the old classpath model.)

In theory the fat-jar is the whole application, so it's not something you'd add to an existing classpath, although there's not reason why it wouldn't work. The metamodel should be automatically set up in the fat-jar case.


Conditionnal return type not recognized inside the function

🔎 Search Terms
"not assignable",
"parametized argument",
"conditional return"
🕗 Version & Regression Information

This is the behavior in every version I tried, and I reviewed the FAQ for entries about 5.1.6

⏯ Playground Link
https://www.typescriptlang.org/play/?ts=5.1.6#code/JYOwLgpgTgZghgYwgAgJIBMLmDYcBGANigN7LDoBcyAzmFKAOYDcyIcAthAPzV0MgWyAL4BYAFASYAVxAIwwAPYhkHAJ4y5AHgAqGMMggAPSCHQ00mbLgLFkAHzbTChAHwAKUDEU1qe9GAAlH76hiZY5pZYCjZEKNy09EzI1CDOhMgkEsg55DDIniDeFgC8JU4ugZnZubVQEGDSUCppLsw1tTkA9F0AolBQfmoADigA5K2EY+QWIIoGcDQ0wIzscchgihsj4-4GxqaRGNE4eOsJ-Mmp6WMAdO4ATADMDw+BHSKGhDSkH3UNTRUXh8two7XEnVyPX6g2QOh2yDGl0E02As3myEWy1WthQm22o0RezChwsx2sZzsFySghSFSm92er3eENyYnE7IkxAMYA4w2Q5XUmgQ7kmgXBPRKrmQ3I2fOuLi5DTlwweAtUGlkIpI7C41DGYwANOQqIixsJxRJJdLZbzVXwaYwJEA
💻 Code
interface Identifiable { id: string; name?: string; }

function myfunc<TIdt extends Identifiable | null>(infos: TIdt): TIdt extends Identifiable ? string : null {
    if (infos == null) {
        return null;
        //Err: Type 'null' is not assignable to type 'TIdt extends Identifiable ? string : null'.(2322)
    } else {
        return infos.id;
        //Err: Type 'string' is not assignable to type 'TIdt extends Identifiable ? string : null'.(2322)
    }
}

let tmp = myfunc(null);
//=> let tmp: null
let tmp2 = myfunc({name: '', id: ''});
//=> let tmp2: string

🙁 Actual behavior
tsc doesn't seem to match the if statement with the conditional return.
On the other hand it understand what I want to say when calling the method.
🙂 Expected behavior
What I expect is for typescript to understand in the if that if the argument is null then I can only return null, and alse only return a string, like defined in the function signature.
Additional information about the issue
I have the impression that the signature is correct as typescript infer correctly when calling the function, so the problem is inside the function with the if?

Duplicate of #33912.

Solution
You can resolve this by using type assertions or by separating the logic into distinct functions. Here's a solution using type assertions:
typescript
interface Identifiable { id: string; name?: string; }

function myfunc<TIdt extends Identifiable | null>(infos: TIdt): TIdt extends Identifiable ? string : null {
    if (infos == null) {
        return null as any;
    } else {
        return infos.id as any;
    }
}

In the code above:
return null as any; tells TypeScript to treat null as the correct return type (TIdt extends Identifiable ? string : null).
return infos.id as any; similarly tells TypeScript to treat infos.id as the correct return type.

Explanation
as any works as a workaround to convince TypeScript to accept the return value. However, this can be less safe, as it bypasses some of TypeScript's type checks.

Alternatively, you can split the logic into two functions, which can be more type-safe:
typescript
function myfuncIdentifiable(infos: Identifiable): string {
    return infos.id;
}

function myfunc<TIdt extends Identifiable | null>(infos: TIdt): TIdt extends Identifiable ? string : null {
    if (infos == null) {
        return null as any;
    } else {
        return myfuncIdentifiable(infos as Identifiable) as any;
    }
}

This way, the type logic is handled separately, and TypeScript is less likely to encounter problems with narrowing.
Summary
The root cause of this issue is TypeScript's inability to correctly narrow the conditional type within the function body.
The workaround involves using type assertions to force TypeScript to accept the return type.
Alternatively, splitting the function can make the type logic clearer and safer.

Looks like a garbage ChatGPT response.

Effectively a duplicate of #33912, will watch this one.
Will use function overloading in the meantime.


Second batch of RosettaCode

In this one, I rewrote the commit to squash them, clean them and add tests.
Since the commits are rewrote, their sha1 differ so the PR numbers are added in the descriptions of the commits.

Missing signed-off-by I'm starting to thing about lifting this requirement as the gain do not worth the pain. PR in github can be enough to track the author's authorization.

+1

+1


Easy Snapshots From CLI

Right now, to back up my Debian instance, I have set up a few Scheduled Task that exports the image every week and another that clean up the folders for .tar files 6 months and older.
This is a workaround solution really, as the image can be quite heavy, and fill up my storage quickly (hence my Schedule Task watcher). Adding options to take snapshots (i.e. the difference between states) would allow me (and others) to very easily/quickly revert changes as the current solution is a bit of an overkill.
I am not using any specific distro just the standard Debian and my goal here is simply to regularly back up my config, work, tools, etc.

If you are using WSL2 you have to just copy/backup the ext4.vhdx file.

@Biswa96 what is the point of the import/export feature then? 🤔

The --export option saves the distribution in a tar file. Copying the ext4.vhdx just saves the time and resources, IMO.

@Biswa96 As @aress31 said:

as the image can be quite heavy, and fill up my storage quickly

Copying the ext4.vhdx doesn't fix that issue by any means.  I think the request for a delta-based snapshot feature would be useful.
Random thought -- I saw in the <IP_ADDRESS> WSL2 kernel release patch notes that Btrfs support has been enabled.  I wonder if its snapshot support could be useful here.


Current grpc ruby gem not working with ruby versions with more than 1 patch digit

grpc will fail with a ruby version with more than one patch digit as in ruby 2.1.10. This comes from a bug fixed in protobuf 3.1.0

What version of the Ruby gem are you using? We made a change that should have fixed that (#7800) around the same time that we contributed that fix to protobuf. The fix should definitely be in the gRPC 1.0.1 gem.

I'm using latest grpc 1.0.1 but it is still pointing to protobuf 3.0.2 which contains the bug :(
$ gem dependency grpc
Gem grpc-1.0.1-universal-darwin
  bundler (~> 1.9, development)
  facter (~> 2.4, development)
  google-protobuf (~> 3.0.2)
  googleauth (~> 0.5.1)
  logging (~> 2.0, development)
  rake (~> 10.4, development)
  rake-compiler (~> 0.9, development)
  rake-compiler-dock (~> 0.5.1, development)
  rspec (~> 3.2, development)
  rubocop (~> 0.30.0, development)
  signet (~> 0.7.0, development)
  simplecov (~> 0.9, development)

Gem grpc-tools-1.0.1

addressed by https://github.com/grpc/grpc/pull/8914, this will be in the next release


How does Sentinl transform scripts works

I'm trying to add a new watcher to Sentinl equivalent to this example written for Elasticsearch Watcher
  "watch" : {
    "trigger" : {
      "schedule" : {
        "interval": "5m"
      }
    },
    "input" : {
      "search" : {
        "request": {
          "indices" : [ "<metricbeat-{now/d}>"],
          "body" : {
            "query": {
              "bool": {
                "filter": [
                  {
                    "range": {
                      "@timestamp": {
                        "from": "{{ctx.trigger.scheduled_time}}||-5m"
                      }
                    }
                  },
                  {
                    "term": {
                      "metricset.name": "filesystem"
                    }
                  },
                  {
                    "range": {
                      "system.filesystem.used.pct": {
                        "from": 0.5
                      }
                    }
                  }
                ]
              }
            },
            "size": 0,
            "aggs": {
              "by_host": {
                "terms": {
                  "field": "beat.hostname",
                  "size": "100"
                }
              }
            }
          }
        }
      }
    },
    "condition" : {
      "script" : "return ctx.payload.aggregations.by_host.buckets.size() > 0"
    },
    "actions" : {
      "logme-me-action" : {
        "transform" : {
          "script" : {
            "inline" : "return [ 'hosts' : ctx.payload.aggregations.by_host.buckets.stream().map(b -> b.key).collect(Collectors.toList())]"
          }
        },
        "logging"  : {
          "text" : "Over the limit: {{#join delimiter=', '}}ctx.payload.hosts{{/join delimiter=', '}}"
        }
      }
    }
  }
}

My Sentinel watcher input and condition look like this and they work correctly:
"input": {
      "search": {
        "request": {
          "index": [
            "<metricbeat-{now/d}>"
          ],
          "body": {
            "query": {
              "bool": {
                "filter": [
                  {
                    "range": {
                      "@timestamp": {
                        "from": "now-5m"
                      }
                    }
                  },
                  {
                    "term": {
                      "metricset.name": "filesystem"
                    }
                  },
                  {
                    "range": {
                      "system.filesystem.used.pct": {
                        "from": 0.5
                      }
                    }
                  }
                ]
              }
            },
            "size": 0,
            "aggs": {
              "by_host": {
                "terms": {
                  "field": "beat.hostname",
                  "size": "100"
                }
              }
            }
          }
        }
      }
    },
    "condition": {
      "script": {
        "script": "payload.aggregations.by_host.buckets.length > 0"
      }
    }

But I didn't get how to write this in Sentinl:
    "actions" : {
      "logme-me-action" : {
        "transform" : {
          "script" : {
            "inline" : "return [ 'hosts' : ctx.payload.aggregations.by_host.buckets.stream().map(b -> b.key).collect(Collectors.toList())]"
          }
        },
        "logging"  : {
          "text" : "Over the limit: {{#join delimiter=', '}}ctx.payload.hosts{{/join delimiter=', '}}"
        }
      }
    }

In which script language "transform" script must be written in Sentinl ? And how can I get the same transform result as above ?

Hi @mahdibensaid SENTINL scripts are pure javascript
In your case, you'll have to reimplement things in a standard functions, which should be fairly trivial with quite a few possible approaches for looping up to your likes.
In case you haven't, check out this presentation

Here's a fictional example for you to play with, adding a new custom object or array to the payload and filling it up with items obtained from a loop through your aggregation buckets:
    "transform": {
      "script": {
        "script": "payload.newdata=[];payload.aggregations.by_host.buckets.forEach(function(e){ payload.newdata.push(e.value) })"
      }
    }


Add log benchmark plot

Hi!
I was going through some old notebooks and I saw that I ended up changing the benchmark plot to a log plot for my report. I think this plot tells a clearer story, so feel free to use this log plot if you like it as well.

@josh146 it uses the same benchmark data as in the current plot, which I took quite a while ago, I want to say 2019? So they're probably a bit outdated to be fair.

Thank you @soudy :slightly_smiling_face:


fix: implemented network error handling for verify payment

What type of PR is this? (check all applicable)

[ ]  ♻ Refactor
[ ]  ✨ New Feature
[x]  🐛 Bug Fix
[ ]  📝 Documentation Update
[ ]  👷 Example Application
[ ]  🧑💻 Code Snippet
[ ]  🎨 Design
[ ]  📖 Content
[ ]  🧪 Tests
[ ]  🔖 Release
[ ]  🚩 Other

Description
This PR implements a try-and-catch block for the verifyPayment method in invoice.ts and returns false if a network error occurs
Related Tickets & Documents
Resolves https://github.com/getAlby/js-lightning-tools/issues/125

@Toheeb-Ojuolape thanks for the PR!
Can you please undo the changes to the lock files, they should not be in here.

@Toheeb-Ojuolape thanks for the PR!
Can you please undo the changes to the lock files, they should not be in here.

Hi @rolznz . This is done! Thank you so much for reviewing my PR

@Toheeb-Ojuolape please look at https://github.com/getAlby/js-lightning-tools/pull/153/files

@Toheeb-Ojuolape please look at https://github.com/getAlby/js-lightning-tools/pull/153/files

Hi @rolznz I think I see the issue. When I committed the first time, a commit linter ran which updated yarn.lock. Since my update isn't really a big change, I'll squash this PR and create a new one and use the --no-verify flag to ensure the yarn.lock file or no other file is updated. Thank you @rolznz .


add numbers to alphabet.png

add numbers to alphabet.png to fix "evilsker"

This isn't an enhancement, I think it's a bug in the original game. It also applies to symbols.

this is already being worked on


[e2e]: generic workflow_dispatch main default slsa3

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/10328463507
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.generic.workflow_dispatch.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.generic.workflow_dispatch.main.default.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Sat Aug 10 03:12:57 UTC 2024

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/10336531257
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.generic.workflow_dispatch.main.default.slsa3.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.generic.workflow_dispatch.main.default.slsa3.yml
Trigger: workflow_dispatch
Branch: main
Date: Sun Aug 11 03:08:32 UTC 2024
Tests are passing now. Closing this issue.


not_matching_project_rules_for param not working for some observations

Observations like http://www.inaturalist.org/observations/5946841 do not show up in http://www.inaturalist.org/observations?not_matching_project_rules_for=especies-en-riesgo-nom-059-de-mexico&place_id=any&project_id=especies-en-riesgo-nom-059-de-mexico&verifiable=any despite the fact that they violate the “must be on list” rule of the project

Should be fixed by https://github.com/inaturalist/iNaturalistAPI/commit/2fb0fbd55c37ec4e25b7c64ba02271556cf36d70 and https://github.com/inaturalist/iNaturalistAPI/commit/6a0b30f2d9f7a173f3cc697016c7bb5d5997abcc, and has been deployed.


RuntimeError: 'hon' calls async_write_ha_state

Describe the bug
RuntimeError: Detected that custom integration 'hon' calls async_write_ha_state from a thread other than the event loop, which may cause Home Assistant to crash or data to corrupt.
Environment (please complete the following information):

Core 2024.12.4
Supervisor 2024.12.0
hOn Integration Version 0.14.0
pyhOn Version [e.g. 0.13.1, can be found in device log]

Home Assistant Logs
RuntimeError: Detected that custom integration 'hon' calls async_write_ha_state from a thread other than the event loop, which may cause Home Assistant to crash or data to corrupt. For more information, see https://developers.home-assistant.io/docs/asyncio_thread_safety/#async_write_ha_state at custom_components/hon/sensor.py, line 877: self.async_write_ha_state(). Please report it to the author of the 'hon' custom integration
Exception ignored in: <class 'RuntimeError'>
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/awscrt/mqtt5.py", line 1471, in _on_publish
self._on_publish_cb(PublishReceivedData(publish_packet=publish_packet))
File "/usr/local/lib/python3.13/site-packages/pyhon/connection/mqtt.py", line 105, in _on_publish_received
self._hon.notify()
File "/usr/local/lib/python3.13/site-packages/pyhon/hon.py", line 130, in notify
self._notify_function(None)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 514, in async_set_updated_data
self.async_update_listeners()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 177, in async_update_listeners
update_callback()
File "/config/custom_components/hon/sensor.py", line 877, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1022, in async_write_ha_state
report_non_thread_safe_operation("async_write_ha_state")
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 368, in report_non_thread_safe_operation
report(
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 164, in report
report_usage(
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 242, in report_usage
_report_integration_frame(
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 340, in _report_integration_frame
raise RuntimeError( from a thread other than the event loop, which may cause Home Assistant to crash or data to corrupt. For more information, see https://developers.home-assistant.io/docs/asyncio_thread_safety/#async_write_ha_state at custom_components/hon/sensor.py, line 877: self.async_write_ha_state(). Please report it to the author of the 'hon' custom integration
dw_10067.zip
Data Archive
For further analysis, please add your appliance data archive here (if available)
Navigate to Settings -> Device & Services -> Haier hOn -> your device and press the Create Data Archive button.
Then open notifications to download the data zip archive.
To attach the file:

GitHub Web: Use the "Attach files by dragging & dropping, selecting or pasting them." function
GitHub Mobile: Upload the zip archive as image

same here, and the status of appliance is not being update, only on reload
2024-12-26 09:47:03.917 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration hon with title<EMAIL_ADDRESS>and entry_id: 01JG1xxxxxxxxxxxxxxx, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1, please report this issue
homeassistant  | Stack (most recent call last):
homeassistant  |   File "<frozen runpy>", line 198, in _run_module_as_main
homeassistant  |   File "<frozen runpy>", line 88, in _run_code
homeassistant  |   File "/usr/src/homeassistant/homeassistant/__main__.py", line 227, in <module>
homeassistant  |     sys.exit(main())
homeassistant  |   File "/usr/src/homeassistant/homeassistant/__main__.py", line 213, in main
homeassistant  |     exit_code = runner.run(runtime_conf)
homeassistant  |   File "/usr/src/homeassistant/homeassistant/runner.py", line 154, in run
homeassistant  |     return loop.run_until_complete(setup_and_run_hass(runtime_config))
homeassistant  |   File "/usr/local/lib/python3.13/asyncio/base_events.py", line 708, in run_until_complete
homeassistant  |     self.run_forever()
homeassistant  |   File "/usr/local/lib/python3.13/asyncio/base_events.py", line 679, in run_forever
homeassistant  |     self._run_once()
homeassistant  |   File "/usr/local/lib/python3.13/asyncio/base_events.py", line 2027, in _run_once
homeassistant  |     handle._run()
homeassistant  |   File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run
homeassistant  |     self._context.run(self._callback, *self._args)
homeassistant  |   File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2353, in async_forward_entry_setup
homeassistant  |     _report_non_awaited_platform_forwards(entry, "async_forward_entry_setup")
homeassistant  |   File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1199, in _report_non_awaited_platform_forwards
homeassistant  |     report_usage(
homeassistant  |   File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 234, in report_usage
homeassistant  |     _LOGGER.warning(msg, stack_info=True)

Same. I have an automation that reloads the integration every X minutes. I am not sure though how good it is for the system.

Same. I have an automation that reloads the integration every X minutes. I am not sure though how good it is for the system.

Could you share the automation, I don't know how to reload whole integration and reloading just entity does not work well. e.g. phase which fails with:
2024-12-27 22:30:00.180 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.hd_495ambb_1_s_phase fails
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 960, in async_update_ha_state
homeassistant  |     await self.async_device_update()
homeassistant  |   File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1318, in async_device_update
homeassistant  |     await self.async_update()
homeassistant  |   File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 596, in async_update
homeassistant  |     await self.coordinator.async_request_refresh()
homeassistant  |   File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 274, in async_request_refresh
homeassistant  |     await self._debounced_refresh.async_call()
homeassistant  |   File "/usr/src/homeassistant/homeassistant/helpers/debounce.py", line 114, in async_call
homeassistant  |     await task
homeassistant  |   File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 355, in async_refresh
homeassistant  |     await self._async_refresh(log_failures=True)
homeassistant  |   File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh
homeassistant  |     self.data = await self._async_update_data()
homeassistant  |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 279, in _async_update_data
homeassistant  |     raise NotImplementedError("Update method not implemented")
homeassistant  | NotImplementedError: Update method not implemented

yet another issue is:
homeassistant  | 2024-12-27 22:30:10.181 ERROR (MainThread) [custom_components.hon] Unexpected exception from <bound method DataUpdateCoordinator.async_refresh of <homeassistant.helpers.update_coordinator.DataUpdateCoordinator object at 0x7f6c251810>>
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/src/homeassistant/homeassistant/helpers/debounce.py", line 137, in _handle_timer_finish
homeassistant  |     await task
homeassistant  |   File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 355, in async_refresh
homeassistant  |     await self._async_refresh(log_failures=True)
homeassistant  |   File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 379, in _async_refresh
homeassistant  |     self.data = await self._async_update_data()
homeassistant  |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
homeassistant  |   File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 279, in _async_update_data
homeassistant  |     raise NotImplementedError("Update method not implemented")
homeassistant  | NotImplementedError: Update method not implemented

@gio-dzilla I managed with help of AI to enable updating. I have created a pull request
https://github.com/Andre0512/hon/pull/274
you can overwrite the custom_components/hon with this branch: https://github.com/galvani/hon/tree/fix/fix-updating-entity

@gio-dzilla I managed with help of AI to enable updating. I have created a pull request #274
you can overwrite the custom_components/hon with this branch: https://github.com/galvani/hon/tree/fix/fix-updating-entity

Amazing!  Thanks for working on this.

https://github.com/galvani/hon/tree/fix/fix-updating-entity

works just fine at my end, it's github

@gio-dzilla I managed with help of AI to enable updating. I have created a pull request
#274
you can overwrite the custom_components/hon with this branch: https://github.com/galvani/hon/tree/fix/fix-updating-entity

I can't open this link, "try again error"

Works fine for me too

works just fine at my end, it's github

I currently don't have any hOn integrations installed (because they all had problems). If I wanted to install one directly with your fix, which repository should I download it from?

works just fine at my end, it's github

Adding your repo, I can't even download the custom component


refactor: update  blas/ext/base/ssort2hp to follow current project conventions

Resolves #1534
Description

What is the purpose of this pull request?

This pull request:

Refactors blas/ext/base/ssort2hp to follow current project conventions
Added addons in C instead of C++
Updated examples and style as per the given commits in the issue #1534
https://github.com/stdlib-js/stdlib/commit/d66d80cfcbab1da95cb5ae8cfae4a1fc4c5129d1 (saxpy), https://github.com/stdlib-js/stdlib/commit/3c82fe7b6c0f9fd6ef02c86d6e2024d708ac8c14 (cswap), and https://github.com/stdlib-js/stdlib/commit/5b15c9675be434c0e11b1ec1e1f78d7b089abbcd (dasum).

Related Issues

Does this pull request have any related issues?

This pull request:

resolves #1534

Questions

Any questions for reviewers of this pull request?

No.
Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

Open to reviews!!
Checklist

Please ensure the following tasks are completed before submitting this pull request.

[x] Read, understood, and followed the contributing guidelines.

@stdlib-js/reviewers

@Planeshifter Ready for review!

Tried taking care of indentation here.

Okay, Noted. Will try to get more familiar with the code base next time onwards, thanks for your inputs they're great for my learning.


Update libcontainaer to d00b8369852285d6a830a8d3b9

Fixes #12015
Signed-off-by: Michael Crosby<EMAIL_ADDRESS>

LGTM

LGTM

waiting on janky

@ibuildthecloud you want to try this to make sure

or at least before i do rc4 ;)


Plot xarray

Special case xarray.DataArray in the plot canvas, to retain coordinate and labels information from the data.

Other than that (and it's not an important point), LGTM.

Thanks


Remove unnecessary tags from string resources

Summary:
NB: This has potential merge conflicts with #2741, so probably best to wait until that's merged before working on this (or work on just the ones outside WelcomeActivity).
Would be ideal to remove any tags like CDATA or <u> from string resources. There are probably more but the ones I know about are the 'More information' link from WelcomeActivity, and all the links from AboutActivity. Ideally we should store just the link text in strings.xml, then use a Spannable / similar to give the links an underline, and use onClick listeners with either lambda functions or Butterknife to call Utils.handleWebUrl.
Would you like to work on the issue?
No, but this would be a perfect first issue (when #2741 merged)

I can take a look in to this when #2741 is merged

To be assigned to @ronanb80 once #2741 merged

Hi. Can I work on this?

@bistaastha OK it is yours :-)


[Bug] wrong result when useing group by.

Search before asking

[X] I had searched in the issues and found no similar issues.

Version
branch-1.2-lts
Git : git://lts12@9de1fec6cc21aa81d744955f8cd1dca2a1148a57
What's Wrong?
Test table like this
CREATE TABLE `tb_holiday` (
  `date` bigint(20) NOT NULL COMMENT '日期',
  `holiday` tinyint(4) NOT NULL COMMENT '节假日',
  `holiday_cn` varchar(9) NOT NULL COMMENT '节假日'
) ENGINE=OLAP
UNIQUE KEY(`date`)
COMMENT '节假日'
DISTRIBUTED BY HASH(`date`) BUCKETS 4
PROPERTIES (
"replication_allocation" = "tag.location.default: 3",
"in_memory" = "false",
"storage_format" = "V2",
"compression" = "LZ4",
"disable_auto_compaction" = "false"
);

sql like this
SELECT
 date_format(date, '%x%v') AS `date`,
 count(date) AS `diff_days`
FROM `tb_holiday`
WHERE `date` between 20221111 AND 20221116
GROUP BY date
ORDER BY date;

result like this
202245,1
202245,1
202245,1
202246,1
202246,1
202246,1

What You Expected?
result like this
202245,3
202246,3

How to Reproduce?
No response
Anything Else?
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

This is due to a conflict between the column name date and the alias date, you can try changing date_format(date, '%x%v') AS date to date_format(date, '%x%v') AS format_date.
I got the same result by executing the following sql in doris and mysql:
mysql> SELECT  date_format(date, '%x%v') AS `date`,  count(date) AS `diff_days` FROM cost GROUP BY date ORDER BY date;
+--------+-----------+
| date   | diff_days |
+--------+-----------+
| 202053 |         4 |
| 202053 |         1 |
| 202053 |         1 |
+--------+-----------+
3 rows in set, 1 warning (0.00 sec)

mysql> SELECT  date_format(date, '%x%v') AS `format_date`,  count(date) AS `diff_days` FROM cost GROUP BY format_date ORDER BY format_date;
+-------------+-----------+
| format_date | diff_days |
+-------------+-----------+
| 202053      |         6 |
+-------------+-----------+
1 row in set (0.00 sec)

Group by gives higher priority to column name than alias, but order by prefer alias. This is the same as mysql. Master branch has corrected this behavior recently.

GROUP BY date --> mysql column name, doris now is column name
HAVING date = "202201"  --> mysql column name, doris now is alias
SELECT date_format(date, '%x%v') AS `date`, count(date) AS `diff_days`
FROM tb_holiday
where `date` between 20220101 AND 20220106
GROUP BY `date` -- mysql column name, doris now is column name
HAVING `date` = "202201" -- mysql column name, doris now is alias
ORDER BY date;

if change sql like this:
SELECT date_format(date, '%x%v') AS `_date`, count(date) AS `diff_days`
FROM tb_my_holiday
where `date` between 20220101 AND 20220106
GROUP BY _date
HAVING `_date` = "202201"
ORDER BY date; -- doris error: [HY000][1105] errCode = 2, detailMessage = ORDER BY expression not produced by aggregation output (missing from GROUP BY clause?): `date`, mysql execute success.

Group by gives higher priority to column name than alias, but order by prefer alias. This is the same as mysql. Master branch has corrected this behavior recently.

query like this
SELECT date_format(date, '%x%v') AS `date`, count(date) AS `diff_days`
FROM tb_holiday
where `date` between 20220101 AND 20220106
GROUP BY `date`
ORDER BY date;

in 1.1.4-rc01, result like this
202152,2
202201,4

in master f49a0daf543d843297aeaa7571aaa27ebaf6d5cb, even before this commit.
202152,2
202201,4

in master 9de1fec6cc21aa81d744955f8cd1dca2a1148a57
202152,1
202152,1
202201,1
202201,1
202201,1
202201,1

if doris change this action in 1.2.0 stable release, Please confirm as soon as possible and reply to this issue, cause we need to modify a lot of code to avoid inconsistent results after the upgrade(1.2.0 stable).

Group by gives higher priority to column name than alias, but order by prefer alias. This is the same as mysql. Master branch has corrected this behavior recently.

query like this
SELECT date_format(date, '%x%v') AS `date`, count(date) AS `diff_days`
FROM tb_holiday
where `date` between 20220101 AND 20220106
GROUP BY `date`
ORDER BY date;

in 1.1.4-rc01, result like this
202152,2
202201,4

in master f49a0da, even before this commit.
202152,2
202201,4

in master 9de1fec
202152,1
202152,1
202201,1
202201,1
202201,1
202201,1

if doris change this action in 1.2.0 stable release, Please confirm as soon as possible and reply to this issue, cause we need to modify a lot of code to avoid inconsistent results after the upgrade(1.2.0 stable).

Sorry for the inconstent behavior between old version and 1.2.0. Master and 1.2.0 have been modified to keep same behavior with mysql( having clause as you point out is not correct and to be fixed soon). I'm afraid you have to change the old sql to get the correct result in 1.2.0. Sorry for the inconvenience again.


How do I create my own formatter?

I searched on-line and I couldn't find something really helpful.
Is there a documentation somewhere?

Just investigate existing solution in Behat. Implementations of FormatterFactory is a good starting point.
Be aware that for now only two outputs is supported - file and stdout, see https://github.com/Behat/Behat/issues/1088

@aledeg check this out https://github.com/integratedexperts/behat-format-progress-fail

Thanks guys. I'll have a look and try to make my own.


Android App crashes on join call method

Expected behavior
The daily-js should work fine on android just like the iOS.
Describe the bug (unexpected behavior)
The daily-js sdk is working perfectly fine for iOS but in Android, once the join method is called the console keeps repeating this log  "unrecognised iframe message join-meeting", and the app freezes after this step. It is happening with or without attaching event listeners to my call object.
Steps to reproduce
Set your project environment as described below.
Run on any android device on simulator
Try to join a call
App freezes with the join method logging "unrecognised iframe message join-meeting" repeatedly
Screenshots

System information

Device: Pixel 4A simulator or any physical device
OS, version:  Android 12

Additional context
My dependencies of the project are as follows:
react-native : "0.63.4"
react: "16.13.1"
@daily-co/react-native-daily-js: "0.29.0" (tried previous versions still the same issue)
@daily-co/react-native-webrtc : "1.94.1-daily.5"
Android gradle:
buildToolsVersion = "30.0.2"
minSdkVersion = 24
compileSdkVersion =31
targetSdkVersion = 30

Hi @vineetk242000 , I tried to reproduce the issue here, but without success.
The main difference is, I was using the version 0.69 from react-native, instead of the version 0.63.
We have validated that our library is working on Android 12 with the versions 0.66, 0.68 and 0.69 of react native on our playground app. We have not tested with version 0.67 but should also work without any issue.
The version 0.66 was the first one release which react native has announced Android 12, as you can see here: https://reactnative.dev/blog/2021/10/01/version-066
Another important thing to consider, is that on Android 12, react native has a current open issue of intermittent crash A/libc: https://github.com/facebook/react-native/issues/33124
To workaround this issue, we have migrated our playground app to use Hermes. Since then, the crash issue has not happened anymore.
Could you test with our playground app and see if you are able to reproduce the issue ?
https://github.com/daily-co/react-native-daily-js-playground

Hi @filipi87, I tried the playground app and even the party-line. It is working perfectly fine in my environment on Android. Could you confirm if there is any issue with the react native version 0.63  for this daily-js integration on Android ?

Hi @vineetk242000 ,
Sorry for the late reply, I was out the last couple of weeks.
We currently don't have any known issue with the version 0.63 of react-native, but since It is a really old version of react native and they recommend using at least the version 0.66 for Android 12, we don't usually execute tests using this version. I would need to execute a regression test over this version, to see if we are going to face the same issue.
Have you considered updating the app to a more recent version of react native, and migrate It to use Hermes (as I have mentioned above, this is a known issue between react native and Android 12) ?
Please let me know if that is an option.

Closing this issue, since we are unable to reproduce on the latest versions of react native.

Hey @filipi87,
I was working on some other features for my app and just now came back to dailyjs integration. My application was already using hermes on android. When I tried joining a call with hermes disabled on android then it worked with my current react native version.  So, Dailyjs is working fine now with with my app on android. I just wanted to know, will this create some issue going forward  as this scenario is a bit contrasting in comparison to docs.

Hi @vineetk242000
That open react native issue of intermittent crash A/libc for Android 12, has been open for the version 0.66 of react native: https://github.com/facebook/react-native/issues/33124
Considering that you are using version 0.63, maybe that is why you are not experiencing this issue without using Hermes, but I can't be totally sure.
On the version 0.70 of react native, Hermes is now the default engine: https://reactnative.dev/blog/2022/09/05/version-070.
So now, if you decide to keep your current version, I would just recommend trying to test a lot on Android 12, to see if you will face any intermittent crashes.
And it would be nice to already plan to update to the latest version of react native which already comes with Hermes enabled and we are sure that is working fine.


Implement rules for the models

What is the expected enhancement?
Include in the project custom rules to make public content accesible by everyone and private content only accesible to its author.
Epic: #112

Finished with #158 so I will continue with this one.

Closing repository related issue for now. Will reopen with new epics.


words.json contains slangs and complicated words. Clean it.

Please inform here on finding any swear words, slangs, profanity, or words that are too complicated in words.json.

Issue is invalid due to rewrite. Closed.


govukTable should support attributes being added to thead and tr

Related component
uk.gov.hmrc.govukfrontend.views.html.components.GovukTable
Context
We are trying to implement a responsive table. In order to do this I need to be able add attributes to several table elements. govukTable allows attributes to be added to table, th & td. But not thead & tr (this is required for our responsive implementation). Here is a link to what we want to implement, https://gist.github.com/adamliptrot-oc/d44f2cff20e364277da68166ed869c11
Alternatives
The current workaround is to write the raw html.

Resource on how to add responsiveness to a table component.

Hi @habeeb01 thank you for raising this, I think we might have misunderstood your suggestion here. I'm going to raise this next week with our PO to see if we can spend some time looking at the current API for the GovukTable component and the guidance from DIAS to see what options there are for any possible changes to make it easier to use the responsive table pattern 👍

Hi @habeeb01 apologies, I forgot to let you know the jira ticket number after I created one so you can track this further, it's PLATUI-1613

To update this, we've done some research under that ticket and we've asked for a slot to discuss what we found at the next hmrc design resources working group. Where we'll try to clarify recommended approaches to create responsive tables and agree what we can do to help make following these approaches easier in our libraries
The working group meets every two weeks, but I'm not sure when next one will because it currently coincides with good friday easter holiday, meaning it may end up being 3 weeks until we can come back with anything more on this

Apologies for the very late response here - this repo was deprecated some time back but not archived, so we've neglected a handful of reported issues.
We don't currently support responsive tables in play-frontend-hmrc, and the HMRC Design Resources group feel that, as a GOVUK component, any such enhancements should come from upstream in GDS.  Whilst there is some mention of responsive tables in the GOVUK Design System backlog, it doesn't look like anything will be added anytime soon.
In the interim, we'll be playing a spike PLATUI-2622 to see if there's any workaround we can provide, or else to provide guidance on how to fork components in the library and what that means in terms of ongoing maintenance and support.


Fixed app demo to run

The demo app wasn't running. This PR fixes it

@rex4539 Could you please review this pull request? It contains a simple fix for the app demo.


[Bug] regress/stats test failure on external_fts

Cloudberry Database version
No response
What happened
https://github.com/cloudberrydb/cloudberrydb/actions/runs/6730322677/job/18293680080?pr=206

What you think should happen instead
It's still unknown whether this failure occurs in external_fts only or it could happens anywhere. This test seems flaky.
How to reproduce
No way to reliably reproduce yet.
Operating System
ci
Anything else
No response
Are you willing to submit PR?

[ ] Yes, I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct.

now the test has been fixed, https://github.com/cloudberrydb/cloudberrydb/actions/runs/11209843717/job/31156190398?pr=655#step:5:2424
closed


Update README

Link to mail and send new issues

Uh, you basically reverted the entire README to the old version. You should update your fork to use the current version, and apply your changes on that.

LGTM. Thank you for your contribution!

Squash-merged into es6. Thank you for your contribution.


Documentation for PWS File Format

Here's the beginning of documentation for the PWS File Format reverse engineered from the R_E_R_F.pws file.

Greetings Master @robfitz273k thanks for the commit
We have the official source code for the file type from anycubic here:
https://github.com/Photonsters/anycubic-photon-docs/blob/dev/Temp-resources/2019-03-05 photons 2.0 file format.pdf
What is your FB name so we can talk

Hi @robfitz273k I would be interested by the Java programs you wrote to read the images. I'm currently working on a PCB gerber -> PWS converter and I don't fully understand the Layers format.

@gcarret It basically works the same as the "old" .photon/cbddlp format.
its run length encoding, so it counts down lengths of same-colored pixels up to a max of 125, last bit is color and the rest are how many pixels of that color are encoded by that byte. (if you look at a file in a hex-editor, they limit to 125, even though they could encode 127...) for Antialiasing, which you probably won't use, just count down 1440 * 2560 px and then the new sub-layer starts, no extra header or anything. Hope that helps.
I'm working on a converter between the three file types the photons use (->https://github.com/Ordenritterlein/PhotonsFileConverter) pws support will be up there in a few days hopefully)

@Ordenritterlein Thanks a lot. I couldn't understand why they stopped at 125. I didn't see the link with the antialiasing, since there is also a global parameter for that ... Much clearer now !

Have you guys considered maybe exploring ways to pull the software from the controller board?  It might actually be very easy and possible and then you could evaluate the other side of the equation.  What the controller is expecting from the file(s).
I would very much like to see this evolve since the latest Photon Workshop is complete garbage, first time I used it on Windows 10 it crashed twice manually adding supports.
Fusion 360 now fully supports 3D printing, slicing, and supports.  I would really really love to see a module to Fusion 360 based on what you guys are doing here for the Photon S.

@dStruct use chitubox or prusaslicer with the tool to convert sl1 to your machine.
Extracting the firmware from teh controller will lead nowhere you cannot get source from a binary file that is on the FPGA or the STM32

@dStruct use chitubox or prusaslicer with the tool to convert sl1 to your machine.
Extracting the firmware from teh controller will lead nowhere you cannot get source from a binary file that is on the FPGA or the STM32

Thanks for the reply @X3msnake, yeah currently I just use Chitubox.  On the latest AnyCubic firmware they re-added support for .photon files, so I'm just doing supports and slicing in Chitubox and using the .photon format.  I did notice Chitubox is missing some of the parameters for a few things relating to machine setup like Anti-alias I think was one of them, when compared to Photon Workshop.
I see you have some experience working with Fusion 360 Post Processing modules, that is exactly what I'm hoping someone develops for the AnyCubic line of SLA printers, from initial glance it looks like Fusion has the ability to do a much better job at supports and slicing then even Chitubox (not that it's not great).  Given the fact that a lot of information is out there relating to the .photon format which is now supported again, I hope a Fusion post module becomes a reality at some point.

@dStruct actually i was not aware that F360 had 3D printing untill i read your comments. a quick search on the web and it seems like it only has path based slicing at the moment and that is no good for our cause...
Did you find a way to output to any kind of image based SLA printer like zip?

I didn't dive into it too deeply, but I'll poke around and see if I can find any kind of SLA style post module, they have specifically Additive type slicing but most of what I saw was all FDM modules.

@dStruct as for the AA in Chitubox, you probably need to create a new default printer so it has access to all feautures and make sure you are using the latest version.
Anycubic S board type uses the same type of AA faking as Chitubox Cbddlp and .photon. it is a series of monochrome pictures slightly different. so the results are not that great and it is mostly just a bloated file.
AA s only good for shallow vertical wall too. so for most part youa re better off using monochrome
There are community tools to convert sl1 format to pws so you can slice directly from prusaslicer and covert the file too

@X3msnake, so I did some digging around and the closest support I could find for something like this in the Autodesk ecosystem is to use MeshMixer and using Open Photon Slicer as a sort of plugin/module.  Which brings up some questions, first given that the .photon format is now supported again, is Open Photon Slicer still a viable/compatible option to use with the “new” boards.  And second question is more of a comment, but I think it would be extremely useful to be able to export the STL similar to how MeshMixer is doing it into Open Photon Slicer from within Fusion 360 as some kind of a Plugin/Addon, or possibly a Post Processor in the Machining tab.  Having a GUI interface within Fusion 360 to setup the various OPS command-line options would be really great.  I’ve never worked with Fusion 360 an I am not familiar with creating something like this, but I am happy to do some leg work if someone can point me in a starting direction.

should work with the new printers since .photon and .cbddlp is retro
compatible.
as for what you are asking there is a dev branch of OPS that can be setup
as a slicer dropfolder that automaticly slices any stl you drop in it
No dia terça-feira, 28 de abril de 2020, Matt<EMAIL_ADDRESS>escreveu:

@X3msnake https://github.com/X3msnake, so I did some digging around and
the closest support I could find for something like this in the Autodesk
ecosystem is to use MeshMixer and using Open Photon Slicer as a sort of
plugin/module. Which brings up some questions, first given that the .photon
format is now supported again, is Open Photon Slicer still a
viable/compatible option to use with the “new” boards. And second question
is more of a comment, but I think it would be extremely useful to be able
to export the STL similar to how MeshMixer is doing it into Open Photon
Slicer from within Fusion 360 as some kind of a Plugin/Addon, or possibly a
Post Processor in the Machining tab. Having a GUI interface within Fusion
360 to setup the various OPS command-line options would be really great.
I’ve never worked with Fusion 360 an I am not familiar with creating
something like this, but I am happy to do some leg work if someone can
point me in a starting direction.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Photonsters/PhotonS/pull/1#issuecomment-620888101,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUR56VVOWCNFQJSZEF6P4LRO5J73ANCNFSM4ILPYFGQ
.

--
Com os melhores cumprimentos,
Vinicius Silva

I whipped up a very basic C# app for reading the PWS file. It's pretty ugly, but can get you to the point of reading PWS files. It's a Windows Forms app that walk through the slices. I did nothing with preview. I also wasn't sure how AA is supposed to work.
Have fun.
ReadPWS.zip

I whipped up a very basic C# app for reading the PWS file. It's pretty ugly, but can get you to the point of reading PWS files. It's a Windows Forms app that can walk through the slices. I did nothing with preview. I also wasn't sure how AA is supposed to work.
[Edit]
Anti-aliasing is done at the printer so the value just needs to be passed.
This is how you would convert the preview to a bitmap:
private void Load()
{
. . .
_previewData = new byte[_preview.Width * _preview.Height * 2];
_stream.Read(_previewData, 0, _previewData.Length);
Preview = new Bitmap(_preview.Width, _preview.Height, _preview.Width * 2,
PixelFormat.Format16bppArgb1555,
Marshal.UnsafeAddrOfPinnedArrayElement(_previewData, 0));
. . .
}
The document on the format is incorrect in a couple places. It says that the preview image data is Length * 2 bytes. It's actually Width * Height * 2 bytes. I'm not sure about the pixel format, but what I have above does produce a recognizable image.
Have fun.
ReadPWS.zip

I was trying to do a similar software but without drawing graphics and I was getting an out of bounds exception when decompressing the pixels.
It looks like with 4 AA levels it renders 4 times the picture. Chitubox export.
I tried this line in your code and the same picture appears 4 times.
var result = new Bitmap(_header.XResolution, _header.YResolution * 4);


ninja -Cx   failed

debian@debian:~/scrcpy$ ninja -Cx
ninja: Entering directory `x'
[23/30] Generating scrcpy-server with a custom command.
Downloading https://services.gradle.org/distributions/gradle-6.3-bin.zip
.........10%..........20%..........30%.........40%..........50%..........60%.........70%..........80%..........90%..........100%

Welcome to Gradle 6.3!

Here are the highlights of this release:
 - Java 14 support
 - Improved error messages for unexpected failures

For more details see https://docs.gradle.org/6.3/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':server'.
> Could not create task ':server:assembleRelease'.
   > Could not create task ':server:lintVitalRelease'.
      > SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at '/home/debian/scrcpy/local.properties'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 39s
[29/30] Linking target app/scrcpy.
FAILED: server/scrcpy-server
/home/debian/scrcpy/server/./scripts/build-wrapper.sh /home/debian/scrcpy/server server/scrcpy-server release
ninja: build stopped: subcommand failed.

Did you forget to set the ANDROID_SDK_ROOT variable?

If you want to build the server, you need the Android SDK.
If you don't want to build the server, use the prebuilt server.
https://github.com/Genymobile/scrcpy/blob/master/BUILD.md

I'm using fish, export ANDROID_SDK_ROOT doesn't work. I had to use set -x ANDROID_SDK_ROOT


"user_id_field: :phone_number" but still use PowEmailConfirmation?

Hi,
I don't want to use PowEmailConfirmation right after registration but when user enters email for the first time and on subsequent times. For the registration I use phone_number so no entering email there.
Is there an easy way of doing that or do I need custom controllers?

By default a user would not be able to sign in if the email is not confirmed, but this is not true for subsequent email changes (related  #66). So we can leverage that here, by customizing the changeset:
  def changeset(user_or_changeset, attrs) do
    user_or_changeset
    |> pow_changeset(attrs)
    |> pow_extension_changeset(attrs)
    |> maybe_nilify_confirmation_token()
  end

  def maybe_nilify_confirmation_token(changeset) do
    case Ecto.get_meta(changeset.data, :state) do
      :built -> Ecto.Changeset.put_change(changeset, :email_confirmation_token, nil)
      _any -> changeset
    end
  end

As long as the :email_confirmation_token is nil after registration, the user can sign in. Once the user inputs an e-mail, the unconfirmed mail logic kicks in. As this is kinda a hack that leverages some internal stuff in Pow, it's important that you test both controller (registration and sign in) and changeset to ensure any future changes in Pow won't break this logic.
You should at the very least test that a user that have just registered can sign in, and that subsequent email change works.
Let me know if this works!

I assume the above solved your issue

@danschultzer
Once the user inputs an e-mail, the unconfirmed mail logic kicks in.
this doesn't happen. Email just gets updated.
def changeset(user_or_changeset, attrs) do
    user_or_changeset
    |> pow_changeset(attrs)
    |> pow_extension_changeset(attrs)
    |> maybe_nilify_confirmation_token()
  end

doesn't maybe_nilify_confirmation_token() prevent emails when updating email field too? Not only for registration but prevents all emails being sent for Pow?
I also have user_id_field set to phone number. Maybe that affects the flow?

doesn't maybe_nilify_confirmation_token() prevent emails when updating email field too? Not only for registration but prevents all emails being sent for Pow?

No, as you can see it only removes it if the struct doesn't exist in the DB (when state: :built):
  def maybe_nilify_confirmation_token(changeset) do
    case Ecto.get_meta(changeset.data, :state) do
      :built -> Ecto.Changeset.put_change(changeset, :email_confirmation_token, nil)
      _any -> changeset
    end
  end

So only for new users will the email confirmation token be nil.

Email just gets updated.

Hmm, after looking at this I'm curious how the email could have been updated. Doesn't seem like it should even update with that changeset. How do you update the email?
You would need to manually cast and validate the e-mail since you are using the phone number as the :user_id_field. I've updated the example with the following:
  def changeset(user_or_changeset, attrs) do
    user_or_changeset
    |> cast_and_validate_email(params)
    |> pow_changeset(attrs)
    |> pow_extension_changeset(attrs)
    |> maybe_nilify_confirmation_token()
  end

  defp cast_and_validate_email(user_or_changeset, params) do
    user_or_changeset
    |> Changeset.cast(params, [:email])
    |> Changeset.validate_change(changeset, :email, fn :email, email ->
      case Pow.Ecto.Schema.Changeset.validate_email(email) do
        :ok              -> []
        :error           -> [email: {"has invalid format"}]
        {:error, reason} -> [email: {"has invalid format", reason: reason}]
      end
    end)
  end

It uses the email validator from Pow.

Thank you so so much @danschultzer !
def changeset(user_or_changeset, attrs) do
    user_or_changeset
    |> pow_changeset(attrs)
    |> pow_extension_changeset(attrs)
    |> Ecto.Changeset.cast(attrs, [:email, :phone_number, :unconfirmed_phone_number])
    |> Ecto.Changeset.validate_required([:phone_number])
    |> maybe_nilify_confirmation_token()
  end

this was my non-working code. What is the difference between placing cast before pow_changeset(attrs) and pow_extension_changeset(attrs) and after them?
Since your working code had :email before pow's changesets.

Because pow_extension_changeset/2 will trigger the PowEmailConfirmation changeset, but if the email hasn't been cast nothing will happen. In general I recommend casting before pow changesets.  Also you won't need to cast or require :phone_number since it's set as the :user_id_field and the pow changeset will already do that as part of the user id validation.


runtime error when putting multiple polymer elements into a library

This issue was originally filed by<EMAIL_ADDRESS>
What steps will reproduce the problem?

Open the attached project in the dart editor and build it
start the page polymerlibrary.html as Javascript
3.

What is the expected output? What do you see instead?
As there are no build errors in dart editor, there should also be no runtime errors when starting the project. Instead I get a sequence of runtime errors in the tools output pane. The first error is:
[Error from Dart2JS on PolymerLibrary|web/polymerlibrary.html_bootstrap.dart]:
web/doublecount.dart:1:1:
Directive not allowed here.
part of clicks;
^^^^^^^^^^^^^^^
What version of the product are you using?
Dart Editor 1.5.3
polymer 0.12.0
On what operating system?
OS X 10.9
What browser (if applicable)?
chrome Version 36.0.1985.125
Please provide any additional information below.
 See discussion at https://groups.google.com/a/dartlang.org/forum/?utm_medium=email&utm_source=footer#!topic/web/Bp4Iw9GAGvk

Attachment:
PolymerLibrary.zip (9.60 KB)

This issue has been moved to dart-lang/polymer-dart#425.


Unused index buffers

Describe the bug
I noticed that many index buffers are created when tiles are loaded but they are never used in an actual draw which means creating and uploading these buffers is a waste.
The reason for the creation of these buffers needs to be investigated and once the cause is understood we need to avoid creating these buffers.

Can you take a look at this one @alexcristici
First question would be how we tell these buffers are being created and then not used.

This commit prints to the log index buffers that aren't used in any draw


Latest TempoStorm Import is Wild only

With the most recent TempoStorm meta snapshot for Wild, I've lost previous Standard archetypes ("Delete previously imported decks" was enabled). Will this be an issue with that option going forward?

I'll have to look into it a bit, but I should be able to make it import both the snapshots and/or add options for it.

Fixed this for now, downloads standard only. Sorry about the delay.


Nested annotation outer class in Java should have consistent colour

See screenshot. "Outer" segment should be the same colour as at sign and annotation class itself.

Hi @Nimmaster :wave:, thanks for your contribution :+1:
That's indeed not the way it should look like, but I'm afraid that there's no way as a theme authors to customize this. I'll need to check if I missed a syntax element key in the editor color scheme, otherwise this might be a problem of IntelliJ's highlighting engine itself.


Authy has been deprecated

Hello @xyu , just a heads up as the Authy plugin has been deprecated.
Do you envision other plugin to replace that functionality within this project?
Here is the official post: https://authy.com/blog/deprecating-authy-wordpress/
Keep rocking!

I propose that Authy never belonged to this project anyway. The goal should be for this project to contain the components necessary to run WordPress on Heroku.
Authy or something like it is certainly a good choice, but its place is not here.
Let's just remove it without a replacement.


Incorrect syntax highlight for function name in C language

Syntax is incorrectly highlighted for type uint64_t / int64_t if it's name is present in the function name (used as part of the function name and not as a type).

Since C syntax is ambiguous (unless you have a symbol table, which a highlighter doesn't because it can't expand includes) in distinguishing between types and variable/function names, the mode uses a heuristic to determine which is which. Anything ending in _t is treated as a type.

How does this library manage to work with simple types like "int" or "char" correctly then ? Because to me these types like "uint64_t" are just the same thing, because they are part of the C standard, and the standard in this terms is not big. In my opinion this heuristic should be changed to either treat all types added with libraries like custom types or (preferably if possible) treat all types described in standard equally, at least then the supported standard for highlight should be picked.


Fix: Failure when unloading buffer

This PR addresses #308.
The code for closing popups is quite complicated, so it would still benefit from a refactor. The popup:unmount() methods are called necessarily several times. This PR gets rid at least of some of these repeated calls and it also gets rid of the call to vim.api.nvim_buf_delete() in favour of the existing exit(popup, opts) function which has the advantage that the nui library makes sure there is something to be unmounted when layout:unmount or popup:unmount are called.
This PR also limits the BufWinLeave autocommands to just the buffers that actually need them.

This doesn't break anything for me but maybe let's see if this resolves the commenter's issue before we merge it in. I've not had any issues regarding closing popups or anything. Thanks for working on this.


Add generic --filter option to CLI commands

this should allow us to expose different filter predicates for https://github.com/bakdata/kpops/blob/264a404b139ee1daf5f282c49cf6e050454e425f/kpops/pipeline/init.py#L84
replace existing --step-names option, e.g. --step-names foo,bar could become --filter name=foo,bar or --filter name=foo --filter name=bar depending on what's easier to parse with Typer/Click

afterwards we could integrate #511


an error occurs when no datasource is set

it seems that there are no valid color codes

Fixed with version 1.09.01
Was a problem of dynamic colors and multiple datasets.