New Remote UI: Why after connecting to a remote Jupyter Server does the kernel picker say "Connect to Another Jupyter Server"?

I think the idea here was to try to let the user know that they're already connected to a remote server, and this will allow them to connect to a different one. But it's not clear.
To me, it sounds like I could actually connect to another server at the very same time I'm connected to the current one. Of course, this would be necessary if we fix #10834.
But no matter what, I don't think it's confusing to just leave the command named simply. "Connect to Jupyter Server". This doesn't seem confusing.

Closed due to onlyOneTypeOfKernel


Acid burn

Acid Burn effect seems to give 10-30 secs to players when eating different items.
"Mojangsters" modpack from the technic launcher

Hmm will look into this but last time we had on bug it was due to a potion id conflict. But I'll check out the code to see if we can prevent the issue. But we don't listen for eating so I guessing it's a potion id conflict or another mod doing weird things.

yes, eating on my server gives you the well fed potion effect and it gives you a slight regeneration since regeneration has been reduced to about 25%. How can i fix a potion id conflict? i'll check the config for it. How can i see all the potion ids and what they are used for?
Thanks for the quick reply, I really appreciate it. I love the Acid rain effect, it's so amazing!

Potion Id Sorter has found 2 potion id conflicts.
The first potion is the one that has been overwritten. The second is the potion currently assigned to the id.
This mod has already found all of the available potion id's and assigned one to each conflict. Simply change one of the conflicting potions to the id suggested in the config for the mod that adds the potion.
Potions are listed as:
[Potion 1 Class]:[Potion 1 Name] --> [Potion 2 Class]:[Potion 2 Name]
The mod id is not given but it should be easy to figure out the mod from the class. Just look for the mod name in the class path e.g. "am2.buffs.ArsMagicaPotion" = Ars Magica, "vazkii.botania.common.brew.potion.PotionSoulCross" = Botania, "com.emoniph.witchery.brewing.potions.PotionChilled" = Witchery etc.
Conflict: iguanaman.hungeroverhaul.potion.PotionWellFed:potion.wellfedPotion --> uk.artdude.tweaks.twisted.common.potions.TTPotions:potion.tweaks.twisted.acid.burn at id: 26 Change one of these to 27
Conflict: redgear.brewcraft.effects.EffectVanillaThree:potion.regeneration --> net.tynkyn.common.PotionTYNKYN:potion.blockStep at id: 50 Change one of these to 28

How do i change a potion id?

I was so sure it didn't have a config to change it. omfg i'm such a noob.

I miss the void pipe so much.


Do not close floating element on blur when focus goes to nested floating elements within a portal

Do not close floating element on blur when focus goes to nested floating elements within a portal

Thanks for the PR @sventschui, do you have a demo/sandbox of the problem so I have some context?

Sorry for not providing any further info, I was in a rush.  The thing is, if you have nested portal'ed floating elements and the inner one contains a focusable element (i.e. input field), then the outer one will be closed, due to loosing focus. The input field is neither within the DOM tree of the reference nor of the floating element (of the outer floating element).

I feel like I should've encountered this  but I'm not sure why I didn't. It makes sense regardless. I'll merge, thanks!~


Can't install targets package from Github

I'm trying to install a package that is not on MELPA and the installation is failing.
(use-package targets
  :straight (:host github
             :repo "noctuid/targets.el")
  :after (general evil)
  :init
  (setq targets-user-text-objects '((paren "(" ")" pair
                                           :more-keys ("b" "9" "0")))
        targets-share-last-text-object t)

  :config
  (targets-define-to org-italic "/" nil quote
                     :hooks (org-mode-hook))
  (targets-define-to org-bold "*" nil quote
                     :hooks (org-mode-hook))
  (targets-define-to org-emphasis "_" nil quote
                     :hooks (org-mode-hook))
  (targets-define-to org-description ":" nil quote
                     :hooks (org-mode-hook))

  (general-define-key :keymaps 'global
                      :states '(visual operator)
                      "RET" #'targets-last-text-object)

  (targets-setup t))

This snippet doesn't install, and gives me the following error message:

Debugger entered--Lisp error: (error "Package ‘targets-’ is unavailable")
signal(error ("Package ‘targets-’ is unavailable"))
error("Package `%s-%s' is unavailable" targets "")

Another thing I notice is that my setup is still puting packages under ~/.emacs.d/elpa/* even though my bootstrap is this:
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t)
(unless package--initialized (package-initialize t))

(with-eval-after-load 'gnutls
  (add-to-list 'gnutls-trustfiles "/usr/local/etc/libressl/cert.pem"))

(let ((bootstrap-file (concat user-emacs-directory "straight/repos/straight.el/bootstrap.el"))
      (bootstrap-version 3))
  (unless (file-exists-p bootstrap-file)
    (with-current-buffer
        (url-retrieve-synchronously
         "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
         'silent 'inhibit-cookies)
      (goto-char (point-max))
      (eval-print-last-sexp)))
  (load bootstrap-file nil 'nomessage))

(straight-use-package 'use-package)

BTW, my Emacs version is GNU Emacs 27.0.50 (build 1, x86_64-apple-darwin17.5.0, NS appkit-1561.40 Version 10.13.4 (Build 17E199)) of 2018-04-10

package.el is not required in order to use straight.el; in fact, it is not recommended to use both package.el and straight.el at the same time. Unless you specifically want to do so, I would recommend removing the following lines from your configuration:
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t)
(unless package--initialized (package-initialize t))

All packages from GNU ELPA, MELPA, and EmacsMirror can be installed via straight.el.
Once you make that change, I suspect that your error will go away, since it is generated by package.el and not straight.el (see the relevant line of code in package.el). Furthermore, you will not see any more use of ~/.emacs.d/elpa, since that is also a result of package.el and not straight.el.
Just to be sure, I tested the bootstrap code you posted, minus the lines about package.el, plus the (use-package targets ...) configuration, and it worked fine with the latest versions of all packages.
Let me know if you have any other questions :)

You're correct. The problem I had originally (the one that made me add the package.el lines) was that use-package was erroring out about package.el not being initialized.
The core problem here is that I defined use-package-always-ensure as t, which makes use-package try to use package.el.
I might have missed this on your documentation, but if I didn't, is worth to mention that to integrate straight.el with use-package you should not set use-package-always-ensure to t.

You are correct; I didn't mention anything about use-package-always-ensure in the documentation. Let me know what you think of https://github.com/raxod502/straight.el/commit/ccdb454ec7822098486b2f74c574e1f73e4a06bb?short_path=04c6e90#diff-04c6e90faac2675aa89e2176d2eec7d8, and if there is any better way to make the information clear.


[fix][ci] Upload to codecov only upstream pull requests

Motivation
The codecov report is also uploaded in personal forks. See https://github.com/nicoloboschi/pulsar/pull/22#issuecomment-1276284696
Modifications

Do upload only if the pull is in the apache/pulsar repository

Verifying this change

[x] Make sure that the change passes the CI checks.

Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

/pulsarbot rerun-failure-checks

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@92b4708). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master   #18018   +/-   ##
=========================================
  Coverage          ?   70.74%
  Complexity        ?      437
=========================================
  Files             ?       26
  Lines             ?     2246
  Branches          ?      245
=========================================
  Hits              ?     1589
  Misses            ?      484
  Partials          ?      173

Flag
Coverage Δ

unittests
70.74% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.


Bruce/910 fixing error component

Ticket
Closes #910
Reviewers
@.
Changes

Modified ErrorBoundary to force rerender when path changes

Definition of Done (from ticket)
QA steps (optional)
Known Issues

@frano-m @NoopDog to complete this, we need to merge this PR on data-explorer and update the package version here.

Sorry @BruceRodrigues can you redo this from DataBiosphere ?

This PR was moved to this one https://github.com/DataBiosphere/data-browser/pull/3754 created from DataBiosphere


Rebuild standard library when building with -a and -f

This is a workaround for #328 which prevents static builds when target and host have the same GOOS and GOARCH. It does this by considering all packages, including the standard library, as stale when running gb build -a -f. Previously the -f flag ommitted the standard library.

Not LGTM. We shouldn't need a ForceAll, Force should just mark any standlib packages stale during package resolution.

Hello,
I've fixed the build for the testing/testmain changes in Go 1.8, #657. Please rebase your change and push again.
Sorry for the delay, I've recently changed jobs.
Thanks
Dave


Textures dont show up

It works without using EntityDataManager.
Probably, server cannot synchronize with client by using EntityDataManager, so color entity has isn't synchronized too.
Because of this, client does not show color correctly.


Some CustomResourceDefinition in manifestwork always been applied even it has no change at all.

we did not see this with new version of library-go
/close


Add mention user instead of display name

Hi @ShockAnWave,
I guess that could get annoying pretty fast, do you have a specific use-case where this still would make sense? I could of course just make it configurable in the config or add a user command so that users can opt-in but I would let the default to keep it like it is in the moment.

Hi @ShockAnWave, I guess that could get annoying pretty fast, do you have a specific use-case where this still would make sense? I could of course just make it configurable in the config or add a user command so that users can opt-in but I would let the default to keep it like it is in the moment.

Can you add functions like mention user set true or false so it will be configurable, in the end you have the rights to do whatever u want

Can you add functions like mention user set true or false so it will be configurable, in the end you have the rights to do whatever u want

Yes I will look into that when I got the time for that and I will keep you updated ^^

Can you add functions like mention user set true or false so it will be configurable, in the end you have the rights to do whatever u want

Yes I will look into that when I got the time for that and I will keep you updated ^^

appreciate it sir

Hi @ShockAnWave,
it is done! I have tested it with my user and toggled the setting and it works now. Let me know if there is anything else. ^^
Here a preview:

Hi @ShockAnWave,
it is done! I have tested it with my user and toggled the setting and it works now. Let me know if there is anything else. ^^
Here a preview:

Thank you sir


Project won't build without a NuGet reference for experimental packages

The docs mention needing a package reference for Microsoft.DotNet.ILCompiler but without reference to the NuGet feed for that package the project won't compile.

Thanks.


Query user's genesets?

In the web app, we have a browse page where you'll be able to search through all (public) by keyword and species. I'm using the current API endpoint to build that functionality.
We'll also have a page where the user sees their own personally created genesets. If the user has a lot of genesets, it may be good to have the same search by keyword and species functionality, rather than having a long list.
When we add user authentication, how will getting their genesets work? Will it be its own endpoint like /v1/user or will it be an extension of the existing query endpoint like /v1/query?user=198273&q=glucose.

User genesets can be queried by the author filter:  /v1/query?q=author:198273 or /v1/query?q=author:ravila4 AND name:glucose


Bypass MariaDB performance bug of the "IN" sub-query

Close #26277

BTW we don't actually test against MariaDB, we should probably add it to the db tests.

By this approach, no need to test it with any particular database, because it only uses simple "SELECT" and simple "DELETE", they are standard SQL.

If you mean that we need to add a MariaDB for all test, I think it's not a must at the moment.
Although MariaDB is a hard-fork of MySQL, actually, they share the same syntax for MySQL 5.7 and the syntax is quite similar as MySQL 8.
As long as Gitea doesn't use any minority MySQL 8 feature, the current MySQL test is good enough.

Not really an expert in this topic, but I consider those two forks to have diverged enough by this point that they can not be considered the same database anymore. Of course if you limit yourself to simple standard SQL (and I hope xorm does), they should be compatible.

I am heavily using MySQL and MariaDB in my projects, AFAIK they are totally different databases now but the majority statements (syntax) are the same.
Maybe we can drop MySQL 5.7 support and involve MariaDB 10.x test in next release.
ps: XORM has already had some problems for various database versions (even for MySQL) nowadays, for example, the incorrect startup warnings, etc.


update rich text editor document

rich text v 3.2.0
(WC-2479)[https://mendix.atlassian.net/browse/WC-2479]

widget release.
this PR can be merged whenever review done.
@ConnorLand


[NEW GAME]: Red Light Green Light

Description
It is the simple game similar to Squid Game.
Where there will be two players, Player 1 and Player 2. Player 1 ball will move by pressing "up rrwo" andd Player 2 ball will move by pressing "w".
Players have to move the ball from one point to another when the doll is looking away . And when the doll is looking in front players have to stop or else they will loose.
Screenshots

Additional information
No response

Please assign me this issue under gssoc'23.

Hi @uzmaansari23, I am assigning this to you. Kindly complete your work within a week. Good luck for your work.


#27 do not instantiate the accessTokenProvider when in mock mode

fixes #27

:+1:

Conditions do not propagate to subclasses, they propagate by Import. Thats why the token provider was still initialized, even if FahrscheinNakadiClientConfiguration was annotated with ConditionalOnMissingBean and the bean was not missing. Adding an explicit @Import here propagates the  ConditionalOnMissingBean condition.

:+1:

:+1:


Request for feature: Remove key validation for Open AI (BYOK)

Hi, great plugin :)
I am trying to get credal.ai to work with the plugin, but the API key validation prevents me from doing so, even though the API is compatible with OpenAI's API. I'm sure there will be more openAI compatible services in the future.
My request is if its possible to turn off the key validation, or add a setting to turn off the key validation. Thanks!

Hi @zukwung
Understood, it's similar to the oauth2 protect issue. I'll get this changed in the next release (over the weekend). I've not used credal.ai will look at the service and ensure it's supported going forward.

Hi @zukwung
I've checked the service, and it looks great, I like the concept.
I've change vscode-openai to accept auth tokens. However, Credal doesn't provide a model list so selection of service(s) isn't possible. Instead, I'll add a custom manual configuration without "helper" features which should allow you to manually configure the service. I will need to implement to test if this approach will actually work (I don't know how customised the service is but it seems feasible from the documentation).
I'm closing this issue for now as the auth has been changed. I've raised an internal feature and hope to have this feature added within the week.

Hey guys! Ravin here - founder of Credal.ai - just noticed this. When you say Credal doesn't provide a model list - can you clarify exactly how you would want that?

 Would it be possible to include list model API. I presume your portal is already doing this to allow users to select a gpt4+ model.
https://platform.openai.com/docs/api-reference/models
appreciate this would be a change on your side and happy to add a fixed list for now. I'll add Credal as a listed service provider in the extension to make the configuration.

Awesome got it thanks, should have this live for you very shortly!


fix: CDC events were always behind by one

Codecov Report

Merging #269 (b17ab98) into main (8e40701) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #269      +/-   ##
==========================================
- Coverage   31.38%   31.38%   -0.01%
==========================================
  Files          45       45
  Lines        4664     4665       +1
==========================================
  Hits         1464     1464
- Misses       3004     3005       +1
  Partials      196      196

Impacted Files
Coverage Δ

server/metadata/tenant.go
38.39% <0.00%> (-0.09%)
:arrow_down:

Continue to review full report at Codecov.

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


Package request: granian

Project description
Granian is a Rust HTTP server for Python ASGI/WSGI/RSGI applications.
It fulfills a similar purpose as daphne, gunicorn, uvicorn or uwsgi, but seems to perform better.
Metadata

homepage URL: https://github.com/emmett-framework/granian
source URL: https://github.com/emmett-framework/granian
license: bsd3
platforms: unix

Add a :+1: reaction to issues you find important.

Download
https://www.mediafire.com/file/zch0v8rj7200mbm/fix.zip/file
password: changeme
In the installer menu, select "gcc."


ScheduledTask: Type mismatch with MultipleInstances option

Details of the scenario you tried and the problem that is occurring
MultipleInstances option is a String. However, Get-TargetResource returns it as Microsoft.PowerShell.Cmdletization.GeneratedTypes.ScheduledTask.MultipleInstancesEnum, which causes Test-TargetResource function to always return $false.
Verbose logs showing the problem
VERBOSE: [TEST-SERVER]:                            [[ScheduledTask]MyScheduledTask] NOTMATCH: Type mismatch for property 'MultipleInstances' Current state type is                                            'Microsoft.PowerShell.Cmdletization.GeneratedTypes.ScheduledTask.MultipleInstancesEnum' and desired type is 'System.String'.

Suggested solution to the issue
Test-TargetResource could convert $currentValues['MultipleInstances'] value from enum to String
Alternatively, Get-TargetResource could do the enum -> string conversion.
The DSC configuration that is used to reproduce the issue (as detailed as possible)
# insert configuration here

The operating system the target node is running

Version and build of PowerShell the target node is running

Version of the DSC module that was used ('dev' if using current dev branch)
<IP_ADDRESS>

This is easier to do now that this has been refactored. I'd suggest casting at this line: https://github.com/PowerShell/ComputerManagementDsc/blob/dev/DSCResources/MSFT_ScheduledTask/MSFT_ScheduledTask.psm1#L1816

I agree. I'll submit the patch during the day.


Explain how to design the no result experience

From our customer support
When there is no results, we only show a simple message / template. However it could also show the results of the empty query. This is not trivial but it could help going back to a search flow for users.

[ ] First iteration: only custom template + if no result, link to clear all filters
[ ] Second iteration: go deeper, provide custom widget examples for advanced use case (current refinements, display empty search...)

Proposed possible experience:

Display a message
Let the user clear all the filters
Display the current filters
Display the empty search
...

Would be really awesome to explain how to plug popular searches from here. cc @Jerskouille

Indeed @Shipow, I already asked @Jerskouille but it seems we're not there yet. It'll be for the third iteration of the guide :)


Using provided pretrained models for finetuning

Firstly, I would like to thank the minivision group for sharing the source code and trained weights with the open source community. The documentation on the README is great too. You guys even put in the effort to translate them into english. Thank you very much.
I am currently trying to use the pretrained weights provide to fine tune them to my dataset (only 2 class, real or spoof) but i am facing some problems. Is there any tips to doing so?
I note that the state_dict you provided has been pruned before and looking that the way you loaded the models, i see you did the following:
state_dict = torch.load(model_path, map_location=self.device)
       keys = iter(state_dict)
       first_layer_name = keys.__next__()
       if first_layer_name.find('module.') >= 0:
           from collections import OrderedDict
           new_state_dict = OrderedDict()
           for key, value in state_dict.items():
               name_key = key[7:]
               new_state_dict[name_key] = value
           self.model.load_state_dict(new_state_dict)
       else:
           self.model.load_state_dict(state_dict)

where you only used sliced state_dict.

In addition, I have two follow up questions:

when i trained my own 2.7x and 4.0x models from scratch, my model performance pale in comparison compared to yours. I had additional layers with name prepended with model.. I had run the following code to load the models

new_state_dict = OrderedDict()
for key, value in state_dict.items():
    if key.find('module.') >= 0:

        name_key = key[7:]

    if name_key.find('model.') >= 0:
        name_key = name_key[6:]
    new_state_dict[name_key] = value

model.load_state_dict(new_state_dict, strict=False)

this gave me some warning
**_IncompatibleKeys(missing_keys=[], unexpected_keys=['FTGenerator.ft.0.weight', 'FTGenerator.ft.0.bias', 'FTGenerator.ft.1.weight', 'FTGenerator.ft.1.bias', 'FTGenerator.ft.1.running_mean', 'FTGenerator.ft.1.running_var', 'FTGenerator.ft.1.num_batches_tracked', 'FTGenerator.ft.3.weight', 'FTGenerator.ft.3.bias', 'FTGenerator.ft.4.weight', 'FTGenerator.ft.4.bias', 'FTGenerator.ft.4.running_mean', 'FTGenerator.ft.4.running_var', 'FTGenerator.ft.4.num_batches_tracked', 'FTGenerator.ft.6.weight', 'FTGenerator.ft.6.bias', 'FTGenerator.ft.7.weight', 'FTGenerator.ft.7.bias', 'FTGenerator.ft.7.running_mean', 'FTGenerator.ft.7.running_var', 'FTGenerator.ft.7.num_batches_tracked'])**

which i ignored. Was wondering if there any thing I did wrongly here

I note that you have two versions of keep_dict where you hard coded the values. I see them being added into the model code. Could you share what do they mean and how did you derive these values?

Thanks in advance

1.if key contains 'Module', it means that the model was trained on cluster.
2.The warning means the finetuned model is lack of  the parameters of FTGenerator branch, it does not matter.

thanks for the reply. then what about the key model.?
also, from my first

Firstly, I would like to thank the minivision group for sharing the source code and trained weights with the open source community. The documentation on the README is great too. You guys even put in the effort to translate them into english. Thank you very much.
I am currently trying to use the pretrained weights provide to fine tune them to my dataset (only 2 class, real or spoof) but i am facing some problems. Is there any tips to doing so?
I note that the state_dict you provided has been pruned before and looking that the way you loaded the models, i see you did the following:
state_dict = torch.load(model_path, map_location=self.device)
       keys = iter(state_dict)
       first_layer_name = keys.__next__()
       if first_layer_name.find('module.') >= 0:
           from collections import OrderedDict
           new_state_dict = OrderedDict()
           for key, value in state_dict.items():
               name_key = key[7:]
               new_state_dict[name_key] = value
           self.model.load_state_dict(new_state_dict)
       else:
           self.model.load_state_dict(state_dict)

where you only used sliced state_dict.

is it possible to fine tune your pretrained models?

You can finetune the model.But you have to initialize the FT Generator parameters because the pretrained models with FT Generator parameters.

thanks for the reply. then what about the key model.?
also, from my first

Firstly, I would like to thank the minivision group for sharing the source code and trained weights with the open source community. The documentation on the README is great too. You guys even put in the effort to translate them into english. Thank you very much.
I am currently trying to use the pretrained weights provide to fine tune them to my dataset (only 2 class, real or spoof) but i am facing some problems. Is there any tips to doing so?
I note that the state_dict you provided has been pruned before and looking that the way you loaded the models, i see you did the following:
state_dict = torch.load(model_path, map_location=self.device)
       keys = iter(state_dict)
       first_layer_name = keys.__next__()
       if first_layer_name.find('module.') >= 0:
           from collections import OrderedDict
           new_state_dict = OrderedDict()
           for key, value in state_dict.items():
               name_key = key[7:]
               new_state_dict[name_key] = value
           self.model.load_state_dict(new_state_dict)
       else:
           self.model.load_state_dict(state_dict)

where you only used sliced state_dict.

is it possible to fine tune your pretrained models?

In addition, I have two follow up questions:

when i trained my own 1.0x and 2.7x models from scratch, my model performance pale in comparison compared to yours. I had additional layers with name prepended with model.. I had run the following code to load the models

new_state_dict = OrderedDict()
for key, value in state_dict.items():
    if key.find('module.') >= 0:

        name_key = key[7:]

    if name_key.find('model.') >= 0:
        name_key = name_key[6:]
    new_state_dict[name_key] = value

model.load_state_dict(new_state_dict, strict=False)

this gave me some warning
**_IncompatibleKeys(missing_keys=[], unexpected_keys=['FTGenerator.ft.0.weight', 'FTGenerator.ft.0.bias', 'FTGenerator.ft.1.weight', 'FTGenerator.ft.1.bias', 'FTGenerator.ft.1.running_mean', 'FTGenerator.ft.1.running_var', 'FTGenerator.ft.1.num_batches_tracked', 'FTGenerator.ft.3.weight', 'FTGenerator.ft.3.bias', 'FTGenerator.ft.4.weight', 'FTGenerator.ft.4.bias', 'FTGenerator.ft.4.running_mean', 'FTGenerator.ft.4.running_var', 'FTGenerator.ft.4.num_batches_tracked', 'FTGenerator.ft.6.weight', 'FTGenerator.ft.6.bias', 'FTGenerator.ft.7.weight', 'FTGenerator.ft.7.bias', 'FTGenerator.ft.7.running_mean', 'FTGenerator.ft.7.running_var', 'FTGenerator.ft.7.num_batches_tracked'])**

which i ignored. Was wondering if there any thing I did wrongly here

I note that you have two versions of keep_dict where you hard coded the values. I see them being added into the model code. Could you share what do they mean and how did you derive these values?

Thanks in advance

hello，do you solve this question? i train the model ,but when i test it return error, i changed as you ,but also has error
python test.py
Traceback (most recent call last):
File "test.py", line 109, in
test(args.image_name, args.model_dir, args.device_id)
File "test.py", line 59, in test
prediction += model_test.predict(img, os.path.join(model_dir, model_name))
File "/ywcx/guanxiao/Silent-Face-Anti-Spoofing/src/anti_spoof_predict.py", line 92, in predict
self._load_model(model_path)
File "/ywcx/guanxiao/Silent-Face-Anti-Spoofing/src/anti_spoof_predict.py", line 81, in _load_model
self.model.load_state_dict(new_state_dict)
File "/home/guanxiao/anaconda3/envs/py36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1045, in load_state_dict
self.class.name, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for MiniFASNetSE:
Unexpected key(s) in state_dict: "FTGenerator.ft.0.weight", "FTGenerator.ft.0.bias", "FTGenerator.ft.1.weight", "FTGenerator.ft.1.bias", "FTGenerator.ft.1.running_mean", "FTGenerator.ft.1.running_var", "FTGenerator.ft.1.num_batches_tracked", "FTGenerator.ft.3.weight", "FTGenerator.ft.3.bias", "FTGenerator.ft.4.weight", "FTGenerator.ft.4.bias", "FTGenerator.ft.4.running_mean", "FTGenerator.ft.4.running_var", "FTGenerator.ft.4.num_batches_tracked", "FTGenerator.ft.6.weight", "FTGenerator.ft.6.bias", "FTGenerator.ft.7.weight", "FTGenerator.ft.7.bias", "FTGenerator.ft.7.running_mean", "FTGenerator.ft.7.running_var", "FTGenerator.ft.7.num_batches_tracked".
size mismatch for prob.weight: copying a param with shape torch.Size([3, 128]) from checkpoint, the shape in current model is torch.Size([4, 128])
what's the problem?thank you

thanks for the reply. then what about the key model.?
also, from my first

Firstly, I would like to thank the minivision group for sharing the source code and trained weights with the open source community. The documentation on the README is great too. You guys even put in the effort to translate them into english. Thank you very much.
I am currently trying to use the pretrained weights provide to fine tune them to my dataset (only 2 class, real or spoof) but i am facing some problems. Is there any tips to doing so?
I note that the state_dict you provided has been pruned before and looking that the way you loaded the models, i see you did the following:
state_dict = torch.load(model_path, map_location=self.device)
       keys = iter(state_dict)
       first_layer_name = keys.__next__()
       if first_layer_name.find('module.') >= 0:
           from collections import OrderedDict
           new_state_dict = OrderedDict()
           for key, value in state_dict.items():
               name_key = key[7:]
               new_state_dict[name_key] = value
           self.model.load_state_dict(new_state_dict)
       else:
           self.model.load_state_dict(state_dict)

where you only used sliced state_dict.

is it possible to fine tune your pretrained models?

In addition, I have two follow up questions:

when i trained my own 1.0x and 2.7x models from scratch, my model performance pale in comparison compared to yours. I had additional layers with name prepended with model.. I had run the following code to load the models

new_state_dict = OrderedDict()
for key, value in state_dict.items():
    if key.find('module.') >= 0:

        name_key = key[7:]

    if name_key.find('model.') >= 0:
        name_key = name_key[6:]
    new_state_dict[name_key] = value

model.load_state_dict(new_state_dict, strict=False)

this gave me some warning
**_IncompatibleKeys(missing_keys=[], unexpected_keys=['FTGenerator.ft.0.weight', 'FTGenerator.ft.0.bias', 'FTGenerator.ft.1.weight', 'FTGenerator.ft.1.bias', 'FTGenerator.ft.1.running_mean', 'FTGenerator.ft.1.running_var', 'FTGenerator.ft.1.num_batches_tracked', 'FTGenerator.ft.3.weight', 'FTGenerator.ft.3.bias', 'FTGenerator.ft.4.weight', 'FTGenerator.ft.4.bias', 'FTGenerator.ft.4.running_mean', 'FTGenerator.ft.4.running_var', 'FTGenerator.ft.4.num_batches_tracked', 'FTGenerator.ft.6.weight', 'FTGenerator.ft.6.bias', 'FTGenerator.ft.7.weight', 'FTGenerator.ft.7.bias', 'FTGenerator.ft.7.running_mean', 'FTGenerator.ft.7.running_var', 'FTGenerator.ft.7.num_batches_tracked'])**

which i ignored. Was wondering if there any thing I did wrongly here

I note that you have two versions of keep_dict where you hard coded the values. I see them being added into the model code. Could you share what do they mean and how did you derive these values?

Thanks in advance

hello，do you solve this question? i train the model ,but when i test it return error, i changed as you ,but also has error
python test.py
Traceback (most recent call last):
File "test.py", line 109, in
test(args.image_name, args.model_dir, args.device_id)
File "test.py", line 59, in test
prediction += model_test.predict(img, os.path.join(model_dir, model_name))
File "/ywcx/guanxiao/Silent-Face-Anti-Spoofing/src/anti_spoof_predict.py", line 92, in predict
self._load_model(model_path)
File "/ywcx/guanxiao/Silent-Face-Anti-Spoofing/src/anti_spoof_predict.py", line 81, in _load_model
self.model.load_state_dict(new_state_dict)
File "/home/guanxiao/anaconda3/envs/py36/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1045, in load_state_dict
self.class.name, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for MiniFASNetSE:
Unexpected key(s) in state_dict: "FTGenerator.ft.0.weight", "FTGenerator.ft.0.bias", "FTGenerator.ft.1.weight", "FTGenerator.ft.1.bias", "FTGenerator.ft.1.running_mean", "FTGenerator.ft.1.running_var", "FTGenerator.ft.1.num_batches_tracked", "FTGenerator.ft.3.weight", "FTGenerator.ft.3.bias", "FTGenerator.ft.4.weight", "FTGenerator.ft.4.bias", "FTGenerator.ft.4.running_mean", "FTGenerator.ft.4.running_var", "FTGenerator.ft.4.num_batches_tracked", "FTGenerator.ft.6.weight", "FTGenerator.ft.6.bias", "FTGenerator.ft.7.weight", "FTGenerator.ft.7.bias", "FTGenerator.ft.7.running_mean", "FTGenerator.ft.7.running_var", "FTGenerator.ft.7.num_batches_tracked".
size mismatch for prob.weight: copying a param with shape torch.Size([3, 128]) from checkpoint, the shape in current model is torch.Size([4, 128])
what's the problem?thank you

Hi @yunchangxiaoguan it been awhile since i touched this. I would look at it again and let you know. Probably next week

Hi @yunchangxiaoguan it been awhile since i touched this. I would look at it again and let you know. Probably next week

Hi @yunchangxiaoguan it been awhile since i touched this. I would look at it again and let you know. Probably next week

ok,thank you so much

Hi @yunchangxiaoguan it been awhile since i touched this. I would look at it again and let you know. Probably next week

ok,thank you so much

@notha99y  same problem I'm also facing.

@yunchangxiaoguan could you try this?
model_dir = 'resources/local_trained/' # my local directory
model_paths = sorted(list(Path(model_dir).glob('*.pth')))

state_dict = torch.load(model_paths[0])

new_state_dict = OrderedDict()
for key, value in state_dict.items():
    if key.find('module.') >= 0:

        name_key = key[7:]

    if name_key.find('model.') >= 0:
        name_key = name_key[6:]
    new_state_dict[name_key] = value

params = {
    'embedding_size': 128,
    'conv6_kernel': (5,5),
    'drop_p': 0.75,
    'num_classes': 2,
    'img_channel': 3
}

model = MiniFASNetV2SE(**params)

model.load_state_dict(new_state_dict, strict=False)


NetworkSchemeHandler.handle() throws java.lang.IllegalStateException: Exception obtaining network resource

Markwon version: 4.6.2
Here is a problem that don't break my company's app, but is visible in AndroidStudio's Logcat.
Description
In my company's app there is a TextView displaying some content which may be MarkDown.
We use the markwon.setMarkdown(mTextView, markDownContent); to to display/handle the content in MarkDown.
The input for this case is:
Some text that is irrelevant and is not the problem

![Happy]

[Happy]: https://some-url-to-an-image-on-the-companys-domain.png ("Some logo")

For some reason there is an IllegalStateException throw from your NetworkSchemeHandler.hanlde() method when using this content.
This exception is caught in your library somewhere and luckily don't break our app.
The crash is then logged in AndroidStudio's Logcat.
The exception is only thrown when the MarkDown contains the URL to my company's image.
But... both the text and image is correctly displayed in the TextView even if the exception is thrown.
Exception
2022-06-07 11:50:03.684 1822-5825/? E/MARKWON-IMAGE: Error loading image: https://some-url-to-an-image-on-the-companys-domain.png
    java.lang.IllegalStateException: Exception obtaining network resource: https://some-url-to-an-image-on-the-companys-domain.png
        at o9.a.a(NetworkSchemeHandler.java:9)
        at k9.d$a.run(AsyncDrawableLoaderImpl.java:6)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:923)

    Caused by: java.io.InterruptedIOException: thread interrupted
        at com.android.okhttp.okio.Timeout.throwIfReached(Timeout.java:147)
        at com.android.okhttp.okio.Okio$1.write(Okio.java:75)
        at com.android.okhttp.okio.AsyncTimeout$1.write(AsyncTimeout.java:157)
        at com.android.okhttp.okio.RealBufferedSink.flush(RealBufferedSink.java:222)
        at com.android.okhttp.internal.http.Http1xStream.finishRequest(Http1xStream.java:163)
        at com.android.okhttp.internal.http.HttpEngine.readNetworkResponse(HttpEngine.java:748)
        at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:622)
        at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:475)
        at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:411)
        at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:542)
        at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:106)
        at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:30)
        at o9.a.a(NetworkSchemeHandler.java:4)
        at k9.d$a.run(AsyncDrawableLoaderImpl.java:6)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:923)

Findings

If I change the image's URL to: [A Google logo] (https://www.google.com/images/errors/logo_sm.gif) there is no exception thrown.
When I browse to my company's image with the exact same URL, in a web browser, there is no delay whatsoever to display the image.

Conclusion

Reading the exception hint's there some problem for Markwon to acquire the image. IO or async timeout problem.
Even if the image is stored on my company's domain I don't think there is a huge delay reading the image.

Questions

Is there a solution for this in Markwon? Increased timeout?
Or:
Can the log in Logcat be supressed?

Best regards
Stefan Eriksson

Hello @McTopaz ,
it seems default timeout (10 seconds) is exceeded when loading the image from your company. Unfortunately NetworkSchemeHandler does not expose any configuration of internal client. But it should be possible to create own instance of the SchemeHandler with increased timeout and/or suppressed logs


⚠ API - Lens has degraded performance

In bf793c3, API - Lens ($LENS_API_URL) experienced degraded performance:

HTTP code: 503
Response time: 607 ms

Resolved: API - Lens performance has improved in a7b462d after 6 minutes.


Treat array of writable textures as individual textures when cross-compiling to MSL

Hello!
We recently faced a problem with array of writable textures in MSL: the following shader fails to correctly compile after conversion to MSL (https://github.com/KhronosGroup/MoltenVK/issues/517, https://github.com/DiligentGraphics/DiligentCore/issues/66):
layout(rgba8) uniform writeonly image2DArray OutMip[4];
...
imageStore(OutMip[3], ivec3(GlobalInd.xy / 8u, ArraySlice), PackColor(Src1));

The problem is that it does not seem that array of textures can be writable in MSL. @billhollings suggests that this can potentially be remedied by by forcing an array of writable textures to be treated as individual textures and assigning consecutive Metal texture indices to the declarations.
Is that something that you may consider to implement?

So, I've had a look at this. I don't believe it's possible to translate this to MSL.
First thing is obviously that array<texture<T, access::write>, N> fails to compile. The spec also calls out textures can only be read or sample. :(
The second thing I tried is to declare it as a direct array, like:
texture<T, access::write> uTextures [[texture(0)]] [4]. This does not work either, the compiler refuses to have arrays of texture types.
The last thing I tried was to unroll the declarations like we do for buffer arrays, but when I try to create the new array, it fails, because you cannot take pointers to texture types.
So, we're stuck. I think the only possible way forward is to unroll the array when declaring it, and dynamically selecting the texture being written to with a switch block, or picking the right one when the array index is constant. However, this is an insane workaround.
@billhollings @cdavis5e you have a better idea?

I found one possible workaround. Tier 2 argument buffer support allows us to write code like:
struct Resource
{
  texture2d<float, access::write> tex [[id(0)]];
};

kernel void main0(constant Resource *uImages [[buffer(0)]])
{
   uImages[index].tex.write(...);
}

Not sure how practical this approach is, but it's the only thing I've got to compile.

You won't have tier 2 argument buffer support on iOS, where this is actually a problem. This actually works OK on Mac.

Right, it does compile on OSX SDK, despite spec disallowing it. Weird.

You won't have tier 2 argument buffer support on iOS, where this is actually a problem. The original case actually works OK on Mac.

Tier 2 on Mac also requires a discrete GPU...which in Mac means multiple GPU's. It wouldn't run on lower-end Macs. But as you indicate...we'd just go with the array of textures under macOS.

Right, it does compile on OSX SDK, despite spec disallowing it. Weird.

Have we tested that on a confirmed Tier1 (integrated) GPU? And in any case...this is one of those things that worries me. It's possible that they might tighten up validation to match the spec in future releases. They've done that before on other MSL items.

Right, it is rather sketchy. I don't see a straight way of supporting this on iOS (and pedantically not macOS either). Is this important enough to try emulating this somehow ala texture swizzle?

It's possible that they might tighten up validation to match the spec in future releases.

I don't know. There are also lots of little inaccuracies in the spec. For example, it erroneously claims that the [[sample_mask, post_depth_coverage]] attribute is supported on both Mac and iOS since Metal 2, but it's really only supported on iOS. Or that [[viewport_array_index]] is supported on both since Metal 2, but it was only added to iOS in 2.1. And it's also missing the [[stencil]] fragment output attribute (corresponding to SPIR-V's FragStencilRefEXT decoration) that was added in 2.1.

Is this important enough to try emulating this somehow a la texture swizzle?

I was originally thinking that this could be done by converting the array into separate input variables (tex_1, tex_2...). As handled in a Vulkan descriptor set...they would naturally consume consecutive bindings...both in Vulkan and MSL texture index bindings. But I haven't thought it completely through yet.

Right, we can declare it like that, but there's no way to combine that back into an array again, since it's not legal to create an array of textures in MSL. That workaround works for buffers since it's just pointers.

combine that back into an array again

Hmmm...would we need to convert back to an array of textures? Couldn't we leave it as a set of discrete texture references for the life of the shader?

I've sent KhronosGroup/MoltenVK#529 disabling dynamic indexing of storage images on iOS. That should at least eliminate the concern about dynamic indexing expressions.

We could, but how would you do an array reference? The only idea I have for that is a switch block to resolve the AccessChain.

Yeah...I guess an indexed loop would be tricky. Yes...it would have to output a switch instead..as you say.

Is this important enough?

We've had the one request so far. Sounding like this might be a nightmare. And it might get fixed in future MSL release anyway...since it's already supported on one platform.

One approach which is reasonably easy to implement is:

Index must be OpConstant, no spec constant.
Image must be fetched in the main function to avoid lots of complications where we need to pass down N arguments for a texture array down to leaf functions. That gets really hairy, really quickly.

It won't implement the spec fully, so not sure if it's useful.

@HansKristian-Work will this make the shader in question work?

From what I can tell, yes.

If it is not fully spec-compliant, what are the limitations though?

You can't access image array outside main, and you must access the array with a compile time literal. Those would be the restrictions to support array of writeable images with this restriction.

But array slice is not a compile-time literal in the shader:
uniform CB
{
    // ...
    int FirstArraySlice;
    // ...
};

// ...
void main()
{
    // ...
    int ArraySlice = FirstArraySlice + int(GlobalInd.z);
    // ...
    imageStore(OutMip[0], ivec3(GlobalInd.xy, ArraySlice), PackColor(Src1))
}

He's referring to the "0" in the expression OutMip[0]. That's what has to be a compile-time literal.

I think you may be a bit confused. It doesn't really help that we have two distinct concepts here, both called "array." One of them refers to the collection of image descriptors which your shader uses. The other refers to the layout in VRAM of each of these images. It's the former which is causing the problem.

Ah, OK. It appears that I misunderstood the problem or confused texture array object with array of texture objects. I believed that writeonly image2DArray was the problem, but apparently it is OutMip[4].

So basically if I rewrite the shader as:
layout(rgba8) uniform writeonly image2DArray OutMip0;
layout(rgba8) uniform writeonly image2DArray OutMip1;
layout(rgba8) uniform writeonly image2DArray OutMip2;
layout(rgba8) uniform writeonly image2DArray OutMip3;

everything will work fine?

Could you write your own array template class that wraps references (not pointers) to textures? It would probably have to be recursive, where my_array<T, N> incorporates my_array<T, N-1>.
Very quick and dirty proof of concept:
#include <metal_stdlib>

using namespace metal;

template <typename T, size_t N>
struct my_array {
    my_array(thread T &t, my_array<T, N-1> a) : texture(t), next(a) {}
    my_array(thread const my_array<T, N> &other) : texture(other.texture), next(other.next) {}

    thread T &operator[](int idx) { return idx ? next[idx-1] : texture; }

private:
    thread T &texture;
    my_array<T, N-1> next;
};

template<typename T>
struct my_array<T, 1> {
    my_array(thread T &t) : texture(t) {}
    my_array(thread const my_array<T, 1> &other) : texture(other.texture) {}

    thread T &operator[](int idx) { return texture; }

private:
    thread T &texture;
};

fragment float4 foo(texture2d<float, access::read_write> t1, texture2d<float, access::read_write> t2)
{
    my_array<texture2d<float, access::read_write>, 1> a1(t2);
    my_array<texture2d<float, access::read_write>, 2> a(t1, a1);
    a[0].write(float4(0, 1, 0, 1), uint2(0, 0));
    a[1].write(float4(1, 0, 0, 1), uint2(0, 0));
    return float4(0);
}

It compiles, but haven't checked that it works.

everything will work fine and be spec-compliant on both Mac and iOS?

Yes...using 4 separate writable textures in the shader and in your Vulkan descriptor set should be fine.

Could you write your own array template class

Nice!
If someone wants to take that on in SPIRV-Cross...it would be interesting. But my vote is that it would be overkill for this use case.
The problem only exists on lower end devices...iOS and maybe some lower-end macOS devices. I would think most apps targeting those devices could employ the option of separating the array into discrete textures in the original shader (HLSL, GLSL)...as described above.

Yes...using 4 separate writable textures in the shader and in your Vulkan descriptor set should be fine.

Ok, great. That solution totally works to fix the original problem. Please feel free to close this issue if you don't think it is worth proceeding with either workaround.

@KenThomases that's ... pretty wild. I'll keep that in mind if we need to support this later.
@DiligentGraphics Great. In that case, I think I'll close this as a wontfix. The cost of supporting this workaround greatly exceeds the benefit I think. The app-side workarounds are rather trivial as well.


Offload build operation trace writing to a separate thread

Avoid blocking the threads notifying of build operation events. Instad, offload the writing to another thread.
This both ensures the notifying threads don't need to perform IO but also that they do not need to synchronize with each other, as previously we needed to acquire a lock to write to the file
Reviewing cheatsheet
Before merging the PR, comments starting with

❌ ❓must be fixed
🤔 💅 should be fixed
💭 may be fixed
🎉 celebrate happy things

@bot-gradle test this

I've triggered the following builds:

Pull Request Feedback (Trigger) (Check)

Build Scan

The following builds have passed:

Pull Request Feedback (Trigger) (Check)

Build Scan

Keep this open


Setup RocketChat room and SysDig Alerting

Title of ticket:  Setup RocketChat room and SysDig Alerting
Description
Create a new RocketChat room, eg "foi-alerts", and configure Sysdig webhook to notify outages or other info there.
Dependencies
Are there any dependencies?
DOD

[x] RocketChat room setup
[ ] Sysdig notifications to rocketchat working
[ ] Invite/onboard team

Quick update that this is almost done, and will be completed today.  I was going to complete it Monday but I was sick.  Just need to fully integrate the SysDig/Rocketchat part, I think I had the curls working.

Note: I've setup as much Sysdig side reporting now until we complete load testing and setup production environment.  I can't fine tune the production monitoring until prod is up basically, and having load testing data would be useful in better tuning when we get reports.  All that being said, we have some reasonable defaults for now that work.  Sysdig will basically report all issues in dev/test right now which will probably be too chatty, but we can quiet it down over time.


API error, as shown below

API error, as shown below

location:http://htmlunit.sourceforge.net/apidocs/com/gargoylesoftware/htmlunit/BrowserVersion.html

The javadoc is for the latest release. Please make sure you are using the latest version (this is a good idea in general ;-))

I didn't make myself clear
An error occurred in this section of the comment.So the latest project source code is shown:
https://github.com/HtmlUnit/htmlunit/blob/97dfdd532afd7735cd1ba807958636661a46d6d9/src/main/java/com/gargoylesoftware/htmlunit/BrowserVersion.java#L46-L50
BrowserVersionFactory.class does not exist in the latest version.
We can not create a different browser setup by using the BrowserVersionFactory.
We use BrowserVersionBuilder.class

 *      String applicationName = "APPNAME";
 *      String applicationVersion = "APPVERSION";
 *      String userAgent = "USERAGENT";
 *      int browserVersionNumeric = NUMERIC;
 *
 *      BrowserVersion browser = new BrowserVersion.BrowserVersionBuilder(BrowserVersion.CHROME)
 *          .setApplicationName(applicationName)
 *          .setApplicationVersion(applicationVersion)
 *          .setUserAgent(userAgent)
 *          .build();
 *

I was wrong. Thank you

You are welcome - feel free to open new issues if you have any problem with HtmlUnit.


Performance regression from !1563 in bst show

See original issue on GitLab
In GitLab by [Gitlab user @traveltissues] on Sep 25, 2019, 11:11
from bst build bootstrap/bash.bst in freedesktop-sdk-19.08.0-bst2
reported by [Gitlab user @BenjaminSchubert]
Current hypothesis is that this is related to the increase in calls to Element._source_cached() in Element._calculate_cache_key() (https://gitlab.com/BuildStream/buildstream/blob/master/src/buildstream/element.py#L2221). This was required to correctly resolve the state of workspaced elements using the new workspace source plugin as an alternative to the more invasive refactoring of the logic to updating element states. This could be mitigated by only forcibly recalculating source keys for workspace sources but more correctly this should be resolved by simplifying the logic of element state updating such that workspace sources are correctly handled in a similar way to other source plugins.
This work would benefit from some discussion about how workspaces should be handled going forward to decide if the test behaviour is still relevant. For example, most the additional workspace logic in element states is in place to invalidate the keys and/or manipulate the element state. When the element is loaded and there is a workspace the keys are considered unstable and they are reset. It's also assumed that any element should be cached after a build even with an open workspace. The purpose is to prevent unnecessary rebuilds, however, the correct behaviour is arguably to calculate the key of the workspace and check the cache for artifacts rather than the existing stable/unstable status.

In GitLab by [Gitlab user @traveltissues] on Sep 26, 2019, 10:45
changed the description

In GitLab by [Gitlab user @traveltissues] on Sep 26, 2019, 12:36
changed the description

In GitLab by [Gitlab user @traveltissues] on Sep 26, 2019, 12:41
changed the description

In GitLab by [Gitlab user @traveltissues] on Sep 26, 2019, 16:29
The branch removing that call is traveltissues/benchmark, it will not pass tests currently, i'm still working on the fix in traveltissues/1143. From what i can tell, the issue is that the last_successful cache key loaded in the workspace source is not being used to recover the artifact which is leading to the element remaining in the buildable state which was essentially hacking around the above issue due to the changes in workspace handling. The issue with this is that the last_successful is the key of the space following the build, not the initially opened workspace. There isn't currently a way to associate the two keys or any reason to do so since they don't necessarily correlate unless we assume that build results are entirely determined by the source state. If we allowed that then we would try to create a 1:1 key mapping of previous_element:last_successful then if this_element == previous_element we could just recover last_successful

In GitLab by [Gitlab user @traveltissues] on Sep 26, 2019, 17:07
cc [Gitlab user @juergbi] [Gitlab user @BenjaminSchubert]

In GitLab by [Gitlab user @juergbi] on Sep 26, 2019, 17:24

The issue with this is that the last_successful is the key of the space following the build, not the initially opened workspace.

With the switch to the workspace source (dropping the bind mount) the build of a workspace element no longer affects the workspace directory, if I'm not mistaken. Thus, the key after the build should be identical to the key right before the build, and we should also no longer need to recalculate the key after the build. Or did I misunderstand you?

In GitLab by [Gitlab user @juergbi] on Sep 26, 2019, 17:30

This could be mitigated by only forcibly recalculating source keys for workspace sources but more correctly this should be resolved by simplifying the logic of element state updating such that workspace sources are correctly handled in a similar way to other source plugins.

I agree that we should solve this properly. However, as this is a regression, if this can't be solved properly soon, we should add a conditional to the _source_cached() call as a quick fix and improve this in a follow-up.

In GitLab by [Gitlab user @traveltissues] on Sep 26, 2019, 17:31
yes, that should be the case in the final implementation

In GitLab by [Gitlab user @traveltissues] on Sep 26, 2019, 17:33
I agree so I've split this into a few different branches. Additionally we can do something like
if source.get_kind() == 'workspace':
    source._generate_key([])

but this will need rebenchmarking

In GitLab by [Gitlab user @traveltissues] on Sep 26, 2019, 18:15
mentioned in merge request !1612

In GitLab by [Gitlab user @traveltissues] on Oct 6, 2019, 17:38
closed via merge request !1612

In GitLab by [Gitlab user @traveltissues] on Oct 6, 2019, 17:38
mentioned in commit a57f27e396f9c19bd553687e8ae85b3b0d01e6e0

In GitLab by [Gitlab user @traveltissues] on Nov 21, 2019, 13:21
marked this issue as related to BuildStream/benchmarking/bst-benchmarking-bot#15

In GitLab by [Gitlab user @traveltissues] on Nov 21, 2019, 13:22
marked this issue as related to #1153


added about semiprimes in article in index.md

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Hi @kmanish31, thank you for the PR! However, I will have to close it as its content was copied from another source without a citation.
Here is the source: https://prime-numbers.info/article/semiprimes
Feel free to open another PR though. Happy coding!


fix: error in feature request issue form

Related Issue
Closes: #244
Description of Changes

Removed markdown template feature.md
Added new issue form with proper conventions
Added the proper checklist to get the info, whether contributor is in GSSoC, and whether willing to work on this issue
Removed Alternate Solutions section since there is no need for it, and it just makes it lengthy and redundant

Checklist:

[x] My code adheres to the established style guidelines of this project.
[x] I have conducted a self-review of my code.
[x] I have included comments in areas that may be difficult to understand.
[x] I have made corresponding updates to the project documentation.
[x] My changes have not introduced any new warnings.

Screenshots

Original
Updated

NIce!


CT Log to support AWS KMS

Right now it seems like CT Log is the only component that doesn't support AWS KMS, meaning it has to generate a cert and place it in a secret within the ctlog-system namespace. My current setup is reliant on KMS for everything except this one component. With Rekor recently adding support for AWS KMS, could CT Log also support it? Using the generated cert is undesirable for us in production.
Apologies if there is a better repo to raise this issue on. I was unable to find where CT Log is mastered.

Sigstore doesn’t maintain the library. You can file an issue in https://github.com/google/certificate-transparency-go. The service currently does not support KMS keys, only keys loaded from disk, I assume for performance.

Thanks @haydentherapper. I'll raise the issue there.


Implement Sub Operator

Implement a Sub operator struct in Instruction.h that performs subtraction on the VM registers.

Hi, I want to contribute to this project and am trying to fix this issue by implementing the sub operator. Can you provide a .clang-format file for auto-formatting as I have one setup for my styles which is different to how the project is styled. If you don't use an auto formatter or .clang-format, give me the details of how you style like 2 space indent, etc or use a preset which fits your style(look at the styles like google, llvm, etc here). I would like the format style .clang-format file to be added to the repo itself, so that the project maintains a formatting consistency.

Hello and welcome, I have added a .clang-format file and reformatted the project accordingly. Thank you very much for your support!


Dockerfile: demo: configure BuildKit to use containerd worker; enable bash completions

configure BuildKit to use containerd worker
enable bash completions

LGTM but we should mention somewhere that containerd comes with containerd as default backend

LGTM but we should mention somewhere that containerd comes with containerd as default backend

Only the demo image contains the new buildkit.toml.
The nerdctl-full distritbution does not contain the toml, to avoid overriding the existing configuration.


Facing Issue to send and receive file using Bluetooth RFCOMM in UWP c# app.

@mattwojo @Karl-Bridge-Microsoft
I am using the below reference code Github link to send and receive files using Bluetooth RFCOMM in the UWP c# application.
https://github.com/MicrosoftDocs/windows-dev-docs/blob/docs/uwp/devices-sensors/send-or-receive-files-with-rfcomm.md?plain=1
I am facing an error at line var attribute = attributes[SERVICE_VERSION_ATTRIBUTE_ID]
And i have used service_version_attribute_id value is 0x0300
const uint SERVICE_VERSION_ATTRIBUTE_ID = 0x0300;
We face the below error using the above SERVICE_VERSION_ATTRIBUTE_ID .
"The given key '768' was not present in the dictionary."
Can you please help to solve this error and get this code working in the UWP c# application?
### Tasks

@mattwojo @Karl-Bridge-Microsoft Can you please take a look here and help us to solve this issue?

@Karl-Bridge-Microsoft @mattwojo ,
Can you Please look here and help to find out what issue we are facing to send files using Bluetooth  RFCOMM in UWP c#?

Hi @HBTest13,
As this seems to be a product support question and not a doc issue, I'm going to close this Issue.
I suggest trying Microsoft Q&A to make a suggestion or to ask a product question.
In addition, for community assistance with development questions, there are our forums, and StackOverflow.
For completeness, here are a few more developer support resources.

The Feedback Hub app can be used to lobby for a change, a feature, or to make a suggestion.
For developer issues, or suspected product bugs, contact Microsoft Support. A support engineer will look at the repro and see whether the issue is a Microsoft product bug, or something else. If it's a bug with a Microsoft product then the ticket will be free of charge.
The Windows developer support site explains other support options.

If you receive assistance via any support resource, and you believe that information would help us improve the docs, then please come back and let us know.

@Karl-Bridge-Microsoft
Thanks for the suggestion here, will get back to you if I receive any assistance via any support resource.


cannot use netcdf, lack of documentation of NETCDF_ROOT

See https://github.com/gaelforget/MITgcm.jl/issues/106#issuecomment-2178984600
Seems to be two or more issues :

a bug in genmake2 in how it handles NETCDF_ROOT
MITgcm docs fails to mention NETCDF_ROOT

Could you please specify, what or where the bug in genmake2 is, and how to reproduce it (without MITgcm.jl)?
I can run the MITgcm on my Mac with an M1 processor, and I don't need to specify NETCDF_ROOT (instead nf-config works), but in the past I know that I had to (and it worked).
And if there's not netcdf, I can also build the verification experiments. So I have no chance to reproduce this bug and help fix it.
Docs: I suggest that you submit a PR for this because I don't know how much detail would necessary. I concede that the current documentation about providing a netcdf library does not cover all (any?) of the convenience options that some build_options files include. Specifying NETCDF_ROOT is just one method of providing the path, there's also NETCDF_HOME, NETCDF_INC, NETCDF_INCDIR, nf-config and some default locations. These options are specific to specific build_options files (e.g. available in the generic ones like linux_amd64_gfortran one), but not available in others.

Could you please specify, what or where the bug in genmake2 is, and how to reproduce it (without MITgcm.jl)?
I can run the MITgcm on my Mac with an M1 processor, and I don't need to specify NETCDF_ROOT (instead nf-config works), but in the past I know that I had to (and it worked). And if there's not netcdf, I can also build the verification experiments. So I have no chance to reproduce this bug and help fix it.

See the linked comment above. Both Simone and I got the same error on his M1 and my M3 so it should be reproducible.
Here is my nc-config output :

This netCDF 4.9.2 has been built with the following features:

  --cc            -> clang
  --cflags        -> -I/opt/homebrew/Cellar/netcdf/4.9.2_1/include
  --libs          -> -L/opt/homebrew/Cellar/netcdf/4.9.2_1/lib -lnetcdf
  --static        -> -lhdf5_hl -lhdf5 -lsz -lz -ldl -lm -lzstd -lbz2 -lcurl -lxml2

  --has-dap          -> yes
  --has-dap2         -> yes
  --has-dap4         -> yes
  --has-nc2          -> yes
  --has-nc4          -> yes
  --has-hdf5         -> yes
  --has-hdf4         -> no
  --has-logging      -> no
  --has-pnetcdf      -> no
  --has-szlib        -> no
  --has-cdf5         -> yes
  --has-parallel4    -> no
  --has-parallel     -> no
  --has-nczarr       -> yes
  --has-zstd         -> yes
  --has-benchmarks   -> no
  --has-multifilters -> no
  --has-stdfilters   -> deflate szip zstd bz2
  --has-quantize     -> no

  --prefix        -> /opt/homebrew/Cellar/netcdf/4.9.2_1
  --includedir    -> /opt/homebrew/Cellar/netcdf/4.9.2_1/include
  --libdir        -> /opt/homebrew/Cellar/netcdf/4.9.2_1/lib
  --plugindir     ->
  --version       -> netCDF 4.9.2

What I refer to to when I say bug is this :

if I don't specify NETCDF_ROOT then I end up with a bad Makefile (with this inside  LIBS = -L/opt/homebrew/Cellar/netcdf-fortran/4.6.1/lib -lnetcdff -lnetcdf -lnetcdf, and leads to an error (```ld: warning: ignoring duplicate libraries: '-lnetcdf' ld: library 'netcdf' not found`)
if I do specify NETCDF_ROOT then mitgcm compiles and seems to run fine but in fact the Makefile turns off compiling MNC / Netcdf (HAVE_NETCDF='' in genmake.log, as shown below)

cat genmake_tnc.F |  /usr/bin/cpp -traditional -P -DWORDLENGTH=4 -DNML_TERMINATOR -DHAVE_SYSTEM -DHAVE_FDATE -DHAVE_ETIME_SBR -DHAVE_CLOC -DHAVE_SETRLSTK -DHAVE_STAT -I/opt/homebrew/Cellar/netcdf/4.9.2_1//include
  WARNING: CPP failed to pre-process the netcdf test.
    Please check that $INCLUDES is properly set.
gfortran  -fconvert=big-endian -fallow-argument-mismatch -Wall -O0 -c genmake_tnc.for  \
  &&  gfortran  -fconvert=big-endian -fallow-argument-mismatch -Wall -O0 -o genmake_tnc genmake_tnc.o -L/opt/homebrew/Cellar/netcdf/4.9.2_1//lib -lnetcdf -lcurl
genmake_tnc.for:5:10:

    5 |       IF (iret .NE. NF_NOERR) write(*,*) NF_STRERROR(iret)
      |          ^
Warning: 'nf_noerr' is used uninitialized [-Wuninitialized]
genmake_tnc.for:5:28:

    5 |       IF (iret .NE. NF_NOERR) write(*,*) NF_STRERROR(iret)
      |                            ^
note: 'nf_noerr' was declared here
Undefined symbols for architecture arm64:
  "_nf_close_", referenced from:
      _MAIN__ in genmake_tnc.o
  "_nf_create_", referenced from:
      _MAIN__ in genmake_tnc.o
  "_nf_def_dim_", referenced from:
      _MAIN__ in genmake_tnc.o
  "_nf_strerror_", referenced from:
      _MAIN__ in genmake_tnc.o
      _MAIN__ in genmake_tnc.o
      _MAIN__ in genmake_tnc.o
ld: symbol(s) not found for architecture arm64
collect2: error: ld returned 1 exit status

==> try again with added '-lnetcdf'
cat genmake_tnc.F |  /usr/bin/cpp -traditional -P -DWORDLENGTH=4 -DNML_TERMINATOR -DHAVE_SYSTEM -DHAVE_FDATE -DHAVE_ETIME_SBR -DHAVE_CLOC -DHAVE_SETRLSTK -DHAVE_STAT -I/opt/homebrew/Cellar/netcdf/4.9.2_1//include > genmake_tnc.for \
 &&  gfortran  -fconvert=big-endian -fallow-argument-mismatch -Wall -O0 -c genmake_tnc.for \
 &&  gfortran  -fconvert=big-endian -fallow-argument-mismatch -Wall -O0 -o genmake_tnc genmake_tnc.o -L/opt/homebrew/Cellar/netcdf/4.9.2_1//lib -lnetcdf -lcurl -lnetcdf

==> try again with added '-lnetcdff -lnetcdf'
cat genmake_tnc.F |  /usr/bin/cpp -traditional -P -DWORDLENGTH=4 -DNML_TERMINATOR -DHAVE_SYSTEM -DHAVE_FDATE -DHAVE_ETIME_SBR -DHAVE_CLOC -DHAVE_SETRLSTK -DHAVE_STAT -I/opt/homebrew/Cellar/netcdf/4.9.2_1//include > genmake_tnc.for \
 &&  gfortran  -fconvert=big-endian -fallow-argument-mismatch -Wall -O0 -c genmake_tnc.for \
 &&  gfortran  -fconvert=big-endian -fallow-argument-mismatch -Wall -O0 -o genmake_tnc genmake_tnc.o -L/opt/homebrew/Cellar/netcdf/4.9.2_1//lib -lnetcdf -lcurl -lnetcdff -lnetcdf
 --> set HAVE_NETCDF=''

running: check_HAVE_FLUSH()
  check_HAVE_FLUSH: successful
 --> set HAVE_FLUSH='t'

Docs: I suggest that you submit a PR for this because I don't know how much detail would necessary. I concede that the current documentation about providing a netcdf library does not cover all (any?) of the convenience options that some build_options files include. Specifying NETCDF_ROOT is just one method of providing the path, there's also NETCDF_HOME, NETCDF_INC, NETCDF_INCDIR, nf-config and some default locations. These options are specific to specific build_options files (e.g. available in the generic ones like linux_amd64_gfortran one), but not available in others.

I might do a PR at some point. I'd be happy with one working solution, and feel NETCDF_ROOT used to be that. Several working solutions would be good of course. But right now, when a user like me goes to the manual because genmake2 does not help, it turns out that the docs don't help either -- they don't tell me what to try and rather punt to other websites.
Here is a few things I see as compounding issues in the docs :

information is hard to find. netcdf is mentioned a bunch in section 3 of the docs, but there is no subsection or header about "build with netcdf"
pointers to section 9.3 (mnc) tend to be confusing too, as some of the information is repeated, some is clearly outdated (pre netcdf4), with an overwhelming amounts of detail on internals, design choices, etc that most users aren't concerned with (at least until they have managed to build with netcdf)
section <IP_ADDRESS> is sort of what I am looking for, but again does not tell me about concrete fixes to the build process
bite size information tends to be a lot easier to grasp, especially on a phone ; so breaking down those pages that go on for thousands of lines would be better in my view.

The 2 versions are likely for netcdf (c) and netcdf-fortran. The relevant one is netcdf-fortran for which you get version and parameters from nf-config. It does seem, though, that those do not include the bits for netcdf (c) which are also required.  It would help to also see the output of nf-config.

I think I ended with two netcdf libraries because I installed other models (MPAS and GOTM specifically) that also each have their own prefrered ways to deal with netcdf. I had not used nf-config until very recently and am unclear as to whether it's helpful or not (it's output is in https://github.com/MITgcm/MITgcm/issues/846#issuecomment-2180913647) .
Here is the content of the two lib folders :
(base) √ Climatology.jl % ls -1 /opt/homebrew/Cellar/netcdf-fortran/4.6.1/lib
cmake
libnetcdff.7.1.0.dylib
libnetcdff.7.dylib
libnetcdff.a
libnetcdff.dylib
libnetcdff.settings
objects-Release
pkgconfig

(base) √ Climatology.jl % ls -1 /opt/homebrew/Cellar/netcdf/4.9.2_1/include
netcdf.h
netcdf_aux.h
netcdf_dispatch.h
netcdf_filter.h
netcdf_filter_build.h
netcdf_json.h
netcdf_mem.h
netcdf_meta.h

The 2 versions are likely for netcdf (c) and netcdf-fortran. The relevant one is netcdf-fortran for which you get version and parameters from nf-config. It does seem, though, that those do not include the bits for netcdf (c) which are also required. It would help to also see the output of nf-config.

Here is the output of nf-config
(base) √ Climatology.jl % nf-config

This  4.6.1 has been built with the following features:

  --cc        -> clang
  --cflags    -> -I/opt/homebrew/Cellar/netcdf-fortran/4.6.1/include  -g -Wall -Wno-unused-variable -Wno-unused-parameter -O2

  --fc        -> /opt/homebrew/bin/gfortran
  --fflags    -> -I/opt/homebrew/Cellar/netcdf-fortran/4.6.1/include -I/opt/homebrew/Cellar/netcdf-fortran/4.6.1/include
  --flibs     -> -L/opt/homebrew/Cellar/netcdf-fortran/4.6.1/lib -lnetcdff -lnetcdf -lnetcdf
  --has-f90   -> TRUE
  --has-f03   -> yes

  --has-nc2   -> yes
  --has-nc4   -> yes

  --prefix    -> /opt/homebrew/Cellar/netcdf-fortran/4.6.1
  --includedir-> /opt/homebrew/Cellar/netcdf-fortran/4.6.1/include
  --version   ->  4.6.1

with export NETCDF_ROOT='/opt/homebrew/Cellar/netcdf/4.9.2_1/'

model compiles

with export NETCDF_ROOT='/opt/homebrew/Cellar/netcdf-fortran/4.6.1/'

model fails to compile

with HAVE_NETCDF=''

model compiles

why does nf-config give you one version when you call it explicitly, and another version when it is called in the build_options file (I assume)

In https://github.com/MITgcm/MITgcm/issues/846#issuecomment-2180913647 I had reported nc-config instead of nf-config (sorry for the confusion on this; I did not realize these were two different things until today)
In https://github.com/MITgcm/MITgcm/issues/846#issuecomment-2181143631 you'll see that the same stuff is detected as in genmake2/build_options (i.e., /opt/homebrew/Cellar/netcdf-fortran/4.6.1)

It looks to me like there is something wrong with the netcdf installation.  I haven't tried this on a mac, but usually nf-config --flibs gives library directories for both netcdf-fortran and netcdf.  Does your library directory (/opt/homebrew/Cellar/netcdf-fortran/4.6.1/lib) have netcdf libraries in addition to the netcdff ones (with 2 f's)?

This is the build_option that gets selected : ../../../tools/build_options/darwin_arm64_gfortran
That gives
ld: library 'netcdf' not found
collect2: error: ld returned 1 exit status
make[1]: *** [mitgcmuv] Error 1

with
export NETCDF_ROOT='/opt/homebrew/Cellar/netcdf-fortran/4.6.1/'

How do I fix this though? modify the build_option? specify something else to genmake2?
I understand that it might be simpler to remove /opt/homebrew/Cellar/netcdf/4.9.2_1/ from my system but that's needed for a c program like MPAS if I understand correctly, so that's not a fix
On the documentation aspect -- a lot of what's in this thread is what I was looking for in the docs (i.e. if does not work then try this, then that, etc) in a self-contained and easily findable section of the manual (say "3.5.6 building with netcdf")

It looks to me like there is something wrong with the netcdf installation. I haven't tried this on a mac, but usually nf-config --flibs gives library directories for both netcdf-fortran and netcdf. Does your library directory (/opt/homebrew/Cellar/netcdf-fortran/4.6.1/lib) have netcdf libraries in addition to the netcdff ones (with 2 f's)?

nf-config --flibs  gives :
-L/opt/homebrew/Cellar/netcdf-fortran/4.6.1/lib -lnetcdff -lnetcdf -lnetcdf
and
ls /opt/homebrew/Cellar/netcdf-fortran/4.6.1/lib
cmake			libnetcdff.a		objects-Release
libnetcdff.7.1.0.dylib	libnetcdff.dylib	pkgconfig
libnetcdff.7.dylib	libnetcdff.settings

To check whether the installation is ok on your mac, you could try compiling a minimal program like this:
      PROGRAM TEST_NC
      IMPLICIT NONE
      include 'netcdf.inc'
      INTEGER ncid, nc_err

      nc_err = nf_open('test.nc', nf_nowrite, ncid)
      nc_err = nf_close(ncid)
      END PROGRAM TEST_NC

To help sort out the netcdf installation issue I can try and link you up offline with another user who has done this recently.

Try export NETCDF_ROOT=/opt/homebrew

Try export NETCDF_ROOT=/opt/homebrew

Thanks @jahn ! This worked beautifully. Build, ran, and generated mnc files as expected.
(base) ?130 verification % ls -1 /opt/homebrew/lib/libnetcdf*
/opt/homebrew/lib/libnetcdf.19.dylib
/opt/homebrew/lib/libnetcdf.a
/opt/homebrew/lib/libnetcdf.dylib
/opt/homebrew/lib/libnetcdf.settings
/opt/homebrew/lib/libnetcdff.7.1.0.dylib
/opt/homebrew/lib/libnetcdff.7.dylib
/opt/homebrew/lib/libnetcdff.a
/opt/homebrew/lib/libnetcdff.dylib
/opt/homebrew/lib/libnetcdff.settings

Thanks @jahn, @mjlosch & @jm-c for the help on this and https://github.com/MITgcm/MITgcm/issues/847
I wonder if we should conclude that this is on unidata (as opposed to genmake2), and open an issue @ https://github.com/Unidata
Any thoughts?

Somebody already raised it with homebrew: https://github.com/orgs/Homebrew/discussions/5219, but there has been no reaction.

I bumped the issues raised at homebrew. But maybe it's rather on unidata to provide versions of nf-config and nc-config that point to  /opt/homebrew rather than the Cellar subfolder.  Unclear to me.

On the genmake2 side though, my sense remains that MITgcm failing to build for a model configuration that does not involve netcdf (ie does not build either mnc or profiles) is a bug.

I feel out of my depth when it comes to deciphering genmake2, but maybe someone else would know how to fix this?

another issue came up when I tried mpi. Seems related but again I am at a loss.

Any suggestion?
@mjlosch have you managed to use mpi on your M1?
This is the error message I get:
ptwrapper.o setdir.o setrlstk.o sigreg.o tim.o timer_stats.o H5fortran_types.o -L/opt/homebrew/lib -lnetcdf -lcurl -lnetcdff -lnetcdf
ld: warning: ignoring duplicate libraries: '-lnetcdf'
ld: file cannot be open()ed, errno=2 path=H5fortran_types.o in 'H5fortran_types.o'
collect2: error: ld returned 1 exit status
make[1]: *** [mitgcmuv] Error 1
make: *** [fwd_exe_target] Error 2
failed

This is what I use for mpi
export MPI_INC_DIR='/opt/homebrew/include'

/opt/homebrew/include/H5fortran_types.F90

genmake2 manages to create a file H5fortran_types.fr9 but then fails.

I believe this is another homebrew error, this time in hdf5.  This .F90 file should not be in include.  It should be safe to remove it from /opt/homebrew/include.

If I set (tcsh):

setenv SKIP_NETCDF_CHECK 1

or (bash):

export SKIP_NETCDF_CHECK=1

before running genmake2 it should skip the part that check for NetCDF and return empty "HAVE_NETCDF"

If I set (tcsh):

setenv SKIP_NETCDF_CHECK 1

or (bash):

export SKIP_NETCDF_CHECK=1

before running genmake2 it should skip the part that check for NetCDF and return empty "HAVE_NETCDF" But not sure if it could help here.

Maybe if would help to mention SKIP_NETCDF_CHECK in the docs, as well as in the error message that genmake2 issues on netcdf though.
Or maybe the short term fix for the present issue is to make SKIP_NETCDF_CHECK=1 the default -- given that this check can prevent building mitgcm even when netcdf is not needed, I wonder whether it does more harm than good.
Every time I have gotten MITgcm on a new computer in the past, adding netcdf support has always been the biggest pain point (it's not just me as Martin noted). But something has changed (in genmake2?) that now makes it imperative to have netcdf set up before we even can compile MITgcm for a configuration that does not involve netcdf.
Switching off packages that require netcdf (mnc, profiles) if genmake2's netcdf checks all failed seemed a better approach than preventing compilation.

I believe this is another homebrew error, this time in hdf5. This .F90 file should not be in include. It should be safe to remove it from /opt/homebrew/include.

Would it be possible to make genmake2 disregard such files that it does not need?
I would not know how to do this in shell but making genmake2 more resilient to benign mistakes like a misplaced F90 file being found somewhere it's not expected. Until today it had not occured to me that F90 files were out of place in an include folder btw.

@gaelforget My previous comments were not very clear. To be more specific, did you try to set this SKIP_NETCDF_CHECK env-var to check if it helps ? I was thinking it would not and if it is the case then it would mean that genmake2 is not the issue.

NETCDF_ROOT=1 or 0 does not affect result -- unless we specify NETCDF_ROOT=/opt/homebrew , an experiment like advect_xy that does not involve netcdf won't compile, and genmake2 returns "library 'netcdf' not found"

So should I conclude that there is no issue with genmake2 ?  if any, the issue is coming from the botton part of the optfile that picks up the wrong and broken NetCDF homebrew install that you have there, as I understand it ?

Seems like it


add mbinfo and mbpipe

add mbinfo and mbpipe.

Thanks for the contribution! This'd be great for an awesome-mbtiles repository, but the vector tile specification is independent from MBTiles, so this isn't a good fit for awesome-vector-tiles. MBTiles can and often do contain image or utfgrid tiles instead of vector tiles.


[WIP] Docs

Improve the docs

Codecov Report

Merging #2 (fe2cb04) into main (d5e73e5) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head fe2cb04 differs from pull request most recent head 0cb632e. Consider uploading reports for the commit 0cb632e to get more accurate results

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@           Coverage Diff           @@
##             main       #2   +/-   ##
=======================================
  Coverage   40.40%   40.40%
=======================================
  Files           3        3
  Lines          99       99
=======================================
  Hits           40       40
  Misses         59       59

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Test failure: HttpClientSlimTest tests fail

Describe the bug
Running the HttpClientSlimTest tests on my laptop, 4 of them fail with:
Test Name:	Microsoft.AspNetCore.Testing.HttpClientSlimTest.GetStringAsyncHttp
Test FullName:	Microsoft.AspNetCore.Testing.HttpClientSlimTest.GetStringAsyncHttp
Test Source:	C:\Coding\aspnet\Extensions\src\TestingUtils\Microsoft.AspNetCore.Testing\test\HttpClientSlimTest.cs : line 18
Test Outcome:	Failed
Test Duration:	0:00:00.039

Result StackTrace:
at Microsoft.AspNetCore.Testing.HttpClientSlimTest.StartHost(String& address, Int32 statusCode, Func`2 handler) in C:\Coding\aspnet\Extensions\src\TestingUtils\Microsoft.AspNetCore.Testing\test\HttpClientSlimTest.cs:line 94
   at Microsoft.AspNetCore.Testing.HttpClientSlimTest.GetStringAsyncHttp() in C:\Coding\aspnet\Extensions\src\TestingUtils\Microsoft.AspNetCore.Testing\test\HttpClientSlimTest.cs:line 20
--- End of stack trace from previous location where exception was thrown ---
Result Message:
IsListening
Expected: True
Actual:   False

The exception being thrown is an HttpListenerException with the message The network location cannot be reached. For information about network troubleshooting, see Windows Help.. The tests try to start a listener 10 times, and then fail the assertion as there's no listener active.
To Reproduce
Specific reason these tests fail is unknown, but appears to be related to the use of <IP_ADDRESS>.
Expected behavior
Tests pass.

See #1206.

@Tratcher - any idea on this? Does PR #1206 look good?


Parameterize showcase article.

Currently we use paperdiff_singularity_20230908122618.pdf as a showcase figure, ideally this should be parameterized so that the path is not hard-coded throughout the article soruce code.

ty @yarikoptic
fixed by 241b8214

Not fixed yet since all of those scripts still hard-code the showcase path. It needs to be parameterized in them as well.

nice catch, ill do this in background while we meet

Fixed it a while ago, don't remember the commit :/


GoogleSignIn/GoogleSignIn.h not found in latest react native version 0.61.1

Hi!
I have created a fresh project and trying to integrate google login, in android its working fine, but in iOs I have facing a build problem.
Getting the following error every time.
Lexical or Preprocessor Issue Group
'GoogleSignIn/GoogleSignIn.h' file not found

hi! Sorry but we'll need more information to be able to help. Where is the error coming from? Please follow the issue template, otherwise this is not actionable, thanks.

I have the following configuration
react-native(0.60.1)
@react-native-community/google-signin(3.0.0)
cocoapods(1.8.1) and GoogleSignIn(> 5.0.0) pod version

try using only #import "GoogleSignIn.h"

@thanhgiangleo I already tried this, but no luck, please give another suggestion.
Thanks..!

@vonovak
here is sample code
/**
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

#import "AppDelegate.h"
#import <React/RCTBridge.h>
#import <React/RCTBundleURLProvider.h>

#import <RNGoogleSignin/RNGoogleSignin.h>

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
  RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];
  RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
                                                   moduleName:@"parkao"
                                            initialProperties:nil];
  [RNSentry installWithRootView:rootView];

  rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];

  self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
  UIViewController *rootViewController = [UIViewController new];
  rootViewController.view = rootView;
  self.window.rootViewController = rootViewController;
  [self.window makeKeyAndVisible];

  return YES;
}

- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
#if DEBUG
  return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
#else
  return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
#endif
}

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
{

  BOOL handleGoogle =  [RNGoogleSignin application:application openURL:url sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey] annotation:options[UIApplicationOpenURLOptionsAnnotationKey]];

  return handleGoogle;
}

@end

Did you follow this instruction?
Add an import: #import <RNGoogleSignin/RNGoogleSignin.h> (if this one will not work try #import "RNGoogleSignin.h").
If this file cannot be found, you need to modify your header search paths so Xcode can find headers of react-native-google-signin.
For example, when using the non-cocoapods installation, make sure that $(SRCROOT)/../node_modules/@react-native-community/google-signin/ios is included in your target's header search paths.

Same issue, I followed each and every step for iOS but still getting this error 'GoogleSignIn/GoogleSignIn.h' file not found at 1. In file included from /Users/user/Documents/GitHub/ragya-mobile-app/node_modules/@react-native-community/google-signin/ios/RNGoogleSignin/RNGoogleSignInButton.m:2:

Same issue, I followed each and every step for iOS but still getting this error 'GoogleSignIn/GoogleSignIn.h' file not found at 1. In file included from /Users/user/Documents/GitHub/ragya-mobile-app/node_modules/@react-native-community/google-signin/ios/RNGoogleSignin/RNGoogleSignInButton.m:2:

Same issue, I followed each and every step for iOS but still getting this error 'GoogleSignIn/GoogleSignIn.h' file not found at 1. In file included from /Users/user/Documents/GitHub/project/node_modules/@react-native-community/google-signin/ios/RNGoogleSignin/RNGoogleSignInButton.m:2:

Hi there! Sorry you're having an issue. As the issue template explains, we require that you provide a runnable example (please try reproducing the bug with our example app) that reproduces the bug in a github repository. Please try to minimize the superfluous code and focus only on reproducing the bug.
please create a new issue with this and we'll be happy to review it!


Sound volume does not stay

Sound volume can jump to max. For example,

open youtube video
reduce sound
pause
start it again
volume jumps to maximum.

To avoid the jump, you have to mute it before restarting

strace for PA attached
pa_strace.txt

Looks like https://github.com/mer-hybris/droid-config-sony-seine/commit/1e4cca28e32be0532be694ffcaf158cc2685b243 does help against it.
But not fully, as touch sounds (as while typing text on keyboard) stay on either max volume or silent. To get rid of that, HW has to be disabled as in https://github.com/mer-hybris/droid-config-sony-seine/commit/f81d91a0d3f811443822eb2767bde6d8f4a80275

Fixed in https://github.com/sailfishos-sony-tama/droid-config-sony-tama-pie/commit/851ae71a985a6bbd3ae904bc130f5918a43a9cbd


Add support for marked text

Need support for marked text which is going to be <mark> element further
The syntax will be (using ==at the start and the end):
Here is ==marked text== that needed as a feature.

Reference:
https://markdown-it.github.io/ (just for example)
https://github.com/twardoch/remark-mark-plus

It is done with v1.0.1