nginx: consider adding default configuration in /etc/nginx/conf.d/default.conf

We could set something like:
server {
    listen       80;
    server_name  localhost;

    #access_log  /var/log/nginx/host.access.log  main;

    location / {
        root   /usr/share/nginx/html;
        index  index.html index.htm;
    }

    #error_page  404              /404.html;

    # redirect server error pages to the static page /50x.html
    #
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;
    }

    # proxy the PHP scripts to Apache listening on <IP_ADDRESS>:80
    #
    #location ~ \.php$ {
    #    proxy_pass   http://<IP_ADDRESS>;
    #}

    # pass the PHP scripts to FastCGI server listening on <IP_ADDRESS>:9000
    #
    #location ~ \.php$ {
    #    root           html;
    #    fastcgi_pass   <IP_ADDRESS>:9000;
    #    fastcgi_index  index.php;
    #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
    #    include        fastcgi_params;
    #}

    # deny access to .htaccess files, if Apache's document root
    # concurs with nginx's one
    #
    #location ~ /\.ht {
    #    deny  all;
    #}
}

to at least setup a basic listener. This is what i found in the default dockerhub images.

For comparison this is our config, which is the nginx default plus the last line to redirect logs to stderr

#user  nobody;
worker_processes  1;

#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

#pid        logs/nginx.pid;

events {
    worker_connections  1024;
}

http {
    include       mime.types;
    default_type  application/octet-stream;

    #log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
    #                  '$status $body_bytes_sent "$http_referer" '
    #                  '"$http_user_agent" "$http_x_forwarded_for"';

    #access_log  logs/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    #gzip  on;

    server {
        listen       80;
        server_name  localhost;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            root   html;
            index  index.html index.htm;
        }

        #error_page  404              /404.html;

        # redirect server error pages to the static page /50x.html
        #
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }

        # proxy the PHP scripts to Apache listening on <IP_ADDRESS>:80
        #
        #location ~ \.php$ {
        #    proxy_pass   http://<IP_ADDRESS>;
        #}

        # pass the PHP scripts to FastCGI server listening on <IP_ADDRESS>:9000
        #
        #location ~ \.php$ {
        #    root           html;
        #    fastcgi_pass   <IP_ADDRESS>:9000;
        #    fastcgi_index  index.php;
        #    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
        #    include        fastcgi_params;
        #}

        # deny access to .htaccess files, if Apache's document root
        # concurs with nginx's one
        #
        #location ~ /\.ht {
        #    deny  all;
        #}
    }

    # another virtual host using mix of IP-, name-, and port-based configuration
    #
    #server {
    #    listen       8000;
    #    listen       somename:8080;
    #    server_name  somename  alias  another.alias;

    #    location / {
    #        root   html;
    #        index  index.html index.htm;
    #    }
    #}

    # HTTPS server
    #
    #server {
    #    listen       443 ssl;
    #    server_name  localhost;

    #    ssl_certificate      cert.pem;
    #    ssl_certificate_key  cert.key;

    #    ssl_session_cache    shared:SSL:1m;
    #    ssl_session_timeout  5m;

    #    ssl_ciphers  HIGH:!aNULL:!MD5;
    #    ssl_prefer_server_ciphers  on;

    #    location / {
    #        root   html;
    #        index  index.html index.htm;
    #    }
    #}

}
error_log  stderr  notice;

In general, I'm happy to move the Docker Hub config.
Open issues:

why is the config different; where are the differences coming from? Docker Hub seems to be using the package manager versions, so is this Debian settings?
We should probably comment out IPv6 support to avoid crashes/slow-down. Document how to turn it on
Not sure how logging is working, need to check it all goes to stderr/stdout

This was implemented in #478 .


Timezones?

Do you know the correct timezone for Spain/Madrid? Thank you :D

Just do a quick google search.
https://www.google.com/search?rlz=1C1TIGY_enNO692NO692&ei=y6IAWuX1HMGF6ASvgoyYCw&q=Timezone+Spain/Madrid&oq=Timezone+Spain/Madrid&gs_l=psy-ab.3..0i10i30k1j0i8i10i30k1.14357.14614.0.147<IP_ADDRESS>.<IP_ADDRESS>.<IP_ADDRESS>....0...1.1.64.psy-ab..0.2.144...0i13i10i30k1j0i8i13i10i30k1.0.qs-y-CL3YPM&gws_rd=cr&dcr=0

Lel... I meant to put it on the config... Which is the correct thing to put here?
timezone: America/New_York
So my players get the Spain/Madrid time

Well, isn't that Spain/Madrid then?


ytarchive downloads to wrong dir

L1620:
	fdir = os.path.dirname(full_fpath).lstrip(os.path.sep)

ytarchive used to download to the correct path (in my situation, i gives full path /root/Downloads ..., but dunno since when there's a .lstrip(os.path.sep) and it starts download to root/Downloads...

Welp, should have known someone might do that.
Will fix.


Usage with React Native Web and Styled Components

I am trying to setup react-native-web and styled-components. I have nearly everything working, but for some reason, styled-components can't resolve its react-native dependency to react-native-web on the server. The babel-plugin-react-native-web is setup and on the client side importing from styled-components/native also works, but on the server it errors with Cannot find module 'react-native'.
I have already tried to follow this example https://github.com/jaredpalmer/razzle/issues/689 to compile the styled-components package, but that doesn't solve the issue, it just leads to the styles being broken on the server instead of erroring. Any help would be greatly appreciated. I'm not experienced with webpack and a little lost here.

Fo now I worked around the issue by using patch-package to just alter the import line in styled-components, but that's certainly not the right solution.

Hi, @MrLoh can you explain a bit more how did you fix it?

Jo, hier ist meine razzle.config.js
'use strict';
const nodeExternals = require('webpack-node-externals');
const fs = require('fs');

module.exports = {
	modify(config, { target, dev }) {
		// setup react native web stuff
		config.resolve.extensions = ['.web.js', '.web.jsx', ...config.resolve.extensions];
		config.resolve.modules = [...config.resolve.modules, '../cinuru-components'];
		// Since RN web takes care of CSS, we should remove it for a #perf boost
		config.module.rules = config.module.rules
			.filter((rule) => !(rule.test && rule.test.exec && rule.test.exec('./something.css')))
			.filter((rule) => !(rule.test && rule.test.exec && rule.test.exec('./something.module.css')));
		// package uncompiled packaged
		const untranspiledPackages = [
			'styled-components/native',
		];
		// specify in babel rule
		const babelRuleIndex = config.module.rules.findIndex(
			(rule) => rule.use && rule.use[0].loader && rule.use[0].loader.includes('babel-loader')
		);
		config.resolve.alias = Object.assign(config.resolve.alias, {
			'react-native$': 'react-native-web',
			'react-native-svg$': 'svgs',
		});
		config.module.rules[babelRuleIndex] = Object.assign(config.module.rules[babelRuleIndex], {
			include: [
				...config.module.rules[babelRuleIndex].include,
				...untranspiledPackages.map((p) => fs.realpathSync(`./node_modules/${p}`)),
			],
		});
		// un-exclude from node compilation
		config.externals =
			target === 'node'
				? [
						nodeExternals({
							whitelist: [
								dev ? 'webpack/hot/poll?300' : null,
								/\.(eot|woff|woff2|ttf|otf)$/,
								/\.(svg|png|jpg|jpeg|gif|ico)$/,
								/\.(mp4|mp3|ogg|swf|webp)$/,
								/\.(css|scss|sass|sss|less)$/,
								...untranspiledPackages.map((p) => new RegExp(`^${p}`)),
							].filter(Boolean),
						}),
				  ]
				: [];

		return config;
	},
};


Unfortunately no longer works under 21.1

if I install your demo app under 21.1 and update the universal theme, the splitter plugin no longer works

This is due to some changes in the universal theme i.e. HTML structure of child regions, class name changes etc.
We will be releasing a new version of all the plug-ins that support APEX 21.1 in the near future. This will include a fix for this issue.
FYI: we provide immediate resolution of issues for customers that have purchased extra support for FOS plug-ins.

Fixed in just published v21.1.0


Missing Content from previous challenge

Challenge link-to-internal-sections-of-a-page-with-anchor-elements has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
I noticed when I loaded this challenge, the link from the previous challenge referred to in the instructions is no longer present.  To finish the challenge, you have to add the link back to this challenge and then make the relevant code changes in instructions to pass.
The instructions first paragraph states the following, but there is no external link in the code anymore, so you have to add it back in.

Change your external link to an internal link by changing the href attribute to "#bottom" and the anchor text from "cat photos" to "Jump to Bottom".

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

CatPhotoApp

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff. Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.   Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.

    ```

I am unable to replicate the issue.


Complete integration tests coverage (solmate tests) for ERC721

I'll be working on this issue.

The goal of this issue is to test a kakarot deployed Solmate's ERC721 against their test suite, to be found here.
Possible approaches are:

copy/paste their test file and adapt it to python and our test runner
try to use forge differential testing and run tests with forge (now included in the project)


Inspecting the page doesn't stop timer

Tested in both Firefox and Edge on Windows.
To reproduce in Edge, right-click anywhere on the site, select Inspect, click anywhere in the dev tools - time will continue running. Now you can switch tabs, too.
To reproduce in Firefox, right click anywhere on the site, select Inspect, click anywhere in the dev tools, right click anywhere on the site again, select Inspect again, click anywhere in the dev tools again - time will continue running. Now you can switch tabs, too.

Didn't know this was possible, but apparently you can detect open dev tools: https://github.com/AEPKILL/devtools-detector


Multiple Webpack outputs not generating correct script tags

I'm trying to write a webpack configuration that will output this sort of output to my index.html:

But it's not working as expected. Here are the files I'm using:
webpack.config.js
const path = require('path')

const webpack = require('webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const ScriptExtHtmlWebpackPlugin = require('script-ext-html-webpack-plugin')

module.exports = () => {

	const entry = ['./src']

	const plugins = [
		new ExtractTextPlugin({ filename: '[name].css', allChunks: true }),
		new HtmlWebpackPlugin({ template: './src/index.html' }),
    // This seems to be correct... but maybe I'm missing something
		new ScriptExtHtmlWebpackPlugin({
			module: /\.mjs$/,
			custom: [
				{
					test: /\.js$/,
					attribute: 'nomodule',
				}
			]
		})
	]

	const generateModule = esmodules => ({
		rules: [
			{
				test: /\.css$/,
				use: ExtractTextPlugin.extract({
					fallback: 'style-loader',
					use: 'css-loader'
				})
			},
			{
				test: /\.js$/,
				exclude: /node_modules/,
				loader: 'babel-loader',
				options: {
					presets: [
						['@babel/preset-env', {
							useBuiltIns: 'usage',
							corejs: '3.0.0',
							targets: {
								esmodules: !!esmodules
							}
						}]
					]
				}
			}
		]
	})

	const legacyConfig = {
		entry,
		output: {
			path: path.resolve(__dirname, 'public'),
			filename: '[name].legacy.js',
		},
		module: generateModule(false),
		plugins
	}

	const modernConfig = {
		entry,
		output: {
			path: path.resolve(__dirname, 'public'),
			filename: '[name].mjs',
		},
		module: generateModule(true),
		plugins
	}

	return [legacyConfig, modernConfig]
}

src/index.html
<!DOCTYPE html>

		<title>Some title</title>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<meta http-equiv="X-UA-Compatible" content="ie=edge" />

package.json
{
  "name": "some-project",
  "version": "1.0.0",
  "private": true,
  "description": "",
  "scripts": {
    "build": "webpack"
  },
  "dependencies": {
    "@babel/core": "^7.7.7",
    "@babel/polyfill": "^7.7.0",
    "@babel/preset-env": "^7.7.7",
    "babel-loader": "^8.0.6",
    "core-js": "^3.6.1",
    "css-loader": "^3.4.1",
    "extract-text-webpack-plugin": "^4.0.0-beta.0",
    "html-webpack-plugin": "^3.2.0",
    "http-server": "^0.12.0",
    "script-ext-html-webpack-plugin": "^2.1.4",
    "style-loader": "^1.1.2",
    "webpack": "^4.41.5",
    "webpack-cli": "^3.3.10",
    "webpack-dev-server": "^3.10.1"
  }
}

When I run npm run build, the javascript files are bundled as expected and exist in the filesystem under /public, but the following /public/index.html is outputted:
Expected /public/index.html output
<!DOCTYPE html>

		<title>Some title</title>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<meta http-equiv="X-UA-Compatible" content="ie=edge" />
	<link href="main.css" rel="stylesheet">

Actual /public/index.html output
<!DOCTYPE html>

		<title>Some title</title>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<meta http-equiv="X-UA-Compatible" content="ie=edge" />
	<link href="main.css" rel="stylesheet">

Only the one modern module script is present. I also tried using the following config as well:
new ScriptExtHtmlWebpackPlugin({
			custom: [
				{
					test: /\.mjs$/,
					attribute: 'type',
					value: 'module'
				},
				{
					test: /\.js$/,
					attribute: 'nomodule',
				}
			]
})

I got the exact same results. Am I doing something wrong? Is this a bug?

Hello - I'm sorry to say that this plugin is no longer being maintained.  I have tried to close all issues ahead of doing this but instead have found that the issue list just keeps growing.  I simply do not have the time to keep up.  Sorry.
Please keep an eye on the README where I will record anyone who forks this repo with the intention to supporting it in the future.


Add threshold variant

As discussed here, adding a threshold variant of Paillier would be nice.
I've written an implementation https://github.com/robinhundt/pht-crypto which I could adapt to use unknown_order. Would you be interested in PR for this?

Of course

Plan to use https://eprint.iacr.org/2023/998.pdf

Oh, this was something I wanted to do. Life got in the way :sweat_smile:
I've skimmed the abstract of the paper, it sounds interesting! Unfortunately I don't have time to work on this at the moment.


STORM-1207: Added flux support for IWindowedBolt

Added flux support for handling IWindowed bolt
Fix canInvokeWithArgs to handle multi argument overloaded methods
Sample flux topology with windowing

+1

@arunmahadevan

Could you add description about simple_windowing.yaml to README.md on flux-examples?
flux-examples doesn't depend on storm-starter, so simple_windowing.yaml doesn't work properly.

@HeartSaVioR Thanks for catching it. Somehow storm-starter was in my classpath and it did not complain. I have fixed it now.

@arunmahadevan Thanks for fast follow up. +1


🌠 Let the dataprocessing service support selecting deployment nodes

The image of dataprocessing is too large, and it is found that the installation often times out. Therefore, you can download the image on the node in advance so that the service can support node selection and the installation can be completed faster.

This is not requred in our product


Optimize quantization code a little bit more

Avoid computing distance multiple times on the same nearest_color.
Distance 200,000 was chosen as a start point because the first nearest color will always be better and rewrites it.
On Lenna picture export shaves off additional 7 seconds on my desktop from 21 to 14 seconds.

Great job! Thank you!


Empty string valid disease id

1503 evidence strings from the genetics portal are invalid because they lack the disease id:
"disease": {
    "reported_trait": "Keratinocyte cancer (MTAG)",
    "id": ""
  }

The source of this issue has been identified but raises the question of what the acceptable disease id would look like. In the JSON schema the disease id is described as “a valid EFO full URI” but it does not have a “URI” format or any other constraints that enforces it as other strings do so any string is considered valid. In the past a regex used to specify the format of the accepted ids. This could be reconsidered or a regex could be used to invalidate empty strings, e.g :
"disease": {
      "type": "object",
      "description": "Disease in the EFO ontology",
      "properties": {
            "id": {
                 "type": "string",
                 "description": "A valid EFO full IRI",
                 "pattern": "^[^\u0020]*$",
            }
         }
}

Related to #858

This bug was introduced at the evidence generation: there are ~750 studies with no disease labels in the genetics portal study table. This issue affects mostly UKBB studies, but there are studies from the GWAS Catalog as well. Luckily most of these studies don't have genome wide significant associations, so the missingness of the disease won't propagate to the evidence level.
There are only two studies: GCST008870, NEALE2_3761_raw with 162 GWAS associations below p-val 5e-8 corresponding to the 1503 disease/trait evidences.
For the resolution, see  issue #858

Still the question is whether the schema should be able to handle this issues. In my opinion it should, as it is simple to enforce in it and the issues would be identified earlier.

I renamed the ticket for clarity

The json schema has been updated not to accept empty disease ids (see https://github.com/opentargets/json_schema/pull/84)


Make display name accessible. Fixes Issue #39

Fixes Issue #39.
Issue was that the Browse Filter Spy+ did not display Filter's name. Problem can be solved by using ItemFilter's Caption property.

It looks like you preferred to fix the bug yourself after I opened a pull request. However, it would be nice if you at least acknowledge my contribution by closing this pull request with a comment. Thank you.
https://github.com/Esri/arcgis-pro-sdk-community-samples/commit/19a330dcbe57cdbbde7f0762e9321aa7b411c827

Thanks moosetraveller for finding, fixing, and reporting this issue.  It turns out that the Esri internal testing team found and reported this issue as well.  The issue had been fixed first on our internal sample site and was then pushed out to our external esri sample repo as well.  This esri internal fix occurred on a different track and the fix timeline was purely coincidental.  Thanks again for your contribution.


Build issue

Congratulations on this awesome tool. Currently, I have an issue - I can't see the voltage correctly in the 'On Awake' state; it's completely zero. However, in the 'Baked' state, it appears entirely red. I'm using Unity 2023.1.7 HDRP 15.

@gino-bino I'm sorry for the delayed response. Did you solve your problem? I would like to help you if you're still having any issues.

Sorry, wrong account. :)


Service Workers

I have built a site using this repo as my starting point and I really love it, it have everything I needed to build my site.
The next step for me is adding service workers, but in order to do that I need to have a seperate 'service-workers.js' file, when I add this file to the src/javascript directory it does not get moved across in the build process.
I have also tried adding the file to the gulpfile.js/config.json, under the 'js' task where is says "./app.js". This concatenates the two files and causes an error.
Any ideas how I can do this, I am really stuck?

Would be a:

Sure, just add another key to the entries object. The key is the name of the file that will get generated, and the value should point to the entry point for that bundle:
{
  "app": "./app.js",
  "service-workers: "./service-workers.js"
}


Not working when Deploying to Azure

It works locally running on Runtime version: 2.0.12115.0 (same as Azure) and Microsoft.NET.Sdk.Functions Version="1.0.22" but not In Azure
Error indexing method 'XXXXXX.Run' Cannot bind parameter 'worker' to type IXXXXXX.. Make sure the parameter Type is supported by the binding. If you're using binding extensions (e.g. ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. config.UseServiceBus(), config.UseTimers(), etc.).

There is an issue with the ExtensionsMetadataGenerator, which generates the needed extensions.json.
Someone posted a workaround for this issue in the corrospondig issue: https://github.com/Azure/azure-functions-host/issues/3386#issuecomment-419565714
Just download the Directory.build.targets file and place it into your project directory, this should copy the correct extensions.json file on publish. Hopefully MS will fix this in their SDK.
I will update the readme file.

Thank you Boris, thanks for taking your time to help me on this, it worked perfectly :)

Hi Boris, Scarbon,
I did tried the approach of adding directory.build.targets file in the project directory and when I build or publish the application, the extensions.json was created in bin folder with the startup class name and its type.
However when i deployed the code in app, I get the same binding error mentioned in he post. Is there any other settings i need to do in the azure portal ?
The DI works perfectly in my local environment. I use function V2.0 with dotnet core 2.1. Please advise.
thanks,
Magesh

@nmagesh84 could you please check that the runtime is set to version 2 in your function application:

You can find the setting in the Function App Settings

Thanks Boris for your prompt reply, i have ~2 runtime version only. I will double check my code again and will update you.

Thanks to @scarbon I was able to get on function up and running well! But if I deploy another Azure Function within the same Function App, I get an error like the original. It's really weird. If I were to republish the error-proned Azure Function, the error is no longer present, but now the other one is having issues.
Anyone have recommendations on how to fix this, or a workaround for it?


Error while parsing IDP-metadata

The current code assumes an SLO-endpoint to exist
Apr 26 11:28:43 sv1811042 EBLOG[1303]: [2023-04-26 11:28:43] app.ERROR: Trying to get property 'binding' of non-object [/apps/installation/OpenConext-engineblock/OpenConext-engineblock-6.9.0/src/OpenConext/EngineBlockBundle/Http/Respons
e/JsonHelper.php:55] {"session_id":null,"request_id":"6448eecb0b1a2"} {"exception":{"severity":"ERROR","location":"/apps/installation/OpenConext-engineblock/OpenConext-engineblock-6.9.0/library/EngineBlock/Application/ErrorHandler.php:8
3","userId":null,"idp":null,"sp":null,"details":"EngineBlock_Exception: Trying to get property 'binding' of non-object [/apps/installation/OpenConext-engineblock/OpenConext-engineblock-6.9.0/src/OpenConext/EngineBlockBundle/Http/Respons
e/JsonHelper.php:55]
#0 /apps/installation/OpenConext-engineblock/OpenConext-engineblock-6.9.0/src/OpenConext/EngineBlockBundle/Http/Response/JsonHelper.php(55): EngineBlock_Application_ErrorHandler->error()
#1 /apps/installation/OpenConext-engineblock/OpenConext-engineblock-6.9.0/src/OpenConext/EngineBlockBundle/Controller/Api/MetadataController.php(98): OpenConext\\EngineBlockBundle\\Http\\Response\\JsonHelper::serializeIdentityProvider()
#2 /apps/installation/OpenConext-engineblock/OpenConext-engineblock-6.9.0/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(151): OpenConext\\EngineBlockBundle\\Controller\\Api\\MetadataController->idpAction()
#3 /apps/installation/OpenConext-engineblock/OpenConext-engineblock-6.9.0/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php(68): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw()
#4 /apps/installation/OpenConext-engineblock/OpenConext-engineblock-6.9.0/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(200): Symfony\\Component\\HttpKernel\\HttpKernel->handle()
#5 /apps/installation/OpenConext-engineblock/OpenConext-engineblock-6.9.0/web/app.php(17): Symfony\\Component\\HttpKernel\\Kernel->handle()\n#6 {main}","message_prefix":null}}

Culprit is /apps/installation/OpenConext-engineblock/OpenConext-engineblock-6.9.0/src/OpenConext/EngineBlockBundle/Http/Response/JsonHelper.php:55

I think this is fixed in https://github.com/OpenConext/OpenConext-engineblock/pull/1229

@MKodde couldn't remember fixing it...  However, I don't see how removing equals fixing..

It's completely unused. Unused code, especially when broken, can best be removed.


Fixing warning messages causes in cdi-alternative example

This is being already fixed with https://github.com/wso2/product-as/commit/4fdac63be422e8433529ab3efb54a713e7edab29


Add support for rouge code highlighter

Jekyll has dropped support for Pygments in the recent 4.0 release.
The jekyll-asciidoc plugin still relies on Pygments for code styling.
As an asciidoctor-rouge gem already exists, I wonder how difficult it would be to add support for it in the plugin, so that Pygment would not be needed anymore.

The jekyll-asciidoc plugin doesn't rely on Pygments for code styling. It just happens to generate the stylesheet for Pygments and copy it to the output. The same could be done for Rouge.
You can certainly use Rouge with jekyll-asciidoc today. First, set source-highlighter to rouge. Then, either set rouge-css to style or put the stylesheet in generated site yourself.
All the plugin would do is generate a copy the stylesheet for you. And we could certainly add that. You can find the logic in this file: https://github.com/asciidoctor/jekyll-asciidoc/blob/master/lib/jekyll-asciidoc/integrator.rb

As an asciidoctor-rouge gem already exists

Do not use that. Asciidoctor has support for Rouge out of the box starting in 2.0.


Error while loading library: libraspidmx.so.1

After installing the "libpng12-dev" library and building the program from ~/raspidmx $ sudo make still getting the following error when running ~/raspidmx/pngview $ ./pngview :
./pngview: error while loading shared libraries: libraspidmx:so.1: cannot open shared object file: No such file or directory
Tried this all multiples time with no luck

See this issue https://github.com/AndrewFromMelbourne/raspidmx/issues/16


Docs : Add time and space complexities of various algorithms

We should add a document containing details about the space and time complexities of various algorithms.
This will provide a way to compare different algorithms.

Try to add this.

Should I write a .doc file?

We can create a wiki page here.


Tag deletion for filtering by degrees and institutions does not work for individual tags

Tag deletion for filtering by degrees and institutions in the "Browse all faculty profiles" view does not work when a) clicking the backspace button, or b) clicking on the "x" right by the tag. It only works when clicking the larger "X" to the right of the box.

Fixed. Deploying to production. Also fixed sentry error reporting which wasn't catching this error!


Failed GATTC_* calls not result in ...

... call of corresponding app callback.
For example when GATTC_Write fails with GATT_BUSY error, the callback in app never be called.
This excerpt:
if (p_clcb->p_q_cmd == NULL) {
APPL_TRACE_ERROR("No pending command");
return;
}
from bta_gattc_op_cmpl() prevents to execute callbacks without p_clcb->p_q_cmd.

@SiarheiVolkau .  Thanks for the update!  Please see this issue as I'm sure your commit "fixes" it, and I will be anxious to try.  (https://github.com/espressif/esp-idf/issues/888)
However, I'm a bit afraid that this is sort of masking a bigger underlying problem.  And it may be related to the CC2540 since I remember you also had another issue common to me with the CC2540 and overall I seem to have some connecting flakiness that others mostly don't seem to have (except you).
To summarize that issue 888, this GATTC_Write failed issue was happening for me 100% on the second connect.  Basically I could connect once reliably, kill peripheral power, and on reconnect this would happen every time.  My temporary "fix" was to remove all the code that was doing the service change characteristic discovery that was added by the commit referenced in that issue (https://github.com/espressif/esp-idf/issues/888).
Thanks again for the commit!  I'm anxious to try and hopefully get back to the master branch again soon

@jkhax0r this not related to CC2540 or my other PRs or issues.
Im just write firmware that collect messages from external sources and send it via BLE to other device. For this task was picked guaranteed delivery in order by using GATT "Write with response" command and freertos's queue of messages.  I was expect to receive callback for each message i sent, but some writes (with small time in between 2 consecutive writes) not cause callback to be called, since BLE stack still process first message and for second one GATTC_Write() returns GATT_BUSY. Lost callback hungs queue processing.
This patch restore lost callbacks as you see, and potentially can fix #888 with writing special callback handler in user's code.

Okay thanks.  I see how https://github.com/espressif/esp-idf/issues/888 has a different cause, but I think this will fix the symptom.
The issue https://github.com/espressif/esp-idf/issues/888 was caused by the stack internally issuing a GATTC_Write() call for the service change characteristic notification, which I believe would fail on my hardware for some reason, and then never clear the pending status.  So then any GATTC_write from the app would lead to the GATT_BUSY error message, but quietly fail and never return a failure callback.  Sounds like your change may fix the internal state hang, but most definitely will fix the missing failure callback.
Thanks again for your contribution!

Maybe we need to look for another way to fix this problem.

@TianHao-Espressif do what you want.
I just propose change that enlights problem.
This patch works for me and im not see any side effects with it.

@SiarheiVolkau , thanks for your kind. We will do something about it.

I'm going to close this PR as I believe this is now fixed in the master branch. @SiarheiVolkau please let us know if that's not the case.


Selection is not collectly handled in the regenerate-surf operation of MolSurfObj

Selection information in the previous surface generation operation is ignored in the regeneration of MolSurfObj.

fixed both GUI and implementation.


[Feature] QueryField component

QueryField Component
Objective
Allows retrieving the information of a field by its name.
Motivation
I know that there is a selector in redux-form called formValueSelector which can retrieve the value of a field, but I always find annoying to connect a component/screen in order to access the value of a field. This is an example of what I'm saying (let's assume that I've already called reduxForm() in a component from above):
import React from 'react'
import { Field, formValueSelector } from 'redux-form'
import { connect } from 'react-redux'

const MyComponent = ({ firstNameValue }) => {
  return (

      <Field name="firstName" component="input" />

{firstNameValue}

  )
}

const mapStateToProps = state => ({
  firstNameValue: formValueSelector('MY_FORM')(state, 'firstName')
})

export default connect(mapStateToProps)(MyComponent)

Now, let's see the same result but in this case using QueryField
import React from 'react'
import { Field, QueryField } from 'redux-form'

const MyComponent = () => {
  return (

      <Field name="firstName" component="input" />
      <QueryField name="firstName">{({ value }) =>
{value}
}</QueryField>

  )
}

export default MyComponent

How it works?
The QueryField would connect to the redux store for us, and call our renderProp function which could be passed inside children or render prop.
import React from 'react'
import { QueryField } from 'redux-form'

const WithChildren = () => (
  <QueryField name="firstName">{({ value }) =>
{value}
}</QueryField>
)

const WithRender = () => (
  <QueryField name="firstName" render={({ value }) =>
{value}
} />
)

Apart from the value of the Field, we can take all the relevant information of the field like submitting, syncError, asyncError and many more (check for ConnectedQueryField to see all the values the renderProp will receive), this an advantage over the formValueSelector because we can access to more information of the field.
Last Words
This is my first PR to redux-form project so maybe there might some things I skipped because I don't know the codebase completely, for that reason please feel free to request for modifications that I didn't see or a change in the API of the component.

@EmaSuriano thank you for contributing to redux-form! I <3 this idea, but upon first lookover, I wonder if we can simplify it implementation wise. Just to give some context, it has been previously passed around that the <Field /> component itself can be used as a selector, i.e., there's no rule saying that it has to render a form input. However, what I really like here is that you're making this usage an explicit pattern, and introducing a render-props api to this. Regarding implementation, (and as I like to point out I mainly maintain issues around here) is there any reason not to re-use Field in this manner to implement this - could just save a little footprint wise..:
const RenderQueryField = ({
  render,
  children,
  input: { onChange, onBlur, onFocus, ...input },
  meta
}) => {
  invariant(render || children, 'render or child prop is required')
  return (render || children)({ input, meta })
}

export default = ({ name, ...props }) => (
  <Field
     component={RenderQueryField}
     name={name}
     ...props // e.g.`type="checkbox"` modifiers
  />
)

@danielrob Thanks for the feedback. Using the Field component as a selector was my first approach! But I realized that it wasn't possible to do that, because of an error that crashes my application. The error was "Cannot read property 'getHostNode' of null".
I've just made a simple example with your code to see if I'm able to reproduce it again and it seems that it's working. I really don't know why I wasn't able to get it on the first try ...
Taking into consideration that, I think it would be helpful to write an example of using the Field as a selector inside the redux-form examples (there is one example of getting the value of a field but using the formValueSelector). I think the best approach is to close this PR and start a new one with the example. What do you think?

I've been testing using the Field component as a selector, and there are some cases when it gets a little bit annoying. For example, let's assume I want to take 2 values from a form, join them and display a result. I would end up with something like this.
      <Field
        name="firstName"
        component={({ input: { value: firstName } }) => (
          <Field
            name="lastName"
            component={({ input: { value: lastName } }) => (

                {firstName} {lastName}

            )}
          />
        )}
      />

I think in this case QueryField could be useful if I provide a change in the API, resulting in:
<QueryField names={["firstName", "lastName"]}>
        {({ firstName, lastName }) => (

            {firstName} {lastName}

        )}
      </QueryField>

@EmaSuriano couldn't you have an accompanying QueryFields component that wraps the Fields component in the same manner? I really appreciate this discussion, and to be clear, I really support having an explicit QueryField(s) component as you suggest rather than just adding the example to the docs (although a good option). One thing I would say though is that I'd like the render function to return the meta as well as the value, the resulting api should still be palatable.

@danielrob I really like your approach of re-using the Field and Fields component, but I added a little improvement: I re-use ConnectedField and ConnectedFields. The reason is that Field(s) implement the logic of registering and unregistering the Field inside the lifeCycle (CDM, CDU), which in my opinion don't have anything to do with QueryField and also add unnecesary traffic to the Redux store (because it's already registered).
So basically QueryField(s) are a wrapper of ConnectedField(s) 👍
The final API of both components are:
QueryField
<QueryField name="firstName">
  {({ value }) => {
    console.log('meta of firstName', meta);
    return
{value}
;
  }}
</QueryField>;

QueryFields
<QueryFields names={['firstName', 'lastName']}>
  {({ firstName, lastName }) => {
    console.log("fields' meta", firstName.meta, lastName.meta);
    return
{`${firstName.value} ${lastName.value}`}
;
  }}
</QueryFields>;

I would like to know your thoughts of the changes! And one more thing, I'm thinking of performing a new validation inside the constructor of each component that checks if the provided name exists in the form. Right now if the field doesn't exists the returned object is an empty object, which is a bit odd.

I think this looks really great. Regarding removeFieldHandler, we should probably actually keep [input.]checked and [input.]name first one for obvious reasons, and second I can imagine use cases (e.g. looping with object.entries). Going further, since the whole intention is that this wouldn't render a field, I'm not sure there's actually a reason to separate meta and input anymore. How about we spread so that the props are:
// Field
{ value, name, checked, {...meta} }

// Fields
{
  fieldName:  { value, name, checked, {...meta} }
}

So, if you could:

[ ] spread {...meta} and include value, name, checked
[ ] add the tests you mentioned,
[ ] pluralize removeFieldHandler => removeFieldHandlers
[ ] add docs (if you need help with that, I can)

Then you'd likely have final review/signoff from me and then over to Erik the next time he does his maintenance run. Hopefully he's happy / likes it too :).
Thanks so much for this, I think this will make a huge difference as 'how do I access X outside of the Field' is a frequently asked question.

Hey, @danielrob did you have some spare time to check this PR? I can help with the documentation if you want, I don't know if you already wrote something 😆


add report of principals not assigned and not being advised

This report lists all active principals who are not assigned to a position and are not being advised.  This report is used to keep the data accurate.  The report is used to see the details of all the advisor organizations.  See attachment for the report prototype.
Reference item 46

Added to #1958


Fixing mainframe error when the response have special caracteres.

When the mainframe emulator has a response body with special caracteres like: ã, ç. The page return a error and the request is stopped, I identified these encoding/decoding functions where the charset ascii are configured and after some testes when I change these charset to utf-8 the errors are stopped and all the response returns successfully.

Thanks @gsavio2.  Do you have any other changes you want to make before we make a release?

I just want more a week to see if changes aren't with errors, but until now everything is OK.

If possible don't make the release of this version, some errors need to be fixed.

@gsavio2 what errors did you encounter? Might just copy-paste your changes since this was not yet been merged.


[ISSUE #4323] OrderMessage example add the default NamesrvAddr

fix : #4323
Make sure set the target branch to develop
What is the purpose of the change
XXXXX
Brief changelog
XX
Verifying this change
XXXX
Follow this checklist to help us incorporate your contribution quickly and easily. Notice, it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.

[x] Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[x] Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Write necessary unit-test(over 80% coverage) to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
[x] Run mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test  to make sure integration-test pass.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

Codecov Report

Merging #4348 (c295f90) into develop (82a48be) will decrease coverage by 0.23%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             develop    #4348      +/-   ##
=============================================
- Coverage      48.18%   47.95%   -0.24%
+ Complexity      5082     5055      -27
=============================================
  Files            642      642
  Lines          42770    42770
  Branches        5597     5597
=============================================
- Hits           20609    20509     -100
- Misses         19655    19749      +94
- Partials        2506     2512       +6

Impacted Files
Coverage Δ

.../broker/subscription/SubscriptionGroupManager.java
64.70% <0.00%> (-16.48%)
:arrow_down:

...va/org/apache/rocketmq/store/FlushDiskWatcher.java
81.25% <0.00%> (-9.38%)
:arrow_down:

...org/apache/rocketmq/common/stats/StatsItemSet.java
44.77% <0.00%> (-5.98%)
:arrow_down:

...in/java/org/apache/rocketmq/test/util/MQAdmin.java
38.88% <0.00%> (-5.56%)
:arrow_down:

...apache/rocketmq/remoting/netty/ResponseFuture.java
85.00% <0.00%> (-5.00%)
:arrow_down:

...e/rocketmq/remoting/netty/NettyRemotingClient.java
42.37% <0.00%> (-4.24%)
:arrow_down:

...rocketmq/remoting/netty/NettyRemotingAbstract.java
47.08% <0.00%> (-4.02%)
:arrow_down:

...lient/impl/consumer/DefaultMQPushConsumerImpl.java
39.96% <0.00%> (-3.88%)
:arrow_down:

...ava/org/apache/rocketmq/filter/util/BitsArray.java
59.82% <0.00%> (-2.57%)
:arrow_down:

...a/org/apache/rocketmq/filter/util/BloomFilter.java
60.43% <0.00%> (-2.20%)
:arrow_down:

... and 13 more

Continue to review full report at Codecov.

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

Coverage increased (+0.1%) to 52.254% when pulling c295f905191a05c5ad83decea068d2e51f1f0a96 on li-xiao-shuang:feature_example_8 into 82a48be00a6d9def14abb871a40cb68cf8a041e9 on apache:develop.


Move sentences to different lines for easier diffing

Probably should just view the rich diff and glance at the regular diff.

:+1:


az security task deprecated

Describe the bug
I believe az security task is depcreated, please confirm as it's pulling outdated and deprecated recommendations
Related command
az security task list --query "[?securityTaskParameters.name=='Enable Security Contact Configuration in Policy']"
Errors
No error but it is not pulling relevant information
Issue script & Debug output
[
{
"creationTimeUtc": "2021-11-15T15:53:31.818967+00:00",
"id": "/subscriptions//providers/Microsoft.Security/locations/westcentralus/tasks/7f880528-2a40-43d3-b012-2a3d9117f987",
"lastStateChangeTimeUtc": "2021-11-15T15:53:31.818967+00:00",
"name": "7f880528-2a40-43d3-b012-2a3d9117f987",
"securityTaskParameters": {
"name": "Enable Security Contact Configuration in Policy",
"resourceId": "/subscriptions/",
"uniqueKey": ""
},
"state": "Active",
"subState": "NA",
"type": "Microsoft.Security/locations/westcentralus/tasks"
}
]
Expected behavior
Marked deprecation notice
Environment Summary
                                                                                azure-cli                         2.57.0

core                              2.57.0
telemetry                          1.1.0
Extensions:
ai-examples                        0.2.5
ml                                2.22.0
sentinel                           0.2.0
ssh                                2.0.2
Dependencies:
msal                              1.26.0
azure-mgmt-resource             23.1.0b2
Additional context
No response

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


Please add link to Fault

Prompt
Please add a link to Fault in the README of OpenLane.
Proposal
This seems to be the current link to Fault: https://github.com/AUCOHL/Fault

We're waiting until Fault has been integrated with OpenLane to do that.


Option to show full timestamps rather than pretty-printed relative times

What is the goal / desired outcome?
Compare the exact time that two events happened in the system, when the pretty-printer simplifies both as "3 hours ago"
If there is a way to accomplish this today via workaround, what does that require?
use --raw you can get the actual timestamps and do whatever searching/sorting/filtering you want by piping output to jq. This is fairly ugly/annoying
(Optional) What is your proposal for a feature to solve this?
Command-line flag (--full-timestamps?) to show full timestamps

@gabrielgrant do we want timestamp displayed as seconds since epoch or as a timestamp string(i.e. 2019-03-04T22:10:12.572638018Z), or a different flag for both?

@kevindelgado i think ISO datetime strings (the former) are generally a lot more useful. am i understanding correctly that is that what should be coming out of this, right? https://github.com/pachyderm/pachyderm/pull/3547/files#diff-412ea471cf093eeab2b3162c664da90cR183

Yes that is correct, figured the ISO string would be better, wasn't sure if there are any use cases where someone explicitly wants seconds from epoch.

I haven't heard any requests for tha. I think if someone really needs epoch time, they can use --raw and convert it themselves with date or whatever

This has been implemented as --full-timestamps.


More attempts to make the server more robust

In this case, adding a recover so that panics during rectify are reduced to an
error for the respective change.

Current coverage is 59.12% (diff: 43.33%)

Merging #192 into master will decrease coverage by 0.08%

@@             master       #192   diff @@
==========================================
  Files           119        119
  Lines          6255       6278    +23
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
+ Hits           3704       3712     +8
- Misses         2237       2249    +12
- Partials        314        317     +3

Powered by Codecov. Last update fac28de...71dee6f

Thanks for this @nyarly, closing as superseded by #193 (which just refactors and adds an extra test)


build: Rename variables used in usr_from_*, rework ACI manifest generation

Instead of using global variables (like ACIROOTFSDIR or STAGE1_USR_STAMPS) we start using local ones (S1_RF_ACIROOTFSDIR or S1_RF_USR_STAMPS). This now makes no difference, but later each flavor will have its own set of variables which will be accessible under these convenience names.
Also, move ACI manifest generation from configure to make. configure was convenient when we had only one manifest to generate, but later we will have to have it generated for each flavor we build.
On top of that, use manifest to point rkt to proper binary for kvm flavor instead of using some pointer gimmicks.

LGTM

LGTM


Add 'HELP' statement support

What problem does this PR solve?
Add support for the help statement

https://dev.mysql.com/doc/refman/8.0/en/mysql-server-side-help.html
https://dev.mysql.com/doc/refman/8.0/en/help.html

Check List
Tests

Manual test (add detailed scripts or steps below)
Unit test

Run the help command in the MySQL client.

/lgtm

/LGTM

Please re-generate the parser.go, it's outdated. @dveeden

Please re-generate the parser.go, it's outdated. @dveeden

done


GEODE-6857: Moves function timeout to function operations.

Commit f758494 is a cleanup commit. The changes are in
1d275b4. I suggest you review them separately.

@bschuchardt can you look specifically at https://github.com/apache/geode/commit/f758494df402be09e503d1f893cbd2da15549e38#diff-f5e3370b7dd052b8f97f34fb6b4ce68aR108, which removes unreachable code introduced by some previous commits blamed on you. I want to make sure that it was intentional that the boolean initialized flag was moved ahead of the authentication method. If so is the unreachable code unnecessary now or do we need a different condition for cleaning up after failure.

@pivotal-jbarrett I think @bschuchardt is on PTO for the next couple weeks and probably won't be reviewing PRs until he returns.

I didn’t see that but I’ll look closer. I wasn’t too concerned in the PR with optimizing for the property read as I was on moving this smell out of connections.

Only test failure from the current run is a known issue https://issues.apache.org/jira/browse/GEODE-6586


Update updater splash

[NETBEANS-146] New Apache NetBeans Logo on the updater splash

Good work.
I think you would have to also update the Updater Splash in "ide.branding". So far, you have only updated the Updater Splash for the Platform, as far as I can tell.
See NETBEANS-146 for more details.

I don't think there are objections to this, i.e., including the new updater image so I'm going to merge it.

I'm loving the modern look. The IDE needed it! Should we use those colors in the default IDE theme?


Inbound rule for a specific program

I'm trying to open an inbound rule using this tutorial and if I try to create the rule specifying the program/service, it doesn't work. However, if I select the option 'All programs that meet the specified conditions' the rule works and I can access the service from outside the host machine. We already looked at the firewall logs and if the rule is assigned to the program/service the connections are being dropped.
Our service runs as Local Service or Managed Service Account (MSA) and in both scenarios we see that the firewall rule drops the connection every time it is referencing an application or a service. The moment we remove the application or the service from the rule and leave it only with the ports the rule works and the connection goes through.
I'm using Windows 10 Pro, Version 1809 (Build 17763.864).
Any ideas?

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

ID: df1d6ca4-d733-03f6-7c5a-d0bd584fb805
Version Independent ID: 4d3a7607-cdbf-72d8-0cf0-d3b173eca352
Content: Create an Inbound Program or Service Rule (Windows 10)
Content Source: windows/security/threat-protection/windows-firewall/create-an-inbound-program-or-service-rule.md
Product: w10
Technology: windows
GitHub Login: @Dansimp
Microsoft Alias: dansimp

@jaegerfe  - Thank you for submitting feedback.
I think the best way forward is if you can open a service ticket so this can get resolved ASAP. Based on outcome, let me know if it is something that can be called out in the docs.
Please follow this link to contact support for Windows 10 products:  https://support.microsoft.com/hub/4338813/windows-help?os=windows-10
If you don't mind please keep us posted here on the resolution and I really want to get this information you are discovering back into the docs.


[Docs]

Current State:
Desired State:

Contributor Resources

Meshery documentation site
Meshery documentation source
Instructions for contributing to documentation

Is there any additional detail that you would like to add to this issue, @ShervinPlays?

Issue seems stale with no details. Closing, for now, @ShervinPlays please feel free to reopen.


check for nil before accessing and dereferencing

check for nil before accessing and dereferencing
add test for above, remove code duplication

closes https://github.com/prometheus/prometheus/issues/13574

ah that's a serious bugfix here.
Let's add it to the 2.50. Can you @darshanime change the target branch to release-2.50 please ?

done @Nexucis, ptal


Matrix components

Thanks for the awesome package! It's been very helpful in putting together some complicated models. One of my simulations has a matrix of ODEs and I tried using ComponentArrays to handle it, but it seems to flatten it into a vector. MWE:
julia> c = ComponentArray(a = 1, b = rand(2,2))
ComponentArray{Float64}(a = 1.0, b = [0.24410936846253284, 0.7216454349529038, 0.7719341762466598, 0.5748953546713345])

julia> c[:b]
4-element view(::Array{Float64,1}, 2:5) with eltype Float64:
 0.24410936846253284
 0.7216454349529038
 0.7719341762466598
 0.5748953546713345

Instead I was expecting something like this:
julia> c[:b]
4-element view(::Array{Float64,2}, 2:5, 2:5) with eltype Float64:
 0.244109  0.771934
 0.721645  0.574895

Glad to hear it's been helpful! Yeah, I ran into this last week and forgot to make an issue for it, so thanks for making one. It isn't too hard to implement for the one-dimensional ComponentArray case, just hold onto the size information so we can reshape it after. The problem is what the behavior should be for higher dimensional ComponentArrays. So given the same c, we could extrude out a c2:
julia> c2 = c .* c'
5×5 ComponentArray{Tuple{Axis{(a = 1, b = 2:5)},Axis{(a = 1, b = 2:5)}},Float64,2,Array{Float64,2}}:
 1.0       0.244109   0.721645  0.771934  0.574895
 0.244109  0.0595894  0.17616   0.188436  0.140337
 0.721645  0.17616    0.520772  0.557063  0.414871
 0.771934  0.188436   0.557063  0.595882  0.443781
 0.574895  0.140337   0.414871  0.443781  0.330505

I struggle with what the shape of c2[:b, ;b] should be. For this case, since we have a square matrix, it's easy to say it should probably look something like this:
julia> reshape(c2[:b,:b], 2, 2, 2, 2)
2×2×2×2 reshape(view(::Array{Float64,2}, 2:5, 2:5), 2, 2, 2, 2) with eltype Float64:
[:, :, 1, 1] =
 0.0595894  0.188436
 0.17616    0.140337

[:, :, 2, 1] =
 0.17616   0.557063
 0.520772  0.414871

[:, :, 1, 2] =
 0.188436  0.595882
 0.557063  0.443781

[:, :, 2, 2] =
 0.140337  0.443781
 0.414871  0.330505

But for mixed cases like this one, I suppose we could just reshape them similarly:
julia> x = ComponentArray(a=rand(), b=rand(2), c=rand(3,3));

julia> x2 = x .* x';

julia> reshape(x2[:b,:c], 2, 3, 3)
2×3×3 reshape(view(::Array{Float64,2}, 2:3, 4:12), 2, 3, 3) with eltype Float64:
[:, :, 1] =
 0.211156  0.776949  0.0218616
 0.152617  0.561557  0.015801

[:, :, 2] =
 0.425994  0.854114  0.161747
 0.307897  0.61733   0.116906

[:, :, 3] =
 0.106867   0.759792  0.751145
 0.0772407  0.549157  0.542907

So maybe that's what I'll do. Just hold on to the input dimensions and reshape things when they come out. Because I agree, having matrix components would be useful. In fact, it's probably more useful than having broadcasted extrusion in the first place (since with DifferentialEquations.jl you can explicitly declare your jacobian prototype).

Closed by 8af621e. (Then reverted, then unreverted).


Demo implementation

Implement a demo command for raytracer_cli.jl.
This command will use an on-off tracer to show some spheres at the vertices of a cube and in the middle of some faces. It must be possible to change, via CLI options, the image resolution, the camera type, position and orientation, the screen distance, and the tone mapping options.

Update: this pr has become bigger than expected since the demo implementation revealed some issues in our code. So, in order to finish the demo implementation, we had to fix these bugs.
Now the pr should be ready to be merged.


⚠ AlphaRatio has degraded performance

In 0c9ff84, AlphaRatio ($AR) experienced degraded performance:

HTTP code: 200
Response time: 5196 ms

Resolved: AlphaRatio performance has improved in 7ecfd76 after 12 minutes.


Don't sort chain by default

This drops the default behavior of sorting the chain in sample. Sorting can be turned on again using the kwarg sort_chain=true.
IMO we should get https://github.com/TuringLang/DynamicPPL.jl/pull/251 merged first, so that uses of setval! and others are working correctly. This requires upping the compat-entry for DPPL, and so I figured we might as well also add re-export of @submodel in this PR.

We should probably go up a minor version since this is a big change from the UI perspective.

Pull Request Test Coverage Report for Build 885907348

2 of 2 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.02%) to 78.301%

Totals

Change from base Build 861690835:
0.02%

Covered Lines:
1115

Relevant Lines:
1424

💛  - Coveralls

Looks good, maybe add a test as well?

Will do :+1: Just waiting for the DPPL release and I'll add tests and get this through.

nice work - thanks, @torfjelde and @devmotion!


With swig 4.2.1, Tcl_Size is needed; provide necessary define.

The Tcl_Size define is used in tclSwig.h, but at least with swig version 4.2.1 and tcl 8.6.15, this results in this symbol being undefined and subsequently in a compile error. Work around by including the header providing it (which is happening before tclSwig.h is included).

I tested this with homebrew swig 4.3.0 and it compiled, so no need to pin 4.1.1 any more, right ?
etc/DependencyInstaller.sh
533     # Install swig 4.1.1
534     _installHomebrewPackage "swig" "c83c8aaa6505c3ea28c35bc45a54234f79e46c5d" "s/"

I don't know the situation on homebrew, but this change should widen the range of compatible swig versions indeed.

Latest swig on homebrew is 4.3.0, which already has a fix for the missing Tcl_size.


FR: add "Changeset by Comparison Visualization" to the "open with" menu

Hi,
I found this new(?) tool from Neis that allows you to compare before and after a changeset
I know there are many tools at this point, but they all have their pros and cons depending on the type of changeset it is.
And I think this one has some unique advantages:
https://resultmaps.neis-one.org/osm-change-viz?c=89137311
Cheers,

@thibaultmol the main problem on adding it is that it only has data of changesets created in the last 30 days. What it provides in terms of visualization is available on OSMCha, you can enable/disable created/modified/deleted features.

True.
I guess the main thing I like about it is that it has split views for created/modified/deleted features.
But yeah, guess it's fine


Correct 10 of clubs

The 10 of clubs was previously defined as '10c' instead of using T (Tc) like the other suits, rendering the 10 of clubs unusable as it would throw an error. This PR fixes that!

Thank you!


Container not reading config.yml

I'm setting up this container for the first time with the latest release.
My logs are filled with this message:
2024-07-13 09:05:20,012 :: WARNING :: root :: config_parser.py :: 119 :: Warning: root destination is missing in app > root. Using default root destination: ./icloud
2024-07-13 09:05:20,015 :: ERROR :: root :: config_parser.py :: 46 :: username is missing in app > credentials > username. Please set the username.
I've followed the docs and can't see what I'm doing wrong.
I can manually auth with docker exec -it icloud /bin/sh -c "icloud --username=<icloud-username> --session-directory=/config/session_data"
Docker Compose:
services:
   # Automatic download of iCloud Drive files
   icloud:
      image: mandarons/icloud-drive
      container_name: icloud
      restart: always
      environment:
         PUID: $PUID
         PGID: $PGID
      env_file:
         - ../.env # Must contain ENV_ICLOUD_PASSWORD=<password> and ENV_CONFIG_FILE_PATH=/config/config.yaml
      volumes:
         - /etc/timezone:/etc/timezone:ro
         - /etc/localtime:/etc/localtime:ro
         - /mnt/USB1/Backups/iCloud:/icloud
         - ${DOCKERDIR}/appdata/icloud-drive/config:/config # Must contain config.yaml

.env
ENV_ICLOUD_PASSWORD=MYPASSWORD
ENV_CONFIG_FILE_PATH="/config/config.yaml"

config/config.yml

app:
   logger:
      # level - debug, info (default), warning or error
      level: "info"
      # log filename icloud.log (default)
      filename: "/config/icloud.log"
   credentials:
      # iCloud drive username
      username: "MYEMAIL"
      # Retry login interval - default is 10 minutes, specifying -1 will retry login only once and exit
      retry_login_interval: 600
   # Drive destination
   root: "/icloud"
   #   discord:
   # webhook_url: <your server webhook URL here>
   # username: icloud-docker #or any other name you prefer
   #   telegram:
   # bot_token: <your Telegram bot token>
   # chat_id: <your Telegram user or chat ID>
   #   smtp:
   ## If you want to receive email notifications about expired/missing 2FA credentials then uncomment
   # email<EMAIL_ADDRESS>   ## optional, to email address. Default is sender email.
   # to<EMAIL_ADDRESS>   # password:
   # host: "smtp.test.com"
   # port: 587
   # If your email provider doesn't handle TLS
   # no_tls: true
   region: global # For China server users, set this to - china (default: global)
drive:
   destination: "drive"
   remove_obsolete: true
   sync_interval: 300
   #   filters: # Optional - use it only if you want to download specific folders.
   #     # File filters to be included in syncing iCloud drive content
   #     folders:
   #       - "folder1"
   #       - "folder2"
   #       - "folder3"
   #     file_extensions:
   #       # File extensions to be included
   #       - "pdf"
   #       - "png"
   #       - "jpg"
   #       - "jpeg"
   ignore:
      # When specifying folder paths, append it with /*
      - "node_modules/*"
      #  - "*.md"
photos:
   destination: "photos"
   remove_obsolete: true
   sync_interval: 500
   all_albums: false # Optional, default false. If true preserve album structure. If same photo is in multiple albums creates duplicates on filesystem
   folder_format: "%Y/%m" # optional, if set put photos in subfolders according to format. Format cheatsheet - https://strftime.org
   filters:
      # List of libraries to download. If omitted (default), photos from all libraries (own and shared) are downloaded. If included, photos only
      # from the listed libraries are downloaded.
      # libraries:
      #   - PrimarySync # Name of the own library

      # if all_albums is false - albums list is used as filter-in, if all_albums is true - albums list is used as filter-out
      # if albums list is empty and all_albums is false download all photos to "all" folder. if empty and all_albums is true download all folders
      #  albums:
      #    - "album 1"
      #    - "album2"
      file_sizes: # valid values are original, medium and/or thumb
         - "original"
         - "medium"
         - "thumb"
      #  extensions:# Optional, media extensions to be included in syncing iCloud Photos content
      # - jpg
      # - heic
      # - png

Help would be appreciated - this looks like a great solution for redundancy of iCloud

OK i see what the problem was - rookie mistake -  I had named my congif .yml not .yaml!


Aon timer dv fixes

Whilst investigating the coverage holes highlighted in https://github.com/lowRISC/opentitan/issues/17499 I discovered the primary checking logic of the aon_timer testbench was immediately terminating itself, leaving little in the way of checking for the tests! This was due to a missing '!' on an expression involving a reset, so it triggered when the design was out of reset rather than in reset.
With this fixed I discovered a few other issues in the checking logic itself which are also fixed in this PR.
Haven't had a chance to run a full nightly regression against this yet but a cut-down one (max 10 seeds per test) looks promising, a couple of rare failures that can likely be put down to tricky corner cases.

A full nightly run shows a handful of failures (in aon_timer_same_csr_outstanding, aon_timer_stress_all and aon_timer_stress_all_with_rand_reset). Overall pass rate is 98.4% and high pass rates in the test exhibiting failures.
Coverage now shows the intr_cg covergroup (the original hole I was investigating) is fully covered.
Thanks for the reviews @jdonjdon and @msfschaffner


Fix newBelongsToMany method compatibility

Fixes #381
So this changes the method signature to use the Eloquent/Builder class directly in the method signature rather than the alias.
I created an example repo to replicate this issue here:
https://github.com/dmason30/model-caching-example
This is the test used:
https://github.com/dmason30/model-caching-example/blob/master/tests/Unit/ExampleTest.php
Before fix
Replicated action: https://github.com/dmason30/model-caching-example/runs/1359149642?check_suite_focus=true

Shows PHP 7.3 Warning

Shows PHP 7.4 Warning

After fix
Example repo changed to use fork: https://github.com/dmason30/model-caching-example/pull/1/files
Fix action: https://github.com/dmason30/model-caching-example/runs/1359345868?check_suite_focus=true

Shows PHP 7.3  No warnings

Shows PHP 7.4 No warnings

Just came here to say this would be great to get merged in. :)

@dmason30 Thanks for submitting this! For some reason I seemed to have missed it completely. Sorry for the delay.


Pretrained model transfer to pytorch

Well all of you guys know, it's nearly impossible to train from the scratch, because of lack of computation power. So I'm going to implement the transfer code for making pretrained model can be supported on pytorch too.
This implementation will be started when the Google release their official BERT code and pretrained model. If anyone interested to join this work, please leave the comment underside.
Thank you everyone who carefully watching this project👍
By Junseong Kim

This issue is stated from #3

I would like to join, even though I'm not sure how much I can do.
The training procedure of current implementation is smooth. I finished training on 10K pairs of sentences within 30 minutes, the final loss is 7.73.

Google has released the source and pre-trained models.
https://github.com/google-research/bert
Although they claim that you need a TPU to train the base model.
"Includes scripts to reproduce results. BERT-Base can be fine-tuned on a standard GPU; for BERT-Large, a Cloud TPU is required (as max batch size for 12-16 GB is too small)."

I believe fine tuning can be done on a multi GPU system with accumulating gradients in PyTorch.

I didn't get this done quickly enough apparently. Here is the pre-trained model in PyTorch. https://github.com/huggingface/pytorch-pretrained-BERT

Is the issue solved? Please tell me. I want to use your implementation together with the pretrained model to realise my ideas.

@ChawDoe At this point you should probably look at fast version of Bert from HuggingFace.
https://medium.com/huggingface/distilbert-8cf3380435b5

@briandw Thank you.


Add monkeysphere package

Thanks!
Merged in b80df37494407b0d5410365fe2446f573dd0d83a.

@aforemny Do you know about our CONTRIBUTING.md? This PR is out of guide.

@aforemny description of this pkg is out of rules too.

Fixed with https://github.com/NixOS/nixpkgs/commit/b6160fa7362ab62f7ad40477d63350827307e2d8
@aforemny please read http://hydra.nixos.org/job/nixpkgs/trunk/manual/latest/download-by-type/doc/manual#chap-submitting-changes.

@jagajaga: My bad! Thank you for paying attention. :) I will pay attention to commit message format and meta attributes next time.


Add the api-test folder

This pull request proposes the transfer of the "api-test" folder from the finesse-backend repository to the api-test repository.

@ibrahim-kabir I see you've added the workflows but seems something went wrong as no check task gets triggered. Can you investigate why?

@ibrahim-kabir did you try with act locally ?

Your'e calling workflow-lint-test-python but dont have a tests folder. Also your'e making use of workflow-markdown-check with a specified config file '.mlc_config.json' which is absent in your files.

@ibrahim-kabir did you try with act locally ?
Your'e calling workflow-lint-test-python but dont have a tests folder. Also your'e making use of workflow-markdown-check with a specified config file '.mlc_config.json' which is absent in your files.

Thx for your help, it works now

Merging with latest changes from main should allow the pipeline to pass. Related issue fixing this : https://github.com/ai-cfia/devops/pull/34

Merging with latest changes from main should allow the pipeline to pass. Related issue fixing this : ai-cfia/devops#34

rebase on main right?


fix broken tests and some fix

Fix broken tests. Cause is alembic's version up.
Fix subprocess issue. Some env occur bugs by wrong cwd.
Remove duplicated codes.

We can merge anyway. @item4 will you change the name of the function?


Hunging up of XCode

Currently I'm developing XVim with using it and I sometimes encounter sudden hung up of XCode. I do not know if this is because of XVim or a problem of XCode itself.
Anyone who also encounter the same problem report it to me please!

From my experience, this tends to occur when ":w" is invoked.
This might be a dead lock of our thread and other XCode thread...

Yea I took a look. Thats what I wanted todo. ( I should learn Action-Target ...something, hah )
But I do not know if this really solve the problem...
Ill see how it works for a while

I've already patch that in the last few commits of my fork... Don't worry about the fork now, I deleted the first fork of your repo and make a new fork. (Actually what I do most in the first fork is try to disable the warning generated after each build and re-implement some command without using the NSTextView api.


Text cursor stops blinking in integrated terminal if you run external command

VSCode Version: 1.4.0, 1.5.0-insider 2016-08-26T08:02:25.854Z
OS Version: Ubuntu 16.04

Steps to Reproduce:
user setting: "terminal.integrated.cursorBlinking": true

Open integrated terminal - the text cursor is blinking :white_check_mark:
Run less file.txt or man awk or mc
Quit the external command ("q" or F10)

Expected result

the text cursor is blinking

Expected result

the text cursor is not blinking

Workound

restart the terminal window

I have the same issue.

VSCode Version: 1.4.0
OS Version: Manjaro KDE Linux


Expose FlatList compatible ref interface.

Currently underlying ScrollView is forwarded as LegendList ref. FlatList on other hand, has pretty distinct interface for the ref value. https://reactnative.dev/docs/flatlist#methods

And scrollview ref is returned as getNativeScrollRef()  result.
This can be implemented with useImperativeHandle with code roughly like this
React.useImperativeHandle(forwardedRef, () => {
            return {
                getScrollableNode: () => internalRef.current,
                scrollTo: internalRef.current!.scrollTo,
                scrollToEnd: internalRef.current!.scrollToEnd,
                flashScrollIndicators: internalRef.current!.flashScrollIndicators,
                scrollToIndex: (params) => {
                    const offsetObj = calculateInitialOffset(params.index);
                    const offset = horizontal ? { x: offsetObj, y: 0 } : { x: 0, y: offsetObj };
                    internalRef.current!.scrollTo(offset);
                },
                ....
            };
        }, []);

Yes, agreed. We definitely need that. Would you like to PR it?

Yep, will try to work on it.

@mbilenko-florio FYI I just committed a pretty big refactor so you might want to pull first :)

@mbilenko-florio FYI I just committed a pretty big refactor so you might want to pull first :)

@jmeistrich Did you undo big refactor now? Is there a change of it coming back?

Sorry, yes I did undo it just a couple hours ago. I was doing perf testing and found it made perf significantly worse. But I left it in the refactor branch so if you did a lot of changes on top of that, you could PR to that branch and I can cherry pick the changes back into main. Sorry about that!

Just merged it, thank you!


core/sqlite: Properly set initial pragma for connection with pragma().

The function pragma() states that it shall set a custom initial pragma for an sqlite connection.
This commit makes the statement true.

Any plans to look at this?

Okay, I'm understanding the motivation here. SQLCipher requires PRAGMA key to be the very first PRAGMA executed on the database. The change here essentially causes the added PRAGMAs to execute in reverse order.
I don't think that's necessarily the correct solution as it could break other cases where the order in which PRAGMAs execute is important. Reversing the map is also a linear operation and so isn't exactly free.
I don't think the wording of the docs is wrong, the intent is to set PRAGMAs to execute when the connection is initialized. SQLCipher is just an annoying special case.
So why not then just add a special case for it? There's a couple of options (I'm linking to blank lines intentionally because this is where the code should go):

Add pragmas.insert("key".into(), "".into()); here before anything else: https://github.com/launchbadge/sqlx/blob/505a9086ffb5cccc94ae0da8194dc12c261e39f9/sqlx-core/src/sqlite/options/mod.rs#L77

Then, because indexmap retains the index of a key when it replaces the value, if the user does options.pragma("key", "<actual SQLCipher key>"); it's guaranteed to be executed first. It theoretically shouldn't cause any problems for non-SQLCipher usage as unknown PRAGMA`s are supposed to be ignored.

Check if key is in the map here and add it to the string first before anything else (then skip it in the loop to avoid setting it twice): https://github.com/launchbadge/sqlx/blob/505a9086ffb5cccc94ae0da8194dc12c261e39f9/sqlx-core/src/sqlite/options/connect.rs#L22

I think I'd lean towards the latter option since it doesn't take extra space in the map and doesn't execute a garbage PRAGMA, which should be ignored but maybe a different extension would recognize PRAGMA key and change its behavior or something.

@abonander
The order is kept correctly, that's why there are two reverse calls, one before appending, and one after.
However, the latter solution seems fine, there shouldn't be too much overhead. I'll make a new pull request, thanks.

Superseded by #1587


Some thoughts I want to share for the Coq track

If the Coq track isn't considered abandoned, I want to share some thoughts I have for the track.
Disclaimer
I consider myself a novice Coq user, but at least I've finished every standard and optional exercises in the first book of Software Foundations (SF), I'm active at StackOverflow mainly answering basic Coq questions, and most importantly, I've written some Coq challenges on Codewars (a kind of online judge site; my username there is "solitude").

Designing tasks for Coq track
Most exercises in common languages (say Python or JS) have this format:

Function skeleton is given. You need to write the function body, so that the function works as written in the description. The test file tests your function with various fixed inputs and checks the outputs against the expected values.

Coq can do much better; I can come up with at least four kinds of exercises (roughly ordered by increasing difficulty to write/solve):
Classic exercises (Write a function)
Same as the exercises in other languages. We can write a few exercises based on the common exercise pool. I say "a few" because Coq puts a hard requirement in the recursive nature of functions (in order to make them always terminate), which makes certain tasks much harder and sometimes impossible at all (e.g. Collatz).
Testing can be done with simple equality theorems.
Prove a given theorem
The most basic kind of Coq-specific exercise type.

A theorem without proof is given. You need to write the proof, so that the theorem is machine-checked as valid.

This is very similar to "Classic exercises" with "function" changed to "theorem" and "function body" to "proof". Canonical examples include a + 0 = a and a + b = b + a for natural numbers.
Testing can be done in two parts - testing the type of the theorem and checking that it does not assume any external axioms:
(* Exercise file: PlusCommutes.v *)
Theorem plus_commutes : forall a b : nat, a + b = b + a.
Proof. (* Correct proof *) Qed.

(* Test file: Tests.v *)
Require PlusCommutes.
Definition plus_commutes_test : forall a b : nat, a + b = b + a
  := PlusCommutes.plus_commutes.
Print Assumptions plus_commutes_test.

Write a function that satisfies a property

A function skeleton, associated with a set of properties it should meet, is given. You need to complete the function and prove that your function satisfies the given properties.

This is a (much) more sophisticated exercise type, as it requires you to complete a function and one or more theorems at once. It also often takes good mathematical/logical/domain-specific insights to complete.
For testing, you just test the theorems; you don't even need to test the function.
Formalize a property/relation and prove a theorem in the domain

An informal description of a property/relation is given. You need to write a formal definition of the property/relation and prove one or more theorems about it.

This is the most advanced exercise type (and the closest to how real researchers use Coq). Also, this is an exercise type that can't be fully machine-checked (as it involves the validity of an inductive definition), so it requires community/mentor review. This makes Exercism the best platform for them, as other online judge-style sites (including Codewars and Proving for Fun) can't hold challenges which can't be fully machine-checked. I guess this type fits best at the end of the core track.
In many cases, the theorem itself can be stated without the details of how a relation is defined, so we can still have a test file for some sanity check.

Structure and style of an exercise
Structure
Here are some examples of exercise structures out there:

My own works. I use _CoqProject to specify a prefix for the files in the same folder, and a Makefile generated using coq_makefile utility (the exact command can be found in makemake.sh). The test files themselves are from Software Foundations series.
Problem sets for Coq course at MIT. They use a stripped version of Makefile, and a pretty decent way to test an entire module. The usage of _CoqProject is the same.
Challenges on Codewars. Here we don't use any Makefile or _CoqProject (so there's no import prefix), and the command is just coqc Preloaded.v && coqc Solution.v && coqc Test.v where the three files contain definitions, exercises and test cases respectively.

If we have a way to set up make on Windows, it's probably best to use a Makefile. I guess three-file structure fits better than two-file because the preliminary definitions can be very long (up to ~100 lines depending on the task).
Coding style
AFAIK, Coq community doesn't have a consensus on coding styles, but here are some suggestions:

Filenames for Coq scripts should be an identifier, e.g. using hyphens is discouraged. Coq will emit warnings (if not errors) when you import a file whose name isn't an identifier.
There are several styles of filenames. The standard library and Software Foundations series use PascalCase. I've heard some projects use flatcase(?), that is, all lowercase and no separators at all. My personal preference is PascalCase.
Identifier names are split between PascalCase and snake_case. I don't think I've seen many camelCase. These are my personal preferences:

Type names: still undecided between PascalCase and snake_case, but I like to use all lowercase for a single-word name, and PascalCase for multi-word / acronym-like names
Constructor names: PascalCase
Function, theorem, variable names: snake_case

Range of topics for core / side exercises
This is probably the hardest part of Coq track design.
Individual topics

Language features

Basic functional programming (syntax, recursive functions)

This part is pretty similar to that of Ocaml, with some restrictions.

Dependent types (Vector)
Basic theorem proving (tactics; rewrite, simpl, destruct, induction, some others)

Common concepts

Logic (True, False, and, or, not, forall, exists)
Polymorphism and inductive Props

This involves dependent types under the hood, but (IMO) can be followed without full understanding of it.

Applications

Mathematics

Arithmetic
Number theory (GCD, modular arithmetic, ...)
Logic theory (classical logic axioms, ...)
Set theory (cardinality, infinite sets, ...)
Computability theory (halting problem, undecidable problems, ...)

Programming languages

Compilers, execution, compiler optimizations, type system, ...

Correctness of algorithms

Sorting, Fibonacci, ...

Core / side exercises
This is just a random list of ideas.

Core exercises could be split into two parts: introduction and application.

Each core exercise at early stages should introduce a new topic to some depth, enough to move on to the next one. The volume of such an exercise could be (much) larger than those in other languages, probably up to (a fraction of) a small chapter of SF.
They could also slightly (ab)use the mentoring feature, so that the exercises can leave some gaps (tactics?) and the students can research that part on their own or ask the mentor.
Later ones could introduce some of the application areas.

The side exercises unlocked at early stages should not involve concepts not yet covered by core ones.
Basic topics are best covered using natural number arithmetic or list ops (as in SF), and inductive props can be introduced with a few applications.

But there is evidence that some students are confused by the fact that they need induction to prove simple arithmetic properties. My idea is to use lists to introduce proof by induction, and then Peano arithmetic as an analogy (nil and cons correspond to zero and succ, respectively).

Another option is to simply assume that students have basic knowledge of syntax and concepts (e.g. picked up from SF), and directly dive into the fun with increasing complexity.

If you want, I can submit a pull request containing some exercises following the suggestions above. It might take days (or a couple of weeks) though.

@exercism/coq if any of you are around, I would love to hear your thoughts on this one.


refactor: emitter async processing

Send now queues received data and lazy loads its processing routine in background.

Pull Request Test Coverage Report for Build 268496190

16 of 19 (84.21%)  changed or added relevant lines in 1 file are covered.
3 unchanged lines in 2 files lost coverage.
Overall coverage increased (+0.04%) to 58.304%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/integrations/v4/dm/emitter.go
16
19
84.21%

Files with Coverage Reduction
New Missed Lines
%

pkg/integrations/v4/logs/logs/cfg_watcher.go
1
71.25%

pkg/metrics/sampler/sampler_routine.go
2
94.74%

Totals

Change from base Build 267201131:
0.04%

Covered Lines:
11083

Relevant Lines:
19009

💛  - Coveralls


Improve accuracy of narrow:symbols

when I use narrow:symbols-by-current-word to quick look function body.
It frequently fail to find what I want.
Situation

I start narrow:symbols-by-current-word at refresh function call( @refresh(force: true) ) in ui.coffee of narrow project.
Narrow started with refresh as initial query.
It find following entries.

refresh
  onDidRefresh: (fn) -> @emitter.on('did-refresh', fn)
  emitDidRefresh: -> @emitter.emit('did-refresh')
  onWillRefresh: (fn) -> @emitter.on('will-refresh', fn)
  emitWillRefresh: -> @emitter.emit('will-refresh')
  onDidStopRefreshing: (fn) -> @emitter.on('did-stop-refreshing', fn)
  emitDidStopRefreshing: ->
    stopRefreshingCallback = =>
  refresh: ({force, selectFirstItem}={}) ->
    refresh = => @refresh(force: true) unless @isActive()

If refresh was searched with /\b and case-sensitively, it match less entries.
But essentially this line-text based search is not appropriate for symbol search.
It should find entry by matching symbols name.

Now, much better by

set Symbols.caseSensitivityForNarrowQuery to sensitive( now can have provide specific value )
tag no longer display whole-line-text, it shows tag-name so less character, important only.


*: make snapshot SST compression type separated to db

Default sst compression type is LZ4.
@zhangjinpeng1987 PTAL

[x] check whether the default type is available
[x] clone a new option for passing to sstfilewriter

Signed-off-by: Cholerae Hu<EMAIL_ADDRESS>

If the RocksDB compile without LZ4, TiKV will core at runtime.

@andelf Can we get which compression types rocksdb support at runtime?

https://github.com/facebook/rocksdb/blob/v5.5.1/include/rocksdb/convenience.h#L291
This api works
std::vector<CompressionType> GetSupportedCompressions();

wraps this and provide a fallback option?

@andelf @zhangjinpeng1987 PTAL

@zhangjinpeng1987 PTAL

@zhangjinpeng1987 Merge?

PTAL @BusyJay

ci failed

@BusyJay @zhangjinpeng1987 PTAL

@zhangjinpeng1987 PTAL

LGTM


[Globo.com] Support for multiple videos in one page

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like that [x])
Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2<IP_ADDRESS>. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

[x] I've verified and I assure that I'm running youtube-dl 2<IP_ADDRESS>

Before submitting an issue make sure you have:

[X] At least skimmed through README and most notably FAQ and BUGS sections
[X] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[ ] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[X] Feature request (request for a new functionality)
[ ] Question
[ ] Other

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):
$ youtube-dl -v http://g1.globo.com/pr/parana/noticia/2016/09/mpf-denuncia-lula-marisa-e-mais-seis-na-operacao-lava-jato.html
[debug] System config: []
[debug] User config: ['-f', 'bestvideo+bestaudio/best', '--external-downloader=aria2c', '--external-downloader-args=--file-allocation=falloc --max-connection-per-server=10 --min-split-size=1M', '--netrc', '--ignore-errors']
[debug] Command-line args: ['-v', 'http://g1.globo.com/pr/parana/noticia/2016/09/mpf-denuncia-lula-marisa-e-mais-seis-na-operacao-lava-jato.html']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2<IP_ADDRESS>
[debug] Python version 3.5.1 - Darwin-15.6.0-x86_64-i386-64bit
[debug] exe versions: avconv 11.4, avprobe 11.4, ffmpeg 3.1.2, ffprobe 3.1.2, rtmpdump 2.4
[debug] Proxy map: {}
[GloboArticle] mpf-denuncia-lula-marisa-e-mais-seis-na-operacao-lava-jato.html: Downloading webpage
[Globo] 5306061: Downloading JSON metadata
[Globo] 5306061: Downloading security hash for 57d9a28f636d612ff3b3cd00
[Globo] 5306061: Downloading security hash for 57d9a290636d613a8e7ace00
[Globo] 5306061: Downloading security hash for 57d9a294636d613a8e7dce00
[Globo] 5306061: Downloading security hash for 57d9a28f636d6138d5000000_90_720_m3u8
[Globo] 57d9a28f636d6138d5000000_90_720_m3u8: Downloading m3u8 information
[Globo] 5306061: Downloading security hash for 57d9a28f636d6138d5000000_360_720_m3u8
[Globo] 57d9a28f636d6138d5000000_360_720_m3u8: Downloading m3u8 information
[Globo] 5306061: Downloading security hash for 57d9a28f636d6138d5000000_360_720_mpd
[Globo] 5306061: Downloading security hash for 57d9a28f636d617c6446d200
[debug] Invoking downloader on 'https://vodstreaming02.video.globo.com/r360_720/v0/f1/2f/8d/5306061_8d33a6e12f029fe10e792d005c5a74cd07a695df/5306061-manifest.ism/5306061-manifest-audio=64042-video=1959000.m3u8'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 9
[download] Destination: Dallagnol diz que Lula foi identificado como chefe do esquema-5306061.mp4
[download] 100% of 22.15MiB in 00:17
[ffmpeg] Fixing malformated aac bitstream in "Dallagnol diz que Lula foi identificado como chefe do esquema-5306061.mp4"
[debug] ffmpeg command line: avconv -y -i 'file:Dallagnol diz que Lula foi identificado como chefe do esquema-5306061.mp4' -c copy -f mp4 -bsf:a aac_adtstoasc 'file:Dallagnol diz que Lula foi identificado como chefe do esquema-5306061.temp.mp4'

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Playlist: http://g1.globo.com/pr/parana/noticia/2016/09/mpf-denuncia-lula-marisa-e-mais-seis-na-operacao-lava-jato.html

Description of your issue, suggested solution and other information
youtube-dl downloads only the first video when there are several on the same url.

Thanks!


[⭐FR] Preference in media type or merge of it

Describe your suggested feature
Make an option to merge anime and manga or switch anime and manga places making manga the default

Other details
No response
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] If this is an issue with an official extension, I should be opening an issue in the extensions repository.
[X] I have updated the app to version <IP_ADDRESS>.
[X] I will fill out all of the requested information in this form.

You can make manga default by,
More>settings>appearance>start screen

I mean that it would be the first one change places

Closing in favour of #1692


Please confirm these before moving forward

[X] I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
[X] I have not been informed if the issue is resolved in a preview version of the winget client.

Category of the issue
Installation issue.
Brief description of your issue
When installing microsoft office through the winget client we get the error:
"installer hash does not match; this cannot be overridden when running as admin".
This has happened before previously:
https://github.com/microsoft/winget-pkgs/issues/35459#
Steps to reproduce
winget install microsoft.office -s winget
Actual behavior
Gives error when trying to download: Downloading https://officecdn.microsoft.com/pr/wsus/setup.exe
Error in question:
Installer hash does not match; this cannot be overridden when running as admin
Expected behavior
Installs office silently.
Environment
C:\WINDOWS\system32>winget --info
Windows Package Manager v1.2.10271
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22000.556
Package: Microsoft.DesktopAppInstaller v1.17.10271.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Screenshots and Logs
No response

Workaround is to use --force for now.

2022-04-13 15:46:58.481 [CLI ] Package hash verification failed. SHA256 in manifest [e5355c841092d89acc1e2839039c25e6d842449a473bee6285213d83403a4d29] does not match download [482965fb962d591714de3665dccde5ae3f576d5b10bd0b9801ae76f66965a5e7]
2022-04-13 15:46:58.481 [CLI ] Terminating context: 0x8a150011 at D:\a\_work\1\s\external\pkg\src\AppInstallerCLICore\Workflows\DownloadFlow.cpp:19d

This is again an issue


datetime.utcnow() deprecation

I noticed some warnings popping up during testing a library under python v3.12 that depends on sqlite_migrate and figured I'd send along the small change.
tests/test_sqlite_migrate.py: 4 warnings
tests/test_sqlite_utils_migrate_command.py: 9 warnings
  /Users/edsummers/.local/share/virtualenvs/sqlite-migrate-kmlAZzTv/lib/python3.12/site-packages/sqlite_migrate/__init__.py:80: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    "applied_at": str(datetime.datetime.utcnow()),

Thanks for a useful module, and for the sqlite-utils/datasette ecosystem!

Thanks for this!

Tests fail in 3.8 and 3.9 because datetime.UTC is a more recent thing.
I'll try datetime.timezone.utc.


(1) UNHANDLED JS EXCEPTION: MINIFIED REACT ERROR #143   (2) On update app behaviour change

Description
(1) UNHANDLED JS EXCEPTION: MINIFIED REACT ERROR #143 ( Getting in the crash report )
Since long days I am facing this issue. After long days on opening react native app the app is going crash.
(2) On update app behaviour change
Suppose I update the app in logged in state then the app is crashed ( save the logged in state in AsyncStorage ). Then I have to reinstall the app.
Additional Information
In the android it is working properly ( App is using large images ).

React Native version: "0.37.0"
Platform: IOS
Development Operating System: MacOS
Dev tools:  Xcode 8.3

Hey, thanks for reporting this issue!
It looks like your description is missing some necessary information. Can you please add all the details specified in the template? This is necessary for people to be able to understand and reproduce the issue being reported.
I am going to close this, but feel free to open a new issue with the additional information provided. Thanks!


Coal Generator & Geothermal Generator has no GUI

Maybe intentional but there is no way to figure out how much coal is left

It is intentional that they don't have a GUI, you can use the multimeter to get the burn time from the generator. The geo generator doesn't have a burn time as it converts 1 mb of lava to 20 units of energy in 1 tick.


Add support for includet

In a Julia cell include("foo.jl") works, but using Revise; includet("foo.jl") does not.

Could you please clarify what doesn't work? Is there an error or does nothing happen?

I get an undefvarerror  when I run quarto preview index.qmd.
Attached here tarred.tar.gz
Error 1 of 1
@ /home/nrana/Work/test/index.qmd:10
UndefVarError: `add2` not defined
Stacktrace:
 [1] top-level scope
   @ ~/Work/test/index.qmd:13

ERROR: Internal julia server error

Stack trace:
    at writeJuliaCommand (file:///opt/quarto/bin/quarto.js:41721:19)
    at eventLoopTick (ext:core/01_core.js:153:7)
    at async executeJulia (file:///opt/quarto/bin/quarto.js:41615:22)
    at async Object.execute (file:///opt/quarto/bin/quarto.js:41352:20)
    at async renderExecute (file:///opt/quarto/bin/quarto.js:78033:27)
    at async renderFileInternal (file:///opt/quarto/bin/quarto.js:78201:43)
    at async renderFiles (file:///opt/quarto/bin/quarto.js:78069:17)
    at async render (file:///opt/quarto/bin/quarto.js:82929:21)
    at async renderForPreview (file:///opt/quarto/bin/quarto.js:83956:26)
    at async render (file:///opt/quarto/bin/quarto.js:83839:29)
    ````

You can provide MWE code either here in a codeblock or in a github gist, I will not open arbitrary zip files :)

I understand, I tried just pasting it here but it the code blocks mess up the formatting, I figured out that I can use four backquotes. Anyway here it is.
Contents of test.jl
add2(x) = x + 2

Contents of index.qmd
---
engine: julia
---

```{julia}
add1(x) = x + 1
add1(2)
```

```{julia}
using Revise
includet("test.jl")
add2(5)
```

Based on how Revise implements includet, see https://github.com/timholy/Revise.jl/blob/75a09ea92a3008d721ac09749d5168bb81426ba9/src/packagedef.jl#L1001-L1033 for details, the issue here is because of the hardcoded Main in the 1-argument method of that function. You can probably use the two argument version of it to instead write
includet(@__MODULE__, "test.jl")

Such that it evaluates in the correct module. This is because QuartoNotebookRunner defines a different "main" module into which cells are evaluated rather than using Main like the REPL does.

Closing this as there isn't anything for us to do within this package.