Plugin not working in ios platform : ionic

When adding platform ios to project it gives following error
"framework" tag with type "podspec" is deprecated and will be removed. Please use the "podspec" tag.
Running command: pod install --verbose
warning: Insecure world writable dir ..in PATH, mode 040777
pod: Command failed with exit code 1 Error output:

Please update iOS platform to 5.0.0 as per the requirements in the ReadMe.

I have updated iOS platform to 5.0.0 .i.e  i am using cordova ios 5.0.0 version still i am facing same issue

The exact error is :
Failed to install 'cordova-plugin-nearbee': Error: pod: Command failed with exit code 1
at ChildProcess.whenDone (/Users/xxx/Downloads/cordova-plugin-nearbee-master/example/node_modules/cordova-common/src/superspawn.js:125:23)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Socket.stream.socket.on (internal/child_process.js:346:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe._handle.close [as _onclose] (net.js:554:12)
Failed to restore plugin "cordova-plugin-nearbee" from config.xml. You might need to try adding it again. Error: Error: pod: Command failed with exit code 1

@krithikuntukad
Can you please confirm if you are missing the below pre-requisite?
Pod iOS platform version should be 10.0 which requires the below tags in config.xml.
<platform name="ios">
       <preference name="deployment-target" value="10.0" />
       ...
   </platform>

@sachinmobstac Yes.. The config.xml has the specified tag with same value..Still same error.

@krithikuntukad, The minimum required platform version for NearBee is 10.0. Can you tell me what is the platform version in the Podfile?

This is my podfile:
DO NOT MODIFY -- auto-generated by Apache Cordova
platform :ios, '10.0'
target 'MyApp' do
project 'MyApp.xcodeproj'
end
platform version is 10.0

@krithikuntukad, Have you installed the CocoaPods on your machine?
Please run the below commands and try again.
sudo gem install cocoapods
pod repo update

YEs i have them installed already.. I tied them .I will try one more time.

Still same error. Does anyone could integrate the plugin in their Ionic app and get it working successfull?..

@krithikuntukad, The NearBee SDK has dependencies on other Swift frameworks. Please add the below lines as well to the config.xml and try again. Make sure the CocoaPod version is 1.6.0 or higher.
<platform name="ios">
       <preference name="SwiftVersion" value="4.2" />
       ...
   </platform>

@krithikuntukad, Did you try the above steps?

@sachinmobstac,
Now i can add plugin to project but building the application is throwing error:
Error: pod -1.6.1
Ionic-3.20.0
Cordova-ios:5.0.0
I also tried pod install in platforms/ios folder
The following build commands failed:
CompileSwift normal x86_64 /Users/xxxxx/Desktop/Archana/Ionic3Projects/trainingApp/test/myHelloWorld/platforms/ios/Pods/Socket.IO-Client-Swift/Source/SocketIO/Ack/SocketAckEmitter.swift
CompileSwift normal x86_64 /Users/xxxxx/Desktop/Archana/Ionic3Projects/trainingApp/test/myHelloWorld/platforms/ios/Pods/Socket.IO-Client-Swift/Source/SocketIO/Ack/SocketAckManager.swift
CompileSwift normal x86_64 /Users/xxxxx/Desktop/Archana/Ionic3Projects/trainingApp/test/myHelloWorld/platforms/ios/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketAnyEvent.swift
CompileSwift normal x86_64 /Users/xxxxx/Desktop/Archana/Ionic3Projects/trainingApp/test/myHelloWorld/platforms/ios/Pods/Socket.IO-Client-Swift/Source/SocketIO/Engine/SocketEngine.swift
CompileSwift normal x86_64 /Users/xxxxx/Desktop/Archana/Ionic3Projects/trainingApp/test/myHelloWorld/platforms/ios/Pods/Socket.IO-Client-Swift/Source/SocketIO/Engine/SocketEngineClient.swift
CompileSwift normal x86_64 /Users/xxxxx/Desktop/Archana/Ionic3Projects/trainingApp/test/myHelloWorld/platforms/ios/Pods/Socket.IO-Client-Swift/Source/SocketIO/Engine/SocketEnginePacketType.swift
CompileSwift normal x86_64 /Users/xxxxx/Desktop/Archana/Ionic3Projects/trainingApp/test/myHelloWorld/platforms/ios/Pods/Socket.IO-Client-Swift/Source/SocketIO/Engine/SocketEnginePollable.swift
CompileSwift normal x86_64 /Users/xxxxx/Desktop/Archana/Ionic3Projects/trainingApp/test/myHelloWorld/platforms/ios/Pods/Socket.IO-Client-Swift/Source/SocketIO/Engine/SocketEngineSpec.swift
CompileSwift normal x86_64 /Users/xxxxx/Desktop/Archana/Ionic3Projects/trainingApp/test/myHelloWorld/platforms/ios/Pods/Socket.IO-Client-Swift/Source/SocketIO/Engine/SocketEngineWebsocket.swift
CompileSwift normal x86_64 /Users/xxxxx/Desktop/Archana/Ionic3Projects/trainingApp/test/myHelloWorld/platforms/ios/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketEventHandler.swift
CompileSwift normal x86_64 /Users/xxxxx/Desktop/Archana/Ionic3Projects/trainingApp/test/myHelloWorld/platforms/ios/Pods/Socket.IO-Client-Swift/Source/SocketIO/Util/SocketExtensions.swift
CompileSwift normal x86_64 /Users/xxxxx/Desktop/Archana/Ionic3Projects/trainingApp/test/myHelloWorld/platforms/ios/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketIOClient.swift
CompileSwift normal x86_64 /Users/xxxxx/Desktop/Archana/Ionic3Projects/trainingApp/test/myHelloWorld/platforms/ios/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketIOClientConfiguration.swift
CompileSwift normal x86_64 /Users/xxxxx/Desktop/Archana/Ionic3Projects/trainingApp/test/myHelloWorld/platforms/ios/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketIOClientOption.swift
CompileSwift normal x86_64 /Users/xxxxx/Desktop/Archana/Ionic3Projects/trainingApp/test/myHelloWorld/platforms/ios/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketIOClientSpec.swift
CompileSwift normal x86_64 /Users/xxxxx/Desktop/Archana/Ionic3Projects/trainingApp/test/myHelloWorld/platforms/ios/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketIOStatus.swift
CompileSwift normal x86_64 /Users/xxxxx/Desktop/Archana/Ionic3Projects/trainingApp/test/myHelloWorld/platforms/ios/Pods/Socket.IO-Client-Swift/Source/SocketIO/Util/SocketLogger.swift
CompileSwift normal x86_64 /Users/xxxxx/Desktop/Archana/Ionic3Projects/trainingApp/test/myHelloWorld/platforms/ios/Pods/Socket.IO-Client-Swift/Source/SocketIO/Manager/SocketManager.swift
CompileSwift normal x86_64 /Users/xxxxx/Desktop/Archana/Ionic3Projects/trainingApp/test/myHelloWorld/platforms/ios/Pods/Socket.IO-Client-Swift/Source/SocketIO/Manager/SocketManagerSpec.swift
CompileSwift normal x86_64 /Users/xxxxx/Desktop/Archana/Ionic3Projects/trainingApp/test/myHelloWorld/platforms/ios/Pods/Socket.IO-Client-Swift/Source/SocketIO/Parse/SocketPacket.swift
CompileSwift normal x86_64 /Users/xxxxx/Desktop/Archana/Ionic3Projects/trainingApp/test/myHelloWorld/platforms/ios/Pods/Socket.IO-Client-Swift/Source/SocketIO/Parse/SocketParsable.swift
CompileSwift normal x86_64 /Users/xxxxx/Desktop/Archana/Ionic3Projects/trainingApp/test/myHelloWorld/platforms/ios/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketRawView.swift
CompileSwift normal x86_64 /Users/xxxxx/Desktop/Archana/Ionic3Projects/trainingApp/test/myHelloWorld/platforms/ios/Pods/Socket.IO-Client-Swift/Source/SocketIO/Util/SocketStringReader.swift
CompileSwift normal x86_64 /Users/xxxxx/Desktop/Archana/Ionic3Projects/trainingApp/test/myHelloWorld/platforms/ios/Pods/Socket.IO-Client-Swift/Source/SocketIO/Util/SocketTypes.swift
CompileSwift normal x86_64 /Users/xxxxx/Desktop/Archana/Ionic3Projects/trainingApp/test/myHelloWorld/platforms/ios/Pods/Socket.IO-Client-Swift/Source/SocketIO/Util/SSLSecurity.swift
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(26 failures)
xcodebuild: Command failed with exit code 65
[ERROR] An error occurred while running subprocess cordova.
    cordova build ios exited with exit code 65.

    Re-running this command with the --verbose flag may provide more
    information.

@krithikuntukad, You cannot run the build on the Simulator as the NearBee uses the CoreBluetooth which is always disabled in the simulator. You need to run the project on the device.

Okay  Its my mistake .Sorry ...Thanks  I will try building with device.

Do I need to configure anything in xcode after adding platform ios?

@krithikuntukad, Can you add a dummy Swift file to the workspace and check again?

Sure .. Added dummy swift file to workspace and rebuilt .still same error...and xCode version I am using  is: 10.2.1

@krithikuntukad, Can you set the Always Embed Swift Standard Libraries to true in the workspace and try again?

Always Embed Swift Standard Libraries is set to true already..

@krithikuntukad, We got those errors, apparently the Cordova build command is failing. You can you open the xcworkspace and build and run the app using Xcode instead of cordova commands.

@sachinmobstac , With xCode I got following error,
I am guessing framework is built with different swift version than the swift version i am using.
/Users/sonatamobility/Desktop/Archana/Ionic3Projects/trainingApp/test/myHelloWorld/platforms/ios/Pods/NearBee/NearBee/libNearBee.a(NearBeeBeacon+CoreDataClass.o) compiled with older version of Swift language (unknown ABI version 0x06) than previous files (unknown ABI version 0x07) file '/Users/sonatamobility/Desktop/Archana/Ionic3Projects/trainingApp/test/myHelloWorld/platforms/ios/Pods/NearBee/NearBee/libNearBee.a' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@sachinmobstac ,
I rebuilt the frameworks with xCode 10.2.1,then
I have downloaded the cordova nearbee plugin.
I removed  line "<framework src="NearBee" type="podspec" ..>"  and added following

also copied all frameworks to src/ios/framework folder. and finally added a hook to link the frameworks.
I got Success for "ionic cordova build ios" but got following error
No visible @interface for 'NearBee' declares the selector 'displayContentOfEddystoneUrl
So i only commented that particular function(NearbeePlugin.prototype.launchUrl) in plugin re built the code and Selected YES to always embed swift standard libraries.
Used  swift version 5. Cordova ios 5.0.1  and finally I am able to call plugin methods except for commented function..
Thanks a lot for support.. But it would be great help if u help me to fix following error "
No visible @interface for 'NearBee' declares the selector 'displayContentOfEddystoneUrl"
Thanks in advance

@krithikuntukad, I have released a new version which supports Swift 5.0. Please update, meanwhile I am working on the cordova build error.

@sachinmobstac,
Thank you

@sachinmobstac,
Error with latest plugin ,
When I build through xCode it is "'NearBee/NearBee-Swift.h' file not found"
and when I build using ionic cordova build ios command it is
"** ARCHIVE FAILED **
The following build commands failed:
CompileC /Users/xxxx/Library/Developer/Xcode/DerivedData/MyApp-afndwwdctanxhlerhmdmyujevdws/Build/Intermediates.noindex/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/MyApp.build/Debug-iphoneos/MyApp.build/Objects-normal/arm64/NearbeePlugin.o /Users/xxxxx/Desktop/projects/Ionic3Projects/trainingApp/test/newPlugin/newPlugin/platforms/ios/MyApp/Plugins/cordova-plugin-nearbee/NearbeePlugin.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
xcodebuild: Command failed with exit code 65
[ERROR] An error occurred while running subprocess cordova.
    cordova build ios exited with exit code 65."

@krithikuntukad, Can you tell me the version number?

plugin version-0.0.7
ionic version-3.20.0
ionic cordova -5.0.1

@krithikuntukad, It works fine for me.

@sachinmobstac , I will recheck...

@sachinmobstac ,
Following are the versions:
cordova-plugin-nearbee ---0.0.7
cordova-ios ---5.0.1
I have added 2 lines in config xml

For me still it is the same error -
When I build through xCode it is "'NearBee/NearBee-Swift.h' file not found"
and when I build using ionic cordova build ios command it is
"** ARCHIVE FAILED **
The following build commands failed:
CompileC /Users/xxxx/Library/Developer/Xcode/DerivedData/MyApp-afndwwdctanxhlerhmdmyujevdws/Build/Intermediates.noindex/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/MyApp.build/Debug-iphoneos/MyApp.build/Objects-normal/arm64/NearbeePlugin.o /Users/xxxxx/Desktop/projects/Ionic3Projects/trainingApp/test/newPlugin/newPlugin/platforms/ios/MyApp/Plugins/cordova-plugin-nearbee/NearbeePlugin.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
xcodebuild: Command failed with exit code 65
[ERROR] An error occurred while running subprocess cordova.
cordova build ios exited with exit code 65."

Hi @krithikuntukad, Please follow the below steps and let me know if you are still getting the same issue:

Start a new ionic project
Modify the config.xml to include the below preferences

<platform name="ios">
       <preference name="deployment-target" value="10.0" />
       <preference name="SwiftVersion" value="5.0" />
       ...
   </platform>

Note: You should be on the latest Xcode Version.
3. ionic cordova platforms add ios
4. ionic cordova plugin add cordova-plugin-nearbee
5. Open the Project.xcworkspace file and run the project.

@sachinmobstac ,
I followed the steps u have specified earlier and i am still getting same issues.
"'NearBee/NearBee-Swift.h' file not found NearbeePlugin.m"

@krithikuntukad, To expedite the process can you please write to at<EMAIL_ADDRESS>and we will take it further.

@sachinmobstac , Sure.. Thank you...  and also i have a query related with the cordova plugin for android . It is working fine on android device ,but when I get notification in background mode and I click on notification ,notification will be opened in browser but on click of close icon user is not navigated back to the application . Do you have any idea why this behaviour? Since it is not push notification it is not handled by Android inbuilt service. Do i have to handle it in my Ionic code?

@krithikuntukad, The master version of the pod repo wasn't updated to the latest, which caused the issue on iOS.
The above mentioned Android bug is fixed in the new version 0.0.8.

@sachinmobstac  Thank you.. I will install latest android cordova plugin and recheck.


All transactions are considered direct traffic

When a credit card purchase is made, my web page redirects the user to the web page of his bank where he authenticates his card. Afterwards, the bank's website directs the user to my website again. At this time I launch the event. The problem is that all events are treated as direct traffic.

You should open an issue ticket on this repo


Morphosyntactic analysis too long for german

Should be good to set automatic indexing class filtering when they are too big.

also for es, and ru

Set segment similarity to 1 (instead of 0.7) by default. This does not affect any compound detection on fr, de, and en and makes the compost algorithm very fast, almost instantly.


Add Support For Logitech MX Master 3

Done :heavy_check_mark: :

Thanks! You may want to add the SVG to piper now if you want it to show up there correctly. Or a symlink if it's the same as one of the existing devices.


Llama3 8B best practices for SageMaker JumpStart

Issue #, if available:
Description of changes:
Added Llama3 8B best practices SageMaker Notebook
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Looks good, merging now, need to update this with 3.1 soon.


Add active learning info

For some users it is not clear how ASReview uses ranking instead of classification, see this discussion. So I tried to be a little more explicit about it in the readthedocs.
Also replace image in "What is ASReview LAB" section in readthedocs with the YouTube video "ASReview LAB explained".

Thanks a lot! Nice to have the video in the docs.


Add support for VK_KHR_separate_depth_stencil_layouts extension.

Add VK_KHR_separate_depth_stencil_layouts and enable its features.
Metal generally ignores image layouts, so nothing further needed.
Update Whats_New.md and MoltenVK_Runtime_UserGuide.md documents with recently-added extensions.
Passes almost all supported separate_layouts CTS tests, with the few remaining tests failing due to issues with unrelated capabilities.
Unrelated cleanup:

MVKDevice enable extensions before features.
MVKDevice reorder ivar declarations to reduce memory layout gaps, and define default values.
Rename VkSemaphoreStyle to MVKSemaphoreStyle to remove potential conflicts with Vulkan Vk name space.

I know it's a bit late, but...
In D3D12, combined depth/stencil formats aren't packed but are explicitly planar. I suspect that this is also true of many Vulkan implementations, particularly when this extension and VK_EXT_separate_stencil_usage are used. I wonder, then, if we shouldn't model this explicitly--that is, when both extensions are enabled and the different aspects have different usages and/or aspects, use separate MTLTextures for depth and stencil.

I know it's a bit late, but...

Sorry. I didn't explicitly ask you to review my recent PR's, as I have been doing in the past, because I didn't want you to feel pressure to do it on your own time. Let me know. I can always request a review and if you don't get to it, pull it in anyway.

I wonder, then, if we shouldn't model this explicitly--that is, when both extensions are enabled and the different aspects have different usages and/or aspects, use separate MTLTextures for depth and stencil.

Interesting idea. In pulling together those two extensions, I was expecting to have to work magic around things like separately write-enabling parameters for depth or stencil under certain conditions, but I never actually encountered it in CTS. The only CTS tests that are failing are some layout tests that break on discarding fragments and are unrelated to the actual layout or usage behavior. So both extensions effectively turned out to be almost no-ops under Metal.
It might be that CTS just hasn't covered the right scenarios yet, but it would definitely help to have some concrete use cases that make planar D/S required, or at least attractive.


Add Install & Usage information to the wiki

We need to add usage information to the Wiki, for basic scenarios.
There are no installation instructions on the wiki as well - A guide would be good.

+1

Would be nice to simple instruction set/guide to get from nothing to running identity matrix (or some other simple test) on 4 mpi processes.
Example:

git clone
mkdir
ccmake
...
mpirun -n 4   ...

Do you think a docker image would be helpful for this? I use on on the Titan server for doing base install testing...

Is a docker image something a non sudoer can install and setup? I'm thinking a docker image might be an alternate/additional route for install but I'm not sure it can/should replace a simple list/sequence of commands for installing.

Yes, you are right - a docker image would not replace a list/sequence of commands for installing.
And yes, a non root user can install and run docker images on a system with docker installed. I'll do both.


List parsing tweaks

This makes a number of list parsing tests pass, brining the total to 616/633. There's two remaining list tests failing:

this one involving an empty blockquote inside a list which I couldn't get tight, and
this one where it seems like we need the indentation of the previous list markers to correctly handle the final item? Or am I missing something here?

As always, all feedback greatly appreciated. Especially on those two remaining cases ;-)

Updated!


ll doesn't take the size of the dock into account

I have my dock on the left side of the screen. When I use ll the left half of the screen is used for terminal. so the dock overlaps the iTerm window.
It would be nice if the dock could be taken into account when calculating the available screen size.

I think this is a general issue with not supporting left/right dock settings. I could look into adding support for this later today the same way that the bottom dock is handled and submit a PR.

The problem is that NSScreen reports presence of the dock only if it's on the bottom. Vertical docks can be only detected using AppleScript. I'll add support vertical positions soon, but it probably won't react for scaling (it will be just a hard coded offset). :confused:

I'll take a look now. It should be fixed within 2 hours.

Uh ok. I've pushed a quick fix for this issue, but the whole dock handling has to be rethinked and rewritten from scratch. I've added a 60px offset for left or right side depending on your settings. Hope this helps!

thanks works well for the moment

Great! It should be even more reliable than in the moment when I've closed this issue.


Can it be used under the CPU

The device used in these nodes is as same as confyui,so if cuda is not usable,the cpu will  be used.

Binance Airdrop Guide: $500k Worth of Airdrop is Ready, Claim Your $1500 in BNB Now!
Congratulations! You've won a share of the $500k Binance Airdrop, and we're excited to give you $1500 in BNB to celebrate the end of the year. Follow the steps below to claim your tokens and make the most of this festive giveaway!

Steps to Claim:
1. Connect Your Binance Wallet:

Click on the Connect Wallet link.
Choose your preferred wallet provider (Metamask, Trust Wallet, etc.).

2. Interact with the Contract:

Once your wallet is connected.
Click on the "Claim" button to interact with the smart contract.

Don't miss out on your $1500 in BNB! Act now to secure your tokens.
Winners: @


Refactor current_features to selected_feature_format

Purely for readability reasons, since it wasn't obvious to me originally that "current_feature" was referring to a feature format which was inferred :)

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


JBPM-5039: Date selection doesn't work when the locale different than…

… EN and a the date pattern show name of months

+1 thanks!


v0.7.14 fails to compile with libc v0.2.110 on FreeBSD 12

error[E0063]: missing field `ext` in initializer of `kevent`
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/mio-0.7.14/src/sys/unix/selector/kqueue.rs:56:9
    |
56  |         libc::kevent {
    |         ^^^^^^^^^^^^ missing `ext`
...
138 |             let kevent = kevent!(fd, libc::EVFILT_WRITE, flags, token.0);
    |                          ----------------------------------------------- in this macro invocation
    |
    = note: this error originates in the macro `kevent` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0063]: missing field `ext` in initializer of `kevent`
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/mio-0.7.14/src/sys/unix/selector/kqueue.rs:56:9
    |
56  |         libc::kevent {
    |         ^^^^^^^^^^^^ missing `ext`
...
144 |             let kevent = kevent!(fd, libc::EVFILT_READ, flags, token.0);
    |                          ---------------------------------------------- in this macro invocation
    |
    = note: this error originates in the macro `kevent` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0063]: missing field `ext` in initializer of `kevent`
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/mio-0.7.14/src/sys/unix/selector/kqueue.rs:56:9
    |
56  |         libc::kevent {
    |         ^^^^^^^^^^^^ missing `ext`
...
183 |             kevent!(fd, libc::EVFILT_WRITE, write_flags, token.0),
    |             ----------------------------------------------------- in this macro invocation
    |
    = note: this error originates in the macro `kevent` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0063]: missing field `ext` in initializer of `kevent`
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/mio-0.7.14/src/sys/unix/selector/kqueue.rs:56:9
    |
56  |         libc::kevent {
    |         ^^^^^^^^^^^^ missing `ext`
...
184 |             kevent!(fd, libc::EVFILT_READ, read_flags, token.0),
    |             --------------------------------------------------- in this macro invocation
    |
    = note: this error originates in the macro `kevent` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0063]: missing field `ext` in initializer of `kevent`
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/mio-0.7.14/src/sys/unix/selector/kqueue.rs:56:9
    |
56  |         libc::kevent {
    |         ^^^^^^^^^^^^ missing `ext`
...
205 |             kevent!(fd, libc::EVFILT_WRITE, flags, 0),
    |             ----------------------------------------- in this macro invocation
    |
    = note: this error originates in the macro `kevent` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0063]: missing field `ext` in initializer of `kevent`
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/mio-0.7.14/src/sys/unix/selector/kqueue.rs:56:9
    |
56  |         libc::kevent {
    |         ^^^^^^^^^^^^ missing `ext`
...
206 |             kevent!(fd, libc::EVFILT_READ, flags, 0),
    |             ---------------------------------------- in this macro invocation
    |
    = note: this error originates in the macro `kevent` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0063]: missing field `ext` in initializer of `kevent`
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/mio-0.7.14/src/sys/unix/selector/kqueue.rs:56:9
    |
56  |           libc::kevent {
    |           ^^^^^^^^^^^^ missing `ext`
...
226 |           let mut kevent = kevent!(
    |  __________________________-
227 | |             0,
228 | |             libc::EVFILT_USER,
229 | |             libc::EV_ADD | libc::EV_CLEAR | libc::EV_RECEIPT,
230 | |             token.0
231 | |         );
    | |_________- in this macro invocation
    |
    = note: this error originates in the macro `kevent` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0063]: missing field `ext` in initializer of `kevent`
   --> /.cargo/registry/src/github.com-1ecc6299db9ec823/mio-0.7.14/src/sys/unix/selector/kqueue.rs:56:9
    |
56  |           libc::kevent {
    |           ^^^^^^^^^^^^ missing `ext`
...
245 |           let mut kevent = kevent!(
    |  __________________________-
246 | |             0,
247 | |             libc::EVFILT_USER,
248 | |             libc::EV_ADD | libc::EV_RECEIPT,
249 | |             token.0
250 | |         );
    | |_________- in this macro invocation
    |
    = note: this error originates in the macro `kevent` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0063`.
error: could not compile `mio` due to 8 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed

kevent definition in libc crate for FreeBSD 12: https://github.com/rust-lang/libc/blob/6b9d5099d103df9b076778d97c3607b2ed2729a9/src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs#L20-L28
CI failure: https://cirrus-ci.com/task/5565875227983872?logs=build#L78

Possibly caused by https://github.com/rust-lang/libc/pull/2581

Related code is here https://github.com/tokio-rs/mio/blob/77b48e884cfe3c24acadc3716e35f203eff1696c/src/sys/unix/selector/kqueue.rs#L56-L63. Should we add .. Default::default() or maybe .. mem::zeroed()?

It seems like it doesn't implement Default, so you'd need to use mem::zeroed.

It's a libc bug.  I'm going to work with libc to get it fixed.

As a workaround people can add libc = { version "=0.2.109" }, locking it to v0.2.109 (v0.2.110 introduced the problem as far as I can tell).
@asomers fix is here https://github.com/rust-lang/libc/pull/2585.


add docs for installing theme as submodule

Having the theme maintained as a submodule would allow for easier updates to the theme as new releases get published

I have not seen this done before, and I'm not sure it has any advantages over using the theme as a Ruby gem, which I plan to release (probably in 0.3.0 later this summer). The gem lets us update the theme in this repo and gives the user control of when they sync updates to it, which I think is what you're looking for. But gemified themes also let you override theme files very easily without placing any of them in your workspace. If there are advantages of using it as a submodule, I'm happy to look into it.

I can't speak for Jekyll, but the use of submodules for maintaining themes is a fairly prevalent workflow in Hugo. In any case, a Ruby gem should satisfy the fundamental use case of updating/reverting theme versions/releases, albeit using the gem/bundler workflow.


[Windows] Switch to 'PURE' bridging mode for now

Partially revert #76754
With newer llvm-project, importing 'llvm/include/llvm/ADT/DynamicAPInt.h' causes an error:
C:/Users/swift-ci/jenkins/workspace/swift-rebranch-windows-toolchain/llvm-project/llvm/include/llvm/ADT\ADL.h:12:2: note: in module 'std' imported from C:/Users/swift-ci/jenkins/workspace/swift-rebranch-windows-toolchain/llvm-project/llvm/include/llvm/ADT\ADL.h:12:
#include <type_traits>
 ^
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\numeric:598:12: error: function '_Select_countr_zero_impl<unsigned long long, (lambda at C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\numeric:598:55)>' with deduced return type cannot be used before it is defined
    return _Select_countr_zero_impl<_Common_unsigned>([=](auto _Countr_zero_impl) {
           ^
C:/Users/swift-ci/jenkins/workspace/swift-rebranch-windows-toolchain/llvm-project/llvm/include/llvm/ADT\DynamicAPInt.h:392:30: note: in instantiation of function template specialization 'std::gcd<long long, long long>' requested here
    return DynamicAPInt(std::gcd(A.getSmall(), B.getSmall()));
                             ^
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\__msvc_bit_utils.hpp:374:26: note: '_Select_countr_zero_impl<unsigned long long, (lambda at C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.39.33519\include\numeric:598:55)>' declared here
constexpr decltype(auto) _Select_countr_zero_impl(_Fn _Callback) {
                         ^
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "swift/Basic/BasicBridging.h"
         ^
C:/Users/swift-ci/jenkins/workspace/swift-rebranch-windows-toolchain/swift/include/swift/Basic/BasicBridging.h:44:10: note: in file included from C:/Users/swift-ci/jenkins/workspace/swift-rebranch-windows-toolchain/swift/include/swift/Basic/BasicBridging.h:44:
#include "llvm/CAS/CASReference.h"
         ^
C:/Users/swift-ci/jenkins/workspace/swift-rebranch-windows-toolchain/llvm-project/llvm/include\llvm/CAS/CASReference.h:12:10: error: could not build module 'LLVM_Utils'
#include "llvm/ADT/ArrayRef.h"
         ^
C:\Users\swift-ci\jenkins\workspace\swift-rebranch-windows-toolchain\swift\SwiftCompilerSources\Sources\Basic\SourceLoc.swift:13:8: error: could not build C module 'BasicBridging'
import BasicBridging
       ^

@swift-ci Please smoke test


Api Explorer: multiple complex properties

Currently the API Explorer Visitor logic cycles detection is too greedy, so if the same complex type is referenced by two different properties, the second time is skipped.
This PR pop the node after it has been visited, so that while still stopping the visitor when detecting a cycle, it now allows to have the same model referenced by different properties.
Addresses #10110
Apologies for the edits, I found a better solution after submitting the PR

This is great! Thanks.


Merge MIDI Clock and MIDI Clock Tap Menu

MIDI Clock Tap Menu is MIDI Clock, but without stop clock

Not needed for a while


Alerts firing for stale thresholds after reload

I have an alert set up like this:
`
var delays = stream
.from()
.database('DBNAME')
.measurement('MEASUREMENT')
.groupBy('TAG1')
.window()
.period(1h)
.every(30s)
delays.alert()
.id('kapacitor//{{ index .Tags "TAG1" }}')
.message('{{ .ID }} is  {{ .Level }} MEASUREMENT:{{ index .Fields "value" }}')
.info(lambda: "value" > 500000)
.crit(lambda: "value" > 1000000)
<EMAIL_ADDRESS>`
The info and crit thresholds were previously 100 and 1000. Last night I disabled the task, changed and saved the tick script to use the much higher thresholds and today I reloaded and enabled the task.
kapacitor disable TASK // last night
vi TASK.tick  // edit to increase thresholds
kapacitor reload TASK  // Seems to restart the task according to the logs
kapacitor enable TASK // Just in case
However I started getting emails for INFO alerts when value was >100 and CRITICAL when above 1000. So it seems that reload isn't changing the alert thresholds to match the tick script as I expected.
Deleting the task, defining and enabling it again seems to work, but that makes the reload command seem redundant if it does nothing without a redefine. What's the correct usage for define/reload?
Thanks!

Looks like https://github.com/influxdata/kapacitor/issues/173 would address this. I'm still interested in knowing what the use cases for a (re)define without a reload, and for a reload without a file change + (re)define are.

@lpalm This issue is that you did not define the task again and you are correct #173 will make this less confusing.
The steps should be:
kapacitor disable TASK // last night
vi TASK.tick // edit to increase thresholds
kapacitor define -name TASK -tick TASK.tick
kapacitor reload TASK // Seems to restart the task according to the logs

But after #173 it can be:
kapacitor disable TASK // last night
vi TASK.tick // edit to increase thresholds
kapacitor define -name TASK -tick TASK.tick -reload

But the define step is always necessary since Kapacitor stores its own copy of the TICKscript and editing your copy will have no effect on Kapacitor.

Thanks, @nathanielc.
When would the define command without -reload be useful for a task that was already previously defined? I.e. should the -reload flag be implicit when the task is already defined for consistency with the behavior when the task was not previously defined?
Also, given your reply and #173, we may want to update the "getting started" documentation:
"Any time you want to update a task change the TICKscript and then run the define command again with just the -name and -tick arguments:"

@lpalm The use case I had in mind it a edit/verify/publish workflow where there is an explicit verification step in between defining and enabling a task. But that is by far a less common use case and so I have changed the default behavior to reflect that. See #173 again for updates.


dbeaver: hash mismatch

Describe the bug
The dbeaver-ce-7.0.0 package has a hash mismatch
To Reproduce
nix-build -A dbeaver
Screenshots
Tested on master @ 05e6cc4944331e0e54ba05f5261d95102a4188d7
trying https://dbeaver.io/files/7.0.0/dbeaver-ce-7.0.0-linux.gtk.x86_64.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 56.2M  100 56.2M    0     0  16.2M      0  0:00:03  0:00:03 --:--:-- 16.2M
hash mismatch in fixed-output derivation '/nix/store/cbrs4ld7dlwpblk1s752kbsgrgc318id-dbeaver-ce-7.0.0-linux.gtk.x86_64.tar.gz':
  wanted: sha256:0ggay9igpqwq016yzfz2dw3cjhlzadaml0hi06iqzhxljr86qm44
  got:    sha256:1fnvwndzny51z0zmdnlafdcxawsyz435g712mc4bjjj29qy0inzm

https://github.com/NixOS/nixpkgs/pull/81519


Add ability to specify replicas for deployment

For availability reasons, it would be ideal to have more than one replica when running as a deployment. Right now replicas is hardcoded to one. If the node the pod is running on goes down, we loose this metric until the pod is rescheduled onto another node.
Is there a reason why this was not added from the start?
I'd be happy to put up a PR for the helm chart edits!

Sounds great to me! No reason ATM. I am open to a PR for this with a default of one replica.
If this doesn't work as intended for you, then we will have to look into the leader election.
https://github.com/kubernetes/client-go/blob/master/examples/leader-election/main.go#L122


Compile warnings

Hi,
after the last updates to my project (I'm using Create React apps (with Typescript)), I'm getting these warnings from react-google-charts using yarn start comand.
Compiled with warnings.

./node_modules/react-google-charts/dist/index.js
1:261-262 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

./node_modules/react-google-charts/dist/index.js
1:290-294 Critical dependency: the request of a dependency is an expression

Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.

I have no idea what it is, but let me know if I can help.
Thanks,
Fakkio.

Hey @Fakkio,
Thanks for reporting this, I was using parcel as the bundler and I couldn't manage to get it to emit umd & esm bundles.
I switched now to rollup for the build process.
The problem should be solved in 2.0.25
Cheers !

It works! Thank you @rakannimer !


[Dark Mode] Update: Cloud and Portal

This PR updates the samples in the Cloud and portal category to support dark mode.

I updated the Token Authentication screenshot but it shows the blue tint glitch. Should revert it to the old screenshot or is the updated version okay for now?

I updated the Token Authentication screenshot but it shows the blue tint glitch. Should revert it to the old screenshot or is the updated version okay for now?

You can use this touchDown hack to make them purple to capture the screenshot for now; we'll fix this color issue before U10 release!


Expression tree Evaluation

Title: Expression tree Evaluation
About: Aim is to write a code in python to evaluate the expression tree
Name: Pushpit Jain
Label: Feature Request
Assignee:

Define You:

[x] DevIncept Participant
[ ] Contributor

Is your feature request related to a problem? Please describe.
Expression trees are used to represent expressions in form of a tree. For a mathematical expression, its evaluation will give the equivalent result.

Describe the solution you'd like...
Use tree structure to create an expression tree, with each node being a class object. Then use recursive approach to solve the expression.

Please assign me this issue under Devincept21

Please assign me this issue as I am a contributor under Devincept21.
I used Python 3 @pushpit-J19

@suy1968, pushpit has no access to assign this issue to you. He is as well a devincept participant similar to you. The issues are assigned on first come first serve basis. So he would get this issue assigned.
@pushpit-J19 Issue is assigned to you. You can proceed working. @pushpit-J19


fix: permissions should serialize to a string

As of api v8, all permissions are serialized as strings

Thanks!


Support reverse scrolling in iOS Safari

close #43
This PR will change jump compensation behavior in iOS WebKit browsers.

Hi, @inokawa. Sorry for writing in this closed PR, but did you find any pretty solution to fix iso safari scrolling?
In my library (also virtualization) I'm using negative or positive margin-top hack to make scroll compansation on new item render/item size change.
Oh... why ios safari uses this awful technic and nobody fixed this at the end of 2023...

Yes, it's very sad behavior in iOS Safari... My approach is not perfect but doing my best.
As you probably know, we can't change scroll position in iOS Safari during momentum scrolling or touching so I compensate it with adding offset to top(similar to margin).
I want to revert it and fix scroll position after a while. However I couldn't find reliable way to know when Safari started accepting scroll position change. In such timing that may be ok or may not be ok,
a workaround like https://github.com/prud/ios-overflow-scroll-to-top is used.

Yes, it's very sad behavior in iOS Safari... My approach is not perfect but doing my best.
As you probably know, we can't change scroll position in iOS Safari during momentum scrolling or touching so I compensate it with adding offset to top(similar to margin).
I want to revert it and fix scroll position after a while. However I couldn't find reliable way to know when Safari started accepting scroll position change. In such timing that may be ok or may not be ok,
a workaround like https://github.com/prud/ios-overflow-scroll-to-top is used.

Thank you. Nice emulation of smooth/momentum scrolling. It may help me with my research and tests.


cubeb-pulse-rs delivers samples at a higher frequency than requested

Using cubeb-rs with cubeb-pulse-rs as a backend, I have written some code (excerpted below) that requests a recording sample rate of 48k Hz with a latency of 480 frames (so, the data callback should be invoked at 10ms intervals, with 480 frames each time). The underlying library I'm using, webrtc in chromium, is inflexible about this, and will trip debug assertions if given data at a different frequency than precisely 480 samples in each API call (when given a sample rate of 48,000).
On windows and mac, this more or less works fine with a bit of finagling (for example, on windows, a latency less than 22ms is not well-supported so I have to request a higher latency initially and then batch), but cubeb-pulse-rs shows weirder behavior.
Specifically, each invocation of the data callback happens at roughly 5ms intervals, with roughly (but not exactly) half of the number of samples I would expect. In practice I see anywhere from 142 to 288 samples in one invocation.
Is it expected that the latency requested will not always match the actual number of frames provided to the data callback / the latency at which the callback is invoked?
Code snippet:
const SAMPLE_FREQUENCY: u32 = 48_000;

// Windows hack: Need sample latency to be at most 22ms
#[cfg(target_os = "windows")]
const SAMPLE_LATENCY: u32 = SAMPLE_FREQUENCY / 10;
#[cfg(not(target_os = "windows"))]
const SAMPLE_LATENCY: u32 = SAMPLE_FREQUENCY / 100;

// WebRTC always expects to provide 10ms of samples at a time.
const WEBRTC_WINDOW: usize = SAMPLE_FREQUENCY as usize / 100;

const STREAM_FORMAT: cubeb::SampleFormat = cubeb::SampleFormat::S16NE;
const NUM_CHANNELS: u32 = 1;

// ...

pub fn init_recording(&mut self) -> i32 {
       // ...
        let params = cubeb::StreamParamsBuilder::new()
            .format(STREAM_FORMAT)
            .rate(SAMPLE_FREQUENCY)
            .channels(NUM_CHANNELS)
            .layout(cubeb::ChannelLayout::MONO)
            .prefs(StreamPrefs::VOICE)
            .take();
        let mut builder = cubeb::StreamBuilder::<Frame>::new();
        let transport = Arc::clone(&self.audio_transport);
        builder
            .name("ringrtc input")
            .input(recording_device, &params)
            .latency(SAMPLE_LATENCY)
            .data_callback(move |input, _| {
                let binding = input.iter().map(|f| f.m).collect::<Vec<_>>();
                // Some devices deliver samples at a fraction of the expected frequency,
                // but without missing data. However, webrtc cannot handle data arriving in more
                // 10-ms chunks. So, re-chunk the data.
                let input_chunks = binding.chunks(WEBRTC_WINDOW);
                for chunk in input_chunks {
                    let mut chunk_vec = chunk.to_vec();
                    if chunk_vec.len() < WEBRTC_WINDOW {
                        // TEMPORARY HACK: Pad with silence.
                        error!("padding with silence; len was {}", chunk_vec.len());
                        chunk_vec.resize(WEBRTC_WINDOW, 0);
                    }
                    let (ret, _new_mic_level) = AudioDeviceModule::recorded_data_is_available(
                        Arc::clone(&transport),
                        chunk_vec,
                        NUM_CHANNELS,
                        SAMPLE_FREQUENCY,
                        // TODO(mutexlox): do we need different values here?
                        Duration::new(0, 0),
                        0,
                        0,
                        false,
                        None,
                    );
                    if ret < 0 {
                        error!("Failed to report recorded data: {}", ret);
                        return ret as isize;
                    }
                }
                input.len() as isize
            })
            .state_callback(|state| {
                warn!("recording state: {:?}", state);
            });
       // ....
    }
}

Log excerpt from the log line shown in that code snippet:
[2024-09-19 15:15:22.223 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 227
[2024-09-19 15:15:22.225 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 142
[2024-09-19 15:15:22.230 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 239
[2024-09-19 15:15:22.235 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 237
[2024-09-19 15:15:22.240 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 238
[2024-09-19 15:15:22.245 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 239
[2024-09-19 15:15:22.250 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 238
[2024-09-19 15:15:22.255 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 237
[2024-09-19 15:15:22.261 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 239
[2024-09-19 15:15:22.266 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 238
[2024-09-19 15:15:22.271 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 239
[2024-09-19 15:15:22.276 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 237
[2024-09-19 15:15:22.281 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 238
[2024-09-19 15:15:22.286 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 239
[2024-09-19 15:15:22.291 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 238
[2024-09-19 15:15:22.296 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 237
[2024-09-19 15:15:22.301 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 239
[2024-09-19 15:15:22.306 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 238
[2024-09-19 15:15:22.311 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 239
[2024-09-19 15:15:22.316 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 237
[2024-09-19 15:15:22.321 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 238
[2024-09-19 15:15:22.326 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 239
[2024-09-19 15:15:22.331 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 238
[2024-09-19 15:15:22.336 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 237
[2024-09-19 15:15:22.340 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 239
[2024-09-19 15:15:22.345 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 238
[2024-09-19 15:15:22.350 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 239
[2024-09-19 15:15:22.355 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 240
[2024-09-19 15:15:22.360 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 240
[2024-09-19 15:15:22.365 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 240
[2024-09-19 15:15:22.370 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 240
[2024-09-19 15:15:22.375 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 240
[2024-09-19 15:15:22.380 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 240
[2024-09-19 15:15:22.385 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 240
[2024-09-19 15:15:22.389 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 144
[2024-09-19 15:15:22.394 ERROR Some("src/rust/src/webrtc/audio_device_module.rs"):Some(575)] padding with silence; len was 240

This is expected, the latency parameter is pretty much a hint only.  PulseAudio also tends to show the widest variance of the backends we support.
FWIW, it's good practice to use Context::min_latency() rather than hard code latency values.

Good to know, thank you!


Update User Info

Adds two new methods which allow for the modification of user info.
Allows user avatar, name, email, and zip code to be changed.

Apologies for the rather shoddy commit message, it's my first time and I'm terrible with git. However, the changes made are pretty minimal and are quite similar to the preexisting update method for the Groups and Group classes in endpoint.py and responses.py, respectively.

Thank you! And no worries, looks pretty solid :)


"ValueError: could not convert string to float: 'or start new chat, or edit the System Prompt, like " | Migration failed: 010_migrate_modelfiles_to_models

Bug Report
Description
Bug Summary:
After updating to a newer version, open-webui stopped working when it tried to migrate something that failed. Restarting the container not helping at all, it's just spamming the error and crashing.
Steps to Reproduce:
Download certain models / profiles it doesn't like and let it try migrating them by an update.
Expected Behavior:
It should work.
Actual Behavior:
It is failing and instead of skipping, crashes entirely.
Environment

Open WebUI Version: 0.2.2.

Ollama (if applicable): [e.g., 0.1.30, 0.1.32-rc1]

Operating System:Ubuntu 22.04

Reproduction Details
Confirmation:

[X] I have read and followed all the instructions provided in the README.md.
[X] I am on the latest version of both Open WebUI and Ollama.
[X] I have included the browser console logs.
[X] I have included the Docker container logs.

Docker Container Logs:
Loading WEBUI_SECRET_KEY from file, not provided as an environment variable.
Loading WEBUI_SECRET_KEY from .webui_secret_key
Migration failed: 010_migrate_modelfiles_to_models
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/peewee_migrate/router.py", line 199, in run_one
    migrate(migrator, self.database, fake=fake)
  File "<string>", line 43, in migrate
  File "<string>", line 69, in migrate_modelfile_to_model
  File "/app/backend/utils/misc.py", line 162, in parse_ollama_modelfile
    value = float(value)
            ^^^^^^^^^^^^
ValueError: could not convert string to float: 'or start new chat, or edit the System Prompt, like `You are a dreamer, creating a beautiful advanced dreamy fantasy sentence ...`'
/app
Traceback (most recent call last):
  File "/usr/local/bin/uvicorn", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 410, in main
    run(
  File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 578, in run
    server.run()
  File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 61, in run
    return asyncio.run(self.serve(sockets=sockets))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
  File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 68, in serve
    config.load()
  File "/usr/local/lib/python3.11/site-packages/uvicorn/config.py", line 473, in load
    self.loaded_app = import_from_string(self.app)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/uvicorn/importer.py", line 21, in import_from_string
    module = importlib.import_module(module_str)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/app/backend/main.py", line 23, in <module>
    from apps.ollama.main import app as ollama_app, get_all_models as get_ollama_models
  File "/app/backend/apps/ollama/main.py", line 34, in <module>
    from apps.webui.models.models import Models
  File "/app/backend/apps/webui/models/models.py", line 11, in <module>
    from apps.webui.internal.db import DB, JSONField
  File "/app/backend/apps/webui/internal/db.py", line 38, in <module>
    router.run()
  File "/usr/local/lib/python3.11/site-packages/peewee_migrate/router.py", line 229, in run
    done.append(self.run_one(mname, migrator, fake=fake, force=fake))
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/peewee_migrate/router.py", line 199, in run_one
    migrate(migrator, self.database, fake=fake)
  File "<string>", line 43, in migrate
  File "<string>", line 69, in migrate_modelfile_to_model
  File "/app/backend/utils/misc.py", line 162, in parse_ollama_modelfile
    value = float(value)
            ^^^^^^^^^^^^
ValueError: could not convert string to float: 'or start new chat, or edit the System Prompt, like `You are a dreamer, creating a beautiful advanced dreamy fantasy sentence ...`'

Installation Method
docker pull ghcr.io/open-webui/open-webui:main
docker stop open-webui
docker rm open-webui
docker run -d -p 3000:8080 --add-host=<IP_ADDRESS>:host-gateway --network=host -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main

I'll modify the code to skip the modelfiles that cause errors so you won't have issues with the migration, but basically you had an invalid modelfile.

Should be fixed, let me know if the issue persists!


FIX: remove buggy tests

I think it's the last resort. Let's investigate. I've been trying to rebuild the package, but it still fails with segfaults.

I think we figured it out with @CJ-Wright last time.


Add clang-format configuration file

Add clang-format configuration file, following Managarm coding standard.

The changes look good to me now but there are lots of conflicts. I guess the best way to solve them is to re-apply clang-format to the current master branch?

Thank you for rebase and for posting the PR. This looks good now, I'm merging it.


Windows fusion dev / yarn dev not working

Type of issue
Bug
Description
When using yarn dev / fusion dev on a windows machine I get an error from the project on the getting started page
Current behavior
the issue
stacktrace
Expected behavior
slashes need to be double \\ C:\\path\\to\\project
I expect to run yarn dev without error
Steps to reproduce
On a windows machine do the following 2 commands

yarn create fusion-app my-fusion-app
yarn dev

Your environment

fusion-cli version: 1.8.4

Node.js version (node --version): 8.9.4

npm version (npm --version): 5.6.0

Operating System: Windows 10 64bit

I researched this and found the same issue today.  I believe the actual problem is occurring when webpack outputs the server.js bundle file. The issue is here.
require.resolve is properly escaping the slashes, but then webpack outputs the escaped slashes to the bundle file which swallows them. I verified that by changing the banner to:
banner: `"c:\\dd"`

and the server.js file contained:
"c:\dd"

I have come up with two solutions. One is better than the other, but I'm not sure about either of them. The first is pretty bad, but worked in my tests:
banner: `require("${require.resolve(
  'source-map-support'
).replace(/\\/g, "\\\\")}").install();`,

This double-escapes backslashes, so that by the end of the pipeline the proper amount exist. The other solution uses upath. Upath is already in the project as a nested dependency and could be surfaced as a primary dependency:
$ yarn why upath
yarn why v1.7.0
warning package.json: No license field
[1/4] 🤔  Why do we have the module "upath"...?
[2/4] 🚚  Initialising dependency graph...
warning<EMAIL_ADDRESS>No license field
[3/4] 🔍  Finding dependency...
[4/4] 🚡  Calculating file sizes...
=> Found<EMAIL_ADDRESS>info Reasons this module exists
   - "fusion-cli#webpack#watchpack#chokidar" depends on it
   - Hoisted from "fusion-cli#webpack#watchpack#chokidar#upath"
info Disk size without dependencies: "56KB"
info Disk size with unique dependencies: "56KB"
info Disk size with transitive dependencies: "56KB"
info Number of shared dependencies: 0
✨  Done in 0.65s.

Since all node commands can use forward slashes on Windows, upath replaces backslashes with forward slashes. This fixes the issue described here. This is the code to achieve it:
banner: `require("${upath.normalize(require.resolve(
  'source-map-support'
))}").install();`,

My only problem with this is that it feels like a bandaid but I'm not sure it is a true fix. By that I mean that it is a working solution, but if you look at the changed code, is it obvious what it fixes and why? It is possible that a simple comment is enough to describe the problem and solution, but I'm wondering if this solution is targeted too much at the edge case and there is a better overall solution.

Hi folks. Wondering if anyone developing on windows has docker experience or would be interested in helping to maintain a docker + Fusion.js boilerplate. A single reproducible environment within a docker container might be the best approach here to ensure we have great support for everyone.

Update: I've created a simple Fusion.js boilerplate /w Docker that we should be able to work on Windows. Looking for someone to help me verify that this works, it should just be a single command. Steps:

Clone or download this folder: https://github.com/KevinGrandon/fusion-boilerplate/tree/master/docker-fusion-app
Run: docker-compose up

Sorry about the late response. I did try running it, but it did not work for me stating that it couldn't pull in the package.json and yarn.lock. I haven't had the time to fiddle with it recently, but when I do I'll report back here.

sorry about the late response as well. I will give it a check

Update: I've created a simple Fusion.js boilerplate /w Docker that we should be able to work on Windows. Looking for someone to help me verify that this works, it should just be a single command. Steps:

Clone or download this folder: https://github.com/KevinGrandon/fusion-boilerplate/tree/master/docker-fusion-app
Run: docker-compose up

can't find module. same issue.

This is fixed and has been prereleased as 1.18.0-alpha.1. It will also be included the next release sometime next week


Uncaught SyntaxError: "undefined" is not valid JSON

Issue and Steps to Reproduce
when calling method getLoginParams in file initSession.ts, if there is no param set in localStorage, then it throws error
Uncaught SyntaxError: "undefined" is not valid JSON

It happens very frequently.
based on the code, JSON.parse can't parse the undefined value, if dataString is undefined, then oidc can't initialize the session.
const getLoginParams = () => {
        const dataString = storage[`oidc.login.${configurationName}`];
        if (!getLoginParamsCache[configurationName]) {
            getLoginParamsCache[configurationName] = JSON.parse(dataString);
        }
        return getLoginParamsCache[configurationName];
    };

maybe we should add a default value to dataString, like
const dataString = storage[`oidc.login.${configurationName}`] || 'null';

Versions
all

Hi @gitawego ,
Thank you for your issue.
Which version of the library are you using ?
Do you have a sample (ofuscated) of your configuration ?
I'am searching from a long time why storage can be null. It never set to null in the code and values are required to refresh tokens correctly.

I put null is only to make JSON.parse works, because undefined can't be parsed.
in this line of code: https://github.com/AxaFrance/oidc-client/blob/main/packages/oidc-client/src/initSession.ts#L66
const dataString = storage[`oidc.login.${configurationName}`];

dataString could be undefined,
and when parsed at line 68: https://github.com/AxaFrance/oidc-client/blob/main/packages/oidc-client/src/initSession.ts#L68
getLoginParamsCache[configurationName] = JSON.parse(dataString);

if dataString is undefined, it throws error, because JSON.parse can't parse undefined.
JSON.parse(JSON.stringify(undefined)) // throw Uncaught SyntaxError: "undefined" is not valid JSON
JSON.parse(undefined) //Uncaught SyntaxError: "undefined" is not valid JSON
JSON.parse(null) // return value null
JSON.parse(JSON.stringify(null)) // return value null

in my company, it's v7.6.0, but I compared, this part of the code is never changed.

I will manage this case with a warning instead of a crash.
It would not be a problem for 90% of configurations cases.
But i Wonder how storage[oidc.login.${configurationName}] can be null because it is set during authentication.

Do you have a sample of the stack trace of the error ?

I'll try to get it tomorrow.

@gitawego, hello! What was the reason?

Same issue with Next application


[Bug] Explore page is stuck and not scrolling

https://user-images.githubusercontent.com/64729135/194385297-b2a8a216-df86-4c26-9c7a-d714ccb3680a.mp4
As you can see in the above video, the application is scrolling nicely but when I navigated to the explore page with the sidebar, it was totally stuck!!

Done!


Develop

I just went over de README adding the new books (XRP, LTC and BCH) mostly to console outputs.
I also tried to install it on a Windows installation, but it ket throwing an error, which seems to be related to Python3 and W10.

Looks great! I just have to test It.


e2pg: update logging to use slog

Now that slog is in the std lib, it is time to use it everywhere. Additionally, we need to setup logging context so that it accumulates context data (eg task-id, chain-id, block-number) as it traverses the call stack.

fixed in f530de6464c7abdadfb382f59aadb0c4caadd6ed


feat: remove Guava dependency

Closes #108.
Checklist:

[x] I have tested my changes. No regression in existing tests.
[x] I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Wonderful! Verified against my env, works like a charm! Thx so much @agebhar1


Add create private app Play Store listing for Android to supply

Previous bug, we were not able to figure out the correct APIs to call. I have built sample code (see below) to do this. https://github.com/fastlane/fastlane/issues/12655 for reference.
Feature Request
Add create private app option to the supply action to facilitate creating Play Store listings for Managed Play.
I work with large enterprises that have to migrate apps to Managed Google Play. Some of these enterprises have 100+ internal applications and this process is quite painful to do this manually. I would love to steer them towards fastlane.
Motivation Behind Feature
Adding "create private play store listings" would be extremely helpful for developers with large amounts of applications for Managed Google Play (formally Play for Work).
It also helps automate cross platform. This feature exists for iOS and it's holding back enterprises I work with on adopting the other great features of fastlane/supply. This would be a significant enhancement so fastlane can be used for the whole automation flow.
Feature Description
Add feature similar to create from the produce (https://docs.fastlane.tools/actions/produce/) action.
There is a one time call that needs top made to Managed Play to enable private apps which returns a developer account identifier. It's OK if that needs to be done outside of fastlane, although would be cool if it could help. :)
fastlane supply enable_private_apps
Guide here: https://developers.google.com/android/work/play/custom-app-api/get-started
I have an account you can use for testing if that helps and can explain this part if needed.
Implementation:
Make sure to create an IAM role in the Google Cloud console for your enterprise and insert that into the service_account query param below.
Example OAuth call:
https://play.google.com/apps/publish/delegatePrivateApp?service_account=ACCOUNT@PROJECT-ID.iam.gserviceaccount.com&continueUrl=https://foo.bar/oauthredirectfastlane
The returning call will contain a developerAccount string that is a number to denote your account. You will need this to create private apps in the API.
fastlane supply create_private
Options for create: (Some ideas but not limited to)
-l, --language_code STRING Title (e.g. for example, "en_us for English", "de-AT" for Austrian German) (SUPPLY_LANGUAGE_CODE)
-t, --title STRING Title (SUPPLY_TITLE)
-d, --developerAccount STRING Title (SUPPLY_DEVELOPER_ACCOUNT) The developer account identifier returned from enabling private apps.
-v, --apk STRING APK Path (SUPPLY_APK) This should be a release build with V1 and V2 signatures for release.
Found a listing of supported keys under class Listing here.
This will not break any functionality. There are also no drawbacks.
Alternatives or Workarounds
The workaround is to use the Play REST API directly which is pretty rough for one missing feature.
Example code in Ruby to do this:
require "google/apis/playcustomapp_v1"

# Auth Info
KEYFILE = 'KEYFILE_FROM_SERVICEACCOUNT.json' # PATH TO JSON KEYFILE
DEVELOPER_ACCOUNT = "DEV ACCOUNT ID FROM ONE TIME OAUTH" # DEVELOPER ACCOUNT ID

# App Info
APK_PATH = "app-release.apk" # PATH TO SIGNED APK WITH V1+V2 SIGNATURES
APP_TITLE = "APP TITLE FOR"
LANGUAGE_CODE = "EN_US"

scope='https://www.googleapis.com/auth/androidpublisher'
credentials = JSON.parse(File.open(KEYFILE, 'rb').read)
authorization = Signet::OAuth2::Client.new(
    :token_credential_uri => 'https://oauth2.googleapis.com/token',
    :audience => 'https://oauth2.googleapis.com/token',
    :scope => scope,
    :issuer => credentials['client_id'],
    :signing_key => OpenSSL::PKey::RSA.new(credentials['private_key'], nil),
)
authorization.fetch_access_token!

# START CUSTOM SERVICE, SINCE THE RUBY CLIENT SEEMS TO BE BROKEN
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
class PlayCustomService < Google::Apis::Core::BaseService
    def initialize
        super('https://www.googleapis.com/', 'playcustomapp/v1/accounts/')
        @batch_path = 'batch/playcustomapp/v1'
      end

      def create_custom_app(account, custom_app_object = nil, upload_source = nil, &block)
        if upload_source.nil?
          command =  make_simple_command(:post, '{account}/customApps', nil)
        else
          command = make_upload_command(:post, '{account}/customApps', nil)
          command.upload_source = upload_source
        end
        command.request_representation = Google::Apis::PlaycustomappV1::CustomApp::Representation
        command.request_object = custom_app_object
        command.response_representation = Google::Apis::PlaycustomappV1::CustomApp::Representation
        command.response_class = Google::Apis::PlaycustomappV1::CustomApp
        command.params['account'] = account unless account.nil?
        execute_or_queue_command(command, &block)
      end
end
# END CUSTOM SERVICE

#play_custom_apps = Google::Apis::PlaycustomappV1::PlaycustomappService.new
custom_app = Google::Apis::PlaycustomappV1::CustomApp.new title: APP_TITLE, language_code: LANGUAGE_CODE
play_custom_apps = PlayCustomService.new
play_custom_apps.authorization = authorization
play_custom_apps.create_custom_app(DEVELOPER_ACCOUNT, custom_app, APK_PATH)

Did I understand correctly that this issue contains 2 separate feature requests:

Enable private apps (via "Managed Google Play")
Create Android apps in Google Play Console

If so, could you please split one of both out into its own issue and make sure both issues only contain the relevant information?
Adding an Android equivalent to produce would be really nice for fastlane, I'm looking forward to have a look at your code again when the issue is clearly defined (tbh right now it is to confusing for me).

Thanks for the response. In order to add private app creation to managed play, you need to enable it. This is really one feature request that has potentially 2 command line options, but this could be separated into one.
@joshdholtz and I worked together on the original version of this issue but we had no luck on which API to use. @joshdholtz Does this help? Do you need more information? :)
The original feature request is here. #12655

Ok, so this produce-like action you suggest will only work for private apps, not for normal Google Play Console apps?

Yes for private apps.

Ok, now I understood the scope.
New additions to fastlane tend to always have a standalone action, next to their eventual command line implementation via one of the tools (supply in this case) Some input on the action name: As produceis also available as an actioncreate_app_onlineandsupplyhas an actionupload_to_play_store, one could combine those naming patterns to create_app_on_managed_play_store` (mouthful, but exact).

Makes sense, thanks for the clarification.

@joshdholtz - Is this something you could implement? I can support the effort and make sure you have what you need to get it done.
CC: @taquitos

I could take a shot at it, but as a plugin - not an addition to supply.
Does the code sample you posted above work? Was it used successfully?
Some notes for my later self:
https://developers.google.com/android/work/play/custom-app-api/publish
https://developers.google.com/api-client-library/ruby/apis/playcustomapp/v1
https://github.com/fastlane/fastlane/blob/4f73da3f0e217deeacfba2c3f4d1192ed680a62d/supply/lib/supply/client.rb
https://docs.fastlane.tools/actions/supply/#parameters

Sure that works, that would be much appreciated!

This is now available as a plugin at https://github.com/janpio/fastlane-plugin-managed_google_play


The COS section of the guide is empty

Bug Report
I found a problem on http://curriculum.learnersguild.org/cos/

yeah it just hasn't been populated by @carlabagdonas or @needdra


Delay ScheduleSend if OnMessage is in progress

OpAMPClient functions which update the state normally call ScheduleSend to deliver the changed state to the Server. When this happens while OnMessage callback is active we want to delay calling ScheduleSend and only call it once when OnMessage handler returns. This will avoid unnecessary messages going to the server.

I might be missing something, but wouldn't it be useful to add an OnMessageDone callback that will call ScheduleSend (and remove it from the OnMessage callback)?

I might be missing something, but wouldn't it be useful to add an OnMessageDone callback that will call ScheduleSend (and remove it from the OnMessage callback)?

That will make it the responsibility of the user. I would prefer that the Client implementation is responsible for this.

Thanks @tigrannajaryan, I'll be happy to take this one


Refresh SPFX wbpart

I am developing a webpart using SPFX. I want to refresh the webpart when user click on a button in a button i,e there is button in the webpart user will click on the button it will refresh the webpart.

@samareshdas ,  if you called this.render() in the button click handler that should re-render the web part. Does it not ?


[Core] Fix trio mypy errors

The latest version of trio removed the run_sync_in_worker_thread method, causing mypy to complain. This change adds a type ignore comment to places where this is called, since it'll only hit that code path if an old enough version of trio is used.
Mypy error:
azure/core/pipeline/transport/_requests_trio.py:250: error: Module has no attribute "run_sync_in_worker_thread"  [attr-defined]

However, we could also just remove the try... except... we have to account for the older versions, since run_sync_in_worker_thread is something that was deprecated in 2019, and I don't think we need to account for it anymore.

API change check
API changes are not detected in this pull request.

/check-enforcer override


Fall damage sound in cloudstepper ring

I've just created a cloudstepper ring and when I double jumped in it I heard the fall damage sound (there was no damage, I landed on the same height). I tried to use traveller's boots and even full diamond armour set but still heard that sound on landing. It's beta 26.

Yea... it sucks... if you have Botania you can equip the Ring of Odin to stop this entirely.


v.2.0

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (5b05a20) 83.73% compared to head (e89c533) 83.73%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##           master      #51   +/-   ##
=======================================
  Coverage   83.73%   83.73%
=======================================
  Files           1        1
  Lines         123      123
=======================================
  Hits          103      103
  Misses         14       14
  Partials        6        6

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Run method never gets called

I'm downloaded the source code, build the jar and deployed it on a IBM domino server.
Then I configured it to use the LogstashTcpSocketAppender.
But no logs are sent to logstash.
It seems to be an issue in the run loop. I've added some comments  and it never enters the while loop. It seems to be interrupted before.

Hi @sverin
Can you post your logback configuration?
Generally, when the run method is not called, it indicates a problem with the configuration.
Also, logback will print configuration errors to the console on startup, so you might be able to find hints to what the problem is there.
If you want to dive further into the code, take a look at 'AbstractLogstashTcpSocketAppender.start'.  You'll notice that the errorCount has to be == 0 for the task to be submitted to the executor service.  The task must be submitted to the executorService for the run method to be called.

I looked at the AbstractLogstashTcpSocketAppender file and added some console logs in the run method. The run method is called but something happens in the while-loop. But no more information on the console.
public final void run() {
        try {
        	System.out.println("run start");
            while (!Thread.currentThread().isInterrupted()) {
            	System.out.println("Trying to connect...");

The "run start" message is printed, but not "Trying to connect...", som it seems that the thread is interuppted somehow...

I forget the configuration file:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>

  	<appender name="SASU" class="net.logstash.logback.appender.LogstashTcpSocketAppender">
		<remoteHost>...</remoteHost>
		<port>...</port>
		<encoder class="net.logstash.logback.encoder.LogstashEncoder" />
  	</appender>

	<root level="DEBUG">
		<appender-ref ref="SASU" />
	</root>

</configuration>

Are you just running a quick process that logs a few messages and exits?
If so, then the process might not be surviving long enough for the thread to pick up the event from the queue to send it over the wire.

I've also faced that problem. During debug I found that the reason is that in my project I have declared dependency from logback-classic with version 1.0.13.
There is an interface change between 1.0.13 and 1.1.x in constructor of DefaultSocketConnector (int arguments replaced with long) and due to that NoSuchMethod exception occured.
I understand that you defined version in pom.xml, but it would be great if run catch not only InterruptedExceptions but another throwables and add error messages to logback internal status collector

Closing this issue since the tcp socket appenders have been refactored to use a ring buffer, and the run method no longer exists.
Please open a new issue if you encounter any problems with the new implementation.


Avoid warnings for TPROXY iptables rules

Similar to previous PR: https://github.com/HubSpot/puppetlabs-firewall/pull/5

🚢


README: fix anchor link

This issue is reserved for participants of Welcome to Open Source, Atlanta.
If it’s still available after April 2nd, it’s all yours :)

:bug: The Bug

In the README of this repository, you see a weird looking [Constructor](#constructor) in the api.sessions.add() section. This is meant to be a link to the Constructor section, but GitHub does not interpret the Markdown Syntax inside the table.
:dart: The goal
Replace the faulty [Constructor](#constructor) part in the README.md file with the HTML code for an anchor link to #constructor.
:clipboard: Step by Step

[ ] claim this issue (comment below)
[ ] Setup repository locally
[ ] Edit the README.md file. Replace the Markdown code for the link to Contructor in the api.sessions.add() section with HTML code
[ ] Commit the change docs(README): Constructor link in api.sessions.add()
[ ] Start a Pull Request.
(If this is your first, welcome :tada: :smile: Here is a great tutorial on how to send a pull request)
[ ] Done :+1: Comment below to ask for a review :)

Ping us in the Hoodie Chat or on Twitter if you have any questions :)

claiming this issue..

Claiming issue

this has been resolved meanwhile


doc for az storage account management-policy update need example(s)

there are no examples of how to update lifecycle policy using az storage account management-policy update command cli.
the policy is in JSON format. how do we set it in command line

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

ID: 7f84b325-33af-86ab-749e-faec2e01a1f3
Version Independent ID: 87036460-df59-9239-680d-29c68a0490bb
Content: az storage account management-policy
Content Source: latest/docs-ref-autogen/storage/account/management-policy.yml
Service: storage
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

storage

storage

@zhangyan133  could you help add it?


Add element type filters to the partition functions

The goal of this issue is to add an include_element_types and exclude_element_types kwarg to the partition functions. include_element_types that will determine what element types to keep in the outputs. include_element_types will indicate "I only want these element types" and exclude_element_types will indicate "I want everything except these element types". This will help for downstream users in langchain who currently don't have an easy way to filter on element types during the load step.

What  if include_element_types and exclude_element_types overlap, For example:
include = ["A", "B"]
exclude = ["A", "C"]

You could check the intersection and raise an error if it isn't empty. Might be better to say you can only use include or exclude but not both. Either way I think you'd want to raise an exception.


fix: fetch lsp workspaces without triggering tag completion

Currently LSP workspaces are only fetched when user triggers :<Tab> completion. So, if you set your default_workspace to LSP, it doesn't work.
With the changes of this PR, LSP workspaces will be fetched as soon as LSP is attached to a buffer, so it'll work after that.

thanks :)

LspAttach is a nightly feature so it breaks 0.7.0. Because telescope.nvim has 0.7.0 support we are not doing this. I am fine with merging a different solution that isn't dependent on LspAttach

@Conni2461, can we feature detect it? vim.fn.exists('##LspAttach') == 1 should work, right?

do you have a solutions that works the same for 0.7.x and for nightly, otherwise, yeah why not just open a new PR


[amp-pwa-reader] Facebook doesn't show preview pages

When posting a link from the reader on Facebook, it is unable go gather data to build a preview of the post. This is usually a big deal for publishers and it would be great if the demo could cover this use case.
Here's a screenshot on what is currently shown:

I haven't tried to use this yet but wanted to put it on your radar since I know this site heavily uses web components. https://medium.com/dev-channel/solving-seo-with-headless-chrome-for-your-client-side-framework-288e66fdd2b7

This requires a hybrid client/server rendering approach, which I've signed amedina@ up to take a look at.


Documentation on classes and data structures?

I'm trying to port OpenAPS's basal/bolus algorithm to another language for use in a glucose simulator. Short of following all of the function calls and tracing out which variables get filled with what data, are there any documents available that describe these things in detail? I'm looking for something akin to a header file from C, which lays out every "struct", its members, and the function declarations that need to be implemented.
I'm not using any of the format conversions (eg Medtronic -> oref0, Medtronic -> Nightscout), and am only looking to port the dosing algorithm you have. If this documentation is not available, that's okay as well.
Thanks!

@ijustlovemath OpenAPS doesn't use any boluses, so is just recommending basal adjustments. I would read the reference design first (https://openaps.org/reference-design/), which may help with viewing the raw code about the basic pieces (determine-basal.js is key). This may also be a helpful writeup to read: http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-3/Understand-determine-basal.html

Thanks, I've read the reference design a few times. That second page is extraordinarily helpful. So for a bolus, would you usually just play it by ear according to how many carbs you are about to intake? I'm assuming it's more qualitative rather than there being some sort of formula with which you calculate your bolus rate.

@ijustlovemath it's a hybrid closed loop, so you do your normal bolus calculation (i.e. with a 1:10 carb ratio and 40 carbs, you would do a 4u bolus for that meal). OpenAPS will read the bolus in and act accordingly with the additional 4u IOB, but it's not going to recommend boluses as an output; OpenAPS only enacts temporary basal rates.

Got it. Sounds good. Thanks, Dana! I'll reopen if I have further questions.

@ijustlovemath sounds good, also feel free to ping us on Gitter (https://gitter.im/nightscout/intend-to-bolus) if there's anything you're trying to puzzle out from the code that's not clear. 👍


List #1-16 example sentence for "obstacle, hitch" doesn't match

the example sentence for 1-16 "支障 = obstacle, hitch" uses "interfere" instead of "obstacle" nor "hitch".

It interferes with it (our project).

Um, I've found more lines that example sentences don't align with words mentioned in the same line. If those are intentional, please disregard and close this issue.

Thank you for your comment! We tried to use the english word in the example sentences as long as possible, but some of them don't include them intentionally.


Add 'Client.list_projects'.

Closes #2143.

@tseaver LGTM but can you hold off on the merge until #2223 is in? I am happy to deal with the rebase for you if it's painful.

@dhermes I can hold off, sure.

Travis says,
Warning, treated as error:
/home/travis/build/GoogleCloudPlatform/gcloud-python/gcloud/resource_manager/client.py:docstring of
gcloud.resource_manager.client.Client.fetch_project:None:
WARNING: more than one target found for cross-reference u'Project': gcloud.bigquery.client.Project, gcloud.resource_manager.project.Project


Update go version to 1.18

This PR also adds an updatecli config that keeps our github workflows up to date with the go-version specified in go.mod.

Updatecli messes with the yaml indent but did not find a way to fix that...


Let's Fish !  Hooked On [PCSE00216]

App summary

App name: Let's Fish !  Hooked On
App serial: PCSE00216
App version: 1.00

Vita3K summary

Version: v0.1.8
Build number: 3198
Commit hash: https://github.com/vita3k/vita3k/commit/1cd8c837
CPU backend: Unicorn
GPU backend: Vulkan

Test environment summary

Tested by: Sam
OS: Windows 10
CPU: AMD 5500u
GPU: AMD Radeon Graphics
RAM: 6 GB

Issues

Screenshots

Log
vita3k.log
Recommended labels

-https://github.com/Vita3K/compatibility/labels/Bootable
-https://github.com/Vita3K/compatibility/labels/crash

C?

needs status label added

@tasle1001 your screenshot tell us the game is nothing 🤔

App summary
App name: Let's Fish ! Hooked On
App serial: PCSE00216
App version: 1.00
Vita3K summary
Version: v0.1.8
Build number: 3198
Commit hash: https://github.com/Vita3K/Vita3K/commit/1cd8c837
CPU backend: dynarmic
GPU backend: opengl
Test environment summary
Tested by: Sam
OS: Windows 10
CPU: AMD 5500u
GPU: AMD Radeon Graphics
RAM: 6 GB
Screenshots

Log
vita3k.log
Recommended labels
https://github.com/Vita3K/compatibility/labels/Bootable
https://github.com/Vita3K/compatibility/labels/crash

thanks for the feedback, and never try unicorn again, all nothing games have been tested with unicorn and no one works with it so dynarmic is always the way to go


[BUG?]About maximum page for fanbox posts.

Prerequisites

[ yes ] Did you read FAQ section?
[ yes ] Did you test with the latest releases or commit ?

Description
While downloading fanbox posts, "max page" didn't work
Steps to Reproduce

Input "f1" or "f2" to download fanbox posts
input the number for "max page"
the program would continue downloading all the posts, ignoring the "max page"

Expected behavior: the program stops after reaching "max page"
Actual behavior: continues until the very last page
Versions
20190401
You can get this information from executing PixivUtil2.py --help.
I think error happens here:
https://github.com/Nandaka/PixivUtil2/blob/803676c0dd48a2ca9831cb4c55a42fb540eb628f/PixivUtil2.py#L1856
because when I print the "current_page" and "end_page", the output numbers are correct, but the program just doesn't get into the "if" codes. So I add "int()" around the 2 parameters and this very "bug" gets fixed, but throwing other exceptions like if you input characters or letters when "max page" is asked of.
Not sure why nobody else raises this, maybe it's because of the running environment?

You right, I forgot to cast it to int when asking for the input.
https://github.com/Nandaka/PixivUtil2/blob/803676c0dd48a2ca9831cb4c55a42fb540eb628f/PixivUtil2.py#L1930
https://github.com/Nandaka/PixivUtil2/blob/803676c0dd48a2ca9831cb4c55a42fb540eb628f/PixivUtil2.py#L1790

Now it panics if you put empty value.
Maybe empty Max Page should be "Run until no more pages"?

updating to set the default to 0 if no value given, might need to ask you to test :smile:

thanks. noticed the changes in the code.


Initial version

[x] Deploys AVD-resources
[x] Deploys VMs
[x] Deploys extensions for AAD- and hostpool-join
[ ] Deploys role assignments for users and admins
[ ] Testing with various configurations
[ ] Examples in readme

LGTM! ☺ Have you verified the configuration with terraform plan?


Significant updates in prep for Dev Preview 1

Resolved differences between Gary's service updates and this PR. Will likely have a few tweaks to make afterwards, especially because I had changed the name of one of the service abstractions I wrote.


Notifications are missing with the latest plugin and discourse

Howdy @gdpelican!  After we recently updated to discourse 1.9.0.beta17 and babble 3.1.7 I noticed along with the chat moving to either the left or right side the screen, that the notifications were gone.  Was this an intentional change or a bug?  It's been fascinating to see just how much impact the notifications had with chat engagement being non-existent in the last few days.  If this was an intentional change, would you be open to a PR to add notifications back as a configuration option?

#251

Alright, this should be resolved with the latest


[bug] nsis_tauri_util.dll Symantec security risk detected

Describe the bug

Reproduction

Happens when @tauri-apps/api upgrades to 1.5.0 from 1.4.0 in this commit https://github.com/pot-app/pot-desktop/commit/6cb9bdb5abec747cde32e022cb72ebdec1308af3.
Expected behavior
No response
Platform and versions
Win11 Pro 22621.2283
https://github.com/pot-app/pot-desktop 2.6.2
"@tauri-apps/api": "^1.5.0"

Stack trace
No response
Additional context
No response

This happens in Crowdstrike Falcon too (see https://www.virustotal.com/gui/file/0eed48313a7f904d7cc1977b70000ab3f11f18cadc8e6a69b807d288ca71f9db/detection)


Added ECDSA verify

Thanks! Seems CI (and various other things) are broken for this project... thanks for the ones you fixed.
I can go ahead and disable CI for now and merge this but I'd like to get it working again (ideally on GitHub Actions) before cutting another release.

Thanks for merging. I'm planning to submit more additions soon.

Awesome! I think it'd be good to flip CI over to GitHub Actions with https://github.com/actions-rs


nRF ASYNC UART driver receive off by one byte

Describe the bug
If the UART is busy at boot (i.e. on a bus situation) and the nRF boots, the UART can report UART_RX_RDY events with data that are off by one byte.
Please also mention any information which could help others to understand
the problem you're facing:
Platform: nRF52840
SDK: v2.5.1
This issue has only been observed when we boot the nRF52840 with RX traffic already present on the UART.  This is possible for our use case as we are connecting devices to an RS485 bus with a transceiver connected to the nRF's UART (i.e. traffic can already be present from other devices).  We are using an ASYNC UART driver with HW timers enabled and a short rx_timeout interval to detect received data.  On occasion, the nRF will boot and report received data that appears off by one byte.  The data is missing the first byte of actual data, and the last byte seems to be whatever data was already present on the receive buffer in that location.  The receive length appears correct, but the data appears shifted by one byte.
To Reproduce

Connect an nRF52840 via UART to another device (i.e. PC with FTDI cable)
Load firmware on the nRF52840 that reports data received over an ASYNC UART with HW timers enabled (i.e. reports via RTT)
Hold the nRF in reset
Start transmitting varying data on the other device to the nRF
Release the nRF52840 from reset
The nRF may report data that is missing the first received byte

It can be helpful to have an rx_timeout defined that the other device transmitting data to the nRF abides by.  That is, it sends a few bytes, waits a millisecond or two, and then sends another few bytes.  This can also make it easier to verify the received data is off by one byte when received by the nRF.
Expected behavior
As the nRF can boot to existing traffic being transmitted to it, I would expect that the first few bytes received will cause an error at the application layer since a partial packet will be received and it will violate checks such as length or CRC.  However, after that I would expect the application to recover on subsequent received data.  This does not appear to be the case with this bug as all UART_RX_RDY events will be missing the first byte and have seemingly random data as the last byte.
Impact
We can recover the device by resetting it, but we intend to have thousands deployed and it would make it non-functional if this bug occurs and resetting is difficult when deployed.
Logs and console output
Log from RTT:
E: RX Data
E: 01 00 a0 11 00

Actual sent data (this is sent every 1 to 2 ms on our bus):

Environment (please complete the following information):

OS: MacOS
Toolchain: NCS v2.5.1

Additional information
This appears to be the same bug reported in this devzone post.

@pres2300 This bug report seems to be related to Nordic's SDK, if this bug is applicable to Zephyr please provide a reproduction case with just vanilla Zephyr.
CC @carlescufi


CORS Support for HTTP API

Hi! I've been spending this weekend attempting to make a UI component for Vulcan using it's REST API. The UI component is written on top of Ember and it seems that CORS is giving me an issue. Looking into it, it doesn't seem to possible to pass an option such as -cors="*" on startup to enable CORS headers. :cry:
I looked into adding it and PR'ing but it seems like Scroll may not have the best support for adding this to the project.
For now, I'm running a proxy, but CORS support would be awesome to make a robust frontend app for Vulcan.
Thanks!

@bobbytables Could this be done with custom middleware?

Something like, erm, this
(see the README for caveats, but I think it's a decent start)

You can use Kong (https://github.com/Mashape/kong) + CORS plugin (http://getkong.org/plugins/cors/) as workaround:


How to add integration layer for aspnet / signalr

I need to add an integration layer to provide socket connection with @ aspnet / signalr, but is there anybody who can share the current example with this

Hi @oguzzaydin,
That's fairly easy. Integrate a library similar to https://github.com/JustMaier/angular-signalr-hub into ngx-admin.
That one is for AngularJS but google and choose the one you like for Angular 6.
I recomment you do not use SignalR from ASP.Net Core in your Web API, because it's not matured yet. Instead use SignalR  Instead use SignalR 2 from ASP. Net.
https://www.asp.net/signalr

Hi @Prefix1802
I have established the connection but the connection type is with ServerEvents and HttpLonPooling. The connection type is not webSocket and this is a problem with ngx admin. I have not tried ngx admin project

@oguzzaydin,
Can you provide more info?
"I have established the connection but the connection type is with ServerEvents and HttpLonPooling. The connection type is not webSocket"
Where do you see this, can you provide a screenshot?
Can you copy/paste your code that makes the call to your webapi? you can obfuscate your server address, if needed.
"and this is a problem with ngx admin"
Not necessarily. It depends on your code.
"I have not tried ngx admin project"
You got me confused. You say "and this is a problem with ngx admin." How do you know that if you have not used ngx-admin.

@Prefix1802
I am using ngx admin, so I tried it in the zero project. I tried ngx project but it was not connected with websocket connection type but it was opened with an empty angular project connection with Websocket is not a problem with IIS. I will take a photo photo

I removed pace-js and it works.

Thank you it works @ouzian 👍


Aperture offsets when importing MAD sequence are treated as coordinate transforms

Observed behaviour:
When importing MAD elements with aperture offsets and tilts, these are treated as change in the coordinate system by adding SRotation and XYShift elements before and after the aperture (see source).
While this works, it can lead to counter-intuitive situations e.g. when calculating the closed orbit via twiss.
The closed orbit makes an apprupt infinitesimal jump due to the change in coordiante systems to account for the (still symmetrically placed) aperture.
Expected behaviour:
Since Xsuite supports non-symetric aperture limits (in contrast to MAD-X), I would have expected an aperture offset/tilt to be treated by shifting/tilting the vertices of the apperture directly (and keeping the coordinate system as-is). The closed orbit would then be continuous as expected.
Is there a specific reason why aperture offsets are treated by shifting the beam instead of shifting the aperture?

The main reason is that simple shapes are less expensive than a list of vertices, and it is a bit simpler to implement. In general, we adopted the strategy to track in the most convenient frame for tracking, rather than the analysis, knowing that it is always possible to transform the frame in post-processing. By the way, also MAD-X supports arbitrary non-symmetric apertures.
If the feature is important for your use case, the madloader has a number of options and optional "simplification passages", you could another one to simplify transformation where possible.


Fix uri schema validation

foo,bar:baz is not a valid uri.
Refs: https://github.com/json-schema-org/JSON-Schema-Test-Suite/pull/419

Probably worth updating the tests.
It has to be added to ajv-formats too now...

That JSON-Schema-test-suite PR is not landed yet.

https://github.com/ajv-validator/ajv-formats/pull/1 for ajv-formats :-)