findFeatures does not seem to return all features

I have a "route" layer in my mbtiles data representing osm routes.
What i am trying to achieve is create a polyline from a route.
A route is spanned across multiple tiles as shown here (red bold line):

Now those routes have a osmid:string property allowing me to "match" them in the same route (used in the screenshot to highlight the route).
Also each route has an extent property giving the bounding box of the "whole route"
Now to create my polyline i use findFeatures in that way (javascript bindings)
const mapProjection = mapContext.getProjection();
const searchService = new VectorTileSearchService({
    minZoom: 14,
    maxZoom: 14,
    layer
});
let extent: [number, number, number, number] = item.properties.extent as any;
if (typeof extent === 'string') {
    extent = JSON.parse(`[${extent}]`);
}
const boundsGeo = new PolygonGeometry<LatLonKeys>({
    poses: [
        { lat: extent[1], lon: extent[0] },
        { lat: extent[3], lon: extent[2] }
    ]
});
const featureCollection = await new Promise<VectorTileFeatureCollection>((resolve) =>
    searchService.findFeatures(
        {
            projection: mapProjection,
            filterExpression: `osmid='${properties.osmid}'`,
            geometry: boundsGeo
        },
        resolve
    )
);

My issue is that for some reason not all "parts" of the route are returned. We can see it in the screenshot on the blue line.

I think the issue is internal.
To reproduce it your can run findFeatures with osmid='-2535348'
You can find a small mbtiles having the data here http://gofile.me/4pKGL/UJ1GNphg1

This is really strange. Perhaps you are hitting 'max results' limitation (default value is 1000). You can try setting it to a larger value using setMaxResults of `VectorTileSearchService'.
If it does not help, could you create a reproducible minimal app in either Java/Kotlin/ObjC/Swift?

@mtehver when you say max results it is max feature count results? Cause it returns 6 only ! The weirdest is that some are missed "in the middle" of the  geometry (seen by the long straight lines in blue in the last screenshot)
I ll try to create a reproducible example. In the meantime the issue seems a bit clear to me. Some tiles are ignore / not searched.
If you look at the screenshot below we can clearly see that missing part correspond exactly to tiles bounds.

.

@mtehver reproduced it in java.
Create the vector layer with this
TileDataSource source = null;
MBVectorTileDecoder decoder = null;
try {
    source = new MBTilesTileDataSource( "/storage/10E7-1004/alpimaps_mbtiles/france/tiles.mbtiles");
    final File file = new File("/storage/10E7-1004/alpimaps_mbtiles/inner.zip");
    final FileInputStream stream = new java.io.FileInputStream(file);
    final DataInputStream dataInputStream = new java.io.DataInputStream(stream);
    final byte[] bytes = new byte[(int)file.length()];
    dataInputStream.readFully(bytes);
    decoder = new MBVectorTileDecoder(new CompiledStyleSet(new ZippedAssetPackage(new com.carto.core.BinaryData(bytes))));
} catch (IOException e) {
    e.printStackTrace();
}
VectorTileLayer backlayer  = new VectorTileLayer(source, decoder);
mapView.getLayers().add(backlayer);

the decoder style is this one
Uploading inner.zip…
Now you can test the search with this:
public void testVectoTileSearch(final VectorTileLayer layer, final Options options) {
    final VectorTileSearchService searchService = new VectorTileSearchService(layer.getDataSource(), layer.getTileDecoder());
    searchService.setMaxZoom(14);
    searchService.setMinZoom(14);
    MapPosVector vector = new MapPosVector();
    vector.add(new MapPos(5.853,45.096));
    vector.add(new MapPos(6.009,45.225));
    PolygonGeometry boundsGeo = new PolygonGeometry(vector);
    final SearchRequest request = new SearchRequest();
    request.setFilterExpression("layer::name='route' AND osmid=-2535348");
    request.setGeometry(boundsGeo);
    request.setProjection(options.getBaseProjection());
    new Thread() {
        public void run() {
            final VectorTileFeatureCollection result = searchService.findFeatures(request);
            new Handler(android.os.Looper.getMainLooper()).post(new Runnable() {
                @Override
                public void run() {
                    Log.d(TAG, "findFeatures done " + result.getFeatureCount());
                }

            });
        }
    }.start();
}

It returns only 6 features. And if you draw them (i tried to do it in java but it was too long to implement becaause i am missing methods to "flatten" a MapPosVectorVector to create a Line) you ll see there are holes.
And i know those holes should be there because i can draw them with css.

@farfromrefug You define your search area as a polygon with only 2 vertices (so basically as a straight line). Try this instead:
vector.add(new MapPos(5.853,45.096));
vector.add(new MapPos(6.009,45.096));
vector.add(new MapPos(6.009,45.225));
vector.add(new MapPos(5.853,45.225));

@mtehver wow.dumb me! works perfectly now. sorry and thank you !


Status is not shown

Read your blog : https://medium.com/faun/writing-your-first-kubernetes-operator-8f3df4453234
Excellent starter doc on operator-sdk. Thanks a lot for that. I did exactly the same thing which you did mention in the blog. I am not seeing status being populated in any of the command
1: kubectl describe podsets foo
2: kubectl get podsets -o json
Did you face the same issue ?

I fixed it : https://github.com/xcoulon/podset-operator/pull/3
Memcached example has this one: https://github.com/operator-framework/operator-sdk/blob/master/example/memcached-operator/memcached_controller.go.tmpl#L157

Feel free to close it when you verify.

@gaurav-dalvi so I tested the PR after merging it, with the latest operator SDK (v0.8.1) and I get the following error in the controller after I created a PodSet CR:
{"level":"error","ts":1559122672.580986,"logger":"kubebuilder.controller","caller":"controller/controller.go:209","msg":"Reconciler error","Controller":"podset-controller","Request":"myproject/example-podset","error":"the server could not find the requested resource (put podsets.app.example.com example-podset)","stacktrace":"github.com/xcoulon/podset-operator/vendor/github.com/go-logr/zapr.(*zapLogger).Error\n\t/Users/xcoulon/code/go/src/github.com/xcoulon/podset-operator/vendor/github.com/go-logr/zapr/zapr.go:128\ngithub.com/xcoulon/podset-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/Users/xcoulon/code/go/src/github.com/xcoulon/podset-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:209\ngithub.com/xcoulon/podset-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1\n\t/Users/xcoulon/code/go/src/github.com/xcoulon/podset-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:157\ngithub.com/xcoulon/podset-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1\n\t/Users/xcoulon/code/go/src/github.com/xcoulon/podset-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:133\ngithub.com/xcoulon/podset-operator/vendor/k8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/Users/xcoulon/code/go/src/github.com/xcoulon/podset-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:134\ngithub.com/xcoulon/podset-operator/vendor/k8s.io/apimachinery/pkg/util/wait.Until\n\t/Users/xcoulon/code/go/src/github.com/xcoulon/podset-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}

I'm going to revert your PR (I should have tested it before merging 😕)
Also: I've pushed the latest Docker image (ie, without your patch) to Quay.io: https://quay.io/repository/xcoulon/podset-operator?tab=tags
On Minishift, I run the following commands:
$ oc create -f deploy/operator.yaml

$ echo "apiVersion: app.example.com/v1alpha1
kind: PodSet
metadata:
  name: example-podset
spec:
  replicas: 3" | oc create -f -

and at this point, the 3 expected pods are immediately created:
$ oc get pods
NAME                               READY     STATUS              RESTARTS   AGE
example-podset-podnvlcs            0/1       ContainerCreating   0          3s
example-podset-podtvgsf            0/1       ContainerCreating   0          3s
example-podset-podzv475            0/1       ContainerCreating   0          3s
podset-operator-685bbbc858-2ccvd   1/1       Running             0          2m

and I can check the status of the podset to see the associated/child pods:
$ oc describe podset example-podset
Name:         example-podset
Namespace:    myproject
Labels:       <none>
Annotations:  <none>
API Version:  app.example.com/v1alpha1
Kind:         PodSet
Metadata:
  Creation Timestamp:  2019-05-29T09:50:12Z
  Generation:          1
  Resource Version:    16067
  Self Link:           /apis/app.example.com/v1alpha1/namespaces/myproject/podsets/example-podset
  UID:                 2705365a-81f7-11e9-9d3c-0800272eeb59
Spec:
  Replicas:  3
Status:
  Pod Names:
    example-podset-podnvlcs
    example-podset-podtvgsf
    example-podset-podzv475
Events:  <none>

Thanks for the analysis. I am using 0.7.0 version of sdk. on that , when I tested on Minikube, it did not work and that why I sent the PR. It worked after my PR. I need to check with newer version of SDK.
Can you check if it works on minishift with 0.7.0 version of SDK.

Without my fix, latest master
kubectl describe  podsets
Name:         example-podset
Namespace:    default
Labels:       <none>
Annotations:  <none>
API Version:  app.example.com/v1alpha1
Kind:         PodSet
Metadata:
  Creation Timestamp:  2019-05-29T17:50:38Z
  Generation:          1
  Resource Version:    1328
  Self Link:           /apis/app.example.com/v1alpha1/namespaces/default/podsets/example-podset
  UID:                 44f7d3ac-823a-11e9-9676-080027c00d04
Spec:
  Replicas:  3
Events:      <none>
bash:master$ operator-sdk version
operator-sdk version: v0.8.1, commit: 33b3bfe10176f8647f5354516fff29dea42b6342
bash:master$ minikube version
minikube version: v1.0.0
bash:master$ kubectl version
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.1", GitCommit:"b7394102d6ef778017f2ca4046abbaa23b88c290", GitTreeState:"clean", BuildDate:"2019-04-08T17:11:31Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.0", GitCommit:"641856db18352033a0d96dbc99153fa3b27298e5", GitTreeState:"clean", BuildDate:"2019-03-25T15:45:25Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"linux/amd64"}

With my fix and same other versions:
kubectl create -f deploy/crds/app_v1alpha1_podset_cr.yaml
podset.app.example.com/example-podset created
bash:master$ kubectl describe podset
Name:         example-podset
Namespace:    default
Labels:       <none>
Annotations:  <none>
API Version:  app.example.com/v1alpha1
Kind:         PodSet
Metadata:
  Creation Timestamp:  2019-05-29T17:54:53Z
  Generation:          1
  Resource Version:    1710
  Self Link:           /apis/app.example.com/v1alpha1/namespaces/default/podsets/example-podset
  UID:                 dd0a9e3d-823a-11e9-9676-080027c00d04
Spec:
  Replicas:  3
Status:
  Pod Names:
    example-podset-podjw6rd
    example-podset-podm5t2d
    example-podset-podpmjgt
Events:  <none>

@xcoulon : Can you take a look ?

@gaurav-dalvi sorry for this very late response. I worked on the project today and this should be fixed now:
$ oc get podset/example-podset -o yaml
apiVersion: app.example.com/v1alpha1
kind: PodSet
metadata:
  ...
spec:
  replicas: 4
status:
  podNames:
  - example-podset-podd642m
  - example-podset-pod8dv99
  - example-podset-podc5ncx
  - example-podset-podshbh6
  replicas: 4

(note that oc is the equivalent of kubectl for OpenShift)


fix: array length for direct assignment

Fixes #7 : array length not updating on index assignment.
It appears that creating an empty array using Object.create from the prototype of the original doesn't create a proper array, just an Object which inherits from the Array prototype. Real arrays have special behaviors.
See also https://stackoverflow.com/questions/22022058/new-array-vs-object-createarray-prototype
The added tests check for the special indexing properties of an Array: a simple case of adding a sequential item, and an edge case of adding a non-contiguous one.

Apologies, new laptop - didn't set up my Git properly. May push a forced update shortly to properly do the commit.


Sanitycheck: tweaks to allow --device-testing --build-only to work

This is a step towards having support in sanitycheck to produce just the build artifacts for tests that are runnable on a board.

This is a step towards having support in sanitycheck to produce just the build artifacts for tests that are runnable on a board.

what would be the next step?
IMO getting a list of runnable tests and ust build them or execute them should be done independent of --device-testing. We would want this to work for simulation and emulation etc.

what would be the next step?

The workflow I'm thinking is this:
CI build:

./scripts/sanitycheck -p frdm_k64f --build-only  --device-testing -M

This would build and strip the sanity-out dir (via -M) down to just the artifacts you need to have the tests run.

on successful build - tar up artifacts:  sanity-out/, scripts/sanity*, scripts/west*, west.yml

CI run:

./scripts/sanitycheck -p frdm_k64f --test-only  --device-testing -i --device-serial /dev/ttyACM0 --west-flash

IMO getting a list of runnable tests and ust build them or execute them should be done independent of --device-testing. We would want this to work for simulation and emulation etc.

Agreed, I'd like to see simulation/emulation testing work under the same flow as device-testing.
Would we support ./scripts/sanitycheck --device-testing -p qemu_x86 ?

I wonder about possible confusion that would get out of this. What would be the diff between
sanitycheck  -b -p my_board

and
sanitycheck --device-testing --build-only

?
When running the following:
sanitycheck -p disco_l475_iot1 -b -T tests/kernel/common/

and
sanitycheck -p disco_l475_iot1 --device-testing --hardware-map ../map.yaml -T tests/kernel/common/

the only difference I get in output artefacts are sanitycheck.csv, sanitycheck.log and sanitycheck.xml, which are only related to the pure execution (please correct me if I'm wrong).
So, I don't really get what the --build-only would add in that context.

I wonder about possible confusion that would get out of this.

Not following

What would be the diff between sanitycheck -b -p my_board  and sanitycheck --device-testing --build-only ?

The difference is in the filter of which tests will be built.  Adding --device-testing will have the list of tests only include those that are runnable on the given board and meet the fixture criteria that are specified.

When running the following:
sanitycheck -p disco_l475_iot1 -b -T tests/kernel/common/

and
sanitycheck -p disco_l475_iot1 --device-testing --hardware-map ../map.yaml -T tests/kernel/common/

the only difference I get in output artefacts are sanitycheck.csv, sanitycheck.log and sanitycheck.xml, which are only related to the pure execution (please correct me if I'm wrong).
So, I don't really get what the --build-only would add in that context.

In some cases there will be no difference.  However if you do:
sanitycheck -p disco_l475_iot1 -b -T tests/drivers/build_all/
vs
sanitycheck -p disco_l475_iot1 -b --device-testing --hardware-map ../map.yaml -T tests/drivers/build_all/
You should see a difference.

In some cases there will be no difference. However if you do:
sanitycheck -p disco_l475_iot1 -b -T tests/drivers/build_all/
vs
sanitycheck -p disco_l475_iot1 -b --device-testing --hardware-map ../map.yaml -T tests/drivers/build_all/
You should see a difference.

I see.
Anyway for average users, maybe a --artefacts-only would be less confusing than --build-only.

Would we support ./scripts/sanitycheck --device-testing -p qemu_x86 ?

Hmm, no, --device-testing is mostly about the handler (DeviceHandler), flashing and connecting to the device and also managing multiple devices using the hardware map etc.
generating artifacts for a specific board should be generic and orthogonal to the handler and how you interact with the device.

getting buildable/runnable tests for a certain device should be orthogonal to --device-testing.

How flags (existing or new) should be passed to sanitycheck for this purpose?

What flags (existing or new) should be passed to sanitycheck for this purpose?

something like that maybe:
sanitycheck -p qemu_x86 --build-only --filter runnable|buildable

I started looking at this, getting something like this with initial prototype..
i9:zephyr(sanitycheck/build_only_cleanup): sanitycheck  -p native_posix --filter=runnable  -v -c -y
Deleting output directory /home/nashif/Work/zephyrproject/zephyr/sanity-out
INFO    - JOBS: 20
INFO    - Building initial testcase list...
INFO    - 323 test configurations selected, 544 configurations discarded due to filters.
INFO    - Completed in 0 seconds

vs.
i9:zephyr(sanitycheck/build_only_cleanup): sanitycheck  -p native_posix   -v -c -y
Deleting output directory /home/nashif/Work/zephyrproject/zephyr/sanity-out
INFO    - JOBS: 20
INFO    - Building initial testcase list...
INFO    - 388 test configurations selected, 479 configurations discarded due to filters.
INFO    - Completed in 0 seconds

along the way cleaned up the build_only ambiguity and the logic behind it for real...

Neat.  Was thinking about a --filter option as well recently with all the various changes we got going on.

Closing in favor of #27236


Button no longer showing up in VSO

The toggl button no longer shows up on VSO work items.

There were permissions issues with the last release. We've released a new version (1.0.6) with fixes to these issues.


Update Issue - Automate_undefined_11193

URL tested: https://accounts.google.com/v3/signin/identifier?continue=https%3A%2F%2Fmail.google.com%2Fmail%2Fu%2F0%2F&emr=1&followup=https%3A%2F%2Fmail.google.com%2Fmail%2Fu%2F0%2F&ifkv=AeZLP99xUAjT85dOySA2AaVpsI27WMZZ6Cz894ckduY0FHn6kjkJfHYUwKfVu9jgv8kyvyVwvWPp&osid=1&passive=1209600&service=mail&flowName=GlifWebSignIn&flowEntry=ServiceLogin&dsh=S-385620427%3A1735166815186549&ddm=1
Open URL on Browserstack
default description

Property
Value

Browser
Chrome 116.0

Operating System
OS X High Sierra

Resolution
1688x792

Screenshot Attached
Screenshot URL

Updated Screenshot Attached


feat: add button scroll on top in post page

I've added the scroll to top button feature for issue #81, here's what it looks like

please check @oyepriyansh

There is no button showing in preview.

The button is on the post details page, you can check the video below
scrnli_10_6_2023_1-55-28 PM.webm

please approve & merge @oyepriyansh


Code style fixes & Github Actions

Minor PR

Code style fixes (by php-cs-fixer)
CI (native GitHub actions)

I don't know how else to improve the project 🤷🏻♂

I was going to suggest php-cs-fixer, but you beat me to it!  I use it for
all my projects, and it is great.
I'll take a look at this tonight or tomorrow in detail, and make sure I
don't see anything else, but I think we have a winner!
On Sun, May 31, 2020, 6:10 PM Alexander Kiryukhin<EMAIL_ADDRESS>wrote:

I don't know how else to improve the project 🤷🏻♂
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/neonxp/MathExecutor/pull/65#issuecomment-636537753,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABYW6SYKKABCT4EVY4M5EPTRULIUFANCNFSM4NPKQUYQ
.

This looks good. Merging and labeling. Only bug was MathExecutorException namespace. Rest is style.


Use requestAnimationFrame rather than setTimeout

Since your repo got on the hackernews front page: your draw loop uses window.setTimeout(..., 0), but this leads to rather jarring stutter. Replacing window.setTimeout(...) with window.requestAnimationFrame(Draw) lets the code run much smoother.
On a secondary note, a setTimeout with 0 as argument doesn't actually run "immediately"; it has 20 years of legacy baggage and depending on the browser you're basically guaranteed a minimum interval of 3 to 5 milliseconds instead (because in the 90s, not every browser could do immediate timeouts, and so the lower bound was capped. Then the spec folks went "we should formalize that behaviour" rather than not doing that...)

Thanks for the information. I switched to requestAnimationFrame.


Parallel threads for all_resources() - under 300 ns

I may have botched it - needs handling for resource fetch the result and I have a feeling needs to drop channel somewhere, but initial resoults are promising:
all_resources()         time:   [272.11 us 276.68 us 281.49 us]
                        change: [-99.982% -99.982% -99.982%] (p = 0.00 < 0.05)
                        Performance has improved.

this is a rather old 2015 Mac Book.

I am sorry, please don't merge, I clicked the wrong button again - dragged impl.
Main code:
    fn all_resources(&self, include_external: bool) -> ResourceCollection {
        fn process_resource(item: Result<(sled::IVec, sled::IVec), sled::Error>) -> Resource {
            let (subject, resource_bin) = item.expect(DB_CORRUPT_MSG);
            let subject = String::from_utf8_lossy(&subject).to_string();
            let propvals: PropVals = bincode::deserialize(&resource_bin)
                .unwrap_or_else(|e| panic!("{}. {}", corrupt_db_message(&subject), e));
            let resource = Resource::from_propvals(propvals, subject);
            resource
        }
        let self_url = self
            .get_self_url()
            .expect("No self URL set, is required in DB");
        let mut prefix: &[u8] = self_url.as_bytes();
        if include_external {
            prefix = "".as_bytes();
        }
        let pool = ThreadPool::new(self.njobs());
        let resource_iter = self.resources.scan_prefix(prefix);
        let (send, recv) = channel::bounded(0);
        for item in resource_iter {
            let (send, item)= (send.clone(),item.clone());
            pool.execute(move || {
                send.send(process_resource(item));
                });
            }
            drop(send);
        let resources=recv.try_iter().collect::<Vec<Resource>>();
        resources
    }

wow, that's impressive! :D

Created new one addressing comments https://github.com/joepio/atomic-data-rust/pull/396


commonJS & npm publishing?

@constantx both are on the roadmap, will keep this open til they've been implemented

@constantx the UMD wrapper is now in place!

:beers: rad, will give it a try manually while waiting for npm :)

@constantx just published to NPM: https://www.npmjs.com/package/layzr.js
hopefully this will save you some free time :laughing:

@callmecavs :speedboat:

Take a look at #16


Limit number of tables and layers in layergroups

Maximum number of tables in a visualisation will be limited to 10.
Maximum number of layers in a visualisation will be limited to 10.
For the initial release we will increment in graphite a counter when any of the limits is reached.
As the initial release is kind of risky it will be possible to override the numbers in a per user basis.

:dancer:

Oh, my nice 15 layers map will die :(

Stale


7.1.0 version produce different output than earlier version.

private static com.google.i18n.phonenumbers.PhoneNumberUtil util = com.google.i18n.phonenumbers.PhoneNumberUtil.getInstance()
Phonenumber.PhoneNumber phoneNumber1 = util.parseAndKeepRawInput("49-2411231234 ", "DE");
Phonenumber.PhoneNumber phoneNumber2 = util.parseAndKeepRawInput("492411231234 ", "DE");
System.out.println("phoneNumber1.nationalNumber : "+phoneNumber1.nationalNumber)
System.out.println("phoneNumber2.nationalNumber : "+phoneNumber2.nationalNumber)
==========OutPUt In com.googlecode.libphonenumber:libphonenumber:5.1 =============
phoneNumber1.nationalNumber :<PHONE_NUMBER>
phoneNumber2.nationalNumber :<PHONE_NUMBER>
=========OutPUt In com.googlecode.libphonenumber:libphonenumber:6.0 ==============
phoneNumber1.nationalNumber :<PHONE_NUMBER>
phoneNumber2.nationalNumber :<PHONE_NUMBER>
=======OutPUt In com.googlecode.libphonenumber:libphonenumber:7.1.0 ===============
phoneNumber1.nationalNumber :<PHONE_NUMBER>34
phoneNumber2.nationalNumber :<PHONE_NUMBER>34

Hi!
I just used our demo to check your example and it is working fine for me. How are you using the library? Are you getting the latest jar from Maven Central?

Hi!
I used gradle for getting jar. in gradle we mention specific version number
for getting jar.
i got different output while getting nationalNumber.
in earlier versions(6.0 or 5.1) country code was striped but in current
version (7.1.0) country code is not striped.
Thanks,
On Thu, Oct 22, 2015 at 5:35 PM, Mihaela Rosca<EMAIL_ADDRESS>wrote:

Hi!
I just used our demo http://libphonenumber.appspot.com/ to check your
example and it is working fine for me. How are you using the library? Are
you getting the latest jar from Maven Central?
—
Reply to this email directly or view it on GitHub
https://github.com/googlei18n/libphonenumber/issues/861#issuecomment-150201267
.

--
Santosh Yevle
ReachLocal Services Pvt. Ltd.
mobile - +91<PHONE_NUMBER> | email -<EMAIL_ADDRESS><EMAIL_ADDRESS>| skype - santosh_yevle
5th Floor, 'B' Wing | Express Zone Towers |  Western Express Highway |
Goregaon (E) | Mumbai – 400097 | India
[image: logo_grey-orange1] https://www.reachlocal.com/us/en

Hi,
I go thorough demo http://libphonenumber.appspot.com/ . it give below
output.
E164 format+49492411231234
in earlier versions(6.0 or 5.1)  output as below.
E164 format+492411231234
On Thu, Oct 22, 2015 at 5:49 PM, Santosh Yevle<EMAIL_ADDRESS>
wrote:

Hi!
I used gradle for getting jar. in gradle we mention specific version
number for getting jar.
i got different output while getting nationalNumber.
in earlier versions(6.0 or 5.1) country code was striped but in current
version (7.1.0) country code is not striped.
Thanks,
On Thu, Oct 22, 2015 at 5:35 PM, Mihaela Rosca<EMAIL_ADDRESS>wrote:

Hi!
I just used our demo http://libphonenumber.appspot.com/ to check your
example and it is working fine for me. How are you using the library? Are
you getting the latest jar from Maven Central?
—
Reply to this email directly or view it on GitHub
https://github.com/googlei18n/libphonenumber/issues/861#issuecomment-150201267
.

--
Santosh Yevle
ReachLocal Services Pvt. Ltd.
mobile - +91<PHONE_NUMBER> | email -<EMAIL_ADDRESS><EMAIL_ADDRESS>| skype - santosh_yevle
5th Floor, 'B' Wing | Express Zone Towers |  Western Express Highway |
Goregaon (E) | Mumbai – 400097 | India
[image: logo_grey-orange1] https://www.reachlocal.com/us/en

--
Santosh Yevle
ReachLocal Services Pvt. Ltd.
mobile - +91<PHONE_NUMBER> | email -<EMAIL_ADDRESS><EMAIL_ADDRESS>| skype - santosh_yevle
5th Floor, 'B' Wing | Express Zone Towers |  Western Express Highway |
Goregaon (E) | Mumbai – 400097 | India
[image: logo_grey-orange1] https://www.reachlocal.com/us/en

Yep, just saw that (I tried a different number first to see if the entire country had an issue and it worked fine).
What happens here is that 49 can actually be the start of a number in Germany.<PHONE_NUMBER>34 can be a phone number that people use to dial inside Germany. As you can see in the Demo, the the 4924 code corresponds to 'Moormerland-Oldersum'. This is why the library does not treat '49' as the country calling code.  You can see the prefix mapping in the geocoding file for Germany.
If you want to ensure that 49 gets treated as a country code you just have to add + to the phone number.
Result from the demo for  +492411231234
Phone Number entered: +492411231234
defaultCountry entered: DE
Language entered: en
Parsing Result
country_code	49
national_number<PHONE_NUMBER>
extension
country_code_source	FROM_NUMBER_WITH_PLUS_SIGN
italian_leading_zero	false
raw_input	+492411231234


Brother, this is your package problem, you get this error - "VNZXRQ:Error downloading chunk 78643200-83856361: Response payload is not completed: <ContentLengthError: 400, message='Not enough data to satisfy content length header.'>" It is working fine in my area

Brother, this is your package problem, im getting this error - "VNZXRQ:Error downloading chunk 78643200-83856361: Response payload is not completed: <ContentLengthError: 400, message='Not enough data to satisfy content length header.'>"
I checked 4, 5 direct links
It is working fine in aria2p,
even download link speed is fast

try with single threaded mode
and please provide the links you are facing problem with, cuz its not a general issue with every link. it is specific to the site where you are trying to download the file from


jet being identified without hint??

I'm not sure what's going on here, but this seems like a bug of some kind to me.  Is vere is detecting jet code without a hint?
I'm passing a simple list and gate to another gate.  The latter is basically a dry version of +skim:
> %.  [`(list @)`[2 3 4 5 ~] |=(a=@ (gth a 3))]
  |=  {a/(list @) b/$-(@ ?)}
  |-
  ^+  a
  ?~  a  ~
~bitnus_patmus:dojo< ?:((b i.a) [i.a $(a t.a)] $(a t.a))fine: parent not found (639a906)
improper core 6bf72803
improper label: [%skim %two %one 'k143' 0]
  ?:((b i.a) [i.a $(a t.a)] $(a t.a))
\/ford: build failed ~[/g/~bitnus-holleb-rocmeg-fotfer--migsum-nidsym-hilput-pa\/
  tmus/use/dojo/~bitnus-holleb-rocmeg-fotfer--migsum-nidsym-hilput-patmus/inn/h
  and /g/~bitnus-holleb-rocmeg-fotfer--migsum-nidsym-hilput-patmus/use/hood/~bi
  tnus-holleb-rocmeg-fotfer--migsum-nidsym-hilput-patmus/out/dojo/drum/phat/~bi
  tnus-holleb-rocmeg-fotfer--migsum-nidsym-hilput-patmus/dojo /d //term/1]
\/                                                                             \/

But when I take the |- out, it runs fine:
> %.  [`(list @)`[2 3 4 5 ~] |=(a=@ (gth a 3))]
  |=  {a/(list @) b/$-(@ ?)}
  ^+  a
  ?~  a  ~
  ?:((b i.a) [i.a $(a t.a)] $(a t.a))
~[4 5]

It’s possible.  Paul has a new, much more correct jet detector...
Sent from my iPhone

On Aug 7, 2018, at 4:01 PM, Joshua Reagan<EMAIL_ADDRESS>wrote:
I'm not sure what's going on here, but this seems like a bug of some kind to me. Is vere is detecting jet code without a hint?
I'm passing a simple list and gate to another gate. The latter is basically a dry version of +skim:

%.  [(list @)[2 3 4 5 ~] |=(a=@ (gth a 3))]
|=  {a/(list @) b/$-(@ ?)}
|-
^+  a
?~  a  ~
~bitnus_patmus:dojo< ?:((b i.a) [i.a $(a t.a)] $(a t.a))fine: parent not found (639a906)
improper core 6bf72803
improper label: [%skim %two %one 'k143' 0]
?:((b i.a) [i.a $(a t.a)] $(a t.a))
/ford: build failed ~[/g/~bitnus-holleb-rocmeg-fotfer--migsum-nidsym-hilput-pa/
tmus/use/dojo/~bitnus-holleb-rocmeg-fotfer--migsum-nidsym-hilput-patmus/inn/h
and /g/~bitnus-holleb-rocmeg-fotfer--migsum-nidsym-hilput-patmus/use/hood/~bi
tnus-holleb-rocmeg-fotfer--migsum-nidsym-hilput-patmus/out/dojo/drum/phat/~bi
tnus-holleb-rocmeg-fotfer--migsum-nidsym-hilput-patmus/dojo /d //term/1]
/                                                                             /
But when I take the |- out, it runs fine:

%.  [(list @)[2 3 4 5 ~] |=(a=@ (gth a 3))]
|=  {a/(list @) b/$-(@ ?)}
^+  a
?~  a  ~
?:((b i.a) [i.a $(a t.a)] $(a t.a))
~[4 5]
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Jet registration is by hint -- jet detection is by battery. I think the current implementation fails to validate the parent core, which can lead to collisions.

The new jet dashboard ("hashboard") is on release-candidate. I'm not able to reproduce this with an up-to-date vere. @joshuareagan, can you confirm?

LGTM!


Add a "Delete all of my solutions" button to /settings

One of the most common support questions we get is: "I stopped doing freeCodeCamp a few months ago, and now I'm back. How can I erase all my solutions and start over from the beginning?"
Here is our advice to campers when they encounter this situation.
We would like to add a "Delete all of my solutions" button to the "danger zone" section of the /settings page.
This will really delete all of your solutions, including your brownie points. It will also clear all the solutions that are saved in your browser's local storage.
We won't be able to recover any of this for later for you, even if you change your mind.
Nevermind, I don't want to delete all of my solutions
I am 100% sure I want to delete all of my solutions

For reference, this is what our "delete my account" modal looks like:

As with anything that deletes data, we want to be super careful with this. If you can add tests (for example, creating a user object, then deleting part of it and verifying that the rest of the object is still intact) that would be preferable.

I would like to work on this issue, hoping to add it asap!

@QuincyLarson Would love to give a try on this one. This would be my first contribution

@Aj1402 Awesome! Have you been able to get the freeCodeCamp codebase running on your local computer? Let me know if you have any questions.

@shovanch wow - you commented right at the exact moment I did. Yes - if you want to take a look at it too, you can.

Cool. Working on it.

@QuincyLarson Is it only needed to add the button with modal? Does the button have to perform the actual deleting action from database?

This would be my first open source project contribution . Can i work on this issue.

@QuincyLarson Just a question, Is it only needed to create the button or the button must also perform the delete action from database?

@shovanch : of course, the button needs to perform delete operation on the user's model in the db.
It should happen in following steps

user clicks button to clear their progress
confirmation modal is shown
in confirmation, the API call is to be made to backend, that will reset property called "challengesMap" on user model. (Although I'm not sure if the property name is correct)

@shovanch Yes - what @adityaparab said.
It should completely clear completedChallenges and all of the challenge-related objects in progressTimestamps so that the user object is as though it was just created, though all the non-challenge related objects in progressTimestamps should still be intact. As should any other attributes, like their username and bio.

@QuincyLarson @adityaparab Got it. Hoping to give status update ASAP.

@QuincyLarson @adityaparab Understood. Hoping to give status update ASAP

@QuincyLarson @adityaparab Thanks for the explanation. Hoping to give status update ASAP

@shovanch Sure thing. Please let me know if I can be of further help. Thanks for helping implement this!

@QuincyLarson I have been working on this. But unable to make any progress. Quite new to Mongo and Node. Probably need to learn them more. Would love to contribute on future issues. Thanks for the opportunity.
If anyone wants to work on this one, feel free to do so.

 Is this item for adding similar functionality to the production site without waiting for the beta to be released?

I'd love to work on implementing this button as @shovanch has left.

Here's my point on deleting selected areas on user's query :

Deleting only beginner projects/challenges
Deleting only intermediate projects/challenges
Deleting only advanced projects/challenges
Deleting algorithms based on beginner/intermedaite/advanced
Deleting whole backend development progress and certification
Deleting whole frontend development progress and certification
Deleting whole data-visualization progress and certification

Apology if this analysis I have issued is inappropriate or previously closed.

@QuincyLarson does this need to target backup/master or staging ? Thanks.

Is this issue still open? I see that the button does exist, a modal does appear, and the server seems to be performing an operation on modal confirmation. @QuincyLarson

@shubhshrma @meetzaveri @shovanch as @ltegman pointed out, this functionality already exists in beta. I wasn't aware of this fact when I opened this issue. We are getting closer to releasing beta, so I think this functionality can wait until then. So I'm closing this issue.
Thanks anyway everyone for your help!


error message from a task error event is not logged in the workflow errors output

if there is a task error event, the error message is not logged in the conductor's errors list for the workflow.

Fixed with https://github.com/StackStorm/orquesta/pull/90


Removed Memory._id

We want to get to baseline performance first before adding pooling checks/diagnostics. This change:

makes Memory smaller and so passing it by value and construction cheaper
makes get_Span, TryGetPointer, TryGetArray cheaper as they won’t have to pass the ID and do ID checks
makes diagnosing use after return bugs harder

Kestrel-Pipelines performance impact
Before (with ID)
                   Method |       Mean |    StdDev |     Median | Scaled | Scaled-StdDev |        RPS | Allocated |
------------------------- |----------- |---------- |----------- |------- |-------------- |----------- |---------- |
           ParsePlaintext |  2.0345 us | 0.0546 us |  2.0456 us |   1.00 |          0.00 | 491,511.89 |     105 B |
  ParsePipelinedPlaintext |  1.8487 us | 0.0524 us |  1.8607 us |   0.91 |          0.03 | 540,916.50 |     105 B |
          ParseLiveAspNet |  9.5836 us | 0.2583 us |  9.5493 us |   4.71 |          0.18 | 104,345.41 |   1.11 kB |
 ParsePipelinedLiveAspNet | 10.7971 us | 0.3896 us | 10.7426 us |   5.31 |          0.23 |  92,617.14 |   1.11 kB |
             ParseUnicode | 14.8633 us | 0.3654 us | 15.0547 us |   7.31 |          0.26 |  67,279.60 |   1.94 kB |
    ParseUnicodePipelined | 16.6655 us | 0.3759 us | 16.6712 us |   8.20 |          0.28 |  60,004.12 |   1.94 kB |

After (no ID)
                   Method |       Mean |    StdDev |     Median | Scaled | Scaled-StdDev |        RPS | Allocated |
------------------------- |----------- |---------- |----------- |------- |-------------- |----------- |---------- |
           ParsePlaintext |  1.9474 us | 0.0695 us |  1.9281 us |   1.00 |          0.00 | 513,500.72 |     105 B |
  ParsePipelinedPlaintext |  1.6893 us | 0.0513 us |  1.6757 us |   0.87 |          0.04 | 591,974.34 |     105 B |
          ParseLiveAspNet |  9.1254 us | 0.2620 us |  9.2597 us |   4.69 |          0.21 | 109,583.94 |    1.1 kB |
 ParsePipelinedLiveAspNet | 10.1330 us | 0.1856 us | 10.2064 us |   5.21 |          0.21 |  98,687.41 |    1.1 kB |
             ParseUnicode | 14.3673 us | 0.5455 us | 14.4018 us |   7.39 |          0.38 |  69,602.74 |   1.94 kB |
    ParseUnicodePipelined | 16.1511 us | 0.3173 us | 16.1940 us |   8.30 |          0.33 |  61,915.45 |   1.94 kB |

cc: @shiftylogic, @ahsonkhan, @joshfree, @pakrym

Remove the VerifyId method?
https://github.com/dotnet/corefxlab/blob/master/src/System.Slices/System/Buffers/OwnedMemory.cs#L213

You need to remove a bunch of tests for use after free.

Would it make sense instead of removing _id completely to put it under #if DEBUG for now?

Nah, nuke it.

@joshfree, I was trying to, but it's all over signatures. The source would get very hard to read. I can add it back later in a couple of hours.

@mjp4, I was trying to add you as a reviewer, but it does not seem to work.

@mjp4, I was trying to add you as a reviewer, but it does not seem to work.
You mean @mjp41?


500 error on profile

https://cloud.pondersource.org/index.php/apps/solid/@michielbdejong/ gives a 500

We might want to start looking towards using `"phpunit/phpunit": "^8|^9", as we are currently also doing for  flysystem-rdf and flysystem-nextcloud in order to support PHP7 and PHP8

I'm still having this error. How to fix this? Ty


segmentation_labels is empty (waymo-open-dataset-tf-2-6-0 and waymo_open_dataset_v_1_3_0)

The configs are as below
pip install waymo-open-dataset-tf-2-6-0==1.4.4
waymo_open_dataset_v_1_3_0
testing_0000.tar (segment-2601205676330128831_4880_000_4900_000_with_camera_labels.tfrecord)

When I run the master branch of waymo-open-dataset/tutorial/tutorial_3d_semseg.ipynb,  segmentation_labels is empty.
(range_images, camera_projections, segmentation_labels, range_image_top_pose) = frame_utils.parse_range_image_and_camera_projection(frame)`

Should we must compile the codes from source?

solved. The test data may not contain segmentation_labels. Training data works.

Hi!
I have not been able to fetch and install the latest version (1.4.4) of waymo-open-dataset as a pre-built pip-package, but I see that you are able to do by this command: pip install waymo-open-dataset-tf-2-6-0==1.4.4. If that's true, could you tell me the steps to take in terms of setting up environment for python (e.g. pip, Anaconda/miniconda)?


ARCCodeMotion: fix two problems in release hoisting:

PostOrderAnalysis is not invalidated after splitting critical edges. This let the data flow solver omit new inserted blocks.

Handle infinite loops in the CFG correctly. So that we don’t insert random release instructions into such CFG pathes.

https://bugs.swift.org/browse/SR-5187
rdar://problem/32713742

@swift-ci Please test

*) Explanation: The compiler can crash if there are infinite loops in the swift source code.
*) Scope: Although this is not a common case, it can happen. For example if in an release build the assertFailure is replace by a no-op.
*) Origin: https://bugs.swift.org/browse/SR-5187, rdar://problem/32713742
*) Risk: Low. It only affects control flow graphs with infinite loops

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - 821bd3a00ec699cb7e68a6eb3f3e32153372dd2b
Test requested by - @eeckstein

@swift-ci Please test macos

LGTM!


Automatic error report

<!---   *** BEFORE SUBMITTING: PASTE CLIPBOARD HERE TO COMPLETE YOUR REPORT ***   ---!>

Hey @MoePien, thanks for reporting. It seems you're using a very old version of Spyder.
Please update by closing Spyder, opening the Anaconda Prompt and running there the commands mentioned in our documentation.
If that doesn't work, I'm afraid you'll have to remove and reinstall Anaconda.


fix: use mysql-k8s 8.0/edge in the integration tests and bundles

closes #224

@DnPlas yes let me send another pr to the dev branch to fix the documentation checks, then we can merge to main on green


relay: compatibility with the new strawberry.relay module

It seems that the _id_attr field is not removed from the field set
strawberry.exceptions.unresolved_field_type.UnresolvedFieldTypeError: Could not resolve the type of '_id_attr'. Check that the class is accessible from the global module scope.
  File "/.venv/lib/python3.11/site-packages/strawberry/schema/schema.py", line 158, in __init__
    raise error.__cause__ from None
  File ".venv/lib/python3.11/site-packages/graphql/type/definition.py", line 808, in fields
    fields = resolve_thunk(self._fields)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".venv/lib/python3.11/site-packages/graphql/type/definition.py", line 300, in resolve_thunk
    return thunk() if callable(thunk) else thunk
           ^^^^^^^
  File ".venv/lib/python3.11/site-packages/strawberry/schema/schema_converter.py", line 438, in <lambda>
    fields=lambda: self.get_graphql_fields(object_type),
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".venv/lib/python3.11/site-packages/strawberry/schema/schema_converter.py", line 327, in get_graphql_fields
    return self._get_thunk_mapping(
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File ".venv/lib/python3.11/site-packages/strawberry/schema/schema_converter.py", line 317, in _get_thunk_mapping
    raise UnresolvedFieldTypeError(type_definition, field)

this is a problem strawberry-graphql-django. They extract all annotated fields instead of using the strawberry logic

Hey @devkral ,
I'm currently porting strawberry-django-plus to the new relay structure. After that I'll fix strawberry-graphql-django as well :)


integration with pusher.com ?

hi,
I'm coming in from HN (https://news.ycombinator.com/item?id=15590934) and this is very cool for me. We were actually looking for intercom.io with a BYO-API (bring your own API). A lot of people are like us who have an existing infrastructure built on top of Pusher or Firebase and we want to pay for a Intercom that will integrate with it (rather than having to replace the websocket layer).
This is kind of like Gitlab-for-Intercom for me.
I see you are building operator integrations with IRC , slack , etc. I would urge you to consider one of the commercial services (like Pusher, Pubnub, Firebase, Layer, etc). You would be surprised at how many people need this.
Are you planning to do this commercially ? because we are happy paying for a subscription ?

Hey @sandys thanks for creating an issue!
Since the Show HN post has gotten so much attention (way more than expected, thank you HN!!) we kept getting some recurring feedback, and integration with Pusher/alike was something we kept hearing over and over again. I think it would be silly of us to overlook that, but we're still coming down from our HN high. We want to make features with the most impact. So we're going to review what that looks like and it very well be Pusher/etc is the direction we take. I'll update the issue here once we know definitively, but keep your eyes peeled at our repositories as I'm sure you will see something pop up of interest ;)

Hi,
Thanks for replying. I get the fact that the transport is the cool thing to
do with for goroutines and performance and all. But remember that Pusher,
Firebase, etc have free tiers. Most people building small projects are also
using these layers.
Then you will go into building android/ios SDK. which is a huge challenge
in itself.
But there is massive demand for an opensource (but paid, like Gitlab)
Intercom with all the sophisticated features there. It's my $0.02 that you
use something with all these kinds of problems already solved and build a
killer Intercom.
P. S. You should apply to YC with this in the next batch.


Fix Django 1.10+

With this approach only traceback changes default value from None to False

thanks but could you add some test too?

Sure, but I have to take a look at the tests. I'll add some

Smoke-like test is here


Fix #1581. Add itex mail to mail participants

I'm not a fan of the arbitrary numbering we're using for emails, but I guess that's something that can be fixed in the upcoming group update.
That's irrelevant to this pr though. Looks good.


Terminal Image display has low resolution

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: 1.88.1
OS Version: Mac: Universal Intel silicon

Steps to Reproduce:

imgcat "anyimage.png"

Original image:

In VScode terminal

In Iterm2 terminal

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.88.1. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

does changing the value of terminal.integrated.gpuAcceleration fix it?

does changing the value of terminal.integrated.gpuAcceleration fix it?

No it doesnt

Upstream: https://github.com/xtermjs/xterm.js/issues/5035

@albert-ying Whats your screen DPR on the machine, where this happens?
@Tyriar I think this is related to css pixels vs. screen pixels. The image addon currently uses css pixels for size propagation, thus image will blur if DPR is really high (e.g. a css pixel gets overly stretched on the screen).

It is 2 (4k screen)

I see, so you get only half of the pixel density compared to iterm2. Imho the measurement could be changed to account for DPR in IIP (iterm's image protocol), but I am currently unsure about implications on the sixel format. The issue  is that the pixel size escape sequences work with css pixels across the whole terminal, not only for images, and I am unsure if that can easily be changed to device metrics.
Lets follow that in https://github.com/xtermjs/xterm.js/issues/5035


Add initial Kotlin runtime support

Add initial support for Kotlin. This supports two API formats:

JSON in / JSON out, using the gson package:

fun main(args: JsonObject) : JsonObject {}

Data class in / data class out, e.g.:

data class User(
     val id: String
 )

 fun main(user: User) : User {
     return user
 }

This only supports sync/blocking APIs at the moment - async can be added but there should be a discussion on the use of callbacks vs Futures, etc.

Could you add the hello world example you have in your comment in the README?


Add some images to highligh workflow

I added 3 images, : the one with the workflow of the experiments tested (Kafka for streams processing), another one illustrating wich technologies has been used (RIVER Machine Learning and Domino Platform) and the results table.

OK

OK DONE


failed to start v2ray service on a transit server

Please answer all the questions with enough information. All issues not following this template will be closed immediately.
If you are not sure if your question is truely a bug in V2Ray, please discuss it here first.

What version of V2Ray are you using (If you deploy different version on server and client, please explicitly point out)?
V2Ray 4.26.0
What's your scenario of using V2Ray? E.g., Watching YouTube videos in Chrome via Socks/VMess proxy.
Transit via a CN-based ip(which has a problem) to a vpn locate outside
Please attach full panic log.

# ./v2ray -test -config config.json
V2Ray 4.26.0 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.14.4 linux/amd64)
A unified platform for anti-censorship.
main: failed to read config files: [config.json] > v2ray.com/core/main/json: failed to execute v2ctl to convert config file. > v2ray.com/core/common/platform/ctlcmd: failed to execute v2ctl:
v2ctl> Read config:  config.json
panic: open config.json: no such file or directory

goroutine 1 [running]:
v2ray.com/core/common.Must(...)
	v2ray.com/core/common/common.go:17
v2ray.com/core/infra/control.(*ConfigCommand).Execute(0xfbd350, 0xc0000301a0, 0x1, 0x1, 0xc00018e528, 0xbda5e1ede89e3e01)
	v2ray.com/core/infra/control/config.go:42 +0x673
main.main()
	v2ray.com/core/infra/control/main/main.go:35 +0x217 > exit status 2

You may get panic log using command journalctl -u v2ray if your system is Linux (systemd).

Please attach your configuration file (Mask IP addresses before submit this issue).

    // Please attach your configuration here.
{
  "log" : {
    "access": "/var/log/v2ray/access.log",
    "error": "/var/log/v2ray/error.log",
    "loglevel": "warning"
  },
  "inbounds": [
    {
      "listen":""
      "port": ,
      "protocol": "vmess",
      "settings": {
        "clients": [
          {
            "id": "",
            "level": 1,
            "alterId": 64
          }
        ]
      }
    }
  ],

  "outbounds": [
    {
      "protocol": "vmess",
      "streamSettings": {
        "wsSettings": {
          "path": "",
          "headers": {
            "host": ""
          }
        },
        "tlsSettings": {
          "allowInsecure": false
        },
        "security": "tls",
        "network": "ws"
      },
      "settings": {
        "vnext": [
          {
            "address": "",
            "port": ,
            "users": [
                {"id": ""}
            ]
          }
        ]
      }
    },
    {
      "protocol": "blackhole",
      "settings": {},
      "tag": "block"
    },

    {
      "protocol": "freedom",
      "tag": "direct",
      "settings": {}
    }
  ],

  "routing": {
   "domainStrategy": "IPOnDemand",
    "strategy": "rules",
    "rules": [
      {
        "type": "field",
        "ip": [
          "geoip:private"
        ],
        "outboundTag": "block"
      },

      {
        "type": "field",
        "domain": [
          "geosite:cn"
        ],
        "outboundTag": "direct"
      },
      {
        "type": "field",
        "ip": [
          "geoip:cn"
        ],
        "outboundTag": "direct"
      }
    ]
  }
}

Please review your issue before submitting.

panic: open config.json: no such file or directory


Rename ScanResult as SkyScan

went with SkyScanResult. closed by https://github.com/icecube/skyreader/pull/4


The "Create with data returned" example not working

The "Create with data returned" example not working, it always return 204 No-Content. Not 201 Created. and not values returned although the record was created successfully.

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

ID: d869f063-f292-aef8-70fe-e165c65a74bd
Version Independent ID: ff0b5a9f-b085-9223-3df5-ad5b5f196498
Content: Create an entity record using the Web API (Common Data Service) - Power Apps
Content Source: powerapps-docs/developer/common-data-service/webapi/create-entity-web-api.md
Service: powerapps
GitHub Login: @JimDaly
Microsoft Alias: jdaly

sorry, I forgot set the Prefer， now it works. close this issue.


Is there a way to iterate from end of bucket using forEach

In our use case, we want to display the last X events from a large collection. This was working pretty well before we removed the Type index, but now it seems fairly slow -- I can't quite figure this out, so there may be something else going on.
We could also do this by time -- get events for the last 2 weeks if we could somehow do a seek to a particular time key.
We recently made this change:

Code is now:
// Sample represents a value in time and should include data that may be
// graphed.
type Sample struct {
	// Type of sample (voltage, current, key, etc)
	Type string `json:"type,omitempty" influx:"type,tag"`

	// ID of the device that provided the sample
	ID string `json:"id,omitempty" influx:"id,tag"`

	// Average OR
	// Instantaneous analog or digital value of the sample.
	// 0 and 1 are used to represent digital values
	Value float64 `json:"value,omitempty" influx:"value"`

	// statistical values that may be calculated
	Min float64 `json:"min,omitempty" influx:"min"`
	Max float64 `json:"max,omitempty" influx:"max"`

	// Time the sample was taken
	Time time.Time `json:"time,omitempty" boltholdKey:"Time" gob:"-" influx:"time"`

	// Duration over which the sample was taken
	Duration time.Duration `json:"duration,omitempty" influx:"duration"`

	// Tags are additional attributes used to describe the sample
	// You might add things like friendly name, etc.
	Tags map[string]string `json:"tags,omitempty" influx:"-"`

	// Attributes are additional numerical values
	Attributes map[string]float64 `json:"attributes,omitempty" influx:"-"`
}

// ReadFaultHist reads the IS system fault history from the database
// Only iterates through database for x most recent faults. Set x to
// a negative integer to read all faults
func (db *IsDb) ReadFaultHist(x int) ([]data.Sample, error) {
	var faults []data.Sample
	query := bolthold.Where("Type").In(
		isdata.SampleTypeFaultFlowOff,
		isdata.SampleTypeFaultPresLow,
		isdata.SampleTypeFaultShutdown,
		isdata.SampleTypeFaultPresHigh,
		isdata.SampleTypeFaultNtFlowOff,
		isdata.SampleTypeFaultNtPresLow,
		isdata.SampleTypeFaultNtPresHigh).SortBy("Time").Reverse()

	errIterOverLimit := errors.New("Database iteration is greater than limit")

	count := 0
	err := db.store.ForEach(query, func(result *data.Sample) error {
		count++

		if x >= 0 && count > x {
			return errIterOverLimit
		}

		faults = append(faults, *result)

		return nil
	})

	if err != nil && err != errIterOverLimit {
		if err == bolthold.ErrNotFound {
			// data is not stored, so simply return nil array and nil error
			return nil, nil
		}

		// there was an error reading so return nil array and error
		return nil, err
	}

	return faults, nil
}

Also, is it possible to do a Reverse() without a Where()?

I think you've already answered this question once -- range query should do a Seek:
https://github.com/timshannon/bolthold/issues/62
Trying that now ...

Full fledged databases with query planners are smart enough to iterate in the reverse order if then know it'll be quicker based on the statistics in a given index.  There is no query planner in Bolthold, it very simple does exactly what you ask and no more.
You best best is always to limit the number of rows you are processing at any time, so I would suggest doing a where on time (the Key value), and then reversing it to get the last records.
// all Records for the past two weeks
bh.Where(bh.Key).Gt(time.Now().AddDate(0, 0, -14).Reverse())
// or
bh.Where("Time").Gt(time.Now().AddDate(0, 0, -14).Reverse())

the above is running pretty slow for a large data set -- so not sure if Seek should be that slow, or if there is something else going on. Can you point me to your code where the Find() does a bolt Seek() -- or maybe I'm misunderstanding how this works.

Yeah, looks like I removed that code:
https://github.com/timshannon/bolthold/pull/70/commits/322df21f30086cf5efbbaff9d05f6dc0981e1ff4
I'll need to rethink how I was handling that before, and see if I can implement it in a safer way.

OK, that makes sense then. I may try to drop down into bolt for this task for now and see if I can get what I need that way.

thanks @timshannon -- my current time series code is raw boltdb, so can't quickly test -- however this is interesting, and I do need to do some time series work in the near future so will run some tests as soon as I can.

Of course.  No rush, but be sure to let me know if you run into issues.

I'm going to close this issue as there's been no response for over a year.  I assume it's been resolved.  Feel free to submit a new issues if you see issues.


Opacity

Hello.
In your repo ('mmsegmentation'), there is an argument 'OPACITY'.
But, in this repo ('mmdetection'), I couldn't find that argument.
I wonder that there are opacity or similar features like that.
Thanks in advance.

I solved it.


Revert "qa_crowbarsetup: unify crowbar upgrade api requests"

was merged too quick - gating not passing yet - so reverting to not break more

+1


Added config option to adjust the drag speed by a factor

We had someone asking if they could more fine-tune the speed at which the panorama drags when using touch screens in order to slow it down. This config option provides a way to scale it so you can increase/decrease the speed.
The config option is called touchmovePanSpeedCoeffFactor, and it defaults to 1 so as to not change existing functionality. Setting it to something lower, like .5, causes the panorama to drag more slowly, but you can also raise it if you want to translate smaller gestures into greater distance covered in panning.
Currently, I have it so this option only applies to touch and not mouse movement.

Thanks! I renamed the parameter to touchPanSpeedCoeffFactor and documented it before merging.

@mpetroff Sure, sounds good and thanks for making such a great piece of software!


Wrong target on leafletDirectiveMarker.click

I proceed like this:

Load an array of objects into vm.markers (779 elements)
Later, I filter this array reducing it to 5 elements and save it to vm.markers in the controller. The map updates automatically.
When I select a marker and I receive the leafletDirectiveMarker.click event, the data.leafletEvent.target.options is a completely different object than the selected. In addition this object is none of the 5 markers filtered.

Has anyone an idea of what is going on? Maybe is a bug of mine? A leaflet bug?

I have the same problem too, i think it is a bug in directive. If you are using label you can check content property in leafletObject.label, and you will see that it is correct but all the rest is incorrect. I am tried to find workaround this problem but with no success.

I'm seeing the exact same behaviour. Did anyone find a solution yet?

I saw the same behavior.  It seems to be referenced in https://github.com/angular-ui/ui-leaflet/issues/199
The workaround I used was to first use an object instead of an array, and to dynamically generate property names (m1, m2, etc) based on a count variable (instead of pushing to an array).  The problems seems to be that if you have a marker m1, and then update it but still leave the property as m1, it 'sees' the old marker.  If you instead update it to a unique key of m2, you'll be able to click your updated markers.

It's also in issue #512. You basically need to keep the order in the array when filtering/sorting, or else the target might be wrong, with hidden markers or things like that

When the markers array is updated, the events need to be re-bound. I have fixed by adding the following 2 lines at the beginning of the _updateMarker function. Note you also need to inject "leafletMarkerEvents" into the leafletMarkersHelpers service for this solution.
var pathToMarker = Helpers.getObjectDotPath([name]);             leafletMarkerEvents.bindEvents(leafletScope.mapId, marker, pathToMarker, markerData, leafletScope, markerData.layer);

Thank you very much for your work chagen19 !!
I've done all three changes you recommended, and was happy the problem to be solved !
Indeed, it is !!
Unfortunately a new problem appeared at the same time :
Before the change, when I clicked a marker, its popup opened to show its message properly.
But after the change, a marker (it seems to be the last one of the markers array) opens even without a click.
And when I click on a marker, nothing happens.
Indeed, when I pane the map, there seems to always be an opened marker popup, not always the same, and often not at the right position...
I've tried the changes in ui-leaflet.js 2.0.0 2016-10-04
Anyway, thank you for your valuable clue, chagen19.
I think I'll simply disable popups as a quick workaround :)
The most important to me is the clicks working well.

Hi every one, seem have a bug in leafletDirectiveMarker.click event. To resolve it, i do following:
`$scope.$on('leafletDirectiveMarker.id.click', function(event, args) {
//            Don't use this to find value of id
//            var id = args.leafletEvent.target.options.Id;
//            Instead i use 'modelName':
            var selectedIndex = args.modelName;
            var id = $scope.marker[selectedIndex].id;
            console.log("Test id = " + id);

//            And this id is alway equal value of id show on popup.
//            And this is my marker:
//            $scope.marker.push({
//                id: id,
//                lat: dataMap[i].Lat,
//                lng: dataMap[i].Long,
//                icon: $scope.leafIcon,
//                iconAngle: dataMap[i].Trak - 90,
//                focus: false,
//                message: dataMap[i].Id,
//                popupOptions: {
//                    autoPan: false
//                }
//            });
//            And when have correct id, simply to find correct data store in service
//            Hope this help some one when use click event in angular leaflet!
})`

You can just get correct coordinates on click (args.leafletEvent.latlng) and compare this with your correct $scope.markers. It's my code on CoffeeScript
$scope.$on 'leafletDirectiveMarker.click', (event, args) ->
    latlng = args.leafletEvent.latlng
    correct_id = args.model.id

    if (latlng.lat != args.model.lat) && (latlng.lng != args.model.lng)
      $scope.markers.forEach (marker) ->
        if marker.lat == latlng.lat && marker.lng == latlng.lng
          correct_id = marker.id

    console.log correct_id

Work's for me.
$scope.$on('leafletDirectiveMarker.mouseover', function(event, args){
var popup = L.popup({ offset: L.point(0, -28)})
.setLatLng([args.leafletObject._latlng.lat, args.leafletObject._latlng.lng])
.setContent(args.leafletObject._popup._content);
leafletData.getMap().then(function(map) {
map.closePopup();
});
leafletData.getMap().then(function(map) {
popup.openOn(map);
});
});


MSVS 2017 GitIgnore QuickFix

Been seeing a lot more of these artifacts. Is Microsoft doing stuff or does this just happen to me on both my laptop and desktop? It's bad enough I have to ignore committing the csproj since my game's in a different location 😭

You don't have to change csproj files to change location of libs(folder Managed from game) 😉
You just have to add game folder to "Reference paths" under Properties of every csproj 😄 It will create file BlahBlahBlah.csproj.user which doesn't have to be pushed to git 😃

@krzychu124 I have done that for the references, however I had to change the csproj due to the build events

Thanks for pushing this :)

You don't have to change this file 😃
Just in case you don't know what it does 😉
Those lines are for quick workshop item update (look at that numbers at the end)
255710 - steamId of Cities Skylines
583429740 - that's old steamId of LinuxFan TrafficManager which you can compare this number with old traffic manager link address
So you are updating downloaded old Traffic Manager workshop item changing those lines 😄 (I am sure you are not subscribed to this mod anyway)
If you build this mod it appears in Content Manager because postbuild script will copy those compiled sources to LOCALAPPDATA, not to steam workshop folder😉

Right, and that makes sense, but if I attempt to build it without modifying those in some way, such as deleting them or changing their directory, the build script fails to execute and you don't get that satisfaction of seeing "1 succeeded." It also provides a problem of not knowing when it actually errors or not.

Ok, so I will remove those lines and everyone will be happy 😉

lol, okay


Purchase Task never completed if item is already purchased

When attempting to purchase an item that has already been purchased, the tcsPurchase task will be created but is never complete so no future purchases can be made until the app is restarted.
In the Plugin.InAppBilling.Android project, class Plugin.InAppBillingImplementation, method PurchaseAsync (line 321), the code checks if the purchase has already been made and if so it returns the purchase.  However, the tcsPurchase is still in a state of WaitingforActivation.
Since the HandleActivityResult will never be called due to the BuyIntent never being sent to Android, all future purchase attempts will return null due to the tcsPurchase.Task.IsCompleted check at the beginning of PurchaseAsync method (line 290).
I would suggest modifying the task check verify the TaskStatus is not WaitingForActivation.  If it is still waiting for activation, I think it is safe to assume the prior purchase call never created the BuyIntent.
Another option would be to set the tcsPurchase to null whenever the purchase is returned without invoking the BuyIntent.
Version Number of Plugin:   1.2.4 (also used the latest in GitHub)
Device Tested On:  Nexus 7
Simulator Tested On: None
Version of VS: Android 4.4.4
Version of Xamarin: <IP_ADDRESS>7
Steps to reproduce the Behavior
Attempt to purchase an item that has already been purchased.  Code will correctly return the purchase item without attempting to purchase it again.  Attempt to buy another item and the call to PurchaseAsync will always return NULL until the app is restarted.
Expected Behavior
Future calls to PurchaseAsync should not return null.
Actual Behavior
Null is always returned from PurchaseAsync after attempting to purchase an item that is already purchased.

Hi @jason2211
You should consume previous product, before buying new one.
https://developer.android.com/google/play/billing/api.html

Hi @AndreiMisiukevich
Thanks for the reply.  Shouldn't the library respond better?  It appears to be coded for this exact scenario since it is checking if the item is already purchased and correctly returns it.  I would just expect the library not to go into a state where no future purchase calls will work after this scenario.

I think, you are right.
@jamesmontemagno what do you think?

We should handle it correct. Would need to see where in the code this is happening or send a PR I can review.

@jamesmontemagno https://github.com/jamesmontemagno/InAppBillingPlugin/blob/master/src/Plugin.InAppBilling.Android/InAppBillingImplementation.cs#L322-L326
here is the reason.
I think, we should to throw error instead of trying to retrieve bought product.

Ahhh I see, so we are basically just returning the existing purchase instead of throwing...
I see why I did this. sounds good. can you PR me?

no problem
give me some time

I still have the issue, it says that the item was already purchased and will be restored for free but then PurchaseAsync never ends. I have the latest version of the plugin.


Error if the button have no fill

download_image(image_url, image_path)
  File "C:\Users\pross\scoop\apps\miniconda3\current\lib\site-packages\tkdesigner\utils.py", line 20, in download_image
    response = requests.get(url)
  File "C:\Users\pross\scoop\apps\miniconda3\current\lib\site-packages\requests\api.py", line 76, in get
    return request('get', url, params=params, **kwargs)
  File "C:\Users\pross\scoop\apps\miniconda3\current\lib\site-packages\requests\api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "C:\Users\pross\scoop\apps\miniconda3\current\lib\site-packages\requests\sessions.py", line 528, in request
    prep = self.prepare_request(req)
  File "C:\Users\pross\scoop\apps\miniconda3\current\lib\site-packages\requests\sessions.py", line 456, in prepare_request
    p.prepare(
  File "C:\Users\pross\scoop\apps\miniconda3\current\lib\site-packages\requests\models.py", line 316, in prepare
    self.prepare_url(url, params)
  File "C:\Users\pross\scoop\apps\miniconda3\current\lib\site-packages\requests\models.py", line 390, in prepare_url
    raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL 'None': No schema supplied. Perhaps you meant http://None?

I got this output when I was trying to add a blank button.

But it works when I set the button like this

This seems a really ez bug to fix and if you need help I would like to help.
And another thing is that:
If the button is too large, it seems to create white margins on the top and bottom. (This is why I try to use a blank button)

Hmm, I see.
We need to fix one problem here and add one feature.
The problem is the white margins and the feature is - Ability to add blank buttons.
Currently when the program finds a button then it tries to get its exported image. But when the button is blank then the API does not return any image :
{
  "err": null,
  "images": {
    "2:2": null
  }
}

This can be fixed by :-
if (err != null && images.id = null ){
    then just use coordinates instead of the image
}

But this will arise another problem.
If we are able to get transparent buttons working then it would solve all the problems and also add the feature as we discussed above. So the end goal of this issue might be to implement transparent buttons.
Currently this effect is achieved by using a backdrop for the button which matches the background behind the button.  But in reality it just looks like it is.
I would be great if you can help us solve this issue. I would also look into it.

I would also request you to test https://github.com/ParthJadhav/Tkinter-Designer/pull/132 as it's related to similar problem.

Hmm, I see.
We need to fix one problem here and add one feature.
The problem is the white margins and the feature is - Ability to add blank buttons.
Currently when the program finds a button then it tries to get its exported image. But when the button is blank then the API does not return any image :
{
  "err": null,
  "images": {
    "2:2": null
  }
}

This can be fixed by :-
if (err != null && images.id = null ){
    then just use coordinates instead of the image
}

But this will arise another problem.
If we are able to get transparent buttons working then it would solve all the problems and also add the feature as we discussed above. So the end goal of this issue might be to implement transparent buttons.
Currently this effect is achieved by using a backdrop for the button which matches the background behind the button.  But in reality it just looks like it is.
I would be great if you can help us solve this issue. I would also look into it.

Yeah, transparent buttons is the key, i

Hmm, I see.
We need to fix one problem here and add one feature.
The problem is the white margins and the feature is - Ability to add blank buttons.
Currently when the program finds a button then it tries to get its exported image. But when the button is blank then the API does not return any image :
{
  "err": null,
  "images": {
    "2:2": null
  }
}

This can be fixed by :-
if (err != null && images.id = null ){
    then just use coordinates instead of the image
}

But this will arise another problem.
If we are able to get transparent buttons working then it would solve all the problems and also add the feature as we discussed above. So the end goal of this issue might be to implement transparent buttons.
Currently this effect is achieved by using a backdrop for the button which matches the background behind the button.  But in reality it just looks like it is.
I would be great if you can help us solve this issue. I would also look into it.

Yep, cross-platform transparent buttons are the key.


Wpedantic

fix warnings in clang -wpedantic over extra semicolons

Thanks for the pull request @larsonmpdx, it has been merged into master.
Varun


[ISSUE #5471][WIP] Fix AutoSwitchRoleIntegrationTest still experience random failures

Make sure set the target branch to develop
What is the purpose of the change
Close #5471
Brief changelog
XX
Verifying this change
XXXX
Follow this checklist to help us incorporate your contribution quickly and easily. Notice, it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.

[x] Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[x] Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Write necessary unit-test(over 80% coverage) to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
[x] Run mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test  to make sure integration-test pass.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

@RongtongJin Is this pull-request still work-in-progress? Its title contains WIP while it remains inactive for some time

Codecov Report

Merging #5475 (1e52421) into develop (9b2375d) will decrease coverage by 0.02%.
The diff coverage is 22.41%.

@@              Coverage Diff              @@
##             develop    #5475      +/-   ##
=============================================
- Coverage      43.18%   43.16%   -0.03%
- Complexity      8066     8073       +7
=============================================
  Files           1025     1025
  Lines          72195    72232      +37
  Branches        9559     9563       +4
=============================================
- Hits           31180    31179       -1
- Misses         37067    37109      +42
+ Partials        3948     3944       -4

Impacted Files
Coverage Δ

...cketmq/broker/offset/ConsumerOrderInfoManager.java
76.15% <0.00%> (-1.10%)
:arrow_down:

...he/rocketmq/test/client/rmq/RMQNormalConsumer.java
0.00% <0.00%> (ø)

.../apache/rocketmq/test/client/rmq/RMQPopClient.java
0.00% <0.00%> (ø)

...pache/rocketmq/test/client/rmq/RMQPopConsumer.java
0.00% <0.00%> (ø)

.../apache/rocketmq/test/factory/ConsumerFactory.java
0.00% <0.00%> (ø)

...rg/apache/rocketmq/test/util/MQAdminTestUtils.java
0.00% <ø> (ø)

...org/apache/rocketmq/tools/command/CommandUtil.java
31.16% <0.00%> (-3.12%)
:arrow_down:

...rocketmq/broker/processor/PopMessageProcessor.java
37.90% <52.63%> (+0.59%)
:arrow_up:

...cketmq/broker/schedule/ScheduleMessageService.java
58.04% <100.00%> (ø)

...etmq/client/latency/LatencyFaultToleranceImpl.java
49.35% <100.00%> (ø)

... and 17 more

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

LGTM @RongtongJin

@RongtongJin Is this pull-request still work-in-progress? Its title contains WIP while it remains inactive for some time

@lizhanhui Yes, I have been busy recently, but I will continue to fix it until it is stable.

Hi, @lizhanhui I have found some reasons, mainly because the previous test did not clean up the resources. It has been repaired, and the same error has not yet occurred. So I suggest merging this PR and continuing to observe.


bug: gocode gets commands but no autocomplete popup in brackets.

Hi first let me thank you for creating such a nice plugin for brackets :)
I usually use sublimetext with https://github.com/DisposaBoy/GoSublime for golang but this brackets plugin seems very interesting.
Unfortunately I can't get it to run properly under osx mavericks using go 1.4.1. I started brackets via terminal (/Applications/Brackets.app/Contents/MacOS/Brackets) and my $GOPATH is ~/go.
gocode is installed via go get -u github.com/nsf/gocode
I started gocode in debug mode (gocode -s -debug) and see that it gets the content from brackets and shows the right suggestions on the command line. Unfortunately there is no code-completion popping up in brackets.
Am I missing something?
Thx and regards
Bijan

PS: The icons and color theme looks extremely nice. What are you using in the screenshot? :+1:

There was a little change in brackets 1.0, that makes the plugin miss external events.
For some estrange reason in my updated brackets it runs perfect.
I've made some little changes and tested in 3 different 'clean' brackets 1.0 installations, so I expect autocomplete should work on 0.0.10 version.
PS: the theme is 'Delkos Dark Theme' and icons are from 'brackets icons'  plugin


Fixes hanging on stream_get_contents()

On certain URLs, a request is sent and received successfully, but
the script hangs when calling stream_get_contents().
Per http://php.net/manual/en/function.proc-open.php#97012
simply opening STDERR in append mode fixes this.
The commend references issue only with Windows, but have encountered
this on Ubuntu 14.04 and Debian 7.5.

I've tried making your change but it causes the tests to fail. Can you give me an example of a URL you are using so I can try and replicate it?
Also can you check that the issue still exists in v3.1.5? It could be to do with a URL encode bug which has been fixed.


What abut the equals operator?

Nice Article but usualle people use the equals operator to compare strings. e.g. strA == strB so maybe a word about this would be nice. Also what about trimming? I often see things like strA.ToLower().Trim() == strB.ToLower().Trim() because this also translates to EF. If those things should not be done it should be mentioned here.

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

ID: dead2df6-1ec5-b55c-89aa-d05a7a75a0eb
Version Independent ID: fe538551-dcfc-c244-3f16-864d3f6c2a6e
Content: Best Practices for Using Strings in .NET
Content Source: docs/standard/base-types/best-practices-strings.md
Product: dotnet
Technology: dotnet-standard
GitHub Login: @Thraka
Microsoft Alias: adegeo

Hello. Thank you for opening this issue.
The equality operator is mentioned in the string.equals section, but using it isn't a best practice as (per the section) it's not using an explicit StringComparison value.
The enhancement to the docs you suggest will be a low priority. If you would like to contribute, you can submit a fix by editing the original article. Click on the Content Source link at the bottom of your original comment. To learn how to edit, see the Editing files in a repository article from GitHub.
Thanks again!


Patch/pub req deets

Publish ip, infohash to redis pubsub

Some dodgy behavior RE: announce time rising from 0800HKT to 1800HKT then dropping sub millisecond

More dodgy behavior over 7 days when announce reaches 5+ seconds, heavily affecting server performance (note high TCP ESTABLISHED in those periods)


color! marco support hsl space

use color! marco to create a hsl color like
let color = color!(hsl(30, 54%, 66%))

assert_eq!(color.hue(), 30.0);
assert_eq!(color.saturation(), 0.54);
assert_eq!(color.lightness(), 0.66);

I need help for this feature.

@Qix-  Excuse me, could you help me implement this feature? 🆘

would you have a problem with this rule?
(hsl($h:expr, $s:tt%, $l:tt%)) => {
    $crate::Color::from_hsl($h, ($s as f64 / 100.0), ($l as f64 / 100.0)).unwrap()
};

using tt isn't ideal but i believe that's the only way to make it work with that exact syntax.
adding this to test_color_macro() passes.
let color = color!(hsl(30.0, 54%, 66%));

assert_eq!(color.hue(), 30.0);
assert_eq!(color.saturation(), 0.54);
assert_eq!(color.lightness(), 0.66);

would you have a problem with this rule?
(hsl($h:expr, $s:tt%, $l:tt%)) => {
    $crate::Color::from_hsl($h, ($s as f64 / 100.0), ($l as f64 / 100.0)).unwrap()
};

using tt isn't ideal but i believe that's the only way to make it work with that exact syntax.
adding this to test_color_macro() passes.
let color = color!(hsl(30.0, 54%, 66%));

assert_eq!(color.hue(), 30.0);
assert_eq!(color.saturation(), 0.54);
assert_eq!(color.lightness(), 0.66);

Thank you for your reply. It only work for f64, but what i want is work for integer.
Such as
let color = color!(hsl(30, 54%, 66%));


test/integration/apiserver/cel: always verify policy enforcement when…

(closing in favor of https://github.com/cici37/kubernetes/pull/13)


Samples for version 0.9.x

Hello,
it seems that many of the code has been rewritten for version 0.9.x since 0.8.x so the samples from here  https://github.com/google/google-api-ruby-client-samples/tree/master/service_account aren't supported. When I saw the embedded into this repo google-api-ruby-client  I saw the similar samples, but many config parameters passed via ENV vars like:
GOOGLE_CLIENT_SECRETS
GOOGLE_CREDENTIAL_STORE
GOOGLE_CLIENT_ID
GOOGLE_CLIENT_SECRET
GOOGLE_API_KEY

with no format description of the vars provided.
So the question is how to use these vars to make user authentication/authorization with a public key for the OAuth2 in 0.9.x?
UPD:
Also the plain run the app:
google-api-samples

raises the exception:
samples/cli/google-api-samples:24:in `<class:App>': uninitialized constant App::Samples (NameError)
from samples/cli/google-api-samples:17:in `<main>'

What is it?

Also looking to solve the authentication issue. Any help would be appreciated since the docs are now obsolete.

Documentation on how to authorize correctly would be helpful. The samples just error with ~/.config/google/client_secrets.json not found.

I got this running a month ago with google-api-client ~> 0.11.1. Though would like official docs in case I missed important details.
Here is what I did for service account authentication. This works well if you don't need to do things on behalf of other user accounts.

goto https://console.developers.google.com/
Under 'Library' in the left sidebar, search for the API you want to use then click on the top ENABLE link
Under 'Credentials' in the left sidebar, click on "Create credentials" then "Service account key"
Download the json file
In your ruby project, specify the filepath to said json file as an env var named GOOGLE_APPLICATION_CREDENTIALS so it is the equivalent of:

ENV['GOOGLE_APPLICATION_CREDENTIALS'] = '/path/to/downloaded_file.json'
How you do this will depend on your own setup.

Haven't tried it but you might not need to specify the filepath if you place the json file in ~/.config/google/client_secrets.json

It looks like there's an official Quickstart that uses OAuth.

https://developers.google.com/drive/v3/web/quickstart/ruby

It looks like a member of our great community answered your questions. Thanks Community! Please add a comment if you have any more questions and we can reopen this issue.


arping: Fix response correlation to make lib thread-safe

The arping library sends an ARP(-ping) request via a raw socket with
proto set to ARP. This means that it can receive via the socket any ARP
packet.
To filter out a response, the library was checking whether a received
packet was ARP response AND whether response dst IP was equal to request
src IP. Obviously, the latter check was not working properly when the
same sender (src IP) was issuing multiple concurrent arpings.
To fix this, extend the filtering by checking whether request dst IP is
the same as response src IP.

Thanks!

Thanks!


website: Increase broken links checking

this will throw an error if docusaurus find any broken links
Signed-off-by: jffarge<EMAIL_ADDRESS>

Needs to fix the /1008/aws-cloudformation/ link. The others have already been merged.

I'll delete this reference for now. Docs 0.1 will move anyway.
More context here: https://github.com/dagger/dagger/pull/2066#issuecomment-1095434073


support for Storybook deployer for git Lab pages

Is there a storybook deployer support for GitLab Pages (not for Git Hub pages)?
I need to understand how to manually integrate storybook serverless deployment onto Gitlab Pages. I read all the documentation and could not find a support doc for GitLab (found it for GitHub and AWS)

Did you succeed to deploy a static-storybook in gitlab pages ?
Currently I try to do it with these .gitlab.ci.yml file:
image: node:12.5.0

cache:
  paths:
    - node_modules/

stages:
  - deploy

pages:
  stage: deploy
  script:
    - yarn install
    - yarn build-storybook
  artifacts:
    paths:
      - public
  only:
    - master

Any news? 😄

I'm not sure if it helps anyone, but I can confirm that deploying to gitlab pages with their CI works. Here's my .gitlab.ci.yml.
# Official framework image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/node/tags/
image: node:10.18.0-slim

# This folder is cached between builds
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
cache:
    paths:
      - node_modules/

# This job is required for GitLab Pages
pages:
    stage: deploy
    # Export storybook as a static site (to public)
    script:
      - npm install
      - npm run build-storybook -- -o public
    # Required artifact for GitLab Pages
    artifacts:
        paths:
          - public
    # Only run on the `storybook` branch
    only:
      - storybook

@rdennis Can I just ask what version of Storybook you're using? As I am not able to run build-storybook on GitLab CI with v5.3.19.

I can confirm that the following minimalist setup and steps work:

Add build scripts to package.json

"sb:build": "build-storybook -c .storybook -o public", // use whatever script alias you want
"sb:serve": "npx http-server public" // not strictly necessary, but good to test your build

Add a .gitlab-ci.yml to project root

image: node:12-slim # or whatever version of node you are on

cache:
  paths:
    - node_modules/

pages:
  stage: deploy
  script:
    - npm install
    - npm run sb:build # make sure this matches your actual build script alias
  # Required artifact for GitLab Pages
  artifacts:
    paths:
      - public

Navigate to https://user-or-team-name.gitlab.io/project-name
...profit!

Naturally, this setup is only a starting point. Recommend that you test before deploy, cache as much as possible, only build on merges to master, etc. Would love to hear your suggestions! Cheers.

@rdennis Can I just ask what version of Storybook you're using? As I am not able to run build-storybook on GitLab CI with v5.3.19.

I have the following storybook-related devDependencies:
"@storybook/addon-a11y": "^5.3.19",
    "@storybook/addon-actions": "^5.3.19",
    "@storybook/addon-backgrounds": "^5.3.19",
    "@storybook/addon-centered": "^5.3.19",
    "@storybook/addon-knobs": "^5.3.19",
    "@storybook/react": "^5.3.19",

But I run storybook itself via npx: "storybook": "npx start-storybook -p 6006 -c .storybook"

Sorry, I've been off of this project for a bit. Our current processes uses storybook v5.3.18. We did recently have an issue where we had to move off of the *-slim node images (there was a missing dependency I believe).
Here is our current .gitlab-ci.yml
# Official framework image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/node/tags/
image: node:11.0

# This folder is cached between builds
# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
cache:
    # per-branch cache
    paths:
        - node_modules/

# Determines order of stages (default: build, test, deploy)
stages:
    - build
    - test
    - deploy

# Always runs first
install:
    stage: .pre
    script: npm install

# Builds components
build:
    stage: build
    script: npm run build

# Runs test suites
test:
    stage: test
    script: npm test

# This job is required for GitLab Pages
pages:
    stage: deploy
    # Export storybook as a static site (to public)
    script: npm run build-dl-storybook -- -o public
    # Required artifact for GitLab Pages
    artifacts:
        paths:
            - public
    # Only run on the `master` branch
    only:
        - master

The only addition I would have is if you already have a public directory with static assets you may need to update the pages stage to build to one directory and copy over to public.
pages:
  stage: pages
  script:
    - npm install
    - npm run build:storybook
    - mv dist/* public
  artifacts:
    paths:
      - public
  only:
    - master

Can see my full config file here - https://gitlab.com/jondotblack/jon.black/

How do you force storybook to load files from group.gitlab.com/repo instead of group.gitlab.com? Right now I'm just getting 404/Mime-type errors


chore: products-service to 0.0.1

chore: Promote products-service to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign
You can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


How to Perform Flash Attention Backward Pass When N_CTX % 128 != 0

Hi,
I've noticed that when performing the backward pass with Flash Attention, N_CTX (the context length) is required to be a multiple of 128, as specified here:
https://github.com/ROCm/triton/blob/94961d99838ec046a65cdd0eb02500fb8d05f659/python/perf-kernels/flash-attention.py#L1026
In my use case, N_CTX is not divisible by 128, and I'm curious about what happens when processing such a tensor. I tried commenting out the line that enforces this constraint to observe the behavior, and I found that the backward pass results became incorrect.
I want to know that what is the original reason for requiring N_CTX to be divisible by 128? And could this problem be related to how tensor boundaries are handled? Is there a proper way to adjust the code so that the backward pass works correctly when N_CTX isn't a multiple of 128?
Thank you very much for your help!

Hi @zhaohm14, thanks for reaching out! Without getting into the details, yes, it has to be divisible by 128 due to both hardware and algorithmic constraints (you might get away with divisible by 64 as well but there might be accuracy issues). I would recommend padding the context such that it becomes a multiple of 128 for you program to work correctly. Thanks!

Thank you!


Fix autocast v fp16  + add benchmark config instructions in benchmark.md

Fixed conditional logic when using autocast in benchmark code.
Updated diffusers==0.3.0 to diffusers==0.4.2
@chuanli11 : Any reason to not include torch and torchvision in the requirements?

Removing autocast does seem to reduce the latency and memory in a big way!
Here is what the new benchmark results for autocast v fp16 look like.

device
precision
autocast
runtime
n_samples
latency
memory

NVIDIA RTX A6000
single
False
pytorch
1
7.37
7.73

NVIDIA RTX A6000
half
True
pytorch
1
4.39
4.52

NVIDIA RTX A6000
half
False
pytorch
1
3.34
3.38

NVIDIA RTX A6000
single
False
pytorch
2
14.0
9.57

NVIDIA RTX A6000
half
True
pytorch
2
8.29
8.74

NVIDIA RTX A6000
half
False
pytorch
2
6.17
4.92

NVIDIA RTX A6000
single
False
pytorch
4
27.25
18.4

NVIDIA RTX A6000
half
True
pytorch
4
15.73
11.4

NVIDIA RTX A6000
half
False
pytorch
4
11.59
8.82

Also added benchmark config instructions in benchmark.md

@eolecvk seems torch and torchvision are included in the setup.py.
I don't know if @justinpinkney has particular reason for doing it that way.

@eolecvk seems torch and torchvision are included in the setup.py.
I don't know if @justinpinkney has particular reason for doing it that way.

It's because the original repo was setup that way:
https://github.com/CompVis/stable-diffusion/blob/69ae4b35e0a0f6ee1af8bb9a5d0016ccb27e36dc/setup.py
...but even in their case, they install pytorch and torchvision in conda's environment.yaml:
https://github.com/CompVis/stable-diffusion/blob/69ae4b35e0a0f6ee1af8bb9a5d0016ccb27e36dc/environment.yaml