[LAB] Week 2_Problem 1_김민찬

Problem
Week 2_Problem 1
Source Code
import torch
from random import random
from typing import Callable

##                         Problem 1                          ##
##                                                            ##
##            Arbitary x_train, y_train are given.            ##
##   Suppose that x and y have linear correlation, y=wx+b.    ##
##     In function training(), you should return [w, b].      ##
##          In function predict(), you should return          ##
##            list y_test corresponding to x_test.            ##
##                  Made by @jangyoujin0917                   ##
##                                                            ##

# NOTE : Feel free to use torch.optim and tensor.

def training(x_train, y_train): # DO NOT MODIFY FUNCTION NAME
    # Data normalization code (prevents overflow when calculating MSE, prevents underfitting)
    # Note that you need to convert [w, b] to the original scale before returning value
    # w = w * (y_max - y_min)
    # b = b * (y_max - y_min) + y_min
    y_min = min(y_train)
    y_max = max(y_train)
    normalize = lambda y : (y - y_min)/(y_max - y_min)

    ### IMPLEMENT FROM HERE
    x_train_normalized = [ normalize(x) for x in x_train ]
    y_train_normalized = [ normalize(y) for y in y_train ]

    w = torch.tensor(random(), requires_grad=True)
    b = torch.tensor(random(), requires_grad=True)
    my_lr = 0.2
    epoch = 20000

    x_train_tensor = torch.tensor(x_train_normalized, requires_grad=True)
    y_train_tensor = torch.tensor(y_train_normalized, requires_grad=True)
    optimizer = torch.optim.Adam([w, b], lr=my_lr)

    for i in range(epoch):
        optimizer.zero_grad()

        y_tensor = w * x_train_tensor + b
        error =  (y_tensor - y_train_tensor).pow(2).sum()
        error.backward()
        optimizer.step()

    return [ w.data.item(), b.data.item() ]

def predict(x_train, y_train, x_test): # DO NOT MODIFY FUNCTION NAME
    ### IMPLEMENT FROM HERE
    w, b = training(x_train, y_train)

    y_min = min(y_train)
    y_max = max(y_train)
    normalize = lambda y : (y - y_min)/(y_max - y_min)

    x_test_normalized = [ normalize(x) for x in x_test ]
    temp = torch.tensor(w) * torch.tensor(x_test_normalized) + torch.tensor(b)

    return (temp * (y_max - y_min) + torch.tensor(y_min)).tolist()

if __name__ == "__main__":
    x_train = [0.0, 1.0, 2.0, 3.0, 4.0]
    y_train = [2.0, 4.0, 6.0, 8.0, 10.0] # Note that not all test cases give clear line.
    x_test = [5.0, 10.0, 8.0]

    w, b = training(x_train, y_train)
    y_test = predict(x_train, y_train, x_test)

    print(w, b)
    print(y_test)

Description
ㅁㄴㅇㄹ
Output (Optional)
No response

First, data normalization code is for y_train, [y_min, y_max] to [0,1].
This code do not get benefit of data normalization since it can't prevent underfitting.
Suppose the optimal w is 1e+5, but you cannot reach to there with this code. However, after normalizing only y_train, abs(w) gets much smaller, so we can reach to the optimal point.

Great job!


Move entry_points and setup_requires to setup.cfg

This PR address issue #176

Coverage increased (+0.003%) to 96.533% when pulling 6fb216be003458da16e83eb567eb79f1e3fabf75 on abravalheri:move-entry-points into f84b83d4e91f4620c1bc41b5d94f83e783c83692 on blue-yonder:master.

@abravalheri Nice, looks good! Thank you!


Block's Dexterity layout setup programatically

Is your feature request related to a problem? Please describe.
Right now, if you want to transfer to code (as in not in the DB, set up TTW) specific settings for the Block's DX layout feature, you should create a specific clone of the volto.blocks behavior in plone.volto that has the desired settings as defaults.
Describe the solution you'd like
I'd like a way to load them via Generic Setup (just sayin').

Hello @sneridagh, hi there! I noticed the issue you mentioned hasn't been worked on, and I'd like to help out. From what I gathered in your first comment, it seems we want to let programmers use Plone more easily by setting things up programmatically instead of just relying on the Volto UI.
Could you share more info or point me in the right direction to get started on this?
PS: I am first time contributor to plone and i have signed the contirbutor agreement, and read through the docs as much as i could comprehend, If i am still doing something against the rule please forgive that and maybe correct me and i would appreciate if you guide me.

@sneridagh Couldn't it just be a frontend setting? (With default blocks configurable per content type, or a function to produce default blocks.) Where is the TTW layout stored currently?

@davisagli in DX, so it can be modified TTW. Let's talk about it.


Use absolute path in logger.

In case of some compiler flags (-I, -L, -isystem) a path can be given.
If this is a relative path then it is possible that in analyse phase we
can't find an include path if the analysis is started from another
directory, not where the logging happened.

You're probably right. But this fix is created for a report from one of our users. We are already changed the paths to absolute (when using -I or -L flags and their parameters were added without a separating space character), this pull request just generalize this behavior for all cases.

I agree, but I wonder if changing the working directory of the analyzer invocation would also fix this problem. In case it does. it might also solve other problems and we might also remove additional logic to convert every kind of paths to absolute in multiple places within the project and we might end up simplifying the project. See https://github.com/Ericsson/codechecker/issues/1095

Let's change the cwd of the clang invocation to the "directory" parameter of the compilation db. That should enable the handling of relative paths. That should be a simpler change anyway.
If we want to change logger we should not do it without adding test cases.

Relative path can be used in the compilation database because the analyzer will be run from the same directory as the original compiler.


Documentation outdated: overview incorrectly shows OmniPod as not loopable!

https://github.com/openaps/docs/blob/master/docs/docs/Gear Up/pump.md#information-about-compatible-insulin-pumps
Documentation, overview shows OmniPod as not loopable.
This is wrong. Both AindroidAPS (vfrom version 2.8 and up) and Loop support OmniPod EROS for closed looping.

Can you open a PR to edit the page accordingly when you get a chance?
Thanks!
On Fri, Jan 15, 2021 at 5:33 PM Theodoor<EMAIL_ADDRESS>wrote:

https://github.com/openaps/docs/blob/master/docs/docs/Gear Up/pump.md#information-about-compatible-insulin-pumps
Documentation, overview shows OmniPod as not loopable.
This is wrong. Both AindroidAPS (vfrom version 2.8 and up) and Loop
support OmniPod EROS for closed looping.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/openaps/docs/issues/1565, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABY7JBJSH5GNEP55LAEJXTLS2DGGNANCNFSM4WEYDMQQ
.

--
Dana Lewis | http://OpenAPS.org | http://DIYPS.org http://diyps.org |
@DanaMLewis http://www.twitter.com/danamlewis |
http://www.linkedin.com/in/danalewis
"Doing something for someone else is more important than anything you would
do for yourself."

Can you open a PR to edit the page accordingly when you get a chance?
Thanks!
On Fri, Jan 15, 2021 at 5:33 PM Theodoor<EMAIL_ADDRESS>wrote:

https://github.com/openaps/docs/blob/master/docs/docs/Gear Up/pump.md#information-about-compatible-insulin-pumps
Documentation, overview shows OmniPod as not loopable.
This is wrong. Both AindroidAPS (vfrom version 2.8 and up) and Loop
support OmniPod EROS for closed looping.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/openaps/docs/issues/1565, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABY7JBJSH5GNEP55LAEJXTLS2DGGNANCNFSM4WEYDMQQ
.

--
Dana Lewis | http://OpenAPS.org | http://DIYPS.org http://diyps.org |
@DanaMLewis http://www.twitter.com/danamlewis |
http://www.linkedin.com/in/danalewis
"Doing something for someone else is more important than anything you would
do for yourself."


[Improve][Dataproxy]Modify nodeIp in dataproxy message to clientIp

Description
Modify nodeIp in dataproxy message to clientIp.
InLong Component
InLong DataProxy
Are you willing to submit PR?

[ ] Yes, I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Thanks @fuweng11


UAR-1499 Fix Security Vulnerabilities

JIRA link
https://companieshouse.atlassian.net/browse/UAR-1499
Change description
Upgraded npm libraries for fix 3 critical and 2 moderate vulnerabilities
Work checklist

[ ] Tests added where applicable
[ ] UI changes meet accessibility criteria

Merge instructions
We are committed to keeping commit history clean, consistent and linear.  A BREAKING CHANGE can be part of commits of any type,
types other than fix: and feat: are allowed, for example build:, chore:, ci:, docs:, style:, refactor:, perf:, test:, and others,
footers other than BREAKING CHANGE: <description> may be provided.

Closing as a new version of package supertest has become available in the last hour.


New commit for proof of concept

Q
A

Bug fix?
no

New feature?
no

New sample?
no

What's in this Pull Request?
First commit of spfx solution for sharing.
Guidance

 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.:x: MBudwill sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.

Thanks for submitting Matt!
This should be marked as a new sample ...

BTW I'm glad to help with this one ... needs a more descriptive name and description. I can help write that up - let's see if it passes muster otherwise before updating. THanks!

Hi @MBudwill,
Could you please read the contribution guidelines described on this page, and make changes to your PR accordingly: https://github.com/SharePoint/sp-dev-fx-webparts/blob/master/.github/CONTRIBUTING.md
Thank you! Looking forward to merging your PR when everything is in place. :)
And thanks, @BobGerman, for offering to help!
Laura

Hi,
just to follow up on this as we cannot accept it as such as it violates the contribution guidance, which is actually there for ensuring that the contributors (@MBudwill in this case) can get exposure of their work and that people who might need the sample, would understand what it's all about.
There's two main issues with this current:

Naming of the sample folder is not following up guidance
Readme is missing all details what the sample does, which makes it pretty much unusable regardless of cool code and great work on the xml structures...

Why is the readme critical? As it's the introduction to the sample. Code as such absolutely has value, but likelihood of checking the code out is small if there's not a description and details around what the sample contains. This is why we require specific template and screenshots of the sample for each sample... so that community will understand how great stuff you've created.

As this breaks the contribution guidance and we have not received any updates on this PR, will be closing this for now.


Added FixedZone for missing time zone file

@mattn Could you please review and merge?

@mattn Updated

Thank you!


force_field.def file for RASPA

Dear all,
first of all, thanks for this good project.
When i read the output of lammps-interface --help, it is mentioned that -or function will also write force_field.def together with force_field_mixing_rules.def and pseudo_atoms.def. But i couldn't obtain force_field.def file for RASPA. I looked source code but didn't find any code about this file. Is there something i am missing?
merdan

Sorry, it was framework.def not force_field.def file what i was talking about. I think this is not any issue but it might be better to include a framework.def file also since it is required to make MOFs a flexible in RASPA.


Security vulnerability reporting process

We need to document what the inbound and outbound vulnerability management process is.

Comparable from CCC: governance/security-response-policies.md at main · confidential-computing/governance (github.com)
Microsoft comparable (less relevant for a foundation project): ebpf-for-windows/SECURITY.md at master · microsoft/ebpf-for-windows (github.com))
LFx Security- https://docs.linuxfoundation.org/lfx/security/overview

There is work in progress linked at bottom of https://github.com/ossf/wg-vulnerability-disclosures

Another comparable:

https://xenproject.org/developers/security-policy/

I was looking into this and think it's something that we ought to be following the LFN policy for. Unfortunately, I can't locate an LFN security vulnerability disclosure policy.
@lilluzzi, could you please lend a hand here?

@vmbrasseur LFN policy is to use LFx Security (see link above). Projects will be onboarding in the coming weeks. The security team is working on the rollout plan to communities.

@lilluzzi That's for scanning for vulnerabilities though, not reporting them, isn't it?
For instance, here's the template for a policy for the projects under CCC: security-response-policies.md
Does LFN have a policy for vulnerability disclosure for its projects?


ValueError: Cannot find global function tir.schedule.NormalizePrimFunc

Hi @XA23i , would you mind provide the scripts to reproduce this issue?

after i install bitblas, i also install apache-tvm. then i run ' python -c "import bitblas; print(bitblas.version)"  '.
this cause this error.
btw: i go through the internet and find tvm.gpu().exist() is false.

Hello @XA23i, there's no need to manually install apache-tvm; bitblas includes a customized version of tvm that will automatically be installed when you install from PyPI.

ohh, if it can run if i do not install apache-tvm. but there is another error:

When you install bitblas using pip install bitblas, it's important not to place your workspace in the BitBLAS project's root directory. Doing so will lead the Python interpreter to use the local bitblas directory rather than the installed package.
If you want to build bitblas from source, install.sh should be executed under the root to install, the scripts will automatically build tvm.

Thank you very much, it works~

@XA23i  welcome! Glad to hear it worked ：）


Update headmatter to be consistent and parseable for stac-api-extensions.github.io

For example, this is from the Aggregation extension:
- **Title:** Aggregation
- **OpenAPI specification:** TBD
- **Conformance Classes:**
  - <https://api.stacspec.org/v0.2.0/aggregation>
- **Scope:** STAC API - Core
- **[Extension Maturity Classification](https://github.com/radiantearth/stac-api-spec/tree/main/README.md#maturity-classification):** Proposal
- **Dependencies:**
  - [STAC API - Core](https://github.com/radiantearth/stac-api-spec/tree/v1.0.0-rc.2/core)
- **Owner**: @philvarner

Done


Cleanse title, author and other fields

Values read from feeds should be either rendered verbatim, or stripped of all markup. At the moment, the values are simply handed down to STFL, which has security implications.

Looks like Newsbeuter is already resilient: when I put HTML tags into item's title, Newsbeuter just ignores it.


Make frontend user aware

The frontend will need to show the currently logged in user and link to a profile page where user can change their password and logout.

Fixed


False Config Warning for the Component 'fritzbox_netmonitor' (extra keys)

Home Assistant release with the issue:
0.88 or 0.88.1

Last working Home Assistant release (if known):
0.87
Operating environment (Hass.io/Docker/Windows/etc.):
Linux/Raspberry Pi (Virtual Env)
Component/platform:
fritzbox_netmonitor:
https://www.home-assistant.io/components/sensor.fritzbox_netmonitor/
Description of problem:
Home Assistant is not happy with the Configuration, even though the Key is supported according to the Documentation:

Previous to Version 0.88 it worked fine.
At Line 234 is a 'name'-Tag and this should be supported and is working as well.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

sensor:
  - platform: fritzbox_netmonitor
    host: fritz.box
    name: Fritz!Box

Traceback (if applicable):
Log Details (WARNING)
Tue Mar 05 2019 18:41:40 GMT+0100 (Mitteleuropäische Normalzeit)
Your configuration contains extra keys that the platform does not support.
Please remove [friendly_name].  (See /home/homeassistant/.homeassistant/configuration.yaml, line 234).

Additional information:

Try removing the exclamation.

No, still doesn't work (with name: FritzBox)

looks like name was removed as well. Maybe the docs have to be updated

So there is no way to give the Sensor a name expect fritz_netmonitor?

The Thing is that even if you comment the line out it still shows the error.

You can use customize or click on the entity name in the frontend and the gearbox icon to rename it

So
Ok, so I added this to customize.yaml:
sensor.fritz_netmonitor:
  friendly_name: Fritz!Box

and now it works.
Thank you!


Multi-container port mapping failing

We are trying to deploy the multiple images to webapp for container  using .yml file.
The deployment is happening smooth port mapping is failing  and for some deployed images we are unable browse the endpoint
What we did is :

Go to webapp for container  => Container settings => selected Docker-Compose preview .
We opted for Azure container registry  then selected our registry.
uploaded our compose file and saved then started the webapp.

After starting we are getting above mentioned issues.
For reference adding our docker config file
`version: '3.4'
services:
inventory:
image: registry/inventoryapi
ports:
- "0:80"
restart: always
finance:
image: registry/financeapi
ports:
- "0:8002"
restart: always
hr:
image: registry/hrapi
ports:
- "0:8003"
restart: always
organization:
image: registry/organizationapi
ports:
- "0:8004"
restart: always
sts:
image: registry/sfts
ports:
- "0:8001"
restart: always`

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

ID: 6489b871-9cf8-7c99-9834-076ec646d0e6
Version Independent ID: fa5d2995-5833-c04b-2530-c100bcd1e76b
Content: Configure custom container - Azure App Service
Content Source: articles/app-service/containers/configure-custom-container.md
Service: app-service
GitHub Login: @cephalin
Microsoft Alias: cephalin

@itsmegopi2 Thanks for the feedback! We are currently investigating and will update you shortly.

@itsmegopi2 Thanks for asking question! Just to confirm have you configured ACR to use with multi-container? Also, there are list of supported and unsupported Docker Compose configuration options and ports other than 80 and 8080 is ignored.
You may refer to this blog might be helpful. https://blogs.msdn.microsoft.com/waws/2017/09/08/things-you-should-know-web-apps-and-linux/

@itsmegopi2 We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


Create a Fiori Launchpad App

Tutorial URL: https://developers.sap.com/tutorials/sapui5-fiori-cf-create-project.html
When running:
npm start

I get the following error:
Error Message:
xs-app.json/routes/0: Format validation failed (approuter\webapp is not a directory)

The xs-app.json is:
{
  "welcomeFile": "/index.html",
  "authenticationMethod": "none",
  "routes": [{
    "source": "^/(.*)$",
    "target": "$1",
    "authenticationType": "none",
    "localDir": "webapp"
  }]
}

ChanginglocalDir to:
"localDir": "../webapp"

Fixed the issue.

Uninstalling Make v3.81 and installing make from choco (v.4.3) solves the issue:
https://chocolatey.org/packages/make


-server flag help suggestion doesn't work

I tried -server="<IP_ADDRESS>:8091" which is what the help suggests, but it seems to expect a URL and not the host:port syntax Go programs often use.  Also, I seem to recall there was supposed to be all kinds of specialized help text, but I'm not seeing that, is it because I built it myself?  Finally, can -server="<IP_ADDRESS>:8091" be a default?  It seems like it would streamline the experience for developers downloading and running cbft the first time.
$ ./cbft -server="<IP_ADDRESS>:8091"
2015/05/04 19:51:26 main: ./cbft started (v0.0.4-16-g17b6a01/3.1.0)
2015/05/04 19:51:26   -bindHttp="<IP_ADDRESS>:8095"
2015/05/04 19:51:26   -cfgConnect="simple"
2015/05/04 19:51:26   -container=""
2015/05/04 19:51:26   -dataDir="data"
2015/05/04 19:51:26   -help="false"
2015/05/04 19:51:26   -register="wanted"
2015/05/04 19:51:26   -server="<IP_ADDRESS>:8091"
2015/05/04 19:51:26   -staticDir="static"
2015/05/04 19:51:26   -staticETag=""
2015/05/04 19:51:26   -tags=""
2015/05/04 19:51:26   -version="false"
2015/05/04 19:51:26   -weight="1"
2015/05/04 19:51:26   GOMAXPROCS=4
2015/05/04 19:51:26 main: registered bleve stores
2015/05/04 19:51:26   goleveldb
2015/05/04 19:51:26   boltdb
2015/05/04 19:51:26   metrics
2015/05/04 19:51:26   gtreap
2015/05/04 19:51:26   cznicb
2015/05/04 19:51:26   mem
2015/05/04 19:51:26 main: manager uuid: 7d92bda6d7f7d113
2015/05/04 19:51:26 main: manager uuid was reloaded
2015/05/04 19:51:26 FATAL: error: could not connect to server, URL: <IP_ADDRESS>:8091, err: invalid URL <<IP_ADDRESS>:8091>
  Please check that your -server parameter ("<IP_ADDRESS>:8091")
  is correct and the server is available. -- main.main() at main.go:142

Looks like that "Please check ..." error msg still needs even further improvement.
On all that "specialized help text", you can get that full help/usage text from using "-h".
I figured a full URL for the "-server" parameter would leave us the most flexibility for future kinds of datasource servers, but there is something nice in just being able to do a "HOST:PORT", so will noodle over it.

Either form is fine. But the help should show the firm that works.
On May 5, 2015 12:11 AM, "Steve Yen"<EMAIL_ADDRESS>wrote:

Looks like that "Please check ..." error msg still needs even further
improvement.
On all that "specialized help text", you can get that full help/usage text
from using "-h".
I figured a full URL for the "-server" parameter would leave us the most
flexibility for future kinds of datasource servers, but there is something
nice in just being able to do a "HOST:PORT", so will noodle over it.
—
Reply to this email directly or view it on GitHub
https://github.com/couchbaselabs/cbft/issues/126#issuecomment-98943116.

commit 7adb79d
Output wording now looks like...
$ ./cbft -server foo:8091
2015/05/06 15:30:01 main: ./cbft started (v0.0.5-7-g7adb79d/3.1.0)
2015/05/06 15:30:01   -bindHttp="<IP_ADDRESS>:8095"
2015/05/06 15:30:01   -cfgConnect="simple"
2015/05/06 15:30:01   -container=""
2015/05/06 15:30:01   -dataDir="data"
2015/05/06 15:30:01   -help="false"
2015/05/06 15:30:01   -register="wanted"
2015/05/06 15:30:01   -server="foo:8091"
2015/05/06 15:30:01   -staticDir="static"
2015/05/06 15:30:01   -staticETag=""
2015/05/06 15:30:01   -tags=""
2015/05/06 15:30:01   -version="false"
2015/05/06 15:30:01   -weight="1"
2015/05/06 15:30:01   GOMAXPROCS=8
2015/05/06 15:30:01 main: registered bleve stores
2015/05/06 15:30:01   goleveldb
2015/05/06 15:30:01   boltdb
2015/05/06 15:30:01   metrics
2015/05/06 15:30:01   leveldb
2015/05/06 15:30:01   mem
2015/05/06 15:30:01   gtreap
2015/05/06 15:30:01   cznicb
2015/05/06 15:30:01 main: manager uuid: 3062542ab25219e3
2015/05/06 15:30:01 main: manager uuid was reloaded
2015/05/06 15:30:01  HTTP request returned error Get http:///pools: http: no Host in request URL
2015/05/06 15:30:01 FATAL: error: not a URL, server: "foo:8091"
  Please check that your -server parameter is a valid URL
  (http://HOST:PORT), such as "http://localhost:8091",
  to a couchbase server -- main.main() at main.go:142


Fail to run npm install command to install the required package

I clone the repository and run "npm install" in order to install the package. Then error messages pop up and it seems that there are something wrong during installation of react-native-sound package.
Does anyone face the same problem?

I fix the problem by manually setting version of react-native-sound in package.json. After that running npm install should be fine.

is this fixed. I am unable to run "npm install" and it says err! git clone....

Thanks ! You can also delete the line of react-native-sound, then npm i react-native-sound. 😄


Nvui crashes after a second

I downloaded the zip file and extracted it into a separate folder. When running bin/nvui, a black window pops up which closes itself after a second.
When running from the terminal, I get this output:
./nvui
terminate called after throwing an instance of 'msgpack::v1::type_error'
  what():  std::bad_cast
fish: “./nvui” terminated by signal SIGABRT (Abort)

I am running Pop!_OS 21.04 x86_64.
Thanks!

I have the same output with the latest main branch version. However it doesn't happen "after a second" for me but after I did a lot of output on the terminal once again
terminate called after throwing an instance of 'msgpack::v1::type_error'
  what():  std::bad_cast

[1]  + 10711 abort (core dumped)  ~/Projects/nvui/build/nvui .

Could you try running with --ext_hlstate=false and see if that works?

Could you try running with --ext_hlstate=false and see if that works?

This fixed the problem, thanks!

@Marenz does this fix your issue as well?


This project appears to introduce ~532 files via itself and its deps

own files that may be included by mistake:

[x] examples
[x] test

dependencies that may need investigation (499):

[ ] colors      25
[x] lodash     434 (often times, a subset of lodash is sufficient, and many such lodash subsets are individual dependencies)
[ ] string-width      39

With #26, and #27 merged, would you call this fixed?
I don't see an alternative to using colors, though string-width seems to have a surprising amount of dependencies.

string-width has only three dependencies. I don't think that's a big deal. I think we've whittled it down enough.

string-width@2 now only has one dependency, but requires Node.js 4.


Have build system check for NODE_ENV=development not dev.

babel-preset-react-app throws an error when NODE_ENV=dev switch webpack and setup scripts to check for development instead of dev.

Our build scripts only check for NODE_ENV=production


Protocol Version for TDS 8.0 connection

Connect to SQL Server 2022 CTP 2.0 with TDS 8.0 with Encrypt=Strict and get the Protocol Version with the following query.
select
ec.connect_time,es.last_request_start_time ,es.session_id,
(CAST(protocol_version AS BINARY(4))),
es.program_name, es.client_version, ec.protocol_type,ec.protocol_version,
es.client_interface_name,ec.encrypt_option
from sys.dm_exec_sessions as es
inner join sys.dm_exec_connections as ec
	on ec.session_id = es.session_id
order by connect_time desc

When I connect with Encrypt=Strict, I expect a TDS 8.0 connection, but the query results in a TDS 7.4 connection.

Even if Encrypt=Strict is specified, the Protocol Version obtained from SQL Server is TDS 7.4, does this mean that you are not able to connect with TDS 8.0?
Or is it a problem with the display of the Protocol Version of SQL Server 2022 CTP 2.0?
environment

SQL Server: 2022 CTP 2.0 (16.0.600.9)
SQL Client Version: Microsoft.Data.SqlClient 5.0.0-preview3 22168.1

@MasayukiOzawa this could be a SQLServer 2022 issue for not showing the actual version number, but let me do more testing and I will get back to you soon.

Thanks for the information.
Should I present this question as feedback for SQL Server 2022?

Should I present this question as feedback for SQL Server 2022?

No need. The server team is already aware of the issue and plans to address it before RTM.

It appears that the server team is already aware of this issue, so we will close it.
Thanks to all who commented.


No module named 'scratchattach'

I have scratchattatch installed via the command prompt, and when I try to run it, it gives me this error:
Traceback (most recent call last):
File "C:/Users/XXXXX/Documents/hack.py", line 5, in
import scratchattach as scratch3
ModuleNotFoundError: No module named 'scratchattach'

if you are using vscode, you will have to switch python interpreter. press ctrl+p and search "python interpreter" click on the "change python interpreter option, and try to click on the option that isn't highlighted. If that doesn't work, do the same thing again and click on the other one. if that works, then all issues with scratchattach and any other modules would of been fixed.

i am having the same problem

Hi. Scratchattach is not installing. It keeps saying 'SyntaxError: multiple statements found while compiling a single statement'. What should I do?

Hi. Scratchattach is not installing. It keeps saying 'SyntaxError: multiple statements found while compiling a single statement'. What should I do?

Run the command in the command prompt / shell, not in the python console

Use "pip" command instead of "pip3"
pip install scratchattach

OR
Try checking your python interpreter

closing topic due to inactivity


Include info.title in the the swagger.json output.

The JSON Schema for Swagger UI 2.0 requires info.title:
"info": {
  "type": "object",
  "description": "General information about the API.",
  "required": [
    "version",
    "title"
  ],
  "additionalProperties": false,
  "patternProperties": {
    "^x-": {
      "$ref": "#/definitions/vendorExtension"
    }
},

The default swagger.json in Ahoy does not include info.title.

We can set this manually like this:
app.UseSwagger((r, d) => {
    d.Info.Title = "Foobar";
});

@shaunluttin - it's also worth noting that when the stable 6.0.0 release ships (days to go), the config. interface will have changed slightly and you'll be required to explicitly specify one or more SwaggerDoc's. For example:
https://github.com/domaindrivendev/Ahoy/blob/master/test/WebSites/Basic/Startup.cs#L39
This change is already available in the preview packages available on MyGet.


Cannot install Darkest Dark

System information:

Operating system: Arch Linux
DBeaver version: Version <IP_ADDRESS>007261633
Additional extensions: none

Connection specification:

Database name and version: PostgreSQL 12.3 (Debian 12.3-1.pgdg100+1)
Driver name: PostgreSQL
Do you use tunnels or proxies (SSH, SOCKS, etc)?

Describe the problem you're observing:
Cannot install Darkest Dark theme through "Install New Software" menu
Steps to reproduce, if exist:

Enter http://www.genuitec.com/updates/devstyle/ci/ into "Work with" field in install new software menu
Select just "DevStyle (includes Darkest Dark Theme)" (or all of them, doesn't matter)
Click Next

Include any warning/errors/backtraces from the logs
Installation fails with the following error:
Cannot complete the install because one or more required items could not be found.
  Software currently installed: DBeaver 7.1.2 (org.jkiss.dbeaver.core.product 7.1.2)
  Missing requirement: DBeaver 7.1.2 (org.jkiss.dbeaver.core.product 7.1.2) requires 'org.eclipse.equinox.p2.iu; toolingorg.jkiss.dbeaver.core.product.configuration [7.1.2,7.1.2]' but it could not be found

You use DBeaver 7.1.3, but it is written DBeaver 7.1.2 in error message.
Please try to delete DBeaver and then install again.

I tried by uninstalling and reinstalling but still issue persisit. I am on 7.1.4. no eclipse, standalone dbeaver

It seems that the reason is the same with #9458. Could you please try Darkest Dark in 7.1.5 too?

I tried with latest version but no success.

@chauhan-pawan how do you install dbeaver?

Using latest windows installer. Installed in user profile since i don't have elevated access on my system.

I am not sure but when we try to install this add on it try to connect some xml file from "https://dbeaver.io/update/" but all xml file at the location ending with xz, which system doesn't expecting.

Hello, I am using DBeaver Version <IP_ADDRESS>009201907 on Windows 10 Enterprise version 1909. I also encounter a similar issue when trying to install any theme, including Darkest Dark. When I drag and drop the URL, I get the error in the attached screenshot. Please let me know if I should submit additional information:

It looks like a local problems with Eclipse.org connectivity.
Still can't reproduce..

Could you please try the latest version https://dbeaver.io/download/? Is the issue still actual for you?

There is no update on an issue for a long time.
If it is still actual for you - feel free to reopen an issue.


Memory leak in test tests::can_load_grammar

Valgrind reports the following memory leak when running the test tests::can_load_grammar.
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.12s

       Error leaked 24.0 kiB in 1 block
        Info at calloc
             at hashmap_create (src/uthash.h:199)
             at get_tag_map (src/uthash.h:582)
             at tree_sitter_svelte_external_scanner_create (src/scanner.c:408)
             at ts_parser_set_language (src/./parser.c:1794)
             at tree_sitter::Parser::set_language (lib.rs:363)
             at tree_sitter_svelte::tests::can_load_grammar (lib.rs:72)
             at tree_sitter_svelte::tests::can_load_grammar::{{closure}} (lib.rs:70)
             at core::ops::function::FnOnce::call_once (function.rs:250)
             at test::__rust_begin_short_backtrace
             at test::types::RunnableTest::run
             at test::run_test_in_process
     Summary Leaked 24.0 kiB total

(This was originally found using MiriLLI—we were using Valgrind as a smoke check at the time. Leaving this message here, since a link to this issue is included in our dataset.)

This issue is fixed when upgrading to a later version of tree-sitter.


[github] Error: Cannot find module 'github'

:~/leetcode$ leetcode push 106.construct-binary-tree-from-inorder-and-postorder-traversal.153319531.notac.cpp -vv
[TRACE] initializing all plugins
[TRACE] found plugin: cache=default
[TRACE] inited plugin: cache
[TRACE] found plugin: company=2017.12.18
[TRACE] inited plugin: company
[TRACE] found plugin: cpp.run=2017.07.29
[TRACE] inited plugin: cpp.run
[TRACE] found plugin: github=2018.03.24
[TRACE] inited plugin: github
[TRACE] found plugin: leetcode=default
[TRACE] inited plugin: leetcode
[TRACE] found plugin: retry=default
[TRACE] inited plugin: retry
[TRACE] found plugin: solution.discuss=2018.04.14
[TRACE] inited plugin: solution.discuss
[TRACE] missing plugins: 0
[DEBUG] cache hit: problems.json
[DEBUG] cache hit: 106.construct-binary-tree-from-inorder-and-postorder-traversal.algorithms.json
/usr/local/lib/node_modules/leetcode-cli/node_modules/yargs/yargs.js:1100
else throw err
^
Error: Cannot find module 'github'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Plugin.plugin.submitProblem (/usr/local/lib/node_modules/leetcode-cli/lib/plugins/github.js:29:19)
at /usr/local/lib/node_modules/leetcode-cli/lib/commands/submit.js:58:10
at /usr/local/lib/node_modules/leetcode-cli/lib/plugins/solution.discuss.js:81:45
at Plugin.plugin.getProblem (/usr/local/lib/node_modules/leetcode-cli/lib/plugins/cache.js:38:12)
at Plugin.plugin.getProblem (/usr/local/lib/node_modules/leetcode-cli/lib/plugins/solution.discuss.js:80:15)
at /usr/local/lib/node_modules/leetcode-cli/lib/core.js:95:15

I have tried -D and then -i, nothing changed.
On Wed, May 9, 2018, 10:22 AM skygragon<EMAIL_ADDRESS>wrote:

try to reinstall github plugin?
leetcode plugin -i github
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/skygragon/leetcode-cli-plugins/issues/12#issuecomment-387600024,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Aj0of1NcKBsjVUF0Svj7u90Izw5IuXJIks5twlLfgaJpZM4T2lfd
.

The log shows you are missing a 3rd party library that leetcode-cli needed, which is called "github" as well. Please check if it exists or not:
# ls /usr/local/lib/node_modules/leetcode-cli/node_modules/github/
LICENSE      README.md    lib          package.json

Weird that leetcode plugin -i github should always install this 3rd party library automatically...

I met the exact same problem.

Fixed, need to use sudo

@cosmozhang which version of npm do u use? Newer versions should not require sudo any more.

5.6

same error.  npm 6.9

I solved this problem by using "sudo leetcode plugin -i github"


Failing to reload properly after update.

On resume it checks for updates, sees updates and downloads them and then I get an error when it tries to reload.  After that it seems stuck with the old version.
The error is  "Failed to load webpage with error: Frame load interrupted"
I've done some digging around and see that webkit is generating the error, but dont understand what is causing it.
Anybody had this issue or have any ideas?

Can you provide steps with the clean project on how to reproduce this?


Minimal Java JDK requirements to needed to run the maven registry client lib

I have a java application that needs to integrate with the schema registry via the client library provided in Maven. The version I am planning to use is 0.3.0 but the java version the application is running on is 1.6. Is there a version of the client library that is compatible with 1.6

It requires JDK-1.8 or higher versions.


[WIP] Optimize remote grain get

Reading grain from '/etc/salt/grains' file directly is faster than using 'salt-call grains.get '.
Performance using salt-call
master:~ # time salt-call grains.get ceph-salt:execution:provisioned
local:
    True
real	0m5.560s
user	0m5.133s
sys	0m0.246s

Performance reading directly from file
master:~ # time python3 - <<EOF
> import salt.utils.data
> import yaml
> with open('/etc/salt/grains') as grains_file:
>     grains = yaml.full_load(grains_file)
> print(salt.utils.data.traverse_dict_and_list(grains, 'ceph-salt:execution:provisioned'))
> EOF
True
real	0m0.162s
user	0m0.149s
sys	0m0.013s

Fixes: https://github.com/ceph/ceph-salt/issues/223
Signed-off-by: Ricardo Marques<EMAIL_ADDRESS>

Codecov Report

Merging #230 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #230   +/-   ##
=======================================
  Coverage   76.87%   76.87%
=======================================
  Files          11       11
  Lines        2400     2400
=======================================
  Hits         1845     1845
  Misses        555      555

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 a853f43...2ecba3b. Read the comment docs.

Tested with 104 nodes:
master:~ # ceph-salt apply
...

master:~ # ceph orch host ls | grep -v HOST | wc -l
104


Backwards-compatible upgrade to Rack 3

The only thing blocking was that Rack 3 requires all lowercase characters in header keys.
Fixed some minor issues in the tests that popped up.

Previous concern about setting HTTP_X_FORWARDED_HOST header in the tests has been properly addressed. It can now be failed as expected.

Thanks! This draws my attention to Rack 3's absence in the CI matrix; I've addressed this in #66.

@vinnydiehl Thank you. Appreciate your work on this.


Loading Non-Angular jQuery plugins?

Alright, so I have installed fullPage.js and I can't seem to get it to work with this boilerplate. In main.js I have import fullpage from 'fullpage.js' and the js file is actually getting loaded, but when trying to create a directive for it, the fullpage() function is no where to be found. I've tried binding it to the element, I've even tried console logging the fullpage variable but nothing.
I have other jQuery plugins that I'm trying to load as well but my directives can't see them. How do I load non-Angular jQuery plugins so I can create directives and use them?
I also notice that I can't access jQuery $ anywhere.

Do you have a sample project we can look at?
are you shimming jQuery? you may need to shim all non angular scripts although before the move to es6 I was able to require mynonangularscript and have it attach to the global window object.
here's how I shimmed jquery before I removed it from my fork (depends on browserify-shim module)

If it's not shimmed in the latest version of this boilerplate then no. This is a new project.

If you upload a sample project showing what you are trying to do I can fork it and create a quick PR to example on how to pull it off if needed.

obviously jquery and angular is a bad idea... but I understand some people gotta do what they gotta do

https://github.com/adamcolejenkins/dotcom/tree/feature/portfolio
If jQuery and Angular are bad ideas, how does one use third party plugins?

porting them to angular.
long story short if you manipulate the dom with jquery; angular may not know about it unless you invoke a digest.
This post explains some of it.
angular uses jqlite and can use jquery to extend its dom searching capabilities but these should be invoked through angular not jquery directly.

Well I see fullPage.js has been ported so I tried using it and it still says can't find variable $ when trying to use the plugin.

yeah I saw that too, working on a quick PR to your project to show how to pull it off

Are you using the ported module?

this one?

Yes that's the one I found earlier.

On Nov 27, 2015, at 11:54 AM, Brett Striker<EMAIL_ADDRESS>wrote:
this one?
—
Reply to this email directly or view it on GitHub.


build: add Alex to check phrasing

Alex returns a lot of false negatives, so for now, this script is only added as a helper, not a strict check to use in the CI.
see https://github.com/get-alex/alex

After testing it, I can say Alex isn't that relevant, so using it via the VS Code extension is plenty enough.


refactor: make gpu ids unique

What does this PR do?
Fixes #8634
Check the uniqueness of  gpu ids. The backend doesn't support duplicate GPU.
Does your PR introduce any breaking changes? If yes, please list them.
None
Before submitting

[x] Was this discussed/approved via a GitHub issue? (not for typos and docs)
[x] Did you read the contributor guideline, Pull Request section?
[x] Did you make sure your PR does only one thing, instead of bundling different changes together?
[x] Did you make sure to update the documentation with your changes? (if necessary)
[x] Did you write any new necessary tests? (not for typos and docs)
[x] Did you verify new and existing tests pass locally with your changes?
[x] Did you list all the breaking changes introduced by this pull request?
[x] Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:

[x] Is this pull request ready for review? (if not, please submit in draft mode)
[x] Check that all items from Before submitting are resolved
[x] Make sure the title is self-explanatory and the description concisely explains the PR
[ ] Add labels and milestones (and optionally projects) to the PR so it can be classified

Did you have fun?
Make sure you had fun coding 🙃

Hello @nasnoisaac! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file pytorch_lightning/utilities/device_parser.py:

Line 91:1: W293 blank line contains whitespace
Line 194:1: E302 expected 2 blank lines, found 1


Support M1/2 - With GPU / Neural Engine acceleration

I don't know if it's even possible, but it would be cool and efficient to have it run on M1/2 with GPU or Neural Engine

Hi @100tomer,
Currently, whisper kernel does not support the GPU acceleration library for Apple, which is far beyond my capabilities.
However, I have learned that there is a project underway to address this issue.
As an alternative solution, I will release a light-weight version(#19) that will achieve satisfactory results by compressed audio and through OpenAI API integration.
This should be completed in the near future and included in version 3.1.

Hi @100tomer,
Currently, whisper kernel does not support the GPU acceleration library for Apple, which is far beyond my capabilities.
However, I have learned that there is a project underway to address this issue.
As an alternative solution, I will release a light-weight version(#19) that will achieve satisfactory results by compressed audio and through OpenAI API integration.
This should be completed in the near future and included in version 3.1.

Thanks, sounds great

it is actually not faster with GPU. there is a cpp version of Whisper which is also on GitHub. The author tested the GPU vs CPU and found it is close in terms of performence . his guess was the bandwidth is the limitation.

it is actually not faster with GPU. there is a cpp version of Whisper which is also on GitHub. The author tested the GPU vs CPU and found it is close in terms of performence . his guess was the bandwidth is the limitation.

Oh that's the ram bandwidth? Or the SSD bandwidth? Also does it use GPU only or the Neural Engine too?


iOS Flutter 2.10.3 got crash because of Fatal Exception: std::bad_alloc std::bad_alloc

Steps to Reproduce

67% of the users crashed when the app is in foreground.
100% of the users crashed on iOS 15.
The crash got reported to Firebase console.
I haven't found a way to reproduce it.

Expected results:
Actual results:
Fatal Exception: std::bad_alloc

crashed: io.worker.5
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000ca0328

Crashed: io.worker.5
0  Runner                         0x9a088 FIRCLSProcessRecordAllThreads + 393 (FIRCLSProcess.c:393)
1  Runner                         0x9a468 FIRCLSProcessRecordAllThreads + 424 (FIRCLSProcess.c:424)
2  Runner                         0x917a8 FIRCLSHandler + 34 (FIRCLSHandler.m:34)
3  Runner                         0x8bf5c __FIRCLSExceptionRecord_block_invoke + 215 (FIRCLSException.mm:215)
4  libdispatch.dylib              0x64094 _dispatch_client_callout + 16
5  libdispatch.dylib              0x46464 _dispatch_lane_barrier_sync_invoke_and_complete + 52
6  Runner                         0x8b6fc FIRCLSExceptionRecord + 219 (FIRCLSException.mm:219)
7  Runner                         0x8b3b4 FIRCLSTerminateHandler() + 279 (FIRCLSException.mm:279)
8  libc++abi.dylib                0x10274 std::__terminate(void (*)()) + 16
9  libc++abi.dylib                0x12b94 __cxa_get_exception_ptr + 30
10 libc++abi.dylib                0x12b54 __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*) + 130
11 libc++abi.dylib                0x128a4 operator new(unsigned long, std::nothrow_t const&) + 90
12 Flutter                        0x6b2dc (missing UUID be105c8b7c053a8ba51f83e291732357)
13 Flutter                        0xda4ec (missing UUID be105c8b7c053a8ba51f83e291732357)
14 Flutter                        0xda9b0 (missing UUID be105c8b7c053a8ba51f83e291732357)
15 Flutter                        0xa2060 (missing UUID be105c8b7c053a8ba51f83e291732357)
16 Flutter                        0x17a4fc (missing UUID be105c8b7c053a8ba51f83e291732357)
17 Flutter                        0x83128 (missing UUID be105c8b7c053a8ba51f83e291732357)
18 Flutter                        0x4ae678 (missing UUID be105c8b7c053a8ba51f83e291732357)
19 Flutter                        0x4abc3c (missing UUID be105c8b7c053a8ba51f83e291732357)
20 Flutter                        0x2f95fc (missing UUID be105c8b7c053a8ba51f83e291732357)
21 libsystem_pthread.dylib        0x3348 _pthread_start + 116
22 libsystem_pthread.dylib        0x1948 thread_start + 8

Code sample

Logs

Fatal Exception: std::bad_alloc

crashed: io.worker.5
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000ca0328

Crashed: io.worker.5
0  Runner                         0x9a088 FIRCLSProcessRecordAllThreads + 393 (FIRCLSProcess.c:393)
1  Runner                         0x9a468 FIRCLSProcessRecordAllThreads + 424 (FIRCLSProcess.c:424)
2  Runner                         0x917a8 FIRCLSHandler + 34 (FIRCLSHandler.m:34)
3  Runner                         0x8bf5c __FIRCLSExceptionRecord_block_invoke + 215 (FIRCLSException.mm:215)
4  libdispatch.dylib              0x64094 _dispatch_client_callout + 16
5  libdispatch.dylib              0x46464 _dispatch_lane_barrier_sync_invoke_and_complete + 52
6  Runner                         0x8b6fc FIRCLSExceptionRecord + 219 (FIRCLSException.mm:219)
7  Runner                         0x8b3b4 FIRCLSTerminateHandler() + 279 (FIRCLSException.mm:279)
8  libc++abi.dylib                0x10274 std::__terminate(void (*)()) + 16
9  libc++abi.dylib                0x12b94 __cxa_get_exception_ptr + 30
10 libc++abi.dylib                0x12b54 __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*) + 130
11 libc++abi.dylib                0x128a4 operator new(unsigned long, std::nothrow_t const&) + 90
12 Flutter                        0x6b2dc (missing UUID be105c8b7c053a8ba51f83e291732357)
13 Flutter                        0xda4ec (missing UUID be105c8b7c053a8ba51f83e291732357)
14 Flutter                        0xda9b0 (missing UUID be105c8b7c053a8ba51f83e291732357)
15 Flutter                        0xa2060 (missing UUID be105c8b7c053a8ba51f83e291732357)
16 Flutter                        0x17a4fc (missing UUID be105c8b7c053a8ba51f83e291732357)
17 Flutter                        0x83128 (missing UUID be105c8b7c053a8ba51f83e291732357)
18 Flutter                        0x4ae678 (missing UUID be105c8b7c053a8ba51f83e291732357)
19 Flutter                        0x4abc3c (missing UUID be105c8b7c053a8ba51f83e291732357)
20 Flutter                        0x2f95fc (missing UUID be105c8b7c053a8ba51f83e291732357)
21 libsystem_pthread.dylib        0x3348 _pthread_start + 116
22 libsystem_pthread.dylib        0x1948 thread_start + 8

This is crashing in Firebase code, so needs to be reported to the Firebase developers.


Get an attribute with Object(DS-DN) syntax

Hi,
I'm trying to get some extra attributes in result of Get-ADDBAccount -All.
attributes with String(Unicode) syntax added easily,
but I can't change source code to get attributes with Object(DS-DN) syntax like "Member".
what should I do?

The C# code we use for something similar is:
(for multi-valued attributes you need to iterate over byte[][] and parse each byte[] to DsName)
`
    public DsName(byte[] binaryVal)
    {
        int currPos = 0;
        StructLength = BitConverter.ToUInt32(binaryVal, currPos);
        currPos = 4;
        _sidLength = BitConverter.ToUInt32(binaryVal.Skip(currPos).Take(4).ToArray(), 0);
        currPos += 4;

        byte[] guidBytes = binaryVal.Skip(currPos).Take(16).ToArray();
        ObjectGuid = new Guid(guidBytes);
        currPos += 16;

        // The size of this field is exactly 28 bytes, regardless of the value of SidLen,
        // which specifies how many bytes in this field are used.
        byte[] sidBytes = binaryVal.Skip(currPos).Take(28).ToArray();
        Sid = (_sidLength > 0) ? new SecurityIdentifier(sidBytes, 0) : null;
        currPos += 28;

        _nameLength = BitConverter.ToUInt32(binaryVal.Skip(currPos).Take(4).ToArray(), 0);
        currPos += 4;

        DistinguishedName = Encoding.Unicode.GetString(binaryVal.Skip(currPos).Take((int)(_nameLength*2)).ToArray());
    }

`


Problems with submodules in gh-pages

I have currently some problems with the submodules on gh-pages:
Your site is having problems building: The submodule registered for ./menu could not be cloned. Make sure it's using https:// and that it's a public repo. For more information, see https://help.github.com/articles/page-build-failed-invalid-submodule.
But the submodules config looks correct to me: https://github.com/dalgaaf/openstack-summit-barcelona/blob/gh-pages/.gitmodules
Did you see such a problem or is it a github issue?

could only solve it for now by removing the menu from subprojects ... need to investigate later. It was probably an issue of adding reveal.js-plugins


Install Slack app on the repository

Hello.
We would like to get notifications of upcoming Bitcanna releases.
It would be a massive help if we could do it through Github's Slack integration.
Could you kindly install it?
Thank you

Hello, is now enabled. Thanks by your support.


Refactor tx builder future

This changes the TxBuilder api from returning an Either to returning a Future. This makes more sense in the fact that signing process can be slow and cumbersome at times. Some signing procedures may rely on user input (hardware wallets). We do not want to wait halt the world for operations like this.

Coverage decreased (-0.3%) to 89.991% when pulling 8d88e345b79b79af1437b19464e0872341aa2f80 on Christewart:refactor_tx_builder_future into 74800e1dbc533a2d1965aed5ff116253b11d5e71 on bitcoin-s:master.


No plugins seen by Ableton 11 on M1 Mac on Ventura 13.2

I've tried a couple different versions, including the latest at this point. Tried all the permission changes/removing attributes. They never show up as usable plugins.

Kinda looking like this project is dead.
Real shame...cause it was amazing.

UPDATE:
I was actually able to get the specific versions here running!...in case anyone else needs the link and ends up here:
https://github.com/RomanKubiak/ctrlr/discussions/521#discussioncomment-5273247

This is an issue that some of my users are experiencing.
I'm producing panels with the old 5.3.198 but at this stage I have not been able to identify what the issue is for some plugins to not show up.
Have you been using the AU version or VST version of the plugin?
About the Ctrlr project, it is not dead. I'm using the old versions 5.3.201/198 and I can do very complex stuff with it.
Still waiting seeing someone using all the possibilities.
So, it is a matter of taking the time to learn, to develop and to use it.

Hi! I tried using AU, VST, and VST3 with the other version and I couldn't get any to work. It does seem like I found a version that will work.
I'm VERY glad the project isn't dead, develoment-wise. I really unlocks my hardware synths in a context that makes them very easy to integrate with my DAW, and it's kinda crucial to what I do now.


Dockerhub image tags naming inconsistency

Hi,
I see on dockerhub that the image for version r0.8 is the tag 0.8.0 but for version r0.9 is r0.9. It would be nice if they were consistent so you don't have to look up every time you want to update.

Yes. r0.9 should be 0.9.0. We should update our scripts.

I have fixed the process generating our docker images, and rerunning our release script for 0.9.0.
Sorry for taking so long to fix this simple issue. I will Close the issue once I verify the images are uploaded with the correct tags.

Thanks!


formatting master

Please read contributing guidelines and remove this line.

#10583  👈 (View in Graphite)
master

This stack of pull requests is managed by Graphite. Learn more about stacking.


Add hosts.ssh_port option

Fixes #1062
Fixes #1072
(and will need to be reimplemented in #1044)
Adds ssh_port option to host options:
hosts:
  - address: <IP_ADDRESS>
    ssh_port: 2022

And bastion options:
hosts:
  - address: <IP_ADDRESS>
    ssh_port: 22
    bastion:
      address: <IP_ADDRESS>
      ssh_port: 20202

Refactored the Net::SSH::Gateway from SSH::Client to Configuration::Bastion because bastion.host.ssh.gateway opens an extra SSH connection due to .tap(&:connect).
TODO: docs pr

Reimplemented in #1090


[FEAT] All Aggie Expert Records have a last modified date enabling search for Modified Since

Enable searches for objects that are new or have been modified since a specified date.

If you look at the kibana indexes, you will see that Justin's fin import tool adds a _ parameter for system components.  One component of that is the _.updated field.  Where I get confused about this, is that it's part of the @graph[] component only, were I imagine we'd want that at the document level.  Also, it's not on every node only the root node (not sure how that's described) I think we want  tp promoate that to the document, and update it whenever enay node is updated.  We can see about updating fin, or rewriting the function that puts the docs in.

@rakunkel-ucd can you try and track down where that's added in the fin code?

The solution is to add a ingest pipeline to the ES instance that can be used with all indexed to add a "modified-date" field at the document level. It can be added using a HTTP POST. Note that the ingest pipeline must be added BEFORE any indexes are created and before any documents are ingested.
The method to create the ingest pipeline is to define it as part of the docker-compose.yaml based deployment. An init cURL script script is used to POST the pipeline when the ES instance is ready.


Remove XML declaration from HTML files

Describe the bug
.html files no longer have to have the xml declaration at the beginning of the file, it gives a warning.
To Reproduce
Affected versions: V17

Already solved


Shortbow is still not leveling with shooting.

Modpack: Sky Factory 4
Version of said modpack: 4.2.4
My two arrows are "adept" and "accustomed", due to me using them.
However, my shortbow is still on "clumsy", and has 18xp / 500 (I got 18 xp because I punched some mobs with it)
My friend, who has a crossbow, does have his crossbow leveled up.
Please, can I either have a way to fix this, or an explanation of why this occurs?

^ Image for the description of the mod

Duplicate of #88


⚠ Bofrost.es has degraded performance

In 096ee13, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 2776 ms

Resolved: Bofrost.es performance has improved in 3f8dd03 after 29 minutes.


uv export does not include workspace packages

UV version: 0.5.13
I'm trying to switch Poetry to UV, and I've encountered a difference in behaviour between poetry export and uv export. I have a project laid out like this:
.
├── apps
│   ├── lib-1
│   │   ├── README.md
│   │   ├── hello.py
│   │   ├── pyproject.toml
│   │   └── uv.lock
│   └── lib-2
│       ├── README.md
│       ├── hello.py
│       └── pyproject.toml
├── pyproject.toml
└── uv.lock

With lib-1 and lib-2 listed as dependencies in the root pyproject.toml:
[project]
name = "uv-test"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
    "lib-1",
    "lib-2",
]

[tool.uv.workspace]
members = ["apps/lib-1", "apps/lib-2"]

[tool.uv.sources]
lib-1 = { workspace = true }
lib-2 = { workspace = true }

With a similar layout, poetry export will include the sub-packages as path dependencies in the generated requirements file.  I have a Docker workflow that uses this to install packages into a directory using pip install --target. However, uv export does not do this, it only includes the dependencies of the workspace members.
I'm not sure if this is intended behaviour - the documentation for --no-emit-workspace seems to imply that the workspace packages themselves should be included, not just the dependencies.

Do your packages have build systems defined? Otherwise, they're considered virtual: https://docs.astral.sh/uv/concepts/projects/config/#build-systems


Look into HTTP/2.0 support

Refs #5

Currently, only HTTP/1.1 and HTTP/1.0 are supported, I'd love to see anybody picking up HTTP/2.0 support :+1: :tada:

@clue I'm looking into this though keep-alive support first because it's a stepping stone to HTTP/2.0

I have to close this one as per #152 now that future development will focus on https://github.com/reactphp/http instead.
See also reactphp/http#99.


Update travis to build multiples versions

@jcrombez Merge after php version folder creation on single master branch

Build are KO as folder does not exist


Markdown extensions won't work after installation until window reload

Install bierner.markdown-preview-github-styles on github.dev
Preview markdown
[ ] is not rendered until window reload

I didn't see a "reload" button for the markdown extension after installing it so I would expect it to work immediately.

We support this for markdown css and script extensions. However it's currently not supported for syntax extensions (which is needed to render - [ ]


Docker Hub image not updated

Hello
Would you consider putting an updated Docker image on Docker Hub? It seems neither https://hub.docker.com/r/wettyoss/wetty or https://hub.docker.com/r/butlerx/wetty has the latest version.
Thanks.

Just notice the same thing.
It's the only tool I can find which wasn't abandoned only to find out, that the dockerhub images indeed are abandoned.

This is because docker hub has begun limiting free auto builds ill likely need to add a gh action to auto build and push an image

Alright, we are now building and publishing images for dockerhub and ghcr on each commit to main


Add live-updating of servers + status

As I'm building a live-dashboard for servers right now, I am in need of a live-updating method whereby the latest changes are mirrored from Aternos. Currently, I use a login function like this (working):
def update():
    global session, servers

    try:
        session = Client.from_credentials(credentials['username'], credentials['password'])
        servers = session.list_servers()
    except:
        raise Exception('Login information incorrect, or not given. Please set your credentials in \'credentials.py\'')

However, in the future it would be nice to have this built-in, perhaps using modified save and recall session functions.

socket = server.wss()

This is similar to what I was looking for, however, I am needing to listen on the websockets of every server within my user. How could I go about dynamically adding/listening on these websockets?
The adding of them should be easy enough with a for loop, but dynamically creating the decorators could be difficult.

Any updates on this, I was thinking you may be able to achieve it with setattr(). The easiest method may be to use the decorator like socket.wssreceiver(atwss.Streams.status)(updateFunc) within the setattr somehow. Here's a Stack link that seems helpful https://stackoverflow.com/questions/33134609/python-setattr-for-dynamic-method-creator-with-decorator , but I'm still confused since I don't know the system design overall that well.

I added *args argument to the decorator in 1.0.5.
Here's the example code for your case:
# your function must be a coroutine
async def update_func(msg, args):
    server_num = args[0]
    user.servers[server_num]._info = msg
    dashboard.update_info()

# num = index, s = AternosServer object
for num, s in enumerate(user.servers):
    socket = s.wss()
    # num will be passed to update_func
    socket.wssreceiver(atwss.Streams.status, num)(update_func)

@DarkCat09 , I'm getting an error testing the code you sent:
socket.wssreceiver(atwss.Streams.status, i)(update)
    TypeError: AternosWss.wssreceiver() takes 2 positional arguments but 3 were given

Here is the code I am using for it:
async def update(data, *args):
    global PLAYERS

    server = servers[args[0]]
    server._info = data

    for server in servers:
        PLAYERS = PLAYERS + server._info['players']
        status = 'offline' if server._info['status'] == 0 else 'online'
        LIST[server.subdomain] = {
            'status': status,
            'domain': server.domain,
            'port': server.port,
            'online': str(server._info['players'])+"/"+str(server._info['slots']),
            'version': server.version
        }

try:
    session = Client.from_credentials(credentials['username'], credentials['password'])
    servers = session.list_servers()

    for i, server in enumerate(servers):
        socket = server.wss()
        socket.wssreceiver(atwss.Streams.status, i)(update)

except:
    raise Exception('Login information incorrect, or not given. Please set your credentials in \'credentials.py\'')

pip install -U python-aternos

Looks like you didn't update the module.

pip install -U python-aternos

That did it; Didn't realize this feature was in a new version!
Now, I don't get an error, but I never receive any data from the websocket. Do I need to call asyncio.run() on my update function to start it?

Here's my code for reference. The update() function is never reached (I tested with print statements) and manually toggling the server state.
async def update(data, *args):
    # get server number, and fill with
    # changed data
    server = db['servers'][args[0]]
    server._info = data

try:
    # atconnect.REQHEADERS = {}
    # initialise session DB
    db = jsonDB()

    session = Client.from_credentials(credentials['username'], credentials['password'])
    db['servers'] = session.list_servers()

    for i, server in enumerate(db['servers']):
        # update db with defaults.
        status = 'offline' if server._info['status'] == 0 else 'online'
        db['server_data'][server.subdomain] = {'status': status,'domain': server.domain,'port': server.port,'online': str(server._info['players'])+"/"+str(server._info['slots']),'version': server.version}

        # subscribe to wss sockets for each server
        # for live updates
        socket = server.wss()
        socket.wssreceiver(atwss.Streams.status, i)(update)

except:
    raise Exception('Login information incorrect, or not given. Please set your credentials in \'credentials.py\'')

Oh, I'm sorry, I forgot about:
await socket.connect()

Thank you, I'll test it out soon. Can't believe I didn't see that either!

wssreceiver decorator is just for saving your function as a receiver in AternosWss object. connect establishes a websocket connection with Aternos and runs these functions.

import asyncio
async def update(data, *args):
    global PLAYERS

    server = servers[args[0]]
    server._info = data

    for server in servers:
        PLAYERS = PLAYERS + server.players_count
        status = server.status
        LIST[server.subdomain] = {
            'status': status,
            'domain': server.domain,
            'port': server.port,
            'online': str(server.players_count)+"/"+str(server.slots),
            'version': server.version
        }

try:
    session = Client.from_credentials(credentials['username'], credentials['password'])
    servers = session.list_servers()
    asyncio.run(set_receivers())

except:
    raise Exception('Login information incorrect, or not given. Please set your credentials in \'credentials.py\'')

async def set_receivers():
    for i, server in enumerate(servers):
        socket = server.wss()
        socket.wssreceiver(atwss.Streams.status, i)(update)
        await socket.connect()

For some reason the websocket still never fires. The websockets are being added correctly, but the update() function never receives data. Here's my code:
# conntect to websockets
async def set_receivers():
    for i, server in enumerate(db['servers']):
        status = 'offline' if server._info['status'] == 0 else 'online'
        db['server_data'][server.subdomain] = {'status': status,'domain': server.domain,'port': server.port,'online': str(server._info['players'])+"/"+str(server._info['slots']),'version': server.version}

        socket = server.wss()
        socket.wssreceiver(atwss.Streams.status, i)(update)
        await socket.connect()

# update when we receive data from websockets
async def update(data, *args):
    # get server number, and fill with
    # changed data
    server = db['servers'][args[0]]

    if server._info['status'] == 0 and data['status'] != 0:
        # server booted, email mailing list
        pass

    server._info = data

if __name__ == "app.views":
    # initialise session DB and persistent DB
    db = jsonDB()
    pdb = persistentDB("emails.sqlite")

    try:
        # atconnect.REQHEADERS = {}

        session = Client.from_credentials(credentials['username'], credentials['password'])
        db['servers'] = session.list_servers()
        asyncio.run(set_receivers())
    except:
        raise Exception('Login information incorrect, or not given. Please set your credentials in \'credentials.py\'')

@DarkCat09 , I've been working on figuring out why the listener never fires, but have been having trouble. Before I start modifying the library itself, do you see anything wrong in my above code?

@flancast90, try to change await socket.connect() in set_receivers to asyncio.gather(socket.connect())
It's an AsyncIO feature which I can't understand. Just use gather instead of await.

@flancast90, try to change await socket.connect() in set_receivers to asyncio.gather(socket.connect()) It's an AsyncIO feature which I can't understand. Just use gather instead of await.

ok, I'll test this out now and let you know of the reaults

Nope @DarkCat09 , the update() loop still doesn't fire. Maybe you could make a new StackOverflow question and see if anyone knows how to fix it.

        socket = server.wss()
        socket.wssreceiver(atwss.Streams.status, i)(update)
        await socket.connect()

Maybe, this will work:
socket = server.wss()
@socket.wssreceiver(atwss.Streams.status, i)
async def update(msg, args):
    # you should move the "update" function here
await socket.connect()

I don't know how much can this code take RAM for example, if a user has 5 servers in his account.
But this should work. I always use @decorator(args) newline def func: instead of a hard-readable decorator(args)(func)

Compare your code to the example. await loop() is just to keep the script running.

You are using flask, right?
Web server might block async tasks.
Try to use it asynchronously.
Also, could you give me a detailed log? Add this two lines to the beginning of your python-script.
import logging
logging.basicConfig(level=logging.DEBUG)

You are using flask, right?
Web server might block async tasks.
Try to use it asynchronously.
Also, could you give me a detailed log? Add this two lines to the beginning of your python-script.

import logging

logging.basicConfig(level=logging.DEBUG)

Good idea, I didn't even think that Flask could be blocking it, but that would make sense. I'll start the logger, although I'm not sure the problem is in my file.

import logging
logging.basicConfig(level=logging.DEBUG)

The only logs are that it connected to cloudflare successfully. Nothing related to websockets in there...

@socket.wssreceiver(atwss.Streams.status, i)

Yes, this is the ideal way. However, this only will listen to one server. I need to listen on all the servers, which means that a standard decorator won't work

@DarkCat09 , I noticed in the example that you start the server before connecting the websocket. Does the websocket only open once the server is started? If so, maybe the code was all right, I just needed to start each server beforehand.

@DarkCat09 , I've begun messing with the library source. Could you explain what AternosWss.connect.streamsfunc()does? I've noticed that it's called whenever thewssreceiverdecorator is created, and thatstrm.stream`` has no value at first. Is this a function used later to parse messages, or should it be getting some sort of data when it first fires?
Here's a log of the wssreceiver args that the program receives when my file first creates the decorator. I can confirm that the decorator calls the function correctly.
{<Streams.status: (0, None)>: (<function update at 0x000002422E06C3A0>, (0,))}
{<Streams.status: (0, None)>: (<function AternosWss.connect.<locals>.confirmfunc at 0x000002422E1A52D0>, ())}
{<Streams.status: (0, None)>: (<function AternosWss.connect.<locals>.streamsfunc at 0x000002422E1A5360>, ())}

Does this give you any ideas of what's going wrong?

Hello. I'm sorry for not answering.
Let me explain what is streamsfunc used for.
According to the websocket messages from the web site, Aternos can't receive any data from a stream (e.g. console) until it requests this stream via the special message to the websocket server: {"stream":"console","type":"start"} on which the server responses with: {"type":"connected"}
Also, there are RAM (used heap) and TPS (ticks per second) streams which must be enabled before tryng to get information.
Enabling the stream for listening the server status is not needed, these data is sent by default, so there's None value in the second item of the stream type (<Streams.status: (0, None)>).

[darkcat09@dc09pc examples]$ python websocket_args_example.py
Username: world35g
Password:
Show detailed logs? (y/n) Y
DEBUG:root:Requesting(GET)https://aternos.org/go/
DEBUG:root:headers={}
DEBUG:root:params={}
DEBUG:root:data={}
DEBUG:root:req-cookies={'ATERNOS_SESSION': ''}
DEBUG:root:session-cookies=<RequestsCookieJar[]>
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): aternos.org:443
DEBUG:urllib3.connectionpool:https://aternos.org:443 "GET /go/ HTTP/1.1" 200 None
INFO:root:GET completed with 200 status
DEBUG:root:Requesting(POST)https://aternos.org/panel/ajax/account/login.php
DEBUG:root:headers={'X-Requested-With': 'XMLHttpRequest'}
DEBUG:root:params={'TOKEN': '3WKyxcMWpVyqjFSyOZt3', 'SEC': '198ju8owioj00000:8xuncgtztlb00000'}
DEBUG:root:data={'user': 'world35g', 'password': '0efdb2cd6b36d5e54d0e3c161e567a4e'}
DEBUG:root:req-cookies={'ATERNOS_SESSION': ''}
DEBUG:root:session-cookies=<RequestsCookieJar[<Cookie ATERNOS_LANGUAGE=en for aternos.org/>, <Cookie ATERNOS_SEC_198ju8owioj00000=8xuncgtztlb00000 for aternos.org/>]>
DEBUG:urllib3.connectionpool:https://aternos.org:443 "POST /panel/ajax/account/login.php?TOKEN=3WKyxcMWpVyqjFSyOZt3&SEC=198ju8owioj00000%3A8xuncgtztlb00000 HTTP/1.1" 200 None
INFO:root:POST completed with 200 status
DEBUG:root:Requesting(GET)https://aternos.org/servers/
DEBUG:root:headers={}
DEBUG:root:params={}
DEBUG:root:data={}
DEBUG:root:req-cookies={'ATERNOS_SESSION': 'KaNd0QWFDdH8r562Zqbr3H8ZhpOfGoRRQl8uj8IBwZPOGUH2vnSwMPe7MkpQLYX36ixwIdB7XU5HC0q16uxe4Ss5B0IyoGFCje8a'}
DEBUG:root:session-cookies=<RequestsCookieJar[<Cookie ATERNOS_LANGUAGE=en for aternos.org/>, <Cookie ATERNOS_SEC_198ju8owioj00000=8xuncgtztlb00000 for aternos.org/>]>
DEBUG:urllib3.connectionpool:https://aternos.org:443 "GET /servers/ HTTP/1.1" 200 None
INFO:root:GET completed with 200 status
DEBUG:root:Requesting(GET)https://aternos.org/panel/ajax/status.php
DEBUG:root:headers={'X-Requested-With': 'XMLHttpRequest'}
DEBUG:root:params={'TOKEN': '3WKyxcMWpVyqjFSyOZt3', 'SEC': '198ju8owioj00000:8xuncgtztlb00000'}
DEBUG:root:data={}
DEBUG:root:req-cookies={'ATERNOS_SERVER': 'LsyDGWcthimWnFVH', 'ATERNOS_SESSION': 'KaNd0QWFDdH8r562Zqbr3H8ZhpOfGoRRQl8uj8IBwZPOGUH2vnSwMPe7MkpQLYX36ixwIdB7XU5HC0q16uxe4Ss5B0IyoGFCje8a'}
DEBUG:root:session-cookies=<RequestsCookieJar[<Cookie ATERNOS_LANGUAGE=en for aternos.org/>, <Cookie ATERNOS_SEC_198ju8owioj00000=8xuncgtztlb00000 for aternos.org/>]>
DEBUG:urllib3.connectionpool:https://aternos.org:443 "GET /panel/ajax/status.php?TOKEN=3WKyxcMWpVyqjFSyOZt3&SEC=198ju8owioj00000%3A8xuncgtztlb00000 HTTP/1.1" 200 None
INFO:root:GET completed with 200 status
DEBUG:asyncio:Using selector: EpollSelector
DEBUG:root:Requesting(GET)https://aternos.org/panel/ajax/start.php
DEBUG:root:headers={'X-Requested-With': 'XMLHttpRequest'}
DEBUG:root:params={'headstart': 0, 'TOKEN': '3WKyxcMWpVyqjFSyOZt3', 'SEC': '198ju8owioj00000:8xuncgtztlb00000'}
DEBUG:root:data={}
DEBUG:root:req-cookies={'ATERNOS_SERVER': 'LsyDGWcthimWnFVH', 'ATERNOS_SESSION': 'KaNd0QWFDdH8r562Zqbr3H8ZhpOfGoRRQl8uj8IBwZPOGUH2vnSwMPe7MkpQLYX36ixwIdB7XU5HC0q16uxe4Ss5B0IyoGFCje8a'}
DEBUG:root:session-cookies=<RequestsCookieJar[<Cookie ATERNOS_LANGUAGE=en for aternos.org/>, <Cookie ATERNOS_SEC_198ju8owioj00000=8xuncgtztlb00000 for aternos.org/>]>
DEBUG:urllib3.connectionpool:https://aternos.org:443 "GET /panel/ajax/start.php?headstart=0&TOKEN=3WKyxcMWpVyqjFSyOZt3&SEC=198ju8owioj00000%3A8xuncgtztlb00000 HTTP/1.1" 200 None
INFO:root:GET completed with 200 status
DEBUG:websockets.client:= connection is CONNECTING
DEBUG:websockets.client:> GET /hermes/ HTTP/1.1
DEBUG:websockets.client:> Host: aternos.org
DEBUG:websockets.client:> Origin: https://aternos.org
DEBUG:websockets.client:> Upgrade: websocket
DEBUG:websockets.client:> Connection: Upgrade
DEBUG:websockets.client:> Sec-WebSocket-Key: KsKFOIcs6rHRC1lcEyfqUw==
DEBUG:websockets.client:> Sec-WebSocket-Version: 13
DEBUG:websockets.client:> Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits
DEBUG:websockets.client:> Host: aternos.org
DEBUG:websockets.client:> User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36 OPR/85.0.4341.47
DEBUG:websockets.client:> Cookie: ATERNOS_SESSION=KaNd0QWFDdH8r562Zqbr3H8ZhpOfGoRRQl8uj8IBwZPOGUH2vnSwMPe7MkpQLYX36ixwIdB7XU5HC0q16uxe4Ss5B0IyoGFCje8a; ATERNOS_SERVER=LsyDGWcthimWnFVH
DEBUG:websockets.client:< HTTP/1.1 101 Switching Protocols
DEBUG:websockets.client:< Date: Fri, 17 Jun 2022 08:21:45 GMT
DEBUG:websockets.client:< Connection: upgrade
DEBUG:websockets.client:< upgrade: websocket
DEBUG:websockets.client:< sec-websocket-accept: 8DusS1Ao/UvZr3JYmjJh775b6po=
DEBUG:websockets.client:< CF-Cache-Status: DYNAMIC
DEBUG:websockets.client:< Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
DEBUG:websockets.client:< Strict-Transport-Security: max-age=15552000; includeSubDomains; preload
DEBUG:websockets.client:< X-Content-Type-Options: nosniff
DEBUG:websockets.client:< Server: cloudflare
DEBUG:websockets.client:< CF-RAY: 71ca5f9d7c4d7a6d-DME
DEBUG:websockets.client:= connection is OPEN
DEBUG:websockets.client:< TEXT '{"type":"ready","data":"LsyDGWcthimWnFVH"}' [42 bytes]
DEBUG:websockets.client:< TEXT '{"type":"queue_reduced","message":"{\\"queue\\"...":37,\\"maxtime\\":3}"}' [77 bytes]
DEBUG:websockets.client:< TEXT '{"type":"queue_reduced","message":"{\\"queue\\"...":23,\\"maxtime\\":3}"}' [77 bytes]
DEBUG:websockets.client:< TEXT '{"type":"queue_reduced","message":"{\\"queue\\"...":35,\\"maxtime\\":3}"}' [77 bytes]
DEBUG:websockets.client:< TEXT '{"type":"queue_reduced","message":"{\\"queue\\"...":34,\\"maxtime\\":3}"}' [77 bytes]
DEBUG:websockets.client:< TEXT '{"type":"queue_reduced","message":"{\\"queue\\"...":29,\\"maxtime\\":3}"}' [77 bytes]
DEBUG:websockets.client:< TEXT '{"type":"queue_reduced","message":"{\\"queue\\"...":23,\\"maxtime\\":3}"}' [77 bytes]
DEBUG:websockets.client:< TEXT '{"type":"queue_reduced","message":"{\\"queue\\"...":37,\\"maxtime\\":3}"}' [77 bytes]
DEBUG:websockets.client:< TEXT '{"type":"queue_reduced","message":"{\\"queue\\"...":34,\\"maxtime\\":2}"}' [77 bytes]
DEBUG:websockets.client:< TEXT '{"type":"queue_reduced","message":"{\\"queue\\"...":36,\\"maxtime\\":2}"}' [77 bytes]
DEBUG:websockets.client:< TEXT '{"type":"queue_reduced","message":"{\\"queue\\"...":38,\\"maxtime\\":2}"}' [77 bytes]
DEBUG:websockets.client:< TEXT '{"type":"queue_reduced","message":"{\\"queue\\"...":35,\\"maxtime\\":2}"}' [77 bytes]
DEBUG:websockets.client:< TEXT '{"type":"queue_reduced","message":"{\\"queue\\"...":37,\\"maxtime\\":2}"}' [77 bytes]
DEBUG:websockets.client:< TEXT '{"type":"queue_reduced","message":"{\\"queue\\"...":34,\\"maxtime\\":3}"}' [77 bytes]
DEBUG:websockets.client:< TEXT '{"type":"queue_reduced","message":"{\\"queue\\"...":35,\\"maxtime\\":3}"}' [77 bytes]
DEBUG:websockets.client:< TEXT '{"type":"queue_reduced","message":"{\\"queue\\"...":32,\\"maxtime\\":3}"}' [77 bytes]
DEBUG:websockets.client:< TEXT '{"type":"queue_reduced","message":"{\\"queue\\"...":29,\\"maxtime\\":3}"}' [77 bytes]
DEBUG:websockets.client:< TEXT '{"type":"queue_reduced","message":"{\\"queue\\"...":23,\\"maxtime\\":2}"}' [77 bytes]
DEBUG:websockets.client:< TEXT '{"type":"queue_reduced","message":"{\\"queue\\"...":36,\\"maxtime\\":2}"}' [77 bytes]
DEBUG:websockets.client:< TEXT '{"type":"queue_reduced","message":"{\\"queue\\"...":38,\\"maxtime\\":2}"}' [77 bytes]
DEBUG:websockets.client:< TEXT '{"type":"queue_reduced","message":"{\\"queue\\"...":34,\\"maxtime\\":2}"}' [77 bytes]
DEBUG:websockets.client:< TEXT '{"type":"queue_reduced","message":"{\\"queue\\"...":35,\\"maxtime\\":2}"}' [77 bytes]
DEBUG:websockets.client:< TEXT '{"type":"queue_reduced","message":"{\\"queue\\"...":38,\\"maxtime\\":2}"}' [77 bytes]
DEBUG:websockets.client:< TEXT '{"type":"queue_reduced","message":"{\\"queue\\"...":38,\\"maxtime\\":3}"}' [77 bytes]
DEBUG:websockets.client:< TEXT '{"type":"queue_reduced","message":"{\\"queue\\"...":35,\\"maxtime\\":3}"}' [77 bytes]
DEBUG:websockets.client:< TEXT '{"type":"status","message":"{\\"brand\\":\\"ate...ull,\\"port\\":null}}"}' [818 bytes]
DEBUG:websockets.client:< TEXT '{"type":"status","message":"{\\"brand\\":\\"ate...\"<IP_ADDRESS>\\"}}"}' [896 bytes]
DEBUG:root:Enabling console stream
DEBUG:websockets.client:> TEXT '{"stream": "console", "type": "start"}' [38 bytes]
DEBUG:websockets.client:< TEXT '{"type":"connected"}' [20 bytes]
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"started"}' [37 bytes]
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"Start...ecraft.server.Main\\r"}' [80 bytes]
Server 1 received Starting net.minecraft.server.Main
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...ptimized datafixer\\r"}' [106 bytes]
Server 1 received [12:22:02] [ServerMain/INFO]: Building unoptimized datafixer
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...m\', name=\'PROD\'\\r"}' [279 bytes]
Server 1 received [12:22:04] [ServerMain/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
DEBUG:websockets.client:% sending keepalive ping
DEBUG:websockets.client:> PING fa e5 53 8e [binary, 4 bytes]
DEBUG:websockets.client:< PONG fa e5 53 8e [binary, 4 bytes]
DEBUG:websockets.client:% received keepalive pong
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...: Loaded 7 recipes\\r"}' [92 bytes]
Server 1 received [12:22:09] [ServerMain/INFO]: Loaded 7 recipes
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2... 1179 advancements\\r"}' [100 bytes]
Server 1 received [12:22:09] [ServerMain/INFO]: Loaded 1179 advancements
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...o minecraft:normal\\r"}' [142 bytes]
Server 1 received [12:22:11] [ServerMain/WARN]: Failed to parse level-type default, defaulting to minecraft:normal
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...erver version 1.19\\r"}' [117 bytes]
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...Loading properties\\r"}' [97 bytes]
Server 1 received [12:22:11] [Server thread/INFO]: Starting minecraft server version 1.19
Server 1 received [12:22:11] [Server thread/INFO]: Loading properties
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...ame type: SURVIVAL\\r"}' [106 bytes]
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...Generating keypair\\r"}' [97 bytes]
Server 1 received [12:22:11] [Server thread/INFO]: Default game type: SURVIVAL
Server 1 received [12:22:11] [Server thread/INFO]: Generating keypair
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2... server on *:15172\\r"}' [115 bytes]
Server 1 received [12:22:11] [Server thread/INFO]: Starting Minecraft server on *:15172
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...epoll channel type\\r"}' [103 bytes]
Server 1 received [12:22:11] [Server thread/INFO]: Using epoll channel type
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2... level \\"world\\"\\r"}' [104 bytes]
Server 1 received [12:22:12] [Server thread/INFO]: Preparing level "world"
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...inecraft:overworld\\r"}' [135 bytes]
Server 1 received [12:22:12] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...ing spawn area: 0%\\r"}' [103 bytes]
Server 1 received [12:22:24] [Worker-Main-1/INFO]: Preparing spawn area: 0%
DEBUG:websockets.client:% sending keepalive ping
DEBUG:websockets.client:> PING a0 6a 88 cc [binary, 4 bytes]
DEBUG:websockets.client:< PONG a0 6a 88 cc [binary, 4 bytes]
DEBUG:websockets.client:% received keepalive pong
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...ing spawn area: 0%\\r"}' [103 bytes]
Server 1 received [12:22:26] [Worker-Main-1/INFO]: Preparing spawn area: 0%
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...ing spawn area: 0%\\r"}' [103 bytes]
Server 1 received [12:22:26] [Worker-Main-1/INFO]: Preparing spawn area: 0%
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...ing spawn area: 0%\\r"}' [103 bytes]
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...ing spawn area: 0%\\r"}' [103 bytes]
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...ing spawn area: 0%\\r"}' [103 bytes]
Server 1 received [12:22:26] [Worker-Main-1/INFO]: Preparing spawn area: 0%
Server 1 received [12:22:26] [Worker-Main-1/INFO]: Preparing spawn area: 0%
Server 1 received [12:22:26] [Worker-Main-1/INFO]: Preparing spawn area: 0%
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...ing spawn area: 0%\\r"}' [103 bytes]
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...ing spawn area: 0%\\r"}' [103 bytes]
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...ing spawn area: 0%\\r"}' [103 bytes]
Server 1 received [12:22:26] [Worker-Main-1/INFO]: Preparing spawn area: 0%
Server 1 received [12:22:26] [Worker-Main-1/INFO]: Preparing spawn area: 0%
Server 1 received [12:22:26] [Worker-Main-1/INFO]: Preparing spawn area: 0%
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...ing spawn area: 0%\\r"}' [103 bytes]
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...ing spawn area: 0%\\r"}' [103 bytes]
Server 1 received [12:22:26] [Worker-Main-1/INFO]: Preparing spawn area: 0%
Server 1 received [12:22:26] [Worker-Main-1/INFO]: Preparing spawn area: 0%
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...ing spawn area: 0%\\r"}' [103 bytes]
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...ing spawn area: 0%\\r"}' [103 bytes]
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...ing spawn area: 0%\\r"}' [103 bytes]
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...ing spawn area: 0%\\r"}' [103 bytes]
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...ing spawn area: 0%\\r"}' [103 bytes]
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...ing spawn area: 0%\\r"}' [103 bytes]
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...ing spawn area: 0%\\r"}' [103 bytes]
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...ing spawn area: 0%\\r"}' [103 bytes]
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...ing spawn area: 0%\\r"}' [103 bytes]
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...ing spawn area: 0%\\r"}' [103 bytes]
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...ing spawn area: 0%\\r"}' [103 bytes]
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...ing spawn area: 0%\\r"}' [103 bytes]
DEBUG:websockets.client:< TEXT '{"stream":"console","type":"line","data":"[12:2...ing spawn area: 0%\\r"}' [103 bytes]
Server 1 received [12:22:26] [Worker-Main-1/INFO]: Preparing spawn area: 0%
Server 1 received [12:22:26] [Worker-Main-1/INFO]: Preparing spawn area: 0%
Server 1 received [12:22:26] [Worker-Main-1/INFO]: Preparing spawn area: 0%
Server 1 received [12:22:26] [Worker-Main-1/INFO]: Preparing spawn area: 0%
Server 1 received [12:22:26] [Worker-Main-1/INFO]: Preparing spawn area: 0%
Server 1 received [12:22:26] [Worker-Main-1/INFO]: Preparing spawn area: 0%

@flancast90, python_aternos must print something like this (above) when you enable logging.DEBUG.

If you still can't connect to websocket, try to start websocket_args_example from the main branch. Then, send me the logs.

when

    s = aternos.list_servers()[0]
IndexError: list index out of range


Fix transaction typings

Fixes: https://github.com/dexie/Dexie.js/pull/1624#issuecomment-1464486384 while still preserving correct type for the hook

Thanks!


size limit for each user

how can i set size limit for each user?
for example each user can upload 20 Gigabyte

I just made my custom FileSystem
On write its sending request on db and getting size left per user
Then I use transform stream to count bytes on writeStream
`class myTransformer extends Transform {
constructor(maxSize = 0, sizeData = {}) {
super();
this.maxSize = maxSize;
this.sizeData = sizeData
this.currentSize = 0;
}
_transform(data, encoding, cb) {
this.currentSize += data.length;
if (this.maxSize && this.currentSize > this.maxSize) {
  this.emit('end');
} else {
  cb(null, data, encoding);
}

}
_flush(cb) {
this.sizeData.size = this.currentSize;
cb();
}
}`
Write override:
`async write(fileName, {append, start}) {
const writableStream = super.write(fileName, { append, start });
const { limit } = await getLimit(this.accessToken);
const transformStream = new myTransformer(limit, this.sizeData);

const stream = writableStream.stream;
transformStream.pipe(stream);
writableStream.stream = transformStream;

return writableStream;

}`
Also I edit user limits on upload event and on delete
connection.on('STOR', async (err, path) => {     let { accessToken } = auth;     if (err) {       console.log('Error: ', err);     } else {       console.log(accessToken);       await putFile(accessToken, ${auth.user.id}/${path}, sizeData.size).catch(e => console.log('Error: ', e))     }   });


bouncing proteins cause seasickness?

Someone asked for the graphic not to render until after final positions for layout have been calculated, they don't like the bouncy effect as it lays itself out.
Possibly not high priority, most people don't seem too bothered by it...

Maybe this can help:

This came up again yesterday in testing with a real user at Cambridge Uni.
At the same time the user noticed that the names often stop over the edge and then become unreadable (or at least difficult to read). Is there any chance to make the names stop in space? Shall I open a new ticket for that?

OK, I should change it.
Both the bouncing and the names being over the edge are consequences of the layout algorithm. I plan to change the layout code to use the CoLa library, hopefully that will help with these probs .

Thanks. Let me know when you have a demo and I'll send the link to the users that felt nauseous!

There is a version using cola for its layout in my repository - you can see the demo at:
http://<IP_ADDRESS>/ComplexViewer/
(for info - it's in the "deployed" branch of my repo. That branch holds new work, my master branch got out of synch with MICommunity:master and I'm not sure neatest way to get them back in synch)
Anyway - using the cola layout is going to need some further work. In some (most?) cases the layout is worse than the previous one. You can look through the demo examples. Noteworthy ones:
Shelterin - better layout
T-complex - I think the layout suffers from not having the 'gravity field' that pulls everything into the middle (positioning of atp molecules)
Core mediator complex - Fail, doesn't fit on screen. There's issues to do with computing/specifiying the link length it should aim for. (I've looked at this before while using cola with the crosslink viz software, but not found a good solution.)
Hemoglobin - lines always crossed in the middle, darn. Made an issue about it on cola project:
https://github.com/tgdwyer/WebCola/issues/233
Yo (@yochannah) may be able to help as she has been working with cola.
This might be for the next version of ComplexViewer as it might take a bit of work.
Re. the original issue of bouncing proteins - it is, of course, possible to not render the network while the layout algorithm is still running. I have looked at this before and I think rendering is a small amount of time compared to running the layout algorithm. Hence, the display would be blank for a while as the layout code runs. I previously thought it was better not to do this, it looks broken - the bouncy proteins serve as a sort of 'throbber'.

Thanks, Colin.
Yes, I agree, Cola may needs some tweaking.
Bouncing: only 2 people have complained and today's volunteer actually clicked on and opened the protein bars straight away. She may have used the old site before, though!

OK, there is now a spinner while the layout is computing. No more motion sickness. Also, it checks no labels have ended up over left edge and corrects for it if they have.
You can see a demo at http://complexviewer.org
I'm closing issue now but let me know if there's problems with what I've done,
c


⚠ Samsung has degraded performance

In 59de4e8, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 1772 ms

Resolved: Samsung performance has improved in 68b1684.


Introduce Collapse All Action to Loaded Scripts

Fixes: https://github.com/microsoft/vscode/issues/64314

@microsoft-github-policy-service agree


Android-Kotlin : 01.1 Requirement of Version Control System

Description :

Give a brief description stating the need of Version Control System.
Also describe about Git and GitHub.
Required documentation, audio, or video.

References :
https://git-scm.com/book/en/v2/Getting-Started-About-Version-Control
https://guides.github.com/activities/hello-world/

Changes should be made in Android_Development/Kotlin/ directory under Android_Development_With_Kotlin branch.
You have to push your PR to the Android_Development_With_Kotlin branch only.
You can take help to the references but don't simply try to copy it. Just explain in your own word.
This issue is for GWOC'21 contributors only.
You need to push in a single commit. If there exists more than one commit then you need to squash your commits into one commit.

Supervisor @rahulsain

Can I take this?

Can I take this?

Yeah sure.


TILAB Score

Research spike on https://tia-lab.github.io/TILAb-Score/.

Research on the existing code
Try to implement something similar for IHC slides

In order to implement this scorer, we need to load a Keras model. First step could be to use Keras directly and then move to ONNX to be able to support future models implementations created with different frameworks


Handle non-printable characters in diff view

Summary
Fixes #10841 by handling non-printable characters in the same way as GNU coreutils cat's --show-nonprinting flag. One downside of this approach is that unicode characters are no longer printed as their actual character, which could be problematic for non-Latin languages.
Test Plan
Tested with the same example in #10841, but would appreciate a pointer to where I can programmatically add some tests for various non-printable ASCII characters.

Example of Unicode Changes

Additional Considerations
As @carljm pointed out, this would make the code diverge from git diff.
Would appreciate any feedback on this quick, slightly hacky diff!

Fixed the unicode issues and Cow issues:
Working on adding it to the other spots in the repo.

Thank you for looking into this.
I'm a bit surprised that we don't see a single test failure. I think we may also need to make this change in
https://github.com/astral-sh/ruff/blob/8a25531a7144fd4a6b62c54efde1ef28e2dc18c4/crates/ruff_linter/src/message/text.rs#L173
and
https://github.com/astral-sh/ruff/blob/8a25531a7144fd4a6b62c54efde1ef28e2dc18c4/crates/ruff_linter/src/message/diff.rs#L22

Added to these two spots, I'm surprised testing isn't failing, do you have any code pointers so that I can update the tests to test some of these nonprintable characters?

Updated the snapshot tests, they look to be much more clear since the ^ is actually pointing to the correct location.

Thanks for contributing!


Add support for RGBA, ColorValue and ColorFade funcs in Interpreter

See #706 PR with some initial impls.

resolved with 706


New package: BFlux v0.2.1

Registering package: BFlux
Repository: https://github.com/enweg/BFlux.jl
Created by: @enweg
Version: v0.2.1
Commit: 87f52b9d96fe13f39f29913f91ea851cb74aa8be
Reviewed by: @enweg
Reference: https://github.com/enweg/BFlux.jl/commit/87f52b9d96fe13f39f29913f91ea851cb74aa8be#commitcomment-102422191
Description: Bayesian addition to Flux.jl

The only reason why automatic merge did not work seems to be name similarity. Given the purpose of BFlux to extend Flux in a Bayesian way, I believe that the name is appropriate though and therefore think that this request should still be merged.

As discussed on Slack, BayesianFlux or BayesFlux might be a better name for this package