Add plugins.txt file compability for install-plugins.sh

The new install-plugins.sh script removed the possibility to pass a file
containing a list of plugins that was given with the 'old' plugins.sh
script, although this functionality can be provided with only a few
lines more.
Now, when the install-plugins.sh script is called with only a single
argument that matches an existing file on the file system, it is assumed
that this file contains the list of plugins that should be installed,
newlines are replaced by spaces and this manipulated content is used as
the plugins list for further processing.
Closes #348.

It could theoretically be possible that only a single plugin name is passed that also that is also used for a file.
If the functionality is wanted at all, this special case could be caught with getopt and by adding a -f option. Just let me know.

it looks a bit hacky to me,  what if you could just run cat /var/plugins.txt | install-plugins.sh ?
install-plugins could read from stdin

Hacky because of plugins=$(cat "$1" | tr '\n' ' '), or because a single argument could be both, a file and a plugin?
I wanted to "readd" the possibility to pass a file as an argument, but only adding the ability to read from stdin would still be an improvement too.

This looks ok, sorry for the delay. I would just need a test in tests/install-plugins.bats

@carlossg Done, it would be great if this could be merged soon. Thank you!

+1 that would be nice to have.

sorry for the delay!


zip4j 2.0.3: when execute ZipFile.getInputStream(FileHeader), java.lang.ArrayIndexOutOfBoundsException happened.

Code:
public static void main(String[] args)
{
	try
	{
		String zipFilePath = "D:\\temp\\GoogleInstaller_3.0.zip";
		String filePathInZip = "classes.dex";
		ZipFile zipFile = new ZipFile(zipFilePath);
		FileHeader fileHeader = zipFile.getFileHeader(filePathInZip);

		if(null != fileHeader && !fileHeader.isDirectory())
		{
			zipFile.getInputStream(fileHeader);
		}
	}
	catch(Exception e)
	{
		e.printStackTrace();
	}
}

Exception:
java.lang.ArrayIndexOutOfBoundsException: 3
at net.lingala.zip4j.util.RawIO.readShortLittleEndian(RawIO.java:107)
at net.lingala.zip4j.headers.HeaderReader.parseExtraDataRecords(HeaderReader.java:303)
at net.lingala.zip4j.headers.HeaderReader.readExtraDataRecords(HeaderReader.java:279)
at net.lingala.zip4j.headers.HeaderReader.readExtraDataRecords(HeaderReader.java:256)
at net.lingala.zip4j.headers.HeaderReader.readCentralDirectory(HeaderReader.java:208)
at net.lingala.zip4j.headers.HeaderReader.readAllHeaders(HeaderReader.java:75)
at net.lingala.zip4j.ZipFile.readZipInfo(ZipFile.java:831)
at net.lingala.zip4j.ZipFile.getFileHeader(ZipFile.java:565)
at com.dancen.util.filecompressor.MyZipUtil.main(MyZipUtil.java:37)
Usually, I can execute ZipFile.getInputStream(FileHeader) successfull, but for the file "GoogleInstaller_3.0.zip", ArrayIndexOutOfBoundsException throwed. I have attached the file.
GoogleInstaller_3.0.zip

Technically speaking, this is a corrupt zip file. Without going into too many details, the issue with this zip file is that some header information is not as long as the length that should be for these headers. A block of zip headers tells how long certain headers (extra data records) are in the zip headers. This length is defined as 3 in this zip file, but this length has to be at least 4, and even 4 is wrong, but at least acceptable. Ideally it should be more than 4. But a length of 3 is definitely wrong.
However, this part of headers contain some additional information of the file, and the zip file can still be extracted even if these headers are corrupt. I will include a fix to skip these headers if these headers are corrupt. I will let you know when the fix is ready.

Fixed in v2.1.0


safe_browsing_mode GYP flag no longer exists

@perfect7gentleman noticed that Inox still mentions safe_browsing_mode as the GYP flag to disable safe browsing (in the README and here). The flag is now called safe_browsing.
If you are going to use this flag, you will need to patch the source code to make the build work. This patch contains the modifications necessary.

safe_browsing_mode is GN flag.
https://chromium.googlesource.com/chromium/src/+/master/tools/gn/docs/cookbook.md#Feature-flags

Inox uses the GYP configuration system, so those flags won't work.

#29 closes this.


[New group page privacy wagtail] Hide restricted pages from menus for unauthorized users

Hello! I would like to adapt my menus to the new functionality Wagtail is offering in page privacy. I am setting up many pages that are "Group" visible, but unfortunately they appear in the menu (and in my case this is not good), would you have any clue how to achieve this? Thanks :)

Hey @begonaalvarezd! so, the parts included in wagtailmenus don't make any distinction between users (either in the CMS part, or from the front-end), so I can only assume that you'd need to write something custom to achieve this, sorry :(

Thanks @ababic ! I supposed so but I wanted to be sure before writing custom code. When I achieve it I will post some pseudocode for others in case they want the same.

That'd be really cool, thank you :)

So I got it working using a simple template_tag (it might need some beautifying)
It is important to say:

My template code works only for menuitems that actually are wagtail pages, but the inclusion of non wagtail pages is very straightforward.
I check only the page permissions for GROUPS because it is the one that in my case makes sense

check_menu_item_page_restriction.py
from django import template
from wagtail.wagtailcore.models import PageViewRestriction
register = template.Library()

@register.assignment_tag(takes_context=True)
def check_page_view_restrictions(context, page):
	"""
	Check whether there are any view restrictions on this page which are
	not fulfilled by the given request user.
	"""
	request = context['request']
	user = request.user
	for restriction in page.get_view_restrictions():
		print("has restricction")
		if restriction.restriction_type == PageViewRestriction.GROUPS:
			if not request.user.is_superuser:
				current_user_groups = request.user.groups.all()
			else:
				return True
			if not any(group in current_user_groups for group in user.groups.all()):
				return False
	return True

custom_main_menu.html
{% load check_menu_item_page_restriction %}
...

	{% for item in menu_items %}
		{% if item.link_page %}
			{% check_page_view_restrictions item.link_page as visible %}
			{% if visible %}

					...
					your custom template here
					{% if item.has_children_in_menu %}
						{% sub_menu item %}
					{% endif %}

			{% endif %}
		{% endif %}
	{% endfor %}

Hope this helps somebody :)

Thanks for this solution. I just had the same requirement. Could it be that the last if in the tag should be
if not any(group in current_user_groups for group in restriction.groups.all()):

Hi @xintellion / @begonaalvarezd,
The recommended approach for this would be to create custom MainMenu and FlatMenu models, and custom ChildrenMenu and SectionMenu classes, and override the get_base_page_queryset() method on each of them to filter the pages down (you could create a mixin that overrides just that method and use that). This would be much more efficient, since only valid pages would ever get fetched from the database.
Here's a link to the relevant documentation:
http://wagtailmenus.readthedocs.io/en/latest/advanced_topics/custom_menu_classes.html

Hi @ababic,
I'll try that approach too.

Hi @ababic,
doing the filtering in get_base_page_queryset() doesn't seem to work for top level menu items. To me it seems that the top level menu items come from get_base_menuitem_queryset(). Is this correct? Do I need to filter them there?

Doing the filtering in get_base_menuitem_queryset() gives me the expected results. But as I'm new to django I am not sure if my filters which are producing a lot of joins considered a good practice. These are my current implementation of  get_base_page_queryset() and get_base_menuitem_queryset().
def get_base_page_queryset(self):
        if self.request.user:
            user = self.request.user
            live_not_expired_in_menus = Q(live=True, expired=False, show_in_menus=True)
            no_restriction_or_login = (
                Q(view_restrictions__isnull=True) |
                Q(view_restrictions__restriction_type__in=(PageViewRestriction.NONE,
                                                           PageViewRestriction.LOGIN))
            )

            group_restricted = Q(view_restrictions__restriction_type=PageViewRestriction.GROUPS)

            user_groups = user.groups
            group_restrictions = Q(view_restrictions__groups__in=user_groups.all())

            return Page.objects.filter(live_not_expired_in_menus &
                                       (no_restriction_or_login |
                                        (group_restricted & group_restrictions)))

        return Page.objects.none()

    def get_base_menuitem_queryset(self):
        if self.request.user:
            user = self.request.user
            no_link_page = Q(link_page__isnull=True)
            live_not_expired_in_menus = Q(link_page__live=True, link_page__expired=False, link_page__show_in_menus=True)
            no_restriction_or_login = (
                Q(link_page__view_restrictions__isnull=True) |
                Q(link_page__view_restrictions__restriction_type__in=(PageViewRestriction.NONE,
                                                                      PageViewRestriction.LOGIN))
            )
            group_restricted = Q(link_page__view_restrictions__restriction_type=PageViewRestriction.GROUPS)

            user_groups = user.groups
            group_restrictions = Q(link_page__view_restrictions__groups__in=user_groups.all())
            return self.get_menu_items_manager() \
                .filter(no_link_page |
                        (live_not_expired_in_menus & (no_restriction_or_login | (group_restricted & group_restrictions))))

        return super().get_base_menuitem_queryset() \
            .filter(Q(link_page__view_restrictions__isnull=True) |
                    Q(link_page__view_restrictions__restriction_type=PageViewRestriction.NONE))

Hi @xintellion,
I think you've stumbled upon something that I noticed shortly after posting my above comment... overriding get_base_page_queryset() isn't enough to do this, you have to also override get_base_menuitem_queryset() to apply the same limitations to the top-level nav items in main or flat menus.
I've already started work on removing this complication, by updating top_level_items() to use get_base_page_queryset() to fetch the page data:
https://github.com/rkhleics/wagtailmenus/compare/master...ababic:hooks#diff-360a3c1962b01b8936ce40cdd0e27281R175
I wonder if you might be better off overriding top_level_items() in a similar way, so that you don't need to repeat all the group restriction logic? That won't make things more efficient, but it will at least be easier to maintain.
As for improving efficiency, I would suggest maybe:

Adding a new function to work out all of the pages permitted for the current user, and just have it return the ids of the pages
Either apply the @cached_property decorator to that method so that that particular query only have to be performed once per menu, OR
Use django's low-level caching api to cache the page IDs for the current user for a short time (maybe 5 seconds or something), meaning the query will only need to be made once per request (or potentially multiple requests)

Hi @ababic,
thanks for the detailed answer and suggestions. The above was just a first draft. Anyway I was going to DRY that out.
My question wasn't about efficiency, though I appriciate the suggestions, which I'll certainly try. It was more general and about the practice of writing filters. Since I come from Java something like Q(link_page__view_restrictions__restriction_type=PageViewRestriction.NONE) looks a bit odd to me. especially the link_page__view_restrictions__restriction_type part. I wasn't sure if writing a nested filter like this is a good practice.
Anyhow the changes you committed look promissing and I'm looking forward to try them out.

Hi @xintellion,
Glad to have been able to help. There's nothing inherently wrong with filter statements that span multiple tables, but I would stay that django querysets do make this very easy, when behind the scenes, it might actually result in a massive query that uses tonnes of resources. I can't think of any hard/fast rule for when and when not to use them, but something like https://github.com/jazzband/django-debug-toolbar might give you better insight into about how long certain queries are taking to run.

I hastily sent the above the end of the working day yesterday, and realised I'd not explained myself very well. Have edited :)


Sql Search performance improvements

Description
Streamlines SQL queries for basic searches by removing redundant query parameters and speeding up decompression.
Related issues
Addresses part of User Story 90388: Bulk Export Parallelization Improvements Part 1
Testing
Existing unit and E2E tests
FHIR Team Checklist

[x] Update the title of the PR to be succinct and less than 50 characters
[x] Add a milestone to the PR for the sprint that it is merged (i.e. add S47)
[x] Tag the PR with the type of update: Bug, Dependencies, Enhancement, or New-Feature
[ ] Tag the PR with Azure API for FHIR if this will release to the Azure API for FHIR managed service (CosmosDB or common code related to service)
[x] Tag the PR with Azure Healthcare APIs if this will release to the Azure Healthcare APIs managed service (Sql server or common code related to service)
[x] CI is green before merge
Review squash-merge requirements

Semver Change (docs)
Patch

/azp run


Need better navigation

Each topic within this page should have a link at the top or on the side - instead of scrolling. Example like following which was taken from databricks docs.

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

ID: fa92e0a0-8e61-db78-b89d-045edb645f6b
Version Independent ID: d2493a74-b852-6b19-a844-6b75cfe90a17
Content: Databricks CLI - Azure Databricks
Content Source: databricks/dev-tools/databricks-cli.md
Service: azure-databricks
GitHub Login: @mamccrea
Microsoft Alias: mamccrea

@subashsivaji Thanks for the feedback. We are currently investigating into the issue and will update you shortly.

Thank you for your feedback @subashsivaji! Were are currently working on breaking up these lengthy articles for better navigation and readability.

I have created a work item and will report back here when it is complete. Please let us know if you have any additional feedback.
#please-close


Add utility methods to AND and OR switches

Make it easier to combine two switches by either AND-ing or OR-ing the switches by adding utility methods.

Closed by #70


Mifare Classic is not working

i tried your example, it doesn't seem to work.
your ex: AndroidMifareClassic.js
at line 263, it actually stopped. (follow the arrow.)
this.setState({ isDetecting: true });
    NfcManager.registerTagEvent(tag => console.log(tag))
      .then(() => NfcManager.requestTechnology(NfcTech.MifareClassic))
      .then(() => NfcManager.getTag())
      .then(tag => {
        this.setState({ tag });
        return NfcManager.mifareClassicGetSectorCount();  ///<-------- stopped
      })
      .then(sectorCount => {
        this.setState({ sectorCount });
      })
      .then(() => {
        let sector = parseInt(this.state.sector);
        if (isNaN(sector)) {
          this.setState({ sector: '0' });
          sector = 0;
        }

this is the result i get:
{"techTypes":["android.nfc.tech.NfcA","android.nfc.tech.MifareClassic","android.nfc.tech.NdefFormatable"],"id":"NNNNNN"}

It looks like this issue is still preset in the example code, any chance of an updated example with this resolved?


About sparsity regularization

Thank you for your sharing. I have a question about sparsity regulization.
As is shown in the formula (1) in the paper, g(s) is added in the loss function. But in the code, I don't find g(s) in the loss funtion. I only find the additional gradient about scaling factor is added to original gradient.
Could you show me where you add the g(s) to the loss function in the code?

Sorry, now I understand.

Hello, I want to ask why the loss function does not include sparse constraints, although updating the scaling factor does make the BN layer sparse. Thank you! @Yanxingang


Add slides for Berlin Hack & Tell #72 - "Electing Hacks"

👋 I was one of the speakers of the above meetup. It would be great if you could add slides to https://berlinhackandtell.rocks/

c.f. https://www.meetup.com/Berlin-Hack-and-Tell/events/261731520/

Done via #249

Sorry, we've added the slides but the list of hacks is still missing. @lucasrangit would you be able to add that?

Yes, I'll do it now.


feat: dedicated route to get intermediates count

What type of PR is this? (check all applicable)

[ ] Refactor
[ ] Feature
[x] Bug Fix
[x] Optimization
[ ] Documentation Update
[ ] Community Node Submission

Description
feat: dedicated route to get intermediates count
This fixes a weird issue where the list images method needed to handle None for its limit and offset arguments, in order to get a count of all intermediates.
QA Instructions, Screenshots, Recordings

do a canvas generation or something to generate some intermediates
check settings modal - intermediates count should update whenever you close/open it
clear intermediates should still work

Related Tickets & Documents

Related Issue: split out from #4686, where it has no business being

@maryhipp This will require a no-op get_intermediates_count method on image record storage


The Plugin does not work

Hello..
I am on ArchLinux installed mkdocs via pacman and the plugin from the AUR I am using the material theme... Added -rss to mkdocs.yml when I test it errors out with
Traceback (most recent call last):
  File "/usr/bin/mkdocs", line 8, in <module>
    sys.exit(cli())
             ^^^^^
  File "/usr/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/mkdocs/__main__.py", line 268, in serve_command
    serve.serve(**kwargs)
  File "/usr/lib/python3.12/site-packages/mkdocs/commands/serve.py", line 54, in serve
    config = get_config()
             ^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/mkdocs/commands/serve.py", line 43, in get_config
    config = load_config(
             ^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/mkdocs/config/base.py", line 374, in load_config
    errors, warnings = cfg.validate()
                       ^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/mkdocs/config/base.py", line 231, in validate
    run_failed, run_warnings = self._validate()
                               ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/mkdocs/config/base.py", line 188, in _validate
    self[key] = config_option.validate(value)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/mkdocs/config/config_options.py", line 186, in validate
    return self.run_validation(value)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/mkdocs/config/config_options.py", line 1075, in run_validation
    self.load_plugin_with_namespace(name, cfg)
  File "/usr/lib/python3.12/site-packages/mkdocs/config/config_options.py", line 1113, in load_plugin_with_namespace
    return (name, self.load_plugin(name, config))
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/mkdocs/config/config_options.py", line 1131, in load_plugin
    plugin_cls = self.installed_plugins[name].load()
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 205, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/lib/python3.12/site-packages/mkdocs_rss_plugin/plugin.py", line 37, in <module>
    from mkdocs_rss_plugin.util import Util
  File "/usr/lib/python3.12/site-packages/mkdocs_rss_plugin/util.py", line 22, in <module>
    from cachecontrol import CacheControl
ModuleNotFoundError: No module named 'cachecontrol'

No idea why it's failing. Am I missing something ?

Hello,
Your issue title is quite interesting since the plugin is quite heavily used among thousands or mkdocs websites. Maybe you should rename it with something more specific like "I can't make the plugin work on ArchLinux".
In the meanwhile, can you give more details on your environment:

Python version: 3.12
mkdocs version
material...

I don't know about AUR but cachecontrol is one the required dependencies and should have been installed with the plugin from pypi.org:
https://github.com/Guts/mkdocs-rss-plugin/blob/a1685169f127cf6f59dc8dc086629b64534a82d4/requirements/base.txt#L4

@Guts

Python version: 3.12
MKDocs v1.6.0 >> Here
MKDocs-Material: 9.5.33-1 >> Here

I see cachecontrol here I will install n try again

Am not the only one a friend who made a video about MKDocs is having same issue.

Is your friend also on Arch?

The error message indicates that cacheControl is not installed or not found:

ModuleNotFoundError: No module named 'cachecontrol'

It's not related to the plugin but to the Python environment.
Can you try to clone the repository locally and install from it directly? Something like this from your Python (virtual) environment, adapting the path to your local copy:
python -m pip install ~/Git/mkdocs-rss-plugin

@Guts
No my friend is on Debian and he did it via python not the AUR lol. On Arch pip install doesn't work.
Anyway seems to have worked by cloning repo then cd into it n running sudo python setup.py install now it's not complaining anymore.
Last question, how do I add a menu entry for RSS feed so I can add to RSS reader ?

It's still weird 🤔.
Thanks for feedback and following up.

@Guts
Thanks. However it works is good. Will check with AUR package maintainer.


inaccurate description

The following description may be inaccurate: The Azure Database for MySQL flexible server will use an IP address that is not included in the service tag "sql".
On the Azure VM, narrow down the scope of outgoing connection by using Network Security Groups (NSGs) and Service Tags as follows
Specify an NSG rule to allow traffic for Service Tag = SQL.WestUs - only allowing connection to Azure Database for MySQL in West US
Specify an NSG rule (with a higher priority) to deny traffic for Service Tag = SQL - denying connections to Update to Azure Database for MySQL in all regions

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

ID: 5600b76b-1287-eaad-48a0-41de2eed9f38
Version Independent ID: 26d26375-6405-8462-62bc-2ca6c96d658f
Content: Private Link with Azure Database for MySQL - Flexible Server
Content Source: articles/mysql/flexible-server/concepts-networking-private-link.md
Service: mysql
Sub-service: flexible-server
GitHub Login: @SudheeshGH
Microsoft Alias: sunaray

@yfukukama
Thanks for your feedback! We will investigate and update as appropriate.

Hi @SudheeshGH,
Could you please look into this, thanks.

https://github.com/MicrosoftDocs/azure-docs-pr/pull/261751  :  Necessary changes done using this PR , Please close this PR @shaktisingh-msft


Feature Request - encrypt SMTP password

When you change the mail settings to smtp the password is stored in plain text in /application/config/generated_overrides/concrete.php.  Could this be encrypted?

FYI: to anyone doing this, you'd need to handle backward compatibility as well.


docs: TooltipBase

:tada: This issue has been resolved in version 7.26.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Where is the Concept obtained from？

Hi,
After reading your paper, I am very interested in your idea. I am doing some experiments with Wikidata and I want to know how did you get the Concept of the entity (the file "ent2cnpt.txt") from Wikidata?
…………………………………………………………………………………………………………………………………………………………………………
你好， 我想问一下，你的实验中用到的Concept是从Wikidata中的哪个字段抽取出来的？

Hi,
Thank you for your interest.
Basically, I use query SELECT $WDid WHERE {wd:<entity_uri> wdt:P31 ?WDid} to find an entity’s corresponding concepts.
For more details, please refer to:
[1] Wikidata Query Service
[2] Pywikibot
If needed, I will upload my code later.
But this part is not complicated, so I recommend building it by yourself to meet your needs.

Thank you!
------------------ 原始邮件 ------------------
发件人:                                                                                "imJiawen/KEFDA"                                                                                @.>;
发送时间: 2021年9月26日(星期天) 上午10:22
@.>;
<EMAIL_ADDRESS>主题: Re: [imJiawen/KEFDA] Where is the Concept obtained from？ (#3)
Hi,
Thank you for your interest.
Basically, I use query SELECT $WDid WHERE {wd:<entity_uri> wdt:P31 ?WDid} to find an entity’s corresponding concepts.
For more details, please refer to:
[1] Wikidata Query Service
[2] Pywikibot
If needed, I will upload my code later.
But this part is not complicated, so I recommend building it by yourself to meet your needs.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Hi, Thank you for your interest. Basically, I use query SELECT $WDid WHERE {wd:<entity_uri> wdt:P31 ?WDid} to find an entity’s corresponding concepts.
For more details, please refer to: [1] Wikidata Query Service [2] Pywikibot
If needed, I will upload my code later. But this part is not complicated, so I recommend building it by yourself to meet your needs.

<EMAIL_ADDRESS>


Handler failed

19.12 00:16:17 [Server] ERROR Plugin BungeeGuard v1.0-SNAPSHOT has failed to register events for class me.lucko.bungeeguard.backend.BungeeGuardBackendPlugin because com/destroystokyo/paper/event/player/PlayerHandshakeEvent does not exist.
Server is 1.8.8 any ideas

The plugin does not support 1.8.8 because Paperspigot 1.8.8 has no PlayerHandshakeEvent. This should be fixed in the latest update (by using a normal Spigot event), but as you can see in #22 it's still not working.


Smoke tests failing on aarch64 mac platforms (related to Orka dynamic agents)

Thank you for reporting a broken build! Please fill in the following details:

Jenkins link to the failing log:
https://ci.adoptium.net/job/build-scripts/job/jobs/job/jdk17u/job/jdk17u-mac-aarch64-temurin_SmokeTests/215/console
Which platforms (OS+arch) are affected?: mac platforms
If you look at the historic logs, does the problem appear to be specific to one machine?
Link to any upstream project bug report (e.g. OpenJ9/JBS)

All aarch64 mac nodes are now being spun up from Orka, which means no static machines are waiting for a test job being sent to them.  This was addressed for AQAvit tests via this PR/844, but for some reason the smoke tests do not call into this method (waitForANodeToBecomeActive()).
x86 mac smoke tests are running and passing because there are still 2 static machines online in Jenkins, so jobs find available nodes

A fix for this issue will involve updating openjdk_tests PLATFORM_MAP with 'DynamicAgents' : ['orka'] for the 2 mac platforms.

Smoke tests and aqa-tests triggerred by pipeline has the parameter context.string(name: 'ACTIVE_NODE_TIMEOUT', value: "${buildConfig.ACTIVE_NODE_TIMEOUT}"), . Currently the parameter is set as 0, which means if there is no label agent available it will exit.
[Pipeline] nodesByLabel
07:29:27  Could not find any nodes with 'ci.role.test&&hw.arch.aarch64&&(sw.os.osx||sw.os.mac)' label
[Pipeline] timeout
07:29:27  Timeout expired 0 ms ago
07:29:27  Cancelling nested steps due to timeout

By default the value is 15 mins in aqa-tests jenkins https://github.com/adoptium/aqa-tests/blob/master/buildenv/jenkins/openjdk_tests#L307-L314

@sophia-guo - requesting your review on https://github.com/adoptium/aqa-tests/pull/4903 to address this issue.


Add ncdu alias

Why not?

I'll put this in the next release. Planning on doing one soon with the other PR.


[WIP] ApiDataFactory helper

This helper allows you to create / delete data on remote server using REST api.
It solves data management problem for acceptance tests. It is expected to be used with data generator libraries like rosie, factory_girl or others. Usage:
I.have('user', { login: 'davert', email<EMAIL_ADDRESS>});
let id = yield I.have('post', { title: 'My first post'});
I.haveMultiple('comment', 3, {post_id: id});

sample config:
{

 ApiDataFactory: {
  endpoint: 'http://user.com/api'
  factories: {
    user: {
      create: {post: '/users'},
      delete: {delete: '/users'},
      factory: './factories/user'
    },
    post: {
      uri: '/posts'
      factory: './factories/post'
    },
    comment: {
      factory: './factories/user'
    }
  }
}

I'm getting this message:

➜  codeceptjs-poc git:(master) ✗ node_modules/codeceptjs/bin/codecept.js run
Could not load helper ApiDataFactory from module './helper/ApiDataFactory':
Required modules are not installed.
RUN: npm install --save-dev request

Will that library be added into package.json as devDependency or something like that?
Also would like to ask, should I use execute codeceptjs in a different way?

What's missing on this? can I help?

@atrevino thanks. I will update it right now to work with unirest and it will be merged.
I think I will also write a documentation for managing Data with REST and ApiDataFactory helpers


Using Californium CID for improved connection for clients

Question
We are using the LTE-M network, and we would like to improve the connection for our devices with our Leshan server.
We are using the nordic semi SDK, and we were suggested to make changes in our Leshan server to support CID.
Here is a previous issue that was closed a while ago:
https://github.com/eclipse-leshan/leshan/issues/1166
And here is a thread that explains our challenges:
https://devzone.nordicsemi.com/f/nordic-q-a/114133/help-with-lte-connection-after-loss-of-connection/507418

which version of leshan are you using ?

Hello @sbernard31
We are using our own leshan server, which we started by cloning leshan-2.0.0-M4.

About 2.0.0-M4
You should not use v2.0.0-M4 as it is concerned by security issues : https://github.com/eclipse-leshan/leshan/security/policy
You should use M13 minimum.
I even recommend you to try to follow the last 2.0.0-Mx version.
About cloning
Leshan is a library to create your own LWM2M server.
Leshan Server Demo is not a product but just a demo to test the library.
This is very very surprising that need to clone it... to be honest that smell not good at all.. :grimacing:
You should just create your own project and add Leshan libraries as dependency.
If there is something missing or issue with Leshan API just discuss with us and we try to find a solution.
We try to help users as long as it keeps in the project scope :slightly_smiling_face:
So I insist on those 2 point :point_up:, please try to change the way you are using Leshan.
About CID
CID is supported by Leshan Server Demo
So you could have a look at the demo code to see how to enable it :
https://github.com/eclipse-leshan/leshan/blob/leshan-2.0.0-M4/leshan-server-demo/src/main/java/org/eclipse/leshan/server/demo/LeshanServerDemo.java#L449-L451
Note that with recent version of Leshan, the way to configure the Californium DTLS configuration has change a little but just look at the code of the corresponding  leshan-server-demo version

Let me know if you get all information needed and if I can close the issue. :pray:


NVIDIA-SMI

Hi Manuel,
Are you planning to log the GPU usage during training?
This can be done by using https://github.com/nicolargo/nvidia-ml-py3.
This would help to see the resources without the need for running "watch nvidia-smi" or "nvidia-smi dmon" in a secondary screen.
Thank you

Hi,
Thanks for opening an issue about that.
I think I saw other GPU memory loggers in python, and it would be nice indeed.
Though, I think this would be the role of pytorch lightning rather than Asteroid right?
I checked master there, but couldn't find if they have the option, I wouldn't surprised if they had.
Would you like to open an issue there about it?

Hi Manuel,
Yes, you are right, this should be managed by PyTorch lightning.
The only place where this would make sense is in the system.
I will open an issue there and let you know what happens.

In the mean time, I'll close this.

I knew I saw that in the past
It has a callback for PytorchLightning
https://github.com/sicara/gpumonitor

Thank you, Manuel
This is exactly what I was thinking about.


reenable macOS support

Changes are minimal and required also for the latest libstd. If all tests passed, I will accept the PR.

bors r+

bors retry


IPTT Results table: layout, overflow & responsiveness

This ticket only addresses global layout issues with the IPTT table. Issues with individual elements inside the table are #285. Issues with the filter panel are in #298. Other css issues on this page are in #299
UI display weirdness to fix:

[ ] Current implementation breaks on small screens — “jumps” below the filter panel
[ ] x-axis overflow should scroll inside element, not viewport
[ ] implement or mimic behavior of Boostrap table-responsive class

Add-on improvements:

[ ] Sticky table header
[ ] n sticky columns, probably "No." and "Indicator"

Add-on improvements captured elsewhere.

Sticky table header is captured in #211.
n sticky columns is captured in #316

Scroll behavior is the same regardless of the target element with the scroll property, and regardless of your input device, as long as that element has focus. So if I'm hovering over the table with a scroll mouse and shift-scroll with my mouse wheel for example, the table element will scroll horizontally. The catch is that if multiple stacked (or nested) elements have scroll property, only the top or innermost one gains focus. If I want to scroll the entire viewport I need to get my focus out of the table, i.e. by moving my pointer over that part of the page

Just showed Mahmood how you can horizontally scroll with arrow keys. Sanjuro has a mouse and was able to shift+scroll but only using the wheel. Someone without a wheel in their mouse wouldn't be able to. None of us intuitively knew how to do it, so we're just concerned that the average user in the field who is less tech savvy might not figure out how to make sure the area has focus, or know that they can use their keys, etc. Any thoughts on how to make it a bit more obvious? For example, does Bootstrap allow you to display some sort of visible scrollbar?

I'm not sure this is a web issue at all. Scrollbars are OS dependent regardless of the item being scrolled. So these are issues whether you're scrolling the entire viewport or just the IPT table. If I can't (don't know how to) scroll just the table, I won't be able to scroll the whole viewport either.
The correct metaphor here is not "scrolling a webpage" but "scrolling a Google Sheet." I guess we could try to implement something like Google's nifty scrollbars? They are not OS scrollbars

If we go with the viewport -- which all of us like! -- then we do need to take the extra time to implement some scrollbars like Google Sheets has. We can't assume that the majority of TolaData users have laptops with trackpads or even a mouse with a wheel.
Can you estimate the level of effort to add scrollbars to the viewport? If it's in the realm of a few hours, let's go ahead and include it as part of this story. If it's a higher level of effort, let's create a new ticket for it, and put it off for now. Worst case scenario, we can always remove the viewport if we don't get to it.


Implement Price Alerts

See https://app.zeplin.io/project/5d088205bff2d15de6a4397b/dashboard?tag=Samoa

Add the views for creating price alerts (using InputAmount widget), and swipe out/delete.

@colourfreak could you please add me to this zeplin project

@mpaschenko you should have access with your gmail account.

@hboon yes, it's ok now, had some issues with login, thanks

@mpaschenko I have done the Samoa merge, so you'll need to branch from Samoa_Update.

@JamesSmartCell yes, I'm on samoa_update branch

@colourfreak Hi Tomek, what do you wish me to do by assigning me on this issue?

ACs:

[ ] Add new alert
[ ] Show alerts list
[ ] Toggle alert
[ ] Delete alert
[ ] Above
[ ] Below
[ ] Different currencies

@colourfreak Hi Tomek, what do you wish me to do by assigning me on this issue?

I am trying to assign the old Michael test to you or Justin. But please follow Boon and James' recommendations. I just wanted to make sure that are keep the ball rolling ;)

Got it, I am working on testing and fixing now.

I am not sure the price format US$17,703.30 fits all currencies.

For example, the last one, according to same rule, it will be PKRRs 17,703.30.
How about another way: 17,703.30 USD?

In the list, how to distinguish USD and SGD. @colourfreak

I don't think you need to worry about it - the user is probably aware which currency they have selected.

Good point. User probably only choose one currency.


Document @:callable

I was looking at how allow an abstract of function to be called, this is implemented with @:callable but does not seem to be documented atm. Maybe @Simn you could review the newest metadata that were recently added for abstracts?

I see this issue and immediately ask myself "wtf is @:callable"...


Two processes for aluminum ingot

Two processes for primary ingot, and two for secondary. Should one of each be removed?

Note that one of them is a system process (though not currently labeled as such)


[CELEBORN-809] Directly use isDriver passed from SparkEnv

What changes were proposed in this pull request?
As title

Why are the changes needed?
Does this PR introduce any user-facing change?
How was this patch tested?

ping @pan3793 @FMX @waitinfuture @RexXiong


fix FHSUserEnv blacklists

Motivation for this change
While attempting to package yocto, which is a source based tool chain to build embedded Linux OSes I found it was downloading binaries to bootstrap compilation of Rust and other langs. I then switched to FHSUserEnv but my host /lib was still available within the chroot so binaries kept breaking because, I believe, a mismatch of glibc versions across chroot and host.
To make the chroot more pure, I have added "lib", "lib64", "lib32", "sbin" to the chroot blacklist.
I believe that Steam makes heavy use of this so I need to test that before merging.
Maybe it would be better to have a custom set of blacklists (or even whitelists) when creating this chroot? If that is preferable let me know and I'll try to implement.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[ ] NixOS
[ ] macOS
[x] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Fits CONTRIBUTING.md.

Thanks @matthewbauer , what do I need to get this merged?


Implement Launcher::LaunchUriForResultsAsync for desktop apps

Related to #1034, #1157.
In UWP apps, you can use Launcher::LaunchUriForResultsAsync to launch another app through protocol activation and make its UI show up in a modal dialog relative to the current CoreWindow. However, it can't be used with Desktop apps (other Launcher methods seem to work just fine).

It works for Win32 apps too, as CoreWindow is only for UWP apps you must use the IInitializeWithWindow interface, see https://devblogs.microsoft.com/oldnewthing/20190412-00/?p=102413

I'm trying this myself right now. Yes, you need to IInitializeWithWindow trick.  My sample is packaged Win32 WinUI3 -> packaged Win32 WinUI3. The target app implements the x-launch-results protocol and correctly gets launched when doing Start > Run x-launch-results:moo?prompt=kittens ... The LaunchUriForResults, however, does not work - the Launch returns immediately with Success but no Result property.
Digging into this on my own now, stay tuned.


microk8s serverVersion can't be parsed

Hello,
Using microk8s, the following is reported by kubectl version -o json:
{
  "clientVersion": {
    "major": "1",
    "minor": "20",
    "gitVersion": "v1.20.0",
    "gitCommit": "af46c47ce925f4c4ad5cc8d1fca46c7b77d13b38",
    "gitTreeState": "clean",
    "buildDate": "2020-12-08T17:59:43Z",
    "goVersion": "go1.15.5",
    "compiler": "gc",
    "platform": "windows/amd64"
  },
  "serverVersion": {
    "major": "1",
    "minor": "20+",
    "gitVersion": "v1.20.1-34+e7db93d188d0d1",
    "gitCommit": "e7db93d188d0d12f2fe5336d1b85cdb94cb909d3",
    "gitTreeState": "clean",
    "buildDate": "2021-01-11T23:50:46Z",
    "goVersion": "go1.15.6",
    "compiler": "gc",
    "platform": "linux/amd64"
  }
}

Unfortunately, this can't be parsed because of integer version here:
https://github.com/dotnet/tye/blob/013868d87ed8d6e578ccd82b8bce9128bf525b4e/src/shared/KubectlDetector.cs#L51
therefore, tye deploy doesn't work.
Kindly ask to fix

I have same problem.

Looks like it is the same issue I've been having. #927

Going to close as a dup of https://github.com/dotnet/tye/issues/927


Equip filter is custom by default, add alert for teammate equipment in builds

Describe your changes

Make equipment filter "custom" by default, and remove other options (simplify logic)
Add alert if build has artifact equipped on teammates

Issue or discord link

Resolves #1625

Testing/validation

Checklist before requesting a review (leave this PR as draft if any part of this list is not done.)

[ ] I have commented my code in hard-to understand areas.
[ ] I have made corresponding changes to README or wiki.
[ ] For front-end changes, I have updated the corresponding English translations.
[ ] I have run yarn run mini-ci locally to validate format and lint.
[ ] If I have added a new library or app, I have updated the deployment scripts to ignore changes as needed

@nguyentvan7 I am not sure what the issue you have is. In the build you selected, you have an artifact equipped by ganyu, but ganyu is not part of your akaya team, so there is no "teammate equipped" indicator? If optimizer generated an artifact equipped by your kazuha, shenhe or layla, then the indicator will show.

I see it's for teammates only. If allowing from teammates is opt in only, why even have the alert specifically for that case, and not the case that is default enabled? I feel like it makes more sense to alert the user for default enabled cases, in case they missed it

Could you add the teammate equipped alert to the build swap preview too please?

I see it's for teammates only. If allowing from teammates is opt in only, why even have the alert specifically for that case, and not the case that is default enabled? I feel like it makes more sense to alert the user for default enabled cases, in case they missed it

Teammates make sense, because at the end of the day, you want to build a team with a valid, non-conflict build for each teammate, this warning helps resolve the build inside the team.
Creating and saving builds using equipped artifacts from outside the team is a behavior that we want to encourage, hence the "all" filter by default, showing a warning seems to go against that.

Could you add the teammate equipped alert to the build swap preview too please?
I anticipate a larger overhaul of this UI https://github.com/frzyc/genshin-optimizer/issues/2054, and I would like to address this UI in that context, and not in this PR.


feat: add TZ validator to AuditModel

Fixes #244

Description

Closes

@peterschutt I think the validator is a good idea.  Is this sufficient to cover your use case?

@peterschutt I think the validator is a good idea. Is this sufficient to cover your use case?

Yeah, the issue was that there was no way to force sqladmin to send through an aware timestamp, so having the base model assume naive == UTC covers it.
Cheers


Revert "Switch to malloc_good_size instead of malloc_size"

Reverts apple/swift#70532

@swift-ci Please ASAN test

For context: This should fix the ASAN bot.


snes9x: init at 1.61

Description of changes
This is a modified version of the snes9x-gtk derivation. This should build in multiple platforms as long X11 is available, however since the only audio backend supported is ALSA, audio is only available on Linux.
Still, this has way less dependencies than the GTK version, so it maybe useful to someone. For example, static or cross-compilation should be much easier with this version.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 169366 run on x86_64-linux 1

2 packages built:

snes9x
snes9x-gtk

Result of nixpkgs-review pr 169366 run on x86_64-darwin 1

1 package marked as broken and skipped:

snes9x-gtk

1 package built:

snes9x

Result of nixpkgs-review pr 169366 run on x86_64-linux 1

2 packages built:

snes9x
snes9x-gtk

This is not a new package properly speaking, but a new option on an already-existent expression.
A better description/name for this PR would be snes9x: enable non-GTK build as option or something like that.

This is not a new package properly speaking, but a new option on an already-existent expression.
A better description/name for this PR would be snes9x: enable non-GTK build as option or something like that.

But it is exposing a new attribute. In this case I would say the difference is less clear. Wouldn't make much sense to say snes9x: enable non-GTK build as option like you said because we didn't had snes9x before, nor snes9x-gtk: ... because this change is not included in snes9x-gtk.

For me, snes9x feels like a different package to snes9x-gtk, not really an option of it. Their functionality is different - for example, unix has functionality to save video/audio to disk while gtk doesn't. Opinions can vary however, as this is very borderline.

For me, snes9x feels like a different package to snes9x-gtk, not really an option of it. Their functionality is different - for example, unix has functionality to save video/audio to disk while gtk doesn't. Opinions can vary however, as this is very borderline.

Yeah. I am more adding this to the current derivation since they use the exactly same source code and share some dependencies. But feature wise, they're completely different.

Update the PR and details from the message commit to make it clear this is a modified version of the previous snes9x-gtk derivation with a new included option that allow to build both snes9x and snes9x-gtk.

My rationale is:
The titles of PRs in nixpkgs are usually like one of these

funny: init at X.Y.Z
funny: X.Y.Z -> A.B.C
funny: add M dependency
funny: add option
funny: remove
and a whole lot of others

The idea of a funny: init at X.Y.Z tells us that this commit is including something that never existed before.
But it does not apply here - snes9x already exists in Nixpkgs. (Indeed my reaction was "what? snes9x was not in nixpkgs already??")
Okay, we call it snes9x-gtk , however this is because of an old, parallel fork that is now integrated to the main project.


Add ledgerutil to docs

All ledgerutil to docs.
Also remove idemixgen since it was moved to its own repository.

@satota2 Thanks, fixed!


fix: small typo at create_networking_config

Hi @fchpr thanks again for you PR. We incorporated your changes into the variables.tf file as indicated by @jdiebold, in commit https://github.com/idealo/terraform-aws-mwaa/commit/9337baf45fbd269dafb5d5636fef1e28212256a5 - closing here.


Speed up BFG Bitcoin Block Processing

Confirmation

[X] I have checked for similar issues.

Problem
BFG processes Bitcoin blocks by requesting a single transaction at a time from Electrumx, which causes block processing to take too long when the latency between BFG and Electrumx is too high.
Suggested solution
Need to update BFG block processing to parallelize BTC tx queries to Elecrumx.
Additional Information
No response

Additionally, the current electrumx client does not persist TCP connections. Each request results in a new TCP connection being established, a request/response being made and the connection being closed.

I believe this was resolved by #26, however we may replace ElectrumX with TBC in BFG at a later date to further resolve this issue.


Update docker-compose.README.md

Added note about how you get the compose_files directory. If you come to this page with no understanding that this compose_files are defined in the CDA source it might waste someones time.

Anyone objections to moving this to the wiki and adding a reference to the wiki page from this readme? Might make it easier to edit.

Any objections to moving this to the wiki and adding a reference to the wiki page from this readme? Might make it easier to edit.

That works too.

Moved to the wiki article:
https://github.com/USACE/cwms-data-api/wiki/Docker-Compose
Decided to re-open and delete the readme instead of coming back later to do this

Any objections to moving this to the wiki and adding a reference to the wiki page from this readme


Removing the usage of get_custom_objects.

- What I did
I removed the modifications of global objects at import time.
- How I did it
removed the stuff and updated the readme.
- How you can verify it

Now the new test is using custom objects. Both optimizers and layers have tests where they are put in json and loaded back.
See layer_test and _test_optimizer.

Thanks @RaphaelMeudec !

Good I found it. I'm facing an issue now with loading the models in the old fashion way.


Adding subcharts / creating combo charts using python-pptx

I have been desperately trying to create combo charts using python pptx & have used the below references for doing the same. I keep getting the error AttributeError: 'CategoryWorkbookWriter' object has no attribute 'x_values_ref'. Is there any other way of creating combo charts using python-pptx?

Python-pptx (Scanny #338)
jbq Python-pptx commit

+2, me too . as A chinese，studying english doc is very difficult.


Remove .to(CUDA) statements

Hi @Pranav-Saxena! Thanks for the contribution, but there's a large PR already under review implementing these changes #410. We try to indicate this sort of thing by assigning someone to the issue and linking the PR back to the issue, so those are things to keep an eye on when you're deciding if an issue is a good one to work on.

@ethanwhite , I am sorry. Will take care of it in the future!

No need to apologize. Just explaining how to avoid duplicating effort. We always appreciate folks jumping in!


CNV-40059: Update Checkups lists for 0 results after filtering

📝 Description
This is another PR belonging to the epic:
https://issues.redhat.com/browse/CNV-40059
Display Network latency and storage checkups lists correctly after getting zero results from the list filtering. Update the message that is displayed in this scenario by adding the resource name to it. Also display missing pagination.
🎥 Screenshots
Before:
Network latency checkups list:

Storage checkups list:

After:
Network latency checkups list:

Storage checkups list:

@avivtur @pcbailey @upalatucci @metalice please review

/lgtm


Unhandled Promise Rejection (404 Not Found) loading markdown-it .

I can't seem to get the library markdown-it to work. I've installed it through npm, and the typings, so there are no typescript compiler errors. ng-serve runs fine with no errors, but I get the following error in the console:
Unhandled Promise rejection: "XHR error (404 Not Found) loading http://localhost:4200/markdown-it
	Error loading http://localhost:4200/markdown-it as "markdown-it" from http://localhost:4200/app/ang-cli-test.js" ; Zone: <root> ; Task: Promise.then ; Value: Error: XHR error (404 Not Found) loading http://localhost:4200/markdown-it

Which tells me that angular-cli isn't bundling it correctly.
My import statement is: import * as markdownIt from 'markdown-it';, and I said, the typescript compiler is recognizing it.
Env:
~/git/ang-cli-test$ ng --version
Could not start watchman; falling back to NodeWatcher for file system events.
Visit http://www.ember-cli.com/user-guide/#watchman for more info.
angular-cli: 0.0.33
node: 5.10.1
os: linux x64

Thanks.

Hey @tchoulihan. Did you follow the steps that are provided on the wiki?

@jkuri , I didn't see that. I assumed it was just a problem with this library, since I randomly tried ng install moment and I didn't need to do any of that.
Actually I just looked over the 3rd party libs page, it looks like its out of date. For example, the system-config.js file is used now as opposed to the script, and the syntax looks quite different.

@tchoulihan yes, please update your angular-cli version, seems like you are using very outdated one.

My ang-version is
angular-cli: 0.0.33
node: 5.10.1
os: linux x64

Version 0.0.34 just got pushed 5 hours ago.
Are the docs correct for 0.0.34, and not 0.0.33?

I can verify that the wiki docs are not correct for this new version. I still need help with this issue.

Sorry, my mistake then, I will update the wiki docs and let you know.

No problem, thanks.

@tchoulihan I just updated the docs, please let me know if now works for you. Thanks for notify about outdated docs.

Thanks!

@jkuri Tried the updated docs, also didn't work, getting the same error as above. The broccoli compiler seems to work fine, but the console in the browser gives the error:
Unhandled Promise rejection: "XHR error (404 Not Found) loading http://localhost:4200/vendor/markdown-it/markdown.js
	Error loading http://localhost:4200/vendor/markdown-it/markdown.js as "markdown-it" from http://localhost:4200/app/ang-cli-test-2.component.js"

The issue seems to be in the system-config.ts file:
// Add your custom SystemJS configuration here.
export const config: any = {
  packages: Object.assign({
    // Add your custom SystemJS packages here.
  }, createPackageConfig(barrels)),
  map: {
    'markdown-it': 'vendor/markdown-it/markdown.js'
  }
};

I've tried lots of combinations of this. The actual js file is located at node_modules/markdown-it/dist/markdown.js, but I've tried that, and many other combinations such as markdown-it/dist/markdown.js, but they all give the same error.

@tchoulihan the docs includes the examples, you must set paths that fits your library, I guess in your case would be;
vendorNpmFiles: ['markdown-it/dist/markdown.js']

map: {
  'markdown-it': 'vendor/markdown-it/dist/markdown.js'
}

Just check the paths where the .js file is located.

Oops my bad, I didn't realize the location was right there in the vendor folder. Sorry about that. It would be useful to include that in the docs for adding 3rd party libraries, since each one might be in a different location.

No problem, does it works now for you?

Oops sorry, should've said that it does. Thanks a bunch.

Hi I am getting the same error. Is there any solution?


Safer Date escaping

I don't know how important this is, but potentially this check is unsafe:
https://github.com/WebReflection/sqlite-tag-spawned/blob/d29a0247015361f91d398bff160372de439a7781/esm/utils.js#L28-L29
Something could be an instance of Date and overload the toISOString method to execute an arbitrary query.

This is backend code … even string replace could be overloaded, or array iterator, so I’m not sure what you’re after 🤔
it’s either 100% defensive code or trust your dependencies? I mean … I work in this space https://javascript.plainenglish.io/about-trusting-javascript-execution-8c6b478d6021

Yeah I guess if you can't trust your own dependencies all bets are off already anyway. I just spotted that when going through the code, I thought I'd mention it.

it's not different from [].join('') after an Array.isArray(thing) ... or any object.hasOwnProperty(thing) or whatever toString() operation, including Buffer instances ... basically the reason proxy-pants exists and we use it to secure our code against malicious software, but here we're on the server, and I don't see why I should care about that in particular and nothing else.


Filter live flights with category

Issue
Filter live flights with category
Question
On the https://www.flightradar24.com/ there is a possibility to filter live flights with "categories" (like Cargo). The call is difficult to understand (it's grpc language). Is it possibile to get live flights filtered by category ? (Being connected)
Reproduce
Steps to reproduce the behavior:

Go to 'https://www.flightradar24.com/ '
Connect with at least a Silver account
Go to filter and choose a category
Open Dev tools of your browser and see the call named  "LiveFeed"

Hi @guillaume-guerdoux, thanks for the report! The project doesn't support it yet but I can check this out when I get some free time. Feel free to open a PR. I really have to explore the features for paid plans.