fix(tabs-extended-media): add react wrapper

Related Ticket(s)
#5395
Description
Create Tabs Extended Media react wrapper.
Changelog
New

create react wrapper story, readme, and codesandbox
regular web component codesandbox
e2e tests

Removed

left over console.log in masthead search

@ariellalgilmore looks like snapshots need to be updated on your branch.


Move Helm chart to separate repository

Keeping both Kangal releases and helm charts releases in the same repository caused problems with goreleaser #170  and confusion on users #182
A proposal for this issue would be to move the helm chart to separate repository and leave Kangal repository just with the source code.

Hi @lucasmdrs
Will new versions still be published on docker hub? We would like to upgrade our environment to support custom data.

Hi @amandahla yes, the idea is just to extract the things related to Chart to another repository. Docker image would still be published to the same place and the versions would continue the same semantic versioning number


Proposal: Switch to a master/dev branch setup

Currently all changes and PR are merged into the master branch.
I suggest we create a dev branch.
All changes and PR are done on the dev branch.
At certain points someone says "time for a new release":

Merge the dev branch into master
Tag the last commit in master after the merge
Create a new release for this tag, build the jar, attach it.
Increase the version code+name in the sdk gradle file on the dev branch (i.e. new version in the making)

At this point the cycle starts from the beginning.
What do you think @dotsbb ?
TODO:

Create new branch
Update docs to describe this
Possibly update travis-ci to do it's magic on the dev branch? Not sure still inexperienced with travis

Absolutely agree. I'll handle travis.

Need me to do anything? Except send new PR via the dev branch.


Crash Report -568041635

Link:
https://wowsims.github.io/cata/rogue/combat/#eJzjUuVgFGB0YMxgLGDsYGScwci4gpHxACPjDUbGF4yMDUyMHUyMG5gYnbgkgIo8GCOAyoQYpHrZZjGzBeQkVqYWcbAIsEm9ZOTiF/ixidng938oYORiF/izmVljEkimczOzwa9/cBkugUtdLBLX2UGSQgJ3QNrgkiAxAYHjU5glWuWUWPbvYGIAifAKLNnCLLFIUomRAaJpAoqJQGGgdev2M2usANm7fz8zRNWVGcwGn+Au0ugGST6AOIpd4DOQ0cPIxSZwdD2zRh3QUb2zmKHmswv0bQFLCgms24hiRA+jEhcHk4FkAFMEUwKL1gMmCWauG4wMwxQINZDptQ/22GnSgRWDE8MjRkEufmAaYJJgVGDWEHE9e+aM7S4mayNjYwNDAxSgCxIzMjYwNjQyMDYwMDQyNjLUNcAEh5hUOE6dZxK4c55J4u55JoUL55k0zp5nMrh3nsni8yUmh0+XmDw+XGI6wcRygYn1FhPDIyag3S+YUhqZIa4ScVgIZUU6dDEzKK1j8mDmhAjkOQhCGCYOkrNmgsBJe0uIyAV7xTQwuGbvCPQDELyxN/rMqBAhwapFp0Sk0elATeMaUo4TNA/i+b3vHRwh/B/2CYwAFuK8NQ==
RNG Seed:<PHONE_NUMBER>
When validating reforging for item 55470, the reforging could not be validated. 140
Stack Trace:
goroutine 6 [running]:
runtime/debug.Stack()
/opt/hostedtoolcache/go/1.21.13/x64/src/runtime/debug/stack.go:24 +0x6
main.computeStats.func1()
/home/runner/work/cata/cata/sim/wasm/main.go:57 +0x10
panic({0x1162a0, 0x38f2190})
/opt/hostedtoolcache/go/1.21.13/x64/src/runtime/panic.go:914 +0x2c
github.com/wowsims/cata/sim/core.NewItem({0xd8ae, 0xfffffff2, 0x0, {0x0, 0x0, 0x0}, 0x8c})
/home/runner/work/cata/cata/sim/core/database.go:362 +0x2d
github.com/wowsims/cata/sim/core.NewEquipmentSet({{0xd978, 0xfffffffb, 0x0, {0x0, 0x0, 0x0}, 0x0}, {0xd9fc, 0x0, 0x0, ...}, ...})
/home/runner/work/cata/cata/sim/core/database.go:403 +0x6
github.com/wowsims/cata/sim/core.ProtoToEquipment(0x39fc080)
/home/runner/work/cata/cata/sim/core/database.go:410 +0xd
github.com/wowsims/cata/sim/core.NewCharacter(0x33d2120, 0x0, 0x336c000)
/home/runner/work/cata/cata/sim/core/character.go:118 +0x34
github.com/wowsims/cata/sim/core.NewAgent(0x33d2120, 0x0, 0x336c000)
/home/runner/work/cata/cata/sim/core/agent.go:172 +0x1e
github.com/wowsims/cata/sim/core.NewParty(0x31fc000, 0x0, 0x3a24000)
/home/runner/work/cata/cata/sim/core/raid.go:34 +0x1d
github.com/wowsims/...

You've got unspent talent points and empty gear slots. This is so far outside the use case of the sim I'm not sure what could be the problem here, but I didn't run into any crash when attempting to reforge and sim.

No worries! Just reporting the error displayed
---------- Forwarded message ---------
From: Andrew McIntosh @.>
Date: Sat, Sep 14, 2024, 16:40
Subject: Re: [wowsims/cata] Crash Report -568041635 (Issue #1004)
To: wowsims/cata @.>
Cc: godsyn @.>, Author @.>
You've got unspent talent points and empty gear slots. This is so far
outside the use case of the sim I'm not sure what could be the problem
here, but I didn't run into any crash when attempting to reforge and sim.
—
Reply to this email directly, view it on GitHub
https://github.com/wowsims/cata/issues/1004#issuecomment-2351145451, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAD4GBU2JFWIGNZPNWKEEFDZWSNMZAVCNFSM6AAAAABN75LVLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJRGE2DKNBVGE
.
You are receiving this because you authored the thread.Message ID:
@.***>


Fix incorrect parsing of double options

Fixes https://github.com/boogie-org/boogie/issues/546
Testing
I decided not to add tests for this regression. I think in the future we'll refactor options so there's no more duplication in handling which type an option is then the single type specification can serve as both specification and implementation.

You could still have a single method like GetNumericArgument and just call it as GetNumericArgument<int> or GetNumericArgument<double> to distinguish the two. (Just a thought, I'm not a C# programmer and don't know which style is better.)


Feature Request: ecobee Premium air quality sensor

Since the new Thermostat has a Air Quality sensor it would be nice to expose this.
The value can be found under the runtime object
actualCO2: The last reported CO2 parts per million
actualVOC: The last reported VOC parts per million
actualAQAccuracy the last reported Air Quality Accuracy measurement.  A value between 0 and 3, where 3 represents fully calibrated.
actualAQScore  The last reported Air Quality Score measurement, value 0-5000
"actualVOC": 6046,
"actualCO2": 1480,
"actualAQAccuracy": 4,
"actualAQScore": 348,

and if the device doesn't support the sensor
"actualVOC": -5002,
"actualCO2": -5002,
"actualAQAccuracy": 0,
"actualAQScore": -5002,

Now the mobile also displays a "Excellent, Good, or Poor", if you wanted to match that logic there's a comma delimited string in the energy object (requires includeEnergy: true in the thermostat fetch) airQualityPreferences that looks like:
"airQualityPreferences": "aqGood:101,aqPoor:201,vocGood:1601,vocPoor:7001,co2Good:753,co2Poor:1753"
in the AQ example:
Excellent where 0 <= x < 101
Good where 101<= x < 201
Poor where 201 <= x

Hope this is helpful, feel free to DM in Slack as well (@cswelin) if you any question or like more examples.

Thanks for the excellent details, I'll try to get to this in the next few weeks. It will likely take a few iterations with you to get it all working since I don't have access to a new device.

No problem, can also invite you to an "ecobee home" with a device on it.

@cswelin

Does that top chart reference "Air Quality" and what is the numerical range?
I'm looking to replicate that in beestat. Today I am showing a TVOC grid but if the colored bar on ecobee represents overall Air Quality I think it would make more sense to change it.

@cswelin
 Does that top chart reference "Air Quality" and what is the numerical range?
I'm looking to replicate that in beestat. Today I am showing a TVOC grid but if the colored bar on ecobee represents overall Air Quality I think it would make more sense to change it.

Yes that represents Air quality, the range should be from 0 to 350

Yes that represents Air quality, the range should be from 0 to 350

I'm sure this wasn't up to you, but do you know any of the reasoning behind this?

Since TVOCs are the only actual measurement, why is there a separate air quality metric? I guess you could argue that it's also based off of CO2, but CO2 is estimated, not calculated, so it doesn't really make sense.
Why is the range from 0-350? If we're doing arbitrary numbers here, 0-255 is better for database storage (depends on the engine I guess), and 0-100 makes more sense to humans.

Yeah sadly I don’t know the technical details on that decision, but I believe it’s based on the sensor data sheet.
The mobile app actually uses a price API that normalizes the range to a 0 - 1 range.

@cswelin Thanks; appreciate your insights!
@jimboca Sorry to hijack the thread. I hope the discussion was at least somewhat helpful. :)

No worries, all good information. Hopefully I can get to this soon.

This is released to Beta, please install in a new slot from the Non-Production store and let me know how it looks.
I haven't added the AQ Excellent, Good, Poor yet, that one will be tricky since I don't have this thermostat so mine doesn't return that info in energy.


fix(MD-2926): kpi title alignment

:tada: This PR is included in version 1.1.6 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


fix: Show URL for service installed as part of the extension

Print URL after creating a gateway and VirtualService. Closes #222
(cherry picked from commit 3521fb62890684f89eecd725c3922e136c11e864)

I wonder why you changed the output format compared to the non-extension services when deployed.

@flaviodsr there will also be "X deployed" for an extension, just like for core components.
However this new line is for services, and there can be more services per extension.

got it, thanks!


Fix: using schema in the package

I am working on it now alone again no one helped me with a single thing
i wish you all a happy day
and i wish you like the new feature

fixes #50

Closes #52


Just found your addon and I've got a few things.

This is how I handle trapezoids:

Note the aligning pixels on the edge:

you can even do:

I'd really like to use your addon but you use the tilemap/spritesheet workflow where I use the repeating texture workflow. aka I use a 16x16px texture per material and apply that to a surface and make it tile by sizing the uv larger then the texture size. (as you can see in the uv edit view)
Would it be possible to add a feature that places all islands on top of each other on the texture? Like this:

What creates the most work for me is blenders unwrap:

As the projection/size and rotation is completely off.
I solve that by aligning the one edge of a none square face to the textures length:

This works fairly well, if there is no edge that is the size of the texture this gets a bit fiddly tho.
The most pixel perfect results I get is to start with a cube and then place the islands. After that then use correct face attributes to reshape the cube into non square faces. If not done like this it becomes a mess and nothing aligns. However this is not that easy to model with.
Maybe some of this process can be applied to your addon.

Hey @BrahRah ! Love learning about other Pixel 3D workflows.
You are right that the paradigm of Pixel Unwrapper is quite a bit different from the method you're describing.
Follow Edges vs Square Pixels
Pixel Unwrapper's Unwrap Grid kind of makes an opposite assumption! That if you have a quad face, it should be mapped to a rectangular UV section (deforming the pixels). That's because I personally usually prioritize pixel edges following model edges.
If I understand correctly, you prioritize having square pixels, even on trapezoids, and you want  want quads (trapezoids) to actually retain square pixels, and the mapping should follow one edge? I can see the use of that!
The question there is UI related. How do you indicate to blender which edge you want to use as the guide?
And what is the behavior when multiple faces are selected?
Atlas vs Repeating Texture
Pixel Unwrapper also fairly heavily leans in to having a texture that's uniquely mapped to bits of the model, because I designed it to help with a workflow that leads to direct texture painting. That's why many operators will immediately move the newly mapped UV island to a bit of free space on the UV map. I could consider just making that 2 actions though (1: map UV, 2: move to free space) instead of doing both with a single click.

I think in most cases the smallest edge is going to be the one that needs to align with the texture/img size. But for this to work in an addon I assume the best way would be to select the edge and then use a button to mark it as the edge to be aligned with the texture.

Are you sure about the 'shortest edge'.
If you use blender's standard Unwrap on a single face, it will use the longest edge and that seems like a good choice.
If you use Pixel Unwrappers "Unwrap Basic" I think that almost does what you're looking for?
It will keep the pixels square and also scale to the correct Texel Density:

For me it look like this if I do it:

With the right scale and placement of the faces I think unwrap basic would work.

Did you set the correct "Pixels per Unit" on Pixel Unwrappers panel?
And is your object not scaled itself? (I.e. did you apply the scale?)

It's the standard

blender cube with 111 bu where I resize the front face to a trapezoid:

pixels per unit is the same size as the texture

Yeah. A standard blender cube is 2 x 2 x 2 units in size. (See Dimensions:). With 16 pixels per unit that means each face will get 2 x 16 = 32 pixels to a side. Which is what I'm seeing in your image. So that all checks out.

I redid it with a 111 dim cube but it seems the unwrap basic has some issues with that small size:

This is actually a pretty good workflow already:
https://github.com/noio/Pixel-Unwrapper/assets/40721994/589c502b-9aea-4247-8c7e-71d36aedadc4
Just need to remember to start with a 111 dim cube.
I'll check if it's possible to automate the uv placements over the imgs borders next.

I think I found a way to get the image borders:
bpy.ops.image.view_all(fit_view=True) if that is the correct one
and:
def get_uv_editor_area_size():
    for area in bpy.context.screen.areas:
        if area.type == 'UV_EDITOR':
            width = area.width
            height = area.height
            print("UV Editor Area Size:", width, "x", height)
            break

# Call the function to get the UV editor area size
get_uv_editor_area_size()

and:
import bpy

def get_materials_images_size():
    # Check if any objects are selected
    if not bpy.context.selected_objects:
        print("No objects selected.")
        return

    # Iterate over selected objects
    for obj in bpy.context.selected_objects:
        print("Object:", obj.name)

        # Iterate over materials of the object
        for slot in obj.material_slots:
            material = slot.material
            if material:
                print("Material:", material.name)

                # Iterate over material nodes
                for node in material.node_tree.nodes:
                    if node.type == 'TEX_IMAGE':
                        image = node.image
                        if image:
                            print("Image:", image.name)
                            print("Size:", image.size[:])
                            print()  # Add an empty line for readability

# Call the function to get materials' image sizes
get_materials_images_size()

or maybe just fractional zoom 1:1 + image size as that seems to be the same size independent of area size.

I think this works:
import bpy

bl_info = {
    "name" : "uv test",
    "author" : "Brah Rah",
    "description" : "",
    "blender" : (3, 0, 0),
    "version" : (0, 0, 1),
    "location" : "",
    "warning" : "",
    "doc_url": "",
    "tracker_url": "",
    "category" : "Image Editor"
}

def blender_unit_size_of_selected_edge():
    # Check if there's an active UV map
    if not bpy.context.active_object.data.uv_layers:
        print("No active UV map.")
        return None

    # Get the active UV map
    uv_layer = bpy.context.active_object.data.uv_layers.active.data

    # Get the selected edge
    selected_edge = None
    for edge in bpy.context.active_object.data.edges:
        if edge.select:
            selected_edge = edge
            break

    if not selected_edge:
        print("No edge selected.")
        return None

    # Get the UV coordinates of the edge's vertices
    v1_uv = uv_layer[selected_edge.vertices[0]].uv
    v2_uv = uv_layer[selected_edge.vertices[1]].uv

    # Calculate the distance between the UV coordinates of the two vertices
    distance = (v2_uv - v1_uv).length

    return distance

def print_areas():
        # Switch to the UV Editing workspace
        bpy.context.window.workspace = bpy.data.workspaces["UV Editing"]

        # Print all areas
        for area in bpy.context.screen.areas:
            print("Area Type:", area.type)

def get_uv_editor_area_size():
    for area in bpy.context.screen.areas:
        if area.type == 'IMAGE_EDITOR':
            width = area.width
            height = area.height
            print("UV Editor Area Size:", width, "x", height)
            return width, height
    print("UV Editor Area not found.")
    return None

def get_first_image_size():
    # Check if any objects are selected
    if not bpy.context.selected_objects:
        print("No objects selected.")
        return None

    # Iterate over selected objects
    for obj in bpy.context.selected_objects:
        print("Object:", obj.name)

        # Iterate over materials of the object
        for slot in obj.material_slots:
            material = slot.material
            if material:
                print("Material:", material.name)

                # Iterate over material nodes
                for node in material.node_tree.nodes:
                    if node.type == 'TEX_IMAGE':
                        image = node.image
                        if image:
                            print("Image:", image.name)
                            size = image.size[:]
                            print("Size:", size)
                            return size  # Return the size of the first image found

    # If no image is found, return None
    return None

def get_border_points_on_image_editor_canvas():
    image_size = get_first_image_size()
    uv_editor_size = get_uv_editor_area_size()

    if image_size and uv_editor_size:
        img_width, img_height = image_size
        editor_width, editor_height = uv_editor_size

        # Calculate the coordinates of the border points
        pointUpLeft = (0, img_height)
        pointUpRight = (img_width, img_height)
        pointDownLeft = (0, 0)
        pointDownRight = (img_width, 0)

        # Convert coordinates to UV Editor canvas space
        pointUpLeft = (pointUpLeft[0] * editor_width / img_width, pointUpLeft[1] * editor_height / img_height)
        pointUpRight = (pointUpRight[0] * editor_width / img_width, pointUpRight[1] * editor_height / img_height)
        pointDownLeft = (pointDownLeft[0] * editor_width / img_width, pointDownLeft[1] * editor_height / img_height)
        pointDownRight = (pointDownRight[0] * editor_width / img_width, pointDownRight[1] * editor_height / img_height)

        return pointUpLeft, pointUpRight, pointDownLeft, pointDownRight
    else:
        print("Failed to get image size or UV Editor area size.")
        return None

def annotate_point(x, y):
    # Set the cursor location to the specified coordinates
    bpy.context.scene.cursor.location = (x, y, 0)

    # Activate the built-in annotate tool
    bpy.ops.wm.tool_set_by_id(name="builtin.annotate")

    # Simulate mouse click and release to draw the point
    bpy.ops.annotation.draw("INVOKE_DEFAULT", mode='DRAW', stroke='POINT')

class Button1OP(bpy.types.Operator):
    """Does stuff"""
    bl_idname = "uv.button1"
    bl_label = "Button1"

    def execute(self, context):

        bpy.ops.image.view_all(fit_view=True)
        get_uv_editor_area_size()
        get_first_image_size()

        border_points = get_border_points_on_image_editor_canvas()
        if border_points:
            print("Border Points on UV Editor Canvas:")
            print("Point Up Left:", border_points[0])
            print("Point Up Right:", border_points[1])
            print("Point Down Left:", border_points[2])
            print("Point Down Right:", border_points[3])

            pointUpLeft, pointUpRight, pointDownLeft, pointDownRight = border_points
            annotate_point(pointUpLeft[0], pointUpLeft[1])
            annotate_point(pointUpRight[0], pointUpRight[1])
            annotate_point(pointDownLeft[0], pointDownLeft[1])
            annotate_point(pointDownRight[0], pointDownRight[1])

        return {'FINISHED'}

class UVPanel(bpy.types.Panel):
    """Creates a Panel in the UV Editor"""
    bl_label = "UV Tools"
    bl_idname = "UV_PT_Panel"
    bl_space_type = 'IMAGE_EDITOR'
    bl_region_type = 'UI'
    bl_category = 'UV'

    def draw(self, context):
        layout = self.layout

        row = layout.row()
        row.operator("uv.button1")

def register():
    bpy.utils.register_class(Button1OP)
    bpy.utils.register_class(UVPanel)

def unregister():
    bpy.utils.unregister_class(Button1OP)
    bpy.utils.unregister_class(UVPanel)

if __name__ == "__main__":
    register()

I have not been able to annotate the corners to see if it works tho.


Ansari is not handling text and numeric representations of numbers the same way, especially in Arabic

Originally reported by Osama in Sydney:
If you search for 8 hujaj, Ansari doesn't know what you're talking about. If you search for eight hujaj, it gets the correct answer.

We should translate all queries in the Arabic and search in both Arabic and English?

Isnt it better to translate the user's query to English (sort of a default language) before doing any processing on it? Then process that query in English, makes results more reliable.


Add feature:  set transparent mode '3 Tr' for invisible text

Source issue: https://github.com/metanorma/xmlgraphics-fop/issues/4
Original issue: https://github.com/metanorma/metanorma-bipm/issues/188.

Done in the branch fix/characters_issues.


Add search for repos

Real-time search on owner, name, and language.

Incredible here, I was going to suggest search algorithm <3 I was happy that there is already an open issue.

@developerfred Would you like to contribute? (or) should we keep it open?

Is this issue still open?

Is this issue still open?

Language filter is already on site.
Search by "owner, name" - is "Ctrl+F" cause all repos are rendered at once on page open. May be in this case task can be closed.


Compile error with flutter 3.13.0

Describe the bug

Compile error with flutter 3.13.0
How to reproduce

Steps to reproduce the behavior:

Upgrade flutter to the latest stable version 3.13.0, and then use this lib, when compile, you can see the error below.
../../../../../.pub-cache/hosted/pub.dev/wechat_camera_picker-3.8.0/lib/src/widgets/camera_picker.dart:95:9: Error: No named parameter with the name 'primaryVariant'.
primaryVariant: Colors.grey[900],
^^^^^^^^^^^^^^
../../../flutter/packages/flutter/lib/src/material/color_scheme.dart:87:9: Context: Found this candidate, but the arguments don't match.
const ColorScheme({
^^^^^^^^^^^
Version information

Device: [e.g. iPhone X]
OS: [e.g. iOS 14.7.1]
Package Version:3.8.0
Flutter Version: 3.13.0

Use ^v4.0.0-dev.1.

wechat_camera_picker: ^4.0.0-dev.1  the bug not fix

Use ^4.0.0-dev.1.

wechat_camera_picker: ^4.0.0-dev.1 the bug not fix

Use ^4.0.0-dev.1.

need Use  wechat_camera_picker: ^4.0.0-dev.3


[WBCAMS-188] update column alignment of tables across workbc.ca

Middle column width and Sector column header & data centered.
NOTE: There was css styling applied to any table inside a div with id "industry_highlights-content" that right aligned last column header and data.  I have removed that code and confirmed that the appropriate columns in the Industry Highlights tab for BC, Region and Career profiles remain right aligned.


Try candidate approach

https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/859#issuecomment-67036131 by @dericofilho

Another thing that might be useful is to check before loop if the fixer is a candidate to fix. Check this out:
https://github.com/dericofilho/php.tools/blob/master/Core/RemoveIncludeParentheses.php#L3-L9
If the fixer could be tested for candidacy to execution before being executed, then the 20 loops for fixers could be lessened as well.

Please note that with the release of php.tools 6.0, this file has been changed to a new place:
https://github.com/dericofilho/php.tools/blob/master/src/Core/RemoveIncludeParentheses.php#L3-L9

Thanks for update!
BTW, are you online at gitter.im ?

No. But I may enter there if necessary.

You are welcome ;)

The issue is that this can be reliable only if you check for candidacy after running the previous filters (because the previous filter might introduce a reason for this fixer to run), meaning we would not win much (we would have to analyze the found tokens for each fixer, which would even slow down things because each fixer only cares about a very small subset of this info). This would probably be even more noticeable in 2.0 where all fixers are running on the Tokens collection directly

The name is "candidate" for a reason, the same reason it is not named as "filter", "check", "test" or similar. The candidate idea aims to return positive and false positives cases - while refusing surely known negative cases. So the idea of testing candidacy is defeated if the aim is perfect accuracy.
It is the same idea of bloom filter: it might be there, or surely not be there.
And, what's the point of chaining Fixers, aren't they supposed to be atomic? Thus, being atomic, it also means that candidates can be evaluated all against the original code.
An example is the else+if to elseif case: if the original code has else+if, and the fixer in question addresses elseif, the right thing to do is to test for all of them: else, if, and elseif. These three might be false positives, but surely no loop will be wasted looking for these three tokens when only others tokens exist.

Closing due to #1140 PR


Vail resorts do not work due to waiting room

Wildcat and Attitash(both owned by Vail I believe) both are missing data when their sites have it. I believe this is due to a browser issue from the scrape. When I try it, I receive a no javascript issue from not using an actual browser to access the site. Not sure how to get around it.

Looks like Liftie might have become an unwitting victim of Coronavirus restrictions. Vail resorts are using some kind of virtual waiting room technology to allow for fair access to tickets / reservation. And it seems to be applied to the entire website: you have to stand in line even if all you need to do is to check the opening hours or lift schedule.
It does not look like an insurmountable task to tackle this - basically follow redirects (both HTTP and javascript injections) while preserving some cookies.
Patches - as usual - welcomed.

Spent a bit of time tinkering around with this this evening, here are my findings until now:
They use https://queue-it.com/ as a waiting room, this handles the redirects and cookie management etc.
A request will return with a 'Set-Cookie' header, as well as the body which includes a document.location.href.
My guess at the moment is it would be necessary to load the referenced href with the correct cookie to get onto the actual page.
Unfortunately due to the setup of Liftie I haven't been able to get this working yet, but will perhaps try later with a separate setup as PoC then move over to Liftie structure if that works.
Refs:
Date: Mon, 05 Apr 2021 23:42:02 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Server: Kestrel
Cache-Control: no-store,no-cache
Pragma: no-cache
Set-Cookie: Queue-it=u=1611f2fe-3500-4278-bca5-83d5807eb5b5; expires=Tue, 05 Apr 2022 23:42:02 GMT; path=/; secure; httponly; samesite=none
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM"

<!DOCTYPE html>

The site requires JavaScript to be enabled!


very bad results on saved checkpoits

Hello, im training on JuggernautXL and while im training the results are insanely good in the samples.. But once the checkpoint is saved, it looks very very very bad. Like completely garbled mess. The samples look exactly as i expect, but the finished checkpoint with the exact same settings as the samples, looks very bad.
Note that i dont have these issues in Onetrainer. Its only with kohya. Using the base SDXL checkpoint i get okayish results, but they also dont look remotely as good as the samples

Several similar issues lately. All are inconsistencies between the sample and the test output after training is complete.
There was Lora, Lycoris, and today I saw fine-tuning.
I'm in the same situation as you. The image that loads the test itself is completely wrong, while the samples during training are exactly as expected. Again, suspecting file saving.


bug: Incorrect indentation on registries config

Summary
Inconsistent YAML indentation in registry template when there are multiple keys (e.g., auth and tls)
Issue Type
Bug Report
Ansible Version
ansible [core 2.16.0]
  config file = None
  configured module search path = ['/Users/XXXXX/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/XXXXX/.local/share/mise/installs/python/3.12.4/lib/python3.12/site-packages/ansible
  ansible collection location = /Users/XXXXX/.ansible/collections:/usr/share/ansible/collections
  executable location = /Users/XXXXX/.local/share/mise/installs/python/latest/bin/ansible
  python version = 3.12.4 (main, Jul 10 2024, 11:12:47) [Clang 15.0.0 (clang-15<IP_ADDRESS>.5)] (/Users/XXXXX/.local/share/mise/installs/python/3.12.4/bin/python3.12)
  jinja version = 3.1.4
  libyaml = True

Steps to Reproduce
rke2_custom_registry_mirrors:
  - name: "*" # Mirror everything
    endpoint: [ "registry.domain.com" ]
rke2_custom_registry_configs:
  - endpoint: "registry.domain.com"
    config:
      auth:
        username: myaccount
        password: mysupersecretpassword
      tls:
        insecure_skip_verify: true

Expected Results
mirrors:
  "*":
    endpoint:
      - "registry.domain.com"
configs:
  registry.domain.com:
    auth:
      password: mysupersecretpassword
      username: myaccount
    tls:
      insecure_skip_verify: true

Actual Results
mirrors:
  "*":
    endpoint:
      - "registry.domain.com"
configs:
  registry.domain.com:
    auth:
      password: mysupersecretpassword
      username: myaccount
tls:
      insecure_skip_verify: true

Fixed in #242


Failed to activate the build-rscript package

[Enter steps to reproduce:]

...
...

Atom: 1.54.0 x64
Electron: 6.1.12
OS: Pop!_OS 20.10
Thrown From: build-rscript package 0.9.0
Stack Trace
Failed to activate the build-rscript package
At Unexpected token ?

/home/ffs76/.atom/packages/build-rscript/lib/provider.js:5
` ut(e,4),super(e),this.name="AggregateError",Object.defineProperty(this,"_errors",{value:t})}*[Symbol.iterator](){for(let t of this._errors)yield t}},ht=U,mt=async(n,t,{concurrency:e=Infinity,stopOnError:r=!0}={})=>new Promise((a,i)=>{if(typeof t!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(e)||e===Infinity)

Looks like you need Atom 1.56 or later. I will update the manifest to reflect this requirement.

I've made some changes in master that should enable older versions of Atom to consume this package. Could you please confirm it's working for you?

Should be fixed in v0.10.0


Remove requirements.txt

Move testing and coverage dependencies to extras: pip install -e .[testing,coverage]
Update pytest-asyncio and remove excplicit asyncio marks
Add contributing quide

Codecov Report
Base: 87.29% // Head: 87.03% // Decreases project coverage by -0.26% :warning:

Coverage data is based on head (e37ca34) compared to base (7382a2a).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #84      +/-   ##
==========================================
- Coverage   87.29%   87.03%   -0.27%
==========================================
  Files          33       33
  Lines        2039     1998      -41
  Branches      182      182
==========================================
- Hits         1780     1739      -41
  Misses        191      191
  Partials       68       68

Impacted Files
Coverage Δ

tests/conftest.py
92.62% <ø> (-0.06%)
:arrow_down:

tests/test_connection.py
100.00% <ø> (ø)

tests/test_http_writer.py
100.00% <ø> (ø)

tests/test_read_messages.py
96.98% <ø> (-0.16%)
:arrow_down:

tests/test_reader.py
98.41% <ø> (-0.03%)
:arrow_down:

tests/test_reader_lookupd.py
100.00% <ø> (ø)

tests/test_send_commands.py
100.00% <ø> (ø)

tests/test_writer.py
100.00% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

That sounds like overkill to me :D However, I'm biased.


global device object is unusable

Problem description
The device object in global space is not the same as exported by the tabris module. It's also not functional:

Likely a result of the proxification of the original object.


 I designed it so that it would work well with a low number of items, but I have started to realize that people want more and more things to choose from. That is why I have to rebuild the duck system from the ground up.

To do this, I need to first create a new storage format for the duck information, that will be pretty easy, I just need to figure out how it will look. Information about that will be in this issue.

From there, I need to build a parser to interpret the storage format. Information about how the parser is going to work will be in this issue.

After that, I want all of the duck items to be stored in a very simple way. For this, I am thinking maybe to do a server or just read from the file system directly. I am not quite sure yet, but information about that will be in this issue.

And finally, I need to build a system for generating the final duck SVG from the duck items (Todo 3) and the duck storage format (Todo 4). Information about the duck SVG generation system will be in this issue.

Todo

[ ] General

[ ] Build Basic SVG Parser
[ ] Build Duck Format Parser
[ ] Build a System for Generating Duck SVG
[ ] Figure Out How to Store the Duck Items

[ ] Testing

[ ] SVG Library Testing
[ ] GET /duck
[ ] GET /duck/:id
[ ] GET /duck/:id/:zoom

[ ] Endpoints

[ ] GET /duck
[ ] GET /duck/:id
[ ] GET /duck/:id/:zoom

I finished the idea for version 1 of the duck storage format... and now I am going to start working on the parser.

I finished the parser- it is forward compatible.


[PRM-3072] Created If You've Paid Your VAT Page and feature switch

App-config changes for production: https://github.com/hmrc/app-config-production/pull/20281

@AndrewRButcher I've also added a link to a welsh contact page, as that's included in the translation document. Not sure if we need a separate test in the unit tests for it


Mapping script for mixture metadata

I'm writing the mapping script for the MixOntology.drawio based on the emodule mapping script written by Ilias.

Not sure if the relevant people are actually reading the issues here. Maybe you have to ask the ontology group directly.

Btw, the ontologies are also supposed to be in lebedigital/ontologies, not in usecase.

The folder should already exist (ConcreteOntology).

To me, that sounds like a good plan.
Currently in branch #87 the ontologies are in lebedigital/ConcreteOntology, I would suggest to use the same within this branch.


Support scan filter for ORC decimal reader

'leafCallToSubfieldFilter' converts decimal filter as Subfield filter, but
'SelectiveDecimalColumnReader::read' rejects scan spec filter. This PR supports
scan filter for ORC decimal reader.

You also need to add some tests to E2EFilterTest for decimal types

@Yuhta I find the E2EFilterTest relies on DWRF writer, but for now bigint-decimal will be written as int64_t, and hugeint-decimal is not supported. Do we need to support them first?
https://github.com/facebookincubator/velox/blob/3a1a60af69ad9d2f9060ce0c22aa212224fd6053/velox/dwio/dwrf/writer/ColumnWriter.cpp#L2039-L2041
https://github.com/facebookincubator/velox/blob/3a1a60af69ad9d2f9060ce0c22aa212224fd6053/velox/dwio/dwrf/writer/ColumnWriter.cpp#L2090

@rui-mo Yes it would be ideal to support writing decimals first.  Otherwise the tests are very limited and we have no confidence the new code would work correctly.


[zh] Add 2022-04-07-Kubernetes-1-24-removals-and-deprecations.md

Translate the blog  https://kubernetes.io/blog/2022/04/07/upcoming-changes-in-kubernetes-1-24 into Chinese.

/cc @tengqm

Except for the last comment, other feedbacks addressed. @tengqm

/lgtm
/approve


Return function or capsule from function

In my application I have a main processing loop which runs a couple of subfunctions. One of them is an error fct which should be configurable, which in cython I pass to the function as an cdef object. This errorfct always has the same signature, but typically has some different constants associated with it, which I currently set up when creating it.
Typically the main process function signature would look like this:
def process(field, param1, param2, errfct ...):
    for i in range(field.shape[0]):
        x = subfct1(field, param1)
        field *= subfct2(field, param2)
        ee = errfct(field)
        ...
   return ee

I would like to create the error function as return from another function e.g. like this:
def make_errfct(method, param, param2 ...):
    if method == 1:
        X = np.ones(100)*param
        def errfct(field):
             return X-field
        return errfct
    if method == 2:
        X = np.ones(100) + (param*1j)
        def errfct(field):
            return X.real-field.real + 1.j*(X.imag - field.imag)
        return errfct
    ...

Now I think this is already possible if I stay within pythran, i.e. I would run this at the beginning of process. However if I export make_errorfct and call it from python I simply get None as return (I guess somewhat expected). Would it be possible to have make_errfct return the errfct inside a capsule instead? That way I could pass it to the process function.
What I'm trying to avoid is having to pass a lot of (mostly unnecessary) parameters to process, just to initialise the error function, especially because the X calculation above in reality relies on external modules which I would have to put into pythran as well then.
Or is there a different way of achieving this? Hope this is understandable.

Sounds like a very interesting scenario. I don't have time to keep up
with all your issues but I'll check that once the armin/max with axis si
implemented :-)

No worries. I appreciate how much time you put into this. Unfortunately my C++ is years ago (and even then I was not even using templates. However I have some time after a deadline in 2 weeks, so I might try my hands on some PRs. Also have you considered getting a DOI for pythran? Makes citing easier

@cycomanic  There are 2 articles. I don't have a DOI though
@inproceedings{guelton_pythran2013,
	title = {Pythran: {Enabling} {Static} {Optimization} of {Scientific} {Python} {Programs}},
	shorttitle = {Pythran},
	urldate = {2017-09-23},
	author = {Guelton, Serge and Brunet, Pierrick and Raynaud, Alan and Merlini, Adrien and Amini, Mehdi},
	year = {2013},
	pages = {46--52},
}

@article{guelton2015pythran,
  title={Pythran: Enabling static optimization of scientific python programs},
  author={Guelton, Serge and Brunet, Pierrick and Amini, Mehdi and Merlini,
                  Adrien and Corbillon, Xavier and Raynaud, Alan},
  journal={Computational Science \& Discovery},
  volume={8},
  number={1},
  pages={014001},
  year={2015},
  publisher={IOP Publishing}
}

@ashwinvis yes, I'll update the doc accordingly.

Done in 26b0b66a1af00b2c9f59640a2349c4b568040219

@cycomanic tehre's an issue with your request: although it sounds great, there is no way pythran could generate a capsule from the definition of errfct. Indeed, it's a polymorphic function, something that cannot be represented by a function pointer and thus it cannot be put in a capsule.

Maybe  I did not make the example clear enough (or I always misunderstood polymorphic functions).
errfct would always have the same signature e.g. complex(complex).
I was under the impression that a polymorphic function means a function which take input parameters which can have different types (and possibly act accordingly), for the behaviour I'm talking about I would  use global variables in C. Also just to be clear, I want to pass this back to a pythran function, so it does not need to be a generic capsule if there is another way.

you known that errfct ihas complex(complex) signature, but there is no way to deduce that from the code above. It coul as well be an array of complex. And it could be complex128 complex64.

first option would be possible but requires a lot of work and that's definitively not in my top priority list. Second option would work, just pass a tuple instead of a struct and that should be OK.

Oh, this is awesome! I did not realise I can pass tuples to capsules. I assumed only c-types would work. I think this would be a good addition to the manual.


move cleanup tool.

closes #4290
Pull Request Checklist
Please leverage this checklist as a reminder to address commonly occurring feedback when submitting a pull request to make sure your PR can be reviewed quickly:
See the detailed list in the contributing guide.

[ ] C++ Guidelines
[ ] Doxygen docs
[ ] Unit tests
[ ] No unwanted commits/changes
[ ] Descriptive title/description

[ ] PR is single purpose
[ ] Related issue listed

[ ] Comments in source
[ ] No typos
[ ] Update changelog
[ ] Not work-in-progress
[ ] External references or docs updated
[ ] Self review of PR done
[ ] Any breaking changes?

it's a tool thus goes under tools , it's not intended to be a sample, it's useful when diagnosing tests that attempt to create a new resource, not just a new version of the resource, since our tests do not do any cleanup, relying on the fact that new resources are deployed each time the pipeline runs and are removed up once the tests are done.

In that case, consider moving it under the test directory.

it's not specific to secrets, , it handles keys and certificates

it's a tool thus goes under tools , it's not intended to be a sample

@gearama The comment in the file is confusing. Please update the doc comment on this file to highlight what the purpose of this tool is, if it isn't a sample.
https://github.com/Azure/azure-sdk-for-cpp/blob/5ac3f00d589eb003162ed89adcc062b50dfd225c/sdk/keyvault/tools/cleanup/src/cleanup.cpp#L5-L6


ConceptMap/$translate operation requires 'conceptMap' parameter

Describe the bug
$translate operation of ConceptMap resource requires 'conceptMap' parameter. But it's cardinality in fhir specification is "0..1"
sample response:
{     "resourceType": "OperationOutcome",     "id": "c0-a8-d1-82-52b13fa4-44c9-4375-bcb8-3442b9b4570d",     "issue": [         {             "severity": "fatal",             "code": "invalid",             "details": {                 "text": "Parameter with name 'conceptMap' was not found"             }         }     ] }
Environment
docker container ghcr.io/linuxforhealth/fhir-server:5.1.1
To Reproduce
Steps to reproduce the behavior:

GET http://{baseUrl}/fhir-server/api/v4/ConceptMap/$translate with parameter 'code', 'system', 'targetSystem'
sample request:
GET http://localhost:9080/fhir-server/api/v4/ConceptMap/$translate?code=1234&system=http://example.org/cs/1&targetSystem=http://example.org/cs/2

Expected behavior
Fhir server search existing ConceptMap then return match result, not requiring ConceptMap itself as part of parameters
Additional context

As far as I'm aware, I don't run into this issue while using the same version. Shall I look into the issue? Maybe I can provide a solution for you.


Convert the arithmetic tests to pure Alan

Not converting everything yet because:

Maybe there's a mistake that requires a refactor. This PR is already large enough as it is if that's the case.
I don't have a good story for doing the GPGPU tests, so I can't convert those yet, and those are the tests I ran into.
I'm curious how much just this saves. :)

Even just this small amount has drastically improved things.
From this:

To this:

That's a 48% reduction in runtime for Linux, 44% for Windows, 31% for MacOS, and 35% for ARM Linux. And that's only removing the arithmetic tests from the Rust test suite to the new Alan test suite (I will note that it was a kludge that was also intended to end-to-end test the compiler, but still).
That did reduce the number of tests in the Rust CI from 250 to 139, which is a 44.4% decrease on that side, implying that for my Linux desktop the testing bottleneck is almost 100% due to compilation time, while for my older hardware (the 2014 Mac mini and the Raspberry Pi) there is some impact from actually running the tests, as well.


Minor updates for LibraryEvolution.rst

We don't allow local typealiases in inlinable code either.
Explicitly document the places where adding or removing 'lazy'
is allowed and not allowed (it's effectively like going between
stored and computed).
Adding associated types with defaults is now allowed.
For non-@objc enums, adding a raw type is OK -- it's just a
compiler-synthesized RawRepresentable conformance and is not
used for layout.
Adding/removing/re-ordering extension members does not
follow the rules of the type itself.

@swift-ci Please smoke test

@swift-ci Please smoke test

@swift-ci Please smoke test

@swift-ci Please smoke test

@swift-ci Please smoke test

@swift-ci Please smoke test macOS

@swift-ci Please smoke test


Allow to implement a custom SASL mechanism and deprecate the previous mechanism

@dnwe This is a follow up of https://github.com/Shopify/sarama/pull/2466
In this PR, I'm replacing the previous mechanisms SCRAM-SHA-256 and SCRAM-SHA-512 by a generic function SCRAMClientExternal which be used to implement custom auth mechanism, like AWS IAM MSK.
This is a breaking change in the config API, as we discussed in the previous PR.
SCRAM-SHA-256 and SCRAM-SHA-512 can be implemented with the new API (see examples/sasl_scram_client/main.go).
Implementation of the custom mechanism for AWS IAM MSK: https://github.com/bpaquet/awsIamMskForSarama
Using it in kaf: https://github.com/bpaquet/kaf/tree/msk_iam_3

🦗🌵

@bpaquet I've added a couple of commits to fix the lint breakage as well as merge in the latest from the main branch if you would like to pull them into your branch: https://github.com/bpaquet/sarama/pull/1

This PR seems to be useless now, because of https://github.com/aws/aws-msk-iam-sasl-signer-go :)


android-NativeModules.UIManager.RCTVideo.Constants

no problem on ios, but getting * undefined is not an object (evaluating '_reactNative.NativeModules.UIManager.RCTVideo.Constants') * on android

react-native link is not working right. You need to do the configurations manually.

you need run react-native run-android   after setup react-native-video

This was the fix for me, i was using react-native-navigation and missed some configs:
https://stackoverflow.com/questions/45146173/does-react-native-video-work-with-react-native-navigation


I need rentry source code

I will be very happy if you will share rentry source code with me or us. I am waiting for your response . Thanks

There's already one similar issue open.


Bratseth/tensorflow models

@lesters please review
First stab at TF translation, verified with the first TF tutorial example.
Not wired in yet.

Thanks.
Renaming: Yes, we could keep the renaming and make it fast, but to make it super-fast (optimize layout) we need to resolve dimension constraints globally and avoid renaming anyway so we should do that instead. It seems a bit tricky, so I want to have a simple implementation end-to-end passing tests first though. It's also not possible in general, but probably not a problem in practice.
Wiring in: Repeating my suggestion here in case someone outside our mailing list reads it and have comments:
We want to support TensorFlow models for ranking in Vespa by converting TensorFlow graphs to ranking expressions, and TensorFlow tensor variables to constant tensors, as config time.
For this we need to define

A way to add the TensorFlow serialized model to Vespa.
A way to supply inputs to a TensorFlow computation from Vespa.
A way to refer to a specific computation (output) from that TensorFlow model in Vespa.

Suggested solution for these:
1: TensorFlow SavedModels are added under the models/ subdirectory in the application package. Each specific model is expected to be placed in a separate subdirectory, but no further structure is imposed.
2: Inputs to model computations are  represented as named "Placeholders" in TensorFlow. These must be supplied by Vespa from documents, queries or constants at ranking time. We keep these literally in the generated ranking expression, such that each placeholder must be represented by a macro in the ranking expression, where the macro defines how that input tensor is fetched (or computed).
3: To refer to a specific TensorFlow computation, we must specify the TensorFlow model, signature and output. This is done by embedding the reference in a macro, where the expression string is a triple consisting of model subdirectory, tensorflow signature def and tensorflow output (where the two latter can be skipped when unique). E.g
macro myTensorFlowFeature {
expression: models/myTensorFlowModel/:my_signature:my_output
}

breaks factory:
testImporting(com.yahoo.searchlib.rankingexpression.integration.tensorflow.Mnist_SoftmaxTestCase)  Time elapsed: 0.425 sec  <<< ERROR!
java.lang.UnsatisfiedLinkError: /var/builds/workspace/115429-v3-component/BUILD_CONTAINER/build/label/DOCKER-HIGHCPU/app_root/repositories/vespa/searchlib/target/tensorflow_native_libraries-1513504911607-0/libtensorflow_jni.so: /lib64/libc.so.6: version `GLIBC_2.16' not found (required by /var/builds/workspace/115429-v3-component/BUILD_CONTAINER/build/label/DOCKER-HIGHCPU/app_root/repositories/vespa/searchlib/target/tensorflow_native_libraries-1513504911607-0/libtensorflow_jni.so)
at com.yahoo.searchlib.rankingexpression.integration.tensorflow.Mnist_SoftmaxTestCase.testImporting(Mnist_SoftmaxTestCase.java:28)

as this is a big one, maybe just disable the failing test instead of full revert?

Yes, it's not doing any damage ... I'll disable it and see if we can get this working on factory.


Updated indexer.md with new Java code samples, updated examples/indexer/java code samples

The Java codes for indexer were outdated due to syntax changes.

updated the code snippets on the indexer.md file
updated all the code samples under features/examples/indexer/java.

@ryanRfox Requested Fix editted and pushed!

Atomic Transfer graphic at https://developer.algorand.org/docs/build-apps/apps/ was incorrect.
Updated the graphic.


Decorator doesn't seem to work properly if decorating more then two layers (cascades > 2)

Based on previous thymeleaf and layout dialect I designed view that consists from 3-4 layers.
mainLayout.htm

    <meta>All common static js, charset etc. </meta>
    <link>All common css, etc</link>
    <title layout:fragment="headTitle"></title>
    Page specific metatags

On the second layer I have 3 different layouts as site has 3 different content types.
One o them is businessLayout.html

    // business-section and
container-fluid from mainLayout.html were properly merged in v1.x.

Header is not defined

On the 3rd level it could be actual page like:
abouUs.html

        My awesome content

This structure worked perfectly fine.
After updating to 2.0.0 those templates get rendered into:

Navigation header from th:insert="~{/content/business/header_business.html :: html}"

<!DOCTYPE html >

This section comes from errors.html

        My awesome content

The issue is that mainLayout.html template is totally lost. businessLayout.html becomes root layer layout.
I think multilevel or cascaded decoration is standard feature, bu apparently it doesn't work in the new version of the dialect.

Multi-level layouts is something I struggled with just before the release - I did manage to get it going for one existing test but not another, but I didn't want to let that stop the release.
Now that I've worked w/ Thymeleaf 3 a bit more, I think I have some idea of what I need to do to get this working again.  I think the 'automatically remove attribute processors' feature that Thymeleaf 3.0 added for dialect authors, while handy, is actually the cause of this because it automatically removes the second layout:dialect declaration after the first round of processing, thus losing your mainLayout.html and any further layout templates up the hierarchy that you've created.
This was one thing I really wanted to get fixed for 2.0.1, and I'll track it against this issue now.

Kinda fixed !?
Well, after playing with it for a while I found the following:
If I change constructor in DecorateProcessor from
super(templateMode, dialectPrefix, null, false, attributeName, true, PROCESSOR_PRECEDENCE, **true**)
to
super(templateMode, dialectPrefix, null, false, attributeName, true, PROCESSOR_PRECEDENCE, **false**)
then AbstractElementModelProcessor skips this section
            if (this.removeAttribute) {
                if (model.size() > 0 && model.get(0) instanceof IProcessableElementTag) {
                    firstEvent = (IProcessableElementTag) model.get(0);
                    final IModelFactory modelFactory = context.getModelFactory();
                    final IProcessableElementTag newFirstEvent = modelFactory.removeAttribute(firstEvent,attributeName);
                    if (newFirstEvent != firstEvent) {
                        model.replace(0, newFirstEvent);
                    }
                }
            }

which prevents from recursive template processing.
I also had to comment out this section in DecorateProcessor not to throw exceptions when root html becomes not root when gets processed by it's parent..
		// Ensure the decorate attribute is in the root element of the document
		//if (context.elementStack.size() != 1) {
		//	throw new IllegalArgumentException('layout:decorate/data-layout-decorate must appear in the root element of your template')
		//}

So those two changes appear to fix the issue with recursive processing.
I hope it will help you to implement proper fix.

After messing around with things, the fix turned out to be really simple.  I changed the 'auto remove processor' flag from true to false just like you did, and then all I had to do was fix the code for making sure that the layout:decorate/data-layout-decorate processor was in the root, or in this case making sure that every processed element in the stack has a decorate processor.  You can check the changes in the commit that's linked to this issue just above this comment to see the changes, including the test I re-enabled to make sure it works.
I've uploaded a new 2.0.1-SNAPSHOT version, so could you give that a try, see if the changes have helped you out with your multi-level layouts?

Tested with snapshot thymeleaf-layout-dialect-2.0.1-20160717.014735-4.pom - everything looks awesome! I don't see any functional issues at all.

Good to hear! 😀


Bayesian GMM

Trying to implement Bayesian Gaussian Mixture Model. Below is the model and the guide:
import torch
from torch.autograd import Variable
import pyro
from pyro.distributions import dirichlet, normal, categorical, gamma, beta, bernoulli
import numpy as np
from  pyro.optim import Adam
from pyro.infer import SVI

data = Variable(torch.Tensor([0, 1, 10, 11, 12]))

# number of mixture components, fixed for now
K=3

def model(data):
    """
    """
    alpha0 = Variable(torch.Tensor([1, 1, 1]))
    mean0 = Variable(torch.zeros(K))
    sigma0 = Variable(torch.ones(K))

    pi = pyro.sample('pi', dirichlet, alpha0)

    mean = pyro.sample('mu', normal, mean0, sigma0)
    #mean = Variable(torch.zeros(K))
    sigma = Variable(torch.ones(K))

    for n in range(len(data)):
        z_n = pyro.sample('z_{}'.format(n), categorical, pi, one_hot=False).squeeze(-1)
        mean_z_n = mean.index_select(0, z_n)
        sigma_z_n = sigma.index_select(0, z_n)
        pyro.sample('x_{}'.format(n), normal, mean_z_n, sigma_z_n, obs=data[n])

def guide(data):
    """
    """
    # want alpha_q to be positive and hence the log domain
    log_alpha_q = pyro.param('log_alpha_q', Variable(torch.Tensor(np.log([10, 10, 10])), requires_grad=True))
    alpha_q = torch.exp(log_alpha_q)
    mean_q = pyro.param('mean_q', Variable(torch.zeros(K), requires_grad=True))
    log_sigma_q = pyro.param('sigma_q', Variable(np.log(torch.ones(K)), requires_grad=True))
    sigma_q = torch.exp(log_sigma_q)

    # global Random Variable
    pi = pyro.sample('pi', dirichlet, alpha_q)
    pyro.sample('mu', normal, mean_q, sigma_q)

    for n in range(len(data)):
        # local random variables
        # local variational paramters
        #p = softmax(pyro.param('unconstrained_p',
        #                       Variable(torch.zeros(K), requires_grad=True)))
        pyro.sample('z_{}'.format(n), categorical, pi, one_hot=False)

adam_params = {"lr": 0.0005, "betas": (0.90, 0.999)}
optimizer = Adam(adam_params)

svi = SVI(model, guide, optimizer, loss="ELBO", num_particles=7, enum_discrete=True)

n_steps = 400
# do gradient steps
for step in range(n_steps):
    svi.step(data)
    if step % 100 == 0:
        print('.', end='')

Getting the error:
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-11-66f78c41fb82> in <module>()
     60 # do gradient steps
     61 for step in range(n_steps):
---> 62     svi.step(data)
     63     if step % 100 == 0:
     64         print('.', end='')

/data/sls/u/sameerk/anaconda3/envs/nova-cpu/lib/python3.5/site-packages/pyro/infer/svi.py in step(self, *args, **kwargs)
     96         """
     97         # get loss and compute gradients
---> 98         loss = self.loss_and_grads(self.model, self.guide, *args, **kwargs)
     99
    100         # get active params

/data/sls/u/sameerk/anaconda3/envs/nova-cpu/lib/python3.5/site-packages/pyro/infer/elbo.py in loss_and_grads(self, model, guide, *args, **kwargs)
     63         :rtype: float
     64         """
---> 65         return self.which_elbo.loss_and_grads(model, guide, *args, **kwargs)

/data/sls/u/sameerk/anaconda3/envs/nova-cpu/lib/python3.5/site-packages/pyro/infer/trace_elbo.py in loss_and_grads(self, model, guide, *args, **kwargs)
    173             if trainable_params:
    174                 surrogate_loss_particle = -surrogate_elbo_particle
--> 175                 torch_backward(surrogate_loss_particle)
    176                 pyro.get_param_store().mark_params_active(trainable_params)
    177

/data/sls/u/sameerk/anaconda3/envs/nova-cpu/lib/python3.5/site-packages/pyro/infer/util.py in torch_backward(x)
     32     """
     33     if isinstance(x, torch.autograd.Variable):
---> 34         x.backward()

/data/sls/u/sameerk/anaconda3/envs/nova-cpu/lib/python3.5/site-packages/torch/autograd/variable.py in backward(self, gradient, retain_graph, create_graph, retain_variables)
    165                 Variable.
    166         """
--> 167         torch.autograd.backward(self, gradient, retain_graph, create_graph, retain_variables)
    168
    169     def register_hook(self, hook):

/data/sls/u/sameerk/anaconda3/envs/nova-cpu/lib/python3.5/site-packages/torch/autograd/__init__.py in backward(variables, grad_variables, retain_graph, create_graph, retain_variables)
     97
     98     Variable._execution_engine.run_backward(
---> 99         variables, grad_variables, retain_graph)
    100
    101

RuntimeError: Trying to backward through the graph a second time, but the buffers have already been freed. Specify retain_graph=True when calling backward the first time.

Any comments?

I'm not sure where that could be happening. Could you

provide your Pyro version and PyTorch version?
try pyro.clear_param_store() and see if you still get the error?
try with num_particles=1 and see if you still get the error?
try with enum_discrete=False and see if you still get the error?

Also FYI enum_discrete is exponentially expensive when your discrete variables are in a for loop. To reduce this to linear cost, you can use pyro.iarange and vectorize your guide and model, as in  our Gaussian Mixture Model Tutorial.

Pyro: 0.1.2 & Pytorch: 0.3.0.post4

pyro.clear_param_store(), still the same error

num_particles=1, same error

enum_discrete=False, no error anymore. But is this what we would ideally want to do in case of discrete random variables?

yes, i will try pyro,iarange once i get this to work properly

@fritzo @neerajprad can this be closed?

Closing as obsolete


docs(extending-workflow): add a list of community projects around workflow

What other projects should be listed here?
Closes #577. ping @olalonde

jumbojett/deis-ui is another project that can work on v2, but is currently broken.
olalonde/deisdash is another project.

+1 for https://github.com/olalonde/deisdash :) There's also

https://github.com/jumbojett/deis-ui though I'm not sure if still maintained.
https://github.com/olalonde/deis-node (JavaScript API client, not updated in a while)

A quick search on GitHub turned up:

https://github.com/Ragnarson/deis-cleanup (deis v1)
https://github.com/rimusz/deis-workflow-aws
https://github.com/rimusz/deis-workflow-gke

Right, I guess there's also https://github.com/TheNewNormal/kube-solo-osx that includes documentation on getting Workflow installed on kube-solo

Updated with all the community projects mentioned above.

A few more:
https://github.com/thomas0087/deis-workflow-ruby
https://github.com/emartech/heroku-to-deis
https://github.com/Rafflecopter/deis-global-config-plugin

Updated with three more links and a disclaimer suggested by @ultimateboy.


Fix type casting

fix #421.
I fix some cases that are different behavior of the type conversion in numpy and cupy.

Could you add test cases that typecast of other operations (including multiplication which is reported in #421) is consistent with NumPy and CuPy?

I added test.

LGTM except the comments

LGTM :+1:


Selection can be hard to see in some themes

By the way just a suggestion, but if you want the selection to look better (currently in some themes the inactive selection is barely noticeable) you can try to change the setting "editor.inactiveSelectionBackground" from "workbench.colorCustomizations" to ThemeColor('editor.selectionBackground') when opening the QuickPick menu and then change it back to whatever the user had it set or undefined if it wasn't set when closing the QuickPick menu. I haven't tested this but it should work.

Originally posted by @berknam in https://github.com/VSCodeVim/Vim/pull/5050#issuecomment-665564308

This approach doesn't quite work as ThemeColor is only a reference and cannot get the actual color of editor.selectionBackground

Yeah you're right. Didn't think about that. The ThemeColor would only work if using a text editor decoration, which might be a possibility but I don't know if that would work well.
I guess the easier option is to add a warning to the readme file telling the user to change that setting when they can't see the inactive selection:
"workbench.colorCustomizations": {
    "editor.inactiveSelectionBackground": "some color that looks better",
},

I added that to readme, and close this issue for now. We can revisit this if there's a better solution.


[Feature]: customizable kind icons

Describe the feature request
At the moment kind icons are "hardcoded":
https://github.com/stevearc/aerial.nvim/blob/4dc21934fd2899380f53e19e3192020e832c3b20/lua/aerial/config.lua#L255-L283
But I think it'd be nice to have the possibility to customize kind icons and their highlight groups through setup function, as symbols-outline.nvim does
https://github.com/simrat39/symbols-outline.nvim#configuration

You can actually already do this! Use the icons option. The symbols & text each have their own highlight groups, as documented here
https://github.com/stevearc/aerial.nvim/blob/4dc21934fd2899380f53e19e3192020e832c3b20/lua/aerial/config.lua#L68-L73

My bad, I didn't noticed it 😅
Thanks


Option for return all errors in array?

Is it possible to enable option allErrors: true in ajv customOptions for fastify 4.x inside for this plugin?
For return all errors in schema together in array.

now i am installed addinial dependency ajv-errors for this and add settings for Fastify server, but maybe exsists more correct way


Don't check parent folders for settings / settings folder

Following up on #44980.

@chrmarti Don't you agree that this shouldn't be forced upon users and should be left as an optional enable-disable, disabled by default? I think the fact that it was an enabled option for such a long time and not too many complained is an argument enough to make this commit optional.


os/mac/hardware: clarify Rosetta 2 situation with a comment.

Expand on #10153 to provide an in-code comment (in case someone goes to change this in future).

Review period will end on 2020-12-29 at 09:10:18 UTC.

Review period skipped due to critical label.


Index page

What did you do?

I and @rahmot worked on this homepage.
New branch had to be created because the former PR failed check tests #36
We also affected @bebatut's corrections

Why did you make this change?
(The homepage needed to be set up)
Have you tested locally?
(please check all three to move your PR forward!)

[+] I have tested the changes locally and they appear as I desire them to.
[+] I have tested the links and they work correctly.
[ ] I have checked that the images match my expectations.
(The images are not displayed on the site. We checked the paths and still, they are not displaying even though the alt texts are showing. We need your expert help in assisting us to find out where the error might be)

How to test the changes?
Instructions for manual testing are as follows:

[run npm run develop]

Add a screenshot if applicable

I notice that all the png and jpg images aren't sharp...I don't know why.
I'll replace the text image when @rahmot sends the one with galaxy and training...
Meanwhile, the carousels have been giving me a hard time since weekend :(

I merge this PR. Thanks a lot for the work there @Chinonyemildred


Add support for Passive Event Listeners

I just learned about it by watching a Google I/O video.
Here is the spec: https://github.com/WICG/EventListenerOptions
It's already supported in Chrome 51, so it would be great to have this option too in Dart.

+1

+1 for support

+1 is spam. Please stop it. Use add reaction instead.

In Chrome 56 and newer touch events are passive by default: see https://www.chromestatus.com/features/5093566007214080
We need a way to use this feature or even restore the previous behavior (for example for touch drag and drop things like the dnd package).
Does anyone see a workaround as long as the standard listener methods do not support this?

I am user of Dart 1.24.3 and found that I see hundreds of verbose log in Chrome 67+ telling to convert the listener to passive. It may be dart2js is not compiling to javascript and making use of passive mode.
Any solutions ?

Now trying to prevent any wheel event in the latest version of chrome (73.0.3683.86) throws a console error, and does not work.
[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive.
https://www.chromestatus.com/features/6662647093133312

Now trying to prevent a wheel event in the latest version of chrome (73.0.3683.86) throws a console error, and does not work.
[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive.
https://www.chromestatus.com/features/6662647093133312

See:
https://www.chromestatus.com/features/6662647093133312
I searched and found that a lot of bugs are arising on too many projects written in JavaScript, because of this new change made in chrome 73+ to make document level scroll events as passive by default to improve performance.
But we can not call e.preventDefault(); from a passive event listener, so at the moment if you want to implement scroll disable utility function using dart:html it will not work in chrome 73+ because event listener being marked as passive by default.
I can not find any example that shows use of non-passive events using dart:html.

CC @vsmenon @terrylucas – sounds like something we should get on soon!

Just to clarify, is the need here to add/extend the addEventListener API to allow this option to be passed?

@vsmenon would be good to get it for both, like this: document.onMouseDown.listen((ev){}, passive: false); and document.addEventListener("wheel", (ev){}, passive: false);

Has any progress been made on this issue?

No progress it seems?

This seems to be trivial but could be a good performance improvement? Is there any hack or alternative?

I guess you can use JS interop, something like
JS()
library window;

JS('document.addEventListener')
eventListener(eventName, Function(ev) fn, {bool passive});

I do have a window.dart file to expose some stuff with JS interop that you may find useful.
Here is a snippet
@JS('window')
library window;

import 'package:js/js.dart';

// to expose more arguments than the dart:html version
@JS('console.log')
external consoleLog(a, [b, c, d, e, f, g, h]);

@JS()
external dynamic get undefined;

@JS('NaN')
external dynamic get nan;

@JS('Infinity')
external dynamic get infinity;

I had to make this work on a project because we needed to prevent a PathElement from being clicked, here is how I did it:
anywhere in your index.html file:
  <script type="text/javascript">
  window._listen = function(target, type, listener, options) {
    target.addEventListener(type, listener, options);
  }
  </script>

in a file that should be used to js interop the window
@JS()
library browserhtml;

import 'package:js/js.dart';
import 'dart:html' as html;

@JS('_listen')
external listenToEvent(
    html.Element target, String type, Function(html.Event) listener,
    [EventListenerOptions options]);

extension AdvancedElement on html.Element {
  void eventListen(String type, Function(html.Event) listener,
          [EventListenerOptions options]) =>
      listenToEvent(this, type, listener, options);
}

now you can use eventListen in any Element, eg:
var el = PathElement()..eventListen('mousedown', (Event ev) {
      print('Preventing default');
      ev.preventDefault();
    }, EventListenerOptions(passive: false));

fyi - @sigmundch - relabeled this as area-web just now.


cmd/go: "malformed import path" in Go 1.16 for packages with path elements containing a leading dot

What version of Go are you using (go version)?

$ go version
go version devel +076a45acd5 Tue Oct 13 19:15:53 2020 +0000 linux/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/myitcv/.cache/go-build"
GOENV="/home/myitcv/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/myitcv/gostuff/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/myitcv/gostuff"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/home/myitcv/dev/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/home/myitcv/dev/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build308834115=/tmp/go-build -gno-record-gcc-switches"

What did you do?
testscript -v <<'EOD'
go list ./.github/workflows
stdout 'rubbish/\.github/workflows'

-- go.mod --
module rubbish

-- .github/workflows/gen.go --
package gen
EOD

What did you expect to see?
Passing test
What did you see instead?
malformed import path "rubbish/.github/workflows": leading dot in path element

This has the effect of breaking commands like go generate ./.github/workflows
I bisected this to 3a65abfbdac7ab29f693d69bd1eb12b2148a11ae
cc @bcmills @jayconrod

Hmm, this package doesn't have a valid import path in module-aware mode. From module.CheckImportPath:

A valid path element is a non-empty string made up of ASCII letters, ASCII digits, and limited ASCII punctuation: - . _ and ~. It must not begin or end with a dot (U+002E), nor contain two dots in a row.

However, I'm guessing this isn't a package that's ever imported. Perhaps the go command shouldn't enforce this requirement for packages named on the command line using local paths?
@bcmills @matloob WDYT?

Hmm, this package doesn't have a valid import path in module-aware mode. From module.CheckImportPath:

A valid path element is a non-empty string made up of ASCII letters, ASCII digits, and limited ASCII punctuation: - . _ and ~. It must not begin or end with a dot (U+002E), nor contain two dots in a row.

However, I'm guessing this isn't a package that's ever imported. Perhaps the go command shouldn't enforce this requirement for packages named on the command line using local paths?
@bcmills @matloob WDYT?

Hrm, I'm not sure. We disallow dot in general because it can make code harder to audit: in environments that hide dotfiles by default we don't want to hide the source code for the dependencies of a Go package, and path elements beginning with _ and . are ignored by go mod tidy and go list ./... (compare #37376).

Hrm, I'm not sure. We disallow dot in general because it can make code harder to audit: in environments that hide dotfiles by default we don't want to hide the source code for the dependencies of a Go package, and path elements beginning with _ and . are ignored by go mod tidy and go list ./... (compare #37376).

However, I'm guessing this isn't a package that's ever imported

Correct.

However, I'm guessing this isn't a package that's ever imported

Correct.

For a bit of context, I'm doing this because having a go:generate directive within $modroot/.github/workflows aligns the location of the directive with the target of the generation step. However, the argument against this is precisely the point that @bcmills makes - a simple go generate ./... doesn't end up running this directive. Rather awkwardly I actually use another go:generate directive in another package to run the "hidden" one, which kind of defeats the purpose. So whilst the original goal was perhaps admirable/sensible, the workaround arguably makes it more confusing/convoluted. Which perhaps points to this being a bad idea generally, and hence one that we should not support.
I'll leave it to @bcmills and @jayconrod to determine whether it's necessary to continue supporting this pattern given it used ti work in 1.15x or not. From my perspective I think you've helped talk me round so this issue can otherwise be closed 😄

I think we should keep this open since it used to work, and in most other situations, the go command allows a package with an invalid import path to be named using a file path. Probably not for 1.16 at this point in the freeze though.

After looking at this a bit further, I think we should close this. It's pretty ambiguous though. If more folks run into this issue in new situations, we can reconsider.

As alluded to above, go generate ./... and go mod tidy won't find these packages, resulting in weirdness. That's working as intended, but it's probably better not to encourage broader use of things that trigger unexpected behavior.
This example worked in 1.15.x. It should not have worked. We only validated imports when looking up modules, not when locating packages provided by modules in the build list.

go build m
-- go.mod --
module m

go 1.15
-- .github/workflows/invalid.go --
package invalid
-- use.go --
package use

import _ "m/.github/workflows"

All things being equal, it's better to treat paths consistently and to report errors earlier. With the above example, someone might publish a module containing packages with invalid import paths, expecting them to work.

Just tried building on 1.16 and this breaks our builds:
$ go build -mod=vendor
../../vendor/go.uber.org/cadence/internal/client.go:30:2: malformed import path "go.uber.org/cadence/.gen/go/cadence/workflowserviceclient": leading dot in path element
../../vendor/go.uber.org/cadence/internal/internal_workflow_testsuite.go:39:2: malformed import path "go.uber.org/cadence/.gen/go/cadence/workflowservicetest": leading dot in path element
../../vendor/go.uber.org/cadence/internal/activity.go:29:2: malformed import path "go.uber.org/cadence/.gen/go/shared": leading dot in path element

Is there any workaround available?

See previously #34992.

I did some investigation, and found that the prohibition on leading-dot elements was added in CL 124378, back in July 2018.
We attempted to investigate the prevalence of these paths in the wild using the pkg.go.dev index, but it does not index imports of these paths (which further argues for disallowing them — so far no one seems to have reported the packages as missing there).
The only specific affected module we know of so far is go.uber.org/cadence, but because the affected import statement is an internal package it could be fixed for external consumers by an internal-only change within a patch release for that module (namely, moving the packages currently in the .gen subdirectory to another location and updating the imports within the module).
After discussion with @rsc, @jayconrod, and @matloob, we're planning to leave this validation in place for Go 1.16.
If we find more severe examples after the release, we can consider whether to relax the check in Go 1.16.1. If you are affected, please comment on this issue with the affected module path(s) and versions.

Thanks for the report Paul, and thanks for the discourse and debugging everyone. @bcmills you mailed and merged the documentation CL https://go-review.googlesource.com/c/go/+/291389, should we thus move this issue out of Go1.16 and roll it forward for Go1.17 and consider a backport if necessary for Go1.16.1, as you raised in https://github.com/golang/go/issues/43985#issuecomment-777809802?

@odeke-em, I don't think this issue should be rolled forward to Go 1.17 since we don't plan to do anything about it. Perhaps it should just be closed, but we discourage folks from commenting on closed issues and we are actually interested in receiving comments about concrete examples here.
Maybe Unplanned is the right milestone for that.

Awesome, thanks for the explanation and for moving it out of the Go1.16
milestone!
On Tue, Feb 16, 2021 at 9:43 AM Bryan C. Mills<EMAIL_ADDRESS>wrote:

@odeke-em https://github.com/odeke-em, I don't think this issue should
be rolled forward to Go 1.17 since we don't plan to do anything about it.
Perhaps it should just be closed, but we discourage folks from commenting
on closed issues and we are actually interested in receiving comments
about concrete examples here.
Maybe Unplanned is the right milestone for that.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/golang/go/issues/43985#issuecomment-780004633, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABFL3V3SWWQBF4UVK4HFR6TS7KVCXANCNFSM4WYQ3G2Q
.

The only specific affected module we know of so far is go.uber.org/cadence, but because the affected import statement is an internal package it could be fixed for external consumers by an internal-only change within a patch release for that module (namely, moving the packages currently in the .gen subdirectory to another location and updating the imports within the module).

Actually, consumers of that package might also import packages from the .gen subdirectory, so fixing this in a patch release isn't trivial IMHO.
If it only gets fixed in the latest release then consumers will also be forced to upgrade their Cadence server component (to ensure compatibility between the client and the server) or to stay on Go 1.15 until they do.

If we find more severe examples after the release, we can consider whether to relax the check in Go 1.16.1. If you are affected, please comment on this issue with the affected module path(s) and versions.

The Gardener project (https://github.com/gardener) is affected by this change, too.
We use modules to define cross repo dependencies in the Gardener org, also some of the modules don't contain Go code at all:
For example, https://github.com/gardener/gardener/tree/master/.github/ISSUE_TEMPLATE allows us to re-use Github templates across our repositories with the same dependency management tool (go mod) already used for Go dependencies.

This is an unexpected breaking change in Go 1.16 for all our builds using magefile/mage.
Raised initially here until I've found out that the issue is in go list rather than in mage.
All our mage build files are in a subdirectory which starts with a dot (.mage) and this has worked in Go 1.15.

It sounds like this issue is affecting more people than we'd hoped. I'll look at relaxing the constraint that import paths can't have path elements starting with dots. We'll aim to backport that to 1.16.1.
We'll continue to disallow trailing dots in import path elements, since those names aren't allowed on Windows. We'll also continue disallowing leading dots in module path elements.

@gopherbot Please backport to 1.16.


inference speed and diversity

Hi!
Thanks for your great work! I'm working on getting results on another paraphrase dataset under  T5 + GP prior setting.  I have the following two questions:

I found that the generation speed is relatively slow due to the inference batch size 1,  and something get wrong if I change it. Is there any way to speed up the generation?
if I want to get a trade-off between quality and diversity, is it suitable to set the scalar to 7 just like it used in the paper for the paraphrasing task?

Hi,
Thanks for your interest in our work!

If you want to increase the batch size during generation, you need to change the decode() function here to decode_batch() function (documentation here).
Yes, you can freely tune the scalar until you find the best quality and diversity trade-off on the dev set. In our experiments, we find setting the scalar to 7 gives the best result.

Hi.
Thanks for your detailed reply. I have sped up the generation process!


Remove osmodel.mak in favor of ../dmd/osmodel.mak

A small step at cleaning up the Makefiles.
Similarly to https://github.com/dlang/tools/pull/227

Btw it seems as if we got four new "random" coverage lines:

At least it's in paralellism, I won't feel guilty for masking those out.

They're always there, just cleaned/reset between runs. Not sure why you'd get an error there.
Let's see why the simpler solution doesn't work, this is an unpleasant complication.

Alrighty - seem to have been a transient error. Removed the line & everything* is green  :)

except for the broken Project-Tester of course.

Not sure why you'd get an error there.

On second thought, I know why.
https://github.com/CyberShadow/ae/commit/0cc44962db38dbadd194850e7d86c1928a8d72fc

which as far as I can see never existed

Oops, that's not true. Still looking into it

I think because of the above (now-fixed) bug we slip a build bug in, and now website auto-deploy is failing.

Sorry.

Oops, that's not true. Still looking into it

I think I can submit a PR. Continue on your bug hunt ;-)

I think I can submit a PR

https://github.com/dlang/dlang.org/pull/1791


Create a TypeScript-to-GLS converter

TypeScript is a good starter language for converting to GLS because I'm most familiar with its AST and it has most or all of the GLS language constructs. The converter would need full type checking information to distinguish member privacy, statics compared to namespaces, and so on.
Putting this issue here since GitHub doesn't support cross-organization issues...

https://github.com/highschoolhacking/ts-gls :)


Doc: clean up FAQ

Clean up the FAQ (mostly adding links to existing content and moving details to the respective doc sections) and add an entry for the common firewall question.

Documentation preview available at: https://linuxcontainers.org/lxd/docs/pr.11684/


run error

/AJPy/ajpy/ajp.py
kali2020.4
python 2.7.18
def unpack(stream, fmt):     print stream, fmt     size = struct.calcsize(fmt)     print size     buf = stream.read(size)     print buf     if "" in buf:         print "error"     return struct.unpack(fmt, buf)
`<socket._fileobject object at 0x7f4b45690ad0> >HHb
5
error
Traceback (most recent call last):
File "tomcat.py", line 378, in
hdrs, data = bf.perform_request("/" + args.webapp + "/xxxxx.jsp", attributes=attributes)
File "tomcat.py", line 154, in perform_request
responses = self.forward_request.send_and_receive(self.socket, self.stream)
File "。。。。。。。。。。。/AJPy-master/ajpy/ajp.py", line 279, in send_and_receive
r = AjpResponse.receive(stream)
File "。。。。。。。。。。。/AJPy-master/ajpy/ajp.py", line 385, in receive
r.parse(stream)
File "。。。。。。。。。。。/AJPy-master/ajpy/ajp.py", line 342, in parse
self.magic, self.data_length, self.prefix_code = unpack(stream, ">HHb")
File "。。。。。。。。。。。/AJPy-master/ajpy/ajp.py", line 50, in unpack
return struct.unpack(fmt, buf)
struct.error: unpack requires a string argument of length 5
`

def unpack(stream, fmt):     print stream, fmt     size = struct.calcsize(fmt)     print size     buf = stream.read(size)     print buf     if "" in buf:         print "error"     return struct.unpack(fmt, buf)

def unpack(stream, fmt):     print stream, fmt     size = struct.calcsize(fmt)     print size     buf = stream.read(size)     print buf     if "" in buf:         print "error"     return struct.unpack(fmt, buf)

def unpack(stream, fmt):
print stream, fmt
size = struct.calcsize(fmt)
print size
buf = stream.read(size)
print buf
if "" in buf:
print "error"
return struct.unpack(fmt, buf)

def unpack(stream, fmt):
print stream, fmt
size = struct.calcsize(fmt)
print size
buf = stream.read(size)
print buf
if "" in buf:
print "error"
return struct.unpack(fmt, buf)

I'm sorry but I don't understand your issue. Please provide more information:

Have you tested with Python 3?
Which version of tomcat are you trying to communicate with?
What is your actual issue?

You just put some code and stacktrace without any kind of context, I can't help you with so little information.

I'm sorry but I don't understand your issue. Please provide more information:

Have you tested with Python 3?
Which version of tomcat are you trying to communicate with?
What is your actual issue?

You just put some code and stacktrace without any kind of context, I can't help you with so little information.

oh, i am not test with python 3.
Apache Tomcat/Coyote JSP engine 1.1：nmap scan result(it is not my server): Apache Tomcat/Coyote JSP engine 1.1
def unpack(stream, fmt): print stream, fmt size = struct.calcsize(fmt) print size buf = stream.read(size) print buf if "" in buf: print "error" return struct.unpack(fmt, buf)
stream: <socket._fileobject object at 0x7f4b45690ad0>
fmt: >HHb
size: 5
buf: ''ps:empty
buf: it is empty
Now how to modify the code to make it work properly?

oh, i am not test with python 3.
Apache Tomcat/Coyote JSP engine 1.1：nmap scan result(it is not my server): Apache Tomcat/Coyote JSP engine 1.1
def unpack(stream, fmt): print stream, fmt size = struct.calcsize(fmt) print size buf = stream.read(size) print buf if "" in buf: print "error" return struct.unpack(fmt, buf)
stream: <socket._fileobject object at 0x7f4b45690ad0>
fmt: >HHb
size: 5
buf: ''ps:empty
buf: it is empty
Now how to modify the code to make it work properly?

Hi, if you see "Apache Tomcat/Coyote JSP engine 1.1" in your nmap output it means it's an Apache HTTP server with mod_jk loaded so it is not AJP but HTTP. AJP usually is exposed on port 8009 and nmap will tell you 'Apache Jserv (Protocol v1.3)' instead.
AJPy only uses the AJP protocol, not the HTTP which is already supported by, any other web tool I would say.

Hi, if you see "Apache Tomcat/Coyote JSP engine 1.1" in your nmap output it means it's an Apache HTTP server with mod_jk loaded so it is not AJP but HTTP. AJP usually is exposed on port 8009 and nmap will tell you 'Apache Jserv (Protocol v1.3)' instead.
AJPy only uses the AJP protocol, not the HTTP which is already supported by, any other web tool I would say.

oh, it is all my fault, I thought they were the same.
Thank you very much!

oh, it is all my fault, I thought they were the same.
Thank you very much!


go-redis import path changed

Description
https://uptrace.dev/blog/posts/go-redis-v9.html
go-redis joined Redis org, so import path has changed.
V7, V8 import path remain same
//before
import "github.com/go-redis/redis/v9"
//after
import "github.com/redis/go-redis/v9"

@dwkang can you check this issue? :)

@smallfish06 Thank you for your contribution. It was released in v1.2.2 version.


Some skin's sound effect can not be replaced

Some skin like Arctic Ops Gragas, Mecha Aatrox Chromas have original sound effect rather than these skins' sound effect, which really annoyed me for a long time.
By the way, I'm now playing in Chinese server.
Any fix will be appreciated.

#1


Fixing issue #550

fix(DicomMicroscopyViewport): adding updateSize call when the viewport gets resized

Please, don't merge it until we get this PR https://github.com/dcmjs-org/dicom-microscopy-viewer/pull/30 approved and the new version updated at the microscopy extension.


GeeksForGeeks

This extension only works with leetcode. So you can modify it such that the geeksforgeeks questions can also get added in the repository.

I think you should fork this repo and create a GFG version, as the name already said leethub :)

Can anyone tell me how to make a version of this with hakerrank?


Fixes #406 - Improve stringify architecture to allow for maximum scalability

JSON.stringify has its limits, and because of such it can become impossible for large scale / enterprise applications to crash into a screeching halt due to this limitation.
Streams to the rescue!
By using a stream, we can break apart the large POJO (or Object Literal if you will) into smaller "chunks", stringifying the chunks themselves while not losing any integrity of the data.  In fact, streams can handle gigs of data (this is what theyre really good at!)
So this PR is really just that, streamifying the write layer so that a large scale/enterprise app may generate docs without this issue.
While it may be an edge case, it really helps a lot.
Please review, and if you need anything such as changes, do let me know!
Big thanks for making an awesome doc generator! I hope to contribute more often!
(fixes issue #406)

Ran into an issue not caught by unit tests, going to close this until ti is fixed.

See PR #479


Link for TF 2398

Smart seek costing is discussed here: https://dba.stackexchange.com/a/149933/32281

Thanks, updated via https://github.com/ktaranov/sqlserver-kit/commit/684c1a71227763492124d9516621266b7eefc6bd


Test and document centos on vsphere

As a user I want to be able to spin up worker nodes on vsphere that use CentOS as distribution.
Acceptance criteria:

There is a documentation on how to import/create a suitable image for centos on vsphere
An image in our vsphere test cluster was created by following the steps documented
The e2e tests are extended to also test CentOS on vsphere

@pkavajin  @alvaroaleman please write what this issue is about.

@pkavajin Updated the description. Is it sufficent now?

@alvaroaleman regarding "There is a documentation on how to import/create a suitable image for centos on vsphere" is there already some documentation for e.g. ubuntu or sth to have a look at? Beside that, it looks fine for me, ty :-)

Yeah, there is a minimal doc that just contains Ubuntu instructions: https://github.com/kubermatic/machine-controller/blob/5c11b45346a6e22b6a3a0538a3d568c48da342bc/docs/vsphere.md#vmwware-vsphere


Small text changes

Some small changes I did while reading.
Feel fee to incorporate what you like and discard the rest.

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @andre-richter (or someone else) soon.
If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.
Please see the contribution instructions for more information.

bors r+


SteamVR support not working

SteamVR Support is currently not working with build OSVR-Core-Snapshot-v0.6-413-g87c30a2-build199-vs12-64bit.

Have you followed the instructions over at https://github.com/OSVR/SteamVR-OSVR ? If so, and you're still having trouble, email<EMAIL_ADDRESS>Thanks!


Jupter notebook add cell above / add cell below

When using the "a" command in jupternotebooks, a cell is often not added above the current cell but on top of the notebook in the very first line. However, "b" (for adding a cell below) usually works as intended.

Yeah the keymap extension is remapping core commands:
https://github.com/microsoft/vscode-jupyter-keymap/blob/8380aa7a3c6cb90cf59ea1c91ce71a4499ee5985/package.json#L52


trojita: init at 0.7

Motivation for this change
A Qt mail client.
Things done

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

[x] NixOS
[ ] OS X
[ ] Linux

[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

@ttuegel OK? Package works. I kept it out of kde5 since it requires QtWebKit.
We can ignote Travis since it fails with

No space left on device


[Feature Request]: Additional embedding fine-tuning features

Feature Description
Hi, it seems LlamaIndex is lacking two fine-tuning features which are very easy when using the FlagEmbedding package instead:

Hard negative mining
Model merging via LM-Cocktail

Reason
Both of these can significantly impact performance.
Value of Feature
High!

Thanks @austinmw for the request. Would the workflow then be to train these models and upload them to HF hub for example for inference?

@austinmw seems a good feature to add. if you could help, that would be great.
otherwise, I will look into when I get time

Still relevant


Autocorrection compatibility issues

Autocorrection uses very similar approach with process_autocorrect(keycode, record), so make our send strings actually queue the keys for autocorrect too + maybe dequeueing if we find how

As I said multiple times - autocorrect and st have very different goals

Autocorrect:

You have typos which you dont wanna type normally
They are here just for a fallback

Sequence transtform:

You have sequences which you want to type normally, you dont want to type full words, we even have training mode to force the user to type sequences and not full words
Sequences are the intended input

Regard implementation details - I believe that we should just process_autocorrect(keycode) each time st types out something, and do the same for process_autocorrect(KC_BACKSPACE) each time we delete something

I thought about this a bit again. I think the best solution is to allow the user to specify a second dictionary with rules that they don't want the training mode to trigger on.
These rules would go in their own trie that is appended on the end of the existing trie (so that we can still reference them with a single offset) and the rules matched would process them but rules search would ignore them.
Bonus, a user could put most of their rules in here and just have training mode trigger on a small subset, which could be nice for people trying to learn them one block at a time, or people with huge rulesets that are seeing performance issues on search.


MSAL Lib conflict issue fix

Pull Request Description
This PR resolves, MSAL lib conflicting with ADB environments'

Future Release Comment
[Add description of your change, to include in the next release]
[Delete any or all irrelevant sections, e.g. if your change does not warrant a release comment at all]
Breaking Changes:

None

Features:

None

Fixes:

None

E2E tests on databricks
MSALFix.docx


Create Branch

"Create Branch" context menu command
"Create Branch" command palette command
Dialog to
-- Select a source to branch from (heads of other branches initally), defaults to current branch head
-- Type name of the new branch
-- Checkbox to track and push to origin immediately
-- "Create Branch" and "Cancel" buttons
-- Esc cancels and closes, Enter submits
On dialog submit validate
On successful validation
-- switch to source branch (if necessary)
-- create branch
-- switch to branch
-- track and push branch to origin (optionally)

Implementation Details

Create dialog with JS not coffee script and without sourcepens.  See go-to-line plugin for inspiration.

@UziTech,
Wanted to give you a chance to review this before I start on it.  Any comments?

looks good

sorry I have been changing the code around a lot lately to make it easier to add new commands and hopefully get around to tests fairly soon. But I am done changing it. Pull the new code and it should be a lot easier to implement this

Thanks Tony.  I haven't had time lately to work on it and it might be that
way for awhile yet.
On Tue, Feb 14, 2017, 9:11 AM Tony Brix<EMAIL_ADDRESS>wrote:

Closed #30 https://github.com/UziTech/context-git/issues/30 via 19a5cd3
https://github.com/UziTech/context-git/commit/19a5cd32615e61e064d7338a94ba24054c261c16
.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/UziTech/context-git/issues/30#event-961517386, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA_ach5hbZiA41M8OWpqrFon58R91YGjks5rccQWgaJpZM4Lt3MB
.