No more than one component displaying, including the default components

When I run the app for the first time after build, it only shows 'Capacitor WATCH' - no button. and when i update the ui with my own items, it only displays the first item in the list.
Here's my .tsx:
const [t1, setT1] = useState("");

  async function uploadWatchUI1() {
    const watchUI = `Text("Capacitor n")
         Button("Add One", "inc")`;

    await Watch.updateWatchUI({ watchUI: watchUI });
  }

  async function updateData1() {
    var stateData = {
      variable: "data1",
    };

    await Watch.updateWatchData({ data: stateData });
  }

  async function updateData2() {
    var stateData = {
      variable: "data2",
    };

    await Watch.updateWatchData({ data: stateData });
  }

  useEffect(() => {
    Watch.addListener("runCommand", (data: { command: string }) => {
      console.log("PHONE got command - " + data.command);
      setT1(`Button was Pressed: ${data.command}`);
    });
  });

watchappApp.swift:
import SwiftUI
import WatchConnectivity
import iOS_capWatch_watch

@main
struct watchddgg_Watch_AppApp: App {
    var body: some Scene {
        WindowGroup {
            CapWatchContentView()
                .onAppear {
                    assert(WCSession.isSupported(), "This sample requires Watch Connectivity support!")
                    WCSession.default.delegate = WatchViewModel.shared
                    WCSession.default.activate()
                }
        }
    }
}

AppDelegate.swift:
import UIKit
import Capacitor
import WatchConnectivity
import CapacitorWatch
import CapacitorBackgroundRunner

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        assert(WCSession.isSupported(), "This sample requires Watch Connectivity support!")
        WCSession.default.delegate = CapWatchSessionDelegate.shared
        WCSession.default.activate()

        BackgroundRunnerPlugin.registerBackgroundTask()
        BackgroundRunnerPlugin.handleApplicationDidFinishLaunching(launchOptions: launchOptions)
        return true
    }

    func applicationWillResignActive(_ application: UIApplication) {
        // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
        // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
    }

    func applicationDidEnterBackground(_ application: UIApplication) {
        // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
        // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
    }

    func applicationWillEnterForeground(_ application: UIApplication) {
        // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
    }

    func applicationDidBecomeActive(_ application: UIApplication) {
        // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
    }

    func applicationWillTerminate(_ application: UIApplication) {
        // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
    }

    func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
        // Called when the app was launched with a url. Feel free to add additional processing here,
        // but if you want the App API to support tracking app url opens, make sure to keep this call
        return ApplicationDelegateProxy.shared.application(app, open: url, options: options)
    }

    func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
        // Called when the app was launched with an activity, including Universal Links.
        // Feel free to add additional processing here, but if you want the App API to support
        // tracking app url opens, make sure to keep this call
        return ApplicationDelegateProxy.shared.application(application, continue: userActivity, restorationHandler: restorationHandler)
    }
}

I have iOS-capWatch-watch added under Frameworks, Libraries, and Embedded Content:

Here's the error I get when I update the watch data:

Also, when I open Xcode, build for iOS, build for Watch, everything is fine. The problem is that if I need to build the iOS app again after making changes in my .tsx and rebuilding, I get an error saying that iOS-capWatch-watch has no export. This error doesn't happen consistently, and as luck would have it, it doesn't happen when I attempt to test it for this post...
Side note: updating data variables with updateWatchData works fine (for the one text UI component that I'm able to get to view) but I do get the same three errors:

I got the error for building iOS app after building the .tsx:


VS Code doesn't lauch on Windows with no error or any message

VS Code Version: 1.54.1 32 Bit
OS Version: Windows 10 Home

Steps to Reproduce:
I installed VS code 32 Bit System installer (I also tried the user installer) on a small notebook with 2GB RAM and an Intel Atom processor which I want to donate to a CS student in Africa.
When trying to start it either over the start menu or on the console nothing happens at all. No Error Message, just nothing. Also in the Task Manager no process appears or you can see that more memory is used. I'm honestly stunned and have no idea what to to. I really wanted to preinstall VS Code for her so that she don't have to make a bid download over a bad internet connection.
As I use Code on several computers with different OSes so far without any problem I'm really surprised.

Does this issue occur when all extensions are disabled?: Yes/No
Yes, I also tried with --verbose, nothing happens, no message

It is very likely runtime was unable to allocate sufficient virtual memory, closing as not actionable.


Use custom SVG icons as iX icon

Prerequisites

[X] I have read the Contributing Guidelines.
[X] I have not leaked any internal/restricted information like screenshots, videos, code snippets, links etc.

Suggestion / feature request
As far as I know, we have 2 options in order to add an icon to our project.
1- Use default ix icons with name.
2- Use custom icons with url.
We want to use our custom svg icons in our project. So, we hosted them on our application and used them as relative url.
But there is a problem. When we need to use the same icon many times (some list screens require this), the IxIcon component makes an api call, fetches the svg file and renders it.
If the screen has many icons, the svg files are loaded in order, so we can see the empty area as they load. (In the example, we couldn't observe this because stackblitz uses disk cache).
I've prepared an example to see multiple fetches (see network): https://stackblitz.com/edit/ygj7zm-jp8chf?file=src%2FApp.tsx
I suggest that, if we can pass svg as an element to the IxIcon component, we can handle this problem.
2nd suggestion, can iX handle this case via "IxApplicationContext" or something else that allows just make only one api call?
Please note that the solution should cover all components related with icon, i.e.: IxIconButton component's icon property.

You can test the latest snapshot build: npm i<EMAIL_ADDRESS>(or the stackblitz https://stackblitz.com/edit/ygj7zm-flt3qm?file=package.json)
The ix-icon is part of another repo, and here is the PR which should solve the loading issue https://github.com/siemens/ix-icons/pull/56

It seems that this version solves the problem perfectly.
When do you plan to release this version?

Can not call you a exact date, but as soon as the PR is merged we check if we have some other work to do afterwards we will build the release version.

Its released with<EMAIL_ADDRESS>


prop_RC_model in demand might be empty

If len(prop_RC_model.index) == 0, then this fails to assign df:
for name in prop_RC_model.index:
    if counter == 0:
        df = pd.read_csv(path_temporary_folder + '\\' + name + 'T' + '.csv')
        counter += 1
    else:
        df2 = pd.read_csv(path_temporary_folder + '\\' + name + 'T' + '.csv')
        df = df.append(df2, ignore_index=True)
df.to_csv(os.path.join(path_results, 'Total_demand.csv'), index=False, float_format='%.2f')

This is around line 110 in demand.py on the branch i37_*
See also this error message:

This can happen if the radiation file does not match the scenario! That is, the building names don't match up... I was using the radiation file from the Siemens Zug case with the shape files from the Hochschulquartier case...

decreasing priority because bug only shows up if the wrong radiation file is used...

@daren-thomas should this be closed?

@JIMENOFONSECA, no. It is a bug. Low priority, but good to know you have a bug. I can fix it when I have time. The fix is cheep: just throw an error that explains what happened and where the error might be instead of the confusing one I originally got and had to go looking...

moving to next milestone (post-gabriels changes...)

@daren-thomas is this still need to be done?

no. i think this has been refactored into oblivion.


TileMap.set_cell very slow in Master (3.1)

Godot version:
Master -  v3.1.dev.calinou.cfcb6e1
OS/device including version:
Linux with OpenGL ES 3.0 Renderer: GeForce GTX 670M/PCIe/SSE2
Issue description:
Using set_cell on tilemaps is extremely slow compared to 3.0 (Stable).  Running the following loop for updating tiles:
var start_time = OS.get_ticks_msec()

for x in 100:
   for y in 100:
      set_cell(x, y, 1)

var end_time = OS.get_ticks_msec()
print("time taken: ", end_time - start_time)

On Godot 3.0.x stable, this takes around 11ms.   On master, this takes 660ms (around 60x slower).  Looping through a bigger TileMap makes this worse.
for x in 500:
   for y in 500:
      set_cell(x, y, 1)

This code takes 385ms on 3.0 Stable.  On Master, it takes 34392ms (around 100x slower).
Steps to reproduce:
Run the attached project (or MyMap.tscn) and check the output to see the time taken.
Minimal reproduction project:
tilemap-slow.zip

In my builds this was not an issue, but been a while since I tested it.
Have you tried with a different master build?

I first ran into this about 3 weeks ago, as I tried to grab a master build to play around with the new input strength feature.  I tried once more a few days later, then waited til now to see if perhaps it was simply due to the alpha state.  So this happened for me with 3 different master builds, all within July; I haven't tested Master prior to that.
Am making a roguelike, so I loop through tilemaps a lot using set_cell to build the levels; the level creation process goes from about 500ms on 3.0 (Stable) to 5+ minutes on Master.

Using the OP project, and running the process twice, the first time took 834ms and the second (over the same tilemap, and same tiles) takes 14ms.

This is to be expected, as the code does an early check to bail out in the second case.
Using advanced profiling techniques :tm: I have determined this commit to be the cause: 69ee7945d70e40c7953e9f587a8d0480db8eda86 #15909
This is because the tile map is recreating its quadrant for the cell being modified EVERY TIME, whereas previously (before that PR) it was deferred so it only happened once. So the tile map is sending & wiping canvas items and such to the 160000 times in my case.
Profiler data here, although it's not that important:
Doing the operation of set_cell(x, y, 1) for 400x400 cells:

PS I'm amazed that tile maps use a single map to store all cells instead of storing cells in a chunk basis per quadrant (so, like Minecraft for example). Seems like it'd be much more performant.

Maybe it can be a tilemap setting, to make it update on changes or defer it, also, could be nice to have a way to feed an array of cells instead of one by one.
And yes, it still have room for many optimizations and fixes.


Error when deploying nginx-controller using helm with Azure Pipelines to AKS cluster

Question, Bug, or Feature?
Type: Bug
Enter Task Name: HelmDeploy@0
Environment

Server - Azure Pipelines

Agent - Hosted Hosted (ubuntu-latest)

Issue Description
When trying to deploy nginx ingress controller using helm from Azure Pipelines to AKS cluster I am reviving following error:
 ##[error]Error: rendered manifests contain a resource that already exists. Unable to continue with install: could not get information about the resource: customresourcedefinitions.apiextensions.k8s.io "transportservers.k8s.nginx.org" is forbidden: User "system:serviceaccount:ingress-nginx:***" cannot get resource "customresourcedefinitions" in API group "apiextensions.k8s.io" at the cluster scope
This is the task:
trigger:
- master

stages:
  - stage: Deploy_nginx

    jobs:
    - deployment: Github_nginx_production
      displayName: Deploy
      environment: my-env
      pool:
        vmImage: 'ubuntu-latest'

      strategy:
        runOnce:
          deploy:
             steps:
              - checkout: self
              - task: HelmInstaller@1
                displayName: Helm installer
                inputs:
                  helmVersionToInstall: 3.1.2
              - task: HelmDeploy@0
                displayName: Helm add nginx repo
                inputs:
                  namespace: ingress-nginx
                  command: repo
                  arguments: add nginx-stable https://helm.nginx.com/stable
              - task: HelmDeploy@0
                displayName: Helm repo update
                inputs:
                  namespace: ingress-nginx
                  command: repo
                  arguments: update
              - task: HelmDeploy@0
                displayName: Helm install or upgrade
                inputs:
                  namespace: ingress-nginx
                  command: install
                  install: true
                  chartNAme: nginx-stable/nginx-ingress
                  releaseName: nginx-ingress

It seems that this problem is related to Service Account that has insufficient permissions in AKS cluster.
Kind Regards

@kuchniak Can you please confirm if you have created role binding on the custom resource?

@shigupt202 I didn't add any role binding manually, I only have the ones created by Azure Pipelines which limits it to the one namespace.
For now I have bypass the problem by authenticating using kubeconfig with more permisons for that job.

@kuchniak I think it is mandatory to provide role binding in some way to be able to use the custom resources.
As you mentioned, you have found a work around, I'll close the issue now. You can also create a resource of kind rolebinding in your cluster to solve the issue.

@kuchniak I think it is mandatory to provide role binding in some way to be able to use the custom resources.
As you mentioned, you have found a work around, I'll close the issue now. You can also create a resource of kind rolebinding in your cluster to solve the issue.

@shigupt202
This seems to be the same problem as https://github.com/microsoft/azure-pipelines-tasks/issues/14119#issuecomment-790725700.
Few questions:

Why is it required to create a role binding? The docs explicitly state:

A service connection isn't required if an environment resource that points to a Kubernetes cluster has already been specified in the pipeline's stage.

While instead I end up with

Error: UPGRADE FAILED: could not get information about the resource: customresourcedefinitions.apiextensions.k8s.io "secretproviderclasses.secrets-store.csi.x-k8s.io" is forbidden: User "system:serviceaccount:devops:***" cannot get resource "customresourcedefinitions" in API group "apiextensions.k8s.io" at the cluster scope

Is the Environment limited to one namespace as @MateuszKuchniak-TomTom mentioned above? Where can I read about it? Might have missed it.

2.1 Is this the reason why my second resource is empty?:

Environment as Kubernetes cluster
Resource as Kubernetes namespace called devops
Successfully deployed a new helm chart using config (as environment: does not work):

connectionType: 'Azure Resource Manager'
azureSubscription: 'Microsoft Azure Sponsorship (...)'
azureResourceGroup: '..'
kubernetesCluster: '...'

Resource is empty

Thanks
Shaked

@Shaked Service connections are something used by azure pipeline tasks to communicate with your Kubernetes cluster. It's different from role bindings, which are used to define permissions on certain resources for specified users/SA's in your cluster (This is something that the user is expected to do manually depending on their user case).
Here you are using an environment, which creates a service connection internally scoped to a particular namespace. (You can read more about environments here). That's why it's not able to perform the specified operation on a custom resource at cluster scope. You can create a service connection with all the required permissions (not scoped to a namespace) and specify it as task input for HelmDeploy to solve this issue. (You can find more information about Kubernetes service connections here).

@shigupt202

Here you are using an environment, which creates a service connection internally scoped to a particular namespace. (You can read more about environments here). That's why it's not able to perform the specified operation on a custom resource at cluster scope

That makes a lot of sense.

You can create a service connection with all the required permissions (not scoped to a namespace) and specify it as task input for HelmDeploy to solve this issue.

Yes, that's how I solved it. I had the impression that there was a way to avoid specifying the service connection within the HelmDepoy, but I guess I got it wrong.
Thank you
Shaked

There is a way to avoid specifying service connection in HelmDeploy, and that is by specifying environment resources. But that would limit you to a particular namespace (it works for most of the use cases), and thus won't work for your use case.


Fix slider change props when the value hasn't changed

Closes https://github.com/adobe/react-spectrum/issues/944
✅ Pull Request Checklist:

[x] Included link to corresponding React Spectrum GitHub Issue.
[x] Added/updated unit tests and storybook for this change (for new code or code which already has tests).
[x] Filled out test instructions.
[ ] Updated documentation (if it already exists for this component).
[ ] Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:
Go to storybook.

Navigate to the default slider story.
Move the slider to 0.
Attempt moving it to left,  onChange and onChangeEnd should not fire.

🧢 Your Project:

@devongovett @snowystinger a new test was added recently, fixed in commit https://github.com/adobe/react-spectrum/pull/999/commits/be90e60eae519f52c308b659364470843f89f685.


[get_collections] fetch missing collections - implement batch sync

Story

Parent story: https://github.com/MystenLabs/narwhal/issues/67
Description
Following the implementation of fetching the missing certificates from peer nodes https://github.com/MystenLabs/narwhal/issues/97 , as part of this task we should focus on syncing the missing batches. The approach that should be followed is the one described in Option 1 on the design doc.
We should reuse the existing mechanism to sync batches but with the difference that we'll extend the existing solution to dictate the peer from which we want to fetch the batches from, as on the current solution the batch is fetched via the original author of the header. Also, as part of this ticket we should also extend the block_waiter to wait for the batches to be synced before going ahead and requesting them to eventually fulfil the request.

Resolved as part of https://github.com/MystenLabs/narwhal/pull/125


Created and updated docs for 1.21-6

Created and updated docs for 1.21-6
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/unhold


Error in using lr_find( ) for BioBert NER

Hi, I'm trying to use lr_find() function for BioBert NER using this code
import ktrain
from ktrain import text
# Load data
(trn, val, preproc) = text.entities_from_txt('./datasets/BC5CDR-IOB/train.tsv',val_filepath='./datasets/BC5CDR-IOB/devel.tsv', data_format='conll2003')
# Load model
model = text.sequence_tagger('bilstm-bert', preproc, bert_model='monologg/biobert_v1.1_pubmed')
learner = ktrain.get_learner(model, train_data=trn, val_data=val, batch_size=32, eval_batch_size=8)
learner.lr_find(show_plot=True, max_epochs=1)

but I got the following error
Traceback (most recent call last):
  File "/Users/miladnourizade/Documents/Ktrain/main.py", line 11, in <module>
  File "/Users/miladnourizade/anaconda3/envs/Ktrain/lib/python3.7/site-packages/ktrain/core.py", line 468, in lr_find
    verbose=verbose)
  File "/Users/miladnourizade/anaconda3/envs/Ktrain/lib/python3.7/site-packages/ktrain/lroptimize/lrfinder.py", line 117, in find
    callbacks=[callback])
  File "/Users/miladnourizade/anaconda3/envs/Ktrain/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/training.py", line 728, in fit
    use_multiprocessing=use_multiprocessing)
  File "/Users/miladnourizade/anaconda3/envs/Ktrain/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/training_v2.py", line 224, in fit
    distribution_strategy=strategy)
  File "/Users/miladnourizade/anaconda3/envs/Ktrain/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/training_v2.py", line 547, in _process_training_inputs
    use_multiprocessing=use_multiprocessing)
  File "/Users/miladnourizade/anaconda3/envs/Ktrain/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/training_v2.py", line 606, in _process_inputs
    use_multiprocessing=use_multiprocessing)
  File "/Users/miladnourizade/anaconda3/envs/Ktrain/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/data_adapter.py", line 613, in __init__
    output_shapes=nested_shape)
  File "/Users/miladnourizade/anaconda3/envs/Ktrain/lib/python3.7/site-packages/tensorflow_core/python/data/ops/dataset_ops.py", line 540, in from_generator
    output_types, tensor_shape.as_shape, output_shapes)
  File "/Users/miladnourizade/anaconda3/envs/Ktrain/lib/python3.7/site-packages/tensorflow_core/python/data/util/nest.py", line 471, in map_structure_up_to
    results = [func(*tensors) for tensors in zip(*all_flattened_up_to)]
  File "/Users/miladnourizade/anaconda3/envs/Ktrain/lib/python3.7/site-packages/tensorflow_core/python/data/util/nest.py", line 471, in <listcomp>
    results = [func(*tensors) for tensors in zip(*all_flattened_up_to)]
  File "/Users/miladnourizade/anaconda3/envs/Ktrain/lib/python3.7/site-packages/tensorflow_core/python/framework/tensor_shape.py", line 1216, in as_shape
    return TensorShape(shape)
  File "/Users/miladnourizade/anaconda3/envs/Ktrain/lib/python3.7/site-packages/tensorflow_core/python/framework/tensor_shape.py", line 776, in __init__
    self._dims = [as_dimension(d) for d in dims_iter]
  File "/Users/miladnourizade/anaconda3/envs/Ktrain/lib/python3.7/site-packages/tensorflow_core/python/framework/tensor_shape.py", line 776, in <listcomp>
    self._dims = [as_dimension(d) for d in dims_iter]
  File "/Users/miladnourizade/anaconda3/envs/Ktrain/lib/python3.7/site-packages/tensorflow_core/python/framework/tensor_shape.py", line 718, in as_dimension
    return Dimension(value)
  File "/Users/miladnourizade/anaconda3/envs/Ktrain/lib/python3.7/site-packages/tensorflow_core/python/framework/tensor_shape.py", line 193, in __init__
    self._value = int(value)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'tuple'

It was TensorFlow problem, I changed TensorFlow 2.00 to TensorFlow 2.1.0 and it works.


Update my merch system with the majority of the shell scripts rewritten/revamped to Python, and did the base import for the adding of stickers to the store.

So txtgen still needs a daunting rewrite to python, I still have to import the new dynamic system to printfulutils, and put out some examples for pwinty (which is the API I am using to print stickers) and import it into the code, and also setup Sendgrid to hook into Wii Mail to send order info ( which gets achieved by pf.get('orders', params={data13: 5, data14:10}) ) and import sendgrid into the code. Other than that spotlight, it's nearly done :)
Be sure to do these commands to setup:
sudo chmod 777 txtgen.sh
python3 homestorescript.py
python3 add_to_tables.py
sudo ./txtgen.sh

Actually spotlight, I might rewrite this shop engine I did actually, I'll let you know when I start on it. I can definitely see a lot of these scripts being combined, espically the setup python scripts.

Eh, I'm going to do many passes until it's better. As for that StringIO stuff, that allows me to have my other scripts dynamically pull their variables from a config without pulling it from a json. And the my aquarium stuff is a bonus feature.

Not saying this new engine is perfect, but it definitely got improved, I will try to implement stickers for the store this week, my deadline is this weekend.

But yeah, it's much more slipstreamed now, no more bulky config readers.

@zurgeg
Traceback (most recent call last):
File "install.py", line 272, in
for k, v in header.items(): f.write(bytes(v, encoding='utf-8'))
TypeError: encoding without a string argument
Something is really weird, I don't know what's happening. Is there a argument that I am missing? I think that's the problem tbh.

To reproduce the error, I did:
 python3
Python 3.8.5 (default, Jul 20 2020, 19:48:14)
[GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import utilsbylarsen
im>>> import collections
import collections as h
import io as e
header = h.OrderedDict()
f = e.BytesIO()
header["object_tables"] = utilsbylarsen.u32(160)  # TODO: Add in object tables
print(header.items())
odict_items([('object_tables', b'\x00\x00\x00\xa0')])
print(header.items())
odict_items([('object_tables', b'\x00\x00\x00\xa0')])
print(header.items())
odict_items([('object_tables', b'\x00\x00\x00\xa0')])
print(header.items())
odict_items([('object_tables', b'\x00\x00\x00\xa0')])
for k, v in list(header.items()): f.write(bytes(v, encoding='utf-8'))
...
Traceback (most recent call last):
File "", line 1, in
TypeError: encoding without a string argument

Getting closer... I just need to write the last 3 scripts, and then start routing the text file config to everything.

Route all of the configs, actually.

So spotlight, I have been writing a way of doing the TIFF jailbreak via python. But, I am thinking of distributing it as a item on the Wii No Ma store, with very little points required. I am also thinking of distributing My Aquarium mystery tanks also as a item.
Good thing is: the scripts already support My Aquarium tanks, so that's already there 😄

My 24KB Shop Kernel is 3/5 of the way! :)

Status update guys! :)
Firstly, I want to let Larsen know that he is more than welcome to include Wii No Ma in his patcher. In fact, I'll even do the whole UNIX implementation for him.
Also, the shop is getting super close, I just need to work out my config and my dynamic variable setup, then we are going to be in post-alpha! Two items were added to the test shop also.

Also, I frigging love the new mascot we have actually, I just saw it today on our website. As for using it for promo stuff, I can see a few things I can use it for promos.
Also, me spending 9 hours yesterday was worth it, the scripts are INSANELY better now. :-)

https://repl.it/@6100m/room-server-2 I did some more work, and yeah, it's about 80% working now, yay!

@spotlightishere Hey spotlight, could you maybe review everything again? I have got everything about 90% working now, I just need to do the following:
Add private key storage into Owncloud
Encrypt the pickle files using the private key from Owncloud.
Setup that dynamic config (that's the thing that you saw with that stringIO, It's been entirely changed to have the code pull 90% of the JSON config variables from it)
And then the SDK is finished 😀

I tested as much as I could via REPL, everything works fine :) Except for the ID.txt thing and the user creation thing, those two things are getting nuked.

Actually Spotlight, I might just move this to a new PR, that well, has less commits :P


Add detection LZCNT

https://github.com/google/cpu_features/issues/253

ping @gchatelet

I missed the update, thx for the ping.


On EthereumTesterProvider we can interact with the smart contract without deploying one

Version: 0.5.0b2
Python: 3.8
OS: linux

What was wrong?
(venv) $ pip install web3 py.evm eth-tester pytest
(venv) $ pip freeze
attrs==20.2.0
base58==2.0.1
bitarray==1.2.2
blake2b-py==0.1.3
cached-property==1.5.2
certifi==2020.6.20
chardet==3.0.4
cytoolz==0.11.0
eth-abi==2.1.1
eth-account==0.5.3
eth-bloom==1.0.3
eth-hash==0.2.0
eth-keyfile==0.5.1
eth-keys==0.3.3
eth-rlp==0.2.0
eth-tester==0.5.0b2
eth-typing==2.2.2
eth-utils==1.9.5
hexbytes==0.2.1
idna==2.10
iniconfig==1.0.1
ipfshttpclient==0.6.1
jsonschema==3.2.0
lru-dict==1.1.6
multiaddr==0.0.9
mypy-extensions==0.4.3
netaddr==0.8.0
packaging==20.4
parsimonious==0.8.1
pluggy==0.13.1
protobuf==3.13.0
py==1.9.0
py-ecc==4.1.0
py-evm==0.3.0a19
pycryptodome==3.9.8
pyethash==0.1.27
pyparsing==2.4.7
pyrsistent==0.17.3
pytest==6.1.0
requests==2.24.0
rlp==2.0.0a1
rusty-rlp==0.1.15
semantic-version==2.8.5
six==1.15.0
sortedcontainers==2.2.2
toml==0.10.1
toolz==0.11.1
trie==2.0.0a4
typing-extensions==<IP_ADDRESS>
urllib3==1.25.10
varint==1.0.2
web3==5.12.1
websockets==8.1
(venv) $ py.test test_simple_payment.py -s
============================= test session starts ==============================
platform linux -- Python 3.8.2, pytest-6.1.0, py-1.9.0, pluggy-0.13.1
rootdir: /tmp
plugins: web3-5.12.1
collected 1 item

test_simple_payment.py

Balance of 0x7E5F4552091A69125d5DfCb7b8C2659029395Bdf on Universe A:<PHONE_NUMBER>999765146
Balance of 0x7E5F4552091A69125d5DfCb7b8C2659029395Bdf on Universe B: 1000000
Balance of 0x7E5F4552091A69125d5DfCb7b8C2659029395Bdf on Universe A:<PHONE_NUMBER>999765146
Balance of 0x7E5F4552091A69125d5DfCb7b8C2659029395Bdf on Universe B:<PHONE_NUMBER>999957872
.

============================== 1 passed in 0.56s ===============================

This is test_simple_payment.py
from web3 import (
    EthereumTesterProvider,
    Web3,
)

bytecode = "6080604052336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550348015604f57600080fd5b5060618061005e6000396000f3fe608060405260043610601c5760003560e01c80631b9265b8146021575b600080fd5b60276029565b005b56fea2646970667358221220962c4ac975d366f08c2dae926afc5a9082cef680ca5bf042a1b48fcac2fd4aba64736f6c63430006090033"
abi = '[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"pay","outputs":[],"stateMutability":"payable","type":"function"}]'

import pytest

def test_pay():
    # Universe A
    w3_a = Web3(EthereumTesterProvider())
    # Universe B
    w3_b = Web3(EthereumTesterProvider())

    accounts_a = w3_a.eth.accounts
    accounts_b = w3_b.eth.accounts

    # Deploy contract to Universe A
    contract = w3_a.eth.contract(abi=abi, bytecode=bytecode)
    tx_hash = contract.constructor().transact({ "from": accounts_a[0], "gas": 899000, 'gasPrice': 200000 })
    contract_tx_receipt = w3_a.eth.waitForTransactionReceipt(tx_hash)

    # Execute smart contract method on Universe A
    payment_contract = w3_a.eth.contract(abi=abi, address=contract_tx_receipt.contractAddress)
    tx = { "from": accounts_a[0], "value": Web3.toWei(2, "ether"), "gas": 899000, 'gasPrice': 200000 }
    tx_hash = payment_contract.functions.pay().transact(tx)
    tx_receipt = w3_a.eth.waitForTransactionReceipt(tx_hash)

    balance1 = Web3.fromWei(w3_a.eth.getBalance(accounts_a[0]), "ether")
    balance2 = Web3.fromWei(w3_b.eth.getBalance(accounts_b[0]), "ether")
    print("\n")
    print(f"Balance of {accounts_a[0]} on Universe A: {balance1}")
    print(f"Balance of {accounts_b[0]} on Universe B: {balance2}")

    # Execute smart contract method on Universe B
    payment_contract = w3_b.eth.contract(abi=abi, address=contract_tx_receipt.contractAddress)
    tx = { "from": accounts_b[0], "value": Web3.toWei(4, "ether"), "gas": 899000, 'gasPrice': 200000 }
    tx_hash = payment_contract.functions.pay().transact(tx)
    tx_receipt = w3_b.eth.waitForTransactionReceipt(tx_hash)

    balance1 = Web3.fromWei(w3_a.eth.getBalance(accounts_a[0]), "ether")
    balance2 = Web3.fromWei(w3_b.eth.getBalance(accounts_b[0]), "ether")
    print(f"Balance of {accounts_a[0]} on Universe A: {balance1}")
    print(f"Balance of {accounts_b[0]} on Universe B: {balance2}")

The balance of the same address are different on one occasion. That's fine. Because a new universe is created with EthereumTesterProvider(). But if that's the case, why do we have the deployed contract on the universe B although the contract was deployed only on universe A?

Thanks for writing this up with the example, it helps understand what issue you're running into, and how you're approaching it.

why do we have the deployed contract on the universe B although the contract was deployed only on universe A?

I'm not yet convinced that this has happened. So far, all that's printing out is some balance changes, which could be explained in different ways. If you can show that the contract code is empty in both chains, then shows up in both chains immediately after deploying it in only one, then I'll help you look into it more.

@carver After investigating it, apparently the problem is something else. I don't have to deploy the smart contract to be able to interact with the smart contract. Is this by design? It's weird. It caught me off guard.
As you can see below, I commented out the calling of constructor method.
from web3 import (
    EthereumTesterProvider,
    Web3,
)

bytecode = "6080604052336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550348015604f57600080fd5b5060618061005e6000396000f3fe608060405260043610601c5760003560e01c80631b9265b8146021575b600080fd5b60276029565b005b56fea2646970667358221220962c4ac975d366f08c2dae926afc5a9082cef680ca5bf042a1b48fcac2fd4aba64736f6c63430006090033"
abi = '[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"pay","outputs":[],"stateMutability":"payable","type":"function"}]'

import pytest

def test_pay():
    w3_a = Web3(EthereumTesterProvider())

    accounts_a = w3_a.eth.accounts

    contract_address = "0xF2E246BB76DF876Cef8b38ae84130F4F55De395b"

    # Deploy contract to Universe A
    #contract = w3_a.eth.contract(abi=abi, bytecode=bytecode)
    #tx_hash = contract.constructor().transact({ "from": accounts_a[0], "gas": 899000, 'gasPrice': 200000 })
    #contract_tx_receipt = w3_a.eth.waitForTransactionReceipt(tx_hash)

    # Execute smart contract method on Universe A
    payment_contract = w3_a.eth.contract(abi=abi, address=contract_address)
    tx = { "from": accounts_a[0], "value": Web3.toWei(2, "ether"), "gas": 899000, 'gasPrice': 200000 }
    tx_hash = payment_contract.functions.pay().transact(tx)
    tx_receipt = w3_a.eth.waitForTransactionReceipt(tx_hash)

    balance = Web3.fromWei(w3_a.eth.getBalance(accounts_a[0]), "ether")
    print("\n")
    print(balance)

Invoking a contract just means sending a transaction to an address with the data field filled out. If there's no contract there, it will just send the funds, and the data will be ignored. Closing as not a bug, but feel free to comment here if you find that something different happened.

You're right. The behavior is consistent in Ganache CLI. It's me who was careless when investigating the issue. I'm sorry.


Need test case for using varlink interface file as client

Current varlink interface spec is wrong:

The enum should starting with a-zA-Z and cannot dot.
The ? mark should be at the type like: example_nullable: ?string,
The last element of type should not end with ,.

These errors shows we ever validate the varlink interface file.
Please create a test case using rust varlink generator to run a varlink client.

Closing as we dropped the varlink support.


Many ESTABLISHED state to APNS, defer close not work?

By invoking a netstat -antup | grep server | awk '{print $5}' | cut -d: -f1 | sort | uniq -c command on server I got a lot occurencies of APNS IPs with ESTABLISHED state, what is going wrong?
 38 <IP_ADDRESS>
 43 <IP_ADDRESS>
 36 <IP_ADDRESS>
 33 <IP_ADDRESS>
 32 <IP_ADDRESS>
 37 <IP_ADDRESS>
 45 <IP_ADDRESS>
 45 <IP_ADDRESS>
 48 <IP_ADDRESS>
 49 <IP_ADDRESS>
 26 <IP_ADDRESS>
 19 <IP_ADDRESS>
 30 <IP_ADDRESS>
 45 <IP_ADDRESS>
 39 <IP_ADDRESS>
 26 <IP_ADDRESS>
 38 <IP_ADDRESS>
 49 <IP_ADDRESS>
 17 <IP_ADDRESS>
 46 <IP_ADDRESS>
 15 <IP_ADDRESS>
 13 <IP_ADDRESS>
  4 <IP_ADDRESS>
 15 <IP_ADDRESS>
 15 <IP_ADDRESS>
 16 <IP_ADDRESS>
 10 <IP_ADDRESS>
 12 <IP_ADDRESS>
 18 <IP_ADDRESS>
 13 <IP_ADDRESS>

Where first column is occurency of second column (APNS IP).

Something related with https://github.com/RobotsAndPencils/buford/issues/40? In my implementation I use cron-like goroutines and separate Buford instances.

Go's HTTP/2 lib opens a connection and keeps it open so that we can send multiple push notifications to Apple on the same connection.
If you're running multiple processes, you should have one connection per process.

@bezigon If you believe there is an issue with Buford, please provide more details, such as a code sample of how you're using it. Thanks.

Closing this for now. Feel free to reopen it if you have more details.


fixes some typos and grammatical errors

This pull request addresses minor typos found in the comments, documentation, and variable names in the source code. Specifically, the variable pertub_dev and self.PERTUB_DEV have been corrected for consistency.
Feel free to reach out if anything else is needed. Thanks for maintaining such a great repository—I use it regularly!
Cheers,
Arthur

Thanks for your contribution!


Launching Problem in windows

After installing with pip command, the formation studio does not launch.
Commands tried: "formation-studio" and "python -m formation-studio".

Python Version: 3.8

Do you have more than one python version installed? If so, you need to make sure pip installs to the right version. Otherwise  sometimes you might need to pip install as administrator. You can try uninstalling
pip uninstall formation-studio

then reinstall as administrator.
Could you send a screenshot of what was displayed on the console when you tried installing it the first time?

I do not have the ss of when I first installed but my PC currently have only one version of python i.e 3.8

Can u possibly check  if it is a bug in 3.8 by installing it in a virtual env??

I uninstalled it and then reinstalled it running through administration in cmd.
It works now.
Thanks


ENH: add Sequence.copy method

Adds Sequence.copy(deep=False) method for performing shallow and deep copies. Adds Sequence.__copy__/__deepcopy__ for interoperability with copy.copy/copy.deepcopy.
Also updates codebase to use Sequence.copy instead of Sequence._to.
Addresses part of #949.
@ebolyen can you review?

@jairideout Yup!

@jairideout Looks good! Ready for merge when the deep/shallow branching is removed for the numpy sequence.

Thanks @jairideout will merge when tests pass


Add Haskell bindings for SCIP

Supersedes #15
Test plan
This PR adds a CI workflow that compiles the generated Haskell bindings. However, we don't yet validate that the Haskell bindings are up-to-date with the latest scip.proto. We should ideally incorporate Haskell generation into bufbuild for consistency with the other languages.

Ideally, we should automate the generation of the proto files with bufbuild but I'm tempted to leave this for a future step. This PR is already an improvement by adding Haskell instructions so I'm inclined to recommend we merge it as is and re-run the Haskell generation manually.

Agreed. I think we can add automated build later (better to get the bindings in first, IMO)

I've filed https://github.com/sourcegraph/scip/issues/18 to incorporate Haskell generation into bufbuild.

The Haskell CI job seems to be awfully slow. Just installing GHC is taking about a minute, and building the protoc plugin takes nearly 3 minutes. Yikes!

Makes sense. I think this is okay for now, since schema changes are much less frequent compared to other changes, but something we may want to revisit later if we run into this often.


Experimental thick-restart Lancozs method for sparse eigenvalue problems

I'm not sure if actually makes sense to merge this code. It probably needs some additional work/testing to make it more robust, but maybe jax.experimental would be a suitable incubator? Either way, hopefully it's a useful point of reference.
xref #3112

Very nice. I am interested in automatic differentiation of sparse eigensolvers, but new to JAX -- did you already have something in mind about this? My only point of reference is this recent paper (https://arxiv.org/abs/2001.04121) where they reduce computing the adjoint to solving a low-rank linear problem. Maybe your new CG implementation could be used to that end?

Indeed, if the eigenvalues are unique, you can calculate eigenvalue/eigenvector derivatives in a straightforward fashion. That paper appears to have rediscovered a very old method for efficiently calculated eigenvector derivatives when not all eigenvectors are known, e.g., see this 1976 paper: https://arc.aiaa.org/doi/abs/10.2514/3.7211
There's actually a rather large literature on this problem from the field of computational mechanics. There are some other formulations that are supposed to be more numerically stable, e.g., so you don't need to solve a non-full rank system of linear equations: https://onlinelibrary.wiley.com/doi/abs/10.1002/cnm.895. I suspect the resulting linear equations are not necessarily positive, so we would more sophisticated iterative solvers such as (L)GMRES.
The challenge is how to define derivatives in the case of degenerate eigenvalues. In that case the eigenvalue problem necessarily isn't a well defined function, so calculating derivatives is quite challenging (maybe even impossible in reverse mode). But we probably don't need to worry this for a first-pass solution.

This has become stale - I'm going to close. Feel free to re-open if you'd like to land this in jax.scipy.sparse.linalg


why elasticdump has not size ？

In order to help us troubleshoot issues with this project, you must provide the following details:

ElasticDump 2.4.2
Elasticsearch 2.3.3

How to limit the total number of acquisitions？For example, I would like to get the first 100 data，how to use it?

:+1:

closed by https://github.com/taskrabbit/elasticsearch-dump/pull/363


feat. build sealos cloud cluster image

🤖 Generated by Copilot at 160f77e
Summary
📱🛠🌐

Moved all files under deploy/cloud to deploy/cloud-deprecated to mark them as obsolete and prepare for removal. These files were related to deploying sealos on cloud platforms using ingress-nginx and apisix.

is_valid checks
refactored for clarity
autumn leaves falling

Walkthrough

Rename the entire deploy/cloud directory to deploy/cloud-deprecated to indicate that it is no longer maintained or supported (link-link)
Update the README files in the renamed directory to reflect the deprecation status and provide alternative instructions for deploying the cloud components (link, link, link, link, link)

!! all in one image replace using sealos run xxx.tar
user not care registry addr and  registry user and registry password

!! all in one image replace using sealos run xxx.tar
user not care registry addr and registry user and registry password

I will set the registry addr/u/p as env soonsoon latter latter.

ROM alpine:latest as builder
COPY cri cri
RUN ls -l

FROM alpine:latest
WORKDIR /
COPY --from=builder cri/image-cri-shim .

sealos build -t aaaa --isolation=chroot  .

redirect to pr https://github.com/labring/sealos/pull/3082


bump libc

add checksums
bump libc

bors try
think the error was spurios

ci errors due to #607


when running train_discriminator.py ,occuring cudnn RNN backward can only be called in training mode

Traceback (most recent call last):
File "train_discriminator.py", line 172, in
main()
File "train_discriminator.py", line 140, in main
loss_G.backward()
File "/remote-home/yrchen/anaconda3/envs/py37_cuda8/lib/python3.7/site-packages/torch/tensor.py", line 102, in backward
torch.autograd.backward(self, gradient, retain_graph, create_graph)
File "/remote-home/yrchen/anaconda3/envs/py37_cuda8/lib/python3.7/site-packages/torch/autograd/init.py", line 90, in backward
allow_unreachable=True)  # allow_unreachable flag
RuntimeError: cudnn RNN backward can only be called in training mode

Hey, you can solve this problem by adding:
model.train()
to line 152 in file train_discriminator.py
The problem is caused by the function call model.sample_sentence(z, c) calling model.eval() but not calling model.train() afterwards.

oh，i get this，thank you！
---Original---
From: "Peter<EMAIL_ADDRESS>Date: Mon, Apr 22, 2019 10:59 AM
To<EMAIL_ADDRESS>Cc: "zide05"845465009<EMAIL_ADDRESS>Subject: Re: [wiseodd/controlled-text-generation] when running train_discriminator.py ,occuring cudnn RNN backward can only be called in training mode (#24)
Hey, you can solve this problem by adding:
model.train()
to line 152 in file train_discriminator.py
The problem is caused by the function call model.sample_sentence(z, c) calling model.eval() but not calling model.train() afterwards.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Hey, you can solve this problem by adding:
model.train()
to line 152 in file train_discriminator.py
The problem is caused by the function call model.sample_sentence(z, c) calling model.eval() but not calling model.train() afterwards.

this does not solve the issue. same error stays. Any solution??

Replace x_gen_attr with x_gen_attr.detach() in train_discriminator.py. i.e in model.forward_encoder_embed and model.forward_discriminator_embed

It works, thanks very much!


Object's type Material isn't assignable from Texture2D

Getting this error when exporting certain level files. Seems to always happen around the 87% mark. The game in question is Rec Room.

Import: System.Exception: Object's type Material isn't assignable from Texture2D
at uTinyRipper.Classes.PPtr1.FindAsset(IExportContainer container)    at uTinyRipper.Classes.PPtr1.ExportYAML(IExportContainer container)
at uTinyRipper.Classes.TerrainDatas.SplatPrototype.ExportYAML(IExportContainer container)
at uTinyRipper.AssetExporters.IEnumerableExtensions.ExportYAML[T](IEnumerable1 _this, IExportContainer container)    at uTinyRipper.Classes.TerrainDatas.SplatDatabase.ExportYAML(IExportContainer container)    at uTinyRipper.Classes.TerrainData.ExportYAMLRoot(IExportContainer container)    at uTinyRipper.Classes.Object.ExportYAMLDocument(IExportContainer container)    at uTinyRipper.AssetExporters.YAMLAssetExporter.Export(IExportContainer container, Object asset, String path)    at uTinyRipper.AssetExporters.AssetExportCollection.Export(ProjectAssetContainer container, String dirPath)    at uTinyRipper.AssetExporters.ProjectExporter.Export(String path, FileCollection fileCollection, IEnumerable1 assets, ExportOptions options)
at uTinyRipper.GameStructure.Export(String exportPath, Func`2 filter)
at uTinyRipperGUI.MainWindow.ExportFiles(Object data)

I need a file to reproduce this issue

level66.zip
I've uploaded the level file in question. Will that do or do you need sharedasset files too?

Since that moment, Editor version must be not less than game version


running in alpine distro instructions

It looks to me like this works, but you need to change the alpine distro to WSL2, so maybe add to your instructions:
wsl --set-version wsl-vpnkit 2

I guess this depends on whether you've change WSL default to 2.
wsl --set-default-version 2
Anyway, for those of us who haven't changed this default, this can trip you up...


dts: stm32h7: Add missing ITCM memory to stm32h743.dtsi as it's available there.

The ITCM is available on all STM32H75x/74x couple to the M7 core.

Please update title to:
dts: stm32h7: Add missing ITCM memory to stm32h743.dtsi as it's available there.

Please update title to: dts: stm32h7: Add missing ITCM memory to stm32h743.dtsi as it's available there.

I did as you asked but that leads to a compliance check issue. I will shorten it more.

Thanks for the change. Approved

@erwango Is something blocking to get this merged ? :)


Getting texture error after updating ox lib, ox target

I can't select from menu, Also tried to refresh file. Cleared cache still facing same issue
Check this Image


Deal with over encoding

When multiple fields are selected ...

We better consider this once Vega-lite supports layering and multiple x’s https://github.com/uwdata/vega-lite/issues/24


az acr repository show-tags Unable to get AAD authorization tokens

When running: az acr repository show-tags -n <regName> --repository <repoName> -o tsv in an ADO pipeline (so running as a service priciple) we are getting the following error:
Unable to get AAD authorization tokens with message: An error occurred: CONNECTIVITY_ACCESS_TOKEN_ERROR
Access to registry '<regName>.azurecr.io' was denied. Response code: 504. Please try running 'az login' again to refresh permissions.

We have tried running this locally following these steps:

az login --service-principal -u <spId> -p <secret> --tenant <tenant>
az account set -s <subId>
az acr repository show-tags -n <regName> --repository <repoName>  -o tsv

The result will always show the tags for my repo, but will also sometimes show the same error as above.

I have checked and the SP has contributor access to the acr resource and if run under a user account we are not seeing the issue.

Also, to add. this has previously worked without issue. We are only seeing this error as of today.

route to CXP team

@ben-garside did you try this action plan? https://docs.microsoft.com/en-us/azure/container-registry/container-registry-health-error-reference#connectivity_access_token_error


Split AmeriaServerCall into UnaryAmeriaServerCall and StreamingAmeriaServerCall

ArmeriaServerCall handles unary/streaming requests and responses for gRPC services.
If we implement a ServerCall only for a unary call:

Remove meaningless fields and operations in unary calls that are used for backpressure.
https://github.com/line/armeria/blob/cb66bcc22de260b0a56144b1cec2219dc373227a/grpc/src/main/java/com/linecorp/armeria/server/grpc/ArmeriaServerCall.java#L103-L104
Use a 1 to 3 fixed stream messages for an HttpResponse instead of DefaultStreamMessage
that have lower memory footprint and are faster.
Be able to aggregate a request before decoding.

closed by #3956


URL redirect bug

This issue is submitted as per this SN post.
Problem
First of all, this bug is severe, because it could be used to phish user credentials -- and SN accounts involve money.
Some SN pages currently redirect signed-in users to any URL. For instance, these two links will redirect you to Google:
https://stacker.news/signup?callbackUrl=https%3A%2F%2Fwww.google.com%2F
https://stacker.news/login?callbackUrl=https%3A%2F%2Fwww.google.com%2F
It would be trivial to send SN users emails, which contain links that seem legit, but which actually redirect them to a fake SN login page. The credentials harvested through such a page would be used to steal user funds.  The only thing the attacker would need is SN user email addresses, which have been accidentally leaked once before.
The bug exists in pages/signup.js and pages/login.js. Both have a function getServerSideProps, which seems to not check the content of callbackUrl. The bug only affects users who are signed in, because the session variable has to be non-null in getServerSideProps for the redirect to work.
callbackURL is also mentioned in pages/settings.js, pages/invites/[id].js, and some files in the components folder. I have not looked at or tested those files.
Solutions
This bug could be solved by either eliminating the redirection functionality; or by checking the domain in callbackUrl (e.g. by only allowing redirects to stacker.news). I don't know which solution would be correct, because I don't know what purpose this redirection serves.
Sorry, I don't have any code to offer. I have no experience writing Javascript and there isn't enough time for me to learn.

Thanks for posting! I actually didn't see the SN post but saw this ticket here.
So thank you very much, I guess we would have totally missed it otherwise.
This is definitely an issue and we should warn users before redirecting them to external sites like many other sites do.
For example, clicking on this link shows a prompt before redirecting: https://www.google.com/url?q=https://www.bufferzonesecurity.com :

Therefore, an attacker could just create a very similar site that looks like SN to grab credentials from users who don't check the URL again. So I agree, this is indeed severe.
Fortunately, the fix should be easy by just validating the callback URL. Will create a PR in a few minutes.

Taking a more closer look, I realized that grabbing of credentials wasn't possible.
No login or signup method uses passwords on SN.
For example, using Lightning for authentication, a different pubkey would have been created since the domain name is included during key derivation.
I assume similar is true for Slashtags authentication.
Using Github and Twitter, a third-party authenticates the user.
With E-Mail, a link is sent to the address for signup and login.
So afaik, there was no possibility to grab user credentials and steal funds using this exploit. Users can't enter a password on a phishing site if they have none.
But of course still thanks for creating this ticket! I think this was still a severe issue which may be used for other malicious stuff. We should definitely warn users when they leave SN when it's unexpected.

Sure! there was no possibility to perform such advanced attacks , but if someone manage to escalate the issue to Cross site scripting or so . maybe there will be a scenario stealing Cookies or Interesting headers .

Alright fix deployed. Thank you everyone. I'll send you all some sats today.


Missing type promotions when doing python API calls

I ran in to a problem with Numba on IBM Z (S/390). The issue potentially also affects other targets which require function arguments to be promoted (e.g. Mips).
The IBM Z ABI requires all integer types to be promoted to full register width by the caller. The callee will rely on this promotion to be done by the caller and will use an int32 input directly as 64 bit value in instructions without applying additional sign- or zeroextensions to it.
Right now Numba seems to violate that rule when it calls Python API routines as in:
    def tuple_new(self, count):
        fnty = ir.FunctionType(self.pyobj, [ir.IntType(32)])
        fn = self._get_function(fnty, name='PyTuple_New')
        return self.builder.call(fn, [self.context.get_constant(types.int32, count)])

I see this causing trouble in the testcase below, where a tuple with 2 elements is supposed to be allocated. Since there are some leftover bits in the upper 32 bits, PyTuple_New is invoked with some huge value and the allocation fails. A proper sign extension at the call-site would have prevented this. Experimentally changing the int32 types above to 64 bit makes the testcase succeed.
When Clang generates IR, it consults the target definition via classifyArgumentType to figure out whether type promotion needs to be applied for function arguments and adds the "signext" or "zeroext" attributes to the IR of the function argument. From a quick look I couldn't find that information being provided by llvmlite yet. So I guess this would need to be the first step towards fixing this.
I'll try to have a look but would appreciate some guidance about what would be the right way to go about this.
Here the testcase I've extracted which triggers this problem on IBM Z:
import numpy as np
from numba import jit
from numba.typed import Dict

print("start")
@jit
def foo(k1, v1, k2):
    d = Dict()
    d[k1] = v1
    return d, d[k1]

k1 = (np.int32(1), np.int32(2))
k2 = 1
v1 = np.int32(123)

d, dk1 = foo(k1, v1, k2)

llvmlite do have zeroext and signext. Numba as the frontend will need to add the logic to insert those attributes when needed. It seems there's no harm just naively adding zeroext for all unsigned integers and signext for all signed integers.

Actually, for this case of tuple_new, it's just a bug. The function should take Py_ssize_t type which is i64 on 64-bit platforms.

For the general LLVM-IR problem, we have been lucky that none of the supported platform cared.
I wonder if this is only a problem when dealing functions written in other languages. If all of Numba doesn't emit signext/zeroext correctly, will all internal calls be consistent? Will passing a i16 without proper extension work correctly all the time.
For all C FFI, is it only a problem when Numba jit code calls C? I presume it is the caller's responsibility to extend integers properly. If C calls Numba, will it matter that Numba doesn't set the proper integer extension on the argument attributes in LLVM?

llvmlite do have zeroext and signext. Numba as the frontend will need to add the logic to insert those attributes when needed.
Yes, what I couldn't find so far is the information from the target platform when to apply sign/zero extends on arguments. So basically a llvmlite API call for something like classifyArgumentType.

It seems there's no harm just naively adding zeroext for all unsigned integers and signext for all signed integers.
Unfortunately it might trigger extra operations on platforms which actually don't need it.

For the general LLVM-IR problem, we have been lucky that none of the supported platform cared.
I wonder if this is only a problem when dealing functions written in other languages. If all of Numba doesn't emit signext/zeroext correctly, will all internal calls be consistent? Will passing a i16 without proper extension work correctly all the time.

Yes, I think purely internal calls are ok. The calls would not adhere to the official ABI of the platform, but as long as it is consistent it should work.

For all C FFI, is it only a problem when Numba jit code calls C? I presume it is the caller's responsibility to extend integers properly. If C calls Numba, will it matter that Numba doesn't set the proper integer extension on the argument attributes in LLVM?

As I understand it the signext/zeroext flags trigger different actions for the caller and the callee.
In the caller it imposes a requirement for the argument. So the caller has to do something extra to make it compatible.
In the callee it is some guarantee which can be exploited for further optimization. E.g. the callee might get rid of extra sign- or zeroextend operations which would be redundant.
So omitting the flags when compiling the callee should not be more than a missing optimization, while omitting the flags at call-site will likely cause a problem if the callee had the flags.  The pythonapi file seems to be used to let Numba compiled functions call into C compiled Python routines. So here currently we have the flags only in the callee.

Actually, for this case of tuple_new, it's just a bug. The function should take Py_ssize_t type which is i64 on 64-bit platforms.

Indeed, good catch! I'll prepare a PR.


Add Complex Types support in Native Parquet Reader

I'm working on it

@yingsu00 Hi, would you please share some updates on this? We are working on adopting velox and this is a blocker for us.


chore(deps): bump tibdex/backport from 2.0.3 to 2.0.4

What this PR does / why we need it:

Which issue this PR fixes:

Special notes for your reviewer:

PR Readiness Checklist:
Complete these before marking the PR as ready to review:

[ ] the CHANGELOG.md release notes have been updated to reflect any significant (and particularly user-facing) changes introduced by this PR

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Wrong format of OPEN ... FOR statement USING

Hello,
Using SQL Developer 21.2 (sqldeveloper-<IP_ADDRESS>.1842-x64) and the plsql-formatter-settings from 19.07.2021 I have a problem with the formatting of the statement OPEN ... FOR statement USING.
The settings are:

The code:
DECLARE
TYPE JobRequestCursor IS REF CURSOR;
sqlstatement         VARCHAR2(2000);
cJobRequest          JobRequestCursor;
ct_planner_closed    INTEGER := 0;
ct_planner_cancelled INTEGER := 1;
ct_closed_warranty   INTEGER := 2;
ct_closed_without_wo INTEGER := 3;
ct_totally_received  INTEGER := 4;
ct_false             INTEGER := 0;
BEGIN
sqlStatement :=
'SELECT JRJR_CODE '||
'FROM JOB_REQUEST JobRequest_ '||
'WHERE JRJR_PRIMARY_REQUEST IS NULL AND '||
'( JRJR_STATUS IN ( :planner_closed, :planner_cancelled, :closed_warranty, :closed_without_wo ) OR '||
'( JRJR_STATUS = :totally_received AND '||
'JRJR_WORK_ORDER IS NULL AND '||
'JRJR_REPARTITION = :ct_false ) )';
OPEN cJobRequest FOR sqlStatement
USING ct_planner_closed, ct_planner_cancelled, ct_closed_warranty, ct_closed_without_wo,  ct_totally_received, ct_false;
END;
/
is wrong formatted in the USING part.
Best regards

With you settings the result looks like this:
DECLARE
   TYPE JobRequestCursor IS REF CURSOR;
   sqlstatement         VARCHAR2(2000);
   cJobRequest          JobRequestCursor;
   ct_planner_closed    INTEGER := 0;
   ct_planner_cancelled INTEGER := 1;
   ct_closed_warranty   INTEGER := 2;
   ct_closed_without_wo INTEGER := 3;
   ct_totally_received  INTEGER := 4;
   ct_false             INTEGER := 0;
BEGIN
   sqlStatement :=
      'SELECT JRJR_CODE '
      || 'FROM JOB_REQUEST JobRequest_ '
      || 'WHERE JRJR_PRIMARY_REQUEST IS NULL AND '
      || '( JRJR_STATUS IN ( :planner_closed, :planner_cancelled, :closed_warranty, :closed_without_wo ) OR '
      || '( JRJR_STATUS = :totally_received AND '
      || 'JRJR_WORK_ORDER IS NULL AND '
      || 'JRJR_REPARTITION = :ct_false ) )';
   OPEN cJobRequest FOR sqlStatement
      USING ct_planner_closed, ct_planner_cancelled, ct_closed_warranty, ct_closed_without_wo, ct_totally_received, ct_false;
END;
/

What do you expect?

Please see the image below. The values after USING are not alligned as you mention:

I formatted the code you provided initially. There should not be any line breaks added in the using clause and other formatting outcome do not match with the current rules at all...
Have you loaded the configured dbtools.arbori.home as described here and loaded trivadis_custom_format.arbori in the custom settings?

Yes. I followed the procedure described.

in the file I have

And the formatter setting are there

The formatter settings are for sure not loaded properly. There must be something wrong with the setup.
Have you changed the right product.conf? What does the value for dbtools.arbori.home show under About -> Properties? Can you show me also the screenshot of the custom settings?

This was the problem. The custom settings were not loaded. I forced the import again and now it works.
Sorry to disturb you.

Thanks for reporting back. I hope to get back to a single Arbori file in one of the future SQLDev versions.


question: Serinus packages

Description
Hello, I have a question about these Serinus packages:

cors
rate_limiter
serinus_config
serve_static

These packages are quite small and important in every normal web project. Why must be in some separate package instead of main serinus core package?
Including these packages into core could prevent of existing many small packages and long project setup I think..

Hello, thank you for your question.
Yes, they are very important in every project for sure, but the idea behind Serinus is to allow the user to decide which package to use without forcing the use of a specific implementation. You could definitely think about putting them inside the core and if it's OK with you I would turn this issue into a proposal to talk about it in a more technical POV.

My opinion is that developer should not be overwhelmed by many small packages and options on start of project when cannot. Some other third-party packages could exists of course but for some bigger issues where may exists more different ways. For example: ORM, Swagger docs generation, Auth, etc..
I do not have any problem to turn this issue into a proposal talk.. :)

After some consideration I'm thinking of move serinus_cors and serinus_rate_limiter in the core package while leaving serinus_config and serinus_serve_static out for now. Serinus Config will probably receive some changes to reflect the possibility to use multiple readers instead of dotenv files only. I'm leaving the proposal open for now for future discussion regarding these other two packages.


swag init generates documentation too slowly

Is your feature request related to a problem? Please describe.
As our projects become larger and larger, swag init will be very slow to generate documents, usually taking more than half an hour, which is very painful.
Describe the solution you'd like
Looking at the source code, we found that it takes a lot of time to search for dependency packages, because all dependencies will be searched repeatedly. It is not as good as both B and C depending on A. When building B and C, A will be searched repeatedly. We add the FindPackage method. After add the cache, I found that the speed increased by nearly 10 times. The code is as follows
conf := loader.Config{
  ParserMode:  goparser.ParseComments,
  Cwd:         cwd,
  FindPackage: FindPackage,
}

var packageCache = make(map[string]*build.Package)
var cacheMutex sync.RWMutex
var packageLocks sync.Map

func FindPackage(ctxt *build.Context, importPath, fromDir string, mode build.ImportMode) (*build.Package, error) {
	cacheMutex.RLock()
	pkg, found := packageCache[importPath]
	cacheMutex.RUnlock()

	if found {
		return pkg, nil
	}

	lockInterface, _ := packageLocks.LoadOrStore(importPath, &sync.Mutex{})
	lock := lockInterface.(*sync.Mutex)

	lock.Lock()
	defer lock.Unlock()

	cacheMutex.RLock()
	pkg, found = packageCache[importPath]
	cacheMutex.RUnlock()

	if found {
		return pkg, nil
	}

	pkg, err := ctxt.Import(importPath, fromDir, mode)
	if err != nil {
		return nil, err
	}

	cacheMutex.Lock()
	packageCache[importPath] = pkg
	cacheMutex.Unlock()

	return pkg, nil
}

感谢，但是我觉得在代码注释中用中文不太合适，毕竟这是面向所有开源开发者all over the world。


[Typescript] Adds argument to FlatList

FlatList: Adds argument ItemT, as on react-native original definition

Thanks!


Add info about adding shared folders to Toolbox

Fixes #4334
cc/ @FrenchBen for technical review
Specifically, I only included the command-line method on Mac, and I almost feel like I should remove it there too since it's limited, compared to adding the shared folder within VirtualBox.

If using vbox, it does enumerate all shares and automount!  https://github.com/boot2docker/boot2docker/blob/29dc611f82f134f5a0c5e038ccc7bf114e6da5af/rootfs/rootfs/etc/rc.d/vbox#L40

@tianon Is there anything we need to tweak in the content we merged in this PR, to account for that?

It uses the "share name" as the directory for auto mounting inside the VM,
and ignores the automount setting entirely (it automounts everything), so
yeah it's probably worth describing the oddity. 😅

Can you do the automounting on the command line or do you have to do it from within the VirtualBox UI? If you can do it in the command line, what are the relevant options? Can you give an example command?

@mstanleyjones This Stack Overflow page might be helpful. Scroll down to the posts starting with "Add Virtual Machine Mount Point (part 1)"

@mstanleyjones yeah, it's available via docker-machine create:
$ docker-machine create --help --driver virtualbox | grep share
   --virtualbox-no-share      Disable the mount of your home directory [$VIRTUALBOX_NO_SHARE]
   --virtualbox-share-folder  Mount the specified directory instead of the default home location. Format: dir:name [$VIRTUALBOX_SHARE_FOLDER]

Example usage would be something like this:
$ docker-machine create --driver virtualbox --virtualbox-share-folder C:\www:var/www test

(which will create /var/www inside the container with the contents of C:\www from the host mounted)

(Or one can use VBoxManage as noted by @londoncalling's Stack Overflow link)


UPS_FIND_GEQ_MATCH finds erased item in env with UPS_ENABLE_TRANSACTIONS

This is issue is identical to issue-105 from https://github.com/cruppstahl/upscaledb
See https://github.com/cruppstahl/upscaledb#106
Hello,
Please consider following sample:
int main()
{
    ups_env_t* env;
    ups_env_create(&env, "test.db", UPS_ENABLE_TRANSACTIONS, 0664, 0);
    //ups_env_create(&env, "test.db", 0, 0664, 0);

    ups_parameter_t params[] = {
    {UPS_PARAM_KEY_TYPE, UPS_TYPE_UINT32},
    {0, }
    };

    ups_db_t* db;
    ups_env_create_db(env, &db, 1, 0, &params[0]);

    const int item_count = 50;

    for (int i = 0; i < item_count; i++)
    {
        ups_key_t key = ups_make_key(&i, sizeof(i));
        ups_record_t record = {0};

        ups_db_insert(db, 0, &key, &record, 0);
    }

    for(int i = 0; i < item_count / 2; i++)
    {
        ups_key_t key = ups_make_key(&i, sizeof(i));

        ups_db_erase(db, 0, &key, 0);
    }

    uint64_t count = 0;
    ups_db_count(db,0, 0, &count);

    if(count != item_count / 2){
        std::cout << "Item count after delete: " << count << std::endl;
    }

    for(int i = 0; i < item_count / 2; i++)
    {
        ups_key_t key = ups_make_key(&i, sizeof(i));
        ups_record_t record = {0};

        ups_cursor_t* cursor;
        ups_cursor_create(&cursor, db, 0, 0);
        ups_status_t st = ups_cursor_find(cursor, &key, &record, UPS_FIND_GEQ_MATCH);
        //ups_status_t st = ups_db_find(db, 0, &key, &record, UPS_FIND_GEQ_MATCH);

        if(st == UPS_SUCCESS && *reinterpret_cast<int*>(key.data) == i){
            std::cout << "Found deleted item: " << i << std::endl;
        }

        ups_cursor_close(cursor);
    }

    ups_db_close(db, 0);

    return 0;
}

What is printed in the standard output:
    Item count after delete: 30
    Found deleted item: 24

This occurs only when transactions are enabled.
Both ups_cursor_find and ups_db_find are affected.
Also ups_db_count returns invalid value after erase operation. (should be 25)
Both bugs occurrence seems to be related to number of inserted items (for example when item_count=100 these issues are not occurring)

This case is added to test suite of the project.

The source code can be found in file issue105.cc

This test has been simplified.


merge archive with compressor

Problem
This PR tries to take a step forward to #208
If you want to backup a 100GiB directory, you need 100 GiB extra space for creating archive.tar alongside database backups and then create the final backup file.
Solution
We can directly backup directories in compressing step.
In this way the extra space doesn't needed.
Hit two birds with one stone

I don't want to merge theme, because by the original design, they are two things.
The disk usage problem needs to use other way to solve it.

Okay, what do you have in mind?


Add missing Option::orElse method

The Option::or() method states
     * @note:   Arguments passed to `Option::or()` are eagerly evaluated;
     *          if you are passing the result of a function call, it is recommended to use `Option::orElse()`, which is lazily evaluated.

But there is no Option::orElse() method.
Now there is!

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

3 of 3 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.001%) to 97.228%

Totals

Change from base Build<PHONE_NUMBER>:
0.001%

Covered Lines:
5016

Relevant Lines:
5159

💛  - Coveralls


Failure network XXX has active endpoints BUG easy to prevent/fix

BUG REPORT INFORMATION
You do NOT have to include this information if this is a FEATURE REQUEST
-->
Description

Steps to reproduce the issue:

Portainer with minimum 1 Agent node as a endpoint
Use Master as active endpoint and create a new Stack
The Stack has now created a new Network on Master and on your Agent Node
Now on your Master Node delete your stack and delete the network that got created with the stack name under network
now change the endpoint to your agentnode
try to delete the network that got created in step 3.
its not possible error message: "Failurenetwork blabla has active endpoints"

The Same is for Images created over to the node, they stay there forever, but its good that you can manually delete them.
Some Configuration like sync agent to master that both are the same in images or network config would be good
Any other info e.g. Why do you consider this to be a bug? What did you expect to happen instead?
It seems this is a already a known problem, you have to always delete the network on Agent nodes first and then on your Master. First master then node does not work.
the problem is that if portainer is stoped as a service, and rerun it can be that the volume that was used before get lost, and i get the first visit of portainer again and have to create a password.
The Old Stacks created are listed as "extern created stacks" so i cannot delete them or do anything with them. They stay in the system and are linked to with a network.
Now when i delete the networks on main, i cannot delete them on the node anymore.
its preventable if before you delete a network on master it checks if on any connected agent node are the network and delete them there first.
This issue is headache because now i cannot revert it and have to set up my whole swarm. I have no possibility to connect to the agent node manually via ssh and delete the network.
Technical details:

Portainer version: latest
Platform (windows/linux): linux

@Shinoby1992 I'm thinking this is not an issue with Portainer directly, but rather with docker stack deploy.  Are you able to reproduce this issue using docker stack deploy from the CLI ?

Somehow it is a Portainer bug, i can explain why. Because the only reason this happened is because of a bug (im not able to reproduce directly but happened now 2 times in 1 week, with a configuration by myself on my server and on a server of a friend running the same codes)
I tried to login to portainer with defaultlink:9000 and i got the error message that the password was wrong, after 3-4 times, i got redirected to the portainer dashboard for first launch where i have to type in the admin username and set the new admin password.
and exactly thats the reason i got this error, because then i was on portainer and when i go to stacks there where the 2 created stacks created "externally" which i cannot edit, nor delete. All settings were also lost. so like using a new portainer. i tried somehow to get attain to the "old" portainer
but it was like the old run-in portainer was lost, but the stacks not.
so that was the reason that whenever i run a new stack and service, it says its already running, so i had to delete the networks on master, and tried it then to the agent node, and voila. now i see i have to firstly delete agent and then the master network else, its no point to revert it.
So this "portainer" reset, was the main reason this all happens ... i hope it don't happens again because i doesn't touch anything and this does happen i don't even restart the server.
i guess the invisible stacks are able to getting delete, but then i still have the problem that i can't ssh to agent node and delete there from sli the networks -.- portainer could prevent this with don't let networks delete on master before they are deleted on agents, or something like if you delete on master, delete on agent before.
The other bug with portainer gets resettet because ??? is also a nasty bug

@Shinoby1992 how did you deploy Portainer? Portainer should be deployed as a single instance replica service on a manager inside a Swarm. If you have multiple manages in your Swarm cluster, you need to persist the data between your manager nodes (using a shared filesystem for example).
Try to solve the data persistency issue first, and then we'll try to go further on that stack problem.
FYI, Portainer is using docker stack behind the scene to manage the stacks (create, update, remove), so any issue related to these actions might come from the docker binary.

-> Create the server
-> SSH to Master
-> Pause the Agent, and set the Master to Active
-> Run this code
docker service create \
   --name portainer \
   --publish 9000:9000 \
   --constraint 'node.role == manager' \
   --mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
   portainer/portainer \
   -H unix:///var/run/docker.sock

-> activate the agent node again that was my procedure
-> i never touched anything then but still after some days its like portainer gets resettet i see this first when i try to login and get the wrong password information..

@Shinoby1992 You need to persist Portainer data if you want to keep your settings if the Portainer container get re-scheduled.
Have a look at the extra bind option here: http://portainer.readthedocs.io/en/stable/deployment.html#persist-portainer-data

i tried it out. after a reboot, the same again.
i try to login but password authentication error and after 3 times pressing login, it get redirected to the create account website ...
i created portainer with
docker service create \
    --name portainer \
    --publish 9000:9000 \
    --constraint 'node.role == manager' \
    --mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
    --mount type=bind,src=/var/run,dst=/data \
    portainer/portainer \
    -H unix:///var/run/docker.sock

okay i got it working i had to manually create a folder with
cd /var
sudo mkdir data
and than use it
    --mount type=bind,src=/var/data,dst=/data \
but still even the latest portainer version 1.16.5 still does not u use the update delay in stack configurations!! all my service always upscale instantly to the setted number

@Shinoby1992 this is not related to this issue. Do you still have a problem with the network and docker stack removal?

no due to persistent data this does not happen anymore, and if i have to reset the whole VM because in azure its not simply possible to connect through ssh to the agent nodes.
so i should open a new issue, related to the update config that gets ignored.
thank you for your fast reply and help :-)

Sure, you're welcome. Closing this issue.


Enabling background messagin (cloud messaging), documentation

I have tried to use the background capabilities of firebase_messaging, to allow processing messages when the app is not in the foreground. However this causes problems I followed the instructions as in the screenshot below.

For my project the main package resides within kotlin. Thus the project structure is .../app/src/main ,where there are both kotlin and java folders. The mainactivity resides within the kotlin class, thus when adding an application class, I did this here as instructed, as kotlin and java have interoperability, I simply converted the class to kotlin and it is as follows.
package com.dating
import io.flutter.app.FlutterApplication
import io.flutter.plugin.common.PluginRegistry
import io.flutter.plugin.common.PluginRegistry.PluginRegistrantCallback
import io.flutter.plugins.GeneratedPluginRegistrant
import io.flutter.plugins.firebasemessaging.FlutterFirebaseMessagingService

class Application : FlutterApplication(), PluginRegistrantCallback {
  override fun onCreate() {
    super.onCreate()
    FlutterFirebaseMessagingService.setPluginRegistrant(this)
  }

  override fun registerWith(registry:PluginRegistry) {
    GeneratedPluginRegistrant.registerWith(registry)
  }
}

This however yields the following error
C:\Users\amir2\AndroidStudioProjects\dating\android\app\src\main\kotlin\com\dating\Application.kt: (16, 48): Type mismatch: inferred type is PluginRegistry but FlutterEngine was expected and fails compilation within 3 seconds, I have updated the manifest as instructed as well, and set the name to .Application
After further digging, i even tried to change the structure to java, so no kotlin use now, this didnt change anything as i thought. The example code provided i assume has errors as public final class GeneratedPluginRegistrant {   public static void registerWith(@NonNull FlutterEngine flutterEngine) {. The example code provided wants to provide a type of PluginRegistry to a function which takes a FlutterEngine type. This is a mistake in the example provided on the https://pub.dev/packages/firebase_messaging documentation for when enabling background messaging.
I do not know still how to enable this appropriately then.

Hi @amir2202,
There's similar open issue describing your case, 1684.
Please follow-up there for updates and any questions.
Closing this as duplicate.


conditions: let type explicitly handle nil pet

Apparently the API call now just interprets nil = 0, thus always returns a (bogus) type.

Thanks for taking a look at this! Can you add a quick changelog entry?


Run archivedJobs migration only if archivedJobs table exists

https://github.com/Shippable/pm/issues/11786

this is done, closing


Where is SteamVR_Controller class?

It was removed? I can't find it in SteamVR 2.01.
Here is my outdated code:
private SteamVR_Controller.Device controller2 {
get {
return SteamVR_Controller.Input((int)trackedObj.index);
}
}

Hello @ahmadsay, this is already being discussed at #146. Closing as a duplicate.


[ Test ] enable unittest

This pr includes enabling unittest for gbs
Self evaluation:

Build test:	 [X]Passed [ ]Failed [ ]Skipped
Run test:	 [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: jijoong.moon<EMAIL_ADDRESS>

:memo: TAOS-CI Version: 1.4.20191203. Thank you for submitting PR #551. 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://nnsuite.mooo.com/.


Hits plays on Dead NPCs

Hitsplats show on dead NPCs, would it be possible to add an option to hide these?

I'll look into this


Remove iOS .env file

fixes #55

the .env file should not be added to the repo, ergo removing it in this commit. The .env file deleted here was added before .gitignore was updated.

duplicate PR


[WIP] MSC2967: API scope restriction

Rendered

Related: https://github.com/matrix-org/matrix-doc/issues/2889


:someparameter returning empty array

js code -
Router.route('/list/:someParameter', {
data: function(){
console.log(this.params);
}
});
then url http://localhost:3000/list/hello was entered
expected o/p - [someParameter:"hello",hash:null,query:Object]
actual o/p -       Array[ ]

hi @ketankulkarni, i can't reproduce this with the latest version... i need more info or a repo to look at


Pretty printing with big uncertainties

>>> from chempy.printing import number_to_scientific_unicode
>>> number_to_scientific_unicode(0.05, 5.5)
...
ValueError: unsupported format character '-' (0x2d) at index 2

Using +/- (\pm) should also be possible by passing a kwarg plusminus=True to any of the number_to_scientific_* functions.

I tried to fix this bug to start contributing to this repo, but I couldn't get my head around how this scientific representation with number, standard error and precision works.
I think the code for formatting can be simplified, but I'd like to ask for an explanation of how this notation works. I even looked at https://stackoverflow.com/questions/6671053/python-pretty-print-errorbars but it is still very confusing to me.
Could you elaborate with examples?

Okay, that is where my problems begin. Why not for example:
>>> number_to_scientific_unicode(0.05, 5.5)
'0.5(55)·10⁻¹

? I understand the Python code, I debugged it, I found the line, wrote a test that reproduces the bug, but I don't know what output I should expect, because I don't fully understand what this function should be doing... I see the examples, but not the reasoning behind them. Basically, in general, if a value and a standard error is given, what do you do to arrive to this representation?
Because I see that the idea is something along the lines of changing the standard error to a whole number and then scaling the value so that everything makes sense. Does this notation have a name? Because I couldn't find anything about it.
The +- notation is much easier to do, because I understand how that notation is generated

Sorry, I misunderstood your question. I guess this is a matter of canonicalization, i.e. we just need a reasonable set of rules which give us one unambiguous representation. The rule which I've been following rather unconsciously is:

only one single digit goes before the decimal place, and that digit should not be zero (which raises the question how number_to_scientific_unicode(0, 1.23) should print, but let's defer that for now).

I could also see merit in making the exponent a multiple of three (since we're so used to thinking in k, M, G, T, ... etc.).
I don't know if the notation with parenthesis has a name, here are a two reputable resources I found while looking into that:

https://physics.nist.gov/cgi-bin/cuu/Info/Constants/definitions.html
https://journals.aps.org/prl/authors/general-notation-terminology

I haven't seen any python package which can output strings in this format (uncertainties can parse it), the latex package siunitx does use it by default.

Yes, the main problem here is that this conversion is not unique. As for your rule of thumb, I am seeing that most test cases don't follow it:
assert _float_str_w_uncert(-5739, 16.34, 2) == '-5739(16)'
assert _float_str_w_uncert(-5739, 16.9, 2) == '-5739(17)'
assert _float_str_w_uncert(0.0123, 0.00169, 2) == '0.0123(17)'
assert _float_str_w_uncert(0.01234, 0.00169, 2) == '0.0123(17)'
assert _float_str_w_uncert(0.01234, 0.0016501, 2) == '0.0123(17)'
assert _float_str_w_uncert(0.01234, 0.0016501, 1) == '0.012(2)'
assert _float_str_w_uncert(-9.99752e15, 349e10, 2) == '-9.9975(35)e15'
assert _float_str_w_uncert(-9.99752e5, 349, 2) == '-999750(350)'
assert _float_str_w_uncert(-9.99752e5, 349, 3) == '-999752(349)'
assert _float_str_w_uncert(315, 17.9e-4, 2) == '315.0000(18)'

This is why I wanted to clarify what the function should be doing.
I have an idea to standardize this, it makes more or less sense with the test cases and it should work in all cases. Let me know your opinion about it.
The idea relies on scaling the standard error to a whole number and adapting the value to match the scaling.
So, for example, if the standard error is 0.1234 and I have precision 3, then the number in parenthesis would be 123 (because 0.1234 as a whole number would be scaled to 1234 but we just use the first 3 digits). After that, we would scale the value to match the scaling of the standard error. So if the value is 15 and standard error is 0.1234 with precision 3, it would become 1500(12)e-2 (because we adapted 15 to the scale of the standard error of (12), i.e. multiplied the value by 10^2, so that the 12 makes sense inside the notation). We added e-2 to the end because that's how we would go back from 1500 to 15.
For this case, the result would be
>>> number_to_scientific_unicode(0, 1.23)
'0(123)e-2'
>>> number_to_scientific_unicode(0.5, 5.5)
'5(55)e-1'
>>> number_to_scientific_unicode(0.05, 5.5)
'0.5(55)e-1'

I hope I explained myself about the idea. I left out cases like having to add padding 0s to the decimals, but that's just part of "adapting to the standard error's scale". I can elaborate on any edge case if you have doubts.

Ah, you're right. I like the idea, it feels consistent. Feel free to go ahead and change it to use this format instead.

Awesome! I'll do the pull request as soon as I have it
On Fri, Sep 14, 2018, 01:31 Björn Dahlgren<EMAIL_ADDRESS>wrote:

Ah, you're right. I like the idea, it feels consistent. Feel free to go
ahead and change it to use this format instead.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/bjodah/chempy/issues/39#issuecomment-421184325, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEMZw_ubqgeUiJA9KH1JnSfk8HARoFIuks5uaurpgaJpZM4Ktlmn
.

Great! Do you intend to add the "plusminus" option as well?

I don't think so, because usually adding a boolean parameter to decide what
a function does is sign of a bad design. Don't get me wrong, sometimes it
is necessary to decide things inside a function, but if the logic of the
whole function is based on "if random_boolean: do this, else: do other
thing", then that's usually a red flag.
I'd like to first stabilize this respresentation and check that it works
properly.
I think the plusminus should be a separate issue, because it is a
completely different thing. This is a bug and plusminus is a new feature.
Are you okay with that?
There are many ways to add new kinds of representations such as
implementing something similar to the Strategy pattern
https://en.m.wikipedia.org/wiki/Strategy_pattern. But that can be evaluated
inside the other issue.
On Sat, Sep 15, 2018, 09:37 Björn Dahlgren<EMAIL_ADDRESS>wrote:

Great! Do you intend to add the "plusminus" option as well?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/bjodah/chempy/issues/39#issuecomment-421538501, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AEMZwyVLayHM7eMisbm_8hJY8DLA5VpYks5ubK4xgaJpZM4Ktlmn
.

I tried to rewrite the test cases to match my idea, but I'm not sure if this is what the function should be doing:
Original test:
assert _float_str_w_uncert(-5739, 16.34, 2) == '-5739(16)'
assert _float_str_w_uncert(-5739, 16.9, 2) == '-5739(17)'
assert _float_str_w_uncert(0.0123, 0.00169, 2) == '0.0123(17)'
assert _float_str_w_uncert(0.01234, 0.00169, 2) == '0.0123(17)'
assert _float_str_w_uncert(0.01234, 0.0016501, 2) == '0.0123(17)'
assert _float_str_w_uncert(0.01234, 0.0016501, 1) == '0.012(2)'
assert _float_str_w_uncert(-9.99752e15, 349e10, 2) == '-9.9975(35)e15'
assert _float_str_w_uncert(-9.99752e5, 349, 2) == '-999750(350)'
assert _float_str_w_uncert(-9.99752e5, 349, 3) == '-999752(349)'
assert _float_str_w_uncert(315, 17.9e-4, 2) == '315.0000(18)'

Changed test (and added new ones):
assert _float_str_w_uncert(-5739, 16.34, 2) == '-5739(16)'
assert _float_str_w_uncert(-5739, 16.9, 2) == '-5739(17)'
assert _float_str_w_uncert(0.0123, 0.00169, 2) == '123(17)e-4'
assert _float_str_w_uncert(0.01234, 0.00169, 2) == '123(17)e-4'
assert _float_str_w_uncert(0.01234, 0.0016501, 2) == '123(17)e-4'
assert _float_str_w_uncert(0.01234, 0.0016501, 1) == '12(2)e-3'
assert _float_str_w_uncert(-9.99752e15, 349e10, 2) == '-99975(35)e11'
assert _float_str_w_uncert(-9.99752e5, 349, 2) == '-99975(35)e1'
assert _float_str_w_uncert(-9.99752e5, 349, 3) == '-999752(349)'
assert _float_str_w_uncert(315, 17.9e-4, 2) == '3150000(18)e-4'
assert _float_str_w_uncert(0, 1.23, 2) == '00(12)e-1'
assert _float_str_w_uncert(0, 1.23, 3) == '000(123)e-2'
assert _float_str_w_uncert(0.5, 5.5, 2) == '05(55)e-1'
assert _float_str_w_uncert(0.05, 5.5, 2) == '005(550)e-2'

Is this new representation okay with you?

I would actually prefer to have a scilimits option analogous to matplotlib, we could default it to e.g. (-4, 4) (which is what python uses for the %g format string).
Here is a motivating example of why it's preferable—Planck temperature:
assert _float_str_w_uncert(1.416808e32, 33e26) == 1.416808(33)e32

It's immediately obvious that the constant is ~10**32 -- no need to digits and adding the number of digits to the exponent to figure out what order of magnitude the number is...


Exception for any POSTrequest

When you try to send a post, edit or delete a message receive the same exception:

ErrorException in AuthManager.php line 292:
call_user_func_array() expects parameter 1 to be a valid callback, class 'Illuminate\Auth\SessionGuard' does not have a method 'handle'

Laravel 5.2 and for auth use Sentinel.

I do not believe this have anything to do with Voyager.

Any idea what could be the problem?

Can you share your stacktrace?

in AuthManager.php line 292
at HandleExceptions->handleError('2', 'call_user_func_array() expects parameter 1 to be a valid callback, class 'Illuminate\Auth\SessionGuard' does not have a method 'handle'', 'J:\OpenServer\domains\rekirovlara.local\vendor\laravel\framework\src\Illuminate\Auth\AuthManager.php', '292', array('method' => 'handle', 'parameters' => array(object(Request), object(Closure))))
at call_user_func_array(array(object(SessionGuard), 'handle'), array(object(Request), object(Closure))) in AuthManager.php line 292
at AuthManager->__call('handle', array(object(Request), object(Closure)))
at AuthManager->handle(object(Request), object(Closure))
at call_user_func_array(array(object(AuthManager), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}(object(Request)) in VerifyCsrfToken.php line 64
at VerifyCsrfToken->handle(object(Request), object(Closure))
at call_user_func_array(array(object(VerifyCsrfToken), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}(object(Request)) in ShareErrorsFromSession.php line 49
at ShareErrorsFromSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}(object(Request)) in StartSession.php line 64
at StartSession->handle(object(Request), object(Closure))
at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 37
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}(object(Request)) in EncryptCookies.php line 59
at EncryptCookies->handle(object(Request), object(Closure))
at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Router.php line 726
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php line 699
at Router->dispatchToRoute(object(Request)) in Router.php line 675
at Router->dispatch(object(Request)) in Kernel.php line 246
at Kernel->Illuminate\Foundation\Http{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 52
at Pipeline->Illuminate\Routing{closure}(object(Request)) in RemoteValidationMiddleware.php line 54
at RemoteValidationMiddleware->handle(object(Request), object(Closure))
at call_user_func_array(array(object(RemoteValidationMiddleware), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}(object(Request)) in CheckForMaintenanceMode.php line 44
at CheckForMaintenanceMode->handle(object(Request), object(Closure))
at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 32
at Pipeline->Illuminate\Routing{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
at Pipeline->then(object(Closure)) in Kernel.php line 132
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 99
at Kernel->handle(object(Request)) in index.php line 54

Hey, I got the same problem too....


make command error

Hey,
I just following your video about "A Tour of Point-Free" and so I cloned the repo and then when I wanted to run make I faced the following error
/Library/Ruby/Gems/2.3.0/gems/make-0.3.1/bin/make:4:in `<top (required)>': undefined local variable or method `make' for main:Object (NameError)
	from /usr/local/bin/make:22:in `load'
	from /usr/local/bin/make:22:in `<main>'

Hey @alirp88! Looks like you have a RubyGem called make installed, which has hijacked the system-level make command? Or are you running the command in a Ruby console?
You should be able to workaround by invoking the default make command:
/usr/bin/make

You might wanna look into why you have that gem installed, though!

tnx for the hint I will why that gem installed on my device,