[Denon AVC-X4700H] Not able to match sound mode: 'NEURAL:X', returning raw sound mode.

Hi,
I'm using HA 2023.9.2 and some Denon AVC-X4700H receiver.
When I set specific sound modes in the AVC, especially those related to "Neural:X", I usually get warnings in HA log that the sound mode cannot be matched. So it seems that the Denon integration cannot deal with "Neural:X" (and probably even other modes).
This happens ever since but I never had time to open an issue here. So I'm doing it now :)
The AVR is on latest available (online) firmware.
Here is an example from the HA Log:
Logger: denonavr.soundmode Source: components/denonavr/media_player.py:334 First occurred: 16:22:52 (1 occurrences) Last logged: 16:22:52 Not able to match sound mode: 'NEURAL:X', returning raw sound mode.
And here the extract from Developer Tools > States:
source_list: 8K, AUX, Bluetooth, CBL/SAT, CD, DVD, Game, HEOS Music, Kodi, Phono, TV Audio, Tuner, UBP-X800M2 sound_mode_list: MUSIC, MOVIE, GAME, AUTO, STANDARD, VIRTUAL, MATRIX, ROCK ARENA, JAZZ CLUB, VIDEO GAME, MONO MOVIE, DIRECT, PURE DIRECT, DOLBY DIGITAL, DTS SURROUND, AURO3D, AURO2DSURR, MCH STEREO, STEREO, ALL ZONE STEREO icon: mdi:audio-video friendly_name: Denon AVC-X4700H supported_features: 69004 volume_level: 0.33 is_volume_muted: false media_content_type: channel media_title: Kodi source: Kodi sound_mode: NEURAL:X sound_mode_raw: NEURAL:X dynamic_eq: true
Many thanks in advance.
BR
Stefan

Which sound mode is active on your receiver when the NEURAL:X message is logged?

Hi,
right at the moment I'm watching football and the AVC shows Dolby Digital + Neural:X as a sound mode on its LCD display.
In HA log I see the error:
Not able to match sound mode: 'DOLBY AUDIO - DD + NEURAL:X', assuming 'DOLBY DIGITAL'.
and in Developer Tools (States) it says:
source_list: 8K, AUX, Bluetooth, CBL/SAT, CD, DVD, Game, HEOS Music, Kodi, Phono, TV Audio, Tuner, UBP-X800M2 sound_mode_list: MUSIC, MOVIE, GAME, AUTO, STANDARD, VIRTUAL, MATRIX, ROCK ARENA, JAZZ CLUB, VIDEO GAME, MONO MOVIE, DIRECT, PURE DIRECT, DOLBY DIGITAL, DTS SURROUND, AURO3D, AURO2DSURR, MCH STEREO, STEREO, ALL ZONE STEREO volume_level: 0.3 is_volume_muted: false media_content_type: channel media_title: Kodi source: Kodi sound_mode: DOLBY DIGITAL sound_mode_raw: DOLBY AUDIO-DD+NEURAL:X dynamic_eq: true icon: mdi:audio-video friendly_name: Denon AVC-X4700H supported_features: 69004
Again, I always see an error in HA logs when a sound mode with "Neural:X" has been set on the AVC. For some reason, the Integration cannot interpret this correctly.
Hope it helps. Thanks.

I just assigned both sound modes to DOLBY DIGITAL.

Hi there, I still get errors in logs that are related to Neural:X sound mode, such as:
Not able to match sound mode: 'M CH IN+NEURAL:X', returning raw sound mode.


Model.update() converts object keys passed in set() from attributes name to SQL columnName

Node version: 16.6.1
Sails version (sails): 1.4.4
ORM hook version (sails-hook-orm): 2.1.1
Sockets hook version (sails-hook-sockets): 1.5.5
Organics hook version (sails-hook-organics): NA
Grunt hook version (sails-hook-grunt): 1.0.8
Uploads hook version (sails-hook-uploads): NA
DB adapter & version<EMAIL_ADDRESS>Skipper adapter & version<EMAIL_ADDRESS>
Issue
When calling Model.update().set(), sails waterline is modifying the object which is passed to the set function.
Camel case keys are attribute names in the sails model and in SQL the column names are in snake case.
Camel case is converted to snake case after the update call.
const newMessage = {
id: 123
sessionId: 1234,
messageBody: 'This is a test message'
...
}

await Promise.all([
...
Model.update({ id: newMessage.id }).set(newMessage)
])

console.log(newMessage)
/*
{
id: 123
session_id: 1234,
message_body: 'This is a test message'
...
}
*/

Hey @himankpathak, I wasn't able to reproduce this behavior you're seeing. Would you be willing to create a github repo with a minimal sails app that reproduces this issue?

Hey @eashaw ,
I have created a repo on which this bug is very easily reproducible. https://github.com/himankpathak/sails-obj-bug
Migrations to run the app are mentioned in Readme.
Output:
Current value: {
  createdAt: 2021-11-11T07:22:31.297Z,
  updatedAt: 2021-11-11T07:22:31.297Z,
  id: 1,
  user: 2,
  action: 'This is test data'
}
After passing the object to update function
Modified value: {
  id: 1,
  created_at: 2021-11-11T07:22:31.297Z,
  updated_at: 2021-11-11T07:22:31.297Z,
  user_id: 2,
  action_name: 'This is test data'
}
Current value: {
  createdAt: 2021-11-11T07:22:53.407Z,
  updatedAt: 2021-11-11T07:22:53.407Z,
  user: 4,
  action: 'This_is_test_data'
}
After passing the object to create function
Modified value: {
  created_at: 2021-11-11T07:22:53.407Z,
  updated_at: 2021-11-11T07:22:53.407Z,
  user_id: 4,
  action_name: 'This_is_test_data'
}

Hey @eashaw,
I found this to be an unexpected behavior as this issue does not occur in v0.12.
There is no mention of this behavior either in method docs or in migration to v1 docs.
It does make sense to use .fetch() method to get the updated record. But the valuesToSet passed to an ORM in some of my use cases are used to drive additional logic.
Also to note that I have never seen such behavior from other ORMs that I have worked with before.

Hi @himankpathak, I was looking at this with @mikermcneil. We realized that there was a gap in the upgrade guide here.
Here's some background on why this is happening:

https://github.com/balderdashy/sails/issues/6862#issuecomment-535080667
https://github.com/balderdashy/sails/issues/4414#issuecomment-485955184

Are you seeing this behavior on<EMAIL_ADDRESS>

Thanks @eashaw for providing the background on this issue.
and yes, this behaviour is occurring with<EMAIL_ADDRESS>


Add parser option enable_options_value_normalization

Which issue does this PR close?

Closes #10853
Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

Thanks @xinlifoobar working on this issue.
What I suggest is that we can let people to define their own normalizations. Rather than directing all values to lowercase, people can declare their own normalization methods for specific option keys. If we choose to do that in this PR, I believe the normalization process should be done during the assignment of table options.

Thanks @xinlifoobar working on this issue.
What I suggest is that we can let people to define their own normalizations. Rather than directing all values to lowercase, people can declare their own normalization methods for specific option keys. If we choose to do that in this PR, I believe the normalization process should be done during the assignment of table options.

The APIs that could be used in the datafusion-sql crate are limited. Do you think it is a good idea to add a method, e.g., get_options_normalized_function a good idea?
https://github.com/apache/datafusion/blob/2f02c43b6283472c7c620c68819050128a7e8544/datafusion/expr/src/planner.rs#L33-L83

Thanks @xinlifoobar working on this issue.
What I suggest is that we can let people to define their own normalizations. Rather than directing all values to lowercase, people can declare their own normalization methods for specific option keys. If we choose to do that in this PR, I believe the normalization process should be done during the assignment of table options.

The APIs that could be used in the datafusion-sql crate are limited. Do you think it is a good idea to add a method, e.g., get_options_normalized_function a good idea?

SqlParserOptions is accessible, what do you think about adding it there? But I'm not sure if we can support dynamic method registration. My idea is to provide hard-coded functions like the one below, but I'm uncertain where to bind it:
lazy_static! {
    static ref NORMALIZATION_MAP: Mutex<HashMap<String, fn(String) -> String>> = {
        let mut m = HashMap::new();
        m.insert("hf.user_access_token".to_string(), lowercase as fn(String) -> String);
        // Other normalizations
        Mutex::new(m)
    };
}

fn lowercase(s: String) -> String {
    s.to_lowercase()
}
// Other normalizations

If the key is not found, use the default normalization or do nothing (according to your enable_options_value_normalization).

But

IMO it won't be a good idea... I thought the *configs are static values. What should you do if you would keep a config file for function values?

What I suggest is that we can let people to define their own normalizations. Rather than directing all values to lowercase, people can declare their own normalization methods for specific option keys. If we choose to do that in this PR, I believe the normalization process should be done during the assignment of table options.

I wonder what is the usecase for a user defined normalization? It may be more complicated to code
I like the approach proposed in this PR. As I understand it if follows what we do for SQL:  by default apply some hard coded normalization (e.g. to lower_case) and let users opt out of that normalization either by:

Setting a config value like datafusion.sql_parser.enable_ident_normalization
Enclose the value in "

Hi again @xinlifoobar. The idea in my mind was something like this: https://github.com/synnada-ai/datafusion-upstream/commit/341b48458c09f25d2a5873fcee2fce18eb0e1097.
I haven't been able to work on it much, and it can't be compiled right now, but you can understand what I mean as an idea. By removing the lowercase transformations we made while parsing the statement, just like in this PR, it seems that we can easily normalize the fields we want in the desired way.
cc @alamb

Hi again @xinlifoobar. The idea in my mind was something like this: synnada-ai@341b484.
I haven't been able to work on it much, and it can't be compiled right now, but you can understand what I mean as an idea. By removing the lowercase transformations we made while parsing the statement, just like in this PR, it seems that we can easily normalize the fields we want in the desired way.
cc @alamb

Hi, I got the idea and am okay to make the change if we agree. The question is still the normalize go beyond the config itself. I am still unsure about this design because the normalize function is just for a small set of configs. in the future, if we have multiple functions for different purposes, the macro might become huge and difficult to read.

Hey @berkaysynnada @alamb are we all ok with this design? I plan to update this PR tomorrow.

Hi @xinlifoobar  -- I haven't had a chance to review this PR unfortunately. Perhaps @tinfoil-knight  has some time to review  the design as the original filer of https://github.com/apache/datafusion/issues/10853

@xinlifoobar Could you cleanup the commit history? Avoid using rebase. Just create a merge commit (if really necessary) w/ the main branch.

@berkaysynnada 's solution allows option-specific normalization but I don't think that kind of fine-grained control over option values is needed.

We actually do need this in our use case. Let's do the general solution to avoid API churn on such a user-visible part of DataFusion.
@xinlifoobar and @tinfoil-knight, do you have time to apply @berkaysynnada's suggestion? It's OK if not, we can work on it instead.
cc @berkaysynnada

Hey, since this is pending long. I could do this as a follow up after this is merged.

Sure -- let's just make sure to avoid API churn and complete the work 🙂

Sure -- let's just make sure to avoid API churn and complete the work 🙂

How about we file a ticket explaining what else is needed prior to merging this PR. I can do this but I want to make sure I have the use case down correctly
@berkaysynnada  says:

What I suggest is that we can let people to define their own normalizations. Rather than directing all values to lowercase, people can declare their own normalization methods for specific option keys. If we choose to do that in this PR, I believe the normalization process should be done during the assignment of table options.

The code in https://github.com/synnada-ai/datafusion-upstream/commit/341b48458c09f25d2a5873fcee2fce18eb0e1097 I think seems to show a way to add an annotation to a built in config setting value that controls how it will be normalized.
Is the use case to

Provide a new set of ConfigOptions (not in DataFusion) that have custom normalization rules?
Avoid normalization on some of the built in configs?

Something else?

Both. We would like to have key-level control on what normalization means for config options, built-in and extension.

Both. We would like to have key-level control on what normalization means for config options, built-in and extension.

In the interest of keeping the code moving, I filed  https://github.com/apache/datafusion/issues/11650 to track the additional feature and I merged up from main to resolve a conflict

Sounds good -- this is good to go from my perspective.

Clippy failure seems unrelated to this PR. I think it is https://github.com/apache/datafusion/issues/11651

Merged up to get the clippy fix

🚀  thanks and sorry for the delay @xinlifoobar


Feature/support aws profile

As mentioned in the issue of aws-cli, currently it is more common to support AWS_PROFILE as the profile's environmental value.  Refer https://github.com/aws/aws-cli/issues/1281 .  More, in this issue, you can see that for compatibility, aws-cli implements them in the precedence of --profile > AWS_DEFAULT_PROFILE > AWS_PROFILE.
So, I thought it'd be nice for piculet to support this the same way as aws-cli.  Any opinion?

v0.3.0.beta1 has been released.


python3Packages.torch: fix by using older kernel headers

https://hydra.nixos.org/build/195527156
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Let me merge early so that we progress.  This isn't getting to master immediately anyway.


Build failure when TEST=1 (m.rehash())

When I try to build from head with ASSERT=1, I get errors like the following from javac:
[javac] fastutil/src/it/unimi/dsi/fastutil/ints/Int2IntLinkedOpenHashMap.java:2878: error: method rehash in class Int2IntLinkedOpenHashMap cannot be applied to given types;
[javac] 	 m.rehash();
[javac] 	  ^
[javac]   required: int
[javac]   found: no arguments
[javac]   reason: actual and formal argument lists differ in length

drv/OpenHashSet.drv#2396, drv/OpenHashBigSet.drv#1319, and drv/OpenHashMap.drv#3343 call rehash with no arguments, which isn't valid. Their goal is not immediately obvious to me, so I'm not sure what the fix ought to be.

On 25 Jun 2017, at 20:06, Peter Burka<EMAIL_ADDRESS>wrote:
When I try to build from head with ASSERT=1, I errors like the following from javac:
[javac] fastutil/src/it/unimi/dsi/fastutil/ints/Int2IntLinkedOpenHashMap.java:2878: error: method rehash in class Int2IntLinkedOpenHashMap cannot be applied to given types;
[javac] 	 m.rehash();
[javac] 	  ^
[javac]   required: int
[javac]   found: no arguments
[javac]   reason: actual and formal argument lists differ in length
drv/OpenHashSet.drv#2396 and drv/OpenHashBitSet#1319 call rehash with no arguments, which isn't valid. Their goal is not immediately obvious to me, so I'm not sure what the fix ought to be.

Oh well. I removed the method and forgot to test with asserts. Please remove all such calls. It's fixed for the next release.
Ciao,
				seba


Valgrind reporting much memory leaks

test 8., 100771584
==4770== Thread 2:
==4770== Invalid read of size 8
==4770==    at 0x400F71: qpop (lfq.c:126)
==4770==    by 0x400A9E: consumer (test.c:47)
==4770==    by 0x4E3F181: start_thread (pthread_create.c:312)
==4770==    by 0x514F47C: clone (clone.S:111)
==4770==  Address 0x541a040 is 0 bytes inside a block of size 16 free'd
==4770==    at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==4770==    by 0x40121D: queue_free (lfq.c:187)
==4770==    by 0x400CE5: main (test.c:98)
==4770==
==4770== Invalid read of size 8
==4770==    at 0x400F7C: qpop (lfq.c:127)
==4770==    by 0x400A9E: consumer (test.c:47)
==4770==    by 0x4E3F181: start_thread (pthread_create.c:312)
==4770==    by 0x514F47C: clone (clone.S:111)
==4770==  Address 0x541a048 is 8 bytes inside a block of size 16 free'd
==4770==    at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==4770==    by 0x40121D: queue_free (lfq.c:187)
==4770==    by 0x400CE5: main (test.c:98)
==4770==
==4770==
==4770== HEAP SUMMARY:
==4770==     in use at exit: 784 bytes in 16 blocks
==4770==   total heap usage: 312 allocs, 296 frees, 11,888 bytes allocated
==4770==
==4770== Thread 1:
==4770== 80 (16 direct, 64 indirect) bytes in 1 blocks are definitely lost in loss record 5 of 6
==4770==    at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==4770==    by 0x400D60: q_initialize (lfq.c:54)
==4770==    by 0x400B48: main (test.c:67)
==4770==
==4770== 704 bytes in 11 blocks are definitely lost in loss record 6 of 6
==4770==    at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==4770==    by 0x400BD7: main (test.c:79)
==4770==
==4770== LEAK SUMMARY:
==4770==    definitely lost: 720 bytes in 12 blocks
==4770==    indirectly lost: 64 bytes in 4 blocks
==4770==      possibly lost: 0 bytes in 0 blocks
==4770==    still reachable: 0 bytes in 0 blocks
==4770==         suppressed: 0 bytes in 0 blocks
==4770==
==4770== For counts of detected and suppressed errors, rerun with: -v
==4770== ERROR SUMMARY: 6 errors from 4 contexts (suppressed: 0 from 0)

Oh right. I merged your pull request.

Is this fixed?

This seems to be fixed , I have tested , below is valgrind report
@mitghi  again thanks
test 8., 100771584
==6313== Thread 2:
==6313== Invalid read of size 8
==6313==    at 0x400F71: qpop (lfq.c:126)
==6313==    by 0x400A9E: consumer (test.c:47)
==6313==    by 0x4E3F181: start_thread (pthread_create.c:312)
==6313==    by 0x514F47C: clone (clone.S:111)
==6313==  Address 0x541a040 is 0 bytes inside a block of size 16 free'd
==6313==    at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6313==    by 0x40126A: queue_free (lfq.c:193)
==6313==    by 0x400CE5: main (test.c:98)
==6313==
==6313== Invalid read of size 8
==6313==    at 0x400F7C: qpop (lfq.c:127)
==6313==    by 0x400A9E: consumer (test.c:47)
==6313==    by 0x4E3F181: start_thread (pthread_create.c:312)
==6313==    by 0x514F47C: clone (clone.S:111)
==6313==  Address 0x541a048 is 8 bytes inside a block of size 16 free'd
==6313==    at 0x4C2BDEC: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==6313==    by 0x40126A: queue_free (lfq.c:193)
==6313==    by 0x400CE5: main (test.c:98)
==6313==
==6313==
==6313== HEAP SUMMARY:
==6313==     in use at exit: 0 bytes in 0 blocks
==6313==   total heap usage: 312 allocs, 312 frees, 11,888 bytes allocated
==6313==
==6313== All heap blocks were freed -- no leaks are possible
==6313==
==6313== For counts of detected and suppressed errors, rerun with: -v
==6313== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)

@tekknolagi  Yes, it is fixed.
@pradeepgoswami90 You are welcome.


Breaks scolling

At the end of user scrolling a click event gets fired due to the way touche works (touchend)

I just discovered the same issue which makes touche a non-starter for me. I'm using iScroll and have enabled it's 'tap' option and then handle ot's tap event which works very nicely.


Warn on context fixture helper

Fixtures are controlled by the underlying ActiveRecord::TestFixtures code. Which sets up fixtures before each example. While the database may have fixture data in it before this point, that data will be reset once the test fixture code runs.
When the fixtures message is sent in an example group, or global fixtures are defined, the Active Record test fixtures register the accessors in an anonymous module. That module is included in the example group's ancestors.
Which means the accessor helpers are available in any example group instance; thus they are available in before(:context) and after(:context). However, the internal fixture setup and cache has not been performed yet. Attempting to call a fixture helper prior to the fixtures being setup, raises an undefined method on NilClass error.
Related: #1201 and #1208

Reproduction case is put a file called spec/models/widgets_spec.rb in a rails app with a "Widget" model.
require 'rails_helper'

RSpec.describe Widget, type: :model do
  fixtures :widgets

  describe 'fixture loaded in a before context' do
    before :context do
      widgets :a
    end

    it 'works' do
    end
  end
end

@cupakromer I have a sketch of a fix for this. I'm going to clean it up a little and PR it tomorrow.


How to transfer attributes from src image to tgt image?

Hi, thanks for the excellent work.
I am trying to test the effect of transferring attributes from one source image to another target image, (e.g. makes the target person show the same expression with the source person), as shown in the Figure from the paper.

After reading the code, I am confused that whether this function is implemented in the code? The test_shape in evaluate.py seems a bit related but I cannot figure out what the pca_id and pca_val mean.
https://github.com/cassiePython/cddfm3d/blob/4660a56d43787704c512b18d20155914c93b6456/evaluate.py#L147-L153
Does the test_shape function do the thing I want? If not, what should I do to implement the expression transfer process?

@JiejiangWu For expression editing, you should modify the value (pca_val) of the expression-related 3DMM parameters (pca_id).


[BUG] EWW! I FOUND A BUG

I am getting these errors and Best Buys not letting me sign in and making me reset my password when I go back to regular browser.

[WDM] - ====== WebDriver manager ======
[WDM] - Current google-chrome version is 90.0.4430
[WDM] - Get LATEST driver version for 90.0.4430
[WDM] - Driver [C:\Users\Turner.wdm\drivers\chromedriver\win32\90.0.4430.24\chromedriver.exe] found in cache
DevTools listening on ws://<IP_ADDRESS>:57169/devtools/browser/12ce59d4-ce56-4ff0-9076-c340fddd9a57
[2021-04-03 21:17:29][TASK 1] Starting Best Buy Task
[2021-04-03 21:17:30][TASK 1] PDP Request: 200
[2021-04-03 21:17:30][TASK 1] Product URL: https://www.bestbuy.com/site/nvidia-geforce-rtx-3070-8gb-gddr6-pci-express-4-0-graphics-card-dark-platinum-and-black/6429442.p?cmp=RMX&skuId=6429442
[2021-04-03 21:17:30][TASK 1] Product URL Request: 200
[2021-04-03 21:17:30][TASK 1] Loading headless driver.
[2021-04-03 21:17:30][TASK 1] Loading https://www.bestbuy.com/
[2021-04-03 21:17:30][TASK 1] Logging in...
[9464:29608:0403/211733.195:ERROR:device_event_log_impl.cc(214)] [21:17:33.195] USB: usb_device_handle_win.cc:1054 Failed to read descriptor from node connection: A device attached to the system is not functioning. (0x1F)
[9464:29608:0403/211733.196:ERROR:device_event_log_impl.cc(214)] [21:17:33.196] Bluetooth: bluetooth_adapter_winrt.cc:1072 Getting Default Adapter failed.
Traceback (most recent call last):
File "C:\Users\Turner\Desktop\PhoenixBot-master\pages\homepage.py", line 510, in run
BestBuy(self.status_signal, self.image_signal, self.product, profile, proxy, self.monitor_delay, self.error_delay) #TODO: Readd Discord Webhook
File "C:\Users\Turner\Desktop\PhoenixBot-master\sites\bestbuy.py", line 102, in init
self.login()
File "C:\Users\Turner\Desktop\PhoenixBot-master\sites\bestbuy.py", line 156, in login
WebDriverWait(self.browser, 10).until(
File "C:\Users\Turner\AppData\Local\Programs\Python\Python39-32\lib\site-packages\selenium\webdriver\support\wait.py", line 80, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:
[9464:29608:0403/211743.914:ERROR:device_event_log_impl.cc(214)] [21:17:43.915] Bluetooth: bluetooth_adapter_winrt.cc:1072 Getting Default Adapter failed.
[25296:7716:0403/211929.117:ERROR:gpu_init.cc(426)] Passthrough is not supported, GL is disabled

@turnerlux  most of those errors are from usb devices. try again with the newest version of phoenix bot


Change Solution 2 for Algorithms: Inventory Update

Link: https://www.freecodecamp.org/forum/t/freecodecamp-challenge-guide-inventory-update/16019
Solution 2 uses nested maps to mutate the array. This is an anti-pattern.

You shouldn't be using map if:

you're not using the array it returns; and/or
you're not returning a value from the callback.

Source: MDN
.map() is a higher-order function, and using it to mutate the calling array will confuse learners about its purpose.

@elisecode247 We could change all the maps to forEachs.  Would that suffice?

Yes, that works.

@elisecode247 Done.


Failures in git multi-pack-index verify produce large log files

We shouldn't redirect all output on stderr to the warning message, this can be quite large.

Fix in review with #842


Consider compressing the wasm files

See https://github.com/gen2brain/webp/blob/c743205968f4c8e7a9e1313ab475f4541ff5adcd/webp_wazero.go#L342

A note to self,
The wasm files seems to compress by a factor of about 3, so the QuickJS WASM file goes from 1.5MB to 500KB. I do however suspect that the Go compiler/builder is smart about this, so I need to test if the binary gets any smaller by doing this.


A GET request to '/' yielded a 502 response code

I am trying to deploy the first example app with Flask-Ask, It looks like everything works good but after the Deploying API statement I get the following error :
Error: Warning! Status check on the deployed lambda failed. A GET request to '/'
yielded a 502 response code.
Context
Here is the code I am executing with minor changes to the sample app
from flask import Flask
from flask_ask import Ask, question, statement, session
import pyodbc
app = Flask(name)
ask = Ask(app, '/')
@ask.intent('HelloIntent')
def hello(firstname):
speech_text = "Hello %s" % firstname
return statement(speech_text).simple_card('Hello', speech_text)
@ask.intent('ByeIntent')
def bye():
return statement("Ok, goodBye!")
@ask.intent('FarziIntent')
def farzi():
return statement("This is just a random fact!")
if name == 'main':
app.run()
Python 3.6 is the version I am running
Expected Behavior
Ideally it should give me a link I can use to configure as an endpoint
Actual Behavior
Error: Warning! Status check on the deployed lambda failed. A GET request to '/'
yielded a 502 response code.
Your Environment

Zappa version used: 0.46.1
Operating System and Python version: Windows 7, Python 3.6
The output of pip freeze:

aniso8601==1.2.0
argcomplete==1.9.3
asn1crypto==0.24.0
awscli==1.15.39
base58==1.0.0
boto3==1.7.39
botocore==1.10.39
certifi==2018.4.16
cffi==1.11.5
cfn-flip==1.0.3
chardet==3.0.4
click==6.7
colorama==0.3.9
cryptography==2.2.2
docutils==0.14
durationpy==0.5
Flask==0.12.1
Flask-Ask==0.9.8
future==0.16.0
hjson==3.0.1
idna==2.7
itsdangerous==0.24
Jinja2==2.10
jmespath==0.9.3
kappa==0.6.0
lambda-packages==0.20.0
MarkupSafe==1.0
placebo==0.8.1
pyasn1==0.4.3
pycparser==2.18
pyOpenSSL==17.0.0
python-dateutil==2.6.1
python-slugify==1.2.4
PyYAML==3.12
requests==2.19.1
rsa==3.4.2
s3transfer==0.1.13
six==1.11.0
toml==0.9.4
tqdm==4.19.1
troposphere==2.3.0
Unidecode==1.0.22
urllib3==1.23
Werkzeug==0.14.1
wsgi-request-logger==0.4.6
zappa==0.46.1

Link to your project (optional):
Your zappa_settings.py:

{
"testdev": {
"app_function": "app.app",
"profile_name": null,
"project_name": "basic",
"runtime": "python3.6",
"s3_bucket": "zappa-vb8m8hwzy",
"aws_region": "us-east-1",
"api_key_required": false,
"api_key":"MY_KEY"
}
}
Could someone please help me out here?

I am facing the same issue. @sourabhsriom by any chance, were you able to solve this issue ?

In my case, it work when adding if statement that make sure it's the main function.
If not, the above error has occurred.
How about edit if statement from if name == 'main': to if __name__ == '__main__':?
if __name__ == '__main__':
    app.run()

Looks like the issue is with my pyodbc library. I get an error saying :
pyodbc.Error: ('01000', "[01000] [unixODBC][Driver Manager]Can't open lib 'ODBC Driver 11 for SQL Server' : file not found (0) (SQLDriverConnect)")
Not sure what to do about that, it is working when I run the code on my local

I fixed this issue by doing
pip uninstall zappa
and then pip install zappa==0.45.1
hope it helps ;)

It did not work for me. Now I get the following error:
venv/lib/python3.6/site-packages/botocore/validate.py", line 291, in serialize_to_request     raise ParamValidationError(report=report.generate_report()) botocore.exceptions.ParamValidationError: Parameter validation failed: Invalid type for parameter Key, value: None, type: <class 'NoneType'>, valid types: <class 'str'>

First time Zappa user on MacOS. I get the same error. No idea how to proceed.

The issues occurs mostly because of the slim_handle option in the zappa_setting.json file. If your deployment zip files after extraction is below 250 MB, remove the option and try.
Otherwise, if you like to use the option. I tried using a Linux machine (From AWS) and it works. No error. The way it works is, the dependencies as a tar.gz file are loaded into S3 and during Lambda function execution, the file is unzipped in the /tmp folder by lambda handler. This mechanism might be broken when deployed through windows or Mac machine.

I do not think it is a OS problem. I have tried to deploy from Ubuntu (18 and 16).

@steve-heslouin, is that patch going to be merged into master anytime? :)

It seems to be an incompatibility between Zappa 0.46.1 and Flask 1.02.  If I downgrade Flask to 0.12 all is well.

There are several cases for which this error occurs (all solutions reported are very different from each other). It would be great to have a list of possible errors to debug.  Moreover I recommend the everyone to use the zappa tail so that the issues are reported more clearly and specifically.

I will dig into this more tomorrow but wanted to share my logs in case it might help someone.
In my bootstrap code I have this hack and I believe that the new version of Flask no longer has that attribute.  This explains why the app works locally but not when deployed.  Not sure if anyone else is trying to apply a similar hack on logging but I suspect this might be related.  Now why my zappa sentry error handler didn't catch this, I don't know.
    if 'SERVERTYPE' in os.environ and os.environ['SERVERTYPE'] == 'AWS Lambda':
        logger = logging.getLogger(app.logger_name)
        logger.setLevel(logging.DEBUG)
        app._logger = logger

[1531844598509] 'Flask' object has no attribute 'logger_name': AttributeError

For me, setting runtime to python2.7 instead of python3.6 was what solved it.

I'm getting this error deploying a Django project on a Mac.
I tried specifying "slim_handler" : "false" in zappa_settings.json, and running zappa update, but the problem was the same.
Here's what I get when I run zappa tail. The name of my Django project is "restfulinj"
[1532564818514] Failed to find library...right filename?
[1532564819773] No module named restfulinj.apps: ImportError
Traceback (most recent call last):
  File "/var/task/handler.py", line 567, in lambda_handler
  return LambdaHandler.lambda_handler(event, context)
  File "/var/task/handler.py", line 237, in lambda_handler
  handler = cls()
  File "/var/task/handler.py", line 143, in __init__
  wsgi_app_function = get_django_wsgi(self.settings.DJANGO_SETTINGS)
  File "/var/task/zappa/ext/django_zappa.py", line 20, in get_django_wsgi
  return get_wsgi_application()
  File "/tmp/ramblings/django/core/wsgi.py", line 13, in get_wsgi_application
  django.setup(set_prefix=False)
  File "/tmp/ramblings/django/__init__.py", line 27, in setup
  apps.populate(settings.INSTALLED_APPS)
  File "/tmp/ramblings/django/apps/registry.py", line 85, in populate
  app_config = AppConfig.create(entry)
  File "/tmp/ramblings/django/apps/config.py", line 120, in create
  mod = import_module(mod_path)
  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
  __import__(name)
ImportError: No module named restfulinj.apps

I wonder if anyone has gotten a similar error?

Was anyone able to get this running for pyodbc? everytime I deploy I keep getting:
No module named 'pyodbc': ModuleNotFoundError

Just putting my particular error out there:
...
... stacktrace
...
File "/var/task/jose/backends/__init__.py", line 3, in <module>
  from jose.backends.pycrypto_backend import RSAKey
  File "/var/task/jose/backends/pycrypto_backend.py", line 3, in <module>
  import Crypto.Hash.SHA256
  File "/var/task/Crypto/Hash/SHA256.py", line 55, in <module>
  """)
  File "/var/task/Crypto/Util/_raw_api.py", line 180, in load_pycryptodome_raw_lib
  raise OSError("Cannot load native module '%s'" % name)
OSError: Cannot load native module 'Crypto.Hash._SHA256'

Encountering the same issue with spacy, showing:
[1533876658002] Failed to find library...right filename?
[1533876660063] No module named 'ujson': ModuleNotFoundError
Traceback (most recent call last):
  File "/var/task/handler.py", line 567, in lambda_handler
  return LambdaHandler.lambda_handler(event, context)
  File "/var/task/handler.py", line 237, in lambda_handler
  handler = cls()
  File "/var/task/handler.py", line 129, in __init__
  self.app_module = importlib.import_module(self.settings.APP_MODULE)
  File "/var/lang/lib/python3.6/importlib/__init__.py", line 126, in import_module
  return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 978, in _gcd_import
  File "<frozen importlib._bootstrap>", line 961, in _find_and_load
  File "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 678, in exec_module
  File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
  File "/tmp/classiefier/api/app.py", line 8, in <module>
  import spacy
  File "/tmp/classiefier/spacy/__init__.py", line 4, in <module>
  from .cli.info import info as cli_info
  File "/tmp/classiefier/spacy/cli/__init__.py", line 1, in <module>
  from .download import download
  File "/tmp/classiefier/spacy/cli/download.py", line 11, in <module>
  from .link import link
  File "/tmp/classiefier/spacy/cli/link.py", line 8, in <module>
  from ..compat import symlink_to, path2str
  File "/tmp/classiefier/spacy/compat.py", line 5, in <module>
  import ujson
ModuleNotFoundError: No module named 'ujson'

ujson is installed, however.

I was facing this error when I gave the modular path to my application as main.py.
I fixed it by creating an empty file called main.app just next to main.py and setting app_function to main.app in zappa_settings.json.
Absolutely no clue what happened underneath, but it worked for me :-D

@wawhal This certainly works if you remove your main.app file. When you changed the app_function to main.app, it made Zappa look in main.py and use the app object in there.

@scoates it isn't intuitive though. In the init step, it asks for a modular path. It shouldn't ideally accept a path that does not exist. Just curious, why can't it just be main.py?

As it was called modular path in the init phase, I got confused. I thought it would be the path to a file (apologies for my bad Python)
It is still not intuitive though. I think a better phrase than modular path could help.

Has anyone successfully been able to use "pyodbc" library via pip for MS SQL Server within a Flask app deployed to AWS Lambda from Zappa?
I was able to get a successful deployment to AWS Lambda via Zappa but when I try to send a GET request to an endpoint which specifically uses the pyodbc library to connect to an RDS instance of MS SQL Server, I get the following error:
Error: Warning! Status check on the deployed lambda failed. A GET request to '/'
yielded a 502 response code.
Note, I have many apps that work for Postgresql using psycopg2 on Lambda but I think the issue with pyodbc is that there are some "C" dependencies that are not yet support on Lambda or Zappa doesn't have a manylinux wheel for them.

Hi everyone, i was fighting with same problem and solution for me was remove cache files, you could use this command: find . -name *.pyc -delete. I reproduce the error using several version of Flask, Zappa and PIP and the error in all cases was related with cache, but there are more problem using zappa=0.47.1 and pip 19. I hope that it works for you.

I have experienced the same issue twice today, re-deploying using zappa update worked the second time if it had failed the first time. I do not know why, just getting started. Maybe du to .pyc files as stated previously.
Regardless, would be nice to fix this, it feels like it could break anytime when deploying for no particular reason and reduces the confidence in the framework.

I have experienced the same issue twice today, re-deploying using zappa update worked the second time if it had failed the first time. I do not know why, just getting started. Maybe du to .pyc files as stated previously.
Regardless, would be nice to fix this, it feels like it could break anytime when deploying for no particular reason and reduces the confidence in the framework.

@sourabhsriom same issue with my deploy, did you find a good general solution?

@ben0it8 I have had this issue pop up in various ways, and the work-around for me has so far always been to deploy with Docker (https://github.com/Miserlou/Zappa#using-zappa-with-docker).

If you are using anaconda than create a new virtual environment "virtualenv lambda" in your project directory and in Scripts/activate. Than deactivate the conda environement with "conda deactivate" and pip install all the packages "pip install numpy pandas sklearn zappa flask".
PS: using "slim_handle"=true also gives this error, so don't use it.

new to python, new to zappa. i guess its only me who did this blunder, i installed zappa outside virtualenv. so when zappa packed, most of dependencies was not there. it got deployed after installing zappa inside virtualenv.

i downgraded to django 2.1 after undeploy, then i deployed it again it worked .. very strange!

Ensure that Zappa and installed packages from pip are all in the virtual environment that you're trying to deploy from.

Like @egyping , I fixed this by downgrading from Django 2.2 to Django 2.1

check this https://stackoverflow.com/a/60014463/7242275

I mistakenly had 2 modules names (both names the same in 2 different route statements) the same when i copied a block of code.
@app.route(/1)
def duplicatename
...
@app.route(/2)
def duplicatename
...
renaming them properly to unique names fixed this error for me.
I hope it helps others.

I am trying to deploy the first example app with Flask-Ask, It looks like everything works good but after the Deploying API statement I get the following error :
Error: Warning! Status check on the deployed lambda failed. A GET request to '/'
yielded a 502 response code.
Context
Here is the code I am executing with minor changes to the sample app
from flask import Flask
from flask_ask import Ask, question, statement, session
import pyodbc
app = Flask(name)
ask = Ask(app, '/')
@ask.intent('HelloIntent')
def hello(firstname):
speech_text = "Hello %s" % firstname
return statement(speech_text).simple_card('Hello', speech_text)
@ask.intent('ByeIntent')
def bye():
return statement("Ok, goodBye!")
@ask.intent('FarziIntent')
def farzi():
return statement("This is just a random fact!")
if name == 'main':
app.run()
Python 3.6 is the version I am running
Expected Behavior
Ideally it should give me a link I can use to configure as an endpoint
Actual Behavior
Error: Warning! Status check on the deployed lambda failed. A GET request to '/'
yielded a 502 response code.
Your Environment

Zappa version used: 0.46.1
Operating System and Python version: Windows 7, Python 3.6
The output of pip freeze:

aniso8601==1.2.0
argcomplete==1.9.3
asn1crypto==0.24.0
awscli==1.15.39
base58==1.0.0
boto3==1.7.39
botocore==1.10.39
certifi==2018.4.16
cffi==1.11.5
cfn-flip==1.0.3
chardet==3.0.4
click==6.7
colorama==0.3.9
cryptography==2.2.2
docutils==0.14
durationpy==0.5
Flask==0.12.1
Flask-Ask==0.9.8
future==0.16.0
hjson==3.0.1
idna==2.7
itsdangerous==0.24
Jinja2==2.10
jmespath==0.9.3
kappa==0.6.0
lambda-packages==0.20.0
MarkupSafe==1.0
placebo==0.8.1
pyasn1==0.4.3
pycparser==2.18
pyOpenSSL==17.0.0
python-dateutil==2.6.1
python-slugify==1.2.4
PyYAML==3.12
requests==2.19.1
rsa==3.4.2
s3transfer==0.1.13
six==1.11.0
toml==0.9.4
tqdm==4.19.1
troposphere==2.3.0
Unidecode==1.0.22
urllib3==1.23
Werkzeug==0.14.1
wsgi-request-logger==0.4.6
zappa==0.46.1

Link to your project (optional):
Your zappa_settings.py:

{
"testdev": {
"app_function": "app.app",
"profile_name": null,
"project_name": "basic",
"runtime": "python3.6",
"s3_bucket": "zappa-vb8m8hwzy",
"aws_region": "us-east-1",
"api_key_required": false,
"api_key":"MY_KEY"
}
}
Could someone please help me out here?

have you solved the issue?

I have fixed this issue now
When I am hitting Api with postman it asking for authentication token.
How to solve this problem?
On Wed, Jun 3, 2020, 23:07 Balamurugan<EMAIL_ADDRESS>wrote:

zappa tail prints the reason of failure. in my case, i was missing to the
lib that i was using on code(even though the lib was available local not on
virtualenv). fixed this by installing missing plugin/library using pip
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Miserlou/Zappa/issues/1536#issuecomment-638347061,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANESWBOVTCM2AMROBVK6MW3RU2C6ZANCNFSM4FFTGVTA
.

It looks like this error is a general case after deployment actually fails for many reasons (listed above in previous comments). I ran today into this for example due to an error in a Python source file.
While I do not think it's really an issue which can be fixed in terms of bug fixing, maybe this error output shall contain an information block with troubleshooting hints i.e. check zappa tail?
Also, probably zappa deploy should check minimal component version requirements.

This was a doozy for me.  Indeed, the error was a general case so my fix may not be relevant for most.  I had accidentally included a folder unrelated to my flask app in the same directory.  This folder contained lots of generated images and so pushed the whole deploy package over the Lambda memory limit.  Moving the app to a dedicated directory, with a fresh virtual environment allowed a clean deploy.

I also faced the same issue, but in my case it was a silly mistake which haunted me for 2-3 days. It was a problem with my flask library which was not installed properly. So I resolved the issue by uninstalling flask and re-installing it using
pip uninstall flask
and
pip install flask

Hi All, I am also facing the same issue after when it is trying to deploy API to lambda using zappa, could someone help me here please, below are the details,
Error: Warning! Status check on the deployed lambda failed. A GET request to '/' yielded a 502 response code
OS: Windows 10
zappa 0.54.0
flask 0.12.2
flask-ask 0.9.7
have tried downgrading version of zappa and upgrading flask and other dependencies, but still the issue exists.
zappa settings.py
{
"app_function": "main.app",
"expression": "rate(1 day)",
"manage_roles": true,
"profile_name": "my_profile",
"project_name": "my_project",
"runtime": "python3.8",
"keep_warm": false,
"aws_region": "*********"
"delete_local_zip": true
}
Getting below error in logs, but have added Jinja2=3.0.3 version [which is having markup/escape modules] into the requirement file and could see the same is getting installed.
Zappa tail logs,
[1660653255972] [ERROR] ImportError: cannot import name 'Markup' from 'jinja2' (/var/task/jinja2/init.py)
Traceback (most recent call last):
  File "/var/task/newrelic/api/lambda_handler.py", line 122, in nr_lambda_handler_wrapper
    result = wrapped(*args, **kwargs)
  File "/var/task/voice_handler.py", line 522, in lambda_handler
    return LambdaHandler.lambda_handler(event, context)
  File "/var/task/voice_handler.py", line 240, in lambda_handler
    handler = cls()
  File "/var/task/voice_handler.py", line 132, in init
    self.app_module = importlib.import_module(self.settings.APP_MODULE)
  File "/var/lang/lib/python3.8/importlib/init.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 1014, in _gcd_import
  File "", line 991, in _find_and_load
  File "", line 975, in _find_and_load_unlocked
  File "", line 671, in _load_unlocked
  File "", line 843, in exec_module
  File "", line 219, in _call_with_frames_removed
  File "/var/task/gol/main.py", line 6, in
    from flask import Flask, request
  File "/var/task/flask/init.py", line 19, in
    from jinja2 import Markup, escape


azurerm: added private_endpoint

Changes

azurerm: added private_endpoint
azurerm_private_endpoint
azurerm_private_link_service

@sergeylanzman
Yet another PR for review.
Thanks.


Update fun reminders

switch repository path to updated username
add idle npcs condition

Can you clear idleNpcs and npcLastPositions in shutDown? I would also recommend this for your other lists, maps, etc.
It also looks like nothing is ever removed from npcLastPositions, which is going to likely cause memory leaks. Maybe they should be removed on despawn?

Sure thing got those items added. I also renamed the plugin and made a few other changes.

I'm good with the updated name. Going to see if it makes more sense to users. Fun reminders is a cool name but hopefully the name will make it more clear what the plugin does.

What's the point of adding idle NPCs? We've been denying ID based plugins that requires user input recently.

No worries guys. If it's no good then do what you need to do. I'm adding it because a user requested it.

Going to go ahead and close the PR. Like I said it's something someone wanted but it's not worth all the trouble. I know you guys are busy and I don't want to be a burden.


thrust emitter disappears.

For some reason the thrust emitter disappears/is invisible... This seems to happen around level 3
So far we know

that the thrust_emitter remains at the players position throughout the game
that the trhust emitter is drawn on every update - even when invisible
that thrust_pressed is tracked correctly also for the entire game

Suspected reasons for the bug:

Thrust emitter's alpha is 0?
trhust emitters size/spread is close to 0?

The bug was from a quick fix, which was that the thrusters duration was set to 100 seconds. Fixed now though


Tauri-GUI as alternative to TUI

Tauri is a framework that seems to get so much right that this would be my opportunity to give it a trial run with a simple user interface.
https://tauri.studio
In short, use the OS browser to deliver a GUI using web-technology, but with all the benefits of running as desktop application.
Related to #2

I like the current text-UI, but I would also love to see a functional cross-platform GUI.
I've personally made a dipped in and made a quick run through the Tauri "Getting started". I like where it claims to be headed. But, it's just still to early and raw for me to use for any real code (or even much experimentation) yet. I hope it pans out.
🤞


Question : Can I pass a callback function from one component to another ?

Hi, I just started learning React with Redux. I followed the Redux kinda getting started, and so far, so good. But following along 'basic' and 'advanced' redux doc sections, I'm ending in a position where all my components are isolated. Which is perfectly fine. Excepted that one of my component is designed to display notifications, dismiss and remove them.
The other one is a modal which needs 4 parameters to work : one with the header text section, same for the body, one boolean to set if its displayed or not, and one to trigger a confirm action when confirm button is clicked.
My notifications component needs the modal to display when the user wants to remove a notification. The problem is : When I click on the confirmation button, how the notification component is supposed to "catch" it in order to actually delete the notification ?
I thought about a callback function, but it seems that I cannot pass a function to the state (the modal's) and either get any response when the confirmation button is clicked.
Is there something I'm missing ?
Thanks

Two things.  First, this is a usage question and not a bug, and as such it should really be asked on Stack Overflow instead.
Second, I actually just wrote a blog post that answers this exact question: Practical Redux, Part 10: Managing Modals and Context Menus .  That should give you enough examples and info to handle your issue.

Hi, yes you actually did answer me on SO. I'll have a look to your posts. It seems like lots of what you're writing is pertinent with what I'm learning now. Thanks


Bump Sarama to 1.30.1

Release notes: https://github.com/Shopify/sarama/releases/tag/v1.30.1

/assign @matzew

We got this bump transitively since we depend on eventing-kafka.


workflows: begin work on docker image deployment

Description
Started work on docker.yml for automatic docker image deployment on pushes to to branches (notably, excluding people's PRs). Aims to resolve #125.
Somewhat in the brainstorming and testing stages at the moment, lots of things here aren't final, e.g., what container registry is being selected.
Testing
A description of the tests performed to verify the changes:

[x] N/A

Checklist
Things need to be done before this Pull Request can be merged.

[x] @Snowiiii advice here plz.
[x] Important Stuff

[x] Make it aware of what tags should be applied to a given container image.

[x] Final Stuff

[x] Code is well-formatted and adheres to project style guidelines: cargo fmt
[x] Code does not produce any clippy warnings cargo clippy

[x] Ready for review.
[x] Tested working.

Useful resources

https://docs.github.com/en/actions/use-cases-and-examples/publishing-packages/publishing-docker-images#publishing-images-to-github-packages
https://dev.to/fabiancdng/automatic-deployment-using-docker-and-github-actions-16fb
https://docs.docker.com/build/ci/github-actions/manage-tags-labels/

Like i said in https://github.com/Snowiiii/Pumpkin/issues/125#issuecomment-2449537924. I think using github would easier

So how this was tested ?. I have no idea about github docker images. You could test the workflow on your Repo

So how this was tested ?. I have no idea about github docker images. You could test the workflow on your Repo

Package https://github.com/lokka30/Pumpkin/pkgs/container/pumpkin
Action https://github.com/lokka30/Pumpkin/actions/runs/11752901407/job/32745104746
Missing arm64 images so can't test the actual image generated myself.
Attestation would be nice (but difficult to get working)

Does this require and Secrets i put into the Repo ?

Does this require and Secrets i put into the Repo ?

I didn't have to set up anything on my repo. The action did its work 😃 seems to all be handled automatically by GitHub.
Could you try docker pull ghcr.io/lokka30/pumpkin:docker-deploy-test and see if it works on your end, I don't have a amd64 system ready to test with

docker pull ghcr.io/lokka30/pumpkin:docker-deploy-test

So i pulled the image, How i execute it using docker?

docker pull ghcr.io/lokka30/pumpkin:docker-deploy-test

So i pulled the image, How i execute it using docker?

Try docker run -d ghcr.io/lokka30/pumpkin:docker-deploy-test

docker pull ghcr.io/lokka30/pumpkin:docker-deploy-test

So i pulled the image, How i execute it using docker?

Try docker run -d ghcr.io/lokka30/pumpkin:docker-deploy-test

Looks like nothing happens

is the container running in the background, @Snowiiii? try attach to it. or just delete the container and relaunch it without -d so it's attached

great ideas @Yimura! @Snowiiii might be worth adding these ^^^ into the project to do list. also gentle bump about this

Overall looks good.
Thanks @lokka30


Quick question regarding alacritty.yml vs alacritty_macos.yml

Hellol everyone,
Not having any issues here, I'm just curious what the differences are between the alacritty.yml config file, and the alacritty_macos.yml file are. I'm on a mac, and I've been using the default alacritty.yml file.
Can anyone explain what the differences are between these two files? At a glance, they look almost identical.
Cheers!

Thanks a lot for the info! Another quick question, since I'm new to Rust applications.
I run git pull whenever I see changes committed to master. Do I need to recompile once I do this? My normal process is:
$ git pull
$ rustup override set stable
$ rustup update stable
$ cargo build --release
$ make app
and finally, cp -r target/release/osx/Alacritty.app /Applications/ since I'm on a Mac.
I noticed that my symlinked config file won't pull in any of the latest changes, so I normally have to copy from master, and re-apply all my config params. Is there a better way to do this? I'm most likely butchering the whole update process.
Thanks again for all the info :)

There currently is no automated process for updating the configuration file. We wouldn't want to dump stuff in the config a user has cleanly setup for himself. But the existing configuration files will keep working with new Alacritty versions unless mentioned otherwise in the change log.
So the recommended way of migrating the configuration file after an update is to take a look at the change log and if there are any interesting features you'd like to make use of, just adding the new configuration options to your config. All new configuration options should be documented in the Added section of the change log (similarly Changed and Removed are used for changes or removal of config sections).
Usually if your configuration file is in an invalid state because of updates, warnings/errors will be printed to stderr. So it shouldn't cause total havoc but allow you to make the required changes.
If there was a new git update, you'll likely have to recompile. The make app command should take care of that for you. You don't have to do anything other than git pull && make app to update Alacritty completely, unless there was a change to the Alacritty.app, terminfo, man or completion files. In that case you'll just have to copy over the altered files and you should be good to go.

Really appreciate you taking the time to answer my trivial questions! I will take note of all of this.
Alacritty has been serving as my primary driver for the past few months now and I really enjoy what you guys have made. If I ever manage to get Rust added to my toolbelt, I'd love to contribute in the future!
Feel free to close this 'issue', and thanks again!

I'll also jump in here to say, A) tools like yamldiff might help you. I've gone down this path before. And B) if you have more questions perhaps IRC could be a good place for you to go. There's usually at least someone around.

@nixpulvis Thanks for suggesting yamldiff, I had no idea that existed. I just joined the IRC channel :)


docs: update readme with testing examples

Added example about how to test whole form to readme
Connection with issue(s)

Solution description
Screenshots or Videos

To Do

[ ] Check the original issue to confirm it is fully satisfied
[ ] Add solution description to help guide reviewers
[ ] Add unit test to verify new or fixed behaviour
[ ] If apply, add documentation to code properties and package readme

Thanks @pumano

I updated recently with Validators.email

@joanpablo thank you for amazing library. I got perfect angular experience here :)

@joanpablo thank you for amazing library. I got perfect angular experience here :)

Thanks @pumano for your kind words.


motion detection settings

Hi all,
seems motion dection settings are nor working consistent.
I have 4 cams and I have same settings for all of them, but they act different.
I seems that motion detection and video recording is enabled, although I thought I disabled it.
On 1 cam it is not recording and no listing in motion events, but in 3 other cams it is still recording.

Who can check and give advice?
thx

Same model?
Please start from a clean configuration: remove the sdcard and try the cams with the original app.

2x 1080P Home using - y291ga - 0.3.1
for one it is working, for other not
2x 2K Pro Home using - y623 - 0.3.1
for both not working (recording all the time)


Add support for v flag to regexp/negation rule

related to #545

Relevant: https://bugs.chromium.org/p/chromium/issues/detail?id=1474268

Thank you for sharing the link, and making some fixes!
It looks like the Chrome bug you shared hasn't been fixed yet, but I think that ready to review this rule.

The fix for the bug has been merged yesterday and will be part of Chrome 118. 118 will only be released starting on Oct 10 though, so it will take some time until we see the fix. But that's fine, we can release the rule.


Action should only validate files versioned on git

I really value the feature that this action validates the format of json and yaml files across my repo, even those without an enforced schema. However, in my opinion, the action should just validate files that are versioned on git, and not other files that are created in the action runtime, for example, node_modules/**/*json files. This should be an easy fix I think, if you agree it makes sense.
PS: Sorry for opening so many issues lately, I just find this action really useful :).

Totally agree! I think this feature should be added, and a pretty easy one to implement as well

I will be working on this feature in the pull request linked below
cc: @djrmarques


[jvm-packages] XGBoost corrupted the jvm memroy

We run 14 xgboost in spark in parallel, but it throw out below error. it looks like the heap memory is coruppted. Do you know what's the issue? when we run single training model, there's no such error.

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x00007f1b028dab21, pid=23988, tid=0x00007f1acf826700

JRE version: OpenJDK Runtime Environment (Zulu <IP_ADDRESS>-SA-linux64) (8.0_202-b04) (build 1.8.0_202-b04)
Java VM: OpenJDK 64-Bit Server VM (25.202-b04 mixed mode linux-amd64 compressed oops)
Problematic frame:
J 8901 C2 java.util.WeakHashMap.get(Ljava/lang/Object;)Ljava/lang/Object; (77 bytes) @ 0x00007f1b028dab21 [0x00007f1b028daa40+0xe1]

Core dump written. Default location: /hadoop/1/yarn/local/usercache/jinmfeng/appcache/application_1663728370843_647527/container_e3798_1663728370843_647527_01_000053/core or core.23988

An error report file with more information is saved as:
/hadoop/1/yarn/local/usercache/jinmfeng/appcache/application_1663728370843_647527/container_e3798_1663728370843_647527_01_000053/hs_err_pid23988.log

If you would like to submit a bug report, please visit:
http://www.azulsystems.com/support/

have you solved this issue?

Hi @LarrySunmk, have you encountered the same issue? if yes, please comment it with details. Recently, xgboost jvm has been refactored, please use the latest xgboost snapshot if possible from https://s3-us-west-2.amazonaws.com/xgboost-maven-repo/list.html?prefix=snapshot/ml/dmlc/xgboost4j-spark_2.12/2.2.0-SNAPSHOT/

您的邮件我已收到！
This is an automatic reply, confirming that your e-mail was received.Thank you


[develop] Separating the concerns

Call me crazy, but I had an idea on app structure while playing with various PSR-7 implementations, and I thought I should mention it here.
As Sessions and Cryptography are going towards Middleware, I thought about how tightly wrapped up the App class actually is, and how in theory, the whole thing could just be a Middleware runner.
I was playing with Phly/Http, and adding everything in as a middleware. Phly/Http has a Server component separate from an app, so I looked at Slim's MiddlewareAware trait, using a very simple class to instantiate it. I tweaked things a little so that the invoke method was passed to the Server instead of being the final callback in the Middleware queue, and that the invoke method was basically doing what run does now in Slim.
Going down this route made me think that basically, every part of the App could actually be a Middleware, including Routing... The Router could be a middleware that runs sub-middleware-stacks being each Route. I know that the MiddlewareAware is already being added into Routes, so it kind of makes sense (I think).
The App is currently a lot of helper methods that point to methods inside the components of Slim, so each component could be made into Middleware with an invoke method. All the App would be is a Container housing a Server (which supplies the Request Response set with Headers and Cookies) and a Middleware Runner to plug things in to the Server.
Any thoughts anyone?
/cc @codeguy @silentworks

I think some psuedo-code would help here.

It would be good to be able to combine Slim with ReactPHP's HTTP server, so we can have a process that handles asynchonous requests.

I'm no good with pseudo code.
[https://github.com/usebeagle/sandbox/commit/dd221fd3a91513431edbd2242559cea1036405e6](This is me playing) with the idea, and here's a lovely picture.

Left is how I see Slim at the mo, and right is the crazy that I'm talking.

I think this is worth exploring, but not for version 3.0. Definitely 4.0. Keeping this open for discussion.

@designermonkey Could you explain the benefits of this model? Does this increase modularity of Slim?

@r3wt @codeguy @silentworks
Might look something like...
$app = new \Slim\Slim();

//If we care to parse/sanitize environment variables
$app->add(new \Parser\EnvironmentParser());

//If we want to parse/sanitize JSON bodies
$app->add(new \Parser\JsonParser());

//If we want to parse/sanitize PlainText bodies
$app->add(new \Parser\BodyParser());

//If we want to parse/sanitize _POST
$app->add(new \Parser\PostParser());
... etc

It does give us more control over the project and makes it a bit more clear at a high level what goes on in our app. At the moment if I were to hand a project to a co-worker there is little way to view the code and KNOW how slim handles input.
This would mirror other projects and languages (express.JS comes to mind).

@geggleto Is this not already possible? You can add a JsonParser or a BodyParser and inject the parsed body into the Request object with withParsedBody($parserResults).

I think what this was mainly pointing to would be the ability to inject different Parsers as middleware instead of having them all contained in the app instance.

I don't think ReactPHP is a good idea for Slim @psychoticmeow . Not only for Slim but for PHP in general. That kind of programming is not what PHP is being used for. It is nice to play with it, or to be an option. If you want to have very very good asynchronus applications, you should stay with NodeJS because Node does it better. Was build from the ground up for that purpose.
Don't forget that may be fast but have other new problems. Anyway, I don't think Slim should have ReactPHP aproach right now.

Is this not already possible?

Well, yes in a way, it is already possible, but it isn't middleware at the moment, and the example just shows parsers. What I was meaning was every aspect of the application, Configuration, Router, Sessions, Cookies, etc.
Currently it's all tightly wrapped in the App class. I know we discussed it before @codeguy and you told me that it's a write once framework where it could be overridden afterwards by a developer.
I do really think though that every part of Slim can be middleware, and a bootstrap file would replace the constructor that does all the work in App.php. That way a developer can either use the Slim bootstrap file, or make their own.
I know it's just another angle to the same end, but if middleware is the route that apps are going down, it would be awesome to be a full middleware stack.

After speaking with @codeguy in IRC, I am going to surface the Parsers out of the request object and set them up as middleware.

After looking into using middlewares for the parsers, it does not seem to be possible to abstract them out of the Request class and keep the PSR7 message interface on the middleware as it lacks the ability to reference the Slim\Http\Request->registerMediaTypeParser
We can get around this limitation by changing registerMediaTypeParser to static, as well as the bodyParser protected variable.
We would not need to use middleware, but access the request object after its created to add the parsers. Although this seems really hackish,

Or we just leave it as is. That's always an option. How often are you going to consume data that isn't form urlencoded, json, or xml?
If you want to use your middleware approach, just parse the request body in the middleware and inject the parsed results back into the request with withParsedBody(). You incur early overhead while always parsing the request body, but if you are adding the middleware, odds are you want to do that anyway.


Can i send command from Linux to Windows?

Hi. I am working high accuracy of timers in Windows. But timers in Windows are not accurate. Therefore, I have installed Windows Subsystem for Linux (WSL) which is maybe not a solution for my application. I have seen many resources and videos regarding file sharing between them. My question is that is it possible to use Linux high accuracy timers in WSL. Another words, I would like to send command from Linux to Windows to execute task more precisely. It is a new concept, I hope there is already this kind of feature. Thanks for your comment.

There is some ambiguity in the "send command" words. Would you like to provide an simple example? Here is a documentation to use WSL and Windows side tools and vice versa https://docs.microsoft.com/en-us/windows/wsl/interop.

This is more appropriate for the discussions section.


🐞 [Bug]: Fix selenium failing workflow tests in home page

Is there an existing issue for this?

[X] I have searched the existing issues

which package/s did you face the problem with?
Dashboard
What happened?
Some of the automated selenium tests are failing in home page:

test_stats
test_account_validation
test_login_links

which network/s did you face the problem on?
Dev
version
2.6.3
Relevant screenshots/screen records

Relevant log output
https://github.com/threefoldtech/tfgrid-sdk-ts/actions/runs/12336547750/job/34429194672

fixed all the tests in homepage:


Feature Proposal: HDR/WCG support in WinUI

Proposal: HDR and WCG support in UI controls
Summary
Currently all UI elements in WinUI are not color-managed, which means that they cannot support HDR/WCG on modern displays.
Rationale
Currently HDR and WCG monitors are getting more popular, however the default UI controls (and many first-party applications, like Photo Viewer or Edge) are always assuming that the monitor is sRGB, which breaks the experience of the users that having them. Also this is a long-lasting complain about Windows that it does not manage colors as well as Mac
Functional Requirements

Color correction of common UI elements: color of common UI elements should be treated as sRGB, and corrected to the monitor color space.
Media controls: should support reading color profiles of the media, and convert to monitor color space.
Color pickers: enable picking HDR/WCG colors when specified.

Usage Examples
(This FR does not introduce new controls, but changes the display of existing controls.)
Detailed Feature Design

Open Questions

Adding LCD text antialiasing into UWP/WinUI could also be added into this class since it is also related with colors, though it is more related to the format of textures (RGBArAgAb vs. RGBA).

Thanks for filing.  It looks like your proposal has a couple aspects to it:  HDR/WCG support, and also color profile adjustments.
Regarding HDR/WCG, we've had some discussion amongst our team on this topic before--about a year ago we added HDR/WCG support to Images and Media, and at the time we considered expanding this to a wider range of elements/controls.  One of the concerns that held us back was the potential for a substantial performance hit in apps (mainly memory bloat).  We could mitigate this via an opt-in model, but there's probably no way around the reality that this could cause substantial memory increase in some apps.  @be5invis, are there a specific set of controls/brushes that you think would be especially useful to improve, or a specific scenario you care about?  Or, is this more of a general proposal?
Regarding color profile adjustments, I'm not completely familiar with how colors are transformed across the system.  I'd need to familiarize myself with that more.  For Media controls, UWP XAML doesn't handle the pixel drawing--we punch out a hole in the UI and allow the MediaEngine to do it's thing as a general rule.  I'll follow up to see if I can put you in contact with the right person here at MSFT for that specific piece of the proposal.

@ryandemopoulos
One great example of lacking HDR/WCG support is the current photo viewer (as well as Edge but it is dead now): it assumes all monitors' color profile being sRGB and oversaturates every ordinary image on a WCG display.

The idea:

All non-media controls should treat its colors as sRGB (unless the programmer explicitly programmed it to use advanced colors), and convert it into monitor color, if your monitor claimed having HDR/WCG support.
For media controls (like images or videos), perform the conversion from its embedded color profile (when missing, use sRGB) to the monitor color profile, instead of assuming all monitors being sRGB.

@be5invis Thanks for clarifying.  One of the challenges in making these improvements is that it will require UWP XAML framework changes too—not just changes in WinUI.  I think we should wait until more parts of the framework are made open source per our roadmap, and then revisit at that time.  Assigning this to future for now.

Coming over from my duped proposal #777 …
When composing to a HDR capable swap chain, you only need to output colours in scRGB, and Windows will take care of scRGB to screen colour conversion for you, so I'm not sure this proposal needs to talk about colour conversion? There is an issue around gamma, as the output would now be linear gamma, as opposed to gamma 2.2, so WinUI / DWM may need to perform some correction there.
Also, Windows has the notion of "SDR Brightness", where the user can change the brightness of SDR content - but not HDR content (this is controlled by the monitor OSD), so in theory, an application that supported HDR UI would have a different brightness level to other applications on the same monitor.
With regards to macOS, the window compositor applies sRGB to screen colour conversion on the entire desktop, so the entire desktop is always colour managed correctly. Unfortunately, with an opt-in approach like Windows (i.e. enable FP16 on a Direct3D swap chain and output scRGB, or manually convert the colours in your app using the screen profile) you're going to get inconsistencies (and questions from the user such as, "Why do the colours in my picture look different in these two applications?") when one application is colour managed, and another isn't.

Is there no API to query the device's current Colour Range?
Xbox could benefit from that now the Xbox One X exists, and presumably the Next Xbox will maintain support for HDR displays.

Should there be an API to query the device's Colour Profile?
Should the existing ThemeResources automatically adjust to fit the colour ranges?
Should there be Theme ResourceDictionaries to reach the common ranges?

Is there no API to query the device's current Colour Range?

DXGI can provide that info, but no Windows Runtime / WinUI API that I'm aware of.

I think the Windows.Graphics.Display.DisplayInformation class contains methods that will give you this information (I have not personally tried them yet).
One of the first steps to enable these features would probably to change the current Color struct to a real class like in WPF. The current struct can only hold 8bit ARGB values, while the WPF class can manage sRGB and float scRGB values (not sure how the data is managed internally). Adding support for color transformations using a supplied color profile could also be added here.

I think the Windows.Graphics.Display.DisplayInformation class contains methods that will give you this information (I have not personally tried them yet).

Ah yes, looks like Windows::Graphics::Display::AdvancedColorInfo::IsAdvancedColorKindAvailable will give you that information. You can query for HighDynamicRange support:

The display supports high dynamic range. In this case, it is safe to assume that OS composition is being done using an RGB:FP16 surface encoded as scRGB gamma. ...

Adding support for color transformations using a supplied color profile could also be added here.

macOS / iOS has similar capabilities in NSColor / UIColor.

Adding the needs-winui-3 label (update from my last comment about this requiring fundamental framework changes).  We can take a look once WinUI 3 ships and we have the entire XAML framework lifted up and shipping independently of the OS.

@ryandemopoulos
Also, aside from WinUI applications, legacy apps using GDI should also be converted from sRGB to monitor space, unless it claimed it will do the conversion all by itself by the MANIFEST file.
Please, PLEASE, PELASE, Stop assuming all monitors being sRGB.

Xbox would also benefit from these API changes.  As would future versions of Cleartype

This is an incredible step backwards for Microsoft, while the rest of the industry is leaving them in the dust.
As far back 2006 Windows introduced support for modern display technology using the scRGB (not sRGB!) color space. This was industry-leading at the time, leapfrogging Apple. Traditionally, all professionals used Apple because of the consistent end-to-end color management, but suddenly Microsoft enabled wide gamut and HDR support for ordinary applications. This color space uses linear light, 32-bit values to support 10-bit and 12-bit displays, and had a gamut that covered all realistic display technologies for now and the future.
Someone at Microsoft was forward-thinking.
In 2022 all Apple devices use the wide Display P3 gamut by default. All Apple devices correctly display HDR including Dolby Vision. All Apple Devices are color managed by default.
In 2022 it's hard to find a TV that doesn't do HDR and wide color, except perhaps in the "ultra budget" category.
In 2022 all major web browsers are color managed and wide-gamut capable. There's progress being made towards wide-gamut colors outside of image/video files as well. (e.g.: CSS background colors)
In 2022 the Win UI 3 library has gone back to the 1990s: 8-bit SDR sRGB only, no color management at all. It's broken by design, and can never be fixed without a rewrite.
I write this on a laptop with a 10-bit HDR OLED display with wide gamut (exceeding AdobeRGB) support... but using Windows 11 and Win UI 3 which reduces this to 8-bit SDR sRGB!
I'm just going to delete the Windows App SDK now and go back to using web development, Windows GUI development is a dead-end for me and all developers that care the slightest bit about graphics.
Let that sink in, please: I'm better off using HTML to develop a graphics-heavy application for Windows than Win UI.

Let that sink in, please: I'm better off using HTML and Google Chrome to develop a graphics-heavy application for Windows 11 than the native Win UI.

It's incredible. I've been working on some graphics software that really needs to be color-accurate for a while and I actually can't do it with WinUI. What's funny is that I've been experimenting with using .NET for this - there's a common, shared library between all ports of the software - and the Windows version is still likely to end up as Electron. I've been trying to push Windows as a platform that can be used as designers, but it's starting to get difficult justifying this over just pushing a native version exclusively for macOS while giving everyone else a web app.

Windows 11 22H2 has Auto Color Management (ACM). Does this affect WinUI?
https://support.microsoft.com/en-us/windows/auto-color-management-in-windows-11-64a4de7f-9c93-43ec-bdf1-3b12ffa0870b
https://devblogs.microsoft.com/directx/auto-color-management/

Any news recently?

The Auto Color Management feature is something cool, but many monitors and hardware configurations (CPU/GPU) are not supported and there isn't an easy way to customize things such as the rendering intent, etc.. for each app based on needs.
About color management, I just released the Mscms.WPF nuget library if you want to have a look. A GPU-accelerated version is available with the commercial license and make de-facto WPF applications fully color-managed without the performance hit.

It is still mind boggling that windows of all things don't have proper support for HDR. Everybody knows that Window's HDR feature set is miles behind the competitors. I don't really think they will implement this in WinUI before they fix their implementation natively in the OS... and right now, Microsoft seems more interested in AI and "techbro word salad nonsense" instead of delivering a solid OS.


Cancelling Image Selection from Album not throwing an error in iOS

I installed the latest version of this plugin today. In iOS, I noticed that when you go to the Album and then press Cancel without selecting an image, an error is not returned when no image is obtained. Whereas this works fine in Android. This is the code I have:
window.imagePicker.getPictures(function(results) {
}, function (error) {
                      console.log('Error: ' + error);
                      alert("Unable to obtain pictures");
}, options);

In the above, when the image selection is cancelled, I should get the Unable to obtain pictures alert but that doesn't work.
This is my ionic info:
cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 8.0.0

local packages:

    Cordova Platforms : android 7.0.0 ios 4.5.4
    Ionic Framework   : ionic1 1.3.3

System:

    ios-deploy : 1.9.2
    ios-sim    : 5.0.13
    Node       : v9.3.0
    npm        : 5.7.1
    OS         : macOS High Sierra
    Xcode      : Xcode 9.2 Build version 9C40b

Environment Variables:

    ANDROID_HOME : not set

Misc:

    backend : pro

Same issues here.

created PR for this issue #128

Hence This is already merged and updated, So closing this issue.


Add an email notification when new issues are found

it would be great to receive an email when new issues are found by the tool

Couldn't be this feature achieved with a continous integration tool like jenkins?
For example a jenkins job runs the checking and after it gets the new results sends an email.

A jenkins/CI  script could check the results of the new run and send an email if needed.

it could but it would be nice to have this feature into code checker as, to me, this is one of the key goal of this kind of project


Adjust workflows

@tyeth Nice. Thank you for PR. Were you able to boot CircuitPyhton 9 and see results?
I had some problems with it.

Hi @georgik, you'll be relieved to hear I did!
Problems with esp32 (loads Circuitpython in safe mode possibly a bug in 9 or with the device setup), but the esp32s2/S3 passed, and the C3 crashed wokwi (socket disconnected). I've pinged urish to see what's up with the C3, and will have another look soon.
Thanks for your work on this!

Thank you @tyeth . I'm looking forward to getting working CircuitPython. It would be really nice to have CircuitPython 9 results.
Thanks @urish for taking a look.


Bump hex_core to 0.8.4 to support licenses validations

We currently don't have a great way to test warnings from validations right now, thus I attached the screenshot below.
To note, in rebar3_hex (master) we do in fact have a good way to test this, I'll make a patch for that branch soon.

LGTM

Added indentation.

One more enhancement.


Can I call a function that is in PlayState.hx with lua script?

What is your question?
There are many variables and functions in PlayState.hx,
the wiki said:

getProperty(variable:String)
Returns a current variable from PlayState's name.
It can also be used to get the variable from an object that is inside PlayState or a Lua Sprite.
Example: If you wanted to get the current health's value, you should use getProperty('health').
Example 2: If you'd want to get Boyfriend's current character, you should use getProperty('boyfriend.curCharacter')

from: https://github.com/ShadowMario/FNF-PsychEngine/wiki/Lua-Script-API:-Value-Setting-and-Getting-Functions
Question:
Can I call a function that is in PlayState.hx with lua script?

you cant.


Changing name of the example files to match with actual files in guides repos

from TriggerQuicklabs.yml to triggerConversion.yml

The PR is picking up changes that have been merged before.


Not catching error TransportException

Hi,
I am running your script via a http://robo.li task. When getting a TransportException, it is controlled by your script and not re-thrown so there is no stderr output and therefore Robo is not detecting a failure.
If I re-throw the error in your script then the stderr output is as expected.
What do you think about it?

Hi Ignacio,
let's see...
We are talking about src/PhantomInstaller/Installer.php#L201, right?
When you get a TransportException, then Composer's $io->error() function writes the message to the error output.  That's based Composer's proc_open stream buffering approach to provide access to the output streams. I'm not familiar with Robo's API, but it should have a method somewhere, which provides access to the stdError stream, too. That would allow you to handle the error message.
I would try to solve this by monitoring the std error output with methods provided by Robo,
rather then by re-throwing an exception from my plugin.
Regards Jens

Thanks @jakoch for the quick response.
Yeah, I had the chance to get deeper into the code and doing some debugging on Robo. They use Symfony Process component for executing the commands and it seems the stderr is not being handled the right way AFAIK so it is messing with the composer output.
Sorry to bug you with this

You're welcome.


glTF Serializer: Known issues

[x] Export primitive modes
[x] Export meshes with multiple uv combinations
[x] Fix material alpha blending issue
[x] Support texture sampling
[ ] Support tileable textures
[x] Export line geometry
[ ] Support calculating base color factors with vertex colors

I just tried the glTF serializer, really great work here I can't wait to use it for my project
I found a little bug with Submeshes and Submaterial textures, maybe it's already in the list above but I'm not sure as I'm not a pro.
Here is how to reproduce it, you can open this playground: http://www.babylonjs-playground.com/#1XBLWB#6 , and export the glTF.
Here is a screenshot of the babylon scene:

and the glb export:

You can see that the texture is repeated on the export one one column...
I would like to help but I think I do not know well enough the internal of Babylon / the glTF format to do something... So I'll probably just help to report bugs ;-)
Thanks a lot for your work on babylon.js again !

Hi @tdurand , thanks for flagging this issue!  I'll look into this as I am working on another glTF serializer update.

Hi @tdurand , I plan on starting work on your texture issue.  As a heads up, this will make use of the KHR_texture_transform extension https://github.com/KhronosGroup/glTF/pull/1015, so some glTF loaders may need to implement support for it.  I plan on having this implemented in less than two weeks

Great, good luck let me know if you want me to test it 😉. No problem anyway I don't really need it I was just curious to try it on my project !

@tdurand no problem!  I'll be tracking progress on this issue here: KHR_texture_transform

Hi @tdurand .  I made a recent update to the glTF serializer to support texture uScale, vScale, offset, etc during export.  Feel free to try it when you get a chance.  I was able to serialize your previously posted playground.
scene.glb.zip

Hey ! Great, I'll give it a try on the project later, thanks for all the work you put in babylon.js !


build with pyp2rpm problem

fix build_requires

@kvesteri up!

What is the build_requires used for? I couldn't find it in the setuptools documentation.

there are a few difference between BuildRequires and Requires tag in rpm spec-file.
so it needs to add BuildRequires section to specs.
please look at the errors here
https://copr.fedorainfracloud.org/coprs/vorona/python2/build/473003/

File "/builddir/build/BUILD/validators-0.11.0/validators/utils.py", line 6, in
from decorator import decorator
ImportError: No module named 'decorator'

Thanks for the PR! :train:

Please pull updates to PyPI: https://pypi.python.org/pypi/validators

Done! :+1:

Now this build_requires is causing me problems


Ignores some cppcheck warnings

This Pull Request adds comments made so that, when using inline-suppr option, cppcheck will ignore the warnings about not using explicit keyword when a constructor has one parameter.
It addresses some of the warnings in #1759

Pull request checklist
Read the Contribution Guidelines for detailed information.

[ ]  Changes are described in the pull request, or an existing issue is referenced.
[ ]  The test suite compiles and runs without error.
[ ]  Code coverage is 100%. Test cases can be added by editing the test suite.
[ ]  The source code is amalgamated; that is, after making changes to the sources in the include/nlohmann directory, run make amalgamate to create the single-header file single_include/nlohmann/json.hpp. The whole process is described here.

Please don't

The C++11 support varies between different compilers and versions. Please note the list of supported compilers. Some compilers like GCC 4.7 (and earlier), Clang 3.3 (and earlier), or Microsoft Visual Studio 13.0 and earlier are known not to work due to missing or incomplete C++11 support. Please refrain from proposing changes that work around these compiler's limitations with #ifdefs or other means.
Specifically, I am aware of compilation problems with Microsoft Visual Studio (there even is an issue label for these kind of bugs). I understand that even in 2016, complete C++11 support isn't there yet. But please also understand that I do not want to drop features or uglify the code just to make Microsoft's sub-standard compiler happy. The past has shown that there are ways to express the functionality such that the code compiles with the most recent MSVC - unfortunately, this is not the main objective of the project.
Please refrain from proposing changes that would break JSON conformance. If you propose a conformant extension of JSON to be supported by the library, please motivate this extension.
Please do not open pull requests that address multiple issues.

Coverage remained the same at 100.0% when pulling e8678d3a830ab2c529ba86910353fb40085f42d2 on Xav83:ignoreCppcheckWarnings into bde57124187c5732c026ffb9357c0491344c45e7 on nlohmann:develop.

Hi @nlohmann 😃
First of all, thanks for your interest in this Pull Request. 👍
I agree with you that this is not something really elegant.
But if someone uses cppcheck on a project including the json library, he should not have those warnings too (which is my personal objective, with the issue #1759).
There are other ways to suppress warnings in cppcheck, detailed in the manual.
We can suppress each warnings in the command line and given this line to the cppcheck users.
But the more warnings will be ignored, the less this command line will be easy to read, or to integrate in a project using the json library and cppcheck.
We can create a text file, or a xml file in which the ignored warning will be detailed and given to cppchek, so that it won't trigger them. If this solution is used, then, it should be well described in the README, to make it easy for the cppcheck users to integrate this file in their workflow(since they can integrate it from conan, or as a cmake external project, for example).
I would happily modify this PR to use another solution. 😃
But I will need you, @nlohmann , or someone else to validate which solution to integrate.
Thank you in advance 🙂

@Xav83 I went ahead and reviewed it


Update BIDScoin description + typo fix

Note for maintainers:
we should have only a single yml file that lists ALL converters and render different tables based on their datatypes, because currently we have duplicates of some converters (BIDSme is another one)

That's how the page will look like.
Info about each tool appears on hover.

Feedback on the new website are more than welcome.


Refined types should be supported

Scala pickling should support all the refined types but those which require reflection, i.e. structural typing. A quick example:
trait Refined { type T }
implicitly[Pickler[Refined { type Captured = String }]]

Right now, we fail to provide picklers and unpicklers for such types.

I'd like to point out that one can define their own picklers and unpickler for that refined type, the goal of this ticket is to do this automatically.


Support to generate empty directory

I would like to generate empty directory without any files. How can it be worked in current hygen?
One possible workaround is generated a .gitkeep as the placeholder.

Yes! It would be nice for creating project templates. For example: "uploads" directory should be empty initially but must be there.

You can accomplish this using a shell action mkdir -p <%= yourparam %>


Top 5 Docker Logging Best Practices

Proposed title of article
Top 5 Docker Logging Best Practices
Introduction paragraph (2-3 paragraphs):
As with developing any application, logging is a central part of the process and especially useful when things go wrong. But logging in the world of containerized apps is different than with traditional applications. Logging Docker effectively means not only logging the application and the host OS, but also the Docker service.
There are a number of logging techniques and approaches to keep in mind when working with Dockerized apps. This article explains what Docker logging is, discusses Docker logging challenges, and outlines the top 5 best practices and their strengths.
Key takeaways:

What is Docker logging?
Challenges with Docker logging.
Docker logging methods and best practices.

References:
Please list links to any published content/research that you intend to use to support/guide this article.
N/A
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

seems like a helpful topic - lets please be sure it add value beyond what is in any official docs and that it does not overlap with any existing EngEd articles (if you haven't already). - approved @BashiirIsla