Adds space above attached view

Just updated to the latest build and it now adds space above the attached view. Check out the screenshot.

Give me 15 minutes or so and this will be fixed.

What does your layout look like? Are you using fitsSystemWindows="true" or anything special?
I can't replicate the problem.

yes, I will post below:
<?xml version="1.0" encoding="utf-8"?> <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto"     xmlns:tools="http://schemas.android.com/tools"     android:id="@+id/list_coordinator"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:fitsSystemWindows="true"     android:orientation="vertical">
`<android.support.design.widget.AppBarLayout
    android:id="@+id/list_bar_layout"
    android:layout_width="match_parent"
    android:layout_height="256dp"
    android:fitsSystemWindows="true"
<EMAIL_ADDRESS>
    <android.support.design.widget.CollapsingToolbarLayout
        android:id="@+id/list_collapsing_toolbar"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:contentScrim="@color/action_primary"
        app:title="@string/hub"
        android:fitsSystemWindows="true"
        app:layout_scrollFlags="scroll|exitUntilCollapsed"
        app:statusBarScrim="@color/color_primary_dark">

        <ImageView
            android:id="@+id/toolbar_image"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:fitsSystemWindows="true"
            android:scaleType="centerCrop"
            app:layout_collapseMode="parallax"
            tools:ignore="ContentDescription" />

        <android.support.v7.widget.Toolbar
            android:id="@+id/toolbar"
            android:layout_width="match_parent"
            android:layout_height="?attr/actionBarSize"
            android:popupTheme="@style/PopupStyle"
            app:layout_collapseMode="pin" />

    </android.support.design.widget.CollapsingToolbarLayout>

</android.support.design.widget.AppBarLayout>

<android.support.v7.widget.RecyclerView
    android:id="@+id/list_main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:layout_behavior="@string/appbar_scrolling_view_behavior" />

</android.support.design.widget.CoordinatorLayout>`

It'll take a 15 minutes more. I just had to fix a force close before this.

yeah, I think I experienced that FC as well so all good for me! :D

bottomBar.noNavBarGoodness() should fix this, but this way the Navigation Bar won't be transparent as seen in the second demo gif in the Readme.

Ok, just tested **without ** the bottomBar.noNavBarGoodness() and now the bottombar is inside of the navigation bar. The method above does fix this.

Now I think I got it.
Remove bottomBar.noNavBarGoodness() and replace it with a new method mBottomBar.noTopOffset(). You'll get the NavBar goodness without the top offset badness!
Tell me if it works.

Possibly, but now I have a different issue with that on. See below, that listview with food pass and buffet used to go all the way to the bottom, now it is stuck higher
And not sure what you mean by CV but thanks! Was really happy when I saw this library! Perfect for the app!

Does removing android:fitsSystemWindows="true" and not using  mBottomBar.noTopOffset() or bottomBar.noNavBarGoodness()  at all work?

Ok, turning them all off results in that original top bar problem. If I get rid of the system windows but keep offset on it works except that the toolbar is inside the status bar

Damn.
Try updating to version 1.0.8 and trying only bottomBar.useOnlyStatusBarTopOffset().
If that doesn't work, I'll try again on Monday.

Mostly, you fixed the other activities when I got rid of the systemWindows. But then it made it so the first panel with the collapsing toolbar had a statusbar filled already so that didn't work anymore. What I would recommend is just creating a method for each fragment that sets the status like you have now. That way you can set it up based on what kind of view is being used

One thing you could try is putting your RecyclerView inside of BottomBar like this:
bottomBar.attach(findViewById(R.id.list_main), savedInstanceState);

Try playing with the attach(View view, Bundle savedInstanceState)

Interesting approach, but then wouldn't the bar completely disappear when I change from a different fragment to another? (using the built-in fragment support.

I don't think it would. Then again, I'm drunk at the moment.
Try and see, and report the results.

No dice, that did the same issue where the views can't go all the way (the last screenshot)

Now updated the library to version 1.0.9.
Try if this now works (basically the same thing than before):
mBottomBar = BottomBar.attach(this, savedInstanceState);
mBottomBar.noTopOffset();

// other sexy magic

Nope, still has that same issue in the second screenshot. Personally I don't mind using the noNavBarGoodness since a bar that changes color doesn't work for thematically for the app I am developing .

That's weird. For me it worked.
Glad it works for you without the goodness though.

I think the issue is coming from the fact that I have multiple fragments with different layouts, one that fits system windows and one that doesn't. Regardless I wouldn't worry about it since I already have my solution and I haven't seen anyone else with that issue.

Well I'm closing this one for now.

Hello Please help through this,,
I am not able to change fragment using mBottomBar.selectTabAtPosition(1,true); its just change tab but not changing Fragment..
Dose any one face this problem?

The library doesn't support fragments anymore, you need to do everything yourself.


Add q2-amrfinderplus

@VinzentRisch The top level directory in bokulich-lab/q2-amrfinderplus that contains the environment files must be called environment-files not environments.
Apologies for any confusion, I believe at one point our instructions said to name the folder environments.

@VinzentRisch Thank you, sorry for any inconvenience that caused. It looks like your ci was expecting a folder named environments. I'll merge this now.


Formatter can't seem to find markdown from gistpad

Describe the bug
When I try to execute the "Format Document" command (usually from the palette, but I get the same problem if I toggle "format on save" on), VS Code says there is no formatter for markdown when the .md file is from a gistpad. I don't get the same issue with other files from gistpads (.js or .css for example) and I don't get the same problem either with .md files that aren't from a gistpad.
To Reproduce
Steps to reproduce the behavior:

Execute "GistPad: New Gist" and create a *.md file
Add some text (or not)
Execute "Format Document"
See error

Desktop:

VS Code Version: 1.57.1
GistPad Version: 0.2.9

PS: I have tried with many different formatters, just to make sure, including

Prettier esbenp.prettier-vscode
Markdown All in One yzhang.markdown-all-in-one
Markdown Table Formatter fcrespo82.markdown-table-formatter

This issue should now be fixed, and I've been using GistPad + Prettier. Please reopen this if you're still experience issues. Thanks!

I'm having the same issue. On the latest version of GistPad, and have esbenp.prettier-vscode and yzhang.markdown-all-in-one installed. Formatters work in other MD files, but not the ones in GistPad.
Is some config required to set up the formatter for GistPad?


Huge Changes required in User Guide

🐞 Problem
Significant API changes were carried out in #248
🎯 Goal

Make the User Guide consistent

💡 Possible solutions

File present here docs/source/user_guide.rst

📋  Steps to solve the problem

Comment below about what you've started working on.
Add, commit, push your changes
Submit a pull request and add this in comments - Addresses #<put issue number here>
Ask for a review in comments section of pull request
Celebrate your contribution to this project 🎉

Create a Pull Request ASAP


Convert label selections to be fetched over AJAX

Related to #85 and #80

The rationale behind this is that the user may change filter parameters, which will affect which labels the user can choose from once #80 is implemented


[App]: Data not available for various plots

Current Behavior
Hi,
I am running a classifier model training script which generates a couple of custom plots: a barplot depicting class frequencies of the train/val set, the ROC and PRC curves of the val-set performance and a confusion matrix. For generating all these plots, I've used the basic functionality provided in the wandb documentation (Code snippets shared below).
I use both cloud and private versions of wandb. In the cloud version, when I run the attached code (shared below), the plots are successfully generated but when running in the local version, I get a "No data available" for all these plots. I'm not sure why exactly this is happening. I would greatly appreciate some help on this!
Expected Behavior
I'm supposed to get the following output (seen in cloud version):

But I get this (local wandb server):

Steps To Reproduce
Following is the code I wrote for generating these charts/plots:
Code for bar plot
# log the class frequencies in each fold
train_classes, train_outputs = np.unique(train.outputs, return_counts=True)
val_classes, val_outputs = np.unique(val.outputs, return_counts=True)
train_outputs = train_outputs / np.sum(train_outputs)
val_outputs = val_outputs / np.sum(val_outputs)

# create wandb tables
train_data = [[label, val] for (label, val) in zip(train_classes, train_outputs)]
train_table = wandb.Table(data=train_data, columns=["class", "frequency"])
val_data = [[label, val] for (label, val) in zip(val_classes, val_outputs)]
val_table = wandb.Table(data=val_data, columns=["class", "frequency"])

# log tables as barplot
wandb.log(
    {
        f"train_distribution_fold": wandb.plot.bar(
    train_table, "class", "frequency", title=f'Class Distribution for Train set'
    ),
    f"val_distribution_fold": wandb.plot.bar(
    val_table, "class", "frequency", title=f'Class Distribution for Val set'
        ),
    }
)

Code for model evaluation charts
# log model evaluation charts
wandb.log(
    {
        "pr": wandb.plot.pr_curve(ground_truths.numpy(), predictions.numpy(), labels=val_ds.class_mapping),
        "roc": wandb.plot.roc_curve(ground_truths.numpy(), predictions.numpy(), labels=val_ds.class_mapping),
        "conf_mat": wandb.plot.confusion_matrix(y_true=ground_truths.numpy(), probs=predictions.numpy(),
class_names=val_ds.class_mapping)
    }
)

Screenshots
No response
Environment
I'm running my code on a remote linux machine and visualizing the results on my desktop browser.
OS: Linux
Browsers: Chrome
Version: Chrome Version 122.0.6261.112 (Official Build) (arm64), W&B Local 0.50.3, W&B package version 0.16.3.
Additional Context
Similar to the suggestions in issue #4368, I ran a wandb verify and got the following:
Default host selected: http://localhost:8081
Find detailed logs for this test at: /tmp/tmpmj4fcxqt/wandb
Checking if logged in...................................................✅
Checking signed URL upload..............................................✅
Checking ability to send large payloads through proxy...................✅
Checking requests to base url...........................................❌
Connections are not made over https. SSL required for secure communications.
Checking requests made over signed URLs.................................❌
Signed URL requests not made over https. SSL is required for secure communications.
Checking CORs configuration of the bucket...............................❌
Your object store does not have a valid CORs configuration, you must allow GET and PUT to Origin: http://localhost:8081
Checking wandb package version is up to date............................✅
Checking logged metrics, saving and downloading a file..................✅
Checking artifact save and download workflows...........................✅

Not sure if the CORs configuration is the issue, but I didn't find any resolution for this issue in #4368
Additionally, here is the commands used to start up the local server on the remote machine:
wandb server start --port 8081
wandb login --host=http://localhost:8081

hey @Aveturi13 - this seems like a CORS issue, but to confirm, would it be possible to send over the console/network logs associated with the workspace where you're not seeing the charts populate? if you're on chrome, you can obtain this by right clicking > Inspect > console/network

hey @Aveturi13 - I wanted to follow up on this. please let me know if you're able to provide the above info


Can't get dependency

When I try to include RxAppState into the project I had JitPack added and add the library dependency. I just get:
'Could not find com.jenzz:RxAppState:1.1.0'

Hmm I just tried it myself with a brand-new project and it works just fine.
v1.1.0 is definitely available online: https://jitpack.io/com/jenzz/RxAppState/1.1.0/build.log
If you show me your full Gradle file, I might be able to help you out.
Or have you enabled offline mode in Android Studio?

Oh okay thanks. I will evaluate my project and try and work it out. I have offline disabled, I have problems with JitPack every time I use a new library that uses JitPack, I would always advise Bintray and JCenter instead. Thanks for checking for me, I am sure there is just something wrong in my environment.


[WIP] Implement metallb load balancer

Do not merge this.
This PR currently only contains doc changes, not the actual implementation. I will remove the [WIP] and comment when it is ready to be merged.
I am looking for feedback on the design of loadbalancer support in CCM. The goal is that customers who deploy the packet CCM get load balancers for Service of type=LoadBalancer that "just works".
I have tested this process manually and it looks clean, but I want input on the design before going ahead to implementation.

Besides my comment around the auto cleaning up of unused Elastic IPs things look good for me.

Update: this now contains most of the implementation for load balancers via metallb. It currently is awaiting a few things:

lots more tests and testing
ability to get IPs by device, so that we can complete this. It depends on this packngo PR which should be in later this week
two not-yet-existing features for IP reservation requests that are not automatically approved:

ability to track them via API+packngo
ability to retain tags from request through to reservation

The last one is a blocker. We need it so we can know that service X had a reservation request, and thus we should not submit a new one, and when it completes, we can affiliate it with the appropriate service. Otherwise, we will end up submitting a new request for every such service every 60 seconds on loop, which is "a bad thing".

Update: this PR has changed quite a bit. Here is what it does now:

sets up metallb, can be disabled by config. For now it is hard-coded disabled until the IP API issues listed here are resolved
enables BGP on the project and on each host
creates a node watcher and a services watcher, and enables any component to be called with them

The last element lays the groundwork for #39 , which will be simpler after this is done.
This is ready to be merged in.


Symbol(s) not found for architecture x86_64

Question
I can't build my app on iOS due to linking error. I mostly work on Ubuntu/Android. I don't know exactly when it started failing on iOS.
I'm using the use_framework! trick to add them as static library.
I've found #394 #434 (second part) that might be linked.
As suggested in these issues, I deleted derivedData, node_modules, and Pods. But I end up with the same error.
Error message:
Showing Recent Messages
: "_OBJC_CLASS_$_RNPermissionHandlerPhotoLibrary", referenced from:
: Objc-class-ref in RNPermissions.o
: "_OBJC_CLASS_$_RNPermissionHandlerMediaLibrary", referenced from:
: Objc-class-ref in RNPermissions.o
: "_OBJC_CLASS_$_RNPermissionHandlerCamera", referenced from:
: Objc-class-ref in RNPermissions.o
: Symbol(s) not found for architecture x86_64
: Linker command failed with exit code 1 (use -v to see invocation)

Package.json info:
"react": "16.12.0",
"react-native": "^0.61.5",
"react-native-permissions": "2.1.0",

podfile info:
# Uncomment the next line to define a global platform for your project
platform :ios, '10.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

workspace 'MyApp'

target 'MyApp' do

  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  $static_frameworks = [
    # list your permission handlers here
    'Permission-Camera',
    'Permission-MediaLibrary',
    'Permission-PhotoLibrary'
  ]
  # Convert all permissions handlers into static libraries
  pre_install do |installer|
    installer.pod_targets.each do |pod|
      if $static_frameworks.include?(pod.name)
        puts "Link #{pod.name} as static_library"
        def pod.build_type;
          # Uncomment one line depending on your CocoaPods version
          # Pod::BuildType.static_library # >= 1.9
          Pod::Target::BuildType.static_library # < 1.9
        end
      end
    end
  end

  # Pods for MyApp
  pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
  pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
  pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
  pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
  pod 'React', :path => '../node_modules/react-native/'
  pod 'React-Core', :path => '../node_modules/react-native/'
  pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
  pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
  pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'

  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon"
  pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
  pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

  use_native_modules!

  pod 'RNFileViewer', :path => '../node_modules/react-native-file-viewer'

  pod 'SentryReactNative', :path => '../node_modules/react-native-sentry'

  pod 'react-native-webview', :path => '../node_modules/react-native-webview'

  pod 'react-native-camera', :path => '../node_modules/react-native-camera'

  pod 'RNShare', :path => '../node_modules/react-native-share'

  pod 'react-native-document-picker', :path => '../node_modules/react-native-document-picker'

  pod 'RNGestureHandler', :path => '../node_modules/react-native-gesture-handler'

  pod 'RNFS', :path => '../node_modules/react-native-fs'

  pod 'RNReanimated', :path => '../node_modules/react-native-reanimated'

  pod 'RNCAsyncStorage', :path => '../node_modules/@react-native-community/async-storage'

  pod 'react-native-rsa-native', :path => '../node_modules/react-native-rsa-native'

  pod 'react-native-cookies', :path => '../node_modules/react-native-cookies/ios'

  pod 'react-native-config', :path => '../node_modules/react-native-config'

  permissions_path = '../node_modules/react-native-permissions/ios'
  pod 'Permission-Camera', :path => "#{permissions_path}/Camera.podspec"
  pod 'Permission-MediaLibrary', :path => "#{permissions_path}/MediaLibrary.podspec"
  pod 'Permission-PhotoLibrary', :path => "#{permissions_path}/PhotoLibrary.podspec"
end

Environment Info:
System:
    OS: macOS 10.15.4
    CPU: (4) x64 Intel(R) Core(TM) i3-8100B CPU @ 3.60GHz
    Memory: 403.19 MB / 8.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 10.15.3 - /usr/local/bin/node
    Yarn: 1.21.1 - /usr/local/bin/yarn
    npm: 6.13.4 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
  IDEs:
    Xcode: 11.4/11E146 - /usr/bin/xcodebuild

Help would be very much appreciated !

@roaringUnicorn Do you, by any chance, use react-native run-ios instead of running your app via Xcode? 🙂

I got The following build commands failed: 	Ld /Users/xyz/Library/Developer/Xcode/DerivedData/token-ffxxblbzilscbfeohrkmvhaiupoa/Build/Products/Debug-iphonesimulator/RNPermissions/RNPermissions.framework/RNPermissions normal x86_64 (1 failure) when I use react-native run-ios. And I have clean the cache by npx react-native clean-project-auto

@XuNeal npx react-native clean-project will not delete the DerivedData files. Uninstall the app, delete rm -rf /Users/xyz/Library/Developer/Xcode/DerivedData/token-ffxxblbzilscbfeohrkmvhaiupoa.

@zoontek Tried as you commented, still get the same error like @XuNeal .
And when I build via Xcode, get the error like @roaringUnicorn .
Then I remove pre_install part, it builds successfully, but
#if RCT_DEV
  if ([available count] == 0) {
    NSMutableString *message = [NSMutableString new];

    [message appendString:@"⚠  No permission handler detected.\n\n"];
    [message appendString:@"• Check that you link at least one permission handler in your Podfile.\n"];
    [message appendString:@"• Uninstall this app, delete your Xcode DerivedData folder and rebuild it.\n"];
    [message appendString:@"• If you use `use_frameworks!`, follow the workaround guide in the project README."];

    RCTLogError(@"%@", message);
  }
#endif

Here I got available count is 0, although I pod some permissions in Podfile

@chezhe Submit your Podfile

use_frameworks!

# Convert all permissions handlers into static libraries
pre_install do |installer|
  installer.pod_targets.each do |pod|
    if pod.name.start_with?('Permission-')
      def pod.build_type;
        # Uncomment one line depending on your CocoaPods version
        Pod::BuildType.static_library # >= 1.9
        # Pod::Target::BuildType.static_library # < 1.9
      end
    end
  end
end

platform :ios, '10.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

# def add_flipper_pods!
#   version = '~> 0.33.1'
#   pod 'FlipperKit', version, :configuration => 'Debug'
#   pod 'FlipperKit/FlipperKitLayoutPlugin', version, :configuration => 'Debug'
#   pod 'FlipperKit/SKIOSNetworkPlugin', version, :configuration => 'Debug'
#   pod 'FlipperKit/FlipperKitUserDefaultsPlugin', version, :configuration => 'Debug'
#   pod 'FlipperKit/FlipperKitReactPlugin', version, :configuration => 'Debug'
# end
# # Post Install processing for Flipper
# def flipper_post_install(installer)
#   installer.pods_project.targets.each do |target|
#     if target.name == 'YogaKit'
#       target.build_configurations.each do |config|
#         config.build_settings['SWIFT_VERSION'] = '4.1'
#       end
#     end
#   end
# end

target 'token' do

  permissions_path = '../node_modules/react-native-permissions/ios'

  pod 'Permission-BluetoothPeripheral', :path => "#{permissions_path}/BluetoothPeripheral.podspec"
  pod 'Permission-Calendars', :path => "#{permissions_path}/Calendars.podspec"
  pod 'Permission-Camera', :path => "#{permissions_path}/Camera.podspec"
  pod 'Permission-FaceID', :path => "#{permissions_path}/FaceID.podspec"
  pod 'Permission-LocationAlways', :path => "#{permissions_path}/LocationAlways.podspec"
  pod 'Permission-MediaLibrary', :path => "#{permissions_path}/MediaLibrary.podspec"
  pod 'Permission-Microphone', :path => "#{permissions_path}/Microphone.podspec"
  pod 'Permission-Motion', :path => "#{permissions_path}/Motion.podspec"
  pod 'Permission-PhotoLibrary', :path => "#{permissions_path}/PhotoLibrary.podspec"

  pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
  pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
  pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
  pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
  pod 'React', :path => '../node_modules/react-native/'
  pod 'React-Core', :path => '../node_modules/react-native/'
  pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
  pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
  pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'
  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
  pod 'ReactCommon/callinvoker', :path => "../node_modules/react-native/ReactCommon"
  pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
  pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga', :modular_headers => true
  # pod 'Yoga', :podspec => '../node_modules/react-native/ReactCommon/yoga/yoga.podspec'
  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'

  pod "TokenCore", git: "git@github.com:consenlabs/ios-token-core.git", branch: "feat_opreturn"
  pod "imKeyConnector", git: "git@github.com:consenlabs/imkey-ios-sdk.git", branch: "remove-ssl-pinning"
  # pod "imKeyConnector", path: "../../imkey-ios-sdk"
#  pod "TokenCore", path: "../../ios-token-core"
  pod "CoreBitcoin", :git => 'git@github.com:consenlabs/token-core-ios-dep.git'
  pod "secp256k1.swift", :git => 'git@github.com:consenlabs/secp256k1.swift.git', :submodules => true

  pod 'SwiftProtobuf', '~> 1.0'

  pod 'Fabric'
  pod 'Crashlytics'
  pod 'TrustKit'
  pod 'SensorsAnalyticsSDK'

  pod 'CloudflareMobileSDK', '<IP_ADDRESS>'
  # pod 'Pingpp/Alipay', '~> 2.2.29'
  # pod 'Pingpp/Wx', '~> 2.2.29'

  pod 'Firebase/Core', '~> 6.21.0'
  pod 'Firebase/Performance', '~> 6.21.0'

  # pod 'RNRandomBytes', :podspec => '../node_modules/react-native-randombytes/react-native-randombytes.podspec'
  # pod 'RNDeviceInfo', :path => '../node_modules/react-native-device-info'

# React-Native is not great about React double-including from the Podfile

# end

  target 'tokenTests' do
    inherit! :search_paths
  end

  # Enables Flipper.
  #
  # Note that if you have use_frameworks! enabled, Flipper will not work and
  # you should disable these next few lines.
  # add_flipper_pods!
  # post_install do |installer|
  #   flipper_post_install(installer)
  # end

  use_native_modules!
end

# change imKeyConnector ENABLE_BITCODE
post_install do |installer|
  # flipper_post_install(installer)
  installer.pods_project.targets.each do |target|
    # target.static_framework = true
    target.build_configurations.each do |config|
      # puts "#{target.name}"
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '10.0'
      config.build_settings['ARCHS'] = 'arm64'
      config.build_settings['VALID_ARCHS'] = 'arm64'

      if target.name == 'imKeyConnector'
        # puts "#{config.build_settings}"
        config.build_settings['ENABLE_BITCODE'] = 'NO'
        config.build_settings['SWIFT_VERSION'] = '4.2'
      end
      # if target.name == "React"
      #   target.remove_from_project
      # end

      # # It removes React & Yoga from the Pods project, as it is already included in the main project.
      # targets_to_ignore = %w(React yoga)
      # if targets_to_ignore.include? target.name
      #   target.remove_from_project
      # end

    end
    rnfirebase = installer.pods_project.targets.find { |target| target.name == 'RNFirebase' }
    rnfirebase.build_configurations.each do |config|
      config.build_settings['HEADER_SEARCH_PATHS'] = '$(inherited) ${PODS_ROOT}/Headers/Public/**'
    end
  end
#  system("mkdir -p Pods/Headers/Public/FirebaseCore && cp Pods/FirebaseCore/FirebaseCore/Sources/Public/* Pods/Headers/Public/FirebaseCore/")
end

@chezhe Is that all? You don't use CocoaPods to install React parts?

I deleted that parts cause too long

Got it. RNPermissions need to be statically linked too.
pre_install do |installer|
  installer.pod_targets.each do |pod|
    if pod.name.eql?('RNPermissions') || pod.name.start_with?('Permission-')
      def pod.build_type;
        # Uncomment one line depending on your CocoaPods version
        Pod::BuildType.static_library # >= 1.9
        # Pod::Target::BuildType.static_library # < 1.9
      end
    end
  end
end

@zoontek Thanks a lot! it works fine now.

I added it to the README: https://github.com/react-native-community/react-native-permissions/commit/b9a664cb114f6eccad7d28482b122897d0359cb9

Works for me too ! Thanks !

@zoontek

@XuNeal npx react-native clean-project will not delete the DerivedData files. Uninstall the app, delete rm -rf /Users/xyz/Library/Developer/Xcode/DerivedData/token-ffxxblbzilscbfeohrkmvhaiupoa.

That is not necessarily true, one of the best parts about react-native-clean-project is that it does exactly that, I know because I wrote that part https://github.com/pmadruga/react-native-clean-project/pull/19/files
:-)

@mikehardy Didn't know it has been added (I only remember the old behavior)! Really good to know, it will be much easier to provides support.

I was having the same issue with React Native 0.63.2.
Solution was
1 - to update my cocopods version with
sudo gem install cocoapods --pre
2 - remove the following code from my pod file
pre_install do |installer|   installer.pod_targets.each do |pod|     if pod.name.eql?('RNPermissions') || pod.name.start_with?('Permission-')       def pod.build_type;         # Uncomment one line depending on your CocoaPods version         Pod::BuildType.static_library # >= 1.9         # Pod::Target::BuildType.static_library # < 1.9       end     end   end end
After that, I did a pod install and everything was working again.

Had the same error on RN 0.63.3.
I think I solved it by updating cocoapods.

Had the same error on RN 0.63.3.
I think I solved it by updating cocoapods.

how?


Config creation (CIRA, Domain, profile) API’s are failing  randomly with “internal server error 500”.

Config creation (CIRA, Domain, profile) API’s are failing randomly with “internal server error 500”.

I am using AMT 1.0.0 version. I have identified this is causing because of giving more length of profile or cira name while creating configs. Could you please help in mentioning what is the maximum input length of profile, cira or domain name or any standards defined for that names. So that we will follow the same.

@kalakatx the only limit would be on the PostgreSQL string limit of 65,535.  Have you found a boundary string length that causes a failure?

Closing this issue due to lack of activity.  Feel free to re-open if you are still seeing this issue on the currently released version.


How to use menus in Symfony 4

Before the bundlle system deprecation, I used to do this:
{{ knp_menu_render('AppBundle:Builder:mainMenu') }}

But now that AppBundle doesn't exist anymore, how can I render the menu?
Obviously this syntax doesn't work...

I recommend registering menu builders as services

Yes, I'm reading just this part of the documentation and it seems to be the only way I have to make it work in Symfony 4...
So you confirm me this is the right path to follow?

This is the error that currently I'm getting:
Unable to find template "knp_menu.html.twig" (looked into: /Users/Aerendir/Documents/JooServer/_Projects/MyApp/templates, /Users/Aerendir/Documents/JooServer/_Projects/MyApp/templates, /Users/Aerendir/Documents/JooServer/_Projects/MyApp/vendor/symfony/twig-bridge/Resources/views/Form) in @KnpMenu/menu.html.twig at line 1.
Now, the missed template exists in the package knp-menu, but not in the package knp_menu_bundle.
It seems that knp-menu isn't registered as a bundle and so the that base template cannot be found...
Any ideas?

Is it works @Aerendir ?

@sess16 , currently I stopped the use of SF4 as of this problem: I didn't fixed it nor found a way to make it work. But I run out of time to dedicate to this...

Hello,
when KnpMenu will be available to use with SF4?
I check every day for an update but nothing is done :(
Do you have a roadmap for this bundle?
Best regards,
Isaac

twig.yaml
twig:
    paths:
        - '%kernel.project_dir%/templates'
        - '%kernel.project_dir%/vendor/knplabs/knp-menu/src/Knp/Menu/Resources/views'

    debug: '%kernel.debug%'
    strict_variables: '%kernel.debug%'

@BoShurik , really good! As told, I'm not working on the migration now, but I will try this solution ASAP. Anyway this works for sure as it hard fixes the problem of the missed template.
But the real question remains: why is this template missed?

@iflorespaz , it works with SF4, but some workarounds as the one suggested by @BoShurik is required.
The best thing you can do, is try to use the bundle with SF4 and see where you stop, then ask here for a solution: this will help all of us to make the bundle fully work in SF4.

But the real question remains: why is this template missed?

Because it is in knp-menu not in knp-menu-bundle I think

Yes, but in SF3 it works... so the question is relevant to update the bundle and make it load he template also in SF4.

@BoShurik, thank you for this simple and usefull solution!

I did some more digging. The problem is that feature relies on a symfony/templating dependency.
composer require symfony/templating

and it needs to be configured in config/packages/framework.yaml:
framework:
    # ....
    templating:
        engines:
          - 'twig'

@codedmonkey many many thank you! I think that discover this problem was really a pain and so I can only thell you: "Thankyou"!

https://github.com/KnpLabs/KnpMenuBundle/issues/374 is tracking this in the bundle.

Now that problem is fixed, this can either be closed or is it worth discussing having autowired builders incorporated in the bundle?

@danyal14

Register your menu as a service
Inject your menu in your template (if you need it in your layout, the only way I found is too declare a global twig variable)
{{ knp_menu_render(your_menu) }}; where your_menu is already an instance of Knp\Menu\ItemInterface; it avoid Knp\Menu\Twig\Helper (the one called by knp_menu_render) to search for a bundle

If then you got the error

Unable to find template "KnpMenuBundle::menu.html.twig"
do like @codedmonkey said above:

composer require symfony/templating
config/packages/framework.yaml:
framework:
    # ....
    templating:
        engines:
          - 'twig'

@Aerendir you can use this provider https://github.com/Kronhyx/KnpMenuBundle/blob/master/Provider/BuilderAliasProvider.php
instead call knp_menu_get('AppBundle:HeaderMenu:Search') use knp_menu_get('App:HeaderMenu:Search')

@Kronhyx , thank you for the suggestion... I've solved using menus as services and it works very well...

@Aerendir does it recognise the current link? Using menu as service with SF4 made it work but it doesn't recognise the current link.

@Aerendir, Thanks.
Anyone else experiencing the issue of current link not being recognised?

@cre8izm , I have same trouble, all my link has class "current"

I just build a custom Menu extension to replace knp_menu_get:
<?php

declare(strict_types=1);

namespace App\Twig\KnpMenu;

use Knp\Menu\ItemInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Twig\TwigFunction;
use Twig\Extension\AbstractExtension;

class AppMenuExtension extends AbstractExtension
{
    /**
    * @var ContainerInterface
    */
    private $container;

    public function __construct(ContainerInterface $container)
    {

        $this->container = $container;
    }

    public function getFunctions()
    {
        return [
            new TwigFunction('app_knp_menu_get', [$this, 'getMenu']),
        ];
    }

    public function getMenu(string $menu, array $path = [], array $options = []): ItemInterface
    {
        $menuBuilderName = substr($menu, 0, strrpos($menu, '::'));
        $actionName = substr($menu, strrpos($menu, '::')+2);

        $menuBuilder = $this->container->get($menuBuilderName);
        $menuBuilder->setContainer($this->container); // Inject container with ContainerAwareTrait
        $knpMenuFactory = $this->container->get('knp_menu.factory');

        return $menuBuilder->{$actionName}($knpMenuFactory, $options);
    }
}

Usage:
{% set menuItem = app_knp_menu_get('App\\Menu\\EnumeratedContactMenuBuilder::createListTools', [], { 'routePrefix': routePrefix, 'type': type }) %}
{{ knp_menu_render(menuItem) }}

The MenuBuilder has to be registered as a service via Symfony autoconfigure.


[SPARK-44181][BUILD] Upgrade Apache Kafka to 3.4.1

What changes were proposed in this pull request?
Upgrade Apache Kafka from 3.4.0 to 3.4.1
Why are the changes needed?
Release Notes
Kafka 3.4.1 fixes 58 issues since the 3.4.0 release.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Pass GA

@dongjoon-hyun This is not the latest version. There are a 3.5.0 but that did not run as I was hoping for see my first commit.
Can we have this for spark 3.4.2 ?

Thank you for pinging me.

This https://github.com/bjornjorgensen/spark/actions/runs/5365767358/jobs/9734794773 is the build log for 3.5.0 any tips on whats wrong her?

Ur, do you mean this will not pass CI?

This 3.4.1 will pass CI but kafka 3.5.0 did not.

oh... in 3.5.0 kafka have moved many modules.
[KAFKA-14472] - Move TransactionIndex and related to storage module
[KAFKA-14473] - Move AbstractIndex to storage module
[KAFKA-14474] - Move OffsetIndex to storage module
[KAFKA-14475] - Move TimeIndex/LazyIndex to storage module
[KAFKA-14476] - Move OffsetMap to storage module
[KAFKA-14477] - Move LogValidator and related to storage module
[KAFKA-14478] - Move LogConfig/CleanerConfig to storage module
[KAFKA-14480] - Move ProducerStateManager to storage module
https://github.com/bjornjorgensen/spark/actions/runs/5365767358/jobs/9734794665#step:7:2031

Merged to master. Could you make a backporting PR for branch-3.4, @bjornjorgensen ?

@dongjoon-hyun Thank you.
Yes, I can try tomorrow.

Thank you!


Add some tests to CI

These tests are using inputs largely based on CAT-23-001.

To get this merged without issues, I could remove the MarkovChainMC test for now.


Release 0.5.2  version

please push version 0.5.2 to rubygems

@kennyadsl Was there a reason that version never got pushed or was it yanked for some reason? I don't recall and it's not apparent to me from the git history.

I can't recall, maybe it's just a mistake. @jalkoby May I ask why do you need that specific version?

Hi. I'm working on an old solidus project which we recently updated to rails 6. As the result zeitwerk was not happy about how decorators loaded. The first release which actually fix it is 0.5.2. The next version is 0.6.0 but we using solidus_social which locked for some reason on solidus_support "~> 0.4, < 0.6"

Got it thanks, what if we update solidus_social instead?

Oh, looks like it has been updated already: https://github.com/solidusio-contrib/solidus_social/blob/955dd479a73c4cef6e327cf37ef36ae5b67873fd/solidus_social.gemspec#L41. I will push a release for it today.

@jalkoby solidus_social 1.4.0 released. Let me know if we can close this one!

yes,  thanks


Use inflate instead of bind .

Use like below:
private val binding by viewBinding(FragmentNameBinding::inflate)
Reason?
-> binding will be available in onCreateView too and if UI is desired , view can be returned as binding.root.
-> No need to pass R.layout.fragment_layout in Fragment() constructor  .
If any edit is required ,maintainer has the permission to do so within this pull request.

Thank you for the contribution, however having to manually override OnCreateView to return binding.root is oppositional to the way the library is intended to work (Fragment(R.layout.*)), so this won't be merged, sorry.


Include link to Go library

This has been tested on my own hardware (attached to Pi Zero W).
Also found a minor typo in the Python docs.

Thank you! (for the correction, too, that's a mildly amusing typo!)


Fixes Issue #283

@cool-ant When it comes to the spacing of the contents of the "Welcome to Eden" card, easiest thing to do would likely be to revert that card back to the state it was in prior to the addition of the stats. Try copying what's here and using that: https://github.com/eoscommunity/Eden/blob/77cd1f627f292a2356984d8d065d1846674bbffe/packages/webapp/src/pages/index.tsx
That's going to do a couple things. It will move "Welcome to Eden" into the flow of the text (instead of it being a Card title) which will make the height of the text in the right column line up better with the height of the text in the left column (when there are two columns) and it will fix the inter-paragraph spacing issues.

We need to remove the "See Pending Invitations to Eden" link from this page too:

You'll want to install the "Prettier - Code formatter" extension in VSCode and make sure it's reformatting your code when you save the file. I recommend installing that and going back and re-saving any files you modified.

I like the link on the "Membership." Can we make it gray? Something like this?
And let's change the text to say "See all pending community invitations".

{isCommunityActive && (
    <Link
        href="/induction/pending-invitations"
        className="block w-full my-8 text-center"
    >
        <span className="text-gray-400">
            See all pending community invitations
        </span>
    </Link>
)}


Missing namespace information in generated XML for records with type inclusion

Description
When converting a record type annotated with @xmldata:Namespace to XML using the xmldata:toXml() function, the generated XML does not include the namespace information specified in the annotations.
Steps to Reproduce

Run the following sample code

import ballerina/data.xmldata;
import ballerina/io;

@xmldata:Namespace {prefix: "soap", uri: "http://www.w3.org/2003/05/soap-envelope"}
public type Envelope record {
    *Body;
};

@xmldata:Namespace {prefix: "xs2", uri: "http://www.w3.org/2001/XMLSchema2"}
public type Body record {
    @xmldata:Namespace {prefix: "xs1", uri: "http://www.w3.org/2001/XMLSchema1"}
    string value;
};

public function main() returns error? {
    Envelope document = {
        value: "this is a string"
    };
    xml xmlDocument = check xmldata:toXml(document);
    io:println(xmlDocument);
}

Result:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><value>this is a string</value></soap:Envelope>
Expected Result:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><value xmlns:xs1="http://www.w3.org/2001/XMLSchema1">this is a string</value></soap:Envelope>
Version
2201.10.2
Environment Details (with versions)
No response

This happen because, the included records does not inherit its metadata informations.
Related spec issue - https://github.com/ballerina-platform/ballerina-spec/issues/1311
So this issue should be fixed from the language repository.

Closed due to https://github.com/ballerina-platform/ballerina-library/issues/7403#issuecomment-2497216696


Update version available via Bower

The version available via bower doesn't match the updated one in github. In particular I needed the code from https://github.com/angular-ui/ui-ace/pull/26 , so I had to track the  github commit rather than the normal bower install.

This just requires a git tag and git push command - would be great to see this get done.

I'm gonna ship ! :)

I'm just checking if I can add some more stuff..
Wait for it !


Make the distributed mode reliable.

Following #2914, #5380 and also http://stackoverflow.com/questions/32893656/inserting-3500-objects-into-orientdb-takes-too-long and https://github.com/orientechnologies/orientdb/issues/5091#issuecomment-147479307, I would label the current implementation of the distributed mode as plainly unusable. I'm experiencing all kinds of problems and delays, and I can reproduce each of the issues I am quoting. @lvca has previously said that this will be fixed on a 3.0 release, but... we've just now reached 2.1.6. How much time will we really have to wait to get this fixed? For real...

For unusable do you mean you have issues or it's just because it's slow?

If it is too slow, a database is also unusable. :stuck_out_tongue_winking_eye:
Looks like #2914 is a problem with indexes being ignored in distributed asynchronous execution mode.
#5380 is a performance problem with mass inserting edges. Not sure which execution mode, async or sync.
On that, the standard default distribution config has "undefined" in it under execution mode. What execution mode does the system default to and why can't that be put in the config file as the default value instead of "undefined"? Or is the config set up properly, when the system is first put into distributed mode?
The stackoverflow issue seems to also be a problem with very slow performance on batch inserts in distributed mode.
#5091 doesn't deal with a distributed system. So, I am not sure what the relevance is.
Scott

@smolinari, I'll quote the relevant part from #5091:

It is very hard to take orientdb serious when such simple things doesn't works. In almost every release there is a regression. Orientdb should be focused on qualitity not in features. This is my perspective in 6 month orientdb.

Looks like I'm not the only one who is dissatisfied.
@lvca I mean both. I do have issues. Sometimes one of the nodes stops responding. A simple TRUNCATE CLASS takes about 3 seconds. I get lots of "couldn't find best cluster for" errors and a lot of "quorum not reached" which makes the server exit. This, I'm afraid, means it's unusable.

@testark I see your frustration, but this is an Open Source project so you have mainly 2 choices:

help finding the problem, or at least
help us to reproduce the problem

In issue #2914 we have a test case, so please don't just say "This is still the case with 2.1.6.", but please provide a way to reproduce your problem, namely a test case.

@lvca It's not hard to reproduce the problems I am refering to. All it takes is:

Grabbing (at least) three VMs somewhere.
Grabbing the OrientDB tarball and setup it in distributed mode on those VMs (stock configuration).
Get a client to connect using remote and do some basic operations.

It's not that hard really. And regarding your last sentence,

so please don't just say "This is still the case with 2.1.6."

Then please don't just say "can you try with latest version we've just released" when people report a problem, because that's the only single thing you've been telling me and everyone when a problem is reported. (I can provide evidence, if you need, though I won't really bother doing this right now as you know this is your usually modus operandi).

From the anecdotal perspective of someone wanting to take OrientDB into production, this makes me regret the time I've invested in building my project using OrientDB. It appears to me that the ambition of the project exceeds the resources to which it has access.
Is it really reasonable for users to be running serious non-embedded projects that are not using the distributed mode? How can you ever hope to set up HA without the distributed scenario being bulletproof.
I understand that this is an Open Source project and that it is unfair for me to have any sense of entitlement. However, it isn't clear to me that this project has the sort of focus that is suitable for production use as the primary database supporting a high-traffic website.
I would love to be convinced otherwise because on the surface the product is without match.

Issue #2914 is closed, what kind of problem @ggoodman are you experimenting? Default configuration? Could you tell us more?

Closing because no response, in case @ggoodman please provide the problem/error/test-case where doesn't work.


I want to draw circles and polygons, but I don't know what to do

I need to use the mouse to draw graphics after the picture is loaded

You'll need an overlay that supports such things. We have a number of options listed in http://openseadragon.github.io/#plugins. For what you're doing, I recommend starting with https://github.com/altert/OpenseadragonFabricjsOverlay. Take a look at the demo code for ideas.


Adds Concat and Extract as operators for bit vector values

Looks good! Thanks Joao! Won't merge now as it will break owi


feat(qol): use ToSocketAddrs for public-facing socket apis

Breaking changes

API interface: bind and connect socket methods now accept a simple &str instead of SocketAddr. This does dns resolution in the background as well.

Closes #62

Could you update the book as well? Forgot about that

Actually all the examples in the book already used this feature for some reason haha
I can add a few lines to explain that it does auto dns resolution though


Please write me

Dear creator of Orbit! Please, write me via<EMAIL_ADDRESS>I didn't find how to send private messages here
I have something to talk about! It is very urgently
This message you can delete!
Wait for your letter very much!

Thanks for reaching out @plankeonus! The best way to get directly in touch is via IRC on #orbitdb or PM me on IRC (haad).

Check<EMAIL_ADDRESS>

please, delete all this posts! now we are at mail with you


Remove the flags forcing use of older pretty

Since pretty-<IP_ADDRESS> ships with GHC 7.8, we're constrained to that version. For more information, see:

https://www.fpcomplete.com/blog/2014/05/lenient-lower-bounds
https://github.com/fpco/stackage/issues/395

Huh, I thought removing this would just increase the range of versions my packages could build with, but still include the stackage versions.  But the mysteries of dependencies are infinite...

In case it helps explain things, stackage-curator does no intelligent flag
auto-selection. All flags must be manually stated.
On Fri, Apr 3, 2015 at 3:00 PM David Fox<EMAIL_ADDRESS>wrote:

Huh, I thought removing this would just increase the range of versions my
packages could build with, but still include the stackage versions. But the
mysteries of dependencies are infinite...
—
Reply to this email directly or view it on GitHub
https://github.com/fpco/stackage/pull/523#issuecomment-89267261.

Ok, that was the missing link in my brain.


Separately bound keys are not firing together

Describe the bug
If you are binding some keys separately, e.g.
const coords = { x: 0, y: 0 };

bindKey('w', () => coords.x += 1  );
bindKey('a', () => coords.y -= 1  );
bindKey('s', () => coords.x -= 1  );
bindKey('d', () => coords.y += 1  );

While pressing 2 keys (or more), only one of the callback is triggered. (But all should be triggered, imo)
Expected behavior
I expect both callbacks to be triggered at the same time, cause 2 buttons are still pressed.
Why
Imagine a videogame, e.g. a shooter game. User is moving using WASD alongside with "space" for a jump, "G" for throwing grenade and etc. It's literary impossible to bind every combo. Instead the binds should be independent from each other ("W" moves forward, "A" moves left, so eventually user will be moved forward and left) .
To Reproduce
An example at stackblitz:
https://stackblitz.com/edit/vitejs-vite-iunkan?file=src%2Fmain.ts
You can move the "Actor" red square using WASD, but cannot move it in a diagonal direction.
P.S. used version 1.5.6

Is it any chance that this issue will be fixed? =)

Indeed, this is somewhat by design, though I must admit it's not great for games.
For applications, if I have the combo a + b, and a combo a + b + c, I don't really want the first combo firing. The behavior is that keys are consumed by the combos they trigger.
What might make better sense for the gaming use case it the ability to key keystrokes to allow non exclusive combo binds, and also allow overriding this setting when calling bind functions.
I'm quite busy these days, but I'm happy to take a PR until I find the time to do this myself.
Thanks for raising this.


Remove duplicate minikube tunnel

Changes

:bug: remove duplicate call to minikube tunnel (now only called when setting up kourier networking)

/kind bug
Fixes #111
/assign @csantanapr

/lgtm


Refactor dev environment

This change adds several key things:

Moves from golang to bash for the wizard
Removes the pre-created keys
Introduces a pattern for how dev commands and shortcuts can be added to the Env

It does not consume the latest changes to livepeer, specifically the removal of -ethDataDir flag. that is a good thing to tackle next.

Note: I'm not entirely happy with some of the specific functions in dot_lpdev_cmds.sh, but I like the overall pattern and want to get this out for feedback. They're a little brittle right now and can probably be simplified.

I had to manually create .lpdata directory. Prior to that the commands in the wizard to start geth wouldn't complete.

And geth is running, but when I try the deploy protocol contracts command I get the following errors:
== Current Status ==

Geth miner is running: true (2240)
Geth accounts:
  e2f3775121ba3d46e640374cdd41051a545f6367 (miner)

Protocol is built: true (current branch: master)

Broadcaster node is running: false ()
Transcoder node is running: false ()

--

What would you like to do?
1) Display status			4) Start & set up broadcaster node	7) Exit
2) Set up & start Geth local network	5) Start & set up transcoder node
3) Deploy/overwrite protocol contracts	6) Destroy current environment
#? 3
Protocol src directory exists
Geth Mining Account not found
Running `truffle migrate --reset --network lpTestNet`
Using network 'lpTestNet'.

Running migration: 1_initial_migration.js
  Deploying Contract...
  ... undefined
Error encountered, bailing. Network state unknown. Review successful transactions manually.
Error: unknown account
    at Object.InvalidResponse (/usr/lib/node_modules/truffle/build/cli.bundled.js:37312:16)
    at /usr/lib/node_modules/truffle/build/cli.bundled.js:220420:36
    at /usr/lib/node_modules/truffle/build/cli.bundled.js:72910:11
    at /usr/lib/node_modules/truffle/build/cli.bundled.js:204149:9
    at XMLHttpRequest.request.onreadystatechange (/usr/lib/node_modules/truffle/build/cli.bundled.js:205574:13)
    at XMLHttpRequestEventTarget.dispatchEvent (/usr/lib/node_modules/truffle/build/cli.bundled.js:73069:18)
    at XMLHttpRequest._setReadyState (/usr/lib/node_modules/truffle/build/cli.bundled.js:73359:12)
    at XMLHttpRequest._onHttpResponseEnd (/usr/lib/node_modules/truffle/build/cli.bundled.js:73514:12)
    at IncomingMessage.<anonymous> (/usr/lib/node_modules/truffle/build/cli.bundled.js:73474:24)
    at emitNone (events.js:110:20)
Don't forget to restart any nodes that may be using the previous controllerAddr!

And then somehow on a rebuild of the environment, I could get beyond that point, but compilation of the contracts still failed because of an unrecognized view keyword. Perhaps it's using an older version of solidity.
/home/ubuntu/src/protocol/contracts/Controller.sol:28:46: ParserError: Expected token LBrace got 'View'
    function getContract(bytes32 _id) public view returns (address) {
                                             ^
,/home/ubuntu/src/protocol/contracts/Initializable.sol:23:37: ParserError: Expected token LBrace got 'View'
    function isInitialized() public view returns (bool) {

...

If these comments aren't helpful, let me know and we can take the troubleshooting offline. Just adding them here for review before we track them as independent issues in case I'm doing something wrong.

@dob please add comments here liberally so we can track and fix.
I'm generally running this as a clean environment -- blowing away each time and restarting from scratch so I can imagine some issues.
For instance, I just realized most devs moving from OSX to here will have built protocol/node_modules and any native modules won't run in the vm (boo).

Ok. Whew.
I took a stab at creating a faux ~/src/protocol/node_modules in the virtual machine. Please give this a whirl. You should be able to vagrant provision or vagrant up --provision to get the latest changes without destroying your existing vm.
Friendly FYI: The node_modules directory in your host machine will no longer be two-way synced between the host and vm. Everything else should be.
It could be interesting to extend this idea to include anything else that is dev/vm specific (like truffle.js, etc).

Awesome.  Let's merge this PR and keep an improvement ideas in the issues!  🚢


cranelift/x64: Use "bit test" instructions

Feature
x86 has dedicated instructions that we could use for the following patterns:

bor with a constant power-of-two: bts ("Bit Test and Set")
bxor with a constant power-of-two: btc ("Bit Test and Complement")
band with the bitwise-complement of a constant power-of-two: btr ("Bit Test and Reset")
icmp of band with a constant power-of-two: bt ("Bit Test") (this one may be a little trickier)

It's also possible to match any of these patterns with a non-constant mask produced by shl 1, x (plus bnot in the case of the btr pattern). However in that case it's necessary to make sure that x is used modulo N, where N is the number of bits in the result type. See the lowerings for shl for details, and note that the bit-test instructions use their operands modulo the operand width just like the x86 shift instructions do.
Benefit
Testing and modifying individual bits is a common pattern in certain kinds of systems programming, so such programs will produce smaller code and may run faster.
These instructions don't modify their operands, unlike the and/or/xor instructions, so they're potentially eligible for load-sinking, and also register allocation may be able to avoid duplicating values. (edit: this is obviously only true for bt, not any of the other instructions which do modify their operands.)
Implementation
This is mostly like adding any other instruction, but as a particular note, we have an extractor called imm64_power_of_two for getting the base-two log of an iconst if that constant is a power of two.

Interesting! I've now checked a few more cases.

opt-level 1-3 all construct the constant mask like you observed, while opt-level=s and opt-level=z both use these instructions.
Even with opt-level=s, integers smaller than u64 don't use these instructions.
The bit index doesn't matter for instruction selection, only for whether a movl is sufficient or a full movq is required to load the mask into a register. I thought it might prefer these instructions for bits 32-63 since the movq encoding is so much larger, but no.
None of these configurations use the bt instruction: apparently bool is represented as "anything non-zero is true" so for x & (1 << 63) != 0 it emitted a single right-shift at all optimization levels.

IMHO we should answer this question based on known performance characteristics of x86 implementations. In modern cores, the bit-test instructions are known to be slower than plain ALU operations. According to Agner Fog's instruction tables, on IceLake (a recent-ish Intel core) for example, AND/OR/XOR with reg/reg or reg/imm forms have a latency of 1 cycle and a throughput of 4/cycle, while BTS/BTR/BTC with reg/reg or reg/imm have a latency of 1 cycle and a throughput of 2/cycle. It gets worse for memory forms: the implementation is microcoded (11 uops; up to a few uops can be emitted by the hardware decoders, anything greater switches the frontend to microcode-sequencing mode with associated penalty).
In general I think the tendency of modern compilers is to stick to the "RISC-like" areas of x86 because the more complex corners of the ISA are unoptimized; IMHO we should do the same as we'd prefer performance over saving a few bytes of code size.

Good to know! I'll close this then.


rviz: 1.14.23-1 in 'noetic/distribution.yaml' [bloom]

Increasing version of package(s) in repository rviz to 1.14.23-1:

upstream repository: https://github.com/ros-visualization/rviz.git
release repository: https://github.com/ros-gbp/rviz-release.git
distro file: noetic/distribution.yaml
bloom version: 0.12.0
previous version for package: 1.14.22-1

rviz
* Fix #1825 <https://github.com/ros-visualization/rviz/issues/1825>
  model_ is destroyed between registration of the single-shot timer and its execution
* Contributors: Robert Haschke

This pull request has been mentioned on ROS Discourse. There might be relevant details there:
https://discourse.ros.org/t/preparing-for-noetic-sync-2024-05-09/37602/6

Thank you!


ios 11.4

Hello,
How difficult would it be to bring the repo back to life. I work scientific computing, but have no idea about app development, I recently tumbled into sideloading stuff on my ipad.

It was a short project. Really only spent a few days on it. I can't imagine it would be too hard to resurrect. Are you offering to try? :)

David,
It is sneaky question that you asked, but it would be a huge learning curve for me to pick up app development, and it would take me forever.  Would you have the capacity to resurrect taskearrior-ios within the next 6 months? If not, I would probably tinker with it.
Cheers,
Robert

Robert Weiss
Associate Professor of Natural Hazards
Department of Geosciences
Virginia Tech
4044 Derring Hall (0420)
Blacksburg, VA 24061, U.S.A.
Office: 1068A Derring
Phone:+1-540-231-2334
Fax: +1-540-231-3386
!!!!!Please note the new webpage!!!!!
http://coastalhazardsvt.weebly.com
Twitter: @VTCoastal
Albert Einstein (probably joking):
If the facts don't fit the theory, change the facts!

On May 31, 2018, at 1:14 AM, David Whetstone<EMAIL_ADDRESS>wrote:
It was a short project. Really only spent a few days on it. I can't imagine it would be too hard to resurrect. Are you offering to try? :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.


Chips placeholder text doesn't populate when data starts as empty array

I've modified this gist from the component catalog to illustrate: https://gist.run/?id=09bd910c79091c89d8e2f4b35305951b
The chips input does not contain any placeholder text. The original example from the component catalog does show the placeholder text when chips are present on initialization. Adding a chip and removing it will result in the placeholder text being present when there are no chips present (as expected).
Also, the secondaryPlaceholder option never seems to take effect (I suspect that may be a materialize bug).

Thanks @Thanood. It does seem like the placeholder issue is rooted in the materialize code.
Also, the secondary placeholder issue is my fault. In the gist, I passed the value as secondaryPlaceholder instead of secondary-placeholder. My mistake.

Seems I always forget about that, too. 😃


viedo becomes black screen

Hi, my test result viedo becomes black screen,thanks.

It work for me. I'm using Huawei P20, 4 MB RAM, Android 9, targeting a Hiro marker.

I'm using iPhone XR,iPhone 6, use Safari iOS 12 target a Hiro maker  become black screen,thanks.

Maybe an issue with safari, could you try it with chrome for IOS ? also if possible using chrome debugger get what the console output is on your phone so we can see what the problem is.

iOS Safari doesn't support webm (at all). No other browser on iOS is allowed to access the camera.
If you find a solution for transparent videos on iOS (within ar.js and possibly a-frame) please share it - I'd be very interested!

how to change video

I've met a problem that the play button didn't show, so that the gif couldn't play. Is there any suggestion? I'm running exactly the same code on github with localhost.


Remove nrc from Cargo reviewers

cc @nrc, don't want to do anything you're not aware of, but also don't want to add too much to your plate!

Is this ready to be merged?

Let's give @nrc a few more days to take a look to confirm

Hey, sure, thanks. Sorry for neglecting my review duties.

No worries @nrc, just didn't want to overload you any more than you already are :)


Android Basics: Fragments Navigation component

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-training-fragments-navigation-component?authuser=1&continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-kotlin-unit-3-pathway-2%3Fauthuser%3D1%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-training-fragments-navigation-component#0
In which task and step of the codelab can this issue be found?
1 "Before you begin"
Describe the problem
Typo - "fragmen" instead of "fragment" here:
In the example below, both the navigation UI on the left and the content on the right can each be contained in a separate fragmen.
Steps to reproduce?

Go to the codelab
See error in the article just above the second screenshot

Additional information

@Firreit
Thank you so much for reporting this issue. This is fixed and will be published soon.


GSO question

Hi~I comb the calling process of GSO in the code,  I found that
constexpr uint64_t kDefaultV4UDPSendPacketLen = 1252;
parameter is transmitted to the AsyncUDPSocket::writev function and print gso parameter using LOG(INFO) found that upper bound is 1252, and IOBuf::length()  upper limit is also 1252 which cause  toplimit of one iovec struct size is also 1252, and iovec struct will finally pass into sendmsg function, does it means ip layer don't need to fragment packet any more? If it reallly dose, so the improvemance of turning on gso is just because of reducing traversal protocol stack which brings more operating system calls?
I would appreciate it if you replied this.

The way GSO works for UDP is that the data that's submitted as part of the iovec is copied into a contiguous buffer in the kernel. This buffer is then sent through the network stack once. The actual packets, or "segments" are built just in time for sending on the wire.
This is compared with sendmmsg without GSO, where indeed one syscall is made, but the operation is different. Each buffer from the iovec is copied separately from userspace into new destinations, and each datagram traverses the network stack separately. It is literally a loop around a plain sendmsg.
The benefits of GSO are then primarily the eschewing of this looping. It is much faster for the kernel to segment a single buffer and do the associated routing lookups only once, rather than doing it for each individual packet.

Thank you very much


feat: new pixi global

This adds functionality as described in https://pixi.sh/dev/design_proposals/pixi_global_manifest/

Nitpick: I'm not a fan of the project directory as this has nothing to do with the "pixi projects". I would just move all the code into the src/global. And then you could move the manifest into its own module for instance.

I have some messy left-overs from an earlier try.
I have files like:
#!/bin/sh
export PATH="/Users/wolfv/.pixi/envs/baz/bin:${PATH}"
export CONDA_PREFIX="/Users/wolfv/.pixi/envs/baz"
"/Users/wolfv/.pixi/envs/baz/bin/pip" "$@"

Where the .pixi/envs/baz does not exist anymore. I think we can / should check if the path still exists, and if not, we could also delete the shell script that links to the environment as a clean up.

When running for the first time:
$ pixi global list
⚠  You don't have a global manifest yet.
Do you want to create one based on your existing installation?
⚠  You don't have a global manifest yet.
Do you want to create one based on your existing installation?
Your existing installation will be removed if you decide against it. yes
  × Failed to create global manifest from existing installation
  ├─▶ Failed to extract exposed binaries from existing installation please clean up your installation.
  ├─▶ failed to read directory `/Users/tdejager/.pixi/envs/rattler-build/conda-meta`
  ╰─▶ No such file or directory (os error 2)

I don't remember doing anything with that folder? Maybe a bad global remove?

When updating multiple envs, I don't know which one is currently updating (just see the name of the last one that was updated)

I was scared when it told me that we would remove everything. Maybe not have this option?

As a user starting out I don't really have an idea that it's using a manifest and that there are some more features. Maybe with the migration it could give me some information in the console?

Also it told me it remove the installation folder, but sync still seems to remove some things.

Ohhh I want to see that shiny new manifest! How do I know what the path is? Can I use pixi global edit to open it in my $EDITOR?

Doesn't show me version numbers which makes me saaaad :)

I was looking at pixi global add --help and the it's a bit hard to read the examples, like they all seem grouped together:
Adds dependencies to an environment

Example: pixi global add --environment python numpy pixi global add --environment my_env pytest pytest-cov --expose pytest=pytest

I try to install older versions of rattler build which seems to either do nothing or be insanely fast. It at least doesn't give me much feedback.

Ahhh this kind of makes me think I can install pypi stuff as well, this is from the add command help:
      --pypi-keyring-provider <PYPI_KEYRING_PROVIDER>
          Specifies if we want to use uv keyring provider

          [possible values: disabled, subprocess]

When I do pixi global install rattler-build=0.19 and then do pixi global install rattler-build it also seems to update rattler-build?

Can I see the location of the pixi toml as well in list?
╰─ pixi global list                                                                                ─╯
Global environments at /Users/tdejager/.pixi:
├── bat: 0.24.0
├── ipython: 8.28.0
│   └─ exposes: ipython, ipython3
├── keyring: 25.4.1
└── nvim: 0.10.2

When I do this:
 pixi global a --environment keyring keyrings.google-artifactregistry-auth
✔ Added package 'keyrings.google-artifactregistry-auth=1.1.1=pyhd8ed1ab_0'

I think I'd rather see:
pixi global a --environment keyring keyrings.google-artifactregistry-auth
├── keyring
    └── dependencies: keyring 25.4.1, keyrings.google-artifactregistry-auth 1.1.1

Cause I'll probably always use pixi global list as a sanity check if it works.

I wonder if we should change the output:
╰─$ ixi global install "rattler-build 0.19"
✔ Added executable 'generate-cli-docs'.

To something that prints ✔ Added executable <color>generate-cli-docs</color>

Should we add the globla manifest and the global bin dir to the output of pixi info?

I noticed that pixi global expose remove foo needs an env although there should probably be only a single foo anyways.

When updating or instlaling I would like to see the new version that was installed afterwards.

Also I had a situation where I did:
pixi global install rattler-build=0.23   # not the latest
pixi global update rattler-build  # did not do anything

For the latter, I think it migth be good to print something. I know that might be more work though. Let's think about it tomorrow.

And one last little one: I tried to figure out what version of rattler-build I had installed, but I think pixi global list does not let me filter right now? I tried pixi global list rattler and pixi global list rattler-build. My assumption was, that, like search it would show me things starting with these letters.

@wolfv pixi g list -e rattler-build gives more info

Packages having underscores get ignored
$ pixi g list
Global install location: C:\[redacted]\
├── conda-smithy 3.41.1
|   └─ exec: feedstocks.bat, conda-smithy.bat
├── huggingface_hub 0.25.1
|   └─ exec: huggingface-cli.bat
├── rattler-build 0.23.0
|   └─ exec: rattler-build.bat, generate-cli-docs.bat
└── uv 0.4.17
   └─ exec: uvx.bat, uv.bat

$ pixi-next g list
WARN Failed to parse environment name 'huggingface_hub', please use only lowercase letters, numbers and dashes
Global environments as specified in 'C:\[redacted]\manifests\pixi-global.toml'
├── conda-smithy: 3.41.1
│   └─ exposes: feedstocks, conda-smithy
├── rattler-build: 0.23.0
│   └─ exposes: generate-cli-docs, rattler-build
└── uv: 0.4.17
   └─ exposes: uvx, uv

Oh nice find @chawyehsu!


copySourcePathAssets not copying Assets.car along with some other files?

Hi Josh! I just started to try to migrate all our projects to Visual Studio using your extension, first of all, thank you very much about it, it really does look great so far.
I've actually have quite a bunch of questions but I will try to figure them out all as I keep trying to integrate my Flash Builder projects onto this new system.
The one question I'd like to ask by now is regarding the copySourcePathAssets. I understand that, according to the documentation that option:

Copies all files in the source path that don't have .as or .mxml extensions into the output directory.

Actually to create a debug build and run it on the simulator it does look like it's working fine, but whenever I try to package it to debug or release on a device, the .ipa size doesn't look good, after decompressing it I found that not all assets were added, I actually notice that when trying to build the release package, a warning came up stating that the Assets.car asset wasn't being packaged in the app, which made me try to add it directly into the "files" option, and that way it did not warn me anymore.
My current configuration for my test project is quite complicated to be honest (it uses 3 custom libraries, which have also been added as projects in Visual), but I think it should still work. This is the asconfig.json and the launch.json files:
asconfig.json:
{
	"compilerOptions": {
		"output": "bin/MainGame.swf",
		"source-path": [
			"src",
			"media",
			"media_on_demand",
			"media_on_demand_project",
			"../TCGEngine/externals/gamesparks-as3-sdk/src"
		],
		"library-path": [
			"../TCGEngine/libs",
			"../TCGEngine/bin/TCGEngine.swc",
			"../FSMobileLibrary/bin/FSMobileLibrary.swc",
			"../FSAirLibrary/bin/FSAirLibrary.swc"
		],
		"external-library-path": [
			"../TCGEngine/anes/common"
		]
	},
	"files": [
		"src/MainGame.as"
	],
	"application": "src/MainGame-app.xml",
	"copySourcePathAssets": true,
	"additionalOptions": "-swf-version=42",
	"airOptions": {
		"extdir": [
			"../TCGEngine/anes/common"
		],
		"ios": {
			"listen": true,
			"output": "dist/WWIITCG.ipa",
			"signingOptions": {
				"storetype": "pkcs12",
				"keystore": "../TCGEngine/cert/ios_profile_dev.p12",
				"provisioning-profile": "cert/ww2_dev.mobileprovision"
			}
		},
		"files": [
			{
                "file": "src/icons",
				"path": "icons"
			},
			{
				"file": "src/Assets.car",
                "path": "Assets.car"
			}
		]
	},
	"config": "airmobile"
}

launch.json:
{
   "version": "0.2.0",
    "configurations": [
        {
            "type": "swf",
            "request": "launch",
            "name": "Launch SWF",
            "program": "bin/MainGame-app.xml",
            "preLaunchTask": "ActionScript: compile debug - asconfig.json"
        },
        {
            "type": "swf",
            "request": "launch",
            "name": "Launch SWF (iPhone)",
            "profile": "mobileDevice",
            "screensize": "iPhoneRetina",
            "screenDPI": 326,
            "versionPlatform": "IOS",
            "preLaunchTask": "ActionScript: compile debug - asconfig.json"
        },
        {
            "type": "swf",
            "request": "attach",
            "name": "Install and Attach (iOS)",
            "platform": "ios",
            "connect": true
        }
    ]
}

I suppose I should not need to add the media, media_on_demand, and media_on_demand_project by hand into the "files" option, right?
Also, just as extra information, whenever I try to package and install the app on my device I get this message:
Preparing to install Adobe AIR application...
Installing Adobe AIR application...
Installing app on device failed for platform "ios" with status code: 12.

Which, according to Adobe is:
Error: 12 | Invalid input | Verify file paths and other arguments passed to ADT on the command line.

Also, if I attempt to install the generated .ipa directly to the device via xCode the error generated is:
A signed resource has been added, modified, or deleted

Thanks beforehand for your support!

I suppose I should not need to add the media, media_on_demand, and media_on_demand_project by hand into the "files" option, right?

Actually, yes. All assets that you want to include in your AIR app must be included in the files field of the airOptions section.
copySourcePathAssets only copies files to the same folder where your SWF is created. It does not affect how your AIR app is packaged. Technically, I guess it is most useful for Flash Player projects.

A signed resource has been added, modified, or deleted

I found this question with some potentially useful answers on Stack Overflow:
https://stackoverflow.com/questions/2157964/receive-message-a-signed-resource-has-been-added-modified-or-deleted-when-tr
Several people mentioned that they fixed this issue by removing special characters, like ?, (, and ) from the name of their application. You might want to check what's contained in your src/MainGame-app.xml file.
It might not necessarily be that specifically, but this seems to hint to me that there's something about your packaged app that iOS isn't happy with.

Actually, yes. All assets that you want to include in your AIR app must be included in the files field of the airOptions section.

I see, it looks like all the assets are packaged properly now, thanks for the info.

Several people mentioned that they fixed this issue by removing special characters, like ?, +, (, and ) from the name of their application. You might want to check what's contained in your src/MainGame-app.xml file.

Regarding this, I actually googled it before creating this issue but forgot to mention about it, sorry about that! I did review my app descriptor and could not find any special characters in it, weird.
Anyways something has happened, after adding the media folders into the fields section, the error message changes, now it's returning the following error:
Preparing to install Adobe AIR application... Installing Adobe AIR application... Installing app on device failed for platform "ios" with status code: 14.
, which led me to the issue #221.
I have followed all your suggestions in that post but I'm still getting the same error over and over (I'm even getting the blank error box). After trying again to install the .ipa via the xCode I'm getting the same A signed resource has been added, modified, or deleted error message though, perhaps it's a mobileProvision error? I've tried creating both a debug and a release versions but none of them work, I also recall being able to debug on iOS running Flash Builder on a test iPhone before.
Not sure how to proceed or what else to try.

Yeah, I guess it could be an issue with the mobileprovision. If it is, installation should fail if you try to use it in another IDE too.
This is definitely something I've never encountered. I don't really have anything to suggest. It might be worth trying a simpler test project. If that works try your main project again, but start disabling things. ANEs, for instance, seem like they could cause this sort of issue.

Thanks Josh, will let you know what was the cause as soon as I find it

Hi Josh, I've kept trying without luck. I have been able to package a very tiny sample project which still doesn't allow me to debug an app on iOS, please find it attached to this post.
The project is as simple as I could make it, notice that I have not added my development profile nor my provisioning profile, I suppose you can use yours for the test if you don't mind.
It's just a "Hello world" app.
Thanks,
Test.zip

I'll try to look at this soon!

Thanks, looking forward hearing back from you

@cgascons Your sample project works correctly on my computer. First, I ran the "Adobe AIR: package iOS debug - asconfig.json" task. Then, I launched the "Install & Attach Adobe AIR (iOS)" configuration to install and debug the app on my iOS device.
The only change that I made was to update the paths to my .mobileprovision and .p12 files in asconfig.json.

I confirmed myself that it seems to open the correct URL in Firefox and Chrome. It's either a Safari issue, or an issue with the debugger in the SDK. It's actually the debugger that launches the specified app and not VSCode or the extension.

I don't understand then what could I be doing wrong, I have made sure both devices where I'm running these tests are added in the profile, re-downloaded the certificate and the mobileprovision from the Apple member center and I'm still getting the same issue.
Could it be related to the current java version that I'm using? (1.8.0_112). I use that one because one of the certificates we use for an Android project was made 7 years ago and isn't 2048, so I have to use the last java version that allows using these old certificates and there's no way (that I know of) to "upgrade" that certificate to a newer version without having to create a new application on the store.

I wouldn't expect which particular Java 1.8 update that you have installed to matter, but I guess that you could try a different one easily enough.

Tried on 2 different windows computers (with different Java versions), also on my Mac again and nothing, I just can't get it to debug on an iPhone or iPad (I have also updated them to their latest available software version).
I even checked the entitlements that the app needs by using:
codesign -d --entitlements :- "Payload/Main.app"
And checked what entitlements are included in the provision with
security cms -D -i "Payload/Main.app/embedded.mobileprovision"
Everything the app needs, the provision has it, but still no way.
Installing via XCode keeps returning the same issue stated above:

A signed resource has been added, modified, or deleted

Also, just downloaded a fresh AIR SDK from here and tried packaging with that one, nothing.
I have asked for a newer Apple device to try on Monday, I doubt it has to anything to do with that but I have to give it a go.
I'm probably going to leave this aside for a while because it's taking way too long and honestly don't know what else to try.

I will close for now.


Truetype Font Hinting

Implementing a font hinting interpreter for truetype:
Demo:
The actual canvas is the top one, the lower one has each pixel enlarged by a factor of 7.
The font used in the demo is DejaVuSans.ttf
First line is default opentype.js
Second line is opentype.js with fonthinting enabled
Third line is canvas.fillText() with @font-face.

As you see there is hardly a difference between second and third line, except glyph advancement not being hinted. I didn't do that yet, as that would require some changes to the opentype.js.
I tried to keep all changes to opentype.js outside of src/hintingtt.js as minimal as possible.
PS: I'll need to append a fix commits until the code styling checks stop complaining.

Finally a green check :)

Your screenshot comparing the hinting looks great! :+1:
I see that hinting is not activated by default, Font.prototype.getPath needs options.hinting to be true, I think it's the best to not impact memory consumption & performance for people that don't need it!
By the way, you don't have to push commits to check code styling, it's a lot easier to do npm run test (you can look at scripts, in package.json)
->You worked a lot! Thank you for that contribution! :smiley:

Thanks, this looks awesome!

Exactly, thats why I made it off by hinting default. It's only relevant between aprox. 8ppem and 60ppem, below it's a blur anyway and above normal subpixels are beautiful enough. Oh and I noted some font programs turn themselves off.
PS: This all applies only to truetype, postscript fonts have a completely different hinting engine.

PPS: DejaVuSans has one of the best font hinting programs I encountered, other fonts the difference may not be that staggering.

As it is now merged, next step could be editing the README & add a short description of current hinting with an example :)

Good point! @axkibe could you provide an example for the README?

OK.

@fdb The git history is a little verbose now, maybe you can try to squash next time @fdb :wink:

Oh right the code styling commits. Too late now, thanks for reminding me :blush:

Im sorry.

@axkibe no problem, don't worry about it 😄

@fdb @axkibe I added the hinting checkbox for http://opentype.js.org/ to try it ;)

Cool, unfortunially the default FireSansMedium.woff is a postscript font, so it works when loading a ttf font. But then it does :)

I noticed DEBUG is turned on the live website.
This seriously dampens perfomance.

@axkibe  Fixed :) I forgot to rebuild the dist files....

@axkibe so maybe we could disable the hinting checkbox for non ttf fonts


Feature:  "Join" Buttons

The existing "Join Now And Get Coding" button on the homepage should be brought up to be placed 'above the fold' and be immediately visible once visitors reach the homepage. The idea is to increase speed to signup and not make them scroll down for the button.
Users can also signup on the Nav bar in the right-hand corner, but "Join" doesn't stand out in relation to the other information they are greeted with. My suggestion is to make that another green button to draw attention to it. Since it's on the nav bar, another benefit is users will always see the Join button no matter where they're at on the website. For example, a user wants to learn more about Operation Code before they sign-up. So they go to the "About" page, read up, and decide to join. Having a green button in the right-hand corner on the nav bar would always make it obvious where they should click to "Join".

@jeremyshorelinepark: would you like to take this one, or just a recommendation?

Hi @jeremyshorelinepark - thanks for the feedback! This is actually a dup of #380 so I'm going to close this ticket and ask all discussion be moved there.


[Android/Test] remove unnecessary constructor

Code clean, remove unnecessary constructor in testcases.
Signed-off-by: Jaeyun<EMAIL_ADDRESS>

:memo: TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #48. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://nnstreamer.mooo.com/.


Customs

Hi @welbesw,
I have submitted a pull request to include the Customs information when creating the shipment request for international shipments. Can you please review and merge?

Hi @welbesw and @Tom-Fox1,
Is there any reason for not merging or any contribution document I should follow?

I'm sorry, I don't know. I don't have write access so I can't really help, it seems that @welbesw is inactive.
@welbesw could you please take a look at #4.

Thanks for the contribution @sachinvas .  The customs branch has now been merged into master and the cocoapod has been updated to the latest.

@welbesw thanks for accepting the pull request.


e2e failed at create namespace error

I've hit this multiple times... it seems we are requesting the namespace to be deleted, then we immediate create the namespace which would fail.

E0818 17:41:07.359822    4032 framework.go:199] Failed to complete Init. Error command failed: "Error from server (AlreadyExists): object is being deleted: namespaces "lin111" already exists\n" exit status 1

I think it's normal since when you delete a namespace, kubernetes needs time to clean up everything resource under this namespace. Since in tests we create many resource e.g. ingress, deployment, it needs some time to actually release this namespace for future use.

right, the kubectl req is async request and it would return as soon as it is receiving the req.  I'm putting some change to ensure namespace is removed before we continue else my e2e test just failed.   Curious why you didn't hit this @yutongz?

We are using random namespace for each tests, so no need to worry about that.

can you show me how you invoke the e2e with random namespace?

https://github.com/istio/istio/blob/172957a43f150ef3fd6c4b69493759f0ed15a5da/tests/e2e/framework/kubernetes.go#L77
If you don't specify a namespace, framework will use runID which is a UUID.

That's why I am wondering why we want to use a specific namespace.

ah i see.  yea, our script was specifying a namespace, which is a valid flag you support. :)

it helps to search and clean up too when you pre-specify the namespace if tests failed in the middle.

I assume #594 closes this (tip: use "Fixes #578" instead of "PR for #578" to auto close the issue on merge)

Yes, thank you for the tip! :)


[Dev support]: How to count the number of tokens in each conversation

Question
How to count the number of tokens in each conversation

Include user input
Include system prompts
Include history
Include response content

How to get the total number of tokens at a time

@jamiesun : You may need to refere following to count the number of tokens: https://github.com/openai/tiktoken

@jamiesun in our library, we use the tokenizer module to help calculate number of tokens based on the model. The package dependency is gpt-tokenizer. The tokenizer is used internally in the planner to manage the amount of tokens being sent to the LLM using the max-tokens setting.
Tracking token usage unfortunately won't be simple or 100% exact, but you could potentially do something like the following:
app.turn('afterTurn', async (ctx, state) => {
    const tokenizer = new GPTTokenizer();
    let tokens = 0;

    for (const message of state.conversation['sequence_history']) {
        if (!message.content) continue;
        tokens += tokenizer.encode(message.content).length;
    }
});

@corinagum  But there will be a system prompt for each round of dialogue, and through the dynamic generation of the template, I didn't find a way to count the tokens of this content

@jamiesun, have you been able to implement something useful on your end?
I was thinking of improving @corinagum example by adding a way to distinct input tokens from output tokens (from my understanding, any content appearing after the last occurence of context.activity.text might be considered as output tokens).
But I'm still looking for a way to dynamically add the system prompt token count as well or any internal calls done by the library.
Thanks a lot

The ability to estimate LLM token usage for each turn remains a critical need for the project I’m working on. To provide some context, this project is a multi-tenant ISV application published in the store, and we need to track/estimate the tokens consumed per tenant. This data will support licensing and cost allocation purposes and may eventually be used to enforce throttling policies if required.
In our setup, we use tools augmentation with a single prompt.
Based on @corinagum’s suggestion, I’m considering implementing the logic within the afterTurn event. Here’s the approach I have in mind:

Target only message activities: Ensure the logic applies exclusively to activities of type message.

Count assistant tokens correctly: The tokens from the last assistant entry in planner_history should be classified as output tokens rather than input tokens.

Incorporate prompt-related tokens: Add the input token count for:

The static prompt content (from skprompt.txt and actions.json).
The tokens added after prompt variables and functions evaluations.

Handle tool-related interactions:

If the second-to-last entry in planner_history has the tool role, identify the last assistant entry preceding it.
Estimate the input tokens for this "internal call" based on the preceding history rows, along with the prompt/actions definition token counts (acknowledging potential omissions if earlier rows were truncated due to max_input_tokens limits).
Account for output tokens by tokenizing the content of the action_calls array.

Does this approach seems correct to you?
Have you implemented something different on your end @jamiesun?
I’d appreciate feedback or suggestions to refine this further.
Thanks a lot


inherit issue with <details> in Chrome

This is not necessarily an issue with box-sizing but it is an issue which occurs when this snippet is used:
html {
  box-sizing: border-box;
}

*,
::before,
::after {
  box-sizing: inherit;
}

Because that technique is used quite a lot, it might be worth mentioning this in the bugs section?

Thanks!


feat: expose statistics from parquet files

I hereby agree to the terms of the GreptimeDB CLA
What's changed and what's your intention?
PLEASE DO NOT LEAVE THIS EMPTY !!!
Please explain IN DETAIL what the changes are in this PR and why they are needed:

Summarize your change (mandatory)
How does this PR work? Need a brief introduction for the changed logic (optional)
Describe clearly one logical change and avoid lazy messages (optional)
Describe any limitations of the current code (optional)

Checklist

[ ]  I have written the necessary rustdoc comments.
[ ]  I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

This patch is no longer needed after some major refactoring


api/v2: move generated client code from test to api/v2

Move the generated api/v2 client code out of the test directory
and into the api/v2 directory with models and restapi.
Remove duplicate models directory
Update tests to use api/v2 package for models and client

@mxinden please take a look


Fix HoYoLAB accounts login

Fix hoyolab web login
Allow adding hoyolab account by v2 stoken using "Input Manually"

Legacy stoken still works for now. Currently v2 stoken can only be obtained by capturing requests from hoyolab mobile app.

Resolve #1011

Last commit e572709 may resolve #1013.
But I don't really know why the app crashes. It looks like a new web page is presented.

I believe we are using SToken v1 for HoYoLAB currently, and there is no urge to use v2 now
I have already pick out the fix part https://github.com/DGP-Studio/Snap.Hutao/commit/06c5bcad3e8170576eb1931fc5782fc05f78591b


Added ISO codes to language drop down

Fixes #1245
In the language select drop down, you now get ISO code as well as language name:

Changed translations.js, now includes isoCode field
language-select.js pulls that out as well as the language name
language-select.hbs now displays it in dropdown, ie 'EN - English'

This is my first pull request and I'm very excited to be working on this project. I don't know if this is particularly helpful, but anything you want me to do, just say.
cc @HospitalRun/core-maintainers

Note, that you have a number of tests to fix.

I will get these tests fixed tonight and recommit.

@davidackroyd99 any luck with tests?


add contributing guidelines to README

Should solve #5, but may be further improved

Looks great, thanks a lot for adding this! Just a couple of suggestions and we can get this merged.

Note that I got the URL from the GitHub description, maybe update that as well?

Should be ready for merge now :)

Awesome, thanks!

Aww I just noticed that the second badge is still not working and neither is the link to the principles ☹