Support open action

Close #34

Hurray! Works for me. At some point a way to make these configurable will be in order, but I can hack that into my fork for now and the actions certainly work. I've ditched the fzf-tmux setup I had am using this as my primary dispatcher now (this branch).

I have added a limited configuration item g:clap_open_action, see if that works for you.

As a matter of fact it does! Awesome sauce.
The last thing I would add to this PR is checking off the TODO list entry in the README!


Start logger service with transport

When the transport is started, we should add the logger service to it (created in https://github.com/praekelt/junebug/pull/66) so that it can capture the logs of the worker.

Ready for review.

Changes made. Ready for review again.

Left some minor questions, but generally looks good!

I have responded and made changes to all of the comments. Ready for review again.

Other than the config patching question, everything looks good.

Config patching addressed. Ready for a (hopefully) final review.

:+1: :maple_leaf:


Different infer report between two runs with same code

Please make sure your issue is not addressed in the FAQ.
Please include the following information:

[1.1.0 ] The version of infer from infer --version.
[ debian-11] Your operating system and version, for example "Debian 9", "MacOS High Sierra", whether you are using Docker, etc.
[ infer  --keep-going --no-default-checkers --biabduction --starvation -j 4 --changed-files-index xxx -parameters xxx ] Which command you ran, for example infer -- make.
[no need] The full output in a paste, for instance a gist.

I hava a java file name Example.java,  there is a normal NULL_DEREFERENCE issue in Example.java. But the strange thing is that if you run the same code multiple times and run the infer check, there is only a small probability that this problem can be scanned.

we found if one thread is used to run infer，it works all right.
But it happens, when more than one thread are used.


how I can use that?

how I can use that?
could you make a video to show it?
thx

With all due respect, if you don't know how to use it, you probably don't need it. I doubt any of us two developers have time to do a video, but I'll keep this issue open for a bit to see if someone wants to volunteer. Cheers.

thank you so much, I've got to know just now.
Tiffany in Christ
2016-02-04 13:13 GMT-08:00 skjorn<EMAIL_ADDRESS>
With all due respect, if you don't know how to use it, you probably don't
need it. I doubt any of us two developers have time to do a video, but I'll
keep this issue open for a bit to see if someone wants to volunteer. Cheers.
—
Reply to this email directly or view it on GitHub
https://github.com/jwa107/Photoshop-Export-Layers-to-Files-Fast/issues/77#issuecomment-180053452
.


bug(input and click) to fix

When input and focus simultaneously, it will happened that the focus line will replace the others line

what ? any one here?

@kangax
When input and focus simultaneously, it will happened that the focus line will replace the others line.
Can you please have a look at it?

Hey @seekforwings, not sure why I was summoned but I'm sure someone from the core team will assist you eventually. For faster resolution, please make a minimal reproducible test case.

@seekforwings - thanks for opening this issue; as kangax mentioned, could you provide a minimal reproducible test case? it's unclear from your task description what exactly you're running into

Well, here is how I debug by adding some console.log:
at the very beginning:

this is the normal action:

this is the specific action which cause the bug, I think:

By the way, the demo on your website(http://facebook.github.io/draft-js/) also has the same problem.

Well, the picture of the specific action has to be modified:

Sorry for making some mistakes!

@kangax @davidchang could you please have a look at the issue again?

@kangax @davidchang Well, how is it now?

I can confirm the bug, here it is in action:

I'm afraid I don't have time to look at it right now though.
@seekforwings While it is helpful with bug reports (especially with the images you've provided), I don't think it's very helpful to ping people like that. I'm sure someone will have a look at this when they've got the time for it! Maybe you could help locating the problem in the mean time?

Well, I would be glad to fix it, but I am kind of busy recently. I will try if I have got enough time.

Thanks for documenting this bug @seekforwings , and thanks @tobiasandersen for confirming it.
At this time maintainers are wrapping up work on other bug fixes. We would welcome a PR to address this.
As a side note, I don't think 'kangax' is involved in this project at this time so no need to tag them.


Fix find_end_of_wal for wal records longer than WAL segment

dup of https://github.com/zenithdb/zenith/issues/544


Various tests

:tada: This PR is included in version 0.1.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


[bug] o200k_base doesn't work with the package.

Hi, I've been using sublime text 4 to format my prompts and your project really helps a lot! However the new o200k_base encoder seems to have some problem with the package. Modifying Preferences.sublime-settings or Package Control.sublime-settings by adding "model_name": "gpt-4o", "tokenizer_encoding": "o200k_base", seems to crash the package (the count results don't show up in the editor). Am I miconfiguring the package to change the encoder or o200k_base is not supported yet? Thank you for your help.

Can't reproduce this. Is there some errors appearing in ST console about this?

I modified the Preferences.sublime-settings file by adding "model_name": "gpt-4o",. After restarting ST, I selected some text and used the Tokens Count command from the command palette, then no token count text appeared, and the console output the following error:
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/Lib/python38/sublime_plugin.py", line 1693, in run_
    return self.run(edit)
  File "/Users/12345/Library/Application Support/Sublime Text/Installed Packages/TokensCounter.sublime-package/tokens_counter.py", line 34, in run
  File "/Users/12345/Library/Application Support/Sublime Text/Installed Packages/TokensCounter.sublime-package/tokens_counter.py", line 88, in close_phantom
AttributeError: 'TokensCountCommand' object has no attribute 'phantom_set'

It’s worth mentioning that the plugin worked fine initially (with the default cl100k_base tokenizer).

Further testing shows adding "tokenizer_encoding": "o200k_base" to the configuration allows the Tokens Count command to display token count information. But it seems the tokenizer being used is still cl100k_base, as the results differ from what I would expect with o200k_base (especially noticeable with non-English text).
The console output appears to be truncated and shows:
/Users/12345/Library/Application Support/Sublime Text/Lib/python38/requests/__init__.py:86: RequestsDependencyWarning: Unable to find acceptable character detection dependency (chardet or charset_normalizer).
  warnings.warn(

I modified the Preferences.sublime-settings file by adding "model_name": "gpt-4o",.

Also I missed that bit, you shall not to change Preferences.sublime-settings directly, you should modify only User.sublime-settings for general sublime set up and the separate plugin settings files for each plugin. Please see the picture attached.

Thank you for your help! I'll try modifying the settings as you suggested.😀


Add install instructions

i.e. Add how to copy the binary to /usr/local/bin and possible a simple shell script to do this in the release zip (once I get to release!)

Basic cp to usr/local instructions in README.md now, will do for the time being.


[Frequency Message Store] Validate message against schema on add_message

Blocked #67
As a consumer of messages on the chain, I don't want to ever read a message that doesn't work with the declared schema.
We need to validate schema when adding a message
Use SchemaValidity struct to store schema validity state.
Acceptance Criteria:

[ ] use schema pallet via loosely coupling
[ ] validate schema in add extrinsic and reject if it fails
[ ] modify tests
[ ] modify benchmarks
[ ] generate new spec

Archive


Run Koala, review docs

@kasra-hosseini thanks for adding the new badges and spot the typo in Python. Is still in progress? If not, LGTM!

@acocac Thanks for the quick review! Oliver, Ed and I are reviewing the notebook (and some parts of the repo). I will write you as soon as we are done.

@acocac I made some minor changes in REAME, could you please take a look? We also moved pretrained_imagenet_scivision_example.ipynb  to ./examples dir.

@kasra-hosseini the minor changes are ok for me. It would be helpful for a future PR to add further sections to README e.g. how to contribute and get involved. We can discuss this in one of the co-working sessions.


chore(main): release library 2.2.0

:robot: I have created a release beep boop
2.2.0 (2024-11-03)
Features

check that neovim is available before starting the server (#107) (bcc817f)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

library-v2.2.0
:sunflower:


Adds undocumented collection capped size envs

@matti
Merge conflict from the PORT PR

wat do

Resolved using the GitHub UI.


Does this support iOS 8 & iOS 9?

Does this support iOS 8 & iOS 9?

@wootwoot1234 I think so.
https://developer.apple.com/documentation/messageui/mfmailcomposeviewcontroller
It seems MFMailComposeController supports 3.0+


Simplify GitSource proxy settings

The GitSource type has a few fields related to proxying requests:
type GitSource struct {
...
	HTTPProxy string  `json:"httpProxy,omitempty"`
	HTTPSProxy string `json:"httpsProxy,omitempty"`
	// NoProxy can be used to specify domains for which no proxying should be performed. Optional.
	NoProxy string.   `json:"noProxy,omitempty"`
...
}

(ref)
Would it make sense to communicate this information in one field, Proxy string json:"proxy"`?
At the time people are defining the source, they would know whether it's an HTTP or HTTPS repo, and I don't know why they'd want to specify "don't proxy this domain" -- is that the default?
These were added long long ago, alongside a lot of other stuff, so I don't know if they were added with a particular purpose in mind. @sbose78 might know.
With a single Proxy field, we could generate HTTPS_PROXY=${proxy} HTTP_PROXY=${proxy} git clone ${url} if it's set, and just git clone ${url} otherwise, unless there's some semantics to Git proxying I'm not understanding (entirely possible!)
(This isn't a high priority but it might make sense to try to do this before v1beta1 and definitely before v1)

/kind cleanup
/priority awaiting-more-evidence

/kind api-change

Upon further review, these fields don't seem to be hooked up to anything, and should be safe to remove. If anybody was setting them before, they weren't doing anything. I'll send a PR to remove them.
/assign

Yeah they were added long ago with a hope that they would be utilised soon enough. It's been close to a year, we may removed these. And bring them in with an enhancement proposal if needed.

I'm good with using a single field later on. 👍


initial attempt at alpine apk files

fixes: https://github.com/adoptium/installer/issues/220

@gdams Thank you for your contribution. Many of us using alpine with be so grateful.
Out of curiosity, will the temurin jre/jdk alpine apk packages be hosted by Adoptium or by alpine?
Is the plan to be able to various temurin jre/jdk with different versions of alpine?

@lfvjimisola the apk files will be pushed to https://packages.adoptium.net (where we host our DEB/RPM files too)
I've been experimenting with pushing some apk files up if you want to have a go with them and provide some feedback?
add the public key:
wget -O /etc/apk/keys/adoptium.rsa.pub https://packages.adoptium.net/artifactory/api/security/keypair/public/repositories/apk

add the repo:
echo 'https://packages.adoptium.net/artifactory/apk/alpine/main' >> /etc/apk/repositories

install JDK (replace  with 17/11/8 etc)
apk update # if needed
apk add temurin-<version>-jdk

One problem I've observed is that we don't seem to be able to install multiple versions on the same machine:
/ # apk add temurin-17-jdk
WARNING: This apk-tools is OLD! Some packages might not function properly.
ERROR: unable to select packages:
  temurin-17-jdk-<IP_ADDRESS>_p1-r0:
    conflicts: temurin-19-jdk-19.0.0_p36-r0[so:libattach.so=0] temurin-19-jdk-19.0.0_p36-r0[so:libawt.so=0]
               temurin-19-jdk-19.0.0_p36-r0[so:libawt_headless.so=0] temurin-19-jdk-19.0.0_p36-r0[so:libdt_socket.so=0]
               temurin-19-jdk-19.0.0_p36-r0[so:libextnet.so=0] temurin-19-jdk-19.0.0_p36-r0[so:libfontmanager.so=0]
               temurin-19-jdk-19.0.0_p36-r0[so:libinstrument.so=0] temurin-19-jdk-19.0.0_p36-r0[so:libj2gss.so=0]
               temurin-19-jdk-19.0.0_p36-r0[so:libj2pcsc.so=0] temurin-19-jdk-19.0.0_p36-r0[so:libj2pkcs11.so=0]
               temurin-19-jdk-19.0.0_p36-r0[so:libjaas.so=0] temurin-19-jdk-19.0.0_p36-r0[so:libjava.so=0]
               temurin-19-jdk-19.0.0_p36-r0[so:libjavajpeg.so=0] temurin-19-jdk-19.0.0_p36-r0[so:libjawt.so=0]
               temurin-19-jdk-19.0.0_p36-r0[so:libjdwp.so=0] temurin-19-jdk-19.0.0_p36-r0[so:libjimage.so=0]
               temurin-19-jdk-19.0.0_p36-r0[so:libjli.so=0] temurin-19-jdk-19.0.0_p36-r0[so:libjsig.so=0]
               temurin-19-jdk-19.0.0_p36-r0[so:libjsound.so=0] temurin-19-jdk-19.0.0_p36-r0[so:libjsvml.so=0]
               temurin-19-jdk-19.0.0_p36-r0[so:libjvm.so=0] temurin-19-jdk-19.0.0_p36-r0[so:liblcms.so=0]
               temurin-19-jdk-19.0.0_p36-r0[so:libmanagement.so=0] temurin-19-jdk-19.0.0_p36-r0[so:libmanagement_agent.so=0]
               temurin-19-jdk-19.0.0_p36-r0[so:libmanagement_ext.so=0] temurin-19-jdk-19.0.0_p36-r0[so:libmlib_image.so=0]
               temurin-19-jdk-19.0.0_p36-r0[so:libnet.so=0] temurin-19-jdk-19.0.0_p36-r0[so:libnio.so=0]
               temurin-19-jdk-19.0.0_p36-r0[so:libprefs.so=0] temurin-19-jdk-19.0.0_p36-r0[so:librmi.so=0]
               temurin-19-jdk-19.0.0_p36-r0[so:libsaproc.so=0] temurin-19-jdk-19.0.0_p36-r0[so:libsctp.so=0]
               temurin-19-jdk-19.0.0_p36-r0[so:libsyslookup.so=0] temurin-19-jdk-19.0.0_p36-r0[so:libverify.so=0]
               temurin-19-jdk-19.0.0_p36-r0[so:libzip.so=0]
    satisfies: world[temurin-17-jdk]
  temurin-19-jdk-19.0.0_p36-r0:
    conflicts: temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libattach.so=0] temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libawt.so=0]
               temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libawt_headless.so=0] temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libdt_socket.so=0]
               temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libextnet.so=0] temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libfontmanager.so=0]
               temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libinstrument.so=0] temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libj2gss.so=0]
               temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libj2pcsc.so=0] temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libj2pkcs11.so=0]
               temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libjaas.so=0] temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libjava.so=0]
               temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libjavajpeg.so=0] temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libjawt.so=0]
               temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libjdwp.so=0] temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libjimage.so=0]
               temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libjli.so=0] temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libjsig.so=0]
               temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libjsound.so=0] temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libjsvml.so=0]
               temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libjvm.so=0] temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:liblcms.so=0]
               temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libmanagement.so=0] temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libmanagement_agent.so=0]
               temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libmanagement_ext.so=0] temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libmlib_image.so=0]
               temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libnet.so=0] temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libnio.so=0]
               temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libprefs.so=0] temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:librmi.so=0]
               temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libsaproc.so=0] temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libsctp.so=0]
               temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libsyslookup.so=0] temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libverify.so=0]
               temurin-17-jdk-<IP_ADDRESS>_p1-r0[so:libzip.so=0]
    satisfies: world[temurin-19-jdk]

I'm not massively familiar with the APKBUILD syntax so I'll have to do some reading up to understand what's going wrong here.

asked the question at https://gitlab.alpinelinux.org/alpine/abuild/-/issues/10082

One problem I've observed is that we don't seem to be able to install multiple versions on the same machine:

This is now fixed

in all alpine's logs: ERROR: temurin-X-jdk*: libasound.so.2: path not found is the depedency track failing?

in all alpine's logs: ERROR: temurin-X-jdk*: libasound.so.2: path not found is the depedency track failing?

Hmm yea looks like I need to add alsa-lib as a dependency.

@zdtsw I've fixed that error, there is still a warning about libawt.so for JDK8u but that's bundled as part of the JDK so likely not a concern

Would it be better to move HelloWorld.java, TestCryptoLevel.java and TestECDSA.java to PackageTest
folder instead of packaging folder as those are tests? And feels like there is no need to keep one copy for each version?

Would it be better to move HelloWorld.java, TestCryptoLevel.java and TestECDSA.java to PackageTest folder instead of packaging folder as those are tests? And feels like there is no need to keep one copy for each version?

i think the difference for these are they are testing for different purposes.
the HelloWolrd and so, are part of the apkbuild check() to use the just-built-jdk to compile java code and run it as some basic sanity checks.
the others we are running like rpm test are using testcontainer which is running a bunch of java testcases  to test if the final package. so the jdk for those tests are not the ones we intended to release.

test code freeze

gdams

We are using it for one of our containers that is not used in production yet. It works well from what we have seen so far.
Any idea, on when these apk will be added to the official repo.
Thanks a lot for your work!

/thaw

@gdams It no longer works for us with the steps below. Has there been any chances now that your contribution has closed the issue?
RUN curl https://packages.adoptium.net/artifactory/api/security/keypair/public/repositories/apk -o /etc/apk/keys/adoptium.rsa.pub \
    echo 'https://packages.adoptium.net/artifactory/apk/alpine/main' >> /etc/apk/repositories \
    apk update && apk add temurin-17-jdk


Can not install and launch app after build

[✓] Flutter (Channel stable, v1.7.8+hotfix.4, on Mac OS X 10.14.6 18G95, locale
zh-Hans-CN)
• Flutter version 1.7.8+hotfix.4 at /Users/zhouweidong/flutter/flutter
• Framework revision 20e59316b8 (8 周前), 2019-07-18 20:04:33 -0700
• Engine revision fee001c93f
• Dart version 2.4.0
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/zhouweidong/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling
support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1248-b01)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.3, Build version 10G8
• CocoaPods version 1.7.4
[✓] iOS tools - develop for iOS devices
• ios-deploy 1.9.4
[✓] Android Studio (version 3.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 34.0.1
• Dart plugin version 182.5215
• Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1248-b01)
[!] IntelliJ IDEA Ultimate Edition (version 2017.2.1)
• IntelliJ at /Applications/IntelliJ IDEA.app
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.dev/intellij-setup/#installing-the-plugins
[✓] Connected device (2 available)
• Pixel     • HT69K0201716                         • android-arm64 • Android
10 (API 29)
• iPhone Xʀ • 803F3016-F5D4-44C6-89EA-96BBFAFB9289 • ios           •
com.apple.CoreSimulator.SimRuntime.iOS-12-4 (simulator)
Here is message after "flutter doctor -v"
Now can not install and launch app after build
here is error message:
Launching lib/main.dart on iPhone8 in debug mode...
Found saved certificate choice "iPhone Developer: Huaiqing Jia (LWV6L4VUQ9)". To clear, use "flutter config".
Signing iOS app for device deployment using developer identity: "iPhone Developer: Huaiqing Jia (LWV6L4VUQ9)"
Running Xcode build...
Xcode build done.                                           14.8s
Installing and launching...
Unhandled exception:
Bad state: Future already completed
#0      _AsyncCompleter.complete (dart:async/future_impl.dart:39:31)
#1      _NativeSocket.startConnect..connectNext. (dart:io-patch/socket_patch.dart:521:23)
#2      _NativeSocket.issueWriteEvent.issue (dart:io-patch/socket_patch.dart:874:14)
#3      _NativeSocket.issueWriteEvent (dart:io-patch/socket_patch.dart:881:12)
#4      _NativeSocket.multiplex (dart:io-patch/socket_patch.dart:902:11)
#5      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)

it is a network issues.
https://github.com/flutter/flutter/issues/27450


fix(theme-utils): update neutral related tokens based on latest Figma iteration

TASK: #1428
Description, Motivation and Context
Types of changes

[ ] 🛠 Tool
[x] 🪲 Bug fix (non-breaking change which fixes an issue)
[ ] ✨ New feature (non-breaking change which adds functionality)
[ ] 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] 🧾 Documentation
[ ] 📷 Demo
[ ] 🧪 Test
[ ] 🧠 Refactor
[ ] 💄 Styles

Do you know if it also concerns the dark theme ?


Mount host /etc/ca-certificates

OSes like Arch Linux put certificate files in /etc/ca-certificates, and symlink to those files from /etc/ssl and /etc/pki.
This is in the same spirit as #116.

@RobinMcCorkell I had to spin up an Arch box in Vagrant to verify. So this should enable SUC outbound comms on Arch systems by making the /etc/ssl/cert.pem symlink dereferencable for the go runtime. Is that right?
I do worry that the default manifest now has side-effects for just about every system ... for the sake of making it Just Work :tm:  on the very same range of systems. I guess there are worse problems to have.

Yep, exactly that.
I wonder if mounting SSL certs into the container is the right approach? Typically when I've built container images I make sure to bundle SSL certs into the image itself (if the app needs to make outbound connections that is). In fact, I believe this is the approach taken by Google's distroless base image.

I wonder if mounting SSL certs into the container is the right approach? Typically when I've built container images I make sure to bundle SSL certs into the image itself (if the app needs to make outbound connections that is). In fact, I believe this is the approach taken by Google's distroless base image.

A worthy suggestion.

Agree with @RobinMcCorkell, mouting SSL certifications into container is not the approach. In Flatcar Container Linux, files under /etc/ssl/certs are all symbol links to /usr/share/ca-certificates


fix delete and import for redundant l2 connections

Description:
Field RedundantUUID was used to check if there was a secondary connection. This field is not been returned for new connections anymore. This field can be deleted from the schema but then it will be required a full scan for all connections in the read function to ensure the terraform import command works also for redundant connections.
From terraform import function docs:

This function requires the Read function to be able to refresh the entire resource with d.Id() ONLY

Without redundantUUID field returned from the API there is no way to know if it is a redundant connection just with the primary connection ID, since all connections both single and redundant have a redundancyGroup. Therefore it will be needed a full scan in the read function to search for a connection with same RedundancyGroup.
To handle that without a full scan I propose to keep RedundantUUID but without using the value returned from the API. Instead value will be set in:

Create function
https://github.com/equinix/terraform-provider-equinix/blob/e13dbf15a15a165ed08ec74a38907e8dbd4853d2/equinix/resource_ecx_l2_connection.go#L620-L625
Importer will require users to specify both primary and secondary ID
https://github.com/equinix/terraform-provider-equinix/blob/e13dbf15a15a165ed08ec74a38907e8dbd4853d2/equinix/resource_ecx_l2_connection.go#L130-L141

Depends on:

[x] new ecx-go version v2.1.1 https://github.com/equinix/ecx-go/pull/5

Tasks:

[x] Fix check for redundancy connections and wait for secondary connection to be deleted - fixes #98
[x] Add deleted value as valid target status in delete function  - fixes #61
[x] Add named_tag uppercase values field and changes comparison not case-sensitive - fixes #97
[x] Update l2_connection documentation
[x] Update e2e test

Is this the only way users would be able to get Terraform details for the redundant connection?

Since secondary connection has its own UUID/name it could be retrieved independently:
data "equinix_ecx_l2_connection" "primary" {
  name = var.primary_conn_name
  redundancy_group_id = var.redundancy_group_id
}

data "equinix_ecx_l2_connection" "secondary" {
  name = var.secondary_conn_name
  redundancy_group_id = var.redundancy_group_id
}

Codecov Report

Merging #103 (c790f7f) into master (4c6eea2) will decrease coverage by 0.63%.
The diff coverage is 7.07%.

@@            Coverage Diff             @@
##           master     #103      +/-   ##
==========================================
- Coverage   61.70%   61.06%   -0.64%
==========================================
  Files          65       65
  Lines       11134    11062      -72
==========================================
- Hits         6870     6755     -115
- Misses       4013     4053      +40
- Partials      251      254       +3

Impacted Files
Coverage Δ

equinix/resource_ecx_l2_connection.go
43.78% <7.07%> (-7.73%)
:arrow_down:

equinix/errors.go
62.96% <0.00%> (-4.63%)
:arrow_down:

equinix/resource_metal_device.go
64.13% <0.00%> (-2.62%)
:arrow_down:

equinix/helpers_device.go
71.66% <0.00%> (-0.56%)
:arrow_down:

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 4c6eea2...c790f7f. Read the comment docs.


Allow optional 'email' parameter when using 'annotate' to push to an annotation backend

If the CVAT application is set such that email is mandatory then calling .annotate will not authenticate the users as there is no option to pass the email to the request. Therefore integration with CVAT is not possible (also because the headers are not passed for login which I think is good, email should be treated as username IMO).
This PR enables an optional email parameters to the .annotate function and to the CVATBackendConfig and the CVATBackend. Effectively enabling fiftyone to integrate on such scenarios of a CVAT setup.
When would a CVAT application be set like that you might ask. This happens is the setting on CVAT side have the following Django parameter set ACCOUNT_EMAIL_REQUIRED = True. In our case this happens because we have LDAP enabled and as in any LDAP configuration nobody remembers their username hehe but everyone knows their email. Therefore it is common practice to allow (and enforce) users to login via email. In Django (and CVAT) this is achieved by setting:

ACCOUNT_AUTHENTICATION_METHOD = "email"
ACCOUNT_EMAIL_REQUIRED = True

For reference, Django allauth configuration: https://docs.allauth.org/en/latest/account/configuration.html
e.
Let me know if I need to explain any further. We just started exploring your tool, looks amazing! and I think just what we are looking for.
This PR is in tandem with https://github.com/voxel51/fiftyone-plugins/pull/185

Summary by CodeRabbit

New Features

Added support for email authentication in the CVAT backend.
Users can now log in using their email address along with their username and password.

These enhancements improve the flexibility and security of the authentication process.

Thanks for the promptly review @brimoor .
How often do you release to pypi or when can we expect the new release with the change?

@rragundez this will be included in fiftyone==1.1.0, which, as luck would have it, we're planning to release tomorrow 🎉


Object Detection from a video

Deep Learning Simplified Repository (Proposing new issue)
:red_circle: Project Title : Object Detection from a video
:red_circle: Aim : Identify the objects from an input video with an accuracy more than 90%.
:red_circle: Dataset : https://www.kaggle.com/code/shawon10/object-detection-from-a-traffic-video/data
:red_circle: Approach : Try to use 3-4 algorithms to implement the models and compare all the algorithms to find out the best fitted algorithm for the model by checking the accuracy scores. Also do not forget to do a exploratory data analysis before creating any model.

📍 Follow the Guidelines to Contribute in the Project :

You need to create a separate folder named as the Project Title.
Inside that folder, there will be four main components.

Images - To store the required images.
Dataset - To store the dataset or, information/source about the dataset.
Model - To store the machine learning model you've created using the dataset.
requirements.txt - This file will contain the required packages/libraries to run the project in other machines.

Inside the Model folder, the README.md file must be filled up properly, with proper visualizations and conclusions.

:red_circle::yellow_circle: Points to Note :

The issues will be assigned on a first come first serve basis, 1 Issue == 1 PR.
"Issue Title" and "PR Title should be the same. Include issue number along with it.
Follow Contributing Guidelines & Code of Conduct before start Contributing.

:white_check_mark: To be Mentioned while taking the issue :

Full name :
GitHub Profile Link :
Email ID :
Participant ID (if applicable):
Approach for this Project :
What is your participant role? (Mention the Open Source program)

Happy Contributing 🚀
All the best. Enjoy your open source journey ahead. 😎

Hi @abhisheks008, can you assign me this issue please. I am learning Deep Learning and Neural nets. I am fluent in Python.

This issue will be assigned to you once the program starts. Otherwise your contribution will not be counted as a participation in SSOC 2022. See you in the program @janeka1122.

@abhisheks008 can you assign me this issue? I'm from SSOC'22

@11Veeraj
:white_check_mark: To be Mentioned while taking the issue :

Full name :
GitHub Profile Link :
Email ID :
Participant ID (if applicable):
Approach for this Project :
What is your participant role? (Mention the Open Source program)

Mention the details first.

Full name : Veeraj Goudar
GitHub Profile Link : https://github.com/11Veeraj
Email ID<EMAIL_ADDRESS>Approach for this Project : Using Neural Network (Yolo or RVNN)
What is your participant role? SSOC (Social Summer of Code)

Assigned it to you @11Veeraj, Go Ahead.

@11Veeraj updates please.

You can check on my repo from dl simplified I have used a CNN model Yolov5 in which object 365 and coco dataset have been used I have created a Implementation.ipynb file in which you can run the code and the detected objects are appended in a csv only thing left is to create a proper readme file
https://github.com/11Veeraj/DL-Simplified/tree/main/Object Detection from a video
here is the link you can find Implentation.ipynb file in model folder

@abhisheks008
If any corrections are required please let me know as this is my first Open source contribution so I might have committed a few mistakes.
Thank You!

What's your contribution here? @11Veeraj

The Yolo model was giving output in multiple notepad text files for each frame as it was dividing the video into multiple frames of the image, so each frame has one notepad file, which I converted into a single CSV which can be found in the detectupdate.py line no 165, and after that identified the classes for each object which was detected and appended it in CSV so that all the objects which are identified can be stored in a single CSV.
Also, we can download and watch the video where objects are labelled from each frame in the given path of Implementation.ipynb

The original file from them for running the script is detect.py

I got everything, I wanted to know what's your contribution? You have put the YOLOv5 repo and you are telling that it's your contribution. That's not fair.
Everything was done by ultralytics, are you the founder of ultralytics?
I am not getting you. Please explain.
@11Veeraj

I have used the basic model of yolov5 if you use it. You won't get the database results properly it provides the data in a txt file, which is scattered in those text files as it is dividing the video into multiple image frames, so I have combined it into one CSV so that the object identified from each image would be in a single file which is contextualised wherein user can extract the information from it.
If you look into ultralytics repo original one, you would find they have used it only for the image purpose, and it is not ideal for video object detection you can find the changes made in comparison their repo I have attached it, and further from that CSV generated I have extracted the actual object name from the video.

In ultralytics repo you can see they've only mentioned for image

Look I understand what you have done, but there are certain things that needs to be followed while contributing in this repo.
Firstly, the README.md file, there everything is redirecting towards Ultralytics org.
Secondly, you have not followed the pattern to represent the project, there must be a .ipynb file in which all your works should be combined together and run properly with the outputs.
Thirdly, update the README.md file by your own, follow the template and update accordingly.
The way you have represented your project, it seems that you have barely copied the whole thing. You have inspired from the YOLOv5 model and have implemented with this dataset. You need to showcase that. I hope you are getting my point, what I am trying to say. For the project pattern you can check up other projects of this project repo.
@11Veeraj

I will update the readme file and highlight my contribution and mention the credits for the ultralytics model. Also will try to explore more algorithms such as RCNN. Thank you for correcting me.

Thanks for understanding. Best wishes!

Updates please @11Veeraj

Working on Rcnn model for object detection. Its a topic which im learning so its taking a bit long.
Also due to clg a bit delay is caused.

I understand what you are facing right now, but as you are enrolled in a program and you have been assigned an issue for the last 26 days, you need to keep updating ourselves, otherwise we can't get ypur problem and eventually the issue will be unassigned due to inactivity. Hope you understand.
@11Veeraj

Yes I understand the problems caused due to my delay which may lead to others not getting the chance. I’ll try to complete it asap.
Will let you know if I face any issue regarding this project.
If i am not able to complete within few days you may unassign the project

Full name :Parth Pishte
GitHub Profile Link :https://github.com/parthpishte
Email ID<EMAIL_ADDRESS>Participant ID (if applicable):
Approach for this Project :the approach will be using yolo(any version) with pre trained and trained depending upon what needs to be detected , like if its an object not so common , its dataset can be created and thus can be trained on the model
What is your participant role? SSOC23

Issue assigned to you @parthpishte

@abhisheks008 A help needed. I have used different email of github for doing the project contribution for Dog Detection using DL repo (Issue no 240 think so). But my mail while I register for GSSoc'24 is<EMAIL_ADDRESS>Pls add the contribution points to this mail. Now i have changed my primary mail address in github to this<EMAIL_ADDRESS>Also in this project, which object should i detect whether to classify each object or just classify object as a whole.

@abhisheks008 A help needed. I have used different email of github for doing the project contribution for Dog Detection using DL repo (Issue no 240 think so). But my mail while I register for GSSoc'24 is<EMAIL_ADDRESS>Pls add the contribution points to this mail. Now i have changed my primary mail address in github to this<EMAIL_ADDRESS>Also in this project, which object should i detect whether to classify each object or just classify object as a whole.

Query 1: For the email issue, I collect them for future communications with the contributors, there is no such connection with GSSoC for this. If you have given wrong email while registering in GSSoC, then you need to talk to the core team.
Query 2: You need to clasify each object.

@abhisheks008 can i get this issue pls? i will use yolo and its different versions..can try mobilenet too but ig yolo will be best suited

Please complete the previous issue.

@abhisheks008  check this dataset : https://www.kaggle.com/datasets/sshikamaru/car-object-detection
In this data the car images are available which are taken from a video by frame by frame.
Can i use this or any other??

@abhisheks008
If this issue is not yet assigned to any one, I would like to work on this.
Find the details:
Name: Shruti Shrivastava
GitHub Profile: GitHub
Email Id<EMAIL_ADDRESS>Participant Role: GSSOC'24
Approch:
I will be using YOLOv5, Detectron2 and PixelLib for object detection. All of them provide confidence scores for each detection.
Implementation will go in this manner:

Setting Up the Models

Preprocessing the Input Data: Handling video inputs (reading frames from a video file, performing noise removal if necessary, will check if the performance is better for gray-scale or not and so on)

Applying the models on the video frames to detect objects.

Extracting and using the confidence scores and bounding boxes to annotate the video frames

Thank you

Assigned to you @theiturhs


Refactored stats actor with unit tests and documentation

Separated stats logic from actor logic; please review including documentation

For readibility, could you please keep the comments in the import?

A better way for rendering json would be to extend the json render implicit, rather than defining RenderDouble as a function.


how many points semantic segmentation model consumes?

Hi, @HuguesTHOMAS
just a quick question!

How many points semantic segmantation and part segmentation model consumes?

And for the semantic segmentation, does decoder layer use three-nn operation?
I don't see any three-nn operation. And I see that you use pre-computed neighbor information. So, which means that you don't use three-nn and use radius search for decoder layers?

In your phd thesis, you said that grid sampling is efficient than farthest point sampling because of FPS's compute complexity. How about replacing the grid sampling with FPS? does it reduce the accuracy of model?

Thank you.

Hi @pixar0407,

The number of points consumed is variable. You can find more details in the paper in particular on TAble three of the supplementary material.

Decoder uses a nearest-neighbor interpolation, see the upsampling layer:
https://github.com/HuguesTHOMAS/KPConv-PyTorch/blob/1cd3742fc57e5ba9d21f7909c78a05a971781351/models/blocks.py#L664

I did not compare the subsampling strategies, but I would say the performances should be the same

Best,
Hugues


[Enhancement] Change log level to info when dropping tablet from BE

What type of PR is this：

[ ] bug
[ ] feature
[x] enhancement
[ ] refactor
[ ] others

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

[FE PR Coverage Check]
:disappointed: fail : 0 / 1 (00.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/leader/ReportHandler.java
0
1
00.00%
[780]


chore(WEB-5102): set node version to 16

We are getting a warning from ci-standard-checks about the node version:

ci-standard-checks
Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: actions/checkout, Typeform/ci-standard-checks, actions/checkout

You can see the annotation warning here: https://github.com/Typeform/public-main-site/actions/runs/3280777332
This PR is setting a new version for node.

:tada: This PR is included in version 1.22.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


jbakery install fails

Team,
Thanks a lot for the awesome job.
I was trying to install jbakery through skdman and everytime I was encountering the below error.
Downloading: jbakery 0.0.4
In progress...
End-of-central-directory signature not found.  Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive.  In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /Users/subbu/.sdkman/archives/jbakery-0.0.4.zip or
/Users/subbu/.sdkman/archives/jbakery-0.0.4.zip.zip, and cannot find /Users/subbu/.sdkman/archives/jbakery-0.0.4.zip.ZIP, period.
After some investigation I found that sdkman expects the zip file names to be as per the candidates name. Then I tried picking up the jbakery-bin-0.0.4.zip from bintray and place it in archives folder and run the install without any success. Then I tried renaming it to jbakery-0.0.4.zip  and installed successfully.
If the install scripts can be tweaked to learn about the install binary file and then pick them up.

Thanks for the headsup. I'll remove jbakery as it is no longer supported on sdkman by the author.

BTW, you will need to do an sdk flush candidates and open a new terminal for this to fully take effect.


Add an reset api to reset the tree to initial status

What problem does this feature solve?
The tree chart, with roaming enabled, after zoom and pan, it's difficult to restore to its initial status, if a restore api is provided, it will be convenient.
Yes, I can first get the option series, set the center to null and zoom to 1, and then call the setOption method, but this approach will not have the animation, the tree will restore to its initial status suddenly.
What does the proposed API look like?
chartInstance.restore()

Hi, I think we can currently use the dispatchAction API with the type of restore to restore the chart. It's from the toolbox component.
chart.dispatchAction({
    type: 'restore'
});

See here for the demo: https://www.makeapie.com/editor.html?c=xQHxllP7G8&v=1

I have tried the dispatchAction API, it works well, but it still didn't have any animation between the two status.

As the demo I provided, I can see the animation.
https://user-images.githubusercontent.com/26999792/103186510-b8d6ad00-48fb-11eb-9af8-25b54c0d4880.mp4

Do you mean there is no animation for roaming?

I mean after zooming and panning.
https://user-images.githubusercontent.com/8212800/103194252-0530e580-491a-11eb-8582-d8858a8d93ec.mov


Running this example without making any changes returns "Internal Error!"

What revision of device emulator image are you using? There were some breaking changes to the API introduced in the latest release so would like to confirm you are using the latest version

@3267xiao going to try once more to get some more information:

What revision of the SDK are you running?
What revision of the emulator images is installed on your device?
When starting the app, did you follow the steps in the Testing section of the README?
If you can repro the issue consistently, can you capture an adb bugreport and upload it to our IssueTracker

If I don't get a response in a few more days I will close this issue due to inactivity

Marking this as resolved due to inactivity


Update sql-database-elastic-scale-get-started.md

Updating the naming convention for Elastic database tools.

Hi @SilviaDoomra, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no contribution license agreement is required at this point. Real humans will now evaluate your PR.

TTYL, AZPRBOT;


Note: it's a clippy bug that it fires since we have MSRV set.

I've filed an issue: https://github.com/rust-lang/rust-clippy/issues/8276

Are you sure this does fire when MSRV is set? I tried it in an empty crate and it does not and its not there on master. I did not comment on your bug report in case I'm wrong.
(My fault, I was working on top of a new edition-2018 branch I did then I pulled out the patches I thought were relevant, I obviously got this one wrong.)

Thanks for the reviews. I removed the copied patch and updated the one with the unwanted extras space (3088eb1 Remove unneeded calls to return).
Rebased on master and force pushed.

Fail, fail, fail - closing this and just leaving it until edition-2018 merges.

@tcharding I did test it and it did fire. Weird.
My main.rs:
fn main() {
    [1, 2, 3].iter().map(|x| *x).collect::<Vec<_>>();
}

clippy.toml
msrv = "1.29"

Tested using cargo +stable clippy, I have the latest stable via rustup in the VM I tested it in.

I'm fighting with Clippy big time at the moment, my problem is that using cargo +stable clippy only shows warnings once (i.e. not the second time you run it), to get around this I use cargo +nightly -Z unstable-options but nightly does not like the msrv field in clippy.toml that we use.

I'm fighting with Clippy big time at the moment, my problem is that using cargo +stable clippy only shows warnings once (i.e. not the second time you run it), to get around this I use cargo +nightly -Z unstable-options but nightly does not like the msrv field in clippy.toml that we use.

I thought this was fixed a couple of version ago. What version does stable refer to on your machine?

1.48 ahhh


only include needed bundles

Fixes #688. The tricky part here is FileAttachment. Unlike everything else, we can’t strictly know statically which method you’re going to call to load the file, and therefore which library we need to load. The association is:

method
library

FileAttachment.csv
npm:d3-dsv

FileAttachment.tsv
npm:d3-dsv

FileAttachment.arrow
npm:apache-arrow

FileAttachment.parquet
npm:apache-arrow and npm:parquet-wasm

FileAttachment.sqlite
npm:@observablehq/sqlite

FileAttachment.xlsx
npm:@observablehq/xlsx

FileAttachment.zip
npm:@observablehq/zip

It’s not the end of the world if we don’t preload npm:d3-dsv for example (at least until we want to support self-hosting of libraries #20), but it’s still nice to preload it if we know you’re going to load a CSV file. But if we don’t detect that you need npm:@observablehq/zip for example, then your built site will be broken, because that library doesn’t actually exist (yet) on npm — it’s built locally and self-hosted. (We do plan on publishing it to npm eventually, but it’s a little tricky as it depends on releasing a new version of @observablehq/stdlib and I’m not in a rush to do a major version bump there until we’re a little farther along in bringing Observable notebooks up to parity with Observable Framework.)
So, here are some options:

We could always include sqlite, xlsx, and zip. That’s not ideal but it ensures things work. But we wouldn’t want to preload these always, so it means we also don’t have any library preloading based on what files you’re using, which is a slight bummer.

We infer which libraries you need based on the file names. The file names are statically analyzable so this should work pretty well as long as the file extensions strongly imply how you will load them. For example we assume that a .csv file will be loaded with FileAttachment.csv and hence needs npm:d3-dsv. I think this would work pretty well, although for SQLite at least there isn’t a strong convention around the file extension. I guess we would assume that .db and .sqlite (and some others) is for SQLite? This could also result in a false positive for example if you load a .csv file as text, but that wouldn’t be terrible.

We infer which libraries you need based on the methods you call. But, you can declare a FileAttachment in one place and then call the method in another place, so we can’t simply look for instances of e.g. FileAttachment(name).csv(…). I think this basically means that if you have any member expression of the form object.csv(…) then we have to suppose the object might be a file attachment and hence you need npm:d3-dsv.

I think I’m inclined to take option (2) because it’s the most predictable, and we can just document what our expectations are around file extensions?

We could build conservatively (sqlite, xlsx, zip), so that no matter how you call these methods the site has everything it needs, but only preload if we statically see FileAttachment().method, since this is only an optimization.

It's very satisfying to build examples/hello-world/ with this branch

Folded into #843.


Without output with sqls

Describe the bug
I install sqls, and execute sqls with config, but got no output.
To Reproduce
Steps to reproduce the behavior:

Create a config file
Execute sqls --config lsp.config -t
Got

sqls --config lsp.config -t
2024/04/08 13:16:00 db worker: start
2024/04/08 13:16:00 sqls: reading on stdin, writing on stdout

My config is
# Set to true to use lowercase keywords instead of uppercase.
lowercaseKeywords: false
connections:
  - alias: individual_mysql
    driver: mysql
    proto: tcp
    user: root
    passwd: root
    host: <IP_ADDRESS>
    port: 3306
    dbName: demo
    params:
      useUnicode: true
      characterEncoding: UTF-8
      allowMultiQueries: true

Expected behavior
A clear and concise description of what you expected to happen.
Versions (please complete the following information):

OS Version: [linux/amd64]
sqls Version [go1.22.2]

Additional context
Add any other context about the problem here.

It seems sqls only support lsp doesn't support read input from console.


Playing web radios

Hello,
Congrats for you work. Really nice.
I have a question:
This works perfectly:
omx.play('thelookoflove.mp3')
But I can't make it to work:
omx.play('http://<IP_ADDRESS>')
though I can play this very same URL at the comand line with
omxplayer http://<IP_ADDRESS>
Am I missing something? Any recommendation?
Best regards,
Sergio

Hi Sergio,
what you're saying is right. omx-manager assume that every string passed is a file. I should implement a check for stream.

Thank you. Let us know when have news.
Best regards,
Sergio

I should completely rewrite the library to handle this, because it's all based on using video files (for example the play and pause function).

Now included in version 0.1.0.


[WAC Virtual Machines and Switches] - Unable to hot-add memory to running VMs

Gateway Version: 1.3.2204.19002
Extension Versions
WAC version 2110.2
Virtual machines and switches 2.65.0
Failover cluster tools 2.81.0
Cluster Manager 2.120.0
To Reproduce
Steps to reproduce the behavior:

Navigate to Server Manager, Cluster Manager, or All connections.
Select a server running Hyper V 2016 and up (which is confirmed to support memory hot-add)
Navigate to Virtual Machines on the left sidebar, and select a given, powered on VM.
Navigate to that VM's settings view, then Memory.  Note that you cannot change any settings since the VM is powered on.

Expected behavior
The ability to hot-add memory to an online VM ( or perform a runtime memory resize ), should be an available feature within WAC if the underlying Hyper-V server supports it, from what I can tell online.  This seems to be a regressive bug.
Screenshots & Additional context

Hi @ddcunningham,
Is this issue still occurring on our latest build?
Kind regards,
Rebecca

No, no fix yet, but since you have confirmed it is still reoccurring, I will file a bug for more investigation. Thank you!

I checked this out and confirm the issue no longer exists.


Arduino MKR usage

During compiling on MKR GSM 1400 any of examples I am getting error while compiling. Do you know why ?
Part of the code
static MqttClient *mqtt = NULL;

// ============== Object to supply system functions ============================
class System: public MqttClient::System {
public:

  unsigned long millis() const {
    return ::millis();
  }

  void yield(void) {
    ::yield();
  }
};

Compile error
error: expected class-name before '{' token

 class System: public MqttClient::System {

                                         ^

Z:\2019_11_15_First_prototype\00_final_arduinomqtt_qos1_ArduinoMqtt\00_final_arduinomqtt_qos1_ArduinoMqtt.ino: In function 'void setup()':

00_final_arduinomqtt_qos1_ArduinoMqtt:138:15: error: 'System' is not a member of 'MqttClient'

   MqttClient::System *mqttSystem = new System;

               ^~~~~~

00_final_arduinomqtt_qos1_ArduinoMqtt:138:23: error: 'mqttSystem' was not declared in this scope

   MqttClient::System *mqttSystem = new System;

                       ^~~~~~~~~~

Z:\2019_11_15_First_prototype\00_final_arduinomqtt_qos1_ArduinoMqtt\00_final_arduinomqtt_qos1_ArduinoMqtt.ino:138:23: note: suggested alternative: 'System'

   MqttClient::System *mqttSystem = new System;

                       ^~~~~~~~~~

                       System

@salvq it might be something with the compiler version is used or the library is not visible for the build system. The MqttClient::System definitely exists in MqttClient.h and public.

@monstrenyatko thank you for confirmation.
I have searched for similar libraries and found that MqttClient.h filename exist in several others libraries such as ArduinoMqttClient therefore compiler just picked different one.
Now it is working, I moved forward to the next error :)


Make it thread-safe

Some idea:

reading: keep the global data structure.
writing: use the load function and module->data api for holding a bloom filter per thread. Write in temp bloom filter files on unload. Merge bloom filter files in one file on finalize.

see https://github.com/hashlookup/fleur/issues/12


Add ConversionFunctionBuilder

Refactor ConvertTo/From ARM handlers to use it.
This reduces duplicate code and fixes a small bug in
the ConvertToARM handler.

Codecov Report

Merging #448 (a8f374a) into master (b6eda45) will decrease coverage by 0.59%.
The diff coverage is 88.21%.

@@            Coverage Diff             @@
##           master     #448      +/-   ##
==========================================
- Coverage   62.95%   62.36%   -0.60%
==========================================
  Files         156      157       +1
  Lines       10539    10421     -118
==========================================
- Hits         6635     6499     -136
- Misses       3288     3295       +7
- Partials      616      627      +11

Impacted Files
Coverage Δ

...ack/generator/pkg/astmodel/armconversion/shared.go
80.76% <ø> (-8.71%)
:arrow_down:

...l/armconversion/convert_to_arm_function_builder.go
84.41% <70.00%> (-7.55%)
:arrow_down:

...armconversion/convert_from_arm_function_builder.go
88.83% <84.61%> (-4.47%)
:arrow_down:

...erator/pkg/astmodel/conversion_function_builder.go
91.22% <91.22%> (ø)

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 b6eda45...a8f374a. Read the comment docs.


Help create process ambiguity,or bug!

When supvisor strategy Type is gen SupervisorStrategySimpleOneForOne, use sup.StartChild API, created processes are shared a child object, Theoretically, a separate process requires a separate child object; Don't know that the design is intentional; I need a different process with a different object that can only be created using the node.spawn interface, not supvisor; When the type is SupervisorStrategySimpleOneForOne, whether to help special processing, separate process requires a separate object entities

If I do understand you correctly... You are trying to create new gen.Server instance to start under the Supervisor with the separated object under the hood for every single process. As you noticed, using the same object for that makes it shared between all the actors (processes spawned with this object). But... every process has a separate state which can be used within the process callbacks for your needs. Here is example
type private struct {
   i int
}

type example struct {
	shared int
	gen.Server
}

func (e *example) Init(process *gen.ServerProcess, args ...etf.Term) error {
	// State has interface{} type
	process.State = &private{i: 123} // this value is only available for this process
	e.shared = 567 // all spawned processes with object &example{...} have access to this value
	return nil
}
func (e *example) HandleCast(process *gen.ServerProcess, message etf.Term) gen.ServerStatus {
	state := process.State.(*private)
	fmt.Printf("[%s] HandleCast: %#v\n", process.Name(), state)

	return gen.ServerStatusOK
}

so, the answer is - this design is intentional

Thanks for the example! Ok, I also know that process.State can be private, but I personally prefer private objects, temporary processes that access object code is easy to write and as friendly as an Erlang Dictionary! In this example, shared sharing also needs to be lock or unlocked during operation, but I don't like unlocking because I like Mailbox

I was thinking about your idea to create a new object for the spawned process. Pro - this object could be used as an atomic state. Cons - making a clone of provided object could be pretty hard and expensive (nested pointers, maps, slices, etc.).

https://github.com/ergo-services/ergo/pull/140
I tried to solve this problem by dynamically starting and stopping the child spec.


Fresh install fails (Linux)

21:20:30|database: Cleaning Database
21:20:30|pool: pools-custom.cfg not found.
21:20:30|database: Cleaning Database
21:20:30|pool: Please configure some pools!
21:20:30|pool: Go to localhost:8337/worker
21:20:30|pool: Then restart bitHopper
21:20:31|lp: LP Module Load
21:20:31|plugin: Loading Config Files
Exception in thread Thread-60:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/XXX/bitHopper/Workers.py", line 56, in poll_thread
self.workers_lock[item] = {}
AttributeError: Workers instance has no attribute 'workers_lock'
21:20:31|pool: pools-custom.cfg not found.
21:20:31|database: Cleaning Database
21:20:32|plugin: Plugin loading mode: manual
21:20:32|plugin: Loading Plugins
21:20:32|plugin: poolblocks has been disabled
21:20:32|plugin: lpworkbench has been disabled
21:20:32|plugin: lpbot has been disabled
21:20:32|plugin: blockaccuracy has been disabled
21:20:32|plugin: apiangel has been disabled
21:20:32|plugin: backdoor has been disabled
21:20:32|plugin: test has been disabled
21:20:32|plugin: lpdump has been disabled
21:20:32|plugin: payouts has been disabled
21:20:32|plugin: poclbm has been disabled
21:20:32|plugin: hookexample failed reading main config file: No option 'hookexample' in section: 'plugins'
21:20:32|plugin: hookexample has been disabled
21:20:32|plugin: rpcworklog loaded
21:20:32|bitHopper: Selecting scheduler: DefaultScheduler
21:20:32|bitHopper: Fatal Error, No valid pools configured!
21:20:32|api: bonuspool api error:'api_method'
21:20:32|api: gpumax api error:'api_method'
21:20:32|pool: Please configure some pools!
21:20:32|pool: Go to localhost:8337/worker
21:20:32|pool: Then restart bitHopper
21:20:32|work: Not in pool
21:20:32|work: Not in pool
21:20:32|work: Not in pool
21:20:32|api: eclipsemc:        7347427
21:20:32|pool: Please configure some pools!
21:20:32|pool: Go to localhost:8337/worker
21:20:32|pool: Then restart bitHopper
21:20:32|pool: Please configure some pools!
21:20:32|pool: Go to localhost:8337/worker
21:20:32|pool: Then restart bitHopper
21:20:32|api: slush:    1065941         1277.8gh/s      57min.
21:20:32|pool: Please configure some pools!
21:20:32|pool: Go to localhost:8337/worker
21:20:32|pool: Then restart bitHopper
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gevent/greenlet.py", line 390, in run
result = self._run(*self.args, **self.kwargs)
File "/home/XXX/bitHopper/scheduler.py", line 40, in bitHopper_server_update
self.bitHopper.server_update()
File "bitHopper.py", line 174, in server_update
if self.scheduler.server_update():
File "/home/XXX/bitHopper/scheduler.py", line 151, in server_update
if not self.server_is_valid(current):
File "/home/XXX/bitHopper/scheduler.py", line 76, in server_is_valid
return info.is_valid() and info['role'] in self.valid_roles
AttributeError: 'NoneType' object has no attribute 'is_valid'
<Greenlet at 0x9a2c8ec: <bound method DefaultScheduler.bitHopper_server_update of <scheduler.DefaultScheduler object at 0x9a4ab6c>>> failed with AttributeError
21:20:33|api: eclipsemc api error:'NoneType' object has no attribute 'is_valid'
21:20:33|api: slush api error:'NoneType' object has no attribute 'is_valid'
21:20:34|pool: Please configure some pools!
21:20:34|pool: Go to localhost:8337/worker
21:20:34|pool: Then restart bitHopper
Then trying to add a worker gives this and bithopper must be restarted:
21:22:37|website: Error in a wsgi function
21:22:37|website: Workers instance has no attribute 'workers_lock'
Traceback (most recent call last):
File "/home/XXX/bitHopper/website.py", line 275, in handle_start
return use_site.handle(env,start_response)
File "/home/XXX/bitHopper/Workers.py", line 169, in handle
self.handle_post(webob.Request(env))
File "/home/XXX/bitHopper/Workers.py", line 184, in handle_post
post['user'], post['pass'])
File "/home/XXX/bitHopper/Workers.py", line 120, in add_worker
if pool not in self.workers_lock:
AttributeError: Workers instance has no attribute 'workers_lock'
/worker
This is a bone stock git pull just now and it fails in numerous places.  Any ideas what might be going on?

I broke the code. Try it now it should be fixed.

That seems to have solved it.  However, got another issue now, two actually:

Clicking "info" from a "mined" pool no longer disables the mining on that pool... it will just keep happily mining that same pool.
This has been broken for awhile... at least on "backup" servers - priority does nothing.  You can set the priority to whatever you want and Bithopper will ignore the setting.  Is this intended for backup pools?  I have 3 backup pools that I want mined in order of priority, but it just selects the first one and will never switch unless it goes down, even if I have priority set to 1 and the other two set to 8 and 9.

Looking through the code, seems the problem is here:
    server_list = [server for server in server_list
                   if lambda x:self.pool.get_entry(x)['priority'] >= max_priority]

Should probably be moved below the
if len(server_list) == 0 and len(backup_list):
block of code

Thanks. Should be fixed now.

Also the mining on an info pool is already reported.

Just tested the priority thing.. didn't seem to solve the problem.  I haven't had a chance to go through the code further, though... but it's still mining on the first backup pool alphabetically.

Are you having it slice across the pools? Or just select the one with the lowest shares? That also effects it.

I haev it set to DefaultScheduler, and backup_type is reject rate... huh, maybe that is it.  There needs to be a reject threshold though, or just a "backup_type = priority" but with a reject threshold.  If my reject rate on a set of backup pools are all within a fraction of a percent of each other, I would like priority to apply... but of course if I'm getting 50% rejects from a pool, by all means hop away.

So its selecting by reject rate. Selecting one pool and then applying priority to it. I'll add a priority method.

Until I do that you can select the slice method and it will work.

Won't that just rotate through the backup pools equally?

It will produce a list of all valid backup pools. Which will then be sorted by priority. So it will do what you want with regards to priority sorting. The whole system is badly named and going to be thrown out soon.


Update sonic-weave dependency

Adds stepString() which labels the last interval in the scale with the step pattern.
Fix parsing if negative integers.
Make function parameters required by default.
Add array access with arrays of indices and of booleans.

This commit would just update main to beta 3, right?

Correct.

Does the array access with indices work like map array indices (in pseudo-Haskell, viewing the array as a function)? And the Boolean thing is the array applied to the true indices, right?

Does the array access with indices work like map array indices (in pseudo-Haskell, viewing the array as a function)? And the Boolean thing is the array applied to the true indices, right?

It's been a while since I've programmed in Haskell. I think what you're saying is true. The model I'm trying to emulate is numpy for Python.


pull request for e2e test at 11/29/2016 01:56:04

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


[Modelling] Collateral Risk Management Methodology

Based on framework introduced by CRP whitepaper

Some preliminary simulation results.   https://github.com/alexgo-io/alex-v1-lab/blob/main/notebooks/ALEX_simulation.pdf

Mine is 404 when I clicked the link.

From: yilongalex @.>
Sent: Sunday, August 15, 2021 12:38:00 PM
To: alexgo-io/alex-v1 @.>
Cc: Rredlion @.>; Assign @.>
Subject: Re: [alexgo-io/alex-v1] [Modelling] Collateral Risk Management Methodology (#87)
Some preliminary simulation results. https://github.com/alexgo-io/alex-v1-lab/blob/main/notebooks/ALEX_simulation.pdf
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHubhttps://github.com/alexgo-io/alex-v1/issues/87#issuecomment-899037161, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUKKVK2RTFJRECS2WRINQKLT46RJRANCNFSM5CFFLQQA.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

That's strange.  Can you access  alex-v1-lab/notebooks at main ·
alexgo-io/alex-v1-lab (github.com)
https://github.com/alexgo-io/alex-v1-lab/tree/main/notebooks?
Report is attached as well.
On Sun, Aug 15, 2021 at 7:56 AM Rredlion @.***> wrote:

Mine is 404 when I clicked the link.

From: yilongalex @.>
Sent: Sunday, August 15, 2021 12:38:00 PM
To: alexgo-io/alex-v1 @.>
Cc: Rredlion @.>; Assign @.>
Subject: Re: [alexgo-io/alex-v1] [Modelling] Collateral Risk Management
Methodology (#87)
Some preliminary simulation results.
https://github.com/alexgo-io/alex-v1-lab/blob/main/notebooks/ALEX_simulation.pdf
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub<
https://github.com/alexgo-io/alex-v1/issues/87#issuecomment-899037161>,
or unsubscribe<
https://github.com/notifications/unsubscribe-auth/AUKKVK2RTFJRECS2WRINQKLT46RJRANCNFSM5CFFLQQA

.
Triage notifications on the go with GitHub Mobile for iOS<
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android<
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/alexgo-io/alex-v1/issues/87#issuecomment-899039352,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEUI2D7LQKDCRFQ3J4VLYGDT46TPHANCNFSM5CFFLQQA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

--
*Best, *
Jing Shen

Might be I didn’t sign in on my phone. Let me try again

From: jingstat @.>
Sent: Sunday, August 15, 2021 1:03:08 PM
To: alexgo-io/alex-v1 @.>
Cc: Rredlion @.>; Assign @.>
Subject: Re: [alexgo-io/alex-v1] [Modelling] Collateral Risk Management Methodology (#87)
That's strange. Can you access alex-v1-lab/notebooks at main ·
alexgo-io/alex-v1-lab (github.com)
https://github.com/alexgo-io/alex-v1-lab/tree/main/notebooks?
Report is attached as well.
On Sun, Aug 15, 2021 at 7:56 AM Rredlion @.***> wrote:

Mine is 404 when I clicked the link.

From: yilongalex @.>
Sent: Sunday, August 15, 2021 12:38:00 PM
To: alexgo-io/alex-v1 @.>
Cc: Rredlion @.>; Assign @.>
Subject: Re: [alexgo-io/alex-v1] [Modelling] Collateral Risk Management
Methodology (#87)
Some preliminary simulation results.
https://github.com/alexgo-io/alex-v1-lab/blob/main/notebooks/ALEX_simulation.pdf
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub<
https://github.com/alexgo-io/alex-v1/issues/87#issuecomment-899037161>,
or unsubscribe<
https://github.com/notifications/unsubscribe-auth/AUKKVK2RTFJRECS2WRINQKLT46RJRANCNFSM5CFFLQQA

.
Triage notifications on the go with GitHub Mobile for iOS<
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android<
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/alexgo-io/alex-v1/issues/87#issuecomment-899039352,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEUI2D7LQKDCRFQ3J4VLYGDT46TPHANCNFSM5CFFLQQA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

--
*Best, *
Jing Shen
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHubhttps://github.com/alexgo-io/alex-v1/issues/87#issuecomment-899040190, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUKKVK26S2KAXVDQPA5DRA3T46UHZANCNFSM5CFFLQQA.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

Did you manage to view? I can see, so probably due to the sign-in.
From: Rredlion @.>
Date: Sunday, 15 August 2021 at 8:09 PM
To: alexgo-io/alex-v1 @.>
Cc: fiftyeightandeight @.>, Author @.>
Subject: Re: [alexgo-io/alex-v1] [Modelling] Collateral Risk Management Methodology (#87)
Might be I didn’t sign in on my phone. Let me try again

From: jingstat @.>
Sent: Sunday, August 15, 2021 1:03:08 PM
To: alexgo-io/alex-v1 @.>
Cc: Rredlion @.>; Assign @.>
Subject: Re: [alexgo-io/alex-v1] [Modelling] Collateral Risk Management Methodology (#87)
That's strange. Can you access alex-v1-lab/notebooks at main ·
alexgo-io/alex-v1-lab (github.com)
https://github.com/alexgo-io/alex-v1-lab/tree/main/notebooks?
Report is attached as well.
On Sun, Aug 15, 2021 at 7:56 AM Rredlion @.***> wrote:

Mine is 404 when I clicked the link.

From: yilongalex @.>
Sent: Sunday, August 15, 2021 12:38:00 PM
To: alexgo-io/alex-v1 @.>
Cc: Rredlion @.>; Assign @.>
Subject: Re: [alexgo-io/alex-v1] [Modelling] Collateral Risk Management
Methodology (#87)
Some preliminary simulation results.
https://github.com/alexgo-io/alex-v1-lab/blob/main/notebooks/ALEX_simulation.pdf
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub<
https://github.com/alexgo-io/alex-v1/issues/87#issuecomment-899037161>,
or unsubscribe<
https://github.com/notifications/unsubscribe-auth/AUKKVK2RTFJRECS2WRINQKLT46RJRANCNFSM5CFFLQQA

.
Triage notifications on the go with GitHub Mobile for iOS<
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android<
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/alexgo-io/alex-v1/issues/87#issuecomment-899039352,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEUI2D7LQKDCRFQ3J4VLYGDT46TPHANCNFSM5CFFLQQA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

--
*Best, *
Jing Shen
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHubhttps://github.com/alexgo-io/alex-v1/issues/87#issuecomment-899040190, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUKKVK26S2KAXVDQPA5DRA3T46UHZANCNFSM5CFFLQQA.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/alexgo-io/alex-v1/issues/87#issuecomment-899040989, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AADMGWJWXQCJXTZN2ZWNIPDT46U73ANCNFSM5CFFLQQA.

Yes I could see it. It was due to me not signing into my account

From: fiftyeightandeight @.>
Sent: Sunday, August 15, 2021 2:57:44 PM
To: alexgo-io/alex-v1 @.>
Cc: Rredlion @.>; Assign @.>
Subject: Re: [alexgo-io/alex-v1] [Modelling] Collateral Risk Management Methodology (#87)
Did you manage to view? I can see, so probably due to the sign-in.
From: Rredlion @.>
Date: Sunday, 15 August 2021 at 8:09 PM
To: alexgo-io/alex-v1 @.>
Cc: fiftyeightandeight @.>, Author @.>
Subject: Re: [alexgo-io/alex-v1] [Modelling] Collateral Risk Management Methodology (#87)
Might be I didn’t sign in on my phone. Let me try again

From: jingstat @.>
Sent: Sunday, August 15, 2021 1:03:08 PM
To: alexgo-io/alex-v1 @.>
Cc: Rredlion @.>; Assign @.>
Subject: Re: [alexgo-io/alex-v1] [Modelling] Collateral Risk Management Methodology (#87)
That's strange. Can you access alex-v1-lab/notebooks at main ·
alexgo-io/alex-v1-lab (github.com)
https://github.com/alexgo-io/alex-v1-lab/tree/main/notebooks?
Report is attached as well.
On Sun, Aug 15, 2021 at 7:56 AM Rredlion @.***> wrote:

Mine is 404 when I clicked the link.

From: yilongalex @.>
Sent: Sunday, August 15, 2021 12:38:00 PM
To: alexgo-io/alex-v1 @.>
Cc: Rredlion @.>; Assign @.>
Subject: Re: [alexgo-io/alex-v1] [Modelling] Collateral Risk Management
Methodology (#87)
Some preliminary simulation results.
https://github.com/alexgo-io/alex-v1-lab/blob/main/notebooks/ALEX_simulation.pdf
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub<
https://github.com/alexgo-io/alex-v1/issues/87#issuecomment-899037161>,
or unsubscribe<
https://github.com/notifications/unsubscribe-auth/AUKKVK2RTFJRECS2WRINQKLT46RJRANCNFSM5CFFLQQA

.
Triage notifications on the go with GitHub Mobile for iOS<
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android<
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/alexgo-io/alex-v1/issues/87#issuecomment-899039352,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEUI2D7LQKDCRFQ3J4VLYGDT46TPHANCNFSM5CFFLQQA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email
.

--
*Best, *
Jing Shen
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHubhttps://github.com/alexgo-io/alex-v1/issues/87#issuecomment-899040190, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUKKVK26S2KAXVDQPA5DRA3T46UHZANCNFSM5CFFLQQA.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/alexgo-io/alex-v1/issues/87#issuecomment-899040989, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AADMGWJWXQCJXTZN2ZWNIPDT46U73ANCNFSM5CFFLQQA.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHubhttps://github.com/alexgo-io/alex-v1/issues/87#issuecomment-899054757, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUKKVK3YVN2OSVUCQJQNR53T47BVRANCNFSM5CFFLQQA.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.


OpenAPI 3.1 Support

Hi, OpenAPI 3.1 has been released - https://www.openapis.org/blog/2021/02/18/openapi-specification-3-1-released
It would be nice to bring support of 3.1 to openapi-backend.
Here is how to migrate: https://www.openapis.org/blog/2021/02/16/migrating-from-openapi-3-0-to-3-1-0
Seems there will be some work to be done, but in case of schema validation i've found that ajv@8 supports latest json schema draft 2020, so this part should not be complicated.

@wszydlak agreed.
Anyone willing to look into this, PRs appreciated :)

For the new 4.0.0 release of openapi-backend, I've upgraded to Ajv@8. Hopefully this helps!

Open API 3.1 types released: https://github.com/kogosoftwarellc/open-api/pull/757


update children TS type for MotiSkeleton

super simple change
React.ReactChild is a deprecated type, let's switch to React.ReactNode

@nandorojo Let me know if any other changes are required on my end.

Let's use ReactElement for backwards compatibility since this is for one node

@nandorojo Is there anything else required from my end here?

Merged!


Assign tags js

In the users_controller, do I have to create an if statement to check for :tags, since if you're updating the user but not passing any tags, not even an empty array, would it error out?


Husky feature

What is the change?
Fixes Pre commit hooks not working
Related issue?
close: #811
How was it tested?
Tested by doing small change in a JS file
Checklist:
Before you create this PR, confirm all the requirements listed below by checking the checkboxes [x]:

[x] Have you followed the Contribution Guidelines while contributing.
[x] Have you checked there aren't other open Pull Requests for the same update/change?
[x] Did you lint your code before making the Pull Request?
[] Have you made corresponding changes to the documentation?
[x] Your submission doesn't break any existing feature.
[x] Have you tested the code before submission?

Screenshots or Video:

@Pranav016  Please review it now, I think I have fixed that issue..


Add option to opt out of modern CSS transform properties like scale, translate, etc.

Many of my users still use Safari v13.x, which does not support the newer CSS transform-related properties like scale, translate, etc.
By default, this is fine, as TailwindCSS supports the older transform styles, in this way:

.rotate-45 {
    --tw-rotate: 45deg;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.scale-150 {
    --tw-scale-x: 1.5;
    --tw-scale-y: 1.5;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

where each transform-related property applies the same foundational transform value:
transform:
  translate(var(--tw-translate-x), var(--tw-translate-y))
  rotate(var(--tw-rotate))
  skewX(var(--tw-skew-x))
  skewY(var(--tw-skew-y))
  scaleX(var(--tw-scale-x))
  scaleY(var(--tw-scale-y));

It'd be great if tailwindcss-3d could support 3d transforms but using the same syntax and impl-style as the existing TailwindCSS-native styles.
This could look something like this:

transform:
  translate(var(--tw-translate-x), var(--tw-translate-y), var(--tw-translate-z))
  rotateX(var(--tw-rotate-x))
  rotateY(var(--tw-rotate-y))
  rotateZ(var(--tw-rotate, var(--tw-rotate)))
  skew(var(--tw-skew-x), var(--tw-skew-y))
  scale3d(var(--tw-scale-x, var(--tw-scale)), var(--tw-scale-y, var(--tw-scale)), var(--tw-scale-z, var(--tw-scale)));

Hi Brandon,
Thanks for your thoughts and thorough request. Part of the intention of this plugin was to move away from the transform property as much as possible. The main benefit of doing this is that maintaining that set of transform options is extremely cumbersome, and in TailwindCSS core today, it is not possible (or at least very hard) to combine transforms as a result of events. This is especially true for animating elements. See this reduced example where a previously translated element fails to animate-spin on hover: https://play.tailwindcss.com/2wd29Wqtmx
While there are definitely drawbacks to the backwards compatibility you are proposing, it is probably fine as long as people are aware of the limitations. It will cause a bit of code overhead though, and I'm not sure how much. I will take a look to see if it can be done at minimal cost, but I can't commit yet to adding it to the plugin.
What I can do right away is provide a "Can I Use" panel on the readme so that people are aware of the limitation.
I'll update you here if and when this progresses.

I've added a note on the README about browser compatibility: https://github.com/sambauers/tailwindcss-3d#browser-compatibility

@sambauers Thanks! 🙌🏼
I think it might be a fairly low effort to incorporate the legacy version into this, optionally. I'm happy to investigate and open a PR if I figure that out.

I'm happy to investigate and open a PR if I figure that out.

I'm happy to collaborate on an approach to this, feel free to have a go and open a draft PR. My suggestion would be to solve it for just one of the utilities first, then once we land on a solution we can spread that to the other utilities.

Released version 0.2.0 containing a first attempt at this. Please give it a run and report any issues.


failed to wait for compliance caches

Hi,
I don't have enabled the compliance in trivy operator
[INFO] ConfigAuditReports enabled
[INFO] VulnerabilityReports enabled
[INFO] RbacAssessmentReports enabled
[INFO] ExposedSecretReports enabled
[INFO] CISKubeBenchReports enabled
[INFO] InfraAssessmentReportClient enabled

but the application is crashed
Error: failed to wait for compliance caches to sync: timed out waiting for cache to be synced
Usage:
  trivy-operator-polr-adapter run [flags]

Flags:
  -c, --config string             target configuration file
      --enable-compliance         Enable the transformation of ClusterComplianceDetailReports into ClusterPolicyReports
      --enable-config-audit       Enable the transformation of ConfigAuditReports into PolicyReports
      --enable-exposed-secrets    Enable the transformation of ExposedSecretReports into PolicyReports
      --enable-infra-assessment   Enable the transformation of InfraAssessmentReports into PolicyReports
      --enable-kube-bench         Enable the transformation of CISKubeBenchReports into ClusterPolicyReports
      --enable-rbac-assessment    Enable the transformation of RbacAssessmentReports into PolicyReports
      --enable-vulnerability      Enable the transformation of VulnerabilityReports into PolicyReports
  -h, --help                      help for run
  -k, --kubeconfig string         absolute path to the kubeconfig file

failed to wait for compliance caches to sync: timed out waiting for cache to be synced

Hey, did you check if the clustercompliancereport CRD is installed in your cluster? Depending on your version of the trivy operator it is maybe not available.

clustercompliancereport

it didn't install but i turned off in values.yaml but the app is still failing
    adapters:
      vulnerabilityReports:
        enabled: true
        # apply labels from the source report
        applyLabels: []
      configAuditReports:
        enabled: true
        applyLabels: []
      cisKubeBenchReports:
        enabled: true
        applyLabels: []
      complianceReports:
        enabled: false
        applyLabels: []
      rbacAssessmentReports:
        enabled: true
        applyLabels: []
      exposedSecretReports:
        enabled: true
        applyLabels: []
      infraAssessmentReports:
        enabled: true
        applyLabels: []

Ah okay, then I misunderstood your question. I will have a look.
So it still tries to read compliancereports with complianceReports.enabled set to false?

Ah okay, then I misunderstood your question. I will have a look.

You understood correct, I changed description, sorry

So it still tries to read compliancereports with complianceReports.enabled set to false?

yes, it's still
trivy-operator-adapter-5b849f8bc6-kml6s                           1/1     Running   3 (80s ago)     7m46s

[INFO] ConfigAuditReports enabled
[INFO] VulnerabilityReports enabled
[INFO] RbacAssessmentReports enabled
[INFO] ExposedSecretReports enabled
[INFO] CISKubeBenchReports enabled
[INFO] InfraAssessmentReportClient enabled

...........
client.go:27: [ERROR] VulnerabilityReport: Failed to process report cronjob-695bdff9d6; failed to create PolicyReport in namespace monitoring: PolicyReport.wgpolicyk8s.io "trivy-vuln-polr-cronjob-lf-opensearch-management-index-lifecycle" is invalid: [results[0].severity: Unsupported value: "critical": supported values: "high", "low", "medium", results[8].severity: Unsupported value: "critical": supported values: "high", "low", "medium", results[9].severity: Unsupported value: "critical": supported values: "high", "low", "medium", results[10].severity: Unsupported value: "critical": supported values: "high", "low", "medium"]
client.go:27: [ERROR] VulnerabilityReport: Failed to process report daemonset-cilium-mount-bpf-fs; failed to create PolicyReport in namespace kube-system: PolicyReport.wgpolicyk8s.io "trivy-vuln-polr-daemonset-cilium" is invalid: results[1].severity: Unsupported value: "critical": supported values: "high", "low", "medium"
................

Error: failed to wait for vulnerability caches to sync: timed out waiting for cache to be synced
Usage:
  trivy-operator-polr-adapter run [flags]

Flags:
  -c, --config string             target configuration file
      --enable-compliance         Enable the transformation of ClusterComplianceDetailReports into ClusterPolicyReports
      --enable-config-audit       Enable the transformation of ConfigAuditReports into PolicyReports
      --enable-exposed-secrets    Enable the transformation of ExposedSecretReports into PolicyReports
      --enable-infra-assessment   Enable the transformation of InfraAssessmentReports into PolicyReports
      --enable-kube-bench         Enable the transformation of CISKubeBenchReports into ClusterPolicyReports
      --enable-rbac-assessment    Enable the transformation of RbacAssessmentReports into PolicyReports
      --enable-vulnerability      Enable the transformation of VulnerabilityReports into PolicyReports
  -h, --help                      help for run
  -k, --kubeconfig string         absolute path to the kubeconfig file

failed to wait for vulnerability caches to sync: timed out waiting for cache to be synced

In this errors are the failed caches are configaudit, which are enabled. How large is your cluster? The only possible solution I could found for now would be to add a configuration for the timeout and increase it if needed. Could be possible that the default of 2 minutes are not enough for a higher amount of Trivy CRD Resources.

I've disabled it too
helm get values trivy-operator-adapter                                                                                dc06-ldap[12:57:39]
USER-SUPPLIED VALUES:
adapters:
  cisKubeBenchReports:
    enabled: true
  complianceReports:
    enabled: false
  configAuditReports:
    enabled: false
  exposedSecretReports:
    enabled: false
  infraAssessmentReports:
    enabled: false
  rbacAssessmentReports:
    enabled: false
  vulnerabilityReports:
    enabled: true
fullnameOverride: trivy-operator-adapter
nodeSelector:
  group-name: worker-group-infra
podAnnotations: {}
resources:
  limits:
    cpu: 100m
    memory: 128Mi
  requests:
    cpu: 100m
    memory: 128Mi

Controlled By:  ReplicaSet/trivy-operator-adapter-5b849f8bc6
Containers:
  trivy-operator-polr-adapter:
    Container ID:   containerd://2fea4717def8ab8cae27f48f3acf1906a573b2de783c6f1461856ad4c70792fe
    Image:          ghcr.io/fjogeleit/trivy-operator-polr-adapter:0.3.1
    Image ID:       ghcr.io/fjogeleit/trivy-operator-polr-adapter@sha256:f270baae7515b261c82be5de39aac38c14d75c70bcf5cc1afb820b0ed91f265f
    Port:           <none>
    Host Port:      <none>
    State:          Waiting
      Reason:       CrashLoopBackOff
    Last State:     Terminated
      Reason:       Error
      Exit Code:    1
      Started:      Thu, 29 Dec 2022 12:54:28 +0200
      Finished:     Thu, 29 Dec 2022 12:56:29 +0200
    Ready:          False
    Restart Count:  16
    Limits:
      cpu:     100m
      memory:  128Mi
    Requests:
      cpu:        100m
      memory:     128Mi
    Readiness:    exec [/app/trivy-operator-polr-adapter version] delay=0s timeout=1s period=10s #success=1 #failure=3
    Environment:  <none>
    Mounts:
      /app/config.yaml from config-file (ro,path="config.yaml")
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-s8gzt (ro)

trivy-operator-adapter-5b849f8bc6-5j75h                           1/1     Running   16 (6m51s ago)   91m

[INFO] VulnerabilityReports enabled
[INFO] CISKubeBenchReports enabled
I1229 10:48:17.221998       1 request.go:682] Waited for 1.100157662s due to client-side throttling, not priority and fairness, request: GET:https://<IP_ADDRESS>:443/apis/kyverno.io/v1beta1?timeout=32s
I1229 10:48:27.421650       1 request.go:682] Waited for 1.300377222s due to client-side throttling, not priority and fairness, request: GET:https://<IP_ADDRESS>:443/apis/flowcontrol.apiserver.k8s.io/v1beta2?timeout=32s
I1229 10:48:37.422086       1 request.go:682] Waited for 11.300079533s due to client-side throttling, not priority and fairness, request: GET:https://<IP_ADDRESS>:443/apis/helm.toolkit.fluxcd.io/v2beta1?timeout=32s
I1229 10:48:47.622159       1 request.go:682] Waited for 1.501450994s due to client-side throttling, not priority and fairness, request: GET:https://<IP_ADDRESS>:443/apis/events.k8s.io/v1?timeout=32s
I1229 10:48:57.622347       1 request.go:682] Waited for 1.501142727s due to client-side throttling, not priority and fairness, request: GET:https://<IP_ADDRESS>:443/apis/admissionregistration.k8s.io/v1?timeout=32s
I1229 10:49:07.823592       1 request.go:682] Waited for 11.702036764s due to client-side throttling, not priority and fairness, request: GET:https://<IP_ADDRESS>:443/apis/core.strimzi.io/v1beta2?timeout=32s
I1229 10:49:18.022073       1 request.go:682] Waited for 1.901679701s due to client-side throttling, not priority and fairness, request: GET:https://<IP_ADDRESS>:443/apis/flowcontrol.apiserver.k8s.io/v1beta1?timeout=32s
Error: failed to wait for ciskubebench caches to sync: timed out waiting for cache to be synced
Usage:
  trivy-operator-polr-adapter run [flags]

Flags:
  -c, --config string             target configuration file
      --enable-compliance         Enable the transformation of ClusterComplianceDetailReports into ClusterPolicyReports
      --enable-config-audit       Enable the transformation of ConfigAuditReports into PolicyReports
      --enable-exposed-secrets    Enable the transformation of ExposedSecretReports into PolicyReports
      --enable-infra-assessment   Enable the transformation of InfraAssessmentReports into PolicyReports
      --enable-kube-bench         Enable the transformation of CISKubeBenchReports into ClusterPolicyReports
      --enable-rbac-assessment    Enable the transformation of RbacAssessmentReports into PolicyReports
      --enable-vulnerability      Enable the transformation of VulnerabilityReports into PolicyReports
  -h, --help                      help for run
  -k, --kubeconfig string         absolute path to the kubeconfig file

failed to wait for ciskubebench caches to sync: timed out waiting for cache to be synced

but the issue is still existing
The cluster is not so huge, just 140 PODs and 13 nodes

Do you have the cis kube bench CRD installed? This CRD is not available in newer trivy operator versions.

Does it also appear with only vulnerability reports enabled for example?

I don't have cis kube
When i disabled it seems the application is working fine
trivy-operator-adapter-5b849f8bc6-vmzxz   1/1     Running   0          2m38s

$ klf trivy-operator-adapter-5b849f8bc6-vmzxz                                                                                dc06-ldap[14:54:46]
[INFO] VulnerabilityReports enabled

Seems the issue was in this option
Thank you!

I think, maybe disable the options in values.yaml and enable if it's necessary for user. That helps to reduce miss configuration
Also, I wish you Happy New Year!
Thanks

Okay great. CIS Kube Bench is disabled by default and the readme has a deprecation info but I will improve it in the cli output as well.


How to handle "Exception: 'setup.py' does not exist in ..."

When trying to update jsonschema to the latest version, py2pack errors out:
$ py2pack generate -t opensuse.spec -f python-jsonschema.spec jsonschema
generating spec file for jsonschema...
Traceback (most recent call last):
  File "/usr/bin/py2pack", line 10, in <module>
    sys.exit(main())
  File "/usr/lib/python3.10/site-packages/py2pack/__init__.py", line 366, in main
    args.func(args)
  File "/usr/lib/python3.10/site-packages/py2pack/__init__.py", line 255, in generate
    _augment_data_from_tarball(args, tarball_file[0], data)
  File "/usr/lib/python3.10/site-packages/py2pack/__init__.py", line 163, in _augment_data_from_tarball
    data_archive = meta_utils.from_archive(filename)
  File "/usr/lib/python3.10/site-packages/metaextract/utils.py", line 134, in from_archive
    data = _setup_py_run_from_dir(root_dir, py_interpreter)
  File "/usr/lib/python3.10/site-packages/metaextract/utils.py", line 98, in _setup_py_run_from_dir
    raise Exception("'setup.py' does not exist in '%s'" % (
Exception: 'setup.py' does not exist in '/tmp/metaextract_bx91p8iz/jsonschema-4.7.2'

How to handle these cases, where apparently upstream changed the packaging setup?

First of all, using py2pack for upgrading already existing package is rather bad idea. Just use the existing SPEC file, increase Version, download new tarball (using osc service disabledrun download_files), update *.changes (using osc vc), and you can run osc build to test the result.

First of all, using py2pack for upgrading already existing package is rather bad idea. Just use the existing SPEC file, increase Version, download new tarball (using osc service disabledrun download_files), update *.changes (using osc vc), and you can run osc build to test the result.

This error also happens on new packages.
I tried to create hatch_vcs (or hatch-vcs), and had the same error.

hatch-vcs

Yup, another setup.py-less package https://github.com/ofek/hatch-vcs

I've created a PR in metaextract project that should fix this issue: https://github.com/toabctl/metaextract/pull/16
But hatch_vcs will continue failing because it looks like the pyproject.toml file in the current release is broken, it'll be fixed in future releases with this commit: https://github.com/ofek/hatch-vcs/commit/c5388d67192d9bf88191927a35f51705121784a1

There's a new release of metaextract that comes with pyproject support, so updating that, now py2pack should work with this kind of packages.

The current solution in metaextract only works correctly with packages that uses setuptools as build system. For packages that uses flit, hatch poetry or something else, can work, but it generates a lot of warnings and it's not able to get data from dynamic of custom fields.
Maybe it's a good idea to explore the possibility of extend metaextract with support for the most common build systems, or maybe we can just try to get all the metadata from the package itself instead of using the setup.py.
I'll explore different solutions, so maybe this can be improved to work with all these modern python build systems.


Try window manager detection with xprop on Wayland

In some cases (like Gnome and KDE), WM detection with xprop will also work on Wayland.
I will probably work on a more complete Wayland WM detection in the near future, but this will detect Window Managers of the major DEs on Wayland for now.

Yeah it makes sense to not include this in the library, I just wanted to use it as a temporary solution for pfetch-rs, I will probably just implement this detection method there directly and work on a more robust detection for this library in the future.