SP solve issues: var == value solves, var.sub(value) doesn't.

This is an issue in hoburg/d8/CFP_Fuselage_Performance_int_HT.py, commit  9bfa0b9.
I have a variable called thetadb, which describes the double-bubble fuselage joint angle. Currently I'm substituting the value 0.366 (the value from the half-scale).
The odd part is that the SP solves when I put this value in as an equality  thetadb == 0.366  in my constraints. But if I do the substitutions:
thetadb = Variable('\\theta_{db}', 0.366,  '-', 'DB fuselage joining angle')

or
'\\theta_{db}' : 0.366

in the substitutions dict, the solve returns UNKNOWN. A bit odd. I checked the substitutions and they seem to be fine. Any idea what could be happening?

Any chance the variable is defined twice? I had that happen to me last week and the behavior was very similar.

I wish... I wanted to to a sweep with the fuselage joint angle when I realized that this was happening. The variable only exists within fuselage, and there is only one equation outside of fuselage that involves this variable.
This also used to not be an issue; I remember it working properly doing sweeps some time ago. Might be an undesired side effect of a recent gpkit commit.

Got it. This isn't a recent gpkit thing, it's because some constraints became posynomial inequalities after substitution, and we didn't properly catch that. Now (in https://github.com/hoburg/gpkit/pull/1020) it solves the same when thetadb is a number as when it's a variable, and in fewer GP solves than it took with the equality!


Driver Compression Enablement

Is there a way to enable compression when using the Driver rather than the Client?

Specifically I've seen https://github.com/go-mysql-org/go-mysql/blob/7c31dc4e4e5bac6f8f9a73c04efad3e0af69e606/client/conn.go#L124-L128. Where is ccaps set and is there a way to configure them when using the Driver?

Specifically I've seen
https://github.com/go-mysql-org/go-mysql/blob/7c31dc4e4e5bac6f8f9a73c04efad3e0af69e606/client/conn.go#L124-L128
. Where is ccaps set and is there a way to configure them when using the Driver?

https://github.com/go-mysql-org/go-mysql/blob/7c31dc4e4e5bac6f8f9a73c04efad3e0af69e606/client/conn.go#L177-L180

I am currently using the go-sql-driver/mysql and interested in migrating to go-mysql-org/go-mysql specifically for the driver. I am evaluating the feasibility of using the database/sql library with your driver and enabling compression. I'm currently importing the driver with side effects and able to write to MySQL, but without compression. Are the compression settings configurable with env vars or in the DSN?

Sorry I think this library does not have this way to configurate compression. Welcome to help us implement it, related files should be under driver folder.

@kvolmar this has been implemented, can you close this issue?


Return int postgres values as js numbers instead of strings

Will rebase to single commit once https://github.com/UKHomeOffice/asl-metrics/pull/75 is merged.

As per the other PR, let's get rid of this lot at the same time.


General spec compliance for floats

This PR fixes some general spec compliance problems wrt floats in the existing code. Strangely these have not come up yet in any of the tests, but the existing code would fail to parse floats like 0xA.0, 0xa.bP3 or 123.45E12. The first one because it was not matching upper-case hex digits, the second and third ones because it was not matching upper-case exponent delimiters.

Belatedly: thank you so much for these suggestions!
I wanted to see what the tests required before integrating your changes, and in fact the f32-dec-sep5 and f32-hex-sep2 functions in float_literals.wast did end up forcing case-insensitive exponent separators (0fdf7d5d834ff31625758f95c6c2710d02610384) and hex digits (320e5a932a899be044bbf3704474a6c26107ca39) respectively before I got around to this PR.
I also erroneously tried using the POSIX bracket expressions [[:digit:]] and [[:xdigit:]] in 5d99c7493ce7d3ee1edb390bb373d94be76ee6db, until you rightly pointed out that [[:digit:]] matches any Unicode digit, which definitely isn’t what we want. So your \d & \h idea here also ended up happening in 54a7be1d759436a8d17cb94d3e83f42e2fda00d8.
Thanks again, I really appreciate you joining in 👯🎉


Fixes ACL's with spaces

Fix for ACL's with spaces, which otherwise cause ACL's to be applied with every puppet agent run.

@i1tech Sorry for the slow response, can you update the tests to cover this functionality?

Also, when can ACLs have spaces in them?

Spaces in ACL's are common when Auth'ing against an Active Directory Domain controller, especially in the case of Groups.  (ie "Domain Adminsitrators", "Service Accounts", etc)  Depending on how the Linux side is setup, using SSS, LDAP, NSLCD+LDAP, Winbind, LikewiseOpen, Centrify, etc. you will also find spaces embedded in the username. I'll try to find some time to work on the tests.

@i1tech Also, please rebase so Travis stops whining about Ruby 1.8.7. :D

@dobbymoodge you have push access to the repo .. that is a new github feature

@roidelapluie ah, so I do. Now I understand what you were going on about. ☺

@roidelapluie @i1tech I added a test, but I'm not sure I did it the Right Way. In particular, I wonder if I should be able to stub out the 2 methods without pulling in RSpec::Mocks. Thoughts?

Thanks for adding that test, it would probably have been a while before I was able to get to it. Seem very busy these days.

@i1tech You've actually tested this in an environment with spaces in the group/usernames?

Waiting for feedback from @roidelapluie on the quality of this test before I merge. :)

Absolutely, we are running the patched version of the module on our Puppet4 server.

I'll go ahead and merge then, and we can fix the test later if needed.


ReGaHss: Support for procedural programming in HM script

Support for procedural programming in HM script would significantly improve the creation and traceability of complex HM scripts. Many existing HM scripts would lose size drastically.
Suggestions for various extensions:
It should be possible to define local functions in the script so that they can be called later in the script.
Implement a new script command that includes another script file. (This functionality is already used internally in the CCU.) In this way, new functions can be defined globally. A default directory should be defined for such includeable scripts. This allows new script functionality to be installed via AddOns (e.g. the sun position script).
Calling functions from shared objects (.so) is a way of making completely new functions available in HM scripts. New functions, e.g. for accessing sockets or a JSON parser, would be possible. In many cases System.exec could be avoided. Developers could also install shared objects again using the add-on mechanism on the CCU. The support of simple scalar data types (int, double, C string) for passing and returning values would help a lot in the first step. Technically, this could be achieved with the help of existing FFI libraries (foreign function interface).

I fully agree that more of these features would be great. However, ReGaHss is so limited and not designed to host a procedural programming interface. That's why some of the greater functionality is not part of the official programming environment documented. So, I highly doubt that it will ever be possible with some minor work to integrate such features in ReGaHss in a smooth and straight forward way that a future version can provide that functionality to end users.
However, I will keep that ticket open and assigned to the ReGaHss "project". Nevertheless, I am not very optimistic that this will ever be integrated, especially since in long term ReGaHss will be completely replaced by something else coming with a modern programming interface.


Add an item to check whether mTLS is enabled for a service

Merge this one after https://github.com/istio/istio.github.io/pull/1972/files

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: wattli
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: frankbu
If they are not already assigned, you can assign the PR to them by writing /assign @frankbu in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

content/OWNERS

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

@wattli you will need to rebase after https://github.com/istio/istio.github.io/pull/1972/files merges.  The docs repo does not have automatic rebasing.

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: wattli
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: sdake
If they are not already assigned, you can assign the PR to them by writing /assign @sdake in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

content/OWNERS

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

@sdake , it's rebased, PTAL, thanks!

@geeknoid , PTAL, thanks


Add rank metric #15

The Rank metric is used by multiple prediction tools, including the NetMHC family. This PR aims to provide a solution for issue #15

To implement another score metric fundamental changes to the EpitopePredictionResult class had to be made. For a better overview the new structure is sketched in row 63 in Results.py.
For every external tool supporting the rank metric the output parser parse_external_result has been adjusted.
For every tool not supporting the rank metric the predict method has been adjusted to maintain the overall hierarchy
Overall enums replaced the hardcoded positional accession in prediction output parsers
The (parsed) output of all predictors (epytope/epytope/EpitopePrediction/*) is now condensed into a nested dictionary with the following structure:

{'Allele1': {'Score': {'Pep1': Score1, 'Pep2': Score2,..}, 'Rank': {'Pep1': Rank1, 'Pep2': Rank2,..}, 'Allele2':...}
-> If no rank is supported by the respective tool, the hierarchy is maintained, just no rank information.

This nested dictionary is then packed into an EpitopePredictionResult using the new from_dict method and returns the desired structure.

These changes to the EpitopePredictionResult structure additionally caused to adjust OptiTope.py. OptiTope __init__  got a new boolean parameter rank, in order to optimize differentiate with respect to the given metric. OptiTope aims to minimize the rank or maximize the (prediction) score.

I hope I covered most of the changes.
Looking forward to your feedback!

Thanks for the quick response! So because now the allele is there the output differs. I adjusted the test as follows

Hi @jonasscheid, thanks for the update! 👍 There are still a couple of unresolved conversations, could you please marke them as resolved if applicable or create issues for them and mark them afterwards as resolved .


add page for running unit tests

Under "Advanced" -> "Unit Test" will now run unit tests for the package(including objects in subpackage)
Lots of possible improvements, but for now just something simple that runs.
I dont know if it works on 702, lets see
ref #3935

these do not exist in 702

New void type SABP_T_TADIR_KEYS used
New void type CL_SAUNIT_INTERNAL_RESULT used
New void type CL_AUCV_TEST_RUNNER_ABSTRACT used
New void type IF_SAUNIT_INTERNAL_RESULT used
New void type CL_AUCV_TEST_RUNNER_STANDARD used

might be easier to run ATC with variant SWF_ABAP_UNIT which does exist in 702 (same as we do for syntax check). you get results by class. if something fails, most likely you will have to edit the class anyway and run/debug unit tests there. no need for results by test method (although it's nice to see).

hmm, argh 😓

downported to dynamic calls, ready for review

merging


fix: Add df.rows(named=False) support for cuDF data frames

What type of PR is this? (check all applicable)

[ ] 💾 Refactor
[ ] ✨ Feature
[x] 🐛 Bug Fix
[ ] 🔧 Optimization
[ ] 📝 Documentation
[ ] ✅ Test
[ ] 🐳 Other

Related issues

Related issue # --
Closes # --

Checklist

[x] Code follows style guide (ruff)
[x] Tests added
[ ] Documented the changes

If you have comments or can explain your changes, please do so below.
posit-dev/py-shiny specifically relies on .rows(named=False) to return unnamed rows. I'd like to be sure that narwhals also supports .rows(named=False) for as many types as possible.
cuDF currently does not support .rows(named=False), however .rows(named=True) does work!
Reprex notebook: https://colab.research.google.com/drive/16AnZzkt0QpJ3NNad8qrmOqPBfUX_jFxa#scrollTo=uM8arylKIF1U
Reprex code:
import narwhals as nw
import cudf

df = cudf.DataFrame(
    {
        "a": list(range(20)),
        "b": list(reversed(range(20))),
        "c": list(range(20)),
    }
)
print(type(df))
print(df)

nw_df = nw.from_native(df, eager_only = True)

try:
  nw_df.rows(named = False)
except Exception as e:
  print("nw_df.rows(named=False)", str(e))

try:
  list(nw_df.iter_rows(named = False))
except Exception as e:
  print("nw_df.iter_rows(named=False)", str(e))

print("manual row calculations",
    [tuple(row.values()) for row in nw_df.rows(named=True)]
)

import narwhals as nw
import cudf

df = cudf.DataFrame(
    {
        "a": list(range(20)),
        "b": list(reversed(range(20))),
        "c": list(range(20)),
    }
)
…try:
  list(nw_df.iter_rows(named = False))
except Exception as e:
  print("nw_df.iter_rows(named=False)", str(e))

print("manual row calculations",
    [tuple(row.values()) for row in nw_df.rows(named=True)]
)

<class 'cudf.core.dataframe.DataFrame'>
     a   b   c
0    0  19   0
1    1  18   1
2    2  17   2
3    3  16   3
4    4  15   4
5    5  14   5
6    6  13   6
7    7  12   7
8    8  11   8
9    9  10   9
10  10   9  10
11  11   8  11
12  12   7  12
13  13   6  13
14  14   5  14
15  15   4  15
16  16   3  16
17  17   2  17
18  18   1  18
19  19   0  19
manual row calculations [(0, 19, 0), (1, 18, 1), (2, 17, 2), (3, 16, 3), (4, 15, 4), (5, 14, 5), (6, 13, 6), (7, 12, 7), (8, 11, 8), (9, 10, 9), (10, 9, 10), (11, 8, 11), (12, 7, 12), (13, 6, 13), (14, 5, 14), (15, 4, 15), (16, 3, 16), (17, 2, 17), (18, 1, 18), (19, 0, 19)]
nw_df.rows(named=False) cuDF does not support iteration of DataFrame via itertuples. Consider using `.to_pandas().itertuples()` if you wish to iterate over namedtuples.
nw_df.iter_rows(named=False) cuDF does not support iteration of DataFrame via itertuples. Consider using `.to_pandas().itertuples()` if you wish to iterate over namedtuples.

I am missing a line in the code for code coverage. I'm hoping cuDF is installed within GHA. If not, then I do not know how to remove the code coverage check.
Happy to hand over the PR or make adjustments 😃

thanks @schloerke ! gpu testing is horrendously manual at the moment unfortunately, we use https://www.kaggle.com/code/marcogorelli/testing-cudf-in-narwhals
i'm in contact with some people from rapids to see what we can do about it

Independent of this PR, do you think py-shiny should adopt a safe-guard approach where we convert the data to pandas if an error is found while retrieving the rows?
try:
	row_infos = nw_df.rows(named = False)
except Exception e:
    # Try converting to pandas before getting row infos
	try:
	    row_infos = nw.from_native(nw_df.to_pandas(), eager = True).rows(named = False)
    except Exception:
        # Raise original error
        raise e

Conceptually, this would have addressed this cuDF bug and py-arrow situation.  Just feels like an unnecessary conversion layer.

Independent of this PR, do you think py-shiny should adopt a safe-guard approach where we convert the data to pandas if an error is found while retrieving the rows?

With this PR all eager frames should not support .rows(named=False)

Conceptually, this would have addressed this cuDF bug and py-arrow situation. Just feels like an unnecessary conversion layer.

I would argue that this should be addressed in Narwhals, and not in the downstream logic.

try:
	row_infos = nw_df.rows(named = False)
except Exception e:
    # Try converting to pandas before getting row infos
	try:
	    row_infos = nw.from_native(nw_df.to_pandas(), eager = True).rows(named = False)
    except Exception:
        # Raise original error
        raise e

With this try-except you get the feature or bug of allowing for interchange level of support dataframe to first be converted to pandas and then get the rows (only if you were allowing for interchange to be provided in the first place)


DNS-SD library does not support _services._dns-sd._udp.local meta-query for service enumeration

Is your enhancement proposal related to a problem? Please describe.
When building and running the mdns_responder sample, the device won't show up in avahi-browse or zeroconfServiceBrowser automatically. The device will only reply when you specifically query the following: avahi-browse -t -r _zephyr._tcp.
It seems like _services._dns-sd._udp.<domain> meta-query handling is not implemented.
When I open up zeroconfServiceBrowser or avahi-browse, the following is printed out at regular intervals:
net_dns_sd.dns_sd_extract_service_proto_domain: (rx_q[0]): could not get proto for '▒▒...'
Describe the solution you'd like
The device should respond properly to the meta-query _services._dns-sd._udp.<domain> so that my device is displayed automatically in avahi-browse without having to specifically query avahi-browse -t -r _zephyr._tcp

The specific feature is called "service type enumeration" and is mentioned in the RFC on section 9.
https://datatracker.ietf.org/doc/html/rfc6763#section-9


user request pagination fixed

Coverage decreased (-0.92%) to 48.12% when pulling 3ce52c89a2da0d4d89532c52a867b6eb156c3736 on kave:master into c1b4a6978e03780c039624f61b87755197d45109 on excellaco:master.


cmd/compile: allocate some defers in stack frames

When we can statically determine that a defer is called (at most) once, we should
allocate the Defer structure in the stack frame instead of from the DeferChunk mechanism.

We suspect most defers fit into this category.

Moving to Go 1.9 since we already doubled the performance of defer via other means for Go 1.8.

Related: #5712.

Punting to unplanned, too late for anything major in 1.12.

Should this be closed? From what I understand, this has been temporarily reverted due to some bugs, and then reverted back: fff4f599 ->  49200e3f -> 8f296f59de

Yes, this is done and should be closed.


Bad value [first.middle.lastname]: Only hyphens (-), underscores (_), lowercase characters, and numbers are allowed.

The error originates from gcloud, however I don't have this issue when using gcloud myself.
I believe PKB is using my email address to label something, and it isn't allowed because of the periods.
My email address is<EMAIL_ADDRESS>and I can not remove the periods from my company email.
Traceback (most recent call last):
 File "/home/first.middle.lastname/PerfKitBenchmarker/perfkitbenchmarker/pkb.py", line 1314, in RunBenchmarkTask
   RunBenchmark(spec_for_run, collector)
 File "/home/first.middle.lastname/PerfKitBenchmarker/perfkitbenchmarker/pkb.py", line 1091, in RunBenchmark
   DoProvisionPhase(spec, detailed_timer)
 File "/home/first.middle.lastname/PerfKitBenchmarker/perfkitbenchmarker/pkb.py", line 762, in DoProvisionPhase
   spec.Provision()
 File "/home/first.middle.lastname/PerfKitBenchmarker/perfkitbenchmarker/benchmark_spec.py", line 712, in Provision
   vm_util.RunThreaded(
 File "/home/first.middle.lastname/PerfKitBenchmarker/perfkitbenchmarker/background_tasks.py", line 647, in RunThreaded
   return RunParallelThreads(target_arg_tuples,
 File "/home/first.middle.lastname/PerfKitBenchmarker/perfkitbenchmarker/background_tasks.py", line 582, in RunParallelThreads
   return _RunParallelTasks(
 File "/home/first.middle.lastname/PerfKitBenchmarker/perfkitbenchmarker/background_tasks.py", line 556, in _RunParallelTasks
   raise parallel_exception_class(
perfkitbenchmarker.errors.VmUtil.ThreadException: The following exceptions occurred during parallel execution:
Exception occurred while calling CreateAndBootVm(<BaseVirtualMachine [ip=None, internal_ip=None]>):
Traceback (most recent call last):
 File "/home/first.middle.lastname/PerfKitBenchmarker/perfkitbenchmarker/background_tasks.py", line 252, in Run
   self.return_value = self.target(*self.args, **self.kwargs)
 File "/home/first.middle.lastname/PerfKitBenchmarker/perfkitbenchmarker/benchmark_spec.py", line 944, in CreateAndBootVm
   vm.Create()
 File "/home/first.middle.lastname/PerfKitBenchmarker/perfkitbenchmarker/resource.py", line 355, in Create
   self._CreateResource()
 File "/home/first.middle.lastname/PerfKitBenchmarker/perfkitbenchmarker/vm_util.py", line 261, in WrappedFunction
   return f(*args, **kwargs)
 File "/home/first.middle.lastname/PerfKitBenchmarker/perfkitbenchmarker/resource.py", line 262, in _CreateResource
   self._Create()
 File "/home/first.middle.lastname/PerfKitBenchmarker/perfkitbenchmarker/providers/gcp/gce_virtual_machine.py", line 743, in _Create
   raise errors.Resource.CreationError(
perfkitbenchmarker.errors.Resource.CreationError: Failed to create VM: ERROR: (gcloud.compute.instances.create) argument --labels: Bad value [first.middle.lastname]: Only hyphens (-), underscores (_), lowercase characters, and numbers are allowed. International characters are allowed.

The command I am running is:
./pkb.py --benchmarks=cluster_boot --machine_type=f1-micro --zones=us-central1-f --run_stage=provision,prepare,run

Hi my name is Aarushi Soni . I want to contribute to this issue . Is this issue still open ?
Please guide me through this process.

Hi @aarushisni,
Sorry for the late reply. Thanks for following up with me. The issue is still open.
To summarize, I'm using google cloud as my cloud provider I'd like to benchmark, and I'm doing this using my company email address. My company email address uses this format<EMAIL_ADDRESS>and the periods in the name are problematic.
Google cloud does not allow periods when it's doing its provisioning, and it seems like PerfKitBenchmarker is using my email address, which contains periods to provision resources.
I think the fix would be to in PerfKitBenchmarker to strip out periods from people's email address before using it for provisioning.

Thanks for the report!  As a workaround, can you try specifying the --owner flag to work around the autodetection?
https://github.com/GoogleCloudPlatform/PerfKitBenchmarker/blob/bcb72ced29b6a77d685be273c6a638f5b907de7d/perfkitbenchmarker/pkb.py#L206


How to run your code to mark one's name in one image?(accomplish face recognition)

If i want to test one image,and the result will cirle out the faces in the image and label his or her name beside the bounding boxes,so how to run this code to train my own model and  how to modify this code to accomplish my goal?
Thanks,very much!

The explanation on how to train a classifier on your own images can be found on the wiki. As for the first question, do you want to draw the bounding box and name on the face in the picture? If so that can be easily done with OpenCV.

i mean could the existing code draw bounding box and name on the face?coz...the experiment result are just some assessment index.

I'm afraid that's not implemented, you will need to modify the code from classifier.py to suit your purpose.

Thanks for ya~~~

Do you know how to do this? Otherwise I'm willing to help you with this.

Oh my god ,actually,i am not capable of this,it is so nice of you!!!
Now,i want to load the pretrained model and look up to its network structure,but i don't know how to show its network structure and parameters' weights.
After this,i want to modify the final layer and softmax layer to train my own face datasets.
Do you have some suggestions or are you willing to help me?
Sorry to reply you lately and thanks very much ~~~

Or in other words,if i want to modify final layer and softmax layer of his network,should i reload pretrained model or is there .py file containing the network layer which i can modify to train my own model???

@MaartenBloemen
Or in other words,if i want to modify final layer and softmax layer of his network,should i reload pretrained model and add some command to modify it
or does the david use inception_resnet_v1.py to train 20170512-110547(pretrained model) and maybe i just need to make some changes in this .py file???

I will just post the script here as I'm to lazy to create a repo for it.
The code it's the cleanest or the best, but it works:
import tensorflow as tf
import numpy as np
import argparse
import facenet
import math
from scipy import misc
import align.detect_face
import pickle
import cv2

def classify(args, pnet, rnet, onet):
    _pnet = pnet
    _rnet = rnet
    _onet = onet
    BATCH_SIZE = 90
    IMAGE_SIZE = 160
    MARGIN = 44

    with tf.gfile.FastGFile(args.model, 'rb') as f:
        graph_def = tf.GraphDef()
        graph_def.ParseFromString(f.read())
        _ = tf.import_graph_def(graph_def, name='')

    with tf.Session() as sess:
        images_placeholder = sess.graph.get_tensor_by_name("input:0")
        embeddings = sess.graph.get_tensor_by_name("embeddings:0")
        phase_train_placeholder = sess.graph.get_tensor_by_name("phase_train:0")
        embedding_size = embeddings.get_shape()[1]

        print('Calculating features for images')
        img = cv2.imread(args.image)
        images = [cv2.cvtColor(img, cv2.COLOR_BGR2RGB)]
        nrof_images = len(images)
        nrof_batches_per_epoch = int(math.ceil(1.0 * nrof_images / BATCH_SIZE))
        emb_array = np.zeros((nrof_images, embedding_size))
        for i in range(nrof_batches_per_epoch):
            start_index = i * BATCH_SIZE
            end_index = min((i + 1) * BATCH_SIZE, nrof_images)
            images, boxes = align_data(images, IMAGE_SIZE, MARGIN, _pnet, _rnet, _onet)
            feed_dict = {images_placeholder: images, phase_train_placeholder: False}
            emb_array[start_index:end_index, :] = sess.run(embeddings, feed_dict=feed_dict)

        classifier_filename_exp = args.classifier

        print('Testing classifier')
        with open(classifier_filename_exp, 'rb') as infile:
            (model, class_names) = pickle.load(infile)

        print('Loaded classifier model from file "%s"' % classifier_filename_exp)

        predictions = model.predict_proba(emb_array)
        best_class_indices = np.argmax(predictions, axis=1)
        best_class_probabilities = predictions[np.arange(len(best_class_indices)), best_class_indices]

        for i in range(len(best_class_indices)):
            print('%4d  %s: %.3f' % (i, class_names[best_class_indices[i]], best_class_probabilities[i]))
            img = cv2.rectangle(img, (int(boxes[i][0]), int(boxes[i][1])),
                                  (int(boxes[i][2]), int(boxes[i][3])), (0, 255, 0),
                                  2)
            img = cv2.putText(img, (class_names[best_class_indices[i]] + " - " + str(
                "{:.2f}%".format(best_class_probabilities[i] * 100))),
                                (int(boxes[i][0]), int(boxes[i][1] - 10)),
                                cv2.FONT_HERSHEY_SIMPLEX, 0.5,
                                (0, 255, 0), 1, cv2.LINE_AA)
            cv2.imshow('Picture classifier', img)
            res = cv2.waitKey(0)
            while res != 27:
                res = cv2.waitKey(0)

            exit(0)

def align_data(image_list, image_size, margin, pnet, rnet, onet):
    minsize = 20  # minimum size of face
    threshold = [0.6, 0.7, 0.7]  # three steps's threshold
    factor = 0.709  # scale factor

    img_list = []
    boxes = []

    for x in xrange(len(image_list)):
        img_size = np.asarray(image_list[x].shape)[0:2]
        bounding_boxes, _ = align.detect_face.detect_face(image_list[x], minsize, pnet, rnet, onet, threshold, factor)
        nrof_samples = len(bounding_boxes)
        if nrof_samples > 0:
            for i in xrange(nrof_samples):
                if bounding_boxes[i][4] > 0.95:
                    det = np.squeeze(bounding_boxes[i, 0:4])
                    bb = np.zeros(4, dtype=np.int32)
                    bb[0] = np.maximum(det[0] - margin / 2, 0)
                    bb[1] = np.maximum(det[1] - margin / 2, 0)
                    bb[2] = np.minimum(det[2] + margin / 2, img_size[1])
                    bb[3] = np.minimum(det[3] + margin / 2, img_size[0])
                    cropped = image_list[x][bb[1]:bb[3], bb[0]:bb[2], :]
                    aligned = misc.imresize(cropped, (image_size, image_size), interp='bilinear')
                    prewhitened = facenet.prewhiten(aligned)
                    img_list.append(prewhitened)
                    boxes.append(bounding_boxes[i])

    if len(img_list) > 0:
        images = np.stack(img_list)
        return images, boxes

    return None, None

def create_network_face_detection():
    with tf.Graph().as_default():
        gpu_options = tf.GPUOptions(allow_growth=True)
        sess = tf.Session(config=tf.ConfigProto(gpu_options=gpu_options, log_device_placement=False))
        with sess.as_default():
            pnet, rnet, onet = align.detect_face.create_mtcnn(sess, None)
    return pnet, rnet, onet

if __name__ == "__main__":
    parser = argparse.ArgumentParser()
    parser.add_argument('model', type=str,
                        help='Path to a model protobuf (.pb) file')
    parser.add_argument('classifier',
                        help='Path to the classifier model file name as a pickle (.pkl) file.')
    parser.add_argument('image',
                        help='Path to the image file to classify.')

    args = parser.parse_args()

    pnet, rnet, onet = create_network_face_detection()

    classify(args, pnet, rnet, onet)

You can copy paste this code into a python file called classify_image.py and then run it using this command:
python classify_image.py /path/to/model.pb /path/to/classifier.pkl /path/to/image/to/classify.jpg
That being that I don't really see why you would want to modify the last layer, in my first post I mentioned a page on the wiki, check that out it explains how to train a classifier on your own dataset, than you can use that pkl file with this script.
Hope this helps you!

Thank you very much!!!
And as for modifying the last layer,coz i want to train about 100 people ,and i don't know what's the network layer like in this pretained model,maybe the number of neuro cells(in other words the amount of class) isn't compatible with my face project...
And since you mention your page on the wiki,i will look through it carefully~~~
Another little request,could you give me your gmail address or something else to keep in touch??I am very grateful for your help and maybe ask you some academic questions if you are convenient~~~

I have looked through the page on the wiki,it seems there is nothing to do with the class numbers,so i don't have to modify the model???
I don't know if i get the right understanding......

Yes if you follow the guide on the wiki you don't need to retrain the final layer of the model. You can use the pickle (.pkl) file you get from the guide on the wiki with the script I wrote to predict people in an image.
You can send me emails on<EMAIL_ADDRESS>though I'm just college student and by far no machine/deeplearning expert, but if you send me a mail on that address I'll try my best to help you with your questions.

Thank for your earnest help and guide~I send you an email~

@MaartenBloemen
Thank you for sharing this. But it seems that there is no way to classify an image for test without having classifier model?
I meant if I am working with 1M celeb dataset, I need to train classifier as it mentioned in wiki to get first the model (.pkl) for classifier then use it?


Proxy Types: should match what is expected

There are two proxy types:

ActorProxy
TransactionalState

In older versions of PHP, this is probably ok. However, in PHP 8, which has a much richer type system, this can get in the way.
For example, with an actor's constructor, we must not specify a type for the state because it's being proxied by the TransactionalState proxy. Also, when getting an ActorProxy, we cannot specify the type because it doesn't have one.

#13 added support for ActorProxy

#13 added support for ActorProxy


CCTV fails if there are changes in the layer text.

CCTV fails at following cases:
srcbl = abefghijkl
dstbl = abcdefgkl
CCTV = [(0, 2, 0), (2, 5, 2), (8, 10, -1)]
Note: - is the annotation
Cases:

Changes at beginning of layer text

source
destination

layer_text
ab-efg-hijkl
abc-defg-kl

anno
(2,4)
(3,6)

get_updated_coord():
- input = 2, cctv = 2, output = 2+2 = 4
- input = 4, cctv = 2, output = 4+2 = 6
Expected output should be (3, 6)

Changes at end of layer text

source
destination

layer_text
ab-efghijk-l
abcd-efg-kl

anno
(2,8)
(4,6)

get_updated_coord():
- input = 2, cctv = 2, output = 2+2 = 4
- input = 8, cctv = -1, output = 8-1 = 6
Expected output should be (3, 6)

is getting corresponding start and end of source annotation a way to get updated annotation, like I did in the example above ?

I'm struggling a bit with your case here... let's take the first one. What I understand is:
you have an initial base layer + annotation of ab-efg-hijkl, and you update the base layerto be abcdefgkl. Then you want the initial annotation to be abc-defg-kl?
If so, that's just impossible, there's not enough information anywhere to know that the annotation should be abc-defg-kl instead of ab-cdefg-kl or abcd-efg-kl. In this case the method with the cctv should actually return -1 because it can't know for sure. Then the method with dmp should be applied, and chances are that it will find that ab-cdefg-kl is the best option.
Does it answer your question?

Okay I understand the point of dmp.
But is the correct way that we take only start and end of annotation from source, eg (2, 4) and get the updated annotation ?

I think the problem here is a side effect: I probably initially took an optimistic approach but your example shows that when a coordinate is on a side of a rage in the cctv, we shouldn't decide where it should go. So when the cctv has [(0, 2, 0), (2, 5, 2), (8, 10, -1)] and we're looking for the new coordinate of position 2 (or 5 or 8 or 10), we should return -1 and let dmp find the best spot

Okay so, is it fine that we got ab-cdefg-kl instead of ab-defg-kl ?

you mean that ab-cdefg-kl gets updated into ab-defg-kl? in the end yes, but I think we should involve dmp when looking for the update of the first coordinate

Okay got it, thanks


Microsoft WCF Web Service Reference Provider Tool

So what are the next steps? Don't just leave me hanging like that.

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

ID: 0e89651a-5ad9-c3f9-146f-8d87b87d9e11
Version Independent ID: 85c0e55f-abc0-3b2d-409a-06042b1f3ebb
Content: Microsoft WCF Web Service Reference Provider Tool
Content Source: docs/core/additional-tools/wcf-web-service-reference-guide.md
Product: dotnet-core
GitHub Login: @mlacouture
Microsoft Alias: johalex

Hi I have an example (the next steps) for everyone if they need to consume an ASMX Web Service using connect services.
First step.  Make sure your return types match what your ASMX is actually returning (for some reason using the Connected Services "Wizard" would create a partial class for DataTable return types for example. Go into the WebService1SoapClient class and make sure your return types are all correct. (I found types List was wrong and types DataTable so far..)
So ..
[System.ServiceModel.OperationContractAttribute(Action="http://services.fake.com/MethodThatReturnsListofString", ReplyAction="*")]         [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]         System.Threading.Tasks.Task**<List<string>>** MethodThatReturnsListofString();
Make sure those are all correct for all methods.
Also when you change that intellisense will get mad at you and you must change the corresponding Task under the same class, ConfigureEndpoint method
public System.Threading.Tasks.Task**<List<string>>** MethodThatReturnsListofString()         {             return base.Channel.MethodThatReturnsListofString();         }
Now in your main class your are doing all your work, make an Async Task for each method you want to use from your WebService.
        public async Task<List<string>> MethodThatReturnsListofStringAsync()         {             BasicHttpBinding binding = new BasicHttpBinding();             binding.MaxReceivedMessageSize = 1000000; //change this to the max file size allowed to be transferred. I have it set to a meg.             EndpointAddress address = new EndpointAddress("http://services.fake.com/WebService1.asmx");             AIWebService.AIServiceSoapClient _client = new AIServiceSoapClient(binding, address);             string _errors = await _client.MethodThatReturnsListofString();             return _errors;         }
When you want to actually get that List of Strings in a method somewhere call these two lines, then use as you normally would.
            Task<List<string>> _tempTask = MethodThatReturnsListofStringAsync();             <List<string>> MyListOfStrings = _tempTask.Result;
Voila!

Turn Coffee into Code!


Broken hyperlink to  Security in Office 365 White Paper

The hyperlink to Security in Office 365 White Paper leads to an error 'no longer available'

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

ID: 63e658c5-df2f-4ef7-7308-bac311aba657
Version Independent ID: 594382c1-63cc-aa6b-b363-c81fc412a432
Content: Data Encryption in OneDrive for Business and SharePoint Online - Microsoft 365 Compliance
Content Source: microsoft-365/compliance/data-encryption-in-odb-and-spo.md
Service: o365-seccomp
GitHub Login: @KCCross
Microsoft Alias: krowley

@Disorganise - Thank you for submitting feedback.
From our understanding, the issue has been resolved based on this merged commit https://github.com/MicrosoftDocs/microsoft-365-docs/commit/9f17bf28974bf588be3a0763870b516a93bef119.
Thank you for your contribution to make the docs better! Much appreciated!


invalid info.plist value. minimumosversion value is 8.0

it's ok on development & Ad-Hoc , but when i want to upload to itunesconnect
there's error like this

any idea ?

change the info.plist in LiveSDK.framework to 8.0


训练代码问题

你好我想请问一下，To prevent users from confusing different ImageNet pretrained checkpoints, we require users to download the corresponding version of the checkpoint from TorchVision manually. 是在那个torchvision里面下载相应的权重文件，还是在百度网盘中下载想要的checkpoint呢

Thanks for your interest.
For training, you should download the pertained backbone from torchvision. Otherwise, checkpoints provided by us are needed for evaluation.

谢谢 我再去试试看
------------------ 原始邮件 ------------------
发件人:                                                                                "iSEE-Laboratory/ASAG"                                                                                @.>;
发送时间: 2023年9月9日(星期六) 上午10:09
@.>;
<EMAIL_ADDRESS>主题: Re: [iSEE-Laboratory/ASAG] 训练代码问题 (Issue #1)
Thanks for your interest.
For training, you should download the pertained backbone from torchvision. Otherwise, checkpoints provided by us are needed for evaluation.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

您好，根据您提供的这个链接我下载了resnet50的model文件，如果我想要下载其他的model文件例如您readme文件中提供的链接https://pytorch.org/vision/stable/models.html#table-of-all-available-classification-weights 我该如何处理，麻烦您了
------------------ 原始邮件 ------------------
发件人:                                                                                "iSEE-Laboratory/ASAG"                                                                                @.>;
发送时间: 2023年9月9日(星期六) 上午10:09
@.>;
<EMAIL_ADDRESS>主题: Re: [iSEE-Laboratory/ASAG] 训练代码问题 (Issue #1)
Thanks for your interest.
For training, you should download the pertained backbone from torchvision. Otherwise, checkpoints provided by us are needed for evaluation.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

Taking AlexNet_Weights.IMAGENET1K_V1 as an example, you should first click the name, then click [SOURCE], and you can find the download url.

好的 再次感谢
------------------ 原始邮件 ------------------
发件人:                                                                                "iSEE-Laboratory/ASAG"                                                                                @.>;
发送时间: 2023年9月9日(星期六) 中午11:27
@.>;
<EMAIL_ADDRESS>主题: Re: [iSEE-Laboratory/ASAG] 训练代码问题 (Issue #1)
Taking AlexNet_Weights.IMAGENET1K_V1 as an example, you should first click the name, then click [SOURCE], and you can find the download url.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>


update: cosign v1.7.2 to v1.8.0

fixes #642
Description

update cosign to v1.8.0

Checklist

[x] PR is rebased to/aimed at branch develop
[x] PR follows Contributing Guide
[x] Added tests (if necessary)
[x] Extended README/Documentation (if necessary)
[x] Adjusted versions of image and Helm chart in values.yaml and Chart.yaml (if necessary)

Codecov Report

Merging #643 (03eb2ba) into develop (165f518) will increase coverage by 3.16%.
The diff coverage is 97.04%.

@@             Coverage Diff             @@
##           develop     #643      +/-   ##
===========================================
+ Coverage    93.52%   96.69%   +3.16%
===========================================
  Files           15       22       +7
  Lines          633     1179     +546
===========================================
+ Hits           592     1140     +548
+ Misses          41       39       -2

Impacted Files
Coverage Δ

connaisseur/__main__.py
0.00% <0.00%> (ø)

connaisseur/kube_api.py
87.50% <66.66%> (ø)

...naisseur/validators/notaryv2/notaryv2_validator.py
80.00% <80.00%> (ø)

connaisseur/flask_application.py
92.63% <92.63%> (ø)

connaisseur/validators/static/static_validator.py
93.75% <93.75%> (ø)

connaisseur/util.py
95.45% <95.45%> (-4.55%)
:arrow_down:

connaisseur/logging_wrapper.py
96.15% <96.15%> (ø)

connaisseur/config.py
97.29% <97.29%> (ø)

connaisseur/alert.py
97.97% <97.97%> (ø)

...naisseur/validators/notaryv1/notaryv1_validator.py
98.30% <98.30%> (ø)

... and 12 more

Continue to review full report at Codecov.

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


Alternative delimiters or changing delimiters

Hi !
I couldn't find if there is the possibility to change the delimiters for blocks or variables ({{}}, {{#, ...).
From a quick look in the source, the delimiters seem hard-coded in a regular expression, but I'd like to have the confirmation of that !?
Without giving complete freedom to chose the delimiters, it would be cool to be able to choose between alternative syntax.
My current problem is that I am using Django, and the delimiters of Django's templating langage and handlebar's clash. Therefore, where I need to use both template langages, I have to use very clumsy syntax like :
{% raw %}

{% endraw %}

Thanks !

@wagenet so it's been two years and Handlebars is still the top templating tool for js. Is there willingness to even consider overcoming the limitations to making the delimiter configurable? I'm using Handlebars as a part of a library for static site generation, and precompiling doesn't apply if you're generating a static Angular app. It doesn't make sense to require users of the generator lib to use alternate tags throughout their entire Angular application for the sake of the templating language, when we know the templating will generally be quite minimal.
I'm aware (and appreciative!) of @jonschlinkert's solution, but this really is a core concern.
Thoughts?

I am not sure about their plans. I believe the main argument against doing it remains the same: this requires changing the parser, which is generated and tested during build time.
Our case was similar to yours one. We use handlebars to assemble our HTML templates during the project compilation (build time), and we use angular at runtime.
First we started to escape the angular templates; that is in HTML file you write \{{name}} instead of just {{name}}. This approach did not work well since you had to remember always to escape these expressions; and even worse if you forgot to do it you got some weird errors messages during the build.
Since most of our effort is spent writing the angular apps, we decided to change the delimiters of handlebars rather than angular ones. We tried to reconfigure handlebars to use different delimiters at run-time. But we failed to integrate it into our setup. We use assemble.io to build the HTML templates, and there was always an edge case that did not work for us. Hence at some point we just decided to fork Handlebars and change its delimiters in the lexer itself.
We decided to change the delimiters to <{{ and }}> (from the default {{ and }}). The fork can be found at https://github.com/PlanitarInc/handlebars.js. The main change is in the lexer definition https://github.com/wycats/handlebars.js/compare/master...PlanitarInc:master#diff-a13581e6dfc1c61c90703da188230cbc, other changes are just fixes for the tests.
I hope this can help you.

Yeah, there's that route.
Here's the thing: Jon wrote a succinct script that just wraps handlebars and, unless there are caveats that I'm not aware of, it works. I'm hoping that the maintainers are at least open to this approach for now - simply allow users to specify alternate tags once, globally.


OutputPort proposal

Shamefully stolen from @japaric's issue #30.
I needs for my parallel LCDs.

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @ryankurte (or someone else) soon.
If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.
Please see the contribution instructions for more information.

Here's a sample implementation:
impl OutputPort<u32> for Port {
    fn write(&mut self, word: u32) {
        unsafe {
            (*PORT::ptr()).$outset.write(|bits| {
                bits.bits(word)
            });
        }
    }
}

hey thanks for the PR! looks pretty good to me.
the only question i have is how we define / configure buses of widths that are not an existing (standard integer width) type, and can this be made clear in the interface and/or documentation?
(cc. #30)

We talked about this a bit on IRC earlier today. I think there're few other problems with the comments and I'd certainly would like to see a slightly more complete impl doing something other than simply exposing the full set register...

Maybe we could have a mask parameter, or use the uX crate?

https://github.com/rust-embedded/embedded-hal/issues/30#issuecomment-557439768
Should the width be a type parameter in trait other than in generic type bound? That could be a more reasonable design as typically the chip only allow one width type for one port (as far as I know).

I've made testing implementation of OutputPort:
https://github.com/burrbull/embedded-hal/tree/outport rebased on 0.2.x + const generic port size (N)
https://github.com/burrbull/hd44780-driver/commit/cc8861bd5f8ea352472b9f42b88175f395b844a9 - using in hd44780-driver
https://github.com/stm32-rs/stm32f4xx-hal/pull/426 - OutputPort<N, u8> implementation example for F4

Thanks for your test implementation @burrbull.
For reference, here is the code:
/// A digital output "port"
///
/// `N` is number of pins in "port"
///
/// `Width` is the size of the data; it could be `u8` for an 8-bit parallel
/// port, `u16` for a 16-bit one, etc.
///
/// **NOTE** The "port" doesn't necessarily has to match a hardware GPIO port;
/// it could for instance be a 4-bit ports made up of non contiguous pins, say
/// `PA0`, `PA3`, `PA10` and `PA13`.
#[cfg(feature = "unproven")]
pub trait OutputPort<const N: u8, Width> {
    /// Error type
    type Error;
    /// Outputs `word` on the port pins
    ///
    /// # Contract
    ///
    /// The state of all the port pins will change atomically ("at the same time"). This usually
    /// means that state of all the pins will be changed in a single register operation.
    fn write(&mut self, word: Width) -> Result<(), Self::Error>;
}

A few questions/remarks:

The unconstrained Width parameter will be a problem for interoperability.
What do do when N and the number of bits of Width differ?
What to do with widths that do not match primitive types like u8/u16... ?
Little-endian vs big-endian words.
How to send several words back-to-back?
While this allows for HAL implementations to define OutputPorts, it is not possible for the user to define these. e.g. it is not possible for the user to get a 4-bit OutputPort made of PA0, PA3, PA10 and PA13 like stated in the docs if the HAL impl does not provide it as such. However, HALs can only provide so many pin combinations and OutputPort sizes without falling into macro madness.

What if limit trait to u8 only? Just delete Width.

6. While this allows for HAL implementations to define OutputPorts, it is not possible for the user to define these. e.g. it is not possible for the user to get a 4-bit OutputPort made of PA0, PA3, PA10 and PA13 like stated in the docs if the HAL impl does not provide it as such. However, HALs can only provide so many pin combinations and OutputPort sizes without falling into macro madness.

If you have looked at implementation example, you could see that it support all combinations of pins located on 1 real port.

@eldruin
Look at this please:
#[cfg(feature = "unproven")]
pub trait OutputPort<const N: usize> {
    /// Error type
    type Error;
    /// Outputs `word` on the port pins
    ///
    /// # Contract
    ///
    /// The state of all the port pins will change atomically ("at the same time"). This usually
    /// means that state of all the pins will be changed in a single register operation.
    fn write(&mut self, word: u8) -> Result<(), Self::Error>;
}

#[cfg(feature = "unproven")]
/// Port containing array of [OutputPin]
pub struct DumbPort<PIN, const N: usize>
where
    PIN: OutputPin,
{
    pins: [PIN; N],
}

#[cfg(feature = "unproven")]
impl<PIN, const N: usize> DumbPort<PIN, N>
where
    PIN: OutputPin,
{
    /// Collect pins to port
    pub fn new(pins: [PIN; N]) -> Self {
        Self { pins }
    }
}

#[cfg(feature = "unproven")]
impl<PIN, const N: usize> OutputPort<N> for DumbPort<PIN, N>
where
    PIN: OutputPin,
{
    type Error = PIN::Error;
    fn write(&mut self, word: u8) -> Result<(), Self::Error> {
        for i in 0..N {
            if word & (1 << i) != 0 {
                self.pins[i].set_high()?;
            } else {
                self.pins[i].set_low()?;
            }
        }
        Ok(())
    }
}

How does your write function upload the contract:

The state of all the port pins will change atomically ("at the same time"). This usually means that state of all the pins will be changed in a single register operation.

How does your write function upload the contract:

The state of all the port pins will change atomically ("at the same time"). This usually means that state of all the pins will be changed in a single register operation.

It is just dumb implementation above for HALs which don't have native support of OutputPort.
More relevant implementation example is in https://github.com/stm32-rs/stm32f4xx-hal/blob/d94044188defb82583bd561fe8fb3363932454cb/src/gpio/outport.rs

What about ports with more than 8 bits?

This is main question.
But what is real use-case?
Even if we solve endianess questions (which is not trivial), how to implement it considering "at the same time"? Pins must be on 1 real port for this. I can imagine only specialized chips (like shift-regiters) in this role.
Also ports in microcontrollers have limitations on power.
Maybe I missing something important?


Use debug on all warning and info logs while using cat cmd

Codecov Report

Merging #91 (ba3f798) into main (ef1ca44) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #91   +/-   ##
=======================================
  Coverage   80.92%   80.92%
=======================================
  Files          16       16
  Lines        1227     1227
=======================================
  Hits          993      993
  Misses        173      173
  Partials       61       61

Continue to review full report at Codecov.

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


Spaces in the path to the configuration

Larastan Version: v0.2.7
--level used: default

Description:
It does not recognize spaces in the directory name on command:
php artisan code:analyse
Laravel code where the issue was found:
Image of error:
https://prnt.sc/knru9m

That's a feature of bash, you need to quote the path - php artisan code:analyse '/d/E/Web - Projects/xxx'.

@ondrejmirtes often it works with quotes.
I tried '', "" and with \ on php artisan code:analyse -c.
Still have same problem.

Oh, I get it, Larastan does not escape the parameter that it passes to PHPStan.

@ondrejmirtes You mean http://php.net/manual/en/function.escapeshellarg.php?

Yes, all arguments should be escaped with this.
On Sat, 1 Sep 2018 at 21:34, Nuno Maduro<EMAIL_ADDRESS>wrote:

@ondrejmirtes https://github.com/ondrejmirtes You mean
http://php.net/manual/en/function.escapeshellarg.php?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/nunomaduro/larastan/issues/130#issuecomment-417882140,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGZuJx_-oZP7QLoBLUU3mD9GRS0abUxks5uWuFcgaJpZM4WPZo9
.

--
Ondřej Mirtes

@Necko1996 @ondrejmirtes This issue has been fixed.


App crashes when open Expo Image Picker with turned on Session Replay

Expected Behavior
Open camera using ImagePicker.launchCameraAsync, exit from camera, then camera view successfully closes
Current Behavior
Open camera using ImagePicker.launchCameraAsync, exit from camera, app crashes
Possible Solution
Maybe, do not look after camera elements within plugin-session-replay-react-native?
Steps to Reproduce
Example project with minimal implementation of bug: https://github.com/AtlasShd/RN-camera-amplitude-conflict
The clear sequence of steps to reproduce this bug:

Start app
Go to tab "Explore"
Give permission to Camera access
Click to button "Launch camera"
Exit from Camera view (it doesn't matter if you take a photo or not)
App will crash

Environment

JS SDK Version: Expo SDK 52.0.11, plugin-session-replay-react-native 0.2.2
Installation Method: NPM
Browser and Version: iOS 18.1.1, iPhone 11

Log of error
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'An instance 0x300c83ed0 of class AVCaptureVideoPreviewLayer was deallocated while key value observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x300338500> (
<NSKeyValueObservance 0x300d156e0: Observer: 0x30006c620, Key path: contents, Options: <New: NO, Old: NO, Prior: NO> Context: 0x0, Property: 0x300d15c80>
<NSKeyValueObservance 0x300d14180: Observer: 0x30006c620, Key path: filters, Options: <New: NO, Old: NO, Prior: NO> Context: 0x0, Property: 0x300d15b30>
<NSKeyValueObservance 0x300d15590: Observer: 0x30006c620, Key path: contentsMultiplyColor, Options: <New: NO, Old: NO, Prior: NO> Context: 0x0, Property: 0x300d15860>
)'
*** First throw call stack:
(0x19b6087cc 0x1988db2e4 0x19a2b1310 0x21fe9cfb0 0x1988c9afc 0x1988c8f3c 0x1988c8edc 0x21fe8e310 0x223ad9860 0x223ad9570 0x223ad9030 0x223ad8fcc 0x223ad8e90 0x223ad9584 0x223ad9030 0x223ad8fcc 0x10103271c 0x10103a5e8 0x10103b360 0x1010485f0 0x101047c00 0x223adfc7c 0x223adc488)
DevLauncher tries to handle uncaught exception: An instance 0x300c83ed0 of class AVCaptureVideoPreviewLayer was deallocated while key value observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x300338500> (
<NSKeyValueObservance 0x300d156e0: Observer: 0x30006c620, Key path: contents, Options: <New: NO, Old: NO, Prior: NO> Context: 0x0, Property: 0x300d15c80>
<NSKeyValueObservance 0x300d14180: Observer: 0x30006c620, Key path: filters, Options: <New: NO, Old: NO, Prior: NO> Context: 0x0, Property: 0x300d15b30>
<NSKeyValueObservance 0x300d15590: Observer: 0x30006c620, Key path: contentsMultiplyColor, Options: <New: NO, Old: NO, Prior: NO> Context: 0x0, Property: 0x300d15860>
)
Stack Trace: (
"0   CoreFoundation                      0x000000019b6087d8 1532D3D8-9B3B-3F2F-B35F-55A20DDF411B + 534488",
"1   libobjc.A.dylib                     0x00000001988db2e4 objc_exception_throw + 88",
"2   Foundation                          0x000000019a2b1310 6D0212CC-3B9E-32C9-BE20-72989CE3ACB8 + 951056",
"3   CameraUI                            0x000000021fe9cfb0 991C8615-87DA-3936-98F8-B5C1BE5E1EA3 + 1916848",
"4   libobjc.A.dylib                     0x00000001988c9afc 1608892E-67DB-3F94-9FC2-91492B86C95F + 23292",
"5   libobjc.A.dylib                     0x00000001988c8f3c objc_destructInstance + 80",
"6   libobjc.A.dylib                     0x00000001988c8edc _objc_rootDealloc + 80",
"7   CameraUI                            0x000000021fe8e310 991C8615-87DA-3936-98F8-B5C1BE5E1EA3 + 1856272",
"8   libsystem_blocks.dylib              0x0000000223ad9860 D1AF7F13-234F-3876-9979-9F0D976697D6 + 10336",
"9   libsystem_blocks.dylib              0x0000000223ad957
nw_proxy_resolver_create_parsed_array [C12.1 proxy pac] Evaluation error: kCFErrorDomainCFNetwork: 308
nw_proxy_resolver_create_parsed_array [C13.1 proxy pac] Evaluation error: kCFErrorDomainCFNetwork: 308
nw_proxy_resolver_create_parsed_array [C14.1 proxy pac] Evaluation error: kCFErrorDomainCFNetwork: 308
Task .<10> HTTP load failed, 770/0 bytes (error code: -1005 [4:-4])
libc++abi: terminating due to uncaught exception of type NSException
Task .<10> finished with error [-1005] Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={NSErrorFailingURLStringKey=http://<IP_ADDRESS>:8081/node_modules/expo-router/hot, NSErrorFailingURLKey=http://<IP_ADDRESS>:8081/node_modules/expo-router/hot, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalWebSocketTask .<10>"
), _NSURLErrorFailingURLSessionTaskErrorKey=LocalWebSocketTask .<10>, NSLocalizedDescription=The network connection was lost.}

@AtlasShd can you please try with the latest version of the SR wrapper (v0.2.3)? A fix for this was pushed.

@AtlasShd can you please try with the latest version of the SR wrapper (v0.2.3)? A fix for this was pushed.

I've just tried new version. It works, thank you


[Feature] Support Spark SQL Agent

https://python.langchain.com/docs/modules/agents/toolkits/spark_sql

I have implemented a local version that allows you to view SparkSqlToolkitTest.
@Test
void testRunningQuery() {
    var sparkSql = SparkSql.builder()
            .spark(spark)
            .schema(SCHEMA)
            .build().init();

    var llm = ChatOpenAI.builder()
            .temperature(0)
            .build().init();

    var toolkit = new SparkSqlToolkit(sparkSql, llm);
    var agentExecutor = createSparkSqlAgent(llm, toolkit);

    // SELECT SQRT(AVG(Age)) FROM titanic
    var actual = agentExecutor.run("whats the square root of the average age?");
    // sometimes it's 'The square root of the average age is approximately 5.45.'
    assertEquals("5.45", actual);

    // SELECT Name FROM titanic WHERE Survived = 1 ORDER BY Age DESC LIMIT 1
    actual = agentExecutor.run("What's the name of the oldest survived passenger?");
    assertEquals("Barkworth, Mr. Algernon Henry Wilson", actual);
}


Add b2bf

Good! I'll merge it as soon as I'm finished having fun with it!

Codecov Report

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

@@           Coverage Diff           @@
##           master      #68   +/-   ##
=======================================
  Coverage   82.34%   82.34%
=======================================
  Files           5        5
  Lines         504      504
=======================================
  Hits          415      415
  Misses         89       89

Continue to review full report at Codecov.

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

The compiler is in a nice state, therefore merging.


Cannot Restore-BcDatabaseFromArtifacts because of SSL Provider issue

Hi. I can't restore a database from artifacts on my external SQL because of issue "SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted".
Regarding this issue: https://github.com/microsoft/SQLServerPSModule/issues/35 there is a switch -TrustServerCertificate in the SQLServer module. Can you add that switch to the Restore-BcDatabaseFromArtifacts script?
PS C:\Users\mkilinski> Restore-BcDatabaseFromArtifacts -artifactUrl (Get-BCArtifactUrl -type OnPrem -country w1 -version 24 -select Latest) -databaseServer SRV-SQL-01 -databasePrefix 'MKI-' -databaseName 'TEST'
Starting Database Restore job from https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/onprem/24.2.20227.20424/w1
C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.15\Import-BcContainerHelper.ps1
BcContainerHelper version 6.0.15
BC.HelperFunctions emits usage statistics telemetry to Microsoft
Running on Windows, PowerShell 5.1.22621.2506
Downloading Artifacts https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/onprem/24.2.20227.20424/w1
Importing PowerShell module C:\bcartifacts.cache\onprem\24.2.20227.20424\platform\ServiceTier\program files\Microsoft Dynamics NAV\240\Service\Management\Microsoft.Dynamics.Nav.Management.dll
Restore-BcDatabaseFromArtifacts Telemetry Correlation Id: a3c22923-895d-4b9f-8b3e-0c7e4e93c71d
A connection was successfully established with the server, but then an error occurred during the login process. (provid
er: SSL Provider, error: 0 - Łańcuch certyfikatów został wystawiony przez urząd, którego nie jest zaufany.)
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.15\Bacpac\Restore-BcDatabaseFromArtifacts.ps1:222 c
har:13
+             $job | Receive-Job
+             ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Invoke-Sqlcmd], SqlException
    + FullyQualifiedErrorId : SqlExceptionError,Microsoft.SqlServer.Management.PowerShell.GetScriptCommand
    + PSComputerName        : localhost

The same situation when I am trying to create a new BC container with external SQL.
BcContainerHelper is version 6.0.18
BcContainerHelper is running as administrator
HyperV is Enabled
Host is Microsoft Windows Server 2022 Standard - 10.0.20348.2461
UsePsSession is True
UsePwshForBc24 is True
UseWinRmSession is allow
UseSslForWinRmSession is True
Docker Client Version is 26.1.4
Docker Server Version is 26.1.4
Removing Desktop shortcuts
New-BcContainer Telemetry Correlation Id: 5b18c24e-bb65-48cb-9260-bbb198da507d
Invoke-SqlCmd : A connection was successfully established with the server, but then an error occurred during the login
process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)
At C:\Program Files\WindowsPowerShell\Modules\BCContainerHelper\6.0.18\Bacpac\Remove-BcDatabase.ps1:41 char:16
+     $dbFiles = Invoke-SqlCmd `
+                ~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Invoke-Sqlcmd], SqlException
    + FullyQualifiedErrorId : SqlExceptionError,Microsoft.SqlServer.Management.PowerShell.GetScriptCommand

Full script (that I can run and repro the problem) + full output please.
Thanks

What SQL Server are you running on the host?
Does this work if you use BC23?
Does it work if you set $bcContainerHelperConfig.usePwshForBc24 = $false before you run the script?

SQL Server Standard, version 16.0.4105.2
Same issue after set  $bcContainerHelperConfig.usePwshForBc24 = $false.
With BC23 same situation. With SQL2019 (15.00.2000.05) still the same.

Is your SQL Server installed with a self-signed certificate for SSL communication?
Could you remove that?

IDK how to check it.  Going through this article https://learn.microsoft.com/en-us/sql/database-engine/configure-windows/configure-sql-server-encryption?view=sql-server-ver16 I didn't see, if the SQL have some certificates installed. I've checked the system register, even sp_configure T-SQL queries, nothing. I don't know, what can I do more, so why I am asking about add the TrustServerCertificate switch. I can fork the repository and make it by myself and then make a Pull Request.

The problem is that the current implementation works for everyone else. Any change needs to be tested with various versions.
Feel free to create a pr, which works for you - then we can test

Looking The reason for this is that you have a newer version of the SqlServer powershell module on your computer.
This obviously have to be supported - but without removing support for the old version of Invoke-SqlCmd.
Feel free to grab the changes from my PR and test it.

Fixed in preview


SQLCMD mode doesn't support :connect

Issue Type: Bug
Try some SQLCMD commands. Below error is raised:
Execution failed due to an unexpected error:
SQL Execution error: A fatal error occurred.
Incorrect syntax was encountered while :connect was being parsed.
Azure Data Studio version: azuredatastudio-insiders 1.12.0-insider (93c9426f25e632e8e3dd6e572d48d559ae07a7bf, 2019-10-10T18:18:16.586Z)
OS version: Windows_NT x64 10.0.18999

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz (8 x 2904)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwareoop_rasterization: disabled_offprotected_video_decode: enabledrasterization: enabledskia_deferred_display_list: disabled_offskia_renderer: disabled_offsurface_synchronization: enabled_onvideo_decode: enabledviz_display_compositor: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
31.85GB (15.48GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (8)

Extension
Author (truncated)
Version

ssmskeymap
kev
1.1.0

admin-tool-ext-win
Mic
0.0.2

agent
Mic
0.43.0

azuredatastudio-postgresql
Mic
0.2.2

dacpac
Mic
0.7.0

import
Mic
0.11.0

profiler
Mic
0.10.0

sql-vnext
Mic
0.16.0

@udeeshagautam I believe this is being worked on right now - is there an existing bug or will you track this one?

Yes we have identified the keywords that don't work - tracked here : https://github.com/microsoft/azuredatastudio/issues/7381

Closing this as a duplicate of #7381.


Create parser for integrations with tRPC etc

Picking up this conversation from the PR here https://github.com/trpc/trpc/pull/4793#issuecomment-1716854579 in regards to tRPC integration
@juliusmarminge if Valibot provides a special function for tRPC as a compatibility layer, what do you think would be the best name for it? Below are a few examples:
import { object, string } from "valibot";
import { … } from "valibot/trpc";

const schema = object({ key: string() });

.input(parse(schema))    // parse
.input(wrap(schema))     // wrap
.input(use(schema))      // use
.input(with(schema))     // with
.input(valibot(schema))  // valibot
.input(as(schema))       // as
.input(fits(schema))     // fits
.input(is(schema))       // is
.input(adapter(schema))  // adapter
.input(trpc(schema))     // trpc

I think a good implementation would be
Create parser:
import { object, string } from "valibot";
import { createParser } from "valibot";

const schema = object({ key: string() });
const objectParser = createParser(schema);

With tRPC
.input(createParser(schema))

Without tRPC
const parseObj = createParser(
    object({
        key: string(),
    })
);

parseObj({ key:' ..' });

Should be functionally equivalent of doing _.curry(parse, schema)

Potential additions

Add a createSafeParser-function
Make Output/Input work with the parser too
As mentioned before, it'd be nice to not need this at all and just be able to do e.g. object({ key: string() }).parse(...) but I understand you want to keep the build minimal

For people who have not been involved before, I would like to give some context to this issue.
Initially, Valibot used try/catch for error handling. However, we changed this for performance reasons. This change made the integration with tRPC a bit more cumbersome. tRPC requires an error to be thrown at the end of the validation, instead Valibot now returns an object with the output or issues.
Since Valibot uses a modular design to keep the size of each bundle to a minimum, a schema no longer includes this functionality. Instead, this functionality is included in our parse method. This results in us having to add this functionality internally or externally to a Valibot schema when used with tRPC.
An example of this is shown above. A function such as createParser could be used to add the functionality to a schema so that it is compatible with tRPC.

Hello all 👋,
Wouldn't having a curried version of parse (in addition to the current behavior) be the solution?
Here is a playground: https://tsplay.dev/mqyR2m

Yes for tRPC this would be perfect. However, we would then have two different ways parse can be used and that makes using a library a bit confusing in my opinion. I will think about this.

Initially, Valibot used try/catch for error handling. However, we changed this for performance reasons.

@fabian-hiller Could you be more specifically so that we won't be tricked by this in the future? How was the performance influenced by the try/catch statements?

@Songkeys have a look at page 39 in my thesis: https://valibot.dev/thesis.pdf

This issue should be solved by our new parser and safeParser API.


feat: Add outline of proceedings

* Add first outline of the proceedings.

Once we get an outline in we can also break it out into multiple documents to make things a bit easier to edit collectively without fear of stepping on each other while doing PRs.


use .Pages in list layout

Right now "Categories" and "Tags" show all posts, instead of the the ones proper to the category or tag. This should fix that.

@joseph-lozano Heya! This looked good -- did you mean to close it? 😃

It actually wasn't quite right... I will reopen in a bit

I also didn't want to use master branch, since the was tracking some of the color changes I was going to use.


blazorserver-singleOrg sample does not authenticate using AAD app registration

Please provide us with the following information:

This issue is for a: (mark with an x)
- [x ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Configure a valid Domain and TenantId and then enter random string of characters in ClientId and you are still able to authenticate the user. When using a valid ClientId, no app related claims are returned. Specifically, no app role claims are provided.

Any log messages given by the failure

Expected/desired behavior

I would expect that with a valid ClientId entered, only user registered for the application in AAD would successfully authenticate. I would also expect to receive app role claims for authorization

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
Windows 10

Versions

.Net Core 3.1

Mention any other details that might be useful

Thanks! We'll be in touch soon.

Are you sure you're not using User secrets? (in Visual Studio, right click on the project | manage user secrets)

Are you sure you're not using User secrets? (in Visual Studio, right click on the project | manage user secrets)
I don't have anything in user secrets, but it does seem like appsettings.json is getting cached somewhere. I ran it again after some code changes and the client id was rejected. Perhaps just a VS issue rather than with your code sample.

Should app role claims be available in this sample application is there additional middleware setup required?

blazorserver-singleOrg sample is only about authentication with Azure AD. We will provide additional chapters including app roles in near future.
For your question about if app role claims be available, the answer is yes. If you have assigned app roles then it will be present in claims collection. In the sample we are displaying some of the claims, if you want to see all claims then you can update this line of code.

Closing the issue, let us know if you need further guidance.


Implement HTTP API for quotas and limits

In ciao-controller/api/api.go add support for returning quotas and limits over the API specified in #1034

Major remaining bit for this is to write custom JSON Marshaller/Unmarsheller to handle mapping "unlimited" to/from -1 and excluding "Usage" on limits.

api unit test coverage


Modules not extended when {inline: true}

Pretty much what the title says :) {inline: true} Modules don't get extended. I'm on v1.0.0-beta.12, fwiw.

Yes. We have to refactor how extension works. I think it will be possible to add this functionality.

Cool. For now I'll just add instructions not to do that for reason-apollo-client.

Resolved!


Fix to nested transactions

Fix to nested transactions so that only outer one triggers starts, commits, and rollbacks. The _trans_depth variable was never getting incremented so every trans_complete was causing a commit. This fix makes sure it is incremented and only the most outer transactions have any effect.

Just realized this was fixed in pull request #691, sorry for the duplicate


How to make larger carry weights

What do I need to edit to have higher carry weight and more slots please and thanks

This Backpack Script is written for Chezza Inventory!
But you can use it with Config.BagInventory = 'expand' with every inventory.


CORE-16320 - default the state manager credentials for local deployments

Some developers will run Corda via the following commands:
1 - Install prereqs
helm upgrade --install prereqs -n corda \
  oci://corda-os-docker.software.r3.com/helm-charts/corda-dev \
  --render-subchart-notes \
  --timeout 10m \
  --wait

2 - Install Corda
helm upgrade --install corda -n corda \
oci://corda-os-docker.software.r3.com/helm-charts/corda \
--version "<helm chart version number>" \
--values values.yaml \
--wait

or
helm install corda -n corda charts/corda --values values-prereqs.yaml --wait

The prereqs helm chart does not deploy a state-manager postgres instance. Thus, in order to get developers up and running they should point to the cluster state-manager.

Closing because in https://github.com/corda/corda-runtime-os/pull/4763 we'll make it default to use cluster db for authentication in all cases.


xDEFI fell over

Overview
xDEFi

battles with other wallets for dominance when it should eb singularly triggered to connect
fails silently without having console open
already has this weird error before even trying to connect.

References and additional details
https://www.loom.com/share/c4fb3ae2eb454e09b425723a7a7ecad4?sid=c36a171b-c30b-4260-9d8e-a48a897488f5
Acceptance Criteria

Connecting with xdefi triggers xdefi only no need to shut off other extensions
if not
Triggers walletProvider.xdefi.errors.multipleWallets in connext.tsx earlier in process and alerts user to deactivate other extensions
no more hitting pair twice.

Need By Date
No response
Screenshots/Mockups
No response
Estimated effort
No response

A possible contender for spiking into EIP6963? Theoretically a huge lift in hdwallet, but if there's a way we can do this, that would make our lives so much easier WRT multiple wallet providers, and would have the added benefit of giving us visibility on the Zerion campaign

guys - we need to follow the process here, not throw random spikes into bug tickets. We have a huge backlog of work, lets follow the correct process and avoid assigning work outside of that.

@twblack88 @0xean If the issue is simply "I cannot get XDEFI to connect when I have multiple wallets installed", let's close this, as this is not an issue and there is no way to solve it in the current state (barring specs like https://eips.ethereum.org/EIPS/eip-6963 which do bring a solution to the problem but are a big lift and not a simple "fix")

battles with other wallets for dominance when it should eb singularly triggered to connect / Connecting with xdefi triggers xdefi only no need to shut off other extensions if not not how it works unfortunately. This is a general issue of the ecosystem with multiple wallets injecting window.ethereum.

XDEFI, like many other, allow you to "prioritize" it meaning it will try and hijack (by overriding it last) window.ethereum which "solves" this issue (prioritize whichever wallet you want to be used if they offer this option, and refresh)

fails silently without having console open not sure what you mean here but you shouldn't have to open the console as a user for this - various window.ethereum injectors simply do not work well when ran together, and as a user the unfortunate solution is to either use the prioritize option if available in your wallet, or uninstall others
already has this weird error before even trying to connect. assuming you mean the error when clicking on "Pair", that's working as it should, and the console errors you see are unrelated to ShapeShift, those are errors from XDEFI itself
no more hitting pair twice. / refresh: Ditto above, wallets will race to inject window.ethereum and it's usual to have to refresh when this changes, e.g Frame does so automatically when you inject it as MM

https://github.com/shapeshift/web/assets/17035424/bb4c233c-927d-4cd4-88b2-29a81018199c

yea, I am fine with not being able to support multiple wallets installed simultaneously. The only question I think is can we better detect this state and add better error messaging to the user so they know why its not working.  This is certainly not a high priority as compared to the other tickets we currently have open tho.

better detect this state and add better error messaging to the user so they know why its not working

That's all i was tagging as well. Sorry if it came off different.
@gomesalexandre agreed.
1/2 noted
3 gotcha

see top of this comment. basically low priority could we handle better.

gonna open a diff ticket. i found an actual issue with xdefi which is that it needs to be paired twice. funky.


Mark method CharPredicate.asMaskBased as deprecated

I'm in favor of removing this method since it's in the internal package and isn't used in the repo, but... Mima beats on the hands since that's a public class anyway.

Yeah, these public internal things are quite annoying, because they might be used in other http4s repos.
I would like to make as many of these go away as possible before 1.x.


Pls Add url icon in sidebar similar speed dial in browser

Please Add url icon in sidebar similar speed dial in browser .

The advanced table plugin can show icon in sidebar. it's very convince that If use the same feature for open url .

You can already display a custom frame's "Open" button in the left sidebar. If that's not what you want, I might be misunderstanding your request.

the left sidebar has not enough space for more urls and mixed with plugin icons.
My means the pane sidebar, please try to open advanced table plugin settings - "show icon in sidebar".

Ah. I'm sorry, I'm not interested in adding a feature like this right now.

Why have no interested ?
That's very convince for bookmark more urls, for switch open urls.
Why have no interested ?

While I think your idea is nice, I also think it's out of scope of what this plugin is intended to do. While I realize that the image you showed is just an example, it contains a lot of stuff that I don't expect people to want to open within Obsidian. While it makes sense to view your emails, your calendar and your notes using Custom Frames, I don't think anyone would reasonably want to look at Amazon or watch Netflix within Obsidian rather than just opening it in their browser normally. With that in mind, I think the left sidebar feature is more than enough for quickly accessing your frames.
Also, it sounds like you might have a lot of clutter in your sidebar that you don't actually use if it's getting bad enough that you claim there isn't enough space for additional buttons. I recommend a plugin like Commander which allows you to hide sidebar buttons that you don't actually use.

If you know beam browser, might you got my idea . Why I need more urls.
https://twitter.com/getonbeam?lang=en
It's almost all informations we got from browser, right ?
The beam browser is taking notes within the browser ,Text, images, videos, Figma boards, Spotify..capture the whole web!
I want to try combine browser within notes app (Obsidian) to reduce steps, speed up taking notes between browser and notes app(Obsidian).
Left is browser ,right is taking notes , the two parts combined within only 1 app, We don't switch app to another app.
That's very wonderful. right ?

As I said, this is out of scope for what I want Custom Frames to be able to do.


Compile example error

Version: 19.16
Where did you get dlib:  dlib.net
Platform:  Windows 10 x64
Compiler:  Microsoft Visual Studio 2015

Hi, Davis! First I want to thank for this wonderful library! I'm worked with her for a long time in python, but decided to start with C++, compiled, everything is fine, I run any example and get the following error:
Error LNK2001 Unresolved external character "USER_ERROR__inconsistent_build_configuration__see_dlib_faq_2"
Error LNK1120 Unresolved External Elements: 1
What is the problem?

I downloaded version 19.7, it all worked, why did the new versions display such an error?

http://dlib.net/faq.html#WhydoIgetUSERERRORinconsistentbuildconfigurationseedlibfaq2


Ampesand is not visible for Text property in WindowsElement

I have problem with "&" sign. Text property of WindowsElement does not recognize "&" sign. I attached a screen.

Hi @adrozdowski,
What keyboard layout are you using? WinAppDriver assumes a standard 101 keys US keyboard layout.
As an alternative, you can try passing in the following:
 session.Keyboard.SendKeys(Keys.Shift + "7" + Keys.Shift);

Hello. I have solved my problem. I just escaped & with another &. So my line of code looks like:
editBox.SendKeys("&&");


CupertinoPageRoute - page transition without animation without using isInitialRoute

Flutter has released a new SDK (1.17 - 05.29.2020). And in this SDK, the isInitialRoute property of CupertinoPageRoute has been deleted. Is there an alternative to this?
This feature canceled the page transition effect.
CupertinoPageRoute(
         settings: RouteSettings(name: name, isInitialRoute: true),
         builder: (context) => page);

Thank you!

Hi @aydin-faruk
does it answers your question? https://flutter.dev/docs/release/breaking-changes/route-navigator-refactoring

Hi @VladyslavBondarenko
What is the alternative? Won't it open without effects? I want page transition without animation or effect on IOS. Do you have an idea ?

@aydin-faruk Can you share more details of your use case? If you don't want page transition at all you can use PageRouteBuilder without specify a buildTransition method.

@chunhtai  PageRouteBuilder is not exactly native. For example, if you use PageRouteBuilder, you will not be able to withdraw.

I am not sure I understand, withdraw do you mean the backswipe to pop the route? I think it will be better if you can share more details on your use case. Such as, when do you want to have transition and when you don't. What other functionality of the route you want to extract from CupertinoPageRoute?

Yes backswipe

In that case, you will probably need to implement you own. You can take a look at how cupertinaoPageRoute creates the gesture recognizer, the only thing you need to change is to make sure the gesture does not drive the page animation and that should be it. We currently don't have a plan to make this customizable because this is a rare use case.

My question is, has another solution been added that will do the job of isInitialRoute in the new version of Flutter SDK? And it will be backswipe feature. So native page transition without animation.
CupertinoPageRoute(          settings: RouteSettings(name: name, isInitialRoute: true),          builder: (context) => page);

Is this something  you are looking for? https://api.flutter.dev/flutter/material/MaterialApp/onGenerateInitialRoutes.html

No. Thank you for your help. I will search.

Hi @aydin-faruk
This issue doesn't seem to describe a bug or a feature request. Please see https://flutter.dev/community for resources and asking questions like this,
you may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you


{WIP}(MODULES-3228) Use PSGallery Tags on DSC Resources

Each submodule tracks on a commit SHA1, but that SHA1 doesn't
necessarily correspond or represent an actual release of that
submodule (aka DSC Resource) to the PowerShell Gallery. However,
those resources are tagged when they are released to the gallery
with *-PSGallery, where * represents the version going up to the
gallery. This allows someone to find the currently released
version of a module/DSC Resource.
Instead of trusting the tags that are available for a resource in
the list of submodules, which tends to be completely inaccurate if
you are looking for the latest release, gather all PSGallery tags
and find the latest version. Then check that version out for
building the resource.
This code is similar to what James proposed in de5a10eac0.
Paired with James Pogran <james.pogran at puppet.com>
Outstanding items:

[ ] Add a yaml to track versions
[ ] Use the yaml by default
[ ] --latest to attempt to update the versions

@puppetlabs/windows thoughts so far?

Alright @Iristyle - handoff. There is only adding in the --latest`--update` switch left for you to implement and for folks to review.

I did not generate the resources from this to allow the review of this. I think that could/would be done in a followup PR closely following the acceptance of this.

Once comments are looked over and addressed here, we can close this in favor of #219.

Unless I should move my comments over.

Superseded by #219


arm64 support

Is your feature request related to a problem? Please describe.
Unable to start client or api on arm CPUs by using containers.
Describe the solution you'd like
Provide a container image for api and client that is compatible with amd64 and arm64.

Pipeline broken since adding the arm64 architecture. Doesn't work on GHA or any amd64 CPU, but works perfectly on MacBook M2.


failed at step 2

Which lab is it that you're having issues with?
the docker for beginers

Description
not be able to install python and pip saying no files found
I changed py-pip to py2-pip but still not working

Output of docker version:
Docker version 17.05.0-ce, build 89658be

Output of docker info:
root@vblinux:~/software/docker/flask-app# docker build -t docker/myapp .
Sending build context to Docker daemon   7.68kB
Step 1/8 : FROM alpine
 ---> 665ffb03bfae
Step 2/8 : RUN apk add --update py2-pip
 ---> Running in 9e963eb5c93c
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.6/main: temporary error (try again later)
WARNING: Ignoring APKINDEX.84815163.tar.gz: No such file or directory
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.6/community: temporary error (try again later)
WARNING: Ignoring APKINDEX.24d64ab1.tar.gz: No such file or directory
ERROR: unsatisfiable constraints:
  py2-pip (missing):
    required by: world[py2-pip]
The command '/bin/sh -c apk add --update py2-pip' returned a non-zero code: 1

Additional environment details (AWS, Docker for Mac, Docker for Windows, VirtualBox, physical, etc.):

I believe this may have been a temporary problem with the alpine linux cdn. I'm unable to reproduce the error. What happens when you try again?

@ManoMarks  when i tried to do the 2.3.3 build the image with command
$ docker build -t <YOUR_USERNAME>/myfirstapp .

It will produce the error i post.
I checked out the logs that it showed something wrong with the CDN resource but its been few days  i keep getting the same error. so confused.
my files attached.
flask-app.zip

Even with the your Dockerfile I'm unable to reproduce it. Are you on a proxy? We've had trouble with some proxies blocking the alpine cdn.

I am not on a proxy but using WIFI at work. But I just tried at home, still get the same issue.
BTW my machine is  windows 10  and I am running docker on Ubuntu on Virtual Box , can this be a problem?

Could be a weird windows networking issue, or something between the VM and Windows. Are you on Windows 10Pro? You could try Docker for Windows.

I tried to run apt-get update or  ping Google.com in different Linux OS containers like CentOS, Alpine, and Ubuntu and they all failed to do so. I think the problem is that every container cannot have access to connect to the Internet. So I googled how to make container connect to Internet.
The solution is to go to /etc/default/docker  and uncomment DOCKER_OPTS="--dns <IP_ADDRESS> --dns <IP_ADDRESS>"    like this
# Docker Upstart and SysVinit configuration file

#
# THIS FILE DOES NOT APPLY TO SYSTEMD
#
#   Please see the documentation for "systemd drop-ins":
#   https://docs.docker.com/engine/admin/systemd/
#

# Customize location of Docker binary (especially for development testing).
# DOCKERD="/usr/local/bin/dockerd"

# Use DOCKER_OPTS to modify the daemon startup options.
  DOCKER_OPTS="--dns <IP_ADDRESS> --dns <IP_ADDRESS>"

# If you need Docker to use an HTTP proxy, it can also be specified here.
# export http_proxy="http://<IP_ADDRESS>:3128/"

# This is also a handy place to tweak where Docker's temporary files go.
# export DOCKER_TMPDIR="/mnt/bigdrive/docker-tmp"
~

now restart the service sudo service docker restart   then it will work
Got stuck for few days, thanks for this post, helped me a lot.
http://odino.org/cannot-connect-to-the-internet-from-your-docker-containers/

Thanks for the follow-up


NumPy 2.0 support

NumPy 2.0 is coming out soon ( https://github.com/numpy/numpy/issues/24300 ). NumPy 2.0.0rc1 packages for conda & wheels came out 3 weeks back ( https://github.com/numpy/numpy/issues/24300#issuecomment-2030603395 )
To prepare for NumPy 2.0, it might be worthwhile to start testing against NumPy 2 in CI
NumPy has put out a migration guide. More details are in the release notes
If Numcodecs make use of NumPy's C API (and produces wheels that use it), having a release of Numcodecs with wheels built against NumPy 2.0.0rc1 would be helpful to ensure NumPy 1 & 2 compatible wheels (as wheels built against NumPy 1 won't be compatible with NumPy 2). More details in this NumPy 2 ABI doc
Also as NumPy is tracking ecosystem support for NumPy 2.0, it would be helpful to share Numcodecs current support status in issue (with any plans): https://github.com/numpy/numpy/issues/26191

As Numcodecs has relied primarily on the Python Buffer Protocol and not really used NumPy's C API, this shouldn't involve rebuilding Numcodecs. Have just searched through the code to reconfirm this
The thing to check for would be if Numcodecs is affected by any NumPy Python API breaks. This could be done by adding it to CI here

FWIW attempted running the test suite locally with NumPy 2.0.0rc1 from conda-forge and it appeared to pass. So doesn't look like any changes are needed
Still would be good to add to CI

We do have an optional dependency on zfpy
https://github.com/zarr-developers/numcodecs/blob/4abe4be2d32a1e5743982f3056aac937f9664da6/pyproject.toml#L66-L68
zfpy still needs to do some work to migrate: https://github.com/LLNL/zfp/issues/210
However this just means users won't be able to install zfpy until that is resolved. No impact on installing Numcodecs itself

It might be worth doing a release with the numpy<2 pin first (which is now in main) while this gets sorted out?

:+1: Certainly what is happening in several other of my repos.

Didn't @jakirkham confirm above already that everything works as expected for numcodecs? If so, no need to add a pin now. Based on that testing, we marked numcodecs as compatible in https://github.com/numpy/numpy/issues/26191 a long time ago.
The linked PR (gh-535) only shows test failures because of zfpy, which @jakirkham had also commented on already.

👍 without zfpy looks like it tests work fine with numpy 2.0.

Yep all we needed was CI. Thanks for adding that! 🙏
NumPy 2 support in zfpy is a separate issue. Presumably this would be solved with upstream PR ( https://github.com/LLNL/zfp/pull/231 ) and a new tag. In any event it is not blocking for numcodecs


Document what casts are implemented for each type

We should probably add something similar to what we did for the core_functions in that every type should likely have a json file describing what it can cast to, then we can leverage that to also generate a table of type -> type casts
That would also help development, to know which casts are missing

Produced this:


headerStyle isn't respected when headerBackground is defined

After upgrading to an official v2.x version of Stack, I noticed that headerStyle is no longer applied to the header if headerBackground is passed as well.

Please provide a repro along with expected behavior and current behavior.

You can see it in an official example. E.g.:
https://github.com/react-navigation/react-navigation/blob/master/example/src/StackWithTranslucentHeader.tsx#L235
headerStyle's borderBottom isn't visible when it's passed along with custom headerBackground. Right now I'm not sure if that behaviour was different in previous versions, but it would be fine if you could check the proper way and correct the examples if needed.


Fixes for bokeh server widgets

Fixes and unit tests for bokeh server widgets

Added a test as well and the fix is straightforward. Merging.


Attempted to use the new GitHub Linguist hosts syntaxing

If I understand .gitattributes values correctly, this should hopefully result in colour text on e.g. https://github.com/StevenBlack/hosts/blob/master/data/mvps.org/hosts

Hello @DandelionSprout thank you!  Let's try this!
Merging.

@DandelionSprout I'm not seeing any benefit to this.  There's no change in how Github displays hosts files, and in VSCode the changes I see are of no benefit whatsoever.
Moreover the extension evidently doesn't recognize <IP_ADDRESS> as an IP address?
I'm reverting this.
However, thank you for the suggestion.


Further Dockerfile tweaks for Heroku build

Follow up to #12. It turns out Heroku doesn't support HEREDOC either

@ababic @RealOrangeOne I've addressed your queries/suggestions


D435i not supported via USB2 bus

We just received a few D435i devices, which we thought would be a drop-in replacement for a D435 in order to add an IMU to our system.
However, when plugged in via USB2, the D435i enumerates as an "Intel RealSense USB2", product id 0AD6. AFAICT this is the id for a basic 430 module. Neither the RGB sensor or the IMU is identified, only the infrared and depth stream. I can provide kernel logs and the output of rs-enumerate-devices, but there's no surprises in them.
Are there plans to support the D435i features over USB2?

Required info

Camera Model
D435i

Firmware Version
<IP_ADDRESS>

Operating System & Version
Ubuntu 16.04

Kernel Version (Linux Only)
(e.g. 4.14.13)

Platform
Up Squared

SDK Version
2.18.0

Language
n/a

Segment
robotics

Steps to replicate: plug D435i into USB2 port.

Hi neomanic,
Please connect camera USB 3.1 type C port to the cable first, then plug in the cable to PC. It should show up as USB3.1
Thanks,

To put @RealSenseCustomerSupport response in context, yes, currently this is D435i's firmware limitation. Your point, however, is absolutely valid.
I'm still checking to get at least official commitment for adding IR and RGB streams, similar to the D435. Adding IMU via USB2 would be more complicated.
Will update once I get a response.

Yes, I am aware it operates fine over USB3. I used another machine to check that it was a USB2 issue only before reporting here.
We are not using USB3 on the Up board as we had nothing but trouble trying to get it to work in our robot's physical environment, and the data we need is fine over the bandwidth of USB2.

@neomanic  so I can't get RGB stream with D435i ??? with USB2.0 port? Is it working with D435 then?
@RealSenseCustomerSupport  Is there is any firmware update that supports USB 2.0?

@spk421 as far as I know there has not been a firmware update to support USB2 for the 435i. You can only access the depth stream over USB2, not color or IMU.

@spk921 as far as I know there has not been a firmware update to support USB2 for the 435i. You can only access the depth stream over USB2, not color or IMU.

@neomanic thanks for the andwers. Then does D435 can acess color stream with USB2? Also, D435i doesn’t support MacOS currently but does D435 support MacOS?

Yes, with USB2 you can use depth and color streams at the same time under USB2. It works very well if you are happy with lower-resolution streams.
Sorry, while I develop from a Mac, my D435 code runs under Linux only so I don't know about MacOS support.