[BUG] Duplicate LB allocation happens during upgrading

Describe the bug

Harvester load balancer duplicate allocation happens during upgrading from Harvester v1.1.2 to Harvester v1.2.0.
2023-07-27T07:41:25.859926166Z time="2023-07-27T07:41:25Z" level=error msg="error syncing 'default/kubernetes-default-nginx-fa60cbe7': handler harvester-lb-controller: allocate ip for lb default/kubernetes-default-nginx-fa60cbe7 failed, error: <IP_ADDRESS> has been allocated to default/kubernetes-default-nginx-fa60cbe7, duplicate allocation is not allowed, requeuing"

To Reproduce
Steps to reproduce the behavior:

Spin up a Harvester v1.1.2.
Import Harvester into Rancher v2.6.x or v2.7.4
Spin up a guest RKE2 cluster with the Harvester cloud provider < v0.2.0 (use RKE2 version with either v1.23,  < v1.24.15, < v1.25.11 or < v1.26.6).

Configure a VIP pool.
Create a load balancer service with the pool IPAM mode.
Upgrade Harvester v1.1.2 to Harvester v1.2.0-rc4.

Expected behavior

LB should get the original IP from pool without error during upgrading.
Support bundle

Environment

Harvester ISO version: v1.1.2 to v1.2.0-rc4
Underlying Infrastructure (e.g. Baremetal with Dell PowerEdge R630):Baremetal with Dell PowerEdge R630

Additional context
Add any other context about the problem here.

@yaocw2020 I had a few small questions surrounding the test setup.
Validation question:
Can the instance of Rancher be a Docker based installation of Rancher for testing in conjunction with the ipxe-examples repo?
On v1.1.2, on an RKE2 Guest Cluster (single node vm on Harvester)- I'm running into an issue where the Load Balancer seems to be hung in a Pending state.
It was built during a Deployment creation of Nginx:Latest (on container-0) -> with the Ports, specifying Service Type of Load Balancer and IPAM set to Pool.
The VIP of the Harvester cluster is <IP_ADDRESS>.
The vip-pools, that were configured under settings are:
{
  "default": "<IP_ADDRESS>-<IP_ADDRESS>"
}

And the Load Balancer does seem to be stuck with, Error syncing load balancer :
Name:                     k-loadbalancer
Namespace:                default
Labels:                   <none>
Annotations:              cloudprovider.harvesterhci.io/ipam: pool
                          field.cattle.io/targetWorkloadIds: ["default/k"]
                          management.cattle.io/ui-managed: true
Selector:                 workload.user.cattle.io/workloadselector=apps.deployment-default-k
Type:                     LoadBalancer
IP Family Policy:         SingleStack
IP Families:              IPv4
IP:                       <IP_ADDRESS>
IPs:                      <IP_ADDRESS>
Port:                     s  8081/TCP
TargetPort:               80/TCP
NodePort:                 s  32373/TCP
Endpoints:                <IP_ADDRESS>:80
Session Affinity:         None
External Traffic Policy:  Cluster
Events:
  Type     Reason                  Age                    From                Message
  ----     ------                  ----                   ----                -------
  Normal   EnsuringLoadBalancer    2m15s (x7 over 7m30s)  service-controller  Ensuring load balancer
  Warning  SyncLoadBalancerFailed  2m15s (x7 over 7m30s)  service-controller  Error syncing load balancer: failed to ensure loa
d balancer: create or update lb default/kubernetes-default-k-loadbalancer-0a9d6792 failed, error: the server could not find the
 requested resource (post loadbalancers.meta.k8s.io)

Additionally here are some of the logs:

╭─mike at suse-workstation-team-harvester in ~
╰─○ kubectl get helmchartconfigs.helm.cattle.io -n kube-system harvester-cloud-provider -o yaml
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
  annotations:
    objectset.rio.cattle.io/applied: H4sIAAAAAAAA/4SRPU/DMBCG/wq6OanbNE2KJQbUBYmFATF1udiXxsQfkX0JQlX/O0oLEgylo2W/j5/37gg4mDeKyQQPEjqybqGQ2dLCBDGtIIPeeA0Snsi6XYeRd8G35gAZOGLUyAjyCOh9YGQTfJqPoXknxYl4EU34BTQzCbKr9+HDU8wPUw8S+nX6o5LdPRuvHx61Dv4mwqMjkODQ44F0rmbxXP2Y386mAdUM6MeG8vSZmBycMlCRziVfjaPE6AaQfrQ2A4sN2X+rd5g6kKDbulpWShcF1m19vyqrdYtYl6ttuVxvN6rcNEWltzj/9l2iwzhRYoq5smHU+RDDZDRFuLy4opoGUrPPhHaktAueyTNIOO7hjLms8QW524Pcg5gwCmsaEdGrjqKIPRWCWInL1PLWWEriHIXT6SsAAP//kKHxnTgCAAA
    objectset.rio.cattle.io/id: ""
    objectset.rio.cattle.io/owner-gvk: k3s.cattle.io/v1, Kind=Addon
    objectset.rio.cattle.io/owner-name: managed-chart-config
    objectset.rio.cattle.io/owner-namespace: kube-system
  creationTimestamp: "2023-08-10T18:15:24Z"
  generation: 1
  labels:
    objectset.rio.cattle.io/hash: df7606cd22a7f791463faa741840385c45b26d8a
  name: harvester-cloud-provider
  namespace: kube-system
  resourceVersion: "303"
  uid: 71e85294-1cd6-4945-a2c3-4454ae76778b
spec:
  valuesContent: '{"cloudConfigPath":"/var/lib/rancher/rke2/etc/config-files/cloud-provider-config","clusterName":"b","global":{"cattle":{"clusterId":"c-m-6lqf54hp"}}}'
╭─mike at suse-workstation-team-harvester in ~
╰─○ kubectl get pods -n kube-system | grep -ie "cloud-provider"
harvester-cloud-provider-59947c686d-nfkkv               1/1     Running     0          29m
helm-install-harvester-cloud-provider-8r42l             0/1     Completed   0          29m
╭─mike at suse-workstation-team-harvester in ~
╰─○ kubectl logs -n kube-system harvester-cloud-provider-59947c686d-nfkkv --follow
I0810 18:16:36.155187       1 serving.go:348] Generated self-signed cert in-memory
W0810 18:16:36.330352       1 client_config.go:617] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
W0810 18:16:36.333381       1 main.go:85] detected a cluster without a ClusterID.  A ClusterID will be required in the future.  Please tag your cluster to avoid any future issues
I0810 18:16:36.333559       1 controllermanager.go:145] Version: v0.0.0-master+$Format:%H$
I0810 18:16:36.334561       1 secure_serving.go:210] Serving securely on [::]:10258
I0810 18:16:36.334660       1 tlsconfig.go:240] "Starting DynamicServingCertificateController"
I0810 18:16:36.334983       1 leaderelection.go:248] attempting to acquire leader lease kube-system/cloud-controller-manager...
I0810 18:16:36.345946       1 leaderelection.go:258] successfully acquired lease kube-system/cloud-controller-manager
I0810 18:16:36.346986       1 event.go:294] "Event occurred" object="kube-system/cloud-controller-manager" fieldPath="" kind="Lease" apiVersion="coordination.k8s.io/v1" type="Normal" reason="LeaderElection" message="b-pool1-24e22b1d-lq5mg_ad86693d-4e93-4e90-b4d0-d2d14cbb01e2 became leader"
W0810 18:16:36.655251       1 core.go:111] --configure-cloud-routes is set, but cloud provider does not support routes. Will not configure cloud provider routes.
W0810 18:16:36.655568       1 controllermanager.go:289] Skipping "route"
I0810 18:16:36.655883       1 controllermanager.go:301] Started "cloud-node"
I0810 18:16:36.655969       1 controllermanager.go:301] Started "cloud-node-lifecycle"
I0810 18:16:36.656137       1 controllermanager.go:301] Started "service"
I0810 18:16:36.656437       1 node_controller.go:157] Sending events to api server.
I0810 18:16:36.656604       1 node_controller.go:166] Waiting for informer caches to sync
I0810 18:16:36.656686       1 node_lifecycle_controller.go:113] Sending events to api server
I0810 18:16:36.656823       1 controller.go:237] Starting service controller
I0810 18:16:36.656897       1 shared_informer.go:252] Waiting for caches to sync for service
I0810 18:16:36.757235       1 shared_informer.go:259] Caches are synced for service
I0810 18:16:36.757282       1 node_controller.go:415] Initializing node b-pool1-24e22b1d-lq5mg with cloud provider
I0810 18:16:36.796419       1 node_controller.go:484] Successfully initialized node b-pool1-24e22b1d-lq5mg with cloud provider
I0810 18:16:36.796905       1 event.go:294] "Event occurred" object="b-pool1-24e22b1d-lq5mg" fieldPath="" kind="Node" apiVersion="v1" type="Normal" reason="Synced" message="Node synced successfully"
time="2023-08-10T18:16:36Z" level=info msg="Starting kubevirt.io/v1, Kind=VirtualMachineInstance controller"
time="2023-08-10T18:16:36Z" level=info msg="Starting /v1, Kind=Node controller"
time="2023-08-10T18:16:36Z" level=info msg="Starting /v1, Kind=Service controller"
I0810 18:31:02.716076       1 event.go:294] "Event occurred" object="default/t-loadbalancer" fieldPath="" kind="Service" apiVersion="v1" type="Normal" reason="EnsuringLoadBalancer" message="Ensuring load balancer"
I0810 18:31:02.787273       1 event.go:294] "Event occurred" object="default/t-loadbalancer" fieldPath="" kind="Service" apiVersion="v1" type="Warning" reason="SyncLoadBalancerFailed" message="Error syncing load balancer: failed to ensure load balancer: create or update lb test1/kubernetes-default-t-loadbalancer-9c0294f6 failed, error: the server could not find the requested resource (post loadbalancers.meta.k8s.io)"
E0810 18:31:02.788078       1 controller.go:320] error processing service default/t-loadbalancer (will retry): failed to ensure load balancer: create or update lb test1/kubernetes-default-t-loadbalancer-9c0294f6 failed, error: the server could not find the requested resource (post loadbalancers.meta.k8s.io)
I0810 18:31:07.789727       1 event.go:294] "Event occurred" object="default/t-loadbalancer" fieldPath="" kind="Service" apiVersion="v1" type="Normal" reason="EnsuringLoadBalancer" message="Ensuring load balancer"
E0810 18:31:07.793597       1 controller.go:320] error processing service default/t-loadbalancer (will retry): failed to ensure load balancer: create or update lb test1/kubernetes-default-t-loadbalancer-9c0294f6 failed, error: the server could not find the requested resource (post loadbalancers.meta.k8s.io)
I0810 18:31:07.793636       1 event.go:294] "Event occurred" object="default/t-loadbalancer" fieldPath="" kind="Service" apiVersion="v1" type="Warning" reason="SyncLoadBalancerFailed" message="Error syncing load balancer: failed to ensure load balancer: create or update lb test1/kubernetes-default-t-loadbalancer-9c0294f6 failed, error: the server could not find the requested resource (post loadbalancers.meta.k8s.io)"
I0810 18:31:17.799480       1 event.go:294] "Event occurred" object="default/t-loadbalancer" fieldPath="" kind="Service" apiVersion="v1" type="Normal" reason="EnsuringLoadBalancer" message="Ensuring load balancer"
E0810 18:31:17.815807       1 controller.go:320] error processing service default/t-loadbalancer (will retry): failed to ensure load balancer: create or update lb test1/kubernetes-default-t-loadbalancer-9c0294f6 failed, error: the server could not find the requested resource (post loadbalancers.meta.k8s.io)
I0810 18:31:17.816635       1 event.go:294] "Event occurred" object="default/t-loadbalancer" fieldPath="" kind="Service" apiVersion="v1" type="Warning" reason="SyncLoadBalancerFailed" message="Error syncing load balancer: failed to ensure load balancer: create or update lb test1/kubernetes-default-t-loadbalancer-9c0294f6 failed, error: the server could not find the requested resource (post loadbalancers.meta.k8s.io)"
I0810 18:31:37.819161       1 event.go:294] "Event occurred" object="default/t-loadbalancer" fieldPath="" kind="Service" apiVersion="v1" type="Normal" reason="EnsuringLoadBalancer" message="Ensuring load balancer"
E0810 18:31:37.820666       1 controller.go:320] error processing service default/t-loadbalancer (will retry): failed to ensure load balancer: create or update lb test1/kubernetes-default-t-loadbalancer-9c0294f6 failed, error: the server could not find the requested resource (post loadbalancers.meta.k8s.io)
I0810 18:31:37.820709       1 event.go:294] "Event occurred" object="default/t-loadbalancer" fieldPath="" kind="Service" apiVersion="v1" type="Warning" reason="SyncLoadBalancerFailed" message="Error syncing load balancer: failed to ensure load balancer: create or update lb test1/kubernetes-default-t-loadbalancer-9c0294f6 failed, error: the server could not find the requested resource (post loadbalancers.meta.k8s.io)"
I0810 18:32:17.825060       1 event.go:294] "Event occurred" object="default/t-loadbalancer" fieldPath="" kind="Service" apiVersion="v1" type="Normal" reason="EnsuringLoadBalancer" message="Ensuring load balancer"
E0810 18:32:17.828485       1 controller.go:320] error processing service default/t-loadbalancer (will retry): failed to ensure load balancer: create or update lb test1/kubernetes-default-t-loadbalancer-9c0294f6 failed, error: the server could not find the requested resource (post loadbalancers.meta.k8s.io)
I0810 18:32:17.828665       1 event.go:294] "Event occurred" object="default/t-loadbalancer" fieldPath="" kind="Service" apiVersion="v1" type="Warning" reason="SyncLoadBalancerFailed" message="Error syncing load balancer: failed to ensure load balancer: create or update lb test1/kubernetes-default-t-loadbalancer-9c0294f6 failed, error: the server could not find the requested resource (post loadbalancers.meta.k8s.io)"
I0810 18:33:37.833933       1 event.go:294] "Event occurred" object="default/t-loadbalancer" fieldPath="" kind="Service" apiVersion="v1" type="Normal" reason="EnsuringLoadBalancer" message="Ensuring load balancer"
E0810 18:33:37.839629       1 controller.go:320] error processing service default/t-loadbalancer (will retry): failed to ensure load balancer: create or update lb test1/kubernetes-default-t-loadbalancer-9c0294f6 failed, error: the server could not find the requested resource (post loadbalancers.meta.k8s.io)
I0810 18:33:37.839926       1 event.go:294] "Event occurred" object="default/t-loadbalancer" fieldPath="" kind="Service" apiVersion="v1" type="Warning" reason="SyncLoadBalancerFailed" message="Error syncing load balancer: failed to ensure load balancer: create or update lb test1/kubernetes-default-t-loadbalancer-9c0294f6 failed, error: the server could not find the requested resource (post loadbalancers.meta.k8s.io)"
I0810 18:36:17.841324       1 event.go:294] "Event occurred" object="default/t-loadbalancer" fieldPath="" kind="Service" apiVersion="v1" type="Normal" reason="EnsuringLoadBalancer" message="Ensuring load balancer"
E0810 18:36:17.854856       1 controller.go:320] error processing service default/t-loadbalancer (will retry): failed to ensure load balancer: create or update lb test1/kubernetes-default-t-loadbalancer-9c0294f6 failed, error: the server could not find the requested resource (post loadbalancers.meta.k8s.io)
I0810 18:36:17.854901       1 event.go:294] "Event occurred" object="default/t-loadbalancer" fieldPath="" kind="Service" apiVersion="v1" type="Warning" reason="SyncLoadBalancerFailed" message="Error syncing load balancer: failed to ensure load balancer: create or update lb test1/kubernetes-default-t-loadbalancer-9c0294f6 failed, error: the server could not find the requested resource (post loadbalancers.meta.k8s.io)"
I0810 18:41:17.855371       1 event.go:294] "Event occurred" object="default/t-loadbalancer" fieldPath="" kind="Service" apiVersion="v1" type="Normal" reason="EnsuringLoadBalancer" message="Ensuring load balancer"
E0810 18:41:17.859136       1 controller.go:320] error processing service default/t-loadbalancer (will retry): failed to ensure load balancer: create or update lb test1/kubernetes-default-t-loadbalancer-9c0294f6 failed, error: the server could not find the requested resource (post loadbalancers.meta.k8s.io)
I0810 18:41:17.859304       1 event.go:294] "Event occurred" object="default/t-loadbalancer" fieldPath="" kind="Service" apiVersion="v1" type="Warning" reason="SyncLoadBalancerFailed" message="Error syncing load balancer: failed to ensure load balancer: create or update lb test1/kubernetes-default-t-loadbalancer-9c0294f6 failed, error: the server could not find the requested resource (post loadbalancers.meta.k8s.io)"

@yaocw2020  I've opened up:
https://github.com/harvester/harvester/issues/4401
To highlight the steps used while encountering the validation issue

@irishgordo Harvester v1.1.2 will only support the RKE2 versions with CCM < v0.2.0; so for the upgrade test, we need to use older rke2 versions which are compatible with Harvester v1.1.2,  I have updated the reproduce steps can u PTAL again, thanks.

Tested with:

RKE2 Kubernetes Version: v1.23.17 +rke2r1
Rancher v2.7.4
Harvester v1.1.2 -> v1.2.0-rc5

And this looks good :smile: :+1:
I'll go ahead and close this out @yaocw2020


Can't get lazy-load to work

Hi,
Sorry to write this issue you must be sick and tired of this issue that keeps coming up! I have read all the past issues in this github and comments in Stack Overflow.
From what you have written you need to do two things to turn on Lazy-Load:

Set the $LazyLoading  - it is default at 1.
Add data-src2 to all the src tags.

I am using the 'jQuery Banner Rotator - Jssor Slider' Example. Found here: https://github.com/jssor/slider/blob/master/demos-jquery/banner-rotator.html
I have the following code:
var jssor_1_options = {
      $AutoPlay: 1,
      $LazyLoading: 0,
      $SlideshowOptions: {
        $Class: $JssorSlideshowRunner$,
        $Transitions: jssor_1_SlideshowTransitions,
        $TransitionsOrder: 1
      },
      $ArrowNavigatorOptions: {
        $Class: $JssorArrowNavigator$
      },
      $BulletNavigatorOptions: {
        $Class: $JssorBulletNavigator$
      }
};

and

... etc.

However, when I test the webpage using Lighthouse, it is clearly not doing anything! See screenshot, the 'Time to Interactive' should be green and a lot less.

Question:
Am I doing something wrong with the above code and need to add extra things to turn on and make the lazy-loading work?
Look forward to any help you can give, thanks in advance.

Going to close this issue as I have found the solution now:
Solution:
Remove this bit of code:
            /*#region responsive code begin*/

            var MAX_WIDTH = 980;

            function ScaleSlider() {
                var containerElement = jssor_1_slider.$Elmt.parentNode;
                var containerWidth = containerElement.clientWidth;

                if (containerWidth) {

                    var expectedWidth = Math.min(MAX_WIDTH || containerWidth, containerWidth);

                    jssor_1_slider.$ScaleWidth(expectedWidth);
                }
                else {
                    window.setTimeout(ScaleSlider, 30);
                }
            }

            ScaleSlider();

            $Jssor$.$AddEvent(window, "load", ScaleSlider);
            $Jssor$.$AddEvent(window, "resize", ScaleSlider);
            $Jssor$.$AddEvent(window, "orientationchange", ScaleSlider);
            /*#endregion responsive code end*/

Gives this result:

I tested again with the full width slider with $LazyLoading: 0.
It will load 002.jpg when it moves to the second slide.


caddyserver for iOS?

I want have a app for storage my files in iphone.

I'm gonna tag this for Hacktoberfest and see if anyone wants to tackle this, or see if it's even possible. :smile: Could be fun, I just have no clue.

So what do you really want, @jet10000? Caddy running on your iPhone with browse page of your whole file system? (is that even possible?)

First of all, I want to transfer files between PC and iPhone using the HTTP protocol. Secondly, I look forward to using Web technology to organize, view, and share my files. Maybe have some other ideas. @DenBeke

I m not sure you can run Go binary on iOS without heavy modification (maybe change from Go to another language). Whatever you do, you will still need bindings to the iOS API's in order to do anything interesting with it.

Whatever you do, you will still need bindings to the iOS API's in order to do anything interesting with it.

We don't really need the iOS API, do we?
Just run the Caddy executable with a Caddy file to browse data on the system...
I'll look a bit into it, but I'm finishing a couple of projects right now...

iOS uses a sandboxing model such that any application that runs must be an official iOS app, compiled with XCode and all the proper signatures, etc. AKA there's no way to run an arbitrary executable on iOS primarily for security reasons.
http://stackoverflow.com/a/24936109/2540895

@derekargueta That's fine -- although I think there's a way for developers to hack an iOS app together and run it on phones, no?  Looks like it was actually working -- kinda sorta. :)

@mholt There happened nothing more than that...
The lack of time, the lack of a real usecase, and the restrictions of iOS sandboxing made that I couldn't do more than starting Caddy with a Caddyfile. I don't know if I actually committed the code somewhere. Will look for it.

@DenBeke Might as well. And/or the instructions to do even what you did - maybe they can go in our wiki. (Thanks in advance!) I'm sure it'll be interesting to someone. Once that is wrapped up we can probably close this issue since an actual, native iOS app is still a ways out, I think, given the current progress of gomobile.

I did a quick wrap-up about how to run Caddy on iOS (or any other Go app): https://denbeke.be/blog/programming/go-mobile-example-running-caddy-ios/

Thanks! I'll link to that.


Inspect and Test the API Proxy

Tutorial URL: https://developers.sap.com/tutorials/cp-apim-shoppingfresh-inspect-apiproxy.html
Please specify the step you are referring to
There are two issues.

There is no generate APP code for HERE.com apps
BusinessPartnerSet : Address type "GWSAMPLE_BASIC.CT_Address" does not have longitude and latitude fields .

Please help.

Hello,
kindly take the aapkey parameter now-HERE has changed this with new trials.
For step 2- we need to debug what is wrong with your code. Anyways not a mandatory step-kindly proceed.
Regards
Shilpa

Thank you for your feedback. We haven't heard from you in a while, so we are closing the issue.
If you still have questions, feel free to reopen the issue.


Generate TypeScript arrays instead of huge tuples

Closes #69.
This doesn't have special behavior for nested types like u8[10][10][10][10] to keep this uncontroversial.
Constant const TUPLE_BECOMES_ARRAY_THRESHOLD: i8 = 11; specifies the threshold. Alternatively there could be a configuration option for this.

After doing those commits please also fix the merge conflicts.


[1.11.2] Debarked wood isn't consumed when crafting planks.

All variants of debarked wood are not being consumed when crafting with an axe. Planks can be infinitely crafted from the single debarked wood block.
Happens with just Forge/Better With Mods
Forge: <IP_ADDRESS>2
Better With Mods: 1.0.1-1.11.2

I think it's because the recipe handler was still getting a null ItemStack passed through for bark. I'll try to replicate, then see if the fix works.


Assembly+part list by python

my target is to get the detail data of the assembly ,just like the template:Assembly_part_list(HTML).html.rpt
in order to get the part's lenth、area,which in assembly
#from Tekla.Structures.Model import Model, Beam,Material
from pytekla import wrap
from pytekla import ModelWrapper

model = ModelWrapper()
# picked_objects = model.pick_objects(object_type="part", prompt="Select parts from the model")
# for obj in picked_objects:
#     print(obj.name,obj.AssemblyNumber.Prefix,obj.AssemblyNumber.StartNumber)

objects_with_types = model.get_objects_with_types(["Assembly"])
for obj in objects_with_types:
    print(obj.name,obj.GetChildren,obj.AssemblyNumber.Prefix)

# filtered_objects = model.get_objects_by_filter("name=BEAM")    #wrong  FilterExpression？FilterExpression？
# for obj in filtered_objects:
#     print(obj)

yellow stone <function _attrs_wrapper..wrapper at 0x000001F48E72D760> stone
yellow stone <function _attrs_wrapper..wrapper at 0x000001F48E72D760> stone
yellow stone <function _attrs_wrapper..wrapper at 0x000001F48E72D760> stone
yellow stone <function _attrs_wrapper..wrapper at 0x000001F48E72D760> stone
yellow stone <function _attrs_wrapper..wrapper at 0x000001F48E72D760> stone
1.how to get the detail of    <function _attrs_wrapper..wrapper at 0x000001F48E72D760>
2.get_objects_by_filter(model_filter)
model_filter=str or Tekla.Structures.Filtering.FilterExpression？？
detail example needed
THK!!

I think you are trying to get report properties. You have two options, using this function and get all as a Pandas Dataframe or using this method from the object.

I think you are trying to get report properties. You have two options, using this function and get all as a Pandas Dataframe or using this method from the object.

i have try this but failed，would u like to give a  tekla zip of the example，

@better319 Could you post the code that failed? Unfortunately I don't have a Tekla active license anymore....
i test them ,but another problem happened,i can't find the property for  the object even in the tekla openapi.

https://developer.tekla.com/tekla-structures/api/28/13489
i forgot something  i seems just got the property about:"NUMBER".
can't find name ,profile,length,area,...
do  u know  how to get the property?

the property names are in the temple.

This is how I do it. It's no easy, because there are not easy to find.
Create or edit a table in tekla, for an assembly for example. There you will find all the properties for the assembly, weight, length, etc.

This is how I do it. It's no easy, because there are not easy to find.
Create or edit a table in tekla, for an assembly for example. There you will find all the properties for the assembly, weight, length, etc.

THANKS


[Auto-generated] Check & update dependencies (pyproject.toml)

Update dependencies (pyproject.toml)
Automatically created PR based on the 'CI - Check pyproject.toml dependencies' workflow in SINTEF/ci-cd.

Codecov Report

Merging #107 (ae9a3aa) into ci/dependency-updates (6981ec7) will not change coverage.
The diff coverage is n/a.

@@                  Coverage Diff                   @@
##           ci/dependency-updates     #107   +/-   ##
======================================================
  Coverage                  72.95%   72.95%
======================================================
  Files                         14       14
  Lines                        514      514
======================================================
  Hits                         375      375
  Misses                       139      139

Flag
Coverage Δ

linux
72.95% <ø> (ø)

windows
?

Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Integrate MDoc for API documentation

See: https://github.com/xamarin/Caboodle/tree/master/Caboodle

I believe that link now wants to be : https://github.com/xamarin/Essentials/tree/master/Xamarin.Essentials

Including this is probably still relevant, so keeping this one here so we won't forget

@jfversluis is this in progress ?

@jfversluis is this in progress ?

We have a repo setup here: https://github.com/MicrosoftDocs/xamarin-community-toolkit-api-docs
Now deciding on how to generate the docs and get them there as part of our builds/releases

We have a repo setup here: https://github.com/MicrosoftDocs/xamarin-community-toolkit-api-docs
Now deciding on how to generate the docs and get them there as part of our builds/releases


Feature/parse only

WIP

add print-only option to print direct link from an album.
add new extractor method using json library, see note below

not yet commited

readme explanation: new feature and xargs wget example
test on all format for this file.
missing image test on regex method (optional)

i test it using this imgur album http://imgur.com/a/stfnm (nsfw) and got different result between new method with json and old method with regex. maybe there is a way to double check the album using both method.
opinion @jtara1?

What's the reason for using click over the built in lib, argparse https://docs.python.org/3/library/argparse.html

simple and clearer arg command(see below) and more utils (which may or may not needed) and better subcommand.
for usual argparse in most of the program i read is located on single program. example:
def parse_args(argv):
    parser = argparse.ArgumentParser(description='Process some integers.')
    parser.add_argument('integers', metavar='N', type=int, nargs='+',
                    help='an integer for the accumulator')
    parser.add_argument('--sum', dest='accumulate', action='store_const',
                    const=sum, default=max,
                    help='sum the integers (default: find the max)')
    # ... another argument here
    return parser.parse_args(argv)

# after this function is called the actual function is called and the args
# actual main
def main():
    args = parse_args(sys.argv[1:])
    command(args)

for me it is kinda redundant, and click can possibly short that all out.
@click.command()
@click.option(...)
@click.argument(...)
def command(...):
    # function here

I added the list of all imgur urls I expect this lib to support to the test file https://github.com/jtara1/imgur_downloader/blob/master/tests/test_image_ids_and_extensions.py
Feel free to add some test functions there.
If your json_search returns a nice dict with all that info like that for all of those urls then we could refactor a bunch of the code to just use that.

can i refactor that test? it look like it can use pytest parametrize

yea

Ready to merge with master?

Not yet. Maybe I can't complete it today (my laptop got error and I response it from my tablet)
I will let you know if it is complete and cross re WIP sign on first post

done with the test already, i will update the first post based on change from the last comment.
travis check result
https://travis-ci.org/rachmadaniHaryono/imgur_downloader/builds/245297071
for the readme section, i will update it tommorow

i think it is done for now. i may replace or give the user choice to which parser they choose and change the default to json parser on next pr. right now this is enough for print-only option.


Link to FAQ for common "Content API unavailable" errors

As a developer I want to have some error messaging for common "Content API unavailable" errors so that I can have better information to help me debug the issue.
Expected Results:

Confirm the below list of potential issues
Create FAQ for this category of "Content API not available" errors
The Error is visually displayed for all of the defined error-cases. The error body should link to the FAQ.

Notes:
Currently, we have several common usage errors that can lead to an abiguous error such as:

Common causes of the GraphQL request failing

Invalid branch (or undefined branch)
.tina directory (with generated subdirectory) not pushed to git
api url is misformatted
Trying to access localhost graphql in prod (or locally when it's not running).
Document doesn't exist

Where should we display this error?

On the admin, when getCollections fails
In the admin, in an individual document
When contextual editing, and on a document

Note: For V1, from the clientside, we should just show this generic error that links to the FAQ
(In the future, we can probably should specific errors for certain specific cases.
E.g, For the case where the schema isn't pushed to a given branch, the backend could check if there's a schema missing, and give an error with an error code)

@jamespohalloran I like it, should we start to think about a list of error codes to help with this? For example, yarn does a nice job of this https://yarnpkg.com/advanced/error-codes

Outstanding question:

Does adding the link to the new FAQ page belong in the client side (which is only one place in the code) or in the graphQL api everywhere that "Content API Unavailable" is thrown?

I added some notes in the description. For v1, I believe we can handle this all from the clientside

@tinacms/maintainers I'm having a slightly tricky time actually knowing where to find where to the different errors. Not quite sure what I'd search to find the different locations. Any hints?

I wasn't overthinking it. Changing the error boundary is easy enough but only covers a couple of the errors.
Other errors that you might get just get sent out as a cms.alert, which are not really able to handle links. i.e. https://github.com/tinacms/tinacms/blob/main/packages/tinacms/src/admin/components/GetCollections.tsx#L32-L35

@tinacms/maintainers Should I go down the path of using dangerouslySetInnerHTML within cms.alerts? Is there some other solution? Or should we just rethink this ticket?
The UI for the dangerouslySetInnerHTML option isn't great. You don't get a lot of ability to style things in there and the whole alert is clickable so a link in there is sort of hard to distinguish.

Should I go down the path of using dangerouslySetInnerHTML within cms.alerts? Is there some other solution? Or should we just rethink this ticket?

No I don't think so.
Couple of options.

Put the link the console.error and add "look at console for additional error context" text in the popup
Throw the error and let Nextjs take care of it.

Are we using dangerouslySetInnerHTML so that the server can return something that includes the link HTML?
I'm sure I'm missing context, but what I originally was thinking was that the server (or whatever throws the error) would include some error code for this error, and the frontend Error boundary would conditionally be responsible for interpreting the error, and rendering the error display with the proper link.

I can throw the error and try to let it bubble to the error boundary. I just wasn't sure if we were using cms.alert for a good reason or not!


Fix functions interpreting string args as booleans

Link GoogleContainerTools/kpt#823

cc @frankfarzan , @Shell32-Natsu

/lgtm

Has the issue gone?

Yes, tried it using gcr.io/kpt-functions/istioctl-analyze:dev and it ran without issue.


BAD_SUPVISORS_STATE (state=INITIALIZATION) while disabling

I'm not sure why this is happening. At the point where we disable here, I'm pretty confident the process is running and nothing else has happened to it (especially since this happens in a controlled test environment)
Another question is "should we even be concerned with operation state if we just want to disable and stop this process anyways?"
Probably not too useful but here's the stack trace as well:
/usr/local/lib/python3.7/site-packages/bson/__init__.py:58: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working
from bson import _cbson
/usr/local/lib/python3.7/site-packages/snapshottest/module.py:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
2023-06-05 16:42:08.940 [core] 97 ERROR - Error occurred when trying to stop supervisor process: some_process. Fault code 101: BAD_SUPVISORS_STATE: Supvisors (state=INITIALIZATION) not in state ['OPERATION'] to perform request
Traceback (most recent call last):
File "some_file.py", line 75, in manage_ftx
is_ok = proxy.supvisors.disable(FTX_PROCESS_NAME)
File "/usr/local/lib/python3.7/xmlrpc/client.py", line 1112, in __call__
return self.__send(self.__name, args)
File "/usr/local/lib/python3.7/xmlrpc/client.py", line 1452, in __request
verbose=self.__verbose
File "/usr/local/lib/python3.7/xmlrpc/client.py", line 1154, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/local/lib/python3.7/xmlrpc/client.py", line 1170, in single_request
return self.parse_response(resp)
File "/usr/local/lib/python3.7/xmlrpc/client.py", line 1342, in parse_response
return u.close()
File "/usr/local/lib/python3.7/xmlrpc/client.py", line 656, in close
raise Fault(**self._stack[0])
xmlrpc.client.Fault: <Fault 101: "BAD_SUPVISORS_STATE: Supvisors (state=INITIALIZATION) not in state ['OPERATION'] to perform request">

As a general rule, I've put some restriction on the Supvisors control XML-RPCs before the OPERATIONAL state is reached.
The aim is to minimize the risk of interference on the automatic startup sequence eventually defined in the rules files.
And disabling a program is undoubtedly a source of interference.
That said, when Supvisors is configured with a single node context, the OPERATIONAL state is expected to be reached in less than 7-8 seconds after the supervisord process is started.
If not, there may be an issue with your Supvisors configuration. In that case, I would need the supervisor / supvisors log files and the configuration file as well.


Update license

MIT license needs both of year and copyright holder.
Please complete MIT license. We want to use this without legal risk.

I'm going to close this because as stated in #6 - this will be deprecated. It has been available for many many years in nodejs code and you can also use something like path-browserify if you need it in the browser.


ValueError: Unexpected result of train_function (Empty logs).

we have a problem.The following is the error report result:
ValueError: Unexpected result of train_function (Empty logs). Please use Model.compile(..., run_eagerly=True), or tf.config.run_functions_eagerly(True) for more information of where went wrong, or file a issue/bug to tf.keras.

we have a problem.The following is the error report result:
ValueError: Unexpected result of train_function (Empty logs). Please use Model.compile(..., run_eagerly=True), or tf.config.run_functions_eagerly(True) for more information of where went wrong, or file a issue/bug to tf.keras.

have you fixed this problem yet?

我也遇见了，解决了吗

所以解决了吗T T


I would like to contribute to increase coverage of code.

Hi Team,
I want to increase the code coverage of this library and I have also started on it and found many uncovered code. Will you accept if I submit pull request?

I submitted a pull request about test coverage so I will continue to add coverage pull requests whenever possible. Closing this issue.


Rubber chicken toy

About the PR
Added a rubber chicken toy.
Why / Balance
It's fun!
Technical details
The rubber chicken toy is basically just a plushie.
Media

[X ] I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

https://github.com/space-wizards/space-station-14/assets/116504990/5041f5ee-f0f1-4912-9693-bc3893d31e5d
Breaking changes

Changelog

None

add: Rubber chicken toy!

is it copyrighted?

I think for some of the plushie additions it was requested to remove the default plushie squeak it makes together with its own sound when thrown.

is it copyrighted?

No, I make-a all the assets.

I think for some of the plushie additions it was requested to remove the default plushie squeak it makes together with its own sound when thrown.

good idea, I just fixed it

is it copyrighted?

No, I make-a all the assets.

i mean not the sprites itself but the idea how its looks
like i remember #15018 was closed because crocs are licensed

is it copyrighted?

No, I make-a all the assets.

i mean not the sprites itself but the idea how its looks
like i remember #15018 was closed because crocs are licensed

good catch.
i've done some searching and as far as I am aware the idea itself doesn't have a patent or copyright attached to it, neither does the design the sprite uses.
the origin of the rubber chicken itself is obscure and there are lots of different manufacturers online offering what seems to be an identical product.

Are you still working on this? I would love to see it in the game. If you fix the merge conflict I will bring it up for maintainer vote. The only hurdle would be to find out if this has any copyright or not.

The assets are made by me and the concept has no copyright attached to it.

I think there is currently no method to obtain it in-game. Could you add one to the toy crate that can be ordered at cargo?

also to maints closet :trollface:

I approve, but it should be rare enough.

You coming back to this?

You coming back to this?

I intend to but I've been quite busy recently 😿
I'll try to do this tomorrow lol

Thank you for your contribution!


darwin.postFixupSignHook: use absolute path to codesign_allocate

Description of changes
This is https://github.com/NixOS/nixpkgs/pull/148282 but months later. I'm currently building hello, we're getting through Clang and Python first. (If it works, I'll squash the merge commit into the previous one.)
This is a massive sledgehammer, I don't know whether it's correct to allowlist these deps.
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

https://github.com/ofborg build pkgsCross.aarch64-darwin.hello hello

@ofborg build pkgsCross.aarch64-darwin.hello hello

Phew, finally reproduced the original problem after 44mins of building:
error: output '/nix/store/0ybgf3i55fmcdm3m3kk4gbqla1f2ahzl-bootstrap-stage2-stdenv-darwin' is not allowed to refer to the following paths:
         /nix/store/fl3sghzfg8jhyx6zggl4cv15jzy2898w-libtapi-1100.0.11
         /nix/store/p5g5cgpzi74z7zwa0s2qfq0dkq9fwfp8-cctools-port-973.0.1
         /nix/store/vdi592m39p8ckb4b8x00c810r14cr8yy-ncurses-6.3-p20220507

OK, I am extremely out of my depth here, I can see effort being taken to avoid linking ncurses in stage 4 but after this change we want it in stage 2.

This should be superceded by https://github.com/NixOS/nixpkgs/pull/238323.


Does batch size affect loss converge?

Thanks for the amazing work!
If I train DINO+ViT-B/16 on one GPU, and bs=2, I found loss not decline after one epoch.
I wonder if batch size will affect converge.

https://github.com/facebookresearch/dino/issues/104#issuecomment-903829270


lang/ledger: Add doctor.el for :lang ledger

Hi. I've added doctor.el for checking ledger binary.

Thanks!


No link or info about OCT

Where is the additional links or information on the Office Customization Tool? Nothing here in this article. Very weak.

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

ID: e3fc30fd-858c-d1cd-0729-6eb72ef7975a
Version Independent ID: aa690d1d-8e25-6de1-9a83-7acd851fed7a
Content: Deployment guide for Visio 2016
Content Source: DeployOffice/deployment-guide-for-visio.md
Service: o365-proplus-itpro
GitHub Login: @DHB-MSFT
Microsoft Alias: danbrown

You can find some info about the OCT here -- Office Customization Tool (OCT) 2016 Help: Overview. I'll add a link to that in this article. Thanks for the feedback.


Error:

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like that [x])
Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.05.01. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

[ ] I've verified and I assure that I'm running youtube-dl 2016.05.01

Before submitting an issue make sure you have:

[ ] At least skimmed through README and most notably FAQ and BUGS sections
[ ] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[ X] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):
$ youtube-dl -v <your command line>
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.youtube.com/watch?v=BaW_jenozKcj']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2016.05.01
[debug] Python version 2.7.11 - Windows-2003Server-5.2.3790-SP2
[debug] exe versions: ffmpeg N-75573-g1d0487f, ffprobe N-75573-g1d0487f, rtmpdump 2.4
[debug] Proxy map: {}
...
<end of log>

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Single video: https://www.youtube.com/watch?v=BaW_jenozKc
Single video: https://youtu.be/BaW_jenozKc
Playlist: https://www.youtube.com/playlist?list=PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc

Description of your issue, suggested solution and other information
Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue required an account credentials please provide them or explain how one can obtain them.
[youtube] Setting language
[youtube] sgLernrFKBc: Downloading webpage
[youtube] sgLernrFKBc: Downloading video info webpage
[youtube] sgLernrFKBc: Extracting video information
[youtube] sgLernrFKBc: Encrypted signatures detected.
ERROR: Signature extraction failed: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 479, in _decrypt_signature
video_id, player_url, s
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 356, in _extract_signature_function
raise ExtractorError('Cannot identify player %r' % player_url)
ExtractorError: Cannot identify player u'https://s.ytimg.com/yts/jsbin/player-en_US-vflA_6ZRP/base.js'; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.

youtube-dl -v
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.08.05
[debug] Python version 2.7.9 - Linux-3.16.0-4-amd64-x86_64-with-debian-8.4
[debug] Proxy map: {}
Usage: youtube-dl [options] url [url...]
youtube-dl: error: you must provide at least one URL
prp@prp:~$ youtube-dl -v https://www.youtube.com/watch?v=sgLernrFKBc
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'https://www.youtube.com/watch?v=sgLernrFKBc']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.08.05
[debug] Python version 2.7.9 - Linux-3.16.0-4-amd64-x86_64-with-debian-8.4
[debug] Proxy map: {}
[youtube] Setting language
[youtube] sgLernrFKBc: Downloading webpage
[youtube] sgLernrFKBc: Downloading video info webpage
[youtube] sgLernrFKBc: Extracting video information
[youtube] sgLernrFKBc: Encrypted signatures detected.
WARNING: unable to extract html5 player; please report this issue on http://yt-dl.org/bug
[youtube] {22} signature length 41.40, html5 player None
ERROR: Signature extraction failed: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 479, in _decrypt_signature
video_id, player_url, s
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 356, in _extract_signature_function
raise ExtractorError('Cannot identify player %r' % player_url)
ExtractorError: Cannot identify player u'https://s.ytimg.com/yts/jsbin/player-en_US-vflA_6ZRP/base.js'; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 479, in _decrypt_signature
video_id, player_url, s
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 356, in _extract_signature_function
raise ExtractorError('Cannot identify player %r' % player_url)
ExtractorError: Cannot identify player u'https://s.ytimg.com/yts/jsbin/player-en_US-vflA_6ZRP/base.js'; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 516, in extract_info
ie_result = ie.extract(url)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 170, in extract
return self._real_extract(url)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 860, in _real_extract
encrypted_sig, video_id, player_url, age_gate)
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 489, in _decrypt_signature
u'Signature extraction failed: ' + tb, cause=e)
ExtractorError: Signature extraction failed: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 479, in _decrypt_signature
video_id, player_url, s
File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 356, in _extract_signature_function
raise ExtractorError('Cannot identify player %r' % player_url)
ExtractorError: Cannot identify player u'https://s.ytimg.com/yts/jsbin/player-en_US-vflA_6ZRP/base.js'; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.

Your version of youtube-dl is ancient; YouTube has changed their interface dozens of times since that release. See our FAQ on how to update.

I follow your tip.
thank you.


pc.table error with computed vars

Currently pc.table  fails when the  rows value is a computed var:
To Reproduce
Steps to reproduce the behavior:

class State(pc.State):
   headers:List[str] = ["Name", "Age", "Location"]
   rows: List[Tuple[str, int, str]] = [
       ("John", 30, "New York"),
       ("Jane", 31, "San Francisco"),
       ("Joe", 32, "Los Angeles"),
   ]

def index():
   return pc.box(
       pc.hstack(
           pc.table_container(
               pc.table(
                   headers=State.headers,
                   rows=State.rows,
                   footers=["Footer 1", "Footer 2", "Footer 3"],
                   variant="striped",
               )
           )
       ),
       width="100%",
       padding_top="5%",
   )

# Add state and page to the app.
app = pc.App(state=State)
app.add_page(index)
app.compile()

** Specifics (please complete the following information):**

Python Version: 3.11.1
Pynecone Version: 0.1.20
OS:
Browser (Optional):

Additional context
Add any other context about the problem here.

Is it possible forbid using children to user?

Sample code is working in reflex 0.3.4


PS Version 2 client compatibility changes

I made several changes to restore compatibility with PS Version 2.0.
1 - Corrected DebugScript.ps1 to not depend on $PSScriptRoot.  Instead I build of $MyInvocation.Command.Definition which is available in version 2.0.
2 - Corrected UpdateValidationsInHelp.ps1 to properly parse the description in PS version 2 and PS Versions >2.  In addition to the same path correction as DebugScript.ps1, I needed to handle the description as an item in a collection for PS 2 whereas more recent versions are smart enough to handle the single item collection without referencing the index.
3 - Check if outputfilecontent is null before processing on the validationchecks where there can be a valid empty result.  I didn't make this check where an empty file should never occur, because in those cases something has gone wrong and we do want an error.  However, there are several valid cases where we could return empty output.
4 - Corrected the parsing of the validation of the description in the CORE library to account for the differences in handling between PS 2 and more recent versions.  This work is similar to the aforementioned change for .\UpdateValidationsInHelp.ps1.

This pull request addresses Issue #57


Collect Popular Paths Data

At this point @TristanB22 has created a script to collect pop paths data and has been running gcov. He is going to collect:
Popular Paths - via the script
and Reachable Paths - which is pop paths + trinity + LTP + reboot
He seems to be having some issues with reboot, which he'll comment on here

I have been having some weird things happening when I try to get the data together for the popular paths. Here is my process:

I reset the data
I run the popular paths script
I collect the popular paths gcov kernel data using "sudo lcov --capture --output-file ./kernel.info && genhtml ./kernel.info" in a directory of its own. This is dataset 1.
I run trinity and the linux test project
I collect this data using the same command above in a new data directory. This is dataset 2.
I reboot the computer.
I use the above command and collect the data a third time in a new directory. This is dataset 3.

Here is my issue:
Files and data are disappearing with the reboot. For example, dataset 1 is a complete subset of dataset 2. But, dataset 3 doesn't contain all of the data from datasets 1 and 2. Random files go missing and random data is reset (like, some of the lines of code that were marked as executed suddenly changed to unexecuted). Do you know why this could be happening?

I think what you have seen is normal behavior of the kernel profiling.

"dataset 1 is a complete subset of dataset 2": this is because the gcov data collecting is continuous and accumulative, unless you reset the counter or reboot.
When you reboot, because of the randomness (background activities, kernel scheduling, I/O activities, etc.) it is expected that each run will have unique and slightly different kernel foot print. This explains why you have "some of the lines of code that were marked as executed suddenly changed to unexecuted". That being said, I believe the lines changed should be really tiny portion of the entire profile, meaning the majority of the kernel profile should be identical, with very tiny differences for each different run.

For the Pop-Path experiment and kernel profiling, the method we used in our previous study and Lind paper was to do a "union" of the kernel lines executed for all the runs. The resulted "Popular-Paths" data was a approximation of the "popular lines" being used. Because of the randomness, the "Popular-Paths" will never be 100% precise I think. But, scientifically, our method should be good enough.
Hope this helps with your questions.

@detectivelyw I think your advice to do a union here makes a lot of sense. But we're still kind of confused how a reboot would actually delete data from an ongoing run. Do you have any recollection of that?
or @moyix does that sound familiar?

"we're still kind of confused how a reboot would actually delete data from an ongoing run" I did not remember running into this problem. What data were being deleted? Could you back-up the data before rebooting?

Are you referring to the gcda files? I don't think rebooting would affect the data collection. Because you can copy & store all the data in your own user directory right before rebooting. After reboot, just collect new dataset. And then eventually "union" all the datasets should give you the results.

Yeah, the gcda files. We should be able to do what you're referencing, basically taking a pre-reboot dataset, and reboot dataset and union the two. Seems like that will work.
I still am wondering why files and lines from files disappear on reboot though. Can't really find any reference to that anywhere.

@detectivelyw Do you remember what method you used to union the datasets? Did you do this with the gcov data or after your ran it through the analyzer?

@TristanB22 is reporting these numbers.
Reachable Paths
Lines - 30.1%
450659 of 1499050 lines
Functions - 34.8%
36203 of 104158 functions
Popular Paths
Lines - 11.9%
163213 of 1369279 lines
Functions - 13.2%
12651 of 95517 functions

This is uploaded to google drive and the server. Will post the next step for @TristanB22 to compare again known vulns shortly.


Fixed typo in qtbase for the smarcimx8m

Fixed a typo in the qtbase recipe for the smarcimx8m.
dynamic-layers/smarcimx8m/recipes-qt/qt5/qtbase_git.bbappend
Signed-off-by: Dimitris Tassopoulos<EMAIL_ADDRESS>

Thanks, Dimitris!


update links for contributor guidelines and code of conduct in readme task

I found broken links in a zio-schema repo, but I soon realized they are not coming from that repo,
so here is an update for those links here first
I'm still not sure if running docs/generateReadme locally was the right thing to do, please correct me if I'm wrong

@khajavi Please review and get this merged in after appropriate fixes!

https://github.com/zio/zio-sbt/pull/223 - therefore i close this one


Fix Reduce op bounds inference for scalar results

encoding attribute is not required if the result is a scalar but the current code will end up incorrectly setting it to the input encoding attribute.
I also checked that the other inference functions are not having a similar issue. (May have missed recently submitted shape functions.)
Reduce op inference also doesn't deal with sparse encoding attribute so we don't have to worry about that here.
cc @zhouxin913

Gentle ping!


Ios

Can this plugin work with IOS?

Hello.
Nope. Only Android is supported for now.
On Thu, Feb 25, 2021 at 7:53 AM p-mobile<EMAIL_ADDRESS>wrote:

Can this plugin work with IOS?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/rostislav-nikitin/Plugin.BluetoothClassic/issues/2,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAN2774P43WJZ37NAX6GX53TAXQVXANCNFSM4YF3QG6A
.

--
Bye.
Best regards, Rostislav Nikitin.


Support/Handle varying essence types

Currently, the plugin only handles logic for filling pouches with one type of essence. There no logic/I haven't tested multiple essence.
You can only have one type of essence per pouch.

https://github.com/user-attachments/assets/dbc2ab4d-da2f-4cab-ba3e-a02af2e451e5
Potential issue with entering/leaving GOTR with non-guardian essence in your inventory/pouch


setPadding()

is setPadding working for anyone? I don't see any adjustment to the map when I go map.setPadding( 0,0,200,0 );

https://developers.google.com/maps/documentation/android-api/map#map_padding

@wf9a5m75 I understand, but does setPadding work for you? I call map.setPadding(0,0,200,0), and nothing changes, the google logo doesn't move either...

Are you talking about Android or iOS?

both...but for iOS to start is good :)

@wf9a5m75  both...but focusing on iOS, seems to have less things to do in native sdk

Perfectly work.
I think you don't wait the MAP_READY event.

document.addEventListener("deviceready", function() {
  var div = document.getElementById("map_canvas");

  // Initialize the map view
  map = plugin.google.maps.Map.getMap(div);

  // Wait until the map is ready status.
  map.addEventListener(plugin.google.maps.event.MAP_READY, onMapReady);
}, false);

function onMapReady() {
  map.setPadding(0,0,200,0);
}

confirmed! the issue lies in ionic-native it seems, thanks for all your help!


Unable to publish changes to minasearch.com

https://buildkite.com/granola/mina-block-explorer-tier-1/builds/2063#0192175d-6f4d-4f6b-a1b7-70ab20c57642

Fixed by https://github.com/Granola-Team/mina-block-explorer/commit/22c6d2721efd17710de1fb07171a96b4cbda71cb (as seen by build 173)


训练其他数据集

hello！
My data set has nothing to do with the automatic driving of cars. Can I use it to detect the health of the mining bucket teeth? Thank you very much for your answer.

Hello, I have just started working on this project. I have tried configuring the environment using this readme on both VSCode and Psycharm in the early stages, but many errors have occurred. I am currently unsure how to proceed further. Can you help me?


Request body is seekable but size is null when a file is sent

Hello there, I'm using Slim 4.5.0.
I'm PUTting a binary file to one of my routes but the Slim\Psr7\Stream instance I get from the Slim\Http\ServerRequest object won't tell me the content size. I'm NOT sending a multipart/form-data request. I'm just PUTting a file with curl -T "filename" "http://my-host/my-route"
Here's my PHP code. $request->getBody()->getSize() is null even though the stream is reported seekable and the Content-Length header was provided.
public function putMediaContent(ServerRequestInterface $request, ResponseInterface $response, array $args) : ResponseInterface {
    //body is a Slim\Psr7\Stream instance
    $body = $request->getBody();
    //size is null
    $size = $body->getSize();
    //isSeekable is true
    $isSeekable = $body->isSeekable();
    //contentLength has the correct uploaded file size
    $contentLength = $request->getHeaders()['Content-Length'][0];

    //...
}

This is a problem since I then have to pass this stream to an S3Client for cloud upload and it complains about the fact the size is unknown.
Is this intended?
Thanks.

@l0gicgate Thanks for your quick reply. Unfortunately, POST is not working either.
As a workaround, I wrote a StreamWrapper class which returns the size I got from the Content-Length header. And for the rest, it just relays calls to the underlying stream.

Would you be able to provide a code sample so we can diagnose the issue? Thanks

Sure, here's a repro
https://github.com/BrightSoul/repro-issue159-slim-psr7

I can confirm this behavior.
Minimal app:
<?php

use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\UriInterface;
use Slim\Factory\AppFactory;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;

require __DIR__ . '/../vendor/autoload.php';

$app = AppFactory::create();

$app->put('/upload', function (ServerRequestInterface $request, ResponseInterface $response) {
    $size = $request->getBody()->getSize() ?? 'null';
    $contentLength = $request->getHeader('Content-Length')[0];

    $result = "Content-Length: $contentLength, Body size: $size";
    $response->getBody()->write($result);

    return $response;
});

$app->run();

Actual result:
Content-Length: 566967, Body size: null

I have tested this with slim/psr7 and nyholm/psr7. The result was the same in both cases.
So I would consider this not as a bug. Any change could break the compatibility.
A workaround for this specific case would be a custom middleware:
Nyholm example:
use Nyholm\Psr7\Stream;
// ...

final class PutUploadMiddleware implements MiddlewareInterface
{
    public function process(
        ServerRequestInterface $request,
        RequestHandlerInterface $handler
    ): ResponseInterface {
        if ($request->getMethod() === 'PUT') {
            $request = $request->withBody(Stream::create(file_get_contents('php://input')));
        }
        return $handler->handle($request);
    }
}

Closing this as resolved.

@odan

So I would consider this not as a bug, because a PUT stream can only be read once.

How is the stream being read?
Please consider reopening this issue.
I found that the problem comes from fstat($this->stream) === false here:
https://github.com/slimphp/Slim-Psr7/blob/753e9646def5ff4db1a06e5cf4ef539bfd30f467/src/Stream.php#L183-L194
Workarounds I founs so far:
$stream = $request->getBody();

// Get content length (strlen is binary safe)
$size = strlen($stream->getContents());

// Create new via php://temp
$size = (new \Slim\Psr7\Factory\StreamFactory())->createStream($stream->getContents())->getSize();

Additionally, there is already a workaround in place, just it doesn't have effect in this case:
https://github.com/slimphp/Slim-Psr7/blob/753e9646def5ff4db1a06e5cf4ef539bfd30f467/src/Factory/ServerRequestFactory.php#L87-L94

Hi @piotr-cz
I understand that this can be frustrating, that's why we already have tried different approaches to fix this in the last years.
For instance by caching the stream. See this PR: https://github.com/slimphp/Slim-Psr7/pull/124

(https://github.com/Nyholm/psr7/issues/254) doesn't mean this is not a bug, rather that both libraries have same issue.

This "special" behavior originates from PHP's handling of php://input, especially in PUT requests.
Once the input is consumed, it cannot be read again because it's a non-rewindable stream.
As already mentioned there a some workarounds from the community, like a custom StreamWrapper or the PutUploadMiddleware.  Have you tried / tested that?

@odan
Thank you, I'm already using one of the workaround: strlen((string) $stream);.
In this case I think this special behavior could be noted somewhere in docs page https://www.slimframework.com/docs/v4/ so every developer that tries it, doesn't have to find out about it the hard way.
By thy way, issue is not only for PUT but also POST requests (probably all methods except GET that doesn't allow payload body).


Skeleton broker with demo v2/catalog

This builds and runs locally. #7

After this initial checkin, I will work on turn on presubmits.

PTAL

That's for package names. For source files, we're using camelCase across
the project.
On Fri, Jun 2, 2017 at 9:04 AM, Joy Zhang<EMAIL_ADDRESS>wrote:

@xiaolanz commented on this pull request.
In pkg/model/serviceinstance.go
https://github.com/istio/broker/pull/10#discussion_r119893727:

@@ -0,0 +1,43 @@
+// Copyright 2017 Istio Authors

I think the right go convention is all lowercase:
like in library: import "github.com/golang/example/stringutil"
like in mixer: servicegraph.go
and add _test for tests. This will look like serverinstance.go and
serverinstance_test.go
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/istio/broker/pull/10#discussion_r119893727, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AVucHWECpX6COoU_SbQukw656fQEEymxks5sADKrgaJpZM4Ntgr3
.

PTAL.


No type registered for ibc.core.client.v1.ClientUpdateProposal

Summary of Bug

Ref: https://github.com/regen-network/regen-ledger/issues/1895
A message-based governance proposal with type /ibc.core.client.v1.ClientUpdateProposal produces the following error:
Error: no concrete type registered for type URL /ibc.core.client.v1.ClientUpdateProposal against interface *types.Msg

Expected Behaviour

Submitting a message-based governance proposal with type /ibc.core.client.v1.ClientUpdateProposal produces no error.
Version

v5.2.0
Steps to Reproduce

start simapp using version v5.2.0
create proposal json

nano proposal.json

...

{
  "messages": [
    {
      "@type": "/ibc.core.client.v1.ClientUpdateProposal",
      "title": "Update IBC Client",
      "description": "Update IBC Client",
      "subject_client_id": "07-tendermint-100",
      "substitute_client_id": "07-tendermint-116"
    }
  ],
  "metadata": "",
  "deposit": "1stake"
}

submit proposal

./build/simd tx gov submit-proposal proposal.json --from test

confirm error

Error: no concrete type registered for type URL /ibc.core.client.v1.ClientUpdateProposal against interface *types.Msg

For Admin Use

[ ] Not duplicate issue
[ ] Appropriate labels applied
[ ] Appropriate contributors tagged/assigned

Hey, thanks for opening the issue! I believe https://github.com/cosmos/ibc-go/issues/1282 was created for supporting gov v1 msg execution. I think this will likely be completed as part of the next major release ibc-go/v8.

Just noting here that the documentation is a bit misleading atm. As far as I understand, the non-recommended way of submitting a proposal to update a client (i.e. submit-legacy-proposal) is the only option for a chain running v0.46 with ibc-go v5.x.
https://ibc.cosmos.network/main/ibc/proposals.html#step-2

As far as I understand, the non-recommended way of submitting a proposal to update a client (i.e. submit-legacy-proposal) is the only option for a chain running v0.46 with ibc-go v5.x.

Yes, I think you're correct and we should then update our docs. Once #1282 is implemented and we can support gov v1 message execution we will update the docs again.

Closed by https://github.com/cosmos/ibc-go/pull/4580


Install script

This is self explanatory. Only newcommers like @nemus993 wont understand it and be like: "Pleb whacha doin'?!"

Good one. :+1:


Alertmanager eventually consumes all available storage

What did you do?
Run Prometheus Alertmanager inside a docker container (specifically as an openshift pod).
What did you expect to see?
Storage should be refreshed after some retention period.
What did you see instead? Under which circumstances?
All storage on the host was eventually consumed by alertmanager's data directory.
Environment
oc v<IP_ADDRESS>.5
kubernetes v1.6.1+5115d708d7
features: Basic-Auth GSSAPI Kerberos SPNEGO
Server https://ocp-master<IP_ADDRESS>.138.nip.io:8443
openshift v<IP_ADDRESS>.5
kubernetes v1.6.1+5115d708d7

System information:

Linux 3.10.0-514.16.1.el7.x86_64 x86_64

Alertmanager version:

alertmanager, version 0.7.1 (branch: , revision: )
build user:       root@dfa0e46aa7ac
build date:       20170725-15:23:21
go version:       go1.8.1

Prometheus version:

prometheus, version 2.0.0-alpha.3 (branch: , revision: )
build user:       root@dfa0e46aa7ac
build date:       20170630-18:26:12
go version:       go1.8.1

Alertmanager configuration file:

global:

# The root route on which each incoming alert enters.
route:
  # default route if none match
  receiver: alert-buffer-wh

  # The labels by which incoming alerts are grouped together. For example,
  # multiple alerts coming in for cluster=A and alertname=LatencyHigh would
  # be batched into a single group.
  # TODO:
  group_by: []

  # All the above attributes are inherited by all child routes and can
  # overwritten on each.

receivers:
- name: alert-buffer-wh
  webhook_configs:
  - url: http://localhost:9099/topics/alerts

Relevant BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1508059

Are you able to upgrade to the latest version of alertmanager to see if that fixes the issue? The current latest version is 0.9.1: https://github.com/prometheus/alertmanager/releases/tag/v0.9.1

@stuartnelson3 I will try it; it requires building a new image for us, so it will take a little time to try

We tried upgrading to the upstream 0.9.1 alertmanager image (https://hub.docker.com/r/prom/alertmanager) but the problem still occurs.

That's prometheus 2.0 metrics data, not data coming from alertmanager. alertmanager creates two files, nflog and silences. Check your prometheus configuration.

I think this issue can be closed since it clearly relates to Prometheus data, not AlertManager. @pgier @ilackarms can one of you confirm?

Yes, this is for Prometheus. I believe this was already resolved over there.


Set a grab timeout in trigger mode

Hi all!
I am facing a problem with my GigE camera...
i am using this code to set the camera in trigger mode, and start it, in order for the camera to wait for the hardware trigger:
        self.ia.remote_device.node_map.TriggerMode.value = 'On'
        self.ia.remote_device.node_map.PixelFormat.value = 'BayerRG8'
        self.ia.start()
        with self.ia.fetch() as buffer:

The Problem I am facing, is that if for any reason the hardware trigger does not arrive (for example machine in fault) the program just sits there and waits. Is there a way to define a timeout for the Trigger mode? The trigger usually arrives within 100 ms, so it would be great to have a timeout of 500ms...  Halcon has this feature, so I was wondering if it possible to do it with harvesters too..
thank you!

Hi, thank you for trying out Harvester. For your use case, you'd need to call the try_fetch method with the timeout parameter.
with self.ia.try_fetch(timeout=0.5) as buffer:
    if buffer:
        # an image has been delivered.
        # if it's None then it means the method call ended up
        # with time out.

Technically speaking, the fetch(timeout=0.5) method call also can indicate time out by raising the genicam.gentl.TimeoutException. If you prefer that way, please do not forget to catch the exception by the corresponding except clause. Cheers, Kazunari.

Closing. Please feel free to open this ticket when needed.

Sorry for the late reply, was on vacation. thank you very much for your help!

No problem. I hope you enjoyed the vacation.


[MATLAB] Add IPC RecordBatchStreamFileWriter MATLAB class

Describe the enhancement requested
To enable support for the IPC Streaming format in the MATLAB interface, we should add a RecordBatchStreamWriter class.
Component(s)
MATLAB

Issue resolved by pull request 44925
https://github.com/apache/arrow/pull/44925


BeginInteractionAsync deadlock

Switch to the "Available" tab
Select package and click "install" quickly multiple times before package is really installed
Click "uninstall"

Sample of the log:
[16-4-07_14-53-23]:[Request,depth=1]:["#55#",":","#66#",">","install.packages(\"RcmdrPlugin.KMggplot2\", lib=\"C:/Users/alsher/Documents/R/win-library/3.2\")\n"]
[16-4-07_14-53-25]:[Response,depth=1]:["#86#","~+"]
[16-4-07_14-53-25]:[Response,depth=1]:["#88#","~+"]
[16-4-07_14-53-26]:[Response,depth=1]:["#90#","~-"]
[16-4-07_14-53-27]:[Response,depth=1]:["#92#","~+"]
[16-4-07_14-53-27]:[Response,depth=1]:["#94#","~-"]
[16-4-07_14-53-27]:[Response,depth=1]:["#96#","~+"]
[16-4-07_14-53-27]:[Response,depth=1]:["#98#","!!","trying URL 'https:\/\/cloud.r-project.org\/bin\/windows\/contrib\/3.2\/RcmdrPlugin.KMggplot2_0.2-3.zip'\n"]
[16-4-07_14-53-27]:[Response,depth=1]:["#100#","!!","Content type 'application\/zip' length 572592 bytes (559 KB)\n"]
[16-4-07_14-53-28]:[Response,depth=1]:["#102#","!!","downloaded 559 KB\n\n"]
[16-4-07_14-53-28]:[Response,depth=1]:["#104#","~-"]
[16-4-07_14-53-28]:[Response,depth=1]:["#106#","setwd","C:\\Users\\alsher\\Documents\\R\\win-library\\3.2\\file1142d4e60ea"]
[16-4-07_14-53-28]:[Response,depth=1]:["#108#","setwd","C:\\Users\\alsher\\Documents\\R\\win-library\\3.2\\file1142d4e60ea\/RcmdrPlugin.KMggplot2"]
[16-4-07_14-53-28]:[Response,depth=1]:["#110#","setwd","C:\/Users\/alsher\/Documents\/R\/win-library\/3.2\/file1142d4e60ea"]
[16-4-07_14-53-28]:[Response,depth=1]:["#112#","!","package RcmdrPlugin.KMggplot2 successfully unpacked and MD5 sums checked\n"]
[16-4-07_14-53-28]:[Response,depth=1]:["#114#","setwd","C:\/Users\/alsher\/Documents"]
[16-4-07_14-53-28]:[Response,depth=1]:["#116#","!","\n"]
[16-4-07_14-53-28]:[Response,depth=1]:["#118#","!",""]
[16-4-07_14-53-28]:[Response,depth=1]:["#120#","!","The downloaded binary packages are in\n\tC:\\Users\\alsher\\AppData\\Local\\Temp\\RtmpqiDC0i\\downloaded_packages"]
[16-4-07_14-53-28]:[Response,depth=1]:["#122#","!",""]
[16-4-07_14-53-28]:[Response,depth=1]:["#124#","!","\n"]
[16-4-07_14-53-28]:[Response,depth=1]:["#126#","~-"]
[16-4-07_14-53-28]:[Response,depth=1]:["#128#",">",[0],4096,true,null,"> "]
[16-4-07_14-53-28]:[Request,depth=1]:["#57#","=","getwd()"]
[16-4-07_14-53-31]:[Response,depth=1]:["#130#",":","#57#","=","OK",null,"C:\/Users\/alsher\/Documents"]
[16-4-07_14-53-31]:[Request,depth=1]:["#59#","=","getwd()"]
[16-4-07_14-53-35]:[Response,depth=1]:["#132#",":","#59#","=","OK",null,"C:\/Users\/alsher\/Documents"]
[16-4-07_14-53-35]:[Request,depth=1]:["#61#","=","getwd()"]
[16-4-07_14-53-43]:[Response,depth=1]:["#134#",":","#61#","=","OK",null,"C:\/Users\/alsher\/Documents"]
[16-4-07_14-53-43]:[Request,depth=1]:["#63#","=","getwd()"]
[16-4-07_14-53-43]:[Request,depth=1]:["#65#","=","rtvs:::deparse_str(getOption('repos'))"]
[16-4-07_14-53-43]:[Response,depth=1]:["#136#",":","#63#","=","OK",null,"C:\/Users\/alsher\/Documents"]
[16-4-07_14-53-43]:[Request,depth=1]:["#67#","=j","rtvs:::packages.loaded()"]
[16-4-07_14-53-43]:[Request,depth=1]:["#69#",":","#128#",">","install.packages(\"RcmdrPlugin.KMggplot2\", lib=\"C:/Users/alsher/Documents/R/win-library/3.2\")\n"]

RHost log:
	==> ["#55#",":","#66#",">","install.packages(\"RcmdrPlugin.KMggplot2\", lib=\"C:/Users/alsher/Documents/R/win-library/3.2\")\n"]

<== ["#86#","~+"]

<== ["#88#","~+"]

<== ["#90#","~-"]

<== ["#92#","~+"]

<== ["#94#","~-"]

<== ["#96#","~+"]

<== ["#98#","!!","trying URL 'https:\/\/cloud.r-project.org\/bin\/windows\/contrib\/3.2\/RcmdrPlugin.KMggplot2_0.2-3.zip'\n"]

<== ["#100#","!!","Content type 'application\/zip' length 572592 bytes (559 KB)\n"]

<== ["#102#","!!","downloaded 559 KB\n\n"]

<== ["#104#","~-"]

<== ["#106#","setwd","C:\\Users\\alsher\\Documents\\R\\win-library\\3.2\\file1142d4e60ea"]

<== ["#108#","setwd","C:\\Users\\alsher\\Documents\\R\\win-library\\3.2\\file1142d4e60ea\/RcmdrPlugin.KMggplot2"]

<== ["#110#","setwd","C:\/Users\/alsher\/Documents\/R\/win-library\/3.2\/file1142d4e60ea"]

<== ["#112#","!","package RcmdrPlugin.KMggplot2 successfully unpacked and MD5 sums checked\n"]

<== ["#114#","setwd","C:\/Users\/alsher\/Documents"]

<== ["#116#","!","\n"]

<== ["#118#","!",""]

<== ["#120#","!","The downloaded binary packages are in\n\tC:\\Users\\alsher\\AppData\\Local\\Temp\\RtmpqiDC0i\\downloaded_packages"]

<== ["#122#","!",""]

<== ["#124#","!","\n"]

<== ["#126#","~-"]

<== ["#128#",">",[0],4096,true,null,"> "]

	==> ["#57#","=","getwd()"]

	#57# = getwd()

		<== ["#130#",":","#57#","=","OK",null,"C:\/Users\/alsher\/Documents"]

	==> ["#59#","=","getwd()"]

	#59# = getwd()

		<== ["#132#",":","#59#","=","OK",null,"C:\/Users\/alsher\/Documents"]

	==> ["#61#","=","getwd()"]

	#61# = getwd()

		<== ["#134#",":","#61#","=","OK",null,"C:\/Users\/alsher\/Documents"]

	==> ["#63#","=","getwd()"]

	==> ["#65#","=","rtvs:::deparse_str(getOption('repos'))"]

	#63# = getwd()

		<== ["#136#",":","#63#","=","OK",null,"C:\/Users\/alsher\/Documents"]

	#65# = rtvs:::deparse_str(getOption('repos'))

	==> ["#67#","=j","rtvs:::packages.loaded()"]

		<== ["#138#",":","#65#","=","OK",null,"structure(\"https:\/\/cloud.r-project.org\/\", .Names = \"CRAN\")"]

		==> ["#69#",":","#128#",">","install.packages(\"RcmdrPlugin.KMggplot2\", lib=\"C:/Users/alsher/Documents/R/win-library/3.2\")\n"]

	#67# = rtvs:::packages.loaded()

		<== ["#140#",":","#67#","=j","OK",null,["stats","graphics","grDevices","utils","datasets","methods","base"]]

	==> ["#71#","=","rtvs:::deparse_str(.libPaths())"]

	#71# = rtvs:::deparse_str(.libPaths())

		<== ["#142#",":","#71#","=","OK",null,"c(\"C:\/Users\/alsher\/Documents\/R\/win-library\/3.2\", \"C:\/Program Files\/Microsoft\/MRO\/R-3.2.3\/library\")"]

	==> ["#73#","=j","rtvs:::packages.loaded()"]

	#73# = rtvs:::packages.loaded()

		<== ["#144#",":","#73#","=j","OK",null,["stats","graphics","grDevices","utils","datasets","methods","base"]]

	==> ["#75#","=","rtvs:::deparse_str(getOption('repos'))"]

	#75# = rtvs:::deparse_str(getOption('repos'))

		<== ["#146#",":","#75#","=","OK",null,"structure(\"https:\/\/cloud.r-project.org\/\", .Names = \"CRAN\")"]

	==> ["#77#","=","rtvs:::deparse_str(.libPaths())"]

	#77# = rtvs:::deparse_str(.libPaths())

		<== ["#148#",":","#77#","=","OK",null,"c(\"C:\/Users\/alsher\/Documents\/R\/win-library\/3.2\", \"C:\/Program Files\/Microsoft\/MRO\/R-3.2.3\/library\")"]

	==> ["#79#","=j","rtvs:::packages.loaded()"]

	#79# = rtvs:::packages.loaded()

		<== ["#150#",":","#79#","=j","OK",null,["stats","graphics","grDevices","utils","datasets","methods","base"]]

https://github.com/Microsoft/R-Host/pull/52


Add help article on authors

We have added support for authors. We need to document it.
#195

It's already documented.
https://elegant.oncrashreboot.com/adding-author-blurbs


Session Management through database

Can any one let me know how to manage session in database in zf2

Hi Ravi
Take a look at this repo: https://github.com/hrevert/HtSession
You could either use it or get ideas from there.

Use Zend\Session.
It's covered in docs and there's several tutorial articles on the Internet:

http://framework.zend.com/manual/current/en/modules/zend.session.save-handler.html#dbtablegateway
https://pavlakis.info/php/12-database-sessions-with-zf2

Zend Session provides multiple Session Save Handler. @ravigupta112 Please close this issue.

hi sandrokeil ,
I have tried this but it is not working.

Closing, as no actual issue was raised here.


Rename [-token] flag

POSIX dictates that commands flags follow the pattern -a and --a..., where -- indicates a more verbose -[0]. Currently, discordo uses -token, which should be changed to -t and --token.
[0]: https://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html
Edit
POSIX only guarantees the short options, while GNU provides the long options.

Discordo uses the flag package from the Go standard libraries, hence deriving the syntax defined by it, not POSIX. While it would be awesome if it supported POSIX syntax for parsing command-line flags, I personally don't mind the current syntax. The valid forms can be found here: https://pkg.go.dev/flag#hdr-Command_line_flag_syntax


Search text for dates

It would be useful for Portia if it is possible to search text for dates, see https://github.com/scrapinghub/portia/issues/192

We had this in early days of dateparser but this was greatly interfering with ability to properly work not only with English dates but with other languages (especially with languages without word spacing, like Chinese). dateparser is in the first place multilingual library which focus on parsing valid dates in any language.

We will try to target this issue in later (much later) versions. Until then this would stay open for discussion.
Another thing with fuzzy parsing was that it was parsing invalid dates like Aug 7, 2014Aug 7, 2014 (resulting in datetime(2007, 8, 7, 20, 14)). So we should approach this carefully.

I have tried to do something alike: detect multiple dates in a string.
NOT YET TESTED, but seems working.
It might help...
`import dateparser
def detect_date(line=""):
"""Detect multiple, multi language date and datetime entries in a given string.
@param type: String to detect occuring_dates in, ideally a single line.
@type type: String
@return: Returns the list of found DateTime objects or None
@rtype: List or None
"""

# For a start, split the string, remove , and ; to get rid of edge cases
# and be able to manipulate the data word by word
splitted_line=line.replace(",","").replace(";","").split()

occuring_dates=[]
broken=False
i=0
j=len(splitted_line)+1

while i<len(splitted_line)-1:
    while j>=0:
        #Generate a candidate combination of words
        section=" ".join(splitted_line[i:j])

        try:
            #If the input string is really not vaild, dateparser will raise an exception.
            date=dateparser.parse(section)
            if date==None:
                #If dateparser returns with None, raise an exception.
                raise Exception("No date could be parsed.")
            else:
                #If we found something, just store it.
                occuring_dates.append(date)

        except:
            #Nothing has been found, go ahead...
            j-=1
        else:
            #We have found something, hopefully
            if date:
                #Update the original list, remove everything "covered" by what we found.
                #This is the way to get rid of duplicates from parsing parts
                # of the same datetime many times.
                splitted_line=splitted_line[j+1:]
                i=0
                broken=True
            break

    j=len(splitted_line)+1
    if not broken:
        i+=1

#This is a "detector", so give None if nothing is found, so as to fit in logical operations.
if occuring_dates==[]:
    occuring_dates=None

return occuring_dates

if name == 'main':
#English dummy example
line="aaa Sat, 16 Jul 2016 06:09:12 +0000 and Sat, 17 Aug 2015 09:11:15 +0100 aaa and 2 days ago aaaaa"
results=detect_date(line)
for r in results:
    print(r)`

Hi all.
I am hoping to work  on this idea for GSoC.
I was thinking that for a given body of text, first recognise it's language and then construct a regex
to match the required string.
The above example from @solalatus uses all possible combination of tokens(say given n of them in a string) and results in O(n2) while regex can do the job in O(n).
The above idea has already been implemented by 'akoumjian/datefinder'  and can be used as an inspiration.

Resolved with https://github.com/scrapinghub/dateparser/pull/324 :tada:


Cargo error when rustc's dylibs not in path is cryptic

See conversation here: https://twitter.com/coda/status/553682288874385408

Cargo could probably figure out where rustc's dylibs are and set up the environment appropriately.

Hm, I'm not sure this is related to DYLD_LIBRARY_PATH, the error is different in that case:
$ unset DYLD_LIBRARY_PATH
$ cargo build -v
An unknown error occurred
Process didn't exit successfully: `rustc -v verbose` (status=5)
--- stderr
dyld: Library not loaded: x86_64-apple-darwin/stage1/lib/rustlib/x86_64-apple-darwin/lib/librustc_driver-4e7c5e5c.dylib
  Referenced from: /Users/acrichton/code/rust/bin/rustc
  Reason: image not found

Seems bad though!

This seems very very similar to https://github.com/rust-lang/cargo/issues/987, however.

Ok, After re-reading I think this is a dupe of #987, so closing as such.


fix failed cases

fix PostmanAuthTests.authBaseFailTest and ErrorMessageTreloTest.deleteNotExistsCardFromBoard

[459] - https://transfer.sh/B5udQ/jdi-dark-tests.tar.gz

[459] - Allure report on Netlify: https://5e4aa6bfbed22e7325f310c1--jdi-dark.netlify.com


Model

How do I specify 'srcnn - illustration' in 'model'? And where do I get it?

Set the model argument to "models-upconv_7_anime_style_art_rgb" or the path to the directory of this model.


rtt: 2.9.1-2 in 'lunar/distribution.yaml' [bloom]

Increasing version of package(s) in repository rtt to 2.9.1-2:

upstream repository: https://github.com/orocos-toolchain/rtt.git
release repository: https://github.com/orocos-gbp/rtt-release.git
distro file: lunar/distribution.yaml
bloom version: 0.8.0
previous version for package: 2.9.1-1

Will be replaced by 2.9.2-1.


[Bug]: Errors when running shell in pure mode

Current Behavior (bug)
When running devbox shell --pure, errors appear if the user's rc file (e.g. .bashrc) contains commands that are not available in the Devbox environment. For example with a standard Bash installation, the following error appears:
bash: lesspipe: command not found

People commonly customise their rc files to run extra commands, so other errors may appear too.
Expected Behavior (fix)
The errors should not appear.
If pure mode is trying to achieve isolation and consistency, it does not really make sense to execute the user's rc file at all. Below is one idea, but I'm open to other suggestions.
For each shell, Devbox provides a "pure" rc file that is guaranteed to work in any Devbox environment. In pure mode, Devbox executes this rc file instead of the normal one. These pure rc files can be based on the default ones for each shell, but modified to not depend on any commands that may not exist in the Devbox environment. Customisation should be supported, so users can edit or override the Devbox-provided pure rc files if they desire.
Additional context
Output of devbox version -v:
Version:     0.5.5
Platform:    linux_amd64
Commit:      891e8de7a8ab7a3fec42fad069326d68cb84603e
Commit Time: 2023-06-19T19:18:00Z
Go Version:  go1.20.5
Launcher:    0.2.0

Mentioned in your other issue, but I agree that we should not be running a user's rc file as part of devbox shell --pure.

These pure rc files can be based on the default ones for each shell, but modified to not depend on any commands that may not exist in the Devbox environment

I think this could be done with init_hooks, but there is a chance that the init_hook would run differently in pure vs impure mode. We'd either need more detailed hooks or a different file (as you're suggesting) in the project.

I think this could be done with init_hooks, but there is a chance that the init_hook would run differently in pure vs impure mode. We'd either need more detailed hooks or a different file (as you're suggesting) in the project.

Even in pure mode I think users should have the ability to personalise their Devbox environment (e.g. aliases, prompts, etc). So although init_hooks could be used, I'm not sure that it would allow for this personalisation.
The default .bashrc file sets up a lot of things important for user experience (e.g. history, colour, aliases, completion) and these should all still work "out of the box" in pure mode, without the user having to do any extra setup or personalisation.


Edam: Create an executable to run the application

The executable name needs to change to Datovy.Edam.exe.

At this time deployment should be done through a deployment package and is not a single executable.  Make sure to do prepare the package for the proper registration of the resource under windows.


Lookahead doesn't allow multiple instances of a subfield

I've encountered a limitation to Lookahead that I think severely limits their usability, particularly when used in public facing APIs. For internal only APIs you can (sometimes) get around this if aware of the limitations, but I feel it'd be inadvisable to use them in their current state as it could cause a lot of unexpected behaviour.
Take a query with the following field selections:
myQuery {
  a {
    b
  }

  a {
    c
  }
}

While it might seem strange to do this, using fragments can commonly result in this sort of query and can be unavoidable without inlining the fragment content. For example, in React Apollo client it's common for components to have their own fragments. If component B needs field b and component C needs field c, for example.
myQuery {
  ...componentB
  ...componentC
}

fragment componentB on MyQuery {
  a {
    b
  }
}

fragment componentC on MyQuery {
  a {
    c
  }
}

In my resolver if I do &ctx.look_ahead().field("a").field("c"), it'll indicate that it doesn't exist because .field("a") simply takes the first a { }. Instead of a single field: Option<&'a Field>, I think Lookahead really needs to use field: Vec<&'a Field>.
I'd be quite happy to provide a PR to provide this. There might be some performance penalties I'm unaware of though, so let me know if so.

Created a PR to fix this linked above.


Bugfix/get group

[x] closes #32492
[x] tests added / passed
[ ] passes black pandas
[ ] passes git diff upstream/master -u -- "*.py" | flake8 --diff
[ ] whatsnew entry

Passed all tests. Code seems clean and well written. Added additional tests and already tested and all passed.


[Request] Separate latency-mitigation and modding tools

The project seems to have dual purposes now, would it be possible to split off the latency mitigation portion? Alternatively, build flags to toggle on/off the extra features.
Thanks!

I'm not interested in doing that, but you can always make a fork and strip out all the features you don't need. Why do you want to get rid of the other features, though? If you don't enable modding, none of the mod related code will execute at all, minus configuration menu.

Two things, mainly. The first would be simplifying any troubleshooting as I would know what tools detour what bits ingame. The second is updates, mainly that it becomes necessary to check the notes/commit history for if the part I use needs any update versus the (larger amount of) other features.

With the advent of NoClippy, this feels a lot less important - having the logic happen within the game solves the separation issue.


[#394] Fix broken link in documentation

Fixes #394

@lucapette Thanks for the kind word, I am trying to get familiar with the project. I look forward to meet everyone in the team


Validate module name with regex

Purpose

To validate the module name with regex
To Modify the error message for ballerina command

Fixes #18466
Approach

Describe how you are implementing the solutions along with the design details.

Samples

Provide high-level details about the samples related to this feature.

Remarks

List any other known issues, related PRs, TODO items, or any other notes related to the PR.

Check List

[x] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[ ] Added necessary tests

[ ] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

Codecov Report

Merging #21386 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #21386   +/-   ##
=======================================
  Coverage   14.64%   14.64%
=======================================
  Files          51       51
  Lines        1400     1400
  Branches      214      214
=======================================
  Hits          205      205
  Misses       1179     1179
  Partials       16       16

Continue to review full report at Codecov.

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