Create new branch for es-7.2.1

Hi,
We are using Elasticsearch 7.2.1 and we are trying out the plugin, so we created a fork for that here
https://github.com/amedhat3/fast-elasticsearch-vector-scoring/tree/es-7.2.1
Just basic configuration change for now.
and we would like to contribute it back, in case if anyone uses the same version

Cool, just create a merge request
On Fri, Dec 6, 2019, 2:58 PM Ahmed Othman<EMAIL_ADDRESS>wrote:

Hi,
We are using Elasticsearch 7.2.1 and we are trying out the plugin, so we
created a fork for that here
https://github.com/amedhat3/fast-elasticsearch-vector-scoring/tree/es-7.2.1
Just basic configuration change for now.
and we would like to contribute it back, in case if anyone uses the same
version
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/lior-k/fast-elasticsearch-vector-scoring/issues/35?email_source=notifications&email_token=ABGGISDD4GTNMLEJZV5QE33QXJEAHA5CNFSM4JWWMHU2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4H6TSOEQ,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABGGISAJFQXQXH4U72CHP5DQXJEAHANCNFSM4JWWMHUQ
.


ValueError: Timeout value connect was , but it must be an int, float or None

OS: Windows
Python Version: 3.11.3
Packages Installed while installing Robotframework:
Package                      Version
---------------------------- --------
adbutils                     1.2.9
apkutils2                    1.0.0
Appium-Python-Client         2.9.0
async-generator              1.10
attrs                        23.1.0
cached-property              1.5.2
certifi                      2023.5.7
cffi                         1.15.1
charset-normalizer           3.1.0
cigam                        0.0.3
colorama                     0.4.6
decorator                    5.1.1
Deprecated                   1.2.13
deprecation                  2.1.0
docutils                     0.20
exceptiongroup               1.1.1
filelock                     3.12.0
h11                          0.14.0
idna                         3.4
kitchen                      1.2.6
logzero                      1.7.0
lxml                         4.9.2
outcome                      1.2.0
packaging                    20.9
Pillow                       9.5.0
pip                          22.3.1
pip-review                   1.3.0
progress                     1.6
py                           1.11.0
pycparser                    2.21
pyelftools                   0.29
pyparsing                    3.0.9
PySocks                      1.7.1
requests                     2.30.0
retry                        0.9.2
robotframework               6.0.2
robotframework-appiumlibrary 2.0.0
selenium                     4.9.1
setuptools                   67.7.2
six                          1.16.0
sniffio                      1.3.0
sortedcontainers             2.4.0
trio                         0.22.0
trio-websocket               0.10.2
uiautomator                  1.0.2
uiautomator2                 2.16.23
urllib3                      2.0.2
whichcraft                   0.6.1
wrapt                        1.15.0
wsproto                      1.2.0
xmltodict                    0.13.0

I am trying run a sample robot file for flutter generated Android App.
I am getting below error.
ValueError: Timeout value connect was <object object at 0x000001E972884B80>, but it must be an int, float or None.
Below is my robot file config. And appium server is running with appium --allow-insecure chromedriver_autodownload --allow-cors
*** Settings ***

| Library | AppiumLibrary | run_on_failure=No Operation
# | Library | AppiumLibrary | timeout=500000
Library  AppiumLibrary
Library  BuiltIn

*** Variables ***
${ANDROID_AUTOMATION_NAME}    UIAutomator2
${ANDROID_APP}                ${CURDIR}\\app\\app-debug.apk
${PLATFORM_NAME}              Android
${PLATFORM_VERSION}  %{ANDROID_PLATFORM_VERSION=12}
${DEVICE_NAME}  emulator-5554
# ${APP_ACTIVITY}  MainActivity

*** Test Cases ***
Start the App
    # Set Appium Timeout    100000
    Open Test Application

*** Keywords ***
Open Test Application
    Open Application    http://<IP_ADDRESS>:4723/wd/hub   automationName=${ANDROID_AUTOMATION_NAME}    platformName=${PLATFORM_NAME}    platformVersion=${PLATFORM_VERSION}    deviceName=${DEVICE_NAME} app=${ANDROID_APP} timeout=100s

Please help. :)

Can you very the android driver name.I think so, uiautomator2.
caps["deviceName"] = "" caps["platformName"] = "Android" caps["platformVersion"] = "10" caps["automationName"] = "uiAutomator2" caps["appPackage"] = "com.google.android.apps.maps" caps["appActivity"] = "" url = "http://localhost:4723/wd/hub" self.driver = webdriver.Remote(url, caps)

Can you very the android driver name.I think so.
caps["deviceName"] = "" caps["platformName"] = "Android" caps["platformVersion"] = "10" caps["automationName"] = "uiAutomator2" caps["appPackage"] = "com.google.android.apps.maps" caps["appActivity"] = "" url = "http://localhost:4723/wd/hub" self.driver = webdriver.Remote(url, caps)

@gunaNeelamegam I use Appium library and Flutter's Android for testing. Where is self.driver comes from ? Any Reference to Docs ?

@v1v3kls we are working with creating the own Keyword using robot framework with bare python script.

@gunaNeelamegam I am new to Appium + Robot.
I am using .robot file to execute the code. And I run with robot <filename.robot>
Do I need to run python code to run script ? Please help.

@v1v3kls yes,if you interested to create own Keyword, follow the steps below.
###Steps:
1, create the python file and inside the python file implement the function or class based components .
2, import the file into the robot file as Library with Implement python file name.
Note:
1, when you create the class based component import the keyword decorator.
from robot.deco.api port keyword decorator.
2, python class  name as same as python file name and import into robot file.
3, use as the keyword as  same as using.
4, you,can also able to use the app the external.module inside the python script as you created.
If you have any doubts ping me.

Thank you. I do not want to write Python Script.
I came reading from the link - https://pypi.org/project/robotframework-appiumlibrary/2.0.0/#usage
I see there is way of testing the app using Only Robotframework from above link. Why not I use that ?
As you had suggested, still I am not getting How Python and Robot Interacts ? - Are you suggesting this one ? - https://github.com/robotframework/RobotDemo/blob/master/keyword_driven.robot

Okay 👍, Readability and scalability of the code is must need for contribution.

I am also facing same issue, can someone please help.

On Fri, 12 May, 2023, 2:36 pm aamirnesar, @.***> wrote:

I am also facing same issue, can someone please help.

Ping the issue

—
Reply to this email directly, view it on GitHub
https://github.com/robotframework/robotframework/issues/4761#issuecomment-1545423189,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AY5UXUAMECPRHCULIMIQ74LXFX4PZANCNFSM6AAAAAAX5PC4KI
.
You are receiving this because you were mentioned.Message ID:
@.***>

At the start thread I had mentioned appium Server is run using,
appium --allow-insecure chromedriver_autodownload --allow-cors
This seems to be a Node Package installed globally.
Do Robot framework requires Appium Server to be run in the background as a Python script?
Now, instead of running the above Node JS package in commandline, I am running a python script and the content is,
import os
os.system("appium")

Ref: https://stackoverflow.com/questions/51734382/how-to-start-appium-server-programmatically-in-python

Yes,it's seems correct but the robot run on single threaded so you may need
to start the appium server using the subprocess module.
code:

Steps to up the appium server programmatically.

[Python]

def start_appium_server(base_path: str = "/wd/hub", port: int = 4723):
    server_cmd = (f"appium  --base-path {base_path} -p {port}")
    fp = open(os.devnull, "w")
    process = subprocess.Popen(server_cmd.split(), stdout=fp, stderr=fp)
    time.sleep(5)
    console("Appium Server started")
    return process

On Fri, 12 May, 2023, 7:29 pm v1v3kls<EMAIL_ADDRESS>wrote:

> At the start thread I had mentioned appium Server is run using,
>
> appium --allow-insecure chromedriver_autodownload --allow-cors
>
> This seems to be a Node Package installed globally.
>
> Do Robot framework requires Appium Server to be run in the background as a
> Python script?
>
> Now, instead of running the above Node JS package in commandline, I am
> running a python script and the content is,
>
> import os
> os.system("appium")
>
> Ref:
> https://stackoverflow.com/questions/51734382/how-to-start-appium-server-programmatically-in-python
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/robotframework/robotframework/issues/4761#issuecomment-1545794486>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AY5UXUFCZAWNIS3RP4BAZIDXFY64BANCNFSM6AAAAAAX5PC4KI>
> .
> You are receiving this because you were mentioned.Message ID:
><EMAIL_ADDRESS>>

I have the same issue and setting the lib urllib3 to 1.26.15 seems to have unblocked me

got the same error on mac

I had downgraded to Python 3.8 now.
Now, I am trying to run the robot file for opening the App. I am getting error as below.
MaxRetryError: HTTPConnectionPool(host='"http', port=80): Max retries exceeded with url: //<IP_ADDRESS>:4723/wd/hub/%22/session (Caused by NameResolutionError('<urllib3.connection.HTTPConnection object at 0x039F8748>: Failed to resolve \'"http\' ([Errno 11001] getaddrinfo failed)'))

This issue is based on connection between appium server to appium client.
These commands uninstall the service that running as the background service
in device
Use the below command to rectify:
Before that Mobile must be connected
adb uninstall io.appium.settings
adb uninstall io.appium.uiautomator2.server
adb uninstall io.appium.uiautomator2.server.test
adb uninstall io.appium.unlock
On Sat, 20 May, 2023, 11:08 am v1v3kls, @.***> wrote:

I had downgraded to Python 3.8 now.
Now, I am trying to run the robot file for opening the App. I am getting
error as below.
MaxRetryError: HTTPConnectionPool(host='"http', port=80): Max retries
exceeded with url: //<IP_ADDRESS>:4723/wd/hub/"/session (Caused by
NameResolutionError('<urllib3.connection.HTTPConnection object at
0x039F8748>: Failed to resolve '"http' ([Errno 11001] getaddrinfo
failed)'))
—
Reply to this email directly, view it on GitHub
https://github.com/robotframework/robotframework/issues/4761#issuecomment-1555616715,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AY5UXUEY7X37ZN7LKEIXVK3XHBKHFANCNFSM6AAAAAAX5PC4KI
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi @gunaNeelamegam
Thanks for the reply.
Only Emulator is used for testing.
Should I uninstall the above package even though I use Emulator Only ? [Haven't verified the packages is installed]

Hi @gunaNeelamegam
Thanks for the reply.
Only Emulator is used for testing.
Should I uninstall the above package even though I use Emulator Only ? [Haven't verified the packages is installed]

What ever the device when testing with appium it implicitly install all the dependency services.
Can you provide much more information error log

set the version in your requirements.txt file
example : https://github.com/robotframework/robotframework/blob/master/utest/requirements.txt

But, there is no urllib3 mentioned here ? I was asking about urllib version to be specified.

This tracker is only for bug reports and enhancement requests related to Robot Framework itself. This issue seem to be about AppiumLibrary and it thus doesn't belong here. If you suspect there's a bug in AppiumLibrary, submit an issue to its tracker.
There's been active discussion here. Feel free to continue even though I now close this issue. You can also try asking help on our Slack or other support forums listed at robotframework.org.


[ClickAwayListener] Is being fired without an onClick event after upgrading react and react-dom to v17

On my app I have a menu that worked fine until I upgraded react and react-dom.
After upgrading react and react-dom from  version 16.14.0 to version 17.0.0- on menu click, the menu flashes-it opens and closes right away.

[x] The issue is present in the latest release.
[x] I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯
On menu click- the menu opens and closes right away, for some reason the ClickAwayListener is being fired.
Expected Behavior 🤔
On menu click- the menu should open, on click away it should close.
Steps to Reproduce 🕹

Steps:

Upgrade react and react-dom to v17.0.0
Click the menu

Codesandbox:
~https://codesandbox.io/s/material-ui-issue-forked-byfgm?file=/src/index.js~ Invalid. New repro: https://codesandbox.io/s/material-ui-issue-forked-13053?file=/src/Demo.js
Your Environment 🌎

Tech
Version

Material-UI/core
v4.11.0

React
v17.0.0

React-dom
v17.0.0

Chrome
v86.0.4240.75

Oh wow, here's what's going on:

Click on the icon button, a DOM event (a.) is triggered.
The event bubbles up to the react host
React bubbles the event
React call set onClick handler on the icon button
React renders the ClickAwayListener
ClickAwayListener sets a listener on the document
The drawer opens
The same event (a.) keeps bubbling. It reaches the new listener set by the ClickAwayListener
The drawer closes

Do we really need to fix this? What's the use case for the ClickAwayListener here? The current workaround is to call the setState in a setTimeout().
This change internally produces the expected behavior of the codesandbox. It's unclear if we want to move forward with it.
diff --git a/packages/material-ui/src/ClickAwayListener/ClickAwayListener.js b/packages/material-ui/src/ClickAwayListener/ClickAwayListener.js
index a25f43baca..e31c371924 100644
--- a/packages/material-ui/src/ClickAwayListener/ClickAwayListener.js
+++ b/packages/material-ui/src/ClickAwayListener/ClickAwayListener.js
@@ -49,6 +49,7 @@ function ClickAwayListener(props) {
     // Given developers can stop the propagation of the synthetic event,
     // we can only be confident with a positive value.
     const insideReactTree = syntheticEventRef.current;
@@ -130,9 +131,12 @@ function ClickAwayListener(props) {
       const mappedMouseEvent = mapEventPropToEvent(mouseEvent);
       const doc = ownerDocument(nodeRef.current);

-      doc.addEventListener(mappedMouseEvent, handleClickAway);
+      const timeout = setTimeout(() => {
+        doc.addEventListener(mappedMouseEvent, handleClickAway);
+      });

       return () => {
+        clearTimeout(timeout);
         doc.removeEventListener(mappedMouseEvent, handleClickAway);
       };
     }

@eps1lon What do you think?
It's also probably time to do? :)
diff --git a/packages/material-ui/package.json b/packages/material-ui/package.json
index be6c895d41..c0ab3251f4 100644
--- a/packages/material-ui/package.json
+++ b/packages/material-ui/package.json
@@ -44,7 +44,7 @@
     "@emotion/core": "^10.0.27",
     "@emotion/styled": "^10.0.27",
     "@types/react": "^16.8.6",
-    "react": "^16.8.0",
+    "react": "^16.8.0 || ^17.0.0",
     "react-dom": "^16.8.0"
   },
   "peerDependenciesMeta": {

This is a problem in our UI library built on top of Material as well. Curiously, changing the mouseEvent prop on ClickAwayListener from onClick → onMouseDown fixes the issue. I'm not aware enough of low-level JS events to determine whether this is a safe one-for-one swap or not.
We'd love to see it fixed though 🙏

onClick → onMouseDown

@dargue3 The only impact I'm aware of is that click away will fire false-positive when moving the scrollbar on nested containers (not the body).

What's the use case for the ClickAwayListener here?

The use case is being able to close the slide-out menu while clicking anyway besides for the menu

The use case is being able to close the slide-out menu while clicking anywhere besides for the menu

That's the use case :point_up_2:

I'm closing the use case isn't valid, use the onClose callback instead.

Thank you for your immediate assistance,
as you suggested, switching to the onClose callback works fine:
<Drawer open={open} onClick={() => setTimeout(onClose, 1)}>
Thank you!

What about the use case where you have a <Popper /> and put a <ClickAwayListener /> on the children?

Do you have a reproduction?

Sandbox  for the issue @stevewillard stated.
Using a popper with a clickaway listener in it.

@wkerswell-gresham Thanks. I would move forward with https://github.com/mui-org/material-ui/issues/23215#issuecomment-716042325. I'm not aware of any other alternatives.

Is it safe to stop propagation instead?

@artisonian Do you have a working diff to propose?

I spent some time in the source code...didn't realize the event listeners are being attached inside of an effect block. Never mind stopPropagation then.

I am seeing this issue as well with a <Popper /> containing a <ClickAwayListener /> since upgrading to React 17.

I am seeing this issue as well with a <Popper /> containing a <ClickAwayListener /> since upgrading to React 17. Removing the ClickAwayListener resolves the issue but that doesn't solve our problem as we need it to dismiss our popover menus when clicking outside the menu.

@wkerswell-gresham A workaround: https://codesandbox.io/s/material-ui-issue-forked-zb3i5?file=/src/Demo.js
  console.log("settingsMenuOpen", settingsMenuOpen);

  const handleClick = (event) => {
    const target = event.currentTarget;
+   setTimeout(() => {
      setAnchorEl(anchorEl ? null : target);
+   });
  };

Stopping propagation on onClick handlers that trigger the popper being opened is another workaround. Would love to see this fixed in v4

I'm just noticing we have the same issue with a <Snackbar />,
<ClickAwayListener /> is being fired and closes the  <Snackbar /> right away.

@mforman1 Thanks for the reproduction. Do you want to work on the proposed fix? We would probably only miss a test case to ensure we don't have regression in the future.

I understand that everybody wants to switch right now but note that we don't officially support React 17 yet (hence the peer dependency mismatch warning you should see). We fixed most compat issue but some still slip through since we ourselves haven't fully switched yet.
Material-UI + React 17 is something you should consider as unstable so do your end-users a favor and don't switch to it in production yet. React 17 hasn't any big features for end-users anyway.
When it's safer to switch to React 17 we'll definitely announce that in the changelog. But it's only been out for a few days so the ecosystem needs some time to adjust. Thanks for understanding!

Tracking investigation in https://github.com/mui-org/material-ui/issues/23215#issuecomment-719046162.
Another workaround for now is
<Popper
  id="menuButton"
  open={settingsMenuOpen}
  anchorEl={anchorEl}
+  disablePortal
>

if you don't rely on portaling.

Will this fix be going into v4, or will it be v5 only?

Will this fix be going into v4, or will it be v5 only?

This fix will be backported to the next v4 feature release but that one will also include deprecation warnings. The recommendation in https://github.com/mui-org/material-ui/issues/23215#issuecomment-719046162 still stands: Material-UI v4 + React 17 is unstable and not fit for production yet.

          Open menu dropdown

        {open ? (

            Click me, I will stay visible until you click outside.

        ) : null}

Always check this open condition when rendering middle of the popper.


Reward split by Property

Problem
Property owners have the motivation to compete with other properties to launch projects early. For that reason, they would like to present advantageous conditions, but now, all properties' reward rates governed by one Policy.
Solution
Instead of a 51% developer, 49% staker split, developers can set their own splits and create a staking market. This allows the market to decide the split.

This DIP was drafted by @calaber24p

I am the one who put forward this DIP, I will talk about the benefit I believe it adds, below.
Right now new staking rewards are set by the protocol and 51% are given to developers while 49% are given to stakers. While the ultimate goal is to fund development, giving developers and projects the ability to compete on staking rates, benefits stakers and also developers who want to attract attention to their project. If you have any questions feel free to ask!

I am the one who put forward this DIP, I will talk about the benefit I believe it adds, below.
Right now new staking rewards are set by the protocol and 51% are given to developers while 49% are given to stakers. While the ultimate goal is to fund development, giving developers and projects the ability to compete on staking rates, benefits stakers and also developers who want to attract attention to their project. If you have any questions feel free to ask!

Caliber, this is an amazing proposal and great way for the market to be allocated more efficiently rather than falling into Pareto's Principle. In the current model Pareto's Principle plays out because users choose the first package they see to stake. In the long term, this could cause a lot of fluctuation for APY.
Another easier way to allow users to find more projects is by creating tags and categories.

@defi-er Do you think this DIP effects to DIP12? https://github.com/dev-protocol/DIPs/issues/12

It wouldn't affect #12. I think open asset creators creating their own splits is a bit too complicated for the protocol currently. Splits should be further studied and considered after the foundation is complete.

@defi-er Thank you for the opinion. By the way, the tagging feature is in progress now😉 https://github.com/dev-protocol/dev-for-apps/issues/12

I saw, great news! When can we expect DIP #5? In my opinion, it's the most important.


Neo4j init containers

/ok-to-test

/retest

/lgtm

/retest

/retest

/retest

@unguiculus here's some output from a failed test run with what's going on with neo4j. https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/pr-logs/pull/charts/2750/pull-charts-e2e/4329/


SEGV_ACCERR from [BRSimpleIndexable .cxx_destruct]

We're using BRFullTextSearch version 1.1.1.
Would you have an idea of why we might be experiencing crashes like the one below? We can't reproduce this locally and can't see what might be the cause – maybe we've been using the API wrong and have just been lucky so far...

Exception Type:  SIGSEGV
Exception Codes: SEGV_ACCERR at 0x18
Crashed Thread:  7
Thread 7 Crashed:
0   libsystem_malloc.dylib               0x00000001822c3314 szone_free + 700
1   CoreFoundation                       0x00000001825d8f74 CFRelease + 1084
2   CoreFoundation                       0x00000001825e7ee0 -[__NSDictionaryI dealloc] + 140
3   App                                  0x0000000100255f40 -[BRSimpleIndexable .cxx_destruct] (BRSimpleIndexable.m:15)
4   libobjc.A.dylib                      0x0000000181d62b54 object_cxxDestructFromClass(objc_object*, objc_class*) + 144
5   libobjc.A.dylib                      0x0000000181d6e040 objc_destructInstance + 88
6   libobjc.A.dylib                      0x0000000181d6e0a0 object_dispose + 24
7   libswiftCore.dylib                   0x0000000100e03278 0x100c28000 + 1946232
8   libswiftCore.dylib                   0x0000000100c46d7c 0x100c28000 + 126332
9   libswiftCore.dylib                   0x0000000100c76c64 0x100c28000 + 322660
10  libswiftCore.dylib                   0x0000000100c76ba8 0x100c28000 + 322472
11  App                                  0x00000001001495fc 0x100000000 + 1349116
12  libobjc.A.dylib                      0x0000000181d62b54 object_cxxDestructFromClass(objc_object*, objc_class*) + 144
13  libobjc.A.dylib                      0x0000000181d6e040 objc_destructInstance + 88
14  libobjc.A.dylib                      0x0000000181d6e0a0 object_dispose + 24
15  Foundation                           0x0000000183004ef4 -[NSOperation dealloc] + 88
16  Foundation                           0x00000001830baa18 __NSOQSchedule_f + 448
17  libdispatch.dylib                    0x000000018214947c _dispatch_client_callout + 12
18  libdispatch.dylib                    0x00000001821554c0 _dispatch_queue_drain + 860
19  libdispatch.dylib                    0x000000018214cf80 _dispatch_queue_invoke + 460
20  libdispatch.dylib                    0x0000000182157390 _dispatch_root_queue_drain + 724
21  libdispatch.dylib                    0x00000001821570b0 _dispatch_worker_thread3 + 108
22  libsystem_pthread.dylib              0x0000000182361470 _pthread_wqthread + 1088
23  libsystem_pthread.dylib              0x0000000182361020 start_wqthread + 0

The stack seems to describe an NSOperation being deallocated, which in turn causes a BRSimpleIndexable being deallocated along with its NSDictionary, which triggers the SEGV_ACCERR – presumably because the NSDictionary was already deallocated.
The implementation of the NSOperation in question looks like this:

class IndexOperation : Operation {
    let searchService: BRSearchService
    let updateBlock: ((BRSearchService) -> Void)

    init(searchService: BRSearchService, block: @escaping ((BRSearchService) -> Void)) {
        self.searchService = searchService
        self.updateBlock = block
        super.init()
        self.queuePriority = .low
    }

    override func main() {
        if self.isCancelled { return }
        self.updateBlock(self.searchService)
        if self.isCancelled { return }
    }
}

And we're using it like this:

let service: BRSearchService // this is a global instance of CLuceneSearchService
let fields = [kBRSearchFieldNameTitle:"content title", kBRSearchFieldNameValue: "content body"]
let indexable = BRSimpleIndexable(identifier: "contentIdentifier", data: fields)
let operation = IndexOperation(searchService: service, block: { (service) in
            var error: NSError? = nil
            service.addObject(toIndexAndWait: indexable, error: &error)
            if let error = error { debugPrint("Error in addDocumentToIndex: \(error)") }
        })
let queue: OperationQueue = SearchQueue.globalQueue
queue.add(operation)

Basically, we're creating a BRSimpleIndexable and passing it to an NSOperation that goes into an NSOperationQueue, along with the BRSearchService (a global instance of CLuceneSearchService that we hold onto for the lifetime of the app). We're not holding onto the dictionary the BRSimpleIndexable was created with so the failure upon deallocation would seem to be internal to BRSimpleIndexable.
Then again, looking at BRSimpleIndexable.m, I don't see how that could be the culprit except that it leaks a reference to the NSDictionary through - (NSDictionary *)indexFieldsDictionary. I tried looking at CLuceneSearchService.mm but can't see anything there that would be trouble either.
We're doing all the index operations (add/remove) as well as all search operations through the same NSOperationQueue that has maxConcurrentOperationCount = 1.
Any idea what might be the problem here?

Hmm, on the surface I'm not spotting anything obvious. When you mention that - (NSDictionary *)indexFieldsDictionary leaks a reference what do you mean? It doesn't look like a memory leak to me (it simply returns a reference to the internal dictionary). The populateDocument:withObject: method of CLuceneSearchService calls that and stores a strong local reference to the object.
Do you need to be able to cancel your NSOperation instances ever? If not, then perhaps you could eliminate the use of your NSOperationQueue entirely, as all index updates happen in a serial queue internally already. You could use the async update method addObjectToIndex:queue:finished:. That is the approach I've taken generally in projects that make use of BRFullTextSearch.

Oh, right. By "leaking a reference" I only meant that the pointer to NSDictionary escapes so other code might be accessing it, not a memory leak.
We don't cancel the index updates as such but we're doing index searches through the same NSOperationQueue, canceling pending searches, and using the NSOperationQueue as a priority queue to make sure that searches always go first and index operations wait for their turn. I'll check if we could leave the index operations outside of that queue.
If you call search and addObjectToIndex simultaneously from different threads, should CLuceneSearchService handle that ok?
Thanks.

On 30 Nov 2016, at 0.19, Matt Magoffin<EMAIL_ADDRESS>wrote:
Hmm, on the surface I'm not spotting anything obvious. When you mention that - (NSDictionary *)indexFieldsDictionary leaks a reference what do you mean? It doesn't look like a memory leak to me (it simply returns a reference to the internal dictionary). The populateDocument:withObject: method of CLuceneSearchService calls that and stores a strong local reference to the object.
Do you need to be able to cancel your NSOperation instances ever? If not, then perhaps you could eliminate the use of your NSOperationQueue entirely, as all index updates happen in a serial queue internally already. You could use the async update method addObjectToIndex:queue:finished:. That is the approach I've taken generally in projects that make use of BRFullTextSearch.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Ah thanks for the clarification. So CLuceneSearchService does supporting searching and indexing from multiple threads well. All update operations are handled on an internal serial queue, while simultaneous searches see the committed results available at the moment they execute. This is basically the design of CLucene.
I've found that in practice this model works very well, and that using another layer of thread management on top of it can prove unnecessary. It does all depend on the nature of your application, of course.

Closing from lack of discussion.


Not so much an issue as a request for better understanding...

I'm trying to get the starter running as-is before modifying to work with my API, primarily Django Rest Framework.
If I run it with ng serve, it works as expected. When I try to build it and run it from within Django, I get some strange behaviors... The examples page gives errors and doesn't really load fully.

I think this may have something to do the the NgRx states, but I don't feel confident knowing exactly what's going on. I'm still trying to wrap my brain around Angular (and TypeScript). Can anyone give me a little guidance here?
My forked repo is here: https://github.com/sreyemnayr/angular-ngrx-material-starter
Changes I made are in this commit: https://github.com/sreyemnayr/angular-ngrx-material-starter/commit/92f669e56215c29d7f2981f973642ab197e133e3
Like I said, it still works fine with ng serve, so I think I'm lacking some understanding about what happens when it's built.
Also, and this may or may not be related, when I run ng build with the --prod flag, a chunk has a null name and gets named 4.js, where without it it gets named app-examples-examples-module.  Not sure if this is relevant or not...

Somehow I was able to get this functioning by removing the Google Analytics calls (it's blocked by my firewall anyway).
It's very strange that this got it working, however.. Not entirely sure why.


Restoring from backups/new install with old data

Deployment Method

[ ] Installer
[ ] Docker Development
[X] Docker Production
[ ] Bare metal Development
[ ] Bare metal Production
[ ] Digital Ocean image
[ ] Other (please provide a link Steps to Reproduce

Describe the problem*
I have had an issue where I need to restore data from an old Inventree instance to a new one.  (The VM I was hosting on was hacked, but I had off site daily backups of the docker persistent storage). I now have a completely new docker install on a new machine, with access to the old Inventree persistent storage/files.
The data I have available is the Inventree docker persistent storage volumes, namely the data and nginx folders with the complete subfolder structure, including the backup, media, pgdb, and static folders.
The backup folder includes a backup from yesterday, 5th June 2023 - I would ideally like to either restore this file, or use the data that already exists in the static, media and pgdb folders.
I also have the exact same compose and .env files that I was using.
Steps to Reproduce
I thought it might be a simple case of placing the existing data and nginx folders in my new setup, and running the container but this gave DB errors such as:
ERROR:  relation "common_inventreesetting" does not exist at character 112
inventree-db        | 2023-06-06 20:32:53.153 BST [104] STATEMENT:  SELECT "common_inventreesetting"."id", "common_inventreesetting"."value", "common_inventreesetting"."key" FROM "common_inventreesetting" WHERE UPPER("common_inventreesetting"."key"::text) = UPPER('INVENTREE_DEFAULT_CURRENCY') ORDER BY "common_inventreesetting"."id" ASC LIMIT 1

I then tried the same thing (placing the old data and nginx folders and contents in place), but ran docker compose run inventree-server invoke update first.  The webui loads, and I can log in, but after 30 seconds or so the webui is inaccessible and the docker logs show things like:
INFO Process-1:2 processing [item-sixteen-oklahoma-mississippi]
inventree-db        | 2023-06-06 20:38:15.163 BST [267] ERROR:  duplicate key value violates unique constraint "common_inventreesetting_key_key"
inventree-db        | 2023-06-06 20:38:15.163 BST [267] DETAIL:  Key (key)=(INVENTREE_DELETE_TASKS_DAYS) already exists.
inventree-db        | 2023-06-06 20:38:15.163 BST [267] STATEMENT:  INSERT INTO "common_inventreesetting" ("value", "key") VALUES ('30', 'INVENTREE_DELETE_TASKS_DAYS') RETURNING "common_inventreesetting"."id"
inventree-worker    | 19:38:15 [Q] INFO Process-1:3 processing [quebec-cup-triple-shade]
inventree-worker    | 19:38:15 [Q] INFO Process-1:4 processing [triple-potato-apart-nuts]
inventree-worker    | 19:38:15 [Q] INFO Process-1:1 processing [september-jig-north-sad]
inventree-worker    | 19:38:15 [Q] INFO Process-1:1 processing [happy-georgia-artist-tennis]
inventree-worker    | 19:38:15 [Q] INFO Process-1:1 processing [florida-zebra-carbon-california]
inventree-worker    | 19:38:15 [Q] INFO Processed [potato-friend-spaghetti-finch]
inventree-worker    | /root/.local/lib/python3.9/site-packages/django/db/models/fields/__init__.py:1358: RuntimeWarning: DateTimeField PartPricing.updated received a naive datetime (2023-05-07 00:00:00) while time zone support is active.
inventree-worker    |   warnings.warn("DateTimeField %s.%s received a naive datetime "
inventree-worker    | 19:38:15 [Q] INFO Processed [robin-equal-sodium-berlin]

I tried setting up a new instance, which launches fine, moving a previous backup to the backup folder, and then restoring using invoke restore.  When using invoke restore I get the following:
Restoring InvenTree database...
Finding latest backup
Restoring backup for database 'default' and server 'None'
Restoring: default-020e32190ef7-2023-06-05-145606.psql.bin.gz
Restore tempfile created: 455.3 KiB
Traceback (most recent call last):
  File "/home/inventree/InvenTree/manage.py", line 23, in <module>
    execute_from_command_line(sys.argv)
  File "/root/.local/lib/python3.9/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/root/.local/lib/python3.9/site-packages/django/core/management/__init__.py", line 413, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/root/.local/lib/python3.9/site-packages/django/core/management/base.py", line 354, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/root/.local/lib/python3.9/site-packages/django/core/management/base.py", line 398, in execute
    output = self.handle(*args, **options)
  File "/root/.local/lib/python3.9/site-packages/dbbackup/management/commands/dbrestore.py", line 68, in handle
    self._restore_backup()
  File "/root/.local/lib/python3.9/site-packages/dbbackup/management/commands/dbrestore.py", line 118, in _restore_backup
    self.connector.restore_dump(input_file)
  File "/root/.local/lib/python3.9/site-packages/dbbackup/db/base.py", line 105, in restore_dump
    return self._restore_dump(dump)
  File "/root/.local/lib/python3.9/site-packages/dbbackup/db/postgresql.py", line 124, in _restore_dump
    stdout, stderr = self.run_command(cmd, stdin=dump, env=self.restore_env)
  File "/root/.local/lib/python3.9/site-packages/dbbackup/db/base.py", line 171, in run_command
    raise exceptions.CommandConnectorError(
dbbackup.db.exceptions.CommandConnectorError: Error running:  pg_restore --dbname=postgresql://**REDACTED USERNAME**:**REDACTED PASSWORD**@inventree-db:5432/inventree --single-transaction --clean
pg_restore: while PROCESSING TOC:
pg_restore: from TOC entry 3623; 2606 16617 CONSTRAINT users_owner users_owner_pkey **REDACTED USERNAME**
pg_restore: error: could not execute query: ERROR:  cannot drop constraint users_owner_pkey on table public.users_owner because other objects depend on it
DETAIL:  constraint order_returnorder_responsible_id_19db2f48_fk_users_owner_id on table public.order_returnorder depends on index public.users_owner_pkey
HINT:  Use DROP ... CASCADE to drop the dependent objects too.
Command was: ALTER TABLE ONLY public.users_owner DROP CONSTRAINT users_owner_pkey;

I feel like this could work if I could do what it says: HINT:  Use DROP ... CASCADE to drop the dependent objects too. but I'm unsure what to do.
Is there a way that I can restore my data, and if so would you be able to provide a step by step guide?  If you need me to provide more information regarding each of ways I tried to help debug the issue I can certainly do that.  I didn't want to keep trying things incase I was restoring the wrong way!
Thanks in advance for the help!
Relevant log output
No response

Yes the compromised account has gave me quite the headache!
I'm not exactly sure what I did differently following your steps, perhaps the invoke migrate, however it's all restored and working great now.  Thanks so much for the help!
PS: the invoke check was giving me this error:
Loading config file : /home/inventree/data/config.yaml
No idea what 'check' is!

but even without that it's all good.
Thanks again!

I should say one more thing for anybody else who comes across this:  inside the pgdb folder I had to manually create a bunch of folders as when starting the db I was getting complaints in the docker logs about missing folders.  I suspect this may only be the case when starting the db on it's own without the other containers.
The folders inside pgdb I had to manually create were:

pg_commit_ts
pg_logical/snapshots
pg_logical/mappings
pg_notify
pg_replslot
pg_snapshots
pg_tblspc
pg_twophase

Great! Reach out if something is not behaving well. You should be golden after 24hrs.


Add travis build status and report code coverage

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@f3d1e27). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             master     #1   +/-   ##
=======================================
  Coverage          ?   100%
=======================================
  Files             ?      3
  Lines             ?     35
  Branches          ?      0
=======================================
  Hits              ?     35
  Misses            ?      0
  Partials          ?      0

Continue to review full report at Codecov.

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


unsupported character

beta6
a character is showing up as a box.  i suspect it is a double-dash?

it appears to be garbage data. the bytes in question are 0xc2 0x96 which don't decode to anything in UTF8 as far as i can tell.

have asked DAs to look into this record.

confirmed to be garbage data; Brad found a number of instances of this in the Francophone data sets.  he will take it to his Chapter for investigation/resolution.


Settings: "reset" link seems like unfinished UX

Refs: https://github.com/Microsoft/vscode/issues/50496
The new look of resetting a modified setting almost looks broken to me or at least unfinished. I think I liked the previous arrow we had much better:

I think we should revisit this new look. It looks unbalanced and we seem to have 2 new colors to indicate the same thing (green and blue?):

It's removed


Smoke Tests for All components

Main Commit
Update README.md with relevant test commands and references
Add relevant snapshot and smoke test coverage for current components
Create new test folder for all assertions
Update component architecture with dispatch to Export component.
Example:
class Home extends Component becomes export class Home extends Component
This allows access to import and mock the "dumb" component for testing.
Update relevant components with dispatch in props to use mapStateToProps for easy mocks
Update dependencies to use react-router-bootstrap  to resolve nest  warning
Add setup file for test suite
Update documentation to reference yarn instead of npm
Secondary
Add .env file for easier pathing (

was "../../../ OR ../../App etc"
now file relative to repo using src as root - Ex: ../actions/action becomes actions/action

Add node env check for redux logger
Fix typos
Add index.js test

Ha. You noticed the Eligibility misspell eh? I was going to open that as a first issue for beginners.

@mkalish Is there anything else you need re: these changes?

Looks good to me merging


Improved support of transition offsets when using ItemsControl

When attempting to use IndexedItemOffsetMultiplierExtension with an ItemsControl, all the items would animate at the same time instead of adhering to the specified offset; changing to a ListBox and ListView would fix any issues I was having.
Upon further inspection, I noticed that when using just an ItemsControl, the first multipler retrieval attempt (shown below) would fail and fallback onto itemsControl.Items.IndexOf(element). However, this would try to retrieve the index for the TransitioningContent data template instead of the actual item.
var multiplier = itemsControl.ItemContainerGenerator.IndexFromContainer(container);
if (multiplier == -1) //container generation may not have completed
{
       multiplier = itemsControl.Items.IndexOf(element);
}

By updating this and retrieving the index of the element's DataContext, a valid index could be retrieved. I think the change could be simplified to replace the current IndexOf(element) with IndexOf(element.DataContext) but I don't think it's worth the risk to change, but instead add an extra check if the first attempt fails.

Thankyou!


How to load/bind JSON with nested/aggregated properties?

eq. JSON object
`var input = {"id":"1","name","john", "messages": [{"msg_id":"1","content":"Hello "} , {"msg_id":"2","content":"World"} ] };
$('#messages').loadTemplate("templates/messages.html",input ,{ append:true});`
How can I display "messages" in a loop ?
eq.
`Hello
World`
Thanks.

you should just be able to do the following:
$('#messages').loadTemplate("templates/messages.html",input.messages);

You wouldn't need the append setting either, unless there was already content in the container that you didn't want to lose.

@codepb - Thanks! that confirms it.
I was just asking if there's an automated way.

Another question,
given:
`var input = {"id":"1","name","john", "messages": [{"msg_id":"1","content":"Hello "} , {"msg_id":"2","content":"World"} ] };
will it be possible to do only one loadTemplate
$('#messages').loadTemplate("templates/messages.html",**input**);
and display all including the nested in messages.html?
`messages.html

`
what "bindings" should i use for "messages" ?
It seems that data-template-bind and data-options are the closest but I tried and it's not working/applicable.
I can't do a double loadTemplate, because the template will be populated during runtime.
If it's not applicable, I'll be doing nasty jquery logic like, load the JSON on a hidden input then reload the page.

@codepb
I was able to solve the nested issue with this:
http://jsfiddle.net/FxYE6/6/
I saw 1 of your answer in your website.
my new question is this:
is there a way to
<div data-content="details" data-format="nestedTemplateFormatter" data-format-options="#listTemplate">
To make data-format-options' template an external file?
eq.
`
?
Thanks.`

should work like that. If it's not your url might be wrong?
the internal code calls loadTemplate, with the value you passed in for the template as the first parameter:
loadTemplate(template, value, internalSettings);

tested and it's working.. thanks..


Error doing job: Task exception was never retrieved

After installing newest version 1.0.2 below errors are logged :
Logger: homeassistant.components.sensor
Source: custom_components/fullykiosk/sensor.py:115
Integration: Sensor (documentation, issues)
First occurred: 18.47.23 (6 occurrences)
Last logged: 18.47.23
Error adding entities for domain sensor with platform fullykiosk
Error while setting up fullykiosk platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 619, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 810, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 533, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 571, in _async_write_ha_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 539, in _stringify_state
if (state := self.state) is None:
File "/config/custom_components/fullykiosk/sensor.py", line 115, in state
time = parser.parse(self.coordinator.data[self._sensor])
File "/usr/local/lib/python3.9/site-packages/dateutil/parser/_parser.py", line 1368, in parse
return DEFAULTPARSER.parse(timestr, **kwargs)
File "/usr/local/lib/python3.9/site-packages/dateutil/parser/_parser.py", line 643, in parse
raise ParserError("Unknown string format: %s", timestr)
dateutil.parser._parser.ParserError: Unknown string format: 14.05.2022 14.22.43
And:
Logger: homeassistant
Source: custom_components/fullykiosk/sensor.py:115
Integration: Fully Kiosk Browser (documentation, issues)
First occurred: 18.47.50 (24 occurrences)
Last logged: 18.49.50
Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 137, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 270, in _async_refresh
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 533, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 571, in _async_write_ha_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 539, in _stringify_state
if (state := self.state) is None:
File "/config/custom_components/fullykiosk/sensor.py", line 115, in state
time = parser.parse(self.coordinator.data[self._sensor])
File "/usr/local/lib/python3.9/site-packages/dateutil/parser/_parser.py", line 1368, in parse
return DEFAULTPARSER.parse(timestr, **kwargs)
File "/usr/local/lib/python3.9/site-packages/dateutil/parser/_parser.py", line 643, in parse
raise ParserError("Unknown string format: %s", timestr)
dateutil.parser._parser.ParserError: Unknown string format: 13.05.2022 19.16.20
Rolling back to version 1.0.1 fixes above errors.
Best regards
Kurt Nielsen

Seems like Fully returns the last app start date in different formats, probably based on locale, and Python's dateutil can't parse all of them. May be time to remove that sensor

Have the same problem. Going back to version 1.01.


miri is detecting undefined behavior

Latest version of miri is not happy with that line in the make_fat_ptr function.
cargo +nightly miri test
test retain ... error: Undefined Behavior: constructing invalid value: encountered 0x2598e0[noalloc], but expected a vtable pointer
   --> stack_dst-rs/src/lib.rs:314:14
    |
314 |     let rv = rv.ptr;
    |              ^^^^^^ constructing invalid value: encountered 0x2598e0[noalloc], but expected a vtable pointer
    |

   --> stack_dst-rs/src/fifo.rs:224:23
    |
224 |                 &mut *super::make_fat_ptr(data.as_mut_ptr() as *mut (), meta)
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: inside `retain`
   --> tests/fifo.rs:71:5
    |
71  |     stack.retain(|v| v.as_ref().0 > 2);
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
note: inside closure
   --> tests/fifo.rs:47:12

This may be related to miri dropping support for simulating vtables, as explained here:
https://github.com/uazu/stakker/blob/5821c30409c19ca9167808b669c928c94bc5f177/src/queue/flat.rs#L14-L17

Well, that'd explain it


Feature Request Loop Function

Hey,
great work. I just wanna ask if its possible to integrate a Loop function that makes it possible to play the same Video over and over.
Thx and greeting

Thanks for suggestion. Unfortunetly i don't have time to make this. It's a similar issue to the "autoplay" suggestion. Requires a lot of rework to make this happen.


Threat detection cloud refresh

Fixes, Module Review and Cleanup. Minor changes with commands from docs 53 and 54
Updated image and 53_ file
Cloud Thread detection new pic and review two last docs
Last changes from threat detection
Small change in the connecotr bettween cloud-threat-detection-1 and the next chapter
First review of Threats > Cloud (40%)

I wanted to submit the PR against the sysdiglabs repo before promoting to this repo. Cancelling.


macOS 封裝

我用 #53 同樣嘅方法整咗個macOS用嘅安裝包，歡迎大家嚟試下
https://github.com/tanxpyox/squirrel/releases

ref: rime/home#545


Rework the codecov support: deprecate codecov-token add hash checks for uploader

The PR deprecates the use of codecov-token input since I think that we have wrongly used the token for public repositories when there was no need for that. The code using it should keep working the same.
Added a couple of new inputs: codecov-enabled to enable the codecov runs and codecov-token-private-repos to make explicit the exact use of the token.
I've also added the hash check for codecov bash uploader. I've tested this branch here:
https://github.com/j-rivero/ign-math/pull/1

I see this error on the ign-math PR:
{'detail': ErrorDetail(string='Could not find a repository, try using upload token', code='not_found')}

we have wrongly used the token for public repositories when there was no need for that.

I'm not sure I understand. If there's no token to protect the upload of new reports, anyone would be able to upload reports and mess up with them. It's like on GitHub, being public doesn't mean the whole world has write access, just read access.

 Here is the relevant section of the codecov doc regarding the bash uploader

If you have a public project on TravisCI, CircleCI, AppVeyor, Azure Pipelines, or GitHub Actions an upload token is not required.

It could be that there are further caveats there that are not fully elaborated. If we continue to have trouble it makes sense to contact Codecov's support so that we can either manage the token safely if required or properly invoke codecov without it. If we can avoid use of the token as a secret it will be easier for community contributions to receive coverage data because pull requests from forks do not have access to secrets.

I see this error on the ign-math PR:
{'detail': ErrorDetail(string='Could not find a repository, try using upload token', code='not_found')}

I've removed the CODECOV_TOKEN from Ignition repositories, it could be possible that we are running with the configuration expecting the token while the token is gone. Please point me to the failures so I can give them a look to verify this hypothesis.

Please point me to the failures so I can give them a look to verify this hypothesis.

That's from the PR that you linked on the description, see the Ubuntu Bionic CI check: https://github.com/j-rivero/ign-math/pull/1/checks?check_run_id=2420711201

I noticed that the latest run of https://github.com/ignitionrobotics/ign-math/pull/206 didn't upload to codecov because the token is empty. We should get this in to re-enable codecov on repositories that had their tokens removed.
We should try this branch on a real Ignition repository just to make sure it works, in case the issue above is because it's using @j-rivero 's fork

By the way, this should be propagated to the bionic and focal branches, master is not used anymore.

It works!

"You of little faith, why are you so afraid?" Matthew 8:26

By the way, this should be propagated to the bionic and focal branches, master is not used anymore.

I go for it.


On, Invoke does not return

I tried on Xcode7-beta, the 'on' function does not return ? Same thing with 'invoke'

I've only been using the Xcode 7 beta for trying Swift 2 and iOS 9. (SwiftR is not yet updated for either.) I'm guessing you're targeting iOS 8 in Xcode 7. If so, how? I'm able to install the iOS 8 simulator, but not select it as the base SDK for my targets. If you can help me with that, I can probably help you.
As an aside: do you have any issues in Xcode 6?

Hi Adam, yup, I'm targetting iOS8 in XCode 7. I'm able to run it on simulator, but I don't get any callbacks on 'on' & 'invoke'.
I've just tried on XCode 6, same thing, no callback.
Btw, how do you get the callback result on 'invoke' ? There's no callback block/closure on the 'invoke' method.
I've also tried the SignalR Obj-C version with XCode6, but the 'on' function doesn't return as well... It stops here: [SERVER_SENT_EVENTS]    SSE: GET /signalr/signalr/connect.

You won't get a callback on invoke. That method invokes a SignlaR server-side method, which in turn invokes your on callback. See the SwifR demo application as an example.
// 1. Client: Inovkes SendComplex on SignalR server
complexHub.invoke("sendComplex", arguments: [message])

// 2. Server: Invokes notifyComplex on connected clients
public void SendComplex(ComplexMessage message)
{
    Clients.All.notifyComplex (message);
}

// 3. Client: handler method invoked as result of step 2
self?.complexHub.on("notifyComplex") { args in
   let m: AnyObject = args!["0"] as AnyObject!
   println(m)
}

Normally, you might have many clients listening for notifyComplex. Think of an example where you have many iOS clients connected to a SignalR server for sync. One of your devices tells SignlaR that data needs to be updated. SignalR tells your other iOS (or web, Android, whatever) clients.
In order to help, I'd need to see both your iOS client and SignalR server code. Do you have other clients already working properly with your SignalR server?

Hi Adam, it's working on 'on' now (XCode6 - Swift). Is there a connection id like the javascript or Android version ?

Cool. No, there is no way to access the connection ID right now, just because I haven't needed it in my own use. I can add it though if it'll help you.

Hi Adam, oh I see. Nvm, I can get it from the server instead. Thx !

 FYI, I did make a change to provide the connection ID anyway in commit d561fdd8603240cac57eb8dd13279a014fb01991. The demo application shows how to get it.


Add test case for bytes concatenations

Closes #42

Codecov Report

Merging #43 (eec470f) into master (eed0f22) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head eec470f differs from pull request most recent head 878f5f6. Consider uploading reports for the commit 878f5f6 to get more accurate results

@@           Coverage Diff           @@
##           master      #43   +/-   ##
=======================================
  Coverage   93.10%   93.10%
=======================================
  Files           2        2
  Lines          29       29
  Branches        4        4
=======================================
  Hits           27       27
  Misses          1        1
  Partials        1        1

Continue to review full report at Codecov.

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


all Z-Wave devices got incremented entity_id after upgrading to 0.12.0

I had my configuration all set up nicely and then upgraded to 0.12.0, but when I booted up all my z-wave devices had new entity_ids, which broke all of my configurations.
Before upgrade, my multisensor was sensor.aeotec_multisensor_6_temperature but now it's sensor.aeotec_multisensor_6_temperature_2. Repeat this for 15 other entities and I'm left with a big mess.
I tried deleting pyozw.sqlite and zwcfg_0xblah.xml but could not get my original entity id's back.
Any suggestions?

This was a one time change that sadly was not properly documented. See #982 for the reasoning behind this.


Testing requirement understanding for the cQube_4.0

Requirement understanding for
1.Installation
2.Ingestion & Input Data
3.Processing & Output Data
4.Visualization

Completed the understanding of ingestion & input data, processing & output data and visualization

Completed the requirement understanding for Installation

Review is completed

Requirement's understanding for cQube_4.0 Document


Register index ordering vs. CSR bitmap for constant-time latency constraints.

#64 mentions a single bit CSR was considered but decided against due to the introduction of state; without referencing any such discussion. Where was this discussion?
I find this result surprising because any compiler not aware of the K extension will produce unnecessarily constrained code. A K-aware compiler doesn't win either, as it will not always be able to avoid adding unnecessary constraints and will need additional copies to enforce constraints. (On any non-commutative operations)
I expected a CSR bitmap over the X (and V) registers. Yes this is additional state, but it is only 32 (or 64) bits -- or fewer if the implementation opts for a coarser granularity. 16, 8, 4, 2, or 1.
RVE implementations, where size really matters, could use the unused high register bit to signal the constant-time constraint without paying for an additional CSR.
Unfortunately the current RV32E draft explicitly marks the unused high bit as "custom" and attests that no future standard will ever use it.

Any future standard extensions will not make use of the instruction bits freed up by the reduced register-specifier fields and so these are designated for custom extensions.

Although a size-optimized core may not pay the extra area for variable time optimizations. Energy-optimized cores might, thus RV32E remains relevant.

Hi there
For the sake of others reading this, I'll repeat some of my response to #87

We are in the process of revising our constant time proposals, the latest draft of which is available here. It includes a much larger list of core instructions, and aims to be much simpler. That is, you either are constant time or not.

About your points here:

Where was this discussion?

Mostly in our weekly online meetings. If you are on the tech-crypto mailing list for RISC-V, you'll be able to search there for other discussions and for our minutes. The list is public to view but you must be a RISC-V member to post I believe.

I expected a CSR bitmap over the X (and V) registers. Yes this is additional state, but it is only 32 (or 64) bits -- or fewer if the implementation opts for a coarser granularity. 16, 8, 4, 2, or 1.

Do you mean an entire new CSR to indicate which GPRs or vector registers, when sourced, must execute in constant time? This has an enormous number of implications for more complex micro-architectures which I'm sure would be very unpopular. You would have to tag every physical register with extra bits related to whether they need constant time properties or not.

RVE implementations, where size really matters, could use the unused high register bit to signal the constant-time constraint without paying for an additional CSR.
Although a size-optimized core may not pay the extra area for variable time optimizations. Energy-optimized cores might, thus RV32E remains relevant.

RVE is an interesting one. The reduced number of registers hugely increases the static and dynamic code size, meaning you need larger memories to store the code, which take more space and can negate the area savings of RVE in the core. Having to fetch more instructions totally removes any energy savings you might otherwise have had. I can't speak to the general relevance of RVE without more specific examples. For the cryptographic workloads we are concerned with, it would be a performance and code size disaster due to the large state sizes.
I'm not sure if I can quite parse a specific question or suggestion in your comment otherwise? But I'm glad you are asking nonetheless, feedback is always helpful.
Cheers,
Ben

Always on. [..] where -> mailing lists

Hmm. Always constant does solve the issues.. However painful forbidding vartime optimizations for non-sensitive code.

CSR

Yes, a new CSR tagging each bit (or coarser, implementation decided partitions). Could you elaborate the costs? If the costs are too great then I guess the best we can have is coexisting cores with and without the Zkt extension. Which would require operating system enforced policies instead.

RVE

That makes sense.. Probably no RVEZkt then.

I'm not sure if I can quite parse a specific question or suggestion in your comment otherwise? But I'm glad you are asking nonetheless, feedback is always helpful.

You answered my main question (where the discussion was). Just a matter of searching through these archives. If anyone can provide links to specific emails, I'd appreciate it.
I'm working towards a compiler and language which tracks data-dependent classifications to constrain the optimizer -- without effectively disabling the optimizer while using user-defined domain-specific optimizations. The always-constant constraint suffices for verification. Along with seL4's fence.t instruction.
Any suggestions for my project would be appreciated, though any thorough discussion would be off-topic. Feel free to join #wild on Freenode.
Thanks for the quick responses.

Yes, a new CSR tagging each bit (or coarser, implementation decided partitions). Could you elaborate the costs? If the costs are too great then I guess the best we can have is coexisting cores with and without the Zkt extension. Which would require operating system enforced policies instead.

So, I''m not such an expert on high performance architectures, but anything which requires tracking of bits associated with registers files becomes expensive, because super-scalar out of order machines have very large physical register files, with many physical registers per architectural register. So, adding one 32-bit register, with one bit per architectural register, might require adding an extra bit to >100 physical registers to track the same information over time, with associated area/performance costs.
This is only my intuition though, with more work, it might be possible to remove this overhead and I'd be happy to be told by someone more knowledgable that is the case.
Remember though, Zkt is really a simplicity driven proposal, and does not preclude other future mechanisms (which would likely be mutually exclusive to Zkt) for turning constant time guarantees on or off. We're simply prioritising the thing people need/want right now.

Any suggestions for my project would be appreciated,

There is work to standardise something to the effect of fence.t within the RISC-V ISA. If you are able to become a member (it's free) you can join in. Navigating RISC-V is hard, but the website provides a reasonable breakdown of who is working on what. Plus there's the wiki.
Cheers,
Ben

might require adding an extra bit to >100 physical registers to track the same information over time

Oh. I wouldn't use hardware level taint analysis, so the physical registers don't need a tag. I should have elaborated, sorry.
Let there exist a new CSR with 32 bits (for RVI, another 32 for RVV). The Nth register is sensitive if the Nth bit of the mask is high. Because the zero register is constant (therefore public), we're safe to repurpose its bit to decide if we want to trap on sensitive loads. Assuming a mask set to 0xFFFF0000, we do not trap on illegal loads, registers x1-x15 are public, x16-x31 are secret. ADD decodes to CT-ADD IFF mask[rs1] or mask[rs2]. Similarly LB decodes to CT-LB IFF mask[rd]. LB traps if mask[0] and mask[rs1].
ADD does not set mask[rd] = mask [rs1] or mask[rs2], as that'd implement taint tracking. OTOH CHERI-RISC-V exists and does pay for tags on physical registers.
A trivial implementation acts as Zkt would under the new draft, plus a user-mode read-write CSR hardcoded to 0xFFFFFFFF. The program may read the CSR back to see if the core allows mixing constant-variable code, possibly deciding to use different code.
RV32KV would need a second CSR for the vector classification mask. RV64KV could use 64-bits in a single CSR.

does not preclude other future mechanisms (which would likely be mutually exclusive to Zkt)

If there were a fine-grained alternative I don't think it'd need to be mutually exclusive. It'd just need to act like Zkt in its default state.

There is work to standardise something to the effect of fence.t within the RISC-V ISA.

I've heard from a seL4 talk there is an effort but I haven't seen it. Searching that wiki yields no results. Do you have a link?

If you are able to become a member (it's free) you can join in.

[ ] TODO: Become a RISC-V member. :smile:

This scheme is very complex. And considering how un-popular my strawman proposal of having only a single CSR bit to turn constant-time on/off, I think the rest of the RISC-V world would take a lot of convincing. And that's not to say whether you need the extra CSRs in your proposal to be saved on a context switch / during an exception / interrupt.
I might be wrong, but I think your scheme still needs a tag bit for physical registers, or at the very least, an extra tag bit for every instruction in the re-order buffer or a reservation station or anywhere else in the execution pipeline. My understanding of these components is that any extra state you add will have an outsized effect.

If there were a fine-grained alternative I don't think it'd need to be mutually exclusive. It'd just need to act like Zkt in its default state.

Yeah, that makes sense.

I've heard from a seL4 talk there is an effort but I haven't seen it. Searching that wiki yields no results. Do you have a link?

I think the effort is just getting going, so there is no formal list on lists.riscv.org yet. If you can become a member now and subscribe to the security list, you'll probably hear about it soon.
Cheers,
Ben

At least there is a well established dirty-bit status protocol introduced for floats and copied by vectors to reduce context switching overheads.
If by "extra tag bit" you mean to invalidate the specific decoded instructions which would become invalidated by updating the mask on an out-of-order core; I just wouldn't do that. Updating the mask should be rare, so I'd expect it acceptable to flush the whole pipeline.
In any case; I'm happy with the "always constant-time" approach of the latest draft. I'd rather see K-compliant cores sooner than wait for a weakening protocol to allow data-dependent optimizations for non-sensitive data -- however that may end up implemented. Worst case mix cores where only a subset are K-complaint and leave the policy to the operating system.
I've registered for membership and now just waiting for approval. I might subscribe to some lists.

I'm going to consider this issue closed with release v0.9.2 which contains the newly expressed Zkt extension. Please open new issues for subsequent constant-time related discussions. Thank you for your input! :+1:


ARD password is not correctly quoted in shell script

2017/07/03 13:26:30:200  Preparing modifications for Screen Sharing...
2017/07/03 13:26:30:268  [perl][stdout]
2017/07/03 13:26:30:268  [perl][stderr] /bin/bash: -c: line 0: syntax error near unexpected token )' /bin/bash: -c: line 0: /bin/echo abcd0) | perl -we 'BEGIN { @k = unpack "C*", pack "H*", "1734516E8BA8C5E2FF1C39567390ADCA"}; $_ = <>; chomp; s/^(.{8})./$1/; @p = unpack "C", $; foreach (@k) { printf "%02X", $ ^ (shift @p || 0) }; print "'
2017/07/03 13:26:30:269  *** Workflow: 10.12.5_16F73_Imagr.nbi failed ***
2017/07/03 13:26:30:269  [ERROR] perl command failed with exit status: 2

ARD password was intended to be "abcd0)"

Thank you. I'm fixing support for 10.13 so will fix this as well before next update.


fix(es/codegen): Emit declare keyword for class properties

Description:
Emits the declare keyword in class properties.
Related issue (if exists): None

Fixed conflict in output.min.js file.


Want to add Binary Tree Header File.

@indrakishore this file contains Node of Binary Tree and also various functions that are commonly used in DSA ?
also add gssoc-extd and hactoberfest tag

/assign


Enhance User Input Layout & Validation

Improvement Request
#Description:
The current user input could benefit from improvements to enhance user experience and make it more intuitive.
I suggest the following improvements:

Input Styles: Specify styles for text inputs, buttons, etc.
Validation States: Specify how to indicate validation errors.

#Additional Information:

If there are specific elements or sections of the layout that need improvement, mention them by making new issues.
Consider attaching images to illustrate your suggestions.

Please leave a comment on this, then I'll try to assign the task accordingly.
If your contribution is well-received, I encourage you to submit a Pull Request with the changes.
Feel free to ask questions or seek clarification on any aspect of the improvements.
#Good Luck!✌

Hi Pranab,
Hope you are doing well. I have checked the improvement request and interested on improve the user input and validation. Please assign the issue to me.
Thanks,
Shabbir

Hello @Sabbirfeni,
Thanks for your interest in this issue.⭐
Here's my concern,

As per the SWOC rules, we (Project Admins) can assign the tasks to the Contributors from 1st of Jan.
But you can work on this now and keep me update your output through images/videos in the comment section.
And one more thing, don't make any PR now, you can do it when the program begins (On 1st Jan).

So don't worry, I'll assign this task to you with the tag on 1st of Jan.
Hope you got my points!
Thanks For Understanding! ✌

Feel free to ask any questions for further clarification.
#Good Luck!✌

Thank you Pranab for considering my request. I will start work as soon as I get to my work.
best,
Shabbir

Join Discord Channel for discussion/doubts/questions. ✌

Can I work on this issue

intuitive

Thank you so much. I will keep sharing my work over here.

Are you talking about this input. There are 3 input field like this one. Should I modify only those 3 input or all which have on the whole app?

Would you like to improve all the components named "OutputBox", "InputBox" and "TextBox"?

Yes @Sabbirfeni, If you can! 😉
I'll labeled this task to hard under SWOC for better score points.
Go ahead. Start working on it & keep me update your progress.

PS: Keep me inform before you raised the PR.
#Good luck! ✌

Okay thank you.

Can I work on this issue

Hello @Bhuvangoyal466,
Thanks for your interest in this issue!

This task has already been assigned to @Sabbirfeni  on a FCFS(first-come, first-served) basis under SWOC.
But you can also work on this. So make your changes and keep me update your progress through images/videos in the comment section.

For real-time communication and any immediate queries, you can join the Discord Server.
I'll choose the best! 😉

PS: Keep me inform before you raised the PR.
#Good Luck!✌

Discord server is not coming up when clicked.

My apologize!
Try to join in this Link & find the #sql-dev-tools channel.

Ok I'll start working

Hello @Bhuvangoyal466 & @Sabbirfeni! ⭐
What's your work progress!!! Please update here.

@PranabKumarSahoo I am interested to work on this issue!


Form new sub-team for administering a plugins index

In order to help us manage a curated list of plugins, we will need to form a sub-team for this purpose as specified in our code of conduct. This sub-team will be responsible for approving which plugins get promoted to a special index which will be promoted on platforms such as the future conda.org website.
What needs to be done?

[ ] Find at least one steering council member to be a part of this team
[ ] Find at least one non-steering council member to join
[ ] Create a pull request against this repository outlining exactly who is on the team and what it's purpose is. Exactly how to do this is yet to be determined. Stay tuned! 😅

I'm happy to sponsor and join this team as steering council member but would welcome other members of @conda-incubator/steering to join, too.

I'm happy to join this team as well (not sure if I'm steering or not currently...)

The number of plugins is growing so I wonder if we should start doing something about it. At the very least we should recommend setting a Github repository topic like conda-plugin. WDYT?

I concur, do you want to write a charter for the subteam?

I'd suggest to grandfather https://github.com/conda/conda-plugin-template into this new subteam.

Yes

@jezdez,
Regarding the actual roles of this sub team, I think it would make sense for us to manage the list of plugins that appear in the index. Adding a new plugin to this index would require a vote that has a super majority (just like CEPs).
Is this kind of thing appropriate to manage at the team level? Or is this a power that should be reserved for the steering council?
We ultimately need a decision making process for how to add this plugins to the index.

@travishathaway Good question, the CEPs have their own section in the governance policy voting rules, so have a legal foundation basically to require the supermajority.
I, personally, think that since a plugin index would probably not be limited to projects per conda governance policy (read: ~"official conda projects") but would also include projects that are hosted elsewhere, I consider this subteam's effort mostly editorial in nature (akin to mods for other online hosted databases).
There should be a charter that describes how to join the team and what the expectations are (ground rules for collaboration and editorial decisions etc), including team voting rules. Maybe the closest in terms of governance pain (low barrier enough that it encourages participation, but high enough that it prevents malicious behavior) is maybe the rules for adding oneself to a community project team: https://github.com/conda/governance?tab=readme-ov-file#community-project-team-voting

@jezdez,
I think that would be a good voting policy to adopt for this project team.

@travishathaway @beeankha Would you be interested in participating?

Yes, I'm interested!

I'd suggest to grandfather https://github.com/conda/conda-plugin-template into this new subteam.

Related to this comment I wanted to point out that we currently have this plugin repo in the conda-incubator org; perhaps the plugins listed here could potentially be the starting-off point for which plugins get voted on for inclusion in the official plugin index.

To help move the formation of this team forward, I have written the following document which consists of both a technical implementation and a maintainers discussion:

https://hackmd.io/h20oZT_GQjSeIwXIPU0KSg

I invite everyone to review and leave comments.

Based on a recent discussion with @jezdez, I believe the best way forward here is to simply utilize the existing conda plugins team. This team is currently located in the conda incubator and is a dynamically chartered team. This means that it currently operates independently of the steering council (more information about that here: https://github.com/conda/governance/blob/main/README.md#sub-teams).
@kkraus14, if you are still interested to help with plugin projects, you are more than welcome to join this team. We currently have the following repository available to use to collaborate things such as the plugins index:

https://github.com/conda-incubator/plugins

In the future, when/if the plugins index becomes a "production" ready project, we will promote the above repository to the official conda organization if it holds the index as described in my recent proposal.
With all that being said, I believe it is safe to close this issue and move further discussions about the plugins index to the repository linked to above.


Orchestrators tests

duplicate of #70

Codecov Report

Merging #71 into dev will increase coverage by 1.38%.
The diff coverage is 95%.

@@            Coverage Diff             @@
##              dev      #71      +/-   ##
==========================================
+ Coverage   80.49%   81.88%   +1.38%
==========================================
  Files          36       37       +1
  Lines         841      861      +20
  Branches      101      102       +1
==========================================
+ Hits          677      705      +28
+ Misses        164      156       -8

Impacted Files
Coverage Δ

lib/constants/default-task-state.js
100% <ø> (ø)
:arrow_up:

lib/reducers/collection.js
85.55% <0%> (ø)
:arrow_up:

lib/watermill.js
90.47% <100%> (ø)
:arrow_up:

lib/orchestrators/join.js
96.49% <100%> (+1.03%)
:arrow_up:

lib/task.js
100% <100%> (ø)
:arrow_up:

lib/lifecycle/generate-uid.js
100% <100%> (ø)
:arrow_up:

lib/orchestrators/orchestrator-uid-generator.js
100% <100%> (ø)

lib/orchestrators/fork.js
100% <100%> (+50%)
:arrow_up:

lib/orchestrators/junction.js
89.28% <75%> (+0.39%)
:arrow_up:

Continue to review full report at Codecov.

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


Run sharp in the browser, WebAssembly maybe?

What are you trying to achieve?
Run the sharp or light version of it in the browser.
Have you searched for similar questions?
Yes, only thing i found is this https://libvips.github.io/libvips/2020/09/01/libvips-for-webassembly.html and not sure how sharp will react in this case.
I know that sharp is mainly for the node js env because it is tied to the libvips but i'd like to know is it even possible to use the sharp in the browser ( i'm sure not at the moment ) but is it possible if somehow we would be able to use the https://libvips.github.io/libvips/2020/09/01/libvips-for-webassembly.html ?

No, sorry, previous discussions about this can be found at https://github.com/lovell/sharp/search?q=wasm&type=issues


Visual bugs: Train page (UI text, missing icon, spacing)

System Information (please complete the following information):
Model Builder Version: <IP_ADDRESS>6303

Visual Studio Version: 16.7.0 Preview 2 [30107.82.master]

Describe the bug

In the Training setup summary section, the labels are bolded. Also, the vertical spacing is too much.

In the event that a User cancels an ongoing training, the 'canceled' state is missing an icon.

The label "Data set" is incorrect.

The spacing between the "Train" button, the status icon (completed, training, canceled), and the status message ("Training...", "Training complete", "Canceled") is incorrect.

To Reproduce
Steps to reproduce the behavior:

Go to Model Builder UI
Click on Image Classification
Go all the way to Train page
Expand the summary section
Start training, cancel training, complete training to see all three states.

Expected behavior

[x] 1. The labels in the summary section should be the regular font weight (not bold). For vertical spacing, refer to the mock up here.
[x] 2. Use the 'StatusError' icon in case an ongoing training is canceled / abruptly ended.
[x] 3. Replace "Data set" label in the summary section, with "Data".
[x] 4. Use the correct spacing as shown in the Figma mockups here.

Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.


CLOUD-44527 added launch email templates

@biharitomi

Jenkins build failed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1806/

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1807/

LGTM


Fixes some problems with syntax

Column name started from int - 2fa_enabled
Column type with coma separated value - balance decimal(8,2) [default: 0.00]
FK action on destroy

fixes #11
fixes #10
fixes #9

Hi @warmiak !
Could you check fixes please?


feat: add a resampling feature

This PR adds a resampling capability in whispering.
Adding a "source_sample_rate" with the sample rate of the source will resample the audio to 16 000 Hz.
It supports supersampling and undersampling.
This addresses #32 and will allow https://github.com/jitsi/jigasi/pull/454 to be merged.
Please let me know if there is anything I can do to improve this PR.

I'm not sure why the CI fails :/

Thank you for the PR.
However, I think the resampling should be done by the library clients.
Therefore, I am not in favor of adding this feature.
Thank you anyway.
Note: CI fails the code formatting is needed.
I'll add the command (#42).

Merging this pull request itself is easy.
However, adding various features makes maintenance difficult.
I would like to keep this library as simple as possible.
I am sorry, but please kindly understand this.


Early GPU Performance Analysis [5]

The GPU backend is has been validated against the multicore backend for all of the validation tests and the miniapp. However, these tests take much longer to run on the GPU than the CPU.
The main reason for this is many small copies, typically of a single floating point value, between host and device memory whenever

a probe sample is taken
spike detection is performed
an iclamp contribution is added to the current
an event is delivered to a synapse

These issues should be addressed before we start to benchmark and optimize the core GPU algorithms
This task has two steps

make a detailed list of all locations where these transfers are affecting performance [2]
propose some designs for removing the memcopies [3]

This task will not involve implementation of the design changes, which will be done in a later task after this analysis is complete.

Step 1: run the miniapp with nvprof.

1: Taxonomy of host-device copies
Sampling
The sampling interface allows the user to record voltage and current values at a user-specified location at a user-specified frequency. The call to cell_.probe(...) below copies a single value from device to host memory each time it is called:
https://github.com/eth-cscs/nestmc-proto/blob/97e17b187e68a3253fde6c668918605dea2f5d3b/src/cell_group.hpp#L96
Events
The event system has two calls that use host-device copies:
Spike detection
The test() call copies a single voltage value to host:
https://github.com/eth-cscs/nestmc-proto/blob/97e17b187e68a3253fde6c668918605dea2f5d3b/src/cell_group.hpp#L121
Event delivery
https://github.com/eth-cscs/nestmc-proto/blob/97e17b187e68a3253fde6c668918605dea2f5d3b/src/cell_group.hpp#L129
When an event is delivered the net_receive method on the target synapse is called. Any access to the synapse state in the net_receive will involve a H2D, D2H or both, depending on whether the operation is read, write or update.
Testing for physically realistic solution
This was a quick hack that tests whether the voltage at the soma of the first cell in each cell group is within a "reasonable" range after each internal time step of the cell_group. This can be disabled without much fuss (or replaced with a better sanity test)
https://github.com/eth-cscs/nestmc-proto/blob/97e17b187e68a3253fde6c668918605dea2f5d3b/src/cell_group.hpp#L93

Proposed solution : Spike Detection
Currently the only source of spikes in our models is from spike detectors that are triggered when a voltage threashold is exceeded. The solution should handle spike sources in general:

spike detectors
spike chain generators
something like NMODL point processes that generate net_event()

Spike detectors:

the hardware-specific backend provides an interface that

front end (i.e. the cell_group) can describe which compartments/locations must be watched (with threshold)
front end can periodically request a list of recorded "threshold crossings"

the front end is responsible for associating

Spike generators etc:

provide a spike generator abstraction
library provides some specializations like Poisson etc...
C++ users can write their own specializations
Python front end will provide an interface for specifying sequences of spikes

net_event()

Using net_send(), net_event(), and net_move() to modify events in the local event queue is a bit messy in NEURON, because it conflates local state machine transitions with external events. We should revisit how such state machines are implemented in NestMC.

Proposed solution: Stimuli
Implement them as point processes. They describe the injected current in nA, and hence use the same scaling factor to convert from current to current-density as synapses.
Before implementing this we should address bug #20, to first finalize the per-mechanism instance scaling factor (which will also have to implemented for density channels to address the bug).

Proposed Solution: event delivery
This is the most difficult, because it requires a queue on the backend side, which may have to be processed in parallel (e.g. on the GPU).
The event delivery has to be moved into the back end, though the implementation of delivery for the multicore backend will not change much.
Unlike the GPU, which will require a bit of creativity!
The backend has to provide an interface for pre-processing events that can be called asynchronously

to allow full overlap of event wrangling and computation
on the gpu this might mean sorting and packing events on host then copying to the GPU memory

GPU proposed solution
sorting events on host
step 1
Sort all events by the following pseudo-code lambda
[](event l, event r){ return l.target==r.target ? l.time<r.time : l.target<r.target; }
The events will be sorted in order of target index, then in order of delivery time
step 2
Partition the sorted list into one partition per target
step 3
Sort the delivery times to generate a total ordering of event delivery.
step 4
Copy the partition, sorted events and event delivery ordering to gpu
on the GPU
Before each time step, process all instances of a target in parallel, with one thread per target.
e = next event for target
if e.deliver_time <= t + next_delivery_time
    target.net_receive(e)
end

The value of dt is determined from the ordered list of event delivery times calculated in step 4 above.

Regarding the sampling memory transfers, it's not so much the call to cell_.probe(...) that is the problem, but the way that cell_.probe(...) is currently implemented. That is, there may be no need to change the interface between the cell group and lowered cell to address this problem.

The interface by which the cell_group queries the lowered cell for spikes
https://github.com/eth-cscs/nestmc-proto/blob/97e17b187e68a3253fde6c668918605dea2f5d3b/src/cell_group.hpp#L121
is called on every time step, and any spikes generate in the last dt immediately pushed onto the local spike buffer. We want to avoid the interaction between host and device on every time step, so I don't think we can keep exactly the same interface that we have at the moment. I think that the "query" whereby the cell_group requests the spike list should occur after the cell has been advanced to t_final, i.e. once after this loop
https://github.com/eth-cscs/nestmc-proto/blob/97e17b187e68a3253fde6c668918605dea2f5d3b/src/cell_group.hpp#L88

Event Delivery
The main bottleneck at the moment is copying event information from host to device on each time step. Copying events before they are needed at the start of each "integration period" avoids this.
This could be used for either the cell_group-driven stepping or lowered_cell-driven time stepping. I would try to implement the first approach, because that is closest to what we currently have. But long term I think that passing responsibility for time stepping to the lowered_cell is very promising.


merge package from Kronos-Tools/npm-package-template-minimal

package.json

chore(package<EMAIL_ADDRESS>chore(package): add module from template

Coverage remained the same at 14.543% when pulling 9b4be507e19f011995ddcd0e850662017ce6bebf on template-sync-1 into 52c573382c2055906d2b3129898ab8c1473561e0 on master.


Add Clear option to Add Credential > Paste

From Pivotal list
Labels: none
status: unstarted
created Dec 15, 2022
by Brandon
Description: #307
Add a button to clear the field

#309 is closed

duplicate, closing


Feature/multiple containers

This fixes #12 by allowing multiple containers to be started and stopped.

it's very nice, thanks !
just small problems for the container which uses another container as a network (for the vpn) it does not work
like this : (unraid gui)

@JamesDAdams What exactly isn't working? Are the containers not starting or stopping?


Refactor API-Version selection

In the wireframes, API version selection is part of the API sign-up process.
For the API try-out pages to work, the API version selection must already be possible on the API details page.
Accordingly, a new selection during the sign up is no longer necessary and can be removed there.

That was solved with the redesign of the details page.


Disable vai tests given backend failures

Summary
Disable vai tests until backend issues resolved
Occurred changes and/or fixed issues
See https://github.com/rancher/dashboard/issues/12856 to enable again
Checklist

[x] The PR is linked to an issue and the linked issue has a Milestone, or no issue is needed
[x] The PR has a Milestone
[x] The PR template has been filled out
[x] The PR has been self reviewed
[x] The PR has a reviewer assigned
[x] The PR has automated tests or clear instructions for manual tests and the linked issue has appropriate QA labels, or tests are not needed
[x] The PR has reviewed with UX and tested in light and dark mode, or there are no UX changes

/backport v2.10.1 release-2.10


After creating a query, can i call the query with parameters as a rest api?

First of all, thank you for making a good product.
This is a question about your product features.
After creating a query, can i call the query with parameters as a rest api?

Thanks @hkjang! There is an API you can use to get and run queries, but nothing that supports parameters currently.
There's nothing restricting the actual SQL used when executing the SQL from the saved query, so you could use your own placeholders, perform a GET on the query to get the SQL text, replace those placeholder values with something else, then POST a new query batch with the new SQL text.
Parameters would be more ideal however


[GSSoC'23] ChatBOT Project Ready

Title and Issue number

Title - ChatBOT
Issue Number - 2901
Close #2901

Checklist:

[x] I have mentioned the issue number in my Pull Request.
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have created a helpful and easy to understand README.md

@pranjay-poddar @MohitGupta121 @Saurabh-kumar09 sirs, please review this pr.
I requested to add level-3 on this project.
https://github.com/pranjay-poddar/Dev-Geeks/assets/114330097/d250f122-98cf-4288-9419-e92c6778467e


Require path in phpcbf

What does this implement/fix? Explain your changes.
Requires the path library in phpcbf.coffee as path is being used but isn't required, thus causing an error.  Also adds the optional flag to PHPCBF executable.
...
Does this close any currently open issues?
Closes #2140
...
Any other comments?
...
Checklist
Check all those that are applicable and complete.

[X] Merged with latest master branch
[X] Regenerate documentation with npm run docs
[ ] Add change details to CHANGELOG.md under "Next" section
[X] Added examples for testing to examples/ directory
[x] Travis CI passes (Mac support)
[x] AppVeyor passes (Windows support)

@Glavin001 please give this a quick look and I'll merge.

@szeck87 Need a Changleog entry for this before publishing. Feel free to merge and publish when you're ready 👍


files not arranged in folders when sqlproj created on windows is opened on mac

Steps to Reproduce:

Create a new project on Windows in SSDT by importing a database so it has some files and folders
Copy the folder of the project to a mac
Open the project in ADS on mac

Actual:

Expected:
It should be displayed the same way that it was in SSDT

And how ADS on windows shows it

Related less severe issue from other side of round tripping : https://github.com/microsoft/azuredatastudio/issues/11018


vm.hostname does not update the machine's hostname

This may have been by design, but we use the hostname for running puppet apply as provisioner. Setting vm.hostname in the Vagrantfile doesn't update the hostname / hosts file on the vm. Tested with the Ubuntu 12.04 ami-7747d01e AMI, but I don't think any vagrant logic is getting run to set the hostname anyways so the specific AMI. Thanks.

@hamiltont , seriously, where were you like two hours ago!!!!!  Thanks, worked like a champ!  I hate that I have to, but that's manageable enough.


[WIP]Timestream naming convention refactor

Agenda

Change TimeStream to Timestream

no to merguj to jak jest git


[Runtime Bug]: Star Wars: Battlefront 2 - Frame Generation Bug

Describe the bug
When I boot up Star Wars: Battlefront 2 with the HD mod and Remix installed and activate DLSS Frame Generation, I get some pretty awful flashing of the screen and it looks like this

How do you reproduce the bug?
Launch Star Wars: Battlefront 2 (2005) with RTX-Remix installed, and activate Frame Generation anywhere in the game and see the flashing.
I'm on a 4090. Using Remix version,
dxvk-remix-53b0bdc-599-debugoptimized
bridge-remix-07778f9-85-debugoptimized
What is the expected behavior?
The runtime should...
Version
dxvk-remix-53b0bdc-599-debugoptimized
Logs
No response
Crash dumps
No response
Media
No response

REMIX-3424 for tracking


request options

Hi!
Thanks for useful  package!
What is mean "options" in HTTP request?
Where can I put the Atom's xml in request body to Google Sites?

You can pass some headers as options. Take a look at the code here: https://github.com/jagi/meteor-google-oauth-jwt/blob/master/lib/http-jwt.js#L9

Thanks for quick response!
and where can i put a body of PUT request?
    HTTPJWT.setJWTOptions({
  email<EMAIL_ADDRESS>  key: Assets.getText('assets/key/xxxx.pem'),
  headers: {.......},
  body: '<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/"
  xmlns:sites="http://schemas.google.com/sites/2008" xmlns:gs="http://schemas.google.com/spreadsheets/2006"
  xmlns:dc="http://purl.org/dc/terms" xmlns:batch="http://schemas.google.com/gdata/batch"
  xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0">
<id>https://sites.google.com/feeds/content/domainName/siteName</id>
<updated>2009-08-31T01:39:20.286Z</updated>
<title>Content</title>'
  scopes: [
    'https://sites.google.com/feeds/' // Old scope name
  ],
  sub<EMAIL_ADDRESS>});

is it correct?

Here is an example of sending file I was using in my application:
var uploadFile = function (uploadType, buffer, fileType) {
  // Get upload url.
  var result = HTTPJWT.get(
    'https://clocky-2.appspot.com/_ah/api/clocky/v1/upload?uploadType=' +
    uploadType);
  var uploadUrl = result.data.value;

  // Prepare HTTP data.
  var fd = new FormData();
  fd.append('file', {
    contentType: fileType,
    filename: uploadType.toLowerCase(),
    data: buffer
  });
  var generated = fd.generate();

  // Send file to datastore.
  result = HTTP.post(uploadUrl, {
    headers: generated.headers,
    content: generated.body
  });

  // Return serving url (if present) and blob key.
  var data = {
    blobKey: result.data.blobKey
  };
  if (result.data.servingUrl) {
    data.servingUrl = result.data.servingUrl;
  }
  return data;
};

And why are you using HTTP.post and not HTTPJWT.post?

I don't remember precisely because I was creating this app with my friend but from what I remember he was generating something like single use uploadUrl to which I could send file using jus HTTP library, so it was secured as this uploadUrl contained token. It was long time ago when we're creating this application, so I won't help you with that.

I guessed!
single use entry edit url!
Thanks for the hint!

No problem :)


Convert to Python3

using : find . -name '*.py' | xargs 2to3 -w

@ralic,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla.microsoft.com.
It will cover your contributions to all Microsoft-managed open source projects.
Thanks,
Microsoft Pull Request Bot

Thanks for the effort here, but the library is supported by python 3.  There are currently issues with tests in Python >3.4 that ought to be addressed (see #19), but the library is otherwise fully-functional.  In this instance, 2to3 suggested fixes that are already handled (imports) or are aimed at corner-cases that are irrelevant in our code (iterating over list(dict.items()) rather than dict).
Closing.


Library Environment Request

Hello, thank you for sharing the great code.
I would like to try running the baseline models myself. However, it seems that the exact versions of the libraries (e.g., torch) are not specified. Could you please provide package information, like a requirements.txt file, and some simple instructions for setting up the environment? Your help would be greatly appreciated!

Thank you for your interest. I have provided the installation details for all the baselines in this file: INSTALLATION.md. I hope you find it helpful.