Kafka Cluster configurationInfo.arnSelector property incorrectly applies Kafka Configuration arn

What happened?
I created a crossplane composition which creates Kafka Configuration and Cluster resources. In order to link the two, I used the configurationInfo.arnSelector property in the cluster resource definition, with a match label.
After applying the composition, the configuration resource is created, and then the configuration arn property for the cluster is updated, but not with the arn. It is updated with the name of the Configuration resource.  This puts the Cluster resource into a bad state, where it is reporting that the arn does not exist.
As a workaround, I delete the Cluster resource, and once crossplane creates it again, the arn is correctly set. To make this automated, I created a status variable within the composite resource definition, and set the status to the arn. This works for now, but it would be great if the selector worked as advertised.
How can we reproduce it?
Refer to the description above.
What environment did it happen in?

Crossplane version: 1.9.0
Provider-aws version: 0.29.0
Cloud provider: aws
Kubernetes version: 1.22
Kubernetes distribution: AWS EKS

I am also using ArgoCD as the GitOps tool. It's version is 2.3.3

Could you please do
kubectl get configuration.kafka

I see
a504ae8-kafkacluster-2-config   True    True     arn:aws:kafka:reg:123:configuration/kafkacluster-2-config/uuid-4

If it's not True/True, then kubectl describe it.
Finally,
k describe cluster.kafka

    Configuration Info:
      Arn:  arn:aws:kafka:reg:123:configuration/kafkacluster-2-config/uuid-4
      Arn Ref:
        Name:  kafkacluster-2-config
      Arn Selector:
        Match Controller Ref:  true
      Revision:                1

Events:
  Type     Reason                           Age                From                                     Message
  ----     ------                           ----               ----                                     -------
  Warning  CannotResolveResourceReferences  14m (x3 over 14m)  managed/cluster.kafka.aws.crossplane.io  cannot resolve references: mg.Spec.ForProvider.CustomClusterParameters.CustomBrokerNodeGroupInfo.SecurityGroups: referenced field was empty (referenced resource may not yet be ready)
  Normal   CreatedExternalResource          14m                managed/cluster.kafka.aws.crossplane.io  Successfully requested creation of external resource

(The securitygroup had a bug so it took a while before we fixed that, you should not see the same message)

it is working like in @chlunde environment also in our environment - please check your configuration


Add "This is your home view." to tooltip

To help introduce the concept of a home view, and make it clear why the current home view doesn't have a left sidebar menu option to select it as the home view, we should add the following line to the tooltip for whatever view is currently the home view:

This is your home view.

The styling can be modeled after other 2-line tooltips, such as:

CZO thread

@zulipbot claim


SDK Release Plan Target Date data integrity issues between Release Planner & ADO

Issue: The SDK release target date in release plan does not match date in the ADO release plan work item.  The formatting in ADO is also not correct.  The date needs to be included so we know which year.
Release plan link: https://aka.ms/sdk-release-planner?release-plan-id=4506e2ba-9156-ef11-a317-000d3a3783ac
Screenshot below

ADO release plan work item link: https://dev.azure.com/azure-sdk/Release/_queries/edit/23567
Screenshot below

@ladonnaq do you have other examples? the one you are mentioning was manually modified by you. Automation correctly set the date:

Something must have been corrupted when I exported and imported the work items to change add values of isAPEX & isInitial fields. I will omit any date fields when I export and import in the future. Excel tries to convert anything resembling a date to a "date field" and ADO date fields are not standard (remember Praveen had to just use text field).
Is there a way to push the data for that field back out to the release plans? If not, I can go to each release plan that is showing incorrect and edit in the release plan. That does work as I just tried it.


Updated and better README.md

This seems to be a drive by contribution, probably just to participate in hacktoberfest and get a shirt for free...

All these changes seem to make the readme worse rather than better?


Add a better LineBreakStrategy

A better LineBreakStrategy should try to ensure that the next line won’t be indented too much – i. e., it should prefer
bla(bla, bla, bla, bla, bla,
    bla(bla(bla(bla))));

to
bla(bla, bla, bla, bla, bla, bla(bla(
            bla(bla))));

The Dart formatter seems to be all about good line breaks, so there’s lots of good ideas in here: http://journal.stuffwithstuff.com/2015/09/08/the-hardest-program-ive-ever-written/

My opinion is that there should at least be opt-in behaviour to do this:
bla(bla,
      bla,
      bla,
      bla,
      bla,
      bla(bla(bla(bla))));


Licensing and attribution

Hey @joaquimorg I don't mind if you use my open source code like I used your messenger code.
However, keep in mind that this is decent and even required by most open-source licenses provides some form of attribution.
When I added your code, I added your github handle in the readme file to credit your contributions.
It would be nice if you could do the same. :)
Thank you.

Hi, thanks for the reminder. My mistake I will add you repo the the README.

Thanks @joaquimorg :)


Streamlit webcam stops working (webRTC)

Please suggest on how to fix this issue 🙌
Summary
Once press to start the webcam feature, my computer's webcam shows green camera but no picture appears on the streamlit. The streamlit UI box shows downloading.
Steps to reproduce
press starts
https://share.streamlit.io/pannich/moodypyapp/main/moodypyapp.py
Code snippet:
https://github.com/pannich/MoodyPyapp
#Import for streamlit
import streamlit as st
import av
from tensorflow.keras.models import load_model
import numpy as np
from streamlit_webrtc import (
    RTCConfiguration,
    VideoProcessorBase,
    WebRtcMode,
    webrtc_streamer,
)

import cv2
from PIL import Image,ImageEnhance
import numpy as np
import os

import time
import altair as alt
import pandas as pd

#Import for handling image
import cv2
from cvzone.FaceDetectionModule import FaceDetector

RTC_CONFIGURATION = RTCConfiguration(
    {"iceServers": [{"urls": ["stun:stun.l.google.com:19302"]}]}
)

#Create a dict for classes
emotion  ={
          0:'Angry',
          1:'Disgust',
          2:'Fear',
          3:'Happy',
          4:'Sad',
          5:'Surprise',
          6:'Neutral'}

#download model
@st.cache(allow_output_mutation=True)
def retrieve_model():

    model = load_model("model.h5")
    return model
#Main inelligence of the file, class to launch a webcam, detect faces, then detect emotion and output probability for each emotion

def app_emotion_detection():
    class EmotionPredictor(VideoProcessorBase):

        def __init__(self) -> None:
            # Sign detector
            self.face_detector = FaceDetector(    )
            self.model = retrieve_model()
            self.queueprediction = []

        def img_convert(self,image):
            print(image.shape)
            image = cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)
            return image

        def predict(self,image,shape,reshape):

            img_resized = cv2.resize(image, shape).reshape(reshape)
            pred = self.model.predict(img_resized/255.)[0]
            return emotion[np.argmax(pred)], np.max(pred)

        def find_faces(self, image):
            image2 = image.copy()
            image_face, faces = self.face_detector.findFaces(image)

            # loop over all faces and print them on the video + apply prediction
            for face in faces:
                if face['score'][0] < 0.9:
                    continue

                SHAPE = (48, 48)
                RESHAPE = (1,48,48,1)

                xmin = int(face['bbox'][0])
                ymin = int(face['bbox'][1])
                deltax = int(face['bbox'][2])
                deltay = int(face['bbox'][3])

                start_point = (max(0,int(xmin - 0.3*deltax)),max(0,int(ymin - 0.3*deltay)))

                end_point = (min(image2.shape[1],int(xmin + 1.3*deltax)), min(image2.shape[0],int(ymin + 1.3*deltay)))

                im2crop = image2
                im2crop = im2crop[start_point[1]:end_point[1],start_point[0]:end_point[0]]
                im2crop = self.img_convert(im2crop)
                from PIL import Image
                im = Image.fromarray(im2crop)
                im.save("your_file.jpeg")

                prediction,score = self.predict(im2crop,SHAPE,RESHAPE)
                print(prediction, score)
                self.queueprediction.append((prediction,score))

                if len(self.queueprediction)>20:
                    self.queueprediction = self.queueprediction[-20:]
                    print(self.queueprediction)

                emotions_dict =  {
                                    'Angry': 0,
                                    'Disgust':0,
                                    'Fear': 0,
                                    'Happy':0,
                                    'Sad':0,
                                    'Surprise':0,
                                    'Neutral': 0}
                emotions_responses = {
                                    'Angry': 'Wow chill out',
                                    'Disgust':'Eww',
                                    'Fear': 'TIME TO PANIC',
                                    'Happy':'Keep smiling!!',
                                    'Sad':'Aww no please do not be sad',
                                    'Surprise':'Ahhhhh',
                                    'Neutral': 'Show me your mood',
                                    'happytosad': 'Ohh no what happened '}

                for element in self.queueprediction:
                    emotions_dict[element[0]] +=1
                print(emotions_dict)

                # #draw emotion on images
                cv2.putText(image2, f'{prediction}', (start_point[0]+180, start_point[1]+300), cv2.FONT_HERSHEY_COMPLEX_SMALL,
                                 0.9, (255,255,255), 2)

                #{str(score)}
                #(start_point[0]-150, start_point[1]-80)

                maxi = 0
                topemotion = 'Angry'
                for key in emotions_dict:
                    if emotions_dict[key] > maxi:
                        maxi = emotions_dict[key]
                        topemotion = key

                top_emotions_list = ['neutral','neutral']

                if maxi > 15:
                    top_emotions_list.append(topemotion)
                    top_emotions_list.pop(0)
                    if top_emotions_list[-1] == 'Neutral'and top_emotions_list[-2] == 'Happy':
                        topemotion = 'happytosad'

                test = top_emotions_list[1] == 'Neutral'and top_emotions_list[0] == 'Happy'

                cv2.putText(image2, f'{emotions_responses[topemotion]}', (150,80), cv2.FONT_HERSHEY_DUPLEX,
                                 1, (255, 0, 255), 2)

                #draw rectangle arouond face
                cv2.rectangle(image2, start_point, end_point,(255,255,255), 2)

            return faces, image2

        def recv(self, frame: av.VideoFrame) -> av.VideoFrame:
            image = frame.to_ndarray(format="rgb24")
            faces, annotated_image = self.find_faces(image)
            return av.VideoFrame.from_ndarray(annotated_image, format="rgb24")

    webrtc_ctx = webrtc_streamer(
        key="emotion-detection",
        mode=WebRtcMode.SENDRECV,
        rtc_configuration=RTC_CONFIGURATION,
        video_processor_factory=EmotionPredictor,
        media_stream_constraints={"video": True, "audio": False},
        async_processing=True,
    )

############################ Sidebar + launching #################################################
def main():
    our_cover_image=Image.open("new_cover_image.jpeg")
    st.image(our_cover_image)
    st.title('Welcome to MoodyPy')

    activities =["Live Emotion Detector","Upload your Emotion!", "About"]
    choice = st.sidebar.selectbox('Select Activity',activities)

    if choice=="Live Emotion Detector":
         st.markdown(f'''
        ### Deep learning for AI Facial Detector
        ### Connecting Artificial Intelligence & Human Emotion
        Artificial Intelligence technology is developing fast:
        - Whilst AI technologies stride to improve efficiency in our everyday lives, the soft side of AI is still falling behind.
        - We will be interacting with computers more than ever, and it is crucial to develop AI that communicates smoothly to us just like another human.
        - As a result we decided to develop a realtime Emotion Detector, allowing AI to emphasise more with humans.
        - This allows for endless possibilities to advance AI applications in areas such as healthcare or detecting drunk drivers.
        ### Try it out yourself: how are you feeling today? :blush:
        ''')

         app_emotion_detection()

         st.markdown(f'''
            Press Start 👈 to start the show!
            ''')

    elif choice=='Upload your Emotion!':
        st.subheader('Emotion Detection')
        image_file=st.file_uploader('Upload Image',type=["jpg","png","jpeg"])

        if image_file is not None:
            our_static_image= Image.open(image_file)
            st.image(our_static_image)
            my_bar = st.progress(0)
            st.text('Calculating Emotion Step 1: resizing')
            for percent_complete in range(100):
                time.sleep(0.02)
                my_bar.progress(percent_complete + 1)
            new_img=np.array(our_static_image.convert('RGB'))
            img=cv2.cvtColor(new_img,1)
            our_static_image = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
            #ßst.image(our_static_image)
            st.text('Calculating Emotion Step 2: passing through prediction model')
            for percent_complete in range(100):
                time.sleep(0.02)
                my_bar.progress(percent_complete + 1)
            st.text('Calculating Emotion Step 3: calculating confidence')
            for percent_complete in range(100):
                time.sleep(0.02)
                my_bar.progress(percent_complete + 1)

            model = retrieve_model()

            SHAPE = (48, 48)
            RESHAPE = (1,48,48,1)

            img_resized = cv2.resize(our_static_image, SHAPE).reshape(RESHAPE)
            pred = model.predict(img_resized/255.)[0]
            print(pred)
            #pred=[2.18952447e-02, 9.08929738e-04, 2.18112040e-02, 5.32227278e-01,
              #4.18808281e-01, 6.75195479e-04]

            chart_data = pd.DataFrame(
            pred,
            index=["Angry","'Disgust","Fear","Happy","Sad","Surprise","Neutral"],)
            data = pd.melt(chart_data.reset_index(), id_vars=["index"])
            chart = (
            alt.Chart(data)
            .mark_bar()
            .encode(
            x=alt.X("value", type="quantitative", title=""),
            y=alt.Y("index", type="nominal", title=""),
            color=alt.Color("variable", type="nominal", title=""),
            order=alt.Order("variable", sort="descending"),
                )
                    )

            st.altair_chart(chart, use_container_width=True)

            emotion_2=emotion[np.argmax(pred)]
            if emotion_2 == "Happy":
                st.text(f'Great to see you are smiling today')
            if emotion_2 == "Angry":
                 st.text(f'Wow chill out please')
            if emotion_2 == "Disgust":
                 st.text(f'Eww')
            if emotion_2 == "Fear":
                 st.text(f'DO NOT PANIC')
            if emotion_2 == "Sad":
                st.text(f'Aww please do not be sad')
            if emotion_2 == "Surprise":
                st.text(f'Ahhhh')
            if emotion_2 == "Neutral":
                st.text(f'Is there anything I can do to make you smile?')

    elif choice ==  "About":
        st.subheader('Our Team')
        our_group_image=Image.open("Group_picture.png")
        st.image(our_group_image, caption="…MoodyPy is loading your \U0001F600 \U0001F60D \U0001F621 \U0001F624 \U0001F4A8")

        st.markdown(f'''
            ### About our model
            Often CNNs models are trained with the tensorflow [VGG16](https://www.tensorflow.org/api_docs/python/tf/keras/applications/vgg16/VGG16) transfer learning model. In our case, we ended up using a less complex model that is four times smaller in term of size. So that we can have it run super smooth on the website. Our accuracy of the small model is not the best across all models, but it is good enough to predict emotions.
            We used the FER 2013 (https://www.kaggle.com/msambare/fer2013) dataset, which contains 32,900 + images including 8 emotion categories – anger, contempt, disgust, fear, happiness, neutrality, sadness and surprise.
            To achieve better accuracy and an effective tradeoff with timing, we narrowed our model down to 6 emotion categories – anger, disgust, fear, happiness, sadness and surprise.
            We ended up with 64% testing accuracy.
            We hope you enjoy it!
            ''')

if __name__ == '__main__':
    main()

Go to https://share.streamlit.io/pannich/moodypyapp/main/moodypyapp.py
Click on 'start'

Expected behavior:

starts the webcam and shows live video

Actual behavior:

loading wheel is spinning, my computer webcam is showing 'green' light but no image on the web.

Explain the buggy behavior you experience when you go through the steps above.
If applicable, add screenshots to help explain your problem.
Is this a regression?
Last month it was working all right (When I was in the UK. now I'm in Thailand)
Debug info

Streamlit version: (get it with $ streamlit version)streamlit==1.2.0
streamlit-webrtc==0.31.3
Python version: (get it with $ python --version)
Using Conda? PipEnv? PyEnv? Pex?
OS version: macOS Monterey 12.2
Browser version: Chrome Version 101.0.4951.64 (Official Build) (arm64)

Additional information
Screenshot:

When I try @whitphx  app, I have the same error : https://discuss.streamlit.io/t/new-component-streamlit-webrtc-a-new-way-to-deal-with-real-time-media-streams/8669 on chrome. If I use safari the webcam opens but there is no object label.
My friend from Thailand can use your application but cannot use mine.
My friend from the UK can use both your and mine applications.
When I was in the UK last month I can use both.
So, I'm not sure how consistent is my application. Is there any way that I can get it running on my computer, and get it running for everyone. Thank you!

Hi,
I can open your application in Japan using Google Chrome(MacOS) with university wi-fi. But, could not open it yesterday at home with low-speed internet. Maybe it's related to network speed?
BTW, great application!

@vocdex Thank you for your report!
I support their opinion. I also could open the app from my home network (yes, it was a nice app!).
There are many similar issue reports, for example: https://discuss.streamlit.io/t/error-while-using-streamlit-webrtc/13880/8
If you need to keep using the current network env, setting up a TURN server and using it would be a solution.
Read this section of README and follow the link.
Another to read: https://github.com/whitphx/streamlit-webrtc/issues/44#issuecomment-773314359

Thank you @vocdex @whitphx . I can get it working now when connecting to the higher internet speed. 👍🏻


Pipeline fails with error Access to undefined parameter vcf_file``

Issue
The following command no longer works:
~/nextflow run nf-core/pgdb -r 7ddf11b \
    -profile docker \
    --ensembl_name homo_sapiens \
    --cosmic true \
    --add_reference true \
    --cosmic_user_name "****" \
    --cosmic_password "****" \
    --cosmic_cancer_type 'Merkel_cell_carcinoma'

Error message is:
WARN: Access to undefined parameter `vcf_file` -- Initialise it to a default value eg. `params.vcf_file = some_value`

Thanks for the help!

It is fixed with the latest commits, please feel free to re-open the issue if that is not the case.


Multi select dropdown select-behaviour is confusing

Multi select dropdown select-behaviour is confusing:
When selecting an item within a multi select dropdown (larger list), the item jumps to the top and therefore is "disappeared" for the user.
Environment

Operating system

macOS 10.14.2

Browser

Chrome
Detailed description

What version of the Carbon Design System are you using?

9.76.0

What did you expect to happen?

Item should stay at the same position after it was selected (like in version 10)
After Dropdown was closed and reopened, the selected items are shown at the Top (unlike in version 10)
If a selected item (shown on top) is deselected, the position stays the same, till the drop down is closed. On reopen the deselected item is back to its original position.

What happened instead?

Selected items jumps to the top (out of the visible area).
Steps to reproduce the issue

Open a multi select dropdown with more than 4 items
Scroll the the last item
Select last item
Item disappears (to the top)

https://codesandbox.io/s/3173zm4wkm
Additional information

hi @ConradSchmidt thanks for reporting this! as you already noticed, I removed this behavior from only v10 in https://github.com/IBM/carbon-components-react/pull/1926. I can go ahead and backport this change but I first want to confirm with @IBM/carbon-designers that this fix is ok for v9

I'm going to unassign myself and remove the a11y tag since this isn't explicitly an accessibility concern and it seems like @emyarod has got this one

We have addressed not having items jump to the top upon selection when opening the dropdown. However we would like to also implement when reopening the dropdown after selection that the items that are selected are now at the top. This could be useful if the dropdown list has 50+ items in it so the selected items are easily findable. This may be a post v10 release implementation.

@emyarod Should I create another issue for the carbon-components-react repo or is it fine to cross reference this issue?

@ConradSchmidt I'll transfer this ticket over to the React repo


version 1.4 does not launch on MAC OS 10.10.5

Storage Explorer Version: 1.4
Platform/OS Version: OSX 10.10.5 (MacOS)
Architecture:
Regression From: 0.8
Steps to Reproduce:

Upgraded to the latest (1.4.x) version on MacOS  10.10.5
the App refuses to launch - get a system error that the app is not compatible with my OS version

Expected Experience:
should be able to ran the app
Actual Experience:
the App refuses to launch - get a system error that the app is not compatible with my OS version

Hi @alex-miro , starting with Storage Explorer 1.0.0, the minimum version of macOS supported is High Sierra (version 10.12). This is due to a dependency on .NET Core 2.0.


Look into :Veonim ... commands on Windows

I'd like to get :Veonim explorer working.
I'm going to:

[ ] Setup a 'dev' environment. See the "development" section of the README.

Upstream issue:

None of the :Veonim commands do anything on Windows · Issue #610 · veonim/veonim


Tiles unload when they are still in viewport

I have problem that tiles are unloaded to early when they still are still in the viewport. This happen especially if you quite close to the tree tops in my case. Moving o rotating makes the tiles dissapear from view.
See this gif:

These are my export settings:
i3dm.export -c "Host=localhost;Username=postgres;password=xxxxx;Port=5432" -t  kri_instances -f cesium --use_scale_non_uniform --boundingvolume_heights 0,100 --rtccenter true --max_features_per_tile 1000
There is no difference if I set --rtccenter to false.
I attach my output with a cesium example. The tree glb is I used is also in the zip (Tree folder "Box.glb")
Any ideas on what I can do to improve this?
instances_bug.zip

Hi, looks like something with the tile bounding boxes going wrong. I would set --rtccenter to true because higher precision. Can you attach the input table kri_instances also (as csv or something)?

Sure. Here it is (exported from pgadmin)
kri_instances.zip

Looks like it's related to the used glTF, I think you've used  '07_Ek_01.glb' (from instances_bug.zip)? With 07_Ek_01.glb (containing 256*256 pixel image texture) I can reproduce it, when using Box.glb I cannot reproduce.

closing because no activity

@bertt can you help please?
I think i have same issue. What should i do to make tiles visible:

GLTFS:
1.4.6.zip

@smarttty The glTF's in the zip are not valid (you can check at https://github.khronos.org/glTF-Validator/), maybe you can try with valid glTF's?

@smarttty The glTF's in the zip are not valid (you can check at https://github.khronos.org/glTF-Validator/), maybe you can try with valid glTF's?

Hello, @bertt ! Thank you for reply. I reseed tiles with one valid glb model and still have same result.
1.1.zip

ok, what if you use a simple cube instead? https://github.com/Geodan/i3dm.export/blob/main/tests/Box.glb

ok, what if you use a simple cube instead? https://github.com/Geodan/i3dm.export/blob/main/tests/Box.glb

With boxes its ok. Do you know, what problem can be with glb or gltf? Images inside?

yeah probably the images, the issue above there was a very big image inside the glTF giving this issue

yeah probably the images, the issue above there was a very big image inside the glTF giving this issue

@bertt , sorry but i repeated with box. I generate tiles with 100 features per tile.

ok, can you add an attachment with a zip of html, tileset.json and content/subtree folder?
you can also try with GPU instancing see (https://github.com/Geodan/i3dm.export#gpu-instancing)

ok, can you add an attachment with a zip of html, tileset.json and content/subtree folder?
you can also try with GPU instancing see (https://github.com/Geodan/i3dm.export#gpu-instancing)

Loaded archive to gdrive
Thank you!

What version of i3dm.export did you use? Latest is 2.6

What version of i3dm.export did you use? Latest is 2.6 (in tileset.json I see 1.0 but this is unlikely possible)
If you've used latest version, can you also create a table dump? For example by $ pg_dump -U postgres -p 5432 -U postgres --table sign_instances > sign_instances.sql
Some other thing: in tileset.json the GeometricError is set very low (0.01), default is 1000. Wondering why it's set this low value?

Version is 2.4.3.
dump
Geometric error was changed from 0.01 to 5000. May be i'm wrong, but as i understood lower GeometricError should cause features to be visible as close as possible to the ground.

can you try with 2.6?

Geometric error is the distance to the camera (meters) when the tileset should become visible.

The distance to the ground is determined by the geometry Z values, but it's a bit complex to calculate when the terrain is involved. See https://bertt.wordpress.com/2023/07/11/adding-objects-to-google-photorealistic-3d-tiles/

can you try with 2.6?
Geometric error is the distance to the camera (meters) when the tileset should become visible.
The distance to the ground is determined by the geometry Z values, but it's a bit complex to calculate when the terrain is involved. See https://bertt.wordpress.com/2023/07/11/adding-objects-to-google-photorealistic-3d-tiles/

Reseeded with version 2.6 with 100 features pert tile and geometric error 1000. Here is the archive.
Here is video  with disappearing boxes.

Could be you are looking at the following effect: When setting MaxFeaturesPerTile to 100 (instead of default 1000) more Z-levels are created. In CesiumJS  the geometric error is divided by 2 for each z level (when using implicit tiling), so you've got to zoom in more to see the features. It's a bit confusing.
So I would recommend to use the default MaxFeaturesPerTile (1000 or more). Also increasing the geometric error will help.


implicit null value in definitions

Issue Description
The following service template contains 6 implicit null values in definitions:
tosca_definitions_version: tosca_simple_yaml_1_3
data_types: # null value implicitly
capability_types:
  CT: # null value implicitly
node_types:
  NT:
    description: # null value implicitly
    capabilities: # null value implicitly
    requirements: # null value implicitly
topology_template:
  node_templates:
    n1:
      type: tosca.nodes.Compute
      capabilities:
        os: # null value implicitly

TOSCA specification seems to not explicity specify if and when null values in definitions are allowed.
For this service template

Ubicity Validator reports only one error on data_types:.
Puccini reports 6 errors.
Cloudnet TOSCA toolbox reports 6 errors.

This repository contains some service templates with null values in definitions:

https://github.com/oasis-open/tosca-community-contributions/blob/master/examples/1.3/examples-from-spec/inputs-and-outputs/inputs-and-outputs.yaml#L34
https://github.com/oasis-open/tosca-community-contributions/blob/master/examples/basic-template/basic-template.yml#L18

Proposed Resolution
Explicitly specify in TOSCA 2.0 if and when null values in definitions are allowed.

Thanks Philippe, I’ll fix Ubicity so it no longer complains about the empty “data_types” section.

Ok now Ubicity reports no error.

In your opinion, what is the problem with allowing null values for these various sections? They all seem harmless to me.

Currently, we have at least two different tool behaviours:

no error when null value, i.e. Ubicity
error when null value, i.e. Puccini and Cloudnet TOSCA toolbox

So a service template containing null values is not portable to different TOSCA implementations. This is an issue for TOSCA users.
Accepting null values is not so problematic: TOSCA implementors just need to put if xxx != None: everywhere in their code. They could complain (or not) to have to do that.
My issue is that the TOSCA specification does not explicitly specify if a TOSCA implementation shall or shall not accept null values. I am just asking to explicitly specify this aspect in the spec. We could discuss this during a TC meeting, and decide a common position on this subject.

Accepting null values or not accepting null values is a design choice of any YAML-based language. For instance, Kubernetes manifests can not contain null values according to the schema at https://raw.githubusercontent.com/kubernetes/kubernetes/v1.22.1/api/openapi-spec/swagger.json.  On the other side, Compose specifies that some keywords but not all keywords accept null values according to the Compose schema at https://github.com/compose-spec/compose-spec/blob/master/schema/compose-spec.json. But both explicitly specify if and when null values are allowed. We should take a decision for TOSCA.

Yes, let's decide during the Language Ad-Hoc meeting. My vote is in favor of making things as easy as possible for service template and profile authors, even if it requires a little bit more work for Orchestrator vendors.

I don't see how accepting null values will make things as easy as possible  for somebody;-)
Anyway if we accept null values then we would need to update each BNF-like grammar section to explicitly specify which keynames accept null values. A lot of editorial works in perspective ;-(
We could also specify at the beginning that null values are accepted everywhere but we should specify what the semantics of null values is everywhere.
For instance what is the semantics of the following fragment?
node_templates:
  n:
    type: tosca.nodes.Compute
    capabilities:
      os: # implicit null value

Write the following is certainly easier or at least more concise
node_templates:
 n:
   type: tosca.nodes.Compute

So you could imagine that my vote will be against accepting null values in any place;-)

I also think implicit nulls introduce potential ambiguities. There are various places in TOSCA where just the act of writing something down could be understood as "activating" a feature. But then a null could be reasonably understood by readers as a way to disable the feature.
Also note that enabling support for "implicit" nulls really just means enabling support for nulls. Explicit nulls would count, too. So this would have to be legal TOSCA:
node_templates: null

I can think of three examples of ambiguity: requirement assignments, operation assignments, and valid_source_types.
Writing down a requirement "activates" at least one slot of the named requirement definition from the node type (using count can make more than one). If no keyname is used, we will assume keyname values from the requirement definition are to applied unchanged. But ... it is also reasonable to look at an assignment of "null" as not counting at all.
In a lot of TOSCA you can see operations, at interface types, given the {} empty map shorthand, to show that the operation is named but not otherwise defined. Imagine the interface type inherits from another. A null value could be reasonably understood by a reader to mean that the operation should be disabled rather than inherited as is.
In valid_source_types you can provide an empty list, which could be understood to mean that no relationship is possible (no node type would fit). But then a null is, emphatically, not an empty list. It could be understood to mean that this feature is not being used, thus all relationships are enabled. It's in fact the exact opposite meaning. I suspect that many uses of type lists in TOSCA embed this potential confusion.
I'm in favor of keeping keyname values explicitly typed, {} and [], and thus avoiding any potential misinterpretations of the grammar. Null should not be an equivalent for these.
If we do decide to allow for null, I agree with @philippemerle -- it would be our responsibility to scour the entire TOSCA spec to consider the semantic meaning of null in each case.

We don't have support in TOSCA for "disabling" a feature (none of our refinement rules allow it) so I would be surprised if anybody would assume that "null" could be used for this purpose.
Based on your argument, is it safe to assume that "null" is never a valid value for TOSCA keywords?

I indeed think the only place a YAML null would make sense is as a value for the "nil" TOSCA type, which is itself of very limited usability. We've essentially introduced the nil type for completion, say for interoperability with external data models. What is null, really, in the context of a strongly typed language? Null could make sense as an uninitialized pointer, but TOSCA does not have pointers. Other types have their own zero values: 0 for integers and floats, an empty string for strings, and empty lists and maps.
Of course I understand that what is being proposed here is syntactical rather than grammatical: essentially it's intended to be sugar to avoid typing in {} and [] in certain circumstances. But I feel that an explicit null value introduces a cumbersome inconsistency to the language structure. As @philippemerle points out, we would have to spec out null support clearly for those keynames that could allow it. I think the cons outweigh the single potential pro.


[Bug]: Pressing Enter in Chinese Input Method Sends Message Instead of Confirming Text on Safari

What happened?
When using macOS with a Chinese input method to type English words on the web, pressing the Enter key directly sends the message instead of confirming the selected word and placing it into the input box. The expected behavior is that pressing Enter should first confirm the selected word.
Steps to Reproduce
1.on macOS system.
2.Switch to a Chinese input method (e.g., Pinyin).
3.Start typing an English word (e.g., "test") using the Chinese input method.
4.Press Enter to confirm the word.
What browsers are you seeing the problem on?
Safari
Relevant log output
No response
Screenshots
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

这个好像是Safari的问题，其他的浏览器都没问题。可以参考这里用油猴脚本解决 https://greasyfork.org/zh-CN/scripts/470612-chagpt-safari-中文输入法回车键修复


netcoreapp1.0 -> netstandard1.3

this was errantly included in PR #38

@edenhill

This only changes the main module, shouldnt all places be changed?
$ git grep netcoreapp
Makefile:LINUX_FRAMEWORK=netcoreapp1.0
examples/AdvancedConsumer/project.json:        "netcoreapp1.0": {
examples/AdvancedProducer/project.json:        "netcoreapp1.0": {
examples/FSharp/project.json:    "netcoreapp1.1": {
examples/Misc/project.json:        "netcoreapp1.0": {
examples/MultiProducer/project.json:        "netcoreapp1.0": {
examples/SimpleConsumer/project.json:        "netcoreapp1.0": {
examples/SimpleProducer/project.json:        "netcoreapp1.0": {
src/Confluent.Kafka/project.json:        "netcoreapp1.0": {
test/Confluent.Kafka.Benchmark/project.json:    "netcoreapp1.0": {
test/Confluent.Kafka.IntegrationTests/project.json:    "netcoreapp1.0": {
test/Confluent.Kafka.UnitTests/project.json:        "netcoreapp1.0": {
test/Confluent.Kafka.VerifiableClient/project.json:        "netcoreapp1.0": {

netstandard is only for libraries.
from https://blogs.msdn.microsoft.com/cesardelatorre/2016/06/28/running-net-core-apps-on-multiple-frameworks-and-what-the-target-framework-monikers-tfms-are-about/

As simple rules to follow:
App Developers: You target the platform TFM you’re writing for ( netcoreapp1.0, uap10.0 ,  net452 ,  xamarinios , etc.).
Package/Library Authors: Target the lowest  netstandard  version you can. You will run on all platforms that support that  netstandard  version or higher

okay, LGTM


Fix a couple of minor language issues

The ordering of arguments to Assert* affects the output
Add @deprecated annotation where applicable
Python pep8 violation fix
Add missing private ctor for utility class

I personally don't see the point of the private constructor, but I don't mind having it either.
Thanks again.


Getting error "Theme cannot be previewed" when starting new project

Problem
Getting this error during Step 4 here: https://github.com/Shopify/slate/wiki/4.-Start-developing
Theme cannot be previewed because it's missing one of these required files: layout/theme.liquid, templates/index.liquid, templates/collection.liquid, templates/product.liquid, templates/page.liquid, templates/cart.liquid, templates/blog.liquid, config/settings_schema.json
console output:
13:44:28 [development]Asset Perform Update to templates/blog.liquid at host XXXXXX.myshopify.com 	Status: 404 Not Found 	Errors: This file is not part of your theme.
^have 390 errors like this when running npm start for different files
Replication steps
follow steps here creating a new project: https://github.com/Shopify/slate/wiki/Getting-Started
More Information
Mac OS X El Capitan
node v8.11.4
npm v5.6.0

I was also experiencing this same issue and it turned out I was using the theme_store_id listed in my themes.xml file instead of the id for that specific theme:

If this turns out to also be your issue, I think it might be worth clarifying a bit more in Step 3 of the setup process.

yup, this was my issue, the docs need to be updated. thanks @monika!


TS-4048: Broken Vagrantfile in a lot of ways

removed some broken boxes
added some boxes
changed from puppet-provisioning to shell-provisioning

This looks generally reasonable.
I'd like the patch series to be a bit cleaner; maybe fix the vagrant box URLs in the first commit, then switch over to the shell provisioner.
We need to retain the additional build packages (libcap-devel, etc) so that optional components are always detected and built. It looks like you dropped FreeBSD, was that deliberate?

Yeah i know what you mean about that patch series... working on it
I just checked for configure to run in default configuration when looking for those dependencies trying to keep the images small.
I can add those optional dependencies as well. Would be great if they were documented as optional though ([doclink] (https://docs.trafficserver.apache.org/en/stable/getting-started/index.en.html#installation)).
What do you think about dependencies for plugins? Shall they be added as well?
That FreeBSD image is gone and there wasn't any provisioning at all so that probably never worked ootb anyways. If that's still needed i'll try to add it as well but i'd prefer to do that after all the other stuff is working again.

Yeah i know what you mean about that patch series... working on it

thanks :)

I just checked for configure to run in default configuration when looking for those dependencies
trying to keep the images small.
I can add those optional dependencies as well. Would be great if they were documented as optional
though (doclink).
What do you think about dependencies for plugins? Shall they be added as well?

The original goal of these was so that dev could spin up build environments for configurations they didn't have easy access to, which meant that I installed all the dependencies to build all the optional components. If you can get all the dependencies in, that would be great. On RHEL-based systems I remember it was a bit tedious to get the right dependencies out of EPEL though.

That FreeBSD image is gone and there wasn't any provisioning at all so that probably never worked
ootb anyways. If that's still needed i'll try to add it as well but i'd prefer to do that after all the other stuff
is working again.

No that's fine; I just wanted to check whether this was a deliberate decision. A FreeBSD image will just bitrot again unless there's someone to take care of it.

@jpeach will shepard.

I just added those optional dependencies.
Cleaning up that patch series is pretty hard though. Looks more like a complete rewrite than a couple of fixes. I'm still thinking about how to split all those changes without leaving it in an even worse state. Those commits work alltogether... applying only some of them does'nt really make any sense. Maybe just squash em?

Thanks @christoph-k86!


use sha256 sum for idempotency token

As of now we use a bit less secure md5 for idempotency token, I think we should prefer to use more secure sha256sum for it and this PR aims to do that, thanks!

Hey @mritunjaysharma394 - Thanks for the PR! So we can better understand, what exactly are the security benefits of using Sha256 over Md5 for an idempotency token? Idempotency tokens are not secure or sensitive information, so its not immediately clear to me.
Thanks!

Hey @divyansh-gupta , thanks for your reply and review! While, idempotency tokens are not secure or sensitive information, using MD5 in this makes it non-FIPS compliant by most FIPS verification check tests due to it. Thus when this is run in environments which are strict FIPS compliant, it may fail to run or show unwarranted behaviours. Using sha256 may save us from that. Thanks!

Hi @mritunjaysharma394, the tests are failing because the idempotency token has a max length of 36
https://docs.aws.amazon.com/privateca/latest/APIReference/API_IssueCertificate.html#privateca-IssueCertificate-request-IdempotencyToken

operation error ACM PCA: IssueCertificate, https response error StatusCode: 400, RequestID: 807f511a-b6ef-4432-999d-f6d41f7e4c8b, api error ValidationException: 1 validation error detected: Value '6a2bccd1c8ba53886ab3f8a2b235fd416cdf508aa351d0ebd48b3e5740e8b96c' at 'idempotencyToken' failed to satisfy constraint: Member must have length less than or equal to 36

Thanks @ARichman555 , sure I can do that and will do it right now

Hi @ARichman555 @ndbhat, squashed the commits, lmk if it looks good now, thanks!


can you provide the marker1501.py

can you provide the market1501.py and other py files of different datasets in the folder data_manager of your project? Thank you?

Do you have market1501.py?

can you provide the market1501.py and other py files of different datasets in the folder data_manager of your project? Thank you?

Do you have market1501.py?


error: proc-macro derive panicked

Hello, I compiled with this command :
PX8_SCREEN_WIDTH=256 PX8_SCREEN_HEIGHT=256 cargo build --features="lua" --release
and I have this error. I have rust 1.17 on osx 10.10.5.
Thanks.
error: proc-macro derive panicked
--> src/cartridge/mod.rs:905:21
|
905 | #[derive(Serialize, Deserialize)]
|                     ^^^^^^^^^^^
|
= help: message: proc_macro::__internal::with_parse_sess() called before set_parse_sess()!
error: Could not compile px8.

Weird !
Could you done a cargo clean to be sure ?

I done a cargo clean, but nothing change.

I can't reproduce this bug, it is weird

It seems related to Serde, @dtolnay: have you an idea ?

This is rust-lang/rust#39870. The homebrew packaging for Rust is hosed. Uninstall everything Rust-related with homebrew and reinstall with https://rustup.rs/ to fix this.

@dtolnay: Thanks !
@iezed tell me if it works to close the bug !

Thanks, I'll try in this day.

I reinstall rust with rustup, and now can build. Thanks.

This should no longer be a problem in Homebrew due to https://github.com/Homebrew/homebrew-core/pull/14490.

thx !


Warning error marker

We should have no commit with minor message

Do you mean I shouldn't have done those changes or it's just about the commit message?


Date format

From chicchiricco on October 04, 2010 13:25:47
The format of all date attributes should reflect the pattern defined in the respective schema, not the locale of the admin logged in.
Original issue: http://code.google.com/p/syncope/issues/detail?id=56

From<EMAIL_ADDRESS>on October 21, 2010 04:02:26
Status: Started

From<EMAIL_ADDRESS>on October 22, 2010 06:18:02
This issue was closed by revision r656 .
Status: Fixed


Make VSIX F5-able when building locally

Is this not working?

lol didn't notice what repo I was in 😁


test: use bazel to get bins while testing

use bazel's release packaging while testing example/basic. Rewrite example/basic/build-tools.sh by using bazel

It seems bazel (>0.29.1) is not installed in the ci image. So whether should I install bazel in the test scripts or you update the ci image to support bazel?

added bazel to travis base by https://github.com/kubernetes-sigs/apiserver-builder-alpha/pull/460, can you take another rebase?

Now the ci can be passed. Also I add a untar.go in cmd/apiserver-boot/boot/util since the original untar operation is not robust for bazel's .tar.gz.
I try to add golang.org/x/build in cmd/go.mod but it may upgrade a lot of packages. So for compatibility I just copy untar.go from golang.org/x/build into cmd/apiserver-boot/boot/util.


CI: replace upload

What does this PR do?
for some reason, uploading assets to release is broken https://github.com/svenstaro/upload-release-action/issues/44

so splitting upload as parallel to publishing to unblock the flow
try another action for uploding

Before submitting

[ ] Was this discussed/approved via a GitHub issue? (not for typos and docs)
[x] Did you read the contributor guideline, Pull Request section?
[x] Did you make sure your PR does only one thing, instead of bundling different changes together?
[x] Did you make sure to update the documentation with your changes? (if necessary)
[x] Did you write any new necessary tests? (not for typos and docs)
[x] Did you verify new and existing tests pass locally with your changes?
[x] Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:

[x] Is this pull request ready for review? (if not, please submit in draft mode)
[x] Check that all items from Before submitting are resolved
[x] Make sure the title is self-explanatory and the description concisely explains the PR
[x] Add labels and milestones (and optionally projects) to the PR so it can be classified
[x] Check that target branch and milestone match!

Did you have fun?
Make sure you had fun coding 🙃

Do we plan to keep this one going forward or just until the previous is fixed?

from their reply, I understood that it not an action issue but a connection, trying another and to unblock the workflow pussting upload aside so failed doe not affect publishing to PyPI...

@tchaton ^^


Cython.Compiler.Errors.CompileError: MACS2/IO/BedGraph.pyx of MACS (<IP_ADDRESS>)

Describe the error
Cython.Compiler.Errors.CompileError: MACS2/IO/BedGraph.pyx
installation environment
Anaconda2/4.2.0
error detail
(py2) [user@host MACS2]$ python2.7 setup.py install
Compiling MACS2/Prob.pyx because it changed.
Compiling MACS2/IO/Parser.pyx because it changed.
Compiling MACS2/Pileup.pyx because it changed.
Compiling MACS2/PeakModel.pyx because it changed.
Compiling MACS2/PeakDetect.pyx because it changed.
Compiling MACS2/Signal.pyx because it changed.
Compiling MACS2/IO/PeakIO.pyx because it changed.
Compiling MACS2/IO/BedGraphIO.pyx because it changed.
Compiling MACS2/IO/FixWidthTrack.pyx because it changed.
Compiling MACS2/IO/PairedEndTrack.pyx because it changed.
Compiling MACS2/IO/BedGraph.pyx because it changed.
Compiling MACS2/IO/ScoreTrack.pyx because it changed.
Compiling MACS2/IO/CallPeakUnit.pyx because it changed.
Compiling MACS2/hashtable.pyx because it changed.
Compiling MACS2/Statistics.pyx because it changed.
[ 1/15] Cythonizing MACS2/IO/BedGraph.pyx

Error compiling Cython file:
------------------------------------------------------------
...
            return bpeaks

        thickStart = str(lvl1peakset[0]["start"])
        thickEnd   = str(lvl1peakset[-1]["end"])
        blockNum   = len(lvl1peakset)
        blockSizes = ",".join( map(lambda x:str(x["length"]),lvl1peakset) )
                            ^
------------------------------------------------------------

MACS2/IO/BedGraph.pyx:580:29: Cannot convert Unicode string to 'str' implicitly. This is not portable and requires explicit encoding.

Error compiling Cython file:
------------------------------------------------------------
...

        thickStart = str(lvl1peakset[0]["start"])
        thickEnd   = str(lvl1peakset[-1]["end"])
        blockNum   = len(lvl1peakset)
        blockSizes = ",".join( map(lambda x:str(x["length"]),lvl1peakset) )
        blockStarts = ",".join( map(lambda x:str(x["start"]-start),lvl1peakset) )
                             ^
------------------------------------------------------------

MACS2/IO/BedGraph.pyx:581:30: Cannot convert Unicode string to 'str' implicitly. This is not portable and requires explicit encoding.

Error compiling Cython file:
------------------------------------------------------------
...
        # add 1bp left and/or right block if necessary
        if int(thickStart) != start:
            # add 1bp left block
            thickStart = str(start)
            blockNum += 1
            blockSizes = "1,"+blockSizes
                            ^
------------------------------------------------------------

MACS2/IO/BedGraph.pyx:588:29: Cannot convert Unicode string to 'str' implicitly. This is not portable and requires explicit encoding.

Error compiling Cython file:
------------------------------------------------------------
...
        if int(thickStart) != start:
            # add 1bp left block
            thickStart = str(start)
            blockNum += 1
            blockSizes = "1,"+blockSizes
            blockStarts = "0,"+blockStarts
                             ^
------------------------------------------------------------

MACS2/IO/BedGraph.pyx:589:30: Cannot convert Unicode string to 'str' implicitly. This is not portable and requires explicit encoding.

Error compiling Cython file:
------------------------------------------------------------
...
            blockStarts = "0,"+blockStarts
        if int(thickEnd) != end:
            # add 1bp right block
            thickEnd = str(end)
            blockNum += 1
            blockSizes = blockSizes+",1"
                                  ^
------------------------------------------------------------

MACS2/IO/BedGraph.pyx:594:35: Cannot convert Unicode string to 'str' implicitly. This is not portable and requires explicit encoding.

Error compiling Cython file:
------------------------------------------------------------
...
                        total_p += 1
                cutoff_lpeaks[ cutoff ] = cutoff_lpeaks.get( cutoff, 0 ) + total_l
                cutoff_npeaks[ cutoff ] = cutoff_npeaks.get( cutoff, 0 ) + total_p

        # write pvalue and total length of predicted peaks
        ret = "pscore\tnpeaks\tlpeaks\tavelpeak\n"
             ^
------------------------------------------------------------

MACS2/IO/BedGraph.pyx:1051:14: Cannot convert Unicode string to 'str' implicitly. This is not portable and requires explicit encoding.

Error compiling Cython file:
------------------------------------------------------------
...

        # write pvalue and total length of predicted peaks
        ret = "pscore\tnpeaks\tlpeaks\tavelpeak\n"
        for cutoff in sorted(cutoff_lpeaks.keys(), reverse=True):
            if cutoff_npeaks[ cutoff ] > 0:
                ret += "%.2f\t%d\t%d\t%.2f\n" % ( cutoff, cutoff_npeaks[ cutoff ], cutoff_lpeaks[ cutoff ], cutoff_lpeaks[ cutoff ]/cutoff_npeaks[ cutoff ] )
                   ^
------------------------------------------------------------

MACS2/IO/BedGraph.pyx:1054:20: Cannot convert Unicode string to 'str' implicitly. This is not portable and requires explicit encoding.
Traceback (most recent call last):
  File "setup.py", line 115, in <module>
    main()
  File "setup.py", line 111, in main
    ext_modules = cythonize(ext_modules, language_level="2")
  File "/home/kzhou/.conda/envs/py2/lib/python2.7/site-packages/Cython/Build/Dependencies.py", line 1016, in cythonize
    cythonize_one(*args)
  File "/home/kzhou/.conda/envs/py2/lib/python2.7/site-packages/Cython/Build/Dependencies.py", line 1138, in cythonize_one
    raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: MACS2/IO/BedGraph.pyx

@KR-Chow It seems you were installing MACS2 with Python3. Currently, MACS2 can only be installed and run with Python2.

@KR-Chow It seems you were installing MACS2 with Python3. Currently, MACS2 can only be installed and run with Python2.

Thanks for your reply. I'm sure that I installed MACS2 with command "python2.7 setup.py install" in activated python2.7 environment .

@KR-Chow What's the version for Cython? This error is Python3 specific, so perhaps the Cython you used in your system link to Python3. Also, please try to remove MACS2 from your system and install it through PyPI: pip install MACS2.

@KR-Chow What's the version for Cython? This error is Python3 specific, so perhaps the Cython you used in your system link to Python3. Also, please try to remove MACS2 from your system and install it through PyPI: pip install MACS2.
The Cython version is 0.28.2. I've successfully installed MACS2 via pip. Thanks!

@KR-Chow Great! I closed the issue.


haskell.packages.ghc841.singletons doesn't build

Issue description
singletons doesn't build on unstable.
The root cause seems to be that th-desugar 1.7 requires template-haskell > 2.13 but ghc-8.4.1 only  provides template-haskell <IP_ADDRESS> according to this.
Steps to reproduce
run nix-shell -p haskell.packages.ghc841.singletons
these derivations will be built:
  /nix/store/xwkim7v3f1yg36hs5j8llxca6nzqh66s-th-desugar-1.7.drv
  /nix/store/lr6la9ff8ixplcx6qz9bl3c5d9my8p59-singletons-2.3.1.drv
building '/nix/store/xwkim7v3f1yg36hs5j8llxca6nzqh66s-th-desugar-1.7.drv'...
setupCompilerEnvironmentPhase
Build with /nix/store/8cdbwmwrlx4hxnpvil2ddmnk7y2bki4s-ghc-8.4.1.
unpacking sources
unpacking source archive /nix/store/f60z0zpj4l9ifkicb71ni3q6zr2qx2r5-source
source root is source
patching sources
Replace Cabal file with edited version from http://hackage.haskell.org/package/th-desugar-1.7/revision/1.cabal.
compileBuildDriverPhase
setupCompileFlags: -package-db=/tmp/nix-build-th-desugar-1.7.drv-0/package.conf.d -j1 -threaded
[1 of 1] Compiling Main             ( Setup.hs, /tmp/nix-build-th-desugar-1.7.drv-0/Main.o )
Linking Setup ...
configuring
configureFlags: --verbose --prefix=/nix/store/zc1xl30mih7gbjqif7nxnmf0s7d30ilk-th-desugar-1.7 --libdir=$prefix/lib/$compiler --libsubdir=$pkgid --docdir=/nix/store/cm7xknjiqrmpsc5z61wrrx4vy20sh8yj-th-desugar-1.7-doc/share/doc --with-gcc=gcc --package-db=/tmp/nix-build-th-desugar-1.7.drv-0/package.conf.d --ghc-option=-j1 --disable-split-objs --enable-library-profiling --profiling-detail=all-functions --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --enable-tests --enable-library-vanilla --enable-library-for-ghci --ghc-option=-split-sections --extra-lib-dirs=/nix/store/s8c50k081m5xdc2lxz0dwimsnm74rlnb-ncurses-6.1/lib --extra-lib-dirs=/nix/store/7fd1hqfrw1w0csfiv3sic09dhcszgbcc-gmp-6.1.2/lib --extra-lib-dirs=/nix/store/s8c50k081m5xdc2lxz0dwimsnm74rlnb-ncurses-6.1/lib
Using Parsec parser
Configuring th-desugar-1.7...
CallStack (from HasCallStack):
  die', called at libraries/Cabal/Cabal/Distribution/Simple/Configure.hs:958:20 in Cabal-<IP_ADDRESS>:Distribution.Simple.Configure
  configureFinalizedPackage, called at libraries/Cabal/Cabal/Distribution/Simple/Configure.hs:462:12 in Cabal-<IP_ADDRESS>:Distribution.Simple.Configure
  configure, called at libraries/Cabal/Cabal/Distribution/Simple.hs:596:20 in Cabal-<IP_ADDRESS>:Distribution.Simple
  confHook, called at libraries/Cabal/Cabal/Distribution/Simple/UserHooks.hs:67:5 in Cabal-<IP_ADDRESS>:Distribution.Simple.UserHooks
  configureAction, called at libraries/Cabal/Cabal/Distribution/Simple.hs:178:19 in Cabal-<IP_ADDRESS>:Distribution.Simple
  defaultMainHelper, called at libraries/Cabal/Cabal/Distribution/Simple.hs:115:27 in Cabal-<IP_ADDRESS>:Distribution.Simple
  defaultMain, called at Setup.hs:2:8 in main:Main
Setup: Encountered missing dependencies:
template-haskell >=2.8 && <2.13

builder for '/nix/store/xwkim7v3f1yg36hs5j8llxca6nzqh66s-th-desugar-1.7.drv' failed with exit code 1
cannot build derivation '/nix/store/lr6la9ff8ixplcx6qz9bl3c5d9my8p59-singletons-2.3.1.drv': 1 dependencies couldn't be built
error: build of '/nix/store/lr6la9ff8ixplcx6qz9bl3c5d9my8p59-singletons-2.3.1.drv' failed

Technical details

system: "x86_64-linux"
host os: Linux 4.14.29, NixOS, 18.09pre133621.56fb68dcef4 (Jellyfish)
multi-user?: yes
sandbox: no
version: nix-env (Nix) 2.0
channels(chisui): ""
channels(root): "nixos-18.09pre133621.56fb68dcef4"
nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs

Only the 2.4 version of singletons works with GHC 8.4.1.

Than version should be changed from 2.3.1 to 2.4.

See #37880


Pretrained Weights

Hey, in your train.md you specify there is the ability to pull the pretrained weights via a script,
the script and the directory it sits under do not exist.
is the pretrained weights the weights for DiNO and MAE? or for the ViTMatte after fine tuning?
thanks for the great work!

I see now that there is a pretrained weight download in the readme. thanks!
Yiftach


Buttons draw over eachother when placed on a grid

How can I set buttons to not draw over each other when placed on a grid in columns ?
And rather just fill up the width they are set to, and the next button gets drawn directly to the right.
I.e. TAB, CAPS, and space are longer than other keys
Space gets drawn,  then (ALTGR, FN, OPT,RCTRL) all get drawn ontop of the space bar which still extends outwards to the right after RCTRL.

fn mk_row(){
    let kw = 48.0 ; //  Standard Key width
    // // Second Row
    let second_row_keys: Vec<(&str,i32,f64)>  = vec![("TAB",0,66.66) ,("Q",1,kw) ,("W",2,kw) ,("E",3,kw) ,("R",4,kw) ,("T",5,kw) ,("Y",6,kw) ,("U",7,kw) ,("I",8,kw) ,("O",9,kw) ,("P",10,kw) ,("[",11,kw) ,("]",12,kw) ,("ENTER",13,66.66) ];
    let second_row= make_row(ctx, second_row_keys);
   // add second_row to overall grid with other key rows
}

fn make_row(ctx: &mut BuildContext, row_keys: Vec<(&str,i32,f64)> ) -> Grid {
    let key_w = _WIDTH * 0.0405;
    let mut row_columns= Columns::create();
    for _ in 0..row_keys.len(){ row_columns=row_columns.column(key_w); }

    let mut row =  Grid::create().columns(row_columns.build());
    for i in row_keys.iter(){
        let (key,pos,width) = i;
        let fkey = generate_character_button(ctx,key.to_string(),*pos as usize, *width);
        row = row.child(fkey);
    }
    row
}

Hopefully this helps someone else looking as well.

In your case it would help to add auto columns to your grid:
for _ in 0..row_keys.len(){ row_columns=row_columns.column("auto"); }

Auto columns gets the width of the widgets element in the column.
If you want to add spacers between your buttons you could add spacer columns between the buttons:
for _ in 0..row_keys.len(){ row_columns=row_columns.column("auto").column(8.0); }

let mut row =  Grid::create().columns(row_columns.build());
for i in row_keys.iter(){
    let (key,pos,width) = i;
    let fkey = generate_character_button(ctx,key.to_string(),*pos as usize * 2, *width);
    row = row.child(fkey);
}

By the way nice project.

This looks so much better, i was trying functions like .clip .padding.
Thank you @FloVanGH !
Great library, looking forward to using it more :+1:

You’re welcome. Thank you I’m glad to hear that 🙂.


ShowDialog should allow a navigatorKey to be passed in

ShowDialog should allow a navigatorKey to be passed in as a parameter for situations where the widget is above the Naivgator.

Hi @jimmyff
If I'm not mistaken showDialog needs MaterialLocalizations, which gets added implicitly by the MaterialApp widget. reference
Maybe for this reason this is not possible
Thank you

May I know what is the use case you are trying to solve?

Hey @chunhtai I'm using the builder parameter in MaterialApp which returns a Scaffold with body: child - this way I can have a persistent bottom panel in my app whilst keep routing working. I need a persistnent bottom panel as my app allows users to watch videos as they continue to browse the rest of the app. I wanted to show a dialog from the scaffold / drawer in the app however I couldn't hence this ticket.
It feels like many of the flutter widgets such as dialogs, drop downbuttons (see issue) etc don't work becuase they need to accept a navigatorKey for routing or they are reliant on MaterialLocalizations. However thisis the only way to achieve the functionality I need to my knowledge. My app is available in the play store if you want to see my use-case.

hi @jimmyff see my comment in https://github.com/flutter/flutter/issues/52016#issuecomment-595298125

@chunhtai thanks for the feedback on the other ticket.
Another related quick question: How do you suggest doing a one time dialog on app start? The logical place would be on initState of a main widget like the app, but the problem is the context isn't available at this point. I've seen some solutions using awaiting delayed futures but this seems a bit hacky and might not be very robust, is there a recommended way to do this?
Thanks

@jimmyff This is a stackoverflow question. I cannot give a recommendation over which way is better. you have reference to context in State class, however it might not fully initialize during initstate. One way to do it will be scheduling a post frame call back to show the dialog to make sure it was initialized and laid out.

I will close this issue. Let me know if there is anything else i have not addressed


FastFix to Critical Error.

DB.php didn't work because old deprecated methods

?
!

Type
bug

BC Break
yes / no

Fixed issues

Didn't find opened issues

[27-May-2024 22:06:14 UTC] PHP Fatal error:  Uncaught TypeError: Longman\TelegramBot\DB::insertUser(): Argument #1 ($user) must be of type Longman\TelegramBot\Entities\User, array given, called in /vendor/longman/telegram-bot/src/DB.php on line 1279 and defined in /vendor/longman/telegram-bot/src/DB.php:416
Stack trace:
#0 /vendor/longman/telegram-bot/src/DB.php(1279): Longman\TelegramBot\DB::insertUser()
#1 /vendor/longman/telegram-bot/src/DB.php(575): Longman\TelegramBot\DB::insertMessageRequest()
#2 /vendor/longman/telegram-bot/src/Telegram.php(655): Longman\TelegramBot\DB::insertRequest()
#3 /vendor/longman/telegram-bot/src/Telegram.php(568): Longman\TelegramBot\Telegram->processUpdate()
#4 /vendor/php-telegram-bot/telegram-bot-manager/src/BotManager.php(418): Longman\TelegramBot\Telegram->handle()
#5 /vendor/php-telegram-bot/telegram-bot-manager/src/BotManager.php(266): TelegramBot\TelegramBotManager\BotManager->handleWebhook()
#6 /vendor/php-telegram-bot/telegram-bot-manager/src/BotManager.php(106): TelegramBot\TelegramBotManager\BotManager->handleRequest()
#7 /manager.php(36): TelegramBot\TelegramBotManager\BotManager->run()
#8 {main}
thrown in /vendor/longman/telegram-bot/src/DB.php on line 416
Summary

At least now it's working. And clean DB starts getting data on any forward

Bug fixed just for now. Maybe somwere there is more deprecated methods.

I'm looking into it

There were imports missing and a few cases. I added those. Thanks for your contribution!


load color schemes from external image files

should be able to have files with seven pixels in a row that correspond to the seven colors of a color scheme and be able to load those instead of textually specifying color schemes

wait, no, an image file wouldn't work because i use a different color format. disregard lmao


Clean up '#if CORE' in DynamicInstructionN.cs

Related #3565 and #4357.

For simple changes like this one -- removing unnecessary using directives -- you should use one PR for all of them in future.


[MRG] Release 0.6

This PR is a preparation for release 0.6 of POT
After all this work (and use of POT by me and other people) it feels as we reached a stable and nice list of tools around OT.
What I will do it this PR:

[x] Change version to 0.6
[x] Add detailed release text in RELEASES.md
[x] Add build of wheels for manylinux using cibuildwheel (not on travis but locally before uploading to PIP)
[x] Remove beta flag
[x] Update Pypi classifiers
[x] Add Python 3.7  to travis and remove 3.4

Hey @rflamary
Indeed POT is used by many people -- including me -- but in my humble opinion, a 1.0 release should be reserved for "major incompatible and necessary changes planned long in advanced" (https://devguide.python.org/devcycle/)
(scikit-learn is still at 0.21 for instance).
Several improvements can be made before preparing a 1.0 release. Off the top of my head:

large sections of code are duplicated in some functions of the bregman module
the naming of the funcs sinkhorn and sinkhorn2 returning either the distance or the transport plan should be changed
In some funcs, the transport plan computed (which can be heavy to store on gpus) even though it is not needed. I'm thinking there should be a function that explicitly computes the transport plan given the dual variables making the call specific.
sinkhorn returns the distance or the plan depending on the second dimension of the input distribution b ..
The emd functions should be in a specific module not in the __init__ file
There is lot of commented code around
the naming convention can be clearer and more consistent
a two letters package name  -- ot --  can cause multiple headaches ..

I know some of these are major changes but I think it would be better to discuss them now (it will only get harder to address them as the codebase grows larger) and continue to make minor / micro releases with deprecation warnings while doing a general review of the code, creating issues and working on them (potentially in a coding sprint :) ?), and then maybe prepare the 1.0 release.

I guess I'll finish the 3rd check in another PR then :)

I completely agree with @hichamjanati . Especially on the naming issues: there are so many variables with names like a, b, etc... which should change into meaningful variable names - including the filenames (eg da could be named DomainAdaptation) A lot of little issues here and there need to be addressed. For example, in the da code, the fit() functions take Xs, ys, Xt, yt as input. Very often, one does not have (or need) ys and yt. The resulting code looks like this:
...fit(Xs, None, Xt). The order should change into (Xs, Xt, ys, yt).
A coding spring would surely address all of that, I'd be happy to attend if I can!

Hello,
I'm OK to call it release 0.6 but we need a proper release shortly (we are beginning to be very late on pip and conda) and a lot of the new stuff is only available on source. My idea behind 1.0 was that similarly to recent scipy i think we have achieved an important milestone and it might be the time to release a stable version that has been used in the wild. we could then start work on 2.0 that will introduce some API changes.
I also agree that POT could do with some work on the API and a cleanup of parameter names. But those would come with a proper deprecation schedule and I proper discussions between all contributors (and users).
@hichamjanati I agree with most of your wish list but i will not put some API changes in the next release. The last release is already quite old and I will do a merge/release in the next weeks. I think the change you propose require some time to discuss and test before release because it will break a lot of things.
Meeting together for a code sprint is a very nice idea. I will think about how to organize this (we can also imagine a virtual meeting to limit transport).

Hello I have built wheels for all linux version (Py 2.7,3.4,3.5,3.6,3.7 for 32 and 64 bits). I will upload them on release so that it will not be necessary to compile POT from source when installing from Pypi.
We have a nice version 0.6 with the last unbalanced merge. The last release on pypi was nearly one year ago so I will go ahead with merging and releasing shortly this new version of POT if there is no objections.
I have seen a lot of comments (and upvotes) about API updates and I'm open to discussions. It's something that we can do with proper deprecation releases and so on but we need to discuss it all together. Maybe we should open a thread on the POT slack ?

Le 9 sept. 2019 à 16:00, Rémi Flamary<EMAIL_ADDRESS>a écrit :
Hello I have built wheels for all linux version (Py 2.7,3.4,3.5,3.6,3.7 for 32 and 64 bits). I will upload them on release so that it will not be necessary to compile POT from source when installing from Pypi.
We have a nice version 0.6 with the last unbalanced merge. The last release on pypi was nearly one year ago so I will go ahead with merging and releasing shortly this new version of POT if there is no objections.
I have seen a lot of comments (and upvotes) about API updates and I'm open to discussions. It's something that we can do with proper deprecation releases and so on but we need to discuss it all together. Maybe we should open a thread on the POT slack ?

Yes that definitely a good idea !
Nicolas

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/rflamary/POT/pull/91?email_source=notifications&email_token=AFJPODIIVDHAEBSKFKVUBTLQIZJGRA5CNFSM4H6IZCT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6HVV4I#issuecomment-529488625, or mute the thread https://github.com/notifications/unsubscribe-auth/AFJPODNJ3AWSCL4P3UTM4ZDQIZJGRANCNFSM4H6IZCTQ.

ok


Mutualization with webthree lib ?

Hello
do you plan to mutualize your code with https://pub.dev/packages/webthree 's code ?
It could be good for flutter's community :)
Thank you

Best lib to manage EVM methods with flutter: https://pub.dev/packages/wagmi_flutter_web


Delete redundant '\n'

Delete redundant \n.

This change is

if you think format of yaml is wrong, could you send one PR containing them, such as#5904, #5902

I don't understand what you mean.

I mean that could you gather one kind of PRs into one PR, which will be convenient to assign reviewer.

Thanks. :smile:


Error but everything seems ok in config

Hello,
I'm getting this error :
This error originated from a custom integration.

Logger: pygazpar.datasource
Source: custom_components/gazpar/sensor.py:138
integration: GrDF Gazpar (documentation, issues)
First occurred: 11:10:11 (1 occurrences)
Last logged: 11:10:11

An error occurred while loading data. Retry in 3 seconds.

followed by this one :
This error originated from a custom integration.

Logger: homeassistant
Source: custom_components/gazpar/util.py:44
integration: GrDF Gazpar (documentation, issues)
First occurred: 11:10:16 (1 occurrences)
Last logged: 11:10:16

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 960, in async_update_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1130, in _async_write_ha_state
    self.__async_calculate_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1067, in __async_calculate_state
    state = self._stringify_state(available)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1011, in _stringify_state
    if (state := self.state) is None:
                 ^^^^^^^^^^
  File "/config/custom_components/gazpar/sensor.py", line 218, in state
    return Util.toState(self._dataByFrequency)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/gazpar/util.py", line 44, in toState
    volumeEndIndex = float(dailyData[currentIndex][PropertyName.END_INDEX.value])
                           ~~~~~~~~~^^^^^^^^^^^^^^
IndexError: list index out of range

Setup seems ok :
sensor:
  - platform: 'gazpar'
    name: 'indexgaz'
    username<EMAIL_ADDRESS>    password: 'xxxxx'
    pce_identifier: '0xxxxxxxxx9'
    tmpdir: '/tmp'
    scan_interval: '08:00:00'

Please advise. Thanks in advance !

Hello, is it possible there is no data ? Could you check that on GrDF site by downloading the corresponding Excel file ?

Hello,
Excel file is populated up until sept 25.

Yet it does not work.
I've had a password with special characters in it, changed it to a simpler one,but it does not help either.
Thanks for the help!

Ok, I understand now viewing your data and the message you have.
There is a bug in the code happening when there is no consumption on the last period.
I will fix it in the next days

I have just pushed a fix in version 1.3.6.
Could you try it and tell me ?

Yepa, it works again! Thanks!


Is this supposed to happen?

I just got the latest version today, and I have no idea what's going on:

Interesting. Are you using zsh? Do you have a custom config file at ~/.powerline-shell or are you using the default?

Hmm... Was just about to say I tried downgrading and it's the same thing.
I'm using Fish Shell.
I have removed two segments from ~/.powerline-shell.
This must be related to my recent switch to Arch Linux I suppose...

Ugh, so sorry for the title spam. Accidentally pressed enter

Could you post your entire ~/.powerline-shell.json here so I can try the same config on my end?

Ah, sure!
{
  "segments": [
    "virtual_env",
    "ssh",
    "cwd",
    "git",
    "hg",
    "jobs",
    "root"
  ]
}

No luck reproducing on my end. What version of fish are you using?

I'm using fish version 2.6.0 and bash version 4.4.12(1)-release. I'll see if I can reproduce it in a VM.

Bug is not correctly handling the case when $HOME has a trailing slash.

UPDATE: I'm midway in reinstalling arch in a VM, messed with partitions and all that. Took a while. Then my friend who knows literally everything (@tbodt) comes along in a group chat and says "Hey, print $HOME". It has a trailing slash. So /home/jD91mZM2 doesn't match. And /home/jD91mZM2/Downloads becomes ~Downloads.

Oh man - nice. Thanks @tbodt
I can attempt to fix later, but if you want to make a PR I will be happy to look

#309

Just released that fix. It doesn't seem to me like it's going to fix the weird spacing issue though.

That might be a separate issue, I don't know.

The spacing issue was fixed. I have no idea why it was caused (plus, it only appeared in Fish), but if it works it works :stuck_out_tongue:

A bit late but maybe still helpful...
The following solved the issue for me:
sudo dnf install langpacks-en glibc-all-langpacks -y
You probably need to install langpacks-XX for your language as well.
(I'm on Fedora 30)


Having some problems with using this with WSK

I'm just trying to add in the new version of this task into WSK and I'm having a few issues:
At the moment the task is:
gulp.task('favicon', function () {
  favicons({
    files: {
        src: 'app/images/favicons/favicon-1024x1024.png',   // Path for file to produce the favicons. `string` or `object`
        dest: 'dist/',                                      // Path for writing the favicons to. `string`
        html: 'dist/index.html',                            // Path for HTML file to write metadata. `string`
        iconsPath: null,                                    // Path for overriding default icons path. `string`
        androidManifest: 'dist/manifest.json',              // Path for an existing android_chrome_manifest.json. `string`
        browserConfig: null,                                // Path for an existing browserconfig.xml. `string`
        firefoxManifest: 'dist/manifest.webapp',            // Path for an existing manifest.webapp. `string`
        yandexManifest: null                                // Path for an existing yandex-browser-manifest.json. `string`
    },
    icons: {
        android: true,            // Create Android homescreen icon. `boolean`
        appleIcon: true,          // Create Apple touch icons. `boolean`
        appleStartup: true,       // Create Apple startup images. `boolean`
        coast: true,              // Create Opera Coast icon. `boolean`
        favicons: true,           // Create regular favicons. `boolean`
        firefox: true,            // Create Firefox OS icons. `boolean`
        opengraph: true,          // Create Facebook OpenGraph. `boolean`
        windows: true,            // Create Windows 8 tiles. `boolean`
        yandex: true              // Create Yandex browser icon. `boolean`
    },
    settings: {
        appName: 'Web Starter Kit',             // Your application's name. `string`
        appDescription: 'Web Starter Kit',      // Your application's description. `string`
        developer: null,                        // Your (or your developer's) name. `string`
        developerURL: null,                     // Your (or your developer's) URL. `string`
        background: '#3372DF',                  // Background colour for flattened icons. `string`
        index: null,                            // Path for the initial page on the site. `string`
        url: null,                              // URL for your website. `string`
        logging: true                           // Print logs to console?
    }
  });
});

The log for this is minimal:
$ gulp favicon
[14:33:39] Using gulpfile ~/Programming/Code/web-starter-kit/gulpfile.js
[14:33:39] Starting 'favicon'...
[14:33:39] Finished 'favicon' after 538 μs
Created apple-touch-startup-image-320x460.png
Created apple-touch-startup-image-640x920.png
Created apple-touch-startup-image-640x1096.png
Created apple-touch-startup-image-748x1024.png
Created apple-touch-startup-image-768x1004.png
Created apple-touch-startup-image-1496x2048.png
Created apple-touch-startup-image-1536x2008.png

No images seem to get created anywhere (assuming /dist/app-touch-startup-image-*.png would be the location it would be created.

Any ideas of how to debug this easier?
Any obvious issues where I'm going wrong?
Is it possible to give this more than one html file?

Thanks,
Matt

Heya @gauntface, I'll download the WSK and have a look into the issue. It's a bit hard to debug this new version as most of the processing is done with a RealFaviconGenerator API call. It's unlikely you're doing anything wrong as this is a pretty young module so it's prone to things I've missed.

@gauntface Also there's a Gulp plugin now so I recommend using that: https://www.npmjs.com/package/gulp-favicons

Any issues you find, it would be good to reveal them in the logs, always a black box at the moment. I'll try out the gulp-favicons.
Just to let your know I'm working on the material-sprint branch AND I have an image not in the repo - happy to share, but any image to test would be fine.

@gauntface I tried out gulp-favicons by adding a new task and it appears to work okay:
gulp.task('favicons', function() {
  gulp.src('app/index.html')
    .pipe($.favicons({
      files: {
        dest: '../dest/images/',
        html: 'dist/index.html',
        androidManifest: 'dist/manifest.json',
        browserConfig: null,
        firefoxManifest: 'dist/manifest.webapp',
        yandexManifest: null
      },
      icons: {
        android: true,
        appleIcon: true,
        appleStartup: true,
        coast: true,
        favicons: true,
        firefox: true,
        opengraph: true,
        windows: true,
        yandex: true
      },
      settings: {
        appName: 'Web Starter Kit',
        appDescription: 'Web Starter Kit',
        developer: null,
        developerURL: null,
        background: '#3372DF',
        index: null,
        url: null,
        logging: true
      }
    }))
    .pipe(gulp.dest('dist'));
})

Long story short, the Gulp plugin works a little differently by parsing an HTML tag:
<link rel="favicons" href="images/logo.png" />

It removes it upon processing so there's no chance of a W3C validation error or anything. I'd like to make it accept an HTML file or an image when I get around to it.

Thanks for your help @haydenbleasel.
I'm getting different results to you:
$ gulp favicon
[15:15:48] Using gulpfile ~/Programming/Code/web-starter-kit/gulpfile.js
[15:15:48] Starting 'favicon'...
[15:15:48] Finished 'favicon' after 154 ms
Created apple-touch-startup-image-320x460.png

/Users/mattgaunt/Programming/Code/web-starter-kit/node_modules/gulp-favicons/node_modules/underscore/underscore.js:474
    for (var i = 0, length = input.length; i < length; i++) {
                                  ^
TypeError: Cannot read property 'length' of undefined
    at flatten (/Users/mattgaunt/Programming/Code/web-starter-kit/node_modules/gulp-favicons/node_modules/underscore/underscore.js:474:35)
    at Function._.flatten (/Users/mattgaunt/Programming/Code/web-starter-kit/node_modules/gulp-favicons/node_modules/underscore/underscore.js:489:12)
    at /Users/mattgaunt/Programming/Code/web-starter-kit/node_modules/gulp-favicons/index.js:87:50
    at /Users/mattgaunt/Programming/Code/web-starter-kit/node_modules/favicons/index.js:256:24
    at /Users/mattgaunt/Programming/Code/web-starter-kit/node_modules/favicons/node_modules/async/lib/async.js:544:30
    at /Users/mattgaunt/Programming/Code/web-starter-kit/node_modules/favicons/index.js:241:21
    at /Users/mattgaunt/Programming/Code/web-starter-kit/node_modules/favicons/index.js:130:24
    at /Users/mattgaunt/Programming/Code/web-starter-kit/node_modules/favicons/node_modules/async/lib/async.js:254:17
    at done (/Users/mattgaunt/Programming/Code/web-starter-kit/node_modules/favicons/node_modules/async/lib/async.js:129:15)
    at /Users/mattgaunt/Programming/Code/web-starter-kit/node_modules/favicons/node_modules/async/lib/async.js:32:16

I'm also slightly lost as to what this is now doing.
The gulp.src is app/index.html, we also have the html set to dist/index.html (If we can drop the dist/index.html one then thats awesome).
I'm also not following what dest: '../dest/images/',  is doing in this if the gulp.dest is defining dist AND is gulp.dest for the images and the index.html or just one of them?
Pulling info out of the HTML file is actually really helpful for our usecase as it means we can push this to a build only step.

@gauntface I definitely agree it's confusing, I'd like to spend some time on making it simpler. Basically we're reading an HTML file instead of an image for streaming reasons - you can pipe it onto your html task in WSK, making it (as you said) a build-only step. It accepts an HTML file with a custom metatag and returns an HTML file with new metatags. The produced images are basically an "add-on" which is why you need the files.dest property. I think I'll take your advice on removing options.html, it was there in case you don't want metadata printed to your HTML file but whatever, it's bad practice not to.
As for the error you're getting, I usually get that if my metatag is missing or the image reference is wrong. For you, this should be something like:
<link rel="favicons" href="images/favicons/favicon-1024x1024.png" />

I really need to either write down a list of these errors in the readme or make better error messages. Hope this helps :S

Right, further digging (I'll post my code to get to this point), but the issue with a spawn task:
$ gulp favicons
[17:39:53] Using gulpfile ~/Programming/Code/web-starter-kit/gulpfile.js
[17:39:53] Starting 'favicons'...
[17:39:53] Finished 'favicons' after 123 ms
file.cwd = /Users/mattgaunt/Programming/Code/web-starter-kit
Created apple-touch-startup-image-320x460.png
/Users/mattgaunt/Programming/Code/web-starter-kit/node_modules/gulp-favicons/index.js:105
throw error;
^
Error: spawn ENOENT
at errnoException (child_process.js:988:11)
at Process.ChildProcess._handle.onexit (child_process.js:779:34)
I'm assuming this is an issue with the imagemagick but after installing it - I still can't get the damn thing to work :(

Ah - requires graphicsmagick too: https://www.npmjs.com/package/gm

So I've finally got it looking like it's working, but mashed things up into this PR: https://github.com/haydenbleasel/favicons/pull/25

Awesome :)


Could you please add some comments to your Dockerfile? :-)

Hi,
I'm trying to use your image in combination with visiblevc/wordpress-starter, but so far I did not succeed. It would help me if you added some comments to explain the purpose of the different parts of your Dockerfile (I'm quite new to docker).
Thanks!

Do you have any particular issue?
The Dockerfiles are pretty straightforward.

I could have been more specific indeed. What is the purpose of the following directives:
RUN echo "realpath_cache_size=4096k" > /usr/local/etc/php/conf.d/tuning.ini && \
    echo "realpath_cache_ttl=300" >> /usr/local/etc/php/conf.d/tuning.ini

RUN echo "date.timezone = \"UTC\"" >> /usr/local/etc/php/conf.d/timezone.ini`

And I was also wondering why zend_extension was set twice to the same value in two different files, see #2
Thanks for taking the time to answer my noob questions :-)

I was using Silex, so the cache tuning is probably coming from Symfony recommendations.
As for the timezone, it's not define by default, which cause some warning messages, so I defined UTC as the default.

Thanks! I believe those indications could be useful directly in the Dockerfile :-)


index files should be zst

This is low priority but index files should be columnar once the zst format matures a bit.  It will make looking up key values more efficient.  Since the zst engine will ultimately support pushdown searches, we could use that to do faster lookups.
On the other hand, the bottleneck to a search lookup is fetching the data so this might not make much difference though caching may make a difference.

@mccanne remarked that he thinks ZNG will be better for indexes in the long run, so closing this as a "wontfix".


PEAR-1961: Survival Plot, tooltip and download, display of time

Description

Refactored the code. Created separate files for legibility.
Updated tooltip and tsv.

Checklist

[N/A] Added proper unit tests
[N/A] Left proper TODO messages for any remaining tasks
[N/A] Scanned for web accessibility with aXe, and mitigated or documented
flagged issues

Screenshots/Screen Recordings (if Appropriate)

WIP.
Issues

The conversion to months seems off. I have a value of 3478 days (in the TSV). It says "114" months in the tooltip and the TSV. but 114 / 30 should be 116 (rounded to int).

don't use the converted-to-years value then multiply by 12; convert from the days value or we'll see discrepancies.

looks good! 👍


Make some scripts more generic

To be able to re-use some of the functions in the quickstart script for kuadrant-operator I've tried to make them a little more generic:

Made the network in dockerBinCmd overridable by env var instead of set to mgc
Made the namespace for configureController overridable
Renamed quite a few environment variables to KUADRANT_ instead of MGC_

/hold

@adam-cattermole I am going to rebase main against release-0.3 branch so want to wait until that is done before merging this change. We will pick this up in 0.4

/unhold

/lgtm


Empty item in env field inside c_cpp_properties.json causes error

Issue Type: Bug
I'm playing around with using VS Code for embedded project. I have created a c_cpp_properties.json file, where I am planing to list all directories and files inside of different "env" fields and than passing this values to "configuration" "includePath", "browse" and "define" fields.
The problem specifically is caused by an empty field, followed by a non empty field, see example below:
{
    "env": {
        ...
        "userDefines": [],
        ...
        "cubeMXDefines": [
            "USE_HAL_DRIVER",
            "STM32F078xx"
        ],
        ...
    },
    "configurations": [
        {
            ...
            "defines": [
                "${userDefines}",
                "${cubeMXDefines}"
            ],
            ...
        }
    ],
    "version": 4
}

As you can see, userDefines field is empty, while cubeMXDefines in not. While editing main.c for example, I get an error in problems tab:

If I write anything into userDefines field, Intellisense works as expected.
Is there something I am missing, or is this a bug (not handled empty env field)?
VS Code version: Code 1.27.2 (f46c4c469d6e6d8c46f268d1553c5dc4b475840f, 2018-09-12T16:17:45.060Z)
OS version: Windows_NT x64 10.0.17134

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz (4 x 2494)

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

Memory (System)
7.95GB (3.16GB free)

Process Argv
C:\Users\domen\AppData\Local\Programs\Microsoft VS Code\Code.exe

Screen Reader
no

VM
0%

Extensions (6)

Extension
Author (truncated)
Version

bracket-pair-colorizer
Coe
1.0.60

CppSnippets
har
0.0.13

cortex-debug
mar
0.1.21

python
ms-
2018.8.0

cpptools
ms-
0.18.1

debug
web
0.22.0

@joaomoreno Can you explain more about what extension is causing this issue?
Just a thought:  I've make an effort to report a possible bug. Please be kind enough and try to write a quick, helpful reply. This vscodebot reply is really not useful at all.
Thank you.

You seem to be writing C code. Did you install an extension to handle C code? Maybe https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools ?

@schperplata Absolutely! You can file issues in this repository when it's about the core VS Code product. If it is related to an extension, then the extension's repository is the appropriate place. Thanks for understanding.

OK! I will report it in C/C++ extension then.
It is quite hard for us users to separate what is VS Code bug and what is extension bug though.
Anyway, thank you again!


App: show welcome video when clicking on the homepage Garden logo

We currently show the welcome video when clicking the information icon. Let's add the same behaviour when the user clicks on the Garden homepage logo.

Could you specify a bit more this issue? Would this imply to remove the current Information icon?
Would the video be only accesible by clikcing the gardens logo on the gardens list view?

I just flesh it a bit more on the description. My intention was to add an extra behavior when the user clicks the Gardens logo. But we should keep the information icon for sure!

Ah, ok!

I have one question, becase as it currently is, the green circle and the word gardens are both in the same svg, linking to the homepage.
What you want is have that separated, the green circle as one svg(which already exists) having the same behavior as the Information icon, and the word garden as another (this svg I would need to create) keeping the same functionality that it has now?
As @fabriziovigevani  asked, would this only make sense in the homepage or gardens list view (as you want to call it)?
Once a garden is open, the icon (only icon/green ball) is working as the link to the homepage


WOFF2 support

tracking: https://github.com/FezVrasta/bootstrap-material-design/issues/456

Added in 9436ca4


Download links doesn't appear to work.

The download link provided at http://qedserver.napcs.com/ appears to no find anything.

Fixed.


September 2020 Release Endgame

September 2020 Release Endgame
Branch: https://github.com/microsoft/azuredatastudio/tree/release/1.22
Testing Links:

Windows User EXE
Windows System EXE
Windows ZIP
MacOS Zip
Linux tar.gz
Linux rpm
Linux deb

Extensions Testing
Install the latest build of ADS from the link above.
Extensions

Extension
Changed in this Release?
Requires latest ADS?

Admin Pack
No

Admin Tool Extension for Windows
No

Agent
No

CMS
No

Dacpac
No

Import
No

Profiler
No

Schema Compare
No

PostgreSQL
No

Query History
No

Data Virtualization
Yes
Yes

Machine Learning
Yes

SQL Assessment
Yes
Yes

Scenario Sign Off

[ ] Query Editor @kburtram
[ ] Notebooks  @chlafreniere
[ ] Edit Data @smartguest
[ ] ADS Shell @kburtram
[ ] Livesite tooling @qifahs, @MsSQLGirl
[ ] Data Virtualization @Charles-Gagnon
[ ] Acquisition @kburtram
[ ] Connection @Charles-Gagnon
[x] Language Service @Charles-Gagnon
[x] Query History @Charles-Gagnon
[x] Spark Job Submission @Charles-Gagnon
[ ] Resource Deployment @alanrenmsft
[ ] Books @MaddyDev
[x] Charting and Insights @alanrenmsft
[x] Dashboard @alanrenmsft
[ ] Backup/Restore @udeeshagautam
[x] File Import @kenvanhyning / @aasimkhan30
[x] DacFx Deployment @kisantia
[x] SQL Profiler @alanrenmsft
[x] CMS @abist
[x] SQL Agent @abist
[ ] Azure Integration @aaomidi
[x] Extension Manager @alanrenmsft
[x] Schema Compare @kisantia / @udeeshagautam
[x] Big Data Cluster @Charles-Gagnon
[x] SSMS Integration @Charles-Gagnon
[x] Data Explorer @abist
[ ] Machine Learning @llali

Partner Sign-offs

[x] PGSQL @akamath46297
[ ] SQL On Demand @BranislavGrbicMDCS
[x] SQL Assessment @alexprotsenko
[ ] Managed Instance - Jovan Popovic

testing update : ML (has few issues) and DB poject ongoing


test-drive: 0.4.0 -> 0.5.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/fortran-lang/test-drive/releases.
meta.description for test-drive is: Procedural Fortran testing framework
meta.homepage for test-drive is: https://github.com/fortran-lang/test-drive
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.5.0 with grep in /nix/store/zh8all7ipqp2a0gdm9hq448xfay68wz2-test-drive-0.5.0
found 0.5.0 in filename of file in /nix/store/zh8all7ipqp2a0gdm9hq448xfay68wz2-test-drive-0.5.0

Rebuild report (if merged into master) (click to expand)

9 total rebuild path(s)

9 package rebuild(s)

First fifty rebuilds by attrpath

python311Packages.simple-dftd3
python311Packages.tblite
python312Packages.simple-dftd3
python312Packages.tblite
simple-dftd3
tblite
test-drive
toml-f

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/zh8all7ipqp2a0gdm9hq448xfay68wz2-test-drive-0.5.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A test-drive https://github.com/r-ryantm/nixpkgs/archive/ffebb4e2045da0224883b69d519fca59c3d0145c.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/ffebb4e2045da0224883b69d519fca59c3d0145c#test-drive

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/zh8all7ipqp2a0gdm9hq448xfay68wz2-test-drive-0.5.0
ls -la /nix/store/zh8all7ipqp2a0gdm9hq448xfay68wz2-test-drive-0.5.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

13 packages built:

python311Packages.simple-dftd3
python311Packages.simple-dftd3.dist
python311Packages.tblite
python312Packages.simple-dftd3
python312Packages.simple-dftd3.dist
python312Packages.tblite
simple-dftd3
simple-dftd3.dev
tblite
tblite.dev
test-drive
toml-f
toml-f.dev

Maintainer pings
cc @sheepforce for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

Add a :+1: reaction to pull requests you find important.

Oh wait, build is failing on aarch64-linux, seemingly related to the new qp/xdp feature?

Result of nixpkgs-review pr 338417 run on aarch64-linux 1

4 packages marked as broken and skipped:

python311Packages.simple-dftd3
python311Packages.simple-dftd3.dist
python312Packages.simple-dftd3
python312Packages.simple-dftd3.dist

9 packages failed to build:

python311Packages.tblite
python312Packages.tblite
simple-dftd3
simple-dftd3.dev
tblite
tblite.dev
test-drive
toml-f
toml-f.dev

Oh wait, build is failing on aarch64-linux, seemingly related to the new qp/xdp feature?

Hm, very unfortunate :/ I've opened an upstream issue here https://github.com/fortran-lang/test-drive/issues/44
I don't think this is in any way related to Nix stuff.

Replaced by #340796 with the required fix for the AArch64 build failures.