Start flash - never finds device, just sits with dots running across the screen

Trying to flash a Tessan dimmer, but the flash script fails to find the device. I believe the issue is on the Raspberry Pi side however and not on the Tessan device. How I set up my Pi 3b:

Fresh install of Raspian Lite
apt-get update && apt-get dist-upgrade && apt install git
Git clone tuya-convert
Install pre-reqs, run flash
Connect smartphone to vtrust-flash
Put dimmer into pairing mode (red flashing), press enter on flash script
Watch dots on screen (no change after 10min)

I find that my smartphone gets constantly disconnected after I resume the flash script. Is that supposed to happen? I've also tried doing a 'sudo killall wpa_supplicant' without any improvement.
Logs:
pi@raspberrypi:~/tuya-convert $ tail -f ./scripts/*.log
==> ./scripts/smarthack-mqtt.log <==
^C1556553878: mosquitto version 1.4.10 terminating
1556553881: mosquitto version 1.4.10 (build date Wed, 13 Feb 2019 00:45:38 +0000) starting
1556553881: Using default config.
1556553881: Opening ipv4 listen socket on port 1883.
1556553881: Opening ipv6 listen socket on port 1883.
1556554332: mosquitto version 1.4.10 (build date Wed, 13 Feb 2019 00:45:38 +0000) starting
1556554332: Using default config.
1556554332: Opening ipv4 listen socket on port 1883.
1556554332: Opening ipv6 listen socket on port 1883.
^C1556554573: mosquitto version 1.4.10 terminating

==> ./scripts/smarthack-smartconfig.log <==
Sending wifiPassword          flashmeifyoucan
SmartConfig in progress
^CTraceback (most recent call last):
  File "./smartconfig/main.py", line 23, in <module>
    smartconfig( passwd, ssid, region, token, secret )
  File "/home/pi/tuya-convert/scripts/smartconfig/smartconfig.py", line 55, in smartconfig
    sock.send_broadcast(broadcast_head)
  File "/home/pi/tuya-convert/scripts/smartconfig/smartconfig.py", line 35, in send_broadcast
    sleep(self._gap)
KeyboardInterrupt

==> ./scripts/smarthack-web.log <==
    tornado.ioloop.IOLoop.current().start()
  File "/usr/local/lib/python3.5/dist-packages/tornado/platform/asyncio.py", line 148, in start
    self.asyncio_loop.run_forever()
  File "/usr/lib/python3.5/asyncio/base_events.py", line 421, in run_forever
    self._run_once()
  File "/usr/lib/python3.5/asyncio/base_events.py", line 1388, in _run_once
    event_list = self._selector.select(timeout)
  File "/usr/lib/python3.5/selectors.py", line 445, in select
    fd_event_list = self._epoll.poll(timeout, max_ev)
KeyboardInterrupt

==> ./scripts/smarthack-wifi.log <==
wlan0: STA d0:04:01:2d:71:14 IEEE 802.11: disassociated
wlan0: STA d0:04:01:2d:71:14 IEEE 802.11: disassociated
wlan0: STA d0:04:01:2d:71:14 IEEE 802.11: disassociated
wlan0: STA d0:04:01:2d:71:14 IEEE 802.11: disassociated
wlan0: STA 84:0d:8e:a2:fc:08 IEEE 802.11: disassociated
wlan0: AP-STA-DISCONNECTED 84:0d:8e:a2:fc:08
wlan0: STA 84:0d:8e:a2:fc:08 IEEE 802.11: disassociated
^Cwlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Backing up /etc/dnsmasq.conf...
Writing dnsmasq config file...
Creating new /etc/dnsmasq.conf...
Writing hostapd config file...
Configuring AP interface...
Applying iptables rules...
Starting DNSMASQ server...
Starting AP on wlan0 in screen terminal...
Configuration file: /etc/hostapd/hostapd.conf
Failed to create interface mon.wlan0: -95 (Operation not supported)
wlan0: Could not connect to kernel driver
Using interface wlan0 with hwaddr b8:27:eb:6e:8f:08 and ssid "vtrust-flash"
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED
wlan0: STA 84:0d:8e:a2:fc:08 IEEE 802.11: associated
wlan0: AP-STA-CONNECTED 84:0d:8e:a2:fc:08
wlan0: STA 84:0d:8e:a2:fc:08 RADIUS: starting accounting session E2649651D617E6FA
wlan0: STA 84:0d:8e:a2:fc:08 WPA: pairwise key handshake completed (RSN)

==> ./scripts/smarthack-web.log <==
Listening on port 80

==> ./scripts/smarthack-mqtt.log <==
1556554958: mosquitto version 1.4.10 (build date Wed, 13 Feb 2019 00:45:38 +0000) starting
1556554958: Using default config.
1556554958: Opening ipv4 listen socket on port 1883.
1556554958: Opening ipv6 listen socket on port 1883.

==> ./scripts/smarthack-wifi.log <==
wlan0: STA d0:04:01:2d:71:14 IEEE 802.11: associated
wlan0: AP-STA-CONNECTED d0:04:01:2d:71:14
wlan0: STA d0:04:01:2d:71:14 RADIUS: starting accounting session<PHONE_NUMBER>E5AF5C
wlan0: STA d0:04:01:2d:71:14 WPA: pairwise key handshake completed (RSN)
wlan0: STA 84:0d:8e:a2:fc:08 IEEE 802.11: disassociated
wlan0: AP-STA-DISCONNECTED 84:0d:8e:a2:fc:08
wlan0: STA 84:0d:8e:a2:fc:08 IEEE 802.11: disassociated
wlan0: STA 84:0d:8e:a2:fc:08 IEEE 802.11: disassociated
wlan0: STA 84:0d:8e:a2:fc:08 IEEE 802.11: disassociated
wlan0: STA 84:0d:8e:a2:fc:08 IEEE 802.11: disassociated
wlan0: STA 84:0d:8e:a2:fc:08 IEEE 802.11: disassociated
wlan0: STA 84:0d:8e:a2:fc:08 IEEE 802.11: disassociated
wlan0: STA 84:0d:8e:a2:fc:08 IEEE 802.11: disassociated
wlan0: STA 84:0d:8e:a2:fc:08 IEEE 802.11: disassociated
wlan0: STA 84:0d:8e:a2:fc:08 IEEE 802.11: disassociated
wlan0: STA 84:0d:8e:a2:fc:08 IEEE 802.11: disassociated
wlan0: STA d0:04:01:2d:71:14 IEEE 802.11: disassociated
wlan0: AP-STA-DISCONNECTED d0:04:01:2d:71:14
wlan0: STA d0:04:01:2d:71:14 IEEE 802.11: disassociated
wlan0: STA d0:04:01:2d:71:14 IEEE 802.11: disassociated

==> ./scripts/smarthack-smartconfig.log <==
Put Device in Learn Mode! Sending SmartConfig Packets now
Sending SSID                  vtrust-flash
Sending wifiPassword          flashmeifyoucan
SmartConfig in progress

7\. Watch dots on screen (no change after 10min)

Should take 10 seconds tops

I find that my smartphone gets constantly disconnected after I resume the flash script. Is that supposed to happen?

Yes, start_flash calls stop_flash first, which closes the AP.
Thanks for posting your logs. It looks like you have two device mac addresses in your wifi log, is one of them the device in question?

Yes, if I pair the dimmer switch with the Smart Life app, it shows up:
84:0d:8e:a2:fc:08

So it would seem that at some point, smartconfig succeeded and paired your device to the AP. Since there are no HTTP requests logged, my best guess would be that unfortunately the firmware on this device has been patched.

Well that's a bummer. Can you still update the firmware if you solder wires directly to the chip? It's pretty easy to open up. Haven't tried that yet.

Believe me, I know! Yes you can certainly still flash the old fashion way.

Hi there,
the new firmware includes mbedtls support, the former http requests are now done via https with an psk_aes_128_cbc_sha_256 handshake and server certificate verification. You can see this if you run wireshark and filter for requests on port 443.
I am currently analysing the firmware, trying to find a way of flashing the device without opening it (sacrificed one of them for dumping the firmware using the testpoints and inappropriate soldering skills :)). Will report back if I am successful.
Greetings Cyberdemon

cyberdemon79 - That would be excellent if you can get it to work! I'll contribute to your sacrificial device fund :-)

@cyberdemon79 We are working on this :) I can be reached by my gmail account of the same name.
I'll close this issue now but you can still comment or reopen if the situation changes.

I was able to successfully flash the dimmer over serial. Had to hold down a button while connecting the serial cable, but went pretty quickly. Spent WAY less time flashing via serial than trying to fiddle with OTA. Another dimmer I bought I couldn't flash via OTA either. I think firmware updates rolled out pretty quick.

@joelrader yes... unless the device assembly precludes getting to the serial interface pins. The compactness of many of these, and even those that aren't compact, are sometimes laid out in a manner that makes getting to the contacts unfeasible because the amount of disassembly required.


Licensing problem in Fast Gauss-Legendre Quadrature

What are you trying to do?
Use the package without copyright risk
What did you do?

Used github.com/gonum/gonum(91a06ac64c4b32c929427846d4d1d3b8202ad7b1)
What did you expect to happen?
Licensing per BSD 3-Clause "New" or "Revised" License
What actually happened?
The code under THIRD_PARTY_LICENSES/Bogaert-LICENSE is not open source, because this is not an open source license.
Look closely. There is no grant in this text. It is only a warrantee disclaimer. That means the code is just as much all-rights-reserved as it would be without any license.
The actual business risk is quite low because the original developer probably intended otherwise. They probably had something like BSD or BSD0 in mind. But that is not what they actually did.
What version of Go and Gonum are you using?

N/A
Does this issue reproduce with the current master?
Yes
Proposed fix
Ask the original contributor to relicense their code.

Thank you for raising this. I have reached out to the original author to clarify/rectify the situation.

Thank you for raising this. I have reached out to the original author to clarify/rectify the situation.

I have reached out in two ways. One, I used the email address on one of his papers. Two, I used a connection request in LinkedIn. No reply yet. Have you had better luck?

No, I have had no response.


AttributeError: coroutine object has no attribute json

backend-primary_1       |   File "/home/appuser/backend/./src/services/sumo_access/summary_access.py", line 32, in from_case_uuid
backend-primary_1       |     if await case_collection.length_async() != 1:
backend-primary_1       |   File "/home/appuser/.local/lib/python3.10/site-packages/fmu/sumo/explorer/objects/_document_collection.py", line 51, in length_async
backend-primary_1       |     await self._next_batch_async()
backend-primary_1       |   File "/home/appuser/.local/lib/python3.10/site-packages/fmu/sumo/explorer/objects/_document_collection.py", line 201, in _next_batch_async
backend-primary_1       |     res = await self._sumo.post_async("/search", json=query).json()
backend-primary_1       | AttributeError: 'coroutine' object has no attribute 'json'

Might be as simple to fix as instead of https://github.com/equinor/fmu-sumo/blob/c1c2d21d026acdb112bcbbbe41b119a9580e7f7e/src/fmu/sumo/explorer/objects/_document_collection.py#L201
it should be
res = (await self._sumo.post_async("/search", json=query)).json()

A quick search indicated that this is the only place the .json() is extracted from the non-awaited response (https://github.com/search?q=repo%3Aequinor%2Ffmu-sumo .post_async&type=code).


grammar

https://docs.microsoft.com/en-us/azure/backup/backup-azure-backup-faq#how-many-times-can-i-recovery-data-thats-backed-up-to-azure
Should probably read "How many times can I recover data that's backed up to Azure?" instead of "recovery data".

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: efe1b860-8d24-1742-4f20-c3e75cacbba3
Version Independent ID: 2ac226c0-df97-f729-fe09-3d51d61b9083
Content: Azure Backup FAQ
Content Source: articles/backup/backup-azure-backup-faq.md
Service: backup
GitHub Login: @dcurwin
Microsoft Alias: dacurwin

Thanks for your comment. We are actively investigating and will get back to you shortly. Thanks for your patience.

Thanks again for catching this. A PR has been successfully initiated to correct this and the fix will be live shortly. Closing this issue.


Adding support for a tree(skip) field attribute

Adds support for skipping fields in a miniconf tree.
Fixes #182

Thanks for the cleanup - the refactor to an Option on new() was what I was contemplating as well. I like the approach :)

@jordens We seem to be hitting a ton of ICEs when compiling on stable for some reason... I don't see these locally with my rustc 1.72.0

https://github.com/rust-lang/rust/issues/116662


RE: conversion of Seurat object with ADT assay to anndata

Thank you for the fantastic tool.
I am attempting to process a pre-processed Seurat object to the anndata format required for TotalVI. The trouble I am having, is that the R and Seurat vignette does not give an example where one converts the ADT data into a format that is compatible with SCVI.
In particular it is not clear in the documentation how the "protein_expression_obsm_key" is generated. Is it possible to manually add a concatenated matrix of RNA and protein from a Seurat object and manually assign a "protein_expression_obsm_key"? If so, can that vignette be added? or the procedure explained here?
Many thanks in advance

So I believe you need to make another anndata object just for the protein data using the same method for the RNA data, but using the correct protein Seurat "assay". Then you can do rna_adata.obs["protein_expression"] = protein_adata.to_df() in Python.
You might also be able to save the seurat object as h5ad and read directly in Python as in this tutorial for scVelo.
Also we do appreciate these sorts of questions to be raised at our Discourse forum.

Thank you forsaking the time to respond, much appreciated.
Apologies, I hadn't realised there was a Discourse forum; am not an avid user of it, but will transfer usage questions to there.


UAVCAN module in Python

@pavel-kirienko I get this error with Python 2.7.9 - any idea what could be wrong here?
[  2%] Built target generate_topic_listener
Scanning dependencies of target git_eigen
[  2%] Generating git_init_src_lib_eigen.stamp
Running from the source directory
Traceback (most recent call last):
  File "dsdl_compiler/libuavcan_dsdlc", line 59, in <module>
    from libuavcan_dsdl_compiler import run as dsdlc_run
  File "/home/drone/src/px4test/76963e82ab032030042fa385cda331284357c85e/Firmware/src/modules/uavcan/libuavcan/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/__init__.py", line 17, in <module>
    from uavcan import dsdl
ImportError: No module named uavcan
src/modules/uavcan/libuavcan/libuavcan/CMakeFiles/libuavcan_dsdlc.dir/build.make:49: recipe for target 'src/modules/uavcan/libuavcan/libuavcan/CMakeFiles/libuavcan_dsdlc' failed
make[3]: *** [src/modules/uavcan/libuavcan/libuavcan/CMakeFiles/libuavcan_dsdlc] Error 1
CMakeFiles/Makefile2:3223: recipe for target 'src/modules/uavcan/libuavcan/libuavcan/CMakeFiles/libuavcan_dsdlc.dir/all' failed
make[2]: *** [src/modules/uavcan/libuavcan/libuavcan/CMakeFiles/libuavcan_dsdlc.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[  2%] Built target git_mavlink
[  3%] Built target git_uavcan
[  3%] Built target git_eigen
Makefile:147: recipe for target 'all' failed
make[1]: *** [all] Error 2
Makefile:111: recipe for target 'px4fmu-v2_default' failed
make: *** [px4fmu-v2_default] Error 2
drone@zurich01:~/src/px4test/76963e82ab032030042fa385cda331284357c85e/Firmware$ less /home/drone/src/px4test/76963e82ab032030042fa385cda331284357c85e/Firmware/src/modules/uavcan/libuavcan/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/__init__.py
drone@zurich01:~/src/px4test/76963e82ab032030042fa385cda331284357c85e/Firmware$ python --version
Python 2.7.9

Are you sure the git submodules were checked out with --recursive? This issue it often caused by mussing pyuavcan submodule.

Yes, checked, will re-check

Fixed.


TypeError: Cannot read property 'GamerCard' of undefined

api.profile({
gamertag : 'Pravdin Linda'
}, function(err, user){
if (err) return console.error(err);
message.channel.send(user);
}); was my code, I am not sure if this is a issue or not...

Just saw this, I'll look at it this weekend.

Alright I forgot to say it had something to do with "var api = new XBoxLive.Source.GamerCard();"

So I was able to look at it this weekend: and I have some bad news: #1 the docs are wrong and it's .Service rather than .Source... but this might not help you because #2 it seems the Gamercard endpoints now are 360 specific and linked to your application code (try logging into an xbox 360 after enabling 2 factor auth on your MS account for a crash course on this). So the data you get back may not be exactly what you expect if it is an xbox one user.

Thank you so much! I will try it out tonight! I will report back when I do!

Alright it worked! Thank you so much! Close the issue when you see this!

Excellent, I'm going to leave this open as a reminder to fix the docs and will close it once complete. Glad it worked for you!

yeah and also using it, it only works with xbox 360 profiles...

Tried this code but gives me
TypeError: Cannot set property 'gamertag' of undefined


Client refactoring

Reworking the client side to make it easier to work with and re-use parts of it. All calls to the view and controller interfaces are now wrapped in Context objects which maintain context - for example when making calls about a conversation the ConversationContext keeps track of the user and conversation it was created with.
This change did remove the gui client (for now) as it was much harder to convert  over to the new system. The text client was re-worked to use the new system along with making it easier to add and remove commands based on the context of the application.

Will reopen once the summer branch is updated with the changes in master.


⚠ Bofrost.de has degraded performance

In fe4267c, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1420 ms

Resolved: Bofrost.de performance has improved in 7435dc0 after 30 minutes.


vendor: update oci image spec dependency

Signed-off-by: Stephen J Day<EMAIL_ADDRESS>

Codecov Report

Merging #560 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #560   +/-   ##
=======================================
  Coverage   62.12%   62.12%
=======================================
  Files           3        3
  Lines         404      404
=======================================
  Hits          251      251
  Misses         93       93
  Partials       60       60

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b780519...24397e7. Read the comment docs.


Add Github Actions and tox with docs and pre-commit

A follow-up PR would be to add actual tests... Did some of this already in the past here https://github.com/gaborbernat/sphinx-autodoc-typehints/blob/master/tests/test_project_format.py#L20
Here's the run show would this be accepted it would actually pass https://github.com/gaborbernat/sphinxcontrib-towncrier/actions/runs/197400588

Ouch... This was supposed to be a learning experience for @slsh1o

 you want to reject the PR then?

I'll retract back into my shell, and ignore this library for now then.

@gaborbernat thanks! I'll ping you once it's ready to be looked at.

Please don't, I'm no longer interested in the project.

Sorry

No worries ☺


[Feature Request] Establish compatibility with openAI API v1.x

🚀 Feature
API compatibility with the defacto standard openAI-API
Motivation
Nearly every App in the AI field uses openAI API as backend API.
To be a usefulle drop in replacement, compatibility & actuality has to be achived.
Alternatives
There are two API-solutuions out there which are widely adapted by other projects (ATM), and maybe can be incorporated:
FastChat/FastAPI
and
LiteLLM

Call all LLM APIs using the OpenAI format. Use Bedrock, Azure, OpenAI, Cohere, Anthropic, Ollama, Sagemaker, HuggingFace, Replicate (100+ LLMs)

Which is a API-Proxy/Router/Loadbalance/Cache which can interface with 100+ other APIs.
Additional context
This FR is for tracking the results of a discord discusssion with @junrushao

any news on this @junrushao ?
what's the status?

Thank you for your question. We are migrating our OpenAI API-compatible REST API  to the new one defined here https://github.com/mlc-ai/mlc-llm/blob/main/python/mlc_chat/serve/entrypoints/openai_entrypoints.py. #1767 is the tracking issue for this migration. This is expected to be done in about two weeks.

this is now completed #1107


Implement Oracle support

We already have some code in place for Oracle databases, but it's not activated in the testsuite because it's not yet ready. Finish this work so that we can enable the test again.

Fixed by https://github.com/Blazebit/blaze-persistence/commit/d90e89545910880dab7431187c5525a14a5af7d1


/log and /reg not working

Not working for me anymore.

forge-1.11-<IP_ADDRESS>5-universal.jar
spongeforge-1.11-2195-6.0.0-BETA-2004.jar
FlexibleLogin.jar latest

Still not working /log and /reg. Work only /login and /register
forge-1.11.2-<IP_ADDRESS>7-universal.jar
spongeforge-1.11.2-2227-6.0.0-BETA-2157.jar
FlexibleLogin.jar latest

After executing the command /log, no message on login. After the timeout the player's kick. If you just run /log no parameters (in minecraft), then also no messages in chat. If you run log in the console, you'll see the message on wrong command format.


issue:On forget password it redirects with email

The issues https://github.com/zulip/zulip/issues/6342
Testing plan:
GIFs or screenshots:

On forgetting password it redirects with a registered user email address
so this also gives the user to confirm option for reset password

@samirpatil2000 thanks for working on this!  You should learn a bit about GitHub and Zulip's commit conventions before this will be reviewable.
Check out our GitHub guide and commit guidelines for more details.
You'll also want to add a test for this logic.

@timabbott Could you please tell me that what will the proper commit and please tell and also tell me How to add test

Going through the docs will help.
Still, I can help you List the issues with the commit message

issue is not a proper prefix check the doc on what the prefixes should be.
: should be followed by a space.
Lines should end in .
There should be a commit description following the message mentioning the details of the changes.
Finally, the description should end with either Fixes or Fixes Part of followed by the issue number for the person looking at the commit history to understand the exact relevance of the changes.

Moreover, I think it is better to at least run the static tests after committing with a --fix before pushing any code(./tools/lint --fix).
It is also recommended to run the relevant test suite locally if there are some code changes that can break the tests.

@LoopThrough-i-j  please check it did some changes

Thanks, but I still think issue is not a proper prefix, prefix could be auth as it determines the area where the fix is made.
a better commit message could be:
auth: Send email on forget-password.
Could you please provide a small description as well explaining the effective changes made and the reason, and add Fixes #6342 or Fixes Part of #6342 that fits in your commit?
One more thing is we like writing tests for every snippet we add to our codebase. It should be in the same commit where the code is changed. So writing some tests for this would be great.

@LoopThrough-i-j  could you please tell me how to write a test

Would suggest going through this for a detailed understanding of how to write tests.


Upgrade terraform-provider-aws to v5.35.0

This PR was generated via $ upgrade-provider pulumi/pulumi-aws --kind provider.

Upgrading terraform-provider-aws from 5.34.0  to 5.35.0.
Fixes #3378

Filing https://github.com/pulumi/pulumi-aws/issues/3399

Filing https://github.com/pulumi/pulumi-aws/issues/3400

Yeah, or have a matching bridge issue. Getting there.


Schema Generated is Not Valid Swagger

Bug Report
Summary
Nestia is currently generating schemas that contain invalid properties to be considered Swagger/OpenAPI. In particular, it includes a JsDocTags field on all properties which is invalid and should not be included. It also uses patternProperties to handle types of the form
interface Map {
    [key: string]: any;
}

patternProperties is part of the Json-schema spec but is not a part of OpenAPI spec. Example of jsDocTags when they shouldn't be included within this repo: https://github.com/samchon/nestia/blob/master/demo/generic/swagger.json#L312

The JSON schema is generated by typescript-json, another library of mine. I should remove those properties jsDocTags and patternProperties.
For reference, about the jsDocTag, I know that it is not a standard feature of JSON schema. However, I've defined such non-standard variable to help third party libraries like below case. For reference, the below example is a third party project which can automatically construct UI components only by TypeScript Type.

I think the concern here is that not all syntax in Json Schema is valid swagger so for example, the JsonSchema version of
interface Map {
    [key: string]: string;
}

would be
{
   "type": "object",
   "patternProperties": {
      "*": { "type": "string" }
    }
}

And the swagger would be:

{
"type": "object",
"additionalProperties": { "type": "string" }
}
You can't just inject json schemas of models into a swagger definition because of these subtle differences. There is a large overlap but as soon as you have to go outside of the overlap these differences break the ability to use the generated schemas elsewhere. Also Swagger is much stricter on extensions. If you want to add additional information that is not a property naturally declared on the schema, it must start with a prefix of `X-` to identify it as an extension.

Okay, I will update at v3.1.2 update. It may be done at Tuesday.


"Expected" type appears same as Actual type in error

The following error message can lead to much frustration and probably should not be obtainable.
$ elm-make BugReport.elm
-- TYPE MISMATCH ------------------------------------------------- BugReport.elm

The 2nd argument to function `map` is causing a mismatch.

12|   Decode.map OnDayOf (Decode.field "moment" decodeMoment)
                          ^^^^^
Function `map` is expecting the 2nd argument to be:

    Decoder Moment

But it is:

    Decoder Moment

Hint: I always figure out the type of arguments from left to right. If an
argument is acceptable when I check it, I assume it is "correct" in subsequent
checks. So the problem may actually be in how previous arguments interact with
the 2nd.

Detected errors in 1 module.

As you can see, the Compiler suggests your coded type "Moment" is incompatible with the one it should be, "Moment" - the (apparently) same type - which is even worse for one's sanity than the times when it says something like "String" is incompatible with [some type alias of String].
The example below includes two rookie mistakes (I think) that I only realized I made when I was trying to isolate this bug into an SSCE; I've encountered the bug before, but this is the only code I still have that produces it. I'm sure there is an even more minimal way to trigger it than this example.
Working Minimal SSCE code:
BugReport.elm
module BugReport exposing (..)

import Json.Decode as Decode exposing (..)

import BugReport2 exposing (..)

type alias Moment = String

decodeOnDayOf : Decoder MomentOrDay
decodeOnDayOf =
  Decode.map OnDayOf (Decode.field "moment" decodeMoment)

decodeMoment : Decode.Decoder Moment
decodeMoment = string

BugReport2.elm
module BugReport2 exposing (..)

type Moment = String
type MomentOrDay = AtExactly Moment | OnDayOf Moment

My excuse for providing a bug example relying on simple coding mistakes is that these mistakes are not caught by the compiler (Yet they really should be - perhaps good for two more bug reports) and because the error should not be written this way either way.  Again, the example code produces the above error and the above error only.

Mistake 1: Multiple definitions for the same example type Moment, albeit among different modules so there is no warning like there would be otherwise.
Suspected Mistake 2: type Moment = String instead of type alias Moment = String. I now suspect this is bad coding, oops! I did not arrive at this code by accidentally leaving out "alias", however, rather I removed intentionally at one point to see if it would make an error go away (probably one where it said "expecting Moment but I got a String" or the like) and it did.

For the second there was no warning either, and I'd say it's a major newbie trap. I did not change it to type because I thought it meant the same thing as type alias, but rather because I thought it didn't. But my current guess is that it's more different than I thought: type Moment= String is actually defining a type named Moment along with its possible values, of which there happens to be only one, and that one happens to have the name String (the same as a built-in type). Should this even be allowed?
If I'm right about that, then I guess what's really happening is this:
Function `map` is expecting the 2nd argument to be:

    Decoder BugReport.Moment

But it is:

    Decoder BugReport2.Moment

Normally, Elm's errors will do this automatically (be as specific as needed to disambiguate when there are naming conflicts), so I'm sure the original error message is not the desired behavior.

Thanks for the report! In the development version of the compiler, this is the error I see:

So this should be fixed in the next release!

Yesssss

We can  potentially warn about that. Making design changes is quite complex, but I will put it in my list of sharp edges.


Fix deterministic compile tests

This PR includes much better tests and the addition of reset! methods by @athompson-r7 and @fmitchell-r7 for Config and Config::Attributes
Additionally,

This PR adds diff functionality to Config::Rash to drive a fix to the extends merge in Config::Attributes.
The dirty method in Config::Attributes has been split into two methods, dirty, and root, which returns the reference to the root Attributes instance for the Config::File layer.
The new root method is also used in the extends handler to manually override the @dirty state with the new dirty! method.

All of these changes fix the final known issue (knocks on wood) with Config compiling of both hash and list type attributes and collection extension.

:+1: Nice! I like that Rash.merge! returns the list of updated keys. That's useful. :shipit:


Home Assistant Intents Not Working Well Or At All

I got my ESP BOX (non-lite) in a couple of days ago, got it flashed and up and running pretty quickly.  I tried some intents right after setting it up and none of them would work.  It just returned the I don't understand or similar from HASS when it tried to send the commands.  HASS is Home Assistant 2023.6.1 Frontend 20230608.0 - latest
I have a basement area in HASS with a lamp called table_lamp (note the underscore in case it's important) - I sent it a 'turn off basement table lamp' and it didn't understand.  I then set an alias in HASS for the same lamp - 'basement table lamp' - retried and it worked.
Then I have an entity called shades in my Living Room area - I tried 'open living room shades' - didn't understand.  But when I used the HASS assist and typed it in - it worked perfectly.
Both times, I made sure that what I said and what it sent were what I expected on the ESP-BOX screen.  It appeared as such.
Am I missing something here, is this expected currently?  Anything I need to do/check/tweak that I have maybe looked over?
I like the device, it wasn't too bad to flash and setup and looks nice, seems to hear well.  Hoping to understand this issue as I'd love to have a few of these in the house to get back to voice control without Google!

Are you running with local commands, or WIS? If it is local commands I don't think it supports these types of area commands.

Try testing your intents in the Home Assistant web interface. Click the text balloon icon in the top right corner, and type your intents there to see if they work.

If you're asking if I have setup the local hosted server - the answer is no.  I plan to, but have not yet.  I'm using the default settings for the ESP BOX (other then my wifi/password and HASS token).  I can work on setting up WIS locally and see how that goes as well.
If I've missed any info I need to let you all know - let me know.  Thanks for the input and help!

So there's a tovera hosted instance that is provided by default. But if you are using the literal default config, then it would be set to local by default I think, which is using the ESP local commands, which have a very specific format. You would want to use WIS instead, such as this:

Here's a screenshot form the config:

Rebuild with this change and look at the WebSocket messages for a hint:
diff --git a/main/endpoint/hass.c b/main/endpoint/hass.c
index 2bc73a2..f71318f 100644
--- a/main/endpoint/hass.c
+++ b/main/endpoint/hass.c
@@ -42,7 +42,7 @@ static void cb_ws_event(const void *arg_evh, const esp_event_base_t *base_ev, co
                 char *json = NULL;
                 char *resp = strndup((char *)data->data_ptr, data->data_len);

-                ESP_LOGD(TAG, "received text data on WebSocket: %s", resp);
+                ESP_LOGI(TAG, "received text data on WebSocket: %s", resp);

                 cJSON *cjson = cJSON_Parse(resp);
                 if (!cJSON_IsObject(cjson)) {

Alternatively capture them with Wireshark.

Hmm ok, so if you say some random string of text I'm guessing it shows on the screen. Not sure why else it wouldn't be recognizing it. Do other commands work such as asking if any lights are on?

I think I tried some other commands, but can test again and report back.  Will be a bit before I can do that.

Rebuild with this change and look at the WebSocket messages for a hint:
diff --git a/main/endpoint/hass.c b/main/endpoint/hass.c
index 2bc73a2..f71318f 100644
--- a/main/endpoint/hass.c
+++ b/main/endpoint/hass.c
@@ -42,7 +42,7 @@ static void cb_ws_event(const void *arg_evh, const esp_event_base_t *base_ev, co
                 char *json = NULL;
                 char *resp = strndup((char *)data->data_ptr, data->data_len);

-                ESP_LOGD(TAG, "received text data on WebSocket: %s", resp);
+                ESP_LOGI(TAG, "received text data on WebSocket: %s", resp);

                 cJSON *cjson = cJSON_Parse(resp);
                 if (!cJSON_IsObject(cjson)) {

Alternatively capture them with Wireshark.

Roger - will be a bit before I can try all this, but certainly appreciate the input.  I'll report back in with what I find!

I asked what lights are on and got a list back - so that's good!

The intent-end event says no_intent_match. Are you sure it works if you type exactly turn on basement table lamp in Assist in the web interface? I'd find it very strange if that works... Next step then would be to enable debug logging in Home Assistant and check the logs.

The intent-end event says no_intent_match. Are you sure it works if you type exactly turn on basement table lamp in Assist in the web interface? I'd find it very strange if that works... Next step then would be to enable debug logging in Home Assistant and check the logs.

No - it does not work on assist when I type  exactly turn on basement table lamp - so at least its consistent.
I'll crank up the logs on HASS and see what I can see there.
Thanks for the help!


How can NDCG be calculated for WikiQA?

Hi,
I'm going through the MatchZoo code for getting ndcg@k values for various models on WikiQA.
I can't really understand how wikiqa can be used in NDCG at all!
For example,
for a given query, q1, there are several candidate documents d1, d2, d3.
the y_true values are [1, 0, 0]
The model will provide a y_pred which will be the respective dot products of the query with each of the documents.
y_pred = [-0.96715796, 0.9667174, 0.97257483]
From just this data, how is it even possible to infer the ranks that out system has given?
if we consider y_pred values as relative ranks, then the ranking is d3, d2, d1
dcg@3 would be rel3  + rel2/log3 + rel1/log4
and Ideal dcg@3 would also be the same, ie, rel3  + rel2/log3 + rel1/log4
and thus ndcg@3 would be (rel3  + rel2/log3 + rel1/log4)/(rel3  + rel2/log3 + rel1/log4) = always  1
Moreover, we never made of the true relevance, ie, y_true
This overall doesn't make any sense to me.
I would be really grateful if someone could help me make sense.
@faneshion @yangliuy @bwanglzu

Here is an actual instance while evaluating wikiqa code
ndcg@3
y_true[pre: suf] is  [1 0 0]
y_pred is
[-0.96715796, 0.9667174, 0.97257483]
result:
ndcg@3 = 0.5

Another example:
ndcg@5
y_true[pre:suf] is  [1 0 0 0 0 0]
y_pred is  [ 0.9705702, -0.9754324, 0.9737232, 0.8897103, 0.9523903, 0.9374584]
ndcg@5 is  0.6309297535714574

I'm not sure my understanding towards your question is correct, but nDCG should evaluate relatedness, such as [0.7, 0.9, 0.2, 0.4, 0.5, 0.0, 0.3] (should be a list of positive values indicates the relatedness).
The y_true you provided should be clicked/not-clicked, right? According to my understanding, nDCG is not quite useful when evaluating such binary labels.

as per this post by FastML:

The main difference between the two is that MAP assumes binary relevance (an item is either of interest or not), while NDCG allows relevance scores in form of real numbers. The relation is just like with classification and regression

This supports my point that evaluating NDCG on WikiQA doesn't make any sense.
If this is in fact correct, the benchmarks be corrected by removing NDCG for the WikiQA dataset.
What do you think, @yangliuy ?

@aneesh-joshi Basically, you're evaluating clickthrough data was represented as 1-relevant or 0-not_relevant.
![precision]()
based on the assumption of clicked=relevant. So, Precision, Recall, AP, mAP, F1, MRR(Mean reciprocal rank), and all@k is useful for this situation.
For the situation of Non-binary relevance measurement, we use nDCG to evaluate the usefulness (say cumulative gain) of each document. So it's not meaningful to use nDCG to evaluate binary labels (because information gain always equals to 1 or 0).
I'd say let's keep the evaluation framework to be unified at the moment since the user of MatchZoo should clearly understand which evaluation metric makes sense for his/her specific situation.
Instead of a random blog post, I would suggest you read evaluation metrics: irbook written by Christopher Manning since it's more formal & easy to understand.

For reference of others, @bwanglzu is replying to a comment I later deleted, citing this site:

MAP is a metric for binary feedback only, while NDCG can be used in any case where you can assign relevance score to a recommended item (binary, integer or real).

For clarification, @bwanglzu , are you agreeing that nDCG cannot be used for binary classification like that of WikiQA dataset?
Also, MAP, precision, etc. are better measures for nDCG?

@aneesh-joshi I'd say it can be evaluated with nDCG, but not meaningful for binary retrieval problem.
For binary retrieval problem (say the labels are 0 or 1 indicates relevant or not), we use P, AP, MAP etc.
For non-binary retrieval problem (say the labels are real numbers greater equal than 0 indicates the "relatedness"]), we use nDCG.
In this situation, clearly, mAP@k is a better metric than nDCG@k.

Thank you very much for that clarification! I've been rattling my brain for days trying to figure out how nDCG is used here.
What about QuoraQP dataset. Since it's either relevant or not, i.e., there are only 2 ranks, would nDCG be applicable there or is MAP, P@k, etc still better?
Also, I don't  understand your reasoning for not removing it

since the user of MatchZoo should clearly understand which evaluation metric makes sense for his/her specific situation.

Isn't it lead to more people who get confused like me?

The previous metrics are all Information Retrieval Metrics. The output should be sorted (for non-binary retrieval situation) list, each value represents how likely this document is related to this query.
Input: Query & List of document to be ranked -> Output: Sorted list of Relevance Scores -> Evaluate: nDCG.
For Quora Question Pair duplicate detection problem, out output is a probability between [0,1] indicates the degree of duplicates, More importantly, the output has no internal relationship (independent)
Input: List of question pairs  2 -> Output: list of probability -> Evaluation: Machine Learning Evaluation Metrics such as cross-entropy loss.


Keyboard manager is drunk

Microsoft PowerToys version
0.74.1
Installation method
GitHub
Running as admin
Yes
Area(s) with issue?
Keyboard Manager
Steps to reproduce
I've disabled the win(left) + ctrl(left) + D for creating a new virtual desktop shortcut by keyboard manager but it still opens a new desktop sometimes when the keys get accidentally pressed during a game.  It's not a consistent error it happens some times I play games which makes it more annoying cuz I can't recreate it when I want, it happens mid games. The older powertoys version didn't have this issue but after updating to the latest 0.74.1 it started to happen.
✔ Expected Behavior
No response
❌ Actual Behavior
No response
Other Software
No response

/bugreport


test_expiration test case failing

Test Case '-[SwiftRedisTestSuite.TestMoreCommands test_expiration]' started.
/Users/travis/build/IBM-Swift/Kitura-redis/Tests/SwiftRedis/TestMoreCommands.swift:170: error: -[SwiftRedisTestSuite.TestMoreCommands test_expiration] : XCTAssertEqual failed: ("Optional(1.849)") is not equal to ("Optional(1.8500000000000001)") - ttl for test1 should be 1.85. It was 1.849
Test Case '-[SwiftRedisTestSuite.TestMoreCommands test_expiration]' failed (0.007 seconds).

Passes in most recent Travis builds. Closing.

These tests sometimes pass sometimes fail.

Reviewed code and build passes


Detect current transfers

Detect current transfers so they are not cut off.. disable setting AFTER they're done.

Planned 1.2


Set default connection timeout to match with iOS counterpart

Android version using URLConnection class to fetch config file and download files. If I'm not mistaken, the class has default connection timeout is 0 which is infinite, seems a bit too long for me :)
I'm not Java expert, just blindly adding in so please take a look and let me know if I'm missing something
Cheers

gah, sorry, mistake your repo the official one, please ignore this, i'll redo Pull Request on the official one


Add docs for params to artists route

To coincide with with https://github.com/artsy/gravity/pull/10951
Adds all the params inside the code into the docs.

This handles some of https://github.com/artsy/gravity/issues/8723


PopupView seems to follow the component with the biggest width in the view?

Popup seems to follow the component with the biggest width in the view?

it works as expected when content overflows to the next line

Code:
`
import MijickPopupView
import SwiftUI
  struct BottomCustomPopup: BottomPopup {
      func createContent() -> some View {
          HStack(spacing: 0) {
              Text("Witaj okrutny świecie")
              Spacer()
              Button(action: dismiss) { Text("Dismiss") }
          }
          .padding(.vertical, 20)
          .padding(.leading, 24)
          .padding(.trailing, 16)
      }
      func configurePopup(popup: BottomPopupConfig) -> BottomPopupConfig {
          popup
              .horizontalPadding(20)
              .bottomPadding(42)
              .cornerRadius(16)
              .tapOutsideToDismiss(true)
              .dragGestureEnabled(true)
              .contentIgnoresSafeArea(true)
      }
  }

`

Hey, @Nathan1258!
It seems to me that you put modifier implementPopupView in the wrong place. Could you please show me where you inserted it?
Thanks!

Hi, @FulcrumOne
I've put it at the @main call:

import SwiftUI
import MijickPopupView

@main
struct OverloadApp: App {

    var body: some Scene {
        WindowGroup {
            Splash().implementPopupView()
        }
    }
}

Yeah, I have just checked and you are right. However, the bug is expected to be fixed in the patch-2.2.3 branch
Could you confirm that everything works as expected there?

Yeah, I have just checked and you are right. However, the bug is expected to be fixed in the patch-2.2.3 branch
Could you confirm that everything works as expected there?

Hi. Sorry for the delayed response. Yes I can confirm this branch has a fix for the issue. Thank you!


Add property_linespace_threshold_count to PropertySortOrder

I love PropertySortOrder—but the rule creates more clutter than it removes by flagging un-linespaced properties, when the total number of properties in a rule (ie p { … }) is <=3.
IMO, the rule should have a property_linespace_threshold_count (with a much better name)—with a default of 3.
With that, the rule will be unequivocally great. :)

Implemented in 92c0c62d3594b61e65b7797f8262f7fc6abf779d.

Awesome, thanks so much. :+1:


HPHX-3587: wash zip files content (strings, filenames)

Description

fixed incorrect kuid values in zip files
regenerate checksum
washed zip contents (strings and filenames)
deleted dummy 1-volt-mx-changes category
washed 95% , the 5% left (url's) will be wash via separate PR.

Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

draft for now. still checking other categories in Iris.

https://jira01.hclpnp.com/browse/HPHX-3587


Show URL‘s in TeleFrame

In addition to photos and videos, what do you think about displaying URLs that are sent as links? So you could also use TeleFrame as a dashboard.

Sounds like a nice Idea. Can you please describe the expected behavior a bit more detailed?

If you could display web content as a full screen, this would be great in a first version.
No frames or controls should be displayed.
It would be really cool to be able to use the web page in pause mode, if the website offers dynamic content.

But how do you resume the slideshow when controls are disabled?

To pause you have to fade in the navigation bar. It could be static visible until you resume.

Does anyone have time and desire to work on this topic?
Unfortunately I lack the experience to tackle it myself.

I wanted to ask if there is someone who would implement it.
I can offer myself for testing.


Theme inconsistencies in Incompatible Packages dialog

Prerequisites

[x] Put an X between the brackets on this line if you have done all of the following:

Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages

Description
On dark themes, the container boxes in the incompatible-packages view look very different from the rest of the Atom UI. This is due to hard-coded colors being used, rather that UI variables.
Steps to Reproduce
I don't know how to artificially produce packages that need to be rebuild, but they are prerequisite to the following steps

Switch to a dark theme
Open the incompatible packages dialog

Expected behavior:
The look should be consistent with the rest of Atom's UI, more specifically the background- and border-colors.
Actual behavior:
The colors for background and borders are clearly addressing light themes only.
Reproduces how often:
100%
Versions

Additional Information
atom-one-light

atom-one-dark
Without PR

With PR

Thanks for reporting this!
This has already been fixed in https://github.com/atom/atom/pull/20546. It is currently scheduled for release when v1.52.0 reaches Stable.


'RCTEventEmitter.h' file not found while building iOS swift based | React Pod deprecated

OS:

[ ]  Windows
[x]  MacOS
[ ]  Linux

Platform:

[x]  iOS
[ ]  Android

Output of node -v && npm -v && npm ls --prod --depth=0
v8.9.0
5.5.1

├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>
Config:
<EMAIL_ADDRESS>{
....
}).install()

I have following issue:
I'm trying to setup sentry in my react-native project without success.
I've already put up an issue in sentry-wizard regarding users that use swift instead of objC because the setup is not done properly when using swift.
But basically, after linking everything and manually add the excerpt of code to AppDelegate.swift I do pod install to get the Sentry libs, but apparently React Pod also comes as a dependency, despite being deprecated. I'm not sure if that's causing the issue, but after all these steps, while build the project I always get 'RCTEventEmitter.h' file not found in RNSentryEventEmitter.h even though I can navigate to the RCTEventEmitter interface file.
Any help would be appreciated.
Thanks in advance.
Steps to reproduce:

React Native project using swift for iOS
yarn add react-native-sentry
react-native link react-native-sentry
pod install
Manually add missing code to AppDelegate.swift
Build Project

Actual result:

Expected result:

Successful build

I can confirm that I'm having this exact same issue. And I'm not using Swift, so I'm pretty sure it has nothing to do with that.
Not sure if downgrading with help - but gonna give it a shot

Got it working!
For anyone reading this, these are the steps I took:

Do NOT use CocoaPods for react-native-sentry
Follow the standard install steps:
a) yarn react-native-sentry
b) react-native link react-native-sentry
If your Podfile was modified by the setup script, remove any reference of ReactNativeSentry
Open Xcode and drag node_modules/react-native-sentry/ios/RNSentry.xcodeproj into your project's Libraries directory
Open your project's "Linked Frameworks and Libraries" and add libRNSentry.a

Hope that helps!

Hey @amsul thanks for the reply! I'll give it a shot and see it it works!

@Jflima92 since you're using Swift, you likely have to add the import to your bridging header first.

@amsul I've done that after adding the react-native-sentry ios folder to the headers search path with recursive mode, but still no luck. I'm a missing something? 😞

@amsul Thanks so much for your post. Was struggling to get this Sentry installed and built without errors and NOT using CocoaPods was the way to go.

So am I correct to conclude that the official install instructions for react native on iOS are wrong?
Just trying to understand if this is a workaround for some rare issue, or if the documentation is outdated.

@askielboe not sure if it's "wrong" per se..I've seen other RN packages suggest similar steps of adding a dependency to the Podfile that points to node_modules. But I've never been able to get my builds to fully work in those cases.
However, this setup seems to always work.

Yep, that's also my experience. Even for packages that very explicitly demands that I use cocoapods, I can never get it to work properly. But manually linking, as in this case, always seems to work.
Guess I was just wondering what the reason was to add the podspec when it seems not to work in a lot of cases. I like cocoapods for native development, and it would indeed be nice if it worked for RN native dependencies as well.

@amsul this is the only thing that finally fixed this header files issue both locally and on our CI. thank you!

For me, this commit was the cause of the error: https://github.com/getsentry/react-native-sentry/commit/320651c23144664fb193c34a484a9fbee492dee9#diff-d8cd0abcb714ce13da6a6f2645e214af
After reverting that, the build finishes without problems. As a workaround until it's fixed or explained, I've added an npm post install script that reverts the commit.
if [ -f ./node_modules/react-native-sentry/SentryReactNative.podspec ]
then
  if ! grep "s.dependency 'React'" ./node_modules/react-native-sentry/SentryReactNative.podspec
  then
      sed -i.bak \
         $'s#s.dependency \'Sentry\'#s.dependency \'React\'\\\n  s.dependency \'Sentry\'#g' \
         ./node_modules/react-native-sentry/SentryReactNative.podspec
  fi
fi

(no sed-expert, but it seems to work...)

@othorin Do you still have to error when using CocoaPods 1.4.0 as described here: https://github.com/getsentry/react-native-sentry/issues/395#issuecomment-388215879
TBH I don't really had time to wrap my head around this issue if the error lies on the CocoaPods or react-native side.
Both seem to have downsides but people seem to have more trouble now than before, I've asked the contributor to elaborate more on this, otherwise I will revert this back so React is in the podspec.

Hey, so I reverted the change, React is back in the podspec.
Version 0.37.0 is on its way, sorry for the inconvenience this has caused.

Same issue
react-native-sentry: ^0.37.1,
react-native: 0.51.0

i try all way above, it's still error =))))

@amsul You saved my life :D

@amsul's answer should be in Sentry's documentation.

@amsul you're the best!

good solution

@amsul Thanks, this works

As a quick side note, I tried it on fresh clean swift ios project.
Followed the react-native docs for integrating in an existing app here: https://facebook.github.io/react-native/docs/integration-with-existing-apps
And did:
yarn add react-native-sentry
react-native link react-native-sentry
cd ios
pod install

everything worked without doing any manual linking.

For my part, the steps given by @amsul worked, thanks a lot!
But I ultimately also figured out how to link Sentry with react-native link. The problem came from the fact that I did not have all of React Native's required podspecs. Sentry was then adding a wrong version of React (which even issued a deprecation warning on pod install).
Adding the podspecs according to the React Native install guide, and then $ react-native link, $ cd ios/; pod install worked:
  ...

  pod 'React', :path => '../node_modules/react-native', :subspecs => [
    'Core',
    'CxxBridge', # Include this for RN >= 0.47
    'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
    'RCTText',
    'RCTNetwork',
    'RCTWebSocket', # needed for debugging
    # Add any other subspecs you want to use in your project
  ]
  # Explicitly include Yoga if you are using RN >= 0.42.0
  pod "yoga", :path => "../node_modules/react-native/ReactCommon/yoga"

  # Third party deps podspec link
  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

  ...

@silvainSayduck that approach would work as well.
However, my concern with doing that is that it requires quite a bit of maintenance and knowledge of RN's dependencies to keep it working. Especially through upgrades as dependencies are changed/added/removed. It's a nightmare to debug that at times.
You can see hints of that in the snippet you posted as well, which requires separate dependencies for 0.42 0.43, 0.47, etc. This is going to be a never ending thing to maintain.


Update batchnorm api by removing fuse_with_relu

Following: https://github.com/PaddlePaddle/Paddle/pull/21028#issuecomment-550180950

@luotao1 Please help review this PR.

Please cherry-pick into release/1.6 @bingyanghuang


Added note for delay in updates for feedback added

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

#sign-off


Add failure callback when cannot request read permission on iOS

Fix: Add failure callback when cannot request read permission on iOS

Code looks good to me 👍

@EddyVerbruggen: Sorry, I made a mistake that failureCallback is not included in parameter of function. I'm going to create a new pull request for that problem. Thank you!

No worries, just ping me whenever you've finished it. Cheers!

@EddyVerbruggen: I created a new pull request to fix that problem mentioned above: https://github.com/Telerik-Verified-Plugins/ImagePicker/pull/131. It would be nice if we can release a new version on NPM for this bug. In the mean time, I have to create my own repo and release it on NPM to deal with this bug.
Thanks and best regards!

Thanks for the quick fix, version 2.2.2 is available on npm now.

That's so fast and amazing. Thanks a lot 💃

thank you for the fix quangdt!!


Continue on UNABLE_TO_VERIFY_LEAF_SIGNATURE

We like to request that it is possible (maybe by an explicit option) to continue certificate verification even if UNABLE_TO_VERIFY_LEAF_SIGNATURE is thrown.
We are implementing the official eID-Client of the German identity card. The whole system is defined by a technical guideline of the Federal Office for Information Security. [1]
The identity card uses NFC to establish a connection between server and the card itself. These connections are also secured by TLS. It is not possible to use root-CAs from system truststore as the German eID infrastructure uses it's own trust anchor. This trust anchor is a CVC (Card Verifiable Certificate) which is verified by the card itself. The CVC contains hash values of the allowed TLS certificates.
When we establish a secured connection via TLS we need to check certain things like certificate validity. But as we don't have a root CA we need to ignore "UNABLE_TO_VERIFY_LEAF_SIGNATURE" error. Even though the content of the certificate MIGHT be compromised we MUST do plausibility checks (like validity) because we can approve it LATER with our received CVC. However, openssl stops the whole validation. This breaks our workflow as it would allow that an expired certificate is not fatal.
We checked mbedtls and gnutls.
It is not possible to enforce all eID service providers to send the WHOLE certificate chain including the root-CA. See RFC5246 section-7.4.2.
   certificate_list
      This is a sequence (chain) of certificates.  The sender's
      certificate MUST come first in the list.  Each following
      certificate MUST directly certify the one preceding it.  Because
      certificate validation requires that root keys be distributed
      independently, the self-signed certificate that specifies the root
      certificate authority MAY be omitted from the chain, under the
      assumption that the remote end must already possess it in order to
      validate it in any case.

[1] https://www.bsi.bund.de/SharedDocs/Downloads/DE/BSI/Publikationen/TechnischeRichtlinien/TR03124/TR-03124-1.pdf?__blob=publicationFile&v=2
[2] https://tools.ietf.org/html/rfc5246#section-7.4.2

You can do that by writing your own verify callback that masks the error.  Look at apps/verify.c for example.

Are you sure that should work with UNABLE_TO_VERIFY_LEAF_SIGNATURE?
We uses Qt has framework which uses a custom verify callback. They allow to ignore certain ssl errors. We can ignore any error except UNABLE_TO_VERIFY_LEAF_SIGNATURE.
https://code.qt.io/cgit/qt/qtbase.git/tree/src/network/ssl/qsslsocket_openssl.cpp#n525
Also it looks like the whole verification will be stoped here as it immediately return and cannot go to "check_cert:" in line 1757.
https://github.com/openssl/openssl/blob/master/crypto/x509/x509_vfy.c#L1725

Are you sure that should work with UNABLE_TO_VERIFY_LEAF_SIGNATURE?

It should but I have not tried to do so.

We uses Qt has framework which uses a custom verify callback.

I didn't know you were doing that.  I don't know what you would have to do to work with QT.

Are you sure that should work with UNABLE_TO_VERIFY_LEAF_SIGNATURE?

It should but I have not tried to do so.

It immediately stops verification because openssl "returns" on THAT error. Any other error is not a problem.
I tried it with "openssl s_client", too. Expiration is not checked anymore after that error.

I was suggesting you write a custom verify callback and mask that error.

Sorry, I was not clear enough. :-)
I already did that - but that won't help.

https://github.com/openssl/openssl/blob/master/crypto/x509/x509_vfy.c#L1725
            return verify_cb_cert(ctx, xi, 0,
                                  X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE);

That should be like this because all other callbacks are executed the same way.
  if(!verify_cb_cert(ctx, xi, 0,
                                  X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE))
     return 0;

That should be handled like a self-signed certificate like mentioned some lines later.
      /*
         * Skip signature check for self signed certificates unless explicitly
         * asked for.  It doesn't add any security and just wastes time.  If
         * the issuer's public key is unusable, report the issuer certificate
         * and its depth (rather than the depth of the subject).
         */

Have you tried X509_V_FLAG_PARTIAL_CHAIN ?

I'm not entirely sure that the spec at https://www.bsi.bund.de/SharedDocs/Downloads/DE/BSI/Publikationen/TechnischeRichtlinien/TR03124/TR-03124-1.pdf?__blob=publicationFile&v=2 is a particularly good one to use.  I only skimmed it, but it looks like it's advocating a "listen on localhost on a specific port" model that is not guaranteed to actually result in communication with the desired entity, and I'm also concerned about the usage of certificates for conveying additional information.  It sounds like the verification procedures for the certificate may be influenced by the contents of the certificate in a way that can lead to attacks unless the additional information in the certificate is additionally validated against some out-of-band channel.

Have you tried X509_V_FLAG_PARTIAL_CHAIN ?

No, Qt don't have an API for that. That would be another feature request there. They don't accept a lot of crypto library specific stuff because they supports multiple backends.
But why another parameter to skip the whole callback of X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE? In my opinion that error should be maskable like all other errors like @richsalz suggested.

What are the disadvantages if it can be masked by the application? I don't see why it should not be merged.

This is solved for the master but not yet for 1.1.1.

Fixed for me. :-) Thank you very much!

Fixed for me. :-) Thank you very much!

You are welcome.
Glad that this backport was accepted during the OTC vote -  with a very narrow margin.

As a note - we're hitting this change as a regression in apache/serf - our test cases with a leaf (no CA chain present) are now seeing the verify_cb_cert get triggered multiple times.  The first time receives the failure, the second time receives success.  Since we're only expecting to receive invalid certs, we're treating the second call as an unexpected success...
Up to and including 1.1.1h, OpenSSL would stop processing the certificate after sending along the leaf error to the app callback.  In -stable and master, if the app's callback doesn't return a failure, it will then proceed to the date check portion (check_cert_time) - which then triggers a successful verification app callback.
So, I'm guessing the change is that downstream apps have to forcibly error out from our callback if we want to abort?  Are we the only client that this will trip up?  It might be good to denote this in the Changelogs - 1.1.1h was fine, but 1.1.1i wasn't.  (Maybe the accidental cert breakage in 1.1.1h masked this issue from surfacing earlier?)
<EMAIL_ADDRESS>thread:
https://lists.apache.org/thread.html/r7dcac67871b30cc565dc7655414b8ccbe2f08051aa0f17de9c0b53e8%40<dev.serf.apache.org>
Debian bug tracker link:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=978353

In the callback you decide what OpenSSL should do: ignore the error and continue or abort. It seems that you're telling it to ignore the error.
I'm not sure how the test works, but X509_verify_cert() should return the same if the certificate has not expired.


Drivable area segmentation only

Hello.
Is there a way to show the drivable area, but without removing the lane segmentation?
In other words, I want to segment the full road, without treating the drivable and lane segmentations tasks separately.
Attached you can find an example.

Thank you very much and congratulations for you great work!

hi  brother , you can  try this paper's method , visit  this url .


Useless article without links

[Enter feedback here]
This article is useless without links, especially for beginners like me. I want to learn by reading the online documentation and all I get is frustration. For example. when you say: "Go to Control > Policies > Shadow IT", from which of the infinite dispersive Microsoft websites I should open this? Is it admin.microsoft.com or security.microsoft.com or endpoint.microsoft.com or portal,azure.com or.... did you get my point? Not to mention that some paths or screenshots are obsolete! For a beginner like me who is trying to learn, you make my life like hell and I'd just abandon the system.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: eacc3bb2-913e-365a-a49d-e50a03d200fc
Version Independent ID: dced7104-668a-c061-648e-14c0c490ea59
Content: Create Cloud Discovery anomaly detection policy in Cloud App Security
Content Source: CloudAppSecurityDocs/cloud-discovery-anomaly-detection-policy.md
Service: cloud-app-security
GitHub Login: @dcurwin
Microsoft Alias: dacurwin

Thanks for your comment. We'll investigate the issue and get back to you.

Thanks again for your feedback. We've added links, screenshots and more up to date explanations to the article.


docs: Add v1p1beta1 Notification samples

Fixes #7133

We're trying to consolidate samples next to the client library (so https://github.com/googleapis/java-securitycenter in this case). Let's try to get it in there so we don't accept it here then immediately have to move it.

@lesv We can still review it here until we're ready to accept it in the split repo.

I also just realized this sample depends on google-cloud-pubsub, so it belongs in https://github.com/GoogleCloudPlaform/java-docs-samples anyways. These multi API samples will likely not be migrated to the client library repo.

I also just realized this sample depends on google-cloud-pubsub, so it belongs in https://github.com/GoogleCloudPlaform/java-docs-samples anyways. These multi API samples will likely not be migrated to the client library repo.

This link is getting me a 404.

Typo'ed that link: https://github.com/GoogleCloudPlatform/java-docs-samples

I've opened up a new PR: https://github.com/GoogleCloudPlatform/java-docs-samples/pull/2200


Use d3.event.timeStamp instead of Date.now?

That way, if multiple transitions are started independently during the response to an event, they are guaranteed to be concurrent.
However, we’d have to fallback to Date.now if d3.event is undefined. And we’d probably want to use the sourceEvent rather than d3.event. Although, we haven’t implemented any behaviors yet (drag, zoom, brush), so currently there is no difference.

Also note that requestAnimationFrame passes the callback the current time, and so does d3-timer; we could use that reference time even when there isn’t a user event.

I don’t plan on implementing this in the near future, so closing.


Github pages deployment: blocked because of a disallowed MIME type (“text/html”)

Describe the bug
Using the official demo repository and adding the GH action script from the docs, no page is shown. The console shows

Loading module from “https://klieret.github.io/assets/index.6e08241d.js” was blocked because of a disallowed MIME type (“text/html”). slidev-deploy-gh-pages-bug-demo
Loading failed for the module with source “https://klieret.github.io/assets/index.6e08241d.js”. slidev-deploy-gh-pages-bug-demo:8:1

To Reproduce
I've prepared a demo repository, which uses the init slidev example with no further customization.
The site should be live here; you should be able to observe the above error.
Desktop (please complete the following information):
Not on desktop

The assets are 404. The case is actually because you are deploying to a sub directory without config. Try slidev build --base /slidev-deploy-gh-pages-bug-demo/
https://sli.dev/guide/hosting.html#base-path

Thanks a lot, this solved it after a bit of trying! I really support https://github.com/slidevjs/docs/pull/88 because I imagine a lot of beginners will run into something similar (as the sub-route deployment is the default when you use github pages without a custom domain).


Swift Port - request for OSS License modification

Smith Micro has started a Swift port of http-parser on a fork here:
https://github.com/smithmicro/HTTPParser
While the project is not ready to be included in projects like Kitura, the Swift team has contacted us requested that the project be included in the Swift Benchmark Suite.  In order for that to happen, the code would need to be under the Apache2 license.
The request from the authors is to see if we could get a dual license exception such that HTTPParser could be included in future Swift benchmarks.  Is this possible?
There is a discussion going on in Kitura project with some additional background.
https://github.com/IBM-Swift/Kitura-net/pull/55
Thanks for your consideration.

@dsperling Thanks!

cc @mikeal
I'm not sure if there are any legal complications to this, but thanks for bringing it up!

We'd have to send it to the board to get a legal review. What is the issue with the current license? It's quite liberal.

@gottesmm can add more detail here, but the contribution guidelines for Swift appear to require Apache2.
https://github.com/apple/swift/blob/master/CONTRIBUTING.md

@mikeal Here is the issue:

I was going to try to include this in the swift benchmark suite. This is in the actual swift tree.
All code contributed to Swift must be under Apache2; IIRC a compatible license is not acceptable, but let me check that.

Now perhaps the right thing to do here is that we need a different "external project" test suite perhaps that can use projects with different licenses. Let me talk to some people.
Thank you for your help and quick response = ).

Ya, it would be a pretty huge task to dual license.
MIT license doesn't have any virality so you can use the code in your tree without issue.
If I had to guess why you have a policy of requiring Apache2, it would be so that contributors to the code base opt into the patent provisions of the Apache2 license. If you aren't modifying the code in a significant way that shouldn't be an issue. If you do make large modifications, and want to ensure they fall under the Apache2 license, you would probably just end up making them locally and noting that the modifications fall under the Apache2 license and stick that copyright attribution and notice below the MIT notice already in the file.

@mikeal I have a few thoughts about the reasons why this is so, but I am trying not to speculate upon it.

The main reason AFAIK is that we are trying to keep the whole code base under the same license so we can have a simple consistent story around licensing (rather than having to say... this part of the tree is under this license and this other part of the tree is under a different license/etc).

Silly question. Are ports of a piece of software to a different language still required to be licensed under the original license?

Silly question. Are ports of a piece of software to a different language still required to be licensed under the original license?

If it's a re-implementation, no. Copyright governs the work itself so if you re-implement it would be a new work and could have a new license.

The main reason AFAIK is that we are trying to keep the whole code base under the same license so we can have a simple consistent story around licensing (rather than having to say... this part of the tree is under this license and this other part of the tree is under a different license/etc).

I understand why you would want to do this for simplicity but in practice it ends up being rather difficult unless you are comfortable with pulling in a lot of external dependencies at build time. In the Node.js we've gone pretty much as far in the other direction as you could imagine and we check almost all of our dependencies into the tree. We have some automation that builds the main LICENSE file and calls out all the licenses and we keep pretty good track of any files that differ from the standard MIT license the rest of the project is under.

Let me try to visually show what I did.  This is not a re-implementation, but rather a port of the original 'C' work, so the original license and copyrights should be maintained.  The goal was to maintain as much of the core logic as possible which will allow future 'C' fixes to be ported easily.  Here is an example:
https://github.com/nodejs/http-parser/blob/master/http_parser.c:
size_t http_parser_execute (http_parser *parser,
                            const http_parser_settings *settings,
                            const char *data,
                            size_t len)
{
  char c, ch;
  int8_t unhex_val;
  const char *p = data;
  const char *header_field_mark = 0;
  const char *header_value_mark = 0;
  const char *url_mark = 0;
  const char *body_mark = 0;
  const char *status_mark = 0;
  enum state p_state = (enum state) parser->state;
  const unsigned int lenient = parser->lenient_http_headers;

  /* We're in an error state. Don't bother doing anything. */
  if (HTTP_PARSER_ERRNO(parser) != HPE_OK) {
    return 0;
  }
  ...

https://github.com/smithmicro/HTTPParser/blob/master/Sources/HTTPParser/http_parser.swift:
public func execute (_ settings: http_parser_delegate,
              _ data: UnsafePointer<UInt8>,
              _ len: Int) -> Int
{
  var c, ch: UInt8
  var unhex_val: Int8 = 0
  var p: UnsafePointer<UInt8> = data
  var p_state = self.state
  let lenient = self.lenient_http_headers

  delegate = settings

  /* We're in an error state. Don't bother doing anything. */
  if (self.http_errno != .HPE_OK) {
    return 0
  }
  ...

Here is another example deeper in execute:
'C':
      case s_req_server:
      case s_req_server_with_at:
      case s_req_path:
      case s_req_query_string_start:
      case s_req_query_string:
      case s_req_fragment_start:
      case s_req_fragment:
      {
        switch (ch) {
          case ' ':
            UPDATE_STATE(s_req_http_start);
            CALLBACK_DATA(url);
            break;
          case CR:
          case LF:
            parser->http_major = 0;
            parser->http_minor = 9;
            UPDATE_STATE((ch == CR) ?
              s_req_line_almost_done :
              s_header_field_start);
            CALLBACK_DATA(url);
            break;
          default:
            UPDATE_STATE(parse_url_char(CURRENT_STATE(), ch));
            if (UNLIKELY(CURRENT_STATE() == s_dead)) {
              SET_ERRNO(HPE_INVALID_URL);
              goto error;
            }
        }
        break;
      }

Swift:
      case .s_req_server,
           .s_req_server_with_at,
           .s_req_path,
           .s_req_query_string_start,
           .s_req_query_string,
           .s_req_fragment_start,
           .s_req_fragment:

        switch (ch) {
          case ASCII_SPACE:
            p_state = .s_req_http_start
            if CALLBACK_DATA(p_state, p, .url) { return p - data + 1 }
            break
          case CR,
               LF:
            self.http_major = 0
            self.http_minor = 9
            p_state = (ch == CR) ?
              .s_req_line_almost_done :
              .s_header_field_start
            if CALLBACK_DATA(p_state, p, .url) { return p - data + 1 }
            break
          default:
            p_state = parse_url_char(p_state, ch)
            if (UNLIKELY(p_state == .s_dead)) {
              try SET_ERRNO(.HPE_INVALID_URL)
            }
        }
        break

I hope this helps explain the license and copyright dilemma.
The Node.js team has answered the original question regarding the dual-license request, so I will close this issue.
Thanks for your consideration.


[site] Collapse navbar into a dropdown on mobile

Summary
This PR arranges the site's header navbar into a vertical list and adds a hamburger toggle to show and hide it.
Based on the hamburger menu being added to the mdbook theme. Would be good to use the same header on both the site and book for consistency.
This dropdown isn't animated at all, is that something we want? If so I'll copy over the mdbook animations.
I'm really not precious about how this looks, so any feedback on that is appreciated.
Screenshots

Before these changes

With these changes:

Is there a reason why you put the hamburger menu on the left instead of the right?

Oh it was because anecdotally I think I've seen them on the left more than the right, but the right makes sense too

I think in the book we'll end up using the right side because the mdbook menu is on the left, so it might be good to keep these consistent?


Feature/QR 3331 application awareness

This pull request adds required feature for supporting application awareness in qumram services.
The feature include ability

to pass params in web socket request
to pass query params in web socket request
to pass headers in web socket request

Things to be done before merge

[X] Update unit tests
[ ] Code Review

@leonkyr added ability to add tenant unaware endpoints in a tenant aware application, we use it for the status api. Also updated README, please take a look there as well


Don't expand method snippets in complex type

To check: octokit.repos
But allow with undefined / null if possibly

Weird behavior:
const method = vscode.languages.registerDocumentFormattingEditProvider

Should also not expand before dot, eg if using .bind

Almost fixed in last release


Fix implicit widening warnings

I should have caught these warnings in #296.

Should we rebase this to make the build passing?

Travis rebuilds automatically after other stuff gets merged to the target branch, so this is ready to go (I'm happy to rebase, too, though).

Interesting. I didn't notice that! Merging this in. Thanks @travisbrown!


feat: event selection

Adding an event selection functionality to the contrib module for histogram building from data read with uproot. Filtering is configured via a string containing the expression for the filter, which is evaluated via numexpr.

fe37e05 fixes a segfault that seems to depend on the uproot/awkwardversion in use, reported in https://github.com/scikit-hep/uproot/issues/491.

The segfault was not due to the version in use. The fix implemented now does not close the memory map and works as long as there are enough file handles available. This approach should be fine for now, and could be revisited for Uproot4/Awkward1.


Include platformName to selenium-grid scaler documentation

Included the description of the newly added selenium grid scaler metadata property: platformName.
Checklist

[x] Commits are signed with Developer Certificate of Origin (DCO)

Relates to kedacore/keda#4038

Thanks! Docs look good to me, but can you move them to 2.10 please?

OK. I will adjust it.

@tomkerkhove, requested changes applied

I noticed that I had made a commit associated with a wrong email so I redid the changes in a new commit. 😅

Waiting for feature to be merged


Update Go install command on home page.

To account for new module/repo path.

The command does not seem to work for me. Getting this error:
go: downloading github.com/google/osv.dev/tools/osv-scanner v0.0.0-20220817032841-55d70d05bc41
go: downloading github.com/google/osv.dev v0.0.14
go: github.com/google/osv.dev/tools/osv-scanner@latest: module github.com/google/osv.dev/tools/osv-scanner@latest found (v0.0.0-20220817032841-55d70d05bc41), but does not contain package github.com/google/osv.dev/tools/osv-scanner

Can you try setting export GONOPROXY=github.com/google/osv.dev and trying again? There's a bit of a propagation delay if we go through the Go module proxy.

Ah nice, seems to work now.


fix(security): read-write "id" field may lead to overstep

Task Description
Read-write "id" field may lead to overstep
Solution Description
Make id field in DTO objects readonly
Passed Regressions
manually
Upgrade Compatibility
Compatible
Other Information

Release Note

LGTM

LGTM

the title may use :  security: balbla, for automatic changelog generation

the title may use : security: balbla, for automatic changelog generation

get!


Printing multiple copies prints only 1 (pstopdf vs gstopdf)

Hello.
PROBLEM DESCRIPTION: Printer only prints one copy even though we want to print multiple copies of a document.
Our company uses postscript to print documents from our POS system based on Java and everything was working fine until we reached OpenSUSE 15.x distribution (15.0, 15.1, 15.2).
With the help of a friend from OpenSUSE forums (thanks deano_ferrari) I have managed to pinpoint the culprit.
I have attached a print file generated from our POS system.
The last working distribution was LEAP 42.3 along with the package cups-filters version 1.8.2-3.1
On our new system running LEAP 15.2 along with cups-filters version 1.25.0-lp152.1.8 it is NOT working.
So I tried to downgrade the cups-filters package from 1.25.0-lp152.1.8 to 1.8.2-3.1 and the problem was FIXED. The printer corrently printed multiple copies of a document. Going back to the new version of cups-filters, the printer only prints one copy. It affects multiple printers of various manufacturers.
I have also managed to identify all the filters used in the operation.
GSTORASTER
PDFTOPDF
GSTOPDF
RASTERTOSPL - this is a Samsung driver used everywhere so this is not the problem
So based on my research I would guess that thr problem lies within the first three filters.
postscript print file.zip
If you need me to attach additional logs I am more than happy to provide.
Thank you for your time and for looking into this.
Honza

cups-filters 1.8.2-3.1 use:
GSTORASTER
PDFTOPDF
PSTOPDF
cups-filters 1.25.0-lp152.1.8 use:
GSTORASTER
PDFTOPDF
GSTOPDF

So the problem most likely lies within the GSTOPDF filter. I have tried using the PSTOPDF filter from 1.8.2-3.1 along with GSTORASTER + PDFTOPDF from 1.25.0-lp152.1.8 and it works just fine, as long as I rename PSTOPDF --> GSTOPDF.

CORRECT AMOUNT OF COPIES.zip
ONLY 1 COPY LOG.zip

Further examining the 2 logs, I have found out that this parameter "-dDoNumCopies" is not called when using the original, new gstopdf. It is however, called when using the pstopdf disguised as gstopdf.

Fixed in commit 6157b8f617. Thank you very much for the bug report. Please test.

Yes this issue was fixed in CUPS ver. 2.3.3op1. However, many OS packages still
come with older versions of CUPS. Among them are recent Apple and Linux
operating systems, including the popular Linux Mint 20.1, which come with CUPS
2.3.1. Until OS versions include newer versions of CUPS (the latest is 2.4.1),
the problem will persist.
As many have recommended, editing the .ppd file for your printer to change
"true" to "True" (oh, the absurdity of source code that would require such a
change!) does fix the issue -- for a time. But the inability to print more
than one copy MAY come back if you ever change the printer's properties.
And it WILL come back if you add a new printer.
Here are the steps to fix the problem for your current printer(s). It must be
done as the system root user:
sudo su
systemctl stop cups
cd /etc/cups/ppd
While the CUPS service is not running, edit ALL .ppd file in this directory.
Search for the line "cupsManualCopies: true" and change true to True. Then:
systemctl start cups
exit

I am affected by this bug (or a bug with similar symptoms). The client is a Manjaro Linux machine, I don't know much about the server. Is the bug on the server or on the client side?

I have installed CUPS 2.2.6 in unix machine. I added printer using socket as recommended approach, like socket://<IP_ADDRESS>:9100.
Two cases

Document printing is success if I print a document one by one.
I send multiple document to the printer, It does not print and waiting in job queue.
for example, I send 100 document to the printer.It didn't print and job status shows " processing since the 21 sep 2023 am PDT 'waiting for the printer to finish' "

Tried to print two copies of a document on TOSHIBA e-STUDIO3015AC from a fresh Linux Mint 22 (based on Ubuntu 24.04). Two copies were printed indeed, but they were stapled together, as if they were one.

Tried to print two copies of a document on TOSHIBA e-STUDIO3015AC from a fresh Linux Mint 22 (based on Ubuntu 24.04). Two copies were printed indeed, but they were stapled together, as if they were one.

Maybe the same issue as https://github.com/OpenPrinting/libppd/issues/42

Tried to print two copies of a document on TOSHIBA e-STUDIO3015AC from a fresh Linux Mint 22 (based on Ubuntu 24.04). Two copies were printed indeed, but they were stapled together, as if they were one.

I have to add that the issues with CUPS are weird and hard to debug. I'll try to explain.
I managed to get multiple copies printed and stapled correctly. For this I executed
# systemctl stop cups
# systemctl start cups

Then the issue was gone. However, after a reboot the issue was back.
Here are more detailed observations.

After a reboot, /etc/cups/ppd is initially empty. Once local network is connected, this directory is populated with PPD files for network printers.

If I try to print multiple stapled copies at that moment, they are all stapled together. I notice that on the "Color" tab in the GUI print dialog I have 3 options for "Print Color Mode": "Color", "Auto Monochrome", and "Monochrome".

After executing sudo systemctl stop cups, the files in /etc/cups/ppd disappear, and after executing sudo systemctl start cups the folder remains empty. However, once a network printer is selected in a GUI print dialog, the corresponding PPD file appears in /etc/cups/ppd.

Now, the "Color" tab for the same printer looks different, there is "Color Mode" selection with two options: "Color" and "Grayscale". Printing stapled multiple copies now seems to work fine.

After a reboot everything repeats.

I remember that couple of years ago (on Linux Mint 21) I managed to find a workaround for the issue with printing multiple copies on these same network printers as follows: I tweaked somehow the PPD files in /etc/cups/ppd, which did not solve the issue but somehow made the files "stick" and not disappear once the printer is disconnected. As a result, the same network printer would appear twice in the printing dialog: once with the tweaked persistent PPD, and once with automatically generated PPD. The one with automatically generated PPD was printing multiple copies correctly. (However, if the persistent PPD was removed, there was still an automatically generated one, but it did not work correctly.)

If I try to print multiple stapled copies now, once a network printer is selected in a GUI print dialog, the corresponding PPD file appears in /etc/cups/ppd.

After executing the first line, files that automatically populated /etc/cups/ppd disappeared.

I'll try to explain my understanding @alexeymuranov.

After a reboot, /etc/cups/ppd is initially empty. Once local network is connected, this directory is populated with PPD files for network printers.

After this step, the cups-browse will create a driver named "driverless". And the "driverless" will cause the bug: "Two copies were printed indeed, but they were stapled together".
And the bug is fixed yesterday, details please refer https://github.com/OpenPrinting/libppd/pull/44.

After executing sudo systemctl stop cups, the files in /etc/cups/ppd disappear, and after executing sudo systemctl start cups the folder remains empty. However, once a network printer is selected in a GUI print dialog, the corresponding PPD file appears in /etc/cups/ppd.

After this step, the GTK (GUI print dialog) will notify cups to create a temporary driver named "everywhere". And the "everywhere" driver prints well. After printing for a few seconds, the "everywhere" driver will automatically disappear.
Is the following trick feasible?
Step1：Open the GUI print dialog and copy the corresponding PPD file in the /etc/cups/ppd. Rename it as "a.ppd".
Step2:  Use below command to add a persistent queue.
#lpadmin -p <foo-printer> -P a.ppd -v ipp://<ip-address>/ipp/print -E
Notes： The "foo-printer" in above command can be replaced by any queue name you like.

@szlt5 thanks for the information. I may try your suggestion when I am back at office.
Should I keep the a.ppd file in /etc/cups/ppd or put it somewhere else before executing the lpadmin command?

Should I keep the a.ppd file in /etc/cups/ppd or put it somewhere else before executing the lpadmin command?

It's ok to put it somewhere else, if you put it in the /tmp, the command should be:
#lpadmin -p <foo-printer> -P \tmp\a.ppd -v ipp://<ip-address>/ipp/print -E

@szlt5 , tested you suggestion, it worked!


tf.signal.stft has different results with or without @tf.function

Click to expand!
Issue Type
Bug
Source
source
Tensorflow Version
2.10.0
Custom Code
No
OS Platform and Distribution
Ubuntu 18.04.4 LTS (x86_64)
Mobile device
No response
Python version
3.7.6
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
N/A
GPU model and memory
No response
Current Behaviour?
tf.signal.stft has different results with or without @tf.function with the following input.

Standalone code to reproduce the issue
# Colab Link: https://colab.research.google.com/drive/1WleKXby71iZXOL12r8nIN8B_jd2wJQks?usp=sharing

import tensorflow as tf
import numpy as np

print(tf.__version__)

input = {'fft_length': 46, 'frame_step': 19, 'frame_length': 0, 'signals': np.array([[[[-8.75314539e+307, -4.03838038e+307,  8.23775798e+307, -1.32627219e+307,  1.19815521e+307,  4.57117750e+307],
                                                                              [-4.74761327e+307, -4.71580522e+307, -5.88832102e+307, -6.48759076e+307, -4.36028464e+307, -4.77775171e+307],
                                                                              [ 1.20113701e+307, -7.60106094e+307,  7.22716917e+307, 2.17687950e+307, -5.25271143e+306,  5.41182394e+307]]]])}

output1 = tf.signal.stft(**input)

@tf.function
def fun_wrapper(x):
    return tf.signal.stft(**x)

output2 = fun_wrapper(input)

print(np.allclose(output1, output2))

### Relevant log output

```shell
2.10.0
False

@jiannanWang,
I don't find any issue while executing the mentioned code. Could you please find the gist of it here and let me know if anything is missing here.

@sachinprasadhs,
I was able to reproduce the issue on tensorflow v2.8, v2.10 and nightly. Kindly find the gist of it here.

When we find out the difference between the both using print(np.subtract(output1, output2)).
The difference between two arrays is very small and it can be ignored as precision error.


laravel

Hi guys
why you don't write for laravel server side.

@afsaneh-shamsi hi, because I'm not familiar with PHP


[bug]

Is there an existing issue for this?

[X] I have searched the existing issues

RainbowKit Version
1.0.12
wagmi Version
1.4.3
Current Behavior
On adding rainbowkit to a react typescript project it stops working after build.
It works fine in local but once you build the project it stops working.
Expected Behavior
Should work even after building the app
Steps To Reproduce

Create a react project using create-react-app with typescript template - yarn create react-app rainbow-test --template typescript
Add rainbowkit wagmi and viem from rainbowkit docs
Copy paste setup code from docs and wrap the WagmiConfig and RainbowKitProvider
Build app and use serve to test it locally it shows blank page

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)
No response
Anything else?
Some of the findings

This might be related to new release as it works on older version of<EMAIL_ADDRESS>which I have in a different project and when i downgraded the rainbowkit version to 0.12.10 it works. Not sure in which version in between it stopped working.
Not an issue with wagmi as I tried only wrapping wagmiConfig and it worked perfectly

@wulforr Can you share a CodeSandbox example or repo? There are fairly minimal updates with 1.0.11 and 1.0.12 so I would initially suspect a package manager or bundler issue in your project. Can help diagnose with an example.

https://codesandbox.io/s/bold-meninsky-fll287?file=/src/App.js
In this sandbox I have added the basic structure but I am not sure on how to build in codesandbox

It looks like you have a few issues:
You should wrap your <App/> component with the providers like this:
<React.StrictMode>
    <WagmiConfig config={wagmiConfig}>
      <RainbowKitProvider chains={chains}>
        <App />
      </RainbowKitProvider>
    </WagmiConfig>
</React.StrictMode>

You need to use the <ConnectButton/> component to show a button for users. Checkout out Create React App example here: https://github.com/rainbow-me/rainbowkit/blob/main/examples/with-create-react-app/
Let me know if you still see any issues

I have wrapped it in the same way but its not working.
https://github.com/wulforr/Rainbow-test/blob/main/src/index.tsx


Scan feature β version

@andreybavt I refactored the examples and tested them, all issues you reported should be solved now :)


promise is not rejected when connection is impossible

When using for example the get command:
client.get('my_key').then(function() {
 /* success*/
}, function() {
 /* failure */
/* not called when connection to the redis server is not possible */
});

The failure callback is never called even though on my machine the redis server is currently not running.

ioredis would keep trying to reconnect until the redis server is available again by default. This behaviour is useful in the production that your commands won't fail for a temporary disconnection.
You can refer to the documentation to disable/customize auto-reconnecting: https://github.com/luin/ioredis#auto-reconnect

Is there a way to check if there is currently one open/valid connection?

status property representing the connection status. It would be ready when the connection is active.

ah ok, thanks for your help. :+1:
So as this is the wanted behavior I will close this issue


Update version number in getting started

to: @jacknagz
cc: @airbnb/binaryalert-maintainers
size: tiny
#93 was meant to be the release PR, but I forgot to update the version in the Getting Started documentation.
In the future, we should probably find a way to automatically build this number from the configuration

Coverage remained the same at 92.787% when pulling fca96e9c3b93d3c6256dd4951da7fe7ed6f985ab on austin-update-getting-started into aab35468d0af63277358efb42f18127b1d665854 on master.


Error: Could not authenticate to backend

Hi,
Trying different combination (from Docker, from source...), I keep getting the error:
Error: Could not authenticate to backend. This probably means there is no or an invalid authentication token provided in the URL. Please check the startup console output of the backend and add a valid token to the URL.

You can find the Gitpod config here.

Hi, does the URL you enter into your browser contain the token (i.e. localhost://3030#token=something)? The terminal shows you the link you have to use

Hi, does the URL you enter into your browser contain the token (i.e. localhost://3030#token=something)? The terminal shows you the link you have to use

Yep, it does, I've also tried to enter it manually in the URL, i've provided you the reproducible example in the link above, and to be honest with you; this can be a security measure by Gitpod, which prevent users to share workspaces for malicious actions, I wish the app shows more useful debugging informations so users can dig deeper.

Hi, sorry for the late reply, I was on vacation.
Unfortunately, I haven't used gitpod yet, so I can't really support. The message you describe is usually shown if the auth token was either not found or if so, couldn't be verified by the backend.
One way of debugging could be to have it running locally & on gitpod, and then use the browser developer tools to compare the messages sent between frontend and backend.


Slic3r does not build

Describe the bug
On master (ba85932bae15a6e44bfe30c9cb9d5368f55d1574) Slic3r fails during build with
src/libslic3r/GCodeSender.hpp:17:48: error: expected class-name before ‘{’ token
17 | class GCodeSender : private boost::noncopyable {
   |                                                ^

Additional context
The problem is due to a bump in Boost version, and a file now needs the noncopyable header included.
I've applied this patch on my NixOS machine and it fixes the problem: https://bugs.gentoo.org/689804
The slic3r devs fixed in https://github.com/slic3r/Slic3r/commit/90f108ae8e7a4315f82e317f2141733418d86a68, but unfortunately there are no new releases since that to use in nixpkgs.
I'm unsure how to fix. Patch in nixpkgs, even though the problem not due to nix? Or use a non-release version of Slic3r?
Maintainer information: @bjornfor @the-kenny
# a list of nixpkgs attributes affected by the problem
attribute: slic3r
# a list of nixos modules affected by the problem
module:

@grahamcofborg build slic3r

I'm unsure how to fix. Patch in nixpkgs, even though the problem not due to nix? Or use a non-release version of Slic3r?

I think there are many precedents of fetchpatch'ing and upstream commit when there is no release and we only need a small fix. If Slic3r is paying more attention to keeping master branch working than to formally releasing, then I guess unreleased version could also be fine; hopefully the maintainers have some idea.


get stories by location

Hello.
Is there a way to get stories by location id?

Hi,
I have used user story feed, From that you can list out the stories and there you may find the locations.
I have checked and see object called [story_locations]. but i am not sure you may check the by calling
new Client.Feed.UserStory(session, [123456]);


Create sd27j.txt

@cross-bow First stage of verification passed, official domain is sd27j.org as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision. Proof of domain ownership: https://www.sd27j.org/

Hello,
Its sj27.net ...  27J School District ... Brighton, CO.  I work for the 27J
Online Academy. https://www.sd27j.org/
Thanks,
John Hamlin
On Wed, Apr 26, 2023, 9:33 PM Philip Torchinsky @.***>
wrote:

@cross-bow https://github.com/cross-bow First stage of verification
passed, official domain is sd27j.org as far as I verified. This is just
an informational note. Pull request is still in the review. I appreciate
your patience while waiting for the final decision. Proof of domain
ownership: https://www.sd27j.org/
—
Reply to this email directly, view it on GitHub
https://github.com/JetBrains/swot/pull/17362#issuecomment-1524607955,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AE6SRJCXSKQWTRDHQ4PUAWDXDHSJXANCNFSM6AAAAAAXMQRC4A
.
You are receiving this because you were mentioned.Message ID:
@.***>

@cross-bow Thank you for your patience while waiting for a review and processing your request. Pull request merged.