Installation 403

I'm trying to install an instance of this project, when doing a full download for the planet with this config:
version: "3"
services:
  nominatim:
    container_name: nominatim
    image: mediagis/nominatim:4.2
    restart: always
    ports:
        - "8080:8080"
    environment:
            # see https://github.com/mediagis/nominatim-docker/tree/master/3.7#configuration for more options
#          PBF_URL: https://download.geofabrik.de/europe/monaco-latest.osm.pbf
#          REPLICATION_URL: https://download.geofabrik.de/europe/monaco-updates/
         PBF_URL: https://ftp5.gwdg.de/pub/misc/openstreetmap/planet.openstreetmap.org/pbf/planet-latest.osm.pbf
         REPLICATION_URL: https://ftp5.gwdg.de/pub/misc/openstreetmap/planet.openstreetmap.org/replication/day/
         NOMINATIM_PASSWORD: very_secure_password_1234
         IMPORT_WIKIPEDIA: "true"
         IMPORT_STYLE: address
    volumes:
         - nominatim-data:/var/lib/postgresql/12/main
    shm_size: 1gb

  photon:
    build:
        context: .
        dockerfile: Docker/Dockerfile_photon
        args:
         - photon_data=Docker/photon.tar.gz
        # network: host
    ports:
      - "2322:2322"

  libpostal:
    build:
        context: .
        dockerfile: Docker/Dockerfile_libpostal
        # network: host
    ports:
            - "7000:7000"
    environment:
      - NB_LPOST_WORKERS:1

  wrapper:
    build:
        context: .
        dockerfile: Docker/Dockerfile_wrapper
        # network: host
    ports:
      - "5000:5000"
    environment:
      - NB_WORKERS=8
      - PHOTON_HOST=photon:2322
      - LPOST_HOST=libpostal:7000
      - OSM_HOST=nominatim:8080
      - LOG_LEVEL=low
      - TIMING=no
      - FASTMODE=yes
      - HTTPS=yes
volumes:
    nominatim-data:

After having done ./full_build.sh which succeeds I ran docker-compose -f docker-compose-full.yml up I am getting these 403's:
100   153  100   153    0     0   1425      0 --:--:-- --:--:-- --:--:--  1429
nominatim    | curl: (22) The requested URL returned error: 403
nominatim    | + tailpid=0
nominatim    | + replicationpid=0
nominatim    | + trap stopServices SIGTERM TERM INT
nominatim    | + /app/config.sh
nominatim    | + id nominatim
nominatim    | user nominatim already exists
nominatim    | + echo 'user nominatim already exists'
nominatim    | + IMPORT_FINISHED=/var/lib/postgresql/14/main/import-finished
nominatim    | + '[' '!' -f /var/lib/postgresql/14/main/import-finished ']'
nominatim    | + /app/init.sh
nominatim    | + OSMFILE=/nominatim/data.osm.pbf
nominatim    | + CURL=("curl" "-L" "-A" "${USER_AGENT}" "--fail-with-body")
nominatim    | + '[' true = true ']'
nominatim    | Downloading Wikipedia importance dump
nominatim    | + echo 'Downloading Wikipedia importance dump'
nominatim    | + curl -L -A mediagis/nominatim-docker:4.2.3 --fail-with-body https://nominatim.org/data/wikimedia-importance.sql.gz -o /nominatim/wikimedia-importance.sql.gz
nominatim    |   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
nominatim    |                                  Dload  Upload   Total   Spent    Left  Speed
100   153  100   153    0     0   1164      0 --:--:-- --:--:-- --:--:--  1167
nominatim    | curl: (22) The requested URL returned error: 403
nominatim    | + tailpid=0
nominatim    | + replicationpid=0
nominatim    | + trap stopServices SIGTERM TERM INT
nominatim    | + /app/config.sh
nominatim    | + id nominatim
nominatim    | + echo 'user nominatim already exists'
nominatim    | + IMPORT_FINISHED=/var/lib/postgresql/14/main/import-finished
nominatim    | + '[' '!' -f /var/lib/postgresql/14/main/import-finished ']'
nominatim    | + /app/init.sh
nominatim    | user nominatim already exists
nominatim    | + OSMFILE=/nominatim/data.osm.pbf
nominatim    | + CURL=("curl" "-L" "-A" "${USER_AGENT}" "--fail-with-body")
nominatim    | Downloading Wikipedia importance dump
nominatim    | + '[' true = true ']'
nominatim    | + echo 'Downloading Wikipedia importance dump'
nominatim    | + curl -L -A mediagis/nominatim-docker:4.2.3 --fail-with-body https://nominatim.org/data/wikimedia-importance.sql.gz -o /nominatim/wikimedia-importance.sql.gz
nominatim    |   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
nominatim    |                                  Dload  Upload   Total   Spent    Left  Speed
100   153  100   153    0     0   1409      0 --:--:-- --:--:-- --:--:--  1416
nominatim    | curl: (22) The requested URL returned error: 403

Is this normal?

I fixed it by adding this to the docker composer:
USER_AGENT: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36"
But now when running the docker compose I get a photon error when starting the download
photon_1     | 2023-06-12 09:21:18,142 [main] INFO  de.komoot.photon.elasticsearch.Server - started elastic search node
photon_1     | 2023-06-12 09:21:18,142 [main] INFO  de.komoot.photon.App - Make sure that the ES cluster is ready, this might take some time.
photon_1     | 2023-06-12 09:21:18,148 [main] INFO  de.komoot.photon.App - ES cluster is now ready.
photon_1     | Exception in thread "main" [photon] IndexNotFoundException[no such index]
photon_1     | 	at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.concreteIndices(IndexNameExpressionResolver.java:187)
photon_1     | 	at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.concreteIndices(IndexNameExpressionResolver.java:123)
photon_1     | 	at org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.concreteSingleIndex(IndexNameExpressionResolver.java:244)
photon_1     | 	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.<init>(TransportSingleShardAction.java:146)
photon_1     | 	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction$AsyncSingleAction.<init>(TransportSingleShardAction.java:123)
photon_1     | 	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction.doExecute(TransportSingleShardAction.java:95)
photon_1     | 	at org.elasticsearch.action.support.single.shard.TransportSingleShardAction.doExecute(TransportSingleShardAction.java:59)
photon_1     | 	at org.elasticsearch.action.support.TransportAction.doExecute(TransportAction.java:146)
photon_1     | 	at org.elasticsearch.action.support.TransportAction$RequestFilterChain.proceed(TransportAction.java:170)
photon_1     | 	at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:142)
photon_1     | 	at org.elasticsearch.action.support.TransportAction.execute(TransportAction.java:84)
photon_1     | 	at org.elasticsearch.client.node.NodeClient.executeLocally(NodeClient.java:83)
photon_1     | 	at org.elasticsearch.client.node.NodeClient.doExecute(NodeClient.java:72)
photon_1     | 	at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:408)
photon_1     | 	at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:80)
photon_1     | 	at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:54)
photon_1     | 	at de.komoot.photon.elasticsearch.Server.loadFromDatabase(Server.java:245)
photon_1     | 	at de.komoot.photon.elasticsearch.Server.updateIndexSettings(Server.java:193)
photon_1     | 	at de.komoot.photon.App.main(App.java:45)
100  375M  100  375M    0     0  7927k      0  0:00:48  0:00:48 --:--:-- 8007k
nominatim    | + '[' '' = true ']'
nominatim    | + '[' -f '' ']'
nominatim    | + echo 'Skipping optional GB postcode import'
nominatim    | + '[' '' = true ']'
nominatim    | + '[' -f '' ']'
nominatim    | + echo 'Skipping optional US postcode import'
nominatim    | + '[' '' = true ']'
nominatim    | + '[' -f '' ']'
nominatim    | + echo 'Skipping optional Tiger addresses import'
nominatim    | + '[' https://download.bbbike.org/osm/planet/planet-latest.osm.pbf '!=' '' ']'
nominatim    | + echo Downloading OSM extract from https://download.bbbike.org/osm/planet/planet-latest.osm.pbf
nominatim    | + curl -L -A 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36' --fail-with-body https://download.bbbike.org/osm/planet/planet-latest.osm.pbf -C - --create-dirs -o /nominatim/data.osm.pbf
nominatim    | Skipping optional GB postcode import
nominatim    | Skipping optional US postcode import
nominatim    | Skipping optional Tiger addresses import
nominatim    | Downloading OSM extract from https://download.bbbike.org/osm/planet/planet-latest.osm.pbf
nominatim    | ** Resuming transfer from byte position<PHONE_NUMBER>8
nominatim    |   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
nominatim    |                                  Dload  Upload   Total   Spent    Left  Speed

And now its frozen on the last line, and I'm not sure if its actually downloading anything

I replaced the PBF to be a smaller zone for testing purposes, I get the same results but it still goes through, but now I get this following error:
nominatim    | 2023-06-12 10:04:41    Processed 4465889 ways in 19s - 235k/s
nominatim    | 2023-06-12 10:04:41    Processed 96504 relations in 4s - 24k/s
nominatim    | 2023-06-12 10:04:41  Done postprocessing on table 'planet_osm_nodes' in 0s
nominatim    | 2023-06-12 10:04:41  Done postprocessing on table 'planet_osm_ways' in 0s
nominatim    | 2023-06-12 10:04:41  Done postprocessing on table 'planet_osm_rels' in 0s
nominatim    | 2023-06-12 10:04:41  osm2pgsql took 56s overall.
nominatim    | 2023-06-12 10:04:41: Importing wikipedia importance data
nominatim    | 2023-06-12 10:06:09: Importing secondary importance raster data
nominatim    | 2023-06-12 10:06:09: Secondary importance file not imported. Falling back to default ranking.
nominatim    | 2023-06-12 10:06:09: Create functions (1st pass)
nominatim    | 2023-06-12 10:06:09: Create tables
nominatim    | 2023-06-12 10:06:12: Create functions (2nd pass)
nominatim    | 2023-06-12 10:06:12: Create table triggers
nominatim    | 2023-06-12 10:06:12: Create partition tables
nominatim    | 2023-06-12 10:06:13: Create functions (3rd pass)
nominatim    | 2023-06-12 10:06:13: Initialise tables
nominatim    | 2023-06-12 10:06:13: Load data into placex table
nominatim    | Traceback (most recent call last):
nominatim    |   File "/usr/local/bin/nominatim", line 14, in <module>
nominatim    |     exit(cli.nominatim(module_dir='/usr/local/lib/nominatim/module',
nominatim    |   File "/usr/local/lib/nominatim/lib-python/nominatim/cli.py", line 264, in nominatim
nominatim    |     return parser.run(**kwargs)
nominatim    |   File "/usr/local/lib/nominatim/lib-python/nominatim/cli.py", line 126, in run
nominatim    |     return args.command.run(args)
nominatim    |   File "/usr/local/lib/nominatim/lib-python/nominatim/clicmd/setup.py", line 121, in run
nominatim    |     database_import.load_data(args.config.get_libpq_dsn(), num_threads)
nominatim    |   File "/usr/local/lib/nominatim/lib-python/nominatim/tools/database_import.py", line 193, in load_data
nominatim    |     conn = DBConnection(dsn)
nominatim    |   File "/usr/local/lib/nominatim/lib-python/nominatim/db/async_connection.py", line 74, in __init__
nominatim    |     self.connect(cursor_factory=cursor_factory)
nominatim    |   File "/usr/local/lib/nominatim/lib-python/nominatim/db/async_connection.py", line 99, in connect
nominatim    |     self.wait()
nominatim    |   File "/usr/local/lib/nominatim/lib-python/nominatim/db/async_connection.py", line 128, in wait
nominatim    |     wait_select(self.conn)
nominatim    |   File "/usr/lib/python3/dist-packages/psycopg2/extras.py", line 762, in wait_select
nominatim    |     state = conn.poll()
nominatim    | psycopg2.OperationalError: FATAL:  sorry, too many clients already

Hello Romeo,

I would not suggest to build a world wide geocoder with Nominatim: building it may take weeks and require terabytes of disk
You'd better build photon.tar.gz from your Nominatim instance ("PREPARE PHOTON DATA" block of "full_build.sh") ; if you use a downloaded version, please make sure it was built with the same version of photon (currently 0.4.2)
Could you try building Nominatim from outside NominatimWrapper, following https://github.com/mediagis/nominatim-docker/tree/master/4.0? Or perhaps replace "4.0" by "4.1" or "4.2" in docker-compose-full.yml?

Hi Romeo,
Sorry for my late reply. I didn't get any feedback of anyone having installed a full planet setup, but NominatimWrapper is quite independent from Nominatim. It just requires to be able to connect a Nominatim server. For convenience, I provide a "full_build.sh" script which builds both Nominatim container and the 3 "internal" components of Nominatim (photon, libpostal and the wrapper itself), but if you have already a running Nominatim server, you'd better follow https://github.com/SmalsResearch/NominatimWrapper#appart-nominatim.
By the way, if you just want to test the Libpostal implementation (which is fully independent of the coverage of the Nominatim server), you can run "docker-compose -f docker-compose.yml build libpostal"
Best,
V.


Cli build

PR Type
What kind of change does this PR introduce?
I just add the feature to change the auth language of firebase
https://firebase.google.com/docs/reference/android/com/google/firebase/auth/FirebaseAuth#setLanguageCode(java.lang.String)
I also add a PR for ionic-native plugin, for test, you can use https://github.com/boblepepeur/ionic-native before they accept.
I make this PR relative to https://github.com/dpa99c/cordova-plugin-firebasex/issues/510

[ ] Bugfix
[X ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[X ] Documentation  changes
[ ] Other... Please describe:

PR Checklist
Please check your PR fulfills the following requirements:
Bugfixes:

[ ] Regression testing has been carried out using the example project to ensure the intended bug is fixed and no regression bugs have been inadvertently introduced.

New features/enhancements:

[X ] Exhaustive testing has been carried out for the new functionality
[ ] Regression testing has been carried out to ensure no existing functionality is adversely affected
[X] Documentation has been added / updated
[ ] The example project has been update to validate/demonstrate the new functionality.

What is the purpose of this PR?

Does this PR introduce a breaking change?

[ ] Yes
[X ] No

What testing has been done on the changes in the PR?

I change local on android & IOS, every thing is working
What testing has been done on existing functionality?

Other information

No need to merge this PR as I'll merge your PR from master to cli_build

When do you will merge to cli_build ?

Just merged it

Your forget to merge cordova-plugin-firebasex/www/firebase.js
:-)
Thanks for your job !

oops, just fixed it - try now

yep its working now, thanks


Update CFE to use OS time conversion/access methods

Is your feature request related to a problem? Please describe.
CFE is directly accessing specific fields within OS_time_t which will break when the struct definition changes.
Describe the solution you'd like
Instead of directly accessing the seconds and microsecs fields within OS_time_t, use the accessor functions to convert/extract the relevant info from  the value instead.
Additional context
see nasa/osal#429
Requester Info
Joseph Hickey, Vantage Systems, Inc.

Also worth noting here that the CFE_TIME_Micro2SubSecs and CFE_TIME_Sub2MicroSecs are fairly broken.  I had never really tested/looked at them with any level of detail until now.
There are plenty of values that do not convert to the "ideal" value.  For instance the CFE_TIME unit test uses a microsecond value of "567890", for which CFE_TIME_Micro2SubSecs() returns a value of 0x91614000  ... but the closest value by my calculation 0x91613d32 ... the former converts back to<PHONE_NUMBER>36us, but the latter converts back to<PHONE_NUMBER>064us - so much closer to the real value.
Of course in this case when CFE_TIME_Sub2MicroSecs rounds it back to an integer, it returns the same original value (567890) but this isn't always the case.
EXAMPLE: At a value of 568017us,  CFE_TIME_Micro2SubSecs() returns a value of 0x91699000<PHONE_NUMBER>2) ... the CFE_TIME_Sub2MicroSecs function then converts this back to 568016, not 568017 as was the original value.  (FWIW, by my calculation closest/correct value should actually be 0x91698fe7 here, which is<PHONE_NUMBER>us).
My suggestion is to provide OSAL functions that actually implement this properly.


Permutation ops

Add next_permutation and prev_permutation, with implementations taken from Range-V3.
Still needs is_permutation, which is trickier, not only because the algorithm is more complicated but because both the Range-V3 and CMCSTL2 versions use goto, which is verboten in constexpr functions. So I can't just go ahead and steal one of them them. I'm actually going to have to do this one myself.

is_permutation is now implemented, need to work out why MSVC doesn't like one of the constexpr tests though

Wag: Avoid initializer_list in constexpr on msvc. The initializer_list object itself is fine, but our constexpr engine can't see the temporary backing array.

Thanks... no use of initializer_list here though (unless I'm missing something), as carray is an aggregate


Flatten marriage aboard flow for the Philippines and use only two question/outcomes

Trello card
Motivation
Marriage abroad is the most complex Smart Answer to update. It's also one of the most frequent Smart Answers to be updated. We want to simplify the updates so they are quicker, less complex and reduce the need for Developers to make the update. By creating one template per outcome for a country we greatly reduce the mount of logic in the templates.
Expected changes
URL on GOV.UK
Preview link
As this is a refactor of Philippines flow, and not a change to the content or flow of the smart-answer, users should not experience any changes. The changes that have occurred to the code are:

Create one outcome per path through the flow for Philippines. This results in 20 file changes.
Remove old outcome templates previously only used by Philippines
Remove Philippines related logic and content from other shared outcome templates
Remove Philippines from all country lists.
Consolidation of opposite and same sex content.
Change Philippines flow to ask only two questions

NB: There should be noticeable changes in the fees tables but regression artefacts don't reflect this because the configuration.yml date set to 2015-01-01, hence the old fees are being used.

Update from 	30fcc68


mock search API

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

28 of 102 (27.45%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+8.4%) to 10.697%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

vitup/src/mode/mock/rest/mod.rs
0
7
0.0%

vitup/src/mode/mock/rest/search.rs
26
93
27.96%

Totals

Change from base Build<PHONE_NUMBER>:
8.4%

Covered Lines:
485

Relevant Lines:
4534

💛  - Coveralls


Duplicate divider in MS Outlook 2016 Win10

Hi there, I got a problem with the <mj-divider>-Tag here.
I use the following to edit my code:
MJML App v2.9.0
MJML v^4.0.3

And my problem is the following:
If I add a divider into my code like this:
<mjml>
  <mj-body>
    <mj-section>
      <mj-column>
        <mj-divider></mj-divider>
      </mj-column>
    </mj-section>
  </mj-body>
</mjml>

The MJML-App compiles and renders my mjml as expected.

Even if I use the Mailjet-API-Integration of the MJML-APP, my divider in MSO still works as expected.
So let's have a short look at the code that returns, when I click on "Copy HTML".

This is the code only of the column and its children to keep an overview on the focus.
As we can see here, the if mso-part sets another border inside a table next to the border of the
-tag.
This is the result of the missgenerated code (as you would expect after reading the code above):

I tested this behaviour over multiple clients. Here is the List, where I encountered that problem:

MS Outlook 2007 (Win7)
MS Outlook 2010 (Win7)
MS Outlook 2013 120 DPI (Win7)
MS Outlook 2016 (Win 7)

Hi @max-zinn
Thanks for reporting this, we're aware of that, but it's not really consistent, most of the time word-based outlook aren't rendering the border on p tags and when it does, you'll see a double divider.
As you can see in this email on acid test https://www.emailonacid.com/app/acidtest/0kDO0CM60QMUX3DtEawe1xYfc1ohRM2IcwqMOaSEBrguU/list it only doubles on Outlook 2003 in this case

Hi @iRyusa
Thanks for your reply. Wouldn't it be possible then to surround the
-Element with an


Automated cherry pick of #3790: Update community image

Cherry pick of #3790 on release-v3.15.
#3790: Update community image

Deploy preview for calico ready!
Built with commit 3705f03d9dc1942f952f62939643d6f0a8f72e38
https://deploy-preview-3791--calico.netlify.app


How to setup the preview plugin like tiny.url

Technical details

YOURLS version: 1.7.1
PHP version: 7.0
Caddy 0.9.5 web server
On a Ubuntu 16.04 KVM VPS

Question
I'm successfully using the Preview-URL plugin. On its wiki page it is hinted (under more) that TinyURL-like preview (with a preview.domain.com subdomain) can also be accomplished by modifying your server virtual hosts settings.
I have added a subdomain called preview.
I was wondering what other steps are needed to make this work,

Subdomain example
This explains how to configure an Apache web server to use a subdomain, such as https://preview.example.com instead of https://example.com/V~ to display your preview pages.
Part one: The virtual host
To use a subdomain for previews, we first need to add it in to the YOURLS virtual host conf file in Apache using the ServerAlias directive. Your conf file should look something like the following; notice that we are making use of the subdomain "preview".
<VirtualHost *:80>

	ServerName example.com
	ServerAlias preview.example.com

	DocumentRoot /var/www/YOURLS/
	<Directory /var/www/YOURLS/>
		Options -Indexes +FollowSymLinks +MultiViews
		AllowOverride All
		Order allow,deny
		allow from all
	</Directory>

	# Possible values include: debug, info, notice, warn, error, crit,
	# alert, emerg.
	LogLevel info
	ErrorLog /var/log/apache2/error.log
	CustomLog /var/log/apache2/access.log combined

</VirtualHost>

You might find your Apache default virtual host config file at /etc/apache2/sites-available/000-default.conf.
Once you have made your adjustments make sure to save the file and restart Apache.
Part Two: YOURLS .htaccess file
The following rules need to be added in to the very top of the YOURLS .htaccess file. They make use of both mod_rewrite and mod_proxy, so both of these modules need to be enabled on your server.
RewriteEngine On

#  PREVIEW
RewriteCond %{HTTP_HOST} ^preview\.(example\.com)$ [NC]
RewriteRule ^/?([a-zA-Z0-9]+)$ https://%1/$1~ [P]

Any differences in your setup (eg. example.com) will necessitate an alteration of these rules in your particular system.
NOTE: If you are using SSL on your site, make certain to set SSLProxyEngine on in your virtual host, otherwise these proxies will fail. Else, you will have to adjust the above code accordingly.

\o/
Huge cheers to @joshp23

I assume you're only supporting Apache... That doesn't solve my problem, but it's a pointer. I have given up on this for now.


fix: support multiple positionals in polymorphic errors

Current behavior
invariant.as(MyError, 'Cannot %s the %s', 'fetch', 'user')
// "Cannot fetch,user the undefined"

Released: v1.4.3 🎉
This has been released in v1.4.3!

📄 Release notes
📦 npm package

Make sure to always update to the latest version (npm i outvariant@latest) to get the newest features and bug fixes.

Predictable release automation by @ossjs/release.


Code for Windows

I am working on Camera Trap Images. I have just started and trying to understand the codes. It would be great if I could get an idea or resources for windows.

From what I have read, it is difficult to train models on Windows. The reason for this is the need to employ a GPU to effectively train models. Therefore, if your goal is to train a model on your own dataset I would recommend using cloud computing ressources. If you are not familiar with how to use cloud computing ressources I suggest to follow this guidelines Link and/or ask someone with Linux/Unix experience.
However, if your goal is to apply trained models, Windows is perfectly fine. I recommend to:

Install the Anaconda distribution Link
Follow the guidelines to use trained models here: Link
Follow the instructions here to apply the model: Link

I am doing a project where I will detect Frog from images. I have collected 200 images but those are not labeled. Can you suggest me a good data labeling tool.

I can't recommend a specific tool. There are many available and it depends a lot on what you feel comfortable with and what the output of these tools is.
200 images does not sound like a lot if it is the total number of images (and not per species). If the goal is to detect the presence of a frog you may want to check out this pre-trained object detection model: https://github.com/microsoft/CameraTraps


React

I am getting issue that create-app is not recognized. Even I have all the dependencies.

npm install -g create-react-app
then u can verify whether it install or not by create-react-app --version
create your first react application by create-react-app hello-react (hello-react is the name of your app)
cd hello-react
npm start
then the folder is opt-out in your extension.


Check cargoExtraArgs for undefined before using

Fixes #6273

bors r+
Thanks!

I still hope we can figure out why this was needed (as per https://github.com/rust-analyzer/rust-analyzer/issues/6273#issuecomment-711114635).


ETH-only bonding

Add a bonding contract which doesn't rely on staking KEEP, but instead permits bonding with ETH only. To reduce sortition pool manipulation, EthBonding implements the initialization period and inability to increase the staked amount from TokenStaking.

Closing in favor of https://github.com/keep-network/keep-ecdsa/pull/483


[maps] showMarkerInfoWindow doesn't update fast enough

A stated. Add a marker to your markers list for your GoogleMap, then try to show that InfoWindow, it will give you a null ref as the marker is not actually in the controllers list yet, for whatever reason. It eventually does show up in there but I'm not sure what the delay is.

Hi @jamieownsu
are you experiencing the issue in debug or release mode (or both)?
Could you please provide your flutter doctor -v ,
your flutter run --verbose ( or  flutter run --release --verbose)
and a reproducible minimal code sample.
Thank you

Hi @jamieownsu
are you experiencing the issue in debug or release mode (or both)?
Could you please provide your flutter doctor -v ,
your flutter run --verbose ( or flutter run --release --verbose)
and a reproducible minimal code sample.
Thank you

Just in debug.
final Map<String, Marker> _markers = Map(); Marker marker = Marker(         markerId: MarkerId(stop.stopId.toString()),         position: stop.coordinates,         infoWindow: InfoWindow(             title: stop.stopName,             snippet: 'Stop # ${stop.stopNumber}',             onTap: () => _fetchSchedules(stop.stopId)),         onTap: () => _onMarkerTap(stop),         icon: iconToDisplay); _markers[stop.stopId] = marker; _mapController.showMarkerInfoWindow(_markers[_selectedStopId].markerId);
Dies on last line.
doc v.txt
run.txt

Hi @jamieownsu
thank you for the logs,
few more questions: usually the app in debug has inferior performances
compared to the app in release mode, could you please try it i release?
(flutter run build apk or flutter run --release no need for logs)
are you using the latest version of the plugin? (google_maps_flutter 0.5.24+1)
thanks again

@iapicca
Sounds like a plan, I will try that when I get home from work.
And yes I am using the latest version :)

No change after trying the release version

Same issue. Any solution found?? @jamieownsu

Same issue. Any solution found?? @jamieownsu

i have this error too.
any solution ??
[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(Invalid markerId, showInfoWindow called with invalid markerId, null)

@dwikyhardi The only workaround I've found so far is to wait for the marker to be shown on the map, then it seems to get added to the maps marker list; otherwise, it will return null.

Did you fix this? How did you decide an arbitrary delay to wait for the marker to appear on the map? I create the marker with the newMarkerID, setState(() {}) and add it to the _markers list, then how do you know when the GoogleMap has updated it's markers and can then use showInfoWindow() ?

Any news here? I encountered the same issue, quite annoying…

We are also experiencing inconsistently appearing issues here. We create markers for a specific type of locations around the users current location, which works well. And then there's also the option to use a text search with a typeahead to look for these locations. There is absolutely no problem moving the camera to the selected location, but showMarkerInfoWindow() often throws PlatformException (PlatformException(Invalid markerId, showInfoWindow called with invalid markerId, null)). And this happens despite having a markerId!
The interesting thing is, that it happens consistently for certain locations. It's like, no problem to showInfoWindow of Location A and Location B, but Location C will always throw me the PlatformException.
Here's what's basically happening:
`
// get CameraPosition for selected location
_cameraPosition = _getCameraPosition(
pharmacyLocation.lat,
pharmacyLocation.lng,
);
// push a new Marker() widget for the selected location into List _nearbyLocationsMarkers
_addNewMarker(location);
// animate camera (working well)
mapController
.animateCamera(CameraUpdate.newCameraPosition(cameraPosition))
.then(() {
try {
// take the markerId from the Marker() we just created to showMarkerInfoWindow()
// although checking for null and trying to catch the PlatformException,
// the code will break here for some locations
if (_nearbyLocationsMarkers.last.markerId != null) {
mapController.showMarkerInfoWindow(
_nearbyLocationsMarkers.last.markerId,
);
}
} on PlatformException catch (exception) {
print('PlatformException when showing marker info window: $exception');
}
`

Just bumping to let know am experiencing exact same issue, also with hideMarkerInfoWindow.

I have the same problem in both debug and release modes.

I put a delayed and its working,,,
    googleMapController         .animateCamera(CameraUpdate.newLatLngBounds(bounds, 45.0))         .then((_) async {       await Future.delayed(Duration(seconds: 1));       googleMapController.showMarkerInfoWindow(lastMarker.markerId);     });

@lmadams thank you for that, it worked! It's a pity it only displays one InfoWindow at a time. I wanted to display 2. It only displays the last one. In native Android it is possible to display more than one at a time. Oh, well. Better than nothing. Thanks and good job!

@lmadams it's a hack but it works :)

@lmadams Thanks its working!

That worked!

I think the issue is that the Marker creation function should be an async function. It is generated with a delay.
Marker(
        markerId: MarkerId(stop.stopId.toString()),
        position: stop.coordinates,
        infoWindow: InfoWindow(
            title: stop.stopName,
            snippet: 'Stop # ${stop.stopNumber}',
            onTap: () => _fetchSchedules(stop.stopId)),
        onTap: () => _onMarkerTap(stop),
        icon: iconToDisplay);

I think the issue is that the Marker creation function should be an async function. It is generated with a delay.
Marker(
        markerId: MarkerId(stop.stopId.toString()),
        position: stop.coordinates,
        infoWindow: InfoWindow(
            title: stop.stopName,
            snippet: 'Stop # ${stop.stopNumber}',
            onTap: () => _fetchSchedules(stop.stopId)),
        onTap: () => _onMarkerTap(stop),
        icon: iconToDisplay);

I put a delayed and its working,,,
googleMapController
        .animateCamera(CameraUpdate.newLatLngBounds(bounds, 45.0))
        .then((_) async {
      await Future.delayed(Duration(seconds: 1));
      googleMapController.showMarkerInfoWindow(lastMarker.markerId);
});

this not working if camera has to move from point a to point b  and they are long distance between them

I put a delayed and its working,,,
googleMapController
        .animateCamera(CameraUpdate.newLatLngBounds(bounds, 45.0))
        .then((_) async {
      await Future.delayed(Duration(seconds: 1));
      googleMapController.showMarkerInfoWindow(lastMarker.markerId);
});

this not working if camera has to move from point a to point b  and they are long distance between them

The issue is still reproducible with latest version of flutter with google_maps_flutter: ^2.0.6, But the infoWindow isn't shown  as soon as the marker loads on map and the exception is thrown.
Here are the details.

Reproducible Sample Code
import 'dart:async';
import 'dart:math';

import 'package:flutter/material.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';

class MapSample extends StatefulWidget {
@override
State<MapSample> createState() => MapSampleState();
}

class MapSampleState extends State<MapSample> {
Completer<GoogleMapController> _controller = Completer();
int _markerIdCounter = 1;
Map<MarkerId, Marker> markers = <MarkerId, Marker>{};
GoogleMapController? mapController;

static final CameraPosition initialPos = CameraPosition(
  target: LatLng(122, 37),
  zoom: 8.0,
);
static final LatLng center = const LatLng(41.4560383, 15.777665000000013);

static final CameraPosition _currentPosition =
    CameraPosition(target: center, zoom: 8.0);

void _add(LatLng lng) {
  final int markerCount = markers.length;

  if (markerCount == 12) {
    return;
  }

  final String markerIdVal = 'marker_id_$_markerIdCounter';
  _markerIdCounter++;
  final MarkerId markerId = MarkerId(markerIdVal);
  final Marker marker = Marker(
    markerId: markerId,
    position: LatLng(
      lng.latitude + sin(_markerIdCounter * pi / 6.0) / 20.0,
      lng.longitude + cos(_markerIdCounter * pi / 6.0) / 20.0,
    ),
    infoWindow: InfoWindow(title: markerIdVal, snippet: '*'),
  );

  setState(() {
    markers[markerId] = marker;
    mapController!.showMarkerInfoWindow(markerId);
  });
}

@override
Widget build(BuildContext context) {
  return Scaffold(
    body: GoogleMap(
      initialCameraPosition: initialPos,
      mapType: MapType.normal,
      onTap: _add,
      markers: Set<Marker>.of(markers.values),
      onMapCreated: (GoogleMapController controller) {
        _controller.complete(controller);
        setState(() {
          mapController = controller;
        });
        _goToCurrentPosition();
        _add(center);
      },
    ),
  );
}

Future<void> _goToCurrentPosition() async {
  final GoogleMapController controller = await _controller.future;
  controller.animateCamera(CameraUpdate.newCameraPosition(_currentPosition));
}
}

flutter doctor -v
[✓] Flutter (Channel stable, 2.2.2, on macOS 11.4 20F71 darwin-arm, locale en-IN)
    • Flutter version 2.2.2 at /Users/mahesh/Documents/flutter
    • Framework revision d79295af24 (7 days ago), 2021-06-11 08:56:01 -0700
    • Engine revision 91c9fc8fe0
    • Dart version 2.13.3

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.1

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

[✓] Android Studio (version 4.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 1.8.0_242-release-1644-b3-6915495)

[✓] IntelliJ IDEA Community Edition (version 2021.1.2)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 57.0.5
    • Dart plugin version 211.7233

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

[✓] Connected device (4 available)
    • Redmi K20 Pro (mobile)    • d9dac45d      • android-arm64  • Android 10 (API 29)
    • sdk gphone arm64 (mobile) • emulator-5554 • android-arm64  • Android 11 (API 30) (emulator)
    • macOS (desktop)           • macos         • darwin-arm64   • macOS 11.4 20F71 darwin-arm
    • Chrome (web)              • chrome        • web-javascript • Google Chrome 91.0.4472.114

• No issues found!

 Console Output
E/flutter (31433): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: PlatformException(Invalid markerId, showInfoWindow called with invalid markerId, null, null)
E/flutter (31433): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:597)
E/flutter (31433): #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:158)
E/flutter (31433): <asynchronous suspension>
E/flutter (31433):

Bumping up. I am experiencing the same problem.
[VERBOSE-2:ui_dart_state.cc(199)] Unhandled Exception: PlatformException(Invalid markerId, showInfoWindow called with invalid markerId, null, null)
#0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:597:7)
#1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:158:18)
<asynchronous suspension>

google_maps_flutter: ^2.0.6
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.4 20F71 darwin-x64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2021.1.3)
[✓] VS Code (version 1.58.0)
[✓] Connected device (2 available)

Bumping up. I am experiencing the same problem.

Was this working before? if yes, It would be helpful if you could point to the version you were upgrading from.
Thank you.

Bumping up. I am experiencing the same problem.

@tarasmurzenkovv, Was this working before? if yes, It would be helpful if you could point to the version you were upgrading from.
Thank you.

@maheshmnj I always used the same version and didn’t do any upgrade. This issue is reproducible when I change the collection of markers.

Bumping up. I am experiencing the same problem.

@tarasmurzenkovv, Was this working before? if yes, It would be helpful if you could point to the version you were upgrading from.
Thank you.

@maheshmnj I always used the same version and didn’t do any upgrade. This issue is reproducible when I change the collection of markers.

still got this issue, will flutter team consider to fix

Experiencing this error too!
Here's the code:
Set<Marker> _markers = {};

void _handleMapTap(LatLng tappedPoint) async {
    String address = await getAddressFromLatLng(tappedPoint);
    Marker _new_marker = Marker(
      markerId: MarkerId(tappedPoint.toString()),
      position: tappedPoint,
      infoWindow: InfoWindow(
        title: 'Tapped Location',
        snippet: address,
      ),
    );
    MarkerId _marker_id = _new_marker.markerId;

    setState(() {
      _markers = <Marker>{_new_marker};
    });

    if (_marker_id != null) {
      print("Found a _marker_id: $_marker_id");
      mapController.showMarkerInfoWindow(_marker_id);
    }
  }

// Other code...

@override
  Widget build(BuildContext context) {
    return Column(
      mainAxisAlignment: MainAxisAlignment.center,
      crossAxisAlignment: CrossAxisAlignment.stretch,
      children: [
        Expanded(
          key: Key("gmap-container"),
          child: GoogleMap(
            onMapCreated: _onMapCreated,
            initialCameraPosition: CameraPosition(
              target: _userLocation,
              zoom: 11.0,
            ),
            myLocationEnabled:
                _locationPermissionStatus == PermissionStatus.granted,
            onTap: _handleMapTap,
            markers: _markers,
          ),
        )
      ],
    );

Where I'm able to print the marker ID and the location but I still get the error:
E/flutter ( 2567): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(Invalid markerId, isInfoWindowShown called with invalid markerId, null, null)

as of now after a lot of experimenting this is working (for now).

putting it in a postFrameCallback: to schedule after the first frame is rendered.
I also have it in a Future.delayed trying to force it into the next event loop
it's possible both are overkill.  not sure.

here is an example.
void showFeaturedListingInfoWindow(int id) async {
// schedule after the first frame is rendered,
WidgetsBinding.instance.addPostFrameCallback(() async {
try {
// Schedule the callback for the next event loop cycle
Future.delayed(const Duration(milliseconds: 0), () async {
final markerId = MarkerId(id.toString());
await gmc?.showMarkerInfoWindow(markerId);
});
} catch (e) {
print(e);
}
});
}}


Update release and regen dist/js/tool.js

According to #26 is necessary regen tool.js to remove slash and generate new release with changes

Hi @cristiangil a new release has been made with the changes!
https://github.com/statikbe/laravel-nova-chained-translation-manager/releases/tag/v3.0.6


mergeThreadCount is both a variable and a method in the ConcurrentMergeScheduler

Description
  /** How many {@link MergeThread}s have kicked off (this is use to name them). */
  protected int mergeThreadCount;

  /**
   * Returns the number of merge threads that are alive, ignoring the calling thread if it is a
   * merge thread. Note that this number is ≤ {@link #mergeThreads} size.
   *
   * @lucene.internal
   */
  public synchronized int mergeThreadCount() {
    Thread currentThread = Thread.currentThread();
    int count = 0;
    for (MergeThread mergeThread : mergeThreads) {
      if (currentThread != mergeThread
          && mergeThread.isAlive()
          && mergeThread.merge.isAborted() == false) {
        count++;
      }
    }
    return count;
  }

The variable one of mergeThreadCount is used to for name reporting only. What about we use a better name for the variable , like mergeThreadNameIdentifier? Thanks!

Another option could be renaming the method to countMergeThreads. Feel free to raise a PR!

countMergeThreads() sounds better to me, since the method indeed counts something. I will open a PR. Thanks!

I took a second thought: public synchronized int mergeThreadCount()  is a public method. Renaming it may cause more user breakages than the   protected int mergeThreadCount;. Also, the latter one is a count that only increments (even a merge thread finishes, the latter one doesn't decrease). So I feel it's better to call the latter one mergeThreadIdentifier maybe?

I think I will create a PR to rename the method to countMergeThreads(). Thanks!


Reproduce the 100 max concurrent  streams issue

Hi @bshaffer ,
I re-organized the test and added more comments. Can you please help me to take a look again when you have time? Thanks!


highlight_entities function may cause elements to be omitted and element misalignment

dear ggkegg team，Thanks to ggkegg for providing a more flexible KEGG pathway visualization scheme,But I found some minor problems in the process of using it, which may be caused by my own misunderstanding.

highlight_entities function may cause elements omit，After looking at the contents of the xml, I found that some genes have a '...' at the end, highlight_entities function and highlight_set_nodes function do not remove this character.

hsn=c("K01568","D18Wsu181e")
g <- pathway("mmu00010",group_rect_nudge=0)
g <- g |> mutate(gene1=highlight_set_nodes(hsn,sep=" ",how="any",name="name"),
                 gene2=highlight_set_nodes(hsn,sep=", ",how="any",name="graphics_name"))
gg=ggraph(g, layout="manual", x=x, y=y)
gg+
  overlay_raw_map()+
  geom_node_rect(fill="red",aes(filter=gene1), color="black")+
  geom_node_text(aes(
    label=graphics_name %>% strsplit(",") %>% sapply("[", 1) %>% strsplit("\\.") %>% sapply("[", 1),
    filter=gene1),size=2)+
  geom_node_rect(fill="red",aes(filter=gene2), color="black")+
  geom_node_text(aes(
    label=graphics_name %>% strsplit(",") %>% sapply("[", 1) %>% strsplit("\\.") %>% sapply("[", 1),
    filter=gene2),size=2)+
  theme_void()

#ggkegg::highlight_entities(pathway = "mmu00010",set = hsn,how = "any",name ="graphics_name" ) ## not work

in this example,D18Wsu181egene will be oimted

element misalignment,I want to add the text more personalized，this is my solution:

highlight_entities_dt=data.frame(showtext=c("P52792","Q9DBF1","P15327","P52792","Q9DBF1"),
                                 lfc=c(-2,2,4,6,8),
                                 # symbol=c("1","2","2","Akr1a1","K00138")
                                 symbol=c("P52792","Q9DBF1","Bpgm","Gck","Aldh7a1")
                                 )

pid="mmu00010"
showText="showtext"
colorBy="lfc"

g <- pathway(pid,group_rect_nudge=0,directory = getBFCOption("CACHE"))
gg=ggraph(g, layout="manual", x=x, y=y)
gt=gg$data

tmp=gt%>%mutate(idx = row_number())
gt1=tmp%>%separate_rows(.,graphics_name, convert = TRUE,sep = ", ")%>%
  mutate(symbol=gsub(" ","",graphics_name)%>%gsub("\\.\\.\\.$","",.))
gt2=tmp%>%separate_rows(.,name, convert = TRUE,sep = " ")%>%
  mutate(symbol=gsub(" ","",name)%>%gsub("\\.\\.\\.$","",.))
gt1=left_join(gt1,highlight_entities_dt,by="symbol")%>%
  mutate(sn=get(showText)%>%lapply(.,function(x){
    if(x%in%highlight_entities_dt[[showText]]){
      return(x)
    }
    return(NA)
  })%>%unlist())%>%
  .[with(., order(idx,sn,symbol,decreasing = F)),]
gt2=left_join(gt2,highlight_entities_dt,by="symbol")%>%
  mutate(sn=get(showText)%>%lapply(.,function(x){
    if(x%in%highlight_entities_dt[[showText]]){
      return(x)
    }
    return(NA)
  })%>%unlist())%>%
  .[with(., order(idx,sn,symbol,decreasing = F)),]
gt12=rbind(gt1,gt2)%>%
  distinct(.,idx,.keep_all = T)
gt12$name=gt$name
gt12$graphics_name=gt$graphics_name
gt=gt12

g=pathway(pid,group_rect_nudge=0,directory = getBFCOption("CACHE")) %>%
  mutate(sn = gt[[showText]],!!colorBy:=gt[[colorBy]])
### method1,more tidy graph
ggraph(g, layout = "manual",x=x,y=y)+
  overlay_raw_map(high_res=F, transparent_color="#FFFFFF")+
  geom_node_rect(aes(filter=!is.na(sn),fill=.data[[colorBy]]), color="black")+
  scale_fill_gradientn(name=colorBy,colours = scales::alpha(c("#3288BD","#D53E4F"),alpha = .99),
                        space = "lab",
                        breaks=ceiling(seq(min(gt[[colorBy]],na.rm = T),max(gt[[colorBy]],na.rm = T),
                                           (max(gt[[colorBy]],na.rm = T)-min(gt[[colorBy]],na.rm = T))/4)),
                        guide = guide_colorbar(order = 3))+
  geom_node_text(aes(filter=!is.na(sn),label=sn), size=2)+
  theme_void()

### method2
ggraph(g, layout =gt,x=x,y=y)+
  overlay_raw_map(high_res=F, transparent_color="#FFFFFF")+
  geom_node_rect(aes(filter=!is.na(sn),fill=.data[[colorBy]]), color="black")+
  scale_fill_gradientn(name=colorBy,colours = scales::alpha(c("#3288BD","#D53E4F"),alpha = .99),
                        space = "lab",
                        breaks=ceiling(seq(min(gt[[colorBy]],na.rm = T),max(gt[[colorBy]],na.rm = T),
                                           (max(gt[[colorBy]],na.rm = T)-min(gt[[colorBy]],na.rm = T))/4)),
                        guide = guide_colorbar(order = 3))+
  geom_node_text(aes(filter=!is.na(sn),label=sn), size=2)+
  theme_void()

With the exception of the misalignment of the elements, the results were as expected
> sessionInfo()
R version 4.2.1 (2022-06-23)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.4 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/liblapack.so.3

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8    LC_PAPER=en_US.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
 [1] BiocFileCache_2.4.0 dbplyr_2.2.1        tidyr_1.3.0         ggkegg_1.3.1        XML_3.99-0.14       ggraph_2.1.0
 [7] ggplot2_3.4.2       igraph_2.0.3        dplyr_1.1.2         tidygraph_1.2.2

look forward to hearing from you,thanks

Thank you very much for raising this important point. For point 1, I have implemented the remove_dot option in highlight_entities and highlight_set_nodes now and it should handle the gene names with dots after them (devel and main branches). I will go through point 2 next but thanks again for using the package.

I'm sorry for the late reply, I found that the code does not have an element misalignment problem in the R.4.4.1 (ggplot2-3.5.1, windows10) environment, but in the R 4.2.1 (ggplot2-3.5.1, ubuntu) environment, the same code does have element misalignment; Maybe it's really the R version issue。
So suggest using a new version of R (>=4.3.0) and I'll close this discussion。


Add helper functions for metric tests in serving

/retest

/assign @evankanderson

/test pull-knative-pkg-unit-tests


 Original image size is 206 KB.
Shrunken image info:
No.    Name         Type      Cards   Dimensions   Format
  0  SCI         PrimaryHDU      26   (100, 100)   float32

Error message from Ginga (on terminal):
2017-06-05 14:10:59,384 | E | Task.py:925 (execute) |
  Task '<ginga.rv.Control.GingaShell object at 0x7f18dfe70dd8>.task630' raised exception:
  Failed to load file 'testnnn.fits': [Errno 24] Too many open files
...
2017-06-05 14:10:59,417 | E | Task.py:364 (execute) | Traceback:
  File ".../ginga/misc/Task.py", line 350, in execute
    res = self.func(*self.args, **self.kwdargs)
  File ".../ginga/rv/plugins/Mosaic.py", line 466, in mosaic_some
    image = image_loader(url)
  File ".../ginga/rv/Control.py", line 516, in load_image
    raise ControlError(errmsg)

Error message from Ginga (in Errors plugins):
Failed to load file 'testnnn.fits': [Errno 24] Too many open files
  File ".../ginga/rv/Control.py", line 503, in load_image
    image = self.fits_opener.load_file(filepath, **kwargs)

  File ".../ginga/util/io_fits.py", line 167, in load_file
    inherit_primary_header=inherit_primary_header)

  File ".../ginga/util/io_fits.py", line 258, in get_hdu
    if not isinstance(hdu.data, numpy.ndarray):

  File ".../astropy/utils/decorators.py", line 736, in __get__

  File ".../astropy/io/fits/hdu/image.py", line 243, in data

  File ".../astropy/io/fits/hdu/image.py", line 700, in _get_scaled_image_data

  File ".../astropy/io/fits/hdu/base.py", line 478, in _get_raw_data

  File ".../astropy/io/fits/file.py", line 264, in readarray

  File ".../numpy/core/memmap.py", line 264, in __new__

SOLUTION 1

Check "open files" in ulimit -a command line output.
If you have admin privilege, change it to a number higher than approx. 1500 (e.g., 4096). Otherwise, you need to contact ITSD.
Now run QUIP to create the mosaic. It will take up to a few minutes, but no errors or missing inputs this time.

SOLUTION 2

conda update astropy to get 1.3.3 (latest release as of Jun 6, 2017). Make sure you are in the correct conda environment for QUIP.
cd ~/.astropy/config
cp astropy.1.3.3.cfg astropy.cfg
Add the following in the astropy.cfg file under [io.fits] section (about half-way down). Then, save it.

use_memmap = False  # Maybe this does not matter?
lazy_load_hdus = False

Now run QUIP to create the mosaic. It will take up to a few minutes, but no errors or missing inputs this time.
It is recommended that you revert the changes in astropy.cfg for "normal" use afterwards.

Even with memmap=False, I still get the same error but different traceback:
Failed to load file 'testnnn.fits': [Errno 24] Too many open files: 'testnnn.fits'
  File ".../ginga/rv/Control.py", line 503, in load_image

  File ".../ginga/util/io_fits.py", line 163, in load_file

  File ".../ginga/util/io_fits.py", line 182, in open_file

  File ".../astropy/io/fits/hdu/hdulist.py", line 166, in fitsopen

  File ".../astropy/io/fits/hdu/hdulist.py", line 404, in fromfile

  File ".../astropy/io/fits/hdu/hdulist.py", line 1015, in _readfrom

  File ".../astropy/utils/decorators.py", line 507, in wrapper

  File ".../astropy/io/fits/file.py", line 144, in __init__

  File ".../astropy/io/fits/file.py", line 476, in _open_filename

  File ".../astropy/io/fits/util.py", line 407, in fileobj_open

Note: Will keep this open until I get a confirmation from Charles that it works for him.

Even works for over 1400 images after ulimit is updated appropriately.


New sphinx #118

Documentation now served. Surplus folders have been removed, but still couldnt ignore the html directory.
Lots of files and additions/deletions in this request, but the majority of them are from generated pages from running the docs. Also lots of commits, but has been a bit of an experiment  and can only check docs have worked when code pushed.
At the moment we have to run sphinx-build -b html docs/source docs/html to generate new docs (i.e. when #235 is merged) but would be nice to try and have this run automatically whenever code is pushed.
Note: Also includes code for #240.

Docs updated with new docstrings, and tidied up a couple of other ones.
Can you review geospatial_mods.ward_nrthng_eastng - contains a note that this will be deleted for version 1. Are we deleting now, or removing the note?

closes #194

Paige's comments have been actioned and docs rebuilt.
In regards to removing html folder from docs directory, this is where github pages takes the html from so would need to be careful about what, if anything, we remove. A seperate ticket has been created to investigate #253

I am happy that the changes requested have been made, except the one about cleaning up the html folder and a ticket has been created for that. https://github.com/ONSdigital/SDG_11.2.1/issues/253


Log messages not being displayed in XCode debug console

Hey @delba, are you still maintaining this library? I am having odd issue now where logs print inconsistently, I can't tell if this is an issue newly introduced in XCode 10, or if it happened due to me updating iOS. Have you seen anything similar in any of your projects?

hi @jakerockland  please checkout the pull request PR-28
And here is why cannot show to the console:
Tat's because of the level comparison failed in log function (level >= minLevel always false),
fix it by using raw values type "Int" for "Level"

Awesome, will test this soon @ming-chu, thank you so much!

Hi @jakerockland , the project has been updated to the latest Swift version, it should fix the issue.
See this commit https://github.com/delba/Log/commit/4823cdd86208042a52d53ab87e5c177aac652512


[WIP] [BEAM-8719 BEAM-8768 BEAM-8769 BEAM-8770 BEAM-8771] Update minor hadoop dependencies

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

 Could I ask you all to take a look at this PR?

@iemejia @timrobertson100 @aromanenko-dev Is this approach of testing the previous version of Hadoop acceptable?

I think this makes sense to add. Thanks @piotr-szuberski
In our case, the Hadoop version is so tightly coupled with the Spark, Hive etc versions (managed Cloudera cluster) that it's probably insufficient to test things in isolation - it's a solid addition regardless.

In our case, the Hadoop version is so tightly coupled with the Spark, Hive etc versions (managed Cloudera cluster) that it's probably insufficient to test things in isolation - it's a solid addition regardless.

Yeah, I guess. I added just the precommit test suites.
It would be worth to add some integration/performance tests - for HadoopFormatIOIT and HadoopFormatIOCassandraIT it should be doable with testcontainers. I don't know how about Hcatalog, Hive etc, I have no prior knowledge about it.

By the way, could we use the same approach to test KafkaIO against different versions? It's already done for 2.1.0 - does anything stop us from doing the same thing there?

@piotr-szuberski I think it's quite reasonable to test different gradle tasks to test with different Kafka client versions. As additional bonus, it would be great to run ITs against different versions of Kafka docker images as well.

@piotr-szuberski I think it's quite reasonable to test different gradle tasks to test with different Kafka client versions. As additional bonus, it would be great to run ITs against different versions of Kafka docker images as well.

Okay, I'll try to do it next week!

@timrobertson100 Should I change something in this PR? I think the IT tests could be done in a separate PR - WDYT?

Should I change something in this PR? I think the IT tests could be done in a separate PR - WDYT?

I agree. Other than squashing into a single commit I don't think you need to change anything here

Run Java PostCommit

Run SQL PostCommit

Run Java HadoopFormatIO Performance Test

Run Spark ValidatesRunner

Run Java PreCommit

@timrobertson100 Ok, it's squashed now.

Thanks @piotr-szuberski
Waiting for green, then it can be merged

@timrobertson100 green :)

Thanks @piotr-szuberski !

Thanks @piotr-szuberski !

No problem! I'll soon publish IT tests on Java postcommit and tests with Hadoop 3.2.1


Fixed a bug found by the picking tests

pickSceneObject() used the view matrix instead of the
model matrix, causing the wrong distance to be reported in
the tests.
GearVRf-DCO-1.0-Signed-off-by: Rahul Rudradevan
<EMAIL_ADDRESS>

@NolaDonato here are the corrected tests for picking:
https://github.com/gearvrf/GearVRf-Tests/pull/17

Could this also fix issue https://github.com/Samsung/GearVRf/issues/886?

I am not sure if the issue is caused by the picker, I can follow up to find the exact issue.

The change you made looks good and makes sense.


Error: EPERM: operation not permitted, stat 'e:\Config.Msi'

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report  <!-- Please search GitHub for a similar issue or PR before submitting -->
[ ] Feature request
[ ] Documentation issue or request
[ ] Other: <!-- Please describe: -->

Current behavior
Trying to fire up live server this evening to work on my current project. I'm getting the following error in the resulting web page:
   Error: EPERM: operation not permitted, stat 'e:\Config.Msi'

Everything worked fine this afternoon, and I've made no changes to the computer since then. I have tried closing all other applications, uninstalling and reinstalling Live Server, restarting VSCode, and restarting my computer.  There is no Config.Msi file or folder, hidden or unhidden, on the e: drive (where my project is located) or anywhere else on my other drives.
Expected behavior
Normally, starting the live server would pull up the page in my browser.
Environment
Browser:

- [X] Chrome (desktop) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] IE version XX
- [ ] Edge version XX

For Tooling issues:

- Live Server: 5.6.1
- Platform:  Windows
- Visual Studio Code:
Version: 1.41.1 (user setup)
Commit: 26076a4de974ead31f97692a0d32f90d735645c0
Date: 2019-12-18T14:58:56.166Z
Electron: 6.1.5
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Windows_NT x64 10.0.18363

Others

Can you try the same with elevated permissions?

Can you try the same with elevated permissions?


1.7.1 fabric variant, 1.20.4 and 1.20.6 released, issues with support versions

Both 1.7.1-1.20.4-fabric and 1.7.1-1.20.6-fabric are marked as supporting 1.20.4–1.20.6 on Modrinth.
This is a bit confusing. Some launcher developers with the ability to download mods have received feedback related to this.
I noticed that the 1.20.6 release requires Java ≥ 21, and if someone downloads the 1.20.6 release on a 1.20.4 instance and launches the game with Java 17, there will be errors with the Fabric Loader.
Could you please make some adjustments to the release on Modrinth? Regards.

I have made adjustents of 1.7.1-1.20.6-fabric.

1.7.1-1.20.4-fabric can be run with Java and MC 1.20.6.


Disable update check in the CI. Add User-Agent in http.Client{}

It will help counting the number of clusters started.

/retest


[Move Tutor] Highrift

The move tutor at highrift has no cost for learning moves currently and when attempting to add moves via move tutor it claims that "You can't pay the cost of learning this move!"

visit Highrift via /warp highrift
Go to the move tutor /tppos 211 87 1010
Have a pokemon that can learn dragon moves via move tutor
Attempt to add a move to the mon
See error

For it A: to have a cost and charge you the cost successful in exchange for the move
or B: for it to add without cost.
All
I believe move tutors are meant to have a cost and the lack of the cost is the issue.

Was able to confirm this, will forward to internal.


all: make docker cni configuration flexible

Overriding the 'ExecStart' to remove some environment variables will
break in CoreOS 1151.0.0 because Docker v1.12 will balk if given a
'daemon' argument to dockerd. We need to override the environment
variables set from an EnvironmentFile directive which requires another
EnvironmentFile directive. This way things will work with Docker v1.11
and Docker v1.12

Looks like a reasonable way to fix it if it works. Just double checked that it is explicitly documented that the order of files should be respected, so LGTM after spacing is happy and travis is happy

Fixed the spacing issue. Should be good.


Duplicate notification while receiving the call

I have used flutter_callkit_incoming for the call notification on the flutter side. It works perfectly on every device. But in some cases, it sends multiple notifications for the same call. And it happens eventually. Don't know the exact test case in which the repeated notification showing.
TestCase: Once I make a call to another user (receiver) is getting multiple notifications for the same call.
Thank you in advance

I am also facing this issue @hiennguyen92 Sir.

i have the same issue

Also facing the issue even in latest plugin

I think this issue may come from FCM (I checked their log). to ensure the notification is only shown once. I think you should check before calling showcallkit.something similar to:
onBackground(message){
if(message.messageId){
//show here
}
}
Same with onMessage


BLE disconnect doesn’t throw error when device ID doesn’t pertain to a connected peripheral

Describe the bug
When using the disconnect function with a device ID to which the android device isn’t connected, disconnect still resolves and no error is thrown.
To Reproduce
Call BLEClient.disconnect with a device ID to which android device isn’t connected. Disconnect will resolve as opposed to throwing an error.
Expected behavior
Disconnect should throw an error instead.
Screenshots
If applicable, add screenshots to help explain your problem.
Plugin version:

@capacitor-community/bluetooth-le: latest version

Desktop (please complete the following information):

OS:
Browser: Firefox, IE
Version

Smartphone (please complete the following information):

Device: Android
OS:
Browser: Firefox, IE
Version [e.g. 22]

Additional context
Add any other context about the problem here.

That's by design and it's the same behavior on all platforms. You can say that when you call disconnect, the desired state is to be disconnected, and if you're already disconnected, then it's all good. It's the same with the connect call. If you're already connected, and you call connect again, it doesn't throw an error. Is there a problem with that?


Allow candidate instance with rack conflicts when partial replace is enabled

The algorithm will do the rebalance
@xichen2020

Coverage increased (+0.02%) to 83.779% when pulling b3ce5bdb079b2612b14be5ddd147ba3a8bd7b692 on chao-partial into 08f9efb0f652ba4539fd3f7c29ce657ec0bd477c on master.


OCSP Client with ECDSA

Hi,
Very usefull code
The OCSPRequest object is alway null when the OCSP signature algorithm is ECDSA.
For instance here the github certificate is issued by Digicert TLS Hybrid ECC, the OCSP point is http://ocsp.digicert.com, and no way to get the response correctly. It's OK with wireshark so the ocsp server is OK and is sending a good response.
I will investigate it later, but if somebody know how to do ...
Bye.

Hi,
At line 168 in OCSPResponse.cs
changing
if (asn.MoveNext())
by
if (asn.MoveNextSibling()) is OK.
It solve the Exception problem, but not the signature verification.
Next step the byte[] signature as to be decoded in a different way than with RSA to get the two parameters r & s
such
    var asn2 = new Asn1Reader(asn.GetPayload().Skip(1).ToArray());
    asn2.MoveNextAndExpectTags(Asn1Type.INTEGER);
    var r=asn2.GetTagObject();
    asn2.MoveNextAndExpectTags(Asn1Type.INTEGER);
    var s = asn2.GetTagObject()

After that ... I don't now what to do with the two integer values. One step more to be done.

I've got the solution :
    SignatureAlgorithm = new AlgorithmIdentifier(Asn1Utils.Encode(asn.GetPayload(), 48)).AlgorithmId;
    //signature
    asn.MoveNextSibling();

    Byte[] signature;

    if (SignatureAlgorithm.FriendlyName.Contains("RSA"))
        signature = asn.GetPayload().Skip(1).ToArray();  // RSA
    else // ECDSA
    {
        var asn2 = new Asn1Reader(asn.GetPayload().Skip(1).ToArray());
        asn2.MoveNextAndExpectTags(Asn1Type.INTEGER);
        byte[] r = asn2.GetPayload().ToArray();
        asn2.MoveNextAndExpectTags(Asn1Type.INTEGER);
        byte[] s = asn2.GetPayload().Skip(1).ToArray();

        byte[] rs = new byte[r.Length + s.Length]; // r & s same size, the size of the curve
        // concat r & s
        Array.Copy(r, rs, r.Length);
        Array.Copy(s, 0, rs, r.Length, s.Length);
        signature = rs;
    }

Bye

I can confirm this bug. I solved it slightly differently than you did. There is no need to manually extract signature, because there is SignedContentBlob class which extracts all this information automatically. However, you were right on using MoveNextSibling in case of DSA-based signatures.

However, I'm not sure how to validate the response. Here is OCSP response from DigiCert OCSP against my ECC TLS cert:

Response doesn't contain OCSP signing certificate. Signature validation against TLS cert issuer's public key doesn't seem to succeed.


Accessor for the location of a diagnostic

The documentation says the "location" is the first primary label. It would be helpful for programmatic consumption of the diagnostics if there was a method that exposed that. For instance, it would make it easier to show just diagnostics for a specific "location" by filtering out other locations.

The issue with this is that you would need the Files because the Diagnostic itself only stores a byte offset into the file. This is why the locus calculation is currently done in codespan-reporting/src/term/views.rs ll. 101-134 which is more or less while rendering.
What I think could be a sensible approach to solving this problem is to make RichDiagnostic a pub struct. This would also go towards the goal of easily allowing for alternative renderers. There isnt really an issue for this, but some discussion can be found in #293 and #176. I'm not really sure if it would be a good idea to add that to the public API though.

Depending on how the location is reported it shouldn't need the Files. For instance, if it just reports the minimum (FileId, usize) of the maximum primary label, it would only need the byte offset. It would only need the Files if it wanted to convert the location to a line number / column offset, right?

I think so, but I don't see how that would be useful.
But it might make sense to implement such a function on the Diagnostic anyway because that would separate some of the code into more sensible pieces and probably also reduce some duplication between RichDiagnostic and ShortDiagnostic.


Add tracking for in/out degree

Fixes #15. The multidegree tracking isn't critical and I can rip it out pretty easily, but I wanted  to answer @chrisvittal's question on gitter :wink: (the answer turns out to be yes).

Ooops, looks like Travis is sad because of rust-lang/rust#50401. I'll submit a PR to fix that.

@bobtwinkles this seems good -- I was thinking last night that this could be done in differential-dataflow itself pretty nicely, instead of writing up custom rust code. If you're curious to learn how that stuff works, I can give you a few hints. The idea would be roughly to add some code like:
let region_in_degrees = subset
    .map(|(_r1, r2, p)| (r2, p)) // just preserve target region and point

this will create numerous duplicate tuples; the differential-dataflow preserves that and tracks their number. So then when you invoke inspect_batch, you will get a "multiplicity" that is equal to the in-degree. (If you look at the existing inspect_batch routines, you will see we always assert the multiplicity is 1; this is because we invoke distinct() to remove multiple instances.)
There's probably a way to find the count or the max as well, I'm not sure off the top of my head. Anyway, as this is just debug output, it doesn't matter that much, but if you want to take a stab at refactoring, might be fun for getting your feet wet.


Lemma 2.1.2 and wiggle order lemmas

This also removes all but one of the exact_mod_casts left over from the naturalisation of a, A, D, S.

Thanks!


Allow passing source_code_hash with existing_s3_package

Is your request related to a new offering from AWS?
N/A this is been available on the AWS side a while
Is your request related to a problem? Please describe.

We use a monorepo where pants packages our lambdas and uploads to S3. We use this module with the prebuilt package (in a artifacts S3 bucket shared across our accounts)
Terraform can auto update the Lambda function when the source code changes but the file name is the same but you need to set source_code_hash.
Describe the solution you'd like.

Allow either passing in source_code_hash or use a s3 data source to pull this from the existing object (note: there are many hash types and an S3 object appears to only allow 1 hash type at a time specified during upload)
Describe alternatives you've considered.

Renaming files each time. This is a bit more cumbersome since it requires updating the filename passed into the module each time when otherwise Terraform updates wouldn't be needed.
Additional context

This is primarily helpful in our dev environments where our CI will upload as some-path/dev.zip automatically and you want to redeploy to test changes.

Hi! The same question was recently asked on Reddit. Please check my answer here - https://www.reddit.com/r/Terraform/comments/1cpvqxd/comment/l3zd1zz/
tldr; You need to specify version_id of S3 object:
  s3_existing_package = {
    version_id = aws_s3_object.upload_lambda[each.key].version_id
    bucket = aws_s3_bucket.lambda_bucket.id
    key    = "${element(split(".", each.value), 0)}.zip"
  }

For future reference, this requires bucket versioning is enabled. If you want this to work with versions, you have to enable bucket versioning and also add a lifecycle policy to immediately delete old versions.
source_code_hash works without bucket versioning


How to add icon in each tab in  customTab example ?

CustomTabs.js

@yash2code
Im pretty sure you can to do it right here CustomTabs.js#51
Right when it maps the routes, use  component along with the  (which is a tab label) inside the map statement.
Hope this helps 👍

Hi! In an effort to get the hundreds of issues on this repo under control I'm closing issues tagged as questions. Please don't take this personally - it's simply something we need to do to get the issues to a manageable point. If you still have a question I encourage you to re-read the docs, ask on StackOverflow, or ask on the #react-navigation Reactiflux channel. Thank you!


[Feature] multi-pair trading to invest to multiple trending pairs

freqtrade https://github.com/gcarq/freqtrade is designed to trade against a pair whitelist or based on pair with most volumn on a give exchange. it would be nice having some similiar here for trade. i think most people running multiple instance to handle this right now.
just a simple "trade-multi" command which triggers indicator per pair and trade it. freqtrade also allows to give a capital of X currency which is invested in Y simulations assets. see configuration https://github.com/gcarq/freqtrade/blob/develop/docs/configuration.md, https://github.com/gcarq/freqtrade/blob/develop/docs/bot-usage.md#how-to-use---dynamic-whitelist
implementing this based on "commands/trade.js" is not looking a hard task i think

people running multiple instance to handle this right now

Guilty as charged.

just a simple "trade-multi" command which triggers indicator per pair and trade it

For clarification, you mean like a e.g. ./zenbot.sh trade-multi 5 cexio spinning up 5 instances trading the 5 highest volume pairs on cex?
One possible problem immediately coming to my mind is that all instances would need be running the exact same strategy(-config) which might not be desirable.
Furthermore this IMHO should honor changes in volume (e.g. some pairs are only really "heavily" traded for a couple of hours each day) so polling the highest volume pairs frequently (every x hours) and adjust the instances as need (replace low volume with high one)

spinning up 5 instances
I would be nice if on 1 instance can handle this. currently for example i am running 10-20 instances and often i am out of capital and sometimes nothing is invested because of this small coin range watching / triggering.

so if we let decide one instance the investments we have more control and can implement some more decision logic. also an "multi-multi" pairing would be possible then: FOO-BTC, FOO-ETH, FOO-YYY

./zenbot.sh trade-multi cexio --currency_capital=XXX --max_investments=5 --max_investments_per_pair=YYY

I am think about a configuration like this. which then can be example prefilled based on the volume. volume must be optional because like gdax no every account is allowed in trade in USD or EUR.
{
  {
     "pair": "ETH-EUR",
     "max_investments": "also an idea"
     "options": {
         "strategy": "macd",
         "period": "5m",
         "all_other_parameters_..": "xxx",
      }
  },
  {
     "pair": "LTC-EUR",
     "options": {
         "strategy": "macd",
         "period": "10m",
         "all_other_parameters_..": "xxx",
      }
  }
}

Hey guys, cross post, Bot18 is my new bot in development and is redesigned with multi-pair in mind. Will probably drop soon! Stay tuned!
https://github.com/DeviaVir/zenbot/issues/1589

~Carlos

Would be nice if Zenbot could switch entirely to a portfolio trading approach. After all, trading a single pair is the same as trading a portfolio of size 1. Just a suggestion.


Binding mouse buttons ?

Hello, I have a mouse with five buttons, and I would like to assign the 4th and 5th button.
Is it technically feasible ?

Yes, it's feasible and should probably be included in this mod as well.
Here is one mod that has it: https://github.com/dmitmel/crosscode-tweak-pack#bindable-mouse-buttons-qol


[Slide] The Slide send direction to children

[x] This is not a v0.x issue.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior 🤔

I'm not sure if this is a bug or an expected behavior, but Slide sends the prop direction to the children
Current Behavior 😯

Steps to Reproduce 🕹

Link: https://codesandbox.io/s/4zlov9w479

Go to the link
Open the console

Your Environment 🌎

Tech
Version

Material-UI
v3.6.2

React
v16.6.3

@oliviertassinari This isn’t a slider problem, it’s the Transition component Slide

@joshwooding Oh by bad, thank you for raising it.
@marcelocarmona It's an issue with our property forwarding logic. react-transition-group forwards all the properties to the child:
return React.cloneElement(child, childProps)

https://github.com/reactjs/react-transition-group/blob/977c9ce44a8b3bc2a04a25f6288b206a2a5812c3/src/Transition.js#L368
I think that it can be fixed like this:

  render() {
    const {
      children,
+     direction,
      onEnter,
      onEntering,
      onExit,
      onExited,
      style: styleProp,
      theme,
      ...other
    } = this.props;

    let style = {};

    // We use this state to handle the server-side rendering.
    // We don't know the width of the children ahead of time.
    // We need to render it.
    if (!this.props.in && !this.mounted) {
      style.visibility = 'hidden';
    }

It was never spotted before because this doesn't raise any warning:
import React from "react";
import ReactDOM from "react-dom";
import { Slide } from "@material-ui/core";

const Foo = (props) => {
  return <div {...props} />
}

function App() {
  return (
    <Slide direction="up" in>
      <Foo />
    </Slide>
  );
}

const rootElement = document.getElementById("root");
ReactDOM.render(<App />, rootElement);

Damn, this is a Murphy's law outcome!
Do you want to work on it? :)


Initial Idem Support

Initial support for Idem IAC provider of Infracost.
In order to test it, run Idem state command in the test mode
idem state test2.sls --test --output=json > ./output.json
And after that pass output.json to infracost cli:
infracost breakdown --path=./output.json
Closes #2459

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: vreutova:x: kpraveenkkpraveenk seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Add support for parsing submodules

Sorry for the radio silence on this end. I am out on vacation for the next week and a half. I will take a look at this PR when I am back online.

@pswaminathan I am so sorry for the delay in reviewing this. It fell off of my radar. Thank you for sending it.
I think that the submodule parsing should run through the same parsing code as the module parsing. Since we cannot rely on recursive functions, I am thinking that we implement it like so:

Extract the submodule tokens,
Return unprocessed submodule tokens as a declaration,
The top-level module function detects the unprocessed submodule declaration and runs it through the module processing

What do you think? I am working on an implementation. I will send it out for review when I have something that works.

@pswaminathan I added my first pass at submodule parsing in #169. If that looks reasonable to you, do you think we should close this PR?


Add Concrete-ML

Adding Concrete-ML, which is "Python-based open-source set of tools which aims to simplify the use of FHE for data scientists. Particular care was given to the simplicity in order to make it usable by any data scientist, even those without prior cryptography knowledge."
Good job guys listing all of these tools!

Thanks for your contribution. 🎉
Looks really easy to use!

It is! If you're willing to test it a bit and show us what rocky things you can build with it, this will be awesome!


Mafia: fix html, sort lynches and players

Travis tests have failed
Hey jumbowhales,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.
Node.js: 7.7

     npm test

><EMAIL_ADDRESS>test /home/travis/build/Zarel/Pokemon-Showdown
> eslint --cache . && tsc && mocha

/home/travis/build/Zarel/Pokemon-Showdown/chat-plugins/mafia.js
  532:17  error  Missing semicolon  semi

✖ 1 problem (1 error, 0 warnings)
  1 error, 0 warnings potentially fixable with the `--fix` option.

npm ERR! Test failed.


feat: stable types node and exit hooks

See Slack thread.
Fixes https://github.com/prisma/prisma/issues/17127.
This PR:

aligns the devDependency on @types/node for the public Prisma packages to v14.18.42.
fixes related type issues that emerged in ExitHooks.ts after stabilising the @types/node versions

Sigh, tests are failing due to unrelated snapshot changes


[macOS] fix 2 bad rules in configure-tccdb-macos.sh

Description
New tool, Bug fixing, or Improvement?
Please include a summary of the change and which issue is fixed. Also include relevant motivation and context.
For new tools, please provide total size and installation time.
Bug fixing
The TCC rule is broken for kTCCServiceScreenCapture /usr/local/opt/runner/provisioner/provisioner in macos image.
It should be 1 instead of 0.
0 is for bundle id. 1 is for executable path.
The consequence of these bad rules are child process of provisioner may lose the ability to take screenshot on macos runner.

Related issue:
Check list

[ ] Related issue / work item is attached
[ ] Tests are written (if applicable)
[ ] Documentation is updated (if applicable)
[x] Changes are tested and related VM images are successfully generated

Hello @liam-x, thanks for contributing.
External PRs for macOS are not accepted for now. We will check suggested changes internally.


Highlight current scope - full buffer width?

Is your feature request related to a problem? Please describe.
I like the idea of having the current scope highlighted. But I must admit that I get "annoyed" that only the texts background changes. So depending on the different lines length and empty lines etc this just looks ugly in my very personal opinion.
Describe the solution you'd like
The highlight applies to the full line for the whole length of the buffer like the cursorline does.
I'm afraid that is not simply possible from the current highlight API...
Describe alternatives you've considered
Well, just disable the current scope highlight...
Additional context
:shrug:

My original idea was to dim non-current-scope text a bit, at least this should be possible now.

Came here from  pwntester/octo.nvim#105
There is a workaround to apply a highlight to the whole window-width line (including EOL space). You can define a sign and apply a linehl group such as in:
sign define octo_comment text=❯ texthl=OctoNvimCommentLine linehl=OctoNvimCommentLine

not sure if this helps here though 🤷🏻

Do sign highlights sum up? Let's say I have a LSP diagnostic error in my current scope. This LSP sign has no linhehl but only a text. Would I then still have the background color of the lower prio sign from current scope? Sorry if that reads confusing. I should just try it out myself...

Im not sure, I guess the best way to figure it out is try adding two signs on the same line with different hl options

@theHamsta sorry for my incompetence is there a way if so how? Many thansk!


There is an issue with the markdown on this page

Describe the bug
Documentation rendering raw markdown.
Related command
See https://learn.microsoft.com/en-us/cli/azure/billing/enrollment-account?view=azure-cli-latest#az-billing-enrollment-account-list() in Chrome.
Errors
There appears to be a markdown issue on the page:
https://learn.microsoft.com/en-us/cli/azure/billing/enrollment-account?view=azure-cli-latest#az-billing-enrollment-account-list()
Issue script & Debug output
The page is rendering some raw Markdown code by the look of it. I see this.
:keyword callable cls: A custom type or function that will be passed the direct response :return: An iterator like instance of either EnrollmentAccountListResult or the result of cls(response) :rtype: ~azure.core.paging.ItemPaged[~azure.mgmt.billing.models.EnrollmentAccountListResult] :raises: ~azure.core.exceptions.HttpResponseError

Expected behavior
I'd expect to see the rendered markup, not the raw markdown.
Environment Summary
Chrome Version 116.0.5845.179 (Official Build) (64-bit) running on NixOs.
Additional context
No response

Thank you for opening this issue, we will look into it.

@mrblurgle, please report issue related to document in https://github.com/MicrosoftDocs/azure-docs-cli/issues

@mrblurgle, please report issue related to document in https://github.com/MicrosoftDocs/azure-docs-cli/issues

I have now reported this as https://github.com/MicrosoftDocs/azure-docs-cli/issues/3870. I will close this issue.


fix: zero missing in host

[GIN-debug] [ERROR] listen tcp: lookup 0.0.0: no such host
Summary
There is a missing 0 in the run command of gin
Issue
Closes #107

Hi @flohoss , thanks for your contribution.
Since we have just fix a CI error, could you please reabse your branch base on the master branch? ( I have tried to rebase, but I don't have access to your branch.)
You need to pay attention to the commit message type, the "feature" should be "feat" in our commitlint conventions, and also, your all commits should be signed.

Opened a new pull request with the required changes.
See #111


Non-API-specific endpoints for config, enums

https://github.com/agile-learning-institute/mentorHub-person-api/blob/0ede45653ad900309a9401596f46d3d5d49c8fa4/docs/openapi-spec.yaml#L134
https://github.com/agile-learning-institute/mentorHub-person-api/blob/0ede45653ad900309a9401596f46d3d5d49c8fa4/docs/openapi-spec.yaml#L123
Wouldn't this cause conflicts with other APIs? How would the UI services get the configuration data and enums for their corresponding API unless the endpoints were something like /api/person/config, /api/person/enums?

I believe this is a routing issue. If the ngnix container that serves up the UI is used as a proxy for the API, then the UI is calling it's own ngnix instance, which is responsible for routing requests to the correct API endpoint. Networking wise, that ngnix container can only connect to it's own API. These are security best practices for networking, they minimize the horizontal atack surface of a system. K8S and SDN make this possible. The existing ngnix configuration does not do this, but that is my preferred fix for this problem.


HidingNavigationBar Integration Issue

I have added the the library through CocoaPods and after that I have tried to  add the variable of HidingNavigationBarManager but I'm getting this issue

Use of undeclalead type 'HidingNavigationBarManager'

Should I import something else?
Thanks.

Have you included import HidingNavigationBar at the top of your class?

Yes I have imported it but it couldn't work until I removed it from the pod and install it again from the pod and it started to work. Anyway it is working. Thanks.


brew cu state ignored

I want upgrade pycharm， but the state [ignored].....

Same problem with other apps too. What is ignored state and why are some apps marked as ignored?

+1 Same issue here. I have to do a manual "brew cask reinstall" to update these casks marked as ignored.

This is what I use as a workaround (in fish shell):
for app in (brew cask outdated --greedy)
    brew cask install --force $app
end

another solution
brew cask outdated --greedy | xargs brew cask install --force

I think auto-updating apps are marked ignored by default, you can pass -a option (Include apps that auto-update in the upgrade) to force the upgrade.


Error downloading videos from a YouTube channel using cookie option in settings

[GUI] got error executing command line: yt-dlp.exe --no-warnings --flat-playlist -I :0 -J " --cookies-from-browser firefox https://www.youtube.com/@USER_NAME/videos" --proxy socks5://<IP_ADDRESS>:10808 --no-warnings --flat-playlist -I :0 -J " --cookies-from-browser firefox https://www.youtube.com/@USER_NAME/videos"
 ERROR: [generic] '--cookies-from-browser firefox https://www.youtube.com/@USER_NAME/videos' is not a valid URL.

I turned off  load cookies from browser  in settings and placed it into custom arguments for now.
APP version 2.14.1

Same issue. I always had it in custom arguments and it's not working anymore

@tank-sman  Thanks for reporting this, it's a bug that happens only for playlists and channel tabs. It will be fixed in the next version, which will hopefully come out in a few weeks.


Packaging succeeds despite Webpack compilation errors

[ x] I have read the contribution documentation for this project.
[x ] I agree to follow the code of conduct that this project follows, as appropriate.
[x ] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Please describe your issue:
If Webpack compilation has errors (e.g. due to typescript compilation), both electron-forge start and electron-forge package scripts succeed without any warnings.
In case of electron-forge package, no files are emitted as noEmitOnErrors plugin is set up.
The command should fail and display the errors.
For electron-forge start, files are emitted as they should be, but the webpack compilation errors should be displayed.
Here's a repo with the setup: https://github.com/tgds/electrong-forge-webpack-typescript

ok great so that would be perfect.. when we package and create installers using electronforge we also have the source webpacked.. Right now, when I look at the contents of my app under Resources->app i get the node modules and the src files exactly as they were in my IDE.. we dont want this.. we want it all webpacked..
if electron-forge wont / cant do this then we will have to look at this project instead:
https://github.com/lbassin/electron-angular-webpack
(it also does packaging and installers)

@malept what do you imagine would be the ideal UI to show Webpack errors and warnings in development?
Looking at plugin/webpack/src/WebpackPlugin.ts(283), where is tab.log intended to end up logging to?
const cb: webpack.ICompiler.Handler = (err, stats) => {
          if (tab) {
            tab.log(stats.toString({
              colors: true,
            }));
          }

          if (err) return onceReject(err);
          onceResolve();
        };

This is more of a question for @MarshallOfSound .

@tgds WebPack compiler output is sent to a web logger, when you run electron-forge start it should log a localhost:XXXX url where you can see all the webpack logs nicely.  We can't just send them to the terminal as we run multiple webpack compilers

@tgds a little off topic, but do you know about thing about 404 errors on that url?
I've based my project off the one linked to by OP, (just using awesome-typescript-loader instead of ts-loader), and when I go to that page I just get a bunch of 404 errors (which I assume cause script errors):

I've looked around online, but can't find anyone reporting the same problems :/
Back on topic:
When I run electron start when there are errors in my typescript file, despite the errors and lack of emitted files, electron-forge still thinks everything is fine and tries to run, resulting in an app launching error:

Personally, I'd like my electron commands to error out if there is a build error that prevents file complication.

The webpack plugin can start and fail, leaving you with this
Webpack Output Available: http://localhost:9000

Error launching app
Unable to find Electron app at /path/to/app

Cannot find module '/path/to/app'

and by the time you get there, the http server has already closed itself out, so you don't even know if you're say.. missing ts-loader. I couldn't get my app to start, because I didn't know enough about webpack to know I needed it. I had to use @tgds to find out.
NOTE: I'm only using webpack at all because electron-compile seems unmaintained.

Also, while attempting to package the application that worked in dev, I don't end up with .webpack in the final asar, and I have no idea why it failed to put it there.

thanks, @MarshallOfSound !!

@MarshallOfSound should we make a separate issue to cover the situation highlighted by @jrobeson?
In a nutshell: if something causes webpack-plugin to error out, we can't view the webpack logs as they're not written to file anywhere, and the log server is closed before it's accessible.

@G-Rath Can you open a new issue specifically for getting webpack logs when the app quits / crashes / fails to start.  Not sure what the solution would look like but would be good to track it

One more question, if I may, @MarshallOfSound. Maybe it warrants discussion in a new issue, but how do you imagine strategy around using native modules and Webpack plugin?
Just had to use one and couldn't find an obvious way, so I worked around it by setting it up as an external module in webpack config and copying the module in afterCopy hook to buildPath's node_modules dir.
Happy to try and tackle it in a PR

@tgds see https://github.com/electron-userland/electron-forge/issues/703

@tgds This was opened yesterday --> https://github.com/electron-userland/electron-forge/issues/703
I hacked a bit on it last night, it's a tough one to solve, I think I'm on a track to a generic enough hack though that might work 😆
It's tough to solve without externals (and I really want to avoid using externals as it defeats the purpose of bundling all JS)

@MarshallOfSound I've created #705 for this.
I think my original issue might be have been fixed - I'm at work, so I can't really test everything, but if ts-loader does error, I can access enough of the webpack logs, but it's quite possible I've forgotten something.
Either way, I still think it's a valid issue, and a good one to at least have tracked 😄


RCTBridge.h import syntax fix and embedded binaries instructions fix needed

For anyone having issues with RCT import errors on a freshly expo-ejected create-react-native-app running react-native 0.55, all #import "RCTBridge.h import statements should be changed to #import <React/RCTBridge.h> (use find and replace in xcode and change them all). This is the SO answer that pointed me in the right direction.
Additionally, I needed to add CoreBluetoothSwift.framework to my embedded binaries in xcode under my project's general tab. Hope this helps others run this library on react-native v0.55. SO answer that helped me out.)
Using xcode 9.3.1.

@drewandre where can I get CoreBluetoothSwift.framework ?

@dann1609 CoreBluetoothSwift.framework should come with the react-native-bluetooth-manager module. just click the + icon under project > "general" tab > embedded libraries and CoreBluetoothSwift.framework. let me know if that works for you.

@drewandre do you know if this module work with classic bluetooth? or just BLE?

@dann1609 only BLE because CoreBluetooth only supports BLE (i.e. does not support anything less than 4.0)

@drewandre - Thank you so much for your comment. This really helped !


Fix Triggers render

Is there any issue/bug this PR solves?
Would be nice to cross-link then or include a description what this PR really fixes.

No, this is something I broke during #499 and fixed before anyone would notice.

Alright, thanks!


Support for device disconnect detection

Hi , does this package support the device disconnect detection? I would like to use this package to monitor the UART port plugin and unplug status. Thanks for your support!

Hello,
Maybe it could be implemented easily, but i don't know when I will have time for it. I will try to find time in the next week or two. Meanwhile, I rely on serial connection's error callbacks to detect device disconnect. So I only needed a callback when some device had been connected again to try restore the connection. Maybe that could help you.
If you are in hurry, you can try to implement it. P.R are always welcomed. :)

Hello,
I have added device disconnect detection in v0.0.2 of the plugin.
DeviceManager().addListener(() {
  var event = DeviceManager().lastEvent;
  if (event != null) {
    if (event.eventType == EventType.add) {
      ....
    } else if (event.eventType == EventType.remove) {
      ....
    }
  }
});

For more complex example, please refer to the [example].(https://github.com/bojidartonchev/device_manager/tree/main/example)


Improve the color scheme

We can probably limit the color scheme that is  used in Flyt 2.0 as it is hard to read when the category color, for example, is dark blue or brown

@SayyareHamit Ready for test in poc QA/DEV

Works good in DEV-pc and QA-poc. @nesadrian 🐱💻


Error when opening getmdl.io in Chrome

Browser: Chrome
Browser version: 43.0.2357.132 m
Operating system: Windows 7
What steps will reproduce the problem:

Open www.getmdl.io in Chrome

When opening www.getmdl.io in Chrome, i get an "ERR_CONTENT_DECODING_FAILED" error.
I tested it in Firefox and everything works fine. I also tested it in Internet Explorer 9 (I know there are newer versions, but some of our clients are still using this version, so we have to test with it) and it tries to download the page.

I haven't been able to reproduce this issue I'm afraid. When you navigate to http://getmdl.io in Chrome is there any other information available? We've been doing backend refreshes to our gzipping strategy and there's a small chance this was related to the error you were seeing.

I believe this has something to do with the proxy of my company. I still get this error using chrome, but when i use the https://hide.me/de/proxy, i can open the page in chrome. I just don't get why firefox is working fine and chrome has problems with it.


Add control for f00x to filename generator

This would permit slicing across lead times.

Duplicate of #32


SOTF.exe

The exe file not showing in the files and was wondering if its just me or if it's something that just missing can I get help on this.

Is it possible that you have a virus scanner running that removed it?

Ok closing, as it was resolved at Discord.
Antivirus was the cause.