Dragging slides (swipe) with mouse fires click event.

Describe the bug
After upgrade to v0.3.3,
dragging slides (swipe) with mouse fires click event.
To Reproduce
Steps to reproduce the behavior:

Go to 'https://codesandbox.io/p/sandbox/vue3-carousel-example-01-forked-k2m47s'
Drag with mouse on 'Carousel'
After dragging, window opens 'google.com'

Expected behavior
v.0.3.3 : Dragging with mouse is just swipes slides. Not capturing click events.
v0.3.1 : Everything is OK.
Screenshots
Desktop (please complete the following information):

OS: Windows 10, macOS 14
Browser : chrome, safari (desktop)
Version : latest

Using 'isSliding' data, I could solve this issue.
@slide-start="isSliding = true"
@slide-end="isSliding = false"
Is there any clever way to bypass this click events?

same problem

I found this comments, and it works like a charm.
https://github.com/ismail9k/vue3-carousel/issues/343#issuecomment-1852732552

I can see this library is trying to prevent the event from firing but in a wrong way, it uses a form of .stopPropagation but only when the event has already reached window
https://github.com/ismail9k/vue3-carousel/blob/master/src/components/Carousel.ts#L225-L228
This will indeed not prevent a click from firing and it should instead run event.preventDefault() instead of trying to capture the event


minikube: 1.22.0 -> 1.23.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/kubernetes/minikube/releases.
meta.description for minikube is: "A tool that makes it easy to run Kubernetes locally"
meta.homepage for minikube is: "https://minikube.sigs.k8s.io"
meta.changelog for minikube is: ""
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

/nix/store/0zvw05cpxdn49lb8r3sgm73f43lk520d-minikube-1.23.0/bin/minikube passed the binary check.

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

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

found 1.23.0 with grep in /nix/store/0zvw05cpxdn49lb8r3sgm73f43lk520d-minikube-1.23.0

found 1.23.0 in filename of file in /nix/store/0zvw05cpxdn49lb8r3sgm73f43lk520d-minikube-1.23.0

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

du listing: https://gist.github.com/9b6408b8ed382ddfbbfa47e02ec9b79d

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

8 total rebuild path(s)

3 package rebuild(s)

2 x86_64-linux rebuild(s)
2 i686-linux rebuild(s)
2 x86_64-darwin rebuild(s)
2 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
docker-machine-hyperkit
docker-machine-kvm2
minikube

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/0zvw05cpxdn49lb8r3sgm73f43lk520d-minikube-1.23.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The 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 minikube https://github.com/r-ryantm/nixpkgs/archive/fcaea23d6abc598884d7b595d2debbd1662067b2.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/0zvw05cpxdn49lb8r3sgm73f43lk520d-minikube-1.23.0
ls -la /nix/store/0zvw05cpxdn49lb8r3sgm73f43lk520d-minikube-1.23.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

2 packages built:

docker-machine-kvm2
minikube

Maintainer pings
cc @ebzzry @copumpkin @vdemeester @AtkinsChang @Chili-Man @kalbasit for testing.

Result of nixpkgs-review pr 138036 at fcaea23d run on aarch64-linux 1

2 packages built successfully:

docker-machine-kvm2
minikube

Result of nixpkgs-review pr 138036 run on x86_64-linux 1

2 packages built:

docker-machine-kvm2
minikube


Streaming on Multi Servers

Thank u so much for writing this library LFLivekit, awesome work. Now i want to stream to multiple servers like on Facebook, Youtube at same time. What should i do? I have read that it does not support, but i want it. Any other library or modifications in it?

@kk143g This might not be the solution you're looking for, but if you set up your own RTMP server (I use nginx for mine, it was really easy), you can stream to that server then use the link of that stream to rebroadcast to YouTube/Facebook/Twitch/whatever.

@tww0003 thanks for your suggestion, but i have done with this library quite easily by making more than one SOCKET.


Add support for Raw IPMI Commands

In using your package I needed to use raw commands, and thought others might want this functionality as well.

@bougou This is really useful for OEM commands. Let me know if you have questions or concerns.

@mdhorn There may be a typo error in the code, can you confirm it?

@mdhorn There may be a typo error in the code, can you confirm it?

@bougou Where do you believe there is a typo?  I'm building and using the code now.
I'm happy to update or correct if you tell me the concern.

@mdhorn

I think you mean to fill out at offset 0. You can check the returned err.
_, err := packBytes(req.Data, out, 0)

@mdhorn
I think you mean to fill out at offset 0. You can check the returned err.
_, err := packBytes(req.Data, out, 0)

@bougou Oh, good catch.
I fixed the offset and tested it.
I could check for an error, but the Request interface does not currently account for error handling.
Thanks!


Make panic semihosting a dev dependency

This should not be mandated by users of this crate (because they might
want to use a different panic handler), but the example needs it.

Thanks :)

Could we get a release on crate.io with this change?
Thanks


WIP: ESM server support (runs simple examples but not complete  - looking for guidance/is this something you would be willing to merge once complete)

Description
Early stage wip support for esm server - this runs but it currently breaks cjs - so far from mergable. There is definitely an amount of complexity (and just overhead/duplication) added here to be able to support esm servers. So I want to make sure this something you would be ok being merged when complete
Here is a very small example repo  using this PR shell and 1 remote (server and client)
Related Issue
https://github.com/module-federation/universe/issues/1918
Types of changes

[ ] Docs change / refactoring / dependency upgrade
[ ] Bug fix (non-breaking change which fixes an issue)
[x] (currently breaking) New feature (non-breaking change which adds functionality)

Checklist

[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.
[ ] I have updated the documentation.

@EliLichtblau im trying to move the node implementation to leverage as much of the federation runtime and sdk.
I suggest you implement esm support stuff on the sdk or runtime areas.
see here: https://github.com/module-federation/universe/pull/1978/files#diff-4b57cbf3b32c6d0876af72c8172701ba1f473ff218884b41d5444dfe6926cdd9
I replace most the code with federation.runtime.loadScriptNode

Doing it like this via sdk / runtime - we will use be able to slide ImportMaps support into the library and be able to provide tier 1 capabilties of federation to anyone, regardless of bundler tech.

To be completely honest - I do not know - when I do hmr stuff locally (federated or not) I always disable ssr because it kinda gets in the way. I'm pretty sure there are ways of unsticking it but the memory leak I'm less confident of - I will spend more time exploring good ways of doing this! Really cursory reading around - its a little jank - but it seem possible - this thread even recommending worker threads.
Appreciate all the advice!

Yeah but worker threads is not a viable solution IMO. It works but in reality i have only see a handful of users do this. Most are on aws lambda.
We can use vm.Module() and evaluate modules in the VM, that will let us dispose of the VM / reload it.
Still itll leak memory but thats probably going to be a reality for a long time.


feat(component): hero banner image background version

New Hero banner version to allow background image and content card container
Description
Added new version of the Hero banner to allow for background images and content card container as part of the Dotcom frontend build
Storybook link: https://legal-and-general.github.io/canopy/?path=/story/components-hero--image-background
Design link: https://legalandgeneral.invisionapp.com/spec/ckzs9rlfv04ab01yn7g3s1spu/inspect/878360141
Screenshot:

Checklist:

[x]  The commit messages follow the convention for this project

[ ] I have provided an adequate amount of test coverage

[ ] I have added the functionality to the test app

[x] I have provided a story in storybook to document the changes

[x] I have provided documentation in the notes section of the story

[x] I have added any new public feature modules to public-api.ts

I feel like the hero-img should have its own module since the API described above has very little in common with the other hero we have.

Quick note about the commit message, you currently have:
feat(component): hero banner image background version

Usually the scope of the commit describes the name of the component. If we go with a new module for this component, I would suggest it would end up as:
feat(hero-img): add new component

Quick note about the commit message, you currently have:
feat(component): hero banner image background version

Usually the (scope) of the commit describes the name of the component. I suggest it should be:
feat(hero-img): add new hero-img component

@IdaHW looks great 👍  the only thing I would ask you to do is squash the commits into a single one like @owensgit suggested:
feat(hero-img): add new component


Strange artefacts/shadows when using normal blend of two images

When capturing still images (to create a gif) from the camera on which I apply a normal blend of the following image for example (transparent background):

I sendup with some kind of shadow or artefacting on the final image:

I managed to reduce it slightly by making the filter image larger (it's originally 480x640 but the artefacting happens less when using 960x1280):

I can't seem to not get any of the grey borders (or shadows or artefacts or whatever it's called).
using PictureInput(image: filter, smoothlyScaleOutput: true, orientation: ImageOrientation.portrait) does not help and I'd even go as far as to say it makes things worse.
My blend workflow is this way:
Camera -> xFlip (mirror effect) -> normalBlend (filter) -> pictureOutput (changing encodedImageFormat from jpg to png does not affect this)
any clues on where to look ?

@jwoodrow the issue might be in the (#CliniqueiD) asset itself, try export a cleaner version of it (without shadows/antialiasing) ;)

I think what you're seeing is the result of the way that premultiplied alpha is handled with images in the framework. This is something that was the subject of quite a bit of debate in the original GPUImage:
https://github.com/BradLarson/GPUImage/issues/2535
https://github.com/BradLarson/GPUImage/issues/1210#issuecomment-25182881
and honestly I'm not sure where we ended up on how to handle that. It either needs to be fixed in the input so that we don't use premultiplied alpha when loading images or in each shader that works with blended content. The former would be preferred, but I can't recall why I haven't implemented that yet.


fix: update error message when folder not found

Issue
closes #477
Intent
If the client/secret do not have the correct groups applied, then it can be the case that the target folder is not found when doing a sasjs deploy. This can be confusing when the user opens SAS Drive and sees that the folder does in fact exist. So, we updated error message to give user a better  understanding of error.
Implementation

Added RootFolderNotFoundError class that inherits from Error.
Decoded access token if available and added scopes to the error message.
Throw RootFolderNotFoundError in SASViyaApiClient if the root folder is not present.

Checks
No PR (that involves a non-trivial code change) should be merged, unless all four of the items below are confirmed!  If an urgent fix is needed - use a tar file.

[x] Code is formatted correctly (npm run lint:fix).

[x] All unit tests are passing (npm test).

[x] All sasjs-cli unit tests are passing (npm test).
Mocked:

Server:

[x] All sasjs-tests are passing (instructions available here).

Server sasjs-cli tests Failed:

@allanbowe / @VladislavParhomchik / @medjedovicm I've pushed another commit which refactors this refactors this fix to bring it in line with how we handle other errors.
I've also updated the implementation section.


[ADDED|SEARCH] add the search feature in todo list project

Add the search feature in todo list
Find the below screenshot for my implementation

Please review this PR for #316 @avinash201199 also add the label as "Hacktoberfest"

Thank you for your contribution :)

Thank you for your contribution :)

Can you please merge this PR? @avinash201199

Thank you for your contribution :)

Can you please merge this PR? @avinash201199

sorry , I though I have merged it


[performance] reduce applications.pinpoint request from web UI

Which module is your feature request related to?
UI
Is your feature request related to a problem?
In almost every pinpoint page, it will (almost) always request the applications.pinpoint api event the the result may not be used, esp. in the tx list page and the tx mixed view page. Is there any reason to do this? If omitted, some hbase overhead may be reduced.
Describe the solution you'd like
It a page do no need all the application list data, do NOT make the request.

This is done by https://github.com/pinpoint-apm/pinpoint/pull/8059


Azure tutorial on AI core

 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 have signed the CLA already but the status is still pending? Let us recheck it.

@DevelopedByAnurag

Please enter your SAP email address in your author information/Github profile as described in this tutorial: https://developers-qa-blue.wcms-nonprod.c.eu-de-2.cloud.sap/tutorials/docs-tutorial-1-getting-started-newv2.html

@DevelopedByAnurag
CHECK SPELLING:

Error:
file: ai-core-azure.md
line: 15
reason: Datastore

Error:
file: ai-core-azure.md
line: 25
reason: NoSQL

Error:
file: ai-core-azure.md
line: 36
reason: config

Error:
file: ai-core-azure.md
line: 50
reason: config

CHECK VALIDATION:
>Error:
    file: ai-core-azure.md
    reason: VALIDATION: rules.vr file must contain at least 1 validation

I will remove the rules.vr file from the production repository.  Be sure and do a pull into your local production (Tutorials) repository so you have the latest version.  We only store the rules.vr file in the QA repository.


Cannot initialize flutter run, failure on gradle - on unzipping gradle.wrapper

Steps to Reproduce
Error using flutter run
Using iMac on High Sierra (running with Visual Studio Code).
Following the flutter guide for the random words project
I was able to get it to work with my windows 10 laptop.
I have the Java SDK downloaded, I have removed the gradle file and then re-downloaded
as per https://github.com/NativeScript/NativeScript/issues/3930
Error executing simctl: -6
dyld: Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
Referenced from: /Applications/Xcode.app/Contents/Developer/usr/bin/simctl
Reason: image not found
Initializing gradle...                                   /
Oops; flutter has exited unexpectedly: "Exit code 1 from: /Projects/Coding/flutterProjects/myapp01/android/gradlew -v:
Unzipping /var/root/.gradle/wrapper/dists/gradle-4.1-all/bzyivzo6n839fup2jbap0tjew/gradle-4.1-all.zip to /var/root/.gradle/wrapper/dists/gradle-4.1-all/bzyivzo6n839fup2jbap0tjew

Exception in thread "main" java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:219)
        at java.util.zip.ZipFile.<init>(ZipFile.java:149)
        at java.util.zip.ZipFile.<init>(ZipFile.java:163)
        at org.gradle.wrapper.Install.unzip(Install.java:214)
        at org.gradle.wrapper.Install.access$600(Install.java:27)
        at org.gradle.wrapper.Install$1.call(Install.java:74)
        at org.gradle.wrapper.Install$1.call(Install.java:48)
        at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
        at org.gradle.wrapper.Install.createDist(Install.java:48)
        at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
        at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)".

Sending crash report to Google.
Crash report sent (report ID: ea0ef7b98c6b296d)
Crash report written to /Projects/Coding/flutterProjects/myapp01/flutter_03.log;
please let us know at https://github.com/flutter/flutter/issues.

After removing gradle, I reinstalled it and was given this error message
A problem occurred configuring root project 'android'.
> Could not resolve all files for configuration ':classpath'.
   > Could not download intellij-core.jar (com.android.tools.external.com-intellij:intellij-core:26.0.1)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/intellij-core/26.0.1/intellij-core-26.0.1.jar'.
         > SSL peer shut down incorrectly

It's stuck on initializing gradle, though I am on slow internet speeds --> does that affect the rate of initializing gradle?
Flutter Doctor
Passed. No issues detected.

Presumably the gradle wrapper is failing to notice that the download failed, and then tries to unzip it?

cc @mravn-google

So, why not give us a config for which gradle should be use (wrapper or local distributions) ?
Just like this :

Cause you know, some time network issues in China is painful.

You can do that manually by editing the file in android/gradle/wrapper/gradle-wrapper.properties.  It should look something like this:
#Fri Jun 23 08:50:38 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip

You can change it to
#Fri Jun 23 08:50:38 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=gradle-4.1-all.zip

Which would have it look for gradle-4.1-all.zip in that same folder.  Note you should be using at least Gradle 4.1 for this project - I don't think 3.3 would work.  See https://stackoverflow.com/questions/22896569/how-to-use-gradle-zip-in-local-system-without-downloading-when-using-gradle-wrap for some more examples.

I'm totally sure that runs good for ONCE. But not the best for the REST.

The reason:Net is to slow...
Modifty the gradle/gradle-wrapper.properties
Windows:
distributionUrl=file:/d:/gradle-xxx-all.zip
Linux:
distributionUrl=file:/tmp/gradle-xxx-all.zip

Closing as dup of #13645
Please upvote and follow there


Update odgiViz and odgiDraw

nf-core/pangenome feature request
Hi there!
Describe the solution you'd like
odgiViz:

Set -P 10.
Add path names in the visualization
Find a formula that is capable of calculating the size of the resulting PNG. If it is too large, remove the consensus sequences. If it is still too large, abort. @andreaguarracino
odgiDraw:
Set -w 5 as default. Maybe we also need a formula here to decide the best value.

Also ensure that when processing the smoothed graph, we don't want to visualize the consensus graphs in it.


OpenAPI setup corrections

The docker composer process did not setup OpenAPI correctly:

Missing uritemplate and pyyaml
Not generating an openapi schema

Nice @V3ntus . Ty for you contribution. I'm creating a issue and assign you.


Fixed src/server.js import Pages module's source directory

Minor change... (and my very first PR to github)

Thanks for both finding and fixing this bug. I made a minor update in your patch branch to remove /index as it's unnecessary when importing.


Optimize/lifetime

NG-445
https://jira.nebula-graph.io/browse/NG-445
Reduce about 18% memory usage in a simply match test case, and no effect to latency.

 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 have signed the CLA already but the status is still pending? Let us recheck it.

close #1053


make accepts_incomplete configurable (i.e. for build jobs)

I've never written go code but it would be really nice to choose to "accepts_incomplete" calls.
For example in build jobs this would be really nice.

This PR seems to have no new tests nor tests changes. I'd expect lots of changes for each. Plus you are failing Travis.
I'd suggest you close this and work some more on this before attempting to submit. It's also doubtful to be accepted since this feature needs to be discuss with @goehmen and @shalako.
Anyhow, my .02


Prune unused static/ assets

Originally posted by @jorgeorpinel in https://github.com/iterative/dvc.org/pull/4053#discussion_r1000982436
For example img/flow.gif

Cc @iterative/websites


TextField and TextFormField 0 character on upper/lower case switch in password mode

Steps to Reproduce
I create a simple login form. To input password I use TextField or TextFormField.
When user inputs password and clicks the upper/lower case switch button the input field adds 0char.
Here is an example of a TextField:
new TextField(
        obscureText: true, //password mode
        maxLines: 1,
        onChanged: (String newValue) {
          Log.d("PasswordFiled.onChanged", "<" + newValue + ">");
          Log.d("PasswordFiled.onChanged", "<" + newValue + "." + newValue.length.toString() + ">");
          for (int i = 0; i < newValue.length; i++) {
            Log.d(i.toString(), newValue.codeUnitAt(i));
          }
        }
    );

Logs
When I click the following buttos  1 2 3 upperCase upperCase upperCase the output is:
07-19 20:33:11.963 32042-32111/com.my.app I/flutter: : PasswordFiled.onChanged > <123
07-19 20:33:11.963 32042-32111/com.my.app I/flutter: : PasswordFiled.onChanged > <123
07-19 20:33:11.963 32042-32111/com.my.app I/flutter: : 0 > 49
07-19 20:33:11.963 32042-32111/com.my.app I/flutter: : 1 > 50
07-19 20:33:11.963 32042-32111/com.my.app I/flutter: : 2 > 51
07-19 20:33:11.963 32042-32111/com.my.app I/flutter: : 3 > 0
07-19 20:33:11.963 32042-32111/com.my.app I/flutter: : 4 > 0
07-19 20:33:11.963 32042-32111/com.my.app I/flutter: : 5 > 0

Flutter doctor
$ flutter doctor
[✓] Flutter (on Linux, locale en_US.UTF-8, channel alpha)
    • Flutter at /home/j/flutter/0.0.31
    • Framework revision d36e2f6191 (4 weeks ago), 2017-06-21 15:09:10 -0700
    • Engine revision b0dee695ec
    • Tools Dart version 1.24.0-dev.6.7

[✓] Android toolchain - develop for Android devices (Android SDK 26.0.0)
    • Android SDK at /home/j/Android/Sdk
    • Platform android-26, build-tools 26.0.0
    • ANDROID_HOME = /home/j/Android/Sdk
    • Java binary at: /home/j/.local/share/umake/android/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] Android Studio (version 2.3)
    • Android Studio at /home/j/.local/share/umake/android/android-studio
    • Gradle version 3.2
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] IntelliJ IDEA Community Edition (version 2017.2)
    • Flutter plugin version 15.1
    • Dart plugin version 172.3317.48

[✓] IntelliJ IDEA Community Edition (version 2017.1)
    • Flutter plugin version 15.1
    • Dart plugin version 172.3317.48

[✓] Connected devices
    • GT N8000 •  • android-arm • Android 4.4.2 (API 19)

The problem is that it creates additional * in the input filed confusing user and also produces wrong resulting expression (password).

Android

A similar problem was fixed last week by @jason-simmons  https://github.com/flutter/flutter/issues/10723 => probably missing something for the "obscureText" case ?

Fixed by updating to the latest Flutter version.


Update type of loadMinimalSize

Update type of loadMinimalSize from boolean to number
Is it a bugfix ?

No

Is it a new feature ?

No

Describe what you've done:
Change the type of the props loadMinimalSize to number
How to test it ?
Update the repo and then TSLint won't show warning anymore

Merged in #958


Completion block called immediately when app does to background

Completion block called immediately when app does to background. Currently there is not logic to handle app switching between background / foreground while playing the circular animation?
CATransaction.setCompletionBlock {
            completion?() // called immediately when app is sent to background
        }

Hi,
To the best of my knowledge, the animations will always be marked as completed when the app is sent to the background.  This completion triggers the completion block.
I do not have any logic to handle the backgrounding of the app.  For my use case, it worked well as is.  I guess it depends on the desired behavior.  I can think of three possibilities:

You may want to consider the user activity finished.
The animation picks up from the point it left off.  For a timer that counts down from 10 to 0, if you background it at 5, then when you bring the app to foreground, it starts again at 5 and counts down to 0.
The animation continues where it would have been if the app had not been put into the background.  For a timer that counts from 10 to 0, if you background the app at 7, wait 4 seconds then bring it to the foreground again, it would count down from 3 to 0.

It is possible to add a NotificationCenter observer for the UIApplication didEnterBackgroundNotification and willEnterForegroundNotification events and capture the current state when the app goes to the background. Then add the animation again if the app is brought back to the foreground.  The existing animation could be stored and then re-added to the layer which would handle scenario three.   (You also get this behavior with the isRemovedOnCompletion approach I mention below.)
Another option with observers, is to save off the animation information and just call the animate() function again with updated data.  You could handle either scenario two or three based on how you calculate the start, end, and duration.  I believe this approach may be the only way to handle scenario two.
If you set isRemovedOnCompletion to false, the completion handler is still called but the animation will remain on the layer.  If the app is brought to the foreground, the timer's progress will be as if it had been running the whole time.  This appears to work the same as case three above.  Other than the animation hanging around, it should not cause a problem.  The code removes any existing animation before start a new animation.
What behavior were you hoping to see?

Hi,
Thanks for reply. Yes the third scenario is what O was looking for in my app.
As you stated using Notification observer I was able to achieve it.


Fix pandas dependence in train_test_split

private CI: http://intel-ci.intel.com/eb19632b-5920-f198-bd3a-8cdcd4b723a1


Suport tz-aware timestamps in weather client

What happened?
Forecasts.to_ndarray does not work with timezone-aware datetime objects, but only with timezone-naive ones.
What did you expect instead?
Can be used with timezone-aware datetime objects.
Affected version(s)
No response
Affected part(s)
I don't know (part:❓)
Extra information
The problem could be the following comparison:
https://github.com/frequenz-floss/frequenz-api-weather/blob/df8251c0c7801ea1703a89b006704274358d3b7e/py/frequenz/client/weather/_types.py#L210

This is another thing that betterproto got right, they use timezone-aware datetime objects.


Dheeraj-7991's file

created a branch, created a file and made a commit, and opened a pull request.

created a branch, created a file and made a commit, and opened a pull request.

created a branch, created a file and made a commit, and opened a pull request

done


[Feature Request Help] receive video/audio in the janus py example

Hello
janus has the rtp_forward option but direct connect with gst would be wonderful
anyone have some hints how i could get this?

These examples have moved to https://gitlab.freedesktop.org/gstreamer/gst-examples/-/tree/master/webrtc and this repository will not be updated further.


chore!: rename payment module -> blob

speak now or forever hold your peace.
NOTE: this PR does not rename MsgPayForData or MsgWirePayForData, as this was already too big of a diff.
closes #961

blobkeeper 😆

@evan-forbes The test TestMaxBlockSize has started to fail quite a lot lately. Should we investigate?

Codecov Report

Merging #972 (1f63e16) into main (29e0a27) will increase coverage by 3.61%.
The diff coverage is 46.15%.

@@            Coverage Diff             @@
##             main     #972      +/-   ##
==========================================
+ Coverage   26.13%   29.74%   +3.61%
==========================================
  Files          77       72       -5
  Lines        9353     8199    -1154
==========================================
- Hits         2444     2439       -5
+ Misses       6680     5531    -1149
  Partials      229      229

Impacted Files
Coverage Δ

app/app.go
6.49% <0.00%> (ø)

app/malleate_txs.go
71.87% <ø> (ø)

app/parse_txs.go
64.00% <ø> (ø)

app/process_proposal.go
0.00% <ø> (ø)

app/test_util.go
73.77% <ø> (ø)

x/blob/keeper/msg_server.go
0.00% <ø> (ø)

x/blob/types/events.go
0.00% <ø> (ø)

x/blob/types/genesis.go
100.00% <ø> (ø)

x/blob/types/keys.go
0.00% <ø> (ø)

x/blob/types/payfordata.go
69.60% <ø> (ø)

... and 21 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

yeah I've started, https://github.com/celestiaorg/celestia-app/pull/988
it might be anecdotal, but it seems to fail a lot more often when we are running the CI in different PRs at once. It also started to when we decreased the block time.


⚠ DesiTorrents has degraded performance

In 73fd05a, DesiTorrents ($DST) experienced degraded performance:

HTTP code: 200
Response time: 1687 ms

Resolved: DesiTorrents performance has improved in 86c048f.


Update minimum mdbook version to 0.4.21.

This will fix compilation using Rust 1.64.
If you have time, please take a look. Incorporating this and publishing a new release (with Cargo.lock) will simplify how the application is packaged in nixpkgs, which is updating Rust in its ecosystem to 1.64. In the meantime, I'll work around it there.
Thank you for your work.

This was done recently in other commits.


After clear() cant interact with inventoryGrid

When I fill the inventory completely and then clear it using sort(), then after that I cannot interact with the inventory. Nothing can be moved there and nothing can be added in code so that it is visible in the grid.

I can interact with inventory only after this:
var protoset = craftGrid.item_protoset
var size = craftGrid.size
craftGrid.reset()
craftGrid.item_protoset = protoset
craftGrid.size = size

clear it using sort()

This is kinda weird, sort() should only reorder the items and should not clear the inventory:

Can you share some code, or even better, a simple project that demonstrates the issue?

clear it using sort()

This is kinda weird, sort() should only reorder the items and should not clear the inventory:
Can you share some code, or even better, a simple project that demonstrates the issue?

I'm sorry. I meant clear()

Hmm.. I tried it again with clear(), but I'm still unable to reproduce the issue:

Can you show the code please?

Sure, i just modified one of the examples:
extends Control

@onready var ctrl_inventory_left: CtrlInventoryGrid = $VBoxContainer/HBoxContainer/VBoxContainer/PanelContainer/CtrlInventoryGridLeft
@onready var ctrl_inventory_right: CtrlInventoryGrid = $VBoxContainer/HBoxContainer/VBoxContainer2/PanelContainer2/CtrlInventoryGridRight
@onready var btn_add_left: Button = $VBoxContainer/HBoxContainer/VBoxContainer/BtnAddLeft
@onready var btn_clear_left: Button = $VBoxContainer/HBoxContainer/VBoxContainer/BtnClearLeft
@onready var btn_add_right: Button = $VBoxContainer/HBoxContainer/VBoxContainer2/BtnAddRight
@onready var btn_clear_right: Button = $VBoxContainer/HBoxContainer/VBoxContainer2/BtnClearRight

func _ready() -> void:
    btn_add_left.pressed.connect(_on_btn_add.bind(ctrl_inventory_left))
    btn_clear_left.pressed.connect(_on_btn_clear.bind(ctrl_inventory_left))
    btn_add_right.pressed.connect(_on_btn_add.bind(ctrl_inventory_right))
    btn_clear_right.pressed.connect(_on_btn_clear.bind(ctrl_inventory_right))

func _on_btn_sort(ctrl_inventory: CtrlInventoryGrid) -> void:
    if !ctrl_inventory.inventory.sort():
        print("Warning: InventoryGrid.sort() returned false!")

func _on_btn_clear(ctrl_inventory: CtrlInventoryGrid) -> void:
    ctrl_inventory.inventory.clear()

func _on_btn_add(ctrl_inventory: CtrlInventoryGrid) -> void:
    ctrl_inventory.inventory.create_and_add_item("item_2x2")

example
Actually I have two problems:
1 - no way to interact with inventory after .clear()
2. Some inventory cells cannot be filled from another inventory. You must first move an item from the same inventory to this cell.

Weird... I haven't seen similar issues before. Any chance you could put together a small example that has the same problems, so I can look deeper into it?

extends Control

@onready var brewButton = $brewMenuPanel/brewButton
@onready var craftGrid = $"../../inventoryWorks/craftInventoryGrid"
@onready var inventory = $"../../inventoryWorks/InventoryGrid"
@onready var riskBar = $brewMenuPanel/riskVarLabel
@onready var succesBar = $brewMenuPanel/succesVarLabel
var riskRate = 0
var succesRate = 0
var riskResult = 0
var succesResult = 0

const info_offset: Vector2 = Vector2(20, 0)
@onready var itemInfoPanel = $brewMenuPanel/itemInfoPanel
@onready var itemNameLabel = $brewMenuPanel/itemInfoPanel/itemNameLabel
@onready var itemDescriptionLabel = $brewMenuPanel/itemInfoPanel/itemDescriptionLabel
@onready var ctrlInventory: CtrlInventoryGridEx = $brewMenuPanel/CtrlInventoryGridEx

func _ready():
	randomize()
	brewButton.disabled = true

	ctrlInventory.item_mouse_entered.connect(_on_item_mouse_entered)
	ctrlInventory.item_mouse_exited.connect(_on_item_mouse_exited)

func brewBeer():
	setRiskSucces()
	var beerType = ""
	var newPrice = 0
	var priceMod = succesResult-riskResult

	if craftGrid.has_item_by_id("dogFoodNormal") or craftGrid.has_item_by_id("dogFoodMedium") or craftGrid.has_item_by_id("dogFoodBest"):
		if priceMod >= 500:
			beerType = "bestBeer"
		if priceMod < 500 and priceMod > 250:
			beerType = "goodBeer"
		if priceMod <= 250:
			beerType = "defaultBeer"
	else:
		beerType = "badBeer"

	#var protoset = craftGrid.item_protoset
	#var gridSize = craftGrid.size
	#craftGrid.reset()
	#craftGrid.item_protoset = protoset
	#craftGrid.size = gridSize

	craftGrid.clear()

	var beer = craftGrid.create_and_add_item(beerType)
	newPrice = beer.get_property("sellPrice") + priceMod
	beer.set_property("sellPrice", newPrice)
	var newName = beer.get_property("name") + " | Цена: " + str(newPrice)
	beer.set_property("name", newName)

func checkCraftGrid():
	if isPossibleBrew():
		brewButton.disabled = false
	else:
		brewButton.disabled = true

	setRates()
	setBarsToVars()

func isPossibleBrew():
	var acces = false
	if craftGrid.has_item_by_id("wheat") and craftGrid.has_item_by_id("hop") and craftGrid.has_item_by_id("yeast"):
		acces = true
	return acces

func setBarsToVars():
	riskBar.text = str(riskRate)
	succesBar.text = str(succesRate)

func setRates():
	riskRate = 0
	succesRate = 0
	var craftArray = craftGrid.get_items()
	for i in craftArray.size():
		if craftArray[i].get_property("riskRate"):
			riskRate += craftArray[i].get_property("riskRate")
			succesRate += craftArray[i].get_property("succesRate")

func setRiskSucces():
	riskResult = 0
	succesResult = 0
	var rng = RandomNumberGenerator.new()
	rng.randomize()
	var num = 0

	var craftArray = craftGrid.get_items()
	for i in craftArray.size():
		num = rng.randi_range(0, 1)
		if craftArray[i].get_property("riskRate"):
			if num:
				riskResult += craftArray[i].get_property("riskRate")
			else:
				succesResult += craftArray[i].get_property("succesRate")

func _on_item_mouse_entered(item: InventoryItem) -> void:
	itemInfoPanel.show()
	itemNameLabel.text = item.get_property("name")
	itemDescriptionLabel.text = item.get_property("description")

func _on_item_mouse_exited(_item: InventoryItem) -> void:
	itemInfoPanel.hide()

func _input(event: InputEvent) -> void:
	if !(event is InputEventMouseMotion):
		return

	itemInfoPanel.set_global_position(get_global_mouse_position() + info_offset)

For reasons unknown to me, clear() now works as expected

Hey, sorry for the late reply.
I don't see anything wrong with the code you posted, though of course, I wasn't able to debug it.
One more thing you can try is to place a breakpoint in addons/gloot/ui/ctrl_drop_zone.gd - line 22 after the inventory is cleared. It should trigger when an item is dropped onto the empty inventory. If it doesn't, I'm afraid I'll have to dig deeper.

Might be related to this; I can take the item out of  ItemSlot and into InventoryGrid but not put it back. InventoryGrid and ItemSlot both contain same item with same id.. etc.

@LeeWannacott Oh, this actually looks like something I fixed in v2.4.1. There's still no 2.4.1 release because I'm still polishing things, but it is available on the dev_v2.4.1 branch and you can give it a try. I hope to release it in the following days and it might fix both of these issues.

can you set constraints like only boots in this slot?

You should be able to extend the ItemSlot class and override the can_hold_item function to define what kind of items the slot can hold. Something like this:
extends ItemSlot
class_name ItemSlotFeet

# ...

func can_hold_item(item: InventoryItem) -> bool:
    if item.get_property("name") != "boot":
        return false # Can only hold boots
    else:
        return super.can_hold_item(item) # Still do the checks from the base class

@LeeWannacott Oh, this actually looks like something I fixed in v2.4.1. There's still no 2.4.1 release because I'm still polishing things, but it is available on the dev_v2.4.1 branch and you can give it a try. I hope to release it in the following days and it might fix both of these issues.

Yep looks like dev_v2.4.1 fixes those issues; you can't see what you are dragging but I assume because its under development.

Something like this:

Thanks for example that's helpful, I don't know if I need to override if I use ItemSlot, although it might be better/ less work than having to maintain a protoset for the type of each slot :thinking:

@peter-kish Using a default icon on an ItemSlot doesn't seem to work on v2.41. (I haven't tested 2.4.0)

Thanks for example that's helpful, I don't know if I need to override if I use ItemSlot, although it might be better/ less work than having to maintain a protoset for the type of each slot 🤔

Yeah, ideally, you would have only one protoset per game. Overriding can_hold_item (for ItemSlot and ItemRefSlot) and can_add_item (for Inventory) should be way easier than managing multiple protosets.

Yeah, ideally, you would have only one protoset per game. Overriding can_hold_item (for ItemSlot and ItemRefSlot) and can_add_item (for Inventory) should be way easier than managing multiple protosets.

I don't know if overriding the can_hold_item method is the play (providing you are going for user friendly). I think you should potentially just allow the user to declare a "item_type" property in the users item_protoset used by inventory items and it checks whether the slot can handle the item_type. It could be an array so an item slot can handle different types of items like for example weapon slot would have many different types of weapons (wands, shields, two-handed etc) in its item types. Probably not the best explanation...

Never mind, I think I can pretty much achieve this without it being implemented by the library. I  can just call clear after the item has been equipped, itseems to happen that fast you can't tell it has been equipped, it just looks like you can't equip it. :rocket:
func _on_head_slot_item_equipped() -> void:
	var equipped_item =  head_slot.get_item()
	if equipped_item.get_property("id") == 1:
		head_slot.clear()

What can be done with the bug that filling the grid_inventory by dragging item is impossible? - one cell remains inactive.

Since I'm still unable to reproduce the issue and debug it, we have two options:

Try and debug it yourself. Basically what wrote previously:

One more thing you can try is to place a breakpoint in addons/gloot/ui/ctrl_drop_zone.gd - line 22 after the inventory is cleared. It should trigger when an item is dropped onto the empty inventory. If it doesn't, I'm afraid I'll have to dig deeper.

Create a minimal project that demonstrates the problem, a.k.a. a minimal reproducible example, that I can debug.

Closed due to staleness


Replacing ScriptEngine Invocable cast with Context API equivalent

Hello!
I am working on porting a rather large code base from nashorn to graal.js. The original code was using javax.script.ScriptEngine.
 private ScriptEngine engine =
    new ScriptEngineManager().getEngineByName("nashorn");

I have decided to replace the ScriptEngine with the polyglot Context API.
private Context cx = Context.newBuilder().allowAllAccess(true).allowHostAccess(HostAccess.ALL).build();

I replaced every call to engine.put() with a call to cx.getBindings("js").putMember() and similarly engine.get() with cx.getBindings("js").getMember() like this:
cx.getBindings("js").putMember("mote", mote);
cx.getBindings("js").putMember("id", id);
//engine.put("mote", mote);
//engine.put("id", id);

However, there is one place in the code where I cannot get rid of the engine. The engine is cast as an Invocable and runs a Thread in a thread group:
scriptThread = new Thread(group, new Runnable() {
  public void run() {
    try {
      ((Invocable)engine).getInterface(Runnable.class).run();
    } catch (RuntimeException e) {
      Throwable throwable = e;
      while (throwable.getCause() != null) {
        throwable = throwable.getCause();
      }

      if (throwable.getMessage() != null &&
          throwable.getMessage().contains("test script killed") ) {
        logger.info("Test script finished");
      } else {
        if (!Cooja.isVisualized()) {
          logger.fatal("Test script error, terminating Cooja.");
          logger.fatal("Script error:", e);
          System.exit(1);
        }

        logger.fatal("Script error:", e);
        deactivateScript();
        simulation.stopSimulation();
        if (Cooja.isVisualized()) {
          Cooja.showErrorDialog(Cooja.getTopParentContainer(),
              "Script error", e, false);
        }
      }
    }
    /*logger.info("test script thread exits");*/
  }
});
scriptThread.start(); /* Starts by acquiring semaphore (blocks) */
while (!semaphoreScript.hasQueuedThreads()) {
  Thread.yield();
}

This is the part I would like to change:
 ((Invocable)engine).getInterface(Runnable.class).run();

Is there a Context equivalent for this? I could not find any documentation regarding Invocables in the Context API. I have, however, read somewhere that it I should use Context to execute JavaScript code when using GraalVM. So my question is, is there a way to change this piece of code, so that it keeps its functionality but I don't have to use the engine anymore and use the Context API instead? If not, what would be a good way to do it?
Thanks.

Hi @KatarinaKulkova,
The Context API's Value class provides the as method, which can be used to cast a Value object to some Java type. In your example above, I think you could try using .as(Runnable.class).run()?

Hello.
Which Value exactly do you think should be cast as Runnable? I tried the following:
cx.getBindings("js").as(Runnable.class).run();

but this gave me the following error when trying to run the code:
 java.lang.UnsupportedOperationException: Unsupported operation identifier 'run' and  object
 'com.oracle.truffle.polyglot.PolyglotLanguageBindings@57302cec'(language: Java, type:
 com.oracle.truffle.polyglot.PolyglotMap). Identifier is not executable or instantiable.

I don't think I am using any other Value except for the Bindings.

I am missing a bit of context, so I am not sure I fully understand what the code in your example is trying to achieve, but if I understand correctly your usage of getInterface() I think that you should be able to achieve the same semantics by using the global object in your script, so e.g., context.eval("js", "this").as(Runnable.class) or context.eval("js", "globalThis").as(Runnable.class) should do the same thing as  ((Invocable)engine).getInterface(Runnable.class)

I will try to provide some general context. I am currently working on this document: https://github.com/contiki-ng/cooja/blob/63538bbb882ba06a7b8cf97c11ce2fe4d22e4f88/java/org/contikios/cooja/plugins/LogScriptEngine.java
This is a copy of the document before I made any changes. All I did was replace all instances of the engine with the Context API, as I described in my question.
There is a function in the code called activateScript(). It parses the JavaScript code, then calls engine.eval(jsCode) which I replaced by cx.eval("js", jsCode), then there are some calls to engine.put() which I replaced by calls to cx.getBindings("js").putMember(). Finally, scriptThread (which is a Thread created at the beginning of the document), is assigned to be a new Thread, with its run function containing the cast to Invocable. This thread is supposed to run the parsed JavaScript. The activateScript function also does some semaphore stuff, but I don't think it is related to the issue I am having.
So I tried
context.eval("js", jsCode).as(Runnable.class).run();
as you suggested, but this resulted in the following error:
java.lang.NullPointerException
at org.contikios.cooja.plugins.LogScriptEngine$4.run(LogScriptEngine.java:328)
at java.base/java.lang.Thread.run(Thread.java:834)
where LogScriptEngine.java:328 is the line where I do context.eval("js", jsCode).as(Runnable.class).run();
I wonder whether the fact that the engine was cast as an Invocable enabled it to run, and so replacing it with the Context API doesn't work? I am not sure about this.

Nevermind, this solved it:
context.eval("js", "this").as(Runnable.class)
Thank you very much.

OK, happy to hear that it worked (and thanks for the context info) -- your call to  ((Invocable)engine).getInterface(Runnable.class).run(); essentially looks for a function called run in your JS global scope and then calls it, which is why context.eval("js", "this").as(Runnable.class).run() (or using "globalThis") should be equivalent

I see. That makes sense. Thank you for clearing that up. It was very helpful.


how upgrade from 2.x to 2.1.6

npm WARN deprecated<EMAIL_ADDRESS>If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0

Change the version specified in package-lock.json ...
I'm running on 1.1.10 ...
But what version are you actually running?


[Aura-Safe][Transaction] Transaction message after Confirm/Reject

Refer to Mockup of Docs
https://www.notion.so/aura-network/Function-Multisig-Tx-d21a0f240c374e56975c49f26d4d2592

Đã cho lên serenity

Verified PASS on serenity (29/07/2022)


Error : Language is not a funtion

Hey,
I got a problem on ubuntu 16/node v8.5.0 with the api.
I simply tried to load and instantiate language :
`
const Language = require('@google-cloud/language');
const language = Language();
`
which give me error when I run npm start :
TypeError: Language is not a function
Thanks in advance for your help.

Hi @lmX2015,
I suggest referencing our quickstart (this code is also in the README) which shows instantiation instructions:
const language = require('@google-cloud/language');
let client = new language.LanguageServiceClient();

We previously did have an instantiation pattern that looked a little more like what you showed above; if there is out of date documentation, can you link to it so we can fix? Thanks!

Hello @lukesneeringer,
It seems to have solved the problem. I took this code from the google cloud platform quickstart https://cloud.google.com/natural-language/docs/quickstart-client-libraries?hl=fr#client-libraries-install-nodejs.
I was confused because that code is still working on another project so I assume that it is just its node module that is not up to date...
Thanks for the help !

Somehow I missed that sample, the docs will be updated shortly.

Fixed: https://cloud.google.com/natural-language/docs/quickstart-client-libraries


Create continuous_training_pipeline.yml

Training has not been added as I am not sure what command needs to be executed. Merge this once the ./run_tests.sh is merged

Non-determinism check is correctly failing for an unknown reason, but all functionality meant for the branch is implemented now!


ShadowedException cop cause warning: constant ::TimeoutError is deprecated

I'm not 100% sure this is an issue, but I don't think this is correct behaviour
Steps to reproduce the problem

Create test.rb file with

def foo
  puts 'bar'
rescue TimeoutError
  puts 'foo'
end

run rubocop test.rb

Expected behavior
Some cop should warn me about deprecation of TimeoutError
Actual behavior
Inspecting 1 file
/home/lobashov/.rvm/gems/ruby-2.5.3/gems/rubocop-0.62.0/lib/rubocop/cop/lint/shadowed_exception.rb:120: warning: constant ::TimeoutError is deprecated
.

1 file inspected, no offenses detected

RuboCop version
$ [bundle exec] rubocop -V
0.62.0 (using Parser <IP_ADDRESS>, running on ruby 2.5.3 x86_64-linux)

Hey, I just opened a PR with the changes required in order to avoid showing deprecation warnings about  constants.

I think it would make sense for us to silence the warning since the deprecation warning doesn't have anything to do with the RuboCop code itself.

I agree with this, and I'm not sure if the feature described by @pocke is really needed, but if it is, maybe should be done in a differente branch.


Option to select different interface/network to establish pair/connection

Thanks for this project, it's something I think should be baked into adb's command line, but I'm having an issue with it.
I'm trying to set up my phone to allow me to connect to it with scrcpy while connected to my VPN, but when I use the pairing QR provided by lyto, the pairing process never completes on my phone, even though lyto closes out without an error.
Is there any way to determine which network/interface lyto uses when generating the QR code? I'm able to connect using the IP address, port, and pairing code (manually), but can't do the same through lyto's convenient QR system.
Let me know if you need anything from me to address this.

Late reply, however please send the logs by running Lyto with --debug flag. We will have much more information to diagnose the issue.


You can cd into non-existing directories online

Just try for example:
cd tic.computer/play
cd blahblah
or cd games (with lower case)
It will enter a non-existent directory, which is empty, accoriding to "dir"

Not just web, but android as well.

fixed on .26


Hi! Can I add available variants for my custom font?

Issue description:
Version used:
(Did you try using the develop branch from github? There's a chance your issue has already been adressed there)
Using theme_mods or options?
Code to reproduce the issue (config + field(s))

You could try something like this:
apply_filters( 'kirki/fonts/google_fonts', function( $google_fonts ) {

	$my_custom_fonts = array(
		'Font Name' => array(
			'label'    => 'Font Name',
			'variants' => array(
				'100',
				'200',
				'400',
				'800',
			),
			'subsets'  => array(
				'cyrillic'     => 'Cyrillic',
				'cyrillic-ext' => 'Cyrillic Extended',
				'devanagari'   => 'Devanagari',
				'greek'        => 'Greek',
				'greek-ext'    => 'Greek Extended',
				'khmer'        => 'Khmer',
				'latin'        => 'Latin',
			),
			'category' => 'sans-serif',
		),
	);

	return array_merge_recursive( $my_custom_fonts, $google_fonts );
});

I haven't tested it but I think that might work

It`s not working :(

`public function typekit_add_to_kirki(){
		if($this->typekit_enable && !empty($this->_typekit_id)){

			$typekit_fonts = trim($this->typekit_fonts, ' ');
			$typekit_fonts = explode(',', $typekit_fonts);

			foreach($typekit_fonts as $font => $value) {

				$fonts[$value] = array(
					'label' => $value,
					'stack' => $value . self::$fonts_sep . self::$typekit_subfont,
				);

			}

			return $fonts;

			add_filter('kirki/fonts/standard_fonts', array($this, 'typekit_add_to_kirki'));

		}
	}`

But I have 4 default variants instead of all.

standard fonts don't have variants as they are basically the system fonts.
That's why I suggested using the kirki/fonts/google_fonts filter above with an example of how the array is formatted

Thank you so much!

I assume this has been resolved so I'm closing this ticket.
If you need further assistance with this feel free to reopen it 😄

Hi!
After that i hove another errors http://take.ms/j5J7P

Try adding this:
add_filter( 'kirki/googlefonts_load_method', function( $method ) {
    return 'link';
});

It works, but not quite
http://take.ms/5CIFs

I'm unable to test your custom-coded implementation because I'm missing the rest of the theme which adds some typekit constants and functions that are required in your implementation.
Can you send your complete theme so that i may replicate and see what goes wrong?

Please send me any message and I'll send full theme to this email.
<EMAIL_ADDRESS>

This will require a refactor that's scheduled for version 3.1: #1364
Right now, if you use the kirki/fonts/google_fonts Kirki will try to generate a link to get the font using the google-API which throws an error because the font doesn't exist in google, and if you use the kirki/fonts/standard_fonts filter, variants are pretty much standard and can't be affected.
I'm sorry but right now it isn't easy to accomplish unless you custom-implement this and completely bypass the typography controls.

Hello @aristath,
Have you added this feature to latest Kirki yet?
is there any ways to select varation of custom fonts in Customizer?
I have used Kirki 3.1.9
Thanks in advanced.

Hello and thank you for reporting this issue.
We are closing most open GitHub issues with the release of Kirki 4 to start fresh with this major release.
If you are still running into issues after you have tested your theme with Kirki 4, please let us know so we can reopen the issue.
Please note that Kirki 3 is no longer actively supported. Moving forward, we will only provide support the very latest version of Kirki.
Thank you for your understanding.
Best,
David


DO NOT MERGE print dependency tree in build log

This is an experimental PR to print dependency tree in console.please do not merge.This task is part of GA work

Can one of the admins verify this patch?

[test]


Compatible with Lumen

Is this package available for Lumen also?

Here is a gist I made with the changes I needed to make to get laravel-countries working on a fresh lumen project. You should be able to download the ZIP and just paste the files into the project directory.
Just the command php artisan migrate and php artisan db:seed is enough to get it work. Do not forget the .env with all the database configs.


Kubectl behind local authentication enabled:  serializer for text/html doesn't exist

Rancher versions:
rancher/server: v1.6.14
rancher/agent: v1.2.8
Infrastructure Stack versions:
kubernetes (if applicable):
Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.2", GitCommit:"5fa2db2bd46ac79e5e00a4e6ed24191080aa463b", GitTreeState:"clean", BuildDate:"2018-01-18T10:09:24Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"8+", GitVersion:"v1.8.5-rancher1", GitCommit:"6cb179822b9f77893eac5612c91a0ed7c0941b45", GitTreeState:"clean", BuildDate:"2017-12-11T17:40:37Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Docker version: (docker version,docker info preferred)
Docker version 17.09.0-ce build afdb6d4
Operating system and kernel: (cat /etc/os-release, uname -r preferred)
NAME="Ubuntu" VERSION="16.04.3 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04.3 LTS" VERSION_ID="16.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" VERSION_CODENAME=xenial UBUNTU_CODENAME=xenial
Type/provider of hosts: (VirtualBox/Bare-metal/AWS/GCE/DO)
AWS
Setup details: (single node rancher vs. HA rancher, internal DB vs. external DB)
1 rancher Server node
1 rancher Agent node
Local access setup with 1 user on rancher
Environment Template: (Cattle/Kubernetes/Swarm/Mesos)
Kubernetes
Steps to Reproduce:
kubectl is configured and can talk to rancher if Rancher does't have local access configured.
When i configure it with a user (local access), kubectl does'nt work properly and get html response from rancher server. I don't know why its happening, maybe normal behaviour but I can't find an answer.
Results:
Can't give whole logs but this is what i get as error with kubectl -v=10
error got
\     \<meta charset="utf-8">     \<meta http-equiv="X-UA-Compatible" content="IE=edge">     \<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1">     \<link rel="icon" href="/assets/images/logos/favicon.ico">     \<title>Loading…</title>     \     \<meta name="description" content="">     \<base href="/" />     \<link id = "vendor" rel="stylesheet" href="/assets/vendor.css">     \<link id="theme" rel="stylesheet">   \   \     \     \     \

   \ \
: invalid character < looking for beginning of value
and finally with kubectl get nodes :
serializer for text/html doesn't exist

Please report back if it does not work with the kubeconfig generated in the UI.

I didn't have the time to check again this until now, I found MY error (the generated config works perfectly) it can be helpful for people so i am gonna write it down. Thanks for the responses.
My ~/.kube/config file was created by the template module with ansible and the token was created with this:
- name: Get rancher's kubectl token to configure kubctl   shell: "curl '{{rancher_server_container_http_url}}/v2-beta/apikeys' -H 'content-type: application/json' --data-binary '{\"type\":\"apiKey\",\"accountId\":\"1a1\",\"name\":\"kubectl\",\"description\":\"Provides workstation access to kubectl\"}' --compressed | jq -r  '.publicValue + \":\" + .secretValue' | base64 | tr /+ _- | tr -d ="   register: kubeToken
I then found:
https://forums.rancher.com/t/how-to-generate-environment-api-token-for-kubernetes-1-6/6954
after some test, this is the magic formula (had a lot of error because of line break and spaces)
And added 'Basic ' for during the creation of the token
- name: Get rancher's kubectl token to configure kubctl  shell: "curl '{{rancher_server_container_http_url}}/v2-beta/apikeys' -u {{ lookup('file', '/home/ansible/ForgePlqybooks/roles/rancherServer/templates/accessKey') }}:{{ lookup('file', '/home/ansible/ForgePlqybooks/roles/rancherServer/templates/secretKey') }} -H 'content-type: application/json' --data-binary '{\"type\":\"apiKey\",\"accountId\":\"1a1\",\"name\":\"kubectl\",\"description\":\"Provides workstation access to kubectl\"}' --compressed | jq -r  '.publicValue + \":\" + .secretValue' | echo -n $(cat -) | base64 | echo -n $(cat -) | tr /+ _- | tr -d ' '  | echo -n Basic $(cat -) | base64 | echo -n $(cat -) | tr /+ _- | tr -d ' '  | tr -d = "   register: kubeToken
giving a working token for Rancher configured with Basic auth. Everything worked perfectly after that


Add William G.K. Zhang

Hinge, Bumble, Tinder isn't working.  But perhaps some Github PR will get me a girlfriend from halfway across the country. Or perhaps I'll be publicly humiliated.  Let's roll the dice.

bruh


api: prevent concurrent migrations running from several instances

Signed-off-by: asakiz<EMAIL_ADDRESS>

@Asakiz, what is still being worked on here? If this is ready, please rebase and send it for review.

@Asakiz, what is still being worked on here? If this is ready, please rebase and send it for review.

Done!

LGTM.


remove early access

per @yarikoptic

we need a revamp of www.dandiarchive.org in many ways. let's schedule the docathon for later this month. we can later reconfigure this in a more vue like fashion to produce both news and alerts.


Add missing generic annotations

Feature Request

Q
A

New Feature
yes

RFC
no

BC Break
no

Summary
We've been adding some support for generics lately, ClassMetadata is generic, but there are some places as pointed out by @IonBazan
https://github.com/doctrine/mongodb-odm/blob/34a3cf8c8ce1d05ced9ce3d123ac8db602630c36/lib/Doctrine/ODM/MongoDB/Query/Filter/BsonFilter.php#L70
That annotations are missing and phpstan and psalm will complain, we should add them.
In cases where it isn't generic, we can use just @psalm-param ClassMetadata<object>.

Closed by #2367


⚠ API - Lens has degraded performance

In e40ab53, API - Lens ($LENS_API_URL) experienced degraded performance:

HTTP code: 503
Response time: 352 ms

Resolved: API - Lens performance has improved in f47468a after 6 minutes.


support action audit api-server - [closed]

In GitLab by @luotian-github on Jul 5, 2018, 01:40
Merges operation -> dev
support action audit in api-server from operation branch

In GitLab by @wknet123 on Nov 13, 2019, 11:12
The test coverage for backend is FAIL  ,The test coverage for frontend is 38.11   , check  consolse log

In GitLab by @wknet123 on Nov 13, 2019, 11:12
The test coverage for backend is 24.0%  ,The test coverage for frontend is 38.11   , check  consolse log

In GitLab by @wknet123 on Nov 13, 2019, 11:12
closed


Automatic PR from RestAPI-PR369

Generated from RestAPI PR: https://github.com/Azure/azure-rest-api-specs/pull/369

Coverage decreased (-0.003%) to 41.859% when pulling 9499b0be7d91c740f27c17d1310167a003acc6e2 on AutorestCI:RestAPI-PR369 into 1cbffddc115c1977a76eb386ca66a5af336f7abc on Azure:dev.


Illegal invocation at Booru.search

i'm trying to do a frontend with react using booru, but every time i try to make the search, it gives the error:
Constants.js:24 Uncaught (in promise) BooruError: Failed to execute 'fetch' on 'Window': Illegal invocation at Booru.search (http://localhost:3000/static/js/0.chunk.js:543:13)
there is the code, sorry for some words being in portuguese:
import React from "react";
import { search } from "booru";
import "./Main.css";

export default function Main() {
  let tmpTags;
  let tags;
  let listOfLinks;
  let posts;

  async function handleSubmit() {
    tags = tmpTags.split();
    console.log(tags);
    listOfLinks = [];
    posts = await search("rule34", tags, {
      limit: 1,
      random: true
    });
    console.log(posts)
    for (let post of posts) {
      await listOfLinks.push(String(post.fileUrl));
    }
    console.log(tags);
  }

  return (

Booru Pack Downloader

      <input
        className="barra-de-pesquisa"
        value={tmpTags}
        placeholder="Quais tags você quer pesquisar?"
        onChange={e => (tmpTags = e.target.value)}
      />
      <button className="botão-de-pesquisa" onClick={handleSubmit}>
        pesquisar
      </button>

  );
}

Seems to be an issue related to how webpack bundles code up (see https://github.com/developit/unfetch/issues/46 and https://github.com/orbitjs/orbit/issues/452)
booru isn't officially supported on browsers, but I've put out a (possible) fix at https://github.com/AtlasTheBot/booru/tree/fix/%2335-illegal-invocation
Try using that and see if it's fixed


Requests SSL Handshake Failure

I'm getting
requests.exceptions.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:645) using the Requests library to fetch a webpage with Python3.
Most other https website work but there are only a couple of websites that causes me to encounter this error.
Pip3 list
cffi (1.5.0)
cryptography (1.2.2)
idna (2.0)
ndg-httpsclient (0.4.0)
pip (8.0.2)
pyasn1 (0.1.9)
pycparser (2.14)
pyOpenSSL (0.15.1)
pyperclip (1.5.26)
requests (2.9.1)
setuptools (18.2)
six (1.10.0)

import requests
res = requests.get('https://visualnoveler.com/')

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 559, in urlopen
    body=body, headers=headers)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 345, in _make_request
    self._validate_conn(conn)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 784, in _validate_conn
    conn.connect()
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/packages/urllib3/connection.py", line 252, in connect
    ssl_version=resolved_ssl_version)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/packages/urllib3/util/ssl_.py", line 305, in ssl_wrap_socket
    return context.wrap_socket(sock, server_hostname=server_hostname)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ssl.py", line 376, in wrap_socket
    _context=self)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ssl.py", line 747, in __init__
    self.do_handshake()
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ssl.py", line 983, in do_handshake
    self._sslobj.do_handshake()
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/ssl.py", line 628, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:645)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/adapters.py", line 376, in send
    timeout=timeout
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/packages/urllib3/connectionpool.py", line 588, in urlopen
    raise SSLError(e)
requests.packages.urllib3.exceptions.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:645)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/wraithseeker/Desktop/Untitled.py", line 3, in <module>
    res = requests.get('https://visualnoveler.com/')
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/api.py", line 67, in get
    return request('get', url, params=params, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/api.py", line 53, in request
    return session.request(method=method, url=url, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/sessions.py", line 468, in request
    resp = self.send(prep, **send_kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/sessions.py", line 576, in send
    r = adapter.send(request, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/adapters.py", line 447, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:645)
[Finished in 0.5s with exit code 1]

This works on my machine (just adding additional information).

PyOpenSSL is not currently used on Python 3.
What version of OpenSSL are you using? python -c 'import ssl; print ssl.OPENSSL_VERSION'

OpenSSL 0.9.8zg 14 July 2015
I tried uninstalling PyOpenSSL and also tried downgrading Python 3.5 to 3.4 but I'm still getting the same error.

That version of OpenSSL is very old, which may be why you're having problems but @kennethreitz is not. Unfortunately, our PyOpenSSL-based workaround does not currently work on Python 3, though we're working on a fix for that.
An alternative approach would be to install a newer OpenSSL from Homebrew and then get your Python 3 from Homebrew as well. That would likely resolve your problem.

Thanks, I reinstalled it on Homebrew and it worked!


Add packer_build module

I wanted to add some features we needed to the existing packer_service_principal module but this was hard to do without breaking changes so I've implemented it as a new module packer_build. This module adds the following features:

Ability to specify a managed identity for access to resources during the Packer build
Ability to tag resources created by Packer with the base or additional tags to conform with Azure Policy
Ability to specify existing virtual network and subnet for Packer builds to enable internal builds
Ability to specify existing resource group for Packer builds
Ability to build from a shared image gallery source
Improved stability on rebuild or failed builds
Use of Packer HCL2 templates instead of the legacy JSON templates
New image builds will trigger on the following changes:

packer build template file
image name
id of the source platform or shared image gallery image
number of versions to keep

If downstream resources such as virtual machine scale sets are using the images the default terraform behaviour can cause issues so the module always creates a new image version with the option to clean up a configurable amount of older versions.
Added examples, example 104 depends on https://github.com/aztfmod/terraform-azurerm-caf/pull/852

Added dependencies to vm and vmss modules in latest commit as follow-up to https://github.com/aztfmod/terraform-azurerm-caf/pull/852#issuecomment-1010769374

hi @dimitrifc when testing I get the following errors:

102-packer_build_linux fails on destroy with:

│ Error: deleting Shared Image: (Image Name "bebisiimage1" / Gallery Name "bebisigtest1" / Resource Group "bebi-rg-sig"): compute.GalleryImagesClient#Delete: Failure sending request: StatusCode=0 -- Original Error: autorest/azure: Service returned an error. Status=<nil> Code="CannotDeleteResource" Message="Can not delete resource before nested resources are deleted."

103-packer_build_source_sig fails on apply with:

Error: Unsupported attribute
│
│   on ../modules/shared_image_gallery/packer_build/packer.tf line 125, in locals:
│  125:   build_trigger            = md5("${filemd5(local.packer_template_filepath)}${var.settings.managed_image_name}${try(data.azurerm_platform_image.source[0].id, "")}${var.settings.keep_versions}${var.settings.image_sku}${try(data.azurerm_shared_image_version.source[0].id, "")}")
│     ├────────────────
│     │ var.settings is object with 20 attributes
│
│ This object does not have an attribute named "image_sku".
╵
Terraform plan return code: 1

104-packer_build_windows fails on apply with

Error: local-exec provisioner error
│
│   with module.example.module.packer_build["build1"].null_resource.create_image,
│   on ../modules/shared_image_gallery/packer_build/packer.tf line 61, in resource "null_resource" "create_image":
│   61:   provisioner "local-exec" {
│
│ Error running command 'packer init
│ ./shared_image_gallery/104-packer_build_windows/packer_files/build.pkr.hcl
│ && packer build -force -var-file
│ ./shared_image_gallery/104-packer_build_windows/packer_files/packer.vars.json
│ ./shared_image_gallery/104-packer_build_windows/packer_files/build.pkr.hcl':
│ exit status 1. Output: Interfaces : 'pkrnidgtakul4xo'
│ ==> azure-arm.mybuild: Attempting deletion ->
│ Microsoft.Network/publicIPAddresses : 'pkripdgtakul4xo'
│ ==> azure-arm.mybuild: Attempting deletion ->
│ Microsoft.Network/virtualNetworks : 'pkrvndgtakul4xo'
│ ==> azure-arm.mybuild: Error deleting resource. Will
│ retry.
│ ==> azure-arm.mybuild: Name: pkrnidgtakul4xo
│ ==> azure-arm.mybuild: Error:
│ network.InterfacesClient#Delete: Failure sending request:
│ StatusCode=0 -- Original Error: Code="NicInUse"
│ Message="Network Interface
│ /subscriptions/sub-id/resourceGroups/vexy-rg-sig/providers/Microsoft.Network/networkInterfaces/pkrnidgtakul4xo
│ is used by existing resource
│ /subscriptions/sub-id/resourceGroups/vexy-rg-sig/providers/Microsoft.Compute/virtualMachines/pkrvmdgtakul4xo.
│ In order to delete the network interface, it must be
│ dissociated from the resource. To learn more, see
│ aka.ms/deletenic." Details=[]
│ ==> azure-arm.mybuild:
│ ==> azure-arm.mybuild: Error deleting resource. Will
│ retry.
│ ==> azure-arm.mybuild: Name: pkripdgtakul4xo
│ ==> azure-arm.mybuild: Error:
│ network.PublicIPAddressesClient#Delete: Failure sending
│ request: StatusCode=0 -- Original Error:
│ Code="PublicIPAddressCannotBeDeleted" Message="Public IP
│ address
│ /subscriptions/sub-id/resourceGroups/vexy-rg-sig/providers/Microsoft.Network/publicIPAddresses/pkripdgtakul4xo
│ can not be deleted since it is still allocated to resource
│ /subscriptions/sub-id/resourceGroups/vexy-rg-sig/providers/Microsoft.Network/networkInterfaces/pkrnidgtakul4xo/ipConfigurations/ipconfig.
│ In order to delete the public IP, disassociate/detach the
│ Public IP address from the resource.  To learn how to do
│ this, see aka.ms/deletepublicip." Details=[]
│ ==> azure-arm.mybuild:
│ ==> azure-arm.mybuild: Error deleting resource. Will
│ retry.
│ ==> azure-arm.mybuild: Name: pkrvndgtakul4xo
│ ==> azure-arm.mybuild: Error:
│ network.VirtualNetworksClient#Delete: Failure sending
│ request: StatusCode=0 -- Original Error:
│ Code="InUseSubnetCannotBeDeleted" Message="Subnet
│ pkrsndgtakul4xo is in use by
│ /subscriptions/sub-id/resourceGroups/vexy-rg-sig/providers/Microsoft.Network/networkInterfaces/pkrnidgtakul4xo/ipConfigurations/ipconfig
│ and cannot be deleted. In order to delete the subnet, delete
│ all the resources within the subnet. See
│ aka.ms/deletesubnet." Details=[]
│ ==> azure-arm.mybuild:
│ ==> azure-arm.mybuild: Attempting deletion ->
│ Microsoft.Network/networkInterfaces : 'pkrnidgtakul4xo'
│ ==> azure-arm.mybuild: Attempting deletion ->
│ Microsoft.Network/publicIPAddresses : 'pkripdgtakul4xo'
│ ==> azure-arm.mybuild: Attempting deletion ->
│ Microsoft.Network/virtualNetworks : 'pkrvndgtakul4xo'
│ ==> azure-arm.mybuild: Error deleting resource. Will
│ retry.
│ ==> azure-arm.mybuild: Name: pkrnidgtakul4xo
│ ==> azure-arm.mybuild: Error:
│ network.InterfacesClient#Delete: Failure sending request:
│ StatusCode=0 -- Original Error: Code="NicInUse"
│ Message="Network Interface
│ /subscriptions/sub-id/resourceGroups/vexy-rg-sig/providers/Microsoft.Network/networkInterfaces/pkrnidgtakul4xo
│ is used by existing resource
│ /subscriptions/sub-id/resourceGroups/vexy-rg-sig/providers/Microsoft.Compute/virtualMachines/pkrvmdgtakul4xo.
│ In order to delete the network interface, it must be
│ dissociated from the resource. To learn more, see
│ aka.ms/deletenic." Details=[]
│ ==> azure-arm.mybuild:
│ ==> azure-arm.mybuild: Error deleting resource. Will
│ retry.
│ ==> azure-arm.mybuild: Name: pkripdgtakul4xo
│ ==> azure-arm.mybuild: Error:
│ network.PublicIPAddressesClient#Delete: Failure sending
│ request: StatusCode=0 -- Original Error:
│ Code="PublicIPAddressCannotBeDeleted" Message="Public IP
│ address
│ /subscriptions/sub-id/resourceGroups/vexy-rg-sig/providers/Microsoft.Network/publicIPAddresses/pkripdgtakul4xo
│ can not be deleted since it is still allocated to resource
│ /subscriptions/sub-id/resourceGroups/vexy-rg-sig/providers/Microsoft.Network/networkInterfaces/pkrnidgtakul4xo/ipConfigurations/ipconfig.
│ In order to delete the public IP, disassociate/detach the
│ Public IP address from the resource.  To learn how to do
│ this, see aka.ms/deletepublicip." Details=[]
│ ==> azure-arm.mybuild:
│ ==> azure-arm.mybuild: Error deleting resource. Will
│ retry.
│ ==> azure-arm.mybuild: Name: pkrvndgtakul4xo
│ ==> azure-arm.mybuild: Error:
│ network.VirtualNetworksClient#Delete: Failure sending
│ request: StatusCode=0 -- Original Error:
│ Code="InUseSubnetCannotBeDeleted" Message="Subnet
│ pkrsndgtakul4xo is in use by
│ /subscriptions/sub-id/resourceGroups/vexy-rg-sig/providers/Microsoft.Network/networkInterfaces/pkrnidgtakul4xo/ipConfigurations/ipconfig
│ and cannot be deleted. In order to delete the subnet, delete
│ all the resources within the subnet. See
│ aka.ms/deletesubnet." Details=[]
│ ==> azure-arm.mybuild:
│ ==> azure-arm.mybuild: Attempting deletion ->
│ Microsoft.Network/networkInterfaces : 'pkrnidgtakul4xo'
│ ==> azure-arm.mybuild: Attempting deletion ->
│ Microsoft.Network/publicIPAddresses : 'pkripdgtakul4xo'
│ ==> azure-arm.mybuild: Attempting deletion ->
│ Microsoft.Network/virtualNetworks : 'pkrvndgtakul4xo'
│ ==> azure-arm.mybuild: Error deleting resource. Will
│ retry.
│ ==> azure-arm.mybuild: Name: pkripdgtakul4xo
│ ==> azure-arm.mybuild: Error:
│ network.PublicIPAddressesClient#Delete: Failure sending
│ request: StatusCode=0 -- Original Error:
│ Code="PublicIPAddressCannotBeDeleted" Message="Public IP
│ address
│ /subscriptions/sub-id/resourceGroups/vexy-rg-sig/providers/Microsoft.Network/publicIPAddresses/pkripdgtakul4xo
│ can not be deleted since it is still allocated to resource
│ /subscriptions/sub-id/resourceGroups/vexy-rg-sig/providers/Microsoft.Network/networkInterfaces/pkrnidgtakul4xo/ipConfigurations/ipconfig.
│ In order to delete the public IP, disassociate/detach the
│ Public IP address from the resource.  To learn how to do
│ this, see aka.ms/deletepublicip." Details=[]
│ ==> azure-arm.mybuild:
│ ==> azure-arm.mybuild: Attempting deletion ->
│ Microsoft.Network/publicIPAddresses : 'pkripdgtakul4xo'
│ ==> azure-arm.mybuild:  Deleting ->
│ Microsoft.Compute/disks :
│ '/subscriptions/sub-id/resourceGroups/vexy-rg-sig/providers/Microsoft.Compute/disks/pkrosdgtakul4xo'
│ ==> azure-arm.mybuild: Removing the created Deployment
│ object: 'pkrdpdgtakul4xo'
│ ==> azure-arm.mybuild:
│ ==> azure-arm.mybuild: Deleting individual resources ...
│ ==> azure-arm.mybuild: Adding to deletion queue ->
│ Microsoft.KeyVault/vaults/secrets :
│ 'pkrkvdgtakul4xo/packerKeyVaultSecret'
│ ==> azure-arm.mybuild: Adding to deletion queue ->
│ Microsoft.KeyVault/vaults : 'pkrkvdgtakul4xo'
│ ==> azure-arm.mybuild: Attempting deletion ->
│ Microsoft.KeyVault/vaults : 'pkrkvdgtakul4xo'
│ ==> azure-arm.mybuild: Waiting for deletion of all
│ resources...
│ ==> azure-arm.mybuild: Attempting deletion ->
│ Microsoft.KeyVault/vaults/secrets :
│ 'pkrkvdgtakul4xo/packerKeyVaultSecret'
│ ==> azure-arm.mybuild: Failed to find temporary OS
│ disk on VM.  Please delete manually.
│ ==> azure-arm.mybuild:
│ ==> azure-arm.mybuild: VM Name: pkrvmdgtakul4xo
│ ==> azure-arm.mybuild: Error: %!s(<nil>)
│ ==> azure-arm.mybuild: Removing the created Deployment
│ object: 'kvpkrdpdgtakul4xo'
│ ==> azure-arm.mybuild:
│ ==> azure-arm.mybuild: The resource group was not created by
│ Packer, not deleting ...
│ Build 'azure-arm.mybuild' errored after 18 minutes 96
│ milliseconds: Script exited with non-zero exit status:
│ 16001.Allowed exit codes are: [0]
│
│ ==> Wait completed after 18 minutes 96 milliseconds
│
│ ==> Some builds didn't complete successfully and had errors:
│ --> azure-arm.mybuild: Script exited with non-zero exit
│ status: 16001.Allowed exit codes are: [0]
│
│ ==> Builds finished but no artifacts were created.
│
╵
Terraform apply return code: 1
Error on or near line 434: Error running terraform apply; exiting with status 1

Hi @arnaudlh, I've looked through your error messages. For example 102-packer_build_linux I've noticed the destroy wasn't clean so I've added a new resource in the latest commit. Both create and destroy work for me now.
103-packer_build_source_sig unfortunately can't work because it's impossible to create 2 shared image galleries in the right order in one step where one is providing a source image for the other. This only serves as a configuration example, I can remove it if you only want working examples.
I can't reproduce your issue with 104-packer_build_windows, it might be caused by resources not cleaned up for you from the 102 example. Note this one is dependent on https://github.com/aztfmod/terraform-azurerm-caf/pull/852 to be able to build the VM with the generated image. I can change the example to skip the VM build if preferred.

thanks for the update @dimitrifc - looks good to me.
Regarding 103, If not working currently, we remove the example. If this is not a real world scenario, we are OK, if it's a valid use case and then we shall find a way to add that as a feature in a subsequent PR/version?

@arnaudlh That's fine with me. It's a real world scenario, just an advanced and narrow one where you have would have one shared image gallery with (for instance hardened) builds that are a source for another build process so the example isn't that necessary.


Base URL for v2 needs to omit "www"

Recently using this package has started throwing errors for username & collection requests as a result of using an outdated domain.
Suggested fix is to omit the "www" in the domain for BGG_API_V2_BASE_URL in bgg-xml-api-client/src/helpers/getBaseUrlForResource.ts. The new line should be:
export const BGG_API_V2_BASE_URL = 'https://boardgamegeek.com/xmlapi2/';

For more information, see this related thread on BGG.

Hi @protolific, then you very much for this defect report! I will fix that asap.

Removed "www" from both base URLs as the mentioned thread provides BGG is redirecting all requests to www.boardgamegeek.com.
Thatnk you again, feel free to contribute if you find any other bugs or have improvements in mind!


Importing file grammars from a jsgf string grammar

I'm using pocketsphinx-android with the asset sync utility. I am able to use grammars that I add as a string using Decoder.setJsgfString , and also able to import rules from one .gram file to another one with "import <grammar_file.rule_name>.
What I haven't been able to do so far is to use import statements in a string grammar to import asset/file grammars. I have tried using only the grammar filename, full path and only the package. These are the error messages I get in adb logcat:
Filename only
com.sample.vr.commands E/cmusphinx: ERROR: "jsgf.c", line 775: Failed to find grammar actions.gram

Package
com.sample.vr.commands E/cmusphinx: ERROR: "jsgf.c", line 775: Failed to find grammar com/sample/vr/commands/files/sync/actions.gram

Full path
com.sample.vr.commands E/cmusphinx: ERROR: "jsgf.c", line 775: Failed to find grammar /storage/emulated/0/Android/data/com/sample/vr/commands/files/sync/actions.gram

Is there a way to tell pocketsphinx-android where to look for grammar files? they are indeed in the files/sync directory, but the .c code seems to replace the dots to slashes in the path (in the function jsgf_import_rule of the sphinxbase/src/libsphinxbase/lm/jsgf.c file near line 787).

Already asked here
http://stackoverflow.com/questions/35007985/import-grammar-rules-from-string-based-grammar
please avoid posting to multiple places at once


dropbox installed but showing cannot resolve

Python version 3.10.0
Installed dropbox but facing issue with imports

Thanks for the report. Could you please add the information in the report as described in the troubleshooting guide?

closing stale issue


⚠ Bofrost.lu has degraded performance

In e991bf6, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1174 ms

Resolved: Bofrost.lu performance has improved in da33fe7 after 30 minutes.


BGISEQ-500/DNBSEQ-T7 platform demultiplexing

Hello, I've recently encountered an issue. Researchers have uploaded snATAC-seq FASTQ data sequenced using the DNBSEQ-T7 and BGISEQ-500 platforms. The length of R1 is 50bp, and R2 is 76bp. When I use dnbc4atac run, an error occurs, with the main error message being "Less than 5% barcodes can be found or corrected based on the barcode whitelist. Please check whether the barcode whitelist matches the data, e.g. length, reverse-complement. If this is a false warning, please run Chromap with the option --skip-barcode-check." I think the dnbc4atac run command misinterprets the read structure of DNBSEQ-T7 and BGISEQ-500 (for snATAC, dnbc4atac run generally uses 1-20bp of R1 as the barcode).
In most articles describing snATAC-seq using the BGISEQ-500, data processing descriptions are often brief, such as "PISA was used to parse out the cell barcodes and UMIs based on the raw FASTQ files of scATAC-seq data. Clean reads were aligned to the hg38 reference genome by BWA (v.2.2)". However, I haven't found any publicly available information indicating the read structure of the BGISEQ-500/DNBSEQ-T7 for snATAC (R1=50bp,R2=76bp). I've asked the developer of PISA, and they also don't have clarity on this.
Could you please provide information regarding the read structure of the BGISEQ-500/DNBSEQ-T7 sequencer? Alternatively, can you suggest some parameter settings of PISA?
I am using the data from https://db.cngb.org/search/project/CNP0004330/, but the dnbc4atac run consistently fails to process any of these snATAC pair-ended FASTQ datasets.

Hello, it seems that R1 50 R2 76 is not DNBelab C4 data, because C4 ATAC cell barcodes are typically 20bp long. A 16bp cell barcode is usually associated with 10x data, where R2 consists of 50bp of Read2 followed by a 16bp cell barcode. My suggestion is to split the R2 data and generate data in the 10x format for analysis.
seqkit subseq read_2.fq.gz -r 1:50  > read_3.fq
seqkit subseq read_2.fq.gz -r 51:66 > read_2_trans.fq
seqkit seq read_2_trans.fq -r -p > read_2.fq

Then using cellranger-atac for analysis

This is a very early version where the structure is 20bp cell barcodes from 51-60bp and 67-76bp.
If you are using PISA, you need to modify the location of the config.json file.
    "cell barcode tag":"CB",
    "cell barcode":[
        {
            "location":"R2:51-60",
            "distance":"0",
        }
        {
            "location":"R2:67-76",
            "distance":"0",
        }
        "read 1":{
        "location":"R1:1-50"
         },
         "read 2":{
         "location":"R2:1-50"
         }

Alternatively, you can try using
dnbc4tools atac run --customize r1:0:49,r2:0:49,bc:50:59,bc:66:75 --fastq1 read_R2.fq.gz --fastq2 read_R1.fq.gz

I don't have much experience with this early version, you can try.

Single cell multi-omics reveal intra-cell-line heterogeneity across human cancer cell lines
https://doi.org/10.1038/s41467-023-43991-9
Thanks, I will try your method and I've included more details about this dataset.
Furthermore, I'd like to inquire whether the barcode file used is the 10-bp barcode uploaded by the PISA developer (https://github.com/shiquan/PISA/blob/master/config/DNBelabC4_barcodes.txt) rather than 20-bp barcode file automatically downloaded by dnbc4tools (dnbc4tools/lib/python3.8/site-packages/dnbc4tools/config/whitelist_atac.txt.gz).

These two barcodes are actually the same. In dnbc4tools, it's 10bp cb1 * 10bp cb2, while PISA provides cb1[cb2], where cb1 and cb2 have the same whitelist.


Workaround on phantomjs to support phantomjs 1.9.8

fixed Unsafe Javascript attempt, see https://github.com/ariya/phantomjs/issues/12697 for workaround suggested.

@mickaelandrieu should there be a comment in the new code stating that it is needed only for the given workaround?
Also, I don't quite understand why there was a PR which was very soon merged by the same person. Please correct me if I am wrong, but wouldn't the point of having a PR is for possible comments and someone else to merge it?

Hi,
you are right in case there is enough active contributors to take review and merge.
As you may now, CasperJS build is broken since months and as stated in link in my PR, the workaround is known and already used in some others tools from phantomjs family.
Afaik only @n1k0 and I can merge and he is busy since and for months.
I will make a PR for future contribution, I'm glad to see new active contributors :+1:


Minor broken link on https://asciinema.org/about

Discussed in https://github.com/orgs/asciinema/discussions/242

Originally posted by mpassell October 22, 2023
I just heard about asciinema from the Changelog Podcast. Sounds awesome! Tiny bug report: while looking around on asciinema.org, I noticed that the link to Reza Ali's blog no longer works, so it would probably make sense to instead point it to his main page at https://www.syedrezaali.com/

We can link to https://www.syedrezaali.com/about instead.


Workload stuck in "Pending(Initial)"

I am trying out Ankaios and tested the standard workload provided in the reference:
$ cat /etc/ankaios/state.yaml
# Per default no workload is started. Adapt the file according to your needs.
apiVersion: v0.1
workloads:
   nginx:
     runtime: docker
     agent: agent_A
     restartPolicy: NEVER
     tags:
       - key: owner
         value: Ankaios team
     runtimeConfig: |
       image: docker.io/nginx:latest
       commandArgs: ["--insecure"]
       commandOptions: ["-p", "8081:80"]

However, I changed the runtime to 'docker'.
The workload is not starting properly, and I get no information in journalctl on why.
Current Behavior
This is what it looks like:
$ ank -k apply /etc/ankaios/state.yaml
Successfully applied the manifest(s).
Waiting for workload(s) to reach desired states (press Ctrl+C to interrupt).

WORKLOAD NAME   AGENT     RUNTIME     EXECUTION STATE    ADDITIONAL INFO
nginx           agent_A   docker    / Pending(Initial)

The execution state does not change from pending to running.
Expected Behavior
I expected things to go the way they do in the reference. I Expected it to be indicating that the workload is indeed running.
Steps to Reproduce

Follow the reference guide from: https://eclipse-ankaios.github.io/ankaios/latest/usage/quickstart/

Context (Environment)
I am running this on an aarch64 machine with a somewhat customized Linux OS built with Yocto, based on kirkstone.
Logs
$ journalctl -t ank-server
Oct 23 11:35:32 syslogic-brla4nx ank-server[1121]: [2024-10-23T11:35:32Z WARN  grpc::server] !!!ANKSERVER IS STARTED IN INSECURE MODE (-k, --insecure) -> TLS is disabled!!!
Oct 23 11:35:32 syslogic-brla4nx ank-server[1121]: [2024-10-23T11:35:32Z INFO  ank_server::ankaios_server] Starting...
Oct 23 11:35:32 syslogic-brla4nx ank-server[1121]: [2024-10-23T11:35:32Z INFO  grpc::from_server_proxy] Agent agent_A not found, workloads not sent. Waiting for agent to connect.
Oct 23 11:36:06 syslogic-brla4nx ank-server[1121]: [2024-10-23T11:36:06Z INFO  ank_server::ankaios_server] Received AgentHello from 'agent_A'

Additional Information
Final result
To be filled by the one closing the issue.

@Ricardicus Ankaios currently support two runtimes: podman and podman-kube. A docker runtime is currently not supported. In your situation the Ankaios server waits until an agent with a docker runtime will connect and that's why the workload's status is Pending(Initial).
So installing Podman and changing the runtime field to podman should fix the problem (see also Installation and Quickstart).

That explains it. Thanks!


🐛 [Bug] require_full_compilation never reaches partitioner

I'm not sure if this is intended, but it seemed odd to me that there is logic inside both fast and global partitioners (see snippets 1 and 2) with require_full_compilation but the compile_module never feeds the passes the flag as parameter (see snippet 3).
Snippets

https://github.com/pytorch/TensorRT/blob/fa02fd3e3a85a6042d11a00cd386f6b69c1d6c4b/py/torch_tensorrt/dynamo/partitioning/_adjacency_partitioner.py#L206-L209

https://github.com/pytorch/TensorRT/blob/fa02fd3e3a85a6042d11a00cd386f6b69c1d6c4b/py/torch_tensorrt/dynamo/partitioning/_global_partitioner.py#L68-L71

https://github.com/pytorch/TensorRT/blob/fa02fd3e3a85a6042d11a00cd386f6b69c1d6c4b/py/torch_tensorrt/dynamo/_compiler.py#L371-L388

Thanks for the issue. Issue 3177 tracks this


Compute transitive closure of sys.sql_dependencies, find missing objects

https://mssqlwiki.com/2012/05/04/copy-database-wizard-or-replication-setup-might-fail-due-to-broken-dependency/
This script is pure gold.  I've repeatedly reached out to Karthik asking permission to host it on GitHub, but he has never responded.  It does contain bugs, some of which I've fixed in the comments and others which were left with my former employer when I left.
Some things I fixed:

The original script assumed stored procedures could be refreshed in any order. This is only true for trivial stored procedures that don’t reference objects that can’t be refreshed in any order. My fix handles that scenario.
My fix explicitly handles stored procedures and/or triggers.
Fix the scenario where a schema-bound view is transitively referencing a broken view.

Some fixes not contained in my patch, off the top of my head:

Common Table Expressions variables erroneously flag as false positives in this script. At my former employer, we would maintain a lookup table of Common Table Expression variables and generally exclude object names under 3 characters as bogus.
Session-scoped temp tables and global temp tables erroneously flag as false positives in this script.

While Karthik uses it to find broken dependencies in the context of copy database wizard or replication setup, I used it after running database migrations to automatically rollback all migrations if the migration broke references/didn't clean up after itself.  Some people naively call sp_refreshview or sp_refreshsqlmodule over all sys.objects, but this will fail if you have circular references, which is what Karthik's original script mostly resolves.

Hi, @jzabroski .
Still testing, tomorrow will test on SQL Server 2014.

@jzabroski  Too many bugs in my enviroment, could you add here your working version?

I think I need more information from you on what bugs you are seeing, and
some explanation of your environment.
My version is more or less in the comments.
Happy to add features, as I have time. But I don't actively use this code.
It's been my dream to build out a test suite for it.
On Wed, Sep 19, 2018, 11:03 AM Konstantin<EMAIL_ADDRESS>wrote:

@jzabroski https://github.com/jzabroski Too many bugs in my enviroment,
could you add here your working version?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ktaranov/sqlserver-kit/issues/149#issuecomment-422837870,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAbT_dFp9sUFDXkCcczXFrYRgs89V1zGks5uclzZgaJpZM4WpbRK
.


Developing Tetris Game

Hello everyone!
As part of my contribution to GSSoC'23, I would like to propose the addition of a Tetris game to the project. Tetris is a classic and popular game that can bring both entertainment and interactive elements to our project.
Proposed Approach:

Research: I will conduct research on Tetris game implementations in various programming languages and frameworks to understand the best practices and design patterns.
Design: I will create a plan for the game's architecture, user interface, and game mechanics to ensure an engaging and user-friendly experience.
Development: I will write the necessary code to implement the Tetris game, considering modularity, scalability, and code quality.
Testing: I will thoroughly test the game for functionality, usability, and compatibility across different devices and browsers.

Please let me know if you have any feedback and assign me task under GSSoC'23.

Already someone is assigned

Okay ,
I have previously also worked on Playable Piano and Word Scramble.
If any of the above is left and not assigned let me know .
Thank you.


Unable to promisify localStorage

Hi,
I want to promisify the localStorage object.
using like this -
const get = promisify(localStorage.getItem)
Can you tell me what i am doing wrong ?
Thank you

localStorage is a synchronous API, it doesn't need promisification.


Improve DD_DEDUPLICATION_ALGORITHM_PER_PARSER DD_HASHCODE_FIELDS_PER_SCANNER

Addressing https://github.com/DefectDojo/django-DefectDojo/issues/7867
This is improving the customization via env variables for hashcode field configurations, and deduplication algorithms, to allow for unknown scanners (not hardcoded in settings.dist.py)

@Gby56, thanks for this PR.
If you are changing this, do you mind replacing print with logger.info?
It will require to add also this to the top of file:
import logging
logger = logging.getLogger(__name__)

Good idea ! Yes I thought about it before, but couldn't see it used at all in the file so I went straight for print haha

Good idea ! Yes I thought about it before, but couldn't see it used at all in the file so I went straight for print haha

It is used in the most cases in the rest of the project. I have no idea why it wasn't here.
Thank you.