list object not callable

when i try to get the servers it says that,
File "main.py", line 8, in <module>     servs = aternos.servers()[0] TypeError: 'list' object is not callable 

now, seperately it is saying    token_func = js_code[1] if len(js_code) > 1 else js_code[0]
IndexError: list index out of range

Look at the Readme, you need to call list_servers() since v0.6.
IndexError means Aternos changed html-page code again. I'm going to fix this soon.
Thank you very much.

It gives me an error when I do that too, or use any methods on Client to log in so to me it seems the wiki is out of date or something?
Get Outlook for iOShttps://aka.ms/o0ukef

From: Andrey @.>
Sent: Wednesday, April 27, 2022 12:04:13 AM
To: DarkCat09/python-aternos @.>
Cc: JimmyTheGreat1500 @.>; Author @.>
Subject: Re: [DarkCat09/python-aternos] list object not callable (Issue #14)
Look at the Readme, you need to call list_servers() since v0.6.
IndexError means Aternos changed html-page code again. I'm going to fix this soon.
Thank you very much.
—
Reply to this email directly, view it on GitHubhttps://github.com/DarkCat09/python-aternos/issues/14#issuecomment-1110513085, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXJKI6RQAYDYWBOX2WM2INTVHC4D3ANCNFSM5UM2ON3A.
You are receiving this because you authored the thread.Message ID: @.***>

Yes, I've removed the link to the wiki from Readme because I didn't update it.
Please, use the code from Examples and Readme until I create documentation.

I’ve tried that… is the pip version outdated? Also I may have found an
unlisted dependency: js2py
On Wed, Apr 27, 2022 at 6:56 AM Andrey @.***> wrote:

Yes, I've removed the link to the wiki from Readme because I didn't update
it.
Please, use the code from Examples http:///examples and Readme until I
create documentation.
—
Reply to this email directly, view it on GitHub
https://github.com/DarkCat09/python-aternos/issues/14#issuecomment-1110861761,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXJKI6RQBROB2EDYZXB6RYDVHEMO7ANCNFSM5UM2ON3A
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Asher Clar

https://github.com/DarkCat09/python-aternos/blob/main/examples/start_example.py
aternos = Client.from_credentials(user, pswd)
srvs = aternos.list_servers()
print(srvs)
s = srvs[0]
s.start()

My code looked like that at one point and it gave me errors
Get Outlook for iOShttps://aka.ms/o0ukef

From: Andrey @.>
Sent: Wednesday, April 27, 2022 6:58:50 AM
To: DarkCat09/python-aternos @.>
Cc: JimmyTheGreat1500 @.>; Author @.>
Subject: Re: [DarkCat09/python-aternos] list object not callable (Issue #14)
https://github.com/DarkCat09/python-aternos/blob/main/examples/start_example.py
aternos = Client.from_credentials(user, pswd)
srvs = aternos.list_servers()
print(srvs)
s = srvs[0]
s.start()
—
Reply to this email directly, view it on GitHubhttps://github.com/DarkCat09/python-aternos/issues/14#issuecomment-1110863294, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXJKI6RXEZSVOJK2T6MYYN3VHEMWVANCNFSM5UM2ON3A.
You are receiving this because you authored the thread.Message ID: @.***>

What version do you use? Update python-aternos from pip:
pip install -U python-aternos

I may have found an unlisted dependency: js2py

No, it's specified as a dependency in setup.py and requirements.txt.

I was using the default version of pip with python, also I must have just missed that dependency

On Apr 27, 2022, at 7:04 AM, Andrey @.***> wrote:

I may have found an unlisted dependency: js2py
No, it's specified as a dependency in setup.py and requirements.txt.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.

dang it might just be me but the error still is there... maybe i have an old version? trying to get this to work so i can make a discord bot and have a command to start my server... do i need to clone the repo or something? also if it helps im using the default pip on the default version of python on replit... id think thats the latest?

Look at the Readme, you need to call list_servers() since v0.6. IndexError means Aternos changed html-page code again. I'm going to fix this soon. Thank you very much.

how soon is "soon"? i need the discord bot before i start my smp and if i dont people will be too annoying to start the server themselves so itll die

Read this comment: https://github.com/DarkCat09/python-aternos/issues/15#issuecomment-1111296231
Just try to login one more time. This is the bug, it'll be fixed as I said before.

Update the module. If the error will appear again, host your bot on your PC or Heroku (it's free) instead of Replit.


New Models and Enhancements

What
Models
Added new models and deprecated some old ones.

gpt-4-1106-preview
gpt-4-vision-preview
gpt-3.5-turbo-1106
dall-e-2
dall-e-3

Options
ChatQuery now supports responseFormat
ImageQuery now has model and style properties
AudioTranscriptionQuery now supports responseFormat
AudioTranslationQuery now supports responseFormat
Why
New features availability
Missing
Looking at OpenAI docs seems like functions and function_call parameters are deprecated and replaced with tools
Affected Areas
Image Generation and Chat Completions
fixes #111
fixes #112
#113 (partially)
fixes #114

This won't support passing images to the Vision API right?
content can now be a list according to the OpenAI Documentation.
https://github.com/MacPaw/OpenAI/blob/c45f3320ffa760f043c0239f724850c0e4f8bde5/Sources/OpenAI/Public/Models/ChatQuery.swift#L13

This won't support passing images to the Vision API right? content can now be a list according to the OpenAI Documentation.
https://github.com/MacPaw/OpenAI/blob/c45f3320ffa760f043c0239f724850c0e4f8bde5/Sources/OpenAI/Public/Models/ChatQuery.swift#L13

The request got quite a bit more complicated than it used to be. Now the content can be a single String, an array of strings, or an image_url object, a text object and also an array of the combination of these. I've been trying to come up with an elegant way to do it, but I don't think there is one without writing custom logic. The other question is if there is a need to support every single possibility or just say the content will always be a an array of content objects (image_url, text and others). The endpoint doesn't care after all if you send a single string or a [{"type": "text" , "text":"Prompt comes here"}].

I think that there's no need to support all the formats, the array with multiple object s should be fine.
I thought the same and that's why i didn't implement anything in this PR

Can't tell if it's been addressed here, but the new models now support parallel function calling - which means the response can contain an array of ChatFunctionCall's

But I'd love to solve the content "problem" first in order to be able to use gpt-4-vision-preview asap

The ChatQuery function sign could be overloaded in order to keep the current one and the new one with the array of objects and keep backward compatibility for those who don't need the new features. At the same time looks like functions object is deprecated and should be replaced with tools which currently supports only functions. Again here an overload is possible but I'm not sure that's a good option.

Amazing work! 😍
Thanks a lot for your contribution to the project and that you've included tests as well! 🙏🏼🔥
We'll need to handle a deprecation in functions and function_call. It seems like functions was just moved inside tools and renamed to function with a type parameter.
Do you think we should do it out of scope of this PR?

Do you think we should do it out of scope of this PR?

Yes, the main idea was to support new models. Then I added the new params too since was a very little effort.
I already am working on a branch to support the new content format
  // content is now required
  // @see https://platform.openai.com/docs/api-reference/chat/create#chat-create-messages
  let content: [Content]

  public struct Content: Codable, Equatable {
      let type: ChatContentType
      let value: String

      public enum ChatContentType: String, Codable {
          case text
          case imageUrl = "image_url"
      }
  }

@rawnly thanks for your work! Was waiting for this functionality! 👍
@ingvarus-bc will there be a release tag with those changes?

@ingvarus-bc will there be a release tag with those changes?

Hi, @marcoboerner, sure! Will make a release soon, first would be great to finish up with what we discussed in this PR and gotta merge some previous improvements

i have a working branch with the new content, it's been tricky but it works (just tested on a local project). (all tests passing, + new test to cover the new entity and some encoding/decoding utilities)
tomorrow i can try implementing the new tools too 🙌

Any ETA when can this PR be merged?

Any ETA when can this PR be merged?

Hi, @Arnav-arw, will do it within this working week for sure as well as a new release tag with some of the new functionality!

Hey, @rawnly, need a hand with the content you've been working on?

Hey, @rawnly, need a hand with the content you've been working on?

sure some help is appreciated! The content is ready but i still have some issues

Hey, @rawnly, need a hand with the content you've been working on?

sure some help is appreciated! The content is ready but i still have some issues

Okay, you can make a PR, let's finish it up together, so that we could be all set for the release ✨

Hi, @rawnly, it seems like tests are failing, in OpenAITestsDecoder.swift


Should LTMorphingEffect's allValues be public?

Maybe I can't use allValues in LTMorphingEffect. Should this be public?
@objc public enum LTMorphingEffect: Int, Printable {
    ...
    static let allValues = ["Scale", "Evaporate", "Fall", "Pixelate", "Sparkle", "Burn", "Anvil"]
    ...
}

You don't have to. allValues is just a well known solution for enumerating values in enum type in Swift.
https://www.google.co.jp/search?q=enumerate+enum+values+swift

Yes, I want to enumerate values in enum type but don't have access to allValues。

Fixed in the latest release.


how i can get list of chat folders?

how i can get list of chat folders?

This is already answered in: https://github.com/tdlib/td/issues/3100#issuecomment-2436898766.

your lib havent this method

You need to understand TDLib by the link @levlam mentioned.


Add mssing tbb dependency

Checklist

[x] Used a fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I wanted to let you know that I linted all conda-recipes in your PR (recipe) and found some lint.
Here's what I've got...
For recipe:

requirements: run: tbb >= 2019.0 should not contain a space between relational operator and the version, i.e. tbb >=2019.0

@conda-forge-admin, please rerender

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin, please rerender

@lmcinnes This PR is ready for review


examples: add list_networks.go

List all networks from cluster
Signed-off-by: Douglas Schilling Landgraf<EMAIL_ADDRESS>

@imjoey @sandrobonazzola

Not the right repo ovirt-engine-sdk-go is the right place.


Fix Link That Halt Link Validation Tooling and Links to non-Java SDK Repos

Description
This PR fixes a link that prevents the link validation tooling from continuing to run (link never responds to the tooling and it deadlocks) and links that point to non-Java SDK repos.
All SDK Contribution checklist:

[x] The pull request does not introduce [breaking changes]
[x] CHANGELOG is updated for new features, bug fixes or other significant changes.
[x] I have read the contribution guidelines.

General Guidelines and Best Practices

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[x] Pull request includes test coverage for the included changes.

/azp run java - aggregate-reports


双硬盘如何安装How do I install a dual hard disk

两块硬盘，一块SSD，一块HDD，系统安装到SSD中，HDD分区不变。如何实现？
Two hard disks, one SSD, one HDD, the system is installed into the SSD, the HDD partition is unchanged. How?

两块硬盘，一块SSD，一块HDD，系统安装到SSD中，HDD分区不变。如何实现？
Two hard disks, one SSD, one HDD, the system is installed into the SSD, the HDD partition is unchanged. How?

Post your question in Microsoft answer forum and tech immunity microsoft forum


Add timeout.patch: Increase epoll timeout to 100ms.

Current version of mtproxy consumes over 10% CPU time.
See https://github.com/TelegramMessenger/MTProxy/issues/100
Increasing timeout to 100ms doesn't break mtproxy for small and medium size
instances, but bring CPU consumption back to normal.
Signed-off-by: Alexander Gerasiov<EMAIL_ADDRESS>

Not sure it’s any right way to go.
epoll_work() takes timeout parameter, seems it was intented to use for fetching, but not yet, at the same time there’s timeout2 value with time till next timer(?).
Unfortunatelly first one is same 1ms, second is small too ~2ms usually.

That’s why I didn’t make incomplete PR with similar changes.


Add some tests

Codecov Report

Merging #23 into develop will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           develop     #23   +/-   ##
=======================================
  Coverage     58.5%   58.5%
=======================================
  Files           13      13
  Lines         1405    1405
=======================================
  Hits           822     822
  Misses         583     583

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 f64d59e...b123f49. Read the comment docs.


(maint) Remove GitHub template security question

Description Of Changes
Remove the Security question from the issue template options. This was noticed here.
Note that this can't be tested so no testing has been done.
Motivation and Context
The security question is added automatically from the organizational template Security policy.
Testing

[ ] I have previewed these changes using the Docker Container or another method before submitting this pull request.

Change Types Made

[ ] Minor documentation fix (typos etc.).
[ ] Major documentation change (refactoring, reformatting or adding documentation to existing page).
[ ] New documentation page added.

Change Checklist

[ ] Requires a change to menu structure (top or left hand side)/
[ ] Menu structure has been updated

Related Issue
N/A

@pauby thanks for getting that fixed up!


Changes for create-tauri-app@3

[ ] Remove unpopular templates and keep only 5 Node.js-based templates at a time.
[ ] Flavor of templates which will be mostly javascript and typescript will be prompted separately after choosing one of the templates
[ ] Add more Rust-based templates, leptos and dioxus seems like good-candidates, however leptos is not even 0.1 yet and dioxus already offers a desktop framework of their own.
[ ] --alpha and --mobile options

I think Vite should be added to the template too, as it can be a base for adding other framework too, and Vite is a really popular option.
webpack template would also be a good idea.

All nodejs based templates use or will use vite

Alright.

@kwrooijen could you unarchive the template https://github.com/kwrooijen/tauri-cljs, given this?

@glyh Sure, I'll take a look later today. I'd still need to update tauri within the https://github.com/kwrooijen/tauri-cljs project, otherwise it won't work.

Wouldnt it be better with more templates but a better CLI for selecting which one to use?
I'm thinking kinda like:
Javascript/Typescript/Rust - Typescript
React/Vue/Svelte - Vue
Nuxt/Vue CLI - Nuxt
I feel like removing templates makes it harder for people to get started, I've already had to help 2 people get started with Nuxt. More templates means easier to get developers into Tauri, and I for one would certainly welcome easily setting up new apps in my chosen framework, and dont see why other frameworks get "special treatment"
One alternative for me ofc is to offer my own template project, but it feels weird that the official version cuts down on templates, especially when they are already developed

@simonhyll afaik the idea is to compensate the reduced amount of templates with this: https://github.com/tauri-apps/create-tauri-app/issues/3.
I think the main problem here is the workload/maintenance burden idk

As leptos had it's first release now, would you merge a PR adding a leptos template or would you rather wait a little longer.

@ModProg the linked PR has a template for leptos, the PR is on hold for now until the next alpha release of tauri but you can use the template if you want by doing:
cargo install create-tauri-app --git https://github.com/tauri-apps/create-tauri-app --branch 'cta@3'
cargo create-tauri-app


mraa on pico-imx6 / pico-imx7

Has anyone install mraa on arm7 pico-imx6 or pico-imx7 ?
I've followed this procedure:
git clone https://github.com/intel-iot-devkit/mraa.git && cd mraa &&
mkdir build && cd build &&
cmake -DBUILDSWIGNODE=OFF -DBUILDSWIGPYTHON=ON -DCMAKE_INSTALL_PREFIX:H=/usr .. &&
make install
This successfully installs mraa version :  v1.8.0-41-g2d21062
My C/C++ application compiles with no errors, however at runtime when making hardware calls to
UART, PWM or GPIO the initializations fail.
I've tested on kernel 4.1.15 and 4.9 with the same results.
any ideas?
thanks in advance

As you can see in our readme, mraa doesn't formally support these SBCs/SOMs. However depending on the pinmuxing complexity, you can try to use the JSON way of initializing the platform for these.
And if you decide to hack mraa to add proper support, patches/PRs would be more than welcome, we can help with that ;)

Hi Alex,
I have a need to create mraa (1.8.0 or later) for pico-imx6 and pico-imx7.
Not sure where to start or what is required or how it’s done, but I’m happy to do the work.
If you could just give me a start, I’ll continue.
Best regards
Tom
From: Alex T<EMAIL_ADDRESS>Sent: Sunday, 11 February 2018 4:54 AM
To: intel-iot-devkit/mraa<EMAIL_ADDRESS>Cc: TGunthorpe<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [intel-iot-devkit/mraa] mraa on pico-imx6 / pico-imx7 (#868)
As you can see in our readme https://github.com/intel-iot-devkit/mraa/blob/master/README.md , mraa doesn't formally support these SBCs/SOMs. However depending on the pinmuxing complexity, you can try to use the JSON way https://github.com/intel-iot-devkit/mraa/blob/master/docs/jsonplatform.md  of initializing the platform for these.
And if you decide to hack mraa to add proper support, patches/PRs would be more than welcome, we can help with that ;)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/intel-iot-devkit/mraa/issues/868#issuecomment-364675897 , or mute the thread https://github.com/notifications/unsubscribe-auth/ADUR0l1k5352S21P2YY90GjOxxm2eg-Iks5tTdebgaJpZM4SAwLT .

So I'd first suggest you to look into the JSON way of initializing platform - it may turn out there's nothing to be done, depending on the platform complexity. That link I posted earlier should get you started and feel free to ask if something is unclear, here or in the Slack/IRC/mail list.
If it's complex enough to warrant the traditional way of adding the support - I'd suggest you to start by looking at past platform addition PRs, see links below.
https://github.com/intel-iot-devkit/mraa/pull/832
https://github.com/intel-iot-devkit/mraa/pull/829
https://github.com/intel-iot-devkit/mraa/pull/818
https://github.com/intel-iot-devkit/mraa/pull/666

Okay, so as this was a question and it was already answered - I'm closing this one. PRs with i.MX-based SBCs discussed above are still more than welcome! :)


STEP TO COMPILE AND RUN THIS

Can somebody please provide the steps in compilation and how to run it. Thanks

The readme provides info how to compile and backtest the basic strategy.


create_many_tasks bug

Hi there,
The create_many_tasks method under the tasks client has a bug. Specifically, dataclasses.asdict(body) is called the same as in the case of a single task; however, body is of type list in this method so it does not work.
Jacob

Also,
taskAssignee methods are not working due to this similar logic of collecting body as a list and the subsequent conversion of these elements to json. Please review.
jacob

Thanks, investigating

Fix is up for R103 patch is #14 ; will deploy as soon as R103 goes up


fix: regex for disable inputs plugin

Description
closes #329
Type of change

[X] Bug fix (non-breaking change which fixes an issue)

Additional context
For review maybe @kstala and @mkucmus are needed.
I just tested the regex.

I'm closing it due removed package


Fixed image post in create post

Fix UI so you can create a Post with an Image or Text for content but not both.
Fix image width and hight in image so that they are responsive.

This has already been fixed in the latest develop I believe.

Can you explain what this is doing. I was thinking the front-end changes for images would be mostly UI.

1.Fix UI so you can create a Post with an Image or Text for content but not both.

2.Fix image width and hight in image so that they are responsive.


Feature/scala 2 13 cross build

close it as we want to use sbt for cross-building
https://github.com/ubirch/ubirch-token-manager/pull/22


auto fetch missing arg and correct arg order

Changes are backward compatible, so that previous usage format is still functional.
Summary
Added functionality to automatically get missing arguments and to correct the argument order if user enters them in wrong order.
Rationale
I recently followed a long comment thread, in which 1 or 2 users claimed this python script didn't work.  Found out later that the users were entering the MAC and IP address in the wrong order.
Another comment thread complain about having to enter the MAC address.
These changes should address both issue.
Changes

Fetch missing arguments automatically
If MAC missing, get MAC using IP address
If IP missing, use default ip (<IP_ADDRESS>)
If user missing, use default user name (admin)
Correct argument order.
If user enters the MAC address first and IP second, this code can correct the order by using regex validation
User can enter the MAC and IP address in any order
Argument specifier allows the user name and password to be added in any order.
./telnet-enable2.py P:mypassword a4-6b-b6-dd-2e-a8 U:MyUserName <IP_ADDRESS>
User only has to enter the password if the Orbi router has default configuration (default: IP=<IP_ADDRESS>, user=admin)
./telnet-enable2.py mypassword
./telnet-enable2.py P:mypassword
If not using default IP or default user, then only include non-default values
./telnet-enable2.py P:mypassword <IP_ADDRESS>
./telnet-enable2.py P:mypassword U:MyUserName
./telnet-enable2.py P:mypassword <IP_ADDRESS> U:MyUserName
Validate IP and MAC
If validation fails, print error for each validation failure
If validation fails, and missing user name, print user name missing error
Print example usage which includes as much user provided details or info that has been programmatically determined

Thanks !


Provide types to enforce the structure of model.json files.

We were reminded of this by discussion on https://github.com/tensorflow/tfjs-core/pull/1596 (and, related, https://github.com/tensorflow/tfjs-converter/pull/320).
My view is that those two PRs should make it into 1.0.  This one is less urgent because it's a non-breaking change that just helps enforce our intentions.
Obviously, this PR can't enforce anything on the Python side.  Ultimately we should probably do all this via a language-independent JSON Schema.

This change is

Sry, I just merged a change to the file that has to do with error messaging - the merge should be simple: https://github.com/tensorflow/tfjs-core/pull/1599
Let me know if you have problems


Move inline styles into StyleSheet

React Compiler will eventually take care of this, StyleSheet doesn't really help with performance


Using hci_usb with Bluez 5.55 or 5.58

Describe the bug
I'm trying to use hci_usb on nRF52840DK to connect peripheral_dis on a nRF52833 DK using bluetoothctrl (or even old hcitool + gatttool). The boards behave correctly, I can see the peripheral advertise, HCI enumerate and I can even connect both. What happens later is problematic and is consistent across more devices and own firmware I've tried - the example above is narrowed down to Zephyr only examples and reference hardware development kits.
After the device HCI connects to peripheral there's nothing more really happening and after 10-20seconds the connection is terminated by remote user.
I'm attaching a video with a demonstration of how it looks in action.
When doing the same with a plain old CSR based dongle everything works just fine. Initially I blamed my own hardware and firmware but eventually I went to the simplest case of 2 DKs with 2 FW examples. I am able to reproduce it on Zephyr master and v2.5.0 branches. Didn't go further in history yet.
To Reproduce
Steps to reproduce the behavior:

Connect first board and run: cd .../zephyr/samples/bluetooth/hci_usb && west nrf52840dk_nrf52832 && west flash
Disconnect first, connect second and run: cd .../zephyr/samples/bluetooth/peripheral_dis && west build -b nrf52833dk_nrf52833 && west flash
Open btmon in one terminal window
Open bluetoothctrl in second terminal window
Connect and try to discover the device services and characteristics

Expected behavior
I expected to have services and characteristics discovered and be able to read and write them the same way as I do when using a CSR BLE dongle
Impact
Blocker, can't move on with implementing own software relying on BLE Linux support. Right now it works ok for CSR but it has limit of 5 concurrent connections and I plan to use nRF52840 to handle more and be embedded on the target platform which will later run the software. Currently testing on standard bluez tools to get any potential issues with custom software out of the way.
Logs and console output
btmon output from single connection-to-connection-terminated cycle:
< HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7                                #19 44.041732
        Type: Passive (0x00)
        Interval: 60.000 msec (0x0060)
        Window: 30.000 msec (0x0030)
        Own address type: Random (0x01)
        Filter policy: Ignore not in white list (0x01)
> HCI Event: Command Complete (0x0e) plen 4                                               #20 44.042650
      LE Set Scan Parameters (0x08|0x000b) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2                                    #21 44.042724
        Scanning: Enabled (0x01)
        Filter duplicates: Enabled (0x01)
> HCI Event: Command Complete (0x0e) plen 4                                               #22 44.043651
      LE Set Scan Enable (0x08|0x000c) ncmd 1
        Status: Success (0x00)
> HCI Event: LE Meta Event (0x3e) plen 19                                                 #23 44.113694
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Connectable undirected - ADV_IND (0x00)
        Address type: Random (0x01)
        Address: F4:84:A0:B0:37:41 (Static)
        Data length: 7
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        16-bit Service UUIDs (complete): 1 entry
          Device Information (0x180a)
        RSSI: -31 dBm (0xe1)
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2                                    #24 44.113795
        Scanning: Disabled (0x00)
        Filter duplicates: Disabled (0x00)
> HCI Event: Command Complete (0x0e) plen 4                                               #25 44.114660
      LE Set Scan Enable (0x08|0x000c) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Create Connection (0x08|0x000d) plen 25                                 #26 44.114747
        Scan interval: 60.000 msec (0x0060)
        Scan window: 60.000 msec (0x0060)
        Filter policy: White list is not used (0x00)
        Peer address type: Random (0x01)
        Peer address: F4:84:A0:B0:37:41 (Static)
        Own address type: Random (0x01)
        Min connection interval: 30.00 msec (0x0018)
        Max connection interval: 50.00 msec (0x0028)
        Connection latency: 0 (0x0000)
        Supervision timeout: 420 msec (0x002a)
        Min connection length: 0.000 msec (0x0000)
        Max connection length: 0.000 msec (0x0000)
> HCI Event: Command Status (0x0f) plen 4                                                 #27 44.116535
      LE Create Connection (0x08|0x000d) ncmd 1
        Status: Success (0x00)
> HCI Event: LE Meta Event (0x3e) plen 31                                                 #28 44.221681
      LE Enhanced Connection Complete (0x0a)
        Status: Success (0x00)
        Handle: 0
        Role: Master (0x00)
        Peer address type: Random (0x01)
        Peer address: F4:84:A0:B0:37:41 (Static)
        Local resolvable private address: 00:00:00:00:00:00 (Non-Resolvable)
        Peer resolvable private address: 00:00:00:00:00:00 (Non-Resolvable)
        Connection interval: 50.00 msec (0x0028)
        Connection latency: 0 (0x0000)
        Supervision timeout: 420 msec (0x002a)
        Master clock accuracy: 0x07
@ MGMT Event: Device Connected (0x000b) plen 20                                      {0x0001} 44.221748
        LE Address: F4:84:A0:B0:37:41 (Static)
        Flags: 0x00000000
        Data length: 7
        Flags: 0x06
          LE General Discoverable Mode
          BR/EDR Not Supported
        16-bit Service UUIDs (complete): 1 entry
          Device Information (0x180a)
< HCI Command: LE Read Remote Used Features (0x08|0x0016) plen 2                          #29 44.221837
        Handle: 0
> HCI Event: LE Meta Event (0x3e) plen 4                                                  #30 44.222552
      LE Channel Selection Algorithm (0x14)
        Handle: 0
        Algorithm: #2 (0x01)
> HCI Event: Command Status (0x0f) plen 4                                                 #31 44.223538
      LE Read Remote Used Features (0x08|0x0016) ncmd 1
        Status: Success (0x00)
> HCI Event: LE Meta Event (0x3e) plen 12                                                 #32 44.323540
      LE Read Remote Used Features (0x04)
        Status: Success (0x00)
        Handle: 0
        Features: 0x7f 0x41 0x01 0x00 0x00 0x00 0x00 0x00
          LE Encryption
          Connection Parameter Request Procedure
          Extended Reject Indication
          Slave-initiated Features Exchange
          LE Ping
          LE Data Packet Length Extension
          LL Privacy
          LE 2M PHY
          Channel Selection Algorithm #2
          Minimum Number of Used Channels Procedure
< ACL Data TX: Handle 0 flags 0x00 dlen 7                                                 #33 44.323962
      ATT: Exchange MTU Request (0x02) len 2
        Client RX MTU: 517
< HCI Command: Disconnect (0x01|0x0006) plen 3                                            #34 76.375238
        Handle: 0
        Reason: Remote User Terminated Connection (0x13)
> HCI Event: Command Status (0x0f) plen 4                                                 #35 76.376780
      Disconnect (0x01|0x0006) ncmd 1
        Status: Success (0x00)
> HCI Event: Disconnect Complete (0x05) plen 4                                            #36 76.473653
        Status: Success (0x00)
        Handle: 0
        Reason: Connection Terminated By Local Host (0x16)
@ MGMT Event: Device Disconnected (0x000c) plen 8                                    {0x0001} 76.473712
        LE Address: F4:84:A0:B0:37:41 (Static)
        Reason: Connection terminated by local host (0x02)

Below is a video showing what happens when these logs get generated:
https://user-images.githubusercontent.com/959323/116219499-f8978f00-a74b-11eb-93c3-c0a6c0408cf3.mp4
Environment (please complete the following information):

OS: Ubuntu 20 5.8.0-50-generic, bluez 5.55 or 5.58 (both exhibit the same behaviour)
Toolchain: Zephyr SDK: Zephyr from master or v2.5.0 branch, zephyr-sdk-0.12.3

Additional context
None

Your device is not responding for ATT Exchange MTU Request  and after 30 seconds BlueZ timeouts and terminates link.
I'd suggest checking if ATT request was received on slave device, if yes fix it,  if not there might be some IOP issue on LL and this would have to be investigated further...

What could be the reason for peripheral_dis not accepting ATT Exchange MTU Request? There aren't many options to fix or break this sample code. It's not that this packet is not received due to heavy RF interference or anything.
Similar thing happens with other firmware I've tried to connect to (based on nRF5 SDK) and initially I blamed it for some problems, though it never showed any problems. On top of that CSR dongle connects and works just fine while the hci_usb always fails to work for me, it doesn't really matter what is on the peripheral side I try to connect to.

@1am peripheral_dis should definitely respond to that Request, so my guess is that the Request is never going over the air or the response is not reaching the dongle controller.
If you have a spare dongle or any other Nordic DK, could you please sniff the exchange with the Nordic Sniffer and attach it?

Of course. Attaching a zip with pcapng (Github doesn't accept raw pcapng but zip worked) between F4:02:11:4D:7C:FF as with HCI_USB and F4:84:A0:B0:37:41 with peripheral_dis.
hci-f402114d7cff-to-dis-f484a0b03741.zip

Thanks @1am. This packet:
< ACL Data TX: Handle 0 flags 0x00 dlen 7                                                 #33 44.323962
      ATT: Exchange MTU Request (0x02) len 2
        Client RX MTU: 517

Never goes over the air. This might be an issue in the USB driver then.

nrf52840dk_nrf52832

This is a typo right?

Since you are using a DK, could you also try the UART transport instead of the USB one and see if that makes it work?

This is a typo right?

Yes, a typo of course. I meant nRF52840dk_nrf52833
I've tried HCI UART just now and as when I tested roughly a year ago everything seemed to be very ok on the DK. The only difference from the link you shared is that I had to attach my nRF52840dk_nrf52833 using btattach -B /dev/ttyACM0 -S 1000000 -P h4 or it didn't work at all - interface showed up but was always down and hciconfig hci2 up resulted in "Can't init device hci2: Operation not supported (95)" error.
I really wanted to move towards the HCI USB implementation as I've had very bizzare issue with HCI UART and FT232 which still remains an unsolved mystery for me, though clearly caused by FT232 along the way. Unfortunately my only options are either USB of nRF52840 or FT232 doing USB-UART.

I've tried HCI UART just now and as when I tested roughly a year ago everything seemed to be very ok on the DK. The only difference from the link you shared is that I had to attach my nRF52840dk_nrf52833 using btattach -B /dev/ttyACM0 -S 1000000 -P h4 or it didn't work at all - interface showed up but was always down and hciconfig hci2 up resulted in "Can't init device hci2: Operation not supported (95)" error.

Could you please send a Pull Request updating the documentation?

I really wanted to move towards the HCI USB implementation as I've had very bizarre issue with HCI UART and FT232 which still remains an unsolved mystery for me, though clearly caused by FT232 along the way. Unfortunately my only options are either USB of nRF52840 or FT232 doing USB-UART.

HCI USB should work, so this is probably a bug in the USB layer somewhere. Since this seems simple to reproduce I will assign this to @jfischer-no so he can take a look.

@Vudentz have you seen something similar before, a packet transmitted by BlueZ over USB that doesn't go over the air when using a Zephyr-based controller?

The ACL Tx (host to controller) bulk end-point of the USB driver is 1 - not 2 as suggested by the the BT HCI USB spec. I faced a similar issue using a custom BT host stack that I could not transmit ACL data. If I change my host to bind ACL Tx to end-point 1, it seems to work.
It would be nice though if the driver exposed the end-points suggested by BT spec.

@phantomblot-x Could you please share how to change ACL Tx to end-point 1 to try it out?

The ACL Tx (host to controller) bulk end-point of the USB driver is 1 - not 2 as suggested by the the BT HCI USB spec. I faced a similar issue using a custom BT host stack that I could not transmit ACL data. If I change my host to bind ACL Tx to end-point 1, it seems to work.
It would be nice though if the driver exposed the end-points suggested by BT spec.

Then there is an issue in your "custom BT host stack" because it does not take into account endpoint descriptors.

The ACL Tx (host to controller) bulk end-point of the USB driver is 1 - not 2 as suggested by the the BT HCI USB spec. I faced a similar issue using a custom BT host stack that I could not transmit ACL data. If I change my host to bind ACL Tx to end-point 1, it seems to work.
It would be nice though if the driver exposed the end-points suggested by BT spec.

Then there is an issue in your "custom BT host stack" because it does not take into account endpoint descriptors.

That might be the case, but @1am is using vanilla BlueZ and the Linux kernel. That should work out of the box, shouldn't it?

That might be the case, but @1am is using vanilla BlueZ and the Linux kernel. That should work out of the box, shouldn't it?

yes, I will try to recreate and report.

I don't see how the host stack is supposed to guess that endpoint 1 is for ACL Tx - end-point 1 could be a proprietary interface. Anyway, for best interoperability it should use end-point 2 as suggested by the BT spec.

I can not reproduce it, neither on master nor on zephyr-v2.5.0 tag.
I am with:
hci_usb on nrf52840dk_nrf52840, peripheral_dis on nrf52833dk_nrf52833
Linux 5.10.0-4-amd64
BlueZ Version 5.55
Unlikely that it is related to BlueZ version, rather host hardware/controller. @1am what board exactly are you using for hci_usb?

Hello @jfischer-no I've repeated my tests on Zephyr master with the following setups:

peripheral_dis on nrf52840DK, hci_usb on nRF52833 - works
hci_usb on nrf52840DK, peripheral_dis on nRF52833 - not working the same way as https://github.com/zephyrproject-rtos/zephyr/issues/34593#issue-868643833

* hci_usb on nrf52840DK, peripheral_dis on nRF52833 - not working the same way as [#34593 (comment)](https://github.com/zephyrproject-rtos/zephyr/issues/34593#issue-868643833)

It should not make any difference.
Your nrf52840DK, is it nRF52840-PDK (imprinted next to the PCB antenna)? What version is it (PCA10056 ....)?

You're right it's nRF52840-Preview-DK, the version is:
PCA100056
V0.9.0
2016.48

nRF52840-PDK has known USB device controller issues and is not supported by Zephyr OS. You can use hci_usb on nrf52833dk_nrf52833 for development.

I don't see how the host stack is supposed to guess that endpoint 1 is for ACL Tx - end-point 1 could be a proprietary interface. Anyway, for best interoperability it should use end-point 2 as suggested by the BT spec.

@phantomblot-x  We have a separate issue covering this:
https://github.com/zephyrproject-rtos/zephyr/issues/29107

I don't see how the host stack is supposed to guess that endpoint 1 is for ACL Tx - end-point 1 could be a proprietary interface. Anyway, for best interoperability it should use end-point 2 as suggested by the BT spec.

Before someone reads it here and believes, that is nonsense. With USB we have device, interface, endpoint and whatever descriptors. Which describe a device completely. There is no reason at all to work with hardcoded endpoint addresses. Not even because of "suggestion" or "interoperability" :wink:. If the driver on the host side can not read and interpret it then it is a bug in the driver. The interface description for hci_usb is clear, interrupt endpoint for HCI Events, Bulk IN/OUT for ACL Data, HCI command over control endpoint. There must be no "proprietary interface" whatever in the same interface.

If the driver on the host side can not read and interpret it then it is a bug in the driver.

In Vol 4, Part B, section 2 of the BT spec it says:
"The endpoint numbers (labeled ‘Suggested Endpoint Address’ below) may be dynamically recognized upon driver initialization – this depends on the implementation."
A good host/driver would implement this (agreed), but some hosts may not - those hosts will not work with Zephyr controllers.  Too bad!
If changing a number from 1 to 2 can make Zephyr controllers work out of the box with practically any host I'd say it is worth the change, it can't be that hard to change a number from 1 to 2.


scheduler: enable HA support

Add support in the scheduler controller to enable scheduler HA using the tools provided by k8s framework already.
This basically boils down to set up the leader election and the replica count properly.
We let the user control this exposing a new optional Replicas value in the NUMAResourcesScheduler spec.
This commit adds code enablement and unit tests, e2e tests, which are far from trivial, is deferred to future changes.
The existing e2e tests are expected to be good enough to guarantee no regression.

/cc @shajmakh

TODO: make sure the controller syncs the leaderelection resourcename with the role

done. The PR is reviewable.

I should follow  my own advice more and run vet golangci-lint test-unit before EVERY submission

/hold

TODO: make sure the controller syncs the leaderelection resourcename with the role

done. The PR is reviewable.

@ffromani Will review soon

TODO: make sure the controller syncs the leaderelection resourcename with the role

done. The PR is reviewable.

@ffromani Will review soon

no rush, I'm back on WIP
you can review next week

/hold cancel
WIP is enough

CI likes it, so reviewable again, but no rush.

@Tal-or PTAL again if you have time. Thanks!

when the autodetect is enabled, how can we ensure that one scheduler pod lands on one control plane without using ds?

the replicaset/deployment controller is expected to guarantee this. That said I'm not sure in turn how the kubernetes controller ensures that.

/lgtm
Thank you for working on this


Implement low-power support in the LoRa stack and modify the nRF timer code to use the HFXO manager.

Use of timers in the LoRa stack has been split into critical and non-critial timers. Non-critical timers (such as retry delays) are now implemented using the os_cputime functions. The
os_cputime needs to be configured to use a lower power time in the BSP (such as is done by the BLE stack via the BLE_LP_CLOCK syscfg). Critical timers are only used to time the opening of
the RX windows. These continue to use the hal_timer functions, but require that the user implements two callback functions (lora_low_power_enter and lora_low_power_exit) to turn the
LORA_MAC_TIMER off and on. This is necessary as turning a timer on is a hardware-specific operation that may require that the caller pass in a custom configuration struct.
This patch also modifies the nRF timer code to use the HFXO manager found in hw/mcu/nordic/nrf52xxx/src/nrf5x_clock.c. This allows multiple different timers to be turned on and off
independently and manager will automatically turn the nRF HFXO on and off as required. This is necessary in order for the LoRa and BLE stacks to be able to run side by side.

I might have missed a commit but I do not see lora_low_power_exit() and enter().

This something I tried to discuss on the mailing list<EMAIL_ADDRESS>Basically, the hal_timer functions don't provide a way for libraries to turn a timer on in a hardware agnostic fashion. You have to call the hal_timer_init function with a hardware specific parameter. Therefore, I declared the callbacks lora_low_power_enter/exit() that need to be implemented by the user in order to turn the timer on and off.

And another comment. Not sure how to handle the lora enter low power. Quite a few of the drivers require a hw specific config and this is usually handled in the bsp or in the architecture specific portion of drivers. So handling that in the lora hw specific driver seems reasonable.

Hi @wes3 as requested I've removed the HFXO changes to hal_system.c and hal_timer.c and will add these as a separate pull request.
I've made some changes to the low power callbacks - since the LoRa code can turn the timer off itself using hal_timer_deinit, I've removed the lora_low_power_enter callback function and renamed lora_low_power_exit to lora_bsp_enable_mac_timer. BSPs now only need to implement lora_bsp_enable_mac_timer.
I've also modified the b-l072z-lrwan1 and telee02 BSPs to implement lora_bsp_enable_mac_timer. Travis CI now builds find and this pull request passes all checks.
Hopefully this can now be merged.

Reviewed the changes and merged. Sorry for the delay.


[BEAM-12445] Handle none bq_client

Handling the case when google.cloud.bigquery import fails

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

R: @pabloem
R: @chamikaramj
R: @ihji

Yeah, looks like the API also allows str argument: https://github.com/googleapis/python-bigquery/blob/v1.26.1/google/cloud/bigquery/client.py#L2605
Thanks, LGTM.

Thanks! Updated the test case. Will merge once the test pass.


[Linux]can not receive receive more pointers on touchscreen

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce
Run the demo on the Linux touchscreen machine;

One finger test:

Run the demo on the Linux touchscreen machine;
Touch on the screen and up;

Two fingers test:

On the premise that one finger has already touched;
Touch the screen with the second finger;

Three fingers test:

On the premise that two fingers has already touched;
Touch the screen with the third finger;

Expected results

The first test expected results:
Successfully received all events, all events type are touch;

The second test expected results:
Successfully received all events, received the new down and up, all events type are touch;

The third test expected results:
Successfully received all events, received the new down and up, all events type are touch;

Actual results

The first test expected results:
Successfully received all events, but all event types are mouse;

The second test expected results:
No new down event received, and there was no up event when the second finger was release;

The third test expected results:
Received the zoom events: ZoomStart, ZoomUpdate, ZoomEnd, and all event types are trackpad;

Code sample
Code sample
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Listener(
        onPointerDown: (PointerEvent event) {
          debugPrint(
              "flutter-demo  onPointerDown:${event}  kind:${event.kind}");
        },
        onPointerMove: (PointerEvent event) {
          debugPrint(
              "flutter-demo  onPointerMove:${event}  kind:${event.kind}");
        },
        onPointerUp: (PointerEvent event) {
          debugPrint(
              "flutter-demo  onPointerUp:${event}  kind:${event.kind}");
        },
        onPointerCancel: (PointerEvent event) {
          debugPrint(
              "flutter-demo  onPointerCancel:${event}  kind:${event.kind}");
        },
        onPointerPanZoomStart: (PointerEvent event) {
          debugPrint(
              "flutter-demo  onPointerPanZoomStart:${event}  kind:${event.kind}");
        },
        // TODO onPointerSignal 独立分发
        onPointerSignal: (PointerEvent event) {
          debugPrint(
              "flutter-demo  onPointerSignal:${event}  kind:${event.kind}");
        },
        onPointerHover: (PointerEvent event) {
          debugPrint(
              "flutter-demo  onPointerHover:${event}  kind:${event.kind}");
        },
        onPointerPanZoomEnd: (PointerEvent event) {
          debugPrint(
              "flutter-demo  onPointerPanZoomEnd:${event}  kind:${event.kind}");
        },
        onPointerPanZoomUpdate: (PointerEvent event) {
          debugPrint(
              "flutter-demo  onPointerPanZoomUpdate:${event}  kind:${event.kind}");
        },
        child: Container(
          color: Colors.yellow,
        ),
      ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}

Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs

The first test logs

flutter: flutter-demo  onPointerDown:_TransformedPointerDownEvent#53ba5(position: Offset(208.1, 251.6))  kind:PointerDeviceKind.mouse
flutter: flutter-demo  onPointerMove:_TransformedPointerMoveEvent#d62a9(position: Offset(208.6, 254.0))  kind:PointerDeviceKind.mouse
flutter: flutter-demo  onPointerMove:_TransformedPointerMoveEvent#ffc41(position: Offset(211.0, 257.9))  kind:PointerDeviceKind.mouse
flutter: flutter-demo  onPointerMove:_TransformedPointerMoveEvent#86f91(position: Offset(212.8, 263.0))  kind:PointerDeviceKind.mouse
flutter: flutter-demo  onPointerMove:_TransformedPointerMoveEvent#ac328(position: Offset(215.2, 268.5))  kind:PointerDeviceKind.mouse
flutter: flutter-demo  onPointerMove:_TransformedPointerMoveEvent#bd1bc(position: Offset(217.1, 275.9))  kind:PointerDeviceKind.mouse
flutter: flutter-demo  onPointerMove:_TransformedPointerMoveEvent#5eee4(position: Offset(218.5, 282.2))  kind:PointerDeviceKind.mouse
flutter: flutter-demo  onPointerMove:_TransformedPointerMoveEvent#407b4(position: Offset(219.9, 288.5))  kind:PointerDeviceKind.mouse
flutter: flutter-demo  onPointerMove:_TransformedPointerMoveEvent#c94b3(position: Offset(221.3, 294.9))  kind:PointerDeviceKind.mouse
flutter: flutter-demo  onPointerMove:_TransformedPointerMoveEvent#da376(position: Offset(221.3, 301.4))  kind:PointerDeviceKind.mouse
flutter: flutter-demo  onPointerMove:_TransformedPointerMoveEvent#3fb59(position: Offset(222.7, 307.0))  kind:PointerDeviceKind.mouse
flutter: flutter-demo  onPointerMove:_TransformedPointerMoveEvent#669cb(position: Offset(222.7, 311.7))  kind:PointerDeviceKind.mouse
flutter: flutter-demo  onPointerMove:_TransformedPointerMoveEvent#7171a(position: Offset(222.7, 316.5))  kind:PointerDeviceKind.mouse
flutter: flutter-demo  onPointerUp:_TransformedPointerUpEvent#c31b4(position: Offset(222.7, 316.5))  kind:PointerDeviceKind.mouse

The second test logs

no logs

The third test logs

flutter: flutter-demo  onPointerPanZoomStart:_TransformedPointerPanZoomStartEvent#b2e4a(position: Offset(197.1, 299.1))  kind:PointerDeviceKind.trackpad
flutter: flutter-demo  onPointerPanZoomUpdate:_TransformedPointerPanZoomUpdateEvent#506cf(position: Offset(197.1, 299.1))  kind:PointerDeviceKind.trackpad
flutter: flutter-demo  onPointerPanZoomUpdate:_TransformedPointerPanZoomUpdateEvent#ffaba(position: Offset(197.1, 299.1))  kind:PointerDeviceKind.trackpad
flutter: flutter-demo  onPointerPanZoomUpdate:_TransformedPointerPanZoomUpdateEvent#b5e52(position: Offset(197.1, 299.1))  kind:PointerDeviceKind.trackpad
flutter: flutter-demo  onPointerPanZoomUpdate:_TransformedPointerPanZoomUpdateEvent#e6912(position: Offset(197.1, 299.1))  kind:PointerDeviceKind.trackpad
flutter: flutter-demo  onPointerPanZoomUpdate:_TransformedPointerPanZoomUpdateEvent#881a8(position: Offset(197.1, 299.1))  kind:PointerDeviceKind.trackpad
flutter: flutter-demo  onPointerPanZoomUpdate:_TransformedPointerPanZoomUpdateEvent#874b6(position: Offset(197.1, 299.1))  kind:PointerDeviceKind.trackpad
flutter: flutter-demo  onPointerPanZoomEnd:_TransformedPointerPanZoomEndEvent#9a650(position: Offset(197.1, 299.1))  kind:PointerDeviceKind.trackpad

Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.13.0, on BrilliaOS 5.10.179.ft, locale zh_CN.UTF-8)
[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[!] Android Studio (not installed)
[✓] Connected device (2 available)
[!] Network resources
    ✗ A cryptographic error occurred while checking "https://pub.dev/": Connection terminated during handshake
      You may be experiencing a man-in-the-middle attack, your network may be compromised, or you may have malware installed on your computer.
    ✗ A network error occurred while checking "https://maven.google.com/": Connection timed out
    ✗ An HTTP error occurred while checking "https://github.com/": Connection closed before full header was received

! Doctor found issues in 3 categories.

When I test on a touch screen device on Windows, all fingers can receive independent down and up events, and all events kind are touch; when I tested touchscreen devices on Ubuntu and Debian Linux systems, their events kind were both mouse or trackpad, and cannot recognize multiple fingers individually

@WeicongLi124
Can you take a look at below related issues and a comment and check if they help to know why touch events on a touchscreen device running on Linux may not be working as expected ?
https://github.com/flutter/flutter/issues/90366
https://github.com/flutter/flutter/issues/52202
https://github.com/flutter/flutter/issues/78232#issuecomment-819157114

这是来自QQ邮箱的假期自动回复邮件。

您好，我最近正在休假中，无法亲自回复您的邮件。我将在假期结束后，尽快给您回复。

@WeicongLi124 Can you take a look at below related issues and a comment and check if they help to know why touch events on a touchscreen device running on Linux may not be working as expected ?
#90366 #52202 #78232 (comment)

Yes, I have already read them.
Sadly, it didn't help me. I see that these issues are still open. So, I'm wondering if Flutter has not yet implemented touch adaptation for Linux.
I am developing a touch handwriting software that implements the function of double finger movement and scaling. It can be triggered on Windows and Android, but not on Linux.
The issue was discovered through a simple demo test.

Thanks for the update. We don't have a Linux touchscreen machine to verify properly, but based on the report, keeping the issue open for team's input and attention. Most likely, it is similar / related to the links I shared earlier.

Thanks for the update. We don't have a Linux touchscreen machine to verify properly, but based on the report, keeping the issue open for team's input and attention. Most likely, it is similar / related to the links I shared earlier.

Got it, no thanks. May I ask if the team has any plans to address these issue in the near future, or when are they planning to address it.

Closing as a duplicate of #52202 (Desktop Triage)


Using reactify with the --es6 flag

Hi sorry if it's an obvious question but I've been digging int he code that calls the transformers and can not see how to send this option to the transformer I'm using (reactify). Probable I need to configure the transformer in a different way but still not sure how to set the parameter.
This is my current code. How can I set options on that particular transformer?, is it possible the reactify API is not compatible for setting the option?.
The option I need to set is '--es6', which I guess will become {es6: true}
var browserify = require('browserify-middleware');
browserify.settings({
  transform: ['reactify'],
  extensions: ['.js', '.jsx'],
  grep: /\.jsx?$/
})

Thanks!

Not silly at all. I was looking for the same thing. It's far from obvious to figure out from Reactify documentation.

Perhaps one of you could add a pull request to make this library's documentation clearer?  Perhaps an extra example in the readme?

I was wondering the same thing, thanks for sharing your solution!

Thanks for sharing!


GPS coordinates

In your opinion, should we annotate GPS coordinates, ex. 50°2′9″N 19°10′42″E?

I think it's a valid example of MEASURE, that's numerical amount with units.


Clean up README files

Fixed some typos.
Made README headers look friendlier.
Removed warnings (cubit will soon be used in production, e.g. with bloc).
Added Starware info. Starware is a semiserious type of license that encourages users to show appreciation to project maintainers and, in doing so, boost the package's popularity. Great for Cubit!

LGTM thanks so much for the contribution 🚀 ⭐


Campaign Entry Observer Logic

Description
Closes #253
Creates a new method in the Entry Observer for creating the campaign entries
Adds logic to the created() function in the observer to handle campaign entries.
How To Test
Open tinker
Create a campaign and attach multiple characters to it.
Create a new entry on a character via
$someCharacter->entries()->create(['campaign_id' => $yourCampaign->id, ... , the rest of the required data])
Observe that entries have been created on the other characters in the campaign via
$someOtherCharacter->entries

Incredibly Solid! i can't find anything wrong with this, personally -- just resolve those merge conflicts? :)

resolved them!


JSON cell

Add a cell optimized for JSON values to the cells package. This could use the react-json-view library to show and edit the JSON (object) values.
Propsed API:
interface JsonCellProps {
    readonly kind: "json-cell";
    readonly data: string | Object | undefined | null;
    readonly displayData?: string;
}

I think another great use case of a JSON cell would be the ability to have it support internal folding. I am confident this can be done, but it would take a lot of work relative to this simple setup. Worth investigating tho. Pair this with events from the cell and it could easily be used to change the row size and thus allow inline unfolding.

How is this issue going?


Update TravisCI, remove sudo, update cache

@digitalbuddha
For some reason the builds keep downloading dependencies each time: https://travis-ci.org/apollographql/apollo-android/builds/306536820?utm_source=github_status&utm_medium=notification
Here is a an example which I based this PR on:
https://travis-ci.org/jaredsburrows/android-gif-example
Here is the TravisCI file:
https://github.com/jaredsburrows/android-gif-example/blob/master/.travis.yml
Here is the expected output:
https://travis-ci.org/jaredsburrows/android-gif-example (no downloading dependencies)

Thanks!
On Nov 24, 2017 12:01 AM, "Ivan Savytskyi"<EMAIL_ADDRESS>wrote:

Merged #734 https://github.com/apollographql/apollo-android/pull/734.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/apollographql/apollo-android/pull/734#event-1356576835,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABqMSG8ntWsjlXTru8DKl4mJg3Ryq7iJks5s5k2tgaJpZM4QpQQc
.


Install packages for a better Python experience

Install wheel for pre-compiled binary parts in packages, and install a version of pyyaml backed by a native (C) YAML parser/dumper for more speed when using fusesoc.

As usual, all the fancy details are contained in the commit messages.

Oh, I just noted that CI has not yet run for this PR. I think it should be rebased.


driftctl: 0.38.1 -> 0.38.2

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/snyk/driftctl/releases.
meta.description for driftctl is: Detect, track and alert on infrastructure drift
meta.homepage for driftctl is: https://driftctl.com/
meta.changelog for driftctl is: https://github.com/snyk/driftctl/releases/tag/v0.38.2
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 0.38.2 with grep in /nix/store/7s2nxyx63v61qj8bp13bcp50ll09zind-driftctl-0.38.2
found 0.38.2 in filename of file in /nix/store/7s2nxyx63v61qj8bp13bcp50ll09zind-driftctl-0.38.2

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
driftctl

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/7s2nxyx63v61qj8bp13bcp50ll09zind-driftctl-0.38.2 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A driftctl https://github.com/r-ryantm/nixpkgs/archive/e556438e1cf5ec260258c955ed4472afb388d08d.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/7s2nxyx63v61qj8bp13bcp50ll09zind-driftctl-0.38.2
ls -la /nix/store/7s2nxyx63v61qj8bp13bcp50ll09zind-driftctl-0.38.2/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

driftctl

Maintainer pings
cc @KAction @06kellyjac for testing.

@ofborg build driftctl driftctl.passthru.tests


Call showAll on opening projects

Pull Request Description
Fixes #9902
https://github.com/enso-org/enso/assets/6566674/2eb2b0dd-610a-48e7-aeb6-6c9c423746db
Important Notes

Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:

[x] The documentation has been updated, if necessary.
[x] Screenshots/screencasts have been attached, if there are any visual changes. For interactive or animated visual changes, a screencast is preferred.
[x] All code follows the
Scala,
Java,
TypeScript,
and
Rust
style guides. In case you are using a language not listed above, follow the Rust style guide.
[x] Unit tests have been written where possible.

Sorry for ping guys, wrong rebase


Backup privilege statements as separate entries

Before patch, all privilege statements placed in metadata file as one pre-data
section entry. editStatementsRedirectSchema(), used by schema redirection,
replace only first schema name occurrence in entry. This caused a bug - only
first privilege statement was modifed. This, in turn, caused vaious errors.
gprestore, used on same database, applied most of privilege statements to
original schema. Or, when used on different database, caused schema does not exist error.
From now, GetPrivilegesStatements() returns a set of separate statements,
which later used as separate entries. strings.TrimSpace() was removed as all
statements are already trimmed.
Existed tests were modified as separate entries have different format. New test
shows correct privilege applying.

This is an example of how privilege entry looked after editStatementsRedirectSchema() applying.

REVOKE ALL ON TABLE schema_to.test_table FROM PUBLIC;

REVOKE ALL ON TABLE schema_to.test_table FROM innerlife;

GRANT ALL ON TABLE schema_to.test_table TO innerlife;

GRANT SELECT ON TABLE schema_to.test_table TO test_user;

@InnerLife0 If we make changes in backup code, then the error will be in case of restoring from old backups. What about fixing the error in the editStatementsRedirectSchema function?
diff --git a/restore/restore.go b/restore/restore.go
index 2e4dcb9..421c0b4 100644
--- a/restore/restore.go
+++ b/restore/restore.go
@@ -353,10 +353,10 @@ func editStatementsRedirectSchema(statements []toc.StatementWithType, redirectSc
        }

        for i, statement := range statements {
-               oldSchema := fmt.Sprintf("%s.", statement.Schema)
-               newSchema := fmt.Sprintf("%s.", redirectSchema)
+               oldSchema := fmt.Sprintf(" %s.", statement.Schema)
+               newSchema := fmt.Sprintf(" %s.", redirectSchema)
                statements[i].Schema = redirectSchema
-               statements[i].Statement = strings.Replace(statement.Statement, oldSchema, newSchema, 1)
+               statements[i].Statement = strings.ReplaceAll(statement.Statement, oldSchema, newSchema)

                // ALTER TABLE schema.root ATTACH PARTITION schema.leaf needs two schema replacements
                if connectionPool.Version.AtLeast("7") && statement.ObjectType == "TABLE" && statement.ReferenceObject != "" {

@InnerLife0 If we make changes in backup code, then the error will be in case of restoring from old backups. What about fixing the error in the editStatementsRedirectSchema function?

There were two ways to solve our problem. The way you mentioned (implemented in another manner), can solve problem with old and new backups both, but we decided that it looks like the other gpbackup code base (ugly). So yes, privilege statements will be correctly redirected only for new backups.


Add forward and inverse as params

So if you don't specify the out_bbox, it can use forward to reproject the in_bbox to out_srs
reproject will be deprecated and aliased to inverse

done


Port getProperty and getCSSProperty

Codecov Report

Merging #67 into master will increase coverage by 0.13%.
The diff coverage is 100%.

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


Short circuit canonical block diffs during bootstrap

This PR fixes the bootstrap ingestion performance problem

instead of building the witness tree during bootstrapping, we simply calculate ledger diffs and apply them
once we're done processing canonical blocks, we switch to building the witness tree

Still need to test ledger calculations.
I'd also like to have a ledger checkpoint config option.


|Added Docker file to integrate with Group-IB

Status
Ready
Related Content Pull Request
Related PR: https://github.com/demisto/content/pull/35663
Description
Add a Docker file for better integration with the services provided by Cortex

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

Hi @Kchekh
Thank you for your contribution.
Is there a content PR to go along with this dockerfiles pr?
Thanks

Hi @Kchekh Thank you for your contribution. Is there a content PR to go along with this dockerfiles pr? Thanks

Hi @thefrieddan1
While we haven't created a pr yet, we will do so near the end of the integration update. For now, we need to update the docker image
Thanks

Hi @thefrieddan1
I successfully created and linked it here

Hi @thefrieddan1 I successfully created and linked it here

Thanks.
Can you please use python 3.11 in docker/group-ib-integrations/Pipfile

Hi @thefrieddan1 I successfully created and linked it here

Thanks. Can you please use python 3.11 in docker/group-ib-integrations/Pipfile

I would like to retire the current configuration as other types of it have caused errors. Everything works now

Hi @thefrieddan1
Can you please do the review?

Hi @thefrieddan1 Can you please do the review?
Hi @Kchekh After reviewing your contribution, we have decided it is a better use case to add the cyberintegrations under
vendors SDK
Thanks

Hi @thefrieddan1,
We thought about it and decided it would be a good idea. Does it require anything from me?
Thanks

Hi @Kchekh,
I have added cyberintegrations as part of SDK verndors.
Closing this PR.
Thanks


Generate models with constants

Type literal in CADL, single value non-extensible enum or discriminator value in Swagger

the work shall be in python.emitter: https://github.com/Azure/cadl-azure/issues/1710

@msyyc we're working on moving the python emitter into this repo, this is why the python emitter is not on the main branch in the other repo

@changlong-liu looks good to me! I would also make sure you add "typing-extensions>=4.0.1", to our generated setup.pys


Unable to add cert-manager helm repository

I am attempting to add infrastructure.yaml  structure along with ./infrastructure/** in my own git repository and run against local kind cluster.
I get the following error messages (flux get all):
NAME                            REVISION                SUSPENDED       READY   MESSAGE
gitrepository/flux-system       main@sha1:3a77f8cb      False           True    stored artifact for revision 'main@sha1:3a77f8cb'

NAME                            REVISION                SUSPENDED       READY   MESSAGE
kustomization/flux-system       main@sha1:3a77f8cb      False           True    Applied revision: main@sha1:3a77f8cb
kustomization/infra-configs                             False           False   dependency 'flux-system/infra-controllers' is not ready
kustomization/infra-controllers                         False           False   HelmRepository/cert-manager/cert-manager dry-run failed: no matches for kind "HelmRepository" in version "source.toolkit.fluxcd.io/v1"

Per my understanding, the dependsOn should be forcing the "infra-controllers"  kustomization to fire and then install both helmrepository and helmrelease artifact so unsure why I am getting this error message.


After installing the grails, flush candidates and restart, then it is not found

I'm using Sdkman 4.0.35. I've installed the grails framework with it but when I flush candidates and restart my mac laptop .... the grails cannot be found anymore.
$ sdk install grails 2.5.0

Downloading: grails 2.5.0

Hang tight, this could take a while...

Installing: grails 2.5.0

Done installing!

Do you want grails 2.5.0 to be set as default? (Y/n): Y

Then, flush candidates:
$ sdk flush candidates

When I restart the laptop:
$ grails
-bash: grails: command not found

$ sdk list grails

Stop! grails is not a valid candidate.

But, it exists:
$ pwd
/Users/user/.sdkman/candidates/grails

$ ls
2.5.0   current

I'm using java version "1.8.0_92"
Note: If I flush candidates and I don't restart the laptop, the grails still can be used.

No need to do a flush candidates unless we introduce a new candidate. Also, never need to restart a laptop, opening a new shell should do.
Having said that, it is weird behaviour for it not to find grails. Can you try doing the following for me please?
$ sdk default grails 2.5.0
If that doesn't work, can you take a look at the content of the 2.5.0 folder? You should see the contents of the sdk in there with bin folder:
```ls -lah ~/.sdkman/candidates/grails/2.5.0/bin`

I've reinstalled the grails via sdkman, I typed the sdk flush candidates and reopened another terminal, and the grails command is not found again.
After flushing candidates:
$ sdk default grails 2.5.0
==== BROADCAST =================================================================
* 19/05/16: Grails 3.1.7 released on SDKMAN! #grailsframework
* 18/05/16: Gradle 2.14-rc-1 released on SDKMAN! #gradle
* 17/05/16: Springboot 1.4.0.M3 released on SDKMAN! #springboot
================================================================================

Stop! grails is not a valid candidate.

$ tree ~/.sdkman/candidates/grails/2.5.0/
/Users/user/.sdkman/candidates/grails/2.5.0/
├── INSTALL
├── LICENSE
├── README
├── bin
│   ├── grails
│   ├── grails.bat
│   ├── startGrails
│   └── startGrails.bat
├── build.properties
 ....

$ ls -lah ~/.sdkman/candidates/grails/2.5.0/bin
total 56
drwxr-xr-x   6 user  staff   204B Mar 25  2015 .
drwxr-xr-x  14 user  staff   476B Mar 25  2015 ..
-rwxr-xr-x   1 user  staff   180B Mar 24  2015 grails
-rwxr-xr-x   1 user  staff   367B Mar 24  2015 grails.bat
-rwxr-xr-x   1 user  staff   9.5K Mar 24  2015 startGrails
-rwxr-xr-x   1 user  staff   6.2K Mar 24  2015 startGrails.bat

Note: The previous sdkman versions does not have this problem with the flush candidates, but the newest does!

Okay, found the bug! The flush command deletes the ~/.sdkman/var/candidates file. When opening a new shell, the init script checks to see if this file exists, and if not will try to download the content from the api endpoint.
However, I am currently seeing the following on opening a new terminal:
/home/marco/.sdkman/bin/sdkman-init.sh:97: command not found: __sdkman_secure_curl

In other words, it fails to download the candidate list and forgets all it's candidates. I'll roll out a fix for this very shortly!
In the meanwhile, you can rectify this by doing the following:
$ curl -s https://api.sdkman.io/candidates > ~/.sdkman/var/candidates

Open a new terminal and all should be good as new.
Please let me know if that solves your problem.

Impressive! You're doing very good work!

BTW, this fix is rolling out atm as 4.0.36.

After reinstalling sdkman using curl...
$ sdk v
==== BROADCAST =================================================================
* 19/05/16: SDKMAN 4.0.36 rolling out. Fixes https://github.com/sdkman/sdkman-cli/issues/425
* 19/05/16: Grails 3.1.7 released on SDKMAN! #grailsframework
* 18/05/16: Gradle 2.14-rc-1 released on SDKMAN! #gradle
================================================================================
Invalid command: version

Usage: sdk <command> [candidate] [version]
       sdk offline <enable|disable>

   commands:
       install   or i    <candidate> [version]
       uninstall or rm   <candidate> <version>
       list      or ls   [candidate]
       use       or u    <candidate> [version]
       default   or d    <candidate> [version]
       current   or c    [candidate]
       outdated  or o    [candidate]
       version   or v
       broadcast or b
       help      or h
       offline           [enable|disable]
       selfupdate        [force]
       flush             <candidates|broadcast|archives|temp>

   candidate  :  the SDK to install: groovy, scala, grails, akka, etc.
                 use list command for comprehensive list of candidates
                 eg: $ sdk list

   version    :  where optional, defaults to latest stable if not provided
                 eg: $ sdk install groovy

find: /Users/user/.sdkman/var/delay_upgrade: No such file or directory

And invalid command version and a find error is displayed

Oh wait... when I'm installing it it shows errors:
                                                 Now attempting installation...

Looking for a previous installation of SDKMAN...
Looking for unzip...
Looking for curl...
Looking for sed...
Installing SDKMAN scripts...
Create distribution directories...
Getting available candidates...
Prime the config file...
Download script archive...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  9729    0  9729    0     0   6892      0 --:--:--  0:00:01 --:--:-- 12954
Extract script archive...
[/Users/user/.sdkman/tmp/res-4.0.36.zip]
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /Users/user/.sdkman/tmp/res-4.0.36.zip or
        /Users/user/.sdkman/tmp/res-4.0.36.zip.zip, and cannot find /Users/user/.sdkman/tmp/res-4.0.36.zip.ZIP, period.
Install scripts...
mv: rename /Users/user/.sdkman/tmp/stage/sdkman-init.sh to /Users/user/.sdkman/bin/sdkman-init.sh: No such file or directory
mv: rename /Users/user/.sdkman/tmp/stage/sdkman-* to /Users/user/.sdkman/src/sdkman-*: No such file or directory
Set version to 4.0.36 ...
Attempt update of bash profiles...
Attempt update of zsh profiles...

All done!

Please open a new terminal, or run the following in the existing one:

    source "/Users/user/.sdkman/bin/sdkman-init.sh"

Then issue the following command:

    sdk help

Enjoy!!!

Reinstall sdkman using curl? You should use 'sdk selfupdate force', then
follow onscreen instructions.
On Thu, 19 May 2016 at 19:04, Ramon<EMAIL_ADDRESS>wrote:

After reinstalling sdkman using curl...
$ sdk v
==== BROADCAST =================================================================

19/05/16: SDKMAN 4.0.36 rolling out. Fixes https://github.com/sdkman/sdkman-cli/issues/425
19/05/16: Grails 3.1.7 released on SDKMAN! #grailsframework
18/05/16: Gradle 2.14-rc-1 released on SDKMAN! #gradle
================================================================================
Invalid command: version

Usage: sdk  [candidate] [version]
sdk offline <enable|disable>
commands:
install   or i     [version]
uninstall or rm
list      or ls   [candidate]
use       or u     [version]
default   or d     [version]
current   or c    [candidate]
outdated  or o    [candidate]
version   or v
broadcast or b
help      or h
offline           [enable|disable]
selfupdate        [force]
flush             <candidates|broadcast|archives|temp>
candidate  :  the SDK to install: groovy, scala, grails, akka, etc.
use list command for comprehensive list of candidates
eg: $ sdk list
version    :  where optional, defaults to latest stable if not provided
eg: $ sdk install groovy
find: /Users/user/.sdkman/var/delay_upgrade: No such file or directory
And invalid command version and a find error is displayed
—
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
https://github.com/sdkman/sdkman-cli/issues/425#issuecomment-220405024

I've removed the .sdkman directory and installed again with the curl -s "https://get.sdkman.io" | bash

Then opened a new terminal or sourced the init script?
On Thu, 19 May 2016 at 19:14, Ramon<EMAIL_ADDRESS>wrote:

I've removed the .sdkman directory and installed again with the curl -s "
https://get.sdkman.io" | bash
—
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
https://github.com/sdkman/sdkman-cli/issues/425#issuecomment-220407735

I've removed the .sdkman in a terminal, and opened a new terminal to type: curl -s "https://get.sdkman.io" | bash

and then it is the result:
$ curl -s "https://get.sdkman.io" | bash

Thanks for using...

Looking for a previous installation of SDKMAN...
Looking for unzip...
Looking for curl...
Looking for sed...
Installing SDKMAN scripts...
Create distribution directories...
Getting available candidates...
Prime the config file...
Download script archive...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  9729    0  9729    0     0   6654      0 --:--:--  0:00:01 --:--:-- 49892
Extract script archive...
[/Users/user/.sdkman/tmp/res-4.0.36.zip]
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /Users/user/.sdkman/tmp/res-4.0.36.zip or
        /Users/user/.sdkman/tmp/res-4.0.36.zip.zip, and cannot find /Users/user/.sdkman/tmp/res-4.0.36.zip.ZIP, period.
Install scripts...
mv: rename /Users/user/.sdkman/tmp/stage/sdkman-init.sh to /Users/user/.sdkman/bin/sdkman-init.sh: No such file or directory
mv: rename /Users/user/.sdkman/tmp/stage/sdkman-* to /Users/user/.sdkman/src/sdkman-*: No such file or directory
Set version to 4.0.36 ...
Attempt update of bash profiles...
Attempt update of zsh profiles...

All done!

Please open a new terminal, or run the following in the existing one:

    source "/Users/user/.sdkman/bin/sdkman-init.sh"

Then issue the following command:

    sdk help

Enjoy!!!

I've not touched the .bash_profile or .bashrc or .zshrc files in any case.

Found a small issue, rolling out a quick patch.

Great!

Done, want to try it now?

Yes, or course!

Let me try... one second...

Now it seem ok. Look at this:
                                                 Now attempting installation...

Looking for a previous installation of SDKMAN...
Looking for unzip...
Looking for curl...
Looking for sed...
Installing SDKMAN scripts...
Create distribution directories...
Getting available candidates...
Prime the config file...
Download script archive...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
100 19465  100 19465    0     0   7081      0  0:00:02  0:00:02 --:--:--  263k
Extract script archive...
Install scripts...
Set version to 4.0.37 ...
Attempt update of bash profiles...
Attempt update of zsh profiles...

All done!

Please open a new terminal, or run the following in the existing one:

    source "/Users/user/.sdkman/bin/sdkman-init.sh"

Then issue the following command:

    sdk help

Enjoy!!!

Cool! Thanks for helping track down the issues!

It has been a pleasure to help!

Got the same problem not finding grails. Having to delete previously dl candidates and reinstall it. After a message saying previous download found. Grails is not ready on the shell. I'm using OSX last java, last sdkman.


TESTING FACEBOOK API, DO NOT MERGE

Pull Request Test Coverage Report for Build 91

0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 92.316%

Totals

Change from base Build 90:
0.0%

Covered Lines:
1682

Relevant Lines:
1822

💛  - Coveralls


[BandcampWeekly] Add new extractor

Before submitting a pull request make sure you have:

[X] At least skimmed through adding new extractor tutorial and youtube-dl coding conventions sections
[X] Searched the bugtracker for similar pull requests

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

[X] I am the original author of this code and I am willing to release it under Unlicense
[ ] I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

[ ] Bug fix
[ ] Improvement
[X] New extractor
[ ] New feature

Description of your pull request and other information
The Bandcamp Weekly is a weekly audio show accessible via the Bandcamp homepage that showcases audio tracks and interviews with Bandcamp artists.  This show is not covered by the existing Bandcamp extractors.  This PR adds the ability to download episodes of the Bandcamp Weekly.

Near as I can tell, the Travis CI failure is not specific to this PR at this point.  The only Bandcamp related failure is the following and appears to have been preexisting:

test_Bandcamp_1 (test.test_download.TestDownload): ... FAIL

If there was a different/better way to handle the RegEx conflict between this and the existing BandcampAlbum extractor, I would be interested, this was the best solution I could see with my understanding of the architecture.

PS C:\dev\youtube-dl\master> py -3.6 .\test\test_all_urls.py
..F..............
======================================================================
FAIL: test_no_duplicated_ie_names (__main__.TestAllURLsMatching)
----------------------------------------------------------------------
Traceback (most recent call last):
  File ".\test\test_all_urls.py", line 139, in test_no_duplicated_ie_names
    'Multiple extractors with the same IE_NAME "%s" (%s)' % (ie_name, ', '.join(ie_list)))
AssertionError: 2 != 1 : Multiple extractors with the same IE_NAME "bandcamp:album" (BandcampAlbumIE, BandcampArtistAlbumIE)

----------------------------------------------------------------------
Ran 17 tests in 9.014s

FAILED (failures=1)

Thanks!  Correction pushed:
$ python2 ./test/test_all_urls.py
.................
----------------------------------------------------------------------
Ran 17 tests in 10.617s

OK

Thank your for reviewing this and providing clarification on the needed changes!  The requested changes have been made.

Another round of revisions complete

Squash commits.

Squashed and rebased.


DELETE DATA on single triple repo size takes about 2-4 sec (3.0.0) , config Native + RDFS + SPIN

Hi,
I have created an empty repository Native + RDFS + SPIN, named 'del'
I execute, over Rest API, INSERT DATA, with only one triple in the context:
insert DATA {Graph <urn:dummy> {<urn:subject> <urn:predicate> <urn:object>}}
via REST
POST http://localhost:8080/rdf4j-server/repositories/del/statements?queryLn=SPARQL&update=insert+DATA+%7BGraph+%3Curn%3Adummy%3E+%7B%3Curn%3Asubject%3E+%3Curn%3Apredicate%3E+%3Curn%3Aobject%3E%7D%7D+%3B%0D%0A&infer=true
that takes milliseconds to finish, which is really great.
Then I execute DELETE DATA, to delete that single triple I inserted before:
DELETE DATA {Graph <urn:dummy> {<urn:subject> <urn:predicate> <urn:object>}}
via REST
POST http://localhost:8080/rdf4j-server/repositories/del/statements?queryLn=SPARQL&update=delete+DATA+%7BGraph+%3Curn%3Adummy%3E+%7B%3Curn%3Asubject%3E+%3Curn%3Apredicate%3E+%3Curn%3Aobject%3E%7D%7D+%3B%0D%0A&infer=true
and this takes ~40 seconds, which is not acceptable at all.
This is happening with 2.5.3. and 2.5.4. I have not tested the issue on 3.0.0 yet, but there could be the same performance trouble I guess. (edited: I just tested it on v3 and delete also takes too long to complete.)
Please note that on plain Native, or Native + RDFS setup,  my example of DELETE DATA takes milliseconds time. Therefore, I guess the issue is only with Native + {RDFS} + SPIN. I have no any SPIN rules in the 'del' repository I created. It's really weird that DELETE DATA on the repository with one triple, takes 40sec to finish.
Could you please take a look and advise the solution?
We use SPIN rules in our project, so we need Native + RDFS + SPIN config.  If you recommend that we switch to SHACL, then please advise how to setup SHACL support in config.ttl of NATIVE + RDFS rdf4j-server. We use rdf4j-server as we want its out of box REST API feature.
Thanks a lot

I now double tested on 3.0.0. Created a new repository from scratch and got ~2-4 seconds time to complete DELETE DATA request to remove that one triple I inserted.
On another repository that has about 2500 statements, my Delete Data example does not go below 4sec; its 4-6sec.
Anyway, please take a look into this issue and provide some hints as such response time scares me
taking into account  we expect to have 100-200K triples size in an experimental phase of our project.
Thanks for your support!

Hi @vujasm
Is it correct that 3.0.0 is 10x faster than 2.5.4? I was the one who optimised the SPIN implementation for 3.0.0 and I also wrote the current RDFS implementation that became the default in 3.0.0.
Both the SPIN and the RDFS implementation are forward chained. This means that every time you add data to it the inferred triples are calculated and store in the database. The new RDFS implementation is considerably faster at this because it only considers the added statements, the previous implementation was a lot slower because it reran all the RDFS rules for all the data every time you added something. I’m not actually sure what the SPIN implementation does, but I believe it reruns all the rules every time you add data (actually flush - which happens when you commit your transaction or when you read after a write).
When deleting data though, they both have to re-infer all their rules again because there is no mechanism for tracking which inferred triples came from where and what your deleted data then actually affects.
Are you using SPIN only for data constrains or are you using it to infer data?
Maybe SHACL is a better fit if all you are only using constraints. However I have not created a template that combines both SHACL and RDFS. Would you expect that inferred data from RDFS are considered for the SHACL constrains (E.g. if you have a subPropertyOf rule for ex:surname -> ex:name and a “minCount 1 ex:name” rule then it would be satisfied if you add ex:Peter ex:surname “Parker”)?

https://github.com/eclipse/rdf4j/issues/1470

Since you are using SPIN for inference I don’t think SHACL will be a good fit. Our SHACL implementation is tracking the official recommendation (standard) and we will not incorporate any of the non standard spec (eg. SHACL advanced). We have also not implemented the entire SHACL spec yet.
I can try to look into what is happening during those 2 seconds required for deletion but my gut feeling is that this  time is due to the included default SPIN rules and that there is little we can do to fix it. I believe there is some way of not loading the default rule set, maybe you can look into if this is an option?
If you intend to have a transactional workload with both additions and deletions rather than a more read heavy workload I think the general design of forward-chaining will be the inherit limiting factor.

And yes. The RDFS implementation will clear out all the forward chained triples during a deletion. So all the forward chaining needs to rerun in its entirety. For additions it is incremental.

I've verified the behaviour at least.
Add statement. Took: 3 Remove statement. Took: 1566
Locally on my laptop after 10 iterations or so.

Some more testing has shown that the RDFS sail is not by itself slow. The SPIN sail is slow (around 1000 ms) and combined with the RDFS sail it becomes even slower (1500ms).

This is the slowest: NotifyingSail spinSail = new SchemaCachingRDFSInferencer(new SpinSail(new NativeStore(new File("tempnative"))));

@vujasm Every time you delete something from a SPIN based store it will delete all the inferred statements and add back the base rules and reapply all the rules (the base ones and any that you've added).
The base rules files: https://github.com/eclipse/rdf4j/blob/master/core/spin/src/main/resources/schema/spin-full.ttl
This is what takes so long.
I don't see there being any way to make this faster.

Other than this the rules run based on what you add. So adding data that doesn’t match any rules will be very fast. Adding data that matches a rule will still be fast, but it depends on how complex your rule is.

Many thanks @hmottestad . I will let you know how it performs in future, in our case (we will be adding more triples and more rules in our repo. rules are no so complex so far).


Support for Windows 10 images

http://blog.emojipedia.org/windows-10-emoji-changelog

The TTF is somewhat formatted like the a android font - glyf table using cmap to map glyphs, with GSUB for ligatures.
The complicated part is that windows glyphs are actually ttf vectors. They are built by a combination of the COLR table (which groups multiple glyphs together using indexed colors) and the CPAL table which maps indexes to real colors:
<COLR>
  <version value="0"/>
  <ColorGlyph name="uni2139">
    <layer colorID="8" name="uni2139"/>
    <layer colorID="6" name="glyph00249"/>
  </ColorGlyph>

<CPAL>
  <version value="0"/>
  <numPaletteEntries value="56"/>
  <palette index="0">
    <color index="0" value="#3F433FFF"/>
    <color index="1" value="#848484FF"/>
    <color index="2" value="#7F5526FF"/>
    <color index="3" value="#A8A8A8FF"/>
    <color index="4" value="#FFFDC2FF"/>
    <color index="5" value="#000000FF"/>
    <color index="6" value="#FFFFFFFF"/>
    <color index="7" value="#38BB38FF"/>
    <color index="8" value="#28C8F0FF"/>
    <color index="9" value="#B01712FF"/>
    <color index="10" value="#C9874DFF"/>

It looks like exporting to SVG will be the first step, then converting those to bitmaps.

Would be useful!

I see there are two branches windows10 and windows10-simple from late 2015 which actually have the files. Why did neither make it into the master branch yet?

both of them were broken in different ways. iirc, in the one where i turned the ttf definitions into SVG, it had a bunch of shapes that didn't translate properly.  the other one broke on non-square images.
the windows emoji have changed significantly since i last looked into it. not sure if the storage format has changed

I'm popping my head in to see if we really need to transliterate things to SVG, wouldn't it be just as effective to use imagemagick and the system font to render all the options?
Hoping it's not a silly suggestion, I'm just a windows user that's been interested in seeing this made available for a while and I'm not exactly familiar with finer details the problem.

i need to spend some time looking into it - the failures in the SVG would have the same failures if i did it with IM; it's something in the format I don't understand and was translating incorrectly


Mathematical operation for Quaternion

As the title says, I add more contents to Quaternion that can do some mathematical operation.
Besides, I think the two methods from_mat3 and from_mat4 are too difficult to implement. How about change them to from_rotation?

Thanks for the pull request.
Sure, from_rotation is useful to add. I didn't have time to implement these things yet.
We can leave from_mat3/4 alone. If someone finds it useful, we can implement it later.


[MNOE-965] [WIP] Use product instances

Superseded by https://github.com/maestrano/maestrano-hub/pull/998


[BUG] March is spelled wrong

Describe the bug
The word "March" is spelled wrong in the changelog on the About page.
To Reproduce
Steps to reproduce the behavior:

Go to the about page
Scroll down to the bottom of the changelog (see screenshot below)
See error

Expected behavior
Should be spelled right lol
Screenshots or Links

Environment
N/A
Additional context
Check data.json for the text content.

Hi, I can take care of this!

@jinitsuga any updates on this?

Closed by #566


Integrate Hexaly

Hexaly is a new but rapidly rising solver in recent month that has outperformed some well-established solvers, such as Gurobi and CPLEX in terms of runtime. Is there a possibility to integrate Hexaly as a solver?
Thank you for considering this request.

Yes, it's probably possible... Please try and open a pull request!


Fix CVE-2020-14803

Hello,
This PR fixes CVE-2020-14803 by upgrading OpenJDK to 11.0.11
More details here:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-14803
Another solution would be to rebuild all Neo4J images on DockerHub, so the latest openjdk:11-jdk-slim image would be used.
Thank you.

@rogervila  thank you for submitting a PR, but the tag openjdk:11-jdk-slim is already an alias for the one you're changing it to.
See: https://github.com/docker-library/docs/blob/master/openjdk/README.md#supported-tags-and-respective-dockerfile-links
If you clear your docker cache of neo4j and openjdk images it should re-download with the latest CVE fix.

I should add that docker automatically rebuilds official images every time one of the base images updates, so if OpenJDK has the fix then we should too.

Thank you @jennyowen I will rebuild the container.


Repackaged - PaloAltoPANOS

Required items, please complete
Change(s):

Repackaged

Reason for Change(s):

Removed deprecated data connectors

Version Updated:

3.0.7

Testing Completed:

Done

@microsoft-github-policy-service agree company="Microsoft"