python27Packages.sqlmap: 1.3.12 -> 1.4

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python2.7-sqlmap/versions.
meta.description for python27Packages.sqlmap is: '"Automatic SQL injection and database takeover tool"'.
meta.homepage for python27Packages.sqlmap is: '"http://sqlmap.org"

Checks done (click to expand)

built on NixOS

Warning: a test defined in passthru.tests did not pass

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 1.4 with grep in /nix/store/7rxx18qdalyll7cvrmdpmc8y76bw2c48-python2.7-sqlmap-1.4

directory tree listing: https://gist.github.com/deaab911e57db5005669fcfab6d96817

du listing: https://gist.github.com/1441cecc8b185dc23d8d41a66028f2ab

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

12 total rebuild path(s)
3 package rebuild(s)
3 x86_64-linux rebuild(s)
3 i686-linux rebuild(s)
3 x86_64-darwin rebuild(s)
3 aarch64-linux rebuild(s)
First fifty rebuilds by attrpath
python27Packages.sqlmap
python37Packages.sqlmap
python38Packages.sqlmap

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/7rxx18qdalyll7cvrmdpmc8y76bw2c48-python2.7-sqlmap-1.4 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

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

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/7rxx18qdalyll7cvrmdpmc8y76bw2c48-python2.7-sqlmap-1.4
ls -la /nix/store/7rxx18qdalyll7cvrmdpmc8y76bw2c48-python2.7-sqlmap-1.4/bin

cc @bennofs for testing.

if anyone wants to fix this, libmagic.so.1 is found in the file package. The source needs to be patch to look for ${file}/lib/libmagic.so.1


fixed #379 load configuration file from default path if not specified

fixed #379 load configuration file from default path if not specified

Coverage remained the same at 80.65% when pulling 7a8f2f42f836617c72e4d116dd117098a2ae8b07 on default-config-location into d37b6ec37579fa37ea1eb57f6e2059ea5bba4cc3 on master.

oops! the above comment is my misunderstanding. This pull request works as expected.


Lab2A : HARISH RAMESH worked with SUGATA SEN

Done with Sugata Sen

Done with Sugata Sen.
Referred to Apollo W11's spreadsheet format for 3.6 and 3.7

https://github.com/harishramesh98/ese5190-2022-lab2-into-the-void-star


Mobile layout: styling fixes

link

Main card moved back, this one done.

This needs to be realigned to fit on page

Still not fitting properly

These two should be fixed.
We can use the vertical line ｜ at the bottom version info divider, the font size should be same size as text.

QA passed


MongoDB 4.2 -> 4.4

We still use MongoDB 4.2 in some (most?) places, and support ends for it in April.  We need to start coordinating the upgrade to the next logical version to use.

Last upgrade information.
https://2u-internal.atlassian.net/wiki/spaces/SRE/pages/19240218/Mongo+4.2+Upgrade+Runbooks

edx-platform is using pymongo==3.13.0. As per their documentation Version 3.11 adds support for MongoDB 4.4. So this part seems fine.

https://www.mongodb.com/docs/manual/release-notes/4.4-upgrade-standalone/
https://www.mongodb.com/docs/manual/release-notes/4.4/#removed-features

Mongodb4.4 playbook already implemented in configuration. I made a small PR to make sandbox using it PR.
Sandbox is working fine import export of course working also.
[awais786-sandbox] awais786@awais786 i-06c213564dffc00b8:~$ mongod --version
db version v4.4.6


Keybow2040 device won't compile, gives unsatisfied trait bound for embedded_hal_async::i2c::I2c

Description of the issue
If you use the Keybow2040 device, it fails on compilation with:
note: the following trait bounds were not satisfied:
      `<I2C as embedded_hal_async::i2c::ErrorType>::Error = _`
      `I2C: I2c`

I've submitted a PR to address this
Hardware
I'm actually using Univa/is31fl3731 directly from an RP2040 board (Keybow 2040) - at the moment I'm just doing some messing around to get a basic keyboard running so I'm not using rumcake itself, but I'd like to try out using more of it as I go.
Version of rumcake used
I'm using the same is31fl3731 crate as current rumcake main, with:
is31fl3731 = { git = "https://github.com/Univa/is31fl3731", features = ["async", "keybow_2040"] }

Minimum Reproducible Example
You just need to set up a matrix using Keybow2040 to see the error, my code on RP2040 is as follows:
    let p = embassy_rp::init(Default::default());

    let sda = p.PIN_4;
    let scl = p.PIN_5;

    info!("set up i2c ");
    let i2c = i2c::I2c::new_async(p.I2C0, scl, sda, Irqs, i2c::Config::default());

    // Create LED matrix driver
    let mut matrix = Keybow2040::configure(i2c);

How to Reproduce

Set up a matrix using Keybow2040
Run cargo build

Expected Behaviour
Code compiles.

Closing this issue since it seems like more of an issue with the is31fl3731 crate rather than the rumcake crate. I have added comments to your PR in that repo.

Thanks - I've updated the PR. I couldn't see issues on the is31fl3731 repo so I thought I'd add it here - might be disabled in settings?

Thanks - I've updated the PR. I couldn't see issues on the is31fl3731 repo so I thought I'd add it here - might be disabled in settings?

My bad, didn't realize it was off. Should be fixed now.


ClientCrash

After deploying an extension, I experienced a repeated client crash. The extension added a field in item table and made that field visible on the item page.

What Id did you assign to the added table field? Unfortunately ids still have to unique across both base-table and extensions. Can you try to change the field id to a different range and redeploy?
If that doesn't work, can you share the code?

HI Thanks for you response. Table id's and Field id's are also a puzzel for me. Is there a documentation where i can check what i can use and what not. Besides it would be cool if VS Code would automatically suggest Table ID & Field ID.
The client crashed a few times and i redeployed the solution without changing the ID's and after 4 crashes it worked on itself. Kindly find attached the extension.

For the object ids the valid range are enforced by the compiler. Using field ids in the same range (70000000..74999999) should be safe in the preview.
Ids are working much like NAV today. We are looking into how to improve the experience around ids in the future.


tls/ssl certificate expired

Expected Behavior
calico-node pods start
Current Behavior
calico-node pod does not start, logs from the pod:
2022-08-12 19:18:18.704 [INFO][8] startup/startup.go 796: Using autodetected IPv4 address <IP_ADDRESS>/22, detected by connecting to <IP_ADDRESS>
2022-08-12 19:18:18.704 [INFO][8] startup/startup.go 833: No AS number configured on node resource, using global value
2022-08-12 19:18:18.705 [INFO][8] startup/startup.go 181: Setting NetworkUnavailable to False
2022-08-12 19:18:18.800 [INFO][8] startup/startup.go 878: found v4=<IP_ADDRESS>/18 in the kubeadm config map
2022-08-12 19:18:18.800 [INFO][8] startup/startup.go 882: found v6= in the kubeadm config map
2022-08-12 19:18:18.804 [INFO][8] startup/startup.go 688: FELIX_IPV6SUPPORT is false through environment variable
2022-08-12 19:18:18.812 [INFO][8] startup/startup.go 214: Using node name: <host>
2022-08-12 19:18:19.009 [FATAL][29] tunnel-ip-allocator/allocateip.go 202: failed to fetch node resource '<host>' error=Get "https://<IP_ADDRESS>:443/api/v1/nodes/<host>": x509: certificate has expired or is not yet valid: current time 2022-08-12T19:18:19Z is after 2022-08-10T19:20:45Z

Possible Solution

Steps to Reproduce (for bugs)

Context

Kubeflow TLS certificates were recently rotated (used in the istio-ingressgateway)
Kubernetes certs were renewed via 'kubeadm alpha certs renew all'

But it seems calico didn't get the memo? Where can I go to update the certificate Calico is using / seeing?
Your Environment

Kubeflow 1.2

Calico version : 3.16.9
Orchestrator version (e.g. kubernetes, mesos, rkt): Kubernetes (kubeadm)
Operating System and version: Ubuntu 20.04
Link to your project (optional):

From describing the pod:
Warning  Unhealthy    49m (x8 over 50m)     kubelet  Liveness probe failed: calico/node is not ready: Felix is not live: Get "http://localhost:9099/liveness": dial tcp <IP_ADDRESS>:9099: connect: connection refused
Normal   Pulled       40m (x6 over 49m)     kubelet  Container image "quay.io/calico/node:v3.16.9" already present on machine
Warning  Unhealthy    5m50s (x94 over 50m)  kubelet  Readiness probe failed: calico/node is not ready: BIRD is not ready: Error querying BIRD: unable to connect to BIRDv4 socket: dial unix /var/run/bird/bird.ctl: connect: no such file or directory
Warning  BackOff      46s (x159 over 45m)   kubelet  Back-off restarting failed container

This issue was due to renewed K8s certificates not being distributed to all nodes in the cluster, and the controlplane pods needed to be restarted.


Test & Verify:  TEE Data Validation

Issue:
Based on recent issues with critical errors in the evaluation report and continuing issues with import/export we need to perform data validation for all modules.
This can be performed by any team member with DB access:

[x] Export TEE (official data) and verify the export is correct against data from official db tables
[x] Import TEE and verify the import read data into the workspace tables properly
[x] Evaluate TEE which should be a clean eval

The exported data matches the database, and the import and evaluation work as expected.

Export works as expected.
Import works as expected. Data is recorded in the DB properly.
Evaluates successfully.


Make the usage easier

This PR contains the changes to make the Meilisearch easy to use.

@curquiza I have added the details on ReadMe and updated CI too.

Sorry, I've just seen that: can you update the examples in Examples section please with the new usage of the MeilisearchClient? 🙂


Fix idle priority task during animation

This PR is based on https://github.com/flutter/flutter/pull/82781 but takes a slightly different approach where instead of polling the task queue on the Timer queue, it waits until after the post-frame callback so that it doesn't compete with animation tasks scheduled via scheduleFrameCallback.
This also attempts to address the comments on the test by mimicking the calls at work and cleaning up earlier tests rather than using a real animator, at the expense of possible fidelity. An integration test may be warranted.
https://user-images.githubusercontent.com/13222934/205311407-82fd5676-e8fb-4b9d-b2e0-20b6b6fe929f.mp4
This video shows this patch at work in https://github.com/AsturaPhoenix/trip_planner_aquamarine / http://<IP_ADDRESS>/trip_planner_aquamarine. Here, the marker z-ordering is changed depending on which tab is active, and the change is an expensive operation that is scheduled with Priority.animation - 1.
Issues: https://github.com/flutter/flutter/issues/82016
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I signed the CLA.
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is test-exempt.
[x] All existing and new tests are passing.

@jonahwilliams Thanks; done.
Also fixed the test failure under randomized ordering by avoiding incrementing time during the new test. There seems to be a complex interaction in resetEpoch that I thought it best not to touch for now.

There's another thing that warrants discussion. _ensureEventLoopCallback schedules the event servicing loop using Timer.run. However, in widget tests this can leave us with a somewhat spurious "A Timer is still pending even after the widget tree was disposed." error. (We do need to ensure that the task we scheduled doesn't try to operate on the widget tree while !mounted, though.)
  void _ensureEventLoopCallback() {
    assert(!locked);
    assert(_taskQueue.isNotEmpty);
    if (_hasRequestedAnEventLoopCallback) {
      return;
    }
    _hasRequestedAnEventLoopCallback = true;
    Timer.run(_runTasks);
  }

WidgetTester.pumpAndSettle gets us past this, but if an animation was indeed scheduled, then we need at least another await tester.pump(Duration.zero); afterwards to service the timer, and this precludes the ability to actually write a widget test to catch the case where a task might try to operate on a disposed widget.
A full solution could be to make tasks cancellable and dispose the timer if all pending tasks are cancelled, but that doesn't seem worth the complexity.
We can get around this by scheduling the event loop as a microtask, though this does effectively increase its priority somewhat. I don't think the effect should be otherwise noticeable.
However, I'm inclined to just live with this. Thoughts?
Example of what such a test needs to look like:
    await tester.pumpWidget(MyWidget());
    await tester.pumpAndSettle();
    await tester.pump(Duration.zero);
    expect(find.byType(MyChild), findsOneWidget);

@Piinks Yes; @goderbauer raised a concern that I think stems from the limitations of the API.
Please be advised that although I have this issue patched on my fork, my project is no longer hitting this issue.
I was using this to deal with it being expensive to change z-ordering of a large number of markers on Google Maps, but this is no longer an issue now that we've migrated to flutter_map. Google Maps seems to be doing a lot of unfortunate serialization, particularly on Android, where it's harder to avoid as it happens partly in GMS.

I'm inclined to close this PR since we no longer require this behavior.


[#93] Re-write all the tests and make them simple

#93

Coverage remained the same at ?% when pulling 6da6a127573046f2bd093fd6d581fd6ae2957c29 on issue-93-refactor-tests into 1e04fdfcb58c6777cbfcf9f29e812587f4816daf on v2.0.0.


Support edge-route on OpenShift

Really a case for https://github.com/IBM/charts - as we use this chart-repo - but it hasn't enabled issues - but it seems the charts have this as upstream for ODM.
Can you support edge-terminated routes in your chart?
https://docs.openshift.com/container-platform/4.12/networking/routes/secured-routes.html#nw-ingress-creating-an-edge-route-with-a-custom-certificate_secured-routes
That way we can piggy-back on the default ingress-controller TLS-certificate and avoid exposing the internal-generated certificates from ODM.

Sorry for the delay,
This charts is part of the ODM commercial offering. So you should contact the IBM support.
No plan to add edge-terminated routes. However you can create your own aside the ones created by ODM.


Cannot send project_id with registration

POST to /users with {authenticity_token: '...', user: {project_id: '231', display_name: '...', password: '...', email: '...'}} returns a 500.
Without a project_id it's fine.
For zooniverse/Panoptes-Front-End#372.

Pretty sure I was working on this with the welcome email

Linked to #841

closed by https://github.com/zooniverse/Panoptes/pull/917


Cookie header is not sent

I have Postman - REST Client (Packaged App) 2.0.15, Postman Interceptor 0.2.9, Chrome Version 41.0.2272.118 m. Postman is opened and Toggle Interceptor button is green in Postman.
I am trying sending a POST request with Cookie header but request is sent without cookie
Trying to investigate I opened background page of Postman Interceptor and in Console tab saw error "Refused to set unsafe header "Cookie"" (background_page.js:350). Other headers (Content-Length, Accept-Encoding etc. does not cause error and are normally sent). In Network tab I proved that request is indeed sent with all headers except Cookie.
Sometimes there is the same "refused" error for Connection header

When the Interceptor is on and enabled in Postman, every request made through Postman is sent to the Interceptor via Chrome's internal messaging API, and the XHR request is made from the Interceptor.
In Chrome, xhr.setRequestHeader("Cookie".. is disallowed. But the interceptor uses another Chrome API to set Cookies for that domain. You should see them in the Interceptor's network tab (see attached).

If not, can you set a breakpoint at background_page.js:216 and check if it's hit / and the value of cookies at that point? What's the string that you're setting in the Cookie header in Postman?


[docs] Fixes broken working range image

#244

thanks @zhubofei !

Coverage decreased (-0.008%) to 94.481% when pulling 82fad4c3d4007e9fd332c874949abb139524499e on zhubofei:fix-working-range-pic into 316fbe2b8b2508b58a0f38387c3a343b9c37e282 on Instagram:master.

Coverage decreased (-0.008%) to 94.481% when pulling 82fad4c3d4007e9fd332c874949abb139524499e on zhubofei:fix-working-range-pic into 316fbe2b8b2508b58a0f38387c3a343b9c37e282 on Instagram:master.


Add Configuration files of 2016 Aoife's Paper

:pencil: Description
Type: :rocket: feature
Add configuration files from the 2016 paper by Aoife, Sim and Kerzendrof.
:pushpin: Resources
Examples, notebooks, and links to useful references.
:vertical_traffic_light: Testing
How did you test these changes?

[ ] Testing pipeline
[x] Other method (describe)
[ ] My changes can't be tested (explain why)
Manually run the script

:ballot_box_with_check: Checklist

[x] I requested two reviewers for this pull request
[ ] I updated the documentation according to my changes
[ ] I built the documentation by applying the build_docs label

Note: If you are not allowed to perform any of these actions, ping (@) a contributor.

Couple of obvious points: you misspelled Kerzendorf, and you should use Aoife's second name, Boyle, in the folder name.

@epassaro I did not understand your comment. Which results are you talking about?

If you are referring to the text files, then they are not results. They are input files for the model

@wkerzendorf Added Aoife as a co author to the commit.


Re-open #2138, #11112 - WSL hangs on rsync/ssh

Windows Version
Microsoft Windows [Version 10.0.22621.3085]
WSL Version
<IP_ADDRESS>
Are you using WSL 1 or WSL 2?

[ ] WSL 2
[X] WSL 1

Kernel Version
Linux version 4.4.0-19041-Microsoft<EMAIL_ADDRESS>(gcc version 5.4.0 (GCC) ) #3996-Microsoft Thu Jan 18 16:36:00 PST 2024
Distro Version
Ubuntu 20.04
Other Software
Copying via ssh/rsync to another WSL instance, this one is WSL <IP_ADDRESS> on windows 10.0.19045.3996
Repro Steps
I run a script to rsync several files from one computer to another:
rsync --log-file=log.log -aiv --delete me@me.com:/mnt/c/dir .
The target computer is running sshd, with public key authentication (Ed25519-only).
Expected Behavior
The rsync process should run to completion.
Expected Behavior
The rsync process should run to completion.
Actual Behavior
The rsync process should run to completion.
Actual Behavior
After a couple of minutes (so, after transferring ~ few GiB or thousands of files -- I have seen it fail with few large files, and also fail with thousands of small files), the rsync process hangs. This is evidenced by:

Network traffic going from ~1Gbps to ~0
rsync process consuming no more CPU
rsync process still visible in the process table

The work-around I have for this, and have been using for years now, is to spawn in parallel a script that runs this:
while killall -CHLD ssh; do sleep 0.1; done
However, as recently as last month I forgot to spawn that and had an incomplete rsync several hours later (I seem to recall the rsync actually terminated with an error eventually, without copying all the files).
The prior issue #2138 has been open for a while and I have been holding out hoping there would be a fix for this, someday. The "keep killing SSH" helper process is a viable work-around but if I forget to run it, things fail.
Would really like my rsync to be more reliable...or at least have some satisfying explanation of root cause and why this might be specific just to rsync and not indicative of structural unsoundness inside WSL leading to race conditions.
Diagnostic Logs
Running strace -f on the job returns the following log, truncated to the last few megabytes because otherwise this would be a gigabyte-sized log. If you want the whole 643MiB ball of wax let me know.
submission-log.txt
Here's probably the relevant snippet of the log:
[pid  8411] read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 260096) = 260096
[pid  8411] read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 261120) = 261120
[pid  8411] read(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 324608) = 324608
[pid  8411] select(7, [6], [5], [6], {tv_sec=60, tv_usec=0}) = 2 (in [6], out [5], left {tv_sec=60, tv_usec=0})
[pid  8411] read(6, "\177\334-\24\312\230\v\2257\310\200\247\7\367q\351\316\254$\204\202\27\314r\3\240\226\30\353<\243\273"..., 28968) = 28968
[pid  8411] write(5, "O\377\0\7\1\10\200\37\376\0\0\20\376\0\0\4\0\0\0 Z\0\0\377\377\377\377\376\377\377\377\375"..., 65363) = -1 EAGAIN (Resource temporarily unavailable)
[pid  8411] select(6, [], [5], [], {tv_sec=60, tv_usec=0}) = 0 (Timeout)     << it's hanging here
[pid  8411] select(6, [], [5], [], {tv_sec=60, tv_usec=0}) = 0 (Timeout)
[pid  8411] select(6, [], [5], [], {tv_sec=60, tv_usec=0}) = 0 (Timeout)
[pid  8411] select(6, [], [5], [], {tv_sec=60, tv_usec=0}) = 0 (Timeout)
[pid  8411] select(6, [], [5], [], {tv_sec=60, tv_usec=0}) = 0 (Timeout)
[pid  8411] select(6, [], [5], [], {tv_sec=60, tv_usec=0}) = 0 (Timeout)
[pid  8411] select(6, [], [5], [], {tv_sec=60, tv_usec=0}) = 0 (Timeout)
[pid  8411] select(6, [], [5], [], {tv_sec=60, tv_usec=0}) = 0 (Timeout)
[pid  8411] select(6, [], [5], [], {tv_sec=60, tv_usec=0}) = 0 (Timeout)
[pid  8411] select(6, [], [5], [], {tv_sec=60, tv_usec=0}) = 0 (Timeout)    << several minutes pass....
[pid  8411] select(6, [], [5], [], {tv_sec=60, tv_usec=0}strace: Process 8411 detached     << i killed the process here
 <detached ...>
strace: Process 8412 detached
rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(644) [sender=3.1.3]

I still have this problem.  I don't know why this issue was closed.

I reopened to the original issue, thank you for filing this and letting us know!

Getting exacly the same problem. rsync hangs indefinitely after a minute or even a few seconds. With the -v option the last output is always like. ( always starting with     32,768   0% )
32,768   0%   35.60kB/s    0:03:25

... the workaround (   while killall -CHLD ssh; do sleep 0.1; done   ) works for me too.


Fix up specs

The one spec that's expecting a 403 is returning a 200 from the URL. I don't have a URL that should return 403 on hand, so that spec is failing. But otherwise, you should be good here.

A huge, huge thank you, @brandonhilkert!


Update Razor to work for 3.1 SDKs

These bits include a new Razor language server, O# plugin and VSCode extension that update the Razor experience to work on 3.1 DSKs

Feel free to merge on my behalf when the repo is ready for it 😄

Thanks!


scipy.io.loadmat fail, decompressing error.

Please detail your questions here : )
  File "mio5_utils.pyx", line 548, in scipy.io.matlab.mio5_utils.VarReader5.read_full_tag File "mio5_utils.pyx", line 556, in scipy.io.matlab.mio5_utils.VarReader5.cread_full_tag File "streams.pyx", line 176, in scipy.io.matlab.streams.ZlibInputStream.read_into File "streams.pyx", line 163, in scipy.io.matlab.streams.ZlibInputStream._fill_buffer zlib.error: Error -2 while decompressing data: inconsistent stream state
When I run demo.py, an error happened on line: from utils.uv import uv_tex. I search it on baidu or google, but find nothing. Someone get this? share pls.

Finally, I find change import package order in uv.py can work.
from
import cv2 import numpy as np import os.path as osp import scipy.io as sio
to
import scipy.io as sio import cv2 import numpy as np import os.path as osp
But I don't know the real reason.

change the package order in demo.py and uv.py.

I face the same problem with u ,and thanks for your method, it works, though I also don't know why.

Maybe that web can help a little.
https://blog.csdn.net/Vigorcsdn/article/details/204976


Add public ips

https://app.asana.com/0/798383606298853/1125994430263979/f
Add public ips to docs under config/webhooks section.

It's not the sexiest copy I've ever written, but the info is there.
Reviewer: Please double check the production IP - I confirmed Sandbox via AWS but I don't have Production role. Everything matches the Asana card tho

@chrisixion All info is good but consider placing this information in bullet point format in the Conventions section right at the top of the documentation.

Good call! Much easier to reference. Look OK? I also removed from the Webhooks section.

@chrisixion looks good but you didn't push your changes to this PR :)

@chrisixion looks good but you didn't push your changes to this PR :)

Thought I'd deploy straight to live instead 😅
Added the warning to README ;)


Unable to start program C:\retdec\build\x64\Debug\ALL_BUILD Access is denied. MS VS 2015/2017

Hello, dear friends!
I am trying to figure out how to set up debugging environment for retdec in MS VS 2017, so I follow the instructions found here:
https://docs.microsoft.com/en-us/visualstudio/python/debugging-mixed-mode-c-cpp-python-in-visual-studio?view=vs-2017#enable-mixed-mode-debugging-in-a-cc-project
to enable mixed-mode debugging in a C/C++ project.
When I try to "Start without debugging", I see this message
"Unable to start program C:\retdec\build\x64\Debug\ALL_BUILD Access is denied."
It happens both on VS 2015 and 2017 (15.8.6)
OS Name	Microsoft Windows 7 Professional
Version	6.1.7601 Service Pack 1 Build 7601
I am very new to the project of this complexity and may approach this in a totally wrong way. So hopefully you could help me to figure out this whole situation and explain if possible step by step how to debug this program.
Your help is greatly appreciated!
PS
I guess what confuses me the most is the fact, that there is no separate python project.
Microsoft says:
Enable mixed-mode debugging in a Python project
1.Right-click the Python project in Solution Explorer, select Properties, select the Debug tab, and then select Enable native code debugging. This option enables mixed-mode for all debugging sessions.
And that is where i am completely lost...

Check the permissions on your retdec folder. It might be inheriting from C:\ which is rather locked down, and if you have different processes running at different authority levels, access denials will happen. Give Everyone Modify or Full Access permission to that folder to fix that.
Retdec doesn't have a Python project, you just have to put the command to run the retdec in the debugger and wait until it gets to the actual C process if you want to debug the internals. Debugging the Python part has to be done in pdb, but contributions are always welcome for a VS-compatible Python project.

Thanks for your answer!
Unfortunately, for a person like myself with a limited experience in the matter, it is still not clear. Please, do not judge me too harshly, but if possible provide clear, step by step instructions. If Visual Studio part makes matters complicated, let's forget about it and use any other debugger available.
You obviously know how to debug your own product, please describe how you do that using any debugger that you use but please be specific (literally, step by step).
Thanks again, hope to hear from you soon!
Kind regards, PK

Hello, there!
Just making sure if I should expect an answer to my question or simply forget about the whole thing.
Actually, I am surprised that you make your (brilliant!) code public and put it out there for all to see but could not share a secret way of debugging it.
I would settle for any debugging scenario as long as it works.
Still hope to hear an answer!
Kind regards!

Hello @PavelKotov1. As I wrote here, what you basically need is to (1) run retdec-decompiler.py to get a list of commands that have been run to decompile the input file and then (2) run these commands in VS in the debugging mode. This pretty much boils down to ordinary debugging of applications in VS and has little to do with RetDec. Unfortunately, almost none of us uses VS, so I am afraid we will not be able to help you in this regard (hence the D-help-wanted label).

You obviously know how to debug your own product, please describe how you do that using any debugger that you use but please be specific (literally, step by step).

Here is what I do to debug decompilation of an imaginary file test.exe on Linux with gdb (warning: this will probably won't work on Windows with RetDec built via VS as VS uses a different format of debugging information than gdb):

Just for completeness, you will need a debug build of RetDec (pass -DCMAKE_BUILD_TYPE=Debug to cmake when building RetDec).
Runretdec-decompiler.py test.exe

which prints the list of commands you can run in gdb.
Pick one of these commands, e.g./path/to/bin/retdec-fileinfo -c /path/to/test.c.json --similarity /path/to/bin/test.exe --no-hashes=all --crypto /path/to/share/retdec/support/generic/yara_patterns/signsrch/signsrch.yara --max-memory-half-ram

Run this command in gdb and set a breakpoint on main():$ gdb -quiet /path/to/retdec-fileinfo
Reading symbols from /path/to/bin/retdec-fileinfo...done.
(gdb) break main
Breakpoint 1 at 0x120ba6: file /path/to/src/fileinfo/fileinfo.cpp, line 401.
(gdb) run -c /path/to/test.c.json --similarity /path/to/bin/test.exe --no-hashes=all --crypto /path/to/share/retdec/support/generic/yara_patterns/signsrch/signsrch.yara --max-memory-half-ram
Starting program: /path/to/bin/retdec-fileinfo -c /path/to/test.c.json --similarity /path/to/bin/test.exe --no-hashes=all --crypto /path/to/share/retdec/support/generic/yara_patterns/signsrch/signsrch.yara --max-memory-half-ram
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".

Breakpoint 1, main (argc=7, argv=0x7fffffffdc48) at /path/to/src/fileinfo/fileinfo.cpp:401
401     {
(gdb)

After this, you can continue debugging from main().

Dear Petr!
This is perfect, exactly what I needed!
Now I can start learning your wonderful tool!
Thanks  a bunch!

If you want to run the program in Visual Studio and you get the "Unable to start program C:\retdec\build\x64\Debug\ALL_BUILD Access is denied." you should set the appropriate binary to be run.
As you can see C:\retdec\build\x64\Debug\ALL_BUILD is not an executable. To run the binary of your desire, you should set the active project in VS that generates this binary. You can do it by clicking on the project and select Set as startup project. Then you can run or debug this binary without problems.
Keep in mind, there are multiple binaries in this project. You should know which one you want to debug.
If you are in trouble, google for "Set as startup project".

This error exists in VS 2022 too. And I try to build a Setup Project that makes distributable MSI of my other project. And during a build I get Access Denied error, while running VS as Administrator and giving all possible rights to that folder. Who on Earth has more rights to access then a Super User?.. Oh, dear Microsoft...


How to train my own dataset？

I want to perform transfer learning to train the model with the pretrained weights on my own small image dataset. My small dataset category is completely different from that of Hoi. Let me know how to go about it.thank you.

Sorry for the latter response. First, you should build up a data loader to read and process your data. Second, you modify the output channel of the last convolutional layer of ct_head to the number of categories.


Bug:  netflix safari playback is choppy after latest update

Describe the bug
playing back Netflix on Safari with eqmac on makes the sound choppy it cuts off every 100 ms or something
Steps to Reproduce
Steps to reproduce the behavior

Go to safari with the latest eqmac update and macos update
Open Netflix with eqmac driver/sound processing enabled
The sound is choppy
See error

Expected behavior
it shouldn't get chopped off every second
Setup information:

Audio device used for playback: [14-inch MacBook pro built-in speakers]
Audio transmission interface: [built in]
macOS Version: [e.g. 14.1]
eqMac Version [app v1.8.0 driver v2.5.0]
eqMac UI Version [5.0.2]

This is occurring for me - with any source.  Sound is clipped every 100ms or so.
MacBook Pro 2019 - Sonoma 14.1
Audio Device: MacBook Pro built in speakers, and USB connected  Lancyia MK-70
eqMac - 1.8.0, driver 2.5.0 ui 5.0.2 (local)
Upgrade because there was no UI at all after upgrading to Sonoma

I had the same issue, went back to v 1.7.10...

Same issue as everyone else and going back to 1.7.10 solved it for me.

The same problem with Versión 17.2.1 (196<IP_ADDRESS>.12) running in macOS Sonoma 14.2.1. Clean install and the same issue. Coreaudio in Mac mini M2 and Mac Studio Pro M2 Max. Firefox working fantastic when audio playback like YouTube or Beatport, Soundcloud, etc. via eqMac v1.8.0

iMac Late 2012
Sonoma 14.2.1
eqMac v1.8.2
Sound is chopped in Safari 17.2.1
Sound is not chopped in Opera One 105.0.4970.21

Just ran into this after the last update. YouTube playback in Brave is choppy as described by the other comments above, YouTube playback in chrome has a delay, maybe <100ms.
Macbook Pro 16' 2020 (ARM64/M1)
Sonoma 14.0
Brave Browser 120.0.6099.217 arm64
eqMac UI v5.0.3
eqMac app v1.8.2
eqMac driver v2.5.0

Problem still there with v1.8.3...

Same issue for me on 1.8.4. Sound is choppy coming out of youtube

Also choppy on 1.8.5 (on safari w/youtube)

On v1.8.5 (Driver v2.5.2), also experiencing the same issue. Audio is choppy, sounds like a helicopter is right next to me while listening to audio from Safari. requires 1-4 restarts of eqMac to stop the issue, but it comes back minutes later or when switching tab groups. No issues anywhere else, only on Safari. Running Safari v17.3.

1.8.7 seems to fix the issue, thank you!

Same for me - 1.8.7 seems to solve it and also the recurring need for driver restart at wake-up


Bug fixes after merges

After several stories have now come together, I've fixed several UI bugs including:

Header links (back and sign out) not being aligned correctly on sub criteria pages
Sub criteria titles over side nav using subcriteria.id instead of subcriteria.name
Back to assessment overview link going incorrectly to assessment dashboard
Project reference no longer showing on assessment overview after filter to show short code introduced5.
Added correct styling for all status types on assessor dashboard
Corrected content under section headings on assessment overview/tasklist page for Unscored, Declerations and Scored

I also undertook some small refactors:

Removing a lot of legacy routing and views to tidy up the assess module
Converting jinja2 file types to html to be consistent across the template modules
Giving more accurate naming to templates and routes to reflect language used in conversation with design/COF
Repointing the index route start now button to the new URLs as refactored above

I had originally started naming things with .jinja2 to get syntax highlighting, but I'd just checked and it can be configured per project on the IDE I use (PyCharm) even for .html files, here's where if you're interested:


replace transcript when identical but with parenthesized reading

https://github.com/okonomichiyaki/wanikani-voice-input/commit/02e42e1e969a417015158b66ad9a3fc5e407b0d4


Fix reduced value handling when dispatching to 'reduce' method

According the documentation of reduce:
The iterator function receives two values: *(acc, value)*. It may use

R.reduced to shortcut the iteration.
and
Dispatches to the `reduce` method of the third argument, if present.

This pull request fixes the situation where an object with a reduce method is passed in list position and a transducer which uses reduced (such as take) is used as the reducing fn.

Good catch, thanks for the PR @ognen . This is a tricky one. I don't think it is possible to fix this in ramda. What this PR does is see that we have received reduced and continue returning that value rather than calling step. This is kind of ok. One problem is that if you R.take(2) from a structure with a million elements, the user's reduce method will still get called a million times. A bigger problem is that if a user has an infinite iterator in their reduce, it will go on forever even if we get reduced..
The best solution I can think of is to tell the user they have to handle reduced in their reduce method. Would you like to update the docs to say this? I actually wouldn't mind if you kept the test as well with a description like 'allows the user to handle reduced values when dispatching to the reduce method' that shows how one can do this.

@kedashoe Yes, the fix won't perform well (only correct). I've considered the issue at length and the conclusion was:

the reduce method, as is defined in Array is not possible to short-cut, this is the definition we are working with;
If the user owns the "custom" class providing the reduce method then yes, the user would be able to shortcut the reduction within it, but
what if the user is using ramda on a 3rd party provided library and has no control over the reduce method?

Context: I'm writing a wrapper around ramda that enables it to be used with immutable.js. Immutable's collections respond to reduce; are not aware of the shortcutting; and one cannot change their reduce method.
How do I proceed?

I don't think I'm understanding this correctly.
Thank you @kedashoe for your explanation.  I was having a difficult time trying to remember what I had once known about transducing.
But I'm still missing how this fix, @ognen, helps you solve your problem.  If your underlying function does not return reduced, how can a wrapper around it return reduced?
At first take, I like @kedshoe's suggestion.  But I think I'm still confused.

Context: I'm writing a wrapper around ramda that enables it to be used with immutable.js. Immutable's collections respond to reduce; are not aware of the shortcutting; and one cannot change their reduce method.

Maybe write a wrapper around immutable objects to intercept reduce?
Another option.. Immutable collections implement the iterator protocol. That means we could move these lines above the ones that check for a reduce method and your immutable stuff will go through that path and short circuit. Would that work for you?

Another option.. Immutable collections implement the iterator protocol. That means we could move these lines above the ones that check for a reduce method and your immutable stuff will go through that path and short circuit. Would that work for you?

That sounds like better behavior in any case, no?  Dispatching should only happen once we have exhausted the known types.

That sounds like better behavior in any case, no? Dispatching should only happen once we have exhausted the known types.

Works for me. Thoughts @ognen ?

@kedashoe @CrossEye Yes, this is the better option. The interable protocol is well defined and can be short-cut by ramda.  Giving it priority over reduce makes total sense!
Will update the pull request.

lgtm, could you squash the commits @ognen ?

@kedashoe you can squash the commits with the big green button

@kedashoe you can squash the commits with the big green button

True, but someone around here mentioned they don't like messing with other's commits and it makes sense to me.
I have done it before for documentation only PRs.. but even then the UI stabbed me in the back, resulting in a commit message I was not expecting :open_mouth:

ah, my apologies. i didn't mean to aggravate your PTSD. 😉
Carry on then

@kedashoe you can squash the commits with the big green button

True, but someone around here mentioned they don't like messing with other's commits and it makes sense to me.

I think we need to make a decision on this.  I for one was very happy with the big green button solution when it was introduced.  I find it painful to squash, and waiting for contributors to do so gains little, so this seemed ideal.  But I've also now occasionally been bitten by it.  I'm still in favor, but less strongly.
What do people think?  Should we keep the Squash Merge / Rebase Merge options or always choose between merging a collection of commits and requesting the user to squash?

I like to Squash Merge with the big green button on my own projects, personally. I haven't tried the Big Green Rebase yet, though.

Squashed.

@ognen :+1:

Thanks, @ognen!


LGTM.com - false positive - cs/useless-assignment-to-local when assigned as an out within a try/finally block

Description of the false positive
In general, the cs/useless-assignment-to-local rule makes sense: https://lgtm.com/rules/1506093386171/
However, in some cases, the error results in a false positive, where the compiler would throw if the assignment was removed. This happens if the local is assigned within a try/finally block (say, by a method call returning an out), and then used in the finally block. If the method call throws an exception, the local could be left uninitialized.
Here's a simplified example:
private void Test()
{
    ArraySegment<byte> rented = default; // necessary, otherwise compiler complains

    try
    {
        MethodThatMightThrow(out rented);
    }
    finally
    {
        DoSomething(rented);
    }
}

private void MethodThatMightThrow(out ArraySegment<Byte> rented)
{
    //rented = default;
    throw new InvalidOperationException();
}

private int DoSomething(ArraySegment<Byte> rented)
{
    return rented.Array.Length; // null ref if rented isn't assigned.
}

URL to the alert on the project page on LGTM.com
https://lgtm.com/projects/g/dotnet/corefx/latest/files/src/System.Text.Json/src/System/Text/Json/Document/JsonDocument.cs?sort=name&dir=ASC&mode=heatmap#V898

Many thanks for your report. We will work on a fix for this issue.


"SOURCE"

All HTML elements in lib.d.ts are lower case except for SOURCE which is upper case. Is there a reason for this. At a more general level these interfaces appear to be case insensitive -- the language needs a way of saying that.

"SOURCE" we should be able to fix by updating our dom generation logic. the case sensitivity is a bigger issue. JS is case sensitive, yet the DOM is not. Suggestions are welcomed though.


How to get Vercel like logs?

In Vercel, you are able to see access logs and request logs, just like:

I appreciate this library, formatting all the console.logs for us however Next.JS is very quiet by default. i.e.
$ docker run -p 3000:3000 nextjs
  ▲ Next.js 14.2.3
  - Local:        http://822e01df4cab:3000
  - Network:      http://<IP_ADDRESS>:3000

 ✓ Starting...
{"level":30,"time":1723899099678,"pid":1,"hostname":"822e01df4cab","name":"console","msg":" ✓ Ready in 236ms"}

Even after we visit 100+ pages, we don't see any additional logs like response status, user agent, etc.
I don't think this is this libraries aim, although, could it be something added to this library too?
If there are other libraries solving this problem, please let me know too 🙏

This library solely focuses on how to expose your existing logging in JSON format - rather than setting opinions on log levels or verbosity, or providing extra logging instrumentation.
What you're seeing here in that screenshot are HTTP traffic logs, akin to those you'd get out of nginx on its noisier settings. Next.js doesn't have a setting to enable these from its server by default. There's a discussion about this here: https://github.com/vercel/next.js/discussions/22945#discussioncomment-3361021, along with workarounds using middleware.


Commit option hidden when user had update, but not commit permissions…

…; need commit option to create pull request.

@jdereg this needs merged and redeployed to align with changes in n-cube


Use mongodb plugin,we deploy replicaSet mode mongodb, when node swtich,connect  failed

I use replicaSet mode mongodb.when PRIMARY node down. nodeos can not switch to connect to SLAVE node.I find because switch time  longer than nodeos re-connect time.nodeos wrongly think cannot re-connect to mongodb.I want to kown if there is a option to config how many time nodeos re-connect to mongodb.I want to change this option longger.
below is the log:
2018-09-11T11:17:28.744 thread-0   mongo_db_plugin.cpp:1214      ~mongo_db_plugin_imp ] mongo_db_plugin shutdown in process please be patient this can take a few minutes
2018-09-11T11:17:29.217 thread-2   mongo_db_plugin.cpp:451       handle_mongo_excepti ] mongo exception, action traces insert, line 783, code 13053, generic server error
2018-09-11T11:17:39.227 thread-2   mongo_db_plugin.cpp:559       get_abi_serializer   ] 13 N8mongocxx7v_noabi15query_exceptionE: No suitable servers found (`serverSelectionTryOnce` set): [connection refused calling ismaster on '<IP_ADDRESS>:27017'] [connection refused calling ismaster on '<IP_ADDRESS>:27017']: generic server error
rethrow No suitable servers found (`serverSelectionTryOnce` set): [connection refused calling ismaster on '<IP_ADDRESS>:27017'] [connection refused calling ismaster on '<IP_ADDRESS>:27017']: generic server error:
    {"n":"eosio.token","what":"No suitable servers found (`serverSelectionTryOnce` set): [connection refused calling ismaster on '<IP_ADDRESS>:27017'] [connection refused calling ismaster on '<IP_ADDRESS>:27017']: generic server error"}
    thread-2  mongo_db_plugin.cpp:559 get_abi_serializer
2018-09-11T11:17:39.227 thread-2   mongo_db_plugin.cpp:559       get_abi_serializer   ] n: eosio.token
2018-09-11T11:17:39.727 thread-2   mongo_db_plugin.cpp:559       get_abi_serializer   ] 13 N8mongocxx7v_noabi15query_exceptionE: No suitable servers found (`serverSelectionTryOnce` set): [connection refused calling ismaster on '<IP_ADDRESS>:27017'] [connection refused calling ismaster on '<IP_ADDRESS>:27017']: generic server error
rethrow No suitable servers found (`serverSelectionTryOnce` set): [connection refused calling ismaster on '<IP_ADDRESS>:27017'] [connection refused calling ismaster on '<IP_ADDRESS>:27017']: generic server error:
    {"n":"eosio.token","what":"No suitable servers found (`serverSelectionTryOnce` set): [connection refused calling ismaster on '<IP_ADDRESS>:27017'] [connection refused calling ismaster on '<IP_ADDRESS>:27017']: generic server error"}
    thread-2  mongo_db_plugin.cpp:559 get_abi_serializer
2018-09-11T11:17:39.727 thread-2   mongo_db_plugin.cpp:559       get_abi_serializer   ] n: eosio.token
2018-09-11T11:17:40.228 thread-2   mongo_db_plugin.cpp:451       handle_mongo_excepti ] mongo exception, action traces insert, line 783, code 13053, generic server error
2018-09-11T11:17:40.228 thread-2   mongo_db_plugin.cpp:453       handle_mongo_excepti ]   raw_server_error: { }
2018-09-11T11:17:40.728 thread-2   mongo_db_plugin.cpp:559       get_abi_serializer   ] 13 N8mongocxx7v_noabi15query_exceptionE: No suitable servers found (`serverSelectionTryOnce` set): [connection refused calling ismaster on '<IP_ADDRESS>:27017'] [connection refused calling ismaster on '<IP_ADDRESS>:27017']: generic server error
rethrow No suitable servers found (`serverSelectionTryOnce` set): [connection refused calling ismaster on '<IP_ADDRESS>:27017'] [connection refused calling ismaster on '<IP_ADDRESS>:27017']: generic server error:
    {"n":"eosio","what":"No suitable servers found (`serverSelectionTryOnce` set): [connection refused calling ismaster on '<IP_ADDRESS>:27017'] [connection refused calling ismaster on '<IP_ADDRESS>:27017']: generic server error"}
    thread-2  mongo_db_plugin.cpp:559 get_abi_serializer
2018-09-11T11:17:40.728 thread-2   mongo_db_plugin.cpp:559       get_abi_serializer   ] n: eosio
2018-09-11T11:17:41.231 thread-2   mongo_db_plugin.cpp:364       consume_blocks       ] process_applied_transaction,  time per: 3004884, size: 1, time: 3004884
2018-09-11T11:17:41.231 thread-2   mongo_db_plugin.cpp:350       consume_blocks       ] draining queue, size: 0
2018-09-11T11:17:41.272 thread-2   mongo_db_plugin.cpp:412       consume_blocks       ] mongo_db_plugin consume thread shutdown gracefully

@heifner will look into adding configuration option for retrying connection to mongodb

I believe you can specify that via the uri:
http://mongodb.github.io/node-mongodb-native/3.0/reference/connecting/connection-settings/

Does this require a code change, or can you specify what you need in the connection string?

@heifner ,I think need a parameter in config.ini to set the retry times nodeos can not connect to mongodb

@yaanhyy can you try with virtual IP so that in eos's point of view it's only connecting to a single IP address.

mongo db plugin removed


[feat] Added starter activity tailwind & tailwind + shadcn templates

CLA Assistant Lite bot: Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.

I have read the CLA Document and I hereby sign the CLA

You can retrigger this bot by commenting recheck in this Pull Request

I have read the CLA Document and I hereby sign the CLA

Thank you for this, it looks great!

@all-contributors add @waruhachi for code


Wayland Support

It's a nice to have, but not necessary

No plans for working on anything Wayland specific any time soon.
Supporting Windows, Mac, X11, Android, 3DS, and Emscripten is work enough.

Dotto Uses SDL2 Under The Hood on Linux, So You Might Find This Useful - https://wiki.archlinux.org/title/wayland#SDL2


Drop legacy distutils in setup.py

distutils is not recommended for use and unnecessary for modern Python environments. Use only setuptools instead. From https://docs.python.org/3/library/distutils.html:

Most Python users will not want to use this module directly, but instead use the cross-version tools maintained by the Python Packaging Authority. In particular, setuptools is an enhanced alternative to distutils ...
The recommended pip installer runs all setup.py scripts with setuptools, even if the script itself only imports distutils. Refer to the Python Packaging User Guide for more information.

Codecov Report

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

@@           Coverage Diff           @@
##           master     #187   +/-   ##
=======================================
  Coverage   92.63%   92.63%
=======================================
  Files           5        5
  Lines         842      842
=======================================
  Hits          780      780
  Misses         62       62

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 0c1bbf6...f18e483. Read the comment docs.

Is there any update on this?

Setuptools is a dependency of pip, so is no longer an optional extra.


bootstrap-basic5

Heya! Do you have plans to add a new 'bootstrap-basic5' theme based on Bootstrap 5?
https://getbootstrap.com/

I'm sorry, I don't think so.
WordPress have a lot more rules regarding to theme submissions.
Some of their rules seems to be more difficult for a theme like this (theme for developer).
For example: they do not allow .map including in the theme files, while .map files help theme developers a lot!
You or whoever can use this name Bootstrap basic x, or Bootstrap-basic x (where x is number) to create and publish the theme.
It's okay, I don't reserve it and no need to mention to me. :-)
If there is any need for help, you can always tell me.


Erasing a line that connects (like an "o" shape) does nothing.

Draw a filled circle. Use the eraser to draw a "o" shape inside the circle. Behaviour is unpredictable. Once nothing happened second time a solid line appeared.

Champika

Dupe of https://github.com/fsih/papergrapher/issues/2


Can not Archive iOS project

Project with react-native-adapty integration can not be Archived to release and upload to the App Store.
I tested also with example app from this repo - the same result.
react-native-adapty=1.3.10
Build works, I can run it on the real device, but when trying to Archive in Xcode - getting the error:
Undefined symbols for architecture arm64:
  "_swift_stdlib_isStackAllocationSafe", referenced from:
      function signature specialization <Arg[1] = Owned To Guaranteed> of generic specialization <[Swift.String : Swift.String], [[Swift.String : Swift.String]]> of Swift._NativeSet.subtracting<A where A == A1.Element, A1: Swift.Sequence>(A1) -> Swift._NativeSet<A> in libAdapty.a(KinesisManager.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

It fails on the Linking stage

Just for information. I checked it with https://github.com/adaptyteam/AdaptySDK-iOS and example from iOS SDK can be Archived correctly. Here is specific issue for React Native linking...

I'm currently diving the net, can you please provide an extended build log? Example is fine as you've mentioned

Instead of the solution on StackOverflow, I've found link to this very issue. Maximum call stack size exceeded

I'm currently diving the net, can you please provide an extended build log? Example is fine as you've mentioned
Archive example_2022-03-27T00-23-56.txt

Can you reproduce it?

Mine is working fine
RN 0.63.3, latest adapty

Yeah, wip

@akolpakov fix found
One of our users also faced this issue and has found a problem. They downgraded Xcode from 13.3 to 13.2 and everything worked.

Currently looking for info why it doesn't emit errors in native iOS build

Yes, downgrade of Xcode to 13.2.1 works. It is a workaround, but good to investigate this issue and fix it ;)
Thanks!

Fixes found
@akolpakov
Problem is occurring after updating Xcode 13.3. I've tested these fixes on Adapty example, you can use any of listed:
1. Updating Library Search Paths in Xcode
You need to change Library Search Paths in Xcode:

Remove "$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)"
Add "$(SDKROOT)/usr/lib/swift"

2. Adding new fix_library_search_paths feature in your Podfile
In your podfile find post_install section and add one line of fix_library_search_paths(installer) there and function itself. Should work after that.
    ...
     post_install do |installer|
         flipper_post_install(installer)
+       fix_library_search_paths(installer)
     end
 end

+def fix_library_search_paths(installer)
+    def fix_config(config)
+        lib_search_paths = config.build_settings["LIBRARY_SEARCH_PATHS"]
+        if lib_search_paths
+            if lib_search_paths.include?("$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)") || lib_search_paths.include?("\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"")
+                lib_search_paths.delete("$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)")
+                lib_search_paths.delete("\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"")
+                if !(lib_search_paths.include?("$(SDKROOT)/usr/lib/swift") || lib_search_paths.include?("\"$(SDKROOT)/usr/lib/swift\""))
+                    lib_search_paths.insert(0, "$(SDKROOT)/usr/lib/swift")
+                end
+            end
+        end
+    end
+
+    projects = installer.aggregate_targets
+    .map{ |t| t.user_project }
+    .uniq{ |p| p.path }
+    .push(installer.pods_project)
+
+    projects.each do |project|
+    project.build_configurations.each do |config|
+    fix_config(config)
+end
    project.native_targets.each do |target|
      target.build_configurations.each do |config|
        fix_config(config)
      end
    end
    project.save()
  end
end

You can check out commit to Adapty example I've made to make this work: https://github.com/adaptyteam/AdaptySDK-React-Native/commit/501be86ec5b762cc08135a20bfc77d5349ec5e58

Also, it is said, that updating RN to >= 0.67 helps, although I've failed to make this work with Adapty example
All of these fixes were found in this react-native-purchases issue. Huge props to them! If you are willing to find more info about this bug nature, it is also available there.

Fixes found
@akolpakov
Problem is occurring after updating Xcode 13.3. I've tested these fixes on Adapty example, you can use any of listed:
1. Updating Library Search Paths in Xcode
You need to change Library Search Paths in Xcode:

Remove "$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)"
Add "$(SDKROOT)/usr/lib/swift"

Should work after that

2. Adding new fix_library_search_paths feature in your Podfile
In your podfile find post_install section and add one line of fix_library_search_paths(installer) there and function itself. Should work after that.
    ...
     post_install do |installer|
         flipper_post_install(installer)
+       fix_library_search_paths(installer)
     end
 end

+def fix_library_search_paths(installer)
+  def fix_config(config)
+    lib_search_paths = config.build_settings["LIBRARY_SEARCH_PATHS"]
+    if lib_search_paths
+      if lib_search_paths.include?("$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)") || lib_search_paths.include?("\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"")
+        # $(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME) causes problem with Xcode 12.5 + arm64 (Apple M1)
+        # since the libraries there are only built for x86_64 and i386.
+        lib_search_paths.delete("$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)")
+        lib_search_paths.delete("\"$(TOOLCHAIN_DIR)/usr/lib/swift-5.0/$(PLATFORM_NAME)\"")
+        if !(lib_search_paths.include?("$(SDKROOT)/usr/lib/swift") || lib_search_paths.include?("\"$(SDKROOT)/usr/lib/swift\""))
+          # however, $(SDKROOT)/usr/lib/swift is required, at least if user is not running CocoaPods 1.11
+          lib_search_paths.insert(0, "$(SDKROOT)/usr/lib/swift")
+        end
+      end
+    end
+  end
+
+  projects = installer.aggregate_targets
+    .map{ |t| t.user_project }
+    .uniq{ |p| p.path }
+    .push(installer.pods_project)
+
+  projects.each do |project|
+    project.build_configurations.each do |config|
+      fix_config(config)
+    end
+    project.native_targets.each do |target|
+      target.build_configurations.each do |config|
+        fix_config(config)
+      end
+    end
+    project.save()
+  end
+end

Also, it is said, that updating RN to >= 0.67 helps, although I've failed to make this work with Adapty example
All of these fixes were found in this react-native-purchases issue. Huge props to them! If you are willing to find more info about this bug nature, it is also available there.

Thank you @divanc this worked. I've been stuck trying to fix this for hours now.
Thank you so much.

Coming from here: https://github.com/invertase/react-native-firebase/issues/7021 this helped me too! Thank you. BTW. just 1.) was enough.

Thank you so much, Xcode 15.1 sucess.

solution works for you @devadilson

my react native version is 0.64. any reference

thank you.. worked in xcode 15.3 as well..

@wisnulaku6 Hello, can you please explain how you workaround the issue on xcode 15.3, I have a RN 0.63 project, recently updgraded my Xcode version to 15.3 and I can't archive my project.


Draw order is different for native views for ios and android.

I have two native Views showing video from TokBox.
The draw order in render() is as follows:
first the large video,
then the red box and inside the red box the a small video.
When I disable the small video and replace it with an empty View and re-enable it the draw order changes so that the small video is hidden behind the large video but the View component with red background is shown on top of the large video but in place of small video there is to large video. So the red box is both on top of the background video and behind it.
the zIndex for video below is 1 and for the topmost video it is 3

Using react-native: 0.35.0

Is this behavior specific to videos or does it happen for any sort of component?
A reproduction on rnplay.org would be pretty helpful here.

I think it needs a native component but I can try to reproduce it with a simpler view using the requireNativeComponent

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with Canny! Check out its new home: https://react-native.canny.io/feature-requests/p/draw-order-is-different-for-native-views-for-ios-and-android


The identity of the calling application could not be established

Hello!
I am trying to use Get-PCCustomer -all but am receiving errors.  My script is:
$VerbosePreference = "continue"

$clientSecret = "..."
$clientSecretSecure = $clientSecret | ConvertTo-SecureString -AsPlainText -Force

$credentials = Get-Credential "..."

# Native app authentication
Add-PCAuthentication -cspappID "..." -cspDomain "..." -credential $credentials

# Web app authentication
#Add-PCAuthentication -cspappID "..." -cspDomain "..." -cspClientSecret $clientSecretSecure

Get-PCCustomer -all

The ... are populated with values from the Partner Center web app and/or native app registrations.
When I try to run the script with the native app authentication line un-commented, I see:
VERBOSE: POST https://login.windows.net/office.smartechcorp.net/oauth2/token with -1-byte payload
VERBOSE: received 3429-byte response of content type application/json; charset=utf-8
VERBOSE: POST https://api.partnercenter.microsoft.com/generatetoken with -1-byte payload
VERBOSE: received 4422-byte response of content type application/json;charset=UTF-8
VERBOSE: GET https://api.migaz.tools/v1/version/PCPSModule with 0-byte payload
VERBOSE: received 10-byte response of content type application/json; charset=utf-8
A new Partner Center PowerShell Module version (<IP_ADDRESS>) is available
VERBOSE: POST https://api.migaz.tools/v1/telemetry/PCPSModule with -1-byte payload
VERBOSE: received 4-byte response of content type application/json; charset=utf-8

Name                           Value
----                           -----
Username<EMAIL_ADDRESS>Domain                         my.domain.com
Resource                       https://api.partnercenter.microsoft.com
ClientId                       some-client-id-guid
VERBOSE: POST https://api.migaz.tools/v1/telemetry/PCPSModule with -1-byte payload
VERBOSE: received 4-byte response of content type application/json; charset=utf-8
VERBOSE: GET https://api.partnercenter.microsoft.com/v1/customers with 0-byte payload
Invoke-RestMethod : The remote server returned an error: (403) Forbidden.
At C:\Program Files\WindowsPowerShell\Modules\PartnerCenterModule\<IP_ADDRESS>\PartnerCenterCustomer.psm1:36 char:21
+ ... $response = Invoke-RestMethod -Uri $url -Headers $headers -ContentTyp ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

You cannot call a method on a null-valued expression.
At C:\Program Files\WindowsPowerShell\Modules\PartnerCenterModule\<IP_ADDRESS>\PartnerCenterCustomer.psm1:37 char:9
+         $obj += $response.Substring(1) | ConvertFrom-Json
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

And when I try using web app authentication, I see:
VERBOSE: POST https://login.windows.net/office.smartechcorp.net/oauth2/token with -1-byte payload
VERBOSE: received 1241-byte response of content type application/json; charset=utf-8
VERBOSE: POST https://api.partnercenter.microsoft.com/generatetoken with -1-byte payload
VERBOSE: received 2986-byte response of content type application/json;charset=UTF-8
VERBOSE: GET https://api.migaz.tools/v1/version/PCPSModule with 0-byte payload
VERBOSE: received 10-byte response of content type application/json; charset=utf-8
A new Partner Center PowerShell Module version (<IP_ADDRESS>) is available
VERBOSE: POST https://api.migaz.tools/v1/telemetry/PCPSModule with -1-byte payload
VERBOSE: received 4-byte response of content type application/json; charset=utf-8

Name                           Value
----                           -----
Domain                         my.domain.com
Resource                       https://graph.windows.net
ClientId                       some-client-id-guid
VERBOSE: POST https://api.migaz.tools/v1/telemetry/PCPSModule with -1-byte payload
VERBOSE: received 4-byte response of content type application/json; charset=utf-8
VERBOSE: GET https://api.partnercenter.microsoft.com/v1/customers with 0-byte payload
Invoke-RestMethod : {"code":0,"description":"The identity of the calling application could not be established.","data":[],"source":"PartnerFD"}
At C:\Program Files\WindowsPowerShell\Modules\PartnerCenterModule\<IP_ADDRESS>\PartnerCenterCustomer.psm1:36 char:21
+ ... $response = Invoke-RestMethod -Uri $url -Headers $headers -ContentTyp ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
You cannot call a method on a null-valued expression.
At C:\Program Files\WindowsPowerShell\Modules\PartnerCenterModule\<IP_ADDRESS>\PartnerCenterCustomer.psm1:37 char:9
+         $obj += $response.Substring(1) | ConvertFrom-Json
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

I have created the native app registration in Azure AD with the following delegated permissions:

Windows Azure Active Directory

Access the directory as the signed-in user
Read all users' basic profiles
Sign in and read user profile

Microsoft Partner Center (SampleBECApp)

Access Partner Center

The app is registered in Partner Center as a native app using the "Register existing app" link and selected the app that was registered in Azure AD.
The user account I am using is a global admin in both Partner Center and Azure AD.
Also, despite the A new Partner Center PowerShell Module version (<IP_ADDRESS>) is available notice, I have made sure module is updated to <IP_ADDRESS> with Get-Module -Name "PartnerCenterModule":
ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     <IP_ADDRESS>   PartnerCenterModule                 {Add-PCAuthentication, Add-PCCustomerRoleMember, Get-PCAddressRulesByMarket, Get-PCAuditRecords...}

I've been at this for several days, and this is the farthest I've been able to get.  Any help would be greatly appreciated!  Let me know if I left anything out that may help in debugging.
Thank you!

Hi @wgbartley
Not sure what your particular problem is but your module is outdated so I would suggest you try this:
PS C:> Get-Module -Name "PartnerCenterModule"
PS C:> Install-Module PartnerCenterModule
WARNING: Version '<IP_ADDRESS>' of module 'PartnerCenterModule' is already installed at 'C:\Program
Files\WindowsPowerShell\Modules\PartnerCenterModule\<IP_ADDRESS>'. To install version '<IP_ADDRESS>', run Install-Module and
add the -Force parameter, this command will install version '<IP_ADDRESS>' in side-by-side with version '<IP_ADDRESS>'.
PS C:> Install-Module PartnerCenterModule -force
PS C:> Get-Module -Name "PartnerCenterModule"
PS C:> Import-Module PartnerCenterModule
PS C:> Get-Module -Name "PartnerCenterModule"
ModuleType Version    Name                                ExportedCommands

Script     <IP_ADDRESS>   PartnerCenterModule                 {Add-PCAuthentication, Add-PCCustomerRoleMember, Get-PCAdd...
Then retry your script.

@cblackuk - It looks like I forgot to restart PowerShell ISE when I updated the module in a separate PowerShell console.  The good news is that it's definitely using <IP_ADDRESS> now  :-).  The bad news is the error messages are still the same :-(.

@wgbartley I cannot test this particular cmdlet at the moment, might try tomorrow from work but first error looks like Authentication issue as 403 the second one; however, looks like something is wrong in the PartnerCenterCustomer.psm1:36 char:21 which is not something I was looking at... so it would require debugging again ;-(

$clientSecret = 'webapp secret'
$clientSecretSecure = $clientSecret | ConvertTo-SecureString -AsPlainText -Force
Add-PCAuthentication -cspDomain 'mydomain.onmicrosoft.com' -cspAppID 'webapp id' -cspClientSecret $clientSecretSecure
$customer = Get-PCCustomer -all | Out-GridView -PassThru
I've just tried on my env and it worked without issues. Can you double check appid and appsecret, or create a new one for test?

@PauloRamosGit - Thanks for looking into this!
I tried generating a new web app keys (a 1-year key and a 2-year key) with the same results:
{"code":0,"description":"The identity of the calling application could not be established.","data":[],"source":"PartnerFD"}

I noticed that your sample cspDomain is mydomain.onmicrosoft.com.  Should my domain also end in onmicrosoft.com?  I've copied+pasted the domain from the Partner Center web app registration for cspDomain.  I have tried our onmicrosoft.com domain but receive:
{"error":"unauthorized_client","error_description":"AADSTS70001: Application with identifier '...' was not found in the directory
....onmicrosoft.com ...

Found the reason for your problem @wgbartley
Go to the User management on Partner Center, select the user you are using on the script, enable Assists your customers as: Admin Agent.

@PauloRamosGit - I made the admin agent change and waited about 45 minutes, but I am still getting the same error.

If:
. You are using Native App Id
. Right domain name
. Right username and password
. User have the right permissions
. You are using NativeApp Id + Credentials authentication
i don't see why you are getting this error

Just an update that I spoke with Partner Center support yesterday.  They weren't able to find any issues with the account, but they also weren't able to support the Power Shell module either.  Back to the drawing board!

I tried generating a new web app keys (a 1-year key and a 2-year key) with the same results:

If you are creating keys, that means you are creating a Web App.
Please create a Native App and use NativeApp Id + Credentials authentication

Hi @wgbartley , have you solved the problem?

I am still experiencing the problem with the PowerShell module.  However, I went ahead and used the C# SDK and was able to get the data I was after.
Even though I'm using the same username and password for the C# SDK, I still get the "The identity of the calling application could not be established." error with the PowerShell module using the web app credentials.
The one thing I haven't tried yet is comparing the HTTP traffic between the C# SDK and PowerShell module to see if the requests are somehow different.

Hi @wgbartley this error typically an indentication that the application you are using does not have a service principal. If you are still experincing this error I would recommend unregistering the application through Partner Center and then registering it again. Please let us know if you have any issues, and I will be glad to help!

Hi @wgbartley, I am going to close this issue. If you are still encountering this issue please free to reopen it or create a new issue.


fix xa branch commit bug

What this PR does:
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.liuyuecai seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

@georgehao approve 啥？ci 都没过

我看下


Configmaps and Secrets annotated by default hooks cannot be uninstalled

Now helm hooks are added by default to all resources like ConfigMap and Secret. It makes a problem with manage them in helm releases. ConfigMap with hooks cannot be tracked and removed while uninstall a release.
The helm creators know about that. They write about it here.
The solution could be helm.sh/hook-delete-policy but it is not possible to apply for regular resources to store data (ConfigMap, Secrets).
I think this default behavior should be changed. Should be a possibility to add hooks manually where it really needs. And should stop add hooks in all configmaps and secrets by default.

Hi, @GRomR1.
Thank you for pointing out this problem. Yes, it is a known problem, and it seems to us to be the lesser of the evils.
If your hooks, for example with migration, need variables from secrets or configmaps, you can get a whole range of problems:

the first time you deploying with a hook, it uses secrets/configmaps that haven't been deployed yet
when you update your secrets/configmaps, the hooks will use the old data
when you add annotations to secrets/configmaps already created, for example, when you start using a hook, you get errors saying that the objects have already been created

That's why we use this approach.

Maybe it worth to use alternative approach: dont mark configmap/secrets as hook by default, but add optional flag to generate second, "hooked" version of object? Migration jobs will able to use "hooked" configmap/secrets AND chart uninstalling will remove non-hooked ones.

Hi, @evgkrsk.
Thanks for the idea. We've been discussing this too, and it seems there are no better options at the moment.

Agree with @evgkrsk.
This would be an option to user. The variant where exists "hooked" configmap/secrets sounds good! It should be removed after migration job finished.
To me the best option is don't setup this hook annotations because the hook job is an option. Someone like us prefer to run migrations in CI and don't use migration job. And this annotations was clutter up our cluster in review-stands.

Okay, let's try this approach.

Any updates?


change range of time showing

Is there anyway to show the time in range of 30 min?

@Pegahkeshavarz Did you get the solution for it ?

https://github.com/facebook/react-native/issues/5967


About formula calculate K

Hey, thank you for your great job!
in your paper:

and I think the k should be:

@basusourya

Hi @wutaiqiang,
Thanks for writing. First, note that all logarithm in our work is to base 2, hence there will be no 'e' in the expression, it will instead be 2.
Moreover, you have equated the expression for point-wise surprise S(x) to \tau = \mu/2, but the goal of the algorithm is to control the over cross-entropy (average surprise) to \tau.
Now, the question is why do we want to use \mu. The answer is that we are sampling from words up to S(x) = \mu (when ordered in descending order of S(x)) for the initialization part only, hence the expected observed S(x) is much less than \mu.
The main part of the algorithm is computing error from \tau, this effectively controls \mu such that the overall cross-entropy is close to \tau.
In short, the target value is \tau, but we are sampling from words with maximum \mu surprise (hence the equality with \mu and not \tau), and at each iteration, we adjust \mu so that the average observed surprise is close to \tau. We also experimentally verify in the paper that this technique works sufficiently well.
Hope that answers your question.

Okay, Thank you for your kind help~


a[md-button] doesn't work without button[md-button]

The following code doesn't properly render buttons.
<md-toolbar color="primary">
    App
    Summary
    View Log
    View Metric
    View Config
</md-toolbar>

If I add a button it fixes the a[md-buttons]:
<md-toolbar color="primary">
    App
    Summary
    View Log
    View Metric
    View Config
    <button md-button>FOO</button>
</md-toolbar>

Using:

angular: 2.0.0-rc.0
material: 2.0.0-alpha.4

I'm having some trouble replicating this. Did you import MdAnchor into your TS and add it to your directives array? A plunker or a TS file would be helpful.

Importing MdAnchor as a directive solved my problem.
<md-toolbar color="primary">
    App
    Summary
    View Log
    View Metric
    View Config
</md-toolbar>

I also had to remove color="primary" else the text color was the same as the background color. Is this correct?
We should probably add something to the docs about MdAnchor.
Thanks for the help!

We haven't yet documented MdAnchor, which is pretty confusing. Thanks for bringing it up!  I added an issue:  https://github.com/angular/material2/issues/399
Re: color, using md-button gives you a flat button. The color property for a flat button controls the color of its foreground text.  Since your toolbar background color is set to the primary color and the button text color is set to that same primary, it is expected that it will be the same.  You'll probably want to remove the color attributes from your buttons to ensure they use the default contrast color defined by the toolbar.  Hope that helps!  Closing this, as it doesn't seem to be a bug.

rc1 - not working for me


Automatic imploding of strings?

Thanks for making this :)
Are you sure about this one, and where did you see this? Render arrays are special cased but I think (as one of the D8 theme system maintainers) that's it.
{{ myarray }}```

@Cottser I will locate where the documentation noted this & will test the cases today

@Cottser the reference I had seen was: https://www.drupal.org/node/1918824
Another aspect of this example is that one expects all three example to produce the same output, but it doesn't (by default). Take this example:

I am updating my master branch code to a more correct explanation.

Clarified under https://github.com/jenter/twig-snippets#functions--filters

Thanks, that makes more sense. I updated the documentation on drupal.org.

Thanks again Scott, let me know if you need any assistance with future documentation, testing, etc in the future.
@Cottser


lxd networking and contradictory documentation

I'm using the latest ubuntu & lxd.
Basically, I just need containers created with Juju to use the local dhcp. However, because of a bug with Juju, they also have to use the default bridge,
I'm was thinking of a simple configuration:

Have eth0 use the default bridge (lxdbr0 bridged to eno1 on host)
Have a eth1 connect to another bridge (br0 bridged to eno2 on host)

However, after nearly 20 hours of tinkering, I am still just as lost. The lack of details and documentation contradictory documentation is maddening.
I have been trying to piece together something that would work using:
https://insights.ubuntu.com/2016/04/07/lxd-networking-lxdbr0-explained/
https://github.com/lxc/lxd/blob/master/doc/configuration.md#network-configuration
https://insights.ubuntu.com/2017/02/14/network-management-with-lxd-2-3/
http://stackoverflow.com/questions/41826430/how-to-setup-lxd-containers-that-communicate-over-the-lan
I'd appreciate any help. Thanks!

Ok, so there are two parts to this:

Defining the two bridges
Attaching the containers to them

The first part is where things differ depending on LXD versions, the second remains the same (two is made easier by extra command line options in recent LXD).
On LXD 2.0.x, bridges must be defined OUTSIDE of LXD, typically in /etc/network/interfaces.
This will typically look like:
auto br0
iface br0 inet manual
  bridge-ports eno1

auto br1
iface br1 inet manual
  bridge-ports eno2

This would effectively ignore the lxdbr0 bridge which you could then completely turn off (with "dpkg-reconfigure -p medium lxd").
On LXD 2.3 or higher, you can instead do:
lxc network create br0 ipv4.address=none ipv6.address=none bridge.external_interfaces=eno1
lxc network create br1 ipv4.address=none ipv6.address=none bridge.external_interfaces=eno2

Which will have LXD create and manage the two bridges for you.
At that point, you'll have two bridges defined and need to tell LXD to use them for your containers.
So lets remove the default "eth0" device and add the new "eth0" and "eth1":
lxc profile device remove default eth0
lxc profile device add default eth0 nic nictype=bridged parent=br0 name=eth0
lxc profile device add default eth1 nic nictype=bridged parent=br1 name=eth1

And there you go, any container using the "default" bridge will now get eth0 attached to br0 and eth1 attached to br1.
I'm not particularly familiar with Juju, so the above is simply about the LXD configuration for the setup you want. If Juju has broken tests for a particular bridge name or something similar, you may need to adapt the bridge names above to satisfy such requirements.

@stgraber Thank you so much! I have tried bits of this, but not all as you laid it out. I will try it now and let you know.

Okay, this is much closer.
I left the default eth0 (with the default bridge lxdbr0), because this is exactly what juju expects. I did use the following to create the second interface:
lxc network create br1 ipv4.address=none ipv6.address=none bridge.external_interfaces=eno2
lxc profile device add default eth1 nic nictype=bridged parent=br1 name=eth1

The interface was created successfully, but the guest will not get a DHCP address for that interface unless I edit the guest's /etc/network/interfaces and run ifup eth1.
I see a couple options:

Am I missing a setting in xld for the guest to get the dhcp automatically?
Can lxd create a bridge in the guest between eth0 and eth2?

Thanks again!

LXD doesn't alter container configuration files, so it's normal that nothing happens on eth1 since the image shipped by Ubuntu only has dhcp configured on eth0.

You may be able to have cloud-init set that up for you by passing it network data with user.network-config (though saying that cloud-init's network-config is poorly documented would be an understatement)

No, again, that'd be something you'd need to do through cloud-init's network-config.

You can find some information on the network-config syntax here: http://curtin.readthedocs.io/en/latest/topics/networking.html
But note that running DHCP on two different interfaces typically fails as both DHCP servers will be pushing a default gateway which will then conflict, making whichever dhcp client runs first succeed and the others fails.

Oh, of course the bridge with two DHCP servers wouldn't work...
I'll take a look at cloud-init. I really appreciate the quick response!

Yeah... cloud-init is a pain
So for, I have:
  user.network-config: |
    version: 1
    config:
      - type: physical
        name: eth1
        subnets:
          - type: dhcp
            control: auto
      - type: physical
        name: eth0
        subnets:
          -type: dhcp
          control: auto

However, this gets rid of the default dhcp on eth0. I have not found anything on adding multiple interfaces.

Arg... just a typo in the spaces. Looks like I got it. Thanks!


[GPT-32] README: Update README with where to import the Content

Currently the README doesn't include anything on how the users can import the advisory website content, need to link it somehow
From SyncLinear.com | GPT-32

also add in instructions to upload redirects and routes


add readiness healthchecks for apps

For easier viewing: https://github.com/cloudfoundry/community/blob/rfc-readiness-healthchecks/toc/rfc/rfc-draft-readiness-healthchecks.md

Currently diego replaces the envoy certificate when the application instance is going down. By doing so gorouter will fail to connect to envoy because of the wrong certificate while the app is known to be unavailable and the de-registration has not yet been propagated to gorouter.
The same mechanism could be used for readiness checks to prevent requests from being set to the application in the small timeframe between the readiness check going down and the de-registration being propagated to gorouter.

@maxmoehl I am not sure I see the benefit of updating envoy certificate when readiness health check fails, since this is not an immediate action either given that envoy is watching changes on the filesystem.

@maxmoehl I am not sure I see the benefit of updating envoy certificate when readiness health check fails, since this is not an immediate action either given that envoy is watching changes on the filesystem.

what I'm saying is that the logic to replace the certificates already exists and diego is making use of it when an AI goes down. Since all the logic is already in place we might as well re-use it for the readiness checks since they have very similar mechanisms and it would help with potentially dropped/delayed nats messages.

We just had a discussion for a customer scenario issue that might be interesting for this RFC.
The readiness probe is a scheduled polling, like the health check (e.g. every n seconds). One the readiness state changes, the cascade of route updates, etc. takes place.
What we would like to add is an immediate control from the app to the readiness state checker, to be able to say: "My app is not ready, right now!".
The other way around this of course also works and could save some time, but the case where an app becomes not ready is from our point of view much more important.
It would allow app developers to protect their app from an overload scenario.
Consequences or requests for the "immediate" part of the state change:

New request should not be accepted right away. This means that possibly the TLS termination proxy (i.e. Envoy) could be adjusted to serve an invalid TLS cert, as it does for stopping instances.
The cascade of messages to Gorouter should still be done. "Disabling" the TLS proxy is only to increase the responsiveness of the "not ready" state.

What do you think about this, and do you see that this might still fit in the frame of this RFC?

@beyhan Can this be resolved by lowering the poll interval?

@beyhan Can this be resolved by lowering the poll interval?

@mariash at the moment the interval is 30s which is also documented in here. What options to lower the interval we have? It could help but won't be perfect because there is a gap depending on how long the poll interval is in which the app instance could get requests.
@ameowlia for completeness could you please add the concerns you expressed during the TOC meeting yesterday regarding the replace the certificates suggestion.

@mariash - can you add to the RFC about exposing the interval? It won't be a perfect fix, for this issue, but could improve it.

No objections to continue without immediate state change for this RFC and consider it in a larger context.
We are currently not using c2c networking because of the missing load balancing across instances and other bits (e.g. retries) that we get via gorouter.

Starting Final Comment Period. FCP should end on Aug 22, 2023.

The link on the top of this PR does not work for me. https://github.com/cloudfoundry/community/blob/main/toc/rfc/rfc-0020-readiness-healthchecks.md however does.


UI : Added Organization displayName in DataInsight health glance

Describe your changes :

Issue : #8996
Added Organization displayName in DataInsight health glance

Type of change :

[x] Improvement

Frontend Preview (Screenshots) :

Checklist:

[x] I have read the CONTRIBUTING document.
[ ] I have commented on my code, particularly in hard-to-understand areas.
[ ] I have added tests that prove my fix is effective or that my feature works.
[x] All new and existing tests passed.

Reviewers
@open-metadata/ui

@Sachin-chaurasiya  changes made as per comments!


Provide concise example of declaring HTTPEndpoint yaml resource

What content needs to be created or modified?
The docs here would benefit from a concise example of declaring a HTTPEndpoint resource in yaml
There already is the basis of an example here, but it requires clicking the link to see the verbose specification.
I think a concise resource inline in the doc would create a better first impression.

https://v1-13.docs.dapr.io/developing-applications/building-blocks/service-invocation/howto-invoke-non-dapr-endpoints/#using-an-httpendpoint-resource-or-fqdn-url-for-non-dapr-endpoints

My recommendation here comes from a discord user who didn't spot this

actually my question was more related to the dotnet sdk docs here https://docs.dapr.io/developing-applications/sdks/dotnet/dotnet-client/#invoke-a-service

@darraghjones could you expound on what you'd like to have clarified in the docs?

I guess the only example of using the dotnet dapr client to invoke a service is by passing in the app-id. It wasn't clear to me that I can also invoke a non-dapr endpoint by passing in the FQDN as the app-id.


Environment variables disappear when navigating between environments during editing

Steps to reproduce the behavior:

Create two environments
Enter content/variables in one of the two
Save everything
Go back to editing the environments (modal dialog)
Switch back and forth between editing either of the two environments
Filled out content/variables on one environment disappear

Expected behavior
My entered environment variables should not disappear
Screencast (30 seconds demonstrating the issue)
https://fdpl.io/altair-report-screencast.mp4
Desktop

OS: Ubuntu 19.04
Altair installed from the repository via apt-get
App Version: 2.2.2

Asides this really love Altair - thanks so much for your work! :+1: :)

Thanks for reporting this! I'd look into it as soon as I can.

@simonrepp Looking at it again, I figured the reason. The environments are expected as JSON (not JavaScript object), and this validation is done before saving the environment variables. So in your screencast, foo: 42 is actually not set, but is just reflected back in the editor (if you had reloaded the page for example, it would have gone). If you tried using proper JSON format (i.e. "foo": 42) it would be stored properly.
However, this difference should be indicated to the user in form of an error message or something like that, so it's not misleading.

Oh that makes sense! I almost suspected something else was going on :)
Indeed a small error message pointing out it's not well formatted JSON would surely do the job!
Thanks for the quick response, looking forward to playing around with environments now! :)


Add rosdep entries for xcursor and xkbcommon

This is needed for a fork of glfw.  To the best of my knowledge, these are the correct package names for ubuntu and debian.
I tried to infer naming conventions as best I could in terms of prefixing with lib and/or postfixing with -dev in the rosdep key name itself, but I see examples of various combinations.  Did I name these correctly?
Are entries for any other platforms required?

Did I name these correctly?

Yes, we usually use the debian / ubuntu package name as the key

Are entries for any other platforms required?

Ubuntu and Debian are the only 2 required. Fedora and Gentoo are appreciated.
Link to packages:

libxcursor-dev:

Ubuntu : https://packages.ubuntu.com/search?keywords=libxcursor-dev&searchon=names&exact=1&suite=all&section=all
Debian: https://packages.debian.org/search?keywords=libxcursor-dev&searchon=names&exact=1&suite=all&section=all

libxkbcommon-dev:

Ubuntu: https://packages.ubuntu.com/search?suite=all&section=all&arch=any&keywords=libxkbcommon-dev&searchon=names
Debian: https://packages.debian.org/search?keywords=libxkbcommon-dev&searchon=names&exact=1&suite=all&section=all


List of all verification states

To create a list of all the various event state seen in the Verifier
:heavy_check_mark:  Verification hash matches
...@FantasticoFox @rht

Transaction hash: 0x17cb36e3abfe5cd2894f7b324102c3864d202bc7b85e4f3e5ec78ca2c3db79d7
✅⌚Witness event verification hash has been verified on goerli via etherscan.io
✅🌿Witness Merkle Proof is OK
✅🔏 Valid signature from wallet: 0xhurrdurrimasheep

❌⌚Witness event verification hash does not match on goerli via etherscan.io

The long hash is always converted to <first 6>...<last 6>, that can be clicked to copy the hash to clipboard. I was copying the output from the CLI verifier, and hence the full hash.

To recap and combine all of the states above into accurate groups, here is my understanding:
File

✅ Verification hash matches
❌ 📄 Invalid file content hash
✅ 📄 File content hash matches 990d92....5774b8
❌ Verification hash doesn't match

Signature

✅ 🔏 Valid signature from wallet: 0xhurrdurrimasheep
❌ 🔏 Invalid signature from wallet: 0xhurrdurrimasheep

Witness

⛓ Witness transaction hash 0x17cb36....db79d7
✅ ⌚ Witness event hash has been verified on Goerli
✅ 🌿 Witness Merkle Proof is OK
❌ ⌚ Witness event can not be verified on Goerli
❌ Witness event verification hash doesn't match
❌ 🌿 Witness Merkle Proof is corrupted

Other

📷 Domain Snapshot

The verification hash is like the "Merkle root" to summarize the result, and so should be in its own classification.