Feat/projectspecific s3

name: Pull request
about: Contribute your changes to the project
title: '[pull-request]'
labels: ''
assignees: ''
Description

Download email attachments from given presigned urls
Refactoring: Use javax.validation to validate event bus messages
Improve dev environment

Reference
Issues #23
Checklist

[ ] Acceptance criteria are met
[ ] Pipeline has been run successfully
[ ] JUnit tests have been run successfully
[ ] Changelog is adjusted
[ ] Documentations are completed
[ ] Frontend is tested
[ ] Created sub-branches are deleted
[ ] Boards are updated ( Digitalisierung , Support , Zenhub )
[ ] feature process is created or extended
[ ] git-ops is customized
[ ] Openshift environments are prepared (Secrets, etc.)

Super Job +1
Wollen wir ein Issue machen, um es ins monorepo zu migrieren?

@dominikhorn93 Danke für die Review 😃
Eine Issue bzw. Epic habe ich schon erstellt. Ich bereite das für das Planning noch ein wenig auf.
https://app.zenhub.com/workspaces/digiwf-621f70bf50ea1100120b7e93/issues/it-at-m/digiwf-project/356


Question on subtyping of polymorphic types

I'm interested in Flow's type system. I'm not sure this is the right place to ask theoretical questions about it, but I could not find e.g. a mailing list.  If applicable, please direct me to another more appropriate channel.
First question: if I read correctly the description of the subtyping for polymorphic types (flow_js.ml), it seems to be defined as:
S <= forall X:U. T   iff  S <= T[X:=bottom] and S <= T[X:=U]
i.e. subtyping is checked by instantiating twice the polymorphic type, once with bottom, once with the quantification bound.
Is that right?
Applying to T == X -> X and U = top, this would imply that the intersection type (bottom -> bottom) /\ (top -> top) is a subtype of "forall X:top. X -> X", which seems obviously wrong.

cc @avikchaudhuri @bhosmer

Is there a more appropriate place to ask for such questions?

This should probably be closed. The asker didn't get an answer (though this probably was the best place to try), and the way subtyping on polymorphic types works has changed a few times over the years since 2016.
FWIW the given example is rejected, as one would hope, by Flow now. Here's a program that tests it:
(f: (empty => empty) & (mixed => mixed)): (<X: mixed>(X) => X) => f;

Trying that on v0.162.0 produces the error:
1: (f: (empty => empty) & (mixed => mixed)): (<X: mixed>(X) => X) => f;
                                                                     ^ Cannot return `f`
    because empty [1] is incompatible with mixed [2] in the first parameter. [incompatible-return]
References:
1: (f: (empty => empty) & (mixed => mixed)): (<X: mixed>(X) => X) => f;
        ^ [1]
1: (f: (empty => empty) & (mixed => mixed)): (<X: mixed>(X) => X) => f;
                                                         ^ [2]

A similar error also appears on v0.37.0, the oldest version conveniently available, which is from late 2016.


Free SWIG string input arg

Solve Issue https://github.com/world-federation-of-advertisers/cross-media-measurement/issues/1636


menu: add additional sort options

Bring this in line with Hugo and the children shortcode

I tested this today but noticed that sorting by date always sorts by descending date. Did no one ask for ability to sort by ascending date? Not a problem though.

I left the sort direction out of the equation, yet. This would make it necessary to introduce a further option into the sites config, the front matter and the children shortcode.
As I am lazy and focused mainly on #685 (#684 was actually a preparation step before tackling #685) I'll postpone it until someone asks.


overfit when training on small datasets

Feature request
I found that autokeras often overfit when training on small datasets, so the test accuracy was very low.Can autokeras add some regularization when training?Or, are there other solutions?

A few questions,

How small of a dataset are you talking about?
Have you created your own network to solve this?
If so, what was the difference in performance?
What architecture did autokeras create?

Some datasets are just plain too small. I would recommend looking into data augmentation.

Answer the questions:
1、I extracted five categories from the “Stanford dog” dataset.There are about 100 images in each category
2、I use it finetune pre-training resnet15, and the final classification accuracy is close to 98%.However, the final model generated by autokeras has a classification accuracy of only 78%
3、Autokeras generates a model with nearly 150 layers
4、In constant.py, DATA_AUGMENTATION = True, and whether I need to be augmented while building the dataset??
@isaac-gs thank you

Sorry about the delay.

That does not seem to be enough. I would look at this blog post for inspiration on data augmentation techniques. Or many other posts on the topic. The code for this project currently has static data augmentation, but you could pretty easily modify it to do more.
Are you saying that your alternative technique was using resnet15 without autokeras? That makes sense. Resnet15 is thoroughly trained to recognize a large number of important features. You should not expect autokeras to be able to beat that with the amount of data you have. For the number of classes in the Stanford dog dataset (unless you aren't using all of them) that seems like pretty good performance.
Whether you need to be augmented while building the dataset? What do you mean? You should be able to tell the classifier to do augmentation with an argument. See this, check ImageSupervised for documentation.


Inside WSL2 cannot mount ext4 filesystem with casefold option

Windows Version
Microsoft Windows [Version 10.0.22621.1992]
WSL Version
<IP_ADDRESS>
Are you using WSL 1 or WSL 2?

[X] WSL 2
[ ] WSL 1

Kernel Version
<IP_ADDRESS>-microsoft-standard-WSL2
Distro Version
Ubuntu 22.04.3 LTS
Other Software
No response
Repro Steps
Trying such steps with filesystem to have casefold option effective:

$ dd if=/dev/zero of=~/image.raw bs=1 count=1 seek=$((2**24-1))

$ mkfs.ext4 -O casefold ~/image.raw
mke2fs 1.46.5 (30-Dec-2021)
Discarding device blocks: done
Creating filesystem with 4096 4k blocks and 4096 inodes

Allocating group tables: done
Writing inode tables: done
Creating journal (1024 blocks): done
Writing superblocks and filesystem accounting information: done

sudo mkdir /mnt/loopfs

$ sudo losetup /dev/loop0 ~/image.raw
5.==> Error!
$ sudo mount -t ext4 /dev/loop0 /mnt/loopfs
mount: /mnt/loopfs: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.

Expected Behavior
If above step 2. instead done as such without casefold option involved:
$ mkfs.ext4 ~/image.raw
then other steps work just fine and have then final outcome like such:
$ df -kh /dev/loop0
Filesystem      Size  Used Avail Use% Mounted on
/dev/loop0       11M   24K  9.9M   1% /mnt/loopfs

Actual Behavior
Getting unexpected error on mount. Tried this approach via VirtualBox and same Ubuntu OS VM - works fine for casefold case, so looks like WSL specific bug.
Diagnostic Logs
No response

@andrejusc you need a kernel with CONFIG_UNICODE enabled. Current WSL2 kernel has # CONFIG_UNICODE is not set
Also, check dmesg output for details:
EXT4-fs (loop0): Filesystem with casefold feature cannot be mounted without CONFIG_UNICODE

@elsaco - is that done on purpose, i.e. # CONFIG_UNICODE is not set for WSL2? Does it mean that if I want to utilize that - I need to rebuild kernel myself or somehow else via known configuration files?


Flutter Text Fields Auto-Capitalization Configuration Guide

Proposed title of article
Flutter Text Fields Auto-Capitalization Configuration Guide
Proposed article introduction

If you are designing an application’s sign-up and log-in forms, you will need an input field. Flutter is one of the popular open-source frameworks to create an interesting mobile application for android and iOS apps. TextField is an input element that holds alphanumeric data like address, name, password and much more. It enables people to enter details on the on-screen or hardware keyboard. When creating a native mobile application for your business, you can hire an app developer who will use the TextBox widget to create forms, search experiences and send messages.

Key takeaways

By the end of this article, the following is expected;

Tips for auto-capitalization in Flutter’s TextBox
Critical properties of TextField widget in a flutter
Change Keyboard Type
Change TextInputAction

Article quality
This article will be on point, simple to understand, well formatted and I'm sure users will be able to learn the procedure of Configuring Auto-Capitalization Behavior in Flutter’s Text Entry Fields. The code snippets in this article will be simple to understand and implement. I hope we will have a good ride all along.
References
N/A

Thank you for submitting your topic.
After some careful consideration, it struck us that this topic may be a bit over-saturated throughout other blog sites and official documentation.
We believe this is the best way for students to build a great portfolio (for potential employers) is by building what does not exist and what can provide the most value.
Please feel free to suggest an alternate topic to explore. 🚀


use make update-go-verison to update go version in Dockerfile

Thanks for contributing!

What type of PR is this?
release/none
What this PR does / why we need it:
release/none
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

It seems that there is this tag environment variable, but it got a null value in CI.
echo "tag=$(git ls-tree --full-tree HEAD -- ./images/spiderpool-base | awk '{ print $3 }')" >> $GITHUB_ENV

It seems that there is this tag environment variable, but it got a null value in CI.
echo "tag=$(git ls-tree --full-tree HEAD -- ./images/spiderpool-base | awk '{ print $3 }')" >> $GITHUB_ENV

yes, I'm not very familiar with this area, could you tell me how to fix the CI errors? @ty-dc

It seems that there is this tag environment variable, but it got a null value in CI.
echo "tag=$(git ls-tree --full-tree HEAD -- ./images/spiderpool-base | awk '{ print $3 }')" >> $GITHUB_ENV

yes, I'm not very familiar with this area, could you tell me how to fix the CI errors? @ty-dc

Maybe setting the fetch-depth field to 0 will make CI pass, you can try it.
      - name: Checkout Source Code
        uses: actions/checkout@v4
        with:
          persist-credentials: false
          fetch-depth: 0
          ref: ${{ env.event_ref }}

Confusingly, the CI didn't trigger. We will focus on CI status.

My code is

and the log in ci is

It seems my code is not work

I tried it and it seems to work.
/usr/bin/docker buildx build --file ./images/spiderpool-base/Dockerfile --iidfile /home/runner/work/_temp/docker-actions-toolkit-jDPRjT/iidfile --platform linux/amd64,linux/arm64 --provenance false --tag ghcr.io/ty-dc/spiderpool/spiderpool-base:44bfacb93132697eacbdd5faddcfc8b38894ead3 --metadata-file /home/runner/work/_temp/docker-actions-toolkit-jDPRjT/metadata-file --push ./images/spiderpool-base

See if it helps you? refer to here

In PR #3316 I tested this phenomenon. This is a CI bug, but due to the default nature of the action: "The submitted PR contains workflow changes, but when running CI, the process triggered by the workflow of the master branch is still used."
I submitted a PR to pre-fix this issue, you can rebase the main branch later.  thanks .

Hi, a friendly push @duanmengkk , the problem is fixed, you can rebase main, thank you.


Handle when we have both partial and full values for config parameters

It turns out that when we bulk set a config parameter, zwave-js caches the full parameter value in addition to the partials. This meant that after someone first used bulk_set_partial_config_parameters, it would not work on subsequent requests without restarting the server to reset the cache because the logic assumes that you either have partial values or a single full value. This is something we would have had to handle anyway if Al ends up providing separate ZwaveValues for both the full value and all of the partial parameters which he has mentioned wanting to do, so this is an improvement regardless.
While I was there, we now fall back to async_set_config_parameter in cases where we can potentially still set the value. There's no point throwing an exception if we don't have to. We do log an info though to let the user know what happened.
We should do a patch release for this ahead of the 2021.4 release
Fixes home-assistant/core#48657

linter once again: zwave_js_server/util/node.py:90:0: R0914: Too many local variables (16/15) (too-many-locals)


Dialect how to set up is 2005

Look at the document, but it is still 2012

You need to setup per connection setting.
https://volkanceylan.gitbooks.io/serenity-guide/content/howto/how_to_set_database_dialect_for_connections.html
SqlConnections.GetConnectionString("Default").Dialect =
SqlServer2005Dialect.Instance;


Imbalanced join workflow

Closes https://github.com/coiled/benchmarks/issues/882.
Benchmark for merging two dataframes, one of which is a lot bigger than the other.

Benchmark for merging two dataframes, one of which is a lot bigger than the other.

When I think of an imbalanced join, it is a join where the individual result partitions are imbalanced (e.g., very few customers account for most of the orders in an online shop). Is this dataset imbalanced because one side is larger than the other or is there actual imbalance on the partitions/join predicates?

For those curious about the dataset here is the repo and the notebook on what this data has: https://github.com/coiled/imbalanced-join/blob/main/simulate_imbalanced_data.ipynb

Thanks for the clarification on the imbalance, @j-bennet!

data is further grouped by group_cols, and then aggregated. The size of groups is very uneven, with some groups containing hundreds of records, and some containing millions.

I actually poked around here for a while and this is not the entire truth.
What is imbalanced here is the initial partition size. When we calculate the distribution of partition sizes we can see a very strong imbalance with partitions with partition sizes ranging from a few hundred KiB up to ~3GiB (as measured by dask.sizeof)

However, once the groupby is done we get an extremely homogeneous partition size of about ~17MM rows each. I'm currently running another job to see how and if the group sizes actually vary.
What I can confirm is that P2P doesn't seem to be able to cope with this. I do see OOM failures because some buffers are overflowing. This is something we should look into

@fjetter

What is imbalanced here is the initial partition size. When we calculate the distribution of partition sizes we can see a very strong imbalance with partitions with partition sizes ranging from a few hundred KiB up to ~3GiB (as measured by dask.sizeof)

I think that's why we need that set_index. This data was simulated with a similar number of records in each bucket, so using those buckets as divisions ensures pretty even partitions.

A couple of things are wrong here

The input dataset df1 is imbalanced as described above such that some partitions are super large while others are tiny. There is also an ordering to this, namely the first ~6.5k partitions are tiny while the last couple hundred are large. Therefore, if we work through the dataset in priority order, we will process all large partitions together. Particularly on the default machines you are using here, with 16 cores, this means that we'll be processing 16 large partitions at the same time.
The way this join is constructed is that this effectively creates a worst case situation. The dataset is constructed in a way that significantly expands the size of the joined partitions. The intermediate output for the joined dataset has partitions that range from 1MM up to a couple hundred million rows which corresponds to ~50MB up to 15GB
This heavy imbalance is avoided by the set_index call because it does not only redistribute the data (which appears to be spread rather homogeneously along the axis of bucket) but also slices the partitions to a default size of about ~128MB which effectively negates the severe imbalance of the dataset
I tried reproducing the same or similar rebalancing by just calling repartition(partition_size=...) which helped somewhat but ultimately failed with memory issues because the repartition-split tasks where not computed fast enough (this is basically "root task overproduction" where the splits are not processed fast enough s.t. the very large to-be-split frames stay in memory. This effect does not happen with set_index since we have a P2P shuffle in there which does not exhibit this behavior (it's not that simple, see also https://github.com/dask/distributed/pull/7926)

Apart from "things are not working / scheduled the way they are supposed to" there is also the question why set_index + groupby is not successful.

The merge operation after set_index is simply a broadcast join (there are two broadcast joins implemented (?). This chooses the route of single_partition_join) but no indexing information is preserved, i.e. the groupby afterwards needs to perform a shuffle operation as well even though the data is already properly sorted by bucket. This is very closely related to https://github.com/dask/dask/issues/9425
This knowledge is then (ab)used to make the map_partitions work. Ideally, we'd be able to detect this ourselves

TLDR

neither dask.order, nor the scheduler account for partition statistics. If we knew that the input stream was so inhomogeneous we may be able to distribute load more homogeneously. I think this is a long short and ROI is rather low
Preserving partitioning and sorting information seems like the biggest win to enable this workload (https://github.com/dask/dask/issues/9425 ). I hope something like this can be enabled with the new dask-expr approach (cc @mrocklin)
Lastly, without any indexing, the P2P algorithm should be able to handle this well. I suspect this is again a root-ish task issue which is why I attempted to fix this with https://github.com/dask/distributed/pull/7926.

Side note: Many / most of the problems I am discussing above can be played with on much smaller data. I ended up reducing the cluster to five workers while also reducing the data sizes by a factor of ten, e.g.
# this effectively reduces the size to 10% while keeping most of the imbalance of the dataset still intact
large_df = dd.read_parquet("s3://test-imbalanced-join/df1/").partitions[::10]

from coiled import Cluster
from distributed import Client

cluster_kwargs = {
    "n_workers": 5,
    # Memory optimized VMs are a bit better suited for this workload. We are bottlenecked by network, not CPU load
    "worker_vm_types": "r6i.2xlarge",
    "compute_purchase_option": "spot_with_fallback",
}
cluster =  Cluster(
    **cluster_kwargs,
)
client = Client(cluster)

I suggest to not merge this PR since I do not consider having the workaround with map_partitions running regularly to be valuable. Once either P2P is more robust (cc @hendrikmakait ) OR https://github.com/dask/dask/issues/9425 is closed we should revisit this because dask should then be able to just run a groupby.


deepface model

I take the FBdeepface.py file and download VGGFace2_DeepFace_weights_val-0.9034.h5.zip model. I implemented it in my code.
I am working on the face recognition system. I use your model to predict face.
Is it normal to take 50 seconds to predict?

Keeping in mind the dataset I used  contains 450 images(10 people)

Yes, this is normal because deepface is very complex model. It has 120M params. You might switch to OpenFace if you do not have a strong computer or real time demand. OpenFace just has 3M params.
BTW, You can find the comparison of these models here: https://sefiks.com/2020/02/17/face-recognition-with-facebook-deepface-in-keras/


Support Django 4

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

50 of 57 (87.72%)  changed or added relevant lines in 6 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.1%) to 94.858%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

computedfields/resolver.py
42
49
85.71%

Files with Coverage Reduction
New Missed Lines
%

computedfields/resolver.py
1
93.44%

Totals

Change from base Build<PHONE_NUMBER>:
-0.1%

Covered Lines:
1134

Relevant Lines:
1180

💛  - Coveralls


Linux release for the servers

Opening this since #1 was closed.
Servers are usually hosted on linux machines. A linux release for the server portion would be welcomed, having to go through wine is not exactly ideal, and I'm not sure if it even works.

It has to run under wine unless you feel like reversing the whole server part. Game doesn't exist on linux so no native compilation for it.

@PixieCore from what I understand, reimplementing the server is exactly what this project did.

@Kuratius No wrong, it made it properly work. FULLY REBUILDING IT. Is another story.

@PixieCore from what I understand, reimplementing the server is exactly what this project did. Squirrel can run on linux.

this project hooks the existing game client to host servers, it doesn't rebuild the server from scratch, tho it does rebuild alot of missing gamelogic, a native linux port would require reverse engineering a significant amount of code that only respawn has access to, so a native port is likely out of the question

@BobTheBob9 Could you reopen this? Even if a non wine release is not possible, ensuring it runs smoothly under wine (especially headlessly) would already be a great boon.

For the record, I have successfully run a dedicated server (~1840 MB RAM, ~110ms CPU time on a Ryzen 5 3500U) on Fedora 35:

ext4 filesystem (I've had issues with other ones -- ntfs3 seems to work most of the time, but I've had tf2 complain about corrupted files a few times; overlayfs has the same issue unless it's backed by ext4)
Titanfall 2 (copied game files, not even fully installed)
Northstar v1.1.2
Mesa 21.3.2 (distro packages)
Wine 7.0.0-rc2 (distro packages)

export HOME=$PWD
export WINEARCH=win64
export WINEPREFIX=$HOME/Wine
export LIBGL_ALWAYS_SOFTWARE=1
export WINEDEBUG=-all
cp Titanfall2/NorthstarLauncher.exe Titanfall2/Titanfall2.exe
wine Titanfall2.exe -dedicated -multiple

DXVK must NOT be used since we want to use llvmpipe for software rendering via wined3d, and since WARP isn't supported on anything but Windows, we can't use -softwared3d11.
I am going to

I'm working on a wiki for Northstar at the moment whose content will hopefully be moved into the official Northstar wiki in the future.
I added a section for hosting dedicated servers on Linux, would be great if someone that managed to get it working could add the necessary steps via pull request on the repo linked to the gitbook.

I am going to see if I can reduce the installation size, then try packaging it in a Docker container, then try to get it to run under emulation or dynamic recompilation on ARM.

Please once you figured this out @ me on the post where you did it.
I am really really hyped for this.

I managed to create a docker image running headlessly using lavapipe+dxvk+wine with the help of @pg9182's work
https://github.com/Legonzaur/northstar-server-headless

Speaking of which, I'm working on a more polished container in pg9182/northstar-dedicated, where I also have collected many of my notes on running the NS dedi on Linux.

I am going to see if I can reduce the installation size, then try packaging it in a Docker container, then try to get it to run under emulation or dynamic recompilation on ARM.
Maybe you could try to run Northstar via FEX or box64?

I have published my container.

Maybe you could try to run Northstar via FEX or box64?

@r3muxd tried this: FEX is too slow, and box64 is currently missing an opcode.

@r3muxd on what device did you try that?

Oracle ARM

What CPUs do they have?

@Hacker1245 Ampere 3.0 GHz Ampere Altra 80C.
2-4 Cores on the free tier.

that should run x64 emulation fine, so it's FEX not being fully optimized yet. Wonder how box64 will do once the unimplemented opcode is fixed.

Yes, it should be fine with box64's recompilation; it's pretty fast (I use it as a build server and a remote desktop).


Notes:  Tag does not work in Viewer

If you create a note and using a paragraph for e.g.:

Title
Detail explanation of note

the generated Note in the Viewer will look like:

Title <br> Detail explanation of note

Sketch 41 (35326) + Sketch Measure 25. Nov 2016

Thank you for feedback, I will fix it~


HTML report links to GitHub main branch baselines rather than versioned baselines

Do we want the link at the top right to point to the versioned baselines? Currently it just points to main.

I think pointing to the versioned baselines might be better, but I don't have strong feelings about it. Everything else looks good.
Originally posted by @adhilto in https://github.com/cisagov/ScubaGear/issues/651#issuecomment-1804301488

Additionally, the main branch baseline link is hard coded into both the parent and individual templates right now to the main branch. So the fix gets a bit more involved, but changing the New-Report method to search for a new {BASELINE_URL} template and doing the search and replace could work. It isn't terribly difficult, but requires some thought and testing.

Have done some work on this and ran into something with the urls.

I believe the cause for this 404 is from this commit from PR #802
https://github.com/cisagov/ScubaGear/pull/802/files#diff-6202652ff4864151d5a7c7986072e0a610d2c96405454453cc720024732720c6
Would we want to ignore this 404 issue since the baselines are moved to a different location for the new release? I ask because I'm using a similar code line to the commit above to do the {BASELINE_URL} replace in the individual template and testing that line is giving me the same 404 issue.


NeighborSampler connected target nodes and their n_id

❓ Questions & Help
Hi,
is there any way to force the neighbor sampler to have (1-hop) connected target nodes for the last layer?
The reason is that I would like to implement a pairwise regularization loss for my network.
I am also confused about the n_id attribute of the neighbor sampler. In the documentation you say that they are: "the IDs n_id of all nodes involved in the computation". However, size(n_id) is for me always the same as size adj.size[0], meaning n_id only holds the source nodes of the first layer, or am I wrong? How would I get the n_ids of the target nodes of my final layer for example?

The target nodes are also included in n_id (and are placed first in n_id. The target node id of the last layer hence corresponds to n_id[:batch_size].

Thanks for the quick reply!
I want my target nodes (of the last layer) to be one connected component of my large graph, instead of just randomly distributed nodes that are not connected to each other. This will of course lead to duplicates in the n_ids etc. Could you give me a hint on how to achieve this?

I think the easiest way to achieve that would be to modify the NeighborSampler class directly. Instead of passing randomly shuffled node indices to the underlying DataLoader, you can pass in a list of a list of connected components, and use that in conjunction with a batch size of 1.

ok, thank you! I will give that a try and report back if it worked...

I tried to do what you said, by passing a custom torch.utils.data.Sampler to the NeighborSampler via the sampler arg (which is in turn passed to the underlying torch.utils.data.DataLoader). However, for some reason it overwrites the sampler function in the NeighborSampler (which is passed via the collate_fn arg to the underlying DataLoader). I couldn't quite figure out why this happens.
Long story short, I achieved what I wanted to do by simply sampling more hops than I have layers in my network. This also leaves me with final embeddings for connected components...


Global module and post_content valute in wp_posts table

Problem Description
I need to periodicaly check my wp_posts table, and search all posts with some outdated data. Problem is that my blog has 4000 + posts, and all my posts uses some global modules.
So problem is when I update my global module with new data, it is rendered correctly on my posts containing this global module. But when i open wp_posts, and look at post_content value, there is still old data in global module tag. When i click save, then post_content contains correct data.
Is it possible somehow to simulate DIVI save to some POST ID, where it will save with fresh data for global modules?
I was tried with:
$post = get_post($postId);
wp_update_post($post, false);
But looks like there is no DIVI hook attached to this method., which does functionality that i need .
Steps To Reproduce

Create global module with text "FIRST TEXT"
Create 2 posts with this global module
Edit global module in Divi->Divi library, change that text to "SECOND TEXT"
Check post_content for your posts, they still contain "FIRST TEXT" instead of "SECOND TEXT"

Screenshot and/or gif

Hi:
I would also like to know the answer to this.
I have external programs that, for example, check post_content for broken links, and it is finding the old information (in your example, FIRST TEXT) instead of the updated information (SECOND TEXT) Divi is actually showing on the page.
We also sometimes have to search through SQL for instances of a term.  For example, we list business locations on the footer.  If we remove a location, it is IMPOSSIBLE to search through SQL for remaining instances in other page copy because the database shows 1000 pages of the OLD footer content in post_content.


Generated Code Structure

From my OpenApi spec, I see generated code like this:

And the selected class has the following namespace:
namespace ApiSdk.Items.Item.Images.Item.Item.Item.Item.Item.Item.Item

..which in turn means that you would need the same kind of using statements everywhere you use the code.
That does not seem feasible to me. An API user cannot be expected to work with that.
Design or Bug?

Design https://microsoft.github.io/kiota/extending/requestbuilders.html#pathparameters
You rarely (if at all) have to reference the request builders themselves, you might have to reference the request body if you're sending a POST/PATCH and the request body is defined inline which will be placed next to request builder.
I'm guessing you ended up with this result because you have multiple single path parameters in the API description like:
/Items/{id1}/Images/{id2}/{id3}/{id4}/{id5}/{id6}/{id7}/{id8}
Which means you'll be able to build a request like this:
client.Items["id1"].Images["id2"]["id3"]["id4"]["id5"]["id6"]["id7"]["id8"].GetAsync()

I'm guessing you ended up with this result because you have multiple single path parameters in the API description like:
/Items/{id1}/Images/{id2}/{id3}/{id4}/{id5}/{id6}/{id7}/{id8}

Yes, something like:
    [Route("/Items/{Id}/Images/{Type}/{Index}/{Tag}/{Format}/{MaxWidth}/{MaxHeight}/{PercentPlayed}/{UnplayedCount}", "HEAD")]

Those paths exist because when using images in browser (html) clients, you need GET requests for specifying the image source of DOM elements.

Which means you'll be able to build a request like this:
client.Items["id1"].Images["id2"]["id3"]["id4"]["id5"]["id6"]["id7"]["id8"].GetAsync()

Oh....what is this? This is how I'm supposed to do a request?
So, there's no type checking, it's all strings? That syntax is horrible. How do I know which param is which and which type?
The document you referenced says something like "The matching function will be chosen automatically". Does it mean that it chooses even the REST API endpoints based on the supplied parameters?

So, there's no type checking, it's all strings? That syntax is horrible. How do I know which param is which and which type?

To be fair, if someone so that API call, with no OpenAPI description, or no additional context, how would the guess which is what?
GET /Items/abdec/Images/wide/30/football/png/1920/1080/10/3

They might be able to deduct some of the parameters based on common knowledge (png, the first id, 1920, 1080) but some will be really hard to understand (wide, football, 10, 3). Inserting additional segments would have made for a more self-explanatory API experience.
GET /Items/abdec/Images/Type/wide/30/Category/football/Format/png/Width/1920/Height/1080/PctViewed/10/UnplayedCount3

Parameter types described as integer might translate to an integer in the dotnet indexers, I don't believe we have tested for that but this should be easily fixable if not the case today.

The document you referenced says something like "The matching function will be chosen automatically". Does it mean that it chooses even the REST API endpoints based on the supplied parameters?

No, what that meant is depending on how many path parameter you have per any given segment, it'll be translated in the following symbol on the chained API:

zero parameters : a property
one parameter: an indexer
two or more: a method
But you'll always get a single dotnet chained API path per described HTTP API path.

Why are we talking about guessing the placement of path parameters?

Because the generated client can only get as good as the API was designed to begin with. Instead of appending all the parameters in the route template this API could have:

Added some intermediate path segments like I demonstrated, which would have introduced additional properties in the chained path.
Used query parameters, which would have led to a shorter path and provided names to the parameters (e.g. {?width, height, format})
Used path segments with multiple parameters (e.g. withSize({width}, {height})/withFormat({format}) which would have led to method + named parameters

In this API design two concerns are mixed:

Indexing into a collection, like the Id parameter
Providing parameters values for functional aspects

Building the path string doesn't provide any validation whatsoever, and makes a moot point of using a generated client.
Using a single function flattens the whole paths tree which brings a whole other set of problems (mostly name conflicts and discoverability) for: overloads, additional path structure (e.g. what if there is a Videos root path? etc...)
Finally, indexers are only used in CSharp, because it's the only language they exist in, other languages generate methods instead. Like
client.itemsById("{Id}").ImagesByType("{Type}").ByIndex("{Index}").ByTag("{Tag}")...

Both of these ways:
client.Items["id1"].Images["id2"]["id3"]["id4"]["id5"]["id6"]["id7"]["id8"].GetAsync()
client.itemsById("{Id}").ImagesByType("{Type}").ByIndex("{Index}").ByTag("{Tag}")...

..are the very last ones for how I would want to access a REST API from a client.
From my personal point of view, those patterns are misdirected. Essentially, huge effort is taken  here in order to make C# (or another .NET language) behave like much inferior languages, in parts even like scripting languages.
Even the "Fluent" approach itself has limited value IMO and some severe downsides as well - but that's not the point here.
Even with most fluent APIs, a function call is a function call - a single (logical) function call!
But the idea of splitting a logical (REST API) call in a way that you call function-by-function-by-function.. for every single parameter before you actually execute it, is an extraordinarily bad idea IMO. While you do that, you don't even know which function you will call eventually. It's one of the worst concepts I have heard and seen in a long time.
I don't know who created that concept - please don't take it personal in case.
You have been very very friendly and helpful and patient and I had never expected to come to that conclusion about Kiota.
I really hadn't seen it coming, probably because none of the "Getting Started" docs had any code snippets showing the usage of the generated API.  In that case I would have just silently turned away 😞
Thanks for all your time and your friendly support!
softworkz

I do appreciate the open conversation as well and the feedback, thanks for your (short) time spent on Kiota!

the fluent API design pattern being fairly popular (even in dotnet, if you look at all the asp.net core middleware configuration aspects).

Really? I beg to differ. Because when it would be popular, it would have been quickly adopted in many other places. There were attempts here and there - but no clear success stories.
The reason why it is used with ASP.Net is because they designed it in a way that you are more or less forced to use it because the regular way would just be much worse.
While it has some nice aspects, my major point of criticism is that it "hides" everything you might need. As the architecture is heavily relying on extension methods, those methods don't easily appear in IntelliSense. You always need to 1. import the right nuget package and 2. use appropriate using statements to import the namespaces. Even ReSharper doesn't always get it right.
This has a gigantic impact on discoverability. Normally, when you are new to an API, you can scan through classes and other types, look at functions and their parameters, and you often quickly find what you need.
With the new ASP.Net, I had to spend endless time on reading documentation and doing research on how to do specific things, because you can't find those things from the object model. Even for very basic things, you need nuget packages and reference them, otherwise you don't see them. And you are often not sure whether an approach you read about is the best/latest/most-suitable approach.
Yes, you are right. I'm not a fan of it.
But I would be when it would improve my work. Which it doesn't :-)


UnicodeEncodeError: 'ascii' codec can't encode character '\u2588' in position 88: ordinal not in range(128)

Checklist for submitting an issue to KickThemOut:

[X] I have carefully read the README file and haven't managed to resolve my issue.
[X] I have searched the issues of this repo and believe that this is not a duplicate.
[X] I am running the latest version of KickThemOut.

OS name & version:  Linux kali 4.14.71-kali-v7+
Python version:   Python 3.6
Kamene version:  Kamene was recently installed and updated
Nmap version:  Nmap version 7
Link of Gist:

When typing in the code sudo python3 kickthemout.py
It will load for a long time then states that the gateway ip could not be obtained and to enter manually, when i do i get this error.
Traceback (most recent call last):
File "kickthemout.py", line 788, in
main()
File "kickthemout.py", line 623, in main
heading()
File "kickthemout.py", line 58, in heading
'\n' + 'Version: {}2.0{} \n'.format(YELLOW, END).center(86))
UnicodeEncodeError: 'ascii' codec can't encode character '\u2588' in position 88: ordinal not in range(128)
Please Help i've been working to figure this out for about two days now.

It's a enconding displaying... the header colors......
Just add a # in the line 626 to make the program not calling the banner and info option

Closing since this is a duplicate issue. Thanks!


Integrate translations into assembled output

added --resources option to include translated resource files into the output bundle

mix the translated resources with the ilib locale data so that resbundle can find them

fixed missing dependencies

@gouniLee this is ready for review now


0:0  error  Cannot read property '0' of null on multiple exports

Geting the error in the title when exporting multiple things from one file:
export const c = 'c';

export class Store{
}

The error is reproducible when exporting a single declaration as well:
export let x = 'x';

Looks like the problem is with this line, node.specifiers is null.


Add  and  slots to the  component to allow for more customisation

I would like to use my own components as table cells, ie. <CustomTHead> and <CustomTCell>. Right now the only way to do it, is on a per-column basis, using the column slots, which is highly repetitive. How can I achieve this without adding templates for each column and row slots?
Example use-case
Originally posted by @goodpixels in https://github.com/nuxtlabs/ui/issues/366#issuecomment-1613462031

Hi @goodpixels, is this related to #736?


Space on the left side of the tab when using ScrollableTab

Hello. im just new in flutter, how can i  make the tab to the left most of the screen? i upload a image for the reference. also my code
Headers final List<String> _tabHeaders = [     "Pertinent Data",     "Contact Details",     "Dependents",     "Contract Details",     "Residents",   ];
Column(                             children: [                               ScrollableTabViewWithController(                                 controller: _tabController,                                 children: [                                   Column(                                     children: [                                       ScrollableTab(                                         labelColor: Colors.black,                                         indicatorColor: AppColors.bgColor,                                         isScrollable: true,                                         onTap: (value) {},                                         tabs: List.generate(                                             _tabHeaders.length,                                             (index) => Tab(                                                   text: _tabHeaders[index],                                                 )),                                         children: List.generate(                                             _tabHeaders.length,                                             (index) => ListTile(                                                   title: Column(children: [                                                     Column(                                                       children: [                                                         Text(                                                           _tabHeaders[index],                                                           style: TextStyle(                                                               fontSize: 25,                                                               fontWeight:                                                                   FontWeight                                                                       .bold),                                                         ),                                                         SizedBox(height: 15),                                                         _buildPertinentDataTab()                                                       ],                                                     )                                                   ]),                                                 )),                                       ),                                     ],                                   ),                                 ],                               ),                             ],                           )
Thank you.

Hi @mikeemoves
Thank you for mentioning this missing feature! The tabBarAlignment parameter, which allows aligning tabs to the leftmost side with TabAlignment.start, will be available in the next package update.
We truly appreciate your feedback and support in helping us identify and address this enhancement. Thanks again for using our package and contributing to its improvement! 😊
Here’s a modified version of your code to ensure the tabs are aligned to the leftmost side:
Updated Code
TabBar(
  isScrollable: true,
  tabBarAlignment: TabAlignment.start, // Aligns tabs to the leftmost side
  tabs: [
    Tab(text: 'Pertinent Data'),
    Tab(text: 'Contact Details'),
    Tab(text: 'Dependents'),
    Tab(text: 'Contract Details'),
    Tab(text: 'Residents'),
  ],
)

If this doesn’t fully achieve your desired effect, feel free to provide more context or adjust the layout further!

hi @mikeemoves
The new version of the package, scrollable_tab_view: ^1.0.12, is live now with the tabBarAlignment feature included! I’ll close this issue now as the enhancement has been addressed. Looking forward to the continued improvements! 😊

hi @shyamexe thank you so much too 😁


In the building page, in the sample Mapbox map, add a layer of dots f…

…or all public housing and another layer for the development in question.
Position elements of a panel within the building page using Bootstrap
Make parts of MapboxPortal (building-map.js) more extensible
Make it possible to remove the target building from a Mapbox source when layering sources on the building page

@ptgott I'm up in Vermont with only my phone but from what I can tell this all makes sense. Let's merge it so it's available ahead of Tuesday. I can get back up to speed when I get back in town , Wednesday.


Possible Model Improvements

While searching for background removal solutions, I found a similar project that doesn't have a proper repository. It apparently uses the bodypix 2 model for segmentation which is specialized for humans. Seeing as they both are tensorflow with similar API, it might be worth adding this alternative model as an option for higher performance.

NB, I already have a body-pix model here in the repo, you can test it if you run deepseg with parameter "-m body-pix(...).tflite". It's not optimized yet, however.

There is a lot of information in this repo. I'm using one of their models (deconv_bnoptimized_munet.h5 in a similar project of mine, but the performance is not much better. But there might be another model there.

Oho, interesting find, thanks!

JFYI, I've switched to the Google Meet segmentation model as default (see also #28) and it works way better than either DeepLab or Body-Pix. Closing this for now.

JFYI, I've switched to the Google Meet segmentation model as default (see also #28) and it works way better than either DeepLab or Body-Pix. Closing this for now.


error in wandb report DyMN on OpenMic

The documentation for fine-tuning DyMN on OpenMic includes a reported example run, accessible via the following link: https://api.wandb.ai/links/florians/qo32vrgl.
In this report, the mean Average Precision (mAP) is stated as 91.6, whereas the paper reports a mAP of 84.4. Interestingly, the mAP value I obtained from fine-tuning on my personal computer aligns closely with the paper's reported value.
Upon closer inspection, I noticed that all mAP values correspond exactly to the values of the ROC statistics. This raises the question: could incorrect statistics be logged to W&B?

Hi, thanks for pointing this out. The results in the paper are correct and I think also the code in this repo. The report was messed up somehow. Here are the new reports (from experiments that are still running at the time of writing this answer):
MN10: https://api.wandb.ai/links/florians/a23ye448
DyMN-M: https://api.wandb.ai/links/florians/680sv79u
The mAP values should be correct now.


Fix title and description

~Machine Learning Engineering Management~ - no
Now:

@aguschin  - Pushed another change, didn't want "productionize" to be so prominent - not a real word, more of a slang, to niche for site description IMO, also maybe not great for SEO, please TAL


Setup Infra Accounts for Team Members

Since we're working with Metarch.ai on this project, we need to setup accounts for @devjwsong and @snat-s  on Metarch's infra.

Created accounts for @snat-s and @devjwsong


Current workstation does not support recipe

Soo I got this bug, I'll later try to figure out what mod caused it, but for now I'll at least send the Console log from Prism Launcher. At the beginning you can see what mods I have enabled, I am just messing with anything that looks interesting
https://mclo.gs/gci5UHJ

It is not clear what bug you are experiencing, if the current workstation does not support a recipe, it's just what it says on the tin.

but...it does not support ANY recipe. not even vanilla ones

Can you provide screenshots and information? I have no information to use to debug here.

sorry I just realized I was tired... I need the items and crafting table... I was expecting creative mode to take care of that, my bad


[ISSUE #2226 ]fix 2226.

fix #2226

Codecov Report

Merging #2228 (5a818ba) into master (244a20f) will decrease coverage by 0.05%.
The diff coverage is 66.66%.

@@             Coverage Diff              @@
##             master    #2228      +/-   ##
============================================
- Coverage     58.46%   58.40%   -0.06%
- Complexity     3942     3945       +3
============================================
  Files           621      622       +1
  Lines         17940    17943       +3
  Branches       1700     1700
============================================
- Hits          10488    10479       -9
- Misses         6603     6610       +7
- Partials        849      854       +5

Impacted Files
Coverage Δ

...u/plugin/httpclient/constants/AcceptConstants.java
0.00% <0.00%> (ø)

...henyu/plugin/httpclient/NettyHttpClientPlugin.java
60.78% <100.00%> (+0.78%)
:arrow_up:

...ache/shenyu/plugin/httpclient/WebClientPlugin.java
92.68% <100.00%> (+0.18%)
:arrow_up:

...ache/shenyu/plugin/grpc/cache/GrpcClientCache.java
76.47% <0.00%> (-17.65%)
:arrow_down:

...che/shenyu/sync/data/http/HttpSyncDataService.java
65.04% <0.00%> (-6.80%)
:arrow_down:

...henyu/plugin/grpc/resolver/ShenyuNameResolver.java
63.15% <0.00%> (-1.06%)
:arrow_down:

Continue to review full report at Codecov.

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


scoop update 'force' option is ignored

Attempting to reinstall a package when it is up-to-date using the '-f' option does not work.
C:\Users\davidan>scoop update 7zip -f
7zip: 16.04 (latest version)
Latest versions for all apps are installed! For more information try 'scoop status'

Fixed


Move flush state into shards to allow for flushing shards new & modified

cc @xichen2020 @cw9 @martin-mao @kobolog @ben-lerner @prateek

Coverage decreased (-0.2%) to 77.748% when pulling 71a7132df7c241b7bf4a70a40f119564829ebd73 on flush-newly-added-shards-data into d917e84a8b12d36f521cb7a27dce56a893e8428a on master.

Coverage increased (+0.2%) to 78.157% when pulling 64027ae33c0893fbf5f938ce1495f9c1dfa98f57 on flush-newly-added-shards-data into d917e84a8b12d36f521cb7a27dce56a893e8428a on master.

Coverage increased (+0.2%) to 78.141% when pulling ec09bae550bc9173a7aa937b76086d7d9e5b0553 on flush-newly-added-shards-data into d917e84a8b12d36f521cb7a27dce56a893e8428a on master.

Coverage increased (+0.2%) to 78.145% when pulling 4eb7dc9f25f5b92daaa8f9d437545c41746e6764 on flush-newly-added-shards-data into d917e84a8b12d36f521cb7a27dce56a893e8428a on master.

Coverage increased (+0.3%) to 77.835% when pulling af7a5f82acbcc4cdc74c2570eb56beab5e6450df on flush-newly-added-shards-data into 1c7ab039d2a8dd8f5457fe3ec8704f2688cd78b0 on master.

Coverage increased (+0.3%) to 77.831% when pulling eb907daa2f7687c811729fbcd2d03968c9bffb0d on flush-newly-added-shards-data into 1c7ab039d2a8dd8f5457fe3ec8704f2688cd78b0 on master.

Coverage decreased (-0.2%) to 77.378% when pulling f0985b6ed04c5f660f9522a3fb9984f1af3fd76f on flush-newly-added-shards-data into 1c7ab039d2a8dd8f5457fe3ec8704f2688cd78b0 on master.

Coverage decreased (-0.2%) to 77.355% when pulling 84732961bb67cb9f237d64cc3c9ae0b77d6b82f4 on flush-newly-added-shards-data into 1c7ab039d2a8dd8f5457fe3ec8704f2688cd78b0 on master.


update data.sql

US #1: add horse names in database

/tina - can you have a look at this?

/tina - done


Error on creating sandbox: This AWS account and region has not been bootstrapped

Environment information
System:
  OS: Windows 11 10.0.22631
  CPU: ...
  Memory: ...
Binaries:
  Node: 18.16.0 - ...
  Yarn: 1.22.19 - ...
  npm: 9.5.1 - ...
  pnpm: 9.1.0 - ...
NPM Packages:
  @aws-amplify/backend: 1.0.0
  @aws-amplify/backend-cli: 1.0.1
  aws-amplify: 6.2.0
  aws-cdk: 2.140.0
  aws-cdk-lib: 2.140.0
  typescript: 5.4.5
AWS environment variables:
  AWS_NODEJS_CONNECTION_REUSE_ENABLED = 1
  AWS_SDK_LOAD_CONFIG = 1
  AWS_STS_REGIONAL_ENDPOINTS = regional
No CDK environment variables

Description
When I try to create a sandbox I always get his error message:
This AWS account and region has not been bootstrapped.
Caused By:
 ❌ Deployment failed: Error: amplify-amplifyvitereacttemplate-spieleladen-sandbox-2b171ff521: SSM parameter /cdk-bootstrap/hnb659fds/version not found. Has the environment been bootstrapped? Please run 'cdk bootstrap' (see https://docs.aws.amazon.com/cdk/latest/guide/bootstrapping.html)
    at Deployments.validateBootstrapStackVersion (C:\Users\Goldweb\Spieleladen\preistool\node_modules\aws-cdk\lib\index.js:438:12210)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Deployments.buildSingleAsset (C:\Users\Goldweb\Spieleladen\preistool\node_modules\aws-cdk\lib\index.js:438:10975)
    at async Object.buildAsset (C:\Users\Goldweb\Spieleladen\preistool\node_modules\aws-cdk\lib\index.js:438:197148)
    at async C:\Users\Goldweb\Spieleladen\preistool\node_modules\aws-cdk\lib\index.js:438:181290
amplify-amplifyvitereacttemplate-spieleladen-sandbox-2b171ff521: SSM parameter /cdk-bootstrap/hnb659fds/version not found. Has the environment been bootstrapped? Please run 'cdk bootstrap' (see https://docs.aws.amazon.com/cdk/latest/guide/bootstrapping.html)

Resolution: Run `cdk bootstrap aws://{YOUR_ACCOUNT_ID}/{YOUR_REGION}` locally to resolve this.

[Sandbox] Watching for file changes...

I bootstrapped the environment in both ways: using cdk bootstrap ... and the bootstrap process via the console.

Hey @oe-bayram, could you ensure the profile/account that bootstrapped is being passed with sandbox command using --profile.
https://docs.amplify.aws/react/reference/cli-commands/#ampx-sandbox-Usage

Yes, since I have multiple profiles, I have to use --profile but I still get the error message.

Another thing to check is if the profile is configured to use the same region that you have bootstrapped?

Yes, I checked it already:
[profile preistool]
sso_session = preistool
sso_account_id = XYZ
sso_role_name = amplify-policy
region = eu-central-1
[sso-session preistool]
sso_start_url = https://XYZ.awsapps.com/start
sso_region = eu-central-1
sso_registration_scopes = sso:account:access

Can you confirm that an SSM parameter named /cdk-bootstrap/hnb659fds/version exists in the eu-central-1 region? If not, then that region has not been successfully bootstrapped.

What I've found out so far:
If the region is not set in the config for the profile then I get the error mentioned before.
If I set it in the config then I get another error message:
[preistool]
region = eu-central-1

Error message:
Unable to build the Amplify backend definition.
Caused By: TypeError: Cannot redefine property: preistool
    at Function.defineProperty (<anonymous>)

Resolution: Check your backend definition in the `amplify` folder for syntax and type errors.

I think your config file may be incorrect. The region config for a named profile should look like
[profile preistool]
region=eu-central-1

See here for more details on the format of the config file: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html#cli-configure-files-format

Now I'm using an IAM user  profile with AdminAccess:
In credentials:
[Spieleladen]
aws_access_key_id=MY_ACCESS_KEY_ID
aws_secret_access_key=MY_SECRET_ACCESS_KEY

In config:
[profile Spieleladen]
region=eu-central-1

Now I'm getting the same error message an dthis warning before that:
current credentials could not be used to assume 'arn:aws:iam::ACCOUNT_ID:role/cdk-hnb659fds-deploy-role-ACCOUNT_ID-eu-central-1', but are for the right account. Proceeding anyway. where the ACCOUNT_ID is from another profile.
I have deleted all the other profiles from the credentials and config but I still get the warning and the error message.

Do you have the AWS_PROFILE or AWS_REGION environment variable set? Amplify uses the default AWS credential loading strategy which is detailed here: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html#configure-precedence
Another thing to note is the region and sso_region config are not the same. You would need to set both to eu-central-1 in the preistool profile to use SSO credentials in that region.

No environment variables were set before but setting AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY explicitly did help. Thanks so far.

I have this issue as well but on a separate aws account. The credentials I use are basically identical other that their names. I can run the amplify sandbox in one account but not the other.
Ive attempted this but it does not work:
Resolution: Run cdk bootstrap aws://{My_ACCOUNT_ID}/{My_REGION}

I deleted the stack in cloud formation and initialised it again with npx ampx sandbox that seem to do the trick !


Image for 5.7

MySQL 5.7 introduces the JSON column type, which is used by at least one application I maintain.  Since 5.7 was first released around October 2015, it should be stable enough to include.

This was done with pull request #21


llegal characters found in parameter 'price'

With reference to MainClient.submitNewOrder, I'm getting the following response from Binance:
 Illegal characters found in parameter 'price'; legal range is '^([0-9]{1,20})(\.[0-9]{1,20})?$'.
This only seems a problem with a 2 assets that I'm trading, out of 230. both with a very small number as a price 5.8e-7 - I saw a few posts on some other libs saying that binance expects this to be a string. I've had a look at NewSpotOrderParams interface but this only accepts a number.
I'm sending this as a number, so 5.8e-7 === 0.00000058, initially I thought it was some dodgy conversion on my side converting to string including the scientific notation, but unfortunately this isn't the case.
Is there any additional formatting done inside the lib to convert that number to a string before its sent to Binance?
Been stuck on this for some time so any help or pointers would be greatly appreciated.

Hi @olafkotur
I wrote the NewSpotOrderParams interface to mirror the types from the binance api docs:
https://binance-docs.github.io/apidocs/spot/en/#new-order-trade
My library doesn't do any formatting for this, it just passes on the values you've provided. The only validation would be through types and interfaces, but that's build time only.
That also means you could test your theory about passing 0.00000058 or 5.8e-7 using a // @ts-ignore in the line before your code setting price to a string instead of a number. Would be interesting if binance allows strings and numbers in this field, in which case this would only need a small change in NewSpotOrderParams so you can easily pass in such small numbers as strings. Could you try it?

Hey @tiagosiebler, I did some more testing with what you mentioned. Works like a charm - Binance API accepts number | string.
In this particular case since the number is so small I had to use an additional library to be able to accurately control the formatting of the number i.e. 6.5e-7 --> 0.00000065.
Out of curiosity I also tested this for the quantity param and this is also the case. For clarity sake, what I propose is the following:
export interface NewSpotOrderParams {
    symbol: string;
    side: OrderSide;
    type: OrderType;
    timeInForce?: OrderTimeInForce;
    quantity?: number | string;
    quoteOrderQty?: number;
    price?: number | string;
    newClientOrderId?: string;
    stopPrice?: number;
    icebergQty?: number;
    newOrderRespType?: OrderResponseType;
    isIsolated?: StringBoolean;
    sideEffectType?: SideEffects;
}

Thanks for the help, really appreciate it! ❤ I'm gonna try my best to open a PR for this in the next couple of days 🙏🏽

Nice, this is really useful! Would love to see a PR to update the types based on your finding. Maybe you can include a link to your post here, as a comment on NewSpotOrderParams (since it won't be obvious why it supports a string while docs say number).


Fix Kibana OOM

With 256MB, Kibana does not start (Docker error 137, OOM-killed).

@afedulov Thanks for the PR. Could you check if Nico PR #30 fixed this for you, too? I just merged it.

@knaufk yes, sure, this will do it.


seems cilium daemon cann't connect to etcd client

I configure cilium as follows:
ExecStart=/usr/bin/daemon --kvstore etcd --kvstore-opt etcd.address=http://<IP_ADDRESS>:2379 --ipv4-range="<IP_ADDRESS>/16"
then:
the service is blocked at "Waiting for etcd client to be ready..."
● cilium.service - cilium
Loaded: loaded (/lib/systemd/system/cilium.service; disabled; vendor preset: enabled)
Active: active (running) since Mon 2017-05-22 04:45:17 PDT; 22min ago
Docs: https://github.com/cilium/cilium
Main PID: 4072 (daemon)
Tasks: 10 (limit: 4915)
Memory: 106.8M
CPU: 55min 29.288s
CGroup: /system.slice/cilium.service
└─4072 /usr/bin/daemon --etcd=http://<IP_ADDRESS>:2379 --ipv4-range=<IP_ADDRESS>/16
May 22 04:45:17 cilium-2 daemon[4072]: 2017-05-22T04:45:17-07:00 INFO Cilium 0.8.2 4ff751a Thu, 13 Apr 2017 05:52:06 +0200 go version go1.7.5 linux/amd64
May 22 04:45:17 cilium-2 daemon[4072]: 2017-05-22T04:45:17-07:00 INFO Checking minimal requirements...
May 22 04:45:17 cilium-2 daemon[4072]: 2017-05-22T04:45:17-07:00 INFO clang 3.8.x version: OK!
May 22 04:45:17 cilium-2 daemon[4072]: 2017-05-22T04:45:17-07:00 INFO libraries: OK!
May 22 04:45:18 cilium-2 daemon[4072]: 2017-05-22T04:45:18-07:00 INFO BPF Verifier: OK!
May 22 04:45:18 cilium-2 daemon[4072]: 2017-05-22T04:45:18-07:00 INFO Valid label prefix configuration:
May 22 04:45:18 cilium-2 daemon[4072]: 2017-05-22T04:45:18-07:00 INFO  - :id.
May 22 04:45:18 cilium-2 daemon[4072]: 2017-05-22T04:45:18-07:00 INFO  - :io.cilium.
May 22 04:45:18 cilium-2 daemon[4072]: 2017-05-22T04:45:18-07:00 INFO  - k8s:io.kubernetes.pod.namespace
May 22 04:45:18 cilium-2 daemon[4072]: 2017-05-22T04:45:18-07:00 INFO Waiting for etcd client to be ready...
I use etcd version: 3.1.4 and my k8s service can connect to it.
Any suggestions ？

I met this error too.

I just tried in minikube and it worked fine.  Does it eventually error out? (connection timed out?)

It looks like you are using the 0.8.2 release of Cilium:
May 22 04:45:17 cilium-2 daemon[4072]: 2017-05-22T04:45:17-07:00 INFO Cilium 0.8.2 4ff751a Thu, 13 Apr 2017 05:52:06 +0200 go version go1.7.5 linux/amd64
But with the configuration options used in the 0.8.9 version of Cilium.

@ianvernon yes, I used 0.8.2 release at first, then I build the master and replace daemon and cilium binaries. with new kvstore-opts..., but it seems has no change.

@tgraf, It simply blocked and has now error messages.  I tested with bad config, e.x. --kvstore-opt EAADR=http://<IP_ADDRESS>:2379, then it failed to start and print error message.
It receives no reponse from concurrency.NewSession. I am not sure the problem is from cilium, config or etcd version.  I build the master with go 1.7.4
log.Info("Waiting for etcd client to be ready...")
**s, err := concurrency.NewSession(c)**
if err != nil {
	return nil, fmt.Errorf("Unable to contact etcd: %s", err)
}
log.Info("Etcd client ready")

It receives no reponse from concurrency.NewSession. I am not sure the problem is from cilium, config or etcd version. I build the master with go 1.7.4

Given that you closed this issue, did you find the root of the issue, is it a Cilium issue?

@tgraf thanks.
I rebuild the master and it works but I don't know why...  I dont think it related to Cilium code, because depends the strace, it was blocked by etcdv3 Client.


Add beforeUpdate + beforeCreate check for referencesMany

tagIds must exists when create product

Note: only check if tagIds is different between input + beforeUpdated

:tada: This issue has been resolved in version 0.12.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Oakley

Yo! Hello!
Don`t know how to write to you....
Any news about Oakley?
When?
Where?))

Hi!
So the project is still on going. I didn't have anytime to dedicate to it for a few years due to my private life getting in the way. I then decided to rewrite pretty much from scratch at the end of last year, this time compiling straight to Z80 rather than to C, as, well, that's more fun. :) That is taking quite a while, plus I've taken several diversions. Firstly I decided to spin of some of the shared code into this AST shared library.
I then started another library to allow me to assemble Z80 code from C#. I was enjoying coding that so decided to turn it into a fully fledged assembler too... I then went back to Oakley, realised I needed some way to unit test Z80 code in C# so expanded the assembler to include a Z80 emulator... And then added a disassembler and formatter for good measure...
So current plan is to get the AST project fully documented at version 1.0 by the end of the year. Then I will tidy up, document and finish off the assembler/disassembler/emulator project called OakAsm and release that. (It's currently private until the code is a bit tidier) Hopefully Q1 next year? Then back onto Oakley as my main focus. Hoping to have something that can compile basic code to Z80 by the middle of 2024 (I'm close to compiling very basic programs, just need a good week with no distractions) and something more fully featured by the end of 2024.
Thanks for your interest in the project!
Kev


fix normalize aggregate should not push down lambda's param

ArrayItemSlot should not be inputSlots

run buildall

run buildall

run p0


Closes softlayer/sl-ember-components#209

Wrote tests for the sl-datepicker component, updated documentation and removed items mentioned in comments.

What is the behavior of the underlying data picker component when either setEndDate or setStartDate are set via calls to setEndDate() and setStartDate()?  Does it "redraw" itself, removing a selection that may now be out of the range?  Need to ensure that our expectation that as observers these properties can change that the component utilizing can actually react to such changes (resetting of values) rather than they only being intended to be set once.

The label property is not documented anywhere nor is it tested.

The helpText property is not documented anywhere nor is it tested.

Let's go ahead and test that the object returned by https://github.com/juwara0/sl-ember-components/blob/209/addon/components/sl-date-picker.js#L321 contains expected keys.

Tests have been written, documentation has been updated and default properties have been assigned for  'label' and 'helpText'.

A test has been added that verifies that the options object contains the expected keys.

Refactored setStartDate() and setEndDate() into updateDateRange() and added tests to ensure that our expectation that as observers these properties can change and that the component utilizing can actually react to such changes (resetting of values) rather than they only being intended to be set once.

https://github.com/juwara0/sl-ember-components/blob/209/addon/components/sl-date-picker.js#L275 needs to be const

https://github.com/juwara0/sl-ember-components/blob/209/addon/components/sl-date-picker.js#L275 has been changed to be const


docs: doc metrics used in rafthttp package

for #2785

/cc @robszumski Please take a look. Thanks!

updated. PTAL /cc @robszumski

@xiang90 Your description way is better. Have updated it.

LGTM. Defer to @robszumski for a grammar checking. :) Thanks!

LGTM


Provisioning step is never ending

Before opening, please confirm:

[X] I have checked to see if my question is addressed in the FAQ.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
[X] I have removed any sensitive information from my code snippets and submission.

App Id
dylhf6dk0pdfu
AWS Region
us-east-1
Amplify Hosting feature
Git providers
Frontend framework
Other
Next.js version
N/A
Next.js router
N/A
Describe the bug
I've been trying for 2 days to get deployed a new version of the website.
Previously, amplify detected the changes on the master branch and triggered the deploys automatically. Well, this stopped working. Then I tried to run the flow manually by clicking on the "Redeploy this version" option, but the "Provisioning" step was never-ending.
Expected behavior
Be able to deploy changes; get all the steps working again: Provisioning > Build > Deploy.
Reproduction steps
I've tried 2 things.

By pushing changes to the branch configured in the app.
Click on the "Redeploy this version" option to trigger the deployment process manually.

... none of the options is working.

Build Settings
No response
Log output
No response
Additional information
No response

Hi @EmilioOjeda 👋 ,
In order to further troubleshoot your issue, please reach out to the AWS Support team: https://aws.amazon.com/support for additional assistance.
Thank you!


Update issue templates

This is a simple PR to move to the newer GitHub issue format.
The bug report is based on the previous template, the proposal is based on GitHub's default proposal template (I renamed from "Feature request" to "Proposal" to align with our wording.

This is great. I've had this on my todo list for a long time. Does the regular template need to be updated now that we have a separate one for bug reports?

It looks like we can apply default labels to each template? If so do we want to do so?

@ianschmitz That sounds great. We should definitely add any relevant labels automatically.
I love how CI runs for these changes. Do we have any way to skip it?

Thanks @iansu, I forgot to delete that. That's done now. The new bug template is the same as the old, just without the "Is this a bug" question.
@ianschmitz we can... Any suggestions?

We have issue: proposal and issue: bug so those seem like a good starting point.

I agree, I couldn't think of any other options either @iansu.

OK, that's updated @ianschmitz and @iansu. If you're OK with this, let's get it in and see how it performs.

LGTM!


🎨  Added gravatars for member avatars

When an email has a valid gravatar handle it displays an image instead of initials for the member

TODO:

[x] styles

@peterzimon  Styling is pretty much done here but would need your opinion on the animation and general looks (both were taken almost 1:1 from user avatar styles with minor adjustments)


Don’t force DOM updates in LinesYardstick

:rotating_light: Work In Progress :rotating_light:
@as-cii We wanted to get this pull request opened early for your feedback, but the tests still need some :green_heart:.
In contemplating a radically different approach to rendering lines based on the new display layers, @maxbrunsfeld and I got a bit confused following the logic of editor DOM updates. We think it will be easier to follow if the LinesYardstick never forces a DOM update, but instead requires all lines being measured to be on the DOM as part of its contract.
That means we break TextEditorComponent.updateSync into two explicit pre-measurement and post-measurement phases directly in the component so it's more explicit to see, then add visibility checks and synchronous updates on any of the exposed measurement methods on the component.
This might have conflicts with block decorations, but it's going to make it easier for us to maneuver as we render via the DisplayLayer's TokenIterator instead of from TokenizedLines.

We think it will be easier to follow if the LinesYardstick never forces a DOM update, but instead requires all lines being measured to be on the DOM as part of its contract.
That means we break TextEditorComponent.updateSync into two explicit pre-measurement and post-measurement phases directly in the component so it's more explicit to see, then add visibility checks and synchronous updates on any of the exposed measurement methods on the component.

Good work, I like the explicitness of these changes. :+1:
Originally, I designed the LinesYardstick to be an object whose responsibility was to handle reads/updates from/to the DOM transparently, although I agree the interaction with the presenter was somehow complex (and it was an unhealthy, ciclic dependency). Recently, I was exploring an alternative design that you might want to consider:
class TextEditorComponent {
  constructor () {
    let yardstick = new LinesYardstick(this.editor, this.linesComponent, this.grammarRegistry)
    yardstick.onWillMeasureScreenRows(this.flushScreenRowsToMeasure.bind(this))
  }

  // LinesYardstick lazily accumulates screen rows to measure, and calls this
  // method just in time before performing the first DOM read.
  flushScreenRowsToMeasure (screenRows) {
    this.presenter.setScreenRowsToMeasure(screenRows)
    this.linesComponent.updateSync(this.presenter.getPreMeasurementState())
  }

  pixelRectForScreenRange (screenRange) {
    this.linesYardstick.addRowToMeasure(screenRange.start.row)
    this.linesYardstick.addRowToMeasure(screenRange.end.row)
    return this.linesYardstick.pixelRectForScreenRange(screenRange)
  }
}

Where LinesYardstick gives TextEditorComponent the chance to update LinesComponent with the needed screen rows. Although slightly less explicit, what I like about this approach is that we don't add another concern to the TextEditorComponent object, which would be solely responsible for updating the component (i.e. something it already does). Thoughts? :thought_balloon:
On the other hand, I am not sure how the new changes will impact the rendering layer, so the above design might be incompatible with that new approach. Anyway, I like the proposed changes more than the current version, so feel free to go on with this. :sparkles:


Allow for input of wu, cd and runtime while generating ntttcp commands

For leveraging NPT tool with in house testing, we need different values (ex: wu=10, cd=10, runtime=300). The tool currently generates specific values for sampling purposes

Fixed. PERFTEST.PS1 now accepts a -Config param to override default values.


Exporting public part of EVP_PKEY as another EVP_PKEY

Hi
I think it is very useful to check if an EVP_PKEY has public/private key part or not. There is  evp_keymgmt_util_has method, but it is not exported as public API.
In addition, I found it very useful to get public key part of EVP_PKEY as another EVP_PKEY and I cannot find any easy way to do that. The only way for this was encoding keypair to der format first and then decode public part only.
Best Regards

You can do it with EVP_PKEY_todata as well by converting EVP_PKEY to OSSL_PARAM and then convert back OSSL_PARAM to EVP_PKEY selecting only public key.
But I think both this method and method that uses i2d/d2i are very inefficient. I think it should be a very simpler method for getting public part out of a EVP_PKEY rather than going though these conversions.


Hg37 support

Hi,
Is there a way to make this work with Hg37? Or is there a similar Hg37 pipeline available?
Thanks,
Juho

Hi Juho,
Please post your questions in the GATK forum.
Thanks

Will do, thanks!


Contracts: return proof_size with ContractResult from dry-runs

Currently, in order to choose a value for gas_limit a UI would first dry-run the extrinsic via state_call and use the resulting ContractResult::gas_required as a parameter to the actual extrinsic.
Now that weights are two dimensional and also include proof_size, we should add that to the ContractResult in order for UIs to correctly populate that value, without having to manually supply a value.
Rel https://github.com/paritytech/subxt/pull/679

As an aside, actual runtimes could change since other transactions could impact Merkle proof CPU time, but not sure this impacts weight.  It won't change much usually though..

Yes state can always change in-between and make the gas estimation stale. In practice it works well.


[Issue]VS Code report issue button brings you to a 404

I'll file a bug for how this occurred but the link that this "Report an issue" button brings you to is a 404

Link: https://github.com/Microsoft/azure-dev/issues/new?body=The issue text was copied to the clipboard.  Please paste it into this window.

Looks like the link is broken. Should change Microsoft to Azure in the URL.

The common library that manages telemetry and error reporting assumes by default that its extensions exist within the microsoft org, if not told otherwise.  I've filed an issue for that as that may not be the best default logic, but we can also just be specific and set the bugs URL in package.json.


padLevels not working correctly

for "padLevels" to work logger.js (around line 128) has to be changed from:
// If we should pad for levels, do so
if (this.padLevels) {
  msg = new Array(this.levelLength - level.length).join(' ') + msg;
}

to
// If we should pad for levels, do so
 if (this.padLevels) {
   msg = new Array(this.levelLength - level.length + 1).join(' ') + msg;
 }

because Array(n).join(" ") produces only (n-1) spaces.

Not sure what version you opened this against, but it is not that way in HEAD: https://github.com/flatiron/winston/blob/master/lib/winston/logger.js#L133-136

hm... !?
following the link you posted i still see the following code that produces one blank less than expected:
// If we should pad for levels, do so
if (this.padLevels) {
  msg = new Array(this.levelLength - level.length).join(' ') + msg;
}


add downloads

@manojVivek I added the all time downloads number next to the stars. Unfortunately, it is not possible to add it automatically from the plausible api since we don't have a premium account

@manojVivek I added the all time downloads number next to the stars. Unfortunately, it is not possible to add it automatically from the plausible api since we don't have a premium account

Sounds great! 👍🏼


Fix overflowing signatory set voting power

We use u64's everywhere to represent voting power, but since Bitcoin only allows arithmetic on up to u32's, we must downconvert when building the signatory set.
The absolute amount of voting power given to validators for mining has already risen very high since it is counting the probabilistic number of hashes done during mining, but even if we try to reduce the level by simply counting in a larger unit (e.g. 1 voting power equals the minimum amount of work, 1 << 20), we will overflow u32 rather quickly.
A more scalable solution is to just calculate relative ratios between the u64 values, with some loss of precision which is low enough to be insignificant. For instance, if one validator has 1e15 voting power, and another has 2e15+100, we can safely represent these as 1 and 2, respectively.
Using work for voting power, we will still have to consider the eventual overflow of the voting power u64's, but that belongs in a separate issue.

A simple algorithm to deal with this is the following:

Choose the target number of bits of precision (e.g. 32 max for bitcoin scripts, or maybe 24 or 16 to save a few bytes, but minus one because bitcoin uses the MSB as a sign bit)
Sum all voting power in the set, as u128's so overflow is impossible (it would take 9e18 of the maximum possible u64 value to overflow, it's safe to say we'll never have that many validators)
Count the number of bits in the resulting sum
The number of bits of lost precision will be target_precision - sum_bits
Shift all voting power values to the right by the number of bits of lost precision

This may result in some very small signatories resulting in 0 actual voting power due to the loss of precision. However, if we remove these from the script to save space we will also have to consider this logic elsewhere since a node may think they have signatory set voting power but are not actually able to sign.


Add tomorrow.io provider

~~https://www.climacell.co/weather-api~~
https://www.tomorrow.io/weather-api/

I guess I could make a PR but if you want to steal from me like I stole from you:
https://github.com/cottongin/sopel-climacell
There's at least a lot of code in there that can get you started on this (rather lackluster imo) API.

Edited the link above (and issue title) to reflect rebranding or consolidation: climacell now redirects to tomorrow.io


Rancher Running On EKS: Cannot Connect To AKS Cluster

Rancher Server Setup

Rancher version: 2.6.4
Installation option (Docker install/Helm Chart): Helm Chart

If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc):

Proxy/Cert Details: On EKS. I used these instructions: https://rancher.com/docs/rancher/v2.5/en/installation/install-rancher-on-k8s/#install-the-rancher-helm-chart

Information about the Cluster

Kubernetes version: 1.21

Hosted = Rancher running on EKS and I was trying to create an AKS cluster from Rancher

Describe the bug
Hey All - regarding a Rancher cluster that’s running in EKS.
I’m trying to create an AKS cluster via Rancher. The AKS cluster creates, but then I receive this error message: [Disconnected] Cluster agent is not connected
I’m assuming at this point that because the Rancher cluster can create an AKS cluster, it’s obviously not a “rancher connection to AKS” issue. It seems like it’s a “the Rancher user that’s creating the AKS cluster doesn’t have access to the AKS cluster” issue
The cattle-system namespace is on the AKS cluster, but no resources were deployed to it.
I was troubleshooting this with Brad Davidson on the Rancher slack channel, but we were unable to figure out exactly why this is occurring.
Here are some  logs that point to the error:
2022/04/20 18:42:56 [INFO] Updating TLS secret for serving-cert (count: 8): map[field.cattle.io/projectId:local:p-chlzc listener.cattle.io/cn-<IP_ADDRESS>:<IP_ADDRESS> listener.cattle.io/cn-<IP_ADDRESS>:<IP_ADDRESS> listener.cattle.io/cn-<IP_ADDRESS>:<IP_ADDRESS> listener.cattle.io/cn-<IP_ADDRESS>:<IP_ADDRESS> listener.cattle.io/cn-a23bfb19b7f3b4b44b55a03773f589bd-657479989.us-east-1.elb.amazonaws.com:a23bfb19b7f3b4b44b55a03773f589bd-657479989.us-east-1.elb.amazonaws.com listener.cattle.io/cn-localhost:localhost listener.cattle.io/cn-rancher.cattle-system:rancher.cattle-system listener.cattle.io/fingerprint:SHA1=A34E5A5A926A2A363A0451254F25DA2F393C3B60]
2022/04/20 18:43:01 [INFO] checking cluster [c-cl5hz] upstream state for changes
2022/04/20 18:43:03 [INFO] cluster [c-cl5hz] matches upstream, skipping spec sync
2022/04/20 18:43:03 [ERROR] error syncing 'c-cl5hz': handler cluster-deploy: Error while applying agent YAML, it will be retried automatically: exit status 1, Unable to connect to the server: remote error: tls: internal error , requeuing
2022/04/20 18:43:03 [INFO] Creating system token for u-dlv7yhulkd, token: agent-u-dlv7yhulkd
2022/04/20 18:43:03 [INFO] certificate CN=dynamic,O=dynamic signed by CN=dynamiclistener-ca,O=dynamiclistener-org: notBefore=2022-04-20 13:27:52 +0000 UTC notAfter=2023-04-20 18:43:03 +0000 UTC
2022/04/20 18:43:03 [INFO] certificate CN=dynamic,O=dynamic signed by CN=dynamiclistener-ca,O=dynamiclistener-org: notBefore=2022-04-20 13:27:52 +0000 UTC notAfter=2023-04-20 18:43:03 +0000 UTC
2022/04/20 18:43:03 [INFO] certificate CN=dynamic,O=dynamic signed by CN=dynamiclistener-ca,O=dynamiclistener-org: notBefore=2022-04-20 13:27:52 +0000 UTC notAfter=2023-04-20 18:43:03 +0000 UTC

Screenshots

![2022-04-20_14-07-06](htt

ps://user-images.githubusercontent.com/28905827/164336699-c97f3c39-f9f0-4026-bcc4-f8a3a2d60af6.png)

These are the permissions for the App Registration I created in Azure for the connectivity between Rancher running in EKS to Azure

I tried creating the Rancher configuration with the following certs per the instructions:

Rancher cert
LetsEncrypt

Both had the same outcome

This issue has to be something between EKS and AKS.
I tried the same Azure App Registration and the same way of deploying AKS via Rancher. The only difference is I now have Rancher running inside of AKS instead of EKS. It worked just fine.


Make a distinction between LLVM and rustc target triples

It isn't really clear from the documentation whether this crate parses LLVM or rustc target triples, and that's probably because it tries to parse both.
This is problematic though, in particular the triple aarch64-apple-darwin is from my understanding ambiguous?

In LLVM's case refers to "the generic Darwin platform, i.e. any of macOS/iOS/tvOS/watchOS/visionOS" (from my experiments, the LLVM target is mostly defunct by itself). The macOS triple is aarch64-apple-macosx.
When using Clang, the chosen platform depends on the currently active SDK, and/or the presence of other flags like -miphoneos-version-min=....
In rustc's case it refers to "the macOS platform".

Would it make sense to say "FromStr only parses rustc triples", or "FromStr only parses LLVM triples"? Or maybe add Target::from_llvm(&str) -> Result<Self> and Target::from_rustc(&str) -> Result<Self>, and remove FromStr?

Another solution would be to rename rustc's macOS targets to *-apple-macos, which is desirable anyhow. But that's a complicated process.

This is also relevant for figuring out how to parse deployment targets for iOS/tvOS/watchOS/visionOS targets (since what we do here depends on what target-lexicon intends on supporting).

I see that this has also been discussed a bit in https://github.com/bytecodealliance/target-lexicon/issues/78.

target-lexicon was written at a time when there was a combination of a lack of alternatives, and a lack of understanding on my part of the relationship between rust target names and LLVM target names.
If one only wants to work with Rust target names now, it may be better to switch to the platforms crate instead.
Perhaps this means that target-lexicon should ideally migrate to focusing only on LLVM target names.


Appstudio update test-component-pac-qlzj

Pipelines as Code configuration proposal

Pipelines as Code CI/test-component-pac-qlzj-on-pull-request has successfully validated your commit.

StatusDurationName

✅ Succeeded
8 seconds
init

✅ Succeeded
16 seconds
clone-repository

✅ Succeeded
1 minute
build-container

✅ Succeeded
19 seconds
sanity-inspect-image

✅ Succeeded
18 seconds
deprecated-base-image-check

✅ Succeeded
45 seconds
clamav-scan

✅ Succeeded
3 minutes
clair-scan

✅ Succeeded
15 seconds
sbom-json-check

✅ Succeeded
17 seconds
sanity-optional-label-check

✅ Succeeded
16 seconds
sanity-label-check

✅ Succeeded
6 seconds
show-summary


import { Sortable } from 'sortablejs'

Problem:
hi,when i use sortablejs and @types/stotablejs in my app, i cannot use import { Sortable } from 'sortablejs'  its cause to error, and cannot use import * as Sortable from 'sortablejs', its cause to tip: sortable is not a construcor
i think maybe is for default export, and i cannot want to use allowSyntheticDefaultImports : true,
so how can i export sortablejs?
JSBin/JSFiddle demonstrating the problem:

Before you create an issue, check it:

Try master-branch, perhaps the problem has been solved;
Use the search, maybe we already have an answer;
If not found, create an example on jsbin.com (draft) and describe the problem.

Bindings:

Angular

2.0+: https://github.com/SortableJS/angular-sortablejs/issues
legacy: https://github.com/SortableJS/angular-legacy-sortablejs/issues

React

ES2015+: https://github.com/SortableJS/react-sortablejs/issues
mixin: https://github.com/SortableJS/react-mixin-sortablejs/issues

Polymer: https://github.com/SortableJS/polymer-sortablejs/issues
Knockout: https://github.com/SortableJS/knockout-sortablejs/issues
Meteor: https://github.com/SortableJS/meteor-sortablejs/issues

I think those typings are out of date

I think those typings are out of date

emm and i fond a new package react-sortablejs and its error too
and i feel @types/stotablejs is doesnt work

@lwei-jlu
The types do work and I keep them as up to date as possible.
For your specific case of  imports, the named export is currently not there and the default is. You should the default in the meantime. I will address this in my next pull to @types/sortablejs.
Update sortablejs and @types/sortablejs to the latest and you'll get type definitions.

@lwei-jlu I've tried to get the current types working with this, but it seems I cannot get it to work as the namespace and the class share the same name. They're export from the index.d.ts via assignment for module compatibility reasons (export = Sortable instead of export default Sortable).
What reason is there for not allowing allowSyntheticDefaultImports to be set to true?

I have the same problem.
FYI Typescript advises to use esModuleInterop:

Note: The new behavior is added under a flag to avoid unwarranted breaks to existing code bases. We highly recommend applying it both to new and existing projects.

Although I can bring esModuleInterop to my project without problems and will do so, I believe that not everyone could. Also wasted quite a lot of time digging around what do with it.
Proposed solution
Mention in README along the lines of "Typescript users, your codebase must be compatible --esModuleInterop as you will must use it to use this library", and reference to Typescript docs that it is the right way forward.

@Akuukis This makes sense. Feel free to add a PR.


Age & Gender Estimation

How do you set the parameters of your training age and gender model?
batch_size, num_epochs, do you use a pre-trained model?

this training code in my Colab. do you want it?
I can put it in the repo!

Ok thank you
| |
洪石林
|
|
<EMAIL_ADDRESS>|
签名由 网易邮箱大师 定制
On 07/26/2020 17:54, Sajjad Ayobi wrote:
this training code in my Colab. do you want it?
I can put it in the repo!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

already there is train.py for train age gender detection in AgeGender/models

thank you very much
| |
洪石林
|
|
<EMAIL_ADDRESS>|
签名由 网易邮箱大师 定制
On 07/26/2020 19:29, Sajjad Ayobi wrote:
already there is train.py for train age gender detection in AgeGender/models
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


Top 4 teams

This PR solves the issue of having a separate table for the top 4 teams in the standings page.
Closes #11

Hi @abhi-shek-09 !
We will be merging this PR!
Your contribution is appreciated
Great work!


feat: navigate to next and previous lessons from the lesson page

Codecov Report

Merging #162 (56d3328) into main (387941a) will decrease coverage by 0.28%.
The diff coverage is 0.00%.

@@           Coverage Diff            @@
##            main    #162      +/-   ##
========================================
- Coverage   8.87%   8.59%   -0.29%
========================================
  Files         74      74
  Lines       1003    1036      +33
  Branches     346     360      +14
========================================
  Hits          89      89
- Misses       912     945      +33
  Partials       2       2

Impacted Files
Coverage Δ

app/components/transaction-details.tsx
0.00% <ø> (ø)

app/routes/dashboard.tsx
0.00% <ø> (ø)

app/routes/dashboard/course.tsx
0.00% <0.00%> (ø)

app/routes/dashboard/course/$lessonId.tsx
0.00% <0.00%> (ø)

app/routes/dashboard/purchase/index.tsx
0.00% <ø> (ø)

app/utils/pagination.ts
0.00% <0.00%> (ø)

Continue to review full report at Codecov.

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


E5: what prompt is used in training and evaluation?

@intfloat
Describe
I tried to reproduce the E5 score on MTEB (particularly BEIR) using the released checkpoint, but I do observe a big gap on some datasets (e.g. on TREC-COVID reproduced 51.0 vs. reported 79.6). I suspect that the prompt can be the key (as in the eval code). It is not clearly stated in the paper (Sec 4.3, it mentions that "For tasks other than zero-shot text classification and retrieval, we use the query embeddings by default.").
So I wonder if you can elaborate what prompts are used in E5 training and MTEB evaluation?

What prompts are used in pretraining?
What prompts are used in fine-tuning?
What prompts are used in MTEB evaluation? Does the prompt applied to both query and doc (line 32 shows ['', 'query: ', 'passage: '])?

Thank you!
Rui

For BEIR evaluation, please refer to the following code snippet. https://github.com/microsoft/unilm/blob/027f0eb1cedac529915721110ab9a8dbdfad4dd9/e5/mteb_beir_eval.py#L55-L65
We prepend "query: " and "passage: " respectively.
For MTEB evaluation (except its BEIR subset), we simply prepend "query: " to all texts. https://github.com/microsoft/unilm/blob/027f0eb1cedac529915721110ab9a8dbdfad4dd9/e5/scripts/eval_mteb.sh#L21-L26

Sounds good! Thank you!


Rock: 被群主从企业微信群中移除，没有对应事件

17:08:56 VERB Room ready()
17:08:56 VERB Puppet dirtyPayload(Room<3><EMAIL_ADDRESS>17:08:56 VERB Puppet<EMAIL_ADDRESS>17:08:56 VERB Puppet dirtyPayload(RoomMember<4><EMAIL_ADDRESS>17:08:56 VERB Puppet<EMAIL_ADDRESS>17:08:56 VERB PuppetHostie<EMAIL_ADDRESS>17:08:57 VERB Puppet<EMAIL_ADDRESS>17:08:57 SILL Puppet<EMAIL_ADDRESS>cache MISS
17:08:57 VERB PuppetHostie<EMAIL_ADDRESS>17:08:57 ERR Config ###########################
17:08:57 ERR Config unhandledRejection: Error: 10 ABORTED<EMAIL_ADDRESS>is not room id"}
    at Object.exports.createStatusError (/Users/suchang/Desktop/PROJECT/Test/testDonutCopy/node_modules/grpc/src/common.js:91:15)
    at Object.onReceiveStatus (/Users/suchang/Desktop/PROJECT/Test/testDonutCopy/node_modules/grpc/src/client_interceptors.js:1209:28)
    at InterceptingListener._callNext (/Users/suchang/Desktop/PROJECT/Test/testDonutCopy/node_modules/grpc/src/client_interceptors.js:568:42)
    at InterceptingListener.onReceiveStatus (/Users/suchang/Desktop/PROJECT/Test/testDonutCopy/node_modules/grpc/src/client_interceptors.js:618:8)
    at callback (/Users/suchang/Desktop/PROJECT/Test/testDonutCopy/node_modules/grpc/src/client_interceptors.js:847:24) [object Promise]
17:08:57 ERR Config ###########################
17:08:57 ERR Config process.on(unhandledRejection) promise.catch(10 ABORTED<EMAIL_ADDRESS>is not room id"})
Config { Error: 10 ABORTED<EMAIL_ADDRESS>is not room id"}
    at Object.exports.createStatusError (/Users/suchang/Desktop/PROJECT/Test/testDonutCopy/node_modules/grpc/src/common.js:91:15)
    at Object.onReceiveStatus (/Users/suchang/Desktop/PROJECT/Test/testDonutCopy/node_modules/grpc/src/client_interceptors.js:1209:28)
    at InterceptingListener._callNext (/Users/suchang/Desktop/PROJECT/Test/testDonutCopy/node_modules/grpc/src/client_interceptors.js:568:42)
    at InterceptingListener.onReceiveStatus (/Users/suchang/Desktop/PROJECT/Test/testDonutCopy/node_modules/grpc/src/client_interceptors.js:618:8)
    at callback (/Users/suchang/Desktop/PROJECT/Test/testDonutCopy/node_modules/grpc/src/client_interceptors.js:847:24)
  code: 10,
  metadata:
   Metadata {
     _internal_repr:
      { 'grpc-accept-encoding': [Array], 'accept-encoding': [Array] },
     flags: 0 },
  details:
<EMAIL_ADDRESS>is not room id"}' }
17:08:58 VERB PuppetHostie onGrpcStreamEvent({type:EVENT_TYPE_HEARTBEAT(1), payload:"{"data":"heartbeat"}"})
"heartbeat"

fixed

I'd like to suggest that we can leave the issue to be open so that the creator can be able to review and close it later.
My recommendation steps are:

A issue is filed
Someone add a fix to it, and comment the issue so that others can get to know the progress
The creator of the issue is notified, then he can confirm whether this issue is solved by test it again:

if the issue is confirmed resolved, then the creator should close the issue, or
if the issue still exists, then the creator can comment the additional information to the issue.

It works now, thank you.