Http/2 DefaultFrameWriter allocation reduction

The DefaultHttp2FrameWriter currently allocates a buffer for most frame types. There may be an opportunity to allocate the buffers ahead of time in ThreadLocal variables (as un releasable buffers) to avoid repeatedly allocating and releasing these buffers. We should investigate if this may provide memory allocation and/or performance benefits.

@nmittler @buchgr WDYT? I can pull together a PR if we think this makes sense.

@Scottmitch Could you point to the places in the framewriter? Why thread local?

@Scottmitch definitely worth investigating.  I'm curious how much thread affinity we'll have when we have a lot of connections using the same EventLoopGroup.

@buchgr - For example all/most of the frame types do:

Allocate small fixed size buffer for headers
Populate headers buffer
Write headers buffer.
(Dependent on frame type) write payload.
(Dependent on frame type) write padding.

See https://github.com/netty/netty/blob/master/codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2FrameWriter.java#L136 for the headers allocation.
It doesn't have to be thread local but the idea being we may be able to pre-allocate these header buffers and just populate & write (step 2 and 3) when needed.  Thread local would just be to get isolation from each thread that may be using this class.

@Scottmitch
I am pretty sure that I am missing something, so please be patient :P ... I don't see it. If you reuse the same buffer for the frame header, how can you handle multiple calls to writeData(...)?

@buchgr - If the access pattern is such that multiple calls to writeData(...) are each on different threads then the thread local variable for that frame type can be used (if the same thread will not call writeData concurrently).  So we would pre-allocate and reserve (practically not-release) 1 buffer for each frame type , for each thread to use across all DefaultHttp2FrameWriter instances.  The idea being that we don't have to slam the buffer pool with events (allocate/release) at the expense of reserving some of the pool...because we know this will happen very frequently.

@Scottmitch
Let's forget about threads for a second. How would you handle two consecutive calls to frameWriter.writeData(...)?
    frameWriter.writeData(...);
        FIXED_BUFFER.setBytes(...);
        ctx.write(FIXED_BUFFER);
    frameWriter.writeData(...);
        FIXED_BUFFER.setBytes(...);
        ctx.write(FIXED_BUFFER);

You can't overwrite the FIXED_BUFFER in the second call until the first write is complete.

@buchgr +1. Needing to add listeners to know when we can re-use buffers would make pre-allocating a bit impractical....lets forget that this happened :)


[NEW ALGORITHM] Palindromic Linked List

Issue will be closed if:

You mention more than one algorithm. You can create a separate issue for each algorithm once the current one is completed.
You propose an algorithm that is already present or has been mentioned in a previous issue.
You create a new issue without completing your previous issue.

Note: These actions will be taken seriously. Failure to follow the guidelines may result in the immediate closure of your issue.

Name:
[NEW ALGORITHM]  Palindromic Linked List
About:
Propose a new algorithm to be added to the repository
This algorithm is used to find whether given Linked List is palindrome or not.

Labels:
new algorithm, gssoc-ext, hacktoberfest, level1

Assignees:

[x] Contributor in GSSoC-ext
[x] Want to work on it

assigned


Respect ${workspaceFolder} in PythonInterpreterManager

Fixes: https://github.com/ansible/vscode-ansible/issues/1396

Thanks for the PR!


cutadapt module

Pull Request Checklists
Important: When opening a pull request, keep only the applicable checklist and delete all other sections.
Checklist for New Module
Required

[X] I used the cookiecutter template and updated the placeholder rules.

[X] The snakemake rules follow the design guidelines.

[X] All references to the rules object (e.g. for input files) are wrapped with str().

[X] Every rule in the module is either listed under localrules or has the threads and resources directives.

[X] Input and output files are being symlinked into the CFG["inputs"] and CFG["outputs"] subdirectories, respectively.

[X] I grouped the input symlinking rule to the next job that uses the input files.

[X] I updated the final target rule (*_all) to include every output rule.

[X] I explained important module design decisions in CHANGELOG.md.

[X] I tested the module on real data for all supported seq_type values.

[X] I updated the default.yaml configuration file to provide default values for each rule in the module snakefile.

[X] I did not set any global wildcard constraints. Any/all wildcard constraints are set on a per-rule basis.

X ] I ensured that all symbolic links are relative and self-contained (i.e. do not point outside of the repository).

[X] I replaced every value that should (or might need to) be updated in the default configuration file with __UPDATE__.

[X] I recursively searched for all comments containing TODO to ensure none were left. For example:
grep -r TODO modules/<module_name>/1.0

If applicable

[X] I added more granular output subdirectories.

thanks so much! 🙏


New version: SimilaritySearch v0.3.21

Registering package: SimilaritySearch
Repository: https://github.com/sadit/SimilaritySearch.jl
Created by: @sadit
Version: v0.3.21
Commit: d76123169bd01d9b7988e63af07c8b0f3188550c
Reviewed by: @sadit
Reference: https://github.com/sadit/SimilaritySearch.jl/commit/d76123169bd01d9b7988e63af07c8b0f3188550c#commitcomment-45260420

please don't merge this, I will try to fix the issue to perform an auto-merging

@sadit I guess you already fixed it?

@giordano yes, it can be merged

Note that your message above prevented automerge from working for two days because you didn't use the [noblock] text.  Either don't write anything (no one will merge a pull request if compat bounds are not correct anyway), or add [noblock]

Note that your message above prevented automerge from working for two days because you didn't use the [noblock] text. Either don't write anything (no one will merge a pull request if compat bounds are not correct anyway), or add [noblock]

Oh, I was trying to avoid the merge. Sorry, I don't know the policies of the registering process. I will keep it in mind for the next time.


ASSIGN TO DYNAMIC and EXTERNAL not parsed

Following statements do not parse:
 IDENTIFICATION DIVISION.
 PROGRAM-ID. ASSIGNTODYN.
 ENVIRONMENT DIVISION.
    INPUT-OUTPUT SECTION.
       FILE-CONTROL.
          SELECT TEACHER ASSIGN TO DYNAMIC SOME-DAT.

 IDENTIFICATION DIVISION.
 PROGRAM-ID. ASSIGNTODYN.
 ENVIRONMENT DIVISION.
    INPUT-OUTPUT SECTION.
       FILE-CONTROL.
          SELECT TEACHER ASSIGN TO EXTERNAL SOME-DAT.

Fixed in 24d6802d6bc484f47c4f639a878f7a54ce583032.


Compile %i as uuid for file name pattern

Since I'm using path including uuid_flush (of fluent-plugin-s3) as S3 queue for streaming_load, I'd be good to have pattern for uuid defined in RFC4122.
Avoiding %U or %u which are used in strftime, I added %i pattern for uuid.

We never use uuid_flush part as a schema name or a table name, it is useless.


[HOLD] Upgrade to Scala 2.12

All deps. support Scala 2.12, even lightbend-emoji, just bumping the version.

Have you tried with socket.io? If so, let's merge this as it is a big asset for deploy lighter jars :)

The socket library works fine except that it logs everything as an error.


Add buttons to remove video/image

In the edit mode, we have the possibility to upload a new Video or a new Citation Form Image. In some cases, we don't yet have a correct video/image while it is confusing to users to see the old wrong picture. We now use a tag, but this can go unnoticed. It would therefore be helpful to have two buttons to remove the present media.
Suggestion: create a new section in the edit mode above "Upload New Video" called "Delete media", with two buttons: Remove Video and Remove Citation Form Image.

I split this up in a few subtasks:

There already is some delete video functionality; figure out what this does.
Create a front end, with two nice buttons that appear in edit mode.
Create a back-end that deletes images and videos.
Link front to backend

Currently, the remove image button removes the video! Please fix and/or finish issue, @Woseseltops

Done. Surprised to find out that the remove video already DID work :).

:-)


[FLINK-7381] [web] Decouple WebRuntimeMonitor from ActorGateway

What is the purpose of the change
This PR decouples the WebRuntimeMonitor from the ActorGateway by introducing the JobManagerGateway interface which can have multiple implementations. This is a preliminary step for the integration of the existing WebRuntimeMonitor with the Flip-6 JobMaster.
This PR is based #4486.
Brief change log

Extending the JobManagerGateway with methods to cover the requirements of the WebRuntimeMonitor
Change JobManagerRetriever to return JobManagerGateway instead of Tuple2<ActorGateway, Integer>
Adapt handlers to use the JobManagerRetriever
Introduce MetricQueryServiceRetriever to retrieve MetricQueryService implementations running alongside with the JM and TM
Introduce MetricQueryServiceGateway to abstract the implementation details of the MetricQueryService (e.g. Akka based)
Pass MetricQueryServiceRetriever to WebRuntimeMonitor and MetricFetcher
Adapt test classes to work with newly introduced interfaces
Add web.timeout configuration option to control the WebRuntimeMonitor timeouts (see WebMonitorOptions#WEB_TIMEOUT

Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (yes)
The serializers: (no)
The runtime per-record code paths (performance sensitive): (nop)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (no)

Documentation

Does this pull request introduce a new feature? (no)

This PR also needs a rebase.

Thanks for the review @zentol. I've addressed most of your comments modulo the web frontend configuration options and rebased the PR onto the latest master.
I've tested the web frontend locally with a standalone cluster but not with Yarn and HA. Will try these configuration out as well.

I did the additional tests running Flink on Yarn with and without HA and the web frontend worked.

Thanks for testing things on yarn/HA.
As for the web monitor options, I do see the point of not coupling new options to the jobmanager. However, I think it's a bad idea to have some be tied to the jobmanager while others aren't. This smells like a repeat of the ConfigOption introduction, where we approached things with a "let's refactor the rest later" mentality, and that still isn't complete. I suggest to port all webmonitor options first (with deprecates keys obviously), and then rebase the PR on top of that.

Alright, I'll port the web monitor options and rebase this PR onto that.

@zentol I've created the WebOptions PR and rebased onto that as you've requested.

Thanks for the review @zentol. Rebasing onto the latest master and if Travis gives green light, then I'll merge this PR.


Inconsistent behavior between browser and PDF export

Describe the bug
When creating a slide full of content using slidev-theme-neversink, the content is visible in the browser but disappears when exported to a PDF file.
Minimal reproduction

Create a slides.md file with the following content:
---
theme: neversink
layout: top-title-two-cols
color: amber
---

:: title ::

# Slide 1

:: left ::

+ Slide 1
+ Slide 1
+ Slide 1
+ Slide 1
+ Slide 1
+ Slide 1
+ Slide 1
+ Slide 1
+ Slide 1
+ Slide 1

:: right ::

+ Slide 1

---
layout: top-title
color: amber
---

:: title ::

# Slide 2

:: content ::

Slide 2

Run the command slidev export.

Open the generated file slides-export.pdf.

Environment

Slidev version: 0.49.29
Browser: Vivaldi 6.9.3447.37
OS: Ubuntu 22.04.3

Maybe adding some wait times (https://sli.dev/guide/exporting#wait) will solve this

Maybe adding some wait times (https://sli.dev/guide/exporting#wait) will solve this

Thanks for your suggestion. I tried adding --wait 10000, but unfortunately, it didn't resolve the issue.
Additionally, I noticed that the content exports correctly with --format pptx or --format png, but the issue persists with the PDF format.

slidev --export --per-slide works. Closing this issue because the problem seems to be in the theme.

yes it is the theme probably


[Program]: Write a Haskell program to convert string to vowelcase

Description
Write a Haskell program to convert string to vowelcase
Vowelcase is a style of writing in which all vowels are converted to uppercase and all consonants are converted to lowercase.
Input  : "hello world"
Output : "hEllO wOrld"

How to contribute

Save the solution in program/convert_string_to_vowelcase.hs file
Add convert_string_to_vowelcase.hs file in convert-string-to-vowelcase folder

!assign


ActiveTabBar and InActiveTabBar textstyles

Would be an awesome feature to a defaulttabbar or scrollabletabtar to be able to sext a textstyle and font size to active and inactive tabs.
So for example to set a text for an active tab larger than a text for an inactive tab.

Good feature request 👍


Text on Segment tabs disappearing after selecting inactive tab

Hi
I created a Segment with some logic to activate / deactivate tabs on a Segment and when I select the non active tab the text disappears on both tabs (the font color matches the changed background).

import React, { Component } from 'react';
import { Container, Content, Header, Segment, Body, Button, Text, Left, Right, Icon } from 'native-base';

export default class JobsList extends Component {
  state = {
    activeTab: 'availableJobs'
  };

  onTabPress(tab) {
    this.setState({ activeTab: tab });
  }

  render() {
    return (
      <Container>
        <Header hasSegment>
          <Left />
          <Body>
            <Segment>
              <Button first active={this.state.activeTab === 'availableJobs'} onPress={() => this.onTabPress('availableJobs')}><Text>Available</Text></Button>
              <Button last active={this.state.activeTab === 'acceptedJobs'} onPress={() => this.onTabPress('acceptedJobs')}><Text>Accepted</Text></Button>
            </Segment>
          </Body>
          <Right />
        </Header>
        <Content>
        </Content>
      </Container>
    );
  }
}

react-native, react and native-base version
  "dependencies": {
    "native-base": "^2.0.12",
    "react": "15.4.2",
    "react-native": "0.40.0",
    "react-native-button": "^1.8.2",
    "react-redux": "^5.0.2",
    "redux": "^3.6.0"
  }

Expected behaviour
After clicking on any tab, the text on both tabs should not be invisible / disappear
Actual behaviour
After clicking on any tab, the text on both tabs becomes invisible / disappears
Steps to reproduce (code snippet or screenshot)
See above
Screenshot of emulator/device
See above
Is the bug present in both ios and android or in any one of them?
Only tested on iOS
Any other additional info which would help us debug the issue quicker.
I hope it's not my code that is wrong?

I have run into same issue, seems like in the recent update, the toggle will mis-change the font's colour.

@leyuan @michaelimstepf You shouldn't have to set active prop on Text. It was an issue with our forked version of @shoutem/theme.
Running npm uninstall native-base && npm install native-base should fix it.

@himanshu-satija that did fix for me, thanks!

@himanshu-satija Thanks. I tried that but no I can't start the app anymore. I get the following message and I followed all the 3 steps but it still doesn't work.
~/Dev/CrewApp/node_modules/react-native/packager ~
Scanning 667 folders for symlinks in /Users/michaelimstepf/Dev/CrewApp/node_modules (26ms)
 ┌────────────────────────────────────────────────────────────────────────────┐
 │  Running packager on port 8081.                                            │
 │                                                                            │
 │  Keep this packager running while developing on any JS projects. Feel      │
 │  free to close this tab and run your own packager instance if you          │
 │  prefer.                                                                   │
 │                                                                            │
 │  https://github.com/facebook/react-native                                  │
 │                                                                            │
 └────────────────────────────────────────────────────────────────────────────┘
Looking for JS files in
   /Users/michaelimstepf/Dev/CrewApp

[04/11/2017, 17:34:25] <START> Initializing Packager
[04/11/2017, 17:34:25]         HMR Server listening on /hot

React packager ready.

[04/11/2017, 17:34:26] <START> Building Haste Map
[04/11/2017, 17:34:26] <END>   Building Haste Map (219ms)
[04/11/2017, 17:34:26] <END>   Initializing Packager (1042ms)
[04/11/2017, 17:34:36] <START> Requesting bundle
                               bundle_url: /index.ios.bundle?platform=ios&dev=true&minify=false
[04/11/2017, 17:34:36] <START> Transforming files
[04/11/2017, 17:34:36] <START> Requesting bundle
                               bundle_url: /index.ios.bundle?platform=ios&dev=true&minify=false&hot=true
[04/11/2017, 17:34:36] <START> Transforming files
transformed 746/748 (100%)(node:83869) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3343): UnableToResolveError: Unable to resolve module react-native/Libraries/Components/StaticContainer.react from /Users/michaelimstepf/Dev/CrewApp/node_modules/native-base/dist/src/basic/Tabs/SceneComponent.js: Module does not exist in the module map or in these directories:
  /Users/michaelimstepf/Dev/CrewApp/node_modules/react-native/Libraries/Components

This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:
  1. Clear watchman watches: `watchman watch-del-all`.
  2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.
  3. Reset packager cache: `rm -fr $TMPDIR/react-*` or `npm start -- --reset-cache`.
(node:83869) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
transformed 792/794 (100%)(node:83869) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3344): UnableToResolveError: Unable to resolve module react-native/Libraries/Components/StaticContainer.react from /Users/michaelimstepf/Dev/CrewApp/node_modules/native-base/dist/src/basic/Tabs/SceneComponent.js: Module does not exist in the module map or in these directories:
  /Users/michaelimstepf/Dev/CrewApp/node_modules/react-native/Libraries/Components

This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:
  1. Clear watchman watches: `watchman watch-del-all`.
  2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.
  3. Reset packager cache: `rm -fr $TMPDIR/react-*` or `npm start -- --reset-cache`.

@himanshu-satija Worked for me as well after upgrading React / React Native. Thanks!


proposed fix for enum bug

here is a proposed fix for issue https://github.com/microsoft/pxt/issues/6873. Results in the following error message:
main.ts(8,9): error TS9210: Cannot compute enum value

added regression test

Thanks, good investigation!
I tweaked the fix to move the null check down, should catch more of these.


Project does nothing!

When I execute the code, it just open LocalizedPage, but button does nothing, even I don't have a way to change culture from within the app.
I find it useless as the only way to change culture would be changing my OS culture.
I would expect the project to have an option of changing culture and seeing it reflected in real time, or resetting the app, etc.

That is the point of this example since it also localizes the app name and such, that is not something that will work if you change it from within the app. Maybe this will help for translations within your app: https://youtu.be/IBz9Ku24ZGY
Thanks for the feedback!

Thank you so much!
This is awesome!


Make sure thumbnails can never block the rendering of the whole grid

In some circumstances the code that renders thumbnails into cells can fail and that will abort the rendering of the entire grid.
See this forum post for instance: https://forum.openrefine.org/t/openrefine-3-7-9-released/1259/9?u=antonin_d
We should make sure that any exception thrown in our cell renderer is caught appropriately and a fallback is used, so that the rest of the grid is still rendered.
This safety mechanism should also be implemented on OpenRefine's side of the extension point.

Duplicate of #96

Seems to happen on Wikimedia PAWS too. For some users. Not for me, it works fine when I try
See https://phabricator.wikimedia.org/project/view/1648/

This issue would still be worth solving in the Commons extension but to mitigate the problem, I am proposing a change in OpenRefine to avoid the problem from blocking the rendering of the whole grid (which I should have thought about when I introduced the extension point…)
https://github.com/OpenRefine/OpenRefine/pull/6514
Hopefully we can include this in 3.8, meaning that people would be able to use the existing Commons extension with 3.8 and it wouldn't crash like that (instead, certain cells wouldn't be rendered as thumbnails but OpenRefine would still remain usable).

Duplicate of #96

Shouldn't either issue be closed in that case? Not sure which one since this one is referenced in other places, but the other has more discussion.

Let's close #96 which was about the bug itself, which is mitigated by the change on OpenRefine's side
We can keep #99 (this issue) for adding the additional safeguards in the commons extension itself.

@wetneb Carried out below test and also reviewed the thumbnail rendering code and it is handling failures. Let me know if there is a different test case for this issue.

Create a new project
Add couple of records with File name with no thumbnail
Reconcile the column
All records get rendered

Apparently, one of the errors that can happen is this:
JQMIGRATE: Migrate is installed with logging active, version 3.4.0
project-bundle.js:59615 Uncaught TypeError: Cannot read properties of undefined (reading 'identifierSpace')
    at ThumbnailReconRenderer.render (project-bundle.js:59615:71)
    at DataTableCellUI._render (project-bundle.js:46509:36)
    at new DataTableCellUI (project-bundle.js:46466:8)
    at renderRow (project-bundle.js:45731:9)
    at DataTableView._renderDataTables (project-bundle.js:45743:5)
    at DataTableView.render (project-bundle.js:45405:8)
    at project-bundle.js:45750:10
    at Object.success (project-bundle.js:38198:9)
    at fire (project-bundle.js:3502:31)
    at Object.fireWith [as resolveWith] (project-bundle.js:3632:7)

(see this comment). This is one of the failures the current code doesn't handle itself.
So it would be worth checking if the reconciliation service is well defined before accessing its .identifierSpace. More generally, the entire render() method could do with a try {} catch {} block to catch any exceptions thrown in it and maybe report them in the console as errors.


GPT-3.5-Turbo support not enabled

Whenever I try to change the config for the model used from gpt-4 to gpt-3.5-turbo errors occur

litellm supports this now, this PR fixes it: https://github.com/LinkSoul-AI/AutoAgents/pull/22

@ishaan-jaff I guess this PR has caused this error - line 173 on openai_api.py did it work for you?
  async for chunk in response:
TypeError: 'async for' requires an object with __aiter__ method, got generator

@ishaan-jaff I guess this PR has caused this error - line 173 on openai_api.py did it work for you?
  async for chunk in response:
TypeError: 'async for' requires an object with __aiter__ method, got generator

I am getting same error.
Traceback (most recent call last):
File "/home/aitoofaan/llms/autoagents/AutoAgents/main.py", line 56, in
asyncio.run(commanline(proxy=proxy, llm_api_key=args.llm_api_key, serpapi_key=args.serpapi_key, idea=args.idea))
File "/usr/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/home/aitoofaan/llms/autoagents/AutoAgents/main.py", line 30, in commanline
await startup.startup(idea, investment, n_round, llm_api_key=llm_api_key, serpapi_key=serpapi_key, proxy=proxy)
File "/home/aitoofaan/llms/autoagents/AutoAgents/startup.py", line 14, in startup
await explorer.run(n_round=n_round)
File "/home/aitoofaan/llms/autoagents/AutoAgents/autoagents/explorer.py", line 57, in run
await self.environment.run()
File "/home/aitoofaan/llms/autoagents/AutoAgents/autoagents/environment.py", line 192, in run
await asyncio.gather(*futures)
File "/home/aitoofaan/llms/autoagents/AutoAgents/autoagents/roles/role.py", line 239, in run
rsp = await self._react()
File "/home/aitoofaan/llms/autoagents/AutoAgents/autoagents/roles/role.py", line 207, in _react
await self._think()
File "/home/aitoofaan/llms/autoagents/AutoAgents/autoagents/roles/role.py", line 155, in _think
next_state = await self._llm.aask(prompt)
File "/home/aitoofaan/llms/autoagents/AutoAgents/autoagents/system/provider/base_gpt_api.py", line 42, in aask
rsp = await self.acompletion_text(message, stream=True)
File "/home/aitoofaan/llms/autoagents/AutoAgents/autoagents/system/provider/openai_api.py", line 33, in wrapper
return await f(*args, **kwargs)
File "/home/aitoofaan/llms/autoagents/AutoAgents/autoagents/system/provider/openai_api.py", line 230, in acompletion_text
return await self._achat_completion_stream(messages)
File "/home/aitoofaan/llms/autoagents/AutoAgents/autoagents/system/provider/openai_api.py", line 173, in _achat_completion_stream
async for chunk in response:
TypeError: 'async for' requires an object with aiter method, got generator


Unhandled Exception in 1.1.0c

Upgraded to 1.1.0c, including modules, overwriting all files. Launcher window comes up, then after a delay of 3-5s, a .NET exception is thrown:
************** Exception Text **************
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
   at Newtonsoft.Json.JsonTextReader.ParseValue()
   at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   at Launcher.AuthenticationServiceProvider.<AuthenticateAsync>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Launcher.MainForm.<StartGameAsync>d__21.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Launcher.MainForm.<GameStart>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

This might be due to the servers still being down for maintenance, but that case should also be handled (more) gracefully.

After maintenance period is over, the launcher starts and shows an empty alert box with an OK button. Nothing further happens on dismissing the box.

Sounds like an issue with requesting the play token, however, I cannot reproduce the issue described, seems to be an issue that only happens during the game maintenance, therefore, I will look into it during the next maintenance.

As for your 2nd comment, the issue with the launcher starts and shows an empty alert box, that's caused by a racing issue, I'm working on the fix now, but as for the unexpected json issue, I will have to wait until the maintenance starts to see what's causing it.

version 1.1.1 added the maintenance check and better handling for the Json error


Added my answers to Assignment 2

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
I added my answers to my python assignment #2.
What did you learn from the changes you have made?
In Question #1 I learned how to open a CSV file on VS Code, read the file and iterate through the file. In Question #2 I learned how to write code that allows me to compute summary statistics (min, max, mean). This function is able to read the specified CSV file, perform the required summary operation, and return the results as an array of length 60. In Question #3 I learned how to compute the mean scores, check for zeros and return a boolean data identifying True or False. In this case it showed False, so there are no days with zero.
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
I was referring to the slides provided in deciding what functions and methods to use. As well as better understand arrays and how they interact with each other.
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
I was a bit stuck on how to visualize the steps for Question #3 but Pedram helped me create a visual flow chart to better understand the loops, functions, lists and arrays involved in solving this question.
How were these changes tested?
Our assignment had some code in it already that would help run the tests. So I gave those a go to see if it was working. I did get a few errors, but then realized I just needed to run the cells from top to bottom again. Once I did that the errors went away.
A reference to a related issue in your repository (if applicable)
Checklist

[x] I can confirm that my changes are working as intended

I am not able to understand your code, please redo it. Kindly Push the code to the branch rather than copying and pasting directly to the branch. Your code is very unclear. I would recommend to make change.

Hi Sidra,
I'm a bit confused with this email. I attended the work session on Friday
and Pedram confirmed that I did my code correctly. I also didn't copy and
paste, I pushed the file from Terminal to branch "assignment-2."
If you could provide me some clarification that would be great, from my
understanding with Pedram, I did the assignment correctly. If I'm mistaken,
I can push the assignment again.
Thanks,
Sidra
On Mon, Sep 9, 2024 at 8:11 PM Sidra Bushra @.***>
wrote:

I am not able to understand your code, please redo it. Kindly Push the
code to the branch rather than copying and pasting directly to the branch.
Your code is very unclear. I would recommend to make change.
—
Reply to this email directly, view it on GitHub
https://github.com/amlloren/python/pull/2#issuecomment-2339366421, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/BKRC6FW4GX5KK2SHLBNNL3TZVY2MVAVCNFSM6AAAAABN2KX7Y2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZZGM3DMNBSGE
.
You are receiving this because you authored the thread.Message ID:
@.***>


Pitch estimation pseudo-interpolation bug

I might be wrong, but there could be a bug in the pitch pseudo-interpolation.
Luckily, it's not critical, but better solve if it's an actual bug.
At the end of pitch_search():
   if (best_pitch[0]>0 && best_pitch[0]<(max_pitch>>1)-1)
   {
      opus_val32 a, b, c;
      a = xcorr[best_pitch[0]-1];
      b = xcorr[best_pitch[0]];
      c = xcorr[best_pitch[0]+1];
      if ((c-a) > MULT16_32_Q15(QCONST16(.7f,15),b-a))
         offset = 1;
      else if ((a-c) > MULT16_32_Q15(QCONST16(.7f,15),b-c))
         offset = -1;
      else
         offset = 0;
   } else {
      offset = 0;
   }
   *pitch = 2*best_pitch[0]-offset;

I think that the last line should be *pitch = 2*best_pitch[0]+offset; (plus instead of minus).
For instance, when c-a > .7*(b-a) is true, it means that xcorr[best_pitch[0]+1] is the strongest correlation coefficient (a and b are almost the same, while c is greater than a). Hence, I would return 2*best_pitch[0]+1.
Note that at the end of remove_doubling() the same is done, but in fact *T0_ = 2 * T + offset; is assigned (which has a +). I haven't sent a pull request since this code comes from Opus (and it's used in other projects).

Luckily, it's not a bug :) xcorr indices are "inverted lags" due to how indexing operates in the pitch buffer.


The image are not shown properly

Hi,
I have the same issue that #723 , when i took a picture from the UICameraPicker and i saved it directly to my JSQMessageController, the images are shown with a 90° difference. The solution proposed in #723 didn't work at all for me.
I'm using JSQMessage 6.1.1 and JSQSound 2.0
Here my code (sorry I dunno how make it clear on git) and my app is in portrait only. :

(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info{
UIImage *image = [info objectForKey:@"UIImagePickerControllerOriginalImage"];
// Dismiss controller
[picker dismissViewControllerAnimated:YES completion:nil];

// Resize image
UIGraphicsBeginImageContext(CGSizeMake(640, 960));
[image drawInRect: CGRectMake(0, 0, 640, 960)];
UIGraphicsEndImageContext();
// Upload image
NSData *imageData = UIImageJPEGRepresentation(image, 0.0);
[self uploadImage:imageData];
}

(void)uploadImage:(NSData *)imageData{
// I do my stuff to upload the image and when the image is really
// saved online i saved it in a JSQMessage

JSQMessage *message;
if(media){
JSQPhotoMediaItem *photo = [[JSQPhotoMediaItem alloc]initWithImage:[UIImage imageWithData:[media getData]]];
message = [[JSQMessage alloc] initWithSenderId:senderId senderDisplayName:senderDisplayName date:date media:photo];
}else{
message = [[JSQMessage alloc] initWithSenderId:senderId
senderDisplayName:senderDisplayName
date:date
text:text];
}
[_dataArray addObject:message];
}
Any idea how i can solve this ?  (btw this libs is awesome thanks)

hey @smiless - please update to 6.1.3 and this should be fixed


"Argument name clash in strict mode" crash when starting

Hi,
Following the basic example (fresh project, npm i -S micro, and run micro on a simple async function), I get the following error:
micro: Error when importing /Users/joshu/work/uncover-server/index.js: SyntaxError: Argument name clash in strict mode (3:37)
    at Parser.pp$5.raise (/Users/joshu/work/uncover-server/node_modules/micro/node_modules/babylon/lib/index.js:4333:13)
    at Parser.pp$2.checkLVal (/Users/joshu/work/uncover-server/node_modules/micro/node_modules/babylon/lib/index.js:3084:16)
    at Parser.checkLVal (/Users/joshu/work/uncover-server/node_modules/micro/node_modules/babylon/lib/index.js:5513:22)
    at Parser.pp$3.parseFunctionBody (/Users/joshu/work/uncover-server/node_modules/micro/node_modules/babylon/lib/index.js:4154:12)
    at Parser.parseFunctionBody (/Users/joshu/work/uncover-server/node_modules/micro/node_modules/babylon/lib/index.js:5289:20)
    at Parser.pp$1.parseFunction (/Users/joshu/work/uncover-server/node_modules/micro/node_modules/babylon/lib/index.js:2330:8)
    at Parser.pp$3.parseExprAtom (/Users/joshu/work/uncover-server/node_modules/micro/node_modules/babylon/lib/index.js:3576:21)
    at Parser.parseExprAtom (/Users/joshu/work/uncover-server/node_modules/micro/node_modules/babylon/lib/index.js:6591:22)
    at Parser.pp$3.parseExprSubscripts (/Users/joshu/work/uncover-server/node_modules/micro/node_modules/babylon/lib/index.js:3414:19)
    at Parser.pp$3.parseMaybeUnary (/Users/joshu/work/uncover-server/node_modules/micro/node_modules/babylon/lib/index.js:3394:19)

The file I'm running (that causes it to crash) is:
const { json } = require('micro');

module.exports = async function(req, req) {
  const data = await json(req);

  console.log({ data });

  return 'Success!';
}

This bug appears to relate to babylon finding multiple variables named async?
The error occurs when I try to run using Node 7.5 and the harmony flag as well.
I tried using an earlier version of micro, but the same error occurs in 6.x and 5.x.
All in all, it's perplexing, since I can't get it to run at all with an async function.
Thanks, let me know if you need any more info from me.

@joshwcomeau could you provide an example? ❤

@timneutkens certainly: https://github.com/joshwcomeau/Uncover-Server
It's literally the simplest possible example using async/await, haha. Which makes me think either a very recent sub-dependency has updated, or there's something wonky with my environment.

https://github.com/joshwcomeau/Uncover-Server/blob/master/index.js#L3 the argument names are req, req 😅

omg. Wow. Thank you, and sorry. Amazed I managed to mess up such a tiny file!

No worries! 😄 If you do find any bugs don't hesitate to ask notify us 👍

big bug!!!


[T6A1][F11-B3]Hsieh Hsin Han

@Tony-Hsieh Some comments added. Please close the PR after reading comments.


5 demographic population growth - Final changes

Added markdown and comments. Just change the orientation with no code changes.

closes #5


cmake: Clang 3.6 and USE_GCC_FLAGS sets invalid CXX flag -s

-s is not available for Clang: https://github.com/aws/aws-sdk-cpp/blob/master/CMakeLists.txt#L880

This is gated to MINIMIZE_SIZE too!

We should probably just remove that completely and let users pass in symbol strip cflags if they want.

This flag should no longer be present on clang-based builds.


Autograd error: Inplace operations modify variable needed for gradient computations.

I followed instructions from README.md and ran the following
python train.py --batch_size 1 --gpu_ids [0]
This yields the following error:
RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.cuda.FloatTensor [1, 6, 256]], which is output 0 of SliceBackward, is at version 2; expected version 1 instead.
If I activate autograd backtrace in pytorch, torch.autograd.set_detect_anomaly(True), I learn that the following in-place operation breaks the gradients computations.
https://github.com/chrischute/flowplusplus/blob/4f12a4624f6b7c372464f5ce0e7eb0dbb0864c89/util/array_util.py#L64
If I comment out the line the autograd computations run without yielding error, but the loss computations (obviously) become wrong. I'm a bit confused because there is another similar in-place operation which seems to not cause any issue with autograd (see code below).
if reverse:
        y, z = (t.contiguous().view(b, c, h * w // 2) for t in x)
        x = torch.zeros(b, c, h * w, dtype=y.dtype, device=y.device)
        x[:, :, y_idx] += y # in place but no problem
        x[:, :, z_idx] += z # in place and yields problem.
        x = x.view(b, c, h, w)

I think there is a way to perform the needed computation without resorting to in-place computations. If I get it to work I'll post the alternative.

You could try changing that line to x[:, :, z_idx] = x[:, :, z_idx] + z.
Still I'm not sure why you'd run into this, since I never saw it before.

Sorry for not writing, already tired what you suggested without luck. Fortunately, the following fixed the issue in my case.
I read through the environment.yml file and realized it doesn't explicitly state which version of Python to install. Conda by default installs 3.7.3 on my setup. I suspected this might be the issue and tried with python 3.5.2 which worked.
I'm not sure why this makes a difference wrt "in place evaluations" for auto grad. I briefly looked at the update documentation different python versions trying to find anything with "in place evaluations", but unfortunately, without any luck.
On a slightly related note:
I remember implementing RealNVP for TensorFlow some time ago. I tried to use assignment checkerboard implementations as done here, but read someone strongly advising against assignments for GPU code as they claimed it would be very slow. When running the code I get GPU-Utilization 10-20% as measured by NVTOP. Do you get similar results? I'll try to look more into this and let you know if I manage to increase GPU utilization or figure out if I did a mistake.
A big thanks for open sourcing your implementation, it is a huge help for my current research project.

Yes, GPU utilization is low with this checkerboard strategy, but I used it to preserve memory. This assignment strategy uses less memory compared to multiplying with a mask. Flow++ is memory-intensive especially with self-attention layers enabled.
If you want to try the version that will give you higher GPU utilization, you can find example code in this Real NVP repo here.


Ancestor-descendent accuracy returns wrong values as well as ZeroDivisionErrors

Description
Running the scphylo.tl.ad() returns wrong values and division by zero errors.
Confident about the usage of input, see examples.
Minimal reproducible example
Example 1: wrong output
In this example scphylo.tl.ad() returns a wrong value, compared to the attached by-hand calculation for these small trees. See input arrays and tree topology attached.
tree1 / df1:
         0  3  2  1
Cell-1  0  0  0  0
Cell-2  0  0  1  0
Cell-3  0  0  1  1
Cell-4  1  0  1  1
Cell-5  1  1  1  1

tree2 / df2:
         0  3  2  1
Cell-1  0  0  0  0
Cell-2  0  0  0  1
Cell-3  0  1  0  1
Cell-4  1  1  0  1
Cell-5  1  1  1  1

tree1:
4
└── 2
    └── 1
        └── 0
            └── 3
tree2:
4
└── 1
    └── 3
        └── 0
            └── 2
scphylo AD: 0.33333333333333337
correct AD: 0.42857142857142855

By hand calculation:

Example 2: Division by Zero
In this example the scphylo.tl.ad() fails.
tree 1 / df1:
         2  0  1  3
Cell-1  0  0  0  0
Cell-2  0  1  0  0
Cell-3  0  0  1  0
Cell-4  1  0  0  0
Cell-5  0  0  0  1

tree 2 / df2:
         2  0  1  3
Cell-1  0  0  0  0
Cell-2  1  0  0  0
Cell-3  1  1  0  0
Cell-4  1  0  1  0
Cell-5  0  0  0  1

tree 1:
4
├── 0
├── 1
├── 2
└── 3
tree 2:
4
├── 2
│   ├── 0
│   └── 1
└── 3

These inputs lead to a Division by Zero error.
See Traceback.
Traceback
for Example 2, this resulted in a ZeroDivisionError in the very last line of the ad function.

    def ad(df_grnd, df_sol):
        ...
       return 1 - len(error_pairs) / n_adpairs
       ZeroDivisionError: division by zero

Version
0.0.2
Unofficial fork at
https://github.com/pawel-czyz/scphylo-tools

Hi,
Thank you for using scphylo-tools and bringing the issue to our attention. I wanted to clarify that the AD is calculated on the mutation tree, where the root is not considered as a mutation. I noticed that in your calculation, you included the root (number 4) in your AD calculation, which may result in an incorrect value. In your input data you only have 4 mutations while in your calculation you have 5 mutations! To obtain the correct AD value, please exclude the root from your calculation.
I appreciate you bringing the ZeroDivisionError to my attention. I will work on resolving the issue. The error occurs when the first tree is structured as a star, which means there are no AD pairs. I will make sure to handle this edge case properly so that the error does not occur again.
Let me know if you have any further questions. Thank you again for your feedback!

Hi Farid - thanks for your prompt and helpful reply.
Thanks for pointing out the convention used here. Yes, I indeed included the root as a mutation so far.
Leaving it out makes more sense, to get the similarity of ancestral relationships. Just realizing now that, including the root effectively compares if mutations exist in both trees.
Given this, I perfectly see how small star trees lead to an unexpected error.
Thank you for taking care of the error :)
PS: happy & heavy user of your MP3 distance

Hi Gordon, sure anytime!
I just handled the exception in this commit
I'm glad it's been useful! Please let me know if you had any further issues with scphylo-tools.

Fantastic, thank you very much! - We'r looking into using more of your distances.

Fantastic, thank you very much! - We'r looking into using more of your distances.


Can't locally increase sparklyr.shell.driver-memory

Hi,
I'm trying to spawn a local instance of spark using sparklyr on my machine, and increasing the sparklyr.shell.driver-memory trigger a java config error.
conf <- spark_config()
conf$`sparklyr.cores.local` <- 4
conf$`sparklyr.shell.driver-memory` <- "16G"
conf$spark.memory.fraction <- 0.9

sc <- spark_connect(master = "local",
                    version = "2.3.1",
                    config = conf)

gives me the following error message
Error in force(code) :
  Failed while connecting to sparklyr to port (8880) for sessionid (78011): Gateway in localhost:8880 did not respond.
    Path: C:\***\***\AppData\Local\spark\spark-2.3.1-bin-hadoop2.6\bin\spark-submit2.cmd
    Parameters: --driver-memory, 16G, --class, sparklyr.Shell, "C:\***\***\Documents\R\win-library\3.5\sparklyr\java\sparklyr-2.3-2.11.jar", 8880, 78011
    Log: C:\***\***\AppData\Local\Temp\RtmpuumzfQ\file32e4d7676f9_spark.log

---- Output Log ----
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Invalid maximum heap size: -Xmx16G
The specified size exceeds the maximum representable size.

---- Error Log ----

My machine has 32go of memory and 16 cores. I've tried to increase the -Xmx16G parameter using options before loading any package (options(java.parameters = "-Xmx24g")) or by passing it explicitly (conf$spark.driver.extraJavaOptions <- "-Xmx24G"), and both fail. I've also increased the yarn am memory (my understanding of local spark is that it spawns a small yarn container to run spark inside) without success. I also have the latest Java version 1.8.0_131
Other parameters, such as sparklyr.shell.driver-cores, work fine.
Any ideas how to solve that issue?
Thank you

Okay, think I found the issue.
Sparklyr was using the 32 bit version of java instead of the 64 bit version of java.
Closing the issue.


extra-1.0 incompatible with GHC 7.0

Please either make it compatible with GHC 7.0 again or add a base >= 4.4 constraint for the next release...
Building extra-1.0...
Preprocessing library extra-1.0...
[ 1 of 15] Compiling System.Info.Extra ( src/System/Info/Extra.hs, dist/build/System/Info/Extra.o )
[ 2 of 15] Compiling Numeric.Extra    ( src/Numeric/Extra.hs, dist/build/Numeric/Extra.o )
[ 3 of 15] Compiling Data.Tuple.Extra ( src/Data/Tuple/Extra.hs, dist/build/Data/Tuple/Extra.o )
[ 4 of 15] Compiling Data.List.Extra  ( src/Data/List/Extra.hs, dist/build/Data/List/Extra.o )
[ 5 of 15] Compiling Data.IORef.Extra ( src/Data/IORef/Extra.hs, dist/build/Data/IORef/Extra.o )
[ 6 of 15] Compiling Data.Either.Extra ( src/Data/Either/Extra.hs, dist/build/Data/Either/Extra.o )
[ 7 of 15] Compiling Control.Monad.Extra ( src/Control/Monad/Extra.hs, dist/build/Control/Monad/Extra.o )
[ 8 of 15] Compiling System.Directory.Extra ( src/System/Directory/Extra.hs, dist/build/System/Directory/Extra.o )
[ 9 of 15] Compiling Control.Exception.Extra ( src/Control/Exception/Extra.hs, dist/build/Control/Exception/Extra.o )
[10 of 15] Compiling System.Environment.Extra ( src/System/Environment/Extra.hs, dist/build/System/Environment/Extra.o )
[11 of 15] Compiling System.Time.Extra ( src/System/Time/Extra.hs, dist/build/System/Time/Extra.o )

src/System/Time/Extra.hs:70:30: Not in scope: `forkIOWithUnmask'

I'm surprised you decided to go back as far as 7.0 - I know Standard Chartered is still on 7.2, but I thought we were miles behind the curve. Anyway, I'll certainly include this in the next release, but that might not be for a few weeks (my dev machine blew up yesterday).

@ndmitchell it just showed up while I was throwing that build-matrix-builder at extra, and GHC 7.0.4 just happens to be part of the test-matrix. (if you're curious about some example reports: https://ghc.haskell.org/~hvr/buildreports/0INDEX.html)
It's totally fine if future extra version drop support for GHC 7.0. In that case, by placing a base >= 4.4 just keeps those few GHC 7.0 users from having cabal install extra broken suddenly  when you release a new extra package...

Bound included, and a new extra-1.0.1 release made. Let me know if any of my other packages trip up your testing. While my base bounds aren't always correct, my tested-with lines are, and if you start relying on the base bounds, I can update my checking script to demand them too.


the namespace TrackMatchLengthEntryFilter could not be found

Duplicate https://github.com/AddictedCS/soundfingerprinting/issues/228


Make graphics in cards clickable

Today they're not.

Now Issue 150 is done this should be a bit easier.

Fixed in v4.3.1.


fix: PHP7 incompatibility in Database Scanner.

With PHP7 there is an 'Array to string conversion' error in the Database Scanner. $foo->$bar['baz'] is interpreted differently in PHP5 and PHP7 ($foo->{$bar['baz']} -> ($foo->$bar)['baz']).
This PR fixes this.

Thanks!


Document how to push multiple modules in Buf workspace

As Buf supports multi-module proto workspaces  as documented here https://docs.buf.build/tour/push-workspace-modules ,
please document how to push multiple modules via this GitHub action for a monorepo.
If possible, please improve this action to support pushing multi-module repo with coordinated  buf mod update and buf push

This will largely depend on the modules defined in your workspace. In short, you'll need to push and update each module in the order of a DAG - the upstream modules should be pushed first, so that the downstream modules can update to the latest commit, be pushed themselves, and so on. This is described here.
A very crude example is something like this:
steps:
  # Run `git checkout`
  - uses: actions/checkout@v2
  # Install the `buf` CLI
  - uses: bufbuild/buf-setup-action@v1
  - uses: bufbuild/buf-push-action@v1
    with:
      input: paymentapis
      buf_token: ${{ secrets.BUF_TOKEN }}
  - name: update-petapis
    run: buf mod update petapis
  - uses: bufbuild/buf-push-action@v1
    with:
      input: petapis
      buf_token: ${{ secrets.BUF_TOKEN }}

It's important to note that you should also check in the updated petapis/buf.lock file (from the buf mod update petapis command) so that it's committed back to your repository.
We'd eventually like to bake all this complexity into the buf push command itself - see this issue for details.

Hope we could figure out DAG of dependencies programmatically    and automatically push all modules in the order.
Agree , committing the ,lock files is impotent


UWP: inconsistent field and field value display prominence

It looks like the display prominence of fields/field values is not consistent between the main record and its related records.
Notice that for the main tree record, field headings appear in boldface and carry the greater prominence whereas the opposite is true for related records - field values are in boldface.

IMO, this is correct for the tree records. The field headings which are consistently unchanging should be the ones that appear in boldface. I think we need to update this for the related records view.

Verified that this has been updated for Species and Inspections related records:


Compression library accept ByteBuffer.

Previous implementation accepts byte[] or Heap.  It relies on JVM byte array pinning to avoid memory copy when calling native compression library.  However, pinning is not reliable and unpredictable.  A better alternative is to use ByteBuffer that can hold either Heap or Direct memory.  This change adds ByteBuffer to API.  After ByteBuffer API code changes are mere, the byte[] will be deleted.

Codecov Report
Base: 54.06% // Head: 68.63% // Increases project coverage by +14.57% :tada:

Coverage data is based on head (ad8546a) compared to base (060ff63).
Patch coverage: 74.84% of modified lines in pull request are covered.

Additional details and impacted files
@@              Coverage Diff              @@
##             master    #2284       +/-   ##
=============================================
+ Coverage     54.06%   68.63%   +14.57%
- Complexity     7082     9881     +2799
=============================================
  Files           755      755
  Lines         57877    58015      +138
  Branches       7121     7139       +18
=============================================
+ Hits          31290    39818     +8528
+ Misses        23854    15874     -7980
+ Partials       2733     2323      -410

Impacted Files
Coverage Δ

.../com/github/ambry/tools/admin/ServerAdminTool.java
0.00% <0.00%> (ø)

...java/com/github/ambry/router/GetBlobOperation.java
87.97% <70.58%> (+28.87%)
:arrow_up:

...ain/java/com/github/ambry/router/PutOperation.java
90.75% <84.21%> (+35.02%)
:arrow_up:

...java/com/github/ambry/compression/Compression.java
86.66% <85.71%> (+86.66%)
:arrow_up:

.../com/github/ambry/compression/BaseCompression.java
86.06% <92.53%> (+86.06%)
:arrow_up:

.../main/java/com/github/ambry/router/GetManager.java
90.19% <100.00%> (+19.89%)
:arrow_up:

.../main/java/com/github/ambry/router/PutManager.java
88.02% <100.00%> (+18.14%)
:arrow_up:

...ls/src/main/java/com/github/ambry/utils/Utils.java
70.87% <100.00%> (+16.59%)
:arrow_up:

...java/com/github/ambry/notification/UpdateType.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...thub/ambry/notification/BlobReplicaSourceType.java
0.00% <0.00%> (-100.00%)
:arrow_down:

... and 451 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Is it possible to access the proxy address in the request handler?

I'd to access the proxy address that was used by the client to connect to the proxy and forward it as a request header.
For example, if I have a single instance of the proxy with dnsmasq resolving *.proxy.dev, serving  team-a.proxy.dev and team-b.proxy.dev, I'd like to be able to inject a header with the proxy address on the way through.
I couldn't find a way to do this. Is it possible?

Yes, you can do something like
https://github.com/rahulwa/camouflage/blob/master/proxy/proxy.go#L96

The part that I was struggling with was retrieving the proxy address itself. Is it possible to determine if the request was routed via team-a.proxy.dev versus team-by.proxy.dev (using the same proxy instance)?


Navigator always requests focus on initialization

Steps to Reproduce

Put a TextField in a column
Put a Navigator with an arbitrary page in it and requestFocus: false
In the TextField's onChanged, push a new page to the navigator. Put a new navigator INSIDE of the page, also with requestFocus: false
Run the app
Type in the text field

Expected results:
Text field retains focus as characters are typed and new pages are pushed.
Actual results:
The text field loses focus and the keyboard disappears on each character typed.
This is a bug in my own PR (https://github.com/flutter/flutter/pull/90097) and is largely a placeholder to keep track of while I work on a new PR to fix it.

Hi @caseycrogers, Thanks for filing the issue. I tried the below code sample based on your description and I am able to enter text into the keyboard which is pushing nested routes.  Feel free to modify and share the updated code sample incase the code isn't as per your reproducible steps.
https://user-images.githubusercontent.com/31410839/152341464-82624529-67fd-4260-876b-98f81c6c64df.mov

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

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

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  static const String _title = 'Flutter Code Sample';

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: _title,
      routes: {'/newpage': (context) => const NewPage()},
      home: Scaffold(
        appBar: AppBar(title: const Text(_title)),
        body: const MyStatefulWidget(),
      ),
    );
  }
}

class MyStatefulWidget extends StatefulWidget {
  const MyStatefulWidget({Key? key}) : super(key: key);

  @override
  State<MyStatefulWidget> createState() => _MyStatefulWidgetState();
}

class _MyStatefulWidgetState extends State<MyStatefulWidget> {
  final _navigatorKey = GlobalKey<NavigatorState>();
  @override
  Widget build(BuildContext context) {
    return Column(
      children: <Widget>[
        TextField(
          onChanged: (z) {
            _navigatorKey.currentState!.pushNamed('sample');
          },
        ),
        Expanded(
          child: Navigator(
            key: _navigatorKey,
            requestFocus: false,
            onGenerateRoute: (RouteSettings settings) {
              WidgetBuilder builder;
              switch (settings.name) {
                case '/sample':
                  builder = (BuildContext context) => const SamplePage();
                  break;
                default:
                  builder = (BuildContext context) => const DefaultPage();
              }
              return MaterialPageRoute<void>(
                  builder: builder, settings: settings);
            },
          ),
        )
      ],
    );
  }
}

class SamplePage extends StatefulWidget {
  const SamplePage({Key? key}) : super(key: key);

  @override
  SamplePageState createState() => SamplePageState();
}

class SamplePageState extends State<SamplePage> {
  @override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.red,
      alignment: Alignment.center,
      child: const Text('Sample Widget in a Navigator'),
    );
  }
}

class NewPage extends StatelessWidget {
  const NewPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Navigator(
      requestFocus: false,
      onGenerateRoute: (RouteSettings settings) {
        WidgetBuilder builder;
        switch (settings.name) {
          case '/sample':
            builder = (BuildContext context) => const SamplePage();
            break;
          default:
            builder = (BuildContext context) => const DefaultPage();
        }
        return MaterialPageRoute<void>(builder: builder, settings: settings);
      },
    );
  }
}

class DefaultPage extends StatelessWidget {
  const DefaultPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.red,
      alignment: Alignment.center,
      child: const Text('New Page in a Navigator'),
    );
  }
}

flutter doctor -v
[✓] Flutter (Channel stable, 2.8.1, on macOS 12.1 21C52 darwin-arm, locale en-GB)
    • Flutter version 2.8.1 at /Users/mahesh/Documents/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 77d935af4d (3 weeks ago), 2021-12-16 08:37:33 -0800
    • Engine revision 890a5fca2e
    • Dart version 2.15.1

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
    • Android SDK at /Users/mahesh/Library/Android/sdk
    • Platform android-31, build-tools 31.0.0
    • ANDROID_HOME = /Users/mahesh/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.10.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] IntelliJ IDEA Community Edition (version 2021.2.1)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin version 60.1.4
    • Dart plugin version 212.5080.8

[✓] VS Code (version 1.63.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.32.0

[✓] Connected device (4 available)
    • Redmi K20 Pro (mobile) • <IP_ADDRESS>:5555                     • android-arm64  • Android 11 (API 30)
    • iPhone 13 Pro (mobile) • 0FA2FB93-2A89-4FDB-8293-DF66188F1E54 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-0
      (simulator)
    • macOS (desktop)        • macos                                • darwin-arm64   • macOS 12.1 21C52 darwin-arm
    • Chrome (web)           • chrome                               • web-javascript • Google Chrome 96.0.4664.110

• No issues found!

Thanks


CLAS and INTF XML file format

<CLSNAME> is repeated, it can be removed from the XML descriptions, keep the first CLSNAME? And inserted again at deserialize.
Note that this can be done backwards compatible

I'd remove whatever redundancies can be removed

Then this becomes obsolete: https://github.com/abaplint/abaplint/blob/master/packages/core/src/rules/xml_consistency.ts

yea

https://github.com/abapGit/abapGit/issues/2207#issue-390283413

Closed by #5755


Fixes #210. Update RRTMGP to Pincus 2020-Feb-12

Updates RRTMGP to RobertPincus/rte-rrtmgp master branch as of 2020-Feb-12

As RRTMGP is not on by default, this is zero-diff to "plain" RRTMG.

@GEOS-ESM/cmake-team I have verified this is 0-diff. If you approve the CMakeLists.txt changes, I can merge into develop


Inconsistency in filter-related info in nc-config vs. netcdf_meta.h

Today's main snapshot includes some new info in nc-config which is good. However, it seems that nc-config and netcdf_meta.h are not consistent in what/how they report about available filters. Namely, netcdf_meta.h lacks any tokens that declare the availability of the Bzip2 and Blosc filters. netcdf_meta.h does contain a useful (meaning client applications like NCO can easily make use of it in C-code) Zstandard token:
#define NC_HAS_PAR_FILTERS   1 /* Parallel I/O with filter support. */
#define NC_HAS_NCZARR        1 /*!< Parallel I/O with filter support. */
#define NC_HAS_MULTIFILTERS  1 /*!< Nczarr support. */
#define NC_HAS_LOGGING       1 /*!< Logging support. */
#define NC_HAS_QUANTIZE      1 /*!< Quantization support. */
#define NC_HAS_ZSTD          1 /*!< Zstd support. */

(Also note the comment for NC_HAS_NCZARR is, erroneously, a copy of the NC_HAS_PAR_FILTERS comment). Whereas nc-config reports
--has-nczarr       -> yes
 --has-zstd         -> yes
 --has-benchmarks   -> no
 --has-multifilters -> yes
 --has-stdfilters   -> deflate bz2 blosc zstd
 --has-quantize     -> yes

So Zstandard is reported by itself (without additional parsing) by both nc-config and netcdf_meta.h. The presence of Bzip2 and Blosc, on the other hand, can only be learned by parsing the list output of --has-stdfilters from nc-config. If the new method of specifying available standard filters was intentionally to list them in nc-config but not say anything in netcdf_meta.h then, well, fine. At least it is intentional. But it the absence of Bzip2 and Blosc from netcdf_meta.h is unintentional then please fix it so client applications can make use of NC_HAS_<filtername> tokens for all standard filters.

Good catch; I'll get this oversight corrected!


RUNE Depost: Bond -> Memo not sent.

Error introduced where the memo is displayed on the bond screen however the memo is not sent in the transaction.
The bond memo sent in the transaction should match what is shown to the user.

Need to add MAX for Unbonding, like with bond and custom.

Fixed and tested. Bond is in the message now.


Precise propagation

In #555 I introduced a minor precision loss, because we started doing arithmetic between astropy.time.Time and Quantity objects. This PR brings back the use of astropy.time.TimeDelta instead, which is more precise and has more explicit scale properties.
It also takes advantage of the new Orbit.from_coords method inside Orbit.propagate :muscle:

All checks pass and I'm impatient to merge, so let's get it. Doesn't bring many tests, and I suspect there are some bugs with the new functionality. Happy bug hunting :wink:


Service Bus Scaler has issues with the minReplicaCount parameter

Report
This parameter is documented as below.  Yet it does not seem to be operational.

The min number of jobs that is created by default. This can be useful to avoid bootstrapping time of new jobs. If minReplicaCount is greater than maxReplicaCount, minReplicaCount will be set to maxReplicaCount.

Expected Behavior

If I set it to 2 for example, there will be 2 Jobs always available.
If I set it in the script the Jobs scaling will work.  For the example above, if the count of Messages in the Queue exceeds 2, new Jobs will be started.

Actual Behavior
Setting minReplicaCount: 2 in the Job's script, after having deployed it I've noticed:

No new Containers were created automatically.  I were expecting to see 2 of them.
Sending Messages to the Queue did not create any Containers.  I'd have expected to see one Container being created for each Message I sent to the Queue.

Steps to Reproduce the Problem
Below is the YAML script that I'm experimenting with:
apiVersion: keda.sh/v1alpha1
kind: ScaledJob
metadata:
  name: aks-aci-genericdev-runner-linux
  labels:
    app: aks-aci-genericdev-runner-linux
    deploymentName: aks-aci-boldiq-genericdev-runner-linux
spec:
  jobTargetRef:
    template:
      spec:
        containers:  # this section is identical as for a "kind: Deployment"
        - name: boldiq-genericdev-runner-linux
          image: <removed>
          imagePullPolicy: Always
          resources:
            requests:
              memory: 6G
              cpu: 2
            limits:
              memory: 6G
              cpu: 2
          env:
          - name: KEDA_SERVICEBUS_CONNECTIONSTRING_LINUX
            value: <removed>
        tolerations:
          - key: virtual-kubelet.io/provider
            operator: Exists
          - key: azure.com/aci
            effect: NoSchedule
        imagePullSecrets:
          - name: docker-registry-secret-linux
        nodeName: virtual-node-aci-linux
  pollingInterval: 1  # 1 second polling for max. responsiveness
  minReplicaCount: 2  # keeping two instances running permanently in order to improve low loads' performance
  triggers:
  - type: azure-servicebus
#    metricType: Value // The default AverageValue with messageCount: '1' starts up a new Container for each Message in the Queue.  We want that for responsiveness.
    metadata:
      queueName: requests
      connectionFromEnv: KEDA_SERVICEBUS_CONNECTIONSTRING_LINUX
      messageCount: '1'

AKS 1.25.6
KEDA 2.10.2
The Containers run on the virtual-node-aci-linux virtual node.
Logs from KEDA operator
example

KEDA Version
2.10.1
Kubernetes Version
1.25
Platform
Microsoft Azure
Scaler Details
Azure Service Bus
Anything else?
No response

Hello,
Could you share keda-operator logs in debug please? You can set it using helm: https://github.com/kedacore/charts/blob/main/keda/values.yaml#L198
In debug, you will see the value of the metric on each iteration, current active jobs count and required jobs

Let's hope I did not do something too silly.  Please correct my course if necessary.
I ran this command:
helm upgrade  -f https://github.com/kedacore/charts/blob/main/keda/values.yaml#L198  keda  kedacore/keda  --namespace keda
And got this error:

Error: failed to parse https://github.com/kedacore/charts/blob/main/keda/values.yaml#L198: error converting YAML to JSON: yaml: line 28: mapping values are not allowed in this context

I didn't know that your command was possible O.O
try with helm upgrade  --set logging.operator.level=debug  keda  kedacore/keda  --namespace keda

Thank you.  Neither did I, I'm just learning Helm as I go.  The --set command completed successfully.
However, that value was already present in the output of the helm get all keda -n keda > keda.yaml command:

How do I get the operator's log please?

Line 126 of the keda/apis/keda/v1alpha1/scaledjob_types.go file is below:

I've no GoLang programming experience but realized that exception occurred because I did set minReplicaCount in the deployment .YAML but omitted setting maxReplicaCount, assuming that it will default to 100.  Apparently it defaulted to NULL.  I fixed the deployment .YAML and the Job works now properly.

Now I'm experiencing a different scale-out behavior that's a bit unexpected.  As per the script below, I already have 2 Jobs running.  If I send 3 Messages to the Queue, I get 3 new Jobs started, for a total of 5 Containers.  I'd expect to get only 1 new Job started as I already have 2 of them running.

I checked the documentation at https://keda.sh/docs/2.9/concepts/scaling-jobs/ and my scaling expectations just above are correct.  However, that's a different problem so I'll open a new Issue.

Line 126 of the keda/apis/keda/v1alpha1/scaledjob_types.go file is below:

I've no GoLang programming experience but realized that exception occurred because I did set minReplicaCount in the deployment .YAML but omitted setting maxReplicaCount, assuming that it will default to 100. Apparently it defaulted to nill. I fixed the deployment .YAML and the Job works now properly.

May I suggest initializing s.Spec.Min / MaxReplicaCount to their 0 and 100 default values if not present in the deployment .YAML? That will eliminate some nil checks in the code.

Nice catch!

is this issue duplicated with https://github.com/kedacore/keda/issues/4554?

This is not a duplicate of https://github.com/kedacore/keda/issues/4554

Could you share the logs having both parameters (min and max) set?
The last time you shared the logs but there was a panic (btw, the fix is already merged) and the information that I want to check is missing

I'll get to this on Tuesday, May 30th.  We have a long weekend in the USA.

This is fixed now, right?  I should close then.  And it's not a duplicate of #4554

No no, the fix merged is for not crashing if you set minReplicaCount without setting maxReplicaCount. Was your problem related with that?

Yes, the problem I had was that I was setting the minReplicaCount, not setting the maxReplicaCount and scale-out was no longer working because of the null dereference crash.  I saw that fix, thanks very much.  So this problem is completely addressed.


what does the lookup table mean

hello,

what's the meaning of the element values in the lookup table?
the tool to build the table?

Ya same question. How can we build lookup table for our custom models?

Same question. By leverage this framework, we can only test linear quantization search on mobilenetv2 whose look up table is provided. How can we get our look up table?

@linbinskn Same question.

Is there any answer here?

Did anyone get an answer to this?

Did anyone get an answer to this?
I believe it should include the latency or power of some hardware inference from 1 to 8 bits. Therefore, unless you have specific hardware, it cannot be generated. However, I believe it's just a simulated value. You can dump its .npy file to take a look.


tcache attacks on glibc2.27 no longer work on ubuntu 18.04

Was testing in an ubuntu 18.04 docker container and found that I had to downgrade the libc version to get them working.
ldd (Ubuntu GLIBC 2.27-3ubuntu1.4) 2.27
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
root@ebae5017bf23:/how2heap# cd glibc_2.27/
root@ebae5017bf23:/how2heap/glibc_2.27# ./tcache_dup
This file demonstrates a simple double-free attack with tcache.
Allocating buffer.
malloc(8): 0x55bbb95f6670
Freeing twice...
free(): double free detected in tcache 2
Aborted (core dumped)

root@ebae5017bf23:/how2heap/glibc_2.27# cd ..
root@ebae5017bf23:/how2heap# DEBIAN_FRONTEND=noninteractive dpkg -i libc6_2.27-3ubuntu1.2_amd64.deb
dpkg: warning: downgrading libc6:amd64 from 2.27-3ubuntu1.4 to 2.27-3ubuntu1.2
(Reading database ... 12312 files and directories currently installed.)
Preparing to unpack libc6_2.27-3ubuntu1.2_amd64.deb ...
Unpacking libc6:amd64 (2.27-3ubuntu1.2) over (2.27-3ubuntu1.4) ...
Setting up libc6:amd64 (2.27-3ubuntu1.2) ...
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...

root@ebae5017bf23:/how2heap# cd -
/how2heap/glibc_2.27

root@ebae5017bf23:/how2heap/glibc_2.27# ./tcache_dup
This file demonstrates a simple double-free attack with tcache.
Allocating buffer.
malloc(8): 0x5592d164a670
Freeing twice...
Now the free list has [ 0x5592d164a670, 0x5592d164a670 ].
Next allocated buffers will be same: [ 0x5592d164a670, 0x5592d164a670 ].

I got the deb file from here https://security.ubuntu.com/ubuntu/pool/main/g/glibc/libc6_2.27-3ubuntu1.2_amd64.deb

Does Ubuntu backwards apply LibC patches? At some point, I had a similar issue with 16.04 Ubuntu.

@mdulin2 it does. that's why we have a testing system for how2heap

I double-checked. They did backport the tcache-key patch to new 2.27. At this point, I think there is no way to make simple tcache dup work. I just moved it to a folder called obsolete.
However, it doesn't mean double free is not exploitable. It is still exploitable through some other methods like house_of_botcake

The backport is put into new 2.27 but that's not from the original release of course. So, should it just stay in 2.27 but make a note on the POC of the backport?
To me, the original 2.27 LibC version is what we should be basing the repository off of. Otherwise, all security based backports for Malloc would cause a bunch of weird scenarios like this. I usually check https://elixir.bootlin.com/glibc/glibc-2.27/source/malloc/malloc.c for source code when I need it.

One option would be to include an original compiled version of the LibC and Loader for that version of GLibC? This way, people would have a way to run all of the techniques with a known version of LibC.
Recently, I started compiling my own versions of LibC with no optimizations within Malloc and with debugging symbols. I would be happy to share these builds.

the problem is it is troublesome to set up an environment that uses the exact libc release.
For the original release, maybe you can use pocs from the obsolete folder?

To run the 2.27 techniques in general, the users will need to have a 2.27 release. Besides the case when people run it on the base system, I would expect people trying out different techniques for different versions, which would require other versions of LibC. Although using the backported system breaks this technique, I think it would be good to have a gold-standard of LibC to test against inside of the repo.
I would be happy to write up some docs on LD_PRELOAD for the repo here!

For gold-standard, currently what we are doing is using ubuntu's releases as the golden-standard.
For running different versions of libcs, we have the glibc_build.sh and glibc_run.sh scripts.

accidentally clicked close... oops.

Ahh, I see the issue now. The gold-standard backported the version and we expect people to compile things themselves.

I think an argument could be made for either case then.

Have pre-compiled versions of LibC with the techniques at the time of release
Have an obsolete folder for techniques that are made bad by the backport

At this point, it probably makes sense to use the obsoleted version as this is the current setup of the repo.

btw, you can get the source for ubuntu release by running apt source. I think this should be documented.

I think it is safe to close this issue now. If you still have questions, feel free to reopen it.


Streamline worker pods

Builds off of #4663 with a few more improvements:

Inject certs into the worker binary via go-bindata rather than copying them /etc/ssl/certs (build container) -> /etc/ssl/certs (worker init container) -> /pach-bin/certs (worker user container) -> /etc/ssl/certs (worker user container.)
Inject binaries in /app instead of /pach. This aligns with the changes to pachd in #4663 and should furthermore reduce confusion, as before, /pach meant either a mounted directory or the directory for binaries depending on the worker container.
Switch back to scratch for pachd.
Use scratch for the worker image (vs ubuntu on master, and alpine on #4663.) alpine is no longer necessary with the removal of the shell script, and using scratch seems safer since there's a smaller attack surface. I'm not sure if this is worthwhile, though, as alpine introduced the possibility of new ways to debug issues with pachd/worker images.

We still need an init container to copy the worker binary into the user container. As a result, I figured it didn't make sense to combine the pachd/worker images/binaries.
Closes #4679
Closes #3863

I think moving pachyderm/worker to FROM scratch is good, and I don't think we should worry about the debuggability because we only run the worker image as an init container. So you can't really debug within that container anyways, since it only exists for a short time while copying files over, if something goes wrong it'll probably error / crashloop, in which case it's tough to drop into a shell to debug anyways.

I'll merge this into the simpler build PR, so that everything is merged after 1.10 is released.


netskope legacy collection

Purpose of this pull request
This pull request (PR) ...
Issue number:

Select the type of change:

[ ] Minor Changes - Typos, formatting, slight revisions
[X ] Update Content - Revisions and updating sections
[X ] New Content - New features, sections, pages, tutorials
[ ] Site and Tools - Updates, maintenance, and new packages for the site, Gatsby, React, etc

Looks like an extra line in the steps. Please check.

@stacykor Thank you for pointing this out. It's fixed.


Problem do Login in Work account

Hello ,
My organization have a redirect to insert a username / password of yours intranet. But the app dont ask for it, like the browser . Anyone has any ideas how to resolve this ? And just go to blank white screen

Any screenshot? I remembered we've got this request long times ago, and it's been solved. I'd like to see more in details.

I have the same issue; no screenshot to post other than a blank white screen. It may be a proxy issue on my case. Any way to manually/explicitly specify a connection proxy?

@aegagros no proxy setting at this stage. I'll have a look to add the proxy support

@Colmanetti and @aegagros can you try my PR #48, see if that would help you.

@jhakonen I resolve my problem . I will make a PR with my solution

@jhakonen It`s works perfectly. I test , and pop up an new window to put username and password for SSO.
@aegagros  You can try , i think u dont need proxy support.

I tried to build from your repo but it fails; could it be because I have node v10.19.0 in ubuntu 20.04? I am not very familiar with node development tbh, and its a company pc which I have very little update capabilities.
In any case, I will monitor this PR until merged, and will use the prebuilt deb package. Thanks for that!

Yeah, node v10 will not cut it, even running npm i fails to error Error: Cannot find module 'fs/promises'.
You'll need to use node v14 or newer.
I think you can install newer version using these instructions:
https://github.com/nodesource/distributions/blob/master/README.md#installation-instructions
Personally, I'm using nvm (https://github.com/nvm-sh/nvm) to switch between node versions, but that may be overkill for your needs.


fixed babel-core requirement issue

... because babel-core is no a peerDependency https://github.com/babel/grunt-babel/releases/tag/v7.0.0
resolves #90

@gavinr
I was able to repro #90 and then verify that this change removes the babel-core warning.


Help -> Reset App Data not working on Mac 2.14.4

My Setup

Operating System: macOS
App Version: 2.14.4
Installation type: dmg

[ X ] I have tested with the latest version
[ X ] I can simulate the issue easily

Description

Help -> Reset App Data does nothing. The client reloads but all settings remain. It should wipe the application cache. It works in 2.14.1 so I think there was a regression when this feature was fixed for Windows in issue #947
Current Behavior

Help -> Reset App Data has no effect.
Expected Behavior

Help -> Reset App Data should clear the application cache and force the user to log back in to his or her server.

I couldn't reproduce it in 2.14.5.

I can't reproduce on 2.14.5 either. 🙌


Data is missing after restarting docker using docker compose?

Steps to reproduce
my docker compose yaml is:
version: '3'
services:
minio:
restart: always
image: quay.io/minio/minio:RELEASE.2022-10-20T00-55-09Z
ports:
- 9000:9000
- 9001:9001
environment:
- MINIO_ROOT_USER=minio
- MINIO_ROOT_PASSWORD=password
volumes:
- ./data:/data
command: server /data --address :9000 --console-address ":9001"
Expected result
data persistence
Actual result
data missing after restart
Environment
ubuntu 22.04
Logs, links

This looks more like a minio issue instead of an issue on the Neon side? Feel free to reopen if it is related to Neon.

I confirm that the minio is working fine.I try to restart each service in docker compose, finally I figured out it is the "compute" service would make data missing after restarting.
I read relate docs, the compute_node would try to create new tenentID and timelineID everytime, how can I select specific tenentID and timelimeID, so I can retrieve the saved data?

IIRC we generally provide compute_node with a spec so that it can retrieve history data from safekeeper + pageserver.


Update scroll limits when adding new properties to the grid (defaultRowHeight may have changed)

Without this, when instantiating a new grid and then adding theming properties with addProperties(),
the scroll limits are not updated and only a portion of the grid may be accessible on scroll.

@hugoeanogueira thanks!


Improve Performance

Surprisingly, the plugin becomes slower on newer versions of Xcode. Need to re-evaluate performance bottlenecks. Last big performance optimisation was done when Xcode 5 was still around :)
Initial investigation of performance under Xcode 7.1 shows that getting a priority factor has (only now, or had it always?) a synchronized part, and can make parallel processing slower than single thread when many items pass the filtering.
Also, it takes surprisingly long (even given it does synchronize) and the priorities do not change when narrowing down.

[x] use single thread for getting priority factors
[x] cache priority factors for narrowing down
[ ] make filtering before populating the cache also parallel
[ ] investigate how Xcode filtering and scoring changed
[ ] identify other bottlenecks

Yeah, I run into this problem, too. Mac runs quite slow and hot when I swithed the plugin on, on which I run Xcode 7.1

This is the problem man,it's much slower when I'm working on Swift.Wish we can get this update soon：）


LNURLw extension: refactor try except block

If the lnurlw link was not found, the code would raise an HTTPException (line 97) which would in turn then trigger the except block in line 144, where the code tries to access the variable changesback which was still undefined.
Now the try: except: block starts later.
Here is the full stack trace:
2022-10-26 09:52:16.95 | ERROR | lnbits.app:basic_error:197 | handled error
2022-10-26 09:52:16.95 | ERROR | lnbits.app:basic_error:198 | ERROR:
Traceback (most recent call last):
  File "/root/fast/lnbits-legend/lnbits/extensions/withdraw/lnurl.py", line 97, in api_lnurl_callback
    raise HTTPException(
fastapi.exceptions.HTTPException
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/starlette/middleware/errors.py", line 162, in __call__
    await self.app(scope, receive, _send)
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/starlette/middleware/gzip.py", line 24, in __call__
    await responder(scope, receive, send)
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/starlette/middleware/gzip.py", line 43, in __call__
    await self.app(scope, receive, self.send_with_gzip)
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/starlette/middleware/cors.py", line 84, in __call__
    await self.app(scope, receive, send)
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/starlette/exceptions.py", line 93, in __call__
    raise exc
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/starlette/exceptions.py", line 82, in __call__
    await self.app(scope, receive, sender)
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
    raise e
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/starlette/routing.py", line 670, in __call__
    await route.handle(scope, receive, send)
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/starlette/routing.py", line 266, in handle
    await self.app(scope, receive, send)
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/starlette/routing.py", line 65, in app
    response = await func(request)
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/fastapi/routing.py", line 227, in app
    raw_response = await run_endpoint_function(
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/fastapi/routing.py", line 160, in run_endpoint_function
    return await dependant.call(**values)
  File "/root/fast/lnbits-legend/lnbits/extensions/withdraw/lnurl.py", line 144, in api_lnurl_callback
    await update_withdraw_link(link.id, **changesback)
UnboundLocalError: local variable 'changesback' referenced before assignment
2022-10-26 09:52:16.95 | ERROR | Exception in ASGI application
ERROR:uvicorn.error:Exception in ASGI application
Traceback (most recent call last):
  File "/root/fast/lnbits-legend/lnbits/extensions/withdraw/lnurl.py", line 97, in api_lnurl_callback
    raise HTTPException(
fastapi.exceptions.HTTPException
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/starlette/middleware/errors.py", line 162, in __call__
    await self.app(scope, receive, _send)
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/starlette/middleware/gzip.py", line 24, in __call__
    await responder(scope, receive, send)
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/starlette/middleware/gzip.py", line 43, in __call__
    await self.app(scope, receive, self.send_with_gzip)
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/starlette/middleware/cors.py", line 84, in __call__
    await self.app(scope, receive, send)
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/starlette/exceptions.py", line 93, in __call__
    raise exc
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/starlette/exceptions.py", line 82, in __call__
    await self.app(scope, receive, sender)
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
    raise e
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/starlette/routing.py", line 670, in __call__
    await route.handle(scope, receive, send)
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/starlette/routing.py", line 266, in handle
    await self.app(scope, receive, send)
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/starlette/routing.py", line 65, in app
    response = await func(request)
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/fastapi/routing.py", line 227, in app
    raw_response = await run_endpoint_function(
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/fastapi/routing.py", line 160, in run_endpoint_function
    return await dependant.call(**values)
  File "/root/fast/lnbits-legend/lnbits/extensions/withdraw/lnurl.py", line 144, in api_lnurl_callback
    await update_withdraw_link(link.id, **changesback)
UnboundLocalError: local variable 'changesback' referenced before assignment
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/uvicorn/protocols/http/httptools_impl.py", line 401, in run_asgi
    result = await app(self.scope, self.receive, self.send)
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
    return await self.app(scope, receive, send)
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/fastapi/applications.py", line 269, in __call__
    await super().__call__(scope, receive, send)
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/starlette/applications.py", line 124, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/starlette/middleware/errors.py", line 174, in __call__
    response = await self.handler(request, exc)
  File "/root/fast/lnbits-legend/lnbits/app.py", line 212, in basic_error
    return JSONResponse(
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/starlette/responses.py", line 187, in __init__
    super().__init__(content, status_code, headers, media_type, background)
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/starlette/responses.py", line 49, in __init__
    self.body = self.render(content)
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/starlette/responses.py", line 190, in render
    return json.dumps(
  File "/usr/lib/python3.8/json/__init__.py", line 234, in dumps
    return cls(
  File "/usr/lib/python3.8/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.8/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/root/.cache/pypoetry/virtualenvs/lnbits-3PdPdHve-py3.8/lib/python3.8/site-packages/pyln/client/lightning.py", line 13, in _patched_default
    return getattr(obj.__class__, "to_json", _patched_default.default)(obj)
TypeError: default() missing 1 required positional argument: 'o'
2022-10-26 09:52:16.96 | INFO | <IP_ADDRESS>:0 - "GET /withdraw/api/v1/lnurl/cb

Codecov Report

Merging #1084 (8a2482f) into main (09871bb) will decrease coverage by 2.94%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #1084      +/-   ##
==========================================
- Coverage   51.52%   48.57%   -2.95%
==========================================
  Files         238      238
  Lines       13396    13396
==========================================
- Hits         6902     6507     -395
- Misses       6494     6889     +395

Impacted Files
Coverage Δ

lnbits/extensions/withdraw/lnurl.py
22.72% <0.00%> (ø)

lnbits/extensions/boltz/mempool.py
32.75% <0.00%> (-50.00%)
:arrow_down:

lnbits/extensions/boltz/crud.py
29.23% <0.00%> (-49.24%)
:arrow_down:

lnbits/extensions/boltz/utils.py
23.52% <0.00%> (-41.18%)
:arrow_down:

lnbits/extensions/boltz/boltz.py
17.91% <0.00%> (-39.31%)
:arrow_down:

lnbits/wallets/cln.py
19.00% <0.00%> (-29.76%)
:arrow_down:

lnbits/wallets/lndrest.py
17.09% <0.00%> (-29.06%)
:arrow_down:

lnbits/wallets/lndgrpc.py
22.72% <0.00%> (-27.93%)
:arrow_down:

lnbits/extensions/boltz/views_api.py
31.40% <0.00%> (-18.19%)
:arrow_down:

...nbits/wallets/lnd_grpc_files/lightning_pb2_grpc.py
38.22% <0.00%> (-12.25%)
:arrow_down:

... and 6 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


esp_light_sleep_start returns 1 (IDFGH-5116)

Environment

Development Kit:      none
Module or chip used:  ESP32-WROVER-E
IDF version (run git describe --tags to find it): 4.1.1
Build System:         idf.py
Compiler version: (crosstool-NG esp-2020r3) 8.4.0
Operating System:     Windows
(Windows only) environment type: Eclipse IDF plugin.
Using an IDE?: Eclipse 2021-03
Power Supply:         Battery

Problem Description
the function esp_light_sleep_start returns 1 frequently
Expected Behavior
esp_light_sleep_start should start light sleep
Actual Behavior
light sleep is not started and the above function returns immediately
	ESP_ERROR_CHECK(gpio_wakeup_enable(21, GPIO_INTR_HIGH_LEVEL));

	ESP_ERROR_CHECK(esp_sleep_enable_timer_wakeup(5 * 60 * 60 * 1000000LL));
	ESP_ERROR_CHECK(esp_sleep_enable_gpio_wakeup());
	esp_err_t err = esp_light_sleep_start();
	if (err) {
		printf("sleep refused (%d)\n", err);
	} else {
		printf("\nWAKEN UP by %d\n", esp_sleep_get_wakeup_cause());
	}
	esp_restart();

I've found similar ticket already
https://github.com/espressif/esp-idf/issues/6246
but I am not sure, if the solution is valid for ESP32 CPU as the original ticket describes different chip and SDK and provided fix is not present for my chip

the actual reason for this effect is that esp_restart does not affect gpio configuration as mentioned here


Windows 10 ver. 1909 build 18363.1556 not working

Uninstalled last update which was KB5003169 and works now. Closing issue.


fix(TDI-39026): should move some tests to integration test module for jdbc

What is the current behavior? (You can also link to an open issue here)
https://jira.talendforge.org/browse/TDI-39026
Please check if the PR fulfills these requirements

[x] The commit message follows Talend standard
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features) ?
[ ] The code coverage on new code >75%
[x] The new code does not introduce new technical issues (sonar / eslint)

What kind of change does this PR introduce?

[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build / CI related changes
[ ] Other... Please describe:

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Pull request test result: success :star:


ci: use shared workflow

@TheUnderScorer something wrong with the workflow https://github.com/fingerprintjs/fingerprint-pro-server-api-dotnet-sdk/actions/runs/5998261975

:tada: This PR is included in version 2.3.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Add documentation for metal trace and multi cq performance features

Problem description
Resnet outputs to DRAM in some cases when not needed.
Need to add documentation on using trace and 2 cq features
What's changed
Make Resnet output to L1
Add Documentation for trace and 2 cq features
Checklist

[ ] Model regression CI testing passes (if applicable)
[x] New/Existing tests provide coverage for changes

My bad, will remove submodule updates


Document C5105

When compiling with the -experimental:preprocessor a new warning C5105 is showing up, but it is not documented.
#include <stdio.h>
int main()
{
        printf("hello world\n");
}

compiled with cl -c -experimental:preprocessor test.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 19.20.27027.1 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

test.cpp
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\stdio.h(378): warning C5105: macro expansion producing 'defined' has undefined behavior
C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\stdio.h(2437): warning C5105: macro expansion producing 'defined' has undefined behavior

See Compiler Warning (level 1) C5105.