Custom language selector (non-mkdocs-material)

I would like to build a language selector in a custom (non-mkdocs-material) theme, but I do not know how to access the alternate language versions of a given page:
<!-- theme/base.html -->

i18n_page_locale: {{ i18n_page_locale }}
i18n_languages:   {{ i18n_languages }}

 i18n_page_locale gives me the expected language code for the current language version.
But the variable i18n_languages seem to be undefined.
How do I access the alternate language versions of a given page in a custom template?

Hi @ultrabug, thanks for your prompt reply and the sitemap-hint! But in my case, there must be something wrong with my project setup - even i18n_alternates is not defined:
# mkdocs.yml

site_name: Testsite
strict: true
plugins:
  - i18n:
      docs_structure: suffix
      languages:
        - locale: en
          default: true
          name: English
          build: true
        - locale: de
          name: Deutsch
          build: true
theme:
  name: null
  custom_dir: 'theme/'

# project layout
.
├── docs
│   ├── page1.de.md
│   └── page1.en.md
├── mkdocs.yml
├── theme_csl
│   ├── base.html
│   ├── main.html
│   └── mkdocs_theme.yml
└── upload.sh

<!-- theme/base.html -->

i18n_page_locale:  {{ i18n_page_locale }}
i18n_languages:    {{ i18n_languages }}
i18n_alternates:   {{ i18n_alternates.items() }}

→ mkdocs serve →
  File "project/theme_csl/main.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "project/theme_csl/base.html", line 86, in top-level template code
    {{ i18n_alternates.items() }}
    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "project/.venv/lib/python3.11/site-packages/jinja2/environment.py", line 485, in getattr
    return getattr(obj, attribute)
           ^^^^^^^^^^^^^^^^^^^^^^^
jinja2.exceptions.UndefinedError: 'i18n_alternates' is undefined

Do you have any other tips or ideas?

The i18n_alternates are set only in the template context:
https://github.com/ultrabug/mkdocs-static-i18n/blob/0b492e11fa0cd8c716bb2e570a8fb4cc93765cf1/mkdocs_static_i18n/plugin.py#L145
For sitemap.xml and perhaps 404.html as well, as it's included in static_templates.
The page context has only those values:
https://github.com/ultrabug/mkdocs-static-i18n/blob/0b492e11fa0cd8c716bb2e570a8fb4cc93765cf1/mkdocs_static_i18n/plugin.py#L182-L188

Based on this excerpt from the material theme, the templates can access the config:
https://github.com/squidfunk/mkdocs-material/blob/cc78979185dfca30ad6657192174733f702d86f5/src/templates/base.html#L63-L65
So try:
{% if "i18n" in config.plugins %}
{% set i18n_alternates = config.plugins["i18n"].i18n_files_per_language  %}
{% else %}
{% set i18n_alternates = {} %}
{% endif %}

{{ i18n_alternates.items() }}

I haven't tested it ✌

Didn't run the demo, your comment explained the situation quite well:
https://github.com/ultrabug/mkdocs-static-i18n/blob/0b492e11fa0cd8c716bb2e570a8fb4cc93765cf1/mkdocs_static_i18n/plugin.py#L76-L78
It turned out that the i18n_files_per_language is a mapping that gets updated after each language build, and the sitemap uses the data from the last build to save the information, once all languages are built.

Going back to your OP:

I would like to build a language selector in a custom (non-mkdocs-material) theme, but I do not know how to access the alternate language versions of a given page:

As far as I know, the i18n plugin requires or assumes that the file tree is the same in each language, so every file path is the same too only the .en.md file suffix or /en/... folder prefix changes.
Given this information you don't need to access the files from other languages, you only need the language identifier.
https://github.com/ultrabug/mkdocs-static-i18n/blob/0b492e11fa0cd8c716bb2e570a8fb4cc93765cf1/mkdocs_static_i18n/reconfigure.py#L85
https://github.com/ultrabug/mkdocs-static-i18n/blob/0b492e11fa0cd8c716bb2e570a8fb4cc93765cf1/mkdocs_static_i18n/reconfigure.py#L110-L114
You should be able to access the data with:
config.plugins["i18n"].current_language get current language
config.plugins["i18n"].build_languages loop over that to get alternates
page.url | replace(current_language, alternate, 1) replace the current with the alternate once 🤔

That would work if all pages exists in all configured languages. Looping over config.plugins["i18n"].all_languages seems to get same resuts.
But neither config.plugins["i18n"].build_languages nor config.plugins["i18n"].all_languages seem to return only the actually existing alternates. Instead these return all possible alternates according to the languages config key.
Given the following docs layout:
docs/
├── enonly.en.md
├── index.de.md
└── index.en.md

this would work for index.en.md↔index.de.md - but not for enonly.en.md.
Perhaps I implement this language switcher in Javascript;-)

Well, both build_languages and all_languages are global containers for the whole build, and aren't "resolved" for each page separately.
I always use the https://ultrabug.github.io/mkdocs-static-i18n/setup/controlling-your-builds/#fallbacking-to-default setting, so I never even considered a non-translated page alternate as an issue 😅

Perhaps I implement this language switcher in Javascript;-)

So that after a page load, the JavaScript fetches the urls to check if the page is available and returns a status 200? I advise against this, as this would just create unnecessary requests.

This is the code that reconfigures the context and configures the alternates:
https://github.com/ultrabug/mkdocs-static-i18n/blob/0b492e11fa0cd8c716bb2e570a8fb4cc93765cf1/mkdocs_static_i18n/reconfigure.py#L424-L442
There is the page.file.alternates list, but I don't think it will limit the alternates to only existent ones, still worth a try.

I would like to build a language selector in a custom (non-mkdocs-material) theme,

Also the Material theme uses the extra.alternate config, which later is modified by the plugin. So why not copy the logic from the material theme? The licence is MIT, so you can reuse it, just provide attribution.

I already tried to hijack the language switcher from mkdocs-material. But, again, I'm unable to use the provided "integration" via reconfigure_material_theme. To me it looks like this functionality is strongly coupled with/for the material theme and it is not clear to me how I could use this functionality with my theme:
https://github.com/ultrabug/mkdocs-static-i18n/blob/0b492e11fa0cd8c716bb2e570a8fb4cc93765cf1/mkdocs_static_i18n/reconfigure.py#L126-L127
This integration actually sounds perfect and I would love to use it - but the static-i18n plugin only seems to provide this for "mkdocs-material"?


feat: make transport manager accessible from handlers

In order to implement something like the message pickup protocol, we need to be able to access the inbound transport manager for both session data and undelivered messages on the queue. I'm prototyping a revision of the pickup protocol and this change is the only one I've had to make to core ACA-Py to get things to work.

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@73361c6). Click here to learn what that means.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1095   +/-   ##
=======================================
  Coverage        ?   99.37%
=======================================
  Files           ?      381
  Lines           ?    21877
  Branches        ?        0
=======================================
  Hits            ?    21740
  Misses          ?      137
  Partials        ?        0


ToDo - Add heat demand data

Update datasets with more broadly searched data and buildings with heat load data
Provide plug loads and electrified & raw heating demand separately, and functionality to select proportion of heating load electrified and included in total values

Done - updated to v2.0


Investigate ElasticPress for network-wide and Commons search

Main goals:

Default search includes network-wide posts and Commons BP items (members, groups, forum topics, deposits, sites).

Facets or drop-down to limit scope to each of the above categories.

https://github.com/10up/ElasticPress

Moved to wishlist.


Remove unmaintained Changelog?

Regarding: https://github.com/stealjs/steal-less/blob/master/CHANGELOG.md
I see it was added by @m-mujica — It's not a bad idea, but should remove if it's not going to be updated with each release (currently it's only been updated for the very first release).
I think I heard someone say we're moving to using Release notes for most stuff anyways?

Yep, good point.


Google Photos image not showing

Hi,
I am editing a document and inserted an image from google photos (uploaded it via the "Upload Photos" tab in the popup window). The image does not show up however. Opening the URL manually does load the image. I am using a G Suite account if that's relevant. Browser is the latest Chrome version

Update: This only happens immediately after uploading the picture to Photos. If I cancel the popup after uploading and then insert it from the "Select Photo" tab, it works just fine


"Setting up": Show progress or display ETA

This is definitely a fair request. I'm really not sure what a good way of displaying a progress bar would be, but we could at the very least be more granular in our output.
Listr does support nested tasks, so we could display which sub-step we're currently on without much effort. That should hopefully give a better indication as to what's actually happening and additionally make it easier to debug if something goes wrong.

It should now be a lot more obvious that we're waiting for the device to be connected:


Problem with the refresh command

Hello,
After the application was installed
$ go get github.com/markbates/refresh
I typed
$ refresh init
and I got the following issue
bash: refresh: command not found...
How could the issue be solved?
Thank you in advance :)

have you created it when go mod is enabled? try this:
~$ GO111MODULE=off go get -u github.com/markbates/refresh

By default, the refresh command is installed in the ~/go/bin directory. Make sure the directory is in the PATH environment variable.
~/go/bin/refresh init

hm this is not working for me in docker


runtime: implement userspace USDT

WIP
Closes #135
Still WIP, design and implementation will be described below

On x86_64, a usdt tracepoint was corresponded to a nop instruction in the code. So we may hook this instruction to implement userspace USDT I've tested with GumInvocationListener of frida gum, it works well when attached to the address of the nop instruction.
So things we need to add USDT support are:

logic to parse ELF and extract USDT definitions

Other logics would be similar to uprobe, and can even be reused

According to libbpf's description to usdt https://github.com/libbpf/libbpf/blob/f81eef23b33c0dbf923e863a72ce51ea4d32e291/src/usdt.c#L24
The implementation of attach type usdt is just plain uprobes, attached to the specified nop instruction. libbpf handles all other things, including parse ELF and figure out tracepoints, resolving tracepoint arguments in the ebpf side, and so on, through two internal maps (__bpf_usdt_specs and __bpf_usdt_ip_to_spec_id, where the latter is only needed if bpf cookie is not supported)
So the thing we need to do is

Implement bpf cookie
Test directly with usdt programs, and check if it can work. If it can't work, just fix bugs. We should have already supported USDT

This looks great! Thanks!
Would you mind also checking whether this works with bpftrace (I remember seeing somewhere that you can use bpftrace with bpftime as the runtime)?

This looks great! Thanks!
Would you mind also checking whether this works with bpftrace (I remember seeing somewhere that you can use bpftrace with bpftime as the runtime)?

Ok, I'll also check it

USDT is almost working now. Bpftrace is pending for testing

Maybe we can get this PR merged first if the libbpf example in example/usdt_minimal/README.md is working?
After that, we can:

check and fix bpftrace
update documents.

Maybe we can get this PR merged first if the libbpf example in example/usdt_minimal/README.md is working?
After that, we can:

check and fix bpftrace
update documents.

It's OK to merge now


Cubula Javascript Game

Describe the project you want to add with tech stack
In this game, the view of a cube is given which consists of 27 (3x3x3) smaller cubes. Each of them is either black or white (dark or light). The cubes are semi-transparent: If the player looks at a position where all cubes are white then it looks white, white and black cubes together look gray and a position where all cubes are black looks black. The view (from all 6 sides) of the large cube is displayed on the right side. The player's task is to find out the colors of the smaller cubes. First they would choose a color by interacting with the game UI and after that click on the fields which (the player thinks) has the same color. If the player makes a mistake, then the game is over. The game is solved when the colors of all fields are found out.
Tech stack: HTML, CSS, Bootstrap, Javascript
Screenshots (optional)

Additional context (optional )

hi @MohitGupta121 @TusharKesarwani please assign me this!

Do not make more than 5 issues at a time


Tracks not adding to playlist (nids not beginning with "T"?)

The last few days I've experienced new problems with not all my nids being added to a playlist, for example out of a list of 115 nids only 14 would appear in GPM (if it matters all the tracks were released fairly recently). Looking through the nid list only 16 tracks had nids that began with capital T. However if I add each track's storeid  instead they all appear successfully in the playlist in GPM. Here is one track found with mobileclient.search() that did not add to a playlist with its nid but did with its storeid
{u'track': {         u'albumArtRef': [{             u'url': u'http://lh3.googleusercontent.com/aeFT0-EChHFb3rH1JHTGixVaAKzgAIHHfKh6BZRG9rmISVehhRcsXICaLtiTK2qJNKWTTFHMSg'                 ,             u'kind': u'sj#imageRef',             u'aspectRatio': u'1',             u'autogen': False,             }],         u'artistId': [u'sp4jilxe26d26cpptgi4ai6cfy'],         u'composer': u'',         u'year': 2017,         u'trackAvailableForSubscription': True,         u'trackType': u'7',         u'album': u'Never Start',         u'title': u'Never Start',         u'albumArtist': u'Middle Kids',         u'trackNumber': 1,         u'discNumber': 1,         u'albumAvailableForPurchase': True,         u'explicitType': u'2',         u'trackAvailableForPurchase': True,         u'storeId': u'Tvi2dqrf4c6gh7zdfch3bdlo2au',         u'nid': u'vi2dqrf4c6gh7zdfch3bdlo2au',         u'estimatedSize': u'7889006',         u'albumId': u'rtgsjtvlo24y7jnczxaabqsjxm',         u'genre': u'Alternative/Indie',         u'playCount': 4,         u'kind': u'sj#track',         u'artist': u'Middle Kids',         u'lastModifiedTimestamp': u'1486175786462384',         u'durationMillis': u'197000',         }, u'type': u'1'}
Is it common for a tracks nid not begin with T? From my logs the earliest occurrence of a nid not beginning with T was Jan 2017.

I haven't noticed a change myself, but I've long since avoided using nids. They seem to change randomly. The storeid or track id are usually the way to go.


Deploy new agent, if current agent is set to not pull new tasks

It could happen, that you want to reserve an agent to just finish the current tasks and then end.
Currently the autoscaler wait for the running tasks to finish (witch is nice) and then remove and redeploy a new one.
It would be nice if the autoscaler do deploy a new one idependend asap there are new tasks todo

I am not sure if I understand your request? In case there are more tasks as agents capacity the autoscaler starts with re-enabling agents marked for removal and if that is not enough it will immediately create new agents.


In .NET Core, finalizers do not run when the program exits

> Finalizers are also called when the program exits.
This is not the case in .NET Core. https://github.com/dotnet/corefx/issues/5205 has the full details.

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

ID: 26b6bf23-9cd5-a7c5-dc6a-f9b911d784ff
Version Independent ID: 9f040450-27b7-7e4a-b908-c3695f6aaad1
Content: Finalizers (C# Programming Guide)
Content Source: docs/csharp/programming-guide/classes-and-structs/destructors.md
Product: dotnet-csharp
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

Thanks, @jkotas. This will require a review of both the C# and .NET documentation on finalizers. We'll schedule it for the upcoming sprint.


Apply organization to destination registry

Updated release notes draft:

Added expected_media_types for registries, and registries_organization to reactor config schema
Images are pushed to repository in organization, if one is defined


Switch to Better Orientation Calculation in ClassicCameraEngine

While fixing issue #121, I noticed that my display orientation work differs from what setDisplayOrientation() recommends. Right now, the right algorithm (at least for previews) is used for the Nexus 6P and nothing else, since everything else seems to work.
For v0.5.0, try switching to the new algorithm for everything.

Sound good！

Addressed in v0.5.0.


Token generation and save

Hi,
I'm not sure that an issue should be opened for this but it's the only place I found that I can describe a problem that I have with this library, which is really nice, by the way.
I feel that the way tokens can be saved is limited because of the way the controller interacts with the (access|refresh)Token models.
Because token generation (generateToken) is separated from token serialization (save), a serialization method which affects the token's representation (like a JWT) can't be used.
Each call to generateToken is followed by a save, I feel that changing this interaction with a single call to a create function just like save without the first parameter, which returns an error or a token which would be then used would support both current serialization method and the one I would like to use.
Something along the lines of:
Original
        // Generate new accessToken and save it
        function(cb) {
            accessTokenValue = oauth2.model.accessToken.generateToken();
            oauth2.model.accessToken.save(accessTokenValue, oauth2.model.code.getUserId(code), oauth2.model.code.getClientId(code), oauth2.model.code.getScope(code), oauth2.model.accessToken.ttl, function(err) {
                if (err)
                    cb(new error.serverError('Failed to call accessToken::save method'));
                else {
                    oauth2.logger.debug('Access token saved: ', accessTokenValue);
                    cb();
                }
            });
        },

Improved version
        // Generate new accessToken
        function(cb) {
            oauth2.model.accessToken.create(accessTokenValue, oauth2.model.code.getUserId(code), oauth2.model.code.getClientId(code), oauth2.model.code.getScope(code), oauth2.model.accessToken.ttl, function(err, token) {
                if (err)
                    cb(new error.serverError('Failed to call accessToken::save method'));
                else {
                    accessTokenValue = token;
                    oauth2.logger.debug('Access token saved: ', accessTokenValue);
                    cb();
                }
            });
        },

What do you think?

Hi, ty for your feedback
I see nothing wrong here, i'll couple this functions asap


Add Couchbase Logging

Adds Logging Support for Couchbase
Three new log types:

couchbase_general
couchbase_http_access
couchbase_goxdcr

Example configuration:
logging:
  receivers:
    couchbase_general:
      type: couchbase_general
    couchbase_http_access:
      type: couchbase_http_access
    couchbase_goxdcr:
      type: couchbase_goxdcr
  service:
    pipelines:
      couchbase:
        receivers:
          - couchbase_general
          - couchbase_http_access
          - couchbase_goxdcr

Added documentation in docs/couchbase.md

The integration test results look good to go. Only Windows build failed for a known issue (already fixed in master).
Once rebased and unit tests passed, we can merge.

Full kokoro successfully pass a couple merges back on https://github.com/GoogleCloudPlatform/ops-agent/pull/671/commits/3e241d4ab7496ae05f0230a6170429cf8d071185


SyncTrazor name always on top left of the display?

So I think I started to have this issue a while ago when the Sync Trazor name started to appear on the top left of the display, and will only go away after I interact with any UI from SyncTrazor. and even after that it seems to be appear after a while?
Version: 1.1.29
Syncthing Version: 1.23.2

same question.
It's been like this since I started using it.

Ya It's not like a big issue it's just kinda annoying xD

I've been noticing this a lot recently as well.

I've been noticing this too. Also, this is not a new issue, the previous issue thread starting from 2017 https://github.com/canton7/SyncTrayzor/issues/398

I found out that, in my case, the tooltip saying "SyncTrayzor" appears/disappears in the top left each time when the mouse passes over the SyncTrayzor tray icon faster than it takes for the tooltip to appear. When moving the mouse slowly over the tray icon, the tooltip appears in its expected place (over the icon, near the mouse) and disappears after moving the mouse away from the icon. It seems to appear out of nothing because one will eventually move the mouse over the SyncTrayzor tray icon without realizing, to reach for other icons such as wifi, battery, etc. It is probably interesting to see if this is the cause for the "random" appearances of the tooltip not just for me but for all other users

After checking, mine is behaving the same way as rogolop mentioned. Moving my mouse quickly over the icon, causes the popup text to appear or disappear from the top left corner of my screen. Currently, to avoid this happening, I moved the sync icon to the expandable icon menu.

That does makes me notice that this tooltip looks completely different with other tooltip on Windows 11. It doesn't have the rounded corner like other app does.

I found out that, in my case, the tooltip saying "SyncTrayzor" appears/disappears in the top left each time when the mouse passes over the SyncTrayzor tray icon faster than it takes for the tooltip to appear. When moving the mouse slowly over the tray icon, the tooltip appears in its expected place (over the icon, near the mouse) and disappears after moving the mouse away from the icon. It seems to appear out of nothing because one will eventually move the mouse over the SyncTrayzor tray icon without realizing, to reach for other icons such as wifi, battery, etc. It is probably interesting to see if this is the cause for the "random" appearances of the tooltip not just for me but for all other users

WOW, you actually find the point of this bug!!! hope it can be fixed

After checking, mine is behaving the same way as rogolop mentioned. Moving my mouse quickly over the icon, causes the popup text to appear or disappear from the top left corner of my screen. Currently, to avoid this happening, I moved the sync icon to the expandable icon menu.

This seems to be a good workaround

The same of you.

It looks like a render/msgbox api problem.Normal app icon calls a floating box with app names like wechat etc. synctrazor did not update for about 20 month,may have some api problem when win11 UI changes a lot.

this xaml import the hardcodet.Notifyicon Ver 1.0.8 which is published on 2016. I tried update it to Ver1.1.0( on 2021), and build own exe bin file, however this problem still repeat. for now, my solution is to hide icon in taskbar hiding part.
byw,this problem may belong  to tooltip problem, wish someone could fix it.

Same issue here, Windows 10.

Just wanted to share I am continuing to experience this problem.

Same here. Still an issue. :)

Still an issue for me.

a very similar bug has just been fixed in Firefox where the tooltip remained despite the window no longer having focus https://bugzilla.mozilla.org/show_bug.cgi?id=148624 https://hg.mozilla.org/integration/autoland/rev/8ae372dc88d1
maybe this one has a similar root cause as that one?

I have changed my GUI application to "syncthing tray" which was recommend in "https://docs.syncthing.net/users/contrib.html"
You may have a try.
欧阳程晟
北京市中伦文德（成都）律师事务所 - 律师
18284538046
@.***
成都市高新区交子大道88号中航国际广场A座16楼
610041
---- Replied Message ----
@.>Date12/9/2024<EMAIL_ADDRESS>@.>SubjectRe: [canton7/SyncTrayzor] SyncTrazor name always on top left of the display? (Issue #760)
still around ;)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>


Fixed some incorrect relative imports

Running on Python 3.4.3
Fixes an issue when trying to import hamlpy. It was loading all of the modules in the folder called 'hamlpy' instead of loading the module itself.
Before:
import hamlpy
print(dir(hamlpy))

You will get something like:
[<python attributes>, 'attribute_dict_parser', 'elements', 'hamlpy_watcher', 'nodes', 'templatize', 'unicode_literals']
Which are simply the module names in the hamlpy/ folder. After the import fix you get:
[<python attributes>, 'Compiler', 'HamlNode', 'OptionParser', 'RootNode', 'VALID_EXTENSIONS', 'convert_files', 'create_node', 'print_function', 'unicode_literals']
Which are the actual contents of hamlpy.py.

Coverage remained the same at 80.485% when pulling 48d8a9df5dc244d2bac052a679cd507838698894 on Kangaroux:fix_relative_imports into f2e725a8ba74e9c78f5ea8bf9de96dc74cf8f6c9 on Psycojoker:master.

Thx :)


Compilation failed

# File "src/ppx_enumerate.ml", line 208, characters 10-28:
# Error: This pattern matches values of type 'a Ppxlib.loc = 'a Location.loc
#        but a pattern was expected which matches values of type
#          Ppxlib.label = string
#       ocamlc src/.ppx_enumerate.objs/ppx_enumerate.{cmo,cmt} (exit 2)

Can you be give the versions that you use ? ocaml, ppxlib, ppx_enumerate

It seems to be commit 2383c5ede6cc052bade082018912d124eb8f46d8 which is breaking, even when using compiler 4.04.2. Compiling the previous version works.


lerna bootstrap command removed in v7 (1.0.0-canary.7)

Describe the bug
lerna removed the bootstrap command, this is used in the bootstrap script.
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Run command 'yarn run bootstrap'
See error

ERR! bootstrap The "bootstrap" command was removed by default in v7, and is no longer maintained.
ERR! bootstrap Learn more about this change at https://lerna.js.org/docs/legacy-package-management
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Note
npx tried to install lerna@7.

@GabrieleKaceviciute I see @pavjacko changed the bootstrap code a month ago, so this issue can be closed as it should no longer be reproducable

@VMBindraban Closing as issue was resolved, feel free to reopen if needed.


[BUG] Cannot edit extension property field if the value only includes whitespaces

Describe the bug
Cannot edit extension property field if the value only includes whitespaces in the playground web app.
To Reproduce
Steps to reproduce the behavior:

go to playground web app
try to edit any extension property and only input whitespaces
when try to re-edit it, cannot be "selected" anymore

Expected behavior
The extension property should be still editable if its last value only include whitespaces
Screenshots
See above
Desktop (please complete the following information):

Browser [chrome]

Additional context
Add any other context about the problem here.

@kristol07 Looks like the fix is merged, would be awesome if you can test and verify. :)

@cyfyifanchen Hi, I made the PR, so yes, it's working now.

@kristol07 Thanks for your contribution.


Fixed CustomerServiceTicket #1654, #1599

@DanielHindi  can you help with this pull request ? Im going to have QA test the fixes tommorow
Thank you


Skip tox when [skip ci] present in commit msg

Workflow from skip-based-on-commit-message. Skips the computationally heavy tox build when [skip ci] is in the commit message.

May not be working. I'm not sure why it triggered the tox build on 39aa6d8: https://github.com/GridTools/gt4py/actions/runs/148020083

More info here: https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#github-context
I can't seem to figure this one out, so I'm closing this for now.

GitHub does this by default now: https://github.blog/changelog/2021-02-08-github-actions-skip-pull-request-and-push-workflows-with-skip-ci/


Cannot Join Openml

How,

Open http://www.openml.org/register
Fill the form
Click "Join"
Page will move to "/frontend/page/register" with empty content.

 Will fix asap.
On Fri, Oct 9, 2015 at 12:24 PM Mhd Sulhan<EMAIL_ADDRESS>wrote:

How,

Open http://www.openml.org/register
Fill the form
Click "Join"
Page will move to "/frontend/page/register" with empty content.

Request headers,
Host: www.openml.org
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Referer: http://www.openml.org/register
Cookie: ci_session=a%3A5%3A%7Bs%3A10%3A%22session_id%22%3Bs%3A32%3A%2234d55c56348e63d696193d7c78558caa%22%3Bs%3A10%3A%22ip_address%22%3Bs%3A15%3A%22<IP_ADDRESS>%22%3Bs%3A10%3A%22user_agent%22%3Bs%3A68%3A%22Mozilla%2F5.0+%28X11%3B+Linux+x86_64%3B+rv%3A41.0%29+Gecko%2F20100101+Firefox%2F41.0%22%3Bs%3A13%3A%22last_activity%22%3Bi%3A1444385931%3Bs%3A9%3A%22user_data%22%3Bs%3A0%3A%22%22%3B%7D8ba4e5b67474e59d1d3796066665e63a
Connection: keep-alive
Cache-Control: max-age=0
Params,
Content-Type: multipart/form-data; boundary=---------------------------182372240615000451151324393849
Content-Length: 1322
-----------------------------182372240615000451151324393849
Content-Disposition: form-data; name="email"
<EMAIL_ADDRESS>-----------------------------182372240615000451151324393849
Content-Disposition: form-data; name="password"
xxxREDACTEDxxx
-----------------------------182372240615000451151324393849
Content-Disposition: form-data; name="password_confirm"
xxxREDACTEDxxx
-----------------------------182372240615000451151324393849
Content-Disposition: form-data; name="first_name"
Mhd
-----------------------------182372240615000451151324393849
Content-Disposition: form-data; name="last_name"
Sulhan
-----------------------------182372240615000451151324393849
Content-Disposition: form-data; name="affiliation"
-----------------------------182372240615000451151324393849
Content-Disposition: form-data; name="country"
-----------------------------182372240615000451151324393849
Content-Disposition: form-data; name="bio"
-----------------------------182372240615000451151324393849
Content-Disposition: form-data; name="image"; filename=""
Content-Type: application/octet-stream
-----------------------------182372240615000451151324393849
Content-Disposition: form-data; name="submit"
Join
-----------------------------182372240615000451151324393849--
Response headers,
Connection: Keep-Alive
Content-Length: 0
Content-Type: text/html
Date: Fri, 09 Oct 2015 10:21:31 GMT
Keep-Alive: timeout=5, max=100
Server: Apache/2.4.16 (Ubuntu) PHP/5.5.29-1+deb.sury.org~precise+3
X-Powered-By: PHP/5.5.29-1+deb.sury.org~precise+3
access-control-allow-headers: Origin, X-Requested-With, Content-Type, Accept
—
Reply to this email directly or view it on GitHub
https://github.com/openml/website/issues/31.

We had a full disk. It is now working again. Can you try registering again?
Thanks a lot for the notification, and sorry for the inconvenience.

Oh, OK. I still can't register (forgot to restart db/webserver maybe?).
Sorry for late reply, I just received this email.

Terribly sorry, disk was full again, but we found the reason and this should not happen again.
Please try registering now. Thanks!

It working now :+1: Thank you!


flare-floss: 2.2.0 -> 2.3.0

Description of changes
https://github.com/mandiant/flare-floss/releases/tag/v2.3.0
This update is needed for the package to work on Python 3.11. The old pinned version of networkx doesn't work anymore, but the original error for which pinning was needed was fixed by https://github.com/mandiant/flare-floss/pull/627. Since then, the version of networkx was only pinned for Python 3.7 support (in fact, upstream recently unpinned it since they dropped support; they just haven't released that yet).
Things done

Built on platform(s)

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

[x] 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

[ ] 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
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 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

[x] Fits CONTRIBUTING.md.

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

2 packages built:

flare-floss
flare-floss.dist


IPV6 regression

This is following-up investigation from #10802
In the following scenario:
# /etc/resolv.conf
nameserver mydns
search mydomain

where "mydns" would return an ipv6 address for any subdomain of mydomain
What happens is that when docker 1.5 resolve index.docker.io it will favor the ipv6 returned for index.docker.io.mydomain. rather than the A record for index.docker.io.
This does NOT happen (apparently) if index.docker.io.mydomain. returns an ipv4 record.
Obviously, this does not happen either with docker 1.4.
Finally, curl (for comparison) does NOT use the ipv6 address, but does correctly use the A record for index.docker.io..
To me, this sounds like a DNS resolution order preference bug - not sure if this is a docker bug, or lower.
cc @chmanie @icecrime @stevvoe @dmcgowan

While this is triggered through the angle of distribution stuff (index and registry), it certainly affects any other network operation depending on the same code.

Ping @MalteJ

ping @estesp too :)

@dmp42 I think you shouldn't use a search-domain that resolves a wildcard subdomain.

@MalteJ maybe. Now:

docker 1.4 uses the correct record
this correct record is used if ip returned is ipv4
curl (and presumably other tools) use the correct ip as well

"Search" should be used as a fallback in case no valid record is found for the fqdn (IIRC).

hmm, it looks like the DNS will be queried for an AAAA record for index.docker.io. which cannot be found. Then the DNS is queried for AAAA index.docker.io.mydomain.

From tcpdump, here is what is apparently resolved in order:
22:43:28.650876 IP XXX.41322 > YYY.domain: 25810+ A? registry-1.docker.io. (38)
22:43:28.650976 IP XXX.42402 > YYY.domain: 32691+ AAAA? registry-1.docker.io. (38)
22:43:28.651258 IP XXX.33356 > YYY.domain: 20838+ AAAA? registry-1.docker.io.ZZZ. (55

And answers:
22:43:28.651443 IP YYY.domain > XXX.33356: 20838 2/4/4 CNAME ZZZ., AAAA 2a01:4f8:151:84c5::21:1 (246)
22:43:28.660191 IP YYY.domain > XXX.41322: 25810 1/4/4 A <IP_ADDRESS> (204)

I think they describe a similar problem:
https://engineering.opendns.com/2014/06/04/dual-stack-search-domains-host-roulette/

My DNS competence really stops right here - I let it to the super savvys to figure out :)

I am not sure if we can do something about that. To me it sounds more like a Kernel or Golang issue.

@dmp42 Could you provide exact steps for reproduce, so we can write script for bisect?

@LK4D4 I think you need a DNS that resolves *.mydomain. AAAA 2001:db8::1
and add the search domain mydomain to your /etc/resolv.conf:
echo search mydomain >> /etc/resolv.conf

@LK4D4 not entirely trivial but:

setup a DNS resolver at address Y, that always answer a given ipv6 X on any *.something request
use nameserver Y and search something to the /etc/resolv.conf on the docker daemon host

Also @chmanie from the original bug report is very friendly and probably willing to help testing since he has a "not working" setup.

Based on the description this change comes to mind https://github.com/docker/docker/commit/fdd2abe7b34f15fbe5ec64309e9d700ba2e66e65? Although this change supposedly was made in 1.4.0.

@dmcgowan beat me to it, but yeah..also was in 1.4.0.. this has to be related to registry DNS lookup, not the fact that IPv6 was added to the container network model in 1.5.0

Maybe both?

Given @dmp42's description of the repro scenario, @MalteJ's pointer to the OpenDNS blog seems useful unless I misunderstand the problem: https://github.com/docker/docker/issues/10863#issuecomment-74779885 - <-- the blog notes the lookup issue for DualStack when adding search domains in /etc/resolv.conf depending on OS.

Could the move from go1.3.3 -> go1.4.1 be a factor here?  That did happen between the two Docker releases, and a quick look at dnsclient_unix.go goLookupIP() changes are at least interesting w.r.t. how Go's "netgo" implementation returns/orders A vs AAAA results.
Note that it's not fun to dig for differences as git diff go1.3.3 go1.4.1 ... is useless given they moved the directories for pkg content around!

Could the move from go1.3.3 -> go1.4.1 be a factor here?

That is my first guess.
Nevertheless is a catch-all DNS an antipattern. Especially in a dual-stack environment where there is no standardized order of IPv4/IPv6 queries, search domains etc.

Ping @mavenugo @mrjana: I'm removing this from 1.7.0 milestone and let you guys assess the severity and if it's still relevant after all the changes we made in the past few weeks.

I don't think this issue should be tagged with the Networking label as it is not related to container networking.
It is a host issue which, based on the dns client behavior and code analysis (from @dmp42 , @MalteJ , @dmcgowan, @estesp ), tracks down to either a OS or golang specific implementation of the dns query logic in multi stack environment and/or a likely unconventional user's dns setup.
Looking at the tcpdump records, the OS is querying for A first (or in parallel with AAAA).
In the search for a workaround, it may be worth it to make the A & AAAA queries sequential and/or force the AAAA query first, playing with the single-request, inet6, single-request-reopen resolv.conf options. Just guessing.
While I think it is related, I am still not clear how the change in  fdd2abe7b34 may have unveiled this.
Looking in http://golang.org/src/net/dial.go, the commit above causes Dial() to call singleDial() on each of the addresses returned by resolveAddr(), and it will return as soon as one of the dial succeeds. Before that change, Dial() would just execute singleDial() on the first address of the returned address list. Assuming the list of addresses did not change between 1.4 and 1.5, things should work.
Probably as @estesp suggested the concurrent move across golang version played a role, that code must have been different.

@aboch ACK

@aboch swapped back the "other" networking label

@estesp, comparing net/dial.go (v1.3) w/ net/dial.go (v1.4), I can only see a small change in MultiDial() in the code waiting for the singleDial() routines (removed a select on a single channel).
Regarding the resolveAddr() and the resolveInternetAddr() in  net/ipsock.go (v1.3) vs net/ipsock.go (v1.4) I don't see any changes.
I think we can exclude a golang changes as a clue.

This is the set of changes that I found most interesting--the actual DNS "client" implementation that is called from the code you linked to (dnsclient_unix.go): https://gist.github.com/estesp/a6913f0d7923689180e3
Two things are interesting that I haven't had time to dig through thoroughly--but the rooted concept (which may have interplay with the "match all" setup noted earlier in this issue), and the go routine "racer" method of finding both ipv4 and ipv6 results, which may mean ordering changes are having an impact on results?  Again, I need (wish I had??) more time to really decide if there is something here or just a red herring, but I'm not totally convinced the Go changes aren't partially involved.

I'm actually confused with how the DNS server setup gets the client into the state reported.. on either go1.3.3 or go1.4.2 compiled binary doing IP lookups, the following flow happens for index.docker.io:
go1.4.2
10:23:03.196659 IP <IP_ADDRESS>.42393 > <IP_ADDRESS>.domain: 35580+ A? index.docker.io. (33)
10:23:03.196707 IP <IP_ADDRESS>.42393 > <IP_ADDRESS>.domain: 35580+ A? index.docker.io. (33)
10:23:03.196767 IP <IP_ADDRESS>.42393 > <IP_ADDRESS>.domain: 16389+ AAAA? index.docker.io. (33)
10:23:03.196775 IP <IP_ADDRESS>.42393 > <IP_ADDRESS>.domain: 16389+ AAAA? index.docker.io. (33)
10:23:03.197064 IP <IP_ADDRESS>.1889 > google-public-dns-a.google.com.domain: 45650+ [1au] A? index.docker.io. (44)
10:23:03.197252 IP <IP_ADDRESS>.42898 > google-public-dns-a.google.com.domain: 8172+ [1au] AAAA? index.docker.io. (44)
10:23:03.197564 IP <IP_ADDRESS>.52072 > google-public-dns-a.google.com.domain: 3967+ [1au] NS? . (28)
10:23:03.221600 IP google-public-dns-a.google.com.domain > <IP_ADDRESS>.1889: 45650 1/0/1 A <IP_ADDRESS> (60)
10:23:03.222073 IP <IP_ADDRESS>.domain > <IP_ADDRESS>.42393: 35580 1/13/0 A <IP_ADDRESS> (260)
10:23:03.226545 IP google-public-dns-a.google.com.domain > <IP_ADDRESS>.42898: 8172 0/1/1 (114)

go 1.3.3
10:25:33.922616 IP <IP_ADDRESS>.57536 > <IP_ADDRESS>.domain: 51477+ A? index.docker.io. (33)
10:25:33.922669 IP <IP_ADDRESS>.57536 > <IP_ADDRESS>.domain: 51477+ A? index.docker.io. (33)
10:25:33.922704 IP <IP_ADDRESS>.57536 > <IP_ADDRESS>.domain: 27449+ AAAA? index.docker.io. (33)
10:25:33.922715 IP <IP_ADDRESS>.57536 > <IP_ADDRESS>.domain: 27449+ AAAA? index.docker.io. (33)
10:25:33.923099 IP <IP_ADDRESS>.62093 > google-public-dns-a.google.com.domain: 25323+ [1au] A? index.docker.io. (44)
10:25:33.923343 IP <IP_ADDRESS>.29026 > google-public-dns-a.google.com.domain: 30220+ [1au] AAAA? index.docker.io. (44)
10:25:33.923918 IP <IP_ADDRESS>.16392 > google-public-dns-a.google.com.domain: 17430+ [1au] NS? . (28)
10:25:33.948675 IP google-public-dns-a.google.com.domain > <IP_ADDRESS>.62093: 25323 1/0/1 A <IP_ADDRESS> (60)
10:25:33.949118 IP <IP_ADDRESS>.domain > <IP_ADDRESS>.57536: 51477 1/13/0 A <IP_ADDRESS> (260)
10:25:33.954178 IP google-public-dns-a.google.com.domain > <IP_ADDRESS>.29026: 30220 0/1/1 (114)

I would have to mispell index.docker.io to get the client to start adding search terms (or mess with options ndots to make "larger" strings of dot-separated names get auto-appended with the search term from resolv.conf); like this:
looking for index.docker.iioo:
10:33:12.782678 IP <IP_ADDRESS>.45887 > <IP_ADDRESS>.domain: 36178+ A? index.docker.iioo. (35)
10:33:12.782716 IP <IP_ADDRESS>.45887 > <IP_ADDRESS>.domain: 36178+ A? index.docker.iioo. (35)
10:33:12.782826 IP <IP_ADDRESS>.45887 > <IP_ADDRESS>.domain: 6067+ AAAA? index.docker.iioo. (35)
10:33:12.782839 IP <IP_ADDRESS>.45887 > <IP_ADDRESS>.domain: 6067+ AAAA? index.docker.iioo. (35)
10:33:12.783461 IP <IP_ADDRESS>.63868 > google-public-dns-a.google.com.domain: 56515+ [1au] A? index.docker.iioo. (46)
10:33:12.783662 IP <IP_ADDRESS>.46812 > google-public-dns-a.google.com.domain: 58771+ [1au] AAAA? index.docker.iioo. (46)
10:33:12.783831 IP <IP_ADDRESS>.23765 > google-public-dns-a.google.com.domain: 43741+ [1au] NS? . (28)
10:33:12.813554 IP google-public-dns-a.google.com.domain > <IP_ADDRESS>.23765: 43741$ 14/0/1 NS b.root-servers.net., NS l.root-servers.net., NS m.root-servers.net., NS k.root-servers.net., NS c.root-servers.net., NS e.root-servers.net., NS j.root-servers.net., NS f.root-servers.net., NS i.root-servers.net., NS g.root-servers.net., NS h.root-servers.net., NS d.root-servers.net., NS a.root-servers.net., RRSIG (397)
10:33:12.844116 IP google-public-dns-a.google.com.domain > <IP_ADDRESS>.63868: 56515 NXDomain$ 0/6/1 (648)
10:33:12.844488 IP <IP_ADDRESS>.domain > <IP_ADDRESS>.45887: 36178 NXDomain 0/1/0 (110)
10:33:12.856942 IP google-public-dns-a.google.com.domain > <IP_ADDRESS>.46812: 58771 NXDomain$ 0/6/1 (648)
10:33:12.857267 IP <IP_ADDRESS>.domain > <IP_ADDRESS>.45887: 6067 NXDomain 0/1/0 (110)
10:33:12.857429 IP <IP_ADDRESS>.52654 > <IP_ADDRESS>.domain: 17732+ A? index.docker.iioo.testdocker.org. (50)
10:33:12.857463 IP <IP_ADDRESS>.52654 > <IP_ADDRESS>.domain: 17732+ A? index.docker.iioo.testdocker.org. (50)
10:33:12.857497 IP <IP_ADDRESS>.52654 > <IP_ADDRESS>.domain: 24036+ AAAA? index.docker.iioo.testdocker.org. (50)
10:33:12.857509 IP <IP_ADDRESS>.52654 > <IP_ADDRESS>.domain: 24036+ AAAA? index.docker.iioo.testdocker.org. (50)
10:33:12.857576 IP <IP_ADDRESS>.domain > <IP_ADDRESS>.52654: 17732* 0/1/0 (96)
10:33:12.857645 IP <IP_ADDRESS>.domain > <IP_ADDRESS>.52654: 17732* 0/1/0 (96)
10:33:12.857718 IP <IP_ADDRESS>.domain > <IP_ADDRESS>.52654: 24036* 1/2/2 AAAA 2002::2002:2002:1 (146)
10:33:12.857812 IP <IP_ADDRESS>.domain > <IP_ADDRESS>.52654: 24036* 1/2/2 AAAA 2002::2002:2002:1 (146)

This is with a bind server running in a container, acting as an authoritative master for "testdocker.org" and a /etc/resolv.conf with search testdocker.org inside.  Bind is also setup to forward to Google public DNS as you can see (in all the traces above).  I have a "splat" match that auto-responds with the AAAA (IPv6) record above "2002::2002:2002:1" for *.testdocker.org.
Maybe the original reporter (@chmanie) can give some more detail on the DNS setup so I can better reproduce the exact scenario?

I'm not exactly a dev-op, but happy to help! Could you help me on getting the information you need?

Sure @chmanie , thanks! What would be most helpful is the exact /etc/resolv.conf of the system where the failure occurs, and, if possible, the exact named.conf and referenced files within that for the BIND server configuration which handles the xxx.de domain originally discussed.  Feel free to mask out anything you don't want me or others to know (e.g. the exact domain or IP addresses in the BIND config), but it would be very helpful to know the exact DNS server config and how it is handling forwarding versus authoritative responses for a specific set of domains to help understand how this is happening and/or get an exact reproducing scenario.

@estesp I believe we are currently experiencing the same issue. Our setup is as follows.
DNS server is Consul 0.5.2 with default settings with a recursor setup for <IP_ADDRESS>
We are running in an AWS VPC
Let me know if I can provide anything to help.

In general a (stub) resolver library, like the one in libc, appends the search domain, then tries to resolv that and fails back to the name without search domain second. BUT since this is a bit expensive, it usually excepts domains with 'more than one dot'. See man resolv.conf under ndots:
             ndots:n
                     sets a threshold for the number of dots which must appear in a  name  given  to
                     res_query(3)  (see  resolver(3)) before an initial absolute query will be made.
                     The default for n is 1, meaning that if there are any dots in a name, the  name
                     will  be  tried  first  as an absolute name before any search list elements are
                     appended to it.  The value for this option is silently capped to 15.

The golang resolver seems to have same defaults supports reading ndots from /etc/resolv.conf as well: https://golang.org/src/net/dnsconfig_unix.go

@estesp I am the hoster from @chmanie's server where the problem occured.
The problem was the "search somedomain" directive in the /etc/resolv.conf file. You have most likely the same problem. If you delete this line then should everything work fine.

Side note: It seems we're using netgo, not the default which would use libc.

Whenever I remove the "search ec2.internal"
For docker pull I get "FATA[0000] Get https://registry-1.docker.io/v1/repositories/library/busybox/tags: dial tcp: lookup registry-1.docker.io on <IP_ADDRESS>:53: cannot unmarshal DNS message"

Can we rename this issue? I just linked the upstream go bug to this.

@discordianfish I will rename.. I thought I had a true netgo binary in my little stable of lookup binaries, but I forgot about the --installsuffix hack so wasn't getting it.
I now have go1.3.3, go1.4.2, go1.4.2-docker (built in a Docker dev container against the custom-built Go), and go1.4.2-netgo.
The go1.4.2-netgo-built binary exhibits the actual problem:
/testdial-1.4.2-netgo index.docker.io
addr: 2002::2002:2002:1
addr: <IP_ADDRESS>

Note: my silly DNS setup is responding with the useless IPv6 address based on a match-all rule
The following trace shows that the netgo lookup code is willing to append the search domain even while the worker (see dnsclient_unix.go in the Go 1.4.2 sources) for the A record is still working on returning the (correct) IPv4 response.
13:42:50.021716 IP <IP_ADDRESS>.47708 > <IP_ADDRESS>.domain: 54982+ A? index.docker.io. (33)
13:42:50.021791 IP <IP_ADDRESS>.47708 > <IP_ADDRESS>.domain: 54982+ A? index.docker.io. (33)
13:42:50.021925 IP <IP_ADDRESS>.36219 > <IP_ADDRESS>.domain: 64311+ AAAA? index.docker.io. (33)
13:42:50.021938 IP <IP_ADDRESS>.36219 > <IP_ADDRESS>.domain: 64311+ AAAA? index.docker.io. (33)
13:42:50.022036 IP <IP_ADDRESS>.domain > <IP_ADDRESS>.36219: 64311 0/1/0 (103)
13:42:50.022103 IP <IP_ADDRESS>.domain > <IP_ADDRESS>.36219: 64311 0/1/0 (103)
13:42:50.022337 IP <IP_ADDRESS>.55684 > google-public-dns-b.google.com.domain: 22399+ [1au] A? index.docker.io. (44)
13:42:50.022583 IP <IP_ADDRESS>.56478 > google-public-dns-b.google.com.domain: 7997+ [1au] NS? . (28)
13:42:50.022834 IP <IP_ADDRESS>.55110 > <IP_ADDRESS>.domain: 49279+ AAAA? index.docker.io.testdocker.org. (48)
13:42:50.022856 IP <IP_ADDRESS>.55110 > <IP_ADDRESS>.domain: 49279+ AAAA? index.docker.io.testdocker.org. (48)
13:42:50.023017 IP <IP_ADDRESS>.domain > <IP_ADDRESS>.55110: 49279* 1/2/2 AAAA 2002::2002:2002:1 (144)
13:42:50.023140 IP <IP_ADDRESS>.domain > <IP_ADDRESS>.55110: 49279* 1/2/2 AAAA 2002::2002:2002:1 (144)
13:42:50.053067 IP google-public-dns-b.google.com.domain > <IP_ADDRESS>.55684: 22399 1/0/1 A <IP_ADDRESS> (60)
13:42:50.053494 IP <IP_ADDRESS>.domain > <IP_ADDRESS>.47708: 54982 1/13/0 A <IP_ADDRESS> (260)

Note that the core problem appears to be that the request for AAAA record gets a different response from the DNS server than the non-netgo runs, and that is what causes the client (which in this case is the netgo-path dnsclient_unix.go code) to append the search domain and then re-ask for AAAA, which matches the catch-all address.  Not sure yet if it has to do with the fact that the A and AAAA requests come from the same connection pre-1.4.2-netgo or not?  I will try to debug that particular problem further and hopefully have something useful to report upstream in Go.

@drieschel by the way, thanks for providing the extra details. At this point, it definitely seems like a bug in the Go 'netgo' (versus cgo -> libc) resolver code related to how A and AAAA record results are handled differently in more recent Go versions.  I don't think there is necessarily any specific problem with your DNS setup and Docker, although we definitely seem to have exposed a weird bug to resolve with the Go community.

@estesp / @drieschel Looks like you isolate the problem very well, can you open an issue upstream? I closed my https://github.com/golang/go/issues/11070 since it's a different issue (the issue @sstarcher has as well), although the issue described here is pretty much confirmed already.

@discordianfish I just opened golang/go#11081

@estesp Great, thanks!

Quick update--this will most likely be fixed in Go 1.5; this patchset fixes the problem and is under review: https://go-review.googlesource.com/#/c/10836/
I don't know how we want to handle the Docker side of this issue as moving to Go 1.5 is gated on its release and then, a follow-on decision and timeframe for Docker to be built by Go 1.5 compilers.

The patch for the netgo DNS lookup bug is now merged in Go-lang and appears though it will make the Go 1.5 release.  When Docker starts building with Go 1.5, this problem can be validated as resolved and this issue closed.

@estesp we're on Go 1.5+ now; is it safe to close this issue?

Yes, we can definitely close now.
Sent from my iPhone

On May 11, 2016, at 6:12 PM, Sebastiaan van Stijn<EMAIL_ADDRESS>wrote:
@estesp we're on Go 1.5+ now; is it safe to close this issue?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub


refresh/update data

For example, here's a refresh problem: it's 9:34 p.m. and the next bus is still at 8:00 p.m.

and yet there was a following bus which is also overdue

The attributes show the last_update (so does the sensor)...is the sensor updated?
Errors in the log?

Resolved in dev release 0.1.6c1


Add column names to column summary

Would it be possible to provide not only the number of columns that are found in the original and not in the new but also the names of these columns?
For example, in this report, it would be good to know that the column that is in original but not in new is named "date_fld".

@MariusMerkleQC thanks for the feedback. I'll take a look into this shortly. Just busy with a few other things at the moment.

@MariusMerkleQC made some tweaks and it looks like this now:
Number of columns in common: 4
Number of columns in original but not in new: 1 ['date_fld']
Number of columns in new but not in original: 0 []

Does that work for you?

Yes, that works!


This library is not activily maintained. fork suggestions?

Which fork is populair in the community with support for Laravel 7/8+ ?

https://github.com/Crinsane/LaravelShoppingcart/wiki/Maintained-Forks

The fork from limortimer does not support Laravel 8.
https://github.com/olimortimer/LaravelShoppingcart/issues/7
I'm currently using the form from digital-bird (which is not in the maintained fork list)
https://github.com/digital-bird/LaravelShoppingcart
Just wonder what is the best choice at the moment ...

If the version you are using does indeed work please add it to the Wiki so others can find it too :+1:
I think that also depends, i for my part prefer forks that also update the package itself in terms of functionality (such as my fork) but for the general the normal forks would fit better as they are just a plug and play replacement (most of the time).

https://github.com/hardevine/LaravelShoppingcart

@davidvandertuijn I've been using the olimortimer fork in a Laravel 8 project without any issues; have you tried to install it? What problems have you come across?


fixfix maxcompute partition filter and session creation

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run external

run external

run buildall

run buildall


docs/guide-ja/test-fixtures.md - added [ci skip]

The lines bellow To be cleaned up below left untouched.

Thanks!

Thanks!


Fix asm-related build failure on recent rust

asm!() has changed syntax, and the xtensa rust target hasn't been updated to support it. Use llvm_asm!() instead, which maintains the old syntax.

Thanks!


Compiler option validation errors should by reported in "transpile*" scenarios.

#5790 is a motivating example, we do not report errors in illegal scenario

update: we correctly fill diagnostics property on the output result if reportDiagnostics on input transpileOptions is set to true


Draft: Update the readme and documentation with details on the Android app

[x] read the CONTRIBUTING guidelines
[x] raised a GitHub issue or discussed it on the projects chat beforehand (https://github.com/juanfont/headscale/issues/58)
[X] updated documentation if needed
[ ] updated CHANGELOG.md

Tailscale finally added custom URL support in the official Android app. This PR updates the documentation to reflect this.
This PR is marked as a draft until version 1.30.0 actually releases, at which point the draft status will be removed and this PR can be merged.

Should I update the changelog for this? Nothing but the documentation actually changed.


civic.json and g0v.json are similar projects

Would civic.json from OpenDC or g0v.json solve our use cases?

Here is a discussion from civic.jsons issues about adopting fields for government: https://github.com/BetaNYC/civic.json/issues/21

I integrated all these fields in the current version of publiccode 💪


sync doesn't work if tables already exist in the public schema

$ python manage.py sync_schemata
=== Switching to domain localhost then calling syncdb:
Creating tables ...
Installing custom SQL ...
Installing indexes ...
No fixtures found.
If I clear the tables out of the public schema the command works, so it's not a biggie. I don't know if this urgently needs to be fixed or just warned about somewhere (at runtime or in the docs).
Thanks!

I totally understand. So far it seems like a really elegant way to handle
things for my little project, so I really appreciate you putting it out
there. So far so good, but I look forward to putting it through some paces,
and I'll push whatever I come up with in your direction.
Thanks again!
On Wed, Dec 7, 2011 at 12:41 PM, Vlada Macek <
<EMAIL_ADDRESS>
wrote:

Thank you for your input. It's awesome django-schemata is interesting
enough to be considered for usage. The app was created as a proof of
concept and I never had a chance to test it thoroughly as our team diverted
the plans.
While I was very excited during coding it, I rather have no use for it
currently.
I'd love to hear whether the app is really working and if you find
something that should be fixed, I'll gladly pull your patches again.

Reply to this email directly or view it on GitHub:
https://github.com/tuttle/django-schemata/issues/2#issuecomment-3050494


Bytes as an input

I have trouble to build a pipeline with Praat where my input to the  script myspsolution.praat is not a path to the file but already loaded audio file. So I would like to pass to the Praat audio as bytes not a path do the audio file, do you know how to do that ?

Hard to comment on your question as I do not much about your approach.


Sorting in Outline

Issue Type: Bug
I have set outline sort by position in settings.But when I open file ,outline is sort by type. If I want use outline sort by position, I must change outline sort by manual .Then,I re-open that file ,outline wil sort by position.I think this is a bug, and I do not want changing sort in manual everytime. I hope that when I open file ,outline is sort by which I set in settings.Thanks!
VS Code version: Code 1.33.1 (51b0b28134d51361cf996d2f0a1c698247aeabd8, 2019-04-11T08:27:14.102Z)
OS version: Windows_NT x64 10.0.17763

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-6260U CPU @ 1.80GHz (4 x 1800)

GPU Status
2d_canvas: enabledchecker_imaging: disabled_offflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwarerasterization: enabledsurface_synchronization: enabled_onvideo_decode: enabledwebgl: enabledwebgl2: enabled

Memory (System)
7.89GB (4.00GB free)

Process Argv
.|

Screen Reader
no

VM
67%

Extensions (6)

Extension
Author (truncated)
Version

vscode-eslint
dba
1.8.2

beautify
Hoo
1.4.11

cpptools
ms-
0.22.1

korofileheader
OBK
3.6.0

vscode-icons
vsc
8.4.0

vscode-todo-highlight
way
1.0.4

(1 theme extensions excluded)

I am using python, outline worked sometime, and sometimes the outline just broken and said "No symbols found in the document", weird.

I have set outline sort by position in settings.

A setting as in settings.json? Today we only persist the UX state (using a memento) so are you actually changing some setting?

About outline ,I just change Symbol Sort Order to positon in settings.

@clive-ccc And then? Does it work? What is the expected and actual behaviour? For me sorting by position/name/type works and is persisted when changing files

,I just change Symbol Sort Order to positon in settings. But when I open file at first time,it is sorted by type not position.If I want use sort by position mode ,I must change out line in explorer.It means  it was no use by set in settings.

It means it was no use by set in settings.

What setting are you using? Can you provide the name here?

there is a breadcrumbs: symbol sort order setting
it does not work for outline

no actionable information provided


Fermenting Factory: Solar panels

Add solar panels and make them as income.

Added 24 solarcells

Income set to 10 an hour


Show tests failed/passed in Status Bar

When I enable autorun, I always have to switch back to the sidebar to check if there is any failed test. Would be nice to see in the status bar how my tests are going, similar to the native "Problems" feature.

have you tried https://marketplace.visualstudio.com/items?itemName=connorshea.vscode-test-explorer-status-bar?


[SPARK-22084][SQL] Fix performance regression in aggregation strategy

What changes were proposed in this pull request?
This PR fix a performance regression in aggregation strategy which introduced in Spark 2.0.
For the following SQL:
SELECT a, SUM(b) AS b0, SUM(b) AS b1
FROM VALUES(1, 1), (2, 2) AS (a, b)
GROUP BY a

Before the fix:
== Physical Plan ==
*HashAggregate(keys=[a#11], functions=[sum(cast(b#12 as bigint)), sum(cast(b#12 as bigint))])
+- Exchange hashpartitioning(a#11, 200)
   +- *HashAggregate(keys=[a#11], functions=[partial_sum(cast(b#12 as bigint)), partial_sum(cast(b#12 as bigint))])
      +- LocalTableScan [a#11, b#12]

After
== Physical Plan ==
*HashAggregate(keys=[a#11], functions=[sum(cast(b#12 as bigint))])
+- Exchange hashpartitioning(a#11, 2)
   +- *HashAggregate(keys=[a#11], functions=[partial_sum(cast(b#12 as bigint))])
      +- LocalTableScan [a#11, b#12]

How was this patch tested?
Existing tests.
Add a new test case.

Can one of the admins verify this patch?

can you explain more about how this bug happens?

https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/planning/patterns.scala#L211
      val aggregateExpressions = resultExpressions.flatMap { expr =>
        expr.collect {
          case agg: AggregateExpression => agg
        }
      }.distinct

Before the fix, the exprId of each aggregate expression is different which can cause distinct fail.

my case:
select dt,
geohash_of_latlng,
sum(mt_cnt),
sum(ele_cnt),
round(sum(mt_cnt) * 1.0 * 100 / sum(mt_cnt_all), 2),
round(sum(ele_cnt) * 1.0 * 100 / sum(ele_cnt_all), 2)
from temp.test_geohash_match_parquet
group by dt, geohash_of_latlng
order by dt, geohash_of_latlng limit 10;

before your fix
TakeOrderedAndProject(limit=10, orderBy=[dt#502 ASC NULLS FIRST,geohash_of_latlng#507 ASC NULLS FIRST], output=[dt#502,geohash_of_latlng#507,sum(mt_cnt)#521L,sum(ele_cnt)#522L,round((CAST((CAST((CAST(CAST(sum(CAST(mt_cnt AS BIGINT)) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(1.0 AS DECIMAL(21,1))) AS DECIMAL(23,1)) * CAST(CAST(100 AS DECIMAL(23,1)) AS DECIMAL(23,1))) AS DECIMAL(38,2)) / CAST(CAST(sum(CAST(mt_cnt_all AS BIGINT)) AS DECIMAL(20,0)) AS DECIMAL(38,2))), 2)#523,round((CAST((CAST((CAST(CAST(sum(CAST(ele_cnt AS BIGINT)) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(1.0 AS DECIMAL(21,1))) AS DECIMAL(23,1)) * CAST(CAST(100 AS DECIMAL(23,1)) AS DECIMAL(23,1))) AS DECIMAL(38,2)) / CAST(CAST(sum(CAST(ele_cnt_all AS BIGINT)) AS DECIMAL(20,0)) AS DECIMAL(38,2))), 2)#524])
+- *HashAggregate(keys=[dt#502, geohash_of_latlng#507], functions=[sum(cast(mt_cnt#511 as bigint)), sum(cast(ele_cnt#512 as bigint)), sum(cast(mt_cnt#511 as bigint)), sum(cast(mt_cnt_all#513 as bigint)), sum(cast(ele_cnt#512 as bigint)), sum(cast(ele_cnt_all#514 as bigint))])
   +- Exchange(coordinator id: 148401229) hashpartitioning(dt#502, geohash_of_latlng#507, 1000), coordinator[target post-shuffle partition size: 2000000]
      +- *HashAggregate(keys=[dt#502, geohash_of_latlng#507], functions=[partial_sum(cast(mt_cnt#511 as bigint)), partial_sum(cast(ele_cnt#512 as bigint)), partial_sum(cast(mt_cnt#511 as bigint)), partial_sum(cast(mt_cnt_all#513 as bigint)), partial_sum(cast(ele_cnt#512 as bigint)), partial_sum(cast(ele_cnt_all#514 as bigint))])
         +- HiveTableScan [geohash_of_latlng#507, mt_cnt#511, ele_cnt#512, mt_cnt_all#513, ele_cnt_all#514, dt#502], MetastoreRelation temp, test_geohash_match_parquet

after your fix
TakeOrderedAndProject(limit=10, orderBy=[dt#467 ASC NULLS FIRST,geohash_of_latlng#472 ASC NULLS FIRST], output=[dt#467,geohash_of_latlng#472,sum(mt_cnt)#486L,sum(ele_cnt)#487L,round((CAST((CAST((CAST(CAST(sum(CAST(mt_cnt AS BIGINT)) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(1.0 AS DECIMAL(21,1))) AS DECIMAL(23,1)) * CAST(CAST(100 AS DECIMAL(23,1)) AS DECIMAL(23,1))) AS DECIMAL(38,2)) / CAST(CAST(sum(CAST(mt_cnt_all AS BIGINT)) AS DECIMAL(20,0)) AS DECIMAL(38,2))), 2)#488,round((CAST((CAST((CAST(CAST(sum(CAST(ele_cnt AS BIGINT)) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(1.0 AS DECIMAL(21,1))) AS DECIMAL(23,1)) * CAST(CAST(100 AS DECIMAL(23,1)) AS DECIMAL(23,1))) AS DECIMAL(38,2)) / CAST(CAST(sum(CAST(ele_cnt_all AS BIGINT)) AS DECIMAL(20,0)) AS DECIMAL(38,2))), 2)#489])
+- *HashAggregate(keys=[dt#467, geohash_of_latlng#472], functions=[sum(cast(mt_cnt#476 as bigint)), sum(cast(ele_cnt#477 as bigint)), sum(cast(mt_cnt#476 as bigint)), sum(cast(mt_cnt_all#478 as bigint)), sum(cast(ele_cnt#477 as bigint)), sum(cast(ele_cnt_all#479 as bigint))])
   +- Exchange(coordinator id: 227998366) hashpartitioning(dt#467, geohash_of_latlng#472, 1000), coordinator[target post-shuffle partition size: 2000000]
      +- *HashAggregate(keys=[dt#467, geohash_of_latlng#472], functions=[partial_sum(cast(mt_cnt#476 as bigint)), partial_sum(cast(ele_cnt#477 as bigint)), partial_sum(cast(mt_cnt#476 as bigint)), partial_sum(cast(mt_cnt_all#478 as bigint)), partial_sum(cast(ele_cnt#477 as bigint)), partial_sum(cast(ele_cnt_all#479 as bigint))])
         +- HiveTableScan [geohash_of_latlng#472, mt_cnt#476, ele_cnt#477, mt_cnt_all#478, ele_cnt_all#479, dt#467], MetastoreRelation temp, test_geohash_match_parquet

I don't know wether my case can be optimized or not.

should sum(mt_cnt) and  sum(ele_cnt) be compute again?

@cenyuhai This  is an optimize for physical plan, and your case can be optimized.
select dt,
geohash_of_latlng,
sum(mt_cnt),
sum(ele_cnt),
round(sum(mt_cnt) * 1.0 * 100 / sum(mt_cnt_all), 2),
round(sum(ele_cnt) * 1.0 * 100 / sum(ele_cnt_all), 2)
from values(1, 2, 3, 4, 5, 6) as (dt, geohash_of_latlng, mt_cnt, ele_cnt, mt_cnt_all, ele_cnt_all)
group by dt, geohash_of_latlng
order by dt, geohash_of_latlng limit 10

Before:
== Physical Plan ==
TakeOrderedAndProject(limit=10, orderBy=[dt#26 ASC NULLS FIRST,geohash_of_latlng#27 ASC NULLS FIRST], output=[dt#26,geohash_of_latlng#27,sum(mt_cnt)#38L,sum(ele_cnt)#39L,round((CAST((CAST((CAST(CAST(sum(CAST(mt_cnt AS BIGINT)) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(1.0 AS DECIMAL(21,1))) AS DECIMAL(23,1)) * CAST(CAST(100 AS DECIMAL(23,1)) AS DECIMAL(23,1))) AS DECIMAL(38,2)) / CAST(CAST(sum(CAST(mt_cnt_all AS BIGINT)) AS DECIMAL(20,0)) AS DECIMAL(38,2))), 2)#40,round((CAST((CAST((CAST(CAST(sum(CAST(ele_cnt AS BIGINT)) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(1.0 AS DECIMAL(21,1))) AS DECIMAL(23,1)) * CAST(CAST(100 AS DECIMAL(23,1)) AS DECIMAL(23,1))) AS DECIMAL(38,2)) / CAST(CAST(sum(CAST(ele_cnt_all AS BIGINT)) AS DECIMAL(20,0)) AS DECIMAL(38,2))), 2)#41])
+- *HashAggregate(keys=[dt#26, geohash_of_latlng#27], functions=[sum(cast(mt_cnt#28 as bigint)), sum(cast(ele_cnt#29 as bigint)), sum(cast(mt_cnt#28 as bigint)), sum(cast(mt_cnt_all#30 as bigint)), sum(cast(ele_cnt#29 as bigint)), sum(cast(ele_cnt_all#31 as bigint))])
   +- Exchange hashpartitioning(dt#26, geohash_of_latlng#27, 200)
      +- *HashAggregate(keys=[dt#26, geohash_of_latlng#27], functions=[partial_sum(cast(mt_cnt#28 as bigint)), partial_sum(cast(ele_cnt#29 as bigint)), partial_sum(cast(mt_cnt#28 as bigint)), partial_sum(cast(mt_cnt_all#30 as bigint)), partial_sum(cast(ele_cnt#29 as bigint)), partial_sum(cast(ele_cnt_all#31 as bigint))])
         +- LocalTableScan [dt#26, geohash_of_latlng#27, mt_cnt#28, ele_cnt#29, mt_cnt_all#30, ele_cnt_all#31]

After:
== Physical Plan ==
TakeOrderedAndProject(limit=10, orderBy=[dt#28 ASC NULLS FIRST,geohash_of_latlng#29 ASC NULLS FIRST], output=[dt#28,geohash_of_latlng#29,sum(mt_cnt)#34L,sum(ele_cnt)#35L,round((CAST((CAST((CAST(CAST(sum(CAST(mt_cnt AS BIGINT)) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(1.0 AS DECIMAL(21,1))) AS DECIMAL(23,1)) * CAST(CAST(100 AS DECIMAL(23,1)) AS DECIMAL(23,1))) AS DECIMAL(38,2)) / CAST(CAST(sum(CAST(mt_cnt_all AS BIGINT)) AS DECIMAL(20,0)) AS DECIMAL(38,2))), 2)#36,round((CAST((CAST((CAST(CAST(sum(CAST(ele_cnt AS BIGINT)) AS DECIMAL(20,0)) AS DECIMAL(21,1)) * CAST(1.0 AS DECIMAL(21,1))) AS DECIMAL(23,1)) * CAST(CAST(100 AS DECIMAL(23,1)) AS DECIMAL(23,1))) AS DECIMAL(38,2)) / CAST(CAST(sum(CAST(ele_cnt_all AS BIGINT)) AS DECIMAL(20,0)) AS DECIMAL(38,2))), 2)#37])
+- *HashAggregate(keys=[dt#28, geohash_of_latlng#29], functions=[sum(cast(mt_cnt#30 as bigint)), sum(cast(ele_cnt#31 as bigint)), sum(cast(mt_cnt_all#32 as bigint)), sum(cast(ele_cnt_all#33 as bigint))])
   +- Exchange hashpartitioning(dt#28, geohash_of_latlng#29, 200)
      +- *HashAggregate(keys=[dt#28, geohash_of_latlng#29], functions=[partial_sum(cast(mt_cnt#30 as bigint)), partial_sum(cast(ele_cnt#31 as bigint)), partial_sum(cast(mt_cnt_all#32 as bigint)), partial_sum(cast(ele_cnt_all#33 as bigint))])
         +- LocalTableScan [dt#28, geohash_of_latlng#29, mt_cnt#30, ele_cnt#31, mt_cnt_all#32, ele_cnt_all#33]

Regarding performance regression, I think you should post benchmark numbers.

@viirya The problem is already obvious, and the same aggregate expression will be computed multi times. I will provide a benchmark result later.

I asked it because by considering subexpressionElimination, you may not actually run it multiple times. So the benchmark numbers can tell if your fix really improves the performance.

@viirya
Benchmark code:
val N = 500L << 22
val benchmark = new Benchmark("agg", N)
val expressions = (0 until 50).map(i => s"sum(id) as r$i")

benchmark.addCase("agg with optimize", numIters = 2) { iter =>
  sparkSession.range(N).selectExpr(expressions: _*).collect()
}

benchmark.run()

Result:
Java HotSpot(TM) 64-Bit Server VM 1.8.0_91-b14 on Mac OS X 10.12.6
Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz

agg:                                     Best/Avg Time(ms)    Rate(M/s)   Per Row(ns)   Relative
------------------------------------------------------------------------------------------------
agg with optimize                             1306 / 1354       1605.7           0.6       1.0X
agg without optimize                      121799 / 148115         17.2          58.1       1.0X

@stanzhai Thanks. I see. Because the aggregation functions are bound to individual buffer slots, they are recognized as different expressions and won't be eliminated.

Can one of the admins verify this patch?


fix: Fix linting errors

Codecov Report

Merging #333 (105feb3) into cors (a252283) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             cors     #333   +/-   ##
=======================================
  Coverage   29.12%   29.12%
=======================================
  Files          61       61
  Lines        6550     6550
=======================================
  Hits         1908     1908
  Misses       4423     4423
  Partials      219      219

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 a252283...105feb3. Read the comment docs.


Markdown: FlowDoc table values generate as code blocks

Describe the bug
The Generated Markdown for FlowDoc can be converted by Markdown renderer instead of left as is.
Example is your from your Examples documents:
https://github.com/modery/PowerDocu/blob/8400e0f1a96c28bd0a0166f7bd867aa418297ddf/examples/FlowDoc - Email me with a list of upcoming Calendar events/actions/Create_HTML_table-Email-me-with-a-list-of-upcoming-Calendar-events(e6b4e32f-c97d-4280-896b-57976ea698e3).md?plain=1#L23-L29
Currently the table is generated as:
| Property | Value                    |
| -------- | ------------------------ |
| test     | test                     |
| from     | @variables('BodyToSend') |
| format   | HTML                     |

Rendered result:

Property
Value

test
test

from
@variables('BodyToSend')

format
HTML

In this example GitHub chooses to format @variables as link and bold. But this is incorrect. It is not a link to a GitHub handle. Instead it is just code.
Similar issue Expression row for column Value:
https://github.com/modery/PowerDocu/blob/8400e0f1a96c28bd0a0166f7bd867aa418297ddf/examples/FlowDoc - Email me with a list of upcoming Calendar events/actions/Check_if_its_Hotel-Email-me-with-a-list-of-upcoming-Calendar-events(e6b4e32f-c97d-4280-896b-57976ea698e3).md?plain=1#L16-L22
Expected behavior
The Value column may contains html tags or other code elements. Therefore it should be rendered as code block. This avoids issues with downstream Markdown renderer and also reflects the code elements of the values.
Proposed generated table:
| Property | Value                      |
| -------- | -------------------------- |
| test     | `test`                     |
| from     | `@variables('BodyToSend')` |
| format   | `HTML`                     |

Rendered result:

Property
Value

test
test

from
@variables('BodyToSend')

format
HTML

I've got this partially fixed. Not working in a few scenarios (e.g. compose actions that use variables), need to see what other ways there are to fix this


[x] Total colectomy with ileorectal anastomosis (IRA).
[x] Total proctocolectomy with permanent ileostomy
[x] pancreas-sparing duodenectomy
[x] Pancreaticoduodenectomy (Whipple procedure)
[x] Osteoma removal
[x] tumor removal
[x] Sigmoidoscopy or colonoscopy
[x] Esophagogastroduodenoscopy (EGD)
[x] Esophagogastroduodenoscopy (EGD) including complete visualization of the ampulla of Vater (using a duodenoscope if necessary)
[x] upper endoscopy
[x] gastrectomy
[x] annual physical examination
[ ] neurologic examination
[ ] palpatation of thyroid
[x] thyroid ultrasound
[x] gastric polyp screening
[x] screening for hepatoblastoma
[x] screening for small-bowel polyps
[x] abdominal ultrasound examinations and measurement of serum alpha-fetoprotein (AFP)
[x] subtotal colectomy with ileorectal anastomosis
[x] surveillance of the remaining rectum
[ ] total colectomy with end ileostomy
[x] ileoscopy

Closing this ticket. other terms not added have been moved to other tickets.


AF-593+: Move dashbuilder to uberfire.

Related:
https://github.com/kiegroup/kie-soup/pull/13
https://github.com/AppFormer/uberfire/pull/898
https://github.com/dashbuilder/dashbuilder/pull/396
https://github.com/kiegroup/droolsjbpm-build-bootstrap/pull/599
https://github.com/kiegroup/jbpm/pull/1060
https://github.com/kiegroup/droolsjbpm-integration/pull/1260
https://github.com/kiegroup/kie-wb-common/pull/1279
https://github.com/kiegroup/drools-wb/pull/701
https://github.com/kiegroup/jbpm-wb/pull/938
https://github.com/kiegroup/optaplanner-wb/pull/237
https://github.com/kiegroup/kie-wb-distributions/pull/650

This PR moves the remaining dashbuilder modules to uberfire. It does not rename them any source code or even the artifact names because soon we will be moving all of uberfire to a new repository and renaming it to appformer.
The dashbuilder artifacts do have a new version (matching uberfire 2.0.0-SNASPHOT). Additionally the dashbuilder-bom and third-party dependency management have been merged into the uberfire-bom and uberfire-parent respectively.

Build finished. 4324 tests run, 6 skipped, 0 failed.

@ederign @dgutierr @psiroky @mbiarnes I would appreciate if any of you are able to review the uberfire-parent POM file changes. I had to merge most of the configuration from dashbuilder-parent into uberfire-parent. Specifically dependencyManagement, pluginManagement, and version properties.

@mbarkley this is still on your radar? Should I review this? If so, how we will sync with new modifications of dashbuilder?

Any chance to preserve the history? I think it may be beneficial.

This set of PRs is blocked by the ElasticSearch version upgrade. Since this has taken much longer to be ready than expected, I am going to close all these PRs and will start this over again with all the newest changes.


See Explorer output code within a tab

Also @ahuang11 you could please add to the 0.9.0 milestone the PRs you need in that release?

Initially I wanted to merge _build_code_snippet and plot_code, but I believe you suggested:
there's an issue somewhere to turn plot_code into a Parameter (that'd maybe just code/plot_repr/code_repr/... to avoid breaking current users of plot_code)

Sorry I wasn't clear enough, I meant that we couldn't just remove plot_code or turn it into a Parameter. I believe though it's fine changing its code, I doubt there's someone doing any kind of parsing on its output.

Okay I refactored this so that _build_code_snippet is now merged into plot_code and also cleaned up unnecessary redundancy with _code.

Tests failing seem unrelated:

File /usr/share/miniconda3/envs/test-environment/lib/python3.8/site-packages/geoviews/data/geom_dict.py:327, in geom_from_dict(geom, xdim, ydim, single_type, multi_type)
    325 split_holes = geom.pop('holes', None)
    326 if split_holes is not None and len(split_holes) != len(split_geoms):
--> 327     raise DataError('Polygons with holes containing multi-geometries '
    328                     'must declare a list of holes for each geometry.')
    330 if single_type is Point:
    331     if len(splits) > 1 or any(len(g) > 1 for g in split_geoms):

DataError: Polygons with holes containing multi-geometries must declare a list of holes for each geometry.

I merged main into this branch
I decided against having import.<backend> displayed in the code

I believe it's not always going to be very useful
We've had issues (resolved now I think) with handling multiple imports
So, I wasn't sure about this feature, and as it's adding is easier than removing, I prefer postponing adding this feature in a next release, if we decide it's the right thing to do


Include attachments

Attachments aren't in the Knowledge Graph.  There are lots of them.  Even just knowing the types of attachments (pdf, csv, xlsx, docx) would be useful.
Attachments are among "assets", which are stored in S3 by their UUID, which is assigned when an asset is uploaded to the Asset Manager.  Unfortunately, the UUID isn't in the Content Store, only the URL is, so we would need to use the database of the Asset Manager to dereference the URLs to their UUIDs.
Perhaps the Asset Manager database is one of the ones in govuk-integration-database-backups.  I checked mongodb, and it doesn't seem to be there.

There could be an AI use of this data, via https://unstructured.io/ to query tables of data that are inside attachments.  See Trello.

https://github.com/alphagov/govuk-s3-mirror would need new permissions to read from the S3 bucket.
      "arn:aws:s3:::govuk-assets-integration",
      "arn:aws:s3:::govuk-assets-integration/*",

https://github.com/alphagov/govuk-aws/blob/9194b1894d58655fa5d00e9fcf2cbafae5087e19/terraform/projects/infra-security/main.tf#L415-L418


Sub classing other html elements (HTMLButtonElement)

First off, thanks for your good work on this project - I was about to revert to es5 since Babel's default implementation  doesn't work, but then I found this project and it works great!
I am curious if you've been able to pull off sub classing  HTMLButtonElement (or any other element class besides HTMLElement). The code in this project ignores those classes - in my own testing it seems like chrome and Firefox both throw TypeError: Illegal constructor even if you use native classes instead of the babel compiled version.
Have you come across this? Any suggested workarounds? If so I'd be happy to help getting that into this babel plugin.

Subclassing other builtins is pretty much on hold for now.
Even though is="" is technically part of the v1 spec, Apple refuses to implement it. https://github.com/w3c/webcomponents/issues/509
Totally willing to reconsider support here if all the politics are sorted out.
Thanks!


groupButtons collection is not being rebuilt on rebuild

rebuild method has following code to clear this.dom.buttons collection:
this.dom.buttons.splice(0, this.dom.buttons.length);

But there is no code to clear this.dom.groupButtons collection, following would do:
this.dom.groupButtons.splice(0, this.dom.groupButtons.length);

As a result, calling rebuild() does not rebuilds checked and indeterminate properties' values on input elements.

Nice one - thanks!


[Event Request] page 160 "Sales Statistics" - OnCalculateTotalsOnAfterGetSalesLines

Can you add event OnCalculateTotalsOnAfterGetSalesLines?
local procedure CalculateTotals()
    var
        SalesLine: Record "Sales Line";
        TempSalesLine: Record "Sales Line" temporary;
    begin
        Clear(SalesLine);
        Clear(TotalSalesLine);
        Clear(TotalSalesLineLCY);
        Clear(SalesPost);

        SalesPost.GetSalesLines(Rec, TempSalesLine, 0);
        // >>>>>>>>>>>>>>>
        OnCalculateTotalsOnAfterGetSalesLines(Rec,TempSalesLine);
        // <<<<<<<<<<<<<<<
        Clear(SalesPost);
        SalesPost.SumSalesLinesTemp(

    [IntegrationEvent(false, false)]
    local procedure OnCalculateTotalsOnAfterGetSalesLines(SalesHeader:Record "Sales Header"; var TempSalesLine:Record "Sales Line" temporary)
    begin
    end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


DataChannel: SendMessage(IntPtr,ulong) / MessageReceivedUnsafe callback

avoids per-message byte[] array allocation, can be used in unsafe contexts.

Sorry, this didn't compile at first. It is fixed now.

/azp run


Don't try to handle non-wasmtime segfaults

This commit fixes an issue in Wasmtime where Wasmtime would accidentally
"handle" non-wasm segfaults while executing host imports of wasm
modules. If a host import segfaulted then Wasmtime would recognize that
wasm code is on the stack, so it'd longjmp out of the wasm code. This
papers over real bugs though in host code and erroneously classified
segfaults as wasm traps.
The fix here was to add a check to our wasm signal handler for if the
faulting address falls in JIT code itself. Actually threading through
all the right information for that check to happen is a bit tricky,
though, so this involved some refactoring:

A closure parameter to catch_traps was added. This closure is
responsible for classifying addresses as whether or not they fall in
JIT code. Anything returning false means that the trap won't get
handled and we'll forward to the next signal handler.

To avoid passing tons of context all over the place, the start
function is now no longer automatically invoked by InstanceHandle.
This avoids the need for passing all sorts of trap-handling contextual
information like the maximum stack size and "is this a jit address"
closure. Instead creators of InstanceHandle (like wasmtime) are now
responsible for invoking the start function.

To avoid excessive use of transmute with lifetimes since the
traphandler state now has a lifetime the per-instance custom signal
handler is now replaced with a per-store custom signal handler. I'm
not entirely certain the purpose of the custom signal handler, though,
so I'd look for feedback on this part.

A new test has been added which ensures that if a host function
segfaults we don't accidentally try to handle it, and instead we
correctly report the segfault.

cc @lostman, I wanted to ping you here about per-instance custom signal handlers (added in https://github.com/bytecodealliance/wasmtime/pull/620). There's a bit of a refactoring here to avoid some unsafe transmute calls, but it's not required as part of this PR itself. As a question, though, I was wondering if you could elaborate a bit on y'all's usage of signal handlers? Do you catch signals originating in wasm code itself? Or only in your host code? Additionally, does a per-Store signal handler work for you as opposed to a per-instance signal handler?

@alexcrichton we are using the custom signal handler for memory access tracking using sigsegv+mprotect.
Setting the signal handler per-store will also work but at first glance seems less clean.
Each handler has an instance specific behavior. So we could set the handler once and add some sort of registry to map segfaults to instances.
Or we could set the handler before running each instance, as I see you've done in the tests/all/custom_signal_handler.hs. Given that there might be many instances created using a single store, is that the right way to do it though?

@alexcrichton There are some other things I'd like to add, which might give us headache:

This commit affects not just SIGSEGV/SIGBUS but other signals as well. Notably division by zero in host code will now trigger panic instead of producing a Trap (maybe this is fully intended - I'm just pointing it out in case it's not). My feeling is that life would be simpler to end users if they got consistent behavior, that is always Trap on attempt to div by zero no matter where the trap originated. In our case, we can probably catch it in our custom signal handler and make the whole system respond properly though...

My quick tests indicate, that after these changes signals raised manually get completely ignored (this concerns SIGSEGV, SIGILL, SIGBUS, SIGFPE), e.g. executing libc::raise(libc::SIGFPE) in a host call has no effect.

We are actually using raise(SIGILL) to terminate wasmtime's execution (similar as the killswitch in lucet). Is there any other way in wasmtime to terminate? (the newly added interrupt functionality won't work, because we want to terminate on the spot, with guarantee that no other instruction will get executed)

@lostman thanks for taking a look! One thing I think that's a bit surprising about the instance behavior is that you're not actually guaranteed to run the per-instance signal handler if a signal happens while that instance's code is running. The way it's all set up today only if you enter with a particular instance do you get the signal handler registered, but with how wasm modules are linked you're not guaranteed that a signal handler runs. That was one simplification I was hoping to apply here where a per-store signal handler is actually what the implementation is providing because it's the only granularity at which we can guarantee it's run.
I think it's probably best from an API-point-of-view that if your usage of wasmtime can guarantee that within a particular scope there's only one instance involved then it'd be encoded into your signal handler. (largely because it's not something we can guarantee in wasmtime itself)
@eust-dfinity oh so recovering from signals in host code is something we never intended to do. It's not memory safe to arbitrarily longjmp out of the middle of a Rust function, so this is a case where wasmtime isn't quite memory safe today and we're trying to fix it. In general if you want to map things like divide-by-zero in the host to a trap in wasm it's something that will need to explicitly be done rather than relying on the signal handler.
For termination, you're asking how to terminate host code? Note that if longjmp out of your host code is safe for your application you should be able to register your own signal handler to jump out. Wasmtime should defer to it once it realizes that the fault didn't happen in wasm. Otherwise I would recommend using Result-propagation in Rust code to "quickly" return back to wasm, although it doesn't have the "zero extra instructions executed" property.

Thanks for the explanation! Makes sense.
Putting our problems aside, I still don't understand why libc::raise(SIGSEGV) gets ignored. I tried looking at the execution and it seems to be going through wasmtime's signal handler through "not handled" path, while true segfault or division by zero seem to be not triggering the handler at all.

Ah yeah so division by zero doesn't raise a signal in Rust because it's defined across all platforms to panic, (otherwise I think it's UB). For libc::raise(libc::SIGSEGV) I think I see what's happening. When wasmtime decides to ignore a signal it returns from the signal handler thinking it will reexecute the faulting instruction, but in this case there's no faulting instruction so presumably it ends up normally returning from the raise syscall.
I'm not actually sure that there's a way to handle some segfaults but still abort with libc::raise(libc::SIGSEGV). I do think though that you can use other non-SIGSEGV signals to abort the process.

Right, it all makes sense now. Thanks again for the explanation!


Add --force option

Add a --force flag that doesn't halt execution on failed pre/post hooks.
Also note -- doing this will require errExit False within subshell for hook execution. This can be used with or without force flag by checking lastExitCode. This will, as a byproduct, allow us to exit gracefully (without stack trace).

We may want to try something other than force. Force is used by compose,
and if we want to get rid of the '--' delimiter we should avoid conflicts.
Perhaps --continue or --always-continue or --ignore-errors . Where
--no-ignore-errors is default.
On Thu, Jan 5, 2017, 11:56 PM Sam Tay<EMAIL_ADDRESS>wrote:

Add a --force flag that doesn't halt execution on failed pre/post hooks.
Also note -- doing this will require errExit False within subshell for
hook execution. This can be used with or without force flag by checking
lastExitCode. This will, as a byproduct, allow us to exit gracefully
(without stack trace).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dockerland/dockmaster/issues/12, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAd6oEHtxuoQeDCfbU3X_AG_8DcTXaydks5rPcmPgaJpZM4LcZ6f
.


Ruined my db

Describe the bug
I just wanted to write sql migrations but wth is this? :D

Expected Behavior
Query does not execute
Current Behavior
Database is complete mess
Steps to Reproduce

add db credentials
write in sql file

Environment

[ ] Windows
[ ] Mac
[x] Linux
[ ] other (please specify)

why is this ON by default? :)
  "plpgsqlLanguageServer.enableExecuteFileQueryCommand": false

@numfin
Thank you for your report!
Sorry, the main contributor to this extension has retired, so I don't know the real reason. However, I think it was because it was convenient for programmers of our company.

@numfin
Thank you for your report!
Sorry, the main contributor to this extension has retired, so I don't know the real reason. However, I think it was because it was convenient for programmers of our company.

Got it. I guess i have to write my own :D


python3Packages.nbconvert: 7.2.5 -> 7.2.10

Description of changes
Please see https://github.com/jupyter/nbconvert/releases for the changes
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)
[x] 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

[ ] 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/)
23.05 Release Notes (or backporting 22.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

[x] Fits CONTRIBUTING.md.

@Net-Mist Do you want to add yourself as maintainer of some jupyter packages?

@dotlambda Thanks for your work on https://github.com/NixOS/nixpkgs/pull/245838. When your PR will be merged I will close this one (no point in keeping it open).
Hopefully, your PR will be merged in less than 4 months ^^'

Master has version 7.7.3.


[Parameter by reference] Codeunit 7313 Create Put-away - OnBeforeCreateNewWhseActivity

In the existing OnBeforeCreateNewWhseActivity event of the Codeunit 7313 Create Put-away, the LineNo parameter is required to be by reference.
[IntegrationEvent(false, false)]
local procedure OnBeforeCreateNewWhseActivity(PostedWhseRcptLine: Record "Posted Whse. Receipt Line"; var WhseActivLine: Record "Warehouse Activity Line"; var WhseActivHeader: Record "Warehouse Activity Header"; var Location: Record Location; InsertHeader: Boolean; Bin: Record Bin; ActionType: Option ,Take,Place; VAR LineNo: Integer; BreakbulkNo: Integer; BreakbulkFilter: Boolean; QtyToHandleBase: Decimal; BreakPackage: Boolean; EmptyZoneBin: Boolean; Breakbulk: Boolean; CrossDockInfo: Option; PutAwayItemUOM: Record "Item Unit of Measure"; DoNotFillQtytoHandle: Boolean; var IsHandled: Boolean)
begin
end;
We have a certain urgency.
Thanks.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


typo in 'replicas_more_than' shortcut

"@replicas_more_than":
  expanded: count(container_memory_usage_bytes{container_label_com_docker_swarm_service_name="{{ .Alert.ServiceName }}"}) > {{ .Alert.Replicas }}
  annotations:
    summary: The number of running replicas of the service {{ .Alert.ServiceName }} is more than {{ .Alert.Replicas }}
  labels:
    receiver: system
    service: "{{ .Alert.ServiceName }}"
    scale: up
    type: node

Shouldn't the scale value should be down rather than up for this shortcut? Seems odd for the same scale value to be in place for both replicas_less_than and replicas_more_than shortcuts.

Fixed and available in 18.05.26-4


Pass template path to mjml2html in sendmail

Hello!
Very small PR, but as it's my first, and as a relative newcomer to mjml & mjml-utils it's probably worth me taking some time to explain my use case to make sure I'm not missing something in the wider goals for the package.
I've been using the mjml desktop app with it's excellent preview pane to design my app's transactional email templates. (Combined with this lib's integrations with nodemailer, I've never experienced such an enjoyable email dev experience, so thank you!) I lean heavily on mj-include  to maximise reusability of various components. Using the desktop app, relative paths are supported without issue. When using mjml-utils' sendmail function however the relative paths are computed relative to the current node process, which is inevitably not the path that my partials are defined from.
This PR simply passes the template string to mjml2html function to allow it to resolve the mj-include paths correctly.

Outstanding introduction! I'm very happy to hear that you're getting good use from this library.


Consistency of citations

Why do you put references above arguments in some and below in the others?
For instance, pca_lightning puts references above its arguments.

Personally, references should be put above the arguments because that is how the compiled doc looks like.

Why do you put references above arguments in some and below in the others?

It was just my mistake. I tried to put all references below arguments.

In my opinion, references should be put above the arguments because that is how the compiled doc looks like.

OK, I will change.

LGTM


Implemented new badge for weather

Codecov Report

Merging #53 into master will decrease coverage by 2.59%.
The diff coverage is 0%.

@@             Coverage Diff             @@
##             master      #53     +/-   ##
===========================================
- Coverage      23.5%   20.91%   -2.6%
  Complexity       19       19
===========================================
  Files             6        6
  Lines           234      263     +29
  Branches         25       29      +4
===========================================
  Hits             55       55
- Misses          176      205     +29
  Partials          3        3

Can you write a few unit tests for this?

And attach a screenshot of the embedded badges page.

Here is a screenshot:

I ll get around to the unit tests in some time.

I looked into the unit tests. The following unit tests are just prototypes:

testDoCoverageIcon()
testDoTestIcon()
testDoBuildIcon()
I could make a copy of this prototype for testDoWeatherIcon() but it would add no value anyway. I don't think I can go back and modify all those unit tests, so I am going to leave this PR at this point.

I do think this should be a useful feature to be added, so hopefully you can close this PR and we can get to the unit tests with a separate PR.

hey @vijkris99 - did we want to resolve the pom changes and add a unit test to this? We may be cutting a new release soon if you want to get this in.