[feature] support main process bundling

Hi. I was looking to load and save the window state (width, height, maximised etc) and most of the time I see that it's recommended to use one of many storage packages on NPM. However, given that we can't use NPM packages within electron.js, how would you suggest going about this? Thanks.
Edit: Also, I imagine this would be a common thing that people would want in their Electron apps. Maybe it would be a good idea to add this to the boilerplate?

@zxc23
You bring a very valid point here. There are plans to bring support for main process bundling, but they are taking a more time than expected as I'm waiting for webpack 2 to be come of beta. For now, you could look into window.js from electron-boilerplate and copy this script over manually. It does require fs-jetpack but should be too difficult to migrate to just using standard fs.

Thanks for the response. I didn't mean 'LocalStorage' specifically, but I can see how it might come across that way. I'll edit it to whatever is more suitable, but I don't know how to phrase it better. :)
I'll give that script a go, and if it doesn't work out, I'll sit tight and hope for the best in the future. Today I started using vuex-persistedstate, which is working out nicely for persisting some settings across sessions, but of course it's limited to the Vue side of the app.

Gotcha. Sorry for the inconvenience. I tried supporting this awhile back, but webpack was pretty finicky, so hoping for better results this time around.

Webpack 2 has finally been released and the structure has changed a little. All dependencies will now be treated as externals and node_modules will no longer be ignored. This will enable the use of external node modules within both the renderer and main processes.  You can take a look now in the dev branch. Expect an update to master soon.


data

can you write how to prepare the dataset needed?

The dataset will be collected during training by interacting with the environment. Thus, you don't need to prepare a dataset to train.


Create a CI workflow, to publish tagged precompile compiler bridges

This is a follow up of https://github.com/com-lihaoyi/mill/pull/2424.
With new versions of Zinc, we also need new versions of our pre-compiled compiler bridges. This should be automated as a Github Workflow. Either we detect special tags, or we prepare a workflow that is triggered through a workflow_dispatch event, so we can publish the bridges from main branch, whenever we need to.

Oh, looks like we already have such workflow: .github/workflows/publish-bridges.yml.
So, to bump a new zinc version, we also need to bump the bridgeVersion variable to a new version.


only two jobs defined but comment says 3 jobs

Change text for the Build using multiple versions section
from
•Select Save and then confirm the changes to see your build run three jobs on three different platforms and SDKs.
to
•Select Save and then confirm the changes to see your build run two jobs on three different platforms and SDKs.
[Enter feedback here]

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

ID: 521b594c-dbb9-54d5-f56f-00e2f5fa1d92
Version Independent ID: 509d3e4e-23db-8493-e1a6-acb67ec47e81
Content: Customize your pipeline - Azure Pipelines
Content Source: docs/pipelines/customize-pipeline.md
Product: devops
Technology: devops-cicd
GitHub Login: @vijayma
Microsoft Alias: vijayma

@kknight-valorem -- Ken, thank you for spotting this.
@vijayma -- Vijay, please review private PR 1192.


DOCS-1186: Remove unused files

https://tigera.atlassian.net/browse/DOCS-1186

Curious what happened here? Are we not doing this or are we doing this in another PR?

@doucol it was merged in the scope of https://github.com/tigera/docs/pull/240. This PR had some weird rebase conflicts and we decided to open a new clean one.

Got it, thanks
--
Doug Collier
Sr. Director, Engineering https://www.linkedin.com/in/dougcollier/ @
Tigera https://tigera.io
@.*** | +1<PHONE_NUMBER> <+1-650-395-7336> | @doucol
http://twitter.com/doucol | Follow us: Blog https://tigera.io/blog |
Twitter https://twitter.com/tigeraio | LinkedIn
https://www.linkedin.com/company/tigera
Active, zero-trust based security for cloud-native applications
https://tigera.io
On Mon, Jan 30, 2023 at 8:00 AM Alexey Magdich @.***>
wrote:

@doucol https://github.com/doucol it was merged in the scope of #240
https://github.com/tigera/docs/pull/240. This PR had some weird rebase
conflicts and we decided to open a new clean one.
—
Reply to this email directly, view it on GitHub
https://github.com/tigera/docs/pull/235#issuecomment-1408676137, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAED7LGGCD7V4GACPUMHU4TWU7CP5ANCNFSM6AAAAAAUDWLQFQ
.
You are receiving this because you were mentioned.Message ID:
@.***>


Add up_squared_sbl configuration to work zephyr with SBL

This adds a primitive board configuration for the UP Squared board to work properly with SBL(Slim Bootloader).

https://github.com/slimbootloader/slimbootloader
https://slimbootloader.github.io/

The BOARD shall be 'up_squared_sbl' when building applications.
cmake -GNinja -DBOARD=up_squared_sbl ..
ninja

@SebastianBoe requiring multiple PRs for something like that is an overkill and complicates the contribution process. Not sure what is the rationale behind that. If you submit the dts change in another PR, it is very difficult to know the intention and the context, it the changes depending on it will not build and dependency will be difficult to track. Asking for different PRs is justified only when we really have unrelated contexts and changes.

The board CMake hook is not necessary and should be removed.
We want to avoid hooks because they cause divergence. When you can do anything,
everyone will find different and insignificantly different solutions to the same problem.
In this case, the problem is that the BOARD_DIR has several board's, and we need the
fixup file to be specific to the board, not the BOARD_DIR as has been convention.
There are two solutions to this problem. Either use the C preprocessor to distinguish between
the two fixup files instead of using CMake code (which is generally, and AFAICT in this case, desired) as shown in:
https://github.com/SebastianBoe/zephyr/commit/0c2968a0166b47995392cf3a9a43d0e7a55e2e49
Or change the dts_fixup.h detection logic such that the fixup file is board-dependent instead of board_dir-dependent (as we do with the .yaml, .dts, and _defconfig files).

@nashif Thanks for your comment and your understanding the difficulty of contribution process.
@SebastianBoe Thanks for your comment and I totally understand your concern to use hooks. The hooks always have pros and cons.
Let me ask some questions. There are some override variables in cmake/dts.cmake which are DTS_SOURCE, DTS_COMMON_OVERLAYS, DTS_APP_BINDINGS, DTS_BOARD_FIXUP_FILE and DTS_SOC_FIXUP_FILE. How can we override those variables if required?
In addition, there is a user guide about dts override in https://docs.zephyrproject.org/latest/application/application.html?highlight=dts_source.

This location can be overridden by setting the DTS_SOURCE CMake variable.
The common overlays can be overridden by setting the DTS_COMMON_OVERLAYS CMake variable.
But, there is no CMake for a board specific one. We have board.cmake, but it's later than dts.cmake.

Your solution requires CONFIG_SBL_FIXUP=y in every applications' prj.conf. This should be manually done by developers. This may cause more divergence. What do you think?

How can we override those variables if required?

From the application build script or from the command line.

Your solution requires CONFIG_SBL_FIXUP=y in every applications' prj.conf.

We can solve that by having the board select SBL_FIXUP through Kconfig.

@SebastianBoe That was why I added dts.cmake hook to avoid changing application build script or adding command line if dts variables need to be overridden. I will follow the same way without hook. According to your guideline, I will remove dts.cmake change and make changes only in up_squared directory.

@nashif If you have different concern on 2nd changes, please let me know. I will follow up. Thanks.

@myguitar can you explain why we have two DTS files with different registers based on the bootloader being used? I am not following why is this needed.

@nashif Unlikely ARM which has fixed MMIO in AMBA, x86 PCI devices can be mapped to any memory space through PCI enumeration in boot firmware. The original up_squared dts has MMIO addresses mapped from BIOS, but SBL is using different MMIO space for PCI device enumeration. If a user uses coreboot as a boot firmware for Zephyr, it will also require another dts for coreboot MMIO space. In fact, even if a user uses the same BIOS, the MMIO base in dts sometimes needs to be updated. It's because PCI devices will be mapped to different address if a user disables a PCI device in BIOS menu.
Therefore, a better way to get MMIO BAR of each devices is to read it from PCI config space directly in run-time instead of hard-coded values in dts. But, this change is a simple way to give SBL MMIO mapping to up_squared board when SBL is used.


Replace IPv4 route decrypt rule failed" error="file exists"

Standard deployment, I'm seeing the following error logs:
level=error msg="Replace IPv4 route decrypt rule failed" error="file exists" subsys=linux-datapath
level=error msg="Replace IPv4 route decrypt rule failed" error="file exists" subsys=linux-datapath

Closing issue resolved.


Add Back Button To Sub Pages of Admin Dashboard

Add back buttons to admin dashboard sub pages that provides to go back to admin dashboard.

Back buttons are added to admin dashboard sub pages.


Fix mocks

Closes #992

For contributor use:

[x] Targeted PR against master branch
[ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work
[ ] Code follows the standards mentioned here
[ ] Updated relevant documentation
[ ] Re-reviewed Files changed in the Github PR explorer
[ ] Added appropriate labels

Closing due to: https://github.com/onflow/flow-cli/pull/994


Dsiable non-working tests

All tests are completed successfully.

Tests compile, but they are all empty.


"One CLI for webpack must be installed" after minor update from 4.44.2 to 4.45.0/4.46.0

Bug report

What is the current behavior?
After upgrading webpack from 4.44.2 to 4.45.0 (or 4.46.0), webpack asks to install webpack-cli:
$ yarn prod
yarn run v1.22.5
$ npm run production
npm WARN lifecycle The node binary used for scripts is /tmp/yarn--1612990005632-0.9294932316423565/node but npm is using /home/dev/.asdf/installs/nodejs/14.15.4/bin/node itse
lf. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

> @0.31.1 production /home/dev/git/acme
> cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

 DONE  Compiled successfully in 42383ms

$ yarn list webpak
yarn list v1.22.5
warning Filtering by arguments is deprecated. Please use the pattern option instead.
├─<EMAIL_ADDRESS>│  └─<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>│  └─<EMAIL_ADDRESS>├─<EMAIL_ADDRESS>│  └─<EMAIL_ADDRESS>└─<EMAIL_ADDRESS>Done in 0.89s.

$ yarn upgrade webpack
...

$ yarn list webpack
yarn list v1.22.5
warning Filtering by arguments is deprecated. Please use the pattern option instead.
├─<EMAIL_ADDRESS>│  └─<EMAIL_ADDRESS>└─<EMAIL_ADDRESS>Done in 0.89s.

$ yarn prod
yarn run v1.22.5
$ npm run production
npm WARN lifecycle The node binary used for scripts is /tmp/yarn--1612989379362-0.18985632006525122/node but npm is using /home/dev/.asdf/installs/nodejs/14.15.4/bin/node its
elf. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.

> @0.31.1 production /home/dev/git/acme
> cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:
 - webpack-cli (https://github.com/webpack/webpack-cli)
   The original webpack full-featured CLI.
We will use "yarn" to install the CLI via "yarn add -D".
Do you want to install 'webpack-cli' (yes/no):

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?

The minor update should not require the installation of a new dependency.
Other relevant information:
webpack version: 4.45.0 / 4.46.0
Node.js version: 14.15.4
Operating System: Ubuntu 20.04.2 LTS via WSL2 (Windows 10)
Additional tools:

Core and cli are separate.
So you must install webpack-cli:
$ npm i -D webpack-cli

You can also install globally. Just add a -g.

@368573607 Why is this (breaking) change not mentioned in the 4.45.0 release notes? Also, I'm a bit surprised about this new requirement, because the changes between 4.44.2 and 4.45.0 doesn't include anything like that.

This is not new. It was changed from v3 to v4. You did need webpack-cli with 4.44.2 too, maybe some of your dependencies installed it and it is now placed somewhere different in your node_modules.

Answer above, you need to install webpack-cli, it was changed from v3 to v4

Answer above, you need to install webpack-cli, it was changed from v3 to v4

@alexander-akait If I yarn add -D webpack-cli, I'm getting Error: Cannot find module 'webpack-cli/bin/config-yargs' instead:
hot_1       | internal/modules/cjs/loader.js:883
hot_1       |   throw err;
hot_1       |   ^
hot_1       |
hot_1       | Error: Cannot find module 'webpack-cli/bin/config-yargs'
hot_1       | Require stack:
hot_1       | - /var/www/html/node_modules/webpack-dev-server/bin/webpack-dev-server.js
hot_1       |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
hot_1       |     at Function.Module._load (internal/modules/cjs/loader.js:725:27)
hot_1       |     at Module.require (internal/modules/cjs/loader.js:952:19)
hot_1       |     at require (internal/modules/cjs/helpers.js:88:18)
hot_1       |     at Object.<anonymous> (/var/www/html/node_modules/webpack-dev-server/bin/webpack-dev-server.js:65:1)
hot_1       |     at Module._compile (internal/modules/cjs/loader.js:1063:30)
hot_1       |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
hot_1       |     at Module.load (internal/modules/cjs/loader.js:928:32)
hot_1       |     at Function.Module._load (internal/modules/cjs/loader.js:769:14)
hot_1       |     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) {
hot_1       |   code: 'MODULE_NOT_FOUND',
hot_1       |   requireStack: [
hot_1       |     '/var/www/html/node_modules/webpack-dev-server/bin/webpack-dev-server.js'
hot_1       |   ]
hot_1       | }

Please use webpack serve to run webpack-dev-server, don't use webpack-dev-server directly

Thank you so much, that was it.

For the record: Even after applying the fix, the update from 4.44.2 to 4.46.0 still broke the build for me:

With 4.44.2, our webpack alias ("@": require("path").join(__dirname, "src")) worked as expected,
With 4.46.0 (after a simple yarn upgrade webpack), webpack complained about missing dependencies:

$ cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js serve --hot --config=node_modules/laravel-mix/setup/webpack.config.js

These dependencies were not found:

* @/App in ./src/main.js
* @/views/HomeView in ./src/router/routes.js
* ...

Reason: vue-loader was missing from the dependencies.
Solution: yarn add -D vue-loader resolved the issue for good.


Bank Negara Indonesia Stock Analysis

ML-Crate Repository (Proposing new issue)
:red_circle: Project Title : Bank Negara Indonesia Stock Analysis
:red_circle: Aim : The aim of this project is to analyze the stocks mentioned in the dataset using Machine Learning models.
:red_circle: Dataset : https://www.kaggle.com/datasets/caesarmario/bank-negara-indonesia-stock-historical-price
:red_circle: Approach : Try to use 3-4 algorithms to implement the models and compare all the algorithms to find out the best fitted algorithm for the model by checking the accuracy scores. Also do not forget to do a exploratory data analysis before creating any model.

📍 Follow the Guidelines to Contribute in the Project :

You need to create a separate folder named as the Project Title.
Inside that folder, there will be four main components.

Images - To store the required images.
Dataset - To store the dataset or, information/source about the dataset.
Model - To store the machine learning model you've created using the dataset.
requirements.txt - This file will contain the required packages/libraries to run the project in other machines.

Inside the Model folder, the README.md file must be filled up properly, with proper visualizations and conclusions.

:red_circle::yellow_circle: Points to Note :

The issues will be assigned on a first come first serve basis, 1 Issue == 1 PR.
"Issue Title" and "PR Title should be the same. Include issue number along with it.
Follow Contributing Guidelines & Code of Conduct before start Contributing.

:white_check_mark: To be Mentioned while taking the issue :

Full name :
GitHub Profile Link :
Participant ID (If not, then put NA) :
Approach for this Project :
What is your participant role? (Mention the Open Source Program name. Eg. HRSoC, GSSoC, GSOC etc.)

Happy Contributing 🚀
All the best. Enjoy your open source journey ahead. 😎

@abhisheks008 can you assign me this for JWoC. I have already created project on this topic so it will be very fast for me.
Full name : Pawas Pandey
GitHub Profile Link : githyb.com/pawaspy
Participant ID (If not, then put NA) : NA
Approach for this Project : I will use lstm and different models such as random forest or linear regression or svm for prediction.
What is your participant role? (Mention the Open Source Program name. Eg. HRSoC, GSSoC, GSOC etc.) : JWoC

JWOC will start from Jan 15, issues will be assigned thereafter.

hi abhisekh
Full name: Yuvika Singh
git hub profile link:https://github.com/Yuvika-14/Yuvikademo.git
approch: ensemble methods, gradient boosting, neural networks.
Take care of the missing data if there are any categorical values then will use one hot encoder or label encoder depending upon the issue.

@abhisheks008 can you assign me this for JWoC. I have already created project on this topic so it will be very fast for me. Full name : Pawas Pandey GitHub Profile Link : githyb.com/pawaspy Participant ID (If not, then put NA) : NA Approach for this Project : I will use lstm and different models such as random forest or linear regression or svm for prediction. What is your participant role? (Mention the Open Source Program name. Eg. HRSoC, GSSoC, GSOC etc.) : JWoC

Issue assigned to you @pawaspy
Models to be implemented are,

Random Forest
Decision tree
Logistic
MLP
XgBoost
Gradient Boosting
Lasso
Ridge


PlantUML is HTML escaped/encoded, so many UML diagrams fail to render

Issue Description
The text in a PlantUML "block" seems to be HTML escaped/encoded, so when the text is extracted from the block in the plugin, it is passed on to PlantUML changed from what was originally written.
It looks like the Gitbook framework automatically encodes the "block" text. This may not have happened for an ealier version of gitbook.
Steps to Reproduce
$ gitbook version
CLI version: 2.3.0
GitBook version: 3.2.0

If I write this in my .md document:
{% plantuml %}
Class MyStage
Class Timeout {
    +constructor:function(cfg)
        +timeout:function(ctx)
        +overdue:function(ctx)
        +stage: Sage
        +other_thing: Other Thing
}
Stage <|-- Timespent
{% endplantuml %}

This plugin tries to render this text:
Class MyStage
Class Timeout {
    +constructor:function\(cfg\)
        +timeout:function\(ctx\)
        +overdue:function\(ctx\)
        +stage: Sage
        +other\_thing: Other Thing
}
Stage <\|-- Timespent

That then generates this file

The cause of issue is that for this text:
    +constructor:function(cfg)

The block object encodes the text (escaping parentheses, for example), and gives the plantuml.jar
this:
    +constructor:function\(cfg\)

Similarly this Stage <\|-- Timespent gets an html escape of the < character to a < and becomes Stage <\|-- Timespent
Details
Here is the problematic section of code (from gitbook-plugin-local-plantuml/index.js, lines 17-25):
module.exports = {
  blocks: {
    plantuml: {
      process: function (block) {

        var imageName = hashedImageName(block.body) + ".png";
        this.log.debug("using tempDir ", os.tmpdir());
        var imagePath = path.join(os.tmpdir(), imageName);
        var umlText = block.body;

The line
var umlText = block.body;

gets text that is already escaped. As far as I can tell, the block object does not contain any reference to the un-encoded text. It also does not contain any line-numbers, or any other way determine the text which generated the initial block.
The alternate Gitbook PlantUML plugin uses regexes to extract the text, which seems cumbersome, but might be the only way to get ahold of the unchanged text.

I was working on this issue in my fork, but have major problems getting the tests to run. I had to set the this.timeout(20000) to get them to run, and then they take forever. Suggestions?

I fixed this problem on my project
https://github.com/vliejo/gitbook-plugin-local-plantuml/pull/5


fix: add reactive theme content

Description (required)
In shiki's configuration, I set experimentalThemes: { } as documented, but it doesn't work when I dynamically switch dark mode and light mode.

Then I checked the official documentation of shiki and found that I need to manually set some css fragments to get reactive dark mode.

I replaced the .shiki class name with .astro-code and added the code to my documentation project and now it works fine.

I added this usage to the document, hoping to help developers who are unfamiliar with shiki. 😀

Hello! Thank you for opening your first PR to Astro’s Docs! 🎉
Here’s what will happen next:

Our GitHub bots will run to check your changes.
If they spot any broken links you will see some error messages on this PR.
Don’t hesitate to ask any questions if you’re not sure what these mean!

In a few minutes, you’ll be able to see a preview of your changes on Vercel 🥳

One or more of our maintainers will take a look and may ask you to make changes.
We try to be responsive, but don’t worry if this takes a few days.

!coauthor

Hi @kaivanwong ! This looks really cool!
We did just update our Shiki config though, and now instead of experimentalThemes it's just themes. Would you mind testing and make sure this still works with themes?
(See the updated, live docs now: https://docs.astro.build/en/guides/markdown-content/#shiki-configuration )
I will also ask @delucis to review, but we are a bit busy with launch week, so thank you for your patience as we catch up!  😄

Hi @kaivanwong ! This looks really cool!
We did just update our Shiki config though, and now instead of experimentalThemes it's just themes. Would you mind testing and make sure this still works with themes?
(See the updated, live docs now: docs.astro.build/en/guides/markdown-content/#shiki-configuration )
I will also ask @delucis to review, but we are a bit busy with launch week, so thank you for your patience as we catch up! 😄

Sure, I tested 'themes' and it work normaly, thank you.
Also, it will be great if the experimental field names stay as the same. If I upgrade the version of Astro, I don't need to change my code. 😁

Hi @kaivanwong ! This looks really cool!
We did just update our Shiki config though, and now instead of experimentalThemes it's just themes. Would you mind testing and make sure this still works with themes?
(See the updated, live docs now: https://docs.astro.build/en/guides/markdown-content/#shiki-configuration )
I will also ask @delucis to review, but we are a bit busy with launch week, so thank you for your patience as we catch up! 😄

Yeah I thought this LGTM Since I would use this feature as well.

Hi @kaivanwong ! We're all catching up now after a busy launch week, and I just noticed the second file changed in this PR, too.
Can you please remove the zh file in this PR? When content changes are proposed to the English site, the PR should contain only a change to the English file, which is treated as the source file for our i18n tracking system.
Only after the English is reviewed, edited, and approved do we consider changes ready for translation. Even small changes to the English site are often revised before publishing, so we ask that you not worry about submitting a translation at the same time, to save you time, and because we have a system for translations already! 🙌

Hi @kaivanwong ! We're all catching up now after a busy launch week, and I just noticed the second file changed in this PR, too.
Can you please remove the zh file in this PR? When content changes are proposed to the English site, the PR should contain only a change to the English file, which is treated as the source file for our i18n tracking system.
Only after the English is reviewed, edited, and approved do we consider changes ready for translation. Even small changes to the English site are often revised before publishing, so we ask that you not worry about submitting a translation at the same time, to save you time, and because we have a system for translations already! 🙌

ok, it doesn't matter, I've seen a major update happening to Astro recently. Now, I droped the commit for the zh file.

Lunaria Status Overview
🌕 This pull request will trigger status changes.

Learn more
By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.
You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

Locale
File
Note

en
guides/markdown-content.mdx
Source changed, localizations will be marked as outdated.

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

Thank you @kaivanwong ! I think this note is going to be really helpful, and really call attention to the main point. Thank you for taking the time to contribute this, and welcome to Team Docs! :partying_face:

Thank you, and I am happy to be able to make some small contribution. 😸


Create stack synchronously

Is it possible to create the stack synchronously? I create it in app delegate and need to use it before any controller is created. Is it possible?

@bitomule It is not possible to create a SQLite backed CoreDataStack instance synchronously and this is by design. With SQLite backed stores it can take an indefinite amount of time to map your xcdatamodel into SQLite tables/rows, especially on first time launches or between model migrations.
Its is always a good practice to architect your app with the assumption that this could take a longer amount of time than you'd want to block the main thread.
In your case I would suggest doing one of two things:

You can make the CoreDataStack dependency on your view controllers an optional that is set once the setup has called back to you. In this scenario you need to ensure you'r view controller has something to display while the CoreDataStack is absent.

You can suspend setting up these initial view controllers within the AppDelegate until the stack has been created. A splash screen/spinner type of UI can be used here while the stack is being constructed.

Thanks, I'll try showing a loading screen while creating stack.


How do you have per test method seleno host?

So if you use a static instance of SelenoHost it will be shared between all tests, but I would like a SelenoHost for each of the test so that they can run concurrently, I would like to be able to pass the host object to Page Objects easily, is there anything like the context binding and injection in Seleno like what the SpecFlow does?

I'm not sure what SpecFlow features you are referring to, feel free to post a link to a description.
Regardless, let's see if I can answer your question.
First and foremost, you can have a per-test seleno host by simply using a using statement:
using (var host = new SelenoHost()) {
    host.Run(...);
    // ...
}

I would strongly recommend against doing that though as when you call host.Run there is a lot of overload so your test runs will be very slow. Instead I'd recommend you statically spin up multiple SelenoHosts and then have some mechanism to choose between all the instances you have available (maybe similar to how connection pools work for sql).
You don't pass the host object to a page object, you resolve the initial page object from the host using the NavigateToInitialPage method and then from there use the Navigate property or GetComponent method within the page object to get other page objects.
The conversation on this thread may also be helpful: https://github.com/TestStack/TestStack.Seleno/issues/166

Thanks for the help. I have got the solution.

No worries


Issues trying to run multibox without GPU support

This is the error that i am getting:
[E operator.cc:83] Output size 2 not in range [min=1, max=1].
[E operator.cc:86] Error at operator :MaxPool
[E net.cc:55] Failed to verify operator.
[E workspace.cc:60] Error when setting up network multibox
Traceback (most recent call last):
File "multibox.py", line 69, in
workspace.CreateNet(net)
File "/home/henrique/Documents/Projeto/caffe2/gen/pycaffe2/workspace.py", line 99, in CreateNet
return cc_CreateNet(StringfyProto(net))
RuntimeError: Cannot create network. See console log for error messages.
And here are the warnings when caffe2 is built:
WARNING: Not all dependencies have succeeded. Skipping build. Failed dependencies:
WARNING: ['//caffe2/core:core_gpu']
WARNING: Failed to build:
WARNING: //caffe2/binaries:inspect_gpus
WARNING: //caffe2/core:core_cudnn
WARNING: //caffe2/core:core_gpu
WARNING: //caffe2/core:core_gpu_test
WARNING: //caffe2/core:cuda_memorypool_test
WARNING: //caffe2/cuda_rtc:rtc_ops
WARNING: //caffe2/end_to_end_test:end_to_end_tests
WARNING: //caffe2/image:image_ops_gpu
WARNING: //caffe2/mpi:mpi_gpu_test
WARNING: //caffe2/mpi:mpi_ops_gpu
WARNING: //caffe2/operators:core_ops_cudnn
WARNING: //caffe2/operators:core_ops_gpu
WARNING: //caffe2/operators:core_ops_gpu_cu
WARNING: //caffe2/operators:core_ops_test
WARNING: //caffe2/sgd:sgd_ops_gpu
WARNING: //caffe2/utils:math_gpu
WARNING: //third_party/cnmem:cnmem

This is due to a non-backward-compatible change in MaxPool for caffe2 - I'll try to do a fix in the next few days.

multibox is broken on latest caffe2 ,please resolve the issue, the error gets fixed by using older version of caffe2

I did a quick fix in my forked repo which you can check out here:
https://github.com/Yangqing/multibox
I've left Google so I will not be able to directly update the original repository.

thank you :) @Yangqing

Hi Yangqing,
Could you let me know how you solved it? I met the same problem when using the inception googlenet. I want to fix it up on my own (but need your suggestions). Thanks!

I solved it. Add the following lines after the line "tensors.ParseFromString(open('...":
for op in net.op:
if op.type == 'MaxPool':
del op.output[1:]

YantianZha's method worked for me on google's inception_v1.
This bug confused me for two days and I'm so happy to find the correct method to solve it.
I'm not sure this bug is cause by the inception_v1 or Caffe2.
Hope somebody can explain it.


[mgmt] recoveryservicesbackup release

https://github.com/Azure/sdk-release-request/issues/4480

breaking is caused by: https://github.com/Azure/azure-rest-api-specs/pull/23600 and https://github.com/Azure/azure-rest-api-specs/pull/24211

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-arm-recoveryservicesbackup


Add Ultimate ChatGPT in list

Website URL
https://chatgpt.kiask.xyz/

Website Type

[x] ChatGPT site
[ ] Other

Website Description and Usage

Please provide a clear description to help others understand how to use it.

[x] 😄 Free to use (open and ready to use with no restrictions)
[ ] 🔑 Free to use, but requires login or password
[ ] 🤑 Paid service
[ ] 🎁 Paid service with a trial period

Website Icon - Path (optional)

Square-shaped icon

For example: https://chatgpt.kiask.xyz/android-chrome-512x512.png

Requires International Access (optional)

[x] No
[ ] Yes

close via https://github.com/awesome-chatgpt/awesome-chatgpt/commit/72df51f9468fdf38b69682c8b7e77b8244477108


fix typo in prisma 1 migration guide

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

Thanks a lot for catching this @sreuter 🙌


Question: allow persistent size for defined buffers?

Hey, there. I hope a quick question is okay here.
I couldn't find out how or if it's possible to prevent a buffer from being resized / allow persistent size for it.
E.g., when there is a split with nvimtree while UI resizing happens and this split should keep its size while others will be relatively sized.
Already thank you for the development m8 👍

Yest, it's quite annoying when NvimTree or Tree in DiffView are resized as well.

I solved this back then in my personal config using neo-trees event handlers.
Storing the tree window id and width when opening it:
https://github.com/tenxsoydev/nxvim/blob/e697a0cece986eb595679a214343dec9c27db966/lua/nxvim/plugins/neo-tree.lua#L171-L179
Setting the tree window width to it's size (preserving it) on application window resize:
https://github.com/tenxsoydev/nxvim/blob/e697a0cece986eb595679a214343dec9c27db966/lua/nxvim/plugins/neo-tree.lua#L196-L203
Updating it's stored size when resizing the tree window:
https://github.com/tenxsoydev/nxvim/blob/e697a0cece986eb595679a214343dec9c27db966/lua/nxvim/plugins/neo-tree.lua#L196-L203
This approach should be reproducible with diffviews hooks or with autocomands for any other window. Maybe that's at least of some help @D00mch.


Metric: Project Places: Documentation Accessibility

[x] Creates documentation-accessibility.md from https://docs.google.com/document/d/1OaKDksmuoi6nhaduZ4F96mTwQJvIFnfI8BqLx4MRO38/edit#

It matches with the named revision "Upstream" in that document (aside from linting).

[x] Update tracking from "Documentation" to "Documentation Accessibility" using v2 as Ready.

[x] Replace row from "Documentation" to "Documentation Accessibility".

Replaces question as authored in doc — edit suggested (in review)

[x] Deletes documentation.md

[ ] Suggested Changes

Related Issues
#279

Deletes documentation.md

+1

Thanks @SMotaal

Lazy consensus: if there is no dissenting voice, I plan to merge the PR next week, December 23. Any later comments can be addressed during the public review period.

Thanks @SMotaal and @GeorgLink. I have added a few comments.

Can I recommend we start using the suggestion code blocks to avoid needing clarifications please?
I'd like to discuss it in today's community meeting, it is something of a learning curve — for me it certainly was 😄

Click + on the single line to change — ie not sure it supports ranges.
Type a comment as usual
Include in it a ```suggestion code block where:

First line to suggest changeing (or as is then add…)
Extra lines to suggest adding (otherwise…)
Zero lines to delete but I am not sure this one is supported yet.
Don't forget to follow with the closing ```.

@GeorgLink do we want to upstream the latest edits from the doc?

I usually update the repo only after we are fully satisfied with our edits.


Flex Box

Dear "Programmers" of Reddit
I would like to raise a complaint, regarding the lack of usage of "flex boxes" in your code.
I have rigorously searched through all of the code in this repository, and have come to the bitter and saddening understanding, that this is happening right inside the front page of the internet, reddit's code.
I figured the only way this could have occurred is by you somehow not having the knowledge of this truly wonderful thing called flex-box. For starting of I would like to recommend the web page called "Flex Box Froggy", it really is a great way to learn this mind changing thing called flex-box, that revolutionized CSS(Counter Strike S).
You disgust me,
Pannyka

I just checked every box in the office and you're absolutely right, they don't flex at all. I tried the cardboard, plastic, and even thinking outside of them but there was no give to be had.
Looking into this.


Bug in target noise

You are doing MSE(noise, predicted_noise). Shouldn't it be MSE(coef2*noise, predicted_noise)?
https://github.com/tqch/ddpm-torch/blob/1bf0e5d178fa374d21f1a0a622bf61fbf3413d29/ddpm_torch/diffusion.py#L235

I think this is not a bug but is intended if you take a look at the pseudo code in the original paper and their official implementation  link.


Label HINT encodings intended for future standard use as "designated"

The term "reserved" could be ambiguous, as it might be understood to refer to the "reserved instruction-set category" as defined in the section 1.3 instruction and further elaborated in section 2.2 "Base Instruction Formats". Avoid this potential confusion by using "designated" instead, which also matches the terminology used for HINT encodings intended for custom use.
This is an alternative to #990, following @aswaterman's suggestion.

LGTM, thanks.


Consider creating our own IPLD format

Problem
Encrypted DAG nodes are not dag-pb/dag-cbor formatted. They may be formatted as such under the hood but you won't be able to do file paths like Qm.../path/to/file.
Solution
We could define our own IPLD format for encrypted folders/files. This would also eliminate the need for a header subdir on every folder (thereby decreasing the # of objects needed to fetch by 2x)
Relevant discussion: https://github.com/ipld/ipld/issues/64

Would it make sense to have a general IPLD encryption format where you take a block + a key and encrypt it, then need the key to decrypt it?
The block itself could then contain dag-pb or dag-cbor or whatever else.

This is a pretty old issue. With the new version of WNFS we don't actually have this issue anymore:

This would also eliminate the need for a header subdir on every folder (thereby decreasing the # of objects needed to fetch by 2x)

We can probably close this?

Would it make sense to have a general IPLD encryption format where you take a block + a key and encrypt it, then need the key to decrypt it?
The block itself could then contain dag-pb or dag-cbor or whatever else.

That's technically what happens in rs-wnfs today. We construct some dag-cbor encoded bytes, then encrypt them, and treat that ciphertext as raw, as you can't follow any further links inside that anyway.
Generalizing IPLD so it supports encryption is interesting and we've thought a little about this, specifically there's a bunch of different ways in which you could essentially take a "cleartext" IPLD graph and encrypt it. These different ways have trade-offs. E.g. some allow you to share parts of the encrypted graph without sharing everything, some don't. Some allow third-party verification of write access via cryptographic accumulators or signatures and some don't. Some allow "editing" parts of the DAG without having to re-encrypt the whole DAG, some don't.
A big question I still have with that is: What is the developer experience for working with this? Is this just building a small library that makes it easy for you to en/decrypt dag-cbor encoded byte strings? Is it a library that allows you to easily move from encrypted DAG <-> decrypted DAG? Or is it just one concrete use case that is something like rs-wnfs which is still very "concrete" in where it applies these patterns.


HLS Video Feed for Octoprint/Octopod - (Investigation/Enhancement)

Gaston,
I've opened an Octoprint ticket partially regarding this request:
https://community.octoprint.org/t/alternate-video-streams/18330
Looking for an alternate way to use a Wyze network camera with Octoprint and hence Octopod.
Users can flash a Wyze camera with RTSP support, which then can be used with a Restreamer docker to send the RTSP feed out as an HLS feed with snapshots.  https://datarhei.github.io/restreamer/
HLS iframe example:
<iframe src="http://odroid.local:8080/player.html" name="restreamer-player" width="800" height="450" scrolling="no" frameborder="0" webkitallowfullscreen="true" mozallowfullscreen="true" allowfullscreen="true"></iframe>
HLS direct feed, which opens directly on an iPhone
http://odroid.local:8080/hls/live.stream.m3u8
Snapshot URL:
http://odroid.local:8080/images/live.jpg
Since Octopod uses the video feed that Octoprint provides, what are your thoughts of being able to integrate a HLS feed into both Octoprint and Octopod?
Thanks!
James

Hi @jalanjarosz, I think this is a cool idea. OctoPrint itself does not care much about video streaming. OctoPi is the one that adds support for mjpeg streaming. I think that maybe the MultiCam plugin may be interested in this improvement. I can see how each camera in that plugin may have a setting that tells what kind of streaming it uses.
For cameras that use HLS then OctoPod can use proper code to render HLS. Apple TV and iOs will be fine with this. I do not see Apple Watch support for HLS though. That's a bummer, they have audio streaming but I do not see video streaming to your watch. That would have been cool.
Thanks for submitting this nice idea,
Gaston

OctoPi is adding built in HLS support, see https://github.com/guysoft/OctoPi/issues/649 and https://github.com/guysoft/OctoPi/pull/650

HLS support is now in the 1.5.0rc1 release.

NICE! That's great to hear. I guess this is will be available in the next OctoPi release (not OctoPrint). I will check it out and see how to add support for this. This could be a good optimization.
Thanks for sharing the news.
Gaston

My underrstanding is that the latest OctoPi beta has support for the streaming side of HLS (setting up ffmpeg, etc), but you need the 0.15rc to have octoprint be able to configure and display it also.  I set up the ffmpeg side myself for reasons that aren't interesting, and I've got it working with the 0.15rc with no issues so far.

Thanks @claytono ! That makes sense now that I think of.

If it's helpful, you can skip the Octopi part and test with just Octoprint 0.15 and any HLS test stream.  I just checked and this one plays just find in the 0.15rc release: https://content.jwplatform.com/manifests/yp34SRmf.m3u8

Great suggestion. I will help A LOT during development! Good idea.
Thanks,
Gaston

iOS app has been updated to handle HLS videos. Unfortunately, Apple Watch is not able to do video streaming. I will see if I can extract an image for the HLS feed so we can send it to the Apple Watch and also to iOS 14 widgets. If not both the Apple Watch and iOS 14 widgets will not have an image. I will update Apple TV app to support HLS feed.
I wonder if OctoPrint will still do snapshots for HLS feeds. If it does not then push notifications will also not have an image. :(

@gdombiak I noticed Octopi is saving a JPG snapshot to the side of the HLS video.  I wonder if the intent is to have users configure that as the snapshot url and send that?

Thanks for sharing that info @claytono. I suspect your guess is right. :)
FYI, Apple's SDK for managing HLS is not as friendly as their newer SDK. Getting a snapshot of an .m3u8 stream is not straight forward .... need more  free time to finish this work!


How do I use this program?

Can someone tell me how to even use it? Ive downloaded it and run the executable. Im on windows 10.
The config file is empty. When I run warpd.exe --list-keys or warpd.exe  --list-options it just starts the program without output. How can I determine what keys I need to press to activate it? The readme doesn't seem to mention them? Also does anyone have an example of what a config file looks like? Ill probably want to change the default activation keys.
Thanks

Can someone tell me how to even use it? Ive downloaded it and run the executable. Im on windows 10. The config file is empty.

Config file is to override default options, that's why it's empty.

When I run warpd.exe --list-keys or warpd.exe --list-options it just starts the program without output.

I just tested, and apparently it only works when you pass it -f option. Apparently some bug.

How can I determine what keys I need to press to activate it? The readme doesn't seem to mention them?

It does.

Also does anyone have an example of what a config file looks like? Ill probably want to change the default activation keys. Thanks

Just a few hours ago I stumbled upon the same problem. I provided an example here, but due to a bug it's mostly useless. Well, not completely useless, you can use it to disable some combinations, but actually changing the hotkey doesn't work.


minor enhance

Thank you @smicyk for all helps you gave me when I was trying to get things working.
As a token of my appreciation, I did some  minor enhancements to the commandline script, which hopefully can be a bit more clearer to the next person who picks up from it afresh.
Thanks

Cool, thanks


Mobile toolbar icons

I love the addon sofar. It is one of the best things in Obsidian. One thing which would be a tiny, but necessary improvement: adding little icons for the mobile toolbar. I have "capture timestamp" and both skipping features in my toolbar, but they are displayed as "?". I think it wouldn't take much to implement tiny icons for that and it would really improve the usability in a mobile scenario!

Hey @Bearsaerker, I'm glad to hear you like PodNotes! I absolutely agree this is an important UX improvement, so I've gone ahead and added it. It's available in the latest release.


Extension API around quick picks/input boxes is inconsistent

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version:
OS Version:

I noticed showQuickPick/showInputBox doesn't let you use totalSteps, so I switched to createQuickPick/createInputBox. However, this doesn't let you use valueSelection!
I submitted a PR for #157022 and can I add valueSelection to createInputBox as well?

interface InputBox {
  valueSelection?: [number, number]
}


Add 'parser' argument for generating standalone HTML code

The generated HTML relies on the content of the css/ folder (css, fonts and images).
Add an argument to allow the generation of HTML code which points to remote css, fonts and images.
P.S. #6 (Create a 'theme' file and add '--theme' argument) should help to solve this.

#6 (Create a 'theme' file and add '--theme' argument) should help to solve this.
Solving #3

Create themes folder
Create themes/default file (which will have the content to generate a standalone HTML)
Create themes/gh-pages file (which will have the current HTML format)

Solving #6

Add argument --theme, -t (default should point to themes/default)

See e8b3b65e90520c4f729133dc765d8a923e3292f7, Solves 'Create themes folder'

Maybe change 'THE_KEY' to 'the_key'


revert: Tweak: component invalid address check

Revert #994, a new design and implementation will be given.

/merge


Application shifts when pressing 'Page Down' in a textarea inside mat-sidenav-content when mat-sidenav[position] is set to "end"

Reproduction
Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/angular-material-breaking-sidenav
Steps to reproduce:

focus on the textarea
press PgDn button

Expected Behavior
User scrolls a page down inside the text area
Actual Behavior
Application shifts left
Environment

Angular: 8.2.14
CDK/Material: 8.2.3
Browser(s): Chrome
Operating System (e.g. Windows, macOS, Ubuntu): Windows 10, Linux (Ubuntu/Linux Mint)

When pressing 'Page Down' in a textarea inside mat-sidenav-content when mat-sidenav[position] is set to "end" will shift the application left visually. Using mat-sidenav[position="start"] the behavior is fine. I've also noticed the amount of shift seems to be related to the number of characters on the line the cursor ends up on. Also pressing left afterwards will shift the application back to the right a bit.
Opening and closing the sidenav resets the application position.

It looks like this is a general issue in Chrome since there are a bunch of results that come up like this: https://stackoverflow.com/questions/17808854/pressing-pageup-while-in-textarea-moves-website-out-of-the-window
I tried playing around with some solutions like making the sidenav display: none while it's closed, but it didn't help.


Kotlin Data Class Requires Reflection for non-private field

Example Code
@Parcel data class TestParcel(val deleteMe: String? = null)
Warning when running tests
Parceler: Reflection is required to modify private final field: String deleteMe, consider using non-private and non-final.
private final java.lang.String deleteMe = null;
After searching through others issues using @Parcel(Parcel.Serialization.BEAN) seems to remove the warning but passing the TestParcel from an android activity to another as an intent extra results in null at the receiving activity.

You can use @ParcelConstructor on the constructor to tell Parceler to use it to "write".

Thank you very much, this seemed to fix the issues that I was having although now the default constructors can't be used. I can use
@Parcel(value = Parcel.Serialization.BEAN) data class TestParcel @ParcelConstructor constructor(val deleteMe?: String) {     constructor() : this(null) }
Although not @Parcel(value = Parcel.Serialization.BEAN) data class TestParcel @ParcelConstructor constructor(val deleteMe?: String = null)


Ambigous reference

Hi,
When I'm trying to display message, I got this :

With 0.6 version and cocoapod. Have you any solution ?
Thank you !

Hi,
Is sourceController a UIView or a view controller? The presenting view needs to be a UIView.
There are new versions you can try:  1.0 (Swift 3.0), and 0.6.2 (Swift 2.2)

Oh yes, my present view was UIViewController.. Thank you man !


specified numpy and python-dateutil version

Public-Facing Changes

Description

Modified versions of numpy and python-dateutil in dockerfile，because the current use of the default version will lead to problems such as dependency conflicts between libraries and outdated methods.

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

Thanks for the contribution! Can I ask what specific problem(s) you saw without this?


AMC broken - cannot download anything.

Checklist

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

Verbose log
youtube-dl -v --ap-mso Verizon --ap-username CENSORED--ap-password CENSORED https://www.amc.com/shows/61st-street/episodes/season-1-man-on-fire--1053948
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'--ap-mso', u'Verizon', u'--ap-username', u'PRIVATE', u'--ap-password', u'PRIVATE', u'https://www.amc.com/shows/61st-street/episodes/season-1-man-on-fire--1053948']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Python version 2.7.18 (CPython) - Linux-5.4.0-90-generic-x86_64-with-Ubuntu-20.04-focal
[debug] exe versions: none
[debug] Proxy map: {}
[AMCNetworks] shows/61st-street/episodes/season-1-man-on-fire--1053948: Downloading JSON metadata
ERROR: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 634, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2288, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

Description
Cannot download any videos from AMC's website even with MSO login. Tried multiple videos, none on the website work.

Same error from UK with no MSO login.
This was returned with the 404 response to the API URL https://content-delivery-gw.svc.ds.amcn.com/api/v2/content/amcn/AMC/url/shows/61st-street/episodes/season-1-man-on-fire--1053948:
{
  "error": {
    "isRedirect": false,
    "parameters": {
      "network": "AMC",
      "tenant": "amcn",
      "mocks": false,
      "device": "web",
      "headers": {
        "amcn-user-state": "{\"entitlements\":[\"amc_unauth\"],\"device\":\"\",\"mvpd\":\"\"}"
      }
    },
    "url": "/shows/61st-street/episodes/season-1-man-on-fire--1053948",
    "msg": "This ID returned a 204"
  },
  "status": 404,
  "success": false
}

It would be useful to see what the API URL returns if you paste it into the address bar of your browser when playing the show.

This API works, but it requires an account:
POST /playback-id/api/v1/playback/1053948 HTTP/1.1
Host: gw.cds.amcn.com
Authorization: Bearer eyJraWQiOiJwcm9kLTEiLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ...
Content-Type: application/json
X-Amcn-Device-Ad-Id: !
X-Amcn-Language: en
X-Amcn-Network: amcplus
X-Amcn-Platform: web
X-Amcn-Service-Id: amcplus
X-Amcn-Tenant: amcn
X-Ccpa-Do-Not-Sell: doNotPassData

{
 "adtags": {
  "lat": 0,
  "mode": "on-demand",
  "ppid": 0,
  "playerHeight": 0,
  "playerWidth": 0,
  "url": "!"
 }
}

AMC+ does have a "try 7 days free" offer.

So OP needs to provide cookies from the browser session (neither the extractor nor its superclasses provide a login procedure). Fetching the API URL is the first thing the extractor does.

Fetching the API URL is the first thing the extractor does. It doesn't have any code for extracting the Authorization token, which from the look of the site JS might be returned from the MSO login as the access_token in a response cookie. It seems to have become a bit OAuth2-ish. This is potentially addressed by the AdobePassIE class that is an indirect superclass of the AMCNetworksIE extractor, but I don't think the necessary code is ever called.

The site actually has two Authorization tokens. You get the first like this:
POST /auth-orchestration-id/api/v1/unauth HTTP/1.1
Host: gw.cds.amcn.com
X-Amcn-Device-Id: !
X-Amcn-Language: en
X-Amcn-Network: amcplus
X-Amcn-Platform: web
X-Amcn-Tenant: amcn

Then you use the first token, to get the second token:
POST /auth-orchestration-id/api/v1/login HTTP/1.1
Host: gw.cds.amcn.com
Authorization: Bearer eyJraWQiOiJwcm9kLTEiLCJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ...
Content-Type: application/json
X-Amcn-Device-Ad-Id: !
X-Amcn-Language: en
X-Amcn-Network: amcplus
X-Amcn-Platform: web
X-Amcn-Service-Group-Id: 10
X-Amcn-Service-Id: amcplus
X-Amcn-Tenant: amcn
X-Ccpa-Do-Not-Sell: doNotPassData

{"email":"EMAIL","password":"PASSWORD"}

then you can make a request for the actual media.

Has this ever worked recently? I think we have the issue from #30182:

video host changed from ThePlatform to BrightCove

After this change happened, I implemented the above workaround. You can use AMC extractor for BBC America, with just a "web account", no "TV account" needed.

content is DRM-protected (WideVine ?).

Correct.

Obviously the second point limits the utility of addressing the first. However Fairplay DRM was used with ThePlatform before and the links could be modified to access unencrypted content.

I dont that that works anymore. If you try the supposed fix URL, you now get 404.


taglist behavior with empty options

Reproduction
https://formkit.link/b0e18accf0b6e9f7e00b68f10e46490b
Describe the bug
While trying to use a taglist as a user-entered only input component (no selectable options), I had issues with the input's behavior.
While the documentation states that the default for options prop is [], it appears to be null as the component throws errors when entering values.
Oddly, when explicitly setting the options to [], the component becomes disabled.
I'm able to mostly satisfy my use-case by setting the options to [''] and hiding the dropdown indicator.
Environment
• OS: macOs 13
• Browser chrome
• Version 109

@ericvandever The taglist should default to an empty array if no options are passed, that should be fixed. Rendering the taglist disabled when an empty array was passed to options was intended to be a feature for the dropdown family inputs (dropdown, autocomplete, and taglist), but perhaps it makes sense not to do that with the taglist when you're using the "allow-new-values" prop. Your solution to use [''] works, you could also pass the options a function and return an empty array: https://formkit.link/bb067fdfc72d69a9ef119e5a74f9a0ba.
But yeah. I think your use-case where you're using the taglist just for data entry is a valid one we should consider. Maybe we could add a prop that removes the listbox entirely, hides the dropdown selector, and maybe some more features I can't think of right now?

I've run into the same problem. I want to use the taglist input for custom user-defined values and also load existing values if the user already saved some. But when I set :options=[], the field gets disabled.
Here's a workaround that works for me:
const options = ref(['option-1', 'option-2'])

setTimeout(() => {
    options.value = () => []
}, 100)

This lets me add initial values to the taglist input without the field getting disabled and without the listbox showing up.
The only issue left is that if a user types in a value that's already there, the input will remove it. Without the listbox for visual feedback, I'm worried this might confuse users when they're adding a bunch of values. It'd be cool to have an option that just ignores duplicates instead.

@jerrebm Here is a workaround for now: https://formkit.link/c38daa022e445104ebbbefa507276c71. Hopefully in the future we can implement a specific prop that ignores duplicates as you suggested and is more tailored for user-entered values.

My use case is very similar. Initially, options are empty but the user will add tags. I don't need a listbox at all. I am using it to collect an array of names as authors of an article.

@Youhan I plan to get out a prop that allows for this behavior, hopefully sometime next week.


getting symbol XSUSHIUSDT

Hello,
I fail to retrieve symbol XSUSHIUSDT using
screener: CRYPTO
exchange: SUSHISWAP
On my local installation and https://tradingview.brianthe.dev/
You can see it in tradingview
https://www.tradingview.com/symbols/XSUSHIUSDT/?exchange=SUSHISWAP
Is it something you should add to the code ?

Duplicate of #28 and #11.


Deploy to DPLYR Docs

This project can be deployed to DPLYR easily, why not add docs for this. I can help you with that

Hey @ahmedmgh67! We won't do this in the immediate term, but let me know if you'd like to document how to deploy Trotto in DPLYR's docs and could use our help. I expect that in time we'll also have a section in our docs linking to resources from the community, which could include a link to any guide you create.


build_all_linux.sh failed: threadpool.cc:94:29: error: no matching function for call to ‘Eigen::NonBlockingThreadPoolTempl

System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 18.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: No
TensorFlow installed from (source or binary):  https://github.com/tensorflow/tensorflow.git
TensorFlow version: 1.13
Python version: 3.6.13
Installed using virtualenv? pip? conda?: virtualenv
Bazel version (if compiling from source): 0.19.2
GCC/Compiler version (if compiling from source): gcc version 7.5.0
CUDA/cuDNN version: No CUDA
GPU model and memory: No GPU

Describe the problem
When I checkout tensorflow source code r1.13 and run the build_all_linux.sh, the downloading of eigen is failed as the eigen resource URL https://bitbucket.org/eigen/eigen/get/9f48e814419e.tar.gz writen in download_dependencies.sh did not exist. It seems that the version is eigen 3.3.7. Then I downloaded this eigen version from github.
Then I run build_all_linux.sh again. There were some errors during compiling: Please find the compiling log below.
It seems that the eigen version 3.3.7 did not match the tensorflow r1.13 source code: the tensorflow/core/lib/core/threadpool.cc requires a different input parameter of NonBlockingThreadPoolTempl format that Eigen::NonBlockingThreadPoolTempl provided. However after I downloaded all the eigen 3.3.x and checked their NonBlockingThreadPoolTempl definition there were none of them match the tensorflow's requirements. What's the matter?
Provide the exact sequence of commands / steps that you executed before running into the problem
tensorflow/tensorflow/contrib/makefile/build_all_linux.sh
Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
tensorflow/core/lib/core/threadpool.cc: In constructor ‘tensorflow::thread::ThreadPool::Impl::Impl(tensorflow::Env*, const tensorflow::ThreadOptions&, const string&, int, bool, Eigen::Allocator*)’:
tensorflow/core/lib/core/threadpool.cc:94:29: error: no matching function for call to ‘Eigen::NonBlockingThreadPoolTempltensorflow::thread::EigenEnvironment::NonBlockingThreadPoolTempl(int&, bool&, tensorflow::thread::EigenEnvironment)’
allocator_(allocator) {}
^
In file included from /home/chendan/code/tensorflow/tensorflow/contrib/makefile/downloads/eigen/unsupported/Eigen/CXX11/ThreadPool:58:0,
from /home/chendan/code/tensorflow/tensorflow/contrib/makefile/downloads/eigen/unsupported/Eigen/CXX11/Tensor:74,
from ./third_party/eigen3/unsupported/Eigen/CXX11/Tensor:1,
from tensorflow/core/lib/core/threadpool.cc:19:
/home/chendan/code/tensorflow/tensorflow/contrib/makefile/downloads/eigen/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h:22:3: note: candidate: Eigen::NonBlockingThreadPoolTempl::NonBlockingThreadPoolTempl(int, Environment) [with Environment = tensorflow::thread::EigenEnvironment]
NonBlockingThreadPoolTempl(int num_threads, Environment env = Environment())
^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/chendan/code/tensorflow/tensorflow/contrib/makefile/downloads/eigen/unsupported/Eigen/CXX11/src/ThreadPool/NonBlockingThreadPool.h:22:3: note:   candidate expects 2 arguments, 3 provided
tensorflow/core/lib/core/threadpool.cc: In member function ‘void tensorflow::thread::ThreadPool::Impl::ParallelFor(tensorflow::int64, tensorflow::int64, std::function<void(long long int, long long int)>)’:
tensorflow/core/lib/core/threadpool.cc:100:72: error: no matching function for call to ‘Eigen::ThreadPoolDevice::ThreadPoolDevice(tensorflow::thread::ThreadPool::Impl*, int, Eigen::Allocator*&)’
Eigen::ThreadPoolDevice device(this, this->NumThreads(), allocator_);
^
In file included from /home/chendan/code/tensorflow/tensorflow/contrib/makefile/downloads/eigen/unsupported/Eigen/CXX11/Tensor:92:0,
from ./third_party/eigen3/unsupported/Eigen/CXX11/Tensor:1,
from tensorflow/core/lib/core/threadpool.cc:19:
/home/chendan/code/tensorflow/tensorflow/contrib/makefile/downloads/eigen/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h:109:3: note: candidate: Eigen::ThreadPoolDevice::ThreadPoolDevice(Eigen::ThreadPoolInterface*, int)
ThreadPoolDevice(ThreadPoolInterface* pool, int num_cores) : pool_(pool), num_threads_(num_cores) { }
^~~~~~~~~~~~~~~~
/home/chendan/code/tensorflow/tensorflow/contrib/makefile/downloads/eigen/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h:109:3: note:   candidate expects 2 arguments, 3 provided
/home/chendan/code/tensorflow/tensorflow/contrib/makefile/downloads/eigen/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h:107:8: note: candidate: constexpr Eigen::ThreadPoolDevice::ThreadPoolDevice(const Eigen::ThreadPoolDevice&)
struct ThreadPoolDevice {
^~~~~~~~~~~~~~~~
/home/chendan/code/tensorflow/tensorflow/contrib/makefile/downloads/eigen/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h:107:8: note:   candidate expects 1 argument, 3 provided
/home/chendan/code/tensorflow/tensorflow/contrib/makefile/downloads/eigen/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h:107:8: note: candidate: constexpr Eigen::ThreadPoolDevice::ThreadPoolDevice(Eigen::ThreadPoolDevice&&)
/home/chendan/code/tensorflow/tensorflow/contrib/makefile/downloads/eigen/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceThreadPool.h:107:8: note:   candidate expects 1 argument, 3 provided
tensorflow/core/lib/core/threadpool.cc: In member function ‘void tensorflow::thread::ThreadPool::ScheduleWithHint(std::function<void()>, int, int)’:
tensorflow/core/lib/core/threadpool.cc:204:10: error: ‘struct tensorflow::thread::ThreadPool::Impl’ has no member named ‘ScheduleWithHint’; did you mean ‘Schedule’?
impl_->ScheduleWithHint(std::move(fn), start, limit);
^~~~~~~~~~~~~~~~
Schedule
tensorflow/core/lib/core/threadpool.cc: In member function ‘void tensorflow::thread::ThreadPool::SetStealPartitions(const std::vector<std::pair<unsigned int, unsigned int> >&)’:
tensorflow/core/lib/core/threadpool.cc:209:10: error: ‘struct tensorflow::thread::ThreadPool::Impl’ has no member named ‘SetStealPartitions’
impl_->SetStealPartitions(partitions);
^~~~~~~~~~~~~~~~~~
gcc --std=c++11 -march=native -I. -I/home/chendan/code/tensorflow/tensorflow/contrib/makefile/../../../ -I/home/chendan/code/tensorflow/tensorflow/contrib/makefile/downloads/ -I/home/chendan/code/tensorflow/tensorflow/contrib/makefile/downloads/eigen -I/home/chendan/code/tensorflow/tensorflow/contrib/makefile/downloads/gemmlowp -I/home/chendan/code/tensorflow/tensorflow/contrib/makefile/downloads/nsync/public -I/home/chendan/code/tensorflow/tensorflow/contrib/makefile/downloads/fft2d -I/home/chendan/code/tensorflow/tensorflow/contrib/makefile/downloads/double_conversion -I/home/chendan/code/tensorflow/tensorflow/contrib/makefile/downloads/absl -I/home/chendan/code/tensorflow/tensorflow/contrib/makefile/gen/host_obj/ -I/home/chendan/code/tensorflow/tensorflow/contrib/makefile/gen/protobuf-host/include -I/usr/local/include -c tensorflow/core/lib/io/inputstream_interface.cc -o /home/chendan/code/tensorflow/tensorflow/contrib/makefile/gen/host_obj/tensorflow/core/lib/io/inputstream_interface.o
tensorflow/contrib/makefile/Makefile:885: recipe for target '/home/chendan/code/tensorflow/tensorflow/contrib/makefile/gen/host_obj/tensorflow/core/lib/core/threadpool.o' failed
make: *** [/home/chendan/code/tensorflow/tensorflow/contrib/makefile/gen/host_obj/tensorflow/core/lib/core/threadpool.o] Error 1

@atptour2017 ,
TensorFlow 1.x is not actively supported. Could you please update TensorFlow to the latest stable version v2.4.1 and check if you are facing the same issue. Thanks!

Thanks!
So I checkout r2.4 but could not find build_all_linux.sh in this branch. The similar folder is tensorflow/tensorflow/lite/tools/make. This folder has download_dependencies.sh inside. But I do not know how to build the code. I need to build out protobuf header files and c++ source files and others as I want to use tensorflow in C++.
When I checkout r2.0 the tensorflow\tensorflow\contrib\makefile\build_all_linux.sh exists. It's the same structure as version1.x.
How to build the v2.4 source code?

@atptour2017 ,
TensorFlow 1.x is not actively supported. Could you please update TensorFlow to the latest stable version v2.4.1 and check if you are facing the same issue. Thanks!

Thanks!
So I checkout r2.4 but could not find build_all_linux.sh in this branch. The similar folder is tensorflow/tensorflow/lite/tools/make. This folder has download_dependencies.sh inside. But I do not know how to build the code. I need to build out protobuf header files and c++ source files and others as I want to use tensorflow in C++.
When I checkout r2.0 the tensorflow\tensorflow\contrib\makefile\build_all_linux.sh exists. It's the same structure as version1.x.
How to build the v2.4 source code?

@atptour2017
Please share the error logs faced on  tf 2.4.


Weird ASN.1 data with CMSSignedDataGenerator

Hi,
In a standard PKCS7 signature, generated with BouncyCastle, the ASN.1 signature data seems not perfect.
Some Sequence objects length are always set with a 0x80 (undefined) value.
Everything else is correct, though. The length is well set for every other data type.
If I use the sun.security packages to wrap the Bouncy signature in a PKCS7, every length is well set (same data to sign and same signature certificate) :
http://img11.hostingpics.net/pics/479305bouncy.png (Boucy)
http://img15.hostingpics.net/pics/803744sun.png (sun.security)
OpenSSL seems to have a hard time reading a p7s generated without these valid lengths.
The verification is successful using Bouncy or Spongy libraries, but fails with OpenSSL.
The Iaik PKCS#7 wrapper get its lengths right too.
So I sign with Bouncy and wraps with Sun, it do the trick.
But this CMSSignedDataGenerator would be useful on Android, or any other Sun-free JVM.

0x80 is the BER length value for indefinite-length, as CMS/PKCS7 is defined for BER this is correct usage, it is also the only way to handle very large data streams for signing in a limited memory environment.
CMSSignedData.toASN1Structure().getEncoded(ASN1Encoding.DL)
will produce a definite-length wrapper around the CMS SignedData object.
Please do not report "bugs" without at least checking the standards concerned.


Fix path checks for nodes on remote machines

don't check paths for remote nodes
ensure that paths of of remote nodes are absolute

The "paths on remote machines must be absolute" rule is probably a bit too limiting and it makes it difficult to commit things to git. So it's probably a better idea to use a default working directory as proposed in https://github.com/dora-rs/dora/issues/459


Adds hybrid character values to words section; fixes #174

I looked at your solution and at the code, looks like the solution needs a bit more thought on my side. All hybrid signs get substituted with × during preprocessing, so original character gets lost. I'll think how to reorganize the code to get the correct character for verbatim

@dimus Thanks for looking at this! Yes, I didn't attempt to fix the verbatim thing as it looked like a world of pain given the preprocessing... just reused the same code already in place for the named species hybrids.


Add method to easily instance default display scene

For prototyping and very-quick integration it would be very usefull to add a Dialogic.add_default_scene() method to dialogic. While I would recommend to create your own scene/display design, sometimes it would probably be nice to just use the scene that is used on the "Play Timeline" button.
You can of course allready do that by going to addons/Example Assets/Example Scenes and instance DefaultDialogNode into your scene, but I think a method like Dialogic.add_default_scene() would be easiest.

This is somewhat implemented with Dialogic.start() I think? Although personally I would like to rename that method to something like Dialogic.quick_start() or something else that makes it clear it does more then starting the timeline.


added stage for sending an email in case the deploy fails

@mareknovotny I saw in the last execution of community release that an email is not send if the build fails. I added this stage here.

won't the email be sent then twice? I see there are 1st and 2nd email kept there

@mareknovotny tricky:
1st email is send if the build was SUCCESSFUL/UNSTABLE
2nd mail is send only when the pipeline ws aborted and re-triggered and the build is SUCCESSFUL/UNSTABLE
in case the build fails the pipeline doesnt reach these steps and no mail is sent - this PR adds a email function only in case the build fails

@mareknovotny please let me merge this since I am doing still some test with #720 and I don't want the kie-jenkins-scripts PR overwritten.


Include chromedriver version in capabilities file

It would be useful to see what version of chrome driver is in use on a node from the grid/console page.
I'd like it to keep track of the version installed when the node is configured and included this in the capabilities object.
I assume you're already doing something for the Chrome version that's been installed as this is already included in the capabilities object for the node:
capabilities: Capabilities [{seleniumProtocol=WebDriver, browserName=chrome, maxInstances=1, version=56.0.2924.87, platform=WIN8}]
I'm fairly new to chef but if you point me in the write direction I'm happy to have a go at implementing this.

You would have to install at compile phase so version is available at converge phase.
You can force this be adding run_action, e.g.,
package "google-chrome-#{node['chrome']['track']}" do
  action :nothing
end.run_action(:install)

Now version can run against installed chrome in converge phase, e.g.,
def chrome_version
  case node['platform']
  when 'windows'
    chrome_windows_version
  when 'mac_os_x'
    chrome_linux_version('"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --version')
  else
    chrome_linux_version('google-chrome --version')
  end
end

Note the library here isn't in a module due to issues with the first release of Chef 12.  But if you use modules like in mozilla_firefox, then you will need to make that module available, e.g.,
Chef::Provider.send(:include, MozillaFirefox)
Chef::Recipe.send(:include, MozillaFirefox)
Chef::Resource.send(:include, MozillaFirefox)

Closing due to inactivity


503 Server Error: Service Unavailable for url

When I use python -m cc_net  to download and extract work, I am told that the connection cannot open
requests.exceptions.HTTPError: 503 Server Error: Service Unavailable for url: https://data.commoncrawl.org/crawl-data/CC-MAIN-2022-05/segments/1642320299852.23/wet/CC-MAIN-20220116093137-20220116123137-00540.warc.wet.gz
process_wet_file.py set WET_URL_ROOT = "https://data.commoncrawl.org"
How to solve this problem

when process_wet_file.py set WET_URL_ROOT = "https://ds5q9oxwqwsfj.cloudfront.net"
Traceback (most recent call last):
  File "/home/nlp/.local/lib/python3.8/site-packages/submitit/core/submission.py", line 54, in process_job
    result = delayed.result()
  File "/home/nlp/.local/lib/python3.8/site-packages/submitit/core/utils.py", line 122, in result
    self._result = self.function(*self.args, **self.kwargs)
  File "/home/nlp/newpan/project/yxn/cc_net/cc_net/mine.py", line 286, in _hashes_shard
    jsonql.run_pipes(
  File "/home/nlp/newpan/project/yxn/cc_net/cc_net/jsonql.py", line 455, in run_pipes
    write_jsons(data, output)
  File "/home/nlp/newpan/project/yxn/cc_net/cc_net/jsonql.py", line 496, in write_jsons
    for res in source:
  File "/home/nlp/newpan/project/yxn/cc_net/cc_net/jsonql.py", line 284, in map
    for x in source:
  File "/home/nlp/newpan/project/yxn/cc_net/cc_net/process_wet_file.py", line 210, in __iter__
    for doc in parse_warc_file(self.open_segment(segment), self.min_len):
  File "/home/nlp/newpan/project/yxn/cc_net/cc_net/process_wet_file.py", line 203, in open_segment
    return jsonql.open_remote_file(url, cache=file)
  File "/home/nlp/newpan/project/yxn/cc_net/cc_net/jsonql.py", line 1124, in open_remote_file
    raw_bytes = request_get_content(url)
  File "/home/nlp/newpan/project/yxn/cc_net/cc_net/jsonql.py", line 1094, in request_get_content
    r = _session().get(url)
  File "/home/nlp/anaconda3/envs/yxn_LASER/lib/python3.8/site-packages/requests/sessions.py", line 602, in get
    return self.request("GET", url, **kwargs)
  File "/home/nlp/anaconda3/envs/yxn_LASER/lib/python3.8/site-packages/requests/sessions.py", line 589, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/nlp/anaconda3/envs/yxn_LASER/lib/python3.8/site-packages/requests/sessions.py", line 747, in send
    r.content
  File "/home/nlp/anaconda3/envs/yxn_LASER/lib/python3.8/site-packages/requests/models.py", line 899, in content
    self._content = b"".join(self.iter_content(CONTENT_CHUNK_SIZE)) or b""
  File "/home/nlp/anaconda3/envs/yxn_LASER/lib/python3.8/site-packages/requests/models.py", line 816, in generate
    yield from self.raw.stream(chunk_size, decode_content=True)
  File "/home/nlp/.local/lib/python3.8/site-packages/urllib3/response.py", line 579, in stream
    data = self.read(amt=amt, decode_content=decode_content)
  File "/home/nlp/.local/lib/python3.8/site-packages/urllib3/response.py", line 522, in read
    data = self._fp.read(amt) if not fp_closed else b""
  File "/home/nlp/anaconda3/envs/yxn_LASER/lib/python3.8/http/client.py", line 454, in read
    n = self.readinto(b)
  File "/home/nlp/anaconda3/envs/yxn_LASER/lib/python3.8/http/client.py", line 498, in readinto
    n = self.fp.readinto(b)
  File "/home/nlp/anaconda3/envs/yxn_LASER/lib/python3.8/socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "/home/nlp/anaconda3/envs/yxn_LASER/lib/python3.8/ssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
  File "/home/nlp/anaconda3/envs/yxn_LASER/lib/python3.8/ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
  File "/home/nlp/.local/lib/python3.8/site-packages/submitit/core/job_environment.py", line 211, in checkpoint_and_try_requeue
    raise utils.UncompletedJobError(message)
submitit.core.utils.UncompletedJobError: Job not requeued because: timed-out and not checkpointable.

how to solve it?


MobileNet v2 training options

Could you please kindly share your training options for MobileNet v2 on ImageNet when top1 accuracy finally reaches 72.0%? Thanks a lot!

I trained MobileNet V2 from scratch by calling
python3 imagenet.py -d /path/to/your/ImageNet/root/ -j16 --epochs=300 --arch="mobilenetv2" --gpu-id="0,1,2,3" --lr=0.045 --lr-decay="linear2exp" --gamma=0.98 --weight-decay=0.00004
Now, the best model achieves 71.79% top-1 accuracy at Epoch 249. The training is expected to finish in a few days. Hardware environment: 4-way 2080ti, Software environment: Pytorch 1.0.

Could you please make this a part of the ReadMe ? I was about to open the same issue to ask for the hyperparameter details when I noticed this closed issue.


Adds NTT Pipeline, optimized Dahlia CT.

In this PR there is:

Re-hauled NTT directory, placing Dahlia implementations in its own corner for now.
Prototype pipeline generator for FuTIL (written in Python for now).
NTT correctness for FuTIL pipeline with N=32, generation for N=4

the --pass-debug flag to the dahlia compiler prints the program after every pass in the Dahlia compiler. Might be useful. Especially the pass called "sequentialize".

the --pass-debug flag to the dahlia compiler prints the program after every pass in the Dahlia compiler. Might be useful. Especially the pass called "sequentialize".

I've re-hauled this a bit. To prevent a catastrophic drop in developer productivity because NTT tests are taking too long in the automated test suite, I've added a single correctness test for the FuTIL pipeline with N=32. With #361, we can later add cycle count as well.
The Dahlia implementations are placed in a separate directory for now.
Also added is the prototype Python pipeline generator.

I've re-hauled this a bit. To prevent a catastrophic drop in developer productivity because NTT tests are taking too long in the automated test suite, I've added a single correctness test for the FuTIL pipeline with N=32. With #361, we can later add cycle count as well.
The Dahlia implementations are placed in a separate directory for now.
Also added is the prototype Python pipeline generator.

I don't think we should commit the large FuTIL files. As with other frontends, create two kinds of tests:

Frontend generation tests: These should be small and only test the output FuTIL files
Correctness tests: These can be larger tests but they expect files should test the outputs and not the generated FuTIL code.

I don't think we should commit the large FuTIL files. As with other frontends, create two kinds of tests:

Frontend generation tests: These should be small and only test the output FuTIL files
Correctness tests: These can be larger tests but they expect files should test the outputs and not the generated FuTIL code.

I don't think we should commit the large FuTIL files. As with other frontends, create two kinds of tests:

Frontend generation tests: These should be small and only test the output FuTIL files
Correctness tests: These can be larger tests but they expect files should test the outputs and not the generated FuTIL code.

Removed ntt-256, ntt-512.
I made the Python generator read in a file that takes in the 3 values for generation (without much error checking). There is now a generation test as well.

I don't think we should commit the large FuTIL files. As with other frontends, create two kinds of tests:

Frontend generation tests: These should be small and only test the output FuTIL files
Correctness tests: These can be larger tests but they expect files should test the outputs and not the generated FuTIL code.

Removed ntt-256, ntt-512.
I made the Python generator read in a file that takes in the 3 values for generation (without much error checking). There is now a generation test as well.

Can you move the front end tests to the tests directory (same as systolic array)? I think in the long term we’ll probably add NTT as a fud stage and make it a first-class front end.

Can you move the front end tests to the tests directory (same as systolic array)? I think in the long term we’ll probably add NTT as a fud stage and make it a first-class front end.

Can you move the front end tests to the tests directory (same as systolic array)? I think in the long term we’ll probably add NTT as a fud stage and make it a first-class front end.

Done. I also moved the NTT folder to frontends for now. I just saw gen-systolic-array.py so I shamelessly copied the argument parsing. If this script stays awhile longer, I'll look into refactoring the two since they share a lot of codegen features. We should discuss next steps for this on Tuesday as well.

Can you move the front end tests to the tests directory (same as systolic array)? I think in the long term we’ll probably add NTT as a fud stage and make it a first-class front end.

Done. I also moved the NTT folder to frontends for now. I just saw gen-systolic-array.py so I shamelessly copied the argument parsing. If this script stays awhile longer, I'll look into refactoring the two since they share a lot of codegen features. We should discuss next steps for this on Tuesday as well.

Hmm looks like some unrelated clippy failures
error[E0119]: conflicting implementations of trait `std::convert::From<ir::guard::Guard>` for type `boolean_expression::Expr<ir::guard::Guard>`:
Error:   --> calyx/src/passes/simplify_guards.rs:10:1
   |
10 | impl From<ir::Guard> for Expr<ir::Guard> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: conflicting implementation in crate `boolean_expression`:
           - impl<T> From<T> for boolean_expression::Expr<T>
             where T: Clone, T: Debug, T: Eq, T: Hash;

Hmm looks like some unrelated clippy failures
error[E0119]: conflicting implementations of trait `std::convert::From<ir::guard::Guard>` for type `boolean_expression::Expr<ir::guard::Guard>`:
Error:   --> calyx/src/passes/simplify_guards.rs:10:1
   |
10 | impl From<ir::Guard> for Expr<ir::Guard> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: conflicting implementation in crate `boolean_expression`:
           - impl<T> From<T> for boolean_expression::Expr<T>
             where T: Clone, T: Debug, T: Eq, T: Hash;

The problem is https://github.com/cfallin/boolean_expression/issues/16.  Fixed on master by pinning working version of the library.

The problem is https://github.com/cfallin/boolean_expression/issues/16.  Fixed on master by pinning working version of the library.

LGTM!

LGTM!


Possible to use it without tristate buffer ?

Hello,
Is there an example of using this package ?
Most of HyperBus driver are coded without tristate buffer (no inout signals) but with input/output/enable signal. Is there an option to avoid this 'Z' state ?
Thanks

@Martoni ,
This project is a work in progress and not ready for primetime yet.
We will be restarting development of this ip in May and target to complete it by June/July.


[SPARK-18471][MLLIB] In LBFGS, avoid sending huge vectors of 0

What changes were proposed in this pull request?
The zero for the aggregation used to be shipped into a closure which is
higly problematic when this zero is big (100s of MB is typical for ML).
This change introduces a new overload of treeAggregate which only ships a
function able to generate this zero.
NB This review takes into account preliminary feedback from https://github.com/apache/spark/pull/15905
How was this patch tested?
Unit tests for core module launched locally
Licensing
This contribution is made on behalf of CRITEO (http://labs.criteo.com/) under the terms of the Apache 2.0 license.

Can one of the admins verify this patch?

See my comments from your previous PR; they still apply. https://github.com/apache/spark/pull/15905

Sure, sorry I mistakenly pushed a badly rebased version


Registration no longer works this way

The instructions for setting App ID URI are out of date.

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

ID: 6f1c454d-73bc-5a73-5d3f-1b1ca7625044
Version Independent ID: 552b3f09-6650-e7f7-01f2-a702005b83e9
Content: Configure Azure Active Directory authentication - Azure App Service
Content Source: articles/app-service/configure-authentication-provider-aad.md
Service: app-service-mobile
GitHub Login: @mattchenderson
Microsoft Alias: mahender

@degrover-cn, Thanks for the question! We are taking a look into this and will get back to you soon.

@mattchenderson , Could you please verify the documentation and update.

@AjayKumar-MSFT Is there new tutorial for the latest AAD portal? I can't find out all the settings in this article and also don't know how to guide in new AAD portal.

@degrover-cn @opticyclic I've updated the article and it should be published sometime today. Thank you. #please-close

#reassign:cephalin


Improve test.sh context

I seeks to provide context on test.sh testing via dev-container-features-test-lib.
Specifically in the test.sh files, what is the syntax of the check (and possibly reportResults) command?
My PR includes a link and provides syntax. check <LABEL> <cmd> [args...]
However, there could be better ways (than this PR) to hint to people using this starter template about testing?🤔 Perhaps a README.md in the test dir?

@microsoft-github-policy-service agree


closes #1293: correctly quote comment in create and alter table queries

What this PR does:
Correctly quotes the comment that might be used while building create and alter table queries.
It's kinda insane we don't have any tests for create & alter queries, keyspaces, tables, etc.. We need to add this and I will create a ticket.
Which issue(s) this PR fixes:
Fixes #1293
Checklist

[x] Changes manually tested
[x] Automated Tests added/updated
~[ ] Documentation added/updated~

@ivansenic does this resolve #1290 as well or is there more work for that one?

Looks good. Would it be possible to add IT to ensure that quoted comment gets stored properly, in addition to unit test of QueryBuilder?

@dougwettlaufer yep, closed the #1290 as well..
@tatu-at-datastax there's also an INT test update, see the update in the schema.json file..

@ivansenic Ah. Missed that, thanks!


Create single license scanner for all catalogers

Description
Extends work from #3290 by still not leveraging the static license change object (to prevent the GC from holding onto license classifier objects in static space) but also not creating the same scanner often (which results in poor CPU performance). Instead this approach uses a single scanner instance that is scoped to the context object created within the CreateSBOM() top-level API function. Since the licenses.Search() path is invoked several times, it's important to not create license scanner objects within that function, but instead, pass a new scanner object. This allows for the caller to swap strategies and provide configuration to get different behaviors in license scanning. That being said -- this configuration has NOT been exposed on the API, as the new licenses.Scanner is in an internal package, however, in the future we can elevate this to the pkg/license package and expose a new builder function on the top-level API CreateSBOMConfig, but this has been deferred until later.

Fixes anchore/grype#2200

Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[x] Performance (make Syft run faster or use less memory, without changing visible behavior much)

Checklist:

[x] I have added unit tests that cover changed behavior (updated existing tests)
[x] I have tested my code in common scenarios and confirmed there are no regressions
[x] I have added comments to my code, particularly in hard-to-understand sections

The fix is certainly comparable to the performance of the previous release.
for f in grype-0810 grype-0820 grype-0821 grype-fix; do time ./$f jenkins/jenkins:latest -o json=$f.json; done
 ✔ Vulnerability DB                [no update available]
 ✔ Parsed image sha256:f78b5b90f20c751402aee62cca2342ed20abb9af0d06e45cdc666918ad9f9a00
 ✔ Cataloged contents 62fe8db1f064ce5bfd13cf87d2dcc9083d129b083a43009dde3551393ca9f4fa
   ├── ✔ Packages                        [497 packages]
   ├── ✔ File digests                    [8,512 files]
   ├── ✔ File metadata                   [8,512 locations]
   └── ✔ Executables                     [931 executables]
 ✔ Scanned for vulnerabilities     [156 vulnerability matches]
   ├── by severity: 4 critical, 15 high, 22 medium, 8 low, 92 negligible (15 unknown)
   └── by status:   13 fixed, 143 not-fixed, 0 ignored

real	0m55.700s
user	0m15.853s
sys	0m2.046s
 ✔ Parsed image sha256:f78b5b90f20c751402aee62cca2342ed20abb9af0d06e45cdc666918ad9f9a00
 ✔ Cataloged contents 62fe8db1f064ce5bfd13cf87d2dcc9083d129b083a43009dde3551393ca9f4fa
   ├── ✔ Packages                        [497 packages]
   ├── ✔ File digests                    [8,878 files]
   ├── ✔ File metadata                   [8,878 locations]
   └── ✔ Executables                     [931 executables]
 ✔ Scanned for vulnerabilities     [156 vulnerability matches]
   ├── by severity: 4 critical, 15 high, 22 medium, 8 low, 92 negligible (15 unknown)
   └── by status:   13 fixed, 143 not-fixed, 0 ignored
[0058]  WARN unable to discover java packages from opener: unable to process nested java archive (WEB-INF/lib/javax.inject-1.jar): /usr/share/je
[0067]  WARN unable to parse cpe attributes for elf binary package error=unable to parse Attributes string: failed to parse Attributes="": wfn:

real	1m8.772s
user	0m52.209s
sys	0m2.892s
 ✔ Parsed image sha256:f78b5b90f20c751402aee62cca2342ed20abb9af0d06e45cdc666918ad9f9a00
 ✔ Cataloged contents 62fe8db1f064ce5bfd13cf87d2dcc9083d129b083a43009dde3551393ca9f4fa
   ├── ✔ Packages                        [496 packages]
   ├── ✔ File digests                    [8,878 files]
   ├── ✔ File metadata                   [8,878 locations]
   └── ✔ Executables                     [931 executables]
 ✔ Scanned for vulnerabilities     [156 vulnerability matches]
   ├── by severity: 4 critical, 15 high, 22 medium, 8 low, 92 negligible (15 unknown)
   └── by status:   13 fixed, 143 not-fixed, 0 ignored
[0071]  WARN unable to discover java packages from opener: unable to process nested java archive (WEB-INF/lib/javax.inject-1.jar): /usr/share/je

real	1m28.341s
user	0m54.368s
sys	0m3.399s
 ✔ Parsed image sha256:f78b5b90f20c751402aee62cca2342ed20abb9af0d06e45cdc666918ad9f9a00
 ✔ Cataloged contents 62fe8db1f064ce5bfd13cf87d2dcc9083d129b083a43009dde3551393ca9f4fa
   ├── ✔ Packages                        [496 packages]
   ├── ✔ File digests                    [8,878 files]
   ├── ✔ File metadata                   [8,878 locations]
   └── ✔ Executables                     [931 executables]
 ✔ Scanned for vulnerabilities     [156 vulnerability matches]
   ├── by severity: 4 critical, 15 high, 22 medium, 8 low, 92 negligible (15 unknown)
   └── by status:   13 fixed, 143 not-fixed, 0 ignored
[0053]  WARN unable to discover java packages from opener: unable to process nested java archive (WEB-INF/lib/javax.inject-1.jar): /usr/share/je

real	0m55.420s
user	0m17.839s
sys	0m2.131s


Feature request: Some suggestions to API

Inherite Formats

Base = w:add_format{...}
Derive = Base:derive{...}
-- if we change value in `Base` value also changes in `Derive`
-- If we set value in `Derive` then all changes in `Base` are ignore.

Clone Formats

Base = w:add_format{...}
Derive = Base:clone{...} -- independent

set method

format:set{align = 'center'}

functions should return self

format
  :set_align(...)
  :set_color(...)

sheet
  :write(...)
  :write(...)

Hi,
I agree with the above suggestions.
Deriving is a good idea, however I think it may produce some problems.
Clone - method known from another libraries (wx) - for sure it will be safer.
Lack of get() of existing cell format now makes using library uncomfortable. Same for modifying value of already formatted cells.
Also, why there is no parameter, e. in set_bold() ?
In my document I format big range of cells (color and border), and later only for some of them bold style is set. No way to modify, I have to create a new format.
I can make improvements, I only need to know how to test it (modify/create new tests?).

One more: is there some compatibility with Python implementation intended? I mean the API should be the same or we can implement new features freely ?

Also, why there is no parameter, e. in set_bold() ?
In my document I format big range of cells (color and border), and later only for some of them bold style is set. No way to modify, I have to create a new format.

Seems reasonable. You should submit a separate issue for that.

is there some compatibility with Python implementation intended?

Yes. The API should mirror the Perl/Python APIs.

So (for example) if in Perl implementation there is no parameter in set_bold(), it shouldn't appear in Lua as well, even if this is reasonable thing to do ?

Now I checked: Python version supports input argument in set_bold(), beside that the True is the default

Right. So if it isn't in the lua version then it is probably a bug (or oversight). So If you open an issue, I'll fix it (and for the other properties as well).


Fix validator

Updates nim-ethers to latest chronosv3 branch.
Fixes validator, which uses transaction simulation to check whether a proof can be marked as missing.
Fixes gas estimations, so they are done on the pending block, instead of the latest block.
Extracted from #702

The transaction simulation part looks fine, but I have one question on the gas estimates: why do we want to use pending? Is it to get a more current/accurate estimate?

why do we want to use pending? Is it to get a more current/accurate estimate?

Good question, the main reason is time accuracy. Gas estimation does a simulation of your transaction and then checks how much gas was consumed. If you use the 'latest' block, then this simulation is done using the timestamp of the latest block, which is in the past. Using the 'pending' block, the simulation is done using a newer timestamp.
This is especially important for the validator, which can only mark a proof as missing when the proof period has ended. If we use the old timestamp to estimate gas, then the gas estimation will fail with a 'period hasn't ended yet' exception, even though the real transaction would not have failed on this.
And in some cases the symptoms are less clear, and it won't fail with an obvious exception based on timing. If the amount of gas is dependent on time, then the estimation can be too low, leading to a "Transaction ran out of gas" exception on the real transactin. This unit test in nim-ethers captures this scenario: testGasEstimation.

Got it - so basically it's because you have time-sensitive computations in your transactions, and those will fail their mock run during gas estimation if the timestamp taken to be the current time is too old.


changed metric type to value instead average

Provide a description of what has been changed
Checklist

[ ] Commits are signed with Developer Certificate of Origin (DCO - learn more)
[ ] Tests have been added
[ ] A PR is opened to update our Helm chart (repo) (if applicable, ie. when deployment manifests are modified)
[ ] A PR is opened to update the documentation on (repo) (if applicable)
[ ] Changelog has been updated and is aligned with our changelog requirements

Fixes #

That's not the way it should be done, as it would break existing functionality. See this instead: https://github.com/kedacore/keda/pull/2309


prog: more readable serialization for strings

Dominique Martinet reported at:
https://groups.google.com/d/msg/syzkaller-bugs/axCkZsIU5KI/C4NDCPRtAwAJ
the C reproducer (
https://syzkaller.appspot.com/x/repro.c?x=1701f831400000 ) has a lot of
"readable" letters spelled out as "\x63..." or chars as 0x3d - it's fine
for generated code and that might be easier for the intermediate
representation syzkaller works with, but do you know something handy
that would help convert these to readable strings?
e.g. "\x63\x61\x63\x68\x65\x3d\xc0\x6d\x61\x70" could be written
"cache=\xc0map", and 0x3d as '=' (hm I guess the later would not always
make sense to convert so probably best left as is, but it gets annoying
pretty fast with longer strings)

We now have readable format for strings:
https://github.com/dvyukov/syzkaller/commit/06456cac26422b683ad5374ec9dc3602ce0247f4
but it is used only if the whole string is readable. We could use it more widely.
And need to ensure that pkg/csource also generates readable strings.

(I'll blindly trust you on this), thanks!

I re-generated the original program with this change and it contained the desired "cache=\xc0map". You are welcome.