EnergyCalibration: energy2ph fails with use_approximation and use_zerozero

Original report by Galen O'Neil (Bitbucket: oneilg, GitHub: oneilg).

In [59]: cal2._use_loglog, cal2._use_zerozero, cal2._use_approximation
Out[59]: (False, True, True)

In [60]: cal2.energy2ph(5000)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-60-2406f84365a8> in <module>()
----> 1 cal2.energy2ph(5000)

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mass-0.4.3-py2.7-macosx-10.10-x86_64.egg/mass/calibration/energy_calibration.pyc in energy2ph(self, energy)
    158             self._update_converters()
    159         energy_residual = lambda ph, etarget: self._ph2energy_anon(ph)-etarget
--> 160         return sp.optimize.brentq(energy_residual, 1e-6, self._max_ph, args=(energy,))
    161
    162     def energy2dedph(self, energy, denergy=1):

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/optimize/zeros.pyc in brentq(f, a, b, args, xtol, rtol, maxiter, full_output, disp)
    436     if rtol < _rtol:
    437         raise ValueError("rtol too small (%g < %g)" % (rtol, _rtol))
--> 438     r = _zeros._brentq(f,a,b,xtol,rtol,maxiter,args,full_output,disp)
    439     return results_c(full_output, r)
    440

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mass-0.4.3-py2.7-macosx-10.10-x86_64.egg/mass/calibration/energy_calibration.pyc in <lambda>(ph, etarget)
    157         if self._model_is_stale:
    158             self._update_converters()
--> 159         energy_residual = lambda ph, etarget: self._ph2energy_anon(ph)-etarget
    160         return sp.optimize.brentq(energy_residual, 1e-6, self._max_ph, args=(energy,))
    161

/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mass-0.4.3-py2.7-macosx-10.10-x86_64.egg/mass/mathstat/interpolate.pyc in __call__(self, x, der)
    377             splresult[low] = self.lowline(x[low]-self.x[0])
    378         if np.any(high):
--> 379             splresult[high] = self.highline(x[high]-self.x[-1])
    380         return splresult
    381

TypeError: 'float' object has no attribute '__getitem__'
> /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mass-0.4.3-py2.7-macosx-10.10-x86_64.egg/mass/mathstat/interpolate.py(379)__call__()
    377             splresult[low] = self.lowline(x[low]-self.x[0])
    378         if np.any(high):
--> 379             splresult[high] = self.highline(x[high]-self.x[-1])
    380         return splresult
    381

Original comment by Galen O'Neil (Bitbucket: oneilg, GitHub: oneilg).

Actually it crahses for both use_zerozero True and false, as long as use_loglog is False

Original comment by Galen O'Neil (Bitbucket: oneilg, GitHub: oneilg).

note that in the most recent develop there is a file "test_calibration.py", all the commented out tests fail because of this issue

Original comment by Joseph Fowler (Bitbucket: joe_fowler, ).

Problems come from mass.mathstat.interpolate objects SmoothingSpline and CubicSpline.
They do not (yet) have consistent behavior for the form of their output depending on whether the input is an array, a list, or a scalar. Working on getting it there.
BTW, this is and always has been a serious hassle about writing functions that act successfully on numpy arrays or scalars. I assume the behavior we want is scalar -> scalar and sequence (array, tuple, list, whatever) -> array. Various questions on stack exchange lead me to believe that there's not one single, canonical and simple way to achieve this.

Original comment by Joseph Fowler (Bitbucket: joe_fowler, ).

Make EnergyCalibration.ph2energy(x) and .energy2ph(x) return values consistent.
Return values should match x as scalars/arrays. That is, scalar in = scalar out.
I had to change 0-d arrays to actual scalars by x[()]. Ugh.
Also, I added feature to EnergyCalibration.energy2ph(x) so that it will accept
a non-scalar input for x. Dangerous! That could be slow for long x. Fixes #57.


Minor visual adjustments to the DA single template

Mainly for mobile, to reduce the profile image size and prevent wrapping of the "see all" link.

i dont know how involved Anita has been in reviews but just wanted to make sure yall knew that she did mobile designs for these pages
https://www.figma.com/file/5ob0PX54tpzhVSjBWAmCyV/Developer-Advocate-Pages?node-id=138%3A1504

@susanev Yes, thanks -- I followed those designs while building these pages. (We decided not to build the upper-right navigation with this first pass, but everything else should pretty well align.)
Since you're here, mind giving this a +1 so we can ship the things that need fixing? 😉

hmm, okay. there are a few other things in there that seem different from the designs. but as long as Anita was involved in reviews then im good with it.

cc @anita-trimbur as we did ship this quickly last week to get it out for some upcoming events. (The DA team all reviewed, but I actually thought @susanev did the designs, so since PTO, didn't think to ask anyone else.) Hopefully there isn't anything here that's not acceptable! If so, feel free to file a follow up. And we can circle back to take care of the upper-right navigation thing as well.


concurrent fast jobs limit

I have account with 3 concurrent fast jobs.
On discord, i can send more then 3 prompts.  The fourth and beyond just wait in queue.
But in your code it can't send more than 3 prompts at the same time. If I send 4, the fourth one just doesn't send.
Can this be solved? Maybe a different configuration on 'interactions' post.
Or is it not possible here?
Thsnks!

Hi,
I was not aware of this limitation of 3 simultaneous image creations.
I added a waiting mechanism to not send more than 3 images at the same time.
The wait is currently set at 15 minutes but might not be enough if the queue is long.
Please test and let me know if everything works.
Realease: v2.1.4

In my opinion, the solution is not correct, because if this was the problem I would simply purchase a larger package that has a limit of 12 photos at the same time.
I put it in the queue.
But in your API it just can't get it into that queue.
So I asked, maybe it's something related to interactions parameters.

I share your opinion, the solution is not optimal, but I currently do not have time to look more seriously at this question.
Discord's API documentation is awful and I know in advance that I'm going to spend a lot of time to come up with a workable solution that takes into account the specifics of the plans offered by Midjourney.
If you have time, you can offer me a Pull Request.
I already know that I will not be able to invest myself in such an evolution before September


class folder

how to solve about FileNotFoundError: Couldn't find any class folder in ./ps_data/data.

thank you for reply！
i have another question，how to use the pre-trained models to detect a fake picture and visualize them.
thank for you very much!!!

Hi, there are some ways to visualize the network. You can have a look at here. For the Capsule-Forensics network, because its architecture is different from the standard CNNs, you need to modify the example's code a little bit.


unable to do port forwarding: socat not found

not sure if this issue is specific to using tack, but i have setup a mongo cluster and am able to access the command line, but i am not able to port-forward due to socat not found
i have a non coreos k8s cluster running and there is working.
here is the error:
➜  ~ kubectl port-forward trint-mongodb-2-94074312-6uzb3 37017:27017
Forwarding from <IP_ADDRESS>:37017 -> 27017
Forwarding from [::1]:37017 -> 27017
Handling connection for 37017
E0816 11:08:45.179697    9528 portforward.go:327] an error occurred forwarding 37017 -> 27017: error forwarding port 27017 to pod trint-mongodb-2-94074312-6uzb3_default, uid : unable to do port forwarding: socat not found.
E0816 11:09:44.409445    9528 portforward.go:173] lost connection to pod

has anyone had a similar issue or do i have to use the beta channel for coreos?

@nkhine https://github.com/kubernetes/kubernetes/issues/19765 seems to be the cause

yeah i was reading at it and other suggestions
On 16 August 2016 at 12:30, David Lonyai<EMAIL_ADDRESS>wrote:

@nkhine https://github.com/nkhine kubernetes/kubernetes#19765
https://github.com/kubernetes/kubernetes/issues/19765 seems to be the
cause
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/kz8s/tack/issues/37#issuecomment-240076266, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAFMWNIvJAf8xsyWLFK3auLVg3dhw6Oqks5qgZ9zgaJpZM4JlRrh
.

--
%>>> "".join( [ {'':'@','^':'.'}.get(c,None) or chr(97+(ord(c)-83)%26) for
c in ",adym,)&uzq^zqf" ] )


Footnotes behavior difference between iOs and Android

Footnotes could be opened in a popup window, and this is very useful. But unfortunately, I did not find a way to make it work on iOs and Android in the same epub.
I prepared a test epub and tried to keep it as small and simple as possible. There are three types of footnote references in it.
[1] - anchor reference href="#link_1" to the same chapter footnote. Opens popup on iOs but on Android it just jumps to footnote.
[2] - full reference href="../Text/Section0001.xhtml#link_2" to the same chapter footnote. Jumps to a footnote on iOs. On Android, it jumps to footnote and opens popup at the same time.
[3] - full reference href="../Text/Section0002.xhtml#link_3" to the different chapter footnote. Jumps to a footnote on iOs. Opens popup on Android.
test_book.epub.zip

I suspect that   back should not be marked as noteref in your test book.


How to change default global icon?

Hey @kyazdani42 , thanks so much for this port.
I'd like to change default_icon to something else
I tried
require'nvim-web-devicons'.setup {
 override = {
   default_icon = {
     icon = " ",
     color = "#6d8086",
     name = "Default",
    }
  };
}

But didn't work for me
Thanks again

hello!
it seems that overriding the default is not possible, ill push some code to enable overriding it :)

Thanks so much @kyazdani42 !!


Fix typo in the example of nesting blueprint docs

Add missing closing quote after url_prefix='/child.
Use single quotes for consistency.

Supersedes #4013

Use single quotes

It's not a big deal, the docs aren't consistent right now, but I am trying to use double quotes to match our code formatting from Black. Might enable blacken-docs eventually.


204 http client support

fix: https://github.com/Azure/azure-sdk-for-cpp/issues/406

@vhvb1989 I don't think putting a fake HTTP server into this repository is a good idea. Can you just use link http://mt3.google.com/generate_204?


Allow support for referential constraints

Summary
I have a customer for whom referential constraints would drive outsize business value, enabling them to adopt Forseti Config Validator and Terraform Validator to implement detective and protective controls to safeguard their GCP organization.
Use Case
The specific use case identified is:

Ensuring that all Disks created within a GCP organization have an attached Resource Policy (snapshot schedule) with a particularly configured snapshot period and retention cycle. e.g.: "I want to ensure that all Disks in GCP are snapshotted daily with 30 day retention"

At present, we can pull sufficient information from CAI to determine that there is some ResourcePolicy attached to a Disk:
{
  "asset_type": "compute.googleapis.com/Disk",
  ...
  "resource": {
    "version": "v1",
    "discovery_document_uri": "https://www.googleapis.com/discovery/v1/apis/compute/v1/rest",
    "discovery_name": "Disk",
    ...
    "data": {
      ...
      "resourcePolicies": [
        "https://www.googleapis.com/compute/v1/projects/.../regions/us-east4/resourcePolicies/snapshot-disks"
      ],
      ...
    },
    "location": "us-east4-a"
  },
  ...
}

And subsequently pulling the ResourcePolicy CAI data yields information about the snapshot schedule:
{
  "asset_type": "compute.googleapis.com/ResourcePolicy",
  ...
  "resource": {
    "version": "v1",
    "discovery_document_uri": "https://www.googleapis.com/discovery/v1/apis/compute/v1/rest",
    "discovery_name": "ResourcePolicy",
    ...
    "data": {
      ...
      "snapshotSchedulePolicy": {
        "retentionPolicy": {
          "maxRetentionDays": 7,
          "onSourceDiskDelete": "KEEP_AUTO_SNAPSHOTS"
        },
        "schedule": {
          "dailySchedule": {
            "daysInCycle": 1,
            "duration": "PT14400S",
            "startTime": "00:00"
          }
        }
      },
      "status": "READY"
    },
    "location": "us-east4"
  },
  ...
}

The ability to build policies that consider both of these CAI asset data objects at once would be valuable, and extensible to other security control implementations.

Hi Jason,
We previously had referential constraints prior to integrating with Constraint Framework, however, there are some scaling issues for larger organizations.  Referential constraints entail having the entire set of resources loaded into memory and Golang experiences roughly 60x increase in memory footprint for parsed JSON (eg, a 1GB CAI export will require 60GB of physical memory).
Enabling referential constraints would require implementing the rego function matching_reviews_and_constraints in pkg/gcptarget/library.go, creating the appropriate unit tests, plumbing through functionality for loading CAI information into Constraint Framework, and invoking the audit.  Unfortunately, I have no plans to implement it at this time, however, I am willing to review pull requests.
-Brian

Hi Jason,
We previously had referential constraints prior to integrating with Constraint Framework, however, there are some scaling issues for larger organizations.  Referential constraints entail having the entire set of resources loaded into memory and Golang experiences roughly 60x increase in memory footprint for parsed JSON (eg, a 1GB CAI export will require 60GB of physical memory).
Enabling referential constraints would require implementing the rego function matching_reviews_and_constraints in pkg/gcptarget/library.go, creating the appropriate unit tests, plumbing through functionality for loading CAI information into Constraint Framework, and invoking the audit.  Unfortunately, I have no plans to implement it at this time, however, I am willing to review pull requests.
-Brian

This is something we're still considering for the roadmap though.

This is something we're still considering for the roadmap though.

+Marten van Wezel<EMAIL_ADDRESS>for awareness
On Fri, Jan 15, 2021 at 11:46 AM Morgante Pell<EMAIL_ADDRESS>wrote:

This is something we're still considering for the roadmap though.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/forseti-security/config-validator/issues/160#issuecomment-761162085,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAZQCJQHC332EKQGTKQD63DS2CLR3ANCNFSM4WEQHKKQ
.

+Marten van Wezel<EMAIL_ADDRESS>for awareness
On Fri, Jan 15, 2021 at 11:46 AM Morgante Pell<EMAIL_ADDRESS>wrote:

This is something we're still considering for the roadmap though.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/forseti-security/config-validator/issues/160#issuecomment-761162085,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAZQCJQHC332EKQGTKQD63DS2CLR3ANCNFSM4WEQHKKQ
.


Prefix not completed in BIND scope

Can be reproduced on demo system.
When typing something like ?x rdf:type ?y, the PREFIX rdf is automatically added.
This doesn't work withing a BIND statement, e.g. BIND(rdf:type as ?x), which results in a shown error Prefix 'rdf' is not defined.

Hi,
#157 Will fix your problem.
The prefix will now be autocompleted and added to the query.


Cleanup JAR artifact contents

Beside classes, fxml and css, the jar also contains the icons.
But there are also the Fireworks PNG templates which do not belong into the artifact.
Update build file accordingly to exclude unwanted content.

Closed with d24201d21f145458f353881fb2956a9b7e8656d5.


Love number of planets

[ ] The compositional models proposed in the paper - water-rich, coreless, or iron-poor - the Love number of the planets may vary.  Could Caroline compute these for the different interior models?  Could Emeline estimate how sensitive the tidal models are to k_2?  How much does this influence the shapes of the planets?  This paper discusses the value of measuring k_2 in constraining the interior compositions:

Kellerman et al. (2018)

Indeed, I could compute them, it will take me some time to implement. I think it would be good to check with Emeline which k_2 approximation she is using.

@CarolineDorn  Let's skip k2 for now.


make QEMU_VIRTFS_ENABLE=y CFG_TEE_RAM_VA_SIZE=0x00300000 failed

Hi, When I execuited the command "sudo make QEMU_VIRTFS_ENABLE=y CFG_TEE_RAM_VA_SIZE=0x00300000 failed" in  path "/home/laurencechan/rust-optee-trustzone-sdk/optee-qemuv8-3.4.0/build" , but got this error message.
LINK    aarch64-softmmu/qemu-system-aarch64
make[1]: Leaving directory '/home/laurencechan/rust-optee-trustzone-sdk/optee-qemuv8-3.4.0/qemu'
make -C /home/laurencechan/rust-optee-trustzone-sdk/optee-qemuv8-3.4.0/build/../soc_term
make[1]: Entering directory '/home/laurencechan/rust-optee-trustzone-sdk/optee-qemuv8-3.4.0/soc_term'
gcc -o soc_term soc_term.o
/usr/bin/ld: soc_term.o: Relocations in generic ELF (EM: 183)
/usr/bin/ld: soc_term.o: Relocations in generic ELF (EM: 183)
/usr/bin/ld: soc_term.o: Relocations in generic ELF (EM: 183)
/usr/bin/ld: soc_term.o: Relocations in generic ELF (EM: 183)
/usr/bin/ld: soc_term.o: Relocations in generic ELF (EM: 183)
soc_term.o: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
Makefile:9: recipe for target 'soc_term' failed
make[1]: *** [soc_term] Error 1
make[1]: Leaving directory '/home/laurencechan/rust-optee-trustzone-sdk/optee-qemuv8-3.4.0/soc_term'
Makefile:146: recipe for target 'soc-term' failed
make: *** [soc-term] Error 2

Maybe I just did wrong. After I compiled all the examples, what should I do next?
follow the instuction in the link?

Seems that you failed to build QEMU. I believe there is something wrong with the dependencies. Can you use our Dockerfile as the building environment and try again.

Actually, there is a daily Travis CI job to run the code with the following steps:
https://github.com/mesalock-linux/rust-optee-trustzone-sdk/blob/master/.travis.yml

Seems that you failed to build QEMU. I believe there is something wrong with the dependencies. Can you use our Dockerfile as the building environment and try again.

After I finished "make examples"， How should I build the QEMU?
Start from the first red frame or the second？

Seems that you failed to build QEMU. I believe there is something wrong with the dependencies. Can you use our Dockerfile as the building environment and try again.

How to use your dockerfile? I did not find any docs from your project about this except a dockerfile. I just build a image from it and run a docker from this image without any specified args and it will runs well?

I exec the container and it works well.
#sudo docker run -it -d --network host --name complie -v$(pwd):/rust-optee-trustzone-sdk -w /rust-optee-trustzone-sdk mesalocklinux/rust-optee-trustzone-sdk-qemuv8-ci:v1 /bin/bash
#sudo docker exec -it complie /bin/bash
# cd ci/
# ls
ci.sh
 ./ci.sh
+ pushd ../tests
/rust-optee-trustzone-sdk/tests /rust-optee-trustzone-sdk/ci
+ ./test_hello_world.sh
+ rm -rf screenlog.0
+ rm -rf optee-qemuv8-3.4.0
+ rm -rf shared
+ source /root/.bashrc
++ '[' -z '' ']'
++ return
+ curl --connect-timeout 200 http://mesalock-linux.org/assets/optee-qemuv8-3.4.0.tar.gz
+ tar zxv
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0 34.1M    0 15789    0     0    970      0 10:14:54  0:00:16 10:14:38  3332optee-qemuv8-3.4.0/

But outside the container, it won't. seems wired.
$sudo docker run --rm -it --network host --dns <IP_ADDRESS> -v$(pwd):/rust-optee-trustzone-sdk -w /rust-optee-trustzone-sdk mesalocklinux/rust-optee-trustzone-sdk-qemuv8-ci:v1 bash -c "cd ci && ./ci.sh"
+ pushd ../tests
/rust-optee-trustzone-sdk/tests /rust-optee-trustzone-sdk/ci
+ ./test_hello_world.sh
+ rm -rf screenlog.0
+ rm -rf optee-qemuv8-3.4.0
+ rm -rf shared
+ source /root/.bashrc
++ '[' -z '' ']'
++ return
+ tar zxv
+ curl --connect-timeout 200 http://mesalock-linux.org/assets/optee-qemuv8-3.4.0.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:19 --:--:--     0curl: (6) Could not resolve host: mesalock-linux.org

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Actually, there is a daily Travis CI job to run the code with the following steps:
https://github.com/mesalock-linux/rust-optee-trustzone-sdk/blob/master/.travis.yml

Hi @mssun , I  still Got another question. If I use rust write a TA, is it possible to use C to write the corresponding CA?

Yes, you can use any language to write CA (same as OPTEE's client).

Yes, you can use any language to write CA (same as OPTEE's client).

@mssun I see, thank you~~

Looks like the titled issue has been resolved. Feel free to reopen the issue if it's not.


Convert project to Android Studio

Current project uses ADT and ant build system. Convert the project to use Android Studio as IDE and gradle build system.

This change is in progress under the talisman_r5 branch

This change is pulled into master branch


Error - Does not Enable on start up

Hello,
I get the following error on startup:
http://pastebin.com/NuKqKdRj
I use the latest version of BKCommonLib:
https://drone.io/github.com/bergerhealer/BKCommonLib/files
Is there anything you can do about this?
Thanks in advance!

Use spigot! And nothing else.
Op ma 8 feb. 2016 02:07 schreef HollishKid<EMAIL_ADDRESS>
Hello,
I get the following error on startup:
http://pastebincom/NuKqKdRj
I use the latest version of BKCommonLib:
https://droneio/githubcom/bergerhealer/BKCommonLib/files
Is there anything you can do about this?
Thanks in advance!
—
Reply to this email directly or view it on GitHub
https://github.com/bergerhealer/TrainCarts/issues/46.

--
Met vriendelijk groeten,
Matthijs Giezenberg

So if I'm a Bukkit user (something there is no way I can change ...) I am condemned not to use your plugin at all? =((
I was really looking forward to using these awesome features ....!

It is in deed awesome to use, but since we use some internals of spigot and
also that they are different after the optimizations from spigot :)
Op ma 8 feb. 2016 16:02 schreef HollishKid<EMAIL_ADDRESS>
So if I'm a Bukkit user (something there is no way I can change ...) I am
condemned not to use your plugin at all? =((
I was really looking forward to using these awesome features ....!
—
Reply to this email directly or view it on GitHub
https://github.com/bergerhealer/TrainCarts/issues/46#issuecomment-181402008
.

--
Met vriendelijk groeten,
Matthijs Giezenberg

Is there anywhere I can find an "old" build, eventhough not all features will be enabled, that will work on Bukkit 1.8.x ?
The basic features are already more than cool enough for me to use.

There isn't , we only updated for spigot because that's what 70% of our users used. Also I have some crazy ideas about a way to fix this 'issue'. But for now you could kindly ask your host to add spigot availability.


Network Requirements for Backing up SQL Server on VM using Azure Backup service

In our organization, all external bound traffic is routed through the firewall and there is a general guidance that we can not provide wildcard rules for storage accounts.
The document states that the following FQDNs need to be whitelisted -
*.blob.core.windows.net
*.queue.core.windows.net
*.blob.storage.azure.net

Is there a way to know the allocated blobs at the time of vault creation?
Also does these allocated resources change over time?

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

ID: 9dd4ffd9-cc54-a3cd-788f-e94416ab75ae
Version Independent ID: 12d96388-d643-414b-f913-9c1dce0cc66f
Content: Back up multiple SQL Server VMs from the vault - Azure Backup
Content Source: articles/backup/backup-sql-server-database-azure-vms.md
Service: backup
GitHub Login: @v-amallick
Microsoft Alias: v-amallick

@utraghuv For insights

@sidprasher
•	Is there a way to know the allocated blobs at the time of vault creation?
No, the storage allocation is not done during vault creation.
•	Also does these allocated resources change over time.
Though not very frequently, but the allocated storage may change over time.

@sidprasher We will now close this issue. If this remains an issue, please reply and we will gladly continue the discussion.

Thanks for the clarification!


Login in Web Application

[ ] JSON end point to authenticate user and set session
[ ] Update Authentication controller to return 401 if the request is unauthenticated
[ ] Add Login to DataService
[ ] Create Login Page in Web app that logs user in
[ ] Add Listener to all data service methods to redirect to login if 401 is returned. Maybe HttpInterceptor?
[ ] Check user authenticated on page load?

Are we thinking on using JWT Tokens?

I do think we might want to move to JWT tokens in the near future.

Not for now? For now just plain session token?

I heard some really good things about JWT tokens, especially from orta https://twitter.com/orta/status/798457085872799744
I haven't looked into how they look exactly and if they were useful for us, but from what I understand, we could avoid the need for creating separate user accounts as we currently do.
I don't know enough about it yet, but I think it might be worth looking into

Maybe we should split this issue into smaller ones (front-end vs back-end)?

@minuscorp Yes! Let me do that

Done, added a separate issue for account creation https://github.com/fastlane/ci/issues/1011


[Bug]: Wrong normalization used for some models.

Describe the bug
Some of the models have wrong normalization setup in current version of code.
This list includes: DSR, DRAEM, EfficientAD, and rkde.
All of the above methods shouldn't use imagenet normalization, but they have the default method setup (which uses imagenet normaliztion):
https://github.com/openvinotoolkit/anomalib/blob/9482d34049dad874fcf68edbc79454638700813a/src/anomalib/models/components/base/anomaly_module.py#L224-L241
or in case of the EfficientAD it is manually set to imagenet:
https://github.com/openvinotoolkit/anomalib/blob/9482d34049dad874fcf68edbc79454638700813a/src/anomalib/models/image/efficient_ad/lightning_model.py#L311-L319
Dataset
Other (please specify in the text field below)
Model
Other (please specify in the field below)
Steps to reproduce the behavior
/
OS information
/
Expected behavior
All of the above (and potentially some other models, but I think those are the only four) should have normalization set to just get all the images to [0, 1] range.
Screenshots
No response
Pip/GitHub
GitHub
What version/branch did you use?
main
Configuration YAML
/

Logs
/

Code of Conduct

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

Does using imagenet normalization affect the results much? Did you do any experiments? When I used draem, the anomaly maps rendered poorly. The anomalous regions are not rendered red. I'm still trying to figure out why.

Draem must not use imagenet normalization because the synthetic anomalies are in range 0-1, therefore images need to be normalized to 0-1 as well.


Error when java not in PATH, but JAVA_HOME is present

Running GAP with the following command:
$ PATH=/c/opscode/chef-workstation/bin:/c/HashiCorp/Vagrant/bin:/c/maven/bin:/mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/share/java/gradle/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/c/Program\ Files/Docker/Docker/Resources/bin JAVA_HOME=/c/Program\ Files/Java/jdk1.8.0_202 ./gradlew
results in the following error:
Execution failed for task ':instanceUp'.
> Some instances are created but their status is unrecognized:
  Instance 'local-author' located at path 'C:\Users\michal.golinski\gapenv\.gradle\aem\localInstance\instance\author' reports status exit code 9009
  Instance 'local-publish' located at path 'C:\Users\michal.golinski\gapenv\.gradle\aem\localInstance\instance\publish' reports status exit code 9009
  Instance 'local-publishPreview' located at path 'C:\Users\michal.golinski\gapenv\.gradle\aem\localInstance\instance\publishPreview' reports status exit code 9009

  Ensure that shell scripts have an ability to execute 'java' process or try rebooting machine.

The error is helpful enough.

https://github.com/Cognifide/gradle-aem-plugin/blob/master/src/main/kotlin/com/cognifide/gradle/aem/common/instance/LocalInstanceManager.kt#L559
ok, thanks for hearing that ;)


Remove sort_search import

sort_search.scss doesn't exist anymore.

Closing as this has been resolved in #6780.


Test tool crashes under load

Describe the bug
We have 80 unit tests we run on an ISV solution.
Select all and run, will crash the Web client.
"Integration Record" table is locked herafter.
Running the exact same tests from RTC gives no problem at all.
To Reproduce
Have lots of unit tests with posting and XML handling.

Expected behavior
No crashes
Screenshots
WEb client crash and the following record locking.
Versions:

AL Langauge: 3.0.106655
Business Central: Version: Platform 14.0.29530.31247 + Application 31313 (W1 Dynamics NAV 14.0)

Same as #4823

Closing since same as #4823 as @AskeHolst kindly pointed out. @JSebastianN Please add any additional information you may have in the referenced issue. Thanks!


Log4j vulnerability

Agent Version and Platform
Version of your agent?
2.192.0
OS of the machine running the agent?
Linux
What's not working?
/opt//externals/tee/lib/log4j-1.2.14.jar
/opt//externals/tee/lib/slf4j-log4j12-1.7.19.jar
General Question
Are we affected with the Log4j vulnerability? Based upon the files the agent uses as seen above.

Hi @Michael-Coetzee log4j is used pretty poorly by agent - this is a dependency for Tee plugin - for previous Log4j vulnerabilities use cases which agent is using were not affected - let us check it for the recent vulnerability as well.

Does the previous Log4j vulnerabilities reviewed include this one as well? https://access.redhat.com/security/cve/CVE-2021-4104
The issue above seems to affect Log4j versions 1.x (I also see version 1.2.14 as a dependency for the agent/Tee), and the "fix" identified is to upgrade Log4j to 2.15.0. Apologies if the issue was already reviewed.

In the latest agent version 2.195.2, it uses log4j 1.2.17.  It seems not serious impact unless the JMS Appender is used.
Source: https://stackoverflow.com/questions/70310980/log4j-vulnerability-is-log4j1-2-17-vulnerable-was-unable-to-find-any-jndi-cod

We identified our self-hosted agents as being potentially vulnerable as well. Can the agent be deployed without the TEE plugin, and if so what functionality do we lose? Are there any other recommendations to mitigate ahead of possible patches?

Our Linux servers were flagged because of the log4j dependency and we had to shut down the pipeline agents.

so in order to address this vulnerability shall we just remove the jar files (replace them) or wait for an updated version of agent binaries to be released very soon ?

Hi everyone, just as a quick update - we've investigated recent Log4j vulnerability (CVE-2021-44228) which affects Log4j >= 2.0 and 2.14.1.
Agent uses this dependency in two locations:

Log4j v1.2.17 - as dependency of one of the test projects (build time only) (source code line)
Log4j v1.2.14 - as dependency of Tee plugin

So this vulnerability does not affect the agent.
Tee plugin is used for the case with TfVC repo checkout and Linux environment - for other cases it's not used at all, so possible vulnerabilities related only to this case.
Continue checking for https://access.redhat.com/security/cve/CVE-2021-4104, will let you know once we complete investigation.

Thank you for the update. Is there any way to remove the TEE plugin without breaking the agent.This is a very severe issue and we'd rather play it safe and remove an unneeded component. We do not build TFVS repos from Azure Pipelines.

About CVE-2021-4104 vulnerability. Based on the vulnerability description this issue only affects the Log4j 1.2 when specifically configured to use JMSAppender, which is not the default behavior of the Log4j. As we can see from the source the Team Explorer Everywhere (abbreviated  TEE) plugin doesn't use this type of appender at all. It means that this vulnerability is not relevant for the Azure Pipelines Agent.
As @anatolybolshakov mentioned earlier the azure pipelines agent uses the TEE plugin as the dependency. The agent uses only the "Command-line Client for TFS" from the TEE plugin to perform the checkout for the repositories that are based on Team Foundation Version Control (abbreviated  TFCV) on non-Windows machines.
We are shipping the TEE plugin as a part of agent distribution for the following platforms:

macOS
Linux x64
Linux ARM
Linux ARM64
RHEL 6 x64

We have compliance concerns (HIPPA and HITRUST) that restrict us from using unsupported (EOL) operating systems, software or software libraries. If there are incidents involving unsupported software, large fines can be enforced. I understand the vulnerable Log4J library is coming from an external dependency. From our perspective, we don't seem to need this dependency. It greatly mitigates our risk to remove unnecessary software, especially when it is unsupported and has known vulnerabilities.
With that said, I'd like to repost my question from above. Is there any way to permanently remove from our deployment the TEE plugin and/or the Log4J library without otherwise breaking the Linux agent for non-TFS workflows? We can just give it a try in our build agent images, but it would be helpful to get some guidance on going this route for those that need it.

@dude0001 If you are not using TFVS based repositories and using self-hosted pipelines agents you actually can manually remove the TEE plugin from the agent layout. To do this, you just need to remove the tee folder from the externals folder.
Also, please note the fact that the tee folder will be restored during agent update to mitigate this, you can temporarily turn off agent pool update in the Azure DevOps to make sure that the tee folder will not be restored.

are thee any plans to release updated agent zip's with non-vulnerable newer version of Log4J library for those who for some reason still use TFVC and tee

@dude0001 If you are not using TFVS based repositories and using self-hosted pipelines agents you actually can manually remove the TEE plugin from the agent layout. To do this, you just need to remove the tee folder from the externals folder.
Also, please note the fact that the tee folder will be restored during agent update to mitigate this, you can temporarily turn off agent pool update in the Azure DevOps to make sure that the tee folder will not be restored.

Removing the whole tee folder gives an error:
Error reported in diagnostic logs. Please examine the log for more details.     - /azp/agent/_diag/Agent_20211216-145427-utc.log File not found: '/azp/agent/externals/tee/license.html'

I haven't tried it but rather than delete the entire tee folder delete only the /lib/log4j-1.2.14.jar file. That would leave tf.cmd and license.html in /externals/tee.

yep, that is what I ended up with. And it seems to work

@a1exstr @alexander-smolyakov Thanks, guys. How can we turn off the auto-update feature for azure agent pools once we delete the log4j.jar files from /externals/tee directory? Is it possible to do it via the azure DevOps web portal?

@a1exstr @alexander-smolyakov Thanks, guys. How can we turn off the auto-update feature for azure agent pools once we delete the log4j.jar files from /externals/tee directory? Is it possible to do it via the azure DevOps web portal?

#2455

Even when Gloridel Morales mentioned that the older CVE-2019-17571 is not exploitable we/my company would appreciate when all unsecure versions will be updated

@a1exstr @alexander-smolyakov Thanks, guys. How can we turn off the auto-update feature for azure agent pools once we delete the log4j.jar files from /externals/tee directory? Is it possible to do it via the azure DevOps web portal?

You can turn off the agent update in the settings of the related agent pool. To do this, please go to Organization settings -> Pipelines -> Agent pools and open the pool for which you want to disable auto-update. On the agent pool page go to the Settings tab and turn off the Allow agents in this pool to automatically update option.

Even when Gloridel Morales mentioned that the older CVE-2019-17571 is not exploitable we/my company would appreciate when all unsecure versions will be updated

Hi @MarRich1, our team is currently investigating options for getting rid of log4j v1 from the pipelines agent distribution.

How is this going, and when can we expect more news? I do see what I hope is positive progress in an open pull request, but I am left wondering if this will remove the vulnerability entirely, and when it will be rolled out as a release.
I see this pull request that I'm hopeful will do the trick

Download TEE plugin conditionally during checkout #3684

Does this remove the vulnerable log4j from the package? I think it does...
Looks like it's waiting on review from microsoft/akvelon-build-task-team. I know it's the holidays, but is anyone here in a position to give that team a nudge?
Turning off auto update and deleting parts of the installed package is not a great situation, especially when a good solution appears to be already in the works. Is there any status update or release time estimate you can give us @alexander-smolyakov? Is there someone different I should ask? :)

I pressed the vendor for a solution in the comments on the related github issue.
https://github.com/microsoft/azure-pipelines-agent/issues/3658

Hi all, let me share the current progress regarding this issue:
As a short-term solution, we have decided to remove the TEE plugin for agent distribution and provide the ability to download this plugin in the checkout runtime if the TEE plugin is required to perform a checkout. The related changes will be included in the next release of the pipeline agent. We will update the ticket once the agent will be available for all users.
At the same time, we are working on a long-term solution. As the main possible solution, we are investigating the possibility of rewriting the command-line client from the TEE plugin to C#. In this case, we will be able to completely remove the Java dependency from agent distribution. We will provide an update regarding the long-term solution as soon as possible.

If your agent servers are behind firewalls/proxies they will need to be able to reach https://vstsagenttools.blob.core.windows.net/tools/tee/14_135_0/TEE-CLC-14.135.0.zip to download it.

Is there an ETA on when the new agent version will be released? Unfortunately, this is causing a lot of vulnerability alerts, even if this is not a real vulnerability for Azure DevOps.

@xinyi-joffre we're planning to finish rolling out the new version today if we don't encounter any regressions.

Hi all, since we have rolled out the agent with temporary fix let me close this ticket and open a new one for long term solution.

Can you provide a link to the new ticket?

Hi all, since we have rolled out the agent with temporary fix let me close this ticket and open a new one for long term solution.

Is the new issue already created? Can you provide the link?

Hi all, since we have rolled out the agent with temporary fix let me close this ticket and open a new one for long term solution.

@alexander-smolyakov can you share a link to  the ticket please 🙏

@llyons I have 2.204.0 installed on my agents and I am still seeing the issue.


eventid 4624 description

Hi there!
The 4624 eventid is wrong - the right description is "An Account Was Successfully Logged On"
If you want to add the eventid 4634, that's the one related to "An account was logged off"

No problem at all - thanks for this awesome mindmap!


clarify hadoop input paths

Clarifies that the input paths are not recursive for hadoop.
cc: @techdocsmith
This PR has:

[X] been self-reviewed.

[ ] using the concurrency checklist (Remove this item if the PR doesn't have any relation to concurrency.)

[ ] added documentation for new or modified features or behaviors.
[ ] added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
[ ] added or updated version, license, or notice information in licenses.yaml
[ ] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
[ ] added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
[ ] added integration tests.
[X] been tested in a test Druid cluster.

@ektravel , thank you. I'll take a look


Got GPS fix flag?

Is there any flag that indicates the unit has received a GPS fix? In the old code there used to be a got_gps_fix_ variable that could be used to set the ref LLA from the first point the GPS was found. Is it just named differently now?

James will need to answer this question as it applies to
inertial_sense_ros.
However, in the InertialSense binary protocol
http://docs.inertialsense.com/user-manual/com_protocol/binary/, the INS
GPS fix status can be found in a couple messages:
INS_STATUS_NAV_FIX_STATUS(DID_INS_x.insStatus)
/** Navigation Fix Type */
enum eNavFixStatus
{
NAV_FIX_STATUS_NONE = (int)0x00000000,
NAV_FIX_STATUS_STANDARD = (int)0x00000001,
NAV_FIX_STATUS_RTK_SINGLE = (int)0x00000002,
NAV_FIX_STATUS_RTK_FLOAT = (int)0x00000003,
NAV_FIX_STATUS_RTK_FIX = (int)0x00000004,
};
or in DID_GPS_NAV.status
/** GPS Status /
enum eGpsStatus
{
/* Fix */
GPS_STATUS_FIX_NONE = (int)0x00000000,
GPS_STATUS_FIX_DEAD_RECKONING_ONLY = (int)0x00000100,
GPS_STATUS_FIX_2D = (int)0x00000200,
GPS_STATUS_FIX_3D = (int)0x00000300,
GPS_STATUS_FIX_GPS_PLUS_DEAD_RECK = (int)0x00000400,
GPS_STATUS_FIX_TIME_ONLY = (int)0x00000500,
GPS_STATUS_FIX_RESERVED1 = (int)0x00000600,
GPS_STATUS_FIX_RESERVED2 = (int)0x00000700,
GPS_STATUS_FIX_DGPS = (int)0x00000800,
GPS_STATUS_FIX_SBAS = (int)0x00000900,
GPS_STATUS_FIX_RTK_SINGLE = (int)0x00000A00,
GPS_STATUS_FIX_RTK_FLOAT = (int)0x00000B00,
GPS_STATUS_FIX_RTK_FIX = (int)0x00000C00,
GPS_STATUS_FIX_MASK = (int)0x0000FF00,
GPS_STATUS_FIX_BIT_OFFSET = (int)8,
};
*Walt Johnson *
CTO & Founder | Inertial Sense, Inc.
Mobile:<PHONE_NUMBER> | InertialSense.com http://www.inertialsense.com/
[image: Worlds Smallest GPS-INS]
Electronic Privacy Notice. This message is confidential and may be
privileged. If you believe that this email has been sent to you in error,
please reply to the sender that you received the message in error and
delete this e-mail. Thank you.
On Mon, Jul 9, 2018 at 1:53 PM, Dallin Briggs<EMAIL_ADDRESS>wrote:

Is there any flag that indicates the unit has received a GPS fix? In the
old code there used to be a got_gps_fix_ variable that could be used to set
the ref LLA from the first point the GPS was found. Is it just named
differently now?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/inertialsense/inertial_sense_ros/issues/12, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AOaViITCc9b2RoEkOD-H0t9L8OgR_Em9ks5uE7S5gaJpZM4VISsD
.

Thanks Walt. I made a branch that sets the "home" position to wherever you start the ROS node and you have a GPS fix. This is similar behavior to several autopilots. It's on my fork on the release branch: https://github.com/dallinbriggs/inertial_sense.git


change the method to get the action attribute

#1

Hello, I just realized this was never pushed. It's now part of v1.0.1


Allow importing of notebook contents into interactive pane

For #5675
Also fixed #5731

[ ] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)
[x] Title summarizes what is changing
[x] Has a news entry file (remember to thank yourself!)
[ ] Appropriate comments and documentation strings in the code
[ ] Has sufficient logging.
[ ] Has telemetry for enhancements.
[x] Unit tests & system/integration tests are added/updated
[ ] Test plan is updated as appropriate
[ ] package-lock.json has been regenerated by running npm install (if dependencies have changed)
[ ] The wiki is updated with any design decisions/details.

Fantastic - very much appreciated.
Opening a workbook to look at results & charts, I appreciate the folding keeping the code details away.
But you know this'll generate requests for the ability for different themes within a window - axis and legend details can be hard to see with a dark them :-)
thanks

But you know this'll generate requests for the ability for different themes within a window - axis and legend details can be hard to see with a dark theme :-)

@ChristopherShort 	are you referring to preview data? Or using the interactive pane in general? The new preview feature just displays the notebook using the output that was saved in it, so we can't theme it (example if a plot was generated in the ipynb, that plot won't have a dark theme). However if you import and run a notebook cell, that should theme correctly as we change the plot style when running.

@rchiodo - my apologies - that comment was mainly tongue in cheek.
To clarify (but it's not a general issue)
The issue is that opening a workbook for the purposes of viewing the last output, and I'm in my default VScode dark color theme, I need to reset the theme to a light to see chart axis, text etc.
This is because my chart background is usually set to transparent - and with black text - those chart elements can't be seen.
It's a couple of keyboard shortcuts to change the theme...not an issue

Issue - previewing the output of an existing jupyter notebook in the interactive window  works only if the python extension is already in operation.
The python extension is loaded on opening a workbook (if it wasn't already loaded) - but by that stage, it's missed it's hook to display the output in the Interactive window.
I usually preview existing workbooks by double clicking the file having set VScode to be the default app for 'ipynb' files.
And again - thanks for enabling this feature (and VScode more generally)


Route planner - Snap imported gpx to node network

This one is interesting! The idea is to get a gpx of, say, a leg of the GR5, then turn it as closely as possible into a planned node network route. Often the result route would have disconnected sections because there is no node netwerk in between (or not close enough). The output gpx would merge the new sections and the unchanged sections into one track. The pdf-text for those sections could simply state:  "imported track".
This mechanism would also provide a simple "save route to finish later" function.

brouter could do already that (on any ways with the hiking-beta profile) 😃


E/ReactNativeJS: Error: [@RNC/AsyncStorage]: NativeModule: AsyncStorage is null.

Current behavior
IOS is correctly working but android is not working
Environment

Async Storage version:     "@react-native-community/async-storage": "^1.7.1",

React-Native version:  "react-native": "0.61.5",

Platform tested:  Android

+1 Except iOS is failing, have not tried Android yet.

1 Android.

AsyncStorage 1.7,1
ReactNative 0.61.4

I'd need more details - what's not working?

When starting the application the error E / ReactNativeJS: Error: [@ RNC / AsyncStorage]: NativeModule: AsyncStorage is null.

@diegoaraujolima This error comes from the not properly installed native module. RN 60+ is using autolinking, so you don't have to do nothing more, but follow the Autolinking setup. Otherwise, you need to use react-native link to install it.

My version is 0.61.4 and I didn't use the link and the problem occurs. Then I tried to rotate the link, but the error still remains. Then I tried to do the operations manually (change MainApplication, dependencies and etc) and the error keeps occurring.

If you have upgraded from <0.60 version, you can use update helper to see what changes you need to make on android part to make autolinking work

But I am not migrating from version. I just installed the latest version.

I also encountered this problem

I met the same issue
IOS is correctly working but android is not working

Async Storage version: "@react-native-community/async-storage": "^1.7.1",

React-Native version: "react-native": "0.57.8",

Platform tested: Android

If you upgraded from < 0.60 version, you need to unlink all your dependencies and then relay just on cli feature. Please read the docs to get more info.
If you started with version 0.60+, then autolinking should kick in. no react-native link is required. You just need to make sure that the setup you have follows the proper setup. Again, here are the docs for autolinking.
If you're below version 0.60, then you have to install the dependency manually or through react-native link name-of-the-library. We have guides for manual linking here

Same issue.  Latest Expo, running on Android.
Steps to Reproduce
Start with a clean blank-template project.
Add:
AsyncStorage = require('@react-native-community/async-storage)

Start the project with yarn start, load the project with Expo on Android.
Instant crash.
The above references to Java code are not helpful, I'm not writing any Java/Kotlin at all in this pipeline.

@jessegranger Expo does not support custom native modules, so you cannot add Async Storage to.

Thanks for your answer. I did expo eject and then react-native link ... and it worked in Android emulator.

Closing it down - for any other cases, please open new issue.


Homebrew publish fails tests

Hi, I am new to cargo-dist but already a super fan! I am trying to figure out how to publish my app as a brew formula and have got as far as I can with the docs. This is my first time using cargo-dist and my first time managing my own brew tap, so it is entirely possible that I did something wrong.
I have successfully got my Rust project committed to my homebrew project but this triggers brew tests in CI that fail on the new Formula file. The brew test-bot command ultimately fails (here) with
1 file inspected, 9 offenses detected, 7 offenses autocorrectable

I'm sure I could fix these mistakes but I am worried they would reappear on the next dist publish.
To get here I ran
brew tap-new

and uploaded that one commit. nothing else in the homebrew repo.
On the app repo I added tap and publish-jobs and bumped the version in Cargo.toml, then ran
cargo dist generate ci --check

and uploaded with a new tag (and added a repo secret).
That led to a new formula file in my homebrew repo, but the above-mentioned failure.

interesting! let me take a look at this

this is very neat and i think we can both fix these issues, but also add this tooling to our own tests to make sure we're generating formulae that pass.
before i dive in- are you at all interested in contributing some/all of these changes? would be happy to point you in the right direction if so- if not no worries!!

@ashleygwilliams I am interested in making the changes. brew's suggestions seem very straightforward and reasonable. I just wanted to confirm it was a real issue with the code first (and not maybe that I read docs wrong).

yup! i agree the changes seem very straightforward and reasonable. our inhouse brew expert @mistydemeo is on vacation, and so i'd want to have her review before we merged anything, but we are all cargo fmt fans here, and this seems like that for brew- hard for me to quibble with it! i do think the corrected code will likely end up behaving the same way as the current code but i like following standards, especially tool-enforced ones.

Hmm, so I see that the 2 not-autocorrectable issues were that I was missing metadata in my Cargo's [package]. I think the docs need to be updated to mention that description and homepage are used (working on that). However, the publishing should probably be blocked on these fields being present if publish-jobs includes "homebrew". WDYT? I believe a similar situation happens for repository, where cargo build will work if that field is left out, but cargo dist blocks, asking the dev to fill it in. Trying to see where that check could go..

i think this sounds reasonable to me! we have similar checks/requirements for the MSI installer, which requires the authors field in Cargo.toml!

the best place for checks is the "plan" step- as generally that will run before a user is even thinking about releasing (which is good!). it can be a bit abrasive to get hard errors during a release

btw- if you are on our discord (https://discord.gg/q7zqx44Pma) feel free to ping me (@ag_dubs)! (i'm about to head out but will definitely be around tomorrow)

Fix in https://github.com/axodotdev/cargo-dist/pull/818


⚠ Fortnite has degraded performance

In 3a03b69, Fortnite (https://fortnite.com) experienced degraded performance:

HTTP code: 200
Response time: 1544 ms

Resolved: Fortnite performance has improved in a6fe883.


BROKEN

I did youtube.py 10 https://www.youtube.com/watch?v=H53BgIIaHd0&t=23s then it said
C:\Users\Tristyn\Desktop>youtube.py 10 https://www.youtube.com/watch?v=H53BgIIaHd0&t=23s usage: youtube.py [--visits VISITS] [--url URL] [-v] [-h] youtube.py: error: unrecognized arguments: 10 https://www.youtube.com/watch?v=H53BgIIaHd0 't' is not recognized as an internal or external command, operable program or batch file.

RTFM
Remove &t=23s
try: python youtube.py --visits 10 --url https://www.youtub...

It is not broken. You did not use the cli properly.


feat(bluemap/chat): general improvements

Things added:

You can click the login part of the input to be directed to the login page
You can set a custom prefix for web chat messages in the config
You can set the max amount of messages that the map would store before deleting old ones
"say" commands sent from the server console will be shown in the chat
Added a config for Authentication to disable the IP lock for sessions #6
New chat messages received will work like Minecraft. They show for 5s and then disappear. There is now a button to expand the chat to see past messages.
The messages div can be larger so that more messages can be viewed at once.
The scroll bar for the messages div is set to show only when there is an overflow of messages

Ok all done with the fixes. I also added the following two things:

A message is shown when there are no messages and you are expanding.
All the messages in the popup div are cleared when you collapse the chat. (Similar to how MC operates. Also helps to prevent confusion)

Thanks for this PR! Absolutely fantastic job on the improvements to the web app gui of the chat! I'll get to releasing these changes soon.


Announcement: Settings folder migration

On next beta version, I plan to change a settings folder for SylphyHornPlus because I have heard that some are concerned about conflicts with the original SylphyHorn settings.
Settings will be automatically migrated on first startup, so there is nothing to do for you. But you have to delete manually if you don't need old settings.
New path (plan): %UserProfile%\AppData\Local\hwtnb.net\SylphyHornPlus
Original path: %UserProfile%\AppData\Local\grabacr.net\SylphyHorn

why would the two versions coexist?

@sfranky
Older settings are shared with the original SylphyHorn. Deleting them may result in unintended behavior for certain users. Since they are very small in size and a procedure for cleanup is not complicated, I have decided to keep older settings.


Volume control

Can we get the volume control updated?  Currently the slider is the only way to control the volume when you are in the interface, if you use the +/- buttons it jumps by 10 instead of 1.
I believe the volume_up and volume_down methods need to be implemented in the interface to HA to fix that and then those would send the proper increment.

It looks like we are currently using the default in HA's MediaPlayerEntity:
check out:  https://github.com/home-assistant/core/blob/dev/homeassistant/components/media_player/init.py#L935
I agree that 10% volume level increases are fairly large and make it hard to find the perfect volume. 1, 2, or 3% adjustment would probably make more sense.  I wonder what others think about this?
As a workaround have you considered configuring each zone's vol_min and vol_max fields to reduce the adjustable range? This would make percent changes smaller.

When I was using my home-brew REST media player before this addon was around, I had it set to 1% and it was very similar to the volume increases I have with other media devices.
I have not tried to set vol_min/vol_max, I'll take a look at that for a short term fix.

I copied that file over into my custom_components and restarted HA, but it still does 10%.  I wonder if there is something that has to be registered for HA to know the vol functions are available that's missing.

Thanks for testing it out. I will check back see if there's something I
missed in how this works.
On Wed, Mar 1, 2023 at 10:49 AM bs42 @.***> wrote:

I copied that file over into my custom_components and restarted HA, but it
still does 10%. I wonder if there is something that has to be registered
for HA to know the vol functions are available that's missing.
—
Reply to this email directly, view it on GitHub
https://github.com/brianhealey/hacs_amplipi/issues/13#issuecomment-1450375088,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAEZPO7IEQCE4NRUAZQGGKDWZ5VWZANCNFSM6AAAAAAVJ52PWY
.
You are receiving this because you commented.Message ID:
@.***>

Just searching for help on this led me to the mini-media-player. It looks like it has a configurable volume step size:

Name
Type
Default
Since
Description

volume_step
number
optional
v1.9.0
Change the volume step size of the volume buttons and the volume slider (number between 1 - 100)1.

If we can't override this behavior easily using that media player with this configuration might be a simpler route.

Done, I've never done a pull request into a branch on a fork before so fingers crossed I did that right.


Lecture 8 - slide 48 - grammar

"Start with each mention in it’s own singleton cluster" ->"Start with each mention in its own singleton cluster"

Nice one. Thanks. 1 point


Reactive Component Example does not work

The reactive component example from the website does not seem to work, for context, this one specifically:
import { Component, customElement, html, property, listen } from 'https://esm.sh/<EMAIL_ADDRESS>
@customElement('hello-world')
export class HelloWorld extends Component {
  // define an observable property
  @property() name = '';

  render() {
    return html`

Hello ${this.name || 'World'}!

      <input
        name="firstName"
        placeholder="Type your name"
        value="${this.name}"
      />
    `;
  }

  // listen input changes
  @listen('input', 'input[name="firstName"]')
  protected onInputChange(event: Event, target: HTMLInputElement) {
    this.name = target.value;
  }
}

Expectation/Result:
The name should reanimate using the new one from the input bar, however, it doesn't.
Environment

OS: Windows
Platform: Deno
Build Tool: ESBuild

This is the output ESBuild produces: https://hastebin.com/tasuwobeja.js
This is the code building it:
import * as esbuild from<EMAIL_ADDRESS>import { httpImports } from<EMAIL_ADDRESS>
await esbuild.build({
    entryPoints: [
        `main.tsx`
    ],
    bundle: true,
    loader: {
        ".ts": "ts",
        ".js": "js",
        ".html": "text"
    },
    outfile: "main.js",
    platform: "browser",
    format: "esm",
    target: "esnext",
    plugins: [
        {
            name: "close-on-complete",
            setup(build) {
                build.onEnd((result) => {
                    console.log("Finished Building!")
                    Deno.exit(result.errors.length >= 1 ? 1 : 0)
                })
            }
        },
        httpImports({
            defaultToJavascriptIfNothingElseFound: true
        })
    ],
    jsxFactory: "h",
    jsxFragment: "Fragment"
})

Update: Built it with Node.js as core runtime platform, same ESBuild configuration, seems so that doesn't work either. Is it recommended to use Vite instead?

Did some more digging, tried using the Vanilla JS Example with the DNA Dependency from a URL, this does not work either:
import { Component, customElements, html, property, listen } from '@chialab/dna';

class HelloWorld extends Component {
    static get properties() {
        return {
            // define an observed property
            name: {
                type: String,
                defaultValue: '',
            },
        };
    }

    static get listeners() {
        return {
            // delegate an event
            'change input[name="firstName"]': function(event, target) {
                this.name = target.value;
            }
        };
    }

    render() {
        return html`
            <input name="firstName" value="${this.name}" />

Hello ${this.name || 'World'}!

        `;
    }
}

customElements.define('hello-world', HelloWorld);

Hi @LePichu, thanks for reporting!
DNA should be bundler/devserver agnostic, we also use esbuild as primary bundler.
Can you share your tsconfig.json please?

Hi @LePichu, thanks for reporting!
DNA should be bundler/devserver agnostic, we also use esbuild as primary bundler.
Can you share your tsconfig.json please?
Under Deno:

{
    "tasks": {
        "build": "deno run -A build.ts"
    },
    "compilerOptions": {
        "lib": [
            "deno.window",
            "./files.d.ts"
        ],
        "jsxFactory": "h",
        "jsxFragmentFactory": "Fragment"
    },
    "importMap": "import_map.json"
}

Under Node:
{
    "compilerOptions": {
        "experimentalDecorators": true,
        "jsxFactory": "h",
        "jsxFragmentFactory": "Fragment"
    }
}

By the way you might not have noticed that I updated my previous commit, it definitely works with the vanilla example in browser directly but not when bundled via ESBuild.

When using the esnext target, esbuild will match typescript behavior to define decorated property through Object.defineProperty, which is not currently supported.
Try to add this conf to compilerOptions in tsconfig.json:
"useDefineForClassFields": false

@edoardocavazza Thank you very much, it works now. Looking forward to using DNA for a project of mine.

Thank you @LePichu! Please share any feedback!

Thank you @LePichu! Please share any feedback!

Is there a Discord server for discussing DNA-related things?

We have not a Discord server (but we are considering to), you can use GitHub discussions in the meanwhile.


[wip] [Docs only] Api docs

wip don't review

Codecov Report

Merging #373 (8832dda) into master (d01036e) will decrease coverage by 0.05%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #373      +/-   ##
==========================================
- Coverage   96.00%   95.94%   -0.06%
==========================================
  Files           2        2
  Lines          75       74       -1
  Branches        8        8
==========================================
- Hits           72       71       -1
  Misses          1        1
  Partials        2        2

Impacted Files
Coverage Δ

tests/scripts/test_flytekit_sagemaker_runner.py
100.00% <0.00%> (ø)

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 d01036e...8832dda. Read the comment docs.


2.0 sync

This PR updates the code to work with Karafka 2.0 and updates the API to make it nicer.

Merging with a note on where to find 1.4 docs.


Java indexer: use preferred location for Name usages [phab:D1853]

Created by schroederc at 2017-08-09 23:17:07:
This fixes an issue where the indexer would put all anchors for a
method on its first occurrence within a chain of method calls.
Example:
a.method().method().method();

Previously, there would be three anchors on the first method span.
Using the preferred position for Name usages correctly gives us one
anchor per method invocation site.

zarko accepted this revision at 2017-08-09 23:24:49

fromberger accepted this revision at 2017-08-10 01:29:10

schroederc closed via commit 953f058444998c4e142ea4e76fbef6d488bcd99f at 2017-08-10 02:19:02


Fix #201 correcly calculate the position of struct base expression span.

Thanks for the PR !
I think the fix will not work if there is another .. in the struct :
A{ a: B{..b}, .. c}

The search span should start at the end of the last field.

Hmm you're right, seems like span_after(span, "{", context.codemap) doesn't do what I thought. How can I access the end position of the last field? Add a last_item parameter to F1 get_lo (this seems invasive)? Or can we take another approach and solve this problem in ListItems iterator (having peek() to look ahead but currently don't know about the StructLitField type).

I think replacing span at line 696 with something like (untested)
mk_sp(fields.last().map_or(span.lo, |field| field.span.hi), expr.span.lo)

should do the job.

Awesome, it seems to work, PR recreated.


[ENH] Introduce stream abstraction

Description of changes
Summarize the changes made by this PR.

Improvements & Bug fixes

...

New functionality

...

Test plan
How are these changes tested?

[ ] Tests pass locally with pytest for python, yarn test for js, cargo test for rust

Documentation Changes
Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the docs repository?

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#2454  👈
#2431
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @Ishiihara and the rest of your teammates on  Graphite


Encode username and password in Kubernetes secrets

We need to encode the basic auth credentials to base64 when using them in templates to ensure that passwords containing special characters like escape characters and line separators are properly handled, and don't cause errors when unmarshaling or during kubectl apply.
Fixes: #7623
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve
/lgtm
/woof

/cherrypick release-0.19


Is it going to updated to BS5?

Is the theme going to be updated to the latest Bootstrap 5? Please say yes.

Yes, it will. Working on it already.

Awesome, waiting for it.


Autocomplete: Improve handling of focus events

Description

An implementation of the focus handling that makes more sense.
How Has This Been Tested?

Type of Changes

[X] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation (fix or improvement to the website or code docs)

Checklist

[X] The PR is submitted to the correct branch (dev).
[X] My code follows the code style of this project.
[ ] I've added relevant tests.

Good changes. Thanks.


Clojure Sublimed fails to initialize: cs_conn has no attribute 'Connection' (most likely due to a circular import)

Introduced by changes in eba74459fa55381b0f20d31b9b41f9c48f2c88f8, the plugin fails to load,
...
reloading plugin Clojure Sublimed.cs_common
reloading plugin Clojure Sublimed.cs_conn
Traceback (most recent call last):
  File "/opt/sublime_text/Lib/python38/sublime_plugin.py", line 325, in reload_plugin
    m = importlib.import_module(modulename)
  File "./python3.8/importlib/__init__.py", line 127, in import_module
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 868, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/e/.config/sublime-text/Packages/Clojure Sublimed/cs_conn.py", line 2, in <module>
    from . import cs_common, cs_eval, cs_eval_status, cs_parser, cs_warn
  File "/home/e/.config/sublime-text/Packages/Clojure Sublimed/cs_eval.py", line 3, in <module>
    from . import cs_common, cs_conn, cs_eval_status, cs_parser, cs_printer, cs_progress, cs_watch
  File "/home/e/.config/sublime-text/Packages/Clojure Sublimed/cs_watch.py", line 2, in <module>
    from . import cs_common, cs_conn, cs_conn_socket_repl, cs_parser, cs_printer
  File "/home/e/.config/sublime-text/Packages/Clojure Sublimed/cs_conn_socket_repl.py", line 18, in <module>
    class ConnectionSocketRepl(cs_conn.Connection):
AttributeError: partially initialized module 'Clojure Sublimed.cs_conn' has no attribute 'Connection' (most likely due to a circular import)
reloading plugin Clojure Sublimed.cs_conn_nrepl_jvm
...

Sublime Text Stable, build 4169 on Arch Linux, installed from https://download.sublimetext.com/arch/stable/x86_64 repository

Thanks! Should be fixed in fb28ab5c232e6172760e1275d8b364cf1c9db949


Works only on localhost

Hi
it is working in my local host.But i uploaded to server. video popup does n't show.it throws an error could not connect to x server.

Can you post some logs?


Custom icons

The icons should be perhaps extracted in another npm package so users can choose if they want to use the default icons or their custom ones.

can you add props like renderPlayIcon, renderPauseIcon, renderForwardIcon, renderReplayIcon
so user can set icons according to there need
they can even use vector icons there

Hi, just wondering if there has been any progress on this enhancement or if it is something you would be open to have contributors look into. Thanks for all the work you've put into this package!

Hey @TomPrice2023 . Unfortunately there hasn't been made any progress, but in case the community requires it, it can gain a higher priority. Is it something you need?

Hi @LunatiqueCoder, thank you for the update! I definitely think it would be very useful. The package is awesome and being able to align the end result to what the designers have mocked up would be perfect! I'd also be curious to see if positioning icons is something that this enhancement could make possible.
Thanks again!

@TomPrice2023 I think repositioning would be a littler bit harder. I would be curious what's your use case more precisely? Maybe we can find an easy implementation.

The positioning would revolve around the controls which sit in the corners: full screen, volume, back. I was thinking something along the lines of topLeft, topRight, bottomLeft & bottomRight mapping to each control could maybe add a nice bit of flexibility to how the player looks.

@TomPrice2023 This is actually a nice idea but we have to think very well about it. Probably won't be something to expect soon...


473 create page text

🔗 Issue

#473
✍ Description

Adds a PageText model with organization_id, about, and hero columns, with index. about and hero allow nil but not empty strings or strings containing only whitespace.
Updates create service object to create a page_text for organization, and seed files.
Adds factory, tests for new model.
📷 Screenshots/Demos

It looks like this failed on the one still flaky test. Is there a way I can rerun it?

@MooseCowBear done! Will review when I get some time this week :)


[SQL] Fix flaky CachedTableSuite

LGTM

Test build #26811 has started for   PR 4379 at commit f2b44ce.

This patch merges cleanly.

Would you please add SPARK-5538 to the PR title?

Test build #26811 has finished for   PR 4379 at commit f2b44ce.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/26811/
Test PASSed.

Added and merged. Thanks.


No interaction (event) works on clicking a ui component

Description:
Barley works, needs alot of multiple clicks in a 1 second to work as intended, problem is possibly with the event loop.
Reference:
lib.rs line 67 (Not 100% sure)
Workaround:
Create a texture with 420 width & 300 height like the demo.rs but larger.

Temporary fix:
Make the glfw app set to sync (enable v-sync) instead of None for the swap interval.
Explanation:
Egui runs too fast that it can't handle slow clicks (normal clicks).
Possible upcoming fix:
Sleep in the events matching loop for the amount of the delta_time of the app, Could work.


Obfuscate Obsidian CSS variables

I'm tired of this holding everything up, so we'll have to tackle this later. For some reason everything I've tried hasn't worked.


Package broken by change in vs-kernels

The default arguments to some of the functions in this package include pre_supersampler: ScalerT = Nnedi3(0, field=0, shifter=NoShift). It looks like this commit changed NoShift so it can no longer be instantiated, which is resulting in the following error being thrown upon attempting to import vsdehalo:
Traceback (most recent call last):
  File "src/cython/vapoursynth.pyx", line 3124, in vapoursynth._vpy_evaluate
  File "src/cython/vapoursynth.pyx", line 3125, in vapoursynth._vpy_evaluate
  File "/data/encoding/Stargate SG-1/Season 1/Stargate SG-1 - s01e01-02.vpy", line 14, in <module>
    import vsdehalo
  File "/usr/lib/python3.11/site-packages/vsdehalo/__init__.py", line 3, in <module>
    from . import alpha, denoise, vine, warp
  File "/usr/lib/python3.11/site-packages/vsdehalo/alpha.py", line 123, in <module>
    class _fine_dehalo:
  File "/usr/lib/python3.11/site-packages/vsdehalo/alpha.py", line 137, in _fine_dehalo
    pre_supersampler: ScalerT = Nnedi3(0, field=0, shifter=NoShift), pre_downscaler: ScalerT = Point,
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<string>", line 14, in __init__
  File "/usr/lib/python3.11/site-packages/vsaa/abstract.py", line 50, in __post_init__
    self._shifter = Kernel.ensure_obj(self.shifter or Catrom, self.__class__)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/vskernels/kernels/abstract.py", line 373, in ensure_obj
    return BaseScaler.ensure_obj(
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/vskernels/kernels/abstract.py", line 69, in ensure_obj
    raise exception_cls(
UnknownKernelError: (Nnedi3) This NoShift can't be instantiated to be used!

Even if no functions within vsdehalo are called, this error is still thrown. The only way to avoid it is to stop importing vsdehalo.

Fixed in https://github.com/Jaded-Encoding-Thaumaturgy/vs-kernels/commit/e801c9edfadab8fe72af44fcbefb2a11ba4b7425


For Python 3.7

For Python 3.7 replaced
import requests
by
import urllib.request
in api.py

For Python 3.7 replaced
import requests
by
import urllib.request
in api.py

The urllib.request (https://github.com/urllib3/urllib3) - is just part of the Python standard library stdlib.
Most (if not all) of the python stdlib is fugly because it just wasn't well designed, not because it was a product of a more innocent time (just look on documentation https://docs.python.org/3/library/urllib.request.html#module-urllib.request)
And requests-library in contrast is more elegant, simple and friendly for newbies.
P.S. The official Python docs recommend Requests as the standard library for performing high level HTTP requests. It's in a very visible banner on the urllib page. (https://docs.python.org/3/library/urllib.request.html#module-urllib.request)

requests library supported from python2 and python3 without some changes in code, if you prefer urllib.request, you can create fork or pull request.


Thanks for the review @rmetzger. The test failure seems to be unrelated. Merging this PR now.


JavaScript Exception

I got this exception most of the times when I run the app on device, and sometimes on simulator. I can not find the root cause. Any idea?
Error Domain=WKErrorDomain Code=4 "A JavaScript exception occurred" UserInfo={WKJavaScriptExceptionLineNumber=11, WKJavaScriptExceptionMessage=TypeError: Argument 1 ('target') to MutationObserver.observe must be an instance of Node, WKJavaScriptExceptionSourceURL=http://localhost/, NSLocalizedDescription=A JavaScript exception occurred, WKJavaScriptExceptionColumnNumber=13}))

I was able to run it fine in every device I tested. Could you provide some info on the stack you're using? Xcode version, device name, iOS version, etc. It might be nice to check if you have correctly configured the ReCaptcha key.
Also, could you try running the example project in your device?

I’m already testing the example provided on git,
I got the error on any device, as an example: iPhone5s, iOS version 10.2.1, Xcode 8.2.1
The recaptcha key is also configured correctly. It’s nice to know that, works perfectly on simulator, but not on device.
Regards
Kasra Qasempour | Software Developer, Darmstadt | +49/6151/7877888

Appschmiede-Krankikom Darmstadt
Merckstrasse 3 | 64283 Darmstadt | Germany
W: http://appschmiede.de http://appschmiede.de/
E<EMAIL_ADDRESS><EMAIL_ADDRESS>
Digitale Transformation seit 1995. www.krankikom.de https://www.krankikom.de/

On 21. Sep 2017, at 17:17, Flávio Caetano<EMAIL_ADDRESS>wrote:
I was able to run it fine in every device I tested. Could you provide some info on the stack you're using? Xcode version, device name, iOS version, etc. It might be nice to check if you have correctly configured the ReCaptcha key.
Also, could you try running the example project in your device?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/fjcaetano/ReCaptcha/issues/7#issuecomment-331188460, or mute the thread https://github.com/notifications/unsubscribe-auth/ASs71KjhLKnow9Joq9vPD2qhSnIUeU1eks5skn3GgaJpZM4PZGoB.

The exception happens here:
var execute = function() {
observeDOM(document.getElementsByTagName("div")[3], function() {
window.webkit.messageHandlers.recaptcha.postMessage({action: "showReCaptcha"});
});
when  document.getElementsByTagName("div")[3] is not an instance of node.
here is the error:
Error Domain=WKErrorDomain Code=4 "A JavaScript exception occurred" UserInfo={WKJavaScriptExceptionLineNumber=11, WKJavaScriptExceptionMessage=TypeError: Argument 1 ('target') to MutationObserver.observe must be an instance of Node, WKJavaScriptExceptionSourceURL=http://localhost/, NSLocalizedDescription=A JavaScript exception occurred, WKJavaScriptExceptionColumnNumber=13}))
Regards
Kasra Qasempour | Software Developer, Darmstadt | +49/6151/7877888

Appschmiede-Krankikom Darmstadt
Merckstrasse 3 | 64283 Darmstadt | Germany
W: http://appschmiede.de http://appschmiede.de/
E<EMAIL_ADDRESS><EMAIL_ADDRESS>
Digitale Transformation seit 1995. www.krankikom.de https://www.krankikom.de/

On 21. Sep 2017, at 17:17, Flávio Caetano<EMAIL_ADDRESS>wrote:
I was able to run it fine in every device I tested. Could you provide some info on the stack you're using? Xcode version, device name, iOS version, etc. It might be nice to check if you have correctly configured the ReCaptcha key.
Also, could you try running the example project in your device?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/fjcaetano/ReCaptcha/issues/7#issuecomment-331188460, or mute the thread https://github.com/notifications/unsubscribe-auth/ASs71KjhLKnow9Joq9vPD2qhSnIUeU1eks5skn3GgaJpZM4PZGoB.

I was able to reproduce it on an iPhone SE running iOS 9.3 when I changed to an invalid key.
Could you try running this and paste the result here?
        webView.evaluateJavaScript("document.getElementsByClassName('grecaptcha-user-facing-error')[0].innerHTML") { result, error in
            print(result)
            print(error)
        }

If it prints ERROR for site owner: Invalid site key it is likely that you're using the wrong key, though your domain might be configured correctly. Please, try checking if you didn't set it up with the server key instead of the client key.

Btw, also don't forget checking if you've setup an Invisible reCAPTCHA key. If you try using a reCAPTCHA v2 key, the framework won't work.

Thanks for the supporting.
here is the result when I replace
(Error Domain=WKErrorDomain Code=4 "A JavaScript exception occurred" UserInfo={WKJavaScriptExceptionLineNumber=1, WKJavaScriptExceptionMessage=TypeError: undefined is not an object (evaluating 'document.getElementsByClassName('grecaptcha-user-facing-error')[0].innerHTML'), WKJavaScriptExceptionSourceURL=my domain, NSLocalizedDescription=A JavaScript exception occurred, WKJavaScriptExceptionColumnNumber=67})
when I replace with:
webView.evaluateJavaScript("document.getElementsByClassName('grecaptcha-user-facing-error')[0].innerHTML") { result, error in
print(result)
print(error)
}
The fact is that sometimes it works, so shows that the site key and domain are set correctly.
There is another question, what if I have more than one domains? is there any way I can pass an array of domains?
Regards
Kasra Qasempour | Software Developer, Darmstadt | +49/6151/7877888

Appschmiede-Krankikom Darmstadt
Merckstrasse 3 | 64283 Darmstadt | Germany
W: http://appschmiede.de http://appschmiede.de/
E<EMAIL_ADDRESS><EMAIL_ADDRESS>
Digitale Transformation seit 1995. www.krankikom.de https://www.krankikom.de/

On 22. Sep 2017, at 21:45, Flávio Caetano<EMAIL_ADDRESS>wrote:
Btw, also don't forget checking if you've setup an Invisible reCAPTCHA key. If you try using a reCAPTCHA v2 key, the framework won't work.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/fjcaetano/ReCaptcha/issues/7#issuecomment-331543101, or mute the thread https://github.com/notifications/unsubscribe-auth/ASs71PcVPL3WaRLPiIddmetntqdKOqlRks5slA5ngaJpZM4PZGoB.

I'm sorry, I just now realized that the test I gave you doesn't work on iOS, only on web browsers.
The fact that it does work sometimes is an improvement. You need to try and find out what causes the intermittence. The only way I could reproduce the original error you gave me was with a wrong public key.
There's no way to send an array of domains, nor there's no need to it. If you need to use a different domain, you can send it to the ReCaptcha class initialized as it is in the docs. Under the hood, ReCaptcha uses WKWebView.loadHTMLString(_:baseURL:) which expects an URL, so you really can't provide an array.

Same issue. It works fine on simulators, but crashes on real devices.
The error log is the same.

I have found the issue and it has been fixed, you can try as well. When you load the Webview for the first time,( it means when you call the ReCaptchaViewManager init method) you should set the size of Webview and the Webview must be added as subview to desired view, before you call the webView.loadHTMLString. If you do so, and you implement the
public func webView(_ webView: WKWebView, decidePolicyFor navigationResponse: WKNavigationResponse, decisionHandler: @escaping (WKNavigationResponsePolicy) -> Void)
this delegate method, you will see these to resources are loaded https://www.google.com/recaptcha/api2/anchor? and https://www.google.com/recaptcha/api2/bframe?. When the one with bframe is done, it means the view is loaded and user can press the validate, otherwise you will see the JS exception.

That is super weird. How did you manage to do that? When calling validate(on: UIView) it adds the WKWebView to the given view before executing the API. Did you, by any chance, sent a view that wasn't in the window hierarchy? I wonder if there should be some validation for that.
Also, how were you able to fix it? Or was it fixed with the current changes?

@kasraqq I applied some changes based on your comment. Could you take a look at the commit above and try it out to check if the issue was solved?

@fjcaetano The issue was solved in my app.
btw, can you change the javascript to this url (https://www.recaptcha.net/recaptcha/api.js) so that people in China can use it?

@mmlmml1 no problem, could you create a separate issue for that since it's not related to the exception?
@kasraqq It'd also be great to hear if the fix solved the issue for you as well since you were the one who brought it up

@fjcaetano Sorry for delayed response. I'm too much busy these days. I will send a quick feedback asap.

Closing due to inactivity

@fjcaetano This is still broken on version 1.0.1 for us. iOS 11.0 device iPhone 6 device. This ONLY seems to be an issue on iOS 11.0 so far. We are getting the following error from the ReCaptcha library: Error Domain=WKErrorDomain Code=4 "A JavaScript exception occurred" UserInfo={WKJavaScriptExceptionLineNumber=16, WKJavaScriptExceptionMessage=TypeError: undefined is not an object (evaluating 'document.getElementsByTagName("div")[4].outerHTML = ""'), WKJavaScriptExceptionColumnNumber=44, WKJavaScriptExceptionSourceURL=https://ourdomain.com/, NSLocalizedDescription=A JavaScript exception occurred}
The curious thing is that this causes an exception every other time we kick off the ReCaptcha webview flow. The following time we get a successful result. Any ideas?

@manderson420 that seems to be a different error. It appears to have been introduced with 78fa352220b698af141964bb64e362c77f49159f, since it fails on getElementsByTagName("div")[4].
Could you open a new issue so we can address this?
Also, as a workaround, could you try removing that line from recaptcha.html to check if the issue stops?

Sure, I'll open a new ticket with the details I posted 👍
I don't have access to the testing device with iOS 11.0 at the moment but will have an update for you when we're back from the holidays.


Mickledore absence

Will the mickledore version of this package ever be developed?
Thanks

Don't think so - have zero cycles left (and mickledore is EOL).


Adds Scene Layer Selection sample

@esreli Could you please approve this PR? @nixta approved the corresponding macOS PR. The only code difference between the two is the superclass of SceneLayerSelectionViewController on line 22.


Problems when starting

yarn start asks

? Allow localhost loopback for Microsoft Edge WebView? Yes/No

Regardless of what I choose, always Word opens and the following error is displayed in the sidepane:

For the web installation, is it possible to specify the path in an .env file, because otherwise the package.json is modified which may lead to accidentally commiting the url. Could we specify a default, globally accessible document so that testing is easier?
For the web installation, there is also an error

I guess this comes from another error " Error: listen EADDRINUSE: address already in use <IP_ADDRESS>:3000", have to investigate this.

For both start and start:web, I need admin rights? Is this really necessary?
The manual installation in Word web works. However, after opening the sidebar I get another error:

Locally, on my mac I can't get it to run either:

And I also suggest using dotenv (.env for storing config)

I tried different ways described in the documentation to get it install in the desktop version as well. None worked, and in the process I discovered that my university disabled the Office store. This might be the reason - I've contacted them and let's see if this gets resolved.
The manual web installation works now, but I think, I needed to run yarn dev-server the first time with admin rights.

This is working now, modulo https://github.com/OfficeDev/Office-Addin-Scripts/issues/769.


test: cover citadel service and sdk util

:tada: This PR is included in version 1.11.2 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 1.11.2 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


ServiceEntry for an external Apache ActiveMQ is not working

Bug description
Consider the following setup:

A pod with an ActiveMQ client installed running inside the Istio Service Mesh
An external (to the Mesh) Apache ActiveMQ with SSL enabled, on port 61616, server is using a self-signed certificate.

Goal: Be able to send a message from the pod to the ActiveMQ instance.
I'm facing the following issue:

Without the istio proxy sidecar, by that I mean using the annotation "sidecar.istio.io/inject":"false": I'm able to send a message initiated from the pod:

activemq_client_run -U <user> -P <password> -p"Hello World From Pod" -
b ssl://external.activemq.mydomain.com:61616 queue
Message sent
Operation completed in 12ms (excluding connect)

Note it's also working for a client running in different environment, say my laptop, as long as the server's cert is installed in the client's truststore.

BUT, with the istio proxy sidecar, "sidecar.istio.io/inject":"true": not able to send a message:

activemq_client_run -U <user> -P <password> -p"Hello World From Pod" -
b ssl://external.activemq.mydomain.com:61616 queue
...
ActiveMQ Transport: ssl://external.activemq.mydomain.com/<IP_ADDRESS>:61616, called closeSocket()
main, handling exception: java.net.SocketException: Connection reset
ActiveMQ Task-1, called close()
ActiveMQ Task-1, called closeInternal(true)
javax.jms.JMSException: Could not connect to broker URL: ssl://external.activemq.mydomain.com:61616. Reason: java.net.SocketException: Connection reset
	at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:36)
	at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:374)
	at org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:252)
	at co.nordlander.a.A.connect(A.java:374)
	at co.nordlander.a.A.run(A.java:189)
	at co.nordlander.a.A.main(A.java:157)
Caused by: java.net.SocketException: Connection reset
	at java.net.SocketInputStream.read(SocketInputStream.java:154)
	at java.net.SocketInputStream.read(SocketInputStream.java:141)
	at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
	at sun.security.ssl.InputRecord.read(InputRecord.java:503)
	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:975)
	at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1367)
	at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:750)
	at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123)
	at org.apache.activemq.transport.tcp.TcpBufferedOutputStream.flush(TcpBufferedOutputStream.java:115)
	at java.io.DataOutputStream.flush(DataOutputStream.java:123)
	at org.apache.activemq.transport.tcp.TcpTransport.oneway(TcpTransport.java:194)
	at org.apache.activemq.transport.AbstractInactivityMonitor.doOnewaySend(AbstractInact

It seems it doesn't even reach the server as it doesn't represent the cert yet, or it's connection is getting terminated at the sidecar or the egress gateway
The external service entry configuration:
Name:         activemq-external
Namespace:    istio-system
Annotations:  API Version:  networking.istio.io/v1alpha3
Kind:         ServiceEntry
Metadata:
  Creation Timestamp:  2020-07-06T02:38:45Z
  Generation:          1
  Resource Version:    41066455
  Self Link:           /apis/networking.istio.io/v1alpha3/namespaces/istio-system/serviceentries/activemq-external
  UID:                 cfebe000-bf31-11ea-9faf-02f174b32bd6
Spec:
  Hosts:
    external.activemq.mydomain.com
  Location:  MESH_EXTERNAL
  Ports:
    Name:      tls-external-activemq
    Number:    61616
    Protocol:  TLS
  Resolution:  NONE
Events:        <none>

Does anyone spot a problem with the configuration ? Otherwise, is ISTIO TLS not working with ActiveMQ Apache SSL ?
Thanks,
T
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ x] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ x] User Experience
[ ] Developer Infrastructure
Expected behavior
Steps to reproduce the bug
Version (include the output of istioctl version --remote and kubectl version and helm version if you used Helm)
How was Istio installed?
Environment where bug was observed (cloud vendor, OS, etc)

Hi @howardjohn , thanks for getting back.
I eventually got it working by adding this
  Endpoints:
    Address:  external.activemq.mydomain.com

to the serviceentry. I know from istio doc, that endpoints here are just a set of servers for load balancing purpose. But for some reason, it starts working by adding this config.
There are also other configurations like DestinationRule or VirtualService in the system that may affect this. What I am saying is that I may not be able provide the complete picture here. Anyway, it's no longer a blocker for me, so happy to close the ticket.

Thanks!

Sorry @howardjohn to hijack this closed issue, but it looks entirely relevant to our problem. We're using AmazonMQ (ActiveMQ) and EKS, and have the same problem but cannot find any solution that works (other than just bypassing the proxy). We have tried to recreate @tvdinh 's solution but that did not work. Without a mesh everything works fine. Other external services work fine (e.g. Couchbase and Kafka).
We're using k8s 1.17, and Istio 1.6.7.
Our ActiveMQ client connection URL looks like this (as provided by AWS):
failover:(ssl://HASH-1.mq.eu-central-1.amazonaws.com:61617,ssl://HASH-2.mq.eu-central-1.amazonaws.com:61617)
And this is the latest ServiceEntry config we tried, based on this issue:
kind: ServiceEntry
metadata:
  name: activemq-1
spec:
  hosts:
    - HASH-1.mq.eu-central-1.amazonaws.com
  ports:
    - number: 61617
      name: tls
      protocol: TLS
  resolution: DNS
  location: MESH_EXTERNAL
  endpoints:
    - address: HASH-1.mq.eu-central-1.amazonaws.com
---
apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
  name: activemq-2
spec:
  hosts:
    - HASH-2.mq.eu-central-1.amazonaws.com
  ports:
    - number: 61617
      name: tls
      protocol: TCP
  resolution: DNS
  location: MESH_EXTERNAL
  endpoints:
    - address: HASH-2.mq.eu-central-1.amazonaws.com```

We've also tried:
- No `ServiceEntry`
- TLS `ServiceEntry`
- TCP `ServiceEntry`

I've also attached a sample of the envoy [access_logs.log](https://github.com/istio/istio/files/5072058/access_logs.log).

Any help would be appreciated.

@jtnz : We had the same issue and the problem was that since we were in a active/passive mode, if for example node 2 was currently the master node, the application would first try on node 1 and would be redirected to node 2 by that first node and istio would not allow it. We had to add the endpoint addresses of each node to each service entry to allow redirects. It would then allow to directly contact each node and also to be redirected by those nodes to the master node. :
`apiVersion: networking.istio.io/v1beta1
kind: ServiceEntry
metadata:
name: activemq-se-1
spec:
endpoints:

address: activemq-node1.ssq.local
address: activemq-node2.ssq.local
exportTo:
.
hosts:
activemq-node1.ssq.local
location: MESH_EXTERNAL
ports:
name: tcp
number: 61616
protocol: TCP
resolution: DNS

apiVersion: networking.istio.io/v1beta1
kind: ServiceEntry
metadata:
name: activemq-se-2
spec:
endpoints:

address: activemq-node1.ssq.local
address: activemq-node2.ssq.local
exportTo:
.
hosts:
activemq-node2.ssq.local
location: MESH_EXTERNAL
ports:
name: tcp
number: 61616
protocol: TCP
resolution: DNS`

Maybe you can try to apply a DestinationRule. Here is the doc.

In this case, the workload send HTTPS requests (open TLS connection) to the activemq-node1.mycompany.com. The traffic is already encrypted by the workload so you can safely disable Istio’s mutual TLS:

kubectl apply -f - <<EOF
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
  name: my-rule
spec:
  host: activemq-node1.mycompany.com
  trafficPolicy:
    tls:
      mode: DISABLE
EOF


[#123510111] Do not run Acceptance Test in prod and staging

#123510111 Stop running cf-acceptance-tests in staging and production
What
We want to disable the execution of acceptance tests in staging and prod, and allow disable it in any other environment providing a flag.
The reason is that running the tests in prod/staging do not provide so much value, and some of the acceptance tests are not safe to run in production, as they occasionally fail in an unsafe way.
Context
We add a new environment variable ENABLE_CF_ACCEPTANCE_TESTS which is by default true, but false for prod and staging. The operator can optionally enable this variable if required.
This will only stop the tests from running, but we will continue configuring the jobs in concourse, and even execute all the preparation steps: render configuration, prepare container, etc.
Temporary user creation is also disabled if ENABLED_CF_ACCEPTANCE_TESTS is false
How to test?
Run this to upload the pipeline disabling the tests:
ENABLE_CF_ACCEPTANCE_TESTS=false BRANCH=$(git rev-parse --abbrev-ref HEAD) make dev pipelines DEPLOY_ENV=hector

Run up to the acceptance tests. Check the output of the temporary user creation, acceptance tests and delete user. They should indicate that they are disabled and not run.
Upload the tests as usual:
BRANCH=$(git rev-parse --abbrev-ref HEAD) make dev pipelines DEPLOY_ENV=hector

and rerun the acceptance tests. They should run as usual.
Double check the code and the defaults in the makefile.
Who?
Anyone but @keymon

works fine, merging


Upgrade to v1.0.0 - Rewritten in Typescript

Completes #11

I noticed you were migrating to TypeScript.
You may be interested in https://github.com/matthewlilley/escape-from-tarkov
Not as feature complete as it was built initially to do one thing (buy from flea market and sell to trader), but it has an interesting type generator which should help with breaking changes from BSG.

Cool, We're thinking about making it throw an exception if there was an update to the game, unless you manually push throw a "version override"
That way we can vet any changes and make sure things aren't breaking to new updates.
Reason being, we can try out best to prevent them from changing something big and using the old methods to detect people abusing the API.