Documentation Overhaul, perspective of a new user

I just came across this library and it looks like the features are great, but, unfortunately, actually using it is an extremely frustrating experience. First, just to get it to work in my project (via add_submodule), I had to dive into code and debug it myself, mostly by trial and error, to determine that I must state LANGUAGES CXX in my project() call in my root CMakeLists.txt (without this I get a cryptic error about header files). This took about an hour, just to link the library, and it could have been much quicker if there was some clear and obvious documentation about how to do this.
Then, once I finally get it building, I needed to dig all over the place to find any documentation on how to use it. When I finally find something, it talks about including a header that doesn't exist (this page says to include <nana/gui/wvl.hpp>, but this header does not exist based on how I finally got it linking, which, of course, could also be the problem, but in either case, the documentation is the problem). Additionally, this documentation is in a repository on someone else's Github in a fork (who seems to be a major contributor based on how much I saw them commenting on the issue reports I looked at to get it building), which is a strange place for it, as opposed to, for example, in the wiki tab of the repository that it documents.
Lastly, there is a website (nanapro.org), but it is utterly unclear to me how it fits in with the various github projects and forks.
I think that these actionable changes would massively improve the experience of a new user, and probably make things cleaner for regulars too:

Move all repositories for the project into an actual Github organization, and put clear, big, red, obvious, impossible to miss messages on all the other repositories. A good way to do this is to remove all files in these repositories with one last commit, and add a README.md that expalins where everything moved and gives a useful link or two (one for the organization and one for that particular project's new location would be good). This ensures that everything is in one place, it's clear what's officially part of the project and what isn't, and that everyone who currently goes to the current project can easily find where people moved to.
Make sure that all documentation is in one official-looking place, or, at least, all documentation of the same type (e.g. one place for reference documentation, another for tutorials). Good candidates for the tutorials are the Github wiki on the main repository, or on a separate repository in the aforementioned organization. This is currently an issue because it seems like the documentation is spread around various github repositories, some of which are no longer maintained, and on the website in various places.
Have all the links that a user may need in order to get started with the project in README.md. A good way to do this is to have a section titled "Documentation" or "Getting Started" that links to the main documentation area, and, ideally, a few specific tutorials (e.g. "Hello World" and "Installation/Linking")
Have an explicit tutorial for how to link. Such a tutorial would not need to be very long at all (1-3 paragraphs would be plenty), because once I figured it out, linking isn't actually that hard, but there are a few pitfalls that take a long time to figure out unless someone tells you. I might be willing to write such a tutorial for Linux+Cmake.

Hi, thank for your time!
In the readme you have just only one link to the documentation:

Support
The best way to get help with Nana library is by visiting http://nanapro.org/help.htm

(for many users GitHub is not the entry site, and many don't even like to use it!).
The first thing you have in http://nanapro.org/help.htm is the list of links you want.
A GitHub organization sound like a good idea, but it is some amount of work to create and organize... specially because in real life there is not such organization.
Where did you found <nana/gui/wvl.hpp>? The main problem with a wiki is that is not updated automatically. For an automatic documentation see the "Programmer Guide and Examples"

Hi!
I just created a new simple GitHub demo project:
https://github.com/qPCR4vir/nana_helloworld
I hope it will help


created feedback page

created feedback page under jwoc 2024, please check

created feedback page under jwoc 2024, please check

@thesri , it doesn't looks good, I will provide you the reference

@thesri , it doesn't looks good, I will provide you the reference

Okay

Something like that : https://d1eipm3vz40hy0.cloudfront.net/images/feedback+form+template.png

Something like that : https://d1eipm3vz40hy0.cloudfront.net/images/feedback+form+template.png

Okay

Something like that : https://d1eipm3vz40hy0.cloudfront.net/images/feedback+form+template.png

but we have a rate us page for that write??

Sorry @thesri ,
something like that :
https://cdn.dribbble.com/users/2201975/screenshots/6507560/feedback_page.png?resize=400x0

Sorry @thesri ,
something like that :
https://cdn.dribbble.com/users/2201975/screenshots/6507560/feedback_page.png?resize=400x0

Okay I'll get back to you soon


.jar files are empty

Hello,
After downloading and adding the latest .jar file, the classes in .iocryptolens are empty. I tried multiple versions now, but could not succeed. When is the maven release planned?
My errors:
Exception in thread "main" java.lang.NoClassDefFoundError: io/cryptolens/models/ActivateModel
at main.Main.validateKey(Main.java:111)
at main.Main.initializeConfig(Main.java:97)
at main.MainMenu.(MainMenu.java:62)
at main.Main.main(Main.java:75)
Caused by: java.lang.ClassNotFoundException: io.cryptolens.models.ActivateModel
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)

Sorry, I forgot to answer the Maven question :)
There is currently no date set when it will be released, but it is being worked on. You can follow the progress in the following issue: https://github.com/Cryptolens/cryptolens-java/issues/20
@ArmanYeghiazaryan


[Reopen Pull Request #823] Added Delete Snapshot Button

I closed the pull request #823 before, since it could not pass the test. I reopen it by changing some parts according to comments of @gheinrich, @lukeyeager.
I added deleting a specific snapshot of a model on the model page, since my harddisk sometimes runs out of space when so many model are saved. So, I put a Delete Snapshot button under Download Model Button.
The deletion process does not allow:

deleting all snapshots (in that case, it becomes deletion of all model)
deleting the last snapshot

Now, the model page seems like:

Hmm. It would be really great if you can add something that allows for deletion of all snapshots., or better, all but the last one. Sometimes i run something awesome and slow for 100 epochs, only to find out i have left the default '1 snapshot/epoch' on. And especially in that case you've got a big problem with disk usage. Also, how about listing the amount of storage used per job in the front page UI table? I've got hundreds of jobs there and it's hard figuring out which one to clean wrt disk size.

Deleting all snapshots is a great idea! Thanks! This button may be replaced by it. I am actually deleting all snapshots except the last one for the same reasons as you said. However, I wanted to give some flexibility to user(s/he may not be in same situation).  But, adding an additional delete button probably will push the current UI to down. I'll try it and put a screenshot here.

Alternatively there could be a Delete snaphots button which spawns a similar dialog to when you "delete model" from which you could select the snapshots to delete, with an option to "delete all but last one". That could be done using an AJAX query, without reloading the main page.

Honestly, I don't actually like refreshing the page, but I could not do it with Ajax query. I'll try.

Greg's idea is great, make a simple button to the right of 'Download Model' on the same row. That spawns a small window where you can choose from three options: '[all but current; currently selected; all]'.
This also makes sure we have a clean interface and the button only says 'Delete'. I don't think this should take up a whole other row.

I'm sure you'll find AJAX fun to use :-). There is an example there

:) Thanks for example! After I complete the changes, I'll again put a screenshot here.

Closing due to inactivity. Please re-open this if you want to continue working on it. Otherwise hopefully somebody else will pick up the ball and move ahead with this.


bumping metronome 0.6.11 on dcos 1.12

High-level description
What features does this change enable? What bugs does this change fix?
Corresponding DC/OS tickets (obligatory)
These DC/OS JIRA ticket(s) must be updated (ideally closed) in the moment this PR lands:

DCOS-48948 Bump DC/OS 1.12 to latest Metronome

Related tickets (optional)
Other tickets related to this change:

MARATHON-8555 Parameter --leader_proxy_max_open_connections does not actually allow more concurrent connections
MARATHON-8566 Fix race condition causing deployment info to not be available
MARATHON-8555 Include app-id in illegal-state-exception

Checklist for all PRs

[ ] Added a comprehensible changelog entry to CHANGES.md or explain why this is not a user-facing change:
[x] Included a test which will fail if code is reverted but test is not. If there is no test please explain here:
[x] Read the DC/OS contributing guidelines
[x] Followed relevant code rules Rules for Packages and Systemd

Checklist for component/package updates:
If you are changing components or packages in DC/OS (e.g. you are bumping the sha or ref of anything underneath packages), then in addition to the above please also include:

[x] Change log from the last version integrated (this should be a link to commits for easy verification and review): diff
[x] Test Results: CI
[ ] Code Coverage (if available): N/A

@mesosphere-mergebot label ready for review


Extract language strings from HTML attribute

Is it possible to extract language strings from HTML attributes?
This works:
<label><?php __('Test', 'text-domain'); ?></label>
This not:
<input placeholder="<?php __('Test', 'text-domain'); ?>" />
I know the flag --extract-all. But this does't work correctly for this use-case (first try).
Currently I use Poedit 1.8.8

(Please use<EMAIL_ADDRESS>for questions; this bug tracker is for tracking bugs.)
HTML is not a programming language and can therefore not have gettext support, so no, of course not. However your example shows PHP code with no apparent relation to "HTML attributes", and PHP is natively supported by gettext tools, so the above will be extracted.
Also, you mention --extract-all, which doesn't seem to be related, and is a xgettext, not Poedit flag — did you mean to file a GNU gettext tools bug report?
If you believe there's some extraction error in Poedit, please provide full reproducible example, including full source code and the PO file, not just a single line taken out of context. See also some helpful tips for bug reporting. Don't forget to include basics like your platform or Poedit version and, if you use a pre-2.0 version of Poedit or use custom extractors in 2.0, full definition of your PHP extractor.

Ok. I think the problem was not described well. I'll send you an email with more details.

(In case somebody stumbles upon this issue: the actual problem was not with the code shown above (which will be fine), but with extracting from template files mis-parsed as Python.)


Pipeline config test automation

We need to write automation to test pipeline config command as part of ci.

Closing this in favor of https://github.com/Azure/azure-dev-pr/issues/1461


os.tmpDir error when trying to import employees

When I upload the csv and click "Import Employees" I get the following error:
TypeError: os.tmpDir is not a function
    at new IncomingForm (/app/timeoff-management/node_modules/formidable/lib/incoming_form.js:29:41)
    at /app/timeoff-management/lib/route/users/index.js:125:12
    at Layer.handle [as handle_request] (/app/timeoff-management/node_modules/express/lib/router/layer.js:95:5)
    at next (/app/timeoff-management/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/app/timeoff-management/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/app/timeoff-management/node_modules/express/lib/router/layer.js:95:5)
    at /app/timeoff-management/node_modules/express/lib/router/index.js:281:22
    at Function.process_params (/app/timeoff-management/node_modules/express/lib/router/index.js:335:12)
    at next (/app/timeoff-management/node_modules/express/lib/router/index.js:275:10)
    at next (/app/timeoff-management/node_modules/express/lib/router/route.js:127:14)
    at module.exports (/app/timeoff-management/lib/middleware/ensure_user_is_admin.js:21:5)
    at Layer.handle [as handle_request] (/app/timeoff-management/node_modules/express/lib/router/layer.js:95:5)
    at next (/app/timeoff-management/node_modules/express/lib/router/route.js:137:13)
    at Route.dispatch (/app/timeoff-management/node_modules/express/lib/router/route.js:112:3)
    at Layer.handle [as handle_request] (/app/timeoff-management/node_modules/express/lib/router/layer.js:95:5)
    at /app/timeoff-management/node_modules/express/lib/router/index.js:281:22
    at Function.process_params (/app/timeoff-management/node_modules/express/lib/router/index.js:335:12)
    at next (/app/timeoff-management/node_modules/express/lib/router/index.js:275:10)
    at Function.handle (/app/timeoff-management/node_modules/express/lib/router/index.js:174:3)
    at router (/app/timeoff-management/node_modules/express/lib/router/index.js:47:12)
    at Layer.handle [as handle_request] (/app/timeoff-management/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/app/timeoff-management/node_modules/express/lib/router/index.js:317:13)
    at /app/timeoff-management/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/app/timeoff-management/node_modules/express/lib/router/index.js:335:12)
    at next (/app/timeoff-management/node_modules/express/lib/router/index.js:275:10)
    at /app/timeoff-management/node_modules/express/lib/router/index.js:635:15
    at next (/app/timeoff-management/node_modules/express/lib/router/index.js:260:14)
    at Function.handle (/app/timeoff-management/node_modules/express/lib/router/index.js:174:3)

Apparently os.tmpDir() has been deprecated in favour of os.tmpdir() so can I just go though each file in the list and manually make the change? Or will that break something else?

Fixed it by bumping formidable to version 1.1.1


Azure CosmosDbStorage Middleware

Hi all,
I created a middleware package for talking with CosmosDB from the Python Bot Framework, I used a similar structure with a botbuilder-azure package. It includes a config object and a storage object, as well as tests for the integration. In the samples folder is a adaptation of the EchoBot that talks with Cosmos instead of memory storage. Automated testing will rely on CosmosDB emulator running, this is the same as with the Node version of the CosmosDB storage.
Most important pieces:

botbuilder-azure/botbuilder/azure/cosmosdb_storage.py - main code for using Cosmos as a middleware
botbuilder-azure/tests/test_cosmos_storage.py - tests for the middleware
samples/Echobot-with-CosmosState/* - sample that uses the middleware

I disabled the tests that talk to CosmosDB, similar to the JS version of this package since there is no CosmosDB emulator for Linux, tests run locally against a online Cosmos work. Alternative would be to run these tests on Windows since the emulator works there.

Hey @stevengum any updates on this? I would love to have this approved in October so that it counts towards my #hacktoberfest progress!


Remove language attribute

This pull request removes the da-DK language attribute from specific styles, which should allow Word to honor the default system language, I believe.
Fixes #4.

Great! thanks


Diregular scale LMLsMLsLMs doesn't yield a diregular guide frame

The 46edo 7:4:2 tuning should have a guide frame with guided GS = GS(13\46) and multiplicity 2 (offset 22\46 or 24\46).

The same problem occurs for 5sC diachrome: LMsLsLsMLsLs:
Scale profile for LMsLsLsMLsLs
Guide frame
Guided generator sequence of 5-steps: GS(2L+1M+2s (10\24), 2L+1M+2s (10\24), 2L+1M+2s (10\24), 2L+1M+2s (10\24), 2L+1M+2s (10\24), 2L+0M+3s (9\24))
Aggregate generator 12L+5M+13s (59\24)
Interleaving polyoffset 0L+0M+0s (0\24)
Multiplicity 1
Complexity 6

Monotone MOS properties
L = M
M = s
s = 0

Maximum variety 3


CSV files missing

Hi Kai, I was in Northsec and I enjoyed the talk you gave,  I am glad that you uploaded the Jupyter files to github.
Thanks for that.
I have a question about CSV files, are you able as well to provide the CSV files,  I am also looking into finding a way of getting these CSV files Logs from Azure. Was wondering if you have some advice on that,
(FileDownloadedX.csv,FileDownloads.csv, FileAccessX.csv,Logs.csv,TIMailData.csv')
Thanks for the wonderful content
Caesar

Thankyou for reaching out.
If you're ingesting Azure/O365 Logs into your SIEM then you should be able to see all the logs I used in my presentation(given you're not filtering out any).
The other option would be crafting datasets based on actual data. The schema is available in Jupyter so you should be create data but the crafted data might not be best to train a model which you wanna put into a prod envt. I'll attach some samples for you to get started
TIUrlClickDataX.csv
Let me know if you have any further questions


[FEATURE] PrettyWriter should extend the standard modules

Currently, PrettyWriter prints the user-defined operators. This is not sufficient for being parsed back by SANY. It is quite easy to detect the standard modules that are used by the user-defined operators. We should add these modules in the EXTENDS clause when writing the TLA+ file.

We should fix that to make the user reports reproducible.


Added Python and Ruby package modules

Added a module each for Python and Ruby package verification. Each
module exposes an is_installed and version property. They will each
accept an argument for the path to the preferred package manager binary
to use for determining which packages are installed.

Hi thanks.
Like I said in #84 we must handle virtualenvs here. Also avoid mocking and make real tests in docker images (use debian_jessie).

Thanks, I'll update the tests as per your suggestion.
As far as virtualenv support, both the Python and Ruby package modules support a parameter to specify the path to the pip or gem binary respectively that will get used for determining which packages are installed. When you use a pip binary that is inside a virtualenv it will resolve the PYTHONPATH such that the packages listed will be the ones that are installed in the associated virtualenv.

I'd really like to see this

Closing pull request and opening a new one that has been rebased onto latest master.

Refer to https://github.com/philpep/testinfra/pull/99 for updated PR


Key detection that works for Ember Objects

I'm not sure if this is the direction you were wanting to go, but this fixes the problem for ember objects.
See: https://github.com/DockYard/ember-changeset/issues/153

@gordonbisnor can you give this a try and let me know if it fixes the issue for you?

@poteto ha yes I had already done pull request #151 with the same change, so in my opinion this works.

Ah my bad, I completely missed that. Closing this in favor of #151.

Ha no worries thanks for the update!


ui-select doesn't show list of choices in modal dialog (pop-up)  angular 1.4

It works fine in angular 1.3.17 with angular-bootstrap 0.13.0 and older versions.
In angular 1.4.2 and angular-bootstrap 0.13.0 \ 0.12.1 , I have to enter 'sss' letters in the search field and remove them for list of choices to be shown.
ui-select works fine in angular 1.4.2 without modal dialog (pop-up).
Could someone help with fixing this issue?
Thanks

@C00per ui-select is not part of this repo. The only thing that comes to my mind is a scoping and / or timing issues. I'm afraid that you will have to dig into it on your end as we don't have free cycles left to handle such support requests:   https://github.com/angular-ui/bootstrap/blob/master/CONTRIBUTING.md#got-a-question-or-problem


add more logging to the build scripts

specifically for this script build/azure-pipelines/linux/createDrop.sh, when the step fails, we only get a message stating that bash exited with code 1.

The logging issue is something wrong with devops, if you take a look at other runs for that step there is lots of logging.

ado issue, found the related log in the full log.


Add external dns advanced docs

What does this PR do?
Add external-dns advanced configuration docs
What does it look like?

Any background context you can provide?
https://github.com/giantswarm/roadmap/issues/411
What is needed from the reviewers?
Have you maintained the front matter?
(Please bump the last_review_date in case this qualifies as a review for an entire page. Provide user_questions which should be answered in the page. Provide a meaningful description.)

@marians thanks for the review 🙏🏻

Two things:
* As the entire article is AWS specific, I recommend to make the `linkTitle` and `title` include "AWS.

I plan to add more subsections with different use cases, so it wont be exclusively about AWS. Do you think we can keep the title as it is now or would it be better to be specific now and generalize later?

* The warning in the end seems important and should ideally be shown in the top of the article.

I'll move the warning right below the Inject access key as values title, as it is only relevant for that section.

I plan to add more subsections with different use cases, so it wont be exclusively about AWS. Do you think we can keep the title as it is now or would it be better to be specific now and generalize later?

You can adapt the titles then with those changes.


AKI games/

could this work with the AKI wcw/wwf games?

e AKI wcw/wwf games could potentially work with the online gaming platforms mentioned in the search results, such as Poki and CrazyGames, where you can find a variety of free online games. These platforms offer a wide selection of games in different genres like action, sports, puzzles, and more, which could complement the AKI wcw/wwf games. While the specific compatibility of the AKI wcw/wwf games with these online platforms is not explicitly mentioned in the search results, you can explore the games available on Poki and CrazyGames to see if they align with the style and gameplay of the AKI wcw/wwf games.

Recompiling a specific game is something to be done by a user of this tool. I don't know if a given game works until somebody tries it.


[5.2] Ability to disable attribute name beautifying in validation message

When using Validator to validate input parameters like "resURL", 'FTPhost" etc. it doesn't make sense to beautify them in validation messages, because it will look like "The res u r l format is invalid." or "The f t p host format is invalid.". If these messages are only saved to log file you probably won't find the issue quickly, because you're looking for string "resURL".
This pull request ads ability to disable beautifier by calling disableAttributeBeautifier() on validator object. After that original attribute name will be used and message will look like "The resURL format is invalid."

This is extremely useful when validating arrays, currently you may end up with something like:

The products.0.modifier options.0.modifier option hid is required

I actually believe the method should check if the attribute name has dots and return the attribute as it is without beautifying:
return str_contains($displayableAttributeName, '.') ? $attribute : $displayableAttributeName;

Indeed this is useful however, I would make sure this can work globally or per-attribute.

I would suggest just defining attribute names in your validation language file. There is no need for additional configuration on the object itself.

@taylorotwell
Makes sense, but it looks like an overhead if original attribute names are suitable for me. If I have a lot of such attributes, I must define name for each of them. Isn't just disabling beautifier (by calling method or setting up config value) an easier and cleaner way?


The Model Weight cannot be downloading now.

Hello, I want to try this model with the weight  that you have trained . But I found that the url of model  weight cannot work

https://drive.google.com/file/d/138D2IVc5Z4x1JAKA2WmRf1yhHbxd8Hvk/view?usp=sharing


Fix #73

Description
--Your description here--
Related issue (if applicable): fixes #73
Checklist

[x] The code change is tested and works locally.
[x] tests pass. Your PR won't be merged unless tests pass
[x] There is no commented out code in this PR

LGTM!


Way to Hide/Show Indicator

Is there a way to hide or show the progress indicator? I prefer to hide it coz even when my resources are local, the indicator is showing.

Hi,
You could subclass the SlideshowView and override the show/hide progress indicator methods to do nothing.


Fixes outstanding broken unit tests from technical uplift.

A mix of fixes:

class variables not mocked (mostly validators)
invalid types used
nested Application context calls failing
command objects not added to BindingResult objects

To trigger running of unit tests, use gradle clean build

@obrienben @hannakoppelaar  All test cases passed to me as well. I think it's OK with me to merge this.


Allow revert changes from imodel timeline

Revert timeline changes
At present, the sole method to reverse a defective changeset is to remove it from the iModel hub, which can lead to numerous side effects. A preferable approach would be to reverse the changeset in the timeline and introduce it as a new changeset. Although this method remains intrusive and necessitates a schema lock, it is safer because it allows for the reversal to restore previous changes, ensuring that nothing is permanently lost from the timeline.
IModelDb.revertAndPushChanges() Allow to push a single changeset that undo all changeset from tip to specified changeset in history.
Some detail and requirements are as following.

When invoking the iModel, it must not have any local modifications.
The operation is atomic; if it fails, the database will revert to its previous state.
The revert operation necessitates a schema lock (an exclusive lock on the iModel) because it does not lock each individual element affected by the revert.
If no description is provided after a revert, a default description for the changeset will be created and pushed, which releases the schema lock.
Schema changes are not reverted during SchemaSync, or they can be optionally skipped when SchemaSync is not utilized.

itwinjs-core: https://github.com/iTwin/itwinjs-core/pull/7112

/azp run imodel-native


proxy: Backport "Make NACK cancel the WaitGroup and pass NACK detail in ProxyError"

This change is

test-me-please

test-me-please

Looks like the tests got stuck:
18:16:20 K8sValidatedChaosTest
18:16:20 /home/jenkins/workspace/Cilium-PR-Ginkgo-Tests-Validated/src/github.com/cilium/cilium/test/ginkgo-ext/scopes.go:341
18:16:20   Endpoint can still connect while Cilium is not running
18:16:20   /home/jenkins/workspace/Cilium-PR-Ginkgo-Tests-Validated/src/github.com/cilium/cilium/test/ginkgo-ext/scopes.go:373
18:16:20 ------------------------------
18:16:20 K8sValidatedUpdates
18:16:20   Updating Cilium stable to master
18:16:20   /home/jenkins/workspace/Cilium-PR-Ginkgo-Tests-Validated/src/github.com/cilium/cilium/test/ginkgo-ext/scopes.go:373
18:54:39 Sending interrupt signal to process
18:54:39 Sending interrupt signal to process
18:54:43 Terminated

test-me-please


Fix double newline on agent stderr

All stderr from agents is currently printed out with an extra newline after every line when running using the CLI. This PR removes that extra newline, which makes multi-line log messages (like stack traces) more readable in my opinion.
Before:

After:

perfect :) thanks for fixing this.


pre_test_results BIRD-SQL

Hi,
Like BugMaker-Boyan, I'm super grateful that you have added the BIRD-SQL results -- it's definitely the best benchmark in Text-to-SQL right now.
I'm strapped for compute at the moment (aren't we all), and don't think I can afford to run the pre_test_result generation phase.
I want to check that the url below, contains the pre_test_results you used to Bird-SQL.
https://github.com/AlibabaResearch/DAMO-ConvAI/blob/main/bird/llm/exp_result/turbo_output_kg/predict_dev.json
If they are not the correct pre_test_results, I was wondering if you could release the pre_test_results you originally generated, similar to the results/graphix_result.txt for Spider dev?
I'm excited to see what you and your team do next!

Hi,
The results/graphix_result.txt  was used for the detailed experiments in Spider Dev. We did not run much experiments in BIRD and just got the pre_test_result via GPT-4. Please refer run_for_bird.sh to produce the pre_test_result via GPT-4 with following commands:
python ask_llm.py \
--openai_api_key $1 \
--model gpt-4 \
--question ./dataset/process/BIRD-TEST_SQL_7-SHOT_EUCDISQUESTIONMASK_QA-EXAMPLE_CTX-200_ANS-4096/ \
--db_dir ./dataset/bird/databases

We have uploaded the pre_test_result in results/QUESTIONMASK_GPT-4_for_bird.txt.

Thank you will do!


Track written SAI bytes via SensorsRegistry

Track SAI written to disk bytes both from Memtable and SSTable flushes. Please note that unlike other sensors, there is no tracking per request. Rationale:

For rate limiting purposes, the write bytes would suffice as they correlate with the SAI bytes to write. Assumption here is main use case for tracking SAI bytes is autoscaling - not rate limiting. That doesn't mean we cannot consider rate limiting async SAI operations, it is just outside the customer request lifecycle.
SAI operations can happen outside the write request, if the SAI is created for existing tables, compaction, etc.
While it is possible to get the in memory, memtable SAI size, it would complicate calculation of effective written bytes when flush kicks in as the in-memory and on-disk SAI data structure seem to occupy different real estate bytes. Avoiding double counting would be challenging.

For reference only: https://github.com/datastax/cassandra/pull/1007


If you reduce numItems to just one or a few this is a fun little gravity simulator.

Make the emojis interact with each other and you could get a whole emoji solar system going.

Hi Tim! Yah that's totally possible with small numbers of emoji. Without fancier algorithms, making the emoji interact with each other gets slower in proportion to the square of the number of emoji, so wouldn't work with the default counts though.


Can't use user events from React Native Testing Library since Tamagui elements won't fire the correct events

Current Behavior
While testing my components I am trying to use user events https://callstack.github.io/react-native-testing-library/docs/user-event
// This wont work
const user = userEvent.setup();
await user.press(button);

// This works!
fireEvent.press(button);

I am trying to use user event because it resembles the user interaction, I've opened an issue on RNTL github but they believe the issue might be on this side and since Tamagui codebase is complex they couldn't figue this out, here's the link to the comment I've made https://github.com/callstack/react-native-testing-library/issues/1566#issuecomment-2087058533
Expected Behavior
user event should trigger as expected
Tamagui Version
^1.89.29

Platform (Web, iOS, Android)
All

Reproduction
import { render, screen } from "@testing-library/react-native";
import { TamaguiProvider } from "tamagui";

import MyComponent from "../myComponent";
import { config } from "../tamagui.config";

describe("MyComponent", () => {
  it("Check all checkboxes and see the agree button get enabled", () => {
    render(
      <TamaguiProvider config={config}>
        <MyComponent />
      </TamaguiProvider>,
    );

    // All good here, it selects fine
    const checkbox1 = screen.getByTestId("terms-1");
    const checkbox2 = screen.getByTestId("terms-2");
    const checkbox3 = screen.getByTestId("terms-3");
    const checkbox4 = screen.getByTestId("terms-4");

    const user = userEvent.setup();
    await user.press(element);

    // Nothing happens
    user.press(checkbox1);
    user.press(checkbox2);
    user.press(checkbox3);
    user.press(checkbox4);

    // This is the way Tamagui handles the disabled state
    expect(screen.getByRole("button")).toBeEnabled;
  });
});

System Info
System:
    OS: macOS 14.4.1
    CPU: (12) arm64 Apple M2 Pro
    Memory: 71.98 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.11.0 - ~/.nvm/versions/node/v20.11.0/bin/node
    Yarn: 4.0.1 - ~/.nvm/versions/node/v20.11.0/bin/yarn
    npm: 10.5.0 - ~/WebstormProjects/ppa-mobile/node_modules/.bin/npm
    pnpm: 8.15.4 - ~/Library/pnpm/pnpm
    Watchman: 2<IP_ADDRESS> - /opt/homebrew/bin/watchman
  Browsers:
    Chrome: 124.0.6367.118
    Edge: 124.0.2478.67
    Safari: 17.4.1
  npmPackages:
    @aptabase/react-native: ^0.3.9 => 0.3.9
    @babel/core: ^7.20.0 => 7.24.3
    @babel/preset-typescript: ^7.24.1 => 7.24.1
    @clerk/clerk-expo: ^0.20.5 => 0.20.10
    @date-fns/utc: ^1.2.0 => 1.2.0
    @dev-plugins/react-query: ^0.0.5 => 0.0.5
    @expo-google-fonts/sofia-sans-extra-condensed: ^0.2.3 => 0.2.3
    @expo-google-fonts/work-sans: ^0.2.3 => 0.2.3
    @gorhom/bottom-sheet: ^4.6.1 => 4.6.1
    @hookform/resolvers: ^3.3.4 => 3.3.4
    @react-native-async-storage/async-storage: 1.21.0 => 1.21.0
    @sentry/react-native: 5.19.1 => 5.19.1
    @shopify/react-native-skia: 0.1.221 => 0.1.221
    @supabase/supabase-js: ^2.39.6 => 2.39.8
    @tamagui/animations-css: ^1.90.2 => 1.92.1
    @tamagui/config: ^1.89.29 => 1.92.1
    @tamagui/core: ^1.90.2 => 1.92.1
    @tamagui/create-theme: ^1.90.2 => 1.92.1
    @tamagui/list-item: ^1.90.2 => 1.92.1
    @tamagui/lucide-icons: ^1.90.2 => 1.92.1
    @tamagui/metro-plugin: ^1.89.29 => 1.92.1
    @tamagui/react-native-svg: ^1.90.2 => 1.92.1
    @tamagui/toast: ^1.90.2 => 1.92.1
    @tanstack/eslint-plugin-query: ^5.20.1 => 5.28.6
    @tanstack/react-query: ^5.21.7 => 5.28.6
    @tanstack/react-query-devtools: ^5.21.7 => 5.28.6
    @testing-library/jest-native: ^5.4.3 => 5.4.3
    @testing-library/react-native: ^12.4.5 => 12.4.5
    @types/jest: ^29.5.12 => 29.5.12
    @types/jsonwebtoken: ^9.0.5 => 9.0.6
    @types/react: ~18.2.45 => 18.2.69
    @types/react-test-renderer: ^18.0.7 => 18.0.7
    @wuba/react-native-echarts: ^1.2.5 => 1.3.0
    ably: ^1.2.49 => 1.2.50
    axios: ^1.6.8 => 1.6.8
    burnt: ^0.12.2 => 0.12.2
    change-case: ^5.4.3 => 5.4.3
    date-fns: ^3.3.1 => 3.6.0
    echarts: ^5.5.0 => 5.5.0
    env-cmd: ^10.1.0 => 10.1.0
    eslint: ^8.56.0 => 8.57.0
    eslint-config-universe: ^12.0.0 => 12.0.0
    eslint-plugin-testing-library: ^6.2.2 => 6.2.2
    expo: ~50.0.13 => 50.0.14
    expo-application: ~5.8.3 => 5.8.3
    expo-av: ~13.10.5 => 13.10.5
    expo-build-properties: ~0.11.1 => 0.11.1
    expo-constants: ~15.4.5 => 15.4.5
    expo-dev-client: ~3.3.11 => 3.3.11
    expo-device: ~5.9.3 => 5.9.3
    expo-document-picker: ~11.10.1 => 11.10.1
    expo-font: ~11.10.3 => 11.10.3
    expo-image-picker: ~14.7.1 => 14.7.1
    expo-jwt: ^1.7.0 => 1.7.1
    expo-linear-gradient: ~12.7.2 => 12.7.2
    expo-linking: ~6.2.2 => 6.2.2
    expo-notifications: ~0.27.6 => 0.27.6
    expo-router: ~3.4.8 => 3.4.8
    expo-secure-store: ^12.8.1 => 12.8.1
    expo-status-bar: ~1.11.1 => 1.11.1
    expo-updates: ~0.24.12 => 0.24.12
    i: ^0.3.7 => 0.3.7
    jest: ^29.3.1 => 29.7.0
    jest-expo: ~50.0.4 => 50.0.4
    jotai: ^2.7.1 => 2.7.1
    jsonwebtoken: ^9.0.2 => 9.0.2
    mime: ^4.0.1 => 4.0.1
    moti: ^0.28.1 => 0.28.1
    native-notify: ^4.0.0 => 4.0.0
    npm: ^10.5.0 => 10.5.0
    postgres: ^3.4.3 => 3.4.4
    prettier: ^3.2.5 => 3.2.5
    react: 18.2.0 => 18.2.0
    react-dom: 18.2.0 => 18.2.0
    react-hook-form: ^7.51.0 => 7.51.1
    react-native: 0.73.6 => 0.73.6
    react-native-circular-progress: ^1.3.9 => 1.3.9
    react-native-dialog: ^9.3.0 => 9.3.0
    react-native-dotenv: ^3.4.10 => 3.4.11
    react-native-gesture-handler: ~2.14.0 => 2.14.1
    react-native-progress: ^5.0.1 => 5.0.1
    react-native-reanimated: ~3.6.2 => 3.6.3
    react-native-responsive-screen: ^1.4.2 => 1.4.2
    react-native-safe-area-context: 4.8.2 => 4.8.2
    react-native-screens: ~3.29.0 => 3.29.0
    react-native-size-matters: ^0.4.2 => 0.4.2
    react-native-svg: ^14.1.0 => 14.1.0
    react-native-ui-lib: ^7.17.2 => 7.18.3
    react-native-url-polyfill: ^2.0.0 => 2.0.0
    react-native-web: ~0.19.6 => 0.19.10
    react-native-webview: 13.6.4 => 13.6.4
    react-native-youtube-iframe: ^2.3.0 => 2.3.0
    react-test-renderer: 18.2.0 => 18.2.0
    rn-tourguide: ^3.3.0 => 3.3.0
    tamagui: ^1.89.29 => 1.92.1
    typescript: ^5.1.3 => 5.4.3
    vexo-analytics: ^1.3.13 => 1.3.13
    zod: ^3.22.4 => 3.22.4

@mfrfinbox the repro scenario is missing MyComponent source .
The root cause why RNTL User Event is not invoking press event is that in the rendered host components tree, there is no press-related handler (onPress, onPressIn, etc). More interestingly, there is no event handler at all(!), which makes me think how does it work. Perhaps there is some mocking (by Tamagui, or RN) that removes the event handlers but that's just a hint.
See host element tree from the original RNTL issue.

I've update the repro scenario, thanls for pointing this out @mdjastrzebski , also I can make it work like this but it feels very hacky and I would likle to use user events instead if possible:
`import { fireEvent, render, screen } from "@testing-library/react-native";
import { useState } from "react";
import { Button, Checkbox, SizableText, TamaguiProvider, View } from "tamagui";
import { config } from "../tamagui.config";
const MyComponent = () => {
const [allAgreed, setAllAgreed] = useState(false);
const handleAgree = (agreed: boolean) => {
agreed && setAllAgreed(agreed);
};
return (

<Checkbox.Indicator>
X
</Checkbox.Indicator>

Agree

);
};
describe("Reproducible Tamagui issue #2613", () => {
it("Enables button after checking the checkbox", () => {
render(

,
);
const checkbox1 = screen.getByTestId("checkbox-1");
fireEvent.press(checkbox1);

// This is the way Tamagui handles the disabled state I believe
expect(screen.getByRole("button")).not.toHaveProp("pointerEvents", "none");

});
});
`
Additionally if you read the description of the problem there are 2 issues:

Can't select by role see: https://github.com/tamagui/tamagui/issues/2613
User event is not triggered (Something to do how Tamagui is wired under the hood I believe)

Please let me know if you need more info

thanks for the details, I'll check this tommorow
a minimal re-production using Tamagui starters can be very helpful

I also had an issue with using user events from RNTL with Tamagui components. Looks like the issue is caused by the fact that Jest doesn't account for the exports field in package.json and imports index.js instead of index.native.js. I ended up making a custom resolver for Jest as a workaround:
/**
 * Custom Jest resolver
 * @param {string} path
 * @param {import('jest-resolve').ResolverOptions} options
 * @returns {string}
 */
exports.sync = function nativeResolver(path, options) {
  const defaultResolverResult = options.defaultResolver(path, options);

  if (path.startsWith('@tamagui')) {
    return defaultResolverResult.replace('index.js', 'index.native.js');
  }

  return defaultResolverResult;
};

Any updates on this? I'm currently unable to test a user journey due to being unable to check the required checkboxes.
Tried @DimitarNestorov's solution which resulted in:
Test suite failed to run ENOENT: no such file or directory, open<EMAIL_ADDRESS>Anymore information on how you made the custom resolver work?

@Cowner we don't have an import for @tamagui/polyfill-dev. You should be able to modify the resolver to check if the file exists before the return.
  if (path.startsWith('@tamagui') && !path.includes("@tamagui/polyfill-dev") {

@DimitarNestorov could you explain details what your custom resolver does?
Shouldn't that be responsibility of RN Jest preset?

RN Preset export conditions
RN Preset platforms haste maps

I just noticed this commit, updated to 1.100.5, removed the custom resolver and tests ran fine. Can you try updating and seeing if the issue is resolved for you too?

Closing as I believe it's resolved? Lmk if not


Return XML fileSize under tags

Proposed solution
Currently when submitting a XML file, the submitted file is under submission's metadataObjects and it receives the value of tags including: { displayTitle, fileName, submissionType }.
The new implementation of front-end also needs to show the submitted XML file's size.
DoD (Definition of Done)
Submitted XML fileSize is returned together with { displayTitle, fileName, submissionType } under submission>metadataObjects>tags
Testing
Unit/Integration testing

Discussed with @ainoc that this information is irrelevant


Replace Spring item with VS Code under Tools

#sign-off

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-ref-conceptual/toc.yml
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

#sign-off

@rloutlaw can you check this, pls?


Issue with missing directories -- validation and retry required

On many runs I get the following issue printed at the end of this ticket.
The file
"/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/shutil.py", line 264, in copyfile    with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:FileNotFoundError: [Errno 2] No such file or directory: '/Volumes/tvhdd1A/BACKUP/trekview/panos/projects/ucpa-ski/val-thorens/2022-03-02/95-FRVT-4-GS010059/processed/95-FRVT-4-GS010059-trek_view_processed_full_nadir/_preprocessing/FRAME-00121.jpg'

The file FRAME-00121.jpg not found that causes this error does indeed exist on the disk.
I suspect the drive being used sleeps ever so briefly, as this error occurs sporadically on various runs.
Is it possible to add a retry (3 times) on not found error, instead of hard fail, to try and account for this behaviour?
11-Dec-23 08:31:40 [GoPro2GSV] [INFO] =====================GoPro2GSV======================11-Dec-23 08:31:40 [GoPro2GSV] [INFO] extracting images11-Dec-23 08:33:39 [GoPro2GSV] [INFO] video `GS010059.mp4` split into 739 frames, took 113.631578 secondsWarning: End of processing at large atom (LargeFileSupport not enabled) - /Volumes/tvhdd1A/BACKUP/trekview/panos/projects/ucpa-ski/val-thorens/2022-03-02/95-FRVT-4-GS010059/GS010059.mp4Warning: No writable tags set from /Volumes/tvhdd1A/BACKUP/trekview/panos/projects/ucpa-ski/val-thorens/2022-03-02/95-FRVT-4-GS010059/GS010059.mp411-Dec-23 08:33:40 [GoPro2GSV] [INFO] Tagging 739 imagesTraceback (most recent call last):  File "/Users/dgreenwood/Downloads/gopro2gsv/gopro2gsv.py", line 5, in <module>    main(*parse_args())  File "/Users/dgreenwood/Downloads/gopro2gsv/src/__main__.py", line 221, in main    gopro2gsv(args, is_photo_mode, logger)  File "/Users/dgreenwood/Downloads/gopro2gsv/src/__main__.py", line 182, in gopro2gsv    videos = process_into_videos(valid_images, TIMELAPSE_FRAME_RATE, args.max_output_video_secs, output_filepath)  File "/Users/dgreenwood/Downloads/gopro2gsv/src/imagetool.py", line 115, in process_into_videos    valid_images = write_images_to_dir(images, frame_glob.parent)  File "/Users/dgreenwood/Downloads/gopro2gsv/src/imagetool.py", line 166, in write_images_to_dir    shutil.copyfile(path, newpath)  File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/shutil.py", line 264, in copyfile    with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:FileNotFoundError: [Errno 2] No such file or directory: '/Volumes/tvhdd1A/BACKUP/trekview/panos/projects/ucpa-ski/val-thorens/2022-03-02/95-FRVT-4-GS010059/processed/95-FRVT-4-GS010059-trek_view_processed_full_nadir/_preprocessing/FRAME-00121.jpg'

While this can be implemented, it makes more sense to fix the drive issue.


Can I use this for the metaxcan results?

Hi,
I would like to try this for the metaxcan results. If rhoge.gw function has a little more detail on the format of the summary file it requires, it will be useful for the community. For now the help message of the function gives me no information.
Regards
Veera

Hi Veera,
Thanks for showing interesting in our software. Right now the functions expect data and column names to correspond to FUSION output. I can update RHOGE functions to take named arguments indicating the columns of interest to provide more flexibility with analyses from other softwares.
A quick workaround in the meantime would be to relabel the columns for your data to those from FUSION. Specifically, "FILE", "ID", "CHR", "P0", "P1", "HSQ", "TWAS.Z", "TWAS.P". The link above provides a description for each.
Cheers,
Nick


How to add an external java library(.jar) into Bazel build path.

Describe the problem clearly
I follow the rule in Bazel website to add a JAR into Bazel build path, this is my script:
...
android_binary(
...
deps = [
":tensorflow_native_libs",
"//tensorflow/contrib/android:android_tensorflow_inference_java",
":libs/nd4j-api-0.8.0.jar"
],
)
...
but the log says that my JAR is misplaced.
How should I do to add a JAR library into build path or do I miss out something ?
Thanks,
Source Code / Logs
ERROR: /home/bob/deep_learning/tensorflow/tensorflow/examples/android/BUILD:76:12: in deps attribute of android_binary rule //tensorflow/examples/android:tensorflow_demo: file '//tensorflow/examples/android:libs/nd4j-api-0.8.0.jar' is misplaced here (expected no files).
ERROR: Analysis of target '//tensorflow/examples/android:tensorflow_demo' failed; build aborted.

This question is more about use of bazel than TensorFlow, so I'm going to close it out and recommend that you look into bazel documentation/support.
That said, perhaps you're looking for the java_import rule

That is a correct answer. Thanks a lot ~


Format Document replaces raw

Description
When using "Format Document" (Shift+Alt+F) in VS Code, <style> tags under <mj-raw> will get converted to <mj-style> tags.
Code sample
<mjml>
  <mj-head>
    <mj-style>
    .main-outside { border: 1px solid red }
    </mj-style>
    <mj-raw>
      <!--[if mso]>
      <style>
      .main-outside { border: none !important }
      </style>
      <![endif]-->
    </mj-raw>
  </mj-head>
</mjml>

This gets Formatted as:
<mjml>
  <mj-head>
    <mj-style>
      .main-outside {
        border: 1px solid red
      }
    </mj-style>
    <mj-raw>
      <!--[if mso]>
      <mj-style>
      .main-outside { border: none !important }
      </mj-style>
      <![endif]-->
    </mj-raw>
  </mj-head>
</mjml>

Specifications

VS Code version: 1.67.0
MJML extension version: 1.0.5
Operating system and version: Windows 10

Could you check what default formatter you're using?
Maybe this could help (vscode settings.json)
  "[mjml]": {
    "editor.defaultFormatter": "mjmlio.vscode-mjml",
  }

It's already:
    "[mjml]": {
        "editor.defaultFormatter": "mjmlio.vscode-mjml"
    },


Simpligy Go code

a -= x instead of a = a - x.

Codecov Report

Merging #1148 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff           @@
##           master   #1148   +/-   ##
======================================
  Coverage    62.6%   62.6%
======================================
  Files         184     184
  Lines       10247   10247
======================================
  Hits         6415    6415
  Misses       3033    3033
  Partials      799     799

Impacted Files
Coverage Δ

pkg/action/otp.go
58.97% <100%> (ø)
:arrow_up:

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 56cf90b...f2844c7. Read the comment docs.


[OP] Mean

Description
Mean lowering for M5 native trace. Mean is used as part of decomposed layer norm.
Checklist

[x] PR's title starts with a category (e.g. [BUGFIX], [MODEL], [TUTORIAL], [FEATURE], [DOC], etc)
[x] Changes are complete (i.e. I finished coding on this PR)
[ ] All changes have test coverage
[ ] Code is well-documented

cc @awslabs/raf-reviewer @zachzzc

Thanks @anadeem2 @zachzzc


feat(modelreg): New Media Type SavedModel

Description
TODO:
[ ] Decide on class name and type name for the type with Shawn
This PR adds a new data_type called SavedModel (name pending) which is responsible for serialization and deserialization of python model objects to a format compatible with our Weave/Artifact ecosystem. The design exposes a _IModelAdapter base class which we can subclass to create adapters for each model flavor - for example: _TensorflowKerasSavedModelAdapter. The code itself has docs describing all the mechanics.
User code is basically:
sm = SavedModel(pytorch_obj) # this is the new line!
art.add(sm, "model")
run.log_artifact(art)

# ....

sm = art.get("model")
pytorch_obj = sm.model_obj() # returns the plain pytroch model.

The design of this data type allows us to incrementally add new adapters for various flavours. Moreover, we support both single file and folders. The user can optionally pass a file as well:
sm = SavedModel("path/to/torch.pt")

Note: for real Model Registry use cases, we expect that users will use higher level apis (Vish is working on this) which will call this class under the hod. Only advanced users would ever actually use this class directly - since it still relies on the somewhat verbose artifact adder pattern.
Testing
New unit tests testing low level and higher level apis
Checklist

Name PR "[WB-NNNN][WB-MMMM] Add support for..." similar to entries in CHANGELOG.md
Include reference to internal ticket "Fixes WB-NNNN" (and github issue "Fixes #NNNN" if applicable)

Nit: description says sm = SavedModel(pytorch_obj) is OK. I think this needs to change to SavedModel.init(pytorch_obj).


Parse Indonesian and Portuguese translation with 2 characters

closes #76

@mico could you help fix the conflicts and merge this?
In the future, could you directly create branches in this repository instead of from a fork? Then others can also help fix. Thanks.


Increase Access Token on management.azure.com

Hi,
The document describes how to set this policies but it does not describes fully on what authentication they can be used. For example we have App registration that is impersonating user account to access Azure APIs (management.azure.com). We issue access token that can be used by the app registration. If I set policy for Access token lifetime for the app and I issue token to resource management.azure.com the access token is still 1 hour. If I change the resource to the app registration id the access token lifetime is the one set by the policy. Is there a way that I can set a policy that will work for resource management.azure.com so the access token for it is higher than 1 hour? If it is not possible this seems big lack of capability for this feature.

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

ID: 10b999ad-7029-0ad0-754e-00437e7ae571
Version Independent ID: a1994e2e-cac8-8467-39b1-2b2d707c032c
Content: Configurable Azure AD token lifetimes - Microsoft identity platform
Content Source: articles/active-directory/develop/active-directory-configurable-token-lifetimes.md
Service: active-directory
Sub-service: develop
GitHub Login: @rwike77
Microsoft Alias: ryanwi

@slavizh Thank you for making us aware of this scenario. I will have an engineer investigate this issue and provide feedback as appropriate.

Thanks @Mike-Ubezzi-MSFT to give a context we are trying to do this: https://docs.microsoft.com/en-us/powershell/partnercenter/multi-factor-auth?view=partnercenterps-3.0#azure
We need to use refresh token to issue access token which we can use to automate with Azure PowerShell. Unfortunately 1 hour access token is not enough as we have workflows that run more than 1 hour and because of this issue they get interrupted.  All this is due to Microsoft require us as partner to enable security defaults (https://docs.microsoft.com/en-us/partner-center/partner-security-requirements#security-defaults) which will block user authentication for automation. Just using simple Service Principal is not an option for us as that one cannot be assigned AdminAgent (Partner Center AOBO) access.

Hi Slavizh, have you already tried changing the access token lifetime through Powershell? https://docs.microsoft.com/en-us/azure/active-directory/develop/registration-config-change-token-lifetime-how-to
You should be able to change the max time to one day instead of one hour.

Hi @MarileeTurscak-MSFT Yes, I already mentioned that when opening this issue. I have set policy on both organization level (default), on app level and even on service principal level. When you try to get access token via refresh token the only way you get access token lifetime according to the policy is when the resource value is equal to the application id. In my case that is useless as I need to use the token to authenticate to Azure PowerShell which requires the resource value to be https://management.azure.com. So the policy works only for some certain scenarios which to me are very limited and not documented or documentation is not correct and does not mention specifically that that the policy is usable only for certain scenarios. In any case I cannot understand why the policy would limit only when resource is the application id.

Thanks for the context, @slavizh . I've reached out to someone on that team to see if there's a way to get around the problem you are describing.
I appreciate your patience and detail in describing the issue!

Please see the web API example. You must apply the policy to the resource, not the client app.

Hi @MarileeTurscak-MSFT  I am not sure if the issue is fully understood. We are using the following instructions:
https://docs.microsoft.com/en-us/partner-center/develop/enable-secure-app-model#scope
They basically describe the creation of Azure AD application (with service principal) and using Azure AD User account that has specific permissions. The Azure AD app impersonates that user and gets a refresh token. From Azure AD docs I think this corresponds to :
https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-oauth2-on-behalf-of-flow
With that Azure AD refresh token we can issue new refresh token and/or access token. Not that when making the request you have resource property in the body request. In that place we put URL like https://management.azure.com/ in order to get a token that is valid to login to Azure Resource Manager API. The resource value could be URL to Graph API or to Key Vault API. I have applied Azure AD policy like described in this document (https://docs.microsoft.com/en-us/azure/active-directory/develop/registration-config-change-token-lifetime-how-to) to the Azure AD organization, to the App registration and even to the Service Principal. As long as my resource is URL like https://management.azure.com/ the access token is valid for 1 hour only. If for resource I put the application ID of the app registration than the token is valid for the time specified in the policy. In the same document  (https://docs.microsoft.com/en-us/azure/active-directory/develop/registration-config-change-token-lifetime-how-to) such behavior is not clearly described so I am asking:

Is this limitation of these policies where they can apply only when the access token is issued to resource the application id of the app?
If so why it is not documented clearly?
Is there a way that I get get the policy applied and access token extended when resource is https://management.azure.com/ for example?
Are there any plans that the limits of this features are lifted so you can extend the access tokens lifetime when you use on behalf of user authentication workflow with URL resources like https://management.azure.com/ ?

I am not an expert on Azure AD but I find it odd that so far there is nobody that can answer the question and understand the issue.
We are partner that does a lot of automation on Azure and the above scenario is the only scalable way we can use to automate but some of our automation (like Azure resources deployments via ARM Templates) take more than 1 hour so we need access token that can last at least 6 hours for example.

@slavizh - I own authentication, please don't open new issues against unrelated teams.
You mention that you've applied the policy "to the Azure AD organization, to the App registration and even to the Service Principal.".
Can you paste the policy that you created here? I will reach out to see if ARM is somehow exempted from this policy, but I am not aware of such an exemption.

It seems I have pasted the wrong link in previous post. This is the link I have used: https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-configurable-token-lifetimes to configure the policy
Example policy I have used:
$policy = New-AzureADPolicy -Definition @('{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"23:00:00"}}') -DisplayName "Polixy" -IsOrganizationDefault $false -Type "TokenLifetimePolicy"

I have created the same policy with IsOrganizationDefault to true but still none of the policies I have created didn't exceed the access token lifetime for my scenario with resource being the Azure management URL, only when it is application id.

Thanks - can you also paste the PS you used to apply this to the various levels of your directory, and the URL you're using to request the token? How you are validating the token lifetime would also be good.
Thanks,
Hirsch

Apply on SP level:
$sp = Get-AzureADServicePrincipal -Filter "DisplayName eq '<service principal display name>'"
Add-AzureADServicePrincipalPolicy -Id $sp.ObjectId -RefObjectId $policy.Id

Apply on Application level:
$app = Get-AzureADApplication -Filter "DisplayName eq 'app name'"
Add-AzureADApplicationPolicy -Id $app.ObjectId -RefObjectId $policy.Id

For this I  was using the Azure AD Preview model.
To issue the access token I am using the following cmdlet from Partner Center module:
$azApplicationSecretSecure = ConvertTo-SecureString -String $azApplicationSecret -AsPlainText -Force
        $azCredential = New-Object System.Management.Automation.PSCredential ($azApplicationId, $azApplicationSecretSecure)
        $azRefreshTokenSecure = ConvertTo-SecureString -String $azRefreshToken -AsPlainText -Force

        $azureTokenParameters = @{
            RefreshToken = [System.Runtime.InteropServices.Marshal]::PtrToStringAuto([System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($azRefreshTokenSecure))
            Scopes = 'https://management.azure.com/user_impersonation'
            Credential = $azCredential
            ApplicationId = $azApplicationId
            TenantId = $tenantId
            ServicePrincipal = $true
            ErrorAction = 'Stop'
        }
        $azureToken = New-PartnerAccessToken @azureTokenParameters

But to be sure that there is nothing specific in the cmdlet that is causing the token to not be issued for longer than 1 hour I have tried also this:

$TokenEndpoint = {https://login.windows.net/{0}/oauth2/token} -f $tenantId

$Body = @{
        'resource'= "https://management.azure.com/"
        'scope' = 'https://management.azure.com/user_impersonation'
        'client_id' = $clientId
        'refresh_token' = $refreshToken
        'grant_type' = 'refresh_token'
        'client_secret' = $clientSecret
}

$params = @{
    ContentType = 'application/x-www-form-urlencoded'
    Headers = @{'accept'='application/json'}
    Body = $Body
    Method = 'Post'
    URI = $TokenEndpoint
}

$token = Invoke-RestMethod @params

In the above scenario token is 1 hour. If I replace the resource value with $clientId Azure AD Policy is honored and token is valid for longer according to the policy.

Hi @slavizh - I can't repro this.
I followed the docs and did the following:
$policy = New-AzureADPolicy -Definition @('{"TokenLifetimePolicy":{"Version":1,"AccessTokenLifetime":"23:00:00"}}') -DisplayName "Polixy" -IsOrganizationDefault $false -Type "TokenLifetimePolicy"
$sp = Get-AzureADServicePrincipal -ObjectId f4382e16-502f-44c9-ac2d-0922136fde2e // this is the management.azure.com app ID
Add-AzureADServicePrincipalPolicy -Id $sp.ObjectId -RefObjectId $policy.Id
Then requested a token for ARM and got a token with &token_type=Bearer&expires_in=82799&scope=https%3a%2f%2fmanagement.azure.com%2fuser_impersonation
This has the extended lifetime.
Please ensure you have applied the policy to the resource as documented in the Web API section.

Can you provide the web request body to issue token? Scope being Azure Management url but also the resource needs to be the management url otherwise you cannot use it in connect-azaccount and login.

Also you have comment // this is the management.azure.com app ID
Is there some default app in every Azure AD that corresponds to url management.azure.com?

Also you have comment // this is the management.azure.com app ID
Is there some default app in every Azure AD that corresponds to url management.azure.com?

Yes, it's that one. That's how Azure AD works - apps are registered once and used across tenants.
Scope and resource are identical - it's literally impossible to have scope Foo, and resource not Foo.

Hmm. And how I can find these default apps. For example I would assume there are such default apps for key vault url and graph url?

My Azure AD cannot find this app:
PS C:\WINDOWS\system32> $sp = Get-AzureADServicePrincipal -ObjectId f4382e16-502f-44c9-ac2d-0922136fde2e
Get-AzureADServicePrincipal : Error occurred while executing GetServicePrincipal
Code: Authentication_Unauthorized
Message: User was not found.
RequestId: e88c7b86-4fc8-4fe7-8caf-3ed7363eb595
DateTimeStamp: Fri, 07 Feb 2020 20:49:44 GMT
HttpStatusCode: Forbidden
HttpStatusDescription: Forbidden
HttpResponseStatus: Completed
At line:1 char:7

Sorry, that's the object ID in my tenant. Use the app ID - 797f4846-ba00-4fd7-ba43-dac1f8f63013
You can find the whole list in AAD.portal.azure.com under enterprise applications, filtered to Microsoft applications.

ok. I was aware of these but because there are so many I never figured out which is the one corresponding to management.azure.com. They do not have any description nor a property that matches the url. For example if we just look for graph - there are 4 different applications that come in. which is which?

Feedback is heard and understood, thank you.

If you give me the name of the app corresponding to management.azure.com. I will try to set the policy for it and test if it works. I wonder why when I set the policy at organization level was not working for those apps as well.

It's "Microsoft azure management".
Can you share how you set it to apply at the org level?

The same example as above but with IsOrganizationDefault set to $true

I did some testing. I have managed to make it work but with some conditions that we were not aware when Microsoft (Partner Center) introduced us with this option instead of using user credential as account for automation. I will try to explain the details here so you are just aware of this although I do not expect that there is a fix for the problem besides the one I will mention:
We are CSP. As CSP via Partner Center Portal/API we can create customers (Azure AD tenants) and create Azure subscriptions for them. By default when we do that we have Global Administrator access in Azure AD and Owner access on the Azure subscriptions via group in our partner AAD called AdminAgents. Up until recently we could place a user account in that group and use it to automate actions across multiple tenants. With some of the recent changes happening around being forced to enable Security Defaults we will not be able to do that because any user account will require MFA enabled to authenticate. Because of that the above workflow of authentication was offered to the partners to Authenticate to Partner Center API and Azure. Partner Center API works fine with it because we provide refresh token but also we do not have long running tasks for it. With Azure the workflow is similar but instead of providing refresh token for Connect-AzAccount we have to provide access token. As from the above issue the access token is limited to smaller time window than refresh token and does not allow you to renew when it reaches expire time (you have to use refresh token). For that reason I have started to look into Azure AD policies (although I am not Azure AD expert so some of these things are new to me although I am aware of some of the basics). With that said when we have to issue access token to connect to Azure we actually have to reach to the AAD of the customer tenant. Because of that the app registration and the user we impersonate (which has access to adminagents group) are located in our partner Azure AD but the token is issued against the customer AAD. Now that I know things you have shared about the Azure AD policies I have figured out that in order this to work the policy needs to be applied on the enterprise application in the customer AAD in order to work. So I have did that and it works but that does not completely solves our problem due the following things:

If we need longer access token we actually need to apply the policy on the customer AAD, which means that will affect customer authentication to Azure as well.
We will have to apply this to multiple customers which creates a lot of management for us when you have over 100 customers.
Although we manage the customers and provide them support, etc. we still have to have approval for such changes and for some customers such kind of policy might not be something they will approve
In case we have a need to extend the access token for other services like Key Vault and Graph (Azure AD) this means more of the above problems.
From what I understand applying the Azure AD policy to each customer is our only option but as you are expert on this do you see some other options that allows us to extended the access token lifetime by just applying configuration in our partner Azure AD?

Also another problem was that the application on the customer tenant that I have tried this had different name. For example it is called Windows Azure Service Management API:

when you drill down the name changes to Microsoft Azure Management. Seems there is some inconsistency in the experience which is very confusing.

Also I would assume the app for key vault api is called Azure Key Vault? For the graph (Azure AD) is it Microsoft Graph?
If you confirm that the above methods are the only one I think we need to turn to the team supporting Az PowerShell module either to introduce login with refresh token so they can automatically issue new access token when expires or at least when you re-login with new access token existing commands that run to grab the new token rather using the old one. The latter is confirmed as we have implemented workaround where we create a background workflow which automatically issues new access token and re-logins to Azure but commands that are still running does not pick the new token and fail. This is of course specific to Az PowerShell module but I just wanted to let you know in case it is interesting for you.
Thank you for looking into this though. At least I have found how the policies exactly work in those specific scenarios.

One last question do you know what is the application Microsoft Azure PowerShell used for?

Thanks @slavizh , that context helps quite a bit.  I can understand why the basic directions did not help very much.

Also I would assume the app for key vault api is called Azure Key Vault?

Yes, that's correct.

For the graph (Azure AD) is it Microsoft Graph?

Unfortunately no.  Graph (Azure AD) would be the AAD Graph, while another app called Microsoft or MS Graph would be the Microsoft Graph (graph.windows.net vs graph.microsoft.com).

One last question do you know what is the application Microsoft Azure PowerShell used for?

It's the client ID for the app you're using when you run "connect-azuread" and similar, I believe. It's the "Azure powershell" app (since every auth request has to be in the context of a user).

From what I understand applying the Azure AD policy to each customer is our only option but as you are expert on this do you see some other options that allows us to extended the access token lifetime by just applying configuration in our partner Azure AD?

You are correct - policy in your tenant only applies to your tenant, and doesn't follow your user accounts across tenants.  There is no way to set configure the policy/behavior of someone else's tenant without doing it in that tenant.

when you drill down the name changes to Microsoft Azure Management. Seems there is some inconsistency in the experience which is very confusing.

Agreed - I sent this feedback to the various teams involved, and bugs are being opened on this.
For your general issues with Secure Defaults, I've sent this thread to our colleague who owns it so your feedback makes it to them.  You can configure this so it's less painful to use, e.g. by exempting your automation from requiring MFA.
I think your general plan is correct - either build your own tooling that uses a refresh token, work with the Azure PowerShell team to have their scripts natively support refresh tokens, or exempt your accounts from requiring MFA.  Please let me know if you have additional questions, and don't hesitate to reach out to whoever at Microsoft is managing your relationship as a CSP partner.

Thanks @hpsin for the help! I think the overall issue should be resolved at Az PowerShell module so we can use for our automated scenarios. Having MFA enabled on our AAD for all accounts makes us more secure and of course provide higher security for our customers. In case you can provide some help of convince the Az PS team to either provide login with refresh token or at least the commands to always take the latest access token when authenticated would be nice. I have commented on already opened issue for them here: https://github.com/Azure/azure-powershell/issues/6585 . That is probably the best solution as extending the access token is security risk.
You can close this issue at anytime you find it suitable. I am assuming you might need it open until some documentation is approved.

#please-close


flutter/plugins Windows tests need to run on postsubmit as well

See comment in https://github.com/flutter/flutter/issues/77175#issuecomment-797009292

Actually, looking now it appears the existing Windows tests aren't running post-submit, so if we could fix that at the same time that would be great.

The PR in that issue doesn't seem to have addressed that part of the issue, since I'm not seeing any LUCI tasks in the GitHub UI on postsubmit.

This is about adding the LUCI repo status check for plugins to block the tree when the builder fails.

Not just to block the tree, but do that we can see the task when showing the list of tasks for submitted PRs. Currently post-submit runs are invisible from the GitHub UI, which is what we are interacting with.

Not sure if Github itself has support to show post-submit tasks. Would you mind sharing an example?

https://github.com/flutter/plugins/runs/2854430801
See also https://github.com/flutter/plugins/commits/master and click on any of the checkmarks or red Xs.

This was fixed a while ago.


Links have mandatory domain extension

For example, if we use the IP address we have some weird behaviour.
This does not work:
http://<IP_ADDRESS>/test/home.action
this, instead, works:
http://<IP_ADDRESS>.com/test/home.action

Partially fixed: domain extension is no longer required, but IP addresses do not work yet. A plugin will be added for this sometime in the future.

Hi there, I just tried the following link in the demo https://github/SoapBox/linkifyjs/ and it doesn't make it clickable. Was the change in 2.0 only specifically for http://localhost/?


Getting Error while running on AKS Pods

Hi,
I am trying to run this plugin on Azure Kubernetes Pods, while it works perfectly fine on master node but it failed on pods with below error
Using local directory /home/jenkins/workspace/acr_build_task/. as docker build source. Compressing local directory into /home/jenkins/workspace/acr_build_task/./a0880edd-d46a-4a22-a9b1-9c2f444241fe.tar.gz. Compressing ignore rules a0880edd-d46a-4a22-a9b1-9c2f444241fe.tar.gz. ERROR: No such file or directory ERROR: ACR Quick Task ended with HasError

@aysahu Would you mind showing your pipeline script?

Thanks for your reporting, I am looking into this one! @aysahu

Hi @aysahu I have sent out a pull request, would you like to download the hpi file to have a try?

Thanks alot, it is working.


Hover-tip on the black spot

The spot on the bottom right seems to do nothing. A hover-tip would help.

It's pagination. Enhancement. Good one @fernando-carto


Adding National Engineering School of Gabes (ENIG)

Adding National Engineering School of Gabes (ENIG)

@Jou-Haina I am sorry for a delay with processing your request. Could you please provide us with:

the school official website URL
the school street address, including city and country
an URL of a page on the official website where the school offers an IT-related long-term (>1 year) course
a proof, which shows that the school recognizes the domain you are submitting as an official email domain for the students.

You can provide us with any of the following as the proof:

A copy of instruction (a hard-copy or electronic one) given to you by the school that tells you to use an email address in this email domain
An URL of a page at the official school website that says that students use this email domain
A reference to a recognized journal where an article was published by someone from the school, with explicit affiliation to the school, and e-mail address from the email domain
A WHOIS data that link the email domain to the school somehow
A copy of official letter from the school representative saying that the school provides e-mail addresses in this domain to the students
Anything else that can prove this fact in similar way, i.e. can be verified independently.

@Jou-Haina You might miss my previous comment. Please react.

@Jou-Haina I am sorry, this request remains unanswered for a while. I have to close it without merging. Please reopen and comment if you have an update regarding the aforementioned issue. Thank you for your understanding!


When Running your code, I got this error as follows:

In the settings , I changed
data_settings:
client: IRIS #enter all the clients separated by commas
network: "KOERI" #* for all stations
station: "" # for all stations
channel: BHZ,BHE,BHN #
locations: {"","00"} #List all locations, e.g "","00"
and
Define the geographical region
mnlong: 25 #minimum longitude
mxlong: 45 #maximum longitude
mnlat: 36 #minimum latitude
mxlat: 45 #maximum latitude
rf_data.get_stnxml(network=network, station=station)
File "C:\Users\pc\Desktop\stadium\STADIUM-Py-master\rfsks_support\download_large_data.py", line 82, in get_stnxml
inventory.write(self.inventoryfile, 'STATIONXML')
UnboundLocalError: local variable 'inventory' referenced before assignment
2022/09/27 18:22:44|INFO|
2022/09/27 18:22:44|INFO| Obtaining events catalog
2022/09/27 18:22:44|ERROR| No data available, exiting...

KOERI data are not available from IRIS.
Please try to change the "input_file.yaml" as follows:
client: KOERI #enter all the clients separated by commas
network: "KO" #* for all stations
This should fix the issue.

Dear  Dr Cédric
The question relating to the geographical region was  asked  before by my former student, Serdar helli.
Thanks for your reply. We solved the previous problem according to your reply.
But, there is another problem as follows:
File "C:\Users\AppData\Local\Continuum\anaconda3\lib\site-packages\matplotlib\axes_axes.py", line 5747, in _pcolorargs
C.shape, Nx, Ny, funcname))
TypeError: Dimensions of C (539, 1080) are incompatible with X (1081) and/or Y (540); see help(pcolormesh)
thanks in advance for your reply

When does this error occurs?
I guess it happens after the computation, when plotting the results. But at which stage?

as you see,
after collecting and processing RF data,
2022/10/01 17:17:22|INFO| Searching and downloading data for RF; KO-AFSR
2022/10/01 17:17:22|INFO| Plotting events map KO-AFSR-RF-events_map.png
Traceback (most recent call last):
File "", line 1, in
runfile('I:/serdar/stadium.py', wdir='I:/serdar')
File "C:\Users\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile
execfile(filename, namespace)
File "C:\Users\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "I:/serdar/stadium.py", line 368, in
main()
File "I:/serdar/stadium.py", line 217, in main
oss.select_to_download_events(catalogloc,datafileloc,dest_map,RFsta,rf_data,minmagnitudeRF,maxmagnitudeRF,plot_stations,plot_events,locations,method='RF')
File "I:\serdar\rfsks_support\other_support.py", line 198, in select_to_download_events
rf_data.download_data(catalogtxtloc=catalogloc,datafileloc=datafileloc,tot_evnt_stns=total_events,rem_evnts=rem_events, plot_stations=plot_stations, plot_events=plot_events,dest_map=dest_map,locations=locations)
File "I:\serdar\rfsks_support\download_large_data.py", line 263, in download_data
events_map(evlons=df['evlon'], evlats=df['evlat'], evmgs=evmg, evdps=df['evdp'], stns_lon=slon, stns_lat=slat, destination=dest_map,figfrmt=self.fig_frmt, clon = slon , outname=f'{event_plot_name}')
File "I:\serdar\rfsks_support\plotting_map.py", line 273, in events_map
plot_topo_simple(eq_map,cmap=plt.cm.rainbow)
File "I:\serdar\rfsks_support\plotting_map.py", line 18, in plot_topo_simple
cs = map.pcolormesh(lons,lats,etopo,cmap=cmap,latlon=True,shading='gouraud')
File "C:\Users\AppData\Local\Continuum\anaconda3\lib\site-packages\mpl_toolkits\basemap_init_.py", line 548, in with_transform
return plotfunc(self,x,y,data,*args,**kwargs)
File "C:\Users\AppData\Local\Continuum\anaconda3\lib\site-packages\mpl_toolkits\basemap_init_.py", line 3457, in pcolormesh
ret =  ax.pcolormesh(x,y,data,**kwargs)
File "C:\Users\AppData\Local\Continuum\anaconda3\lib\site-packages\matplotlib_init_.py", line 1601, in inner
return func(ax, *map(sanitize_sequence, args), **kwargs)
File "C:\Users\AppData\Local\Continuum\anaconda3\lib\site-packages\matplotlib\axes_axes.py", line 6157, in pcolormesh
X, Y, C = self._pcolorargs('pcolormesh', *args, allmatch=allmatch)
File "C:\Users\AppData\Local\Continuum\anaconda3\lib\site-packages\matplotlib\axes_axes.py", line 5747, in _pcolorargs
C.shape, Nx, Ny, funcname))
TypeError: Dimensions of C (539, 1080) are incompatible with X (1081) and/or Y (540); see help(pcolormesh)

Interesting. When running on my machine it runs smoothly.
It may be because we are using a different version of matplotlib.
Could you share your environment file? Therefore I could compare with mine.

I am not working on this project but I tried.
These are library with versions. And I tried on python 3.9.7 and windows10 platform
Cartopy==0.18.0
matplotlib==3.5.3
numpy==1.22.1
obspy==1.3.0
pandas==1.3.4
PyYAML==6.0
rf==1.0.1
scipy==1.7.1
Shapely==1.8.4
SplitWavePy==0.3.0
tqdm==4.62.3
Thank you  for your time.

The main differences I notice are that we tested this code on Linux and OS X with matplotlib==3.1.1, while you are using matplotlib==3.5.3
I guess this update caused some issues with our code.
You could try:
conda install matplotlib==3.1.1

An easy way would be to disable the automated plots (by matplotlib).
In Settings/stepwise.yaml:
plot_settings:
- plot_stations: 0 #plot the stations map of all available stations and all retrieved stations
- plot_events: 0 #plot the stations map of all retrieved events for each station
- plot_all_retrieved_events_stations: 0

Then plot the necessary images using customized scripts that should be easy to write.

Traceback (most recent call last):
File "", line 1, in
runfile('I:/serdar/stadium.py', wdir='I:/serdar')
File "C:\Users\gulten.polat\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile
execfile(filename, namespace)
File "C:\Users\gulten.polat\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "I:/serdar/stadium.py", line 368, in
main()
File "I:/serdar/stadium.py", line 217, in main
oss.select_to_download_events(catalogloc,datafileloc,dest_map,RFsta,rf_data,minmagnitudeRF,maxmagnitudeRF,plot_stations,plot_events,locations,method='RF')
File "I:\serdar\rfsks_support\other_support.py", line 198, in select_to_download_events
rf_data.download_data(catalogtxtloc=catalogloc,datafileloc=datafileloc,tot_evnt_stns=total_events,rem_evnts=rem_events, plot_stations=plot_stations, plot_events=plot_events,dest_map=dest_map,locations=locations)
File "I:\serdar\rfsks_support\download_large_data.py", line 236, in download_data
strm,res,msg = multi_download(self.client,self.inv,net,stn,slat,slon,elat,elon,evdp,evtime,em,emt,fcat,stalons=rf_stalons,stalats=rf_stalats,staNetNames=rf_staNetNames,phase='P',locations=locations)
File "I:\serdar\rfsks_support\rfsks_extras.py", line 279, in multi_download
strm = retrieve_waveform(client_local,net,stn,t1,t2,stats_dict=stats_args,cha="BHE,BHN,BHZ",loc=loc,pharr = pharr, phasenm = phase)
File "I:\serdar\rfsks_support\rfsks_extras.py", line 228, in retrieve_waveform
filter_traces_rf(st,pharr = pharr)
File "I:\serdar\rfsks_support\rfsks_extras.py", line 48, in filter_traces_rf
if minendtime(alledtimes)-pharr>=startpoint and pharr - maxstarttime(allsttimes)>=endpoint:
File "I:\serdar\rfsks_support\rfsks_extras.py", line 21, in minendtime
minval0 = alledtimes[0]
IndexError: list index out of range
??? I made these changes in stepwise.yaml. It worked until this error:
IndexError: list index out of range


ramp up Zeppelin to released version 0.6.0

https://zeppelin.apache.org/download.html
latest version 0.6.0 of Zeppelin has been release on 2nd of July could you please upgrade your version to the latest stable release?

Meanwhile 0.6.1 was released which also supports spark 2.0


Create a data package containing the main functional data structures

Depends on pattern matching (link here)
Create algebraic instances of the main functional data strucutures in a cyclops data package.
Focus should be on correctness and preventing invalid states (NPE, index out of bounds etc).
Data structures to create

LinkedList
NonEmptyList
BankersQueue
PatriciaTrie
RedBlackTree
HashedArrayMappedTrie
BitmappedArrayTrie
Zipper
DifferenceList
HList
Vector
HashMap
HashSet
TreeSet
TreeMap
DependentMap
IntMap
MultiMap
LinkedHashMap
PriorityQueue
DiscreteIntervalEncodedTree

Released in M1


Find a way to not have to modify settings.gradle

There should be a way to avoid modifying settings.gradle to add these lines:
include ':gowaku'
project(':gowaku').projectDir = new File(rootProject.projectDir, './../node_modules/@waku/react-native/

and instead have npm / react-native autolink this submodule from waku-react-native

I think a common solution is to publish builds to jcenter, but that comes with some overhead managing releases there. The iOS pod is using git so could do the same. There is a project called jitpack that lets you easily use github projects as dependencies. https://jitpack.io/

Another idea might be to include a postinstall script. When running npm install it'll run the postinstall script, which could be the script to download go-waku.
https://docs.npmjs.com/cli/v9/using-npm/scripts#npm-install


Why was 1.0.10 yanked from crates.io?

I'm just curious why 1.0.10 was yanked from crates.io? I guess old binary crates depending on a pinned old version of pin-project will no longer build?

After recent compiler changes, rustc almost always emits dead code warnings for the code generated by pin-project (https://github.com/taiki-e/pin-project/pull/346).
It broke the minimal versions check of some projects, so, I have yanked old versions.

I guess old binary crates depending on a pinned old version of pin-project will no longer build?

No, if Cargo.lock exists it builds with a warning.

I guess old binary crates depending on a pinned old version of pin-project will no longer build?

No, if Cargo.lock exists it builds with a warning.

> cargo install deno --version 1.23.0
  Downloaded deno v1.23.0
  Downloaded 1 crate (3.3 MB) in 2.69s
    Updating crates.io index
  Installing deno v1.23.0
error: failed to compile `deno v1.23.0`, intermediate artifacts can be found at `C:\Users\david\AppData\Local\Temp\cargo-installSzOTgk`

Caused by:
  failed to select a version for the requirement `pin-project = "=1.0.10"`
  candidate versions found which didn't match: 1.0.11, 0.4.30, 0.3.5, ...
  location searched: crates.io index
  required by package `deno v1.23.0`

It seems to have broken them.

Can you use --locked flag?

Yup, it works with --locked. That's not too bad then. I documented it. Thanks!

The reason it was yanked is for pedantic checks in some projects, so I reverted the yank for now.


Add ViewStore for "desktop" views

There are currently 2 forms of view persistence:

Elements in the iModel
cloud view service
(actually there are 2 flavors of cloud-views).

Neither are appropriate for desktop apps or LiveSync:

The element-based api has fundamentally the wrong transaction model since adding/modifying views requires making a changeset. Often views are created by users with readonly access to the iModel.
the cloud apis do not have the concept of "selectors" or display styles. Instead they store a copy of everything with every view. Also, they do not support local caching, as will be necessary for editing applications (and for offline use).

Both current forms also suffer the severe limitation that their views are specific to a single iModel since they store ElementIds. It is necessary to store Guids if views are to be shared across branches.
This PR introduces a new persistence for views called a ViewStore. A ViewStore is a CloudSqlite database "attached" to an iModel. The same ViewStore may be attached to multiple (branches of) an iModel. See documentation in ViewStore.ts.
ViewStores are intended to become the primary way for storing Views of iModels. They are not a complete replacement for element-based views, since Sheets reference view elements, so there will still need to be some ViewDefinition elements. The cloud view service is useful to store "iTwin views" that don't have an iModel and therefore don't have ElementIds or selectors. Mainly they should store camera position an lists of reality models, etc.
Notes:

the existing apis are unchanged, so apps won't use ViewStores unless they are changed to use them, other than "load view" now supports the "viewstore viewId" syntax.
LiveSync should use ViewStores and ViewGroups to organize views from desktop applications
from the frontend, the Rpc apis for reading from and writing to ViewStores are accessed via connection.views.viewStoreReader and connection.views.viewStoreWriter respectively
ViewStores support ViewGroups and Tags to help organize and annotate views. ViewGroups may nest and form a tree structure for Views, analogous to directories and files. There is always a "root" ViewGroup, so every View is in a ViewGroup.
VeiwGroups each have a "default view" (including the root ViewGroup) so that users or groups of users can choose their default view and one can be set for the root.
Model and Category Selectors may either be an Id list, or use an ECQuery, plus lists of "add" and "remove" ids. When they are "loaded" from the frontend they return the result of the query+adds+removes.

For another PR:

frontend apis that modify displayStyles or selectors should invalidate their ids so they'll be saved if a new view is created
write learning documentation
examples

Can anyone help me understand why the tests fail only on Mac?

Can anyone help me understand why the tests fail only on Mac?

This has been popping up with some frequency on macOS for the past week or so.
Presumably when #5681 will resolve it by eliminating puppeteer entirely.
Invoking: npm -s test
Timed out after 30000 ms while trying to connect to the browser! Only Chrome at revision r1022525 is guaranteed to work.
TimeoutError: Timed out after 30000 ms while trying to connect to the browser! Only Chrome at revision r1022525 is guaranteed to work.
    at Timeout.onTimeout (/Users/platform-bld/vsts_work_a/1/s/common/temp/node_modules/.pnpm/puppeteer@15.5.0/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:300:20)
    at listOnTimeout (node:internal/timers:569:17)
    at process.processTimers (node:internal/timers:512:7)

I would like to complete this PR today because @khanaffan needs the changes here for his PR . @diegopinate @wgoehrig, please resolve existing comments or reply. @pmconne @aruniverse @calebmshafer please approve.


Multiple tensorflow devices created, then programs ends

Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Written
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:-
TensorFlow installed from (source or binary): source(?) 1.12 from pip.
TensorFlow version (use command below): 1.12
Python version: 3.6
Bazel version (if compiling from source):-
GCC/Compiler version (if compiling from source):-
CUDA/cuDNN version: 9.0
GPU model and memory: GTX 1070Ti 8GB

You can collect some of this information using our environment capture script
You can also obtain the TensorFlow version with
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
Describe the current behavior
Originally was not an issue. Tensorflow now creates multiple devices, see log. I installed baseline for OpenAI and this started after that. I reinstalled tensorflow and the issue persists.
My scripts no longer execute because of this.
Code to reproduce the issue
All code results in the issue.
Other info / logs
2018-11-10 14:29:08.296852: I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] Device interconnect StreamExecutor with strength 1 edge matrix:
2018-11-10 14:29:08.297012: I tensorflow/core/common_runtime/gpu/gpu_device.cc:988]      0
2018-11-10 14:29:08.297107: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1001] 0:   N
2018-11-10 14:29:08.297353: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 6393 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1070, pci bus id: 0000:01:00.0, compute capability: 6.1)
2018-11-10 14:29:08.577708: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1511] Adding visible gpu devices: 0
2018-11-10 14:29:08.577917: I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] Device interconnect StreamExecutor with strength 1 edge matrix:
2018-11-10 14:29:08.578069: I tensorflow/core/common_runtime/gpu/gpu_device.cc:988]      0
2018-11-10 14:29:08.578162: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1001] 0:   N
2018-11-10 14:29:08.578303: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] Created TensorFlow device (/device:GPU:0 with 6393 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1070, pci bus id: 0000:01:00.0, compute capability: 6.1)

2018-11-10 14:29:15.921961: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1511] Adding visible gpu devices: 0
2018-11-10 14:29:15.922125: I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] Device interconnect StreamExecutor with strength 1 edge matrix:
2018-11-10 14:29:15.922269: I tensorflow/core/common_runtime/gpu/gpu_device.cc:988]      0
2018-11-10 14:29:15.922362: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1001] 0:   N
2018-11-10 14:29:15.922500: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1115] Created TensorFlow device (/device:GPU:0 with 6393 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1070, pci bus id: 0000:01:00.0, compute capability: 6.1)

Do you have a small example I can run to reproduce the issue?

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!

Ditto.


Add growl alerts

Fixes #144 and #239
Changes the popup alerts to jGrowl alerts that load as overlays in the top right of the screen in a queue.

looks like #446 wound up in here

Yeah, I borked up the commits trying to make sure that tests passed.

I pulled the test cases in first along with your other commits that didn't conflict.
Can you rebase and resubmit this one? Thanks!

Cleaned up the commits, should be a clean merge now.

Squashed and rebased against changes to dev

Looks good so far, just need to checkout the branch to check in my dev environment! I plan on doing this tomorrow

:+1: :shipit: