remove builder from button

#4095 I also removed one of our changes to the original vscode button since it was no longer needed.

@MattIrv are you refering to
    * _IMPORTANT_: use `DOM.addDisposeableListener()` for event handlers and add them to your list of things to dispose. `Builder` used to take care of that automatically when calling `empty`/`destroy`, but this is no longer supported

Yeah, I call this._register which adds the disposable to the Disposable abstract class that the vscode button inherits from.


CredWrite failed with the error code 87.

Hi, Sir  I am Prem Murmu, i wrote the main class as mentioned in readme.
This is..
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;
namespace webcredential3
{
class mainclasscredential
{
public static void Main(string[] args)
{
     //CredentialManagerTest obj=new CredentialManagerTest();

        bool save = false;
        var cred = CredentialManager.PromptForCredentials("Some Webservice", ref save, "Please provide credentials", "Credentials for service");

        var cred2 = new NetworkCredential("TestUser", "Pwd");
        CredentialManager.SaveCredentials("TestSystem", cred);
        var cred1 = CredentialManager.GetCredentials("TestSystem");

    }
}

}
but when i run this i am getting an error and unable to fix it.
" CredWrite failed with the error code 87."
this pointing  to the method ->  CredentialManager.SaveCredentials("TestSystem", cred);
but unable to understand..

What is the type of the project? If you have setup the project as a console project, then you need to use the PromptForCredentialsConsole instead of PromptForCredentials. The later is for the UI based projects.

Closing due to lack of more information.


Build Error with Kaurd "/go/bin/kuard": not found

I am on page 24 of Kubernetes up and Running, I am trying to run the example app for the first time.
git clone https://github.com/kubernetes-up-and-running/kuard
cd kuard
docker build -t kuard .

I get the following error...
 => ERROR [stage-1 2/2] COPY --from=build /go/bin/kuard /kuard                                                                                0.0s
------
 > [stage-1 2/2] COPY --from=build /go/bin/kuard /kuard:
------
Dockerfile:31
--------------------
  29 |
  30 |     USER nobody:nobody
  31 | >>> COPY --from=build /go/bin/kuard /kuard
  32 |
  33 |     CMD [ "/kuard" ]
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref 1670e558-a5e0-44b8-90d8-a38b092afef2::bvhmpv59qxdu9ec710i1goekg: "/go/bin/kuard": not found

What can I do to resolve?

Hi. I faced the same problem. In my case, I use Mac with M1 and in the Dockerfile ARCH is set to 'amd64' so at stage 1 of the build the go-file is placed in the directory '/go/bin/linux-amd64/'. First I tried to change COPY command in the Dockerfile but I got a new error. So as a next step, I changed ARCH var to 'arm64' and now it works fine.

Hi. I faced the same problem. In my case, I use Mac with M1 and in the Dockerfile ARCH is set to 'amd64' so at stage 1 of the build the go-file is placed in the directory '/go/bin/linux-amd64/'. First I tried to change COPY command in the Dockerfile but I got a new error. So as a next step, I changed ARCH var to 'arm64' and now it works fine.

Thank you so much! I am using a Macbook pro with the M1 chip, so yes that's likely one part of my issue.  I tried to update ARCH=arm64 in all the areas of the app code, I notice there are 24 instances of it.  However, again when I run docker build -t kuard . now I get the following error:
------
Dockerfile:25
--------------------
  23 |
  24 |     # Do the build. Script is part of incoming sources.
  25 | >>> RUN build/build.sh
  26 |
  27 |     # STAGE 2: Runtime
--------------------
ERROR: failed to solve: process "/bin/sh -c build/build.sh" did not complete successfully: exit code: 1

Any ideas on this one?  I wonder if I just need to nuke the repo and reclone it and try again.

I'm not sure you need to change ARCH in all places, because it is set as an env variable by the Dockerfile. In my case, I changed only in the Dockerfile.
I didn't face the problem you got, so I have nothing to say about it.

For who facing this issue on M1,
You can build it with changing Dockerfile a little bit:
2: FROM --platform=amd64 golang:1.12-alpine AS build
28: FROM --platform=amd64 alpine

And run with:
$ docker run --rm -p 8080:8080 --platform linux/amd64 kuard

for m1 just change to this: ENV ARCH=arm64


x/sys/unix: Missing constants for fadvise()

What version of Go are you using (go version)?
go version go1.6 linux/amd64

What operating system and processor architecture are you using (go env)?
Archlinux on amd64:

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/fd0/shared/work/go"
GORACE=""
GOROOT="/usr/lib/go"
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT="1"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"

What did you do?
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.

The program at https://gist.github.com/6587a615cea63183676e2f2887d59d62 uses Fadvise from the unix package to purge data written to a file from the OS cache. The constants for this function (FADV_*) are defined in types_linux.go, but cannot be accessed from the outside of the unix package. This makes using Fadvise() awkward because I need to define the constants myself.
For the reference, here are the constants I'm missing:
https://github.com/golang/sys/blob/master/unix/types_linux.go#L175-L185
Running GOOS=linux GOARCH=amd64 mkall.sh inserts the constants into ztypes_linux.go.
I'm happy to submit a CL if someone gives me a hint on how to fix this.

What did you expect to see?

The FADV_* constants (e.g. FADV_DONTNEED) exported in the package unix.

What did you see instead?

FADV_DONTNEED is either not defined or not exported in the package, so users need to define that themselves.

@bradfitz can you advise me how to fix this?  I'd be happy to submit a CL :)

Add the constants to x/sys/unix/types_*.go, run mkall.sh, revert the unrelated changes.  Some day we will clean up mkall.sh, and if you want to tackle that that would be great, but you don't have to.

Submitted, thanks for the advice.


build-iso still pulls from quay.io

elemental build-iso should run offline when the base image is available in the local image cache.
Currently it still pulls data from quay.io (grub2 files apparently).
Not sure why this happens. Either elemental looks at the wrong places in the image (or not at all :wink:)
Everything needed for ISO building should be provided by node-image and builder-image.

Im not sure this is possible without changes to elemental. @davidcassany this should be possible to override via config file or env var?
I know that env vars are currently off for the ISO config and not sure if the config file accepts the iso.UEFI var....

All right, the bare minimum elemental build-iso requires is a set of three images (or local folders or luet packages). See the manifest.yaml file below:

iso:
  uefi:
    - channel:live/grub2-efi-image
  image:
    - channel:live/grub2
    - channel:live/grub2-efi-image
  label: "COS_LIVE"

repositories:
  - uri: quay.io/costoolkit/releases-green

IIRC something like that are elemental build-iso defaults if no manifest.yaml (yes the repository is no even teal...). So these live/grub2-efi-image and live/grub2 are pulled from the green quay repository. Note the respository is configurable with the manifest.yaml file as shown above and the uefi and image packages list can be a dir:, docker: or channel:. So for offline builds you either have all this data in different folders, docker images or luet packages. Folders are obviously working off line, then luet packages and docker images can also be instructed to be offline, but it is not straight forward because you have to prepare the data, for instance elemental build-iso --local docker:my/image:mytag will attempt to pull all docker images from the local docker daemon. In a similar fashion you could instruct the channel to come from a local luet respository.
So offlione builds are certainly possible, but requires some love to prepare the data. Also note that live/grub2 and live/grub2-efi-image have ever been built in OBS and I doubt they are part of the firmware files binares...

shouldnt the rootfs(registry.opensuse.org/isv/rancher/elemental/teal52/15.3/rancher/elemental-node-image/5.2:latest) already contain all the files needed for this? like the grub2 package contains the files under /boot and grub2-efi the ones under /EFI
So maybe something like this could work:
iso:
  uefi:
    - dir:/rootfs/EFI
  image:
    - dir:/rootfs/boot

What is in live/grub2-efi-image and live/grub2 that wouldn't be available in SLE Micro for Rancher ? 🤔

What is in live/grub2-efi-image and live/grub2 that wouldn't be available in SLE Micro for Rancher ? thinking

live/grub2 contains the grub configuration files for the live boot and live/grub2-efi-image files just contains the files we include into the EFI image, this is a convenience package in the sense it abstracts elemental build-iso of having to find/cretae these files from the root-tree as context. build-iso is dumb regarding EFI artifacts it just includes the given assets to the EFI image.

That means that we should be able to provide an "offline build" script for inclusion into Rancher Manager (callable from the UI) later.

so configuring this via manifest.yaml works as expected but.... node-image does NOT provide the required files.
No EFI dir on it.
Grub packages are available under /usr/share/grub2/
If we were to generate the EFI dir with all the proper files...we may as well drop teh elemental-toolkit altogether as there is some caveats in there, some templates that we run, etc... looks ugly IMO

so configuring this via manifest.yaml works as expected but.... node-image does NOT provide the required files.
No EFI dir on it.

That's just a mkdir away :wink:

Grub packages are available under /usr/share/grub2/

And they should be complete. 🤞🏻

If we were to generate the EFI dir with all the proper files

We have to since they're on a separate (FAT-formatted) partition.

...we may as well drop the elemental-toolkit altogether

Yes !? 🤔

as there is some caveats in there, some templates that we run, etc... looks ugly IMO

Any other options to achieve offline builds (and not duplicating binaries that are already part of the image, like grub2-x86_64-efi) ?

Not that I can think of, we may need to recreate what we do on the elemental-toolkit as a package on OBS :/


find service by id makes weird exports.(right side yaml, left side generated server) https://gyazo.com/a03bb391d8fcb2e0df9a0cbb86514772

Seems like a problem with the generator, I would probably suggest that the operationId be a string without spaces, but this isn't the right place to debug issues with the specific generator you are using.

thanks, I have move to https://github.com/swagger-api/swagger-editor/issues/954


788 duplicated extractor registration when extractor version updated

This is now fixed. If a new version is running, it replaces the existing version.
The 'created' field is taken from the 'created' of the original extractor, since it seemed to make sense that 'created' should always be initial registration and 'modified' is the time of the latest version.

For some reason i still see two different versions


Add language support- traditional chinese

Short description of what this resolves:
Add translation traditional chinese.
Changes proposed in this pull request:

add package.nls.zh-tw.json

Fixes: #1028
How Has This Been Tested?

Screenshots (if appropriate):
Checklist:

[x] I have read the contribution guidelines.
[x] My change requires a change to the documentation and GitHub Wiki.
[ ] I have updated the documentation and Wiki accordingly.

Should I update this page wiki/Add-or-Improve-Language-Support before pull request merged?

Have you checked the number of keys starting with Sync : should be equal to the other language files.
Can you post the screen shoots

Yes you can update the page once above verification steps are completed and this PR is ready to merge.

PR is merged, you can update the wiki :)

Thank you always.
I have updated the wiki.


Streaming mode

When i switch from Sonar to streaming mode, i cannot control streaming volumes and normal ones. If I return to classic mode all works fine.
Also chat Mix doesn't work (i have physical gameDAC)

Plugin version: 1.4
Sonar version: 77.0.0

I know, this is a way of working that I can't get around.
If you want to use the plugin, you have to do the updates only from the plugin.
You can see it the other way around, if you make changes from the plugin, they are not visible in the application, you have to close its window and reopen it to force an update

I know, this is a way of working that I can't get around.
If you want to use the plugin, you have to do the updates only from the plugin.
You can see it the other way around, if you make changes from the plugin, they are not visible in the application, you have to close its window and reopen it to force an update

What do you mean with "update from the plugin?" When you download the latest version is not updated?

This is what I see

I haven't updated the plugin for a while, it works with the latest version of GG steelseries.
When I say update, I mean using buttons, like the one you mentioned.
If you want to change the mode (from classic to streamer, or vice versa, you have to do it from the plugin, not from the application).
The volume levels are independent between streamer and classic mode.
But if you change the mode from the GG application, the plugin does not have the information, and it tries to modify the sound of the old mode.
As for the volume between Chat and Games, if you have a device with its own control, you cannot switch to the other.
The plugin only "reproduces" the actions you would do in GG Steelseries, so it cannot switch to another.

I restarted the app and uninstalled the plugin.
I tried to switch with the plugin from classic to streaming mode but in GG application shows this error

This happens when Windows or GG SteelSeries does an update, you just have to put the values back.
This problem is not related to the plugin.
For my part, I also have the problem with Discord which, with each update of GG SteelSeries, goes back to the wrong device.
But it's a problem with the application, not the plugin, I can't do anything.
When this happens, you also have to update the application buttons because the identifiers of the audio devices have been changed by GG SteelSeries

So have I to reinstall the application?

No need to reinstall, you just have to put the values back from the application.
The easiest way is to put the audio devices you want to use back in GG SteelSeries, and then restart the application.
However, as explained, these problems are not related to the plugin, so this will be my last answer.

I tried your fix but nothing. Anyway I appreciate your help. Thx


Allow user to click on a tag in the list of suggested tags to add it

It would be nice to be able to Click on a tag once it is in the suggestion list

I agree, seems that I have overlooked this one.

Any idea when you'll implement mouse click selection?

jquery-textext is really an amazing project you got here, I mean I would rate it with the tagging ability of Stackoverflow and Facebook on the feature side of it, the only thing missing for me is the click ability, thanks for sharing your work with the world

@jasondavis thnx!
Not sure when exactly I'd be able to get to it. It would be awesome if you guys could take a look at it :)

I would love to contribute but I am more of a backend coder, I am not currently skilled enough with Javascript.  I am not in any real rush but I would hope this is something to be put on the roadmap for someone to do eventually, and just you acknowledging that this is something that would be useful eventually makes me happy,  thanks

Another update, after some more test, I have realized, that it does sometimes allow the click event to work, if I go on the demo page http://textextjs.com/manual/examples/autocomplete-with-tags-and-filter.html and type p because there are 3 tags that start with p it will then show PHP, Perl, and Python.  Now if I click on any of these items, it closes the drop-down menu and does not add anything to the text area, however I have found out if I click and items row but make sure to not click on the actual text, then it will add the item to the textarea.
I will add a screenshot describing what I mean...

Any chance of merging one of these fixes into the main project

Will merge it this weekend. Sorry about delay on this.

Thank you!


Added mode to ClusterSet and force one per namespace

Ref:

#121

This PR adds the Mode to the ClusterSet CRD. It uses a enum to enforce the value to be shared or virtual, also using the kubebuilder annotations for the validation, and the default value:
// +kubebuilder:default="shared"
// +kubebuilder:validation:Enum=shared;virtual

// ClusterMode lists the two possible provisioning mode of a Cluster.
type ClusterMode string

const (
	Shared  = ClusterMode("shared")
	Virtual = ClusterMode("virtual")
)

It also forces the existence of a single ClusterSet per namespace.
Updated the Cluster spec, added some tests, and an example.

The PR looks fine, we should however make sure that any cluster created under the clusterset is using the same mode as the clusterset and preventing multiple modes in the same set

he PR looks fine, we should however make sure that any cluster created under the clusterset is using the same mode as the clusterset and preventing multiple modes in the same set

@galal-hussein I was not sure if adding this logic in this PR but it make sense.
Question: what should happen if Clusters with different modes are already present?
IMHO the ClusterSet should report some a failing status. In the same fashion if a Cluster is created in a not-supported mode it should report a faliing Status.
We should report the same failing status also in the case of an already existing ClusterSet probably, without deleting it.
The best would be having a Webhook to prevent the creation of these resources, but not yet.
WDYT?

I think webhook might complicate  things, I would try to avoid webhook as much as we can, I think we should keep it simple, we shouldn't allow creating multiple clusters in the same namespace if there is no cluster set there to begin with, with that we will guarantee that we wont have a multiple modes in the same tenant

I think webhook might complicate things, I would try to avoid webhook as much as we can, I think we should keep it simple, we shouldn't allow creating multiple clusters in the same namespace if there is no cluster set there to begin with, with that we will guarantee that we wont have a multiple modes in the same tenant

I'm still not convinced about this, a more declarative approach looks easier to understand. Otherwise we will need to delete resources, and the user will not understand why, until he looks at the logs. Without a webhook we cannot really prevent a user to create Clusters. They will, no error will appear, but then we will delete them if not valid.

@galal-hussein @briandowns
Because it's still not clear how to properly handle some edge cases I've implemented the feature just reflecting what was in the RFC. It look like the field was meant to be an array of allowed types. At the moment it's probably easier to relax this constraint, until we don't have an idea on how to handle errors.


authorship with in publication

When the authorship of a name contains an in-reference it gets parsed and placed in Name.remarks. The formatted name then reconstructs this badly:
Phenacoccus silvanae Longo & Russo in Longo et al., 1989
http://www.catalogueoflife.org/annual-checklist/2019/details/species/id/666fa61b243e93e0fad9ebcb90aa54a4

scientificName authorship accordingTo remarks
Phenacoccus silvanae Longo & Russo, 1989 Ben-Dov Y., in Longo & al.
https://data.catalogue.life/dataset/3/taxon/27d8c79e-5af5-432a-9697-2a2f6a00afa1

scientificName authorship remarks (without accordingTo)
Phenacoccus silvanae Longo & Russo, 1989, in Longo & al.
https://api.catalogue.life/dataset/3/taxon/27d8c79e-5af5-432a-9697-2a2f6a00afa1

relates to #253 and #276


use Operation.ExportedName not Operation.Name

This was a nasty issue to troubleshoot.  What this means is that when looking up things like output wrapper field paths by the Operation.Name of "CreateCachePolicy" (from the generator.yaml file's operations map), things were failing because the private/model/api.API:Operations map is actually keyed by Operation.ExportedName, not Operation.Name. Operation.ExportedName for REST+XML APIs like CloudFront contain the proper string "CreateCachePolicy" without the date suffix.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

/ok-to-test

@A-Hilaly @RedbackThomson found a few more uses of op.Name in the code gen and templates... please re-review.

/lgtm


Higher resolutions

Hello there,
any chance we can get higher resolution exports like 8x, 16x...?
I read that you made these in Inkscape. Is it possible to upload the SVG files on GitHub? This way anybody can export the text in any resolution needed.
Thank you for your effort :)

Hi,
I put the SVG file here: https://github.com/Fanfreluche/SUPERMARIO64-hires-texture-pack/blob/master/source.svg
I will export it in higher res but I don't know yet when :P

Thank you for uploading the SVG source. I was able to export everything, except for the Mario head. It's the only one missing :)


Where to get wificfg?

Perhaps someone forgot to commit that?

See https://github.com/ourairquality/esp-open-rtos for the larger framework. A recursive clone of that includes this as an example.

Thank you, I didn't know that you run your own rtos fork.
Are you going to send PRs to the upstream repo? Pretty please?

@astro Yes, most of it has been sent upstream to the esp-open-rtos repo. What remains have lower confidence but are rebased against upstream from time to time so it should be easy for people to adopt them on a branch - the master branch is the upstream master. At present rebasing seems blocked by the upstream SPI support which seems broken. This rebasing does make it hard to see the progress here, and harder to pull in the changes, so be sure to reset to the remote rebased tip.


Undefined variable in class-kirki-style.php

Notice: Undefined variable: output_element in E:\Web\wp-content\plugins\kirki\includes\class-kirki-style.php on line 104

Fixed in https://github.com/aristath/kirki/commit/1bbd9db6fd399c40a82150f1eb0805dbfc22162d


Check the db connection before a session is created

 [🍓] Enable client to create sessions against self-managed dbms


Parameters should be const

  constructor(public path: string, public child: Url = null,
              public auxiliary: Url[] =[],
              public params: {[key: string]: any} =  {}) {}

was:
  Url(this.path, [this.child = null, this.auxiliary = [], this.params = {}]) {}

should be:
  RootUrl(String path,
  Url(this.path, [this.child = null, this.auxiliary = const [], this.params = const {}]) {}

const [] instead of []
const {} instead of {}

Also:
export const ROUTER_DIRECTIVES: any[] = /*@ts2dart_const*/[RouterOutlet, RouterLink];

creates
final List<dynamic> ROUTER_DIRECTIVES = [RouterOutlet, RouterLink];

missing const

This was caused by a confusing versioning issue in npm, but the issue still holds - parameter initializers should always implictly be const.


More fixes

fix(trick-stack.yml) set COMPOSER_HTACCESS_PROTECT=0 to avoid the creation of a .htaccess file in the target root directory
fix(src/tric.php) correctly build the wp path, including @redscar fix #80
refactor(tric-stack.yml) node 8.9.4 > 10.16.0 to update to the node version we currently use

@borkweb In this PR, I'm updating the node version used by the container from 8 to 10; is this correct?

Closing this in favor of #82


Add HDF installation to setup_env.py

Built in thread-safe mode, so that Regent users at least won't encounter #369.

One thing I forgot to note is, now when running the Regent compiler (and/or a saveobj-ed binary), the user needs to add language/hdf/install/lib to LD_LIBRARY_PATH manually. We could avoid this by including libhdf.a into libregent.so if we wanted.

Thanks, pushed to gitlab. Will show up as merged here at some point....


Fixed broken link to http://mongoengine.org/

modified:   README.md

Hi, Don! Thanks for fixing the link and for your interest! Please, don't use the package from pip as it is currently broken. Instead, load the latest version directly from github: pip install git+https://github.com/umutbozkurt/django-rest-framework-mongoengine.git.

Hi, Boris. Thanks. I am new to MongoDB. I look forward to trying it with Django.

Do you need a brief primer of how to use DRF-Mongonengine? I'm writing a post at medium.com about how to use it.
I'm currently using DRF-Mongonengine in combination with Postgres, which is used to store users. (Although, if you want to use DRF's authentication, you can easily migrate to Postgres).
Basically, you need to set up a connection with Mongo database in settings.py, you need to create a DRF-Mongoengine router to serve your viewsets and for each view you need to create a triplet (document-serialzier-view).
Connection with database can be established in different ways, depending on which version of Mongoengine you're using. If it's mongoengine<10 (probably, 0.8.7 or 0.9), than it relies on pymongo==2, so you can say:
        mongoengine.connect(
            db=MONGODB_DATABASES['default']['TEST']['name'],
            host=MONGODB_DATABASES['default']['host']
        )

Than in urls.py you create a router like this:
from rest_framework_mongoengine.routers import DefaultRouter
router = DefaultRouter()
router.register(r'tool', ToolViewSet, r"tool")

And you define your model-serializer-view triplets as follows:
from mongoengine import Document
from rest_framework_mongoengine.serializers import DocumentSerializer
from rest_framework_mongoengine.viewsets import ModelViewSet

class Tool(Document):
    label = mf.StringField(required=True)
    description = mf.StringField(required=True, null=True)

class ToolSerializer(DocumentSerializer):
    class Meta:
        model = Tool

class ToolViewSet(ModelViewSet):
    lookup_field =  'id'
    serializer_class = ToolSerializer

    def get_queryset(self):
        return Tool.objects.all()

Feel free to ask me in gitter, if you need help.

Thank you for this! Very useful. I am working on something else at the
moment. I look forward to checking out django and mongo together.
Thanks for the gitter invite, too. It is new to me.
Don
On Saturday, September 17, 2016, Boris Burkov<EMAIL_ADDRESS>wrote:

Do you need a brief primer of how to use DRF-Mongonengine? I'm writing a
post at medium.com about how to use it.
I'm currently using DRF-Mongonengine in combination with Postgres, which
is used to store users. (Although, if you want to use DRF's authentication,
you can easily migrate to Postgres).
Basically, you need to set up a connection with Mongo database in
settings.py, you need to create a DRF-Mongoengine router to serve your
viewsets and for each view you need to create a triplet
(document-serialzier-view).
Connection with database can be established in different ways, depending
on which version of Mongoengine you're using. If it's mongoengine<10
(probably, 0.8.7 or 0.9), than it relies on pymongo==2, so you can say:
    mongoengine.connect(
        db=MONGODB_DATABASES['default']['TEST']['name'],
        host=MONGODB_DATABASES['default']['host']
    )

Than in urls.py you create a router like this:
from rest_framework_mongoengine.routers import DefaultRouter
router = DefaultRouter()
router.register(r'tool', ToolViewSet, r"tool")
And you define your model-serializer-view triplets as follows:
from mongoengine import Document
from rest_framework_mongoengine.serializers import DocumentSerializer
from rest_framework_mongoengine.viewsets import ModelViewSet
class Tool(Document):
label = mf.StringField(required=True)
description = mf.StringField(required=True, null=True)
class ToolSerializer(DocumentSerializer):
class Meta:
model = Tool
class ToolViewSet(ModelViewSet):
lookup_field =  'id'
serializer_class = ToolSerializer
def get_queryset(self):
    return Tool.objects.all()

Feel free to ask me in gitter
https://gitter.im/BurkovBA/django-rest-framework-mongoengine, if you
need help.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/umutbozkurt/django-rest-framework-mongoengine/pull/190#issuecomment-247815478,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQ7EpxAL2TxojKtnrSlOUxMwUyzoOdTkks5qrH_fgaJpZM4J_s6M
.

Glad, it helped, Don.
Besides, thanks to your interest I finished the post at Medium about
DRF-Mongoengine
<EMAIL_ADDRESS>.
Good luck with your work.
2016-09-23 1:28 GMT+03:00 Don Morehouse<EMAIL_ADDRESS>
Thank you for this! Very useful. I am working on something else at the
moment. I look forward to checking out django and mongo together.
Thanks for the gitter invite, too. It is new to me.
Don
On Saturday, September 17, 2016, Boris Burkov<EMAIL_ADDRESS>wrote:

Do you need a brief primer of how to use DRF-Mongonengine? I'm writing a
post at medium.com about how to use it.
I'm currently using DRF-Mongonengine in combination with Postgres, which
is used to store users. (Although, if you want to use DRF's
authentication,
you can easily migrate to Postgres).
Basically, you need to set up a connection with Mongo database in
settings.py, you need to create a DRF-Mongoengine router to serve your
viewsets and for each view you need to create a triplet
(document-serialzier-view).
Connection with database can be established in different ways, depending
on which version of Mongoengine you're using. If it's mongoengine<10
(probably, 0.8.7 or 0.9), than it relies on pymongo==2, so you can say:
mongoengine.connect(
db=MONGODB_DATABASES['default']['TEST']['name'],
host=MONGODB_DATABASES['default']['host']
)
Than in urls.py you create a router like this:
from rest_framework_mongoengine.routers import DefaultRouter
router = DefaultRouter()
router.register(r'tool', ToolViewSet, r"tool")
And you define your model-serializer-view triplets as follows:
from mongoengine import Document
from rest_framework_mongoengine.serializers import DocumentSerializer
from rest_framework_mongoengine.viewsets import ModelViewSet
class Tool(Document):
label = mf.StringField(required=True)
description = mf.StringField(required=True, null=True)
class ToolSerializer(DocumentSerializer):
class Meta:
model = Tool
class ToolViewSet(ModelViewSet):
lookup_field = 'id'
serializer_class = ToolSerializer
def get_queryset(self):
return Tool.objects.all()
Feel free to ask me in gitter
https://gitter.im/BurkovBA/django-rest-framework-mongoengine, if you
need help.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/umutbozkurt/django-rest-framework-mongoengine/pull/
190#issuecomment-247815478>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AQ7EpxAL2TxojKtnrSlOUxMwUyzoOdTkks5qrH_fgaJpZM4J_s6M>
.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/umutbozkurt/django-rest-framework-mongoengine/pull/190#issuecomment-249046774,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHQB3ye8dP4V40zptAs8a6gagCXkHiuIks5qswEcgaJpZM4J_s6M
.


TypeError: Cannot add property updated, object is not extensible

I'm having a problem updating objects in the collection.  In my Angular 8 application I've built a LokiService that has all the basic CRUD operations, and so far Update is the one giving me grief.  I've looked everywhere for a reliable solution and I haven't found one.
Here is the put method of my service:
  put(data: T): Observable<T> {
    const coll = this.db.getCollection(this.collName);
    console.log('data to be updated: ', data);

    let found = coll.findObject({ id: data.id });
    console.log('found: ', found);

    const foundUpdated = {...found, ...data};
    console.log('found updated: ', foundUpdated);
    coll.update(foundUpdated);

    return of(foundUpdated);
  }

This is the output of the console.log() and the error that appears:
data to be updated:  {id: 4, name: "Security Protocols"}
found:  {id: 4, name: "Security Protocols Group", meta: {…}, $loki: 8}
found updated:  {id: 4, name: "Security Protocols", meta: {…}, $loki: 8}
Everything is correct up to this point, as far as I know, then the Chrome tools displays this error and the update never happens.
Note: for the argument of the put method (data to be updated), I can actually return the full LokiJs object with the updated value that includes the $loki and meta properties, but I get the same error as below.
core.js:4002
ERROR TypeError: Cannot add property updated, object is not extensible
    at Collection.updateMeta (lokijs.js:5090)
    at Collection.update (lokijs.js:5913)
    at LokiPolicyGroupService.push../src/app/_lib/modules/loki/loki.service.ts.LokiServiceBase.put (loki.service.ts:62)
    at MergeMapSubscriber.project (group.effects.ts:40)
    at MergeMapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapSubscriber._tryNext (mergeMap.js:61)
    at MergeMapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/mergeMap.js.MergeMapSubscriber._next (mergeMap.js:51)
    at MergeMapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (Subscriber.js:53)
    at MapSubscriber.push../node_modules/rxjs/_esm5/internal/operators/map.js.MapSubscriber._next (map.js:41)
    at MapSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next (Subscriber.js:53)
    at FilterSubscriber.push../node_modules/rxjs/_esm5/internal/operators/filter.js.FilterSubscriber._next (filter.js:38)

I looked at the issue here, https://github.com/techfort/LokiJS/issues/420 and it has an example, that works in the sandbox, but not in Angular.
I tried applying that function, but I get the error that says:
 TypeError: Cannot assign to read only property 'id' of object '[object Object]'
Any insight on what I'm doing wrong is appreciated.  So at the moment I can do everything except Update.

It should work as written in your example, so weird.
When you use const coll = this.db.getCollection(this.collName); have you tried to see what value that variable contains on the console.log? Sometimes errors in update is because the getCollection  is null because the db is not initialized as it hasn't loaded the database (async problems). This happen in Angular do to how Classes work with  .this.


[FEATURE] Add Better Typing

🚀 Feature
Type the library as much as possible.
Implementation

[ ] Type fetch requests
[ ] Put types inside a models folder
[ ] Use import type {} from "..." when needed to import types from aleo-sdk

 [FEATURE] Add Better Typing


Ability Description roll data doesn't update for elite/weak

While most of the stat info does update correctly with Elite/Weak adjustments. it seems the roll fields in the descriptions do not.
Left is Elite sheet, Right is Bestiary.

Huh, that's interesting. That's not actually intended behavior at the moment.
It's not my intention to capture Elite/Weak adjustements into the Bestiary statblock in that way. I feel it will become weird since the party could go from facing a Weak adjusted one to fighting an Elite, and the Bestiary gets stuck with the Weak stats.
It's possible I could make some sort of tracking of wether the group has seen Weak/Normal/Elite and allow toggling in the CreatureView, but it's not a high priority for me. - If anything, maybe I could just add a 'Weak/Elite' tag to the Mystified names when that setting is used. If the group has some of its stats revealed and knows that this one is Elite, then it might just be enough for them to know that it's a bit tougher than what they are familiar with.


add support for fifo queues

updates the broker to correctly support and test fifo queues.
fifo queues have a strange requirement that the queue names must end with a ".fifo" suffix, since we did not explicitly test the fifo queue in the integration tests this went unnoticed.
the integration tests have been extended to now run two passes of the full lifecycle ... once for "standard" and once for "fifo" queues. Since fifo queues require a MessageGroupID/DeduplicationID set in the SendMessage calls we need to tweak the send payload per test as well as the provision params.
To support the weird "fifo" extension in names, queue names are now generated by functions and conform to the following pattern:
$PREFIX-$UUID-$KIND.$EXT

Where:

$PREFIX is something like "paas-sqs-broker"
$UUID is the service instance id
$KIND is the primary/secondary marker
$EXT is either "" or ".fifo" depending on the FIFO-ness

RE: ContentBasedDeduplication....
I'd rather not address it in this PR, since this was just about the fifo-ness.
However, from what I understand, when ContentDeduplication is enabled:

You do not have to specify an message id, and one will be generated for you based on the message content
If you do specify a message id ... then it overrides the content-based one generated for you

When ContentDeduplication is disabled:

You MUST specify a message id or it is an error

Soooo ... is this really a useful option?, we could just leave it turned on, since in that mode you get to pick based on if you set DeduplicationMessageId in the messsage. :thinking: thoughts?

sure, if team paas is happy without, I'm happy without 👍

Added note about running tests in parallel by giving example of running from the ginkgo cli ... and changed the make test thing to use that method along with the -steam option, so concourse output doesn't just leave you waiting


The text says to remove Evaluate model but the subsequent image still contains it

The instructions in the text do not manifest themselves in the subsequent image  : Evaluate Model is being shown in the followup image even though the text above the pic directs the user to do the opposite.

Thanks for letting us know! This step is optional, and i updated the instructions.


Import hint for path/posix is incorrect

VSCode issue, by previous one was redirected here, so assuming TS hints are covered here.
Bug Report
🔎 Search Terms

path import autocomplete hint
cannot import module

🕗 Version & Regression Information

[x] I was unable to test this on prior versions because ... Playground doesn't install builtin modules correctly (Check dependency list! Synchronous require cannot resolve module 'path'. This is the first mention of this module! )

⏯ Playground Link
N/A
💻 Code
import path from 'path/posix';
console.log(path.resolve('foo', 'bar'));

Repo
Workflow (v14, v16)

TSConfig targets es2019 + esModuleInterop true
Reproduce
Create a new TS file and attempt to import path or posix:

You get the following:
//> import pos→:
import { posix } from "path/posix";
//> import path→:
import path from "path/posix";

When, to support Node <16, it should be:
//> import pos→:
import { posix } from "path";
//> import path→:
import path from "path";

🙁 Actual behavior

Node 16: works fine
Node 14: Error: Cannot find module 'path/posix'

These declarations are provided by @types/node and you have single version installed
https://github.com/Nixinova/Linguist/blob/fe9718c54a6924bc09e164f7c02db14f223a7711/package.json#L46
ts4.3 is tag for 16.6.1 which has declaration for path/posix module.
For project with Node.js 14 support you should install<EMAIL_ADDRESS>


How to configure baresip to open all connections via the given interface?

I've realized that using command line argument "-n" does not make baresip to open all the connections via the given interface.
As far as I understand it uses the specified interface only for server sockets(listen) and not for the client sockets.
I'd be very grateful if you point me where I can change the behavior.
Thanks in advance!

the outgoing TCP connections are opened from the network interfaces
that is chosen by the kernel, depending on the routing table.
can you share some more info about your setup/network, perhaps also
include output of ifconfig and routing table dump ?

Hi,
We have a portable unit supporting 2 Ethernet interfaces, wifi, and up to 8 cellular modems with SIM cards. And we want to control which network interface baresip uses.
# ifconfig
eth0      Link encap:Ethernet  HWaddr 78:51:0C:00:CB:FC
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12189819 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3332886 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2337187217 (2.1 GiB)  TX bytes:3937161933 (3.6 GiB)

eth1      Link encap:Ethernet  HWaddr 78:51:0C:00:CB:FD
          inet addr:<IP_ADDRESS>  Bcast:<IP_ADDRESS>  Mask:<IP_ADDRESS>
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2202399 errors:0 dropped:692 overruns:0 frame:0
          TX packets:11040931 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:480827703 (458.5 MiB)  TX bytes:861643029 (821.7 MiB)

lo        Link encap:Local Loopback
          inet addr:<IP_ADDRESS>  Mask:<IP_ADDRESS>
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:45462309 errors:0 dropped:0 overruns:0 frame:0
          TX packets:45462309 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:9282698060 (8.6 GiB)  TX bytes:9282698060 (8.6 GiB)

wlan0     Link encap:Ethernet  HWaddr D4:F5:13:20:32:E2
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wwan0     Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:<IP_ADDRESS>  P-t-P:<IP_ADDRESS>  Mask:<IP_ADDRESS>
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:18364 errors:0 dropped:0 overruns:0 frame:0
          TX packets:344491 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:6090803 (5.8 MiB)  TX bytes:419100004 (399.6 MiB)

wwan3     Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:<IP_ADDRESS>  P-t-P:<IP_ADDRESS>  Mask:<IP_ADDRESS>
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:16487 errors:0 dropped:0 overruns:0 frame:0
          TX packets:343161 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:5947297 (5.6 MiB)  TX bytes:420360502 (400.8 MiB)

# ip rule
0:	from all lookup local
32763:	from <IP_ADDRESS> lookup 223
32764:	from <IP_ADDRESS> lookup 220
32765:	from <IP_ADDRESS> lookup 2
32766:	from all lookup main
32767:	from all lookup default

# ip route
default via <IP_ADDRESS> dev eth1
<IP_ADDRESS>/23 dev eth1 proto kernel scope link src <IP_ADDRESS>
<IP_ADDRESS>/30 dev wwan0 proto kernel scope link src <IP_ADDRESS>
<IP_ADDRESS>/28 dev wwan3 proto kernel scope link src <IP_ADDRESS>
<IP_ADDRESS>/30 dev eth0.5 proto kernel scope link src <IP_ADDRESS>

# ip route show table 223
default via <IP_ADDRESS> dev wwan3
<IP_ADDRESS>/28 dev wwan3 proto kernel scope link src <IP_ADDRESS> metric 1
<IP_ADDRESS> dev wwan3 scope link src <IP_ADDRESS>

# ip route show table 220
default via <IP_ADDRESS> dev wwan0
<IP_ADDRESS>/30 dev wwan0 proto kernel scope link src <IP_ADDRESS> metric 1
<IP_ADDRESS> dev wwan0 scope link src <IP_ADDRESS>

# ip route show table 2
default via <IP_ADDRESS> dev eth1
<IP_ADDRESS>/23 dev eth1 proto kernel scope link src <IP_ADDRESS> metric 1
<IP_ADDRESS> dev eth1 scope link src <IP_ADDRESS>

Like Alfred replied, you should be able to control that via your routing table, i.e., organize routing so your ourbound proxies are reachable only via the desired interface.

do you also have a dump of the network traffic, i.e. using tcpdump/tshark/ngrep etc ?
it would be interesting to see the traffic when baresip is starting up, i.e.
where does it send DNS requsts and SIP traffic. please also include the config
and baresip output.

I'll provide it in 2 weeks. Meanwhile as far as I see all the traffic goes through the interface which is currently the default route.
Besides, there are 2 sockets that are listening on the interface provided via argument "-n" but no traffic goes through the interface.

okay, thanks in advance.
please be polite and close the issue, and re-open it when you can provide the logs.


consideration of context attributes in

Working on the verapdf transform and see some attributes there worth borrowing. Their implementation report starts with:
<report xmlns="http://www.verapdf.org/MachineReadableReport" creationDate="2016-10-15T17:36:14.985+02:00" processingTime="00:00:00.068" version="0.24.2" buildDate="2016-10-11T12:21:00+02:00">

Should MediaConch also add in?

creationDate
processingTime
buildDate

Yes

I don't think this could be generated within the xsl, so would have to pass them in via --stringparam such as --stringparam creationDate xxx --stringparam processingTime yyy --stringparam buildDate zzz. If that sounds ok I could xsl the xsl to use them if provided.

we can create string internally and pass it to the XSL.


BUG: ndimage geometric_transform and zoom using deprecated NumPy calls

I'm experiencing an unrelated Travis failure over on #8144 related to ndimage using deprecated NumPy functionality:
        _nd_image.geometric_transform(filtered, None, coordinates, None, None,
>                                     output, order, mode, cval, None, None)
E       DeprecationWarning: NPY_ARRAY_UPDATEIFCOPY, NPY_ARRAY_INOUT_ARRAY, and NPY_ARRAY_INOUT_FARRAY are deprecated, use NPY_WRITEBACKIFCOPY, NPY_ARRAY_INOUT_ARRAY2, or NPY_ARRAY_INOUT_FARRAY2 respectively instead, and call PyArray_ResolveWritebackIfCopy before the array is deallocated, i.e. before the last call to Py_DECREF.

And then later:
            _nd_image.zoom_shift(filtered, matrix, offset/matrix, output, order,
>                                mode, cval)
E           DeprecationWarning: NPY_ARRAY_UPDATEIFCOPY, NPY_ARRAY_INOUT_ARRAY, and NPY_ARRAY_INOUT_FARRAY are deprecated, use NPY_WRITEBACKIFCOPY, NPY_ARRAY_INOUT_ARRAY2, or NPY_ARRAY_INOUT_FARRAY2 respectively instead, and call PyArray_ResolveWritebackIfCopy before the array is deallocated, i.e. before the last call to Py_DECREF.

Any ndimage folks have time to look?

I reviewed this PR (that's causing the deprecation). I'll see if I can give this a quick fix.

So the plan is to switch to WRITEBACKIFCOPY and then add PyArray_ResolveWritebackIfCopy  before all of the Py_XDECREF(output). However, I don't know how to proceed because these APIs are unreleased. How is this normally done (SciPy compiles against a numpy that doesn't have these APIs but numpy will issue a deprecation warning if they aren't compiled in)?

Just from a quick look through the C code, the situation appears unprecedented. I do know that it's possible in theory to adjust the runtime code path, but that's not so simple.

Pending a fix for numpy/numpy#10012.

Also, let me jot this down:

    #if NPY_API_VERSION >= 0x0000000b
        int flags = NPY_ARRAY_BEHAVED_NS | NPY_ARRAY_UPDATEIFCOPY;
    #else
        int flags = NPY_ARRAY_BEHAVED_NS | NPY_ARRAY_WRITEBACKIFCOPY;
    #endif

Also, pending numpy/numpy#10013.


Feature: in dual mode, show only they journey pattern chosen in the map

When in dual mode, show in the map only the chosen journey pattern and the stop areas that belong to it

Fixed in #20


falling test with serde::skip_serializing_if

#[cfg(test)]
mod tests {
    #[derive(serde::Serialize, serde::Deserialize)]
    pub struct StructWithOption {
        #[serde(default, skip_serializing_if = "Option::is_none")]
        pub opt_field: Option<usize>,
    }

    #[test]
    fn struct_with_option() {
        let val = StructWithOption {
            opt_field: None,
        };

        let config = bincode::config::standard();
        let serialized = bincode::serde::encode_to_vec(&val, config).unwrap();
        bincode::serde::decode_from_slice::<StructWithOption, _>(&serialized[..], config).unwrap();
    }
}

Unfortunately this is an known issue in serde: https://github.com/serde-rs/serde/issues/1732
Not something we can fix in bincode

Unfortunately this is an known issue in serde: https://github.com/serde-rs/serde/issues/1732
This will be documented in bincode 2, but the following attributes are not compatible with bincode. These are all serde limitations.

#[serde(flatten)]
#[serde(skip)]
#[serde(skip_deserializing)]
#[serde(skip_serializing)]
#[serde(skip_serializing_if = "path")]
#[serde(tag = "...")]
#[serde(untagged)]


Move Inline Javascript

Move all inline javascript into dedicated files.

The remaining JS has been moved in #47.

Closed via #47


BUG: Changing twitter logo in footer section

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
Logo of twitter is not correct.
I want to work on this issue.
Please assign me this issue.
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

good morning sir can i work on this issue.
@arghadipmanna101 .

good morning sir I want to work on this issue plz assign me

Hi, I hope this message finds you well.
I am writing to express my interest in contributing to the issue. I am enthusiastic about participating in GSSoC'24 and believe that working on this issue will allow me to make a meaningful contribution to the project.
Could you please assign this issue to me under GSSoC'24?
Thank you for considering my request.

@arghadipmanna101 sir , if it is not closed yet , can you please assign it to me?


[HELP] Remove Example Entities.

How can I disable the example entities and get rid of the (I'm sorry) awful creeper model?

You can set this to true before initialization of Geckolib to disable the example content, which only exists in dev btw:
GeckoLibMod.DISABLE_IN_DEV = true;


Refactoring unit tests for the project activity controller

How to categorize this PR?

/area ops-productivity
/kind enhancement
What this PR does / why we need it:
The unit tests of the Project Activity Controller are refactored as suggested in the last comments from PR 4447.
Also, the documentation is fixed to follow the semantics.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note:

NONE

/invite @vpnachev


getCurrentPosition on emulator never returns

🐛 Bug Report
Calling the method, getCurrentPosition never returns data, it goes past this line of code and never hits the next line. This is wrapped in a try/catch and an exception is never thrown either. Running on Android emulator. Pixel API 28
I've tried this on emulators targeting v28 and v29 android. The behavior is the same. I do get a popup asking if I want to allow the application to access the devices location which I confirm. I have also "set location" in the extended controls for the emulator.
Expected behavior
Return a location (lat/long)
Reproduction steps
Add this line of code, use an android emulator.
final position = await Geolocator.getCurrentPosition(desiredAccuracy: LocationAccuracy.best, forceAndroidLocationManager: true);
Configuration
geolocator: ^6.1.13
Platform:

[ ] :iphone: iOS
[X] :robot: Android

@ryanlangton which permissions have you listed in your AndroidManifest.xml file?
This can happen when using the android.permission.ACCESS_COARSE_LOCATION. This permission only permits the app to determine the location based on the network cell towers. Since the emulator doesn't have an active/ real cell connection it cannot simulate the coordinates and therefore never returns. This is a well known issue with testing location services on an Android emulator.
In general the advise would be to use the android.permission.ACCESS_FINE_LOCATION permission which permits the App to access the location through GPS and can also be emulated by the Android emulator.
If you really have to use the android.permission.ACCESS_COARSE_LOCATION permission you will have to test on a real Android device. Note that the first time it could take up to several minutes before the Android device is able to acquire a proper fix.
More information can also be found in the "Usage" chapter of our README.md specifically in the Android section.
Please let me know if this helps?

@ryanlangton which permissions have you listed in your AndroidManifest.xml file?
This can happen when using the android.permission.ACCESS_COARSE_LOCATION. This permission only permits the app to determine the location based on the network cell towers. Since the emulator doesn't have an active/ real cell connection it cannot simulate the coordinates and therefore never returns. This is a well known issue with testing location services on an Android emulator.
In general the advise would be to use the android.permission.ACCESS_FINE_LOCATION permission which permits the App to access the location through GPS and can also be emulated by the Android emulator.
If you really have to use the android.permission.ACCESS_COARSE_LOCATION permission you will have to test on a real Android device. Note that the first time it could take up to several minutes before the Android device is able to acquire a proper fix.
More information can also be found in the "Usage" chapter of our README.md specifically in the Android section.
Please let me know if this helps?

Changing from android.permission.ACCESS_COARSE_LOCATION to android.permission.ACCESS_FINE_LOCATION in the AndroidManifest.xml fixed the problem. Thank you.

Changing from android.permission.ACCESS_COARSE_LOCATION to android.permission.ACCESS_FINE_LOCATION in the AndroidManifest.xml fixed the problem. Thank you.

With Android emulator I occur this bug this mostly on newly created AVDs, what works for me is opening the google maps app in the emulator and click through the popups. (recently tested on 5.0 with Google APIs)

With Android emulator I occur this bug this mostly on newly created AVDs, what works for me is opening the google maps app in the emulator and click through the popups. (recently tested on 5.0 with Google APIs)

I am using a physical Android device for my testing, and still get the same error  @ryanlangton had.
How can I fix this?

I am using a physical Android device for my testing, and still get the same error  @ryanlangton had.
How can I fix this?

Please consider adding this issue to the documentation, I just encountered this as well and had no idea how to solve it until I found this issue.

Please consider adding this issue to the documentation, I just encountered this as well and had no idea how to solve it until I found this issue.

I am using a physical Android device for my testing, and still get the same error @ryanlangton had.
How can I fix this?

same issu，When I use an Android 10 OnePlus phone, it doesn't return any data

With Android emulator I occur this bug this mostly on newly created AVDs, what works for me is opening the google maps app in the emulator and click through the popups. (recently tested on 5.0 with Google APIs)

I know this issue is closed, but for future people that reads this topic, this worked for me.
I have android.permission.ACCESS_FINE_LOCATION and android.permission.ACCESS_BACKGROUND_LOCATION in my AndroidManifest.xml. I am asking the user's permission to access location when the app starts for the first time, with permission_handler package, and even though I allowed it, the code was stuck in getting the location. Opened Google maps, centered my emulator location with Google Maps center location button, and it unlocked the my app 😅 .
The same code works fine in my Xiaomi Mi 10 Lite, so I suppose it is some emulator issue 🤷 .
Thanks @MrWaggel


Use a websocket only lib instead of mongoose

More than 90% of the compiled WebUI file size is from mongoose, and from that 90% websocket usage should represent less than 5%.
I found a working websocket lib, I was able to compile the exe server with TCC, the lib is also cross-platform. The exe weighed less than 17kb.
https://github.com/bsapundzhiev/ucwebsocket

this also closes #61

Thank you for your suggestion. WebUI uses Mongoose because it supports the latest WebSockets standards, has a wide choice of lib for encryption using custom APIs, and it has a web-server feature built in, and it's sponsored and used by some important companies. The closest Mongoose WebSocket competitor I found is libwebsockets.org, but if we used it, we still need another lib for the web server.
You are right, Mongoose code has many other features we don't need in WebUI, but we can easily add some flags to the compilers/libkers to remove unused references. I will add those flags soon. Thank you for pointing this out.

Now the binaries results get cleaned from non-used references, making them smaller.
Let's keep using Mongoose for now.


Add Tech University of Korea (tukorea.ac.kr)

I ask JetBrains to add my university domain
University name : Tech University of Korea (Siheung, South Korea)
University Domain : @tukorea.ac.kr
University URL : https://www.tukorea.ac.kr/sites/tukorea/index.do
Computer Department URL : https://ce.tukorea.ac.kr/ce/index.do
Tech University of Korea (tukorea) is a university with a computer engineering department that has to go through a four-year curriculum
Please review, and if everything looks good, merge please.
Thank you :)
(my email<EMAIL_ADDRESS>

@parkhss I am sorry, the domain tukorea.ac.kr is removed from our trusted domains list because it was abused in the past. If you are the student of this school, please enroll to GitHub Student Developer Program. Then apply for JetBrains educational subscription with your GitHub account (GitHub tab at https://www.jetbrains.com/shop/eform/students).


[format] Candidates for improvement from testing on a large code repository

A few examples that could be improved. We ran ruff==0.1.3 on a large codebase, I noticed some issues during the review, I don't want to describe each one separately, so I'll put it all together here. If you need - please, please, saw it into subtasks (I can't do it, because MR with changes is big and I'm already tired of looking into it).

            raise TypeError(
+               "some: {}. " "bar".format(foobar),
-               'some: {}. ' "bar".format(foobar),
            )

        pending = [
            task_id
            for task_id, task_data in response.items()
-           if task_id not in completed and
+           if task_id not in completed
+           and
            # foo
            len(task_id) == UUID_LEN and
        ]

better:
        pending = [
            task_id
            for task_id, task_data in response.items()
-           if task_id not in completed and
+           if task_id not in completed
            # foo
-           len(task_id) == UUID_LEN and
+           and len(task_id) == UUID_LEN and
        ]

        if 'foo' in keys:
-           sql = '''`a` = `b` + VALUES(`a`),'''
+           sql = """
+               `a` = `b` + VALUES(`a`),
+           """

better (no quotation marks inside the string):
        if 'foo' in keys:
-           sql = '''`a` = `b` + VALUES(`a`),'''
+           sql = '`a` = `b` + VALUES(`a`),'

-            foo = f'''date > toDate('{start}')'''
+            foo = f"""date > toDate('{start}')"""

better:
-            foo = f'''date > toDate('{start}')'''
+            foo = f"date > toDate('{start}')"

-'''
+"""
some comment in multiline string
foo bar
-'''
+"""

better (use comment, if it comment):
-'''
-some comment in multiline string
+# some comment in multiline string
-foo bar
+# foo bar
-'''

    foo = func(
-        '''
+        """
        SELECT a, b, c FROM bar
-   ''',
+   """,
    )

better:
    foo = func(
-        '''
+        """
        SELECT a, b, c FROM bar
-   ''',
+        """,
    )

Why?
-        self.assertEqual('foo `;\' or `"\' bar', foo)
+        self.assertEqual("foo `;' or `\"' bar", foo)

⚠

-    SOME: str = (
-        "DELETE FROM {0} WHERE `id` = {1} AND `parent_id` = '{2}'"
-    )
+    SOME: (
+        str
+    ) = "DELETE FROM {0} WHERE `id` = {1} AND `parent_id` = '{2}'"

return {
    v: (va[v], count)
    for v, count in vy.items()
    if v in va
    and (
        # comment
-        count < th
-        or v not in vt
+        count < th or v not in vt
    )
}

I believe (8) is already fixed in v0.1.3 -- if you remove the parentheses around the (str), and re-run, it won't re-add them.

Hey @saippuakauppias. Thanks for listing all these examples that you find worth improving. Could yo provide some more information to help me triage the issue?

did you use Black before and this is a list of examples where Ruff formatted code differently to Black?

Will take these into advisement but going to close for now in the absence of more info. Thanks for filing!


[Tabs] data-tabs-target produces Javascript error

Hi,
thanks for making foundation!
I use 6.4 and usually work with Safari for Mac.
In your documentation http://foundation.zurb.com/sites/docs/tabs.html you have Containers > Tabs and there is the Basics panel with the first code to copy.
There you have the code snippet

This obviously stops Tabs from working. With me it produces a Javascript error that says.
foundation.js:5118Error: Syntax error, unrecognized expression: ##panel2 — jquery.js:1579
The tabs simply don't open the content. It seems to be caused by the double ##.
When I remove data-tabs-target="#panel2" so that only  remains everything works fine.
Thanks for making foundation, again!
Reinhard

Same issue here. In my case passing the target id without the hashtag also fixes the issue. LIke so:
data-tabs-target="panel2"

The extra # in the said example as you pointed out has been resolved. See Tabs • Basics section here

This is fixed in the documentation on the as stated above by @denisahac, tnx for pointing out. What fogged my view was that – I use a offline documentation which updates monthly/weekly. But Zurb seems to have missed to update this part of the docs in both places (for the online and the offline docs). (The offline docs I refer to is read through Dash, I don't know exactly where they are fetched from).

Closing as this seems to be fixed. Feel free to create a new issue if this is not fixed.


Does the buildpack support a version constraint in the package.json?

What happened?

What were you attempting to do?

According to these docs, a constraint range is an acceptable version argument in the package.json: https://docs.npmjs.com/cli/v7/configuring-npm/package-json#engines
  "engines": {
    "node": ">=8.0 <15"
  },

What did you expect to happen?

Some version of node between those two versions is used.

What was the actual behavior? Please provide log output, if possible.

2021/03/04 22:56:25.403534 Paketo Node Engine Buildpack 0.1.5
2021/03/04 22:56:25.403564   Resolving Node Engine version
2021/03/04 22:56:25.403664     Candidate version sources (in priority order):
2021/03/04 22:56:25.403675       package.json -> ">=8.0 <15"
2021/03/04 22:56:25.403682
2021/03/04 22:56:25.407121 improper constraint: >=8.0 <15
2021/03/04 22:56:25.407139 ERROR: failed to build: exit status 1
2021/03/04 22:56:26.452274 ERROR: failed to build: failed with status code: 145

Build Configuration

What platform (pack, kpack, tekton buildpacks plugin, etc.) are you
using? Please include a version.'

Latest pack

What buildpacks are you using? Please include versions.

Paketo Node Engine Buildpack 0.1.5

What builder are you using? If custom, can you provide the output from pack inspect-builder <builder>?

Custom builder

Can you provide a sample app or relevant configuration (buildpack.yml,
nginx.conf, etc.)?

Checklist

[x] I have included log output.
[x] The log output includes an error message.
[x] I have included steps for reproduction.

@genevieve Thanks for filing the issue. It looks like the buildpacks currently only supports a single constraint and not composite constraint. We'll look into fixing this.
Relevant version constraint check: https://github.com/paketo-buildpacks/packit/blob/v0.7.0/postal/service.go#L76

@genevieve this was fixed in the upstream packit library in the v0.7.0 release. The node-engine buildpack then picked that version up and has included it since its own v0.1.8 release, which is included in v0.1.0 of the Node.js buildpack. So, upgrade to at least node-engine v0.1.8 and you should be good to go. Let us know if you see any other issues.


Tests involving cdylib fail when cross-compiling to musl - not enough binary artifacts

Steps to reproduce:
rustup target add x86_64-unknown-linux-musl
AUDITABLE_TEST_TARGET=x86_64-unknown-linux-musl cargo test --all-features

The test test_cargo_auditable_workspaces fails:
---- test_cargo_auditable_workspaces stdout ----
Test fixture binary map: {"binary_and_cdylib_crate": ["/home/shnatsel/Code/cargo-auditable/cargo-auditable/tests/fixtures/workspace/target/x86_64-unknown-linux-musl/debug/binary_and_cdylib_crate"], "crate_with_features": ["/home/shnatsel/Code/cargo-auditable/cargo-auditable/tests/fixtures/workspace/target/x86_64-unknown-linux-musl/debug/crate_with_features_bin"]}
/home/shnatsel/Code/cargo-auditable/cargo-auditable/tests/fixtures/workspace/target/x86_64-unknown-linux-musl/debug/binary_and_cdylib_crate dependency info: VersionInfo { packages: [Package { name: "binary_and_cdylib_crate", version: Version { major: 0, minor: 1, patch: 0 }, source: "local", kind: Runtime, dependencies: [1], features: [] }, Package { name: "library_crate", version: Version { major: 0, minor: 1, patch: 0 }, source: "local", kind: Runtime, dependencies: [], features: [] }] }
thread 'test_cargo_auditable_workspaces' panicked at 'assertion failed: crate_with_features_bins.len() == 2', cargo-auditable/tests/it.rs:149:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

cdylib's aren't produced by default on musl - https://github.com/rust-lang/rust/issues/59302. I think for now we should update the tests to not look for cdylibs on musl, can do that this weekend.

Hmm, apparently RUSTFLAGS="-C target-feature=-crt-static" is needed to produce a cdylib. It's mentioned in the issue you linked, but https://github.com/rust-lang/cargo/issues/8607 spells it out explicitly.
I'll go ahead and update the tests now that I understand what to change. Thanks!


Allow URL overrides for error_summary entries

This allows us to write deep links to other pages via the presenter.
Let me know if you'd like me to remove the tools-version file or do it differently, bundler wouldn't run without it set.

Thanks @elliotcm. I like the idea but rather than a hash I think it would be cleaner if url was a separate (optional) third argument. I had a play around with the idea in #326 - think this could work for you?

Closed in favour of https://github.com/DFE-Digital/govuk-formbuilder/pull/326


Disable static web assets from identity

@aspnet-hello triage https://dev.azure.com/dnceng/public/_build/results?buildId=274599&view=logs&jobId=f2f63060-d9d6-52d0-adee-b97db5a9ab91

This comment was made automatically. If there is a problem contact<EMAIL_ADDRESS>I've triaged the above build. I've created/commented on the following issue(s)
https://github.com/aspnet/AspNetCore-Internal/issues/2794
https://github.com/aspnet/AspNetCore-Internal/issues/2744

Actually, I completed a separate PR, so closing this


data-equalizer's never initialize inside of tab panel unless tab panel is active on page load

temporary workaround, assuming your tab's have the .content class
$('.content').on('toggled', function (event, tab) {
    $(document).foundation('reflow');
});

That's the expected behavior, because the plugin can't properly initialize itself if its contents are hidden. For Foundation 6 we're looking into having plugins like tabs perform automatic reflows for situations like this.
You can also localize the reflow call to just Equalizer (or any other plugin that supports reflows):
$(document).foundation('equalizer', 'reflow');

I'm using Version 6.2.4 and this is still happening. Is it still in the works to have this work? Thanks


Fix test_tls13_encryption()

This test was disabled during the record write record layer refactor. We can now enable it again.

Checklist

[ ] documentation is added or updated
[x] tests are added or updated

Spotted and fixed a typo. @t8m please reconfirm

Pushed. Thanks.


Mark Python 3.6 compatibility

Resolves #18. I modified the package metadata and testing configuration to indicate this module is Python 3.6-compatible.

Thanks!
Merging


text selection is not showing

text selection highlight not showing

I am facing the same issue, were you able to resolve it?

I had the same problem, but modifying the CSS fixed the problem.
https://github.com/7368697661/Ultra-Lobster/pull/41
I sent pull request


Tidying Up Examples

changed to draft because we need to sort out two things here:

when getting a contract supplying a Wallet type gives me not a Signer error, which makes little sense because Wallet extends Signer
I have my doubts about whether the README.md example we give people even actually works...

changed to draft because we need to sort out two things here:

when getting a contract supplying a Wallet type gives me not a Signer error, which makes little sense because Wallet extends Signer
I have my doubts about whether the README.md example we give people even actually works...

addressed both of these now


Resource that supports any package-provider (Install-Package wrapper).

It seems like only the NuGet and PSModule package providers are supported. Chocolatey, MSU, MSI, Programs, and custom providers don't seem to be. Rather than write a resource for each provider, why not have a single resource that installs packages from any specified provider? This would essentially be a wrapper for Install-Package.

JVimes, only Nuget and PSModule providers are currently supported.
Good suggestion. I thought about this approach before. The primary problem with this approach I considered before was that, each provider can have its own cmdlet properties. We could use optional arguments for these. But multiple PackageManagement properties will be ended up in optional arguments. Not so explicit.  However with more and more providers available in the PackageManagement, this approach seems to have more benefit. I will give it re-think for this project.
Again, thank you for your proposal.

what would be really nice is if we could specify all the parameters using a hashtable and splatting. That way depending on the package, we would just add / remove elements from the hashtable..
Install-Package testPkg {
Name = "somename"
Source = "somesource"
Version = "someversion"
AdditionalProperties = @{ }
Params = "someparams"
}
This could simplify the implementation of the DSC resource, will enabling us to have an arbitrarily large set of properties.
Would also like to see a Params = "" flag so I can pass specific configuration information to chocolatey packages or other packages. Would be really awesome if we could get a standard param mechanism/format for chocolatey packages (not the place here), like a jsonstring and inside choco we could convert to a hashtable, then build a string, or whatever the specific package needs.

@mrpullen. Good suggestion. First I will update this resource to work with WMF 5.0 RTM once it is released. Then I will consider all these good suggestions to this project. thx again.

I've added this support. Please check out the code in master branch. The module is downloadable from gallery as well: https://www.powershellgallery.com/packages/PackageManagementProviderResource/1.0.3


Add additional ed25519 JNI hooks

I found the following methods helpful for my work using ed25519. I was using libsodium 1.0.3

@jreckner thanks for this. Would you mind to add unit tests? I would appreciate that if possible.

@abstractj, I won't mind if there were some examples I could follow for the other methods in the interface src/main/java/org/abstractj/kalium/NaCl.java. I am far from being an expert, these lines look to simply directly expose libsodiums API ( in Sodium.class) to your interface also called Sodium.

@jreckner all the examples are available here https://github.com/abstractj/kalium/tree/master/src/test/java/org/abstractj/kalium

@jreckner I'm closing it for now, feel free to reopen if you would like to move forward.


Wedding landing page work in progress

⚠ 🔴 WARNING: This PR is too large.
Consider breaking it down into smaller ones for faster and easier review next time.
Make sure your code has tests and you have done the necessary QA.


meter signature in music examples

Most of the music example don't have an explicit meter signature in the original print. How should we deal with that? At the moment, only meter.unit is defined in the scoreDef. However I noted that automatic post-processing of the encodings (in this case with MEILER) becomes somewhat of an issue without meter.count present. I'd like to suggest to encode a full meterSig element with form='invis'. Any opinions (@rettinghaus)?

We needed meter.count for correct tstamps in Verovio. Using meterSig will bring the examples more inline with the full pieces, that's what I like about it. We could even use @corresp on the elements in scoreDef to bind the pieces and examples together.
However, to make it work properly with MEILER we need to make sure @metcon="false" is correctly set when appropriate.


Add troubleshoot guide for Kafka and Zookeeper PV

Issue Ref: #402
Description:
Add a troubleshoot section for Kafka and Zookeeper PVs.
TODOs:

[X] Ready to review
- [ ] Automated Tests
[X] Docs

Sorry for the typos, I fixed them.


Add remark command

Add the feature allowing users to add remarks to each person in the contact.

Codecov Report
Base: 72.15% // Head: 72.15% // Decreases project coverage by -0.00% :warning:

Coverage data is based on head (a70f0fa) compared to base (6290491).
Patch coverage: 75.75% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##             master       #4      +/-   ##
============================================
- Coverage     72.15%   72.15%   -0.01%
- Complexity      399      415      +16
============================================
  Files            70       73       +3
  Lines          1232     1293      +61
  Branches        125      130       +5
============================================
+ Hits            889      933      +44
- Misses          311      326      +15
- Partials         32       34       +2

Impacted Files
Coverage Δ

.../seedu/address/logic/parser/AddressBookParser.java
88.88% <0.00%> (-11.12%)
:arrow_down:

...in/java/seedu/address/logic/parser/ParserUtil.java
89.74% <0.00%> (-7.48%)
:arrow_down:

...eedu/address/logic/parser/RemarkCommandParser.java
0.00% <0.00%> (ø)

src/main/java/seedu/address/ui/PersonCard.java
0.00% <0.00%> (ø)

...c/main/java/seedu/address/model/person/Remark.java
75.00% <75.00%> (ø)

...java/seedu/address/logic/commands/EditCommand.java
97.22% <100.00%> (+0.20%)
:arrow_up:

...va/seedu/address/logic/commands/RemarkCommand.java
100.00% <100.00%> (ø)

...a/seedu/address/logic/parser/AddCommandParser.java
100.00% <100.00%> (ø)

...ain/java/seedu/address/logic/parser/CliSyntax.java
85.71% <100.00%> (+2.38%)
:arrow_up:

...c/main/java/seedu/address/model/person/Person.java
97.82% <100.00%> (+0.20%)
:arrow_up:

... and 3 more

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

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


BUG: kube-proxy config-sync-period is incorrect

Which command or component
sealos init
The Description of the bug
sealos v3 init cluster, but kube-proxy configmap configSyncPeriod=0s

ref: https://kubernetes.io/zh-cn/docs/reference/command-line-tools-reference/kube-proxy/
default : 15m0s

apiVersion: v1
data:
  config.conf: |-
    apiVersion: kubeproxy.config.k8s.io/v1alpha1
    bindAddress: <IP_ADDRESS>
    bindAddressHardFail: false
    clientConnection:
      acceptContentTypes: ""
      burst: 0
      contentType: ""
      kubeconfig: /var/lib/kube-proxy/kubeconfig.conf
      qps: 0
    clusterCIDR: <IP_ADDRESS>/10
    configSyncPeriod: 0s # this values the default is 15m0s
    conntrack:
      maxPerCore: null
      min: null
      tcpCloseWaitTimeout: null
      tcpEstablishedTimeout: null
    detectLocalMode: ""
    enableProfiling: false
    healthzBindAddress: ""
    hostnameOverride: ""
    iptables:
      masqueradeAll: false
      masqueradeBit: null
      minSyncPeriod: 0s
      syncPeriod: 0s
    ipvs:
      excludeCIDRs:
      - <IP_ADDRESS>/32
      minSyncPeriod: 0s
      scheduler: ""
      strictARP: true
      syncPeriod: 0s
      tcpFinTimeout: 0s
      tcpTimeout: 0s
      udpTimeout: 0s
    kind: KubeProxyConfiguration
    metricsBindAddress: ""
    mode: ipvs
    nodePortAddresses: null
    oomScoreAdj: null
    portRange: ""
    showHiddenMetricsForVersion: ""
    udpIdleTimeout: 0s
    winkernel:
      enableDSR: false
      networkName: ""
      sourceVip: ""

Test Result

kubectl get cm -n kube-system -oyaml |grep configSyncPeriod

Seems if configSyncPeriod is 0 will use default values?

I have not seen the source code, but there are some nodes in the production environment that do not synchronize ipvs due to network problems. after processing, there is no synchronization data the next day.

#1650  fix it.

Reference i

its already been dealt with


Mass Storage not working pine64-pinephoneA64

When pressing volume up I see the blue led of mass storage but after it turns red.
I erased eMMC and reinstalled tow-boot.
Version: pine64-pinephoneA64-2022.07-006.
Can I flash the shared.disk-image.img without breaking the partition table?
I've made it using gdisk https://nixos.wiki/wiki/NixOS_on_ARM/Allwinner_GPT_Installation.
OS: Artix Linux aarch64
Host: Pine64 PinePhone (1.2)
Kernel: 6.6.6-1-danctnix

I have u-boot package from Danctnix with this fix to allow booting from external TF card.
But it wasn't flashed with dd.

That NixOS's wiki command breaks partition table and you don't need to make any hole.
I tried it with the hole.
I used dd to write zeros and reinstalled tow-boot again.
Now it works.
How can I remove u-boot if I have GPT?
I see that the Tow-Boot's wiki command won't work for GPT.
$ sudo dd if=/dev/zero of=/dev/[DEVICE] bs=8k seek=1 count=4
Some distributions target UEFI boot, and use GPT. Issuing this command will break the partition table.

u-boot was dded using:
sudo dd if=${TMPMOUNT}/boot/u-boot-sunxi-with-spl-${DEVICE}-552.bin of=${DISK_IMAGE} bs=128k seek=1 oflag=sync


Refactor DialogService to use model and contributions

This PR fixes #109056

@bpasero I made changes for the inline comments. I'm not sure I understand the benefit/purpose of moving them from workbench contributions which are easily included in the proper main.ts to within core, where we then have to instantiate them manually.

@bpasero if you already have an idea where you want to move the files to be part of the core workbench, feel free to do so. please cc me on the commit so I can understand further the changes.


Added support for config files

Added ability to store most recent calibration values in config file for faster repeated calibration.
Also cleaned up a couple of small things.

Merging pull request.


Confusing UI

For most it is confusing to see installation instructions on the first page. The Welcome site shall only give a broad overview, the installation can be hidden a bit more.

yeah i can do that that should not be to hard

i did it in my version if you want to see it


Add npm pacakge gm for openwhisk

The npm package gm for GraphicsMagick is available for OpenWhisk

@sefuhrer this is safe to deploy as it's already available in production.

@csantanapr you want to take this one also? https://github.com/IBM-Bluemix/docs/issues/134

@rabbah just did

@sefuhrer bump
Can we get this merged?


Featuer/4 landing page

The color can change!

Merged.
@HugoLaurent  please take a look at branch
remember to point your branch to this branch instead of develop

and please merge the branch into your local branch before doing anything.
you can do it easily by any git GUI you worked ( also you can check Lazygit ) but I'll write a guideline for git cli about how you can update your branch
git remote add NAME URL
git fetch NAME
git checkout -b 'ANYNAME/feature/4-landing-page' "NAMEfeature/4-landing-page"
git pull
git checkout -b 'feature/4-landing-page'
git merge "ANYNAME/feature/4-landing-page"

then your branch will be update. if you need any problem DM me on Discord


Remove workaround for touching what in dak.with_name

Need to check if this also fixes #223

Do not merge until https://github.com/scikit-hep/awkward/pull/2395 is merged!

We should be able to make a test showing that necessary_columns does the right thing, no?

Yes - but it seems this is also a partial fix (since 2395 is a partial fix). Working out the edge cases.

@agoose77 FYI - the partial fix is indeed partial. It's a bit strange that I need to touch some of these, at least I can relax the over-aggressive touching.

Codecov Report

Merging #227 (5f2fcc8) into main (838c8b0) will not change coverage.
The diff coverage is 100.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@           Coverage Diff           @@
##             main     #227   +/-   ##
=======================================
  Coverage   94.49%   94.49%
=======================================
  Files          19       19
  Lines        2053     2053
=======================================
  Hits         1940     1940
  Misses        113      113

Impacted Files
Coverage Δ

src/dask_awkward/lib/structure.py
95.38% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

So digging a bit deeper this change appears to be a consequence with_field always spawning a map_partitions which means the data in what must be read and attached to the array (so we must touch what but we don't need to touch anything below what unless it's specifically called for).
The behavior at the type tracer level seems reasonable:
muon = ttarray.muon
print("muon: ", report.data_touched)
muon["weight"] = ttarray.weight
print("assign:", report.data_touched)

yields:
muon:  []
assign: ['muon_list_outer!']

Which is correct behavior since that never accesses weight. similarly, in the more complex test the equivalent of weight is assigned but never accessed.
So, actually, instead of anything to do with fixing #223 it is an example of it. Since the typetracer is doing the right thing and we are only running into this because we do not cull un-used columns that are attached by with_field.

Please merge this one when awkward pushes its next release as the associated fix is now in main.


RFC: cri: Devices ownership from SecurityContext

CRI container runtimes mount devices (set via kubernetes device plugins)
to containers by taking the host owner/group IDs to the corresponding
container device.
This triggers a problem when trying to run those containers with
non-zero (root uid/gid = 0) uid/gid set via runAsUser/runAsGroup:
the container user has no permission to use the device even when
its gid is permissive to non-root users because the container user
does not belong to that group.
It is possible to workaround the problem by manually adding the device
gid(s) to supplementalGroups. However, this is also problematic because
the device gid(s) may have different values depending on the workers'
distro/version in the cluster.
This patch suggests to take RunAsUser/RunAsGroup set via SecurityContext
as the device UID/GID, respectively. The feature can be opted-out by
setting io.kubernetes.cri.DisableDeviceOwnershipFromSecurityContext
annotation to "true".
The annotation can be set by kubernetes device plugins or kubelet.
If several device resources are requested, it is enough if one device
plugin sets this annotation to opt-out for the configuration for
all the devices added.
Which issue(s) this PR fixes:
Fixes: kubernetes/kubernetes#92211
Special notes for your reviewer:
See the k/k issue for details. I have created a detailed Google doc about the
gap and proposed few alternatives how to address it. This PR implements our
"option A" which is what we prefer.
Our preference is that the gap is also addressed the same way in cri-p too.
I have opened a PR with the same implementation there too.
Need help in testing...

/ok-to-test

Should probably also add a test case over here:

@mikebrow I submitted v2, added test cases and dropped "RFC"

Sorry @mythi, could you rebase this pull request?

@kzys rebased and force pushed
@mikebrow 7776e5ef2ad42cc6e739241db677049c6b083ab1 changed things a bit so I had to re-work the logic. PTAL. I added uid:gid ownership to OCI's WithDevices but would it be better to keep them as separate uint32s

@mikebrow sorry for the radio silence, I could not make the changes we talked about before my vacation. I just pushed new version that covers all the changes you requested. PTAL?

related .. https://github.com/cri-o/cri-o/pull/4620


[QUESTION] Multiple RAG sources?

Hi,
I am working on a rag application.
Is there a way to have in one workflow both PDF loader and for example web scraper?

yes you can do that. Moving to discussion for QnA.


absl.flags._exceptions.UnparsedFlagAccessError if used flags in tf.TensorSpec

System information

Have I written custom code
Yes:
OS Platform and Distribution
Win10:
Mobile device
No:
TensorFlow installed from (source or
binary): - TensorFlow version (use command below):
Python version: 2.1.0

Standalone code to reproduce the issue
code snippets url: https://gitee.com/songhaohao2018/codes/cmunjs6zqbe895y7h0gpa21

@songs18
As i understand , you are using TF version 2.1.0.Please provide details about what platform you are using (operating system, architecture).
The url you have provided is not working. Request you to provide colab link or simple standalone code to reproduce the issue in our environment. It helps us in localizing the issue faster. Thanks!

OS : Win10 PRO 1903
CPU : i5-4210U
Memory : 8G
TF version : 2.1.0 python CPU version
reproduce code:
from future import absolute_import, division, print_function
import tensorflow as tf
import numpy as np
from absl import app, logging, flags
FLAGS = flags.FLAGS
flags.DEFINE_integer('height', 28, help='image height')
flags.DEFINE_integer('width', 28, help='image width')
flags.DEFINE_integer('num_classes', default=10, help='class number')
flags.DEFINE_integer('num_futures', default=784, help='num futures')
flags.DEFINE_float('lr', default=0.001, help='learning rate')
flags.DEFINE_integer('training_steps', default=1000, help='training steps')
flags.DEFINE_integer('batch_size', default=100, help='batch size')
flags.DEFINE_integer('display_step', default=100, help='display step')
flags.DEFINE_integer('num_input', default=28, help='number input')
flags.DEFINE_integer('timesteps', default=28, help='tiemsteps')
flags.DEFINE_integer('num_units', default=32, help='num_units')
def get_data():
(x_train, y_train), (x_test, y_test) = tf.keras.datasets.mnist.load_data()
x_train, x_test = np.array(x_train, np.float32), np.array(x_test, np.float32)
x_train, x_test = x_train.reshape([-1, 28, 28]), x_test.reshape([-1, FLAGS.num_futures])
x_train, x_test = x_train / 255., x_test / 255.
train_data = tf.data.Dataset.from_tensor_slices((x_train, y_train))
train_data = train_data.repeat().shuffle(5000).batch(FLAGS.batch_size).prefetch(1)
return train_data

class BiRNN(tf.keras.Model):
def init(self):
super(BiRNN, self).init()
    lstm_fw = tf.keras.layers.LSTM(units=FLAGS.num_units)
    lstm_bw = tf.keras.layers.LSTM(units=FLAGS.num_units, go_backwards=True)

    self.bi_lstm = tf.keras.layers.Bidirectional(lstm_fw, backward_layer=lstm_bw)
    self.out = tf.keras.layers.Dense(FLAGS.num_classes)

@tf.function(input_signature=[tf.TensorSpec(shape=[None, FLAGS.height, FLAGS.width], dtype=tf.float32)])
def call(self, x):
    x = self.bi_lstm(x)
    x = self.out(x)

    x = tf.nn.softmax(x)
    return x

def cross_entropy_loss(x, y):
y = tf.cast(y, tf.int64)
loss = tf.nn.sparse_softmax_cross_entropy_with_logits(labels=y, logits=x)
return tf.reduce_mean(loss)
def accuracy(y_pred, y_true):
correct_prediction = tf.equal(tf.argmax(y_pred, 1), tf.cast(y_true, tf.int64))
return tf.reduce_mean(tf.cast(correct_prediction, tf.float32), axis=-1)
def run_optimization(birnn_net, optimizer, x, y):
with tf.GradientTape() as tape:
pred = birnn_net(x)
loss = cross_entropy_loss(pred, y)
trainable_variables = birnn_net.trainable_variables
gradients = tape.gradient(loss, trainable_variables)
optimizer.apply_gradients(zip(gradients, trainable_variables))
def main(argv):
del argv
train_data = get_data()
birnn_net = BiRNN()
optimizer = tf.optimizers.Adam(FLAGS.lr)

for step, (batch_x, batch_y) in enumerate(train_data.take(FLAGS.training_steps), 1):
    run_optimization(birnn_net, optimizer, batch_x, batch_y)
    if step % FLAGS.display_step == 0:
        pred = birnn_net(batch_x)
        loss = accuracy(pred, batch_y)
        acc = accuracy(pred, batch_y)
        logging.info('step: {}, loss: {}, accuracy: {}'.format(step, loss, acc))

if name == 'main':
app.run(main)

@songs18
Request you to share colab link or simple standalone code with proper indentation to reproduce the issue in our environment. It helps us in localizing the issue faster. Thanks!

https://gitee.com/songhaohao2018/tf_issues/blob/master/absl_202002.py

I have tried on colab with TF version 2.1.0 and i am able to reproduce the issue.Please, find the gist here.Thanks!

This is expected. The flag is parsed when app.run(main) is executed. However, the @tf.function annotation is parsed when the class BiRNN and all its methods are parsed. Note that method body is not parsed until it get invoked, but method signature is parsed when class is parsed. This means that you can't have FLAG.hight in the annotation for the typespec.
Note that input_signature is used to control the shape and dtype of the tensor passed to the function. It's fine to be None, and it won't cause any issue / retrace, as long as the data passed are with same dtype and shape.


Azure CLI use_dynamic_install throws Unhandled promise rejection

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug
Calling az config set extension.use_dynamic_install=yes_without_prompt in the Azure/CLI GitHub Action throws the error.
See related issue: https://github.com/Azure/cli/issues/72
To Reproduce

Create GitHub action
Create a step that uses azure/CLI@v1 action
Call az config set extension.use_dynamic_install=yes_without_prompt

- name: Clean Up Resources
        uses: azure/CLI@v1
        with:
          azcliversion: 2.30.0
          inlineScript: |

            # Allow Dynamic installation of extensions
            az config set extension.use_dynamic_install=yes_without_prompt
            az automation account delete  .... # The automation extension is not installed by default

Expected behavior
Code should execute and install uninstalled extensions as needed
Environment summary

script execution via docker image mcr.microsoft.com/azure-cli:2.30.0
Additional context

@jiasli for awareness

@briglx are you still facing this issue, i see that you have closed the other thread as resolved.


Shift to scala 2.12

TODO:

[x] Get rid of @@ as encoders can't be auto derived + some concerns about usability
[ ] Check encoders to derive correct json that telegram accepts
[ ] Shift to last circe and cats

Current coverage is 81.42% (diff: 78.40%)

Merging #18 into master will decrease coverage by 0.77%

@@             master        #18   diff @@
==========================================
  Files            22         19     -3
  Lines           500        436    -64
  Methods         498        434    -64
  Messages          0          0
  Branches          2          2
==========================================
- Hits            411        355    -56
+ Misses           89         81     -8
  Partials          0          0

Powered by Codecov. Last update 7f7600e...d026ee5


in_app_purchase : Null check operator used on a null value

Steps to reproduce
Hello, when I use in_app_purchase: ^3.2.0, an error occurs on the iPhone Mini 12.
The method that causes the error  is queryProductDetails(). Please let me know how to resolve this issue.
Expected results
I hope the purchase dialog can pop up correctly。
Actual results
Null check operator used on a null value

this is stacktrace:
#0      SKProductMessage.decode (package:in_app_purchase_storekit/src/messages.g.dart:371:38)
#1      _InAppPurchaseAPICodec.readValueOfType (package:in_app_purchase_storekit/src/messages.g.dart:556:33)
#2      StandardMessageCodec.readValue (package:flutter/src/services/message_codecs.dart:477:12)
#3      StandardMessageCodec.readValueOfType (package:flutter/src/services/message_codecs.dart:522:23)
#4      _InAppPurchaseAPICodec.readValueOfType (package:in_app_purchase_storekit/src/messages.g.dart:564:22)
#5      StandardMessageCodec.readValue (package:flutter/src/services/message_codecs.dart:477:12)
#6      StandardMessageCodec.readValueOfType (package:flutter/src/services/message_codecs.dart:522:23)
#7      _InAppPurchaseAPICodec.readValueOfType (package:in_app_purchase_storekit/src/messages.g.dart:564:22)
#8      StandardMessageCodec.readValue (package:flutter/src/services/message_codecs.dart:477:12)
#9      _InAppPurchaseAPICodec.readValueOfType (package:in_app_purchase_storekit/src/messages.g.dart:560:49)
#10     StandardMessageCodec.readValue (package:flutter/src/services/message_codecs.dart:477:12)
#11     StandardMessageCodec.readValueOfType (package:flutter/src/services/message_codecs.dart:522:23)
#12     _InAppPurchaseAPICodec.readValueOfType (package:in_app_purchase_storekit/src/messages.g.dart:564:22)
#13     StandardMessageCodec.readValue (package:flutter/src/services/message_codecs.dart:477:12)
#14     StandardMessageCodec.decodeMessage (package:flutter/src/services/message_codecs.dart:341:28)
#15     BasicMessageChannel.send (package:flutter/src/services/platform_channel.dart:218:18)

#16     InAppPurchaseAPI.startProductRequest (package:in_app_purchase_storekit/src/messages.g.dart:703:47)

#17     SKRequestMaker.startProductRequest (package:in_app_purchase_storekit/src/store_kit_wrappers/sk_request_maker.dart:32:9)

#18     InAppPurchaseStoreKitPlatform.queryProductDetails (package:in_app_purchase_storekit/src/in_app_purchase_storekit_platform.dart:126:18)

#19     IapPay.purchase (package:aloha_pay/iap_pay/iap_pay.dart:66:31)

Code sample
final bool isAvailable = await _inAppPurchase.isAvailable();     if (!isAvailable) {       return;     }     if (Platform.isIOS) {       final InAppPurchaseStoreKitPlatformAddition iosPlatformAddition =           _inAppPurchase.getPlatformAddition<InAppPurchaseStoreKitPlatformAddition>();       await iosPlatformAddition.setDelegate(ExamplePaymentQueueDelegate());     }     ProductDetailsResponse? productDetailResponse;     try {       productDetailResponse = await _inAppPurchase.queryProductDetails([productId.trim()].toSet());     } catch (e) {     }
Screenshots or Video

Logs
No response
Flutter Doctor output
[✓] Flutter (Channel stable, 3.22.2, on macOS 13.6.6 22G630 darwin-arm64, locale zh-Hans-CN)
• Flutter version 3.22.2 on channel stable at /Users/cross/Documents/FlutterSdk/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 761747bfc5 (3 months ago), 2024-06-05 22:15:13 +0200
• Engine revision edd8546116
• Dart version 3.4.3
• DevTools version 2.34.3
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/cross/Library/Android/sdk
✗ cmdline-tools component is missing
Run path/to/sdkmanager --install "cmdline-tools;latest"
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run flutter doctor --android-licenses to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15C500b
• CocoaPods version 1.15.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2023.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
[✓] IntelliJ IDEA Ultimate Edition (version 2<IP_ADDRESS>)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
[✓] Connected device (4 available)
• 12mini (mobile)                 • 00008101-001E19603A44001E • ios            • iOS 14.2 18B92
• macOS (desktop)                 • macos                     • darwin-arm64   • macOS 13.6.6 22G630 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad     • darwin         • macOS 13.6.6 22G630 darwin-arm64
• Chrome (web)                    • chrome                    • web-javascript • Google Chrome 127.0.6533.120
! Error: Browsing on the local area network for 袁刚的iPhone. Ensure the device is unlocked and attached with a cable or
associated with the same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources
• All expected network resources are available.
! Doctor found issues in 1 category.

#0 SKProductMessage.decode (package:in_app_purchase_storekit/src/messages.g.dart:371:38)

That line is

localizedDescription: result[2]! as String,

And the conversion code is just setting it directly from the SKProduct's localizedDescription. It looks like the StoreKit header may be misrepresenting the nullability of localizedDescription, in which case the Pigeon structure will need to relax it to be nullable.
/cc @LouiseHsu