bug: let  redis 8 as slave of pikiwidb

At present, pikiwi(https://github.com/OpenAtomFoundation/pika/tree/develop) can communicate with redis 6. however, it can not communicate with redis 8.

After switch redis8 as slave of pikiwi, it prints logs as follows.
23476:C 18 Aug 2023 08:10:04.485 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
23476:C 18 Aug 2023 08:10:04.485 * Redis version=255.255.255, bits=64, commit=44cc0fcb, modified=0, pid=23476, just started
23476:C 18 Aug 2023 08:10:04.485 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server20230818 /path/to/redis.conf
23476:M 18 Aug 2023 08:10:04.485 * Increased maximum number of open files to 10032 (it was originally set to 256).
23476:M 18 Aug 2023 08:10:04.485 * monotonic clock: POSIX clock_gettime
                _._
           _.-``__ ''-._
      _.-``    `.  `_.  ''-._           Redis 255.255.255 (44cc0fcb/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 23476
  `-._    `-._  `-./  _.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |           https://redis.io
  `-._    `-._`-.__.-'_.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |
  `-._    `-._`-.__.-'_.-'    _.-'
      `-._    `-.__.-'    _.-'
          `-._        _.-'
              `-.__.-'

23476:M 18 Aug 2023 08:10:04.486 # WARNING: The TCP backlog setting of 511 cannot be enforced because kern.ipc.somaxconn is set to the lower value of 128.
23476:M 18 Aug 2023 08:10:04.486 * Server initialized
23476:M 18 Aug 2023 08:10:04.487 * Loading RDB produced by version 255.255.255
23476:M 18 Aug 2023 08:10:04.487 * RDB age 36664 seconds
23476:M 18 Aug 2023 08:10:04.487 * RDB memory usage when created 1.12 Mb
23476:M 18 Aug 2023 08:10:04.487 * Done loading RDB, keys loaded: 1, keys expired: 0.
23476:M 18 Aug 2023 08:10:04.487 * DB loaded from disk: 0.001 seconds
23476:M 18 Aug 2023 08:10:04.487 * Ready to accept connections tcp
23476:S 18 Aug 2023 08:10:32.456 * Before turning into a replica, using my own master parameters to synthesize a cached master: I may be able to synchronize with the new master with just a partial transfer.
23476:S 18 Aug 2023 08:10:32.456 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:10:32.457 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:10:32.457 * REPLICAOF 127.1:9221 enabled (user request from 'id=3 addr=<IP_ADDRESS>:58014 laddr=<IP_ADDRESS>:6379 fd=8 name= age=15 idle=0 flags=N db=0 sub=0 psub=0 ssub=0 multi=-1 qbuf=38 qbuf-free=16852 argv-mem=16 multi-mem=0 rbs=1024 rbp=0 obl=0 oll=0 omem=0 tot-mem=18744 events=r cmd=slaveof user=default redir=-1 resp=2 lib-name= lib-ver=')
23476:S 18 Aug 2023 08:10:32.458 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:10:32.458 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:10:37.459 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:10:37.459 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:10:37.661 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:10:37.661 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:10:37.662 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:10:37.662 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:10:42.663 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:10:42.664 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:10:43.573 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:10:43.577 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:10:43.577 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:10:43.578 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:10:48.579 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:10:48.579 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:10:49.488 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:10:49.493 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:10:49.493 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:10:49.497 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:10:54.498 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:10:54.498 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:10:55.407 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:10:55.409 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:10:55.409 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:10:55.409 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:11:00.410 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:11:00.410 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:11:01.319 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:11:01.319 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:11:01.320 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:11:01.320 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:11:06.321 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:11:06.321 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:11:07.234 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:11:07.235 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:11:07.236 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:11:07.236 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:11:12.240 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:11:12.240 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:11:13.147 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:11:13.148 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:11:13.152 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:11:13.153 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:11:18.154 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:11:18.154 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:11:19.065 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:11:19.066 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:11:19.069 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:11:19.070 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:11:24.071 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:11:24.071 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:11:24.982 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:11:24.984 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:11:24.987 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:11:24.987 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:11:29.989 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:11:29.989 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:11:30.896 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:11:30.896 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:11:30.899 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:11:30.900 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:11:35.901 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:11:35.901 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:11:36.808 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:11:36.809 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:11:36.812 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:11:36.813 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:11:41.818 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:11:41.818 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:11:42.730 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:11:42.730 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:11:42.731 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:11:42.731 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:11:47.738 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:11:47.738 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:11:48.648 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:11:48.650 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:11:48.650 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:11:48.650 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:11:53.656 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:11:53.656 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:11:54.567 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:11:54.571 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:11:54.571 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:11:54.572 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:11:59.576 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:11:59.576 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:12:00.484 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:12:00.484 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:12:00.485 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:12:00.485 * Master replied to PING, replication can continue...
23476:S 18 Aug 2023 08:12:05.488 # Failed to read response from the server: Undefined error: 0
23476:S 18 Aug 2023 08:12:05.488 # Master did not respond to command during SYNC handshake
23476:S 18 Aug 2023 08:12:06.397 * Connecting to MASTER 127.1:9221
23476:S 18 Aug 2023 08:12:06.399 * MASTER <-> REPLICA sync started
23476:S 18 Aug 2023 08:12:06.399 * Non blocking connect for SYNC fired the event.
23476:S 18 Aug 2023 08:12:06.400 * Master replied to PING, replication can continue...

And pikiwi prints log as follows.


Add filters to eigensolvers

Allows to provide a filter criterion to (Minimum)Eigensolver.
This filter is applied to (eigenstates, eigenvalues, aux_values) and only those eigenstates that satisfy the criterion are returned.
In case of the MinimumEigensolver, the smallest feasible result is returned, in case of an Eigensolver, the k smallest feasible results are returned.
If the number of feasible elements is smaller then k, then the result is less then k elements, it can even be empty.
This functionality will be required for boson calculations with a (Minimum)Eigensolver.

Good point that this will also be useful for the fermionic case. It is meant to be the classical counterpart to varforms that preserve certain properties/symmetries.
I think it is the users responsibility to check for None and less than k results if a filter is applied. In some cases an empty list might be a perfectly valid case (e.g. in optimization, when you iteratively adjust the problem and infeasibility is a reasonable feedback which triggers certain actions to continue).
Default filters can be provided e.g. by static methods of the transformations or somewhere else in the application stacks.

The user in this case can be an application module in optimization, chemistry etc., that is passed such a min eig solver that has a filter applied. E.g. here https://github.com/Qiskit/qiskit-aqua/blob/b45f952e342398156e9ed61a2126a85b4d55effd/qiskit/optimization/algorithms/minimum_eigen_optimizer.py#L176
Arguable since this additionally relies on state from the solver, that not all supply, it might be an improvement to check if the supplied solver supports state in the return result (as is needed to be done in chemistry module too for algos that require it.) Since this is an issue that potentially is already there I will raise a separate issue #1306.


Added options.onFilterChipClose

This PR adds a callback that is triggered when a filter chip is removed. This is already possible via onFilterChange, but this callback makes certain situations a bit easier.

Coverage decreased (-0.5%) to 75.982% when pulling 462fa353dcf5226fb3cebfeac8caead085a23500 on filterOnChipClose into 07427cdbd290271db08e3a0a09451fd77b6975db on master.


NPE in InkPageIndicator

Relevant Crashlytics
Relevant Java Class
I have not changed anything notable in the indicator, but essentially, there is a situation where dotCenterX is null. It's a bit hard to pinpoint the reason as most of the variables are initialized at different times.
A possible solution is to simply initialize everything, even if it means being an empty array. Maybe you'll have a better idea of what the actual cause is though.

I'm also having this issue,..., and after a bit of debugging, it appears that in the failing case,
onDraw is being called before onMeasure.  onMeasure is where it sets up dotCenterX.
I find that this bug occurs when there is a chance in pager size.  For example, the ViewPager was initially size 1, then it becomes size 5, and it fails to re-measure itself.

I couldn't access the Crashlytics log. Assigning to Nick for further triage.


[Cdn] Resolve review comments for GA

Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.

API change check for Azure.ResourceManager.Cdn
API changes have been detected in Azure.ResourceManager.Cdn. You can review API changes here


deposit dai gives error that approve() needs to be called first

azteccli deposit 2.5 --asset dai --time instant
Setting up the SDK... done
Awaiting user signature... done
Error: Insufficient allowance. Call approve() first.

This is fixed in the main branch of the repo, it still doesn't work with the latest published npm version.
To use the latest build that is the most bug free run the tool building from source, https://docs.aztec.network/developers/cli#compile-from-source
I'll publish a new version to npm right now so this isn't an error, but during development it is nice to build from source so you can make modifications and test them instantly as well.


NRKSuper.no broken

Checklist

[x] I'm reporting a broken site support
[x] I've verified that I'm running youtube-dl version 2021.06.06
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar issues including closed ones

Verbose log

C:\Users\jorg>youtube-dl --verbose https://nrksuper.no/serie/poppeloppane/MSUI16003115/sesong-1/episode-1
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://nrksuper.no/serie/poppeloppane/MSUI16003115/sesong-1/episode-1']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2021.06.06
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: none
[debug] Proxy map: {}
[debug] Using fake IP <IP_ADDRESS> (NO) as X-Forwarded-For.
[NRKTVSeries] poppeloppane: Downloading serie JSON
ERROR: Unable to download JSON metadata: <urlopen error [Errno 11001] getaddrinfo failed> (caused by URLError(gaierror(11001, 'getaddrinfo failed'),))
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\extractor\common.py", line 634, in _request_webpage
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\YoutubeDL.py", line 2288, in urlopen
  File "C:\Python\Python34\lib\urllib\request.py", line 470, in open
  File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response
  File "C:\Python\Python34\lib\urllib\request.py", line 502, in error
  File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
  File "C:\Python\Python34\lib\urllib\request.py", line 685, in http_error_302
  File "C:\Python\Python34\lib\urllib\request.py", line 464, in open
  File "C:\Python\Python34\lib\urllib\request.py", line 482, in _open
  File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpkqxnwl31\build\youtube_dl\utils.py", line 2737, in https_open
  File "C:\Python\Python34\lib\urllib\request.py", line 1185, in do_open

Description

Media from nrksuper.no fails to download. It works in the browser. No issues with socket.getaddrinfo('nrksuper.no', 443) in python directly.

https://tv.nrk.no/serie/poppeloppane/sesong/1/episode/1

I'm also seeing this, both on nrksuper and on tv.nrk.no

yeaa gets the same output
ERROR: Unable to download JSON metadata: <urlopen error [Errno 60] Operation timed out> (caused by URLError(TimeoutError(60, 'Operation timed out')))

This is almost working in current master (b8a86dc) but downloads the whole series instead of E1 (or would if in NO):

https://nrksuper.no/serie/poppeloppane/MSUI16003115/sesong-1/episode-1

The problem is that the NRKTV URL pattern doesn't recognise the URL without tv. in the domain:
--- old/youtube_dl/extractor/nrk.py
+++ new/youtube_dl/extractor/nrk.py
@@ -286,7 +286,7 @@
 class NRKTVIE(InfoExtractor):
     IE_DESC = 'NRK TV and NRK Radio'
     _EPISODE_RE = r'(?P<id>[a-zA-Z]{4}\d{8})'
-    _VALID_URL = r'https?://(?:tv|radio)\.nrk(?:super)?\.no/(?:[^/]+/)*%s' % _EPISODE_RE
+    _VALID_URL = r'https?://(?:(?:tv|radio)\.)?nrk(?:super)?\.no/(?:[^/]+/)*%s' % _EPISODE_RE
     _TESTS = [{
         'url': 'https://tv.nrk.no/program/MDDP12000117',
         'md5': 'c4a5960f1b00b40d47db65c1064e0ab1',
@@ -402,6 +402,9 @@
         'only_matching': True,
     }, {
         'url': 'https://radio.nrk.no/serie/dagsnytt/sesong/201507/NPUB21019315',
+        'only_matching': True,
+    }, {
+        'url': 'https://nrksuper.no/serie/poppeloppane/MSUI16003115/sesong-1/episode-1',
         'only_matching': True,
     }]

@@ -799,7 +802,7 @@

 class NRKPlaylistIE(NRKPlaylistBaseIE):
-    _VALID_URL = r'https?://(?:www\.)?nrk\.no/(?!video|skole)(?:[^/]+/)+(?P<id>[^/]+)'
+    _VALID_URL = r'https?://(?:www\.)?nrk\.no/(?!video|skole|program)(?:[^/]+/)+(?P<id>[^/]+)'
     _ITEM_RE = r'class="[^"]*\brich\b[^"]*"[^>]+data-video-id="([^"]+)"'
     _TESTS = [{
         'url': 'http://www.nrk.no/troms/gjenopplev-den-historiske-solformorkelsen-1.12270763',

This is would work if in NO:

https://tv.nrk.no/serie/poppeloppane/sesong/1/episode/1

This is working from UK:

https://tv.nrk.no/serie/fantus-og-maskinene/sesong/1.


400,401 Behavior since one month

Describe the bug
When attempting to scrape followees using profile.get_followees(), the script throws a QueryReturnedBadRequestException with a 400 Bad Request response and a message indicating "checkpoint_required".
To Reproduce
Steps to reproduce the behavior:
Use the following command to attempt scraping followees of a profile:
profile = instaloader.Profile.from_username(L.context, 'username')
followees = list(profile.get_followees())
Run the script.
Observe the error traceback.
Expected behavior
The script should retrieve the followees of the specified profile without encountering a 400 Bad Request error.
Error messages and tracebacks
Traceback (most recent call last):
File "/scripts/Insta/Instabot_Scrapper.py", line 578, in
main()
File "/scripts/Insta/Instabot_Scrapper.py", line 538, in main
Scrap('Following',followings_file)
File "/scripts/Insta/Instabot_Scrapper.py", line 426, in Scrap
get = list(profile.get_followees())
File "/scripts/venv392/lib/python3.9/site-packages/instaloader/nodeiterator.py", line 160, in next
query_response = self._query(self._data['page_info']['end_cursor'])
File "/scripts/venv392/lib/python3.9/site-packages/instaloader/nodeiterator.py", line 109, in _query
return self._query_query_hash(self._query_hash, after)
File "/scripts/venv392/lib/python3.9/site-packages/instaloader/nodeiterator.py", line 131, in _query_query_hash
self._context.graphql_query(
File "/scripts/venv392/lib/python3.9/site-packages/instaloader/instaloadercontext.py", line 511, in graphql_query
resp_json = self.get_json('graphql/query',
File "/scripts/venv392/lib/python3.9/site-packages/instaloader/instaloadercontext.py", line 450, in get_json
raise QueryReturnedBadRequestException(self._response_error(resp))
instaloader.exceptions.QueryReturnedBadRequestException: 400 Bad Request - "fail" status, message "checkpoint_required" when accessing https://www.instagram.com/graphql/query?query_hash=58712303d941c6855d4e888c5*****&variables={"id"%3A"254629798"%2C"first"%3A12%2C"after"%3A"QVFBTzRuSjdIcnpMaDRub01mbVlQS1hNVGVDZllrWno1YS1Pd2l1S3hHc2dJSXRkdHBIaTB4cVJxMklpSEMxcUN***************************************************
Instaloader version
instaloader --version output: (Please replace with your version)
Additional context
The issue seems to be related to recent changes in Instagram's API behavior.
The "checkpoint_required" message suggests that additional authentication or verification may now be required to proceed.
The session used in the script was freshly created and valid.
Adding delays between requests did not resolve the issue, Using cookie do the same result for me, changing Ex IP too.
My script has been working for many month/years one time a week randomly (Not spamming API, not using 2FA), so I think about external changes (instagram added a check point? But we don't have checkpoint url.)
Thank you for your help

Same, i get 400 error

Thank you for the report. However, the bug report lacks some crucial details, such as the version of Instaloader you're using, which is essential for investigating the issue further.
That said, the get_followees() method works fine on my end, and I cannot reproduce the issue with the information provided. Additionally, the error message you're encountering mentions "checkpoint_required" and a 400 Bad Request, but it doesn't indicate a 401 error as the title suggests.
Please provide the Instaloader version and any other relevant details to help us troubleshoot further.

If it help you, i solve mine. my instagram account for instaloader was log off, i got the suspect activity message. i log in, refrresh and the try again. worked

In my Case I can login on every device, but not with instaloader On 28 Nov 2024, at 14:26, Tinchox17 @.***> wrote:
If it help you, i solve mine. my instagram account for instaloader was log off, i got the suspect activity message. i log in, refrresh and the try again. worked
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>
Click on me

This issue appears to be a duplicate of #2307, as both describe similar errors related to Instagram's API responses (401 Unauthorized, 400 Bad Request) and behavior changes affecting session handling. Please refer to #2307 for updates and ongoing discussions about this issue.
We’ll close this issue to keep the discussion consolidated in one place. If you believe your issue differs significantly, feel free to provide additional context.


FieldMask is missing from ptypes directory.

I see https://github.com/google/protobuf/blob/master/src/google/protobuf/field_mask.proto is missing a go_package identifier and it does not appear in the ptypes directory with the other common proto files.
This file is needed for me to write the conformance tests in https://github.com/google/protobuf/tree/master/conformance and surely the FieldMask type would be needed in some cloud APIs.

This is a dupe of #218.  Please continue discussion there.


Add GRIB2 support for Lambert conformal grids (GDT-30)

This PR adds load support for GDT-30 (Lambert conformal) to the new GRIB2 loader.

A few silly copy/paste mistakes...


Delaying codecov report until CI is finished

It is quite annoying to see a failed job because a slow job hasn't yet submitted its coverage report yet.

if wait for ci does not work, I will test:
codecov:
  notify:
    after_n_builds: 2

https://community.codecov.com/t/github-status-notification-isnt-delayed-should-wait-all-ci-jobs-to-finish/3708/14

Pinging @ansys/pyansys-core for visibility


add awesome-draft-js

While the list is still early people already looking for resources and examples … let me know if you believe it should mature a bit more first.

Please read the instructions for creating a new list, contributing guidelines and the awesome manifest.
Especially this part:

Wait at least a couple of weeks after creating a list before submitting to give it a chance to mature.

Awesome lists are hard work. Put some more work into it. Take a look at some other lists and see how they do it. E.g. https://github.com/sindresorhus/awesome-electron https://github.com/sindresorhus/awesome-npm Ping me here when the list is more comprehensive, at the earliest in a couple of weeks.

Be consistent about the naming. You're using all of these: DraftJS, Draft-JS, Draft JS, Draft.js, DRAFTJS. Draft.js is the correct format.
Add a succinct intro at the top describing what DraftJS is and linkify the name to its website.
Don't use --- between the sections. It's already clear enough with the headings.
Add a description to each item.
You should include a link to their Slack channel: https://draftjs.herokuapp.com/


Don't assume there is a Bedroom room on startup

My sonos setup doesn't have a Bedroom zone.  I changed the service to default to the first zone returned from the api.

Hey thanks! This was a quick one-off personal project, and you are making it better for everyone :D


Implement AppMap view as a CustomEditor instead of a CustomTextEditor

Fixes #407. To test, try to open an AppMap over 50 MiB in size. Note it will probably take a while but it should succeed after a minute; there's a follow-up issue at https://github.com/applandinc/appmap-js/issues/644 to make it less scary.
Note only the first commit in this PR fixes the issue. Other commits fix other more or less related things that I noticed while working on this. Thus reviewing commit-by-commit is recommended.

:tada: This PR is included in version 0.31.2 :tada:
The release is available on:

v0.31.2
GitHub release

Your semantic-release bot :package::rocket:


Do you plan add support for babel v7 with scoped packages?

language-babel should support V7, including scoped packages. As I use the babel-core API this should be transparent to me, albeit I'm not entirely sure source-preview will work correctly. I just call the babel-core api and it does the rest. Have you tested it? Do you have a issue?

When saving, I get an error message LB: Babel v6.25.0 Transpiler Error, but in the console without errors.

The message indicates Babel v6 is being used. I will provide this version if no other Babel version is found in the project's node-modules. Are you sure you have installed Babel V7 into the project. i.e. is it in the package.json manifest of the project and has it been npm/yarn installed?

It's curious that the message only appears in the console. I don't do a console.log but use Atoms notification API on this line of code

@gandm, If you use the yarn workspace, babel-core moves to the root directory of node_modules, after which the language-babel returns an error on save

@neyasov Thanks for the information. I've added a new issue that tracks this https://github.com/gandm/language-babel/issues/451

@neyasov I've just pushed a commit that adds support for @babel/core and Yarn workspaces. It'd be great if you could test it. The file changes is in the lib directory https://github.com/gandm/language-babel/blob/master/lib/transpiler-task.coffee You can just copy this and overwrite the one in ~/.atom/packages/language-babel/lib and restart Atom.y
It now searches project root babel-core and @babel/core and then if the parent directory has a yarn.lock and package.json has a workspaces property it will check   babel-core and `@babel/core. The search is in that order - first found wins.
Let me know how it goes.

@gandm, babel-core works well if specified in devDependencies, but @babel/core is overridden by old versions of babel-core. I made a fix in #452

@gandm, For lerna monorepo, the error was repeated, because there @babel/core is two levels higher

@neyasov OK I'll modify to walk to path to root looking for a babel core.


Element links

Last but not least in the current doc usability sprint, I propose adding links to parameters, ports, and signals.

Thanks, LGTM. I've pushed two new issues on the topics raised by you. Going to merge this now and we can address the remaining issues in separate PRs.


[TF 2.0 API Docs] tf.data

URL(s) with the issue:
https://www.tensorflow.org/versions/master/api_docs/python/tf/data
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/data/__init__.py
Description of issue (what needs changing):
Added reference to three tutorials on using tf.data
Since there are a mix of r2.0 and r1.x tutorials on datasets, these three are relevant for 2.0
Correct links
Yes
Parameters defined
Yes/NA
Returns defined
Yes/NA
Raises listed and defined
No/Perhaps NA
Usage example
No, this is to add a pointer to usage.
Request visuals, if applicable
No. It would be good to have some simple visuals relative to the different classes.
Submit a pull request?
#29323

Closing this issue since PR #29323 is closed


Adds OPINIONATED to reply type enum.

Fixes #38

Coverage remained the same at 86.207% when pulling 0087b3bb3a2933a962f7f890acff2c276a275bb9 on 38-add-opinionated into 8bc9d94d93917960abd1a172b4a155d9e19029d9 on master.


Feature request: Please provide an AppImage for gVim

Hi,
I'd like to request that yas provide an AppImage for gVim. AppImages (https://appimage.org) are a type of cross-distribution packaging format that need no special installed programs to be run.
Thanks for your time,
Brenton

Would certainly be useful for an application like gVim to be available in a portable format that runs everywhere, without the need for installation, compilation, or complication :+1:

Since the vim project does continuous builds on Travis CI already, it would be especially easy to provide AppImages of these builds:
Real-world examples

If I understand correctly, we would need to package the language libraries together with a vim appimage, right?

@chrisbra first you would need to decide what you target systems are. A reasonable choice imho would be the least-recent, still-supported versions of Ubuntu, Fedora, CentOS, openSUSE and debian. Then you would need to bundle everything that cannot be expected to be part of these systems and/or subsequent versions of them. In practice, this means to bundle everything but common system libraries.

Wouldn't recommend using Fedora as it's only supported for 13 months post-release and tends to include fairly recent packages.

True. The oldest system on which it still builds is the best for compatibility.

I have created a simple appimage here (Branch appimage). It build a simple image (e.g. this one) using the travis-ci scripts as documented here.
However gvim does not display any fonts and I don't know how to handle this. @probonopd can you give me some advice here? You seem to know appimage really well, so I hope you know the problem I am running into.
Also I am seeing this warning when starting up:

/bin/bash: ./lib/x86_64-linux-gnu/libtinfo.so.5: no version information available (required by /bin/bash)

and I don't know how to handle this.

@chrisbra https://bintray.com/fusion809/AppImages/gvim doesn't work as well?

no that works

Compare the set of files in the working with the set of files in the non-working version, and experiment until you find the file that breaks it...

Okay, I removed the libpango and a couple of other libraries and then it worked.
I have a working version here. Actual image can be seen here Can you check it please?
I tried bundling all required libraries like libperl5.14, libpython2.7, libpython3.2, libruby1.9.3 and liblua but that did not work and it made the image really big, so I removed that. I think it now needs those libraries in the host system, if you want to use those features.

Works fine for me. As you're a member of vim I'm guessing you could upload the binary releases to tagged releases of this repo and set up Travis CI to do this automatically with each new release of vim?

Bram has the final saying. I would go with creating a new sub-project like https://github.com/vim/vim-win32-installer which will run regularly and release the appimage regularly. CC @brammool for comment.

Why vim-win32-installer? AppImages aren't Windows 32-bit installers... Why not something like vim-binaries? As I'm guessin' the name vim-win32-installer refers to the fact you's will also be providing Windows 32-bit installers from the repo.

I hope yas do, sounds fairly simple to do for yas as it's automated using Travis CI so you's will probably only be disrupted like once per year or so when a fluke bug stops the build.

Op 1 dec. 2016 14:54 schreef "Brenton Horne"<EMAIL_ADDRESS>
Why vim-win32-installer?

Like vim-win32-installer...
Christ van Willegen

Yep, I know that's why I deleted that comment.

Op 1 dec. 2016 15:28 schreef "Brenton Horne"<EMAIL_ADDRESS>
Yep, I know that's why I deleted that comment.

Oh, I reacted via the mailing list, I didn't know that! Sorry...
Christ van Willegen

Christian Brabandt wrote:

Bram has the final saying. I would go with creating a new sub-project like https://github.com/vim/vim-win32-installer which will run regularly and release the appimage regularly. CC @brammool for comment.

Making this a sub-project sounds good.  Just make sure there are docs
that explain what it's for, when it is updated, etc.
--
hundred-and-one symptoms of being an internet addict:
68. Your cat always puts viruses on your dogs homepage
/// Bram Moolenaar --<EMAIL_ADDRESS>-- http://www.Moolenaar.net   \
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \
\\  an exciting new programming language -- http://www.Zimbu.org        ///
\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

@chrisbra

Okay, I removed the libpango and a couple of other libraries and then it worked.
I have a working version here. Actual image can be seen here Can you check it please?

Works for me on

xubuntu-16.04.1-desktop-amd64.iso

I've created an AppImage that bundles libncurses5 with it, and does not get the above error on Debian 8 (and runs fine). I've also tested it on Fedora 24 to see if the addition of libncurses5 would cause problems but it didn't, it ran fine. You can find it here.

I think chrisbra/vim-appimage is suitable now for inclusion as subproject

I think chrisbra/vim-appimage is suitable now for inclusion as subproject

Tried on Ubuntu 16.04, works here. Thank you.

ping

ping what?

I think it is ready to be included as subproject of Vim (similar to how vim-win32-installer works)

Thanks Bram.
We have vim/vim-appimage now. Closing.


fix generated role contains invalid char bug

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


[C++][Parquet] Add better error handling for reading local files

The LocalFile reader class does not handle the various failure modes for the cstdio system calls.
Reporter: Wes McKinney / @wesm
Assignee: Aliaksei Sandryhaila](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=asandryh) / @asandryh
Note: This issue was originally created as PARQUET-516. Please see the migration documentation for further details.

Wes McKinney / @wesm:
@asandryh can you let me know if/when you are going to work on this? I am moving code around as part of PARQUET-501 so want to avoid conflicts

Aliaksei Sandryhaila / @asandryh:
Initial PR is available: https://github.com/apache/parquet-cpp/pull/56

Aliaksei Sandryhaila / @asandryh:
I am not going to work on this immediately, it looks like a lower-priority task. Maybe in a few days or next week.

Wes McKinney / @wesm:
Fixed in https://github.com/apache/parquet-cpp/commit/41c1e6887cc53d43d48c7d327ed04ee4dd1a57b4


How can I listen the specific SQS Queue?

I want to process SQS message inside the Job when any message arrives in the Queue, The message is sent from outside of the application.
Here is my configuration :
service: Env.get('QUEUE_SERVICE', 'aws'),

concurrency: Env.get('QUEUE_CONCURRENCY', 15),

prefix: Env.get('QUEUE_PREFIX', process.NODE_ENV + '-'),

aws: {
  accessKeyId: Env.get('AWS_ACCESS_KEY', 'ChangeMe'),
  secretAccessKey: Env.get('AWS_SECRET_KEY', 'ChangeMe'),
  region: Env.get('AWS_REGION', ''),
  endpoint: Env.get('AWS_ENDPOINT', ''),
  prefix: Env.get('AWS_PREFIX', ''),
  queue: Env.get('AWS_QUEUE', 'Example'),
},

Have you tried this?
https://github.com/assaf/ironium#processing-a-subset-of-queues

@willvincent Can we get some more documentation on AWS SQS please, some text env's want to see where I'm going wrong can't seem to find the issue.

@GunjanSkry This is outside the scope of this project... If you need to monitor SQS you'll probably need to set that up differently.  This is really intended for using sqs as the backend for a queue specific to your adonis application
You push items into that queue, from the app, and workers process those items.  It's not intended to just arbitrarily monitor an sqs queue and do stuff when messages show up.


--dart-define-from-file does not work with flutter build ipa

Steps to reproduce

create a json/.env file for your environmental variables, for my case I have a .staging.json file in my project directory

run the following command

flutter build ipa --flavor staging --export-method=ad-hoc --dart-define-from-file=.staging.json

when I install the IPA the env variables do not load, how ever they work on android as well as running
flutter build ios --flavor staging --dart-define-from-file=.staging.json, it seems pretty weird that specifically for IPA it does not work.
Expected results
using String.fromEnvironment("ENV_KEY") should return the value based on the file
Actual results
using String.fromEnvironment("ENV_KEY") returns an empty string
Code sample
Code sample
enum Flavor {
  dev,
  staging,
  prod;

  factory Flavor.fromString(String flavor) {
    // this throws an exception when using flutter build ipa
    return switch (flavor.toLowerCase().trim()) {
      "staging" => Flavor.staging,
      "prod" => Flavor.prod,
      "dev" => Flavor.dev,
      _ => throw Exception("Unknown flavor $flavor"),
    };
  }
}

const _flavor = String.fromEnvironment("FLAVOR");

Flavor getFlavor() {
  return Flavor.fromString(_flavor);
}

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
[Paste your logs here]

Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.16.9, on macOS 14.2.1 23C71 darwin-arm64, locale en-QA)
    • Flutter version 3.16.9 on channel stable at /Users/nayefmazen-mb/Library/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 41456452f2 (12 days ago), 2024-01-25 10:06:23 -0800
    • Engine revision f40e976bed
    • Dart version 3.2.6
    • DevTools version 2.28.5

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /Users/nayefmazen-mb/Library/Android/sdk
    • Platform android-33, build-tools 33.0.2
    • ANDROID_HOME = /Users/nayefmazen-mb/Library/Android/sdk
    • ANDROID_SDK_ROOT = /Users/nayefmazen-mb/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15C500b
    • CocoaPods version 1.14.3

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = /Applications/Brave Browser.app/Contents/MacOS/Brave Browser

[✓] Android Studio (version 2023.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)

[✓] VS Code (version 1.85.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.80.0

[✓] Connected device (3 available)
    • Nayef’s iPhone (mobile) • 00008110-001845992652401E • ios            • iOS 17.1.2 21B101
    • macOS (desktop)         • macos                     • darwin-arm64   • macOS 14.2.1 23C71 darwin-arm64
    • Chrome (web)            • chrome                    • web-javascript • Brave Browser <IP_ADDRESS>

[✓] Network resources
    • All expected network resources are available.

Thanks for the bug report @nayefradwi
Maybe your issue is similar to https://github.com/flutter/flutter/issues/126901 that you can check and confirm.
Can you try by running flutter run --flavor dev --dart-define=host= and see if using it, you get same behavior or not ?
That way we can confirm that it may not be an issue only with ipa.

Thanks for the bug report @nayefradwi Maybe your issue is similar to #126901 that you can check and confirm. Can you try by running flutter run --flavor dev --dart-define=host= and see if using it, you get same behavior or not ? That way we can confirm that it may not be an issue only with ipa.

So I have run the following commands:
flutter run --flavor staging --dart-define=HOST="test"
flutter run --flavor staging --dart-define-from-file=.staging.json
flutter build ios --release --flavor staging --dart-define-from-file=.staging.json
flutter build apk --release --flavor staging --dart-define-from-file=.staging.json

they all seem to work fine and define the env variables from the json file correctly. However this command does not work:
flutter build ipa --release --flavor staging --export-method=ad-hoc --dart-define-from-file=.staging.json

Thanks for the update @nayefradwi
Can you provide us the file as you mentioned ?

create a json/.env file for your environmental variables, for my case I have a .staging.json file in my project directory

@darshankawar here is the .staging.json
{
    "FLAVOR": "staging",
    "BASE_HOST": "https://starlinkqatarstore.myshopify.com",
}

Thanks for the update. Using the details provided above, I was able to replicate the reported behavior only using flutter build ipa command.

 stable, master flutter doctor -v
[!] Flutter (Channel stable, 3.16.9, on macOS 12.2.1 21D62 darwin-x64, locale
    en-GB)
    • Flutter version 3.16.9 on channel stable at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 41456452f2 (12 days ago), 2024-01-25 10:06:23 -0800
    • Engine revision f40e976bed
    • Dart version 3.2.6
    • DevTools version 2.28.5
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

[!] Flutter (Channel master, 3.20.0-3.0.pre.19, on macOS 12.2.1 21D62
    darwin-x64, locale en-GB)
    • Flutter version 3.20.0-3.0.pre.19 on channel master at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision db141ecd28 (60 minutes ago), 2024-02-06 20:00:08 -0800
    • Engine revision 808886312e
    • Dart version 3.4.0 (build 3.4.0-104.0.dev)
    • DevTools version 2.32.0
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/dhs/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for
      more details.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 13C100
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] IntelliJ IDEA Ultimate Edition (version 2021.3.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 65.1.4
    • Dart plugin version 213.7228

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.29.0

[✓] Connected device (3 available)
    • Darshan's iphone (mobile) • 21150b119064aecc249dfcfe05e259197461ce23 • ios
      • iOS 15.3.1 19D52
    • macOS (desktop)           • macos                                    •
      darwin-x64     • macOS 12.2.1 21D62 darwin-x64
    • Chrome (web)              • chrome                                   •
      web-javascript • Google Chrome 109.0.5414.119

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 1 category.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

Rerouting to tool team since this is probably a tool bug.
For whatever it's worth, the framework has a built-in constant, appFlavor, that can be used to determine what flavor your app was run/built with in your Dart code.

Rerouting to the tools team since this is probably a tool bug (the PR introducing the --dart-define-from-file feature was reviewed by the tools team).
For whatever it's worth, the framework has a built-in constant, appFlavor, that can be used to determine what flavor your app was run/built with in your Dart code.

Thanks for letting me know about it. This would be useful if I only dependent on the appFlavor, how ever there are different environmental variables that are required. Do you suggest any workaround to this issue?

The ios/Flutter/Generated.xcconfig file does not contain the variables defined in --dart-define-from-file
flutter build ipa --export-options-plist=ios/xxx.plist --dart-define-from-file=xxx.json

If you are using dart-define-from-file
I found a very useful article.
This setup worked perfectly with 3.19.0!
https://zenn.dev/altiveinc/articles/separating-environments-in-flutter
Author(s). @riscait
(This article is Written in Japanese.)
iOS

add scripts ios/scripts/extract_dart_defines.sh

#!/bin/sh

# Specifies the file path to which the Dart define is written.
# We will create a file named `Dart-Defines.xcconfig`.
OUTPUT_FILE="${SRCROOT}/Flutter/Dart-Defines.xcconfig"
# The file is initially emptied so that the old properties do not remain when the contents of the Dart define are changed.
: > $OUTPUT_FILE

# This function decodes the Dart define.
function decode_url() { echo "${*}" | base64 --decode; }

IFS=',' read -r -a define_items <<<"$DART_DEFINES"

for index in "${!define_items[@]}"
do
    item=$(decode_url "${define_items[$index]}")
    # Dart definitions also include items that are automatically defined on the Flutter side.
    # However, if we export those definitions, we will not be able to build due to errors, # so we do not output items that start with flutter or FLUTTER.
    lowercase_item=$(echo "$item" | tr '[:upper:]' '[:lower:]')
    if [[ $lowercase_item != flutter* ]]; then
        echo "$item" >> "$OUTPUT_FILE"
    fi
done

run scripts before build Xcode Product > Scheme > Edit Scheme > Pre-actions

add ${SRCROOT}/scripts/extract_dart_defines.sh

Allow command

chmod 755 ios/scripts/extract_dart_defines.sh

Include the generated files in ios/Flutter/Debug.xcconfig and ios/Flutter/release.xcconfig

// ios/Flutter/Debug.xcconfig
...
#include "Dart-Defines.xcconfig"

// ios/Flutter/release.xcconfig
...
#include "Dart-Defines.xcconfig"

Modify info.plist to change the display name
<key>CFBundleName</key>
<string>flutter_app_template</string>
<string>$(appName)</string>
<key>CFBundleDisplayName</key>
<string>$(appName)</string>

Modify ios/Runner.xcodeproj/project.pbxproj to change the ID
PRODUCT_BUNDLE_IDENTIFIER = "$(appId)";

Android

Modify android/app/build.gradle to decode and receive Dart-defines.

// Declares a variable to contain the dart-define.
def dartDefines = [:];
if (project.hasProperty('dart-defines')) {
    // Decode dart-defines, which are comma-separated and encoded in Base64, and store them in a variable.
    dartDefines = dartDefines + project.property('dart-defines')
        .split(',')
        .collectEntries { entry ->
            def pair = new String(entry.decodeBase64(), 'UTF-8').split('=')
            [(pair.first()): pair.last()]
        }
}
...
...

defaultConfig {
    minSdkVersion flutter.minSdkVersion
    targetSdkVersion flutter.targetSdkVersion
    versionCode flutterVersionCode.toInteger()
    versionName flutterVersionName
     applicationId "${dartDefines.appId}"
     resValue "string", "app_name", "${dartDefines.appName}"
}

Modify android/app/src/main/AndroidManifest.xml to Change App DisplayName

android:label="@string/app_name"

For more detailed information on Firebase, icons, etc., please see the Article!

If you are using dart-define-from-file I found a very useful article. This setup worked perfectly with 3.19.0
zenn.dev/altiveinc/articles/separating-environments-in-flutter Author(s). @riscait (This article is Written in Japanese.)
relation issue.

--dart-define-from-file entries are available in the environment during Xcode build when they should not be #136444
Concerns Regarding the Removal of --dart-define-from-file Feature #138793

iOS

add scripts ios/scripts/extract_dart_defines.sh

#!/bin/sh

# Specifies the file path to which the Dart define is written.
# We will create a file named `Dart-Defines.xcconfig`.
OUTPUT_FILE="${SRCROOT}/Flutter/Dart-Defines.xcconfig"
# The file is initially emptied so that the old properties do not remain when the contents of the Dart define are changed.
: > $OUTPUT_FILE

# This function decodes the Dart define.
function decode_url() { echo "${*}" | base64 --decode; }

IFS=',' read -r -a define_items <<<"$DART_DEFINES"

for index in "${!define_items[@]}"
do
    item=$(decode_url "${define_items[$index]}")
    # Dart definitions also include items that are automatically defined on the Flutter side.
    # However, if we export those definitions, we will not be able to build due to errors, # so we do not output items that start with flutter or FLUTTER.
    lowercase_item=$(echo "$item" | tr '[:upper:]' '[:lower:]')
    if [[ $lowercase_item != flutter* ]]; then
        echo "$item" >> "$OUTPUT_FILE"
    fi
done

run scripts before build Xcode Product > Scheme > Edit Scheme > Pre-actions

add ${SRCROOT}/scripts/extract_dart_defines.sh

* Allow command

chmod 755 ios/scripts/extract_dart_defines.sh
Include the generated files in ios/Flutter/Debug.xcconfig and ios/Flutter/release.xcconfig

// ios/Flutter/Debug.xcconfig
...
#include "Dart-Defines.xcconfig"

// ios/Flutter/release.xcconfig
...
#include "Dart-Defines.xcconfig"

Modify info.plist to change the display name (Replace key appName with your definition)
<key>CFBundleName</key>
<string>flutter_app_template</string>
<string>$(appName)</string>
<key>CFBundleDisplayName</key>
<string>$(appName)</string>

Modify ios/Runner.xcodeproj/project.pbxproj to change the ID (Replace key appid with your definition)
PRODUCT_BUNDLE_IDENTIFIER = "$(appId)";

Android

Modify android/app/build.gradle to decode and receive Dart-defines.
(Replace keys appid  & appName with your definition)

// Declares a variable to contain the dart-define.
def dartDefines = [:];
if (project.hasProperty('dart-defines')) {
    // Decode dart-defines, which are comma-separated and encoded in Base64, and store them in a variable.
    dartDefines = dartDefines + project.property('dart-defines')
        .split(',')
        .collectEntries { entry ->
            def pair = new String(entry.decodeBase64(), 'UTF-8').split('=')
            [(pair.first()): pair.last()]
        }
}
...
...

defaultConfig {
    ...
     applicationId "${dartDefines.appId}"
     resValue "string", "app_name", "${dartDefines.appName}"
}

Modify android/app/src/main/AndroidManifest.xml to Change App DisplayName

android:label="@string/app_name"

For more detailed information on Firebase, icons, etc., please see the Article.

While it seems like this is what is needed to be able to use dart-defines-from-file variables in the native build systems after 3.19.0, I would argue that the tooling has taken a step backwards by excluding these variables.
The behaviour in 3.16.x was great and no extra steps were needed to use the dart defines variables in gradle or xcode.

I understand that it may have been confusing if dart-defines variables had the same name as native environment variables, so perhaps the fix should be to pass through each dart define variable to a native one but prefixed with DART_DEFINES_

@reefki, it appears that your issue may be a duplicate and unrelated to this one. Please refer to #55870.

for me upgrading to the latest flutter has worked 3.19.4

If you are using dart-define-from-file I found a very useful article. This setup worked perfectly with 3.19.0
https://zenn.dev/altiveinc/articles/separating-environments-in-flutter Author(s). @riscait (This article is Written in Japanese.)
relation issue.

--dart-define-from-file entries are available in the environment during Xcode build when they should not be #136444
Concerns Regarding the Removal of --dart-define-from-file Feature #138793

iOS

add scripts ios/scripts/extract_dart_defines.sh

#!/bin/sh

# Specifies the file path to which the Dart define is written.
# We will create a file named `Dart-Defines.xcconfig`.
OUTPUT_FILE="${SRCROOT}/Flutter/Dart-Defines.xcconfig"
# The file is initially emptied so that the old properties do not remain when the contents of the Dart define are changed.
: > $OUTPUT_FILE

# This function decodes the Dart define.
function decode_url() { echo "${*}" | base64 --decode; }

IFS=',' read -r -a define_items <<<"$DART_DEFINES"

for index in "${!define_items[@]}"
do
    item=$(decode_url "${define_items[$index]}")
    # Dart definitions also include items that are automatically defined on the Flutter side.
    # However, if we export those definitions, we will not be able to build due to errors, # so we do not output items that start with flutter or FLUTTER.
    lowercase_item=$(echo "$item" | tr '[:upper:]' '[:lower:]')
    if [[ $lowercase_item != flutter* ]]; then
        echo "$item" >> "$OUTPUT_FILE"
    fi
done

run scripts before build Xcode Product > Scheme > Edit Scheme > Pre-actions

add ${SRCROOT}/scripts/extract_dart_defines.sh

* Allow command

chmod 755 ios/scripts/extract_dart_defines.sh
Include the generated files in ios/Flutter/Debug.xcconfig and ios/Flutter/release.xcconfig

// ios/Flutter/Debug.xcconfig
...
#include "Dart-Defines.xcconfig"

// ios/Flutter/release.xcconfig
...
#include "Dart-Defines.xcconfig"

Modify info.plist to change the display name (Replace key appName with your definition)
<key>CFBundleName</key>
<string>flutter_app_template</string>
<string>$(appName)</string>
<key>CFBundleDisplayName</key>
<string>$(appName)</string>

Modify ios/Runner.xcodeproj/project.pbxproj to change the ID (Replace key appid with your definition)
PRODUCT_BUNDLE_IDENTIFIER = "$(appId)";

Android

Modify android/app/build.gradle to decode and receive Dart-defines.
(Replace keys appid  & appName with your definition)

// Declares a variable to contain the dart-define.
def dartDefines = [:];
if (project.hasProperty('dart-defines')) {
    // Decode dart-defines, which are comma-separated and encoded in Base64, and store them in a variable.
    dartDefines = dartDefines + project.property('dart-defines')
        .split(',')
        .collectEntries { entry ->
            def pair = new String(entry.decodeBase64(), 'UTF-8').split('=')
            [(pair.first()): pair.last()]
        }
}
...
...

defaultConfig {
    ...
     applicationId "${dartDefines.appId}"
     resValue "string", "app_name", "${dartDefines.appName}"
}

Modify android/app/src/main/AndroidManifest.xml to Change App DisplayName

android:label="@string/app_name"

For more detailed information on Firebase, icons, etc., please see the Article.

thank you this is incredible. making dart-define-from-file work again event with this tricky way is very appreciated.

for me upgrading to the latest flutter has worked 3.19.4

I'll be closing the issue since this appears to be resolved^1. Many of the recent here comments seem to have gone off topic and are instead discussing https://github.com/flutter/flutter/issues/139289 (and its predecessor, https://github.com/flutter/flutter/issues/138793) instead.


Cruft update

Summary
Ran cruft link and cruft update to link / sync to collection template
Relevant Issue(s)
Closes #34

Thanks for these!


Docstring injector

Ideally we should have a way to inject information in the doc strings of functions we wrap.

This might be replaced or maybe it will complement #874 when we start to work with the XML.


Use standalone repo of deadcode command

This commit alters the origin of the deadcode package to a standalone
version which doesn't contain all the other unrelated code that's
present in upstream.
This is important when vendoring the many tools for reproducible builds.

Thanks, this has always bothered me.


cmd/vet: Should warn if not all supplied function arguments are used

Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go1.7.3 darwin/amd64
What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOROOT="/usr/local/Cellar/go/1.7.3/libexec"
GOTOOLDIR="/usr/local/Cellar/go/1.7.3/libexec/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/jz/d17tbxmd46sblngzv_ncs1000000z8/T/go-build885041694=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
What did you do?
func (c Context) QueryParam(key string) string {
return c.Request.URL.Query().Get("token")
}
What did you expect to see?
govet complaining that 'key' argument is not used.
What did you see instead?
no complains at all :)

See #7892

Ah, haven't noticed it has been discussed already. I still think it would be a very useful feature but I understand the problem with implementing some interface methods partly and getting way too much useless reports.
What about having a rulefile for specifying what should be reported and what not? Like tslint does have for example https://palantir.github.io/tslint/rules/

What about having a rulefile for specifying what should be reported and what not? Like tslint does have for example https://palantir.github.io/tslint/rules/

I believe that traditionally rules that do not satisfy the three vet criteria (Correctness, Frequency, Precision) have been outright rejected, instead of being added but as an option as you suggest. Vet is meant to be a reliable tool that requires no configuration.

Or some way to silence the false positives like: _ = key ?

"Few false positives" means "few false positives", and not "false positive are okay as long as they can be silenced in some way".

It's a matter of opinion. One could say we have arguments in functions because we need them in the internal function algorithm and say, that declaring function argument and not using it is a bad practice (like importing a package and not referencing it).
I understand that one may occasionally need to have unused arguments to maintain backward API compatibility, but in those cases they can explicitly reference them by "_ = ..." like we can for unused imports.
govet could have saved me from making this mistake, unfortunately it only helped me once, when I was learning go and wrote a structure tag wrongly.

Rob decided against this in #7892, and he is the ultimate arbiter of what goes into cmd/vet, so I going to close this.
I agree with this particular decision; I don't see a clear way to address the many false positives such a check would generate.


getting-started-with-docker

section Launching a Container example of installing apache
before the command
apt_get_install apache2
need this command
apt-get update

Fixed!


Implement Transcription and Translation types.

Removes Audio type in favor of Transcription and Translation types to better reflect what the API requests are returning.
Solves issue #50

Sorry for recreating this PR. I didn't realize I commited those other commits in the other PR straight to my forked main and introduced commits that shouldn't be here and I wasn't sure the best way to fix it. This adds the public scope to the types you requested.


Go binary size regression

Agent:
master: 110m
1.6: 74m
1.5: 68m
1.4: 38m
Pilot:
master: 108m
1.6: 90m
1.5: 84m
1.4: 65m
Measured with
for tag in master 1.6.0 1.5.0 1.4.0; do
    echo $tag
    git checkout $tag
    go build -o /tmp/agent ./pilot/cmd/pilot-discovery
    ll /tmp/agent
    echo
done

My theory is the 1.4 -> 1.5 regression in agent is for gateway SDS (pulls in k8s) and then 1.6 -> master regression is google.golang.org/api/compute/v1
cc @rshriram @kyessenov

istio-agent basically imports literally everything now since @costinm put an XDS server in it

I think that's strange that the client agent is larger than the service. Go doesn't do a good job at code elimination as well.

A minimalistic xDS server (e.g. go-control-plane test server) is around 22MB as a point of reference.

We also import literally every proto in xds (including v2 and v4) so we can handle envoyfilters which adds a lot

@brian-avery Checking against 1.7 branch.

Here is the actual effect on memory.  Unshared ~= resident - shared.
TLDR;
1.7 Is using ~15 MB per pod more for istio-agent, which I don't think is release blocking.

Istio Version
File size
Resident Memory
Unshared memory
Overage

1.5
68M
55M
15M
0

1.6
74M
55M
17M
2M

1.7
110M
80M
30M
15M

Unshared memory costs increase per pod, whereas shared memory costs increase per node.

Can you share the commands you ran? Then we can compare some code changes
and see what makes improvements
On Tue, Aug 11, 2020, 5:29 PM mandarjog<EMAIL_ADDRESS>wrote:

Here is the actual effect on memory. Unshared ~= resident - shared.
TLDR;
1.7 Is using ~15 MB per pod more for istio-agent, which I don't think is
release blocking.
Istio Version File size Resident Memory Unshared memory Overage
1.5 68M 55M 15M 0
1.6 74M 55M 17M 2M
1.7 110M 80M 30M 15M
Unshared memory costs increase per pod, whereas shared memory costs
increase per node.
—
You are receiving this because you authored the thread.

Notes to self: useful tools for analyzing:
goda graph -cluster -short ./pilot/cmd/pilot-agent | tee /tmp/goda
cat /tmp/goda | match 'tooltip.* color' | map 'i[9:-7]' | rg pilot/pkg/xds

goweight ./pilot/cmd/pilot-agent | tee /tmp/now | head -n 100

go build -o /tmp -ldflags '-extldflags -static -s -w' ./pilot/cmd/pilot-agent; ll /tmp/pilot-agent; file /tmp/pilot-agent; stat /tmp/pilot-agent

1.7 Is using ~15 MB per pod more for istio-agent, which I don't think is release blocking.

As someone using istio with a lot of pods, a 25% increase in proxy usage, after we've just took a 10% increase 1.5 -> 1.6 for SDS, is certainly upgrade blocking for us.

Doing a bunch of work on https://github.com/howardjohn/istio/pull/new/agent/tiny-binary-full-branch to trim the deps a lot. Down to 37mb currently. 30mb seems feasible. It contains about 15 changes so I will be splitting it out into many smaller prs

That's awesome @howardjohn - guessing we're looking at 1.9 for most of them however?

Yeah unfortunately so. The bulk of the changes are from dropping Kubernetes imports which is not feasible on older versions.

Note sure how much this will impact once we are done trimming, but golang 1.16 will net us a few wins as well:
$ GOOS=linux GOARCH=amd64 LDFLAGS='-extldflags -static -s -w' common/scripts/gobuild.sh ./out/linux_amd64/ -tags="agent" ./pilot/cmd/pilot-agent; ll out/linux_amd64/pilot-agent

real    0m3.178s
user    0m5.407s
sys     0m0.816s
-rwxr-x--- 1 howardjohn primarygroup 61M Nov  9 09:33 out/linux_amd64/pilot-agent*
$ GOBINARY=/tmp/tmp.8k4Q6FfX0t/goroot/bin/go GOOS=linux GOARCH=amd64 LDFLAGS='-extldflags -static -s -w' common/scripts/gobuild.sh ./out/linux_amd64/ -tags="agent" ./pilot/cmd/pilot-agent; ll out/linux_amd64/pilot-agent

real    0m1.987s
user    0m3.605s
sys     0m0.735s
-rwxr-x--- 1 howardjohn primarygroup 55M Nov  9 09:33 out/linux_amd64/pilot-agent*

I am going with the assumption that we don't really care about istiod binary size and the agent is now a fraction of its size (38M), and considering this fixed


A negative DATE results in a "double free or corruption" crash

Consider the following statement:
SELECT DATE '-10000-01-01'; -- double free or corruption

Unexpectedly, the SELECT results in a double free or corruption crash. I found this based on commit dc352a3729f57252a1f6bfa18077fed9c4598a54.

In debug builds, this causes the following ASan error:
==24926==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x6210000118ff at pc 0x55f6933c5662 bp 0x7fffe17e8650 sp 0x7fffe17e8640
WRITE of size 1 at 0x6210000118ff thread T0
    #0 0x55f6933c5661 in char* duckdb::StringToIntegerCast::FormatUnsigned<int>(int, char*) duckdb/src/common/operator/cast_operators.cpp:463
    #1 0x55f6933c1fe9 in duckdb::DateToStringCast::Format(char*, int*, unsigned long, bool) (duckdb/build/debug/duckdb_cli+0x105efe9)
    #2 0x55f6933b61ed in duckdb::string_t duckdb::CastFromDate::Operation<int>(int, duckdb::Vector&) duckdb/src/common/operator/cast_operators.cpp:649
    #3 0x55f692d29826 in operator() duckdb/src/common/vector_operations/vector_cast.cpp:17
    #4 0x55f692d3c431 in Operation<string_cast(duckdb::Vector&, duckdb::Vector&, duckdb::idx_t) [with SRC = int; OP = duckdb::CastFromDate]::<lambda(int)>, bool, int, duckdb::string_t> duckdb/src/include/duckdb/common/vector_operations/unary_executor.hpp:29
    #5 0x55f692d37b27 in ExecuteStandard<int, duckdb::string_t, duckdb::UnaryLambdaWrapper, bool, string_cast(duckdb::Vector&, duckdb::Vector&, duckdb::idx_t) [with SRC = int; OP = duckdb::CastFromDate]::<lambda(int)>, true> duckdb/src/include/duckdb/common/vector_operations/unary_executor.hpp:93
    #6 0x55f692d341ca in Execute<int, duckdb::string_t, true, string_cast(duckdb::Vector&, duckdb::Vector&, duckdb::idx_t) [with SRC = int; OP = duckdb::CastFromDate]::<lambda(int)> > duckdb/src/include/duckdb/common/vector_operations/unary_executor.hpp:134
    #7 0x55f692d298d0 in string_cast<int, duckdb::CastFromDate> duckdb/src/common/vector_operations/vector_cast.cpp:16
    #8 0x55f692d222ce in date_cast_switch duckdb/src/common/vector_operations/vector_cast.cpp:144
    #9 0x55f692d23432 in duckdb::VectorOperations::Cast(duckdb::Vector&, duckdb::Vector&, duckdb::SQLType, duckdb::SQLType, unsigned long) duckdb/src/common/vector_operations/vector_cast.cpp:226
    #10 0x55f692cdc634 in duckdb::Value::CastAs(duckdb::SQLType, duckdb::SQLType) duckdb/src/common/types/value.cpp:519
    #11 0x55f692c9fd66 in sqlite3_column_has_value duckdb/tools/sqlite3_api_wrapper/sqlite3_api_wrapper.cpp:400
    #12 0x55f692ca085e in sqlite3_column_text duckdb/tools/sqlite3_api_wrapper/sqlite3_api_wrapper.cpp:433
    #13 0x55f692c783e1 in exec_prepared_stmt duckdb/tools/shell/shell.c:9924
    #14 0x55f692c79fa7 in shell_exec duckdb/tools/shell/shell.c:10187
    #15 0x55f692c9338d in runOneSqlLine duckdb/tools/shell/shell.c:15047
    #16 0x55f692c93cc7 in process_input duckdb/tools/shell/shell.c:15149
    #17 0x55f692c963d4 in main duckdb/tools/shell/shell.c:15817
    #18 0x7f7e1e285b6a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26b6a)
    #19 0x55f692c537b9 in _start (duckdb/build/debug/duckdb_cli+0x8f07b9)


Lorawan Example does not work in Platform IO

It seems the platform IO implementation does not support printf as used in the adruino example:
src/main.cpp:22:10: error: 'class arduino::UART' has no member named 'printf'; did you mean 'print'?

Use this guide to install RAK11300/RAK11310 support for PlatformIO. It fixes the problem with printf:
https://github.com/RAKWireless/WisBlock/tree/master/PlatformIO

This does not work. Please test this.
On 3 Jan 2022, at 01:50, Bernd Giesecke @.***> wrote:

Use this guide to install RAK11300/RAK11310 support for PlatformIO. It
fixes the problem with printf:
https://github.com/RAKWireless/WisBlock/tree/master/PlatformIO
—
Reply to this email directly, view it on GitHub
https://github.com/RAKWireless/WisBlock/issues/39#issuecomment-1003830017,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABGCGRUUBSSBO4OOH6BESZDUUD6FBANCNFSM5LEAIJZA
.
You are receiving this because you authored the thread.Message ID:
@.***>

What do you mean "This does not work"?
It works just fine:

Hi
I missed the python script.
Yes its working now:
Also this link does not work:
https://downloads.rakwireless.com/3D_File/WisDuo/3D_RAK11300.stp
Please can you send me the stp file?
Do you also have an altium pcb module?
Thanks
Thanks
On Tue, 4 Jan 2022 at 05:56, Bernd Giesecke @.***>
wrote:

What do you mean "This does not work"?
It works just fine:
[image: image]
https://user-images.githubusercontent.com/512690/148015652-c354870f-df0a-4362-9bd0-fe2b874a0b40.png
—
Reply to this email directly, view it on GitHub
https://github.com/RAKWireless/WisBlock/issues/39#issuecomment-1004546736,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABGCGRRMECXSQ2W5CRDVKXDUUKDYHANCNFSM5LEAIJZA
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Jeremy Turner
Director @fabcontrols
IoT Solutions
Google Cloud Authorised Trainer
FAB Controls Ltd
Phone: +44(0) 1727 238 894

For the STP file, it was put into the wrong folder. It is here: https://downloads.rakwireless.com/3D_File/WisBlock/3D_RAK11300.stp
We do not have Altium/Eagle/Orcad/Allegro libraries. We only provide the layout recommendations: https://docs.rakwireless.com/Product-Categories/WisDuo/RAK11300-Module/Datasheet/#layout-recommendation

Thank you
Also I cannot seem to find a pin map:
The physical pins are listed here:
https://docs.rakwireless.com/Product-Categories/WisDuo/RAK11300-Module/Datasheet/#hardware
However in the Arduino IDE they are referenced as:
WB_IO1 - WB_IO6
WB_A0 and WB_A1
Can you please tell me for example:
GPIO7 =  WB_IO??? etc
Thank you
On Tue, 4 Jan 2022 at 12:00, Bernd Giesecke @.***>
wrote:

For the STP file, it was put into the wrong folder. It is here:
https://downloads.rakwireless.com/3D_File/WisBlock/3D_RAK11300.stp
We do not have Altium/Eagle/Orcad/Allegro libraries. We only provide the
layout recommendations:
https://docs.rakwireless.com/Product-Categories/WisDuo/RAK11300-Module/Datasheet/#layout-recommendation
—
Reply to this email directly, view it on GitHub
https://github.com/RAKWireless/WisBlock/issues/39#issuecomment-1004748681,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABGCGRTD4BYNWF4FR76R4NDUULOL5ANCNFSM5LEAIJZA
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Jeremy Turner
Director @fabcontrols
IoT Solutions
Google Cloud Authorised Trainer
FAB Controls Ltd
Phone: +44(0) 1727 238 894

Yes, sorry, the information is in different places because we started with the WisBlock Core module before we decided to sell the bare stamp module as well.
Here is the assignment: https://github.com/RAKWireless/RAK-RP-Arduino/blob/85e519ed2f8278ac9d6c4e735df796561b5b9e58/variants/WisBlock_RAK11300_Board/pins_arduino.h#L28

Hi
Can you confirm this:
So WB_IO1 - GPIO 6  ( Pin 8 on module)
This is not listed as GPIO here??)  Is there an issue with GPIO 6?
https://docs.rakwireless.com/Product-Categories/WisDuo/RAK11300-Module/Datasheet/#hardware
WB_IO1 - GPIO 22  ( PIN 27 on the module ?)
Pin 41 - GP10 27 ( Shows as PIN_A1 in the file)  The data sheet does not
list this as analog PIN? Is there a reason for this?
Pin 42 - GPIO 26 ( Listed as analog pin)
Pin 43 - GPIO 28    (Listed as analog pin)
Thanks
On Tue, 4 Jan 2022 at 12:25, Bernd Giesecke @.***>
wrote:

Yes, sorry, the information is in different places because we started with
the WisBlock Core module before we decided to sell the bare stamp module as
well.
Here is the assignment:
https://github.com/RAKWireless/RAK-RP-Arduino/blob/85e519ed2f8278ac9d6c4e735df796561b5b9e58/variants/WisBlock_RAK11300_Board/pins_arduino.h#L28
—
Reply to this email directly, view it on GitHub
https://github.com/RAKWireless/WisBlock/issues/39#issuecomment-1004765312,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABGCGRWJN34B33JAZERD54DUULRMXANCNFSM5LEAIJZA
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Jeremy Turner
Director @fabcontrols
IoT Solutions
Google Cloud Authorised Trainer
FAB Controls Ltd
Phone: +44(0) 1727 238 894

Hi @fabltd
Maybe this helps, I will ask our documentation team to add this to the RAK11300 datasheet.

Stamp Module Pin
Stamp Module Pin Name
RP2040 Name
Arduino BSP Assignment
Arduino Class Usage
Remark

1
RESERVED
---
---

NC

2
USB_DM
USB-
Serial
Serial

3
USB_DP
USB+
Serial

4
I2C1_SDA
I2C1_SDA/GPIO2
PIN_WIRE_SDA
Wire

5
I2C1_SCL
I2C1_SCL/GPIO3
PIN_WIRE_SCL
Wire

6
UART2_RX
UART0_RX/GPIO1
SERIAL1_RX
Serial1

7
UART2_TX
UART0_RTX/GPIO0
SERIAL1_TX
Serial1

8
GPIO6
GPIO6
WB_IO1

9
UART1_RX
UART1_RX/GPIO5
SERIAL2_RX
Serial2

10
UART1_TX
UART1_TX/GPIO4
SERIAL2_TX
Serial2

11
GPIO7
GPIO7
WB_IO3

12
GPIO8
GPIO8
WB_IO6

13
GPIO9
GPIO9
WB_IO5

14
GND
GND
---

GND

15
RESERVED
---
---

NC

16
BOOT
BOOT
---

17
GND
GND
---

18
RESET
RESET
---

19
SWCLK
SWCLK
---

20
SWDIO
SWDIO
---

21
VBAT_SX
---
---

3.3V

22
VBAT_IO_SX
---
---

3.3V

23
GND
GND
---

GND

24
I2C2_SDA
I2C0_SDA/GPIO21
PIN_WIRE_SDA1
Wire1

25
I2C2_SCL
I2C0_SCL/GPIO20
PIN_WIRE_SCL1
Wire1

26
RESERVED
---
---

NC

27
GPIO22
GPIO22
WB_IO2

28
GPIO23
GPIO23
LED1

29
GPIO24
GPIO24
LED2

30
SPI0_CLK
SPI_CLK/GPIO18
SCK
SPI

31
RESERVED
---
---

NC

32
RESERVED
---
---

NC

33
SPI0_MISO
SPI_MISO/GPIO16
MISO
SPI

34
SPI0_MOSI
SPI_MOSI/GPIO19
MOSI
SPI

35
SPI0_SS
SPI_SS/GPIO17
SS
SPI

36
GND
GND
---

GND

37
GND
GND
---

GND

38
RF_LORA
---
---

NC

39
RESERVED
---
---

NC

40
GND
GND
---

GND

41
GPIO27
ADC1/GPIO27
WB_A1

42
GPIO26
ADC0/GPIO26
WB_A0

43
GPIO28
GPIO28
WB_IO4

44
GND
GND
---

GND

45
DVDD
DVDD
---

3.3V

46
AVDD
ADC_AVDD
---

3.3V

RAK11300-Arduino-Pin-Assignment.xlsx


Added Knapsack Game

@imVickyS are this PR/MR getting counted in Hacktoberfest 2022 see your profile weather it got excluded or got counted

@imVickyS are this PR/MR getting counted in Hacktoberfest 2022 see your profile weather it got excluded or got counted

It is waiting for review @AnkitMajee

@imVickyS  Let me know if it is included one of my similar repo got excluded after one day


Class marked as unused when used in a static block

🔎 Search Terms
class unused static field block
🕗 Version & Regression Information

This is the behavior in every version I tried

⏯ Playground Link
https://www.typescriptlang.org/play?ts=5.5.0-dev.20240303#code/DYUwLgBAQsCu4AsD2SwBEQDcCWBjEA+rgE4gCGYIA3ALABQuwZAzs9HIiulniBAN70IEAMTYAJgEIAXBGZhi2AHYBzWnSFywFPKLLBgSAO4BhJEvnFYuSAF4IAM33Nq9TQAdFmCn1znL1mBIxAAUAJQCmsLYDhAhkjDwYMioGDj4AHQi+oam-gqBEYJ0wqUQycTGEEogRhAAosSVoQBEAJpIsBC4ZEpKqBDK8r1g2D7lCNhsjCxs4tikNsAAni1h6mUAvprbGiVaOriR+8KJnKk8+ESk4-YhErKWyioRtgB8x2WnHMlcabxZHLGMwWAo2CD2AquE6lPygiDiS58ew1OpnX4XdIgcIbL7olLcLGAgzA-JWcH2JzAFy4sqIolicQQwbiWmlUhgWDEJQIpFsza43aaFTgFnhT7s8BcnnJKZZCSC+hCuigSBkZkAJnU9HxfyR13IlBCLTIZDW2roIAAHu5gpB+JsgA
💻 Code
let BluethootDevice_create;
class BluethootDevice {
  #id!: string;

  static #allowConstruct = false;

  private constructor() {
    if (!BluethootDevice.#allowConstruct) {
      throw new Error("You cannot instantiate this class directly");
    }
  }

  static {
    BluethootDevice_create = (id: string) => {
      BluethootDevice.#allowConstruct = true;
      const device = new BluethootDevice();
      BluethootDevice.#allowConstruct = false;
      device.#id = id;
      return device;
    };
  }

  get id() {
    return this.#id;
  }
}

let a = 2;

BluethootDevice_create("aa");

export {}

🙁 Actual behavior
The class BluethootDevice is marked as unused, but it's used by the BluethootDevice_create function
🙂 Expected behavior
BluethootDevice should not be marked as unused
Additional information about the issue
No response

Bluethoot

Yes I learned today that it's not spelled like that 😛

A very minimal repro case for this issue:
class BluethootDevice {
  static {
    console.log(BluethootDevice);
  }
}

export {};

Note that I specifically shared an example with private fields because for your example @Andarist it could be argued that it can just be rewritten to
class BluethootDevice {
}

console.log(BluethootDevice);

export {};

and then the variable is detected as used.
However, in the original example there is no good way to rewrite it to not use a static block.

I'm assuming you've written it this way because you don't want to export the class.  In that case I'd probably write it like
Playground link
class BluetoothDevice {
  #id!: string;

  static #allowConstruct = false;

  private constructor() {
    if (!BluetoothDevice.#allowConstruct) {
      throw new Error("You cannot instantiate this class directly");
    }
  }

  static create(id: string) {
      BluetoothDevice.#allowConstruct = true;
      const device = new BluetoothDevice();
      BluetoothDevice.#allowConstruct = false;
      device.#id = id;
      return device;
  }

  get id() {
    return this.#id;
  }
}

let BluetoothDevice_create = (id: string) => BluetoothDevice.create(id);

let a = 2;

BluetoothDevice_create("aa");

export {}

which avoids the error.  I'm thinking the reason TS sees this as an error is because it thinks the only thing using the class is the class itself, so it's suspicious in the same way as
let x = 0;
x++;
// x is never used afterwards

The current rule looks something like this (see the comment here):
        // We just climbed up parents looking for the name, meaning that we started in a descendant node of `lastLocation`.
        // If `result === lastSelfReferenceLocation.symbol`, that means that we are somewhere inside `lastSelfReferenceLocation` looking up a name, and resolving to `lastLocation` itself.
        // That means that this is a self-reference of `lastLocation`, and shouldn't count this when considering whether `lastLocation` is used.
        if (isUse && result && (!lastSelfReferenceLocation || result !== lastSelfReferenceLocation.symbol)) {
            result.isReferenced! |= meaning;
        }

@nicolo-ribaudo They wouldn't have access to the constructor the way I wrote it, because you'd just export the function.

Another thing you could do would be
class Foo {
    static #instance: Foo;
    constructor() {
        if (Foo.#instance !== undefined)
            return Foo.#instance;
        /* constructor logic here */
        Foo.#instance = this;
    }
}

which guarantees that only the first invocation of new Foo() produces a new instance and subsequent calls just return the existing one.

Except via device.constructor but there's not much you can do about that

I want them to have access to the constructor, but not to be able to create new instances. Only my first-party code should be able to create new instances. An example of something that has this behavior is HTMLElement, where only browser-internal code can create new instances and not user code.
Anyway, this discussion is all a bit off-topic for the original issue, which is about TS and not about code style.

This is arguably the same case:
let log: () => void;

@((_, __) => { log = () => console.log("hello") })
class Foo {}

log();

export {}

Playground Link
Foo is marked as unused, and log is treated as used before being defined.

So, does that imply that any class with static / decorators needs to not be marked as unused? That feels wrong.
But, the original case is more clearly less awkward in that it actually references Foo, but references to one's self are usually not included when considering if a declaration is unused, otherwise no self-referencing declarations would ever be seen as unused...

But, the original case is more clearly less awkward in that it actually references Foo, but references to one's self are usually not included when considering if a declaration is unused

The error would be correct if it weren't specifically for the static block assigning the function to a variable that's accessible from outside the class.  I don't know if it'd be tenable (performance- and complexity-wise) for TS to track that information, though.

@jakebailey Following TS's spirit of "not 100% correct, but useful", I think that:

decorators should be ignored, as they are usually pure or have ignorable side effects (i.e. if the class is not used in other places, even if it's decorated you'd usually want to drop it)
static fields should be ignored, for the same reason
static blocks are usually meant explicitly for side effects: and as such those should be counted (a static block that "looks like it's pure" is useless).

"static block is IIFE" feels like the right view of this, since it runs on block evaluation rather than on first constructor call.

decorators should be ignored, as they are usually pure or have ignorable side effects (i.e. if the class is not used in other places, even if it's decorated you'd usually want to drop it)

This is very much not true in practice though. The most common class decorator I use, @customElement(), has a side-effect of registering the class.
I also have a method decorator that I use quite a bit that registers a method as a callback, and that ends up mislabeling private methods as being unused:
@observe('foo')
#onFooChange() {
}

^ that will incorrectly create an unussed method warning.


Color Scheme / Theme

I like the layout already. However, the colors could use some tweaking.
I'd like the top panel to be dark -- some grey-black (around #555555. The rest of the colors could be something like a Monokai pallete. I like the pink used in the range sliders.
I think the current blue is a bit bleh, so I'd change that.
Also, not sure, but it might be nice to set the background of the sidebar in the form to another color than white?
Also, the top navbar, "The Halo Mod" should be "TheHaloMod".

The colors currently used in the logo are #343a40, #b1e6d0 and #888988. Might be useful to follow that kind of scheme.

Just discovered palettable. Here's a scheme I like: https://www.palettable.io/B1E6D0-343A40-888988-FF6188-FC9867
Not sure if it covers all the bases. Perhaps an extra standardish blue would be good.

Here's a full theme with hexes, similar to the above:

@steven-murray the framework that we are using to build the site supports two colors as a theme. A primary color and an accent color. By default the primary is blue and the accent is red. The theme was updated to have the light blue you had selected and the dark gray, mainly because those were the colors of the logo. See below for screenshots of the light and dark variant:
Light variant:

Dark variant:

Please ignore the legend for the plot for now, that will be fixed.
It seems that only two colors are allowed because it uses calculations to find out the best color offset for the other colors throughout the application, and having more than two colors would likely throw that off. But there are a few questions:

If you had to choose two colors what would they be out of the above color palette? Primary and accent (color of buttons and things are the accent). Also note that those two colors can be different between the dark and light versions of the site.
If more than 2 colors are preferred, where would you like the other colors to be? Or otherwise, we can work on just finding places for them perhaps. Like the background or text colors, etc.
Are there any other 2 color combos you want screenshots of really quick? It is fast to do so it won't take time at all.

Also does there happen to be an .svg version of the logo somewhere? Just copied over the other assets from TheHaloMod but it didn't seem to have an SVG of that logo. It would help quite a bit with the load times because right now that is one of the biggest files it needs to load.


left-sidebar: Add support for showing resolve-topic-prefix.

We currently have the resolved topics prefix shown as part of
the topic name in the left sidebar. However this causes inconsistency
while showing topic names. Hence this adds support for showing the
prefix in the cutter to the left of the topic name.
Fixes #18989.
Testing plan:
Manual testing, frontend tests.
GIFs or screenshots:

@timabbott I have continued work with this since @aldeka is working on #19046 for now.

Looks great, merged, thanks @ligmitz!
Though having thought about this a bit more, I think the logic of .replace() is still wrong, because it'll replace all copies.  I think what you want is just to remove the first len(RESOLVED_TOPIC_PREFIX) characters.  Can you fix that and add a test for a weird topic that contains RESOLVED_TOPIC_PREFIX twice?


MAINTAINERS: Add larsgk to Bluetooth Audio

larsgk is collaborating on Bluetooth Audio.
Lars had contributed the following PRs
https://github.com/zephyrproject-rtos/zephyr/pull/54616
https://github.com/zephyrproject-rtos/zephyr/pull/53803
https://github.com/zephyrproject-rtos/zephyr/pull/52672
https://github.com/zephyrproject-rtos/zephyr/pull/46923
https://github.com/zephyrproject-rtos/zephyr/pull/46376
and is attending the weekly LE Audio Zephyr meetings

ping @larsgk


Authentication credentials

I would love to know about the authentication credentials for the system via the login screen, for admin.
Thank you.

Hi, thank you for your interest to the project.
You have to also setup the backend part of this project. You can find it in my profile with the name "intern-management-system-backend".
If you already setup the backend, I would kindly request you to do some changes since I fixed a mistake. I changed the user table attributes, so pull the changes to your local. Drop the user table in your database and create the new table.
The reason you cannot log into the system is that there is no user in you database. So we have to add the first user manually by hand. I created a sql query to add the admin user to the database;
INSERT INTO users (username, password, role) VALUES ('Admin', '$2b$10$klqPouNNnxuz.tX/LobcoOfANHd8OQrd0TTViaYledzxDxYx2r.zG', '5150');
Now, you can log into the system with these credentials;
Username: Admin
Password: admin123
Do not hesitate to ask me further questions for any problem. Good luck.


preserve the order using single stack

Currently pushing tokens to s_p and s_q disregards the order of rules and also pushes back into matrix using static logic.
generator should be modified to rely on ordered stack.

If i store the index of each tokens and lambda min each elements (sort), then I can technically "remember" and "restore" back to its original state.


Add support for online backup API

I'm new to this code so this may actually be a question in the form of an issue, but I'm interested in using sqlite in-memory, and then backing up to disk, presumably using the backup API. Would you consider supporting this API, if not already supported? (API search for "backup" didn't show anything.)

It's not currently supported, but @gwenn opened a PR (#59) which adds support for it. I've been pretty swamped at work, but I'll try to get to that PR (and the other open ones) soon.

@jgallagher any movement on this?

The API provided by my PR may be to restrictive.
It's a simple transcription of the TCL API:
https://www.sqlite.org/tclsqlite.html#backup

@gwenn why is it considered restrictive?

Destination database name,
Number of pages copied,
Error (SQLITE_BUSY, SQLITE_LOCKED) handling while stepping,

are hard-coded.

@gwenn @Dashed I took a shot at implementing a more robust and Rust-y interface for online backup. Could you guys please take a look at #93 and see what you think? If you have actual programs that are using this or want to use it and you could give it a shot, that would be even better.

Maybe I am biased.
But I think that the main use case is "Backup the current ('main') database to a file".
So it seems wise to have a simple function that makes this main use case easy to do:
impl SqliteConnection {
    pub fn backup<P: AsRef<Path>>(&self, name: BackupName, dst_path: &P) -> SqliteResult<()> {
        let dst = try!(SqliteConnection::open(dst_path));
        let backup = try!(Backup::new_with_names(&src, name, &mut dst, BackupName::Main));
        backup.run_to_completion(100, Duration::from_millis(250), None)
    }
    // And may be restore...
 (TCL/JDBC include this for restore but not backup)
Should we include a hook for a progress function? (TCL doesn't have this but JDBC does)

Given how short implementing these options would be, I lean toward letting clients decide how they want to do the backups. I could be convinced otherwise though if you feel strongly about it.

Another unrelated point:
At least, the following functions also take a database name ("main", "temp", ...) as argument:

http://sqlite.org/c3ref/blob_open.html
http://sqlite.org/c3ref/db_readonly.html
http://sqlite.org/c3ref/table_column_metadata.html
http://sqlite.org/c3ref/wal_checkpoint_v2.html

So BackupName may be too specific.

Thanks, renamed it to DatabaseName in 89b5875.
I'm still going back and forth on backup and restore. I'm leaning toward going ahead and putting them in with 100/100 and including an Optional progress function (like JDBC's) - I think you're right that most uses will want something simple, and they can always use the full backup mod if they want full control. So the signatures would be
impl SqliteConnection {
    pub fn backup<P: AsRef<Path>>(&self, name: DatabaseName, dst_path: &P, progress: Option<fn(backup::Progress)>) -> SqliteResult<()> { ... }
    pub fn restore<P: AsRef<Path>>(&mut self, name: DatabaseName, src_path: &P, progress: Option<fn(backup::Progress)>) -> SqliteResult<()> { ... }
}

What do you think?

LGTM

Implemented as of #93.

Sorry haven't responded sooner. But the new API looks much cleaner to use! :+1: