Document kubectl config file format

What would you like to be added:
Documentation of kubectl YAML config files
Why is this needed:
So I can understand, write, and maintain kubectl config files.
Expressing frustration:
I'm learning Kubernetes.  I went through the tutorials - thanks.  Now I'm trying to set up services to run on minikube and my hosting provider.  The kubectl command apparently takes a YAML config file.  I searched for 15 mins and found no documentation for it at all.  I found a helpful blog post complaining about the missing documentation.  There are examples: guestbook-all-in-one.yaml, a deployment, a service, a replica set, and a replication controller.  The "Getting Start / Production Environment" documentation contains no guidance on using config files to define application deployments.
Should I deploy my code with bash scripts that call kubectl create deployment ... ?  Is that how Google engineers work?  No, they write borgcfg files.  And they learned how to write borgcfg by reading the borgcfg docs.  There's even a codelab (tutorial) on writing such files.  Imagine trying to onboard new Googler SWEs without letting them read the borgcfg documentation or teaching them how to write borgcfg files.  Nobody would do that.  Yet Google wants us to use Kubernetes, to deploy on Google Cloud, and doesn't provide this basic doc.
The kubectl config file is crucial information that everyone learning Kubernetes must learn.  Please don't make us hunt for this information, guess at the meanings of examples, and read unreliable Stack Overflow answers and blog posts.  Just provide usable documentation.  Please?

/priority important-longterm
/triage accepted

https://kubernetes.io/docs/reference/config-api/ doesn't yet mention kubectl.
https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/#what-s-next has no link to learn about the format

There is nothing like a config API for this purpose. The website has some useful information here: https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/
The page could use some improvement because kubeconfig file is not just for accessing multiple clusters.

I'd like to add a reference that is similar to the pages within https://kubernetes.io/docs/reference/config-api/
I can make a quick mockup (if that'd help?)
We don't need to generate the new page automatically. It is useful if the references are consistent, though.

Done: https://kubernetes.io/docs/reference/config-api/kubeconfig.v1/
/close

        Thanks for adding docs about how to configure kubectl command auth to k8s clusters.Is there also documentation for defining pods, servers, ingress, and data storage? I still can’t find it. That’s what new k8s users need.. That’s what this ticket is about.Please re-open./open/reopen/re-open

@mleonhard this issue is resolved.
If you would like to request further improvements, you are welcome to file further issues. It's best to use a new issue for each logically separate improvement.
If you are considering making a suggestion, please check to see whether it has already been requested; if so, you could upvote the existing issue.
I recommend that you read tips for writing a good issue; even if you have already read a similar guide, it's worth having a fresh idea of how open source projects encourage contributors to act.

@sftim You linked to docs that are different than what this ticket asked for.  The sidebar is not visible at all on mobile, making it hard to find the needed docs.  On desktop, I was able to find them: https://kubernetes.io/docs/reference/kubernetes-api/ .  Thank you!
There is still a lot of room for improvement.  This ticket is about docs for new users, specifically how to set up services to run in a k8s cluster.  The docs now have that info, but put it under "Kubernetes API".  I've been doing software for 15 years, including stints at AWS and Google infrastructure.  To me, "Kubernetes API" is the RPC interface for controlling a Kubernetes cluster.  I would read that when I work on Kubernetes management tools.
But I just want to make my server run on a Kubernetes cluster, using existing tools.  I just need to know what to put in the @#%$@ config file.  That's what this ticket is about.
So all new Kubernetes users must first learn that the info about "what to put in the config file" is under "Kubernetes API".  Finding that info will take time.  This is time that most new users will waste.  Please fix this.  And next time you write or change documentation or user interfaces, please try harder to consider the needs of the users.


swa deletes .git folder

Describe the bug
swa deploy deletes the .git folder.
To Reproduce

Create a git repo
Setup a swa-cli.config.json with outputLocation: "./"
Run deploy

Expected behavior
Keeping my .git folder.
SWA version 1.0.2

I would say this is much higher than "medium" priority.

Hi guys, thank you for reporting this bug, I’m investigating it. If you encounter this issue, could you tell me which framework did you use? (such as angular, react, etc.) It will be good to show the files and folders in the root path of your app.
In addition, I guess your appLocation was the same as the root path, or you didn't set the appLocation. Am I right?

The bug has been fixed in<EMAIL_ADDRESS>Thanks for the feedback and will close this issue.

This same bug is happening now for me in v1.1.6

+1 just had this happen in v1.1.7. All my git progress was local so far :sob:

+1 happen in v1.1.7.

+1 happened in v1.1.10
Config:
"outputLocation": "dist\\<buildAppDir>",

@cjk7989 it seems the issue is not resolved. Could this please be reopened?


Does this work with other services like Wikiwand?

https://www.wikiwand.com/

I'm for Wikiwand too


Update license

Includes the date and owners
Signed-off-by: Steve Lasker<EMAIL_ADDRESS>

This is no longer an issue as is addressed properly in the new veraison/services repository!


DUPLO-19011 feat: allow option to force delete ECR repositories from …

…duplo TF provider
Overview
... (don't forget to put your clickup ticket ID in the title) ...
Summary of changes
This PR does the following:

...
...

Testing performed

[ ] Using unit tests
[ ] Manually, on my local system
[ ] Manually, on a remote test system

Describe any breaking changes

...

Task linked: DUPLO-19011 [TF] AWS ECR Force delete option

Merge after this https://github.com/duplocloud-internal/duplo/pull/2910


DO NOT TAKE: fix(community-content): sledgehammer link broken

also added https like other links.

Please remove the link change.  The link works fine.  drpcli bootenvs uploads sledgehammer works great.

Please remove the link change.  The link works fine.  drpcli bootenvs uploads sledgehammer works great.

Also from a browser the link works.

Also from a browser the link works.

@zehicle - how did the link not work for you?

@zehicle - how did the link not work for you?

Pulled in docs from other PR.  Closing this.

Pulled in docs from other PR.  Closing this.


Gedit crashes at start

After upgrading brew, I get the next error when I try to open "gedit":
2016-10-03 13:34:18.782 gedit[9614:44934] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.

(gedit:9614): Gdk-WARNING **: GdkQuartzDisplay does not implement the monitor vfuncs

(gedit:9614): Gtk-WARNING **: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.

** (gedit:9614): WARNING **: Could not load theme icon user-bookmarks-symbolic: No se ha reconocido el formato de imagen del archivo

** (gedit:9614): WARNING **: Could not load theme icon user-home-symbolic: No se ha reconocido el formato de imagen del archivo

** (gedit:9614): WARNING **: Could not load theme icon drive-harddisk-symbolic: No se ha reconocido el formato de imagen del archivo
**
Gtk:ERROR:gtkiconhelper.c:493:ensure_surface_for_gicon: assertion failed: (destination)
Abort trap: 6

Sorry but you have not followed the requested steps on the Troubleshooting page
Please follow (all of) these steps and post the information here so we can help you with your problem.
Thanks!

I can reproduce this on 10.11.6. gedit crashes on startup with the same errors.
May be due to a bad gdk-pixbuf bottle. Rebuilding gdk-pixbuf from source worked for me.
Rebuilding it in #5545.

Fixed by https://github.com/Homebrew/homebrew-core/pull/5545. Please do a brew update; brew upgrade to pick up the fix, and let us know if you have any further problems.

Hi, thank you for your response and sorry for not following the troubleshooting steps.
Unfortunately the proposed solution do not work, so  I have reported it again by following the required steps: https://github.com/Homebrew/brew/issues/1222
Cheers.

Edit: It works now. Thank you!

brew reinstall --build-from-source gdk-pixbuf
works.


Question on what one line of codes purpose is

In sort_colors this line is at the top.
raw_colors = colors[:1] + colors[9:] + colors[8:]
I understand what it does but not why it is there.  Running it in the REPL didn't seem to enlighten me either.

pywal generates 16 colors from the image but only 10 are used. That line sorts the 16 colors so that the ordering is like this:
color[0], color[9]. color[10]. color[11], color[12], color[13], color[14], color[15], color[8], color[9]. color[10]. color[11], color[12], color[13], color[14], color[15]

pywal does this because the other colors are either too dark on the background or various shades of grey. The colors from 1-7 don't have enough contrast on the background nor do they create a nice looking colorscheme.

Ok that makes sense now.  I'm going do put your last comment in that function (summed up a bit) so it makes a bit more sense.


[iOS] Running on a physical device fails with Target debug_unpack_ios failed: Exception: Failed to codesign: errSecInternalComponent

I tried to run a project on multiple physical iOS devices but the same Command PhaseScriptExecution failed with a nonzero exit code error keeps happening.
It works on the simulator but does not work on physical devices. Same results happen on a fresh blank project. The same error also pops up when building using Xcode.
Steps to Reproduce

Create new Flutter project
Connect iOS device
Run the project

Logs

Logs

  Launching lib/main.dart on aaaa in debug mode...
lib/main.dart:1
Automatically signing iOS for device deployment using specified development team in Xcode project: WVN3D5J9Q3
Xcode build done.                                            9.3s
Failed to build iOS app
Error output from Xcode build:
↳
    2022-06-30 21:46:03.153 xcodebuild[35773:845109] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
    2022-06-30 21:46:03.153 xcodebuild[35773:845109] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
    2022-06-30 21:46:03.712 xcodebuild[35773:845111]  DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-20038/DTDeviceKitBase/DTDKRemoteDeviceData.m:373
    Details:  (null) deviceType from 00008101-0009196C3A7A001E was NULL when -platform called.
    Object:   <DTDKMobileDeviceToken: 0x13176cc30>
    Method:   -platform
    Thread:   <NSThread: 0x600003078400>{number = 3, name = (null)}
    Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
    ** BUILD FAILED **
Xcode's output:
↳
    Writing result bundle at path:
    	/var/folders/n6/pn8cjglx0qlbpzv_fqv3frmc0000gn/T/flutter_tools.FnYXJg/flutter_ios_build_temp_dirXKzhW9/temporary_xcresult_bundle
    rsync: link_stat "/Users/seifer/dev/projects/likecash/baryacard/build/ios/Debug-iphoneos/App.framework" failed: No such file or directory (2)
    rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/b6051351-c030-11ec-96e9-3e7866fcf3a1/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]
    rsync: link_stat "/Users/seifer/dev/projects/likecash/baryacard/build/ios/Debug-iphoneos/App.framework" failed: No such file or directory (2)
    rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/b6051351-c030-11ec-96e9-3e7866fcf3a1/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]
    Unhandled exception:
    Exception: Command "rsync -8 -av --delete --filter - .DS_Store /Users/seifer/dev/projects/likecash/baryacard/build/ios/Debug-iphoneos/App.framework /Users/seifer/dev/projects/likecash/baryacard/build/ios/Debug-iphoneos/Runner.app/Frameworks" exited with code 23
#0      Context.runSync
../…/bin/xcode_backend.dart:105
#1      Context.embedFlutterFrameworks
../…/bin/xcode_backend.dart:190
#2      Context.run
../…/bin/xcode_backend.dart:61
#3      main
../…/bin/xcode_backend.dart:17
#4      _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:295:32)
#5      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:192:12)
    Command PhaseScriptExecution failed with a nonzero exit code
    note: Using new build system
    note: Planning
    note: Build preparation complete
    note: Building targets in dependency order
    /Users/seifer/dev/projects/likecash/baryacard/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.5.99. (in target 'Toast' from project 'Pods')
    /Users/seifer/dev/projects/likecash/baryacard/ios/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.5.99. (in target 'FMDB' from project 'Pods')
    Result bundle written to path:
    	/var/folders/n6/pn8cjglx0qlbpzv_fqv3frmc0000gn/T/flutter_tools.FnYXJg/flutter_ios_build_temp_dirXKzhW9/temporary_xcresult_bundle
Could not build the precompiled application for the device.

Error launching application on aaaa.
Exited

[✓] Flutter (Channel stable, 3.0.1, on macOS 12.4 21F79 darwin-arm, locale
    en-PH)
    • Flutter version 3.0.1 at /Users/seifer/dev/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision fb57da5f94 (6 weeks ago), 2022-05-19 15:50:29 -0700
    • Engine revision caaafc5604
    • Dart version 2.17.1
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/seifer/Library/Android/sdk
    • Platform android-32, build-tools 32.1.0-rc1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] VS Code (version 1.68.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.42.0

[✓] Connected device (3 available)
    • aaaa (mobile)   • 00008101-0009196C3A7A001E • ios            • iOS 15.1.1 19B81
    • macOS (desktop) • macos                     • darwin-arm64   • macOS 12.4 21F79 darwin-arm
    • Chrome (web)    • chrome                    • web-javascript • Google Chrome 103.0.5060.53

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Hi @SyferDev, I just tried running the counter app on my physical device (iPhone XS running iOS 15.5) and it worked just fine.  See logs below.
From your flutter doctor output, I see the device you're using is running iOS 15.1.1 but I can seem to find any support for this version in XCode. Can you try upgrading the version of iOS on your device to see if this helps?

logs
Launching lib/main.dart on Nexus in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: X8NNQ9CYL2
Running Xcode build...
 └─Compiling, linking and signing...                        22.0s
Xcode build done.                                           32.7s
(lldb) 2022-07-01 06:58:58.697458+0000 Runner[92469:4618734] Warning: Unable to create restoration in progress marker file
fopen failed for data file: errno = 2 (No such file or directory)
Errors found! Invalidating cache...
fopen failed for data file: errno = 2 (No such file or directory)
Errors found! Invalidating cache...
Installing and launching...                                        41.0s
Syncing files to device Nexus...                                   231ms

Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).

💪 Running with sound null safety 💪

An Observatory debugger and profiler on Nexus is available at: http://<IP_ADDRESS>:55581/Gh1WbKUWEZE=/
The Flutter DevTools debugger and profiler on Nexus is available at:
http://<IP_ADDRESS>:9100?uri=http://<IP_ADDRESS>:55581/Gh1WbKUWEZE=/

Application finished.

Thanks for replying @danagbemava-nc! I updated my phone to the latest iOS version (15.5), and its still giving me the same error.

Hi @SyferDev, kindly upgrade to the latest version of flutter stable (3.0.4) to see if you still experience this issue.
If you do, please provide the full output of flutter doctor -v as well as the complete output of flutter run -v. The output of flutter run -v may be huge, so kindly put it into a .txt file and attach it here.
Thank you

Hello @danagbemava-nc, I updated both my flutter and Xcode and im still getting the same error.

flutter doctor -v
[✓] Flutter (Channel stable, 3.0.4, on macOS 12.4 21F79 darwin-arm, locale en-PH)
    • Flutter version 3.0.4 at /Users/seifer/dev/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 85684f9300 (4 days ago), 2022-06-30 13:22:47 -0700
    • Engine revision 6ba2af10bb
    • Dart version 2.17.5
    • DevTools version 2.12.2

Checking Android licenses is taking an unexpectedly long time...[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/seifer/Library/Android/sdk
    • Platform android-32, build-tools 32.1.0-rc1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] VS Code (version 1.68.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.44.0

[✓] Connected device (3 available)
    • aaaa (mobile)   • 00008101-0009196C3A7A001E • ios            • iOS 15.5 19F77
    • macOS (desktop) • macos                     • darwin-arm64   • macOS 12.4 21F79 darwin-arm
    • Chrome (web)    • chrome                    • web-javascript • Google Chrome 103.0.5060.53

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

run.txt

Hi @SyferDev, can you try one last thing? Try switching to the master channel to see if you still experience this issue.
Please provide the flutter doctor -v output of the master channel as well as the full verbose log.
Thank you

Hello @SyferDev, switching to master broke the firebase/auth package so i tried it out on a clean project. Running the project still gives out the same error.
flutter doctor -v
[✓] Flutter (Channel master, 3.1.0-0.0.pre.1503, on macOS 12.4 21F79 darwin-arm,
    locale en-PH)
    • Flutter version 3.1.0-0.0.pre.1503 on channel master at
      /Users/seifer/dev/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d7bacf9b3f (4 hours ago), 2022-07-05 05:14:08 -0400
    • Engine revision c49de3fc08
    • Dart version 2.18.0 (build 2.18.0-254.0.dev)
    • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version
    32.1.0-rc1)
    • Android SDK at /Users/seifer/Library/Android/sdk
    • Platform android-32, build-tools 32.1.0-rc1
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      11.0.12+0-b1504.28-7817840)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 13F100
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      11.0.12+0-b1504.28-7817840)

[✓] VS Code (version 1.68.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.44.0

[✓] Connected device (3 available)
    • aaaa (mobile)   • 00008101-0009196C3A7A001E • ios            • iOS 15.5
      19F77
    • macOS (desktop) • macos                     • darwin-arm64   • macOS 12.4
      21F79 darwin-arm
    • Chrome (web)    • chrome                    • web-javascript • Google
      Chrome 103.0.5060.53

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

verbose-run.txt

Thanks, from the logs of master and stable, the common errors I see seem to be related to code signing.
Target debug_unpack_ios failed: Exception: Failed to codesign /Users/seifer/dev/projects/iostest/build/ios/Debug-iphoneos/Flutter.framework/Flutter with identity 3C8015CB972D5FC7BACB34563A0B12809C2BDFFD.
                          /Users/seifer/dev/projects/iostest/build/ios/Debug-iphoneos/Flutter.framework/Flutter: errSecInternalComponent

Labeling for further investigation from the team

Hello @danagbemava-nc! I finally made my test project run on a physical device. All I had to do was to delete all Apple Developer certificates in Keychain Access and let it create new ones. For some reason it had duplicate certificates and I think that was the cause of the problem. Thanks for the help!

We should have the tool detect this error and instruct the user to recreate their developer certificates.

@SyferDev
If your physical device continues to fail, try this method.

Go to the keychain.
Delete all keys in the xcode team.
Reauthenticate team account in xcode.
flutter run

I solved it in that way.
xcode version 14.1
iphone 12 - 16.0.1
macbook m1 - 13.0(22A380)

I worked around the problem by adding a new developer certificate in Xcode. I didn't need to mess with the keychain or delete any certificates.

Hi @SyferDev, let's keep this open. I don't think the tool has been updated for https://github.com/flutter/flutter/issues/106876#issuecomment-1183869558

This is ridiculous. One day it deploys to a physical iOS device and then the next day it doesn't. What on Earth goes so wrong with the environment that this happens almost every single day?
Usually a flutter clean followed by a flutter build ios works but not every time. It takes a few hundred flutter cleans and then a build and maybe a shake of Xcode and then maybe something else.
It is SO inconsistent. ALL THE TIME.
It is incredible frustrating and makes the entire development experience horrible.

@gotnull Please consider our code of conduct.  Comments like "This is ridiculous" is neither courteous nor welcoming.

One day it deploys to a physical iOS device and then the next day it doesn't. What on Earth goes so wrong with the environment that this happens almost every single day?

You can see this frustrating failure happening in Xcode without Flutter being involved at all, so it seems to be a question for Apple.  Trust me, vanilla iOS development involves lots of fighting with the keychain and missing and expired certs.  The flutter tool can be more helpful here with the error message, but there's really not much we can do other than direct you to fix the error in Keychain/Xcode.

You can see this frustrating failure happening in Xcode without Flutter being involved at all, so it seems to be a question for Apple.

Agreed.

this worked for me:
security unlock-keychain login.keychain


kubelet 不能安装

[etcd] Failed to bring up Etcd Plane: [etcd] Etcd Cluster is not healthy

Useful
Info

Versions
Rancher v2.2.5 UI: v2.2.89

Route
authenticated.cluster.nodes.index

Can you supply more info on your setup (basically copy paste from this and fill in: https://raw.githubusercontent.com/rancher/rancher/master/.github/ISSUE_TEMPLATE.md)
Or you can find us by searching rancher2 via wechat


merge package from arlac77/npm-package-template

package.json

chore(package<EMAIL_ADDRESS>chore(scripts): cover@#overwrite c8 --temp-directory build/coverage ava && c8 report -r lcov --temp-directory build/coverage
chore(package): add xo from template
chore(package): add nyc from template
chore(package): set $.ava.require='esm' as in template
chore(package): set $.ava.files='tests/-test.js,tests/-test.mjs' as in template

Codecov Report

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

@@           Coverage Diff           @@
##           master     #300   +/-   ##
=======================================
  Coverage   84.11%   84.11%
=======================================
  Files           1        1
  Lines         214      214
=======================================
  Hits          180      180
  Misses         34       34

Continue to review full report at Codecov.

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

Coverage remained the same at 84.81% when pulling 1b85684aad079fdcec12f82c7ee109795b904e97 on template-sync-1 into c79a3491f309f0db7b53599be1585ff77e83ec3a on master.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Report progress on SIGUSR1 (when scripted)

If I understand correctly, restic does not report progress if not run in a terminal (from a crontab script, let's say).
It'd be nice if it could be signaled to print a line to stdout with the progress, like dd.

Thanks for the suggestion. I don't understand your use case: Why do you need a progress report when restic is not run from a terminal? Where should the progress report be sent when there is no terminal?

The output be a file. A file you can read, and be interested in the
progress at a given moment, instead of blindly waiting because you store
the output to a file.
On Thu, Feb 18, 2016 at 01:11:31PM -0800, Alexander Neumann wrote:

Thanks for the suggestion. I don't understand your use case: Why do you need a progress report when restic is not run from a terminal? Where should the progress report be sent when there is no terminal?

Reply to this email directly or view it on GitHub:
https://github.com/restic/restic/issues/453#issuecomment-185923707

I've thought about this and I don't see the need for it right now.


feat(icons): multiselection

@michalarchilogic can you add this icon to honeycomb file in figma? And @romandkos I think we need a better name for it

And @romandkos I think we need a better name for it

@ianaa Do you have an idea how to name it? ResourceMultiselection? MultipleComponents?

@romandkos @ianaa Here you go: https://www.figma.com/file/rsElRZClpRdcKlakIrlwOP/Honeycomb-2.0?type=design&node-id=7080-21109&mode=design&t=vpXGEUjFn6Q55z8K-4
I named it SpaceAndComponent.

I named it SpaceAndComponent.

https://github.com/archilogic-com/honeycomb/pull/217/commits/1abb5c1664345e047e52e727600f48be9ff5b094


build-app-programmatically-csv typo - Shouldn't entityList equal entities?

https://github.com/Microsoft/LUIS-Samples/blob/18be81e49e2538cdd6290c98b63d2bcde04aed49/examples/build-app-programmatically-csv/index.js#L53-L60
Noticed this while browsing the code.

Good catch. It should either equal entities or have a different name. I'll have to review the code that uses that property.


Add support for specified DB scans

Add support for specified DB scans #695

 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.ywxc1997 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

感谢你的贡献 👍


Breakpoint triggered when calling a method

I'm trying to call these two methods from an object and it gives a strange error "breakpoint triggered".
Method signature (other parts left out):
class LinkedSquad.PlayerControls.FP_Health : UnityEngine.MonoBehaviour
{
    System.Boolean isDied; // 0x29
    System.Void Died(); // 0x00e36aa4
    System.Void DeadScreenInvoke(); // 0x00e36c60
}

Il2Cpp.perform(() => {
    const csharp = Il2Cpp.domain.assembly("Assembly-CSharp").image;

    //Scan
    const snapshot = Il2Cpp.MemorySnapshot.capture();
    snapshot.objects.forEach((instance) => {
        if (instance.class.type.name == "LinkedSquad.PlayerControls.FP_Health") {
            let health = instance;
        };
    });
    snapshot.free();
    health.method("Died").invoke();
    health.method("DeadScreenInvoke").invoke();
});

I also tested it with tracer enabled, and it's very strange:
the first method just isn't called.
the second method gets invoked as normal, but the result is unexpected because of the 1st method.
I also have the cpp2il+ilspy decompiled versions of them, but there's nothing wrong about them.
Am i misunderstanding something?

Hmm that doesn't look like a proper TypeScript snippet:
here you are assigning instance to a local variable health
            let health = instance;

but then you are trying to access health from an outer scope, which would result in a health is not defined error.

A thing that comes to my mind is you are trying to invoke those methods within the Frida thread, but possibly they should be invoked within the main thread. You could try the following:
Il2Cpp.perform(() => {
    // code here
}, "main");

Details here: https://github.com/vfsfitvnm/frida-il2cpp-bridge/wiki/Changelog#v082

Thanks, that worked. I thought i had tested attaching with the main thread, but
maybe i didn't understand something.

you are trying to access health from an outer scope, which would result in a health is not defined error.

This code is very simplified, but the stuff i left out isn't related or being used.


[pt-br] Add docs/concepts/policy/pid-limiting.md

Translate docs to pt-br
docs\concept\policy\pid-limiting.md
Related issues
https://github.com/kubernetes/website/issues/13939

Hi @DaviMatheus Thanks for your contribution!
If you need help, please don't hesitate to ask us in Portuguese slack channel #kubernetes-doc-pt

/cc @stormqueen1990

PTAL /cc @devlware

/cc @devlware

/retitle [pt-br] Add docs/concepts/policy/pid-limiting.md

Hey @DaviMatheus,
The email used for commit this PR is not binding to your GitHub account, so the CLA validation won't pass.
Your email is<EMAIL_ADDRESS>The email in git config<EMAIL_ADDRESS>

Hey @DaviMatheus,
The email used for commit this PR is not binding to your GitHub account, so the CLA validation won't pass.
Your email is<EMAIL_ADDRESS>The email in git config<EMAIL_ADDRESS>
Hi @DaviMatheus
Your work is important to the project and is well on its way. Call us in Portuguese slack channel #kubernetes-doc-pt and someone can help you with the problem on the CLA.

Hello there, @DaviMatheus! 👋
As @MrErlison mentioned, your contribution is important for us. However, until we fix this CLA issue in your branch, we won't be able to /lgtm or /approve this PR.
The way to fix this kind of situation is by editing the commits and resetting the author to match your git configuration, via git rebase/git commit --amend --reset-author (see https://stackoverflow.com/a/1320317). This does mean you will have to force-push your branch.
If you need more 1:1 help, please feel free to ask for it in the #kubernetes-docs-pt channel in Kubernetes Slack.
We look forward to having your contribution merged!


Quickfix: Unused import

    The import of ‘Common.Api’ is redundant```

Looks like this was fixed in another commit. Thanks!


[ curl ] build failure

Host Environment

OS: Windows
Compiler: revision

To Reproduce
Get latest vcpkg zip file from https://github.com/microsoft/vcpkg/releases (e.g. https://github.com/microsoft/vcpkg/archive/2019.09.zip) and extract it to a folder of your choice (e.g. C:\vcpkg)
Open Developer Command Prompt for VS 2017 (see Windows Start menu or %PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Visual Studio 2017\Visual Studio Tools) and cd to C:\vcpkg
Run bootstrap-vcpkg.bat
Run vcpkg.exe integrate install
Run vcpkg.exe install curl
Failure logs
C:\Program Files (x86)\vcpkg-2020.11>.\vcpkg update
Using local portfile versions. To update the local portfiles, use `git pull`.
No packages need updating.

C:\Program Files (x86)\vcpkg-2020.11>git pull
fatal: not a git repository (or any of the parent directories): .git

C:\Program Files (x86)\vcpkg-2020.11>vcpkg.exe install curl
Computing installation plan...
The following packages will be built and installed:
    curl[core,non-http,schannel,ssl,sspi,winssl]:x86-windows
  * zlib[core]:x86-windows
Additional packages (*) will be modified to complete this operation.
Detecting compiler hash for triplet x86-windows...
Starting package 1/2: zlib:x86-windows
Building package zlib[core]:x86-windows...
Could not locate cached archive: C:\Users\******\AppData\Local\vcpkg\archives\17\1703e3666a1907432b9037386b4c28afe42b977b.zip
-- Using cached C:/Program Files (x86)/vcpkg-2020.11/downloads/zlib1211.tar.gz
-- Cleaning sources at C:/Program Files (x86)/vcpkg-2020.11/buildtrees/zlib/src/1.2.11-63309e48e5.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Program Files (x86)/vcpkg-2020.11/downloads/zlib1211.tar.gz
-- Applying patch cmake_dont_build_more_than_needed.patch
-- Applying patch 0001-Prevent-invalid-inclusions-when-HAVE_-is-set-to-0.patch
-- Applying patch add_debug_postfix_on_mingw.patch
-- Using source at C:/Program Files (x86)/vcpkg-2020.11/buildtrees/zlib/src/1.2.11-63309e48e5.clean
-- Configuring x86-windows
-- Building x86-windows-dbg
-- Building x86-windows-rel
-- Using msys root at C:/Program Files (x86)/vcpkg-2020.11/downloads/tools/msys2/c809757c94447846
-- Fixing pkgconfig file: C:/Program Files (x86)/vcpkg-2020.11/packages/zlib_x86-windows/lib/pkgconfig/zlib.pc
-- CHECK_LIB_zlib_RELEASE:CHECK_LIB_zlib_RELEASE-NOTFOUND
CMake Error at scripts/cmake/vcpkg_fixup_pkgconfig.cmake:232 (message):
  Library "zlib" was not found! If it is a system library use the
  SYSTEM_LIBRARIES parameter for the vcpkg_fixup_pkgconfig call! Otherwise,
  correct the *.pc file
Call Stack (most recent call first):
  scripts/cmake/vcpkg_fixup_pkgconfig.cmake:298 (vcpkg_fixup_pkgconfig_check_files)
  ports/zlib/portfile.cmake:48 (vcpkg_fixup_pkgconfig)
  scripts/ports.cmake:135 (include)

Error: Building package zlib:x86-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: zlib:x86-windows
  Vcpkg version: 2020.06.15-nohash

Additionally, attach any relevant sections from the log files above.

C:\Program Files (x86)\vcpkg-2020.11>

Additional context
Tried to use vcpkg for a quick curl installation according to https://stackoverflow.com/questions/53861300/how-do-you-properly-install-libcurl-for-use-in-visual-studio-2017
did try twice, this is the second output. The complete log: https://pastebin.com/h57NPLnC

CMake Error at scripts/cmake/vcpkg_fixup_pkgconfig.cmake:232 (message):
  Library "zlib" was not found! If it is a system library use the
  SYSTEM_LIBRARIES parameter for the vcpkg_fixup_pkgconfig call! Otherwise,
  correct the *.pc file

Please re-install zlib then try to rebuild curl.
Thanks.

@JackBoosY We're having issues with zlib's pkg-config file, so we should investigate what's wrong there.

Can you give us the content of the file C:/Program Files (x86)/vcpkg-2020.11/packages/zlib_x86-windows/lib/pkgconfig/zlib.pc, and also the content of the folder C:/Program Files (x86)/vcpkg-2020.11/packages/zlib_x86-windows/lib?

C:\Program Files (x86)\vcpkg-2020.11\packages\zlib_x86-windows\lib\pkgconfig:
prefix=${pcfiledir}/../..
exec_prefix=${prefix}
libdir=${prefix}/lib
sharedlibdir=${prefix}/lib
includedir=${prefix}/include
Name: zlib
Description: zlib compression library
Version: 1.2.11
Requires:
Libs: -L${libdir} -L${sharedlibdir} -lzlib
Cflags: -I${includedir}
The whole directory (C:/Program Files (x86)/vcpkg-2020.11/packages/zlib_x86-windows):
https://www.dropbox.com/s/x6g4z8z1jiq5t7h/zlib_x86-windows.7z?dl=0

Can you try updating vcpkg and try again?
(run git pull then bootstrap-vcpkg.bat)

@Gladaed I can confirm your zlib is out-dated, please update vcpkg, remove zlib and re-install zlib again.


Please invite me to the GitHub Community Organization

Name
Masculus
Discord Username (if applicable)
masculus#1716
Additional Context
Please accept me.

@masculus welcome to ChryzHub 🥳🎉


No feature/provision to write “Pre-Request” Script/ “Post-Request” Scripts

If we need send any request to API call (like calling Key Vault APIs) before running required API call, we don’t see any “Pre-Request Script” tab (Like in Postman) in Key Runner API client. Also is there any plan to provide “Post-Request” Script tab, so that we can capture needed values from API response or perform validations using custom code.
I am using Key Runner Windows/Desktop Application - v<IP_ADDRESS>
The current “Tests” tab provides limited option to perform API response validations with pre-defined set of assertions but does not provide any option to write any custom code/use of JSON path etc.

we are working on scripting feature(pre & post) and it will be released as part of next release. Regarding vault integrations we are building connectors for free version with which you can seamlessly integrate with vault to store or retrieve environment variables. We will update this thread once we release a new version.

@akhot09  Beta version has been released for scripting with V#1.0.47 .

@launchiamenterprise  --
Can you please point us to docs/documentation which brief us with commands, syntax to be used to add scripts in "Pre-Script" and "Post-Script" Scripts section which can help to perform post validations or capture values during chaining of requests.
Below screen shot is from v1.0.50 KeyRunner plugin installed part of Visual Studio Code :

We are in the process of updating documentation and will update this thread once we document the usage. Hopefully by end of this week.

please see the below documentation and let us know if you are running into any issues. This is still beta and we will improvise the functionality & features of scripting
https://docs.keyrunner.app/docs/scripting.html


Feature request - Add children to Add component - Or another way to create a component at the same position

I could really use a menu when clicking on a connection Add component.

When clicking on "+", display a custom component.
Here's what I've done for now instead:

Right now, I'm displaying a list of components at the bottom to pick from, but it's not so easy:

I decided to use an absolute position, but ideally, I'd prefer to display this at the spot it was clicked. But, I don't know what are the x/y of the "Add" (they're not exposed). Even though they were exposed, I'd have a hard time converting it to an absolute css position (top/left/bottom/right).
Using an absolute position is easier. I thought about using another element within the canvas, but that'd have to be a node, right? And this doesn't really make sense, it'd be some kind of temporary node 🤔 and it'd move all other nodes/edges upon display. So, using something displayed in absolute position seemed better.

Eventually, what I'm trying to achieve is something of the sort: https://youtu.be/frihIydsxAg
Basically, click on the Add element, display a menu, click on an element and get the new node added.
I feel like I can't do this at this time because:

Add doesn't allow defining children, this might be the easiest way to position an element in the Canvas at the right position, that displays on top of other elements and wouldn't need to redraw the whole canvas.
Expose x/y in the onAdd of the Edge component

Current signature is onAdd?: (event: React.MouseEvent<SVGGElement, MouseEvent>, edge: EdgeData) => void;, might become something like onAdd?: (event: React.MouseEvent<SVGGElement, MouseEvent>, edge: EdgeData, meta: { x:number; y:number }) => void;

I don't think I can easily achieve the above at this time.
Would it make sense to add native support for this?

I managed to achieve what I wanted, but I had to do it very differently. (not only because of Reaflow's limitations, but also because I wanted to achieve a particular UX).
I disabled the Remove built-in component and customised the Add component because I wanted both Add/Remove buttons to display. By default, when using both of them they'll appear at the same X/Y position and will be on top of each other, displaying only one of them. I wanted both.
I figured what I really want to do is to have a custom children in the Edge component, to display a custom component when the Edge is being selected. This is currently not possible and tracked through https://github.com/reaviz/reaflow/issues/67.

I'll close this issue in favor of https://github.com/reaviz/reaflow/issues/67.

Result:

import React, { Fragment } from 'react';
import {
  Add,
  AddProps,
  Remove,
  RemoveProps,
} from 'reaflow';
import BaseEdgeData from '../../types/BaseEdgeData';

type Props = {
  hidden: boolean;
  onRemove?: (
    event: React.MouseEvent<SVGGElement, MouseEvent>,
    edge: BaseEdgeData,
  ) => void;
  onAdd?: (
    event: React.MouseEvent<SVGGElement, MouseEvent>,
    edge: BaseEdgeData,
  ) => void;
} & Partial<AddProps | RemoveProps>;

/**
 * Displays the edge's actions (add node, remove current edge).
 *
 * Displays the actions only when the edge is being selected.
 * Displays the actions a bit above the edge, in a line.
 */
const EdgeActions: React.FunctionComponent<Props> = (props) => {
  const {
    x,
    y,
    onAdd,
    onRemove,
  } = props;
  const aboveLineY = (y || 0) - 20;
  const removeX = (x || 0) + 20;

  // console.log('EdgeActions props', props);

  return (
    <Fragment>
      <Add
        {...props}
        y={aboveLineY}
        // @ts-ignore
        onClick={onAdd}
      />
      <Remove
        {...props}
        x={removeX}
        y={aboveLineY}
        // @ts-ignore
        onClick={onRemove}
      />
    </Fragment>
  );
};

export default EdgeActions;

Custom Edge component:
    <Edge
      {...props}
      className={classnames(`edge`, { 'is-selected': isSelected })}
      add={(
        <EdgeActions
          hidden={!isSelected}
          onAdd={onAddIconClick}
          onRemove={onRemoveIconClick}
        />
      )}
      onClick={onEdgeClick}
    />

Code:

https://github.com/Vadorequest/poc-nextjs-reaflow/blob/5e842bd1145a0a7b0c8c73cba9a36d81a9aee791/src/components/edges/EdgeActions.tsx#L35
https://github.com/Vadorequest/poc-nextjs-reaflow/blob/7524892d92e585c9cf9f240b7da1e1861d1c22e1/src/components/edges/BaseEdge.tsx#L155


New tutorial: Scanpy Parameter Iterator

A wee tutorial falling under Tips and Tricks single-cell category. An extension of Filter, Plot and Explore tutorial.
Here it is @nomadscientist!

hm, is the output testing mandatory now?

hm, is the output testing mandatory now?

yep, changed that probably last month as we noticed a couple where we didn't verify outputs at all, and we're trying to (slowly) push folks to best practices.

yep, changed that probably last month as we noticed a couple where we didn't verify outputs at all, and we're trying to (slowly) push folks to best practices (sorry)

ok ok, good to know. But now when running planemo workflow_test_init it automatically returns 'outputs: {}' (it didn't last month) - how to work around that?

But now when running planemo workflow_test_init it automatically returns 'outputs: {}' (it didn't last month) - how to work around that?

oh that's unexpected that that behaviour changes. What version of planemo are you using? I'm on planemo, version 0.75.7 which still produces outputs properly

I'm also running version 0.75.7. But apparently it's the problem with the workflow itself - just realised it didn't produce anything in 'outputs' tab when I checked it in 'Invocations' in Galaxy. Weird as the older workflows have 'outputs' displayed normally. I'll look into the workflow again and try to fix it.
But when it eventually works as expected, where should the output test files be uploaded? Should I add test-data folder (large files ;/) or upload the output files to Zendo and add links as with the inputs? Apologies if it's already described somewhere that I missed


[BUG] QuickCreate Save doesn't work after navigating from another quick create

Bug Report
EasyRepro Version
Microsoft Dynamics 365 Online Version 9.1 (9.1.x) (DB 9.1.x) online
UCI or Classic Web
UCI (XrmApp)
Online or On Premise
Online
Browser
chrome=83.0.4103.97
Describe the bug
When dealing with a quick create form which was created from another Quick Create form, executing XrmApp.QuickCreate.Save() results in this error:
OpenQA.Selenium.ElementClickInterceptedException: 'element click intercepted: Element ... is not clickable at point (1710, 886). Other element would receive the click: ...
xrmApp.Navigation.QuickCreate("contact") also errors from the Case quick create form:
OpenQA.Selenium.ElementClickInterceptedException: 'element click intercepted: Element ... is not clickable at point (1703, 24). Other element would receive the click: ...
(Session info: chrome=83.0.4103.97)'
Code to reproduce
From Email entity:
xrmApp.CommandBar.ClickCommand("Create Case");
xrmApp.QuickCreate.SetValue("new_entryid", 12345);
// can't use xrmApp.Navigation.QuickCreate("contact"); so I do this:
xrmPage.Browser.Driver.WaitUntilAvailable(By.XPath("//button[contains(@data-id,'new_contact')]"));
xrmPage.Browser.Driver.FindElement(By.XPath("//button[contains(@data-id,'new_contact')]")).Click(true);
xrmPage.Browser.Driver.WaitUntilAvailable(By.XPath("//button[contains(@aria-label,'New Contact')]"));
xrmPage.Browser.Driver.FindElement(By.XPath("//button[contains(@aria-label,'New Contact')]")).Click(true);
xrmApp.QuickCreate.SetValue("firstname", DataConstants.contactFirstName);
xrmApp.QuickCreate.SetValue("lastname", DataConstants.contactLastName);
xrmApp.QuickCreate.SetValue("emailaddress1", DataConstants.contactEmail);
xrmApp.QuickCreate.Save(); -- errors here
Expected behavior
I expect it to save
Additional context
The error suggests the click is blocked by the ms-Button-label.  So I tried this to see if I can click on the label instead, and found there are two identical labels rendered on the page:
var quickCreate = xrmPage.Browser.Driver.FindElement(By.XPath("//section[@data-id="quickCreateRoot" and contains(@data-lp-id, "contact")]"));
var button = quickCreate.FindElement(By.XPath("//button[@id="quickCreateSaveAndCloseBtn"]"));
button.FindElements(By.XPath("//div[contains(@class, "ms-Button-label") and text()="Save and Close"]"))
Count = 2
[0]: {Element (id = 772d6274-9c6d-4d76-a196-c3b1aebd98e4)}
[1]: {Element (id = cecac6bb-74f1-4f7f-9c4e-ce5ba5d444a3)}
button.FindElements(By.XPath("//div[contains(@class, "ms-Button-label") and text()="Save and Close"]"))[0]
{Element (id = 772d6274-9c6d-4d76-a196-c3b1aebd98e4)}
Coordinates: {OpenQA.Selenium.Remote.RemoteCoordinates}
Displayed: true
Enabled: true
Id: "772d6274-9c6d-4d76-a196-c3b1aebd98e4"
Location: {X = 1665 Y = 880}
LocationOnScreenOnceScrolledIntoView: {X = 1665 Y = 880}
Selected: false
Size: {Width = 93 Height = 14}
TagName: "div"
Text: "Save and Close"
WrappedDriver: {OpenQA.Selenium.Chrome.ChromeDriver}
button.FindElements(By.XPath("//div[contains(@class, "ms-Button-label") and text()="Save and Close"]"))[1]
{Element (id = cecac6bb-74f1-4f7f-9c4e-ce5ba5d444a3)}
Coordinates: {OpenQA.Selenium.Remote.RemoteCoordinates}
Displayed: true
Enabled: true
Id: "cecac6bb-74f1-4f7f-9c4e-ce5ba5d444a3"
Location: {X = 1665 Y = 880}
LocationOnScreenOnceScrolledIntoView: {X = 1665 Y = 880}
Selected: false
Size: {Width = 93 Height = 14}
TagName: "div"
Text: "Save and Close"
WrappedDriver: {OpenQA.Selenium.Chrome.ChromeDriver}
Clicking the second element will get the quick create to save.  The first one will not.

You have to use SwitchTo() method to switch from one form to another then you can click on the buttons on the form you switched to. The issue is which is causing you is because the target window is the previous form and you are clicking on another form.
@devonuto

You have to use SwitchTo() method to switch from one form to another then you can click on the buttons on the form you switched to. The issue is which is causing you is because the target window is the previous form and you are clicking on another form.
@devonuto

Given SwitchTo is a Selenium WebDriver function, it's not exactly a EasyRepro fix.
I was able to code around it using Selenium, but it still remains a bug with EasyRepro.

You have to use SwitchTo() method to switch from one form to another then you can click on the buttons on the form you switched to. The issue is which is causing you is because the target window is the previous form and you are clicking on another form.
@devonuto

Given SwitchTo is a Selenium WebDriver function, it's not exactly a EasyRepro fix.
I was able to code around it using Selenium, but it still remains a bug with EasyRepro.

Yes I provided you the workaround that I also used. I am also an end-user like you. 😊


added bubble sort algorithm

added iterative and recursive bubble sort algorithm

Thank you for your contribution! My apology that I was unable to maintain my GitHub for the past 2 weeks due to my busy job hahaha. I just added a contribution guideline, and don't worry, I will give you feedback

Thank you for your contribution! My apology that I was unable to maintain my GitHub for the past 2 weeks due to my busy job hahaha. I just added a contribution guideline, and don't worry, I will give you feedback

Ok thanks 👍🏻. I'm going to check the guidelines and refactor the commit if necessary. That's my first ever contribution so there are probably problems lol.

Okay, thank you so much. I wasn't sure how to refactor it so I was waiting for some examples to be committed. I will add comments for my contributions as shown in example programs 👍.


[SGTM bugs] let due_on handle nulls and add more test

Summary

Occassionally seeing errors of the type:

  File "/var/task/src/handler.py", line 25, in handle_github_webhook
    http_response = github_webhook.handle_github_webhook(event_type, github_event)
  File "/var/task/src/github/webhook.py", line 195, in handle_github_webhook
    return _events_map[event_type](payload)
  File "/var/task/src/github/webhook.py", line 167, in _handle_check_suite_webhook
    github_controller.upsert_pull_request(pull_request)
  File "/var/task/src/github/controller.py", line 30, in upsert_pull_request
    asana_controller.update_task(
  File "/var/task/src/asana/controller.py", line 39, in update_task
    else _new_due_on_or_none(task, update_task_fields)
  File "/var/task/src/asana/controller.py", line 55, in _new_due_on_or_none
    if task["due_on"] >= today:
TypeError: '>=' not supported between instances of 'NoneType' and 'str'

this just adds a null check. This happens if the due date is purposefully removed (someone decides they won't follow up with the PR for a long time)

Asana tasks:
Relevant deployment:
CC: @prebeta @michael-huang87 @suzyng83209 @vn6
Test Plan

tests pass

Risks
Pull Request: https://github.com/Asana/SGTM/pull/182
Pull Request synchronized with Asana task

#182  👈
master

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

Join @suzyng83209 and the rest of your teammates on  Graphite


declarative_base available from sqlalchemy.orm in 1.4

https://docs.sqlalchemy.org/en/14/orm/extensions/declarative/

Changed in version 1.4: The vast majority of the Declarative extension is now integrated into the SQLAlchemy ORM and is importable from the sqlalchemy.orm namespace.

Using the old location (ext.declarative) gives a deprecation warning when SQLALCHEMY_WARN_20 enabled.

same, can not use from sqlalchemy.orm import declarative_base now, which throws  error: Invalid base class "Base"  [misc]

The last update of sqlalchemy.orm.__init__.pyi was 2 years ago, before SQLAlchemy 1.4.0 was released. Wondering if the authors would consider merging a pull request with a fix, although there seem to be a bunch of unanswered PRs.

Following up here since I'm facing this for the as_declarative -- I get a deprecation warning, but when It ry to import from sqlalchemy.orm the type check fails.


Factor out normalize_elf_offset_with_parser

This change factors out a new internal function in the normalizer module: normalize_elf_offset_with_parser. It can be used to normalize a file offset given an already constructed ElfParser object.

Simple refactoring; going to merge once CI passes.


Delete address field from volunteers

iVolunteer does not require the addresses of our users. Eradicated all traces of address fields in the code base.
all 257 test cases passed so hopefully I didn't break anything
Added a gitmessage.txt file for a good commit message template (this what I did for my IP which helped me, not sure if yall like it or not)

wait nani i think our impressions on how to implement the feature is a bit different lehh but i can remove the address field from my side for UG and DG


Rename exists to contains

I saw this as ToDo in Projects/Develop.
I hope that's what you meant. If not, please let me know.

btw I suppose you use Paper in one of your apps? If you can expose this info publicly – please add your app into https://github.com/pilgr/Paper/issues/92
Thanks!


Project structure

Summary
Attempt to modernize the project layout
Details
src layout
Moved python source and website files into a src/wikmd/ folder.
Added project.tom
Setting up a pyproject file. The file is commonly used to define project settings as well as
a central location for other tools settings.
Removed requirements.txt
The requirements now live in the pyproject file and the common pip install -r requirements.txt is now
replaced by doing pip install . to install from it. If you want the dev dependencies you can do
pip install .[dev].
Dockerfile
Moved Dockerfile into root as well as tried to simplify it. However this is not my area of expertise so needs extra care to make sure everything is working. But I have tested it extensively on my server (running Ubuntu) and it builds, installs and runs as expected.
Tests
I took the liberty to clean up the tests a bit, the functionality is the same of course.
wiki_template
As I wanted to get away from the the v6 docker setup I changed it so that the app populates the defined wiki_directory if it it is empty (or doesn't exist). That way we can make Docker image that works on all platform python works on.
Consider ruff
I think we should consider using ruff in the project as it is quickly becoming the way to ensure code consistency, however I haven't added it yet. I have added some settings and rules for the test folders. If you want to try it out you can install it with pip install ruff and installing the ruff plugin for your IDEA, however it might be a bit overwhelming as there is a lot of lint error.
Work left

[x] No tests fails
[x] Project runs locally as before
[x] Docker image builds
[x] Docker image installs
[x] Project runs on a docker image as before

This is now ready for review. Let me know of any concerns you have with the Pull Request @Linbreux

@Jerakin no it's fine like this. I just need to find some time to test it (because it's a big one). ;)
But anyway, thanks for your hard work!

Forgot to mention
To run the app cd into src and run it as a module python -m wikmd.wiki make sure you got the -m and no .py.

Is it possible to run the python -m wikmd.wiki command one level higher. (not in the src folder)

Yes - but not without other "inconveniences". The recommended way to work on something that lives in the src folder is to install the project in edit mode.
If you are within the project (the wikmd folder) you can install it through python -m pip install --editable . this will install it as an editable (basically the installed project within pythons Lib/site-packages will point towards this folder. You can then do python -m wikmd.wiki to start it.

Overal I think some stuff could be placed outside the src folder.

Remember that the intent with the src folder is to be able to package the project, so everything that the app needs to be distributed as such would need to be placed within the src folder. With that in mind is there any changes you would like to see to the structure?
The wiki_template folder should live within the src folder too. Maybe we should move the wiki_template, static and templates into a subfolder within src named assets or something.

If you are within the project (the wikmd folder) you can install it through python -m pip install --editable . this will install it as an editable (basically the installed project within pythons Lib/site-packages will point towards this folder). You can then do python -m wikmd.wiki to start it (from anywhere - as long as the active python interpreter is the correct one. However because we need files to be in the correct location you need to run it from a location that makes sense).

I think we can make that work. I was able to run it using this branch with:
cd wikmd
python -m pip install .
python -m wikmd.wiki

So I'm not quite sure why the editable flag is needed.

Remember that the intent with the src folder is to be able to package the project, so everything that the app needs to be distributed as such would need to be placed within the src folder. With that in mind is there any changes you would like to see to the structure?

I ment stuff like the config file. I think it would make more sense in the project root.

I moved the wiki template folder into the src to indicate that it's part of the app.

You could at this point upload it to pypi if you wanted

Nice thanks! Wanted to do that for a while.

So I'm not quite sure why the editable flag is needed.

the --editable flag is to enable development mode. In short - if you use --editable the installed package is pointing to your current files. So if you do any update it will instantly be reflected in the installed app (as they are the same). If you install the package without the editable flag then it is install as is, meaning if you want to do a change in the wiki.py you would also need to run python -m pip install . again.

I ment stuff like the config file. I think it would make more sense in the project root.

Yeah that could, I think changes should be made to remove the config file completely from the project. As right now, it is almost as if we have default variables within config.py as well as the config.yaml file. Which can be confusing.
Personally I would like there to be support for a config.yaml file that the user can supply (through a Environment variable), however the project doesn't depend on one existing (as it does now).

This is great! Thank you @Jerakin and @Linbreux!


performance support parallel memtable flush for unique key tables

Proposed changes
Assign a flush_serial_id to MemTable early in DeltaWriter, and exec the flush in parallel.
In this way, we can improve the stream load peformance of 1 tablet unique key tables by around 100%.


put a max-width on css in long description

Since this is CSS and I told the collective I'd have this pushed in a few mins, merging. @xdamman can you review post-merge?


obsolete obsolete Say-Carpenter syndrome

closes #7192

Yes, I checked this one since there was a note in the ticket to check before obsoleting.


370 - doc - use jekyll theme header

@florentmaitre FYI it has been tested with Julien D. and it works ;)


signal-desktop-beta: 6.1.0-beta.1 -> 6.2.0-beta.1

Description of changes
https://github.com/signalapp/Signal-Desktop/releases/tag/v6.2.0-beta.1
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 206313 run on x86_64-darwin 1


Updated examples

Updated examples for Cori -- https://e3sm-project.github.io/e3sm_diags/_build/html/master/examples.html#running-the-examples

Note: #619 needs to be resolved before this can be merged.

Note: both #619 and #621 had to be merged for the checks on this pull request to work.


Question: Can you zoom within an element?

Considering using this but the demo only displays a zoom interaction in which the image is clicked and then zoomed over the entire document width.
Curious if there is any possibility of being able to zoom within an element like a div with a defined height/width?

Hmm...interesting. Unfortunately, it does not support such functionality. In what scenario do you think this kind of use case is useful?

Do you mean something like this? https://codepen.io/mahish/pen/NAQpyB Usually, it is used in eshops for example. I dont know the codebase but I find such functionality for different package since it has different purpose (two different design patterns: lightbox vs. zoom). It would be nice they could be plugable tho.

I will close it since the thread is no longer active.


Testing Netlify Deploying

Blog branch cannot be deployed. Netlify checking 2/5 tests. Testing is this is a Netlify issue or a hidden Blog branch bug.

Only tested 4/5 netlify checks. Normally checks all 5. Can deploy page.


python-pptx not working in python 3.10

Hi, python-pptx package is not working as intended in python 3.10. Following are steps to reproduce the error.
python3 --version
python3 -m venv .venv
source .venv/bin/activate
pip install python-pptx
python -c 'from pptx import Presentation'

Python 3.10.6
Collecting python-pptx
Using cached python_pptx-0.6.21-py3-none-any.whl
Collecting XlsxWriter>=0.5.7
Using cached XlsxWriter-3.1.2-py3-none-any.whl (153 kB)
Collecting Pillow>=3.3.2
Using cached Pillow-10.0.0-cp310-cp310-manylinux_2_28_x86_64.whl (3.4 MB)
Collecting lxml>=3.1.0
Using cached lxml-4.9.3-cp310-cp310-manylinux_2_28_x86_64.whl (7.9 MB)
Installing collected packages: XlsxWriter, Pillow, lxml, python-pptx
Successfully installed Pillow-10.0.0 XlsxWriter-3.1.2 lxml-4.9.3 python-pptx-0.6.21
Traceback (most recent call last):
File "/home/kas/tests/.venv/lib/python3.10/site-packages/pptx/compat/init.py", line 10, in
Container = collections.abc.Container
AttributeError: module 'collections' has no attribute 'abc'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "/home/kas/tests/.venv/lib/python3.10/site-packages/pptx/init.py", line 14, in
from pptx.api import Presentation  # noqa
File "/home/kas/tests/.venv/lib/python3.10/site-packages/pptx/api.py", line 15, in
from .package import Package
File "/home/kas/tests/.venv/lib/python3.10/site-packages/pptx/package.py", line 6, in
from pptx.opc.package import OpcPackage
File "/home/kas/tests/.venv/lib/python3.10/site-packages/pptx/opc/package.py", line 11, in
from pptx.compat import is_string, Mapping
File "/home/kas/tests/.venv/lib/python3.10/site-packages/pptx/compat/init.py", line 14, in
Container = collections.Container
AttributeError: module 'collections' has no attribute 'Container'

This issue is fixed. python-pptx-fix


As a LAOS bridge dev I want to create a lightclient between the EvoChain and the Ownership so I can store their states and later build message passing

ACCEPTANCE:

We can find the EvoChain state roots in the Own chain


Add PostgreSQL 12.3

Resolves https://github.com/microsoft/winget-pkgs/issues/1718
Microsoft Reviewers: Open in CodeFlow

The PostgreSQL 12 packaged by EnterpriseDB not officially support Windows 10, only Windows Server 2019, Windows Server 2016 and Windows Server 2012 R2
https://www.enterprisedb.com/services-support/edb-supported-products-and-platforms#pg12
https://www.postgresql.org/download/windows/
Also, the installer has no option to add the command-line tools to the Windows PATH automatically. This fact makes it very difficult for newbies. On Linux and Mac, there is no need to worry about this because the installer already does it for you.

The problem of environment variables can be partially solved by loading c:\Program Files\PostgreSQL\12\pg_env.bat however, pg_env.bat has an incompatibility with Windows 10 or Windows 10 has a bug when processing the PATH environment variable that contains quotes character.
With quotes:

Without quotes:

I asked EnterpriseDB about this "problem", because I don't know if Windows Server behaves differently, and the answer was that Windows 10 is not supported:

Thanks @MarNicGit @KevinLaMS!

@luzfcb we've installed this via Chocolatey on a number of Windows 10 systems for our (very often beginner-level) students at @upleveled.
The $PATH thing is not ideal, but run a few lines of shell scripting and it can be added to the PATH automatically:
https://github.com/upleveled/system-setup/blob/master/windows.md#user-content-postgresql
Aside from that, no compatibility issues with Windows 10.
However, if you have an unattended installer alternative that could work better, then maybe it's worth investigating.
I'm sure that @majkinetor would also be interested (https://github.com/majkinetor/au-packages).


When is ConnectionManagerImpl destroyed

I'm learning about metrics of Envoy and I just found downstream_cx_destroy. I don't understand what it means.
It seems that it will be increased when the destructor of ConnectionManagerImpl is called.
The class ConnectionManagerImpl is to manage some http connections as its name implies. But I don't know when its desctructor will be called.

The HTTP ConnectionManagerImpl is network filter for http1 and http2 traffic.
You can imagine this filter  created after a connection is accepted by Envoy and destroyed after the downstream connection is closed.
ConnectionManager manages multiple http requests that are either pipelined or multiplexed in the same connection


Feature representation of the dataset already computed

Hi,
Is there any version of this dataset already preprocessed with frames represented as vectors passed through a CNN model?
This would be very convenient to have, for instance like for Summe and TVSum datasets here https://github.com/KaiyangZhou/pytorch-vsumm-reinforce, in hdfs5 files.
Thanks

Hi, did u already get the dataset? I will be very grateful if u can send me a copy of it.

hi，did you get the dataset?
I also need this data to study.If u already have this dataset, could u please make a copy for me?I would be very grateful.


Add custom timestamp filtration

Closes https://github.com/sentinel-hub/eo-learn/issues/498
@ColinMoldenhauer is this sufficient for your needs? I would also like to add you as a co-author (since the idea and solution suggestion are yours), but I'd need an e-mail under which to add you.

Closes #498
@ColinMoldenhauer is this sufficient for your needs? I would also like to add you as a co-author (since the idea and solution suggestion are yours), but I'd need an e-mail under which to add you.

As an e-mail, you can use colin.moldenhauer [at] posteo.de, thank you!

Codecov Report
Base: 83.60% // Head: 83.58% // Decreases project coverage by -0.01% :warning:

Coverage data is based on head (f8322c5) compared to base (05990cb).
Patch coverage: 100.00% of modified lines in pull request are covered.

:exclamation: Current head f8322c5 differs from pull request most recent head 0bac9dc. Consider uploading reports for the commit 0bac9dc to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #500      +/-   ##
===========================================
- Coverage    83.60%   83.58%   -0.02%
===========================================
  Files           60       60
  Lines         5683     5685       +2
===========================================
+ Hits          4751     4752       +1
- Misses         932      933       +1

Impacted Files
Coverage Δ

io/eolearn/io/sentinelhub_process.py
87.18% <100.00%> (+0.09%)
:arrow_up:

core/eolearn/core/extra/ray.py
92.68% <0.00%> (-2.44%)
:arrow_down:

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

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

Code looks good.
I would just add test where we would check sth. like:
len(set(timestamp)) == len(timestamp filtration) != len(timestamp))

and make doc strings unified whit existing doc strings.


Is this still active?

I just found this repo and wanted to know if it is still actively developed. I just published a similar package for RUL datasets. Do you want to have a talk about collaborating? I couldn't find your contact info anywhere else.

hello!. The project is still active. It has had little activity lately because I recently changed jobs. My idea is to keep updating it when I have free time.
I would love to talk about collaborating. I think GitHub is a good place to do it.
Let me know what your ideas are.

I'm researching unsupervised domain adaption (UDA) and semi-supervised (SSL) deep learning methods for RUL estimation for my PhD. Because most authors do not publish their code, I have to re-implement it anyway, so I thought about doing it in a way that others can use it, too.
The first step was publishing my dataset loading code in the package linked above. I see that your package offers some datasets, too. For me, the main focus lies on providing tools for UDA and SSL, which I could not find anywhere else. Maybe merging the dataset part of your package and mine would be sensible? Having it as a separate package makes it easier on researchers that want to adopt only part of the "ecosystem".
My next planned step is to implement some of the recent, most influential RUL UDA approaches and benchmark them (I already have some from my last publication). I'm mainly trying to find a benchmarking modality that makes the approaches comparable, e.g. same backbone network, same data split, etc. You already have some supervised methods in your package which would provide a suitable baseline, but as I see, they are all in tensorflow. I work mainly with pytorch which would make contributing here much harder for me.
Are you interested in extending your package for UDA and SSL or do you think it makes the scope too large?


chore: add pylint rule for SQL importing (SIP-117)

SUMMARY

Pylint rule to prevent Superset from importing SQL parsing libraries outside of superset/sql_parse.py. Should be merged once https://github.com/apache/superset/issues/26786 has been completed.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

$ pylint --reports=no --score=no --disable=all --enable=C9999 superset/db_engine_specs/base.py
************* Module superset.db_engine_specs.base
superset/db_engine_specs/base.py:38:0: C9999: Disallowed SQL parsing import used (disallowed-import)
$ pylint --reports=no --score=no --disable=all --enable=C9999 superset/sql_parse.py
$

ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

Thanks for adding this @betodealmeida. As part of SIP-99 I was hoping to do something similar to prevent the use of db.session.commit() or db.session.rollback() commands given these will be handled via SQLAlchemy's context manager.

Love it! ❤

I love that I can't merge this PR because of the rule it adds. 😆
I hope to be able to merge this soon...

Is this mergeable now? Closing/reopening to kick-start CI, though it probably needs a rebase.


Unable to Run Docker Container

I pulled down the michaelmior/jsonoid-discovery:latest image today and it is not working as expected. I am aware that this might be because I'm trying to run it on a Macbook with an M2 chip. I have been able to run other amd64 images.
Image ID: a4f4c6137331
Digest: sha256:f911fda8d977eccdb64e206126e01fc1060539b23b8181b396fe6f707a6fec22
Created: 6 days ago (as of March 13, 2024)
When I run the docker container as described in the README, it hangs forever. Even just running the --help hangs forever.
I'm running a command like: docker run --rm -i --platform linux/amd64 michaelmior/jsonoid-discovery -h
If I use the Docker terminal to modify the /opt/docker/bin/discovery-schema file and update the first line of the usage function like:
usage() {
-   cat <<EOM
+   cat <<'EOM'

Then I am able to run ./bin/discovery-schema -h and see the usage output from within the docker container's terminal.
Notably, if I edit that same file and add an echo command immediately after the "Main script" comment, I do not ever see the log and it continues to hang forever.

I got it working! It looks like some Docker update turned off the Rosetta setting unexpectedly.
Thanks for a very cool tool!

Whoops. Sorry I missed this issue earlier. Glad this is working for you!


Created HF Repository class for model hub

I created a Python class for working with HuggingFace Hub Repository. I wasn´t sure where I should add it, here or at the transformers repository.
This class is to provide an interface to easily upload models to the Hugging Face Hub. It handles

configure git user
installing git-lfs in the repository
cloning the remote repository or if the repository is an existing directory it adds the remote origin
adding files to git lfs tracking
commits and push files
can create a model card

Usage Example
import os
from transformers.hf_api import HfApi
from huggingface.HfRepository import HfRepository
import getpass

username = input("username: ")
password = getpass.getpass("password: ")
huggingface_token = HfApi().login(username, password)

Create Repository for model
repo_name="sagemaker-test-123"
repo_url = HfApi().create_repo(token=huggingface_token,name=repo_name)

Initialize HF Repository API, commit and push files to repository
model_dir = "./model/huggingface-sdk-extension-2021-01-06-16-38-17-142"
model_repo = HfRepository(repo_url=repo_url,huggingface_token=huggingface_token,model_dir=model_dir)

model_repo.init_new_repository()

model_repo.create_model_card(dataset="imdb",
                             model_id=huggingface_estimator.latest_training_job.name,
                             hyperparameters=huggingface_estimator.hyperparameters(),
                             eval_results={"nothing":'logged'})

model_repo.commit_files_and_push_to_hub()

For future reference, here's a related initial draft of implementation: https://github.com/philschmid/sagemaker-sdk-huggingface/pull/1/files

For future reference, here's a related initial draft of implementation: https://github.com/philschmid/sagemaker-sdk-huggingface/pull/1/files

HfRepostiory.py => HfRepository.py? :)

HfRepostiory.py => HfRepository.py? :)

I had time today to refactor the HfRepository class. I removed the model_card for now and have made both the huggingface_token and the git user and git email optional.
The adjusted Usage Example now looks like that.
Usage Example
import os
from transformers.hf_api import HfApi
from src.huggingface_hub.HfRepository import HfRepository
import getpass

username = input("username: ")
password = getpass.getpass("password: ")
huggingface_token = HfApi().login(username, password)

Create Repository for model
repo_name="sagemaker-test-123"
repo_url = HfApi().create_repo(token=huggingface_token,name=repo_name)

Use HfRepository
model_dir = "./model/huggingface-sdk-extension-2021-01-06-16-38-17-142"

hf_repo = HfRepository(repo_url=repo_url,model_dir=model_dir)

model_repo.push_to_hub()

I created docstrings for all the methods and I am going to start writing unittest asap.
I am still not sure where we should include the functionality of HfRepositry. If it makes sense to create separate class for it or include into hf_api.

I've changed the branch target to be able to run GitHub Actions on this PR (from a fork it's not possible to push a pre-release to PyPI for instance)

Also rebased on master (main actually) and force-pushed to get current codebase


BUG: add master  error

Sealos Version
4.2.0
How to reproduce the bug?
sealos add --masters
What is the expected behavior?
add success
What do you see instead?
can't apply rootfs type images and version  not [v1beta1 v1beta2]
Operating environment
- Kubernetes version: 1.25.7

Additional information
No response

The mirror version is wrong. Please download the mirror corresponding to the version.

So how do I solve

@cuisongliu

kubernetes:v1.24.0-4.2.0

info new cluster version v1.24.0 behind the current version v1.25.7

@cuisongliu Can only be reset？


Leading forward slashes (//) in npmrc file needed to be removed to access package feed

I followed the steps on the page however I found that I had to delete the leading forward slashes in the npmrc file for it to work. I'm not 100% sure so please feel free to correct me if the leading slashes do belong there
so instead of
; begin auth token
//pkgs.dev.azure.com/<yourOrganization>/_packaging/<yourFeed>/npm/registry/:username=[ANY_VALUE_BUT_NOT_AN_EMPTY_STRING]
//pkgs.dev.azure.com/<yourOrganization>/_packaging/<yourFeed>/npm/registry/:_password=[BASE64_ENCODED_PERSONAL_ACCESS_TOKEN]
//pkgs.dev.azure.com/<yourOrganization>/_packaging/<yourFeed>/npm/registry/:email=npm requires email to be set but doesn't use the value
//pkgs.dev.azure.com/<yourOrganization>/_packaging/<yourFeed>/npm/:username=[ANY_VALUE_BUT_NOT_AN_EMPTY_STRING]
//pkgs.dev.azure.com/<yourOrganization>/_packaging/<yourFeed>/npm/:_password=[BASE64_ENCODED_PERSONAL_ACCESS_TOKEN]
//pkgs.dev.azure.com/<yourOrganization>/_packaging/<yourFeed>/npm/:email=npm requires email to be set but doesn't use the value
; end auth token

it needed to be
; begin auth token
pkgs.dev.azure.com/<yourOrganization>/_packaging/<yourFeed>/npm/registry/:username=[ANY_VALUE_BUT_NOT_AN_EMPTY_STRING]
pkgs.dev.azure.com/<yourOrganization>/_packaging/<yourFeed>/npm/registry/:_password=[BASE64_ENCODED_PERSONAL_ACCESS_TOKEN]
pkgs.dev.azure.com/<yourOrganization>/_packaging/<yourFeed>/npm/registry/:email=npm requires email to be set but doesn't use the value
pkgs.dev.azure.com/<yourOrganization>/_packaging/<yourFeed>/npm/:username=[ANY_VALUE_BUT_NOT_AN_EMPTY_STRING]
pkgs.dev.azure.com/<yourOrganization>/_packaging/<yourFeed>/npm/:_password=[BASE64_ENCODED_PERSONAL_ACCESS_TOKEN]
pkgs.dev.azure.com/<yourOrganization>/_packaging/<yourFeed>/npm/:email=npm requires email to be set but doesn't use the value
; end auth token

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

ID: 4a25fb7f-d07f-f92e-55db-a44d41bd6e51
Version Independent ID: 63828151-7f31-7abc-7a52-c4538815e368
Content: Set up your client's npmrc - Azure Artifacts
Content Source: docs/artifacts/npm/npmrc.md
Product: devops
Technology: devops-artifacts
GitHub Login: @ramiMSFT
Microsoft Alias: rabououn

@thoo1 Thanks for your question. We'll look into whether we need to update the article. In the meantime, consider these resources:

Azure DevOps Services
Azure DevOps Support Bot
Azure DevOps on Stack Overflow

@thoo1 Thank you for your feedback!


add me as an owner of the symbol graph tool

I've become the Apple contact for the symbol graph tool, so i'd like to be pinged for things that unexpectedly change it.

@swift-ci Please smoke test

@swift-ci Please smoke test


chore(apps/prod/tekton/setup): bump tekton operator to v0.63.0

With components updated:

dashboard "v0.31.0"
pipeline "v0.42.0"
chains "v0.14.0"

Signed-off-by: wuhuizuo<EMAIL_ADDRESS>

/approve


Why doesn't it work for me?

Hello,
I have spend around 80$ on trying to submit +50 transactions for a multi tier crowdsale.
Without success.
So now I was trying a 1 tier crowdsale with 13 transactions to submit.
The first transaction was submitted successfully but the second one is awaiting with an estimated confirmation time of more than 1 days, with a fee of 1.31$.
Are my fees to low?
Would somebody be willing to do the crowdsale for me if I send eth for the fees?
Thanks for helping.
rgds
walt

Recommended gas price is high (61Gwei) in Main Ethereum network now. You can check it here https://ethgasstation.info/. Be sure, that you are using the recommended gas price for your transactions. Token Wizard chooses the slowest (and cheapest at the same time) option of gas price to send transaction. Gas price is configured at step 3 of Token Wizard:

Hi Victor, thank you very much for the advice.
I have now found out the 2 mistakes I made.
For those new to Token Wizard, please do not make the same ones;
1)Do NOT refresh your page untill the whole process is finished.
If you do you will basically lose whatever money you've put in.

If you submit the first contract for let's say $0.6, do not be surprised to see the fee popping to 8$ to be able to submit the second one. This all depends on the complexity of the contracts. Some are more complex than others, so the fees go up and down. The fees for submitting the third contract could go down again to 1$, don't worry. Probably the indication of total estimated costs at the beginning of the process is a good one to watch.

Thanks again Victor for your prompt input.
And may the force be with POA Network.
Rgds,
w


Pan map across date line

May be some of a challenge with the complex grid calculations, but panning across the international dateline would be helpful. Especially in the Pacific and places like Fiji where islands are split across the date line.

@danielfdsilva or others, thoughts on how we could solve this?

We could solve that part by removing the pan bounds. A trickier thing would be to draw the images across the dateline. Not sure how to do that from the top of my head. Should be doable, but we'd have to consider performance impact, if any.

We could solve that part by removing the pan bounds.

Can we test this and see how it feels?

A trickier thing would be to draw the images across the dateline.

You mean drawing the thumbnails across the dateline? I'm not sure how many potential images at the moment will be actually drawn across the dateline. Do you see trickiness with rendering the grid and making it selectable?

@smit1678 It's not trivial to render the features across the date line, because we're using coordinates to check wether a footprint falls in a cell, and after the date line the coordinate values don't match.
I've loosened the bound limits a bit in PR https://github.com/hotosm/oam-browser/pull/192. Could you check if this improves the experience?

👍  Feels good and I think captures a good way to resolve this.
We can revisit the features issue when it comes up but this isn't a problem right now.

Implemented in https://github.com/hotosm/oam-browser/pull/192


Cicero server: remove deprecated calls and directory dependency for data

Issue #563 #565
Changes

Removes old trigger endpoint
Removes CICERO_DATA variable, now unnecessary
Renames PORT environment variable to CICERO_PORT
Document new CICERO_PORT variable and available endpoints in README
Remove obsolete tests for old endpoint

Coverage decreased (-0.1%) to 95.539% when pulling 21472d55fb4c553f3d1b43b8856b49e1f88c78ac on jeromesimeon:fix-cicero-server into b239bd33f0647823dfd7b96476fafb6b2a8aed8c on accordproject:master.


Update error diffusion matrices

Added:

Fan
Shiau–Fan
Shiau–Fan 2

Removed:

False Floyd–Steinberg - unclear who made it and when, clearly a simplification that only gives faster, but very bad results.
Commas at the last row of some matrices - afaik, these shouldn't have been there, revert if I made a mistake.

Changed:

SierraLite - renamed to Sierra-2-4A.
Sierra - renamed to Sierra-3.
SierraTwo - renamed to Sierra-2.
Reordered dither matrices - now alligned per publication date, plus whether they are a modification of the previous matrix.

Reading sources used:
https://community.wolfram.com/groups/-/m/t/1383824
https://momentsingraphics.de/BlueNoise.html
https://surma.dev/things/ditherpunk/
https://tannerhelland.com/2012/12/28/dithering-eleven-algorithms-source-code.html
https://en.wikipedia.org/wiki/Dither
https://www.researchgate.net/figure/Error-diffusion-scheme-for-different-dithering-algorithms-Floyd-Steinberg-a-Jarvis_fig1_347225976
https://www.visgraf.impa.br/Courses/ip00/proj/Dithering1/ordered_dithering.html
https://beyondloom.com/blog/dither.html
https://www.cs.princeton.edu/courses/archive/fall00/cs426/lectures/dither/dither.pdf
http://caca.zoy.org/study/part3.html
https://cs.wellesley.edu/~pmetaxas/ei99.pdf
https://cs.wellesley.edu/~pmetaxas/pdcs99.pdf
https://www.iro.umontreal.ca/~ostrom/varcoeffED/SIGGRAPH01_varcoeffED.pdf
https://web.archive.org/web/20190316064436/http://www.efg2.com/Lab/Library/ImageProcessing/DHALF.TXT
https://core.ac.uk/reader/327118630
https://github.com/robertkist/libdither/blob/main/src/libdither/dither_errordiff_data.h
https://bisqwit.iki.fi/jutut/kuvat/ordered_dither/error_diffusion.txt
https://devlog-martinsh.blogspot.com/2011/03/glsl-8x8-bayer-matrix-dithering.html

Hi, thank you for this @roshavagarga, this is great. I will work on checking locally that everything continues to work as expected.
Would you also like to make the necessary changes to the main dither it code base to enable these changes on the frontend? Namely, removing False floyd steinberg, adding the new ones, renaming/reordering the others, etc? Those changes would happen here: https://github.com/alexharris/ditherit-v2/blob/89f35deb9c620031fab0095934fecde112dc78d1/pages/index.vue#L465
Also, just out of curiosity, what is your interest in cleaning up all of this information?

@alexharris I made the changes you requested, not sure if I missed anything, hopefully not.
Honestly, I was reading up about dithers in relation to another PR request I made and just stumbled on your tool/website by accident and liked the idea, hence I decided to contribute what I'd already spent a fair amount of time reading up on.


0-robot fail to create a service

Issue migrated from https://api.github.com/repos/zero-os/0-robot/issues/260, opened by @islamTaha12
Description
I have a test suite to install/uninstall a DM vms and while I'm running it, 0-robot threw the following error

re-produce steps:

the most easy case is to create a for loop to install/uninstall a vm in range(200)

for _ in range(200):
        data = {
            'nodeId': self.nodeId,
            'disks': [{
                'diskType': disk_type,
                'size': disk_size,
                'mountPoint': '/mnt',
                'filesystem': disk_fs,
                'label': str(uuid.uuid4()).replace('-', '')[:10],
            }],
            'image': 'ubuntu',
            'memory': memory,
            'cpu': cpu,
            'zerotier': {'id': self.zt_network.id, 'ztClient': self.zt_client_instance},
            'configs': [{'path': '/root/.ssh/authorized_keys',
                         'content': self.ssh,
                         'name': 'sshkey'}]
        }

        try:
            self.vmservice = self.robot.services.find_or_create(self.vmtemplate, service_name=self.service_name,
                                                                data=data)
            self.vmservice.schedule_action('install').wait(die=True)
        except Exception as e:
            logging.error(traceback.format_exc())
            return

Env

0-OS 1.4.1
js9: dev
DM: master
0-robot: dev

commented by @zaibon
I did some test that loops and create 500 services without problem. So I don't know if the problem comes from the template or the robot itself.
@islamTaha12 can you post the full stack trace for both the client and the server ? Currently I'm not sure which is the one failing. Could be that we have some bug in the client code that doesn't release file description somehow

*commented by @islamTaha12
@zaibon I'm gonna run it in a tmux and u can access the machine cause the traceback is too long to be posted, client machine in be-ge-3 ssh<EMAIL_ADDRESS>and the host machine is

*commented by @islamTaha12
client side
[Thu12 17:22] - base.py           :209 :service-f8123400-7a58-4782-af1c-377656873653 - ERROR    - error executing action save:
Traceback (most recent call last):
  File "/opt/code/github/zero-os/0-robot/zerorobot/task/task.py", line 79, in execute
    self._result = self._func()
  File "/opt/code/github/zero-os/0-robot/zerorobot/template/base.py", line 182, in save
    'public': self._public,
  File "/opt/code/github/jumpscale/core9/JumpScale9/data/serializers/SerializerBase.py", line 11, in dump
    j.sal.fs.writeFile(filepath, data)
  File "/opt/code/github/jumpscale/core9/JumpScale9/fs/SystemFSDecorators.py", line 155, in wrapper
    return func(*args, **kwargs)
  File "/opt/code/github/jumpscale/core9/JumpScale9/fs/SystemFS.py", line 1215, in writeFile
    fp = open(filename, "wb")
OSError: [Errno 24] Too many open files: '/opt/var/data/zrobot/zrobot_data/github.com/jumpscale/digital_me/vm/f80239ecb2/f8123400-7a58-4782-af1c-377656873653/service.yaml'

[Thu12 17:22] - base.py           :209 :service-e16cdbfc-d26c-49f5-abaf-d5d8a3cc1003 - ERROR    - error executing action save:
Traceback (most recent call last):
  File "/opt/code/github/zero-os/0-robot/zerorobot/task/task.py", line 79, in execute
    self._result = self._func()
  File "/opt/code/github/zero-os/0-robot/zerorobot/template/base.py", line 182, in save
    'public': self._public,
  File "/opt/code/github/jumpscale/core9/JumpScale9/data/serializers/SerializerBase.py", line 11, in dump
    j.sal.fs.writeFile(filepath, data)
  File "/opt/code/github/jumpscale/core9/JumpScale9/fs/SystemFSDecorators.py", line 155, in wrapper
    return func(*args, **kwargs)
  File "/opt/code/github/jumpscale/core9/JumpScale9/fs/SystemFS.py", line 1215, in writeFile
    fp = open(filename, "wb")
OSError: [Errno 24] Too many open files: '/opt/var/data/zrobot/zrobot_data/github.com/jumpscale/digital_me/vm/7ce2df6f58/e16cdbfc-d26c-49f5-abaf-d5d8a3cc1003/service.yaml'

[Thu12 17:22] - vm.py             :57  :service-e16cdbfc-d26c-49f5-abaf-d5d8a3cc1003 - INFO     - Monitor vm 7ce2df6f58
[Thu12 17:22] - base.py           :209 :service-e16cdbfc-d26c-49f5-abaf-d5d8a3cc1003 - ERROR    - error executing action _monitor:
Traceback (most recent call last):
  File "/opt/code/github/zero-os/0-robot/zerorobot/template/state.py", line 78, in check
    state = self.get(category, tag)
  File "/opt/code/github/zero-os/0-robot/zerorobot/template/state.py", line 57, in get
    raise StateCategoryNotExistsError("category %s does not exist" % category)
zerorobot.template.state.StateCategoryNotExistsError: category actions does not exist

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/code/github/zero-os/0-robot/zerorobot/task/task.py", line 79, in execute
    self._result = self._func()
  File "/opt/code/github/jumpscale/digital_me/templates/vm/vm.py", line 58, in _monitor
    self.state.check('actions', 'install', 'ok')
  File "/opt/code/github/zero-os/0-robot/zerorobot/template/state.py", line 85, in check
    raise StateCheckError(err_msg)
zerorobot.template.state.StateCheckError: check for state actions:install:ok failed

[Thu12 17:22] - base.py           :209 :service-aa529441-e183-4907-b5e6-df20c6920bd7 - ERROR    - error executing action save:
Traceback (most recent call last):
  File "/opt/code/github/zero-os/0-robot/zerorobot/task/task.py", line 79, in execute
    self._result = self._func()
  File "/opt/code/github/zero-os/0-robot/zerorobot/template/base.py", line 182, in save
    'public': self._public,
  File "/opt/code/github/jumpscale/core9/JumpScale9/data/serializers/SerializerBase.py", line 11, in dump
    j.sal.fs.writeFile(filepath, data)
  File "/opt/code/github/jumpscale/core9/JumpScale9/fs/SystemFSDecorators.py", line 155, in wrapper
    return func(*args, **kwargs)
  File "/opt/code/github/jumpscale/core9/JumpScale9/fs/SystemFS.py", line 1215, in writeFile
    fp = open(filename, "wb")
OSError: [Errno 24] Too many open files: '/opt/var/data/zrobot/zrobot_data/github.com/jumpscale/digital_me/vm/1c8279ebb7/aa529441-e183-4907-b5e6-df20c6920bd7/service.yaml'

    'public': self._public,
  File "/opt/code/github/jumpscale/core9/JumpScale9/data/serializers/SerializerBase.py", line 11, in dump
    j.sal.fs.writeFile(filepath, data)
  File "/opt/code/github/jumpscale/core9/JumpScale9/fs/SystemFSDecorators.py", line 155, in wrapper
    return func(*args, **kwargs)
  File "/opt/code/github/jumpscale/core9/JumpScale9/fs/SystemFS.py", line 1215, in writeFile
    fp = open(filename, "wb")
OSError: [Errno 24] Too many open files: '/opt/var/data/zrobot/zrobot_data/github.com/jumpscale/digital_me/vm/66fb43b24b/fd836490-6c6f-4670-916c-be291f581eb7/service.yaml'

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/gevent/baseserver.py", line 199, in _do_read
  File "/usr/local/lib/python3.5/dist-packages/gevent/server.py", line 164, in do_read
OSError: [Errno 24] Too many open files
2018-07-12T17:25:33Z <WSGIServer at 0x7fd6770435f8 fileno=11 address=('::', 6600, 0, 0)> failed with OSError

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/gevent/baseserver.py", line 199, in _do_read
  File "/usr/local/lib/python3.5/dist-packages/gevent/server.py", line 164, in do_read
OSError: [Errno 24] Too many open files
2018-07-12T17:25:34Z <WSGIServer at 0x7fd6770435f8 fileno=11 address=('::', 6600, 0, 0)> failed with OSError

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/gevent/baseserver.py", line 199, in _do_read
  File "/usr/local/lib/python3.5/dist-packages/gevent/server.py", line 164, in do_read
OSError: [Errno 24] Too many open files
2018-07-12T17:25:36Z <WSGIServer at 0x7fd6770435f8 fileno=11 address=('::', 6600, 0, 0)> failed with OSError

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/gevent/baseserver.py", line 199, in _do_read
  File "/usr/local/lib/python3.5/dist-packages/gevent/server.py", line 164, in do_read
OSError: [Errno 24] Too many open files
2018-07-12T17:25:37Z <WSGIServer at 0x7fd6770435f8 fileno=11 address=('::', 6600, 0, 0)> failed with OSError

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/gevent/baseserver.py", line 199, in _do_read
  File "/usr/local/lib/python3.5/dist-packages/gevent/server.py", line 164, in do_read
OSError: [Errno 24] Too many open files
2018-07-12T17:25:38Z <WSGIServer at 0x7fd6770435f8 fileno=11 address=('::', 6600, 0, 0)> failed with OSError

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/gevent/baseserver.py", line 199, in _do_read
  File "/usr/local/lib/python3.5/dist-packages/gevent/server.py", line 164, in do_read
OSError: [Errno 24] Too many open files
2018-07-12T17:25:39Z <WSGIServer at 0x7fd6770435f8 fileno=11 address=('::', 6600, 0, 0)> failed with OSError

```*

*commented by @islamTaha12
update:
When I tried to install a VM manually, The request is hanging forever.

never seen the issue anymore I'll close for now