Revert PaaS manifest handling

This change seems to have caused a regression with the proper server setup:
https://github.com/jan-dolejsi/vscode-pddl/commit/0a973a1972966d30c7f1d404d98e37b8c03683e8#diff-aa76e7a01629cf47157ed907a2b25bc125e8ed91d2992b3c881df6a9208ea66fR28
The latest uses a dict setup for the manifest, rather than a list:
https://github.com/AI-Planning/planning-as-a-service/blob/main/server/api/app.py#L161

I tested it on the hosted server. Where do you get the dictionary response
from? Local planutils? I did not test that. Thought they were just two
packaging's of the same service.
J
On Wed, Nov 8, 2023, 17:38 Christian Muise @.***> wrote:

This change seems to have caused a regression with the proper server setup:
0a973a1
#diff-aa76e7a01629cf47157ed907a2b25bc125e8ed91d2992b3c881df6a9208ea66fR28
https://github.com/jan-dolejsi/vscode-pddl/commit/0a973a1972966d30c7f1d404d98e37b8c03683e8#diff-aa76e7a01629cf47157ed907a2b25bc125e8ed91d2992b3c881df6a9208ea66fR28
The latest uses a dict setup for the manifest, rather than a list:
https://github.com/AI-Planning/planning-as-a-service/blob/main/server/api/app.py#L161
—
Reply to this email directly, view it on GitHub
https://github.com/jan-dolejsi/vscode-pddl/issues/172, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AF2JYHLDRXTBKA4ACJ7HRGDYDOYP3AVCNFSM6AAAAAA7DFZW2SVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE4DGOJZG42TSMA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Aye, the deployed one was on a stale branch, but was fixed. Should be showing a mapping now as well: https://paas-uom.org:5001/package

Got it. Found it. Reverted the manifest json parsing. Deploying soon.
While testing, I am running into this awkward behavior. The first package
in the list is "Delfi". But selecting that returns
HTTP 200
content type plain/text
Body: Error: This Planutils package is not configured correctly
This fails in the library that is parsing the response and is expecting
application/json type when the status code is 200.
Can the response HTTP status be set to 500? Or possibly 418, but this is
not something the user can fix on the client side.
On Thu, Nov 9, 2023 at 1:53 AM Christian Muise @.***>
wrote:

Aye, the deployed one was on a stale branch, but was fixed. Should be
showing a mapping now as well: https://paas-uom.org:5001/package
—
Reply to this email directly, view it on GitHub
https://github.com/jan-dolejsi/vscode-pddl/issues/172#issuecomment-1802993834,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AF2JYHI4QSO3DRKVZY7ID53YDQSP7AVCNFSM6AAAAAA7DFZW2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBSHE4TGOBTGQ
.
You are receiving this because you commented.Message ID:
@.***>

Thank you for the quick fix, btw!


.Net Core Console App and .Net Standard library templates missing

Templates are missing after clean install of Visual Studio.

Repro steps
Clean install of 15.7.3 Community, add components

F# desktop language support
F# language support

Expected behavior
.Net Core and .Net Standard templates are available
Actual behavior
.Net Core Console App and .Net Standard library templates missing
Related information
15.7.3 Community
the same with 15.8.0 P2

Ok, adding .Net Core workflow fixed this. Closing.


HIVE-24107: Fix typo in ReloadFunctionsOperation

What changes were proposed in this pull request?
Fix typo in ReloadFunctionsOperation

Why are the changes needed?
Hive.get() will register all functions as doRegisterAllFns is true,  so Hive.get().reloadFunctions() may load all functions from metastore twice, use Hive.get(false) instead may be better.

Does this PR introduce any user-facing change?
No

How was this patch tested?
Existing tests

Reopen the pr to trigger a new test.

@miklosgergely @kgyrtkirk any comments on this change? thank you


Avoid warnings in tests when compiling without default features

When testing with
cargo test -p datafusion --no-default-features   -- pruning

I get this warning:
warning: unused import: `ListArray`
    --> datafusion/src/physical_plan/functions.rs:1278:25
     |
1278 |             Int32Array, ListArray, StringArray, UInt32Array, UInt64Array,
     |                         ^^^^^^^^^
     |
     = note: `#[warn(unused_imports)]` on by default

Because the test that uses it is not being compiled without the default features.
Thus move the use to the tests that need them.

Codecov Report

Merging #489 (ef38b41) into master (33ff660) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #489   +/-   ##
=======================================
  Coverage   75.80%   75.80%
=======================================
  Files         153      153
  Lines       25924    25924
=======================================
  Hits        19652    19652
  Misses       6272     6272

Impacted Files
Coverage Δ

datafusion/src/physical_plan/functions.rs
92.70% <ø> (ø)

Continue to review full report at Codecov.

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


NoSuchElementException thrown by Inventory#getProperty during inventory close event

I am currently running

SpongeForge version: 2990 (latest RB for stability purposes)

Other environment information is irrelevant
Issue Description Inventory#getProperty will sometimes throw a NoSuchElementException when called. I'm not sure of the exact circumstances (just grabbed it from a log file), but it seems like it's happening when the inventory is a childless parent (not entirely familiar with Sponge's inventory implementation so not sure what this scenario means practically speaking).
Minified problem code:
InteractInventoryEvent.Close event = ...;
Optional<Identifiable> idPropOpt = interest.getProperty(Identifiable.class, "uuid");
// NoSuchElementException thrown

Minified stack trace:
[22:15:06] [Server thread/ERROR] [Sponge]: Could not pass InteractInventoryEvent$Close$Impl to Plugin{id=redacted, name=redacted, version=3.0.0-SNAPSHOT, source=redacted.jar}
java.util.NoSuchElementException: null
	at com.google.common.collect.Iterators$1.next(Iterators.java:81) ~[minecraft_server.1.12.2.jar:?]
	at org.spongepowered.common.item.inventory.adapter.impl.AdapterLogic.inventoryRoot(AdapterLogic.java:300) ~[AdapterLogic.class:1.12.2-2611-7.1.0-BETA-2990]
	at org.spongepowered.common.item.inventory.adapter.impl.AdapterLogic.getRootProperty(AdapterLogic.java:276) ~[AdapterLogic.class:1.12.2-2611-7.1.0-BETA-2990]
	at org.spongepowered.common.item.inventory.adapter.impl.MinecraftInventoryAdapter.getProperty(MinecraftInventoryAdapter.java:175) ~[MinecraftInventoryAdapter.class:1.12.2-2611-7.1.0-BETA-2990]
	at redacted.onCloseInventory(redacted.java:99) ~[redacted.class:3.0.0-SNAPSHOT]

Problem line in SpongeCommon for convenience

I encountered it personally yesterday when opening a Pixelmon PC, but didn't look too deep into it. Perhaps it doesn't adhere exactly to the model Sponge expects?

Related: #2045

https://github.com/SpongePowered/SpongeCommon/compare/7702de741c87...e7d7978abd03


[v3][iOS] Tabs jump over each other on tap

Current behaviour

tabs jump over each other, If you tap not on adjacent ones
Expected behaviour
tabs should not jump over each other
Code sample
const tabBarOptions: MaterialTopTabBarOptions = {
  labelStyle: {
    textTransform: 'none',
    fontSize: 12
  },
  tabStyle: {
    paddingVertical: 4,
  },
  activeTintColor: Colors.light.main,
  inactiveTintColor: Colors.grey[900],
  style: {
    borderBottomWidth: StyleSheet.hairlineWidth,
    borderColor: Colors.grey[200],
    elevation: 0,
  },
  indicatorStyle: {
    backgroundColor: Colors.light.main,
  },
  pressColor: Colors.grey[100],
};

export const TopTab = createMaterialTopTabNavigator();

export function Test({ navigation, route }: NativeStackScreenProps<'Test'>) {
  return (
    <TopTab.Navigator tabBarOptions={tabBarOptions} backBehavior="none" initialLayout={styles.initialLayout} initialRouteName={route.params?.currentTab}>
      <TopTab.Screen name="Test 1" component={TestScreen} />
      <TopTab.Screen name="Test 2" component={TestScreen} />
      <TopTab.Screen name="Test 3" component={TestScreen} />
      <TopTab.Screen name="Test 4" component={TestScreen} />
    </TopTab.Navigator>
  );
}

What have you tried
Android works fine.
Your Environment

software
version

ios
14.4.1

expo
40.0.1

react-native
0.63.4

react-native-tab-view
3.0.0

react-native-pager-view
5.1.0

@react-navigation/material-top-tabs
5.3.14

node
15.11

yarn
1.22.4

expected https://github.com/callstack/react-native-pager-view/pull/293 to have fixed, but didn't 🤔

Related: https://github.com/callstack/react-native-pager-view/issues/310

I checked and found something weird , that when we are transiting from lower index to higher it's working fine but when when we are  moving from higher to lower index this issue still replicated in IOS , any thing you can  suggest?

Same problem here.

For those who are still facing this issue, can switch to package react-native-tab-view-fixed for iOS, just use renderFooter or renderHeader functions for tab container with smooth animations for iOS.

Still present 😞

Still Present QAQ

If anyone is looking for a very temporary workaround, I managed to resolve it by simply deleting /src/Pager.native/tsx. Not sure what the file was really used for along with /src/Pager.tsx but tab animation switching is fine now for me.

Commenting for more exposure to the issue. I'm also experiencing this and it seems to be doing the same thing: lower to higher index works but higher to lower doesn't work.

I am experiencing same issue here. In case I this does not get fixed in time, I will have to fork the repo and try above method :(

Same problem here :|


obtain pointer to raw data of a NDArray

Hi All,
How do I obtain pointer to the raw data of a NDArray.  I check that it is contiguous by doing *.data().CheckContiguous() and I try to get it by data().dptr_. But, when I try to print the internal values returned by this pointer, I get all zeroes

Is your array on cpu or gpu? You cannot directly access gpu memory

Its in the CPU..

I do float* A = buf.data().dptr_ and then tried to access A[0] ..but I always get 0 though it was a ndarray of ones.

you need to call buf.wait_to_read()

Usually you want to use SyncCopyToCPU instead. Note that NDArray represents an asynchronize computation object, whose content may not be available then

Hi amithr1,
Do you know how I can get the pointer as your mentioned in Python code, just like the numpy array ctypes.data.
numpy.ndarray.ctypes

@Line290 I've figured out a hacky way to obtain pointer. Allowing sharing CPU NDArray with numpy without copying.


mkCurrentBlockContext is still wrong

The problem is that the chain DB pretends that there is a block number when the chain is at genesis, but there isn't. It picks genesisBlockNo, which is wrong, because that is the block number of the first block on the chain; in mkCurrentBlockContext we then take the successor of this block number, and so we end up skipping one.
Fixing this is part of https://github.com/input-output-hk/ouroboros-network/issues/1571 , and I'm therefore marking it as high priority. The fix will be part of the work on https://github.com/input-output-hk/ouroboros-network/issues/1578 .

(PR where we thought we fixed this was https://github.com/input-output-hk/ouroboros-network/pull/1544).

This will be fixed in https://github.com/input-output-hk/ouroboros-network/pull/1589.


Eager termination of cluster_https_worker_ingress preventing clean destroy

Problem when destroying cluster
I am trying to cleanly destroy an EKS cluster built by terraform using this module. However, there is a resource in the terraform-aws-eks module that gets destroyed too early.
I'm submitting a...

[ ] bug report
[x] feature request
[ ] support request - read the FAQ first!
[ ] kudos, thank you, warm fuzzy

What is the current behavior?
Currently, this module creates the aws_security_group_rule resource named cluster_https_worker_ingress, and then doesn't do anything else with the resource. As such, when terraform builds its dependency graph, there are no resources dependent on aws_security_group_rule.cluster_https_worker_ingress. This is not a problem on cluster creation, but it is a problem on cluster deletion because some helm charts run kubernetes jobs to destroy kubernetes resources, like CRDs. These jobs need to be able to make calls to the control plane, and without the above security group rule, there is a chance that the security group rule will be destroyed before the kubernetes job runs.
What's the expected behavior?
I am requesting that a reference to the aws_security_group_rule.cluster_https_worker_ingress resource (or all aws_security_group_rule resources) are output in the outputs.tf file so that dependencies can easily be established and terraform can run delete helm resources before deleting the security group rules.
Are you able to fix this problem and submit a PR? Link here if you have already.
I can submit a PR for this feature, assuming it is acceptable.

#901 fixing this request has been merged.

This has been released in v12.1.0


Depenency updates

This PR:

Updates all depenecies - at least the django one should be done ASAP - there is a critical security flaw in that
Adds a workflow to daily compile the updates

Will this make a PR every day or only when there are changes?

@SchrodingersGat I will update the branch each day. We can pull that into master whenever we want.


Asset Packager Documentation | Misleading instructions

Required Information

[x] AEM Version, including Service Packs, Cumulative Fix Packs, etc: AEM 6.4 SP8 | AEM 6.5 SP5
[x] ACS AEM Commons Version: 4.6.0 | 5.0.2
[x] Reproducible on Latest? yes

Expected Behavior
N/A
Actual Behavior
N/A
Steps to Reproduce
Documentation states:

Log in to AEM Author
Navigate to the Classic UI Tools Console (from the Touch UI, this is Tools:Operations:Configuration)
Under the packagers folder, create a new Page of Template type “Asset Packager”

The actual folder that you need to create the page under is:
Tools >> acs-commons >> Content Packagers
Links

https://adobe-consulting-services.github.io/acs-aem-commons/features/packagers/asset-packager/index.html
http://localhost:4502/miscadmin#/etc/acs-commons/packagers

Corrected it!  Thanks!


No knexfile?

Hi!
I'm new to Hapi and try to setup a new project with knex & objection, this plugin seems to be really cool but I'm probably missing something: is it me or you don't need the generated knexfile to specify all the config informations? I prefer to use it as it's the original knex stuff and I find it reassuring :)
Can you enlight me?
Thanks!

Ok, sorry, I found the answer by digging a bit more. You can close the issue! ;)

Hey there!  It's true that you don't need to use a knexfile with schwifty.  But you certainly can use one!  Here's an objection/schwifty boilerplate that pull knex config into knexfile.js from the server config (see server/manifest.js) https://github.com/devinivy/boilerplate-api/tree/flavor-objection.
You can also go the other way, which is what it sounds like you might want to do: write a knexfile exactly how you like it.  Then when you register schwifty just set schwifty's knex option to knex: require('path/to/your/knexfile').  If you use a knexfile with per-environment configs it would look more like, knex: require('path/to/your/knexfile')[process.env.NODE_ENV].
Let us know how it goes!

Ah, sounds good :)


feat(GUI): normal weight message on success page

We make the fonts a regular weight instead of bold on the success page's
fallback banner.
Changelog-Entry: Make the fallback success page banner message a normal font
weight.

Before and after.

Could you fix the weigth typo in the commit-message? ;)

Done! Thanks for spotting that.

@Shou, looks much better!

The commit type should be style rather than feat

@Shou I've dismissed @jviotti 's review as you've now made the changes he asked for. Feel free to merge!


Enhancement in the Navbar

I want to enhance Navbar by adding rotes to easily access to About Us page and Contact Us Page.Navbar helps user easy navigation in our website. Can you assign this to me under gssoc'23.

It's already assigned to other folks so I'm closing this one.

First merge your previous issue's PR then raise new issue @SasiVardhan247 ✌


Added School Tan Tao University to JetBrains

Hi Philipto,
Please help to add the school Tan Tao University to JetBrains
School Link: http://ttu.edu.vn
Thanks JetBrains Team

@daniel93cs Pull request merged. Thank you!


CI: Get 32-bit Node via the official NodeTool task

Requirements for Adding, Changing, or Removing a Feature

Fill out the template below. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
The pull request must contribute a change that has been endorsed by the maintainer team. See details in the template below.
The pull request must update the test suite to exercise the updated functionality. For guidance, please see https://flight-manual.atom.io/hacking-atom/sections/writing-specs/.
After you create the pull request, all status checks must be pass before a maintainer reviews your contribution. For more details, please see https://github.com/atom/.github/tree/master/CONTRIBUTING.md#pull-requests.

Issue or RFC Endorsed by Atom's Maintainers

None, but was mentioned as something that would be nice to have in a PR way back in 2018: https://github.com/atom/atom/pull/18048#issue-215400204
Description of the Change

The official NodeTool@0 task can now download 32-bit Node even on Windows x64 hosts. (As of this PR: https://github.com/microsoft/azure-pipelines-tasks/pull/13399)
This PR makes use of that, and drops script/vsts/windows-run.js (which was a custom script to download and run a 32-bit copy of Node on Windows based on whether an environment variable BUILD_ARCH is set to x86 or x64). We can get 32-bit Node the official way now instead.
Alternate Designs

Two alternative options:

Hard-code SHOULD_FORCE_32_BIT_NODE everywhere we hard-code BUILD_ARCH to x86 (demo implementation)
Consolidate BUILD_ARCH and SHOULD_FORCE_32_BIT_NODE into one boolean. (demo implementation)

In either case, there would need to be a hard-coded boolean that we can give to NodeTool's force32bit input. That eliminates the need to add a (run-time-evaluated) script to interpret the arch and set an additional FORCE_32_BIT variable like I did in this PR -- the short bash script I added in script/vsts/platforms/templates/preparation.yml could be deleted.
Notes about the requirements of setting `SHOULD_FORCE_32_BIT_NODE` properly (click to expand)

Technical Background -- Azure Pipelines templates and variables, when do they evaluate?
We need a boolean value to give to NodeTool's force32bit input, so as to tell it whether to force downloading 32-bit Node. (That is, "force" downloading 32-bit Node even on 64-bit hosts -- We can only get 64-bit hosts on Azure DevOps Services, the Microsoft-hosted version of Azure DevOps, which Atom's CI currently uses.) (The un-appealing alternative is breaking the two Windows arches into separate template files, which would be much less DRY.)
Doing this in a multi-config situation (matrix strategy for different arches of Node on Windows) was surprisingly tricky. See this documentation link for details of when variables/templates are evaluated: https://docs.microsoft.com/azure/devops/pipelines/process/runs?view=azure-devops#process-the-pipeline. matrix variables are evaluated very late, much later than templates like preparation.yml where the NodeTool task lives, so in some way or another SHOULD_FORCE_32_BIT_NODE needs to be evaluatable at (or even set at) runtime, ideally right before downloading Node.
Solution
Macro syntax $(VAR) expressions evaluate at runtime, so that is a key part of making this work. However, reading BUILD_ARCH would yield x86 or x64, which are strings, not the boolean we need to feed into NodeTool's force32bit input.
Either SHOULD_FORCE_32_BIT_NODE needs to be hard-coded to true wherever we want to use x86 Node on Windows (currently just for the "Windows build x86" job), or it can be set dynamically in a script just before installing Node. I chose to do it in a script, so that modifying the rest of the yml and CI configs in general is easier without having to remember to hard-code SHOULD_FORCE_32_BIT_NODE as true in the relevant places, just basing everything off of the existing BUILD_ARCH variable.

Possible Drawbacks

None.
Verification Process

Three ways to verify:

In the "Install Node.js 12.16.3" (NodeTool@0) task, check that it prints out x86 filenames/paths as it extracts Node for the "Windows x86" job, and prints x64 filenames/paths when extracting Node on the "Windows x64" job.
In the "bootstrapping build environment" (script/bootstrap) task, observe which arch of Node apm --version prints out. Should be ia32 on the "Windows x86" job, and x64 on the "Windows x64" job.
In the "Build Atom" (script/build) task, check the line "Packaging app for platform win32 [arch here] using electron v6.1.12" -- it should be ia32 on the "Windows x86" job, and x64 on the "Windows x64" job.

Release Notes

N/A

I could see dropping the technical info from the comment.
I added this to the comment: # Convert "BUILD_ARCH" to a boolean ("IsWinX86") for the following NodeTool task. Maybe that is enough on its own.
I might put that followed simply by: # TODO: Consider refactoring "BUILD_ARCH" into a boolean and merging it with "IsWinX86".

Drop technical info about "matrix variables" and ${{ template expressions }} and scripts from the comment?
Add a TODO comment about potentially refactoring BUILD_ARCH into a boolean?

But that's all to do with comments, which are about as low-stakes as pull request reviews get... I'm comfortable with the PR as-is, it's just the subjective matter of whether the comment needs changing.
Thanks folks for the feedback and review.

I could see dropping the technical info from the comment.
I added this to the comment: # Convert "BUILD_ARCH" to a boolean ("IsWinX86") for the following NodeTool task. Maybe that is enough on its own.

Yes. That is better in my opinion. It describes your goal of this script better. The technical information about Azure syntax would be better left out.


TirePressureMonitoringSystem: case to reset the alarm.

Hello,
I did the Kata Car TirePressureMonitoringSystem in "java" version.
I think the case to reset the alarm is missing when you call 2 times the check function:
Alarm alarm = new Alarm()
alarm.check();
=> alarm is set to true
alarm.check();
=> Here the alarm is always on event if the sensor return false.
public void check()
    {
        double psiPressureValue = sensor.popNextPressurePsiValue();

        if (psiPressureValue < LowPressureThreshold || HighPressureThreshold < psiPressureValue)
        {
            alarmOn = true;
        }
    }

So, the code could be:
public void check()
    {
        double psiPressureValue = sensor.popNextPressurePsiValue();

        alarmOn = (psiPressureValue < LowPressureThreshold || HighPressureThreshold < psiPressureValue);
    }

Thank you.
Jérôme.

The functionality described is as intended. The alarm stays on even if the pressure subsequently goes back to the normal range.

Thank you very much.
I didn't read the specification because I did the kata during a training session on SOLID.
I asked to the trainer, and, because he didn't answer me about that case, I opened an issue.
Excuse me for that.


Include path information in Sections so we can show the GitHub contributors

The compiler should emit sections along with their original path in the repository so we can query GitHub's API to show the commits and contributors of such file.

I presume since we can already render contributors and now we are moving to compile time fetching of contributors this may be closed.

Confirmed: We can close this issue due to the reason you mentioned. More info at #390


Include Setting To Keep AP_PORT Value Stable

From @GoogleCodeExporter on May 31, 2015 11:25
When using "adb forward" to run Python code from my laptop on the phone, I
have to open the Python interpreter on the phone, grab the AP_PORT value on
screen, and then enter it into my laptop. It would help to keep this number
stable so development over multiple sessions wouldn't change it each time ASE
is launched.

Original issue reported on code.google.com by rhickman on 2 Mar 2010 at 9:38
Copied from original issue: damonkohler/android-scripting#206

From @GoogleCodeExporter on May 31, 2015 11:25
Original comment by<EMAIL_ADDRESS>on 2 May 2010 at 3:18

Added labels: Type-Enhancement
Removed labels: Type-Defect


fix: redesigned the dropdown

resolves: #1318

Hey @akshatnema @sambhavgupta0705 Please have a look and give your reviews. I'll bring changes further accordingly.

Friendly reminder.
@sambhavgupta0705

hey @Mayaleeeee This PR is related to design. Please have a look and give suggestions.

@Mayaleeeee PTAL

Hey @akshatnema . I have pushed the required changes. PTAL.

Okay @sambhavgupta0705 Discarding them right now!!

@sagarkori143 please remove changes of adopters.json

Done @sambhavgupta0705 👍

https://github.com/asyncapi/website/assets/81870866/a0fdf6c3-f246-4c1e-9935-34d3d9783bf6
@sagarkori143 while selecting the drop-down options on mobile it is giving a bad experience to users
Can you please look after this

@sagarkori143 any update

Hey @sambhavgupta0705 . Yes I'm trying to find out the reason for that unwanted user experience.

Hey @sambhavgupta0705 . Yes I'm trying to find out the reason for that unwanted user experience.

Great job, @sagarkori143! Can you share the link for the dropdown menu?

Hey @sambhavgupta0705 . Yes I'm trying to find out the reason for that unwanted user experience.

Great job, @sagarkori143! Can you share the link for the dropdown menu?

Hey @Mayaleeeee I didn't understand which link you are referring to. Please clarify.

@Mayaleeeee here is the url https://www.asyncapi.com/tools

I have gone through all the components of the filters section and checked them for onclick event listeners. Everything seems okay to me and I am not able to find the reason for that unwanted onclick behavior. I need some assistance in this. @sambhavgupta0705

@akshatnema can you please look after this one as you have a better knowledge of tools section

closing this as this PR has conflcts with website migration and we need to think of a good fix for this one


Estimation liquidity check

When selecting higher amounts than Uniswap or Curve available liquidity we should display an Insufficient liquidity error message instead of stopping the estimated price at available liquidity

done in #1070


[tiny] remove lorem ipsum 😬

Reason for change

Oops... 😬
Testing

Codecov Report

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

@@           Coverage Diff           @@
##           master     #116   +/-   ##
=======================================
  Coverage   53.03%   53.03%
=======================================
  Files          30       30
  Lines         709      709
  Branches      164      164
=======================================
  Hits          376      376
  Misses        331      331
  Partials        2        2

Continue to review full report at Codecov.

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


Question Repeating

Am not sure if this error is tied to one generator or one OS , since am running Ubuntu 14.04 and run a meanjs generator, the description questions are repeating themselves.Each time a letter is input, the whole question just reappears.

That's because of the line wrap. It's a known Inquirer.js issue, but it is low importance as it's an edge case.
Feel free to work on a pull request for Inquirer.js if you want to see this resolved faster. https://github.com/SBoudrias/Inquirer.js/issues/6

@SBoudrias Thanks for the clarification, guess we should work on the Inquire.js first :)


ARC-1367 slauth hash endpoint

Stuck in draft until ARC-1366 PR has been merged
Whats in this Pull Request
Added a new POST api/hash endpoint that you can pass a value too and receive the hashed value back.
request { "data": "hashmeeee"}
response { "originalValue": "hashmeeee","hashedValue":"4cee752352ee515bd7d79e28a4648b3e63729ebe3e0265c6c37e0617db836a33"}
Why
Soon, due to security concerns we need to start hashing UGC/PII and jirahost will be one of those values, so we need a way to still filter against the hashed value in splunk when we can't use plaintext.
Extra attention areas
Naming :( went back and forth. If its no obvious to you then do raise it, am not too commited to any of it.
Location of the new api-hash-post.ts file, originally had it inside a new  folder like jira and installation but settled on just the file, couldn't think of a good name for the folder either lol :(
Whats Next
Now we have a way to generate the hashes, we can start implementing them in the code.
First thing to do is change the feature flags hashing of JiraHost to the new function
Supporting documentation
A runbook will be created before merging to main.

Sorry I don't understand of story of this API. Am I right saying that:

Someone A in our team get paged, A logins to splunk to check the logs
Apps already hashed the UGC/PII data in log, so A couldn't filter the splunk logs
So instead A call this API manually, grab the hashed return value, and use it to filter in splunk?

If that's the case, this API is purely used by us? If so, what sort of security protection should we put it? Like can we stop public from calling it?

Sorry I don't understand of story of this API. Am I right saying that:

Someone A in our team get paged, A logins to splunk to check the logs
Apps already hashed the UGC/PII data in log, so A couldn't filter the splunk logs
So instead A call this API manually, grab the hashed return value, and use it to filter in splunk?

Correct.

If that's the case, this API is purely used by us?

Correct

If so, what sort of security protection should we put it? Like can we stop public from calling it?

I think all our admin endpoints are available only to us via slauth calls (go/slauth) and not available to public calls.

Sorry I don't understand of story of this API. Am I right saying that:

Someone A in our team get paged, A logins to splunk to check the logs
Apps already hashed the UGC/PII data in log, so A couldn't filter the splunk logs
So instead A call this API manually, grab the hashed return value, and use it to filter in splunk?

Correct.

If that's the case, this API is purely used by us?

Correct

If so, what sort of security protection should we put it? Like can we stop public from calling it?

I think all our admin endpoints are available only to us via slauth calls (go/slauth) and not available to public calls.

👍 Okay, didn't aware of that. All good.


Not able to access some premium questions

i am not able to access some premium level questions of leetcode.

#99


stats: differentiating HTTP statuses generated by Envoy from those returned by upstream

Title: Differentiating HTTTP statuses returned by upstream from ones generated by Envoy in stats
Description:

To my best knowledge, with current stats for upstream clusters it's impossible to quickly tell whether the upstream is returning particular HTTP statuses or they were generated by Envoy (due to connection issues, timeouts, missing endpoints, etc.). To quickly investigate it would be amazing if there was a tag or a separate stat name for the case when Envoy generated the status. One could them look at both the total counter vs the Envoy generated statuses counter and tell if they need to investigate Envoy config or the upstream service. I thought the internal/external statistic was the right one, but it applies to traffic from inside the local network vs the traffic originating outside of the cluster, based on XFF headers.

Relevant Links:
I created a repo to demonstrate some timeouts Envoy can generate. If you run the examples it will be easier to go through the statistics in the admin panel to see there's no easy way to tell that it was Envoy that generated the status.

Hey, stale-bot, I'm still interested in this issue. Please don't close this, I think it's quite important.


How to do tracking mode?

Good day @cyrusbehr ,
This is not an issue but a question of mine. I have tried your project, and it actually has saved me a lot of time.
I am able to get the segmentation info, but now I need to get YoloV8 to work with tracking mode. Could you please tell me how to achieve that?
Thank you so much for your project, and also your time to answer this question

Hi @nguyenlam185
I have not yet written an implementation for tracking.
If you can provide me with a sample code or resource which explains how to decode / interpret the output of the tracking model, I can implement it with TensorRT.

I would suggest you look at these repos for tracking algorithms in C++.

https://github.com/viplix3/BoTSORT-cpp
https://github.com/Vertical-Beach/ByteTrack-cpp

What is the issue exactly? You should use YOLOv8 for detection of the objects, and then the byte track algorithm for the tracking portion. If you see the official ultralytics documentation, they also rely on these trackers I've linked above:

I'm not sure YOLOv8 actually has built in tracking.


Blockly merge (part 1)

This change mostly ensures that no corruption occurs if merge errors happen in a blocks file. The merging of blocks relies on merged TS -> blocks. The current logic works as follows:

if the merge is trivial (unmodified A or B, just grab the B or A)
clear the .blocks file to force a TS -> blocks decompilation path
ensure that no conflicts were found in TS merges

[x] stable sort of top level events in blocks (to guarantee stable merge of decompile js) @riknoll fixed 3 tests
[x] unmodified blocks blockly merge
[x] bail out to TS merge and decompilation
[x] don't allow merge if merge errors + blocks outdated

@jwunderl will look into it.


No styling

Describe the bug
In this photo there is no styling

Desktop (please complete the following information):

Plugin Version 1.11.1
Obsidian Version 1.3.5
Using Default theme

Additional context
Add any other context about the problem here.

Fixed in latest release v2.0.0


OleDbException when opening modified spreadsheet

I am using LinqToExcel v1.11.0 in an application that reads an Excel document, but modifying the document after having read it and then reading it again throws an exception:
System.Data.OleDb.OleDbException (0x8000FFFF): No error message available, result code: E_UNEXPECTED(0x8000FFFF).
   at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)
   at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
   at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
   at System.Data.OleDb.OleDbConnection.Open()
   at LinqToExcel.Query.ExcelQueryExecutor.GetDataResults(SqlParts sql, QueryModel queryModel)
   at LinqToExcel.Query.ExcelQueryExecutor.ExecuteCollection[T](QueryModel queryModel)
   at Remotion.Data.Linq.Clauses.StreamedData.StreamedSequenceInfo.ExecuteCollectionQueryModel[T](QueryModel queryModel, IQueryExecutor executor)
   at Remotion.Data.Linq.Clauses.StreamedData.StreamedSequenceInfo.ExecuteQueryModel(QueryModel queryModel, IQueryExecutor executor)
   at Remotion.Data.Linq.QueryModel.Execute(IQueryExecutor executor)
   at Remotion.Data.Linq.QueryProviderBase.Execute[TResult](Expression expression)
   at Remotion.Data.Linq.QueryableBase`1.GetEnumerator()
   at <my application>()

If I try to open another document after that, the application hangs and I managed to capture the same stacktrace with dnSpy:
 	[Managed to Native Transition]
 	System.Data.dll!System.Data.OleDb.DataSourceWrapper.InitializeAndCreateSession(System.Data.OleDb.OleDbConnectionString constr, ref System.Data.OleDb.SessionWrapper sessionWrapper) (IL≈0x00BE, Native=0x000007FE8D00E220+0x158)
 	System.Data.dll!System.Data.OleDb.OleDbConnectionInternal.OleDbConnectionInternal(System.Data.OleDb.OleDbConnectionString constr, System.Data.OleDb.OleDbConnection connection) (IL=0x0062, Native=0x000007FE8D00C750+0xFD)
 	System.Data.dll!System.Data.OleDb.OleDbConnectionFactory.CreateConnection(System.Data.Common.DbConnectionOptions options, System.Data.Common.DbConnectionPoolKey poolKey, object poolGroupProviderInfo, System.Data.ProviderBase.DbConnectionPool pool, System.Data.Common.DbConnection owningObject) (IL=0x0013, Native=0x000007FE8D00C6C0+0x6D)
 	System.Data.dll!System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(System.Data.Common.DbConnection owningConnection, System.Data.ProviderBase.DbConnectionPoolGroup poolGroup, System.Data.Common.DbConnectionOptions userOptions) (IL≈0x0015, Native=0x000007FE8D00C5C0+0x39)
 	System.Data.dll!System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(System.Data.Common.DbConnection owningConnection, System.Threading.Tasks.TaskCompletionSource<System.Data.ProviderBase.DbConnectionInternal> retry, System.Data.Common.DbConnectionOptions userOptions, System.Data.ProviderBase.DbConnectionInternal oldConnection, out System.Data.ProviderBase.DbConnectionInternal connection) (IL≈0x0072, Native=0x000007FE8D00B630+0x112)
 	System.Data.dll!System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(System.Data.Common.DbConnection outerConnection, System.Data.ProviderBase.DbConnectionFactory connectionFactory, System.Threading.Tasks.TaskCompletionSource<System.Data.ProviderBase.DbConnectionInternal> retry, System.Data.Common.DbConnectionOptions userOptions) (IL≈0x0018, Native=0x000007FE8D00ABE0+0x9A)
 	System.Data.dll!System.Data.ProviderBase.DbConnectionInternal.OpenConnection(System.Data.Common.DbConnection outerConnection, System.Data.ProviderBase.DbConnectionFactory connectionFactory) (IL≈0x0000, Native=0x000007FE8D00AB60+0x16)
 	System.Data.dll!System.Data.OleDb.OleDbConnection.Open() (IL=0x0012, Native=0x000007FE8D00AAA0+0x32)
>	LinqToExcel!LinqToExcel.Query.ExcelQueryExecutor.GetDataResults(LinqToExcel.Query.SqlParts sql, Remotion.Data.Linq.QueryModel queryModel) (IL=0x0023, Native=0x000007FE8D587820+0x5F)
 	LinqToExcel!LinqToExcel.Query.ExcelQueryExecutor.ExecuteCollection<LinqToExcel.RowNoHeader>(Remotion.Data.Linq.QueryModel queryModel) (IL≈0x000F, Native=0x000007FE8D5848D0+0x51)
 	Remotion.Data.Linq!Remotion.Data.Linq.Clauses.StreamedData.StreamedSequenceInfo.ExecuteCollectionQueryModel<LinqToExcel.RowNoHeader>(Remotion.Data.Linq.QueryModel queryModel, Remotion.Data.Linq.IQueryExecutor executor) (IL=epilog, Native=0x000007FE8D584420+0x85)
 	Remotion.Data.Linq!Remotion.Data.Linq.Clauses.StreamedData.StreamedSequenceInfo.ExecuteQueryModel(Remotion.Data.Linq.QueryModel queryModel, Remotion.Data.Linq.IQueryExecutor executor) (IL≈0x0039, Native=0x000007FE8D5842C0+0xD7)
 	Remotion.Data.Linq!Remotion.Data.Linq.QueryModel.Execute(Remotion.Data.Linq.IQueryExecutor executor) (IL=epilog, Native=0x000007FE8D583D10+0x49)
 	Remotion.Data.Linq!Remotion.Data.Linq.QueryProviderBase.Execute<System.Collections.Generic.IEnumerable<LinqToExcel.RowNoHeader>>(System.Linq.Expressions.Expression expression) (IL≈0x000C, Native=0x000007FE8D57F550+0x4C)
 	Remotion.Data.Linq!Remotion.Data.Linq.QueryableBase<LinqToExcel.RowNoHeader>.GetEnumerator() (IL≈0x0000, Native=0x000007FE8D57F4A0+0x57)
 	<my application>() (...)

My code looks like the following
// running GC to make sure the issue isn't an old object
GC.Collect();

ExcelQueryFactory excel = null;
try
{
    excel = new ExcelQueryFactory(path);
}
catch (InvalidOperationException ex)
{
    excel?.Dispose();

    if (ex.Message.Contains("OLEDB"))
    {
        // show user a message saying they probably need to install the redistributable...
        bool is64Bit = IntPtr.Size == 8;
        throw new Exception($"...", ex);
    }
    else
    {
        // rethrow others
        throw;
    }
}

using (excel)
{
    foreach (var row in excel.WorksheetNoHeader("...").Skip(9))
    {
        if (string.IsNullOrEmpty(row[0].Value as string))
        {
            break;
        }

        // ...
    }

    // ...
}

My application runs in a 64-bit Windows 7 Ultimate virtual machine. If I completely restart my application, it works again. I have tried switching to v2.0.0 pre-release 2, but the problem persists.

LinqToExcel doesn't support modifications to the file while it's open. So you should close the file prior to making the changes, and re-open it afterward...
But, regardless, it should not hang as a result of the exception you get. How are you performing the modifications? Programmatically, or by hand via the Excel application? This would be helpful to know so I can reproduce it.
Thanks!

I was modifying the Excel file by hand through the Excel program. I do think I tried closing the file before reading it again but I'll try again monday when I get back to work.

Ok, cool. Thanks for getting back to me.

I have gone through the following steps:

Open my application, load the excel file
Open Excel, modify the spreadsheet, save & close
Load the modified excel file in my application.

This still gives me the reported exception.

Any updates on this?

Sorry, no. I'll see if I can set some time aside this weekend to look into it.

I haven't been able to reproduce what you're seeing, but it could be related to connection pooling. Please add the following line right after instantiation, and let me know if that does/doesn't help:
excel.OleDbServices = OleDbServices.AllServicesExceptPooling;

I haven't opened this VM in a while, but I can't seem to reproduce it anymore either. It's most likely something that got fixed with an update to Windows or Excel. I'll reopen this issue if the issue returns and your suggestion doesn't fix it. Sorry for wasting your time.


Websocket connection listener

Hi, I am trying to implement websocket using dart:async and dart:io packages. Currently, i am facing an issue where after proper connection to websocket if i disable internet then there is no event/stream to listen the state change of the connection.
Expected results: It should trigger an event with the state of the connection
Actual results: Nothing happen and it feels like websocket is still connected

Logs
The logs files has been attached.
Logs.docx
[✓] Flutter (Channel stable, v1.17.5, on Mac OS X 10.15.5 19F101, locale en-GB)
    • Flutter version 1.17.5 at /users/faiyyazkhatri/StudioProjects/flutter
    • Framework revision 8af6b2f038 (6 days ago), 2020-06-30 12:53:55 -0700
    • Engine revision ee76268252
    • Dart version 2.8.4

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /users/faiyyazkhatri/Library/Android/sdk
    • Platform android-29, build-tools 29.0.3
    • ANDROID_HOME = /users/faiyyazkhatri/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.5, Build version 11E608c
    • CocoaPods version 1.9.1

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 47.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] Connected device (1 available)
    • iPhone 11 Pro Max • CFC77C34-A397-4FC3-802E-115F3A7224FA • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-5 (simulator)

• No issues found!

Sorry it was my issue i was testing on simulator and rather than turning off the simulator internet i was toggling the laptop connection!


Attachment forwarding

You can forward various attachments for multiple users.
Actually I tested videos and images. GIFs should work too.
Can anyone test forwading files and audio files?

wow, i'm impressed! :smile:

It seems that I cannot forward audio files or files from the UI. So it's ok to not cover it (we don't get ID from them).
I added some comments. I can merge once you've fixed them.

Thank you a lot for comments! I solved all of them!

Awesommmmeee! Merging!


Prevent colliding overload generation in code gen

Fixes #290

I am working on an alternative for this. This week you might see new commits here.

Sorry I haven't gotten to this yet, @arlm. I wasn't rejecting this. Did you close it out of lost hope or do you have a better idea of how to do it?

Sorry, not closed, but was waiting things to be more easy on my time management... hehehe. Sorry. Couldn't apply more effort on this yet. I know you didn't reject but I need to get more acquainted with the generator... will try again as soon as I can get it working on my home machine (the macOS one)...

I will update it all accordingly. The code got stale because of all the changes. I did a patch with only my generator changes and will apply on a fresh branch from the most up-to-date master (the one with .NET SDK) hehehe ... got tired trying to do the merge and will open a new one referencing this one.


fix: fix validateImportPlugin

Setting up tests turns out to be tricky https://github.com/hi-ogawa/vite-plugins/pull/480, so let's merge this one first.

#481  👈
main

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

Join @hi-ogawa and the rest of your teammates on  Graphite

Closing since we figured out tests in https://github.com/hi-ogawa/vite-plugins/pull/480


When running in Wayland, taskbar and window icons do not use Godot icon because Godot does not use a consitent app_id throughout its execution

Tested versions
Reproducible in v4.3.stable.official [77dcf97d8], v4.3.rc1.official [e343dbbcc]
System information
Gentoo Linux, KDE Plasma 5.27.11, Wayland graphics platform
Issue description
Wayland maps a window to an application by matching the application's app_id to a matching .desktop file in /usr/share/applications or ~/.local/share/applications/. The .desktop file included in the Godot source is misc/dist/linux/org.godotengine.Godot.desktop, meaning that once that file is properly copied to the appropriate directories Wayland will only be able to match the window to the application when the app_id is exactly org.godotengine.Godot.
The .desktop files appropriately placed in the application directories is also what allows application menus to automatically populate all the applications installed in the system.
In platform/linuxbsd/wayland/display_server_wayland.cpp, function DisplayServerWayland::_get_app_id_from_context, Godot sets a different app_id based on the context it is running in: org.godotengine.Editor, org.godotengine.ProjectManager, org.godotengine.Godot, or the value set in application/config/name.
Consequently the taskbar and window frame show the default Wayland app icon instead of the Godot icon.
The value set in application/config/name would of course be the user's responsibility to have a .desktop file appropriate for their own game, so that is not an issue for this bug.
Steps to reproduce
Copy the file misc/dist/linux/org.godotengine.Godot.desktop to either /usr/share/applications or ~/.local/share/applications/
Run Godot, opens in ProjectManager context with the app_id org.godotengine.ProjectManager.
Open a project, Godot reloads with the app_id org.godotengine.Editor
In both of these contexts, the taskbar and window decoration icons use the default Wayland icon.
Minimal reproduction project (MRP)
N/A

The initially apparent workaround of having separate .desktop files for each context would introduce the bug of having Godot show up multiple times in the Application menu.

CC @Riteo

Tested by adding extra named .desktop files, identical to the original but with NoDisplay=true appended, and this solution does work: one entry in the application menu, all contexts use the correct icons.


Editing tag names; Changes wont save in full

Description
When editing the name of the existing tags, It doesn't save the changes in full. Only saves 1 of the changes. Sometimes not even that.
I have tried editing one then closing the window, then editing the next. I've tried changing one or more then closing the full app and only some changes stick until a later windows restart.
I have only tried editing the existing colour names without adding more tags.
The edited names seem to save one by one but in random intervals and tries.
Steps To Reproduce
Open settings
Tags
Edit
Rename
Save Changes
At a later time some of the names turn to the default name
Requirements
Have tag names saved until edited again.
Files Version
<IP_ADDRESS>
Windows Version
10.0.19045.2965
Log file
debug.log

Thans for the report, can you see if this is an issue in the preview version. https://files.community/download

On app restart the names go to their default state in the preview version.

What do you mean default state? Do you mean they go back to the name/color you set before the edit.
Can you also upload the log from the preview version.

Yes, the tags go back to their original name.
debug.log

Thanks for the Information, I have added to the project board to be tracked.

Is this only when renaming multiple tags?

It happens randomly. Single or Multiple

This issue will be resolved in the next release


谷歌浏览器点击“在线访问”，无任何反应，一片空白。

另外，npm install 安装会报出一系列错误，重新指定 registry也会报错，不知道怎么解决。

在线访问地址是github.io 的地址，时不时会被墙。
npm instal报错，请提供详细信息。

浏览器开启了代理，f12打开控制台，发现有报错信息。

npm install 安装错误信息和#658大致相同，第一次指定 registry 来install时node_modules里面什么都没有，第二次直接npm install 时，安装完毕许多文件找不到。

npm install
npm WARN deprecated<EMAIL_ADDRESS>Package no longer supported. Contact<EMAIL_ADDRESS>for more info.

<EMAIL_ADDRESS>install E:\WebCode\vue-element-admin\node_modules\node-sass
node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.9.0/win32-x64-57_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.9.0/win32-x64-57_binding.node":
ESOCKETTIMEDOUT
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
  export HTTP_PROXY=http://example.com:1234

or configure npm proxy via
  npm config set proxy http://example.com:8080

<EMAIL_ADDRESS>postinstall E:\WebCode\vue-element-admin\node_modules\webpack\node_modules\uglifyjs-webpack-plugin
node lib/post_install.js

<EMAIL_ADDRESS>postinstall E:\WebCode\vue-element-admin\node_modules\node-sass
node scripts/build.js

Building: D:\Nodejs\node.exe E:\WebCode\vue-element-admin\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'D:\Nodejs\node.exe',
gyp verb cli   'E:\WebCode\vue-element-admin\node_modules\node-gyp\bin\node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library=' ]
gyp info using<EMAIL_ADDRESS>gyp info using<EMAIL_ADDRESS>| win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb which failed Error: not found: python2
gyp verb which failed     at getNotFoundError (E:\WebCode\vue-element-admin\node_modules\which\which.js:13:12)
gyp verb which failed     at F (E:\WebCode\vue-element-admin\node_modules\which\which.js:68:19)
gyp verb which failed     at E (E:\WebCode\vue-element-admin\node_modules\which\which.js:80:29)
gyp verb which failed     at E:\WebCode\vue-element-admin\node_modules\which\which.js:89:16
gyp verb which failed     at E:\WebCode\vue-element-admin\node_modules\isexe\index.js:42:5
gyp verb which failed     at E:\WebCode\vue-element-admin\node_modules\isexe\windows.js:36:5
gyp verb which failed     at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb which failed  python2 { Error: not found: python2
gyp verb which failed     at getNotFoundError (E:\WebCode\vue-element-admin\node_modules\which\which.js:13:12)
gyp verb which failed     at F (E:\WebCode\vue-element-admin\node_modules\which\which.js:68:19)
gyp verb which failed     at E (E:\WebCode\vue-element-admin\node_modules\which\which.js:80:29)
gyp verb which failed     at E:\WebCode\vue-element-admin\node_modules\which\which.js:89:16
gyp verb which failed     at E:\WebCode\vue-element-admin\node_modules\isexe\index.js:42:5
gyp verb which failed     at E:\WebCode\vue-element-admin\node_modules\isexe\windows.js:36:5
gyp verb which failed     at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb which failed   stack: 'Error: not found: python2\n    at getNotFoundError (E:\WebCode\vue-element-admin\node_modules\which\which.js:13:12)\n    at F (E:\WebCode\vue-element-admin\node_modules\which\which.js:68:19)\n    at E (E:\WebCode\vue-element-admin\node_modules\which\which.js:80:29)\n    at E:\WebCode\vue-element-admin\node_modules\which\which.js:89:16\n    at E:\WebCode\vue-element-admin\node_modules\isexe\index.js:42:5\n    at E:\WebCode\vue-element-admin\node_modules\isexe\windows.js:36:5\n    at FSReqWrap.oncomplete (fs.js:152:21)',
gyp verb which failed   code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb which failed Error: not found: python
gyp verb which failed     at getNotFoundError (E:\WebCode\vue-element-admin\node_modules\which\which.js:13:12)
gyp verb which failed     at F (E:\WebCode\vue-element-admin\node_modules\which\which.js:68:19)
gyp verb which failed     at E (E:\WebCode\vue-element-admin\node_modules\which\which.js:80:29)
gyp verb which failed     at E:\WebCode\vue-element-admin\node_modules\which\which.js:89:16
gyp verb which failed     at E:\WebCode\vue-element-admin\node_modules\isexe\index.js:42:5
gyp verb which failed     at E:\WebCode\vue-element-admin\node_modules\isexe\windows.js:36:5
gyp verb which failed     at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb which failed  python { Error: not found: python
gyp verb which failed     at getNotFoundError (E:\WebCode\vue-element-admin\node_modules\which\which.js:13:12)
gyp verb which failed     at F (E:\WebCode\vue-element-admin\node_modules\which\which.js:68:19)
gyp verb which failed     at E (E:\WebCode\vue-element-admin\node_modules\which\which.js:80:29)
gyp verb which failed     at E:\WebCode\vue-element-admin\node_modules\which\which.js:89:16
gyp verb which failed     at E:\WebCode\vue-element-admin\node_modules\isexe\index.js:42:5
gyp verb which failed     at E:\WebCode\vue-element-admin\node_modules\isexe\windows.js:36:5
gyp verb which failed     at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb which failed   stack: 'Error: not found: python\n    at getNotFoundError (E:\WebCode\vue-element-admin\node_modules\which\which.js:13:12)\n    at F (E:\WebCode\vue-element-admin\node_modules\which\which.js:68:19)\n    at E (E:\WebCode\vue-element-admin\node_modules\which\which.js:80:29)\n    at E:\WebCode\vue-element-admin\node_modules\which\which.js:89:16\n    at E:\WebCode\vue-element-admin\node_modules\isexe\index.js:42:5\n    at E:\WebCode\vue-element-admin\node_modules\isexe\windows.js:36:5\n    at FSReqWrap.oncomplete (fs.js:152:21)',
gyp verb which failed   code: 'ENOENT' }
gyp verb could not find "python". checking python launcher
gyp verb could not find "python". guessing location
gyp verb ensuring that file exists: C:\Python27\python.exe
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (E:\WebCode\vue-element-admin\node_modules\node-gyp\lib\configure.js:483:19) gyp ERR! stack     at PythonFinder. (E:\WebCode\vue-element-admin\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack     at E:\WebCode\vue-element-admin\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "D:\Nodejs\node.exe" "E:\WebCode\vue-element-admin\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd E:\WebCode\vue-element-admin\node_modules\node-sass
gyp ERR! node -v v8.11.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR!      D:\Nodejs\node_cache_logs\2018-05-10T14_17_34_641Z-debug.log

本地安装问题已解决。


[BUG] Progress bars slowly expand in notebook contexts

When running cells with fo.ProgressBars in them in notebook contexts, the bar slowly increases in width as the percentage increases. The intention (and what happens in other contexts) is that the bar maintains a fixed width, which is either the width of your terminal (by default) or a fixed value you specify via fo.ProgressBar(..., max_width=).

I did some digging and this is due to a known Jupyter bug that causes certain unicode characters to be rendered with a non-monospaced width. This causes our progress bars to expand as the number of █ characters increases (I believe each one takes up two, rather than one, character widths).
I thought about fixing the underlying unicode issue by adding support for an ASCII-characters-only mode where █ would be replaced by #, but after trying it, I decided that I prefer to have my progress bars look solid ████ and expand slightly rather than look less solid ######## but fixed width.


Error while running the first command in the terminal, error 404 not found, awaiting response

IMPORTANT: Before you create an issue, please take a look at our Issue Reporting Guide.
Briefly summarize your issue:

What is the expected behavior?

What behavior are you observing?

Provide the steps to reproduce the issue, if applicable:

Tell us about your environment:

What version of the AVS Device SDK are you using?
  <x.y.z>

Tell us what hardware you're using:

[ ] Desktop / Laptop
[ ] Raspberry Pi
[ ] Other - tell us more:

Tell us about your OS (Type & version):

[ ] Linux
[ ] MacOS
[ ] Raspbian Stretch
[ ] Raspbian Jessy
[ ] Other - tell us more:

This is a duplicate of #1080, so I'll close this ticket out.


Error null value in column "dedicated" violates not-null constraint

Verified from https://github.com/threefoldtech/tfchain_graphql/commit/ddf85b252acdacbe34cd95e38054a81bd6a1c6ae
a value is now set to dedicated when it's initialized.


Fixed existing test

@akulshre-qa when you rebase your branch with main, you will see some test test conflicts. You can reject the changes from my branch. They were necessary for CI to pass.


Autocorrections of non triangular shapes

Coverage increased (+0.2%) to 88.743% when pulling c3eb83f072ff3b4e084529d818dd3790a6ae5618 on gal_fix_geoms into 232be076a2c69adf052fc7133ff3f7d942231010 on master.

Coverage increased (+0.2%) to 88.743% when pulling f60f78c567347464f594cf99ca1659e4293e39b3 on gal_fix_geoms into 232be076a2c69adf052fc7133ff3f7d942231010 on master.

Coverage increased (+0.2%) to 88.743% when pulling 22caad2213cc9e8ad0e3996b9bee8001dd2d5dc0 on gal_fix_geoms into 232be076a2c69adf052fc7133ff3f7d942231010 on master.


Toggle Field Visibility in the Laravel-Backpack demo

'type' => 'toggle', is not working in the demo
and i want to Hides/Shows  fields based on a radio selection
What I did:

   'type' => 'toggle', is not working

        $this->crud->addField([
        'label' => 'Product Category',
        'name' => 'choice', // can be a real db field, or unique name
        'type' => 'toggle',
        'options' => [ // same as radio, these act as the options, the key is the radio value
            0 => 'Category',
            1 => 'Product'
        ],
        'hide_when' => [ // these fields hide (by name) when the key matches the radio value
            0 => ['subject'],
            1 => ['']
        ],
        'default' => 0 // which option to select by default
    ]);

//            $table->boolean('choice')->default(0);
//            $table->text('subject')->nullable();
What I expected to happen:
i expecte when choce Category the subject hide and its value not stored in the database and wil be visible when i select Product
What happened:
i get .
ERROR
500
View [fields.toggle] not found. (View: C:\xampp2\htdocs\atqannew\14 mag\dmg\vendor\backpack\crud\src\resources\views\inc\show_fields.blade.php)
What I've already tried to fix it:
Backpack, Laravel, PHP, DB version:

Hi @tifaahmed ,
Indeed, we don't have that - the toggle that's why blade file does not exist.
But you can use the field that Owen built in this PR: https://github.com/Laravel-Backpack/CRUD/pull/165
It's reported to work like a charm.
Cheers!


minor display issue in rendered docs

Please:

[x] Check for duplicate requests.
[x] Describe your goal, and if possible provide a code snippet with a motivating example.

Split the print(...) statements into different cells in the notebooks so that they're better rendered in .md. If not split, they are usually rendered on separate cells. For example, the following cell
# Set a step size for finite differences calculations
eps = 1e-4

# Check b_grad with scalar finite differences
b_grad_numerical = (loss(W, b + eps / 2.) - loss(W, b - eps / 2.)) / eps
print('b_grad_numerical', b_grad_numerical)
print('b_grad_autodiff', grad(loss, 1)(W, b))

# Check W_grad with finite differences in a random direction
key, subkey = random.split(key)
vec = random.normal(subkey, W.shape)
unitvec = vec / jnp.sqrt(jnp.vdot(vec, vec))
W_grad_numerical = (loss(W + eps / 2. * unitvec, b) - loss(W - eps / 2. * unitvec, b)) / eps
print('W_dirderiv_numerical', W_grad_numerical)
print('W_dirderiv_autodiff', jnp.vdot(grad(loss)(W, b), unitvec))

gets rendered like
b_grad_numerical

 -0.29325485
b_grad_autodiff -0.29227245

W_dirderiv_numerical -0.2002716
W_dirderiv_autodiff -0.19909117

It is cumbersome to separate the print calls, but without a better fix in the underlying rendering, this is likely the best solution for now...

I first noticed this issue when I was trying to figure out this part of the docs:
# reverse-over-reverse, only works for single arguments
def hvp_revrev(f, primals, tangents):
  x, = primals
  v, = tangents
  return grad(lambda x: jnp.vdot(grad(f)(x), v))(x)

print("Forward over reverse")
%timeit -n10 -r3 hvp(f, (X,), (V,))
print("Reverse over forward")
%timeit -n10 -r3 hvp_revfwd(f, (X,), (V,))
print("Reverse over reverse")
%timeit -n10 -r3 hvp_revrev(f, (X,), (V,))

print("Naive full Hessian materialization")
%timeit -n10 -r3 jnp.tensordot(hessian(f)(X), V, 2)

Forward over reverse
4.29 ms ± 153 µs per loop (mean ± std. dev. of 3 runs, 10 loops each)
Reverse over forward

8.47 ms ± 4.63 ms per loop (mean ± std. dev. of 3 runs, 10 loops each)
Reverse over reverse

12.5 ms ± 7.41 ms per loop (mean ± std. dev. of 3 runs, 10 loops each)
Naive full Hessian materialization

47.2 ms ± 546 µs per loop (mean ± std. dev. of 3 runs, 10 loops each)

beautifully addressed by @ahtik in #10785, closing :)


Firebase Migration

Migrating faucet bot to firebase

Can i merge @hoonsubin . It is deployed and working fine on portal.


archive_le conflicts when being used in a workspace

I thought about filing a bug against cargo but I think this might be specific to rkyv. I have a top level workspace that imports rkyv like so:
[workspace]
rkyv = { version = "0.7.40", features = ["strict", "validation", "copy"] }

I also have 2 crates in the workspace that differ in their feature flags. One uses archive_le and other doesn't. If I cd into each crate and cargo check them individually they work fine. If I try to compile from the top of the workspace one of the crates fails saying that it expected LittleEndian types but couldn't find it.
Example:
    |
71  |     NoUninit, Archive, Serialize, Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash,
    |               ^^^^^^^
    |               |
    |               expected `*mut LittleEndian<u64>`, found `*mut u64`
    |               arguments to this function are incorrect
    |
    = note: expected raw pointer `*mut LittleEndian<u64>`
               found raw pointer `*mut u64`

The two workspace crate imports look like:
rkyv = { workspace = true, features = ["strict", "validation", "copy"] }
and the other is rkyv = { workspace = true, features = ["strict", "archive_le", "validation", "copy", "uuid"] }
I've tried disabling the top level workspace import and just having each crate import rkyv separately but that doesn't fix it. I suspect this might be because the feature flags in rkyv conflict with one another.
I've also tried changing the resolver from v1 to v2 but the result is the same.

Unfortunately I think this is a result of how feature resolving works in cargo. Just to be sure, you're saying that running cargo check from inside the crate's directory is fine? Does cargo build create a target directory there as well? That would explain why the features don't conflict in that case.

Feature resolver for 0.8 has been updated to 2, and rend's LittleEndian struct is gone now. Closing this issue due to staleness.


Django 3 issue importing six

Simple issue Django 3.0+ moved six out of  django.utils can we replace lines like

from django.utils import six to import six in db_fields.py
from django.utils.six import iteritems to  from six import iteritems  in views.py

Not sure if this solution causes any compatibility issues with previous versions.
Steps to reproduce

Install django 3.0 and smart selects
Use a smart selects feature like ChainedManyToManyField
You will get Import errors

Actual behavior
Error Example 1
  File "C:\Users\0\Envs\wsite\lib\site-packages\smart_selects\urls.py", line 1, in <module>
    from smart_selects import views
  File "C:\Users\0\Envs\wsite\lib\site-packages\smart_selects\views.py", line 5, in <module>
    from django.utils.six import iteritems
ModuleNotFoundError: No module named 'django.utils.six'

Error Example 2
File "C:\Users\0\Envs\wsite\lib\site-packages\smart_selects\urls.py", line 1, in <module>
    from smart_selects import views
  File "C:\Users\0\Envs\wsite\lib\site-packages\smart_selects\views.py", line 5, in <module>
    from django.utils.six import iteritems
ModuleNotFoundError: No module named 'django.utils.six'

Expected behavior
Run like normal

As mentioned above changing the import statements will fix the issue. But I am not sure if it will interfere with any other issues.

@ccsv this was fixed here https://github.com/jazzband/django-smart-selects/commit/c1082d91265e1809ca44ee45a65da3d457896396
Thanks for reporting. Please reopen if necessary.


Added Grow Button

Issue: #881

Thanks for the review @shahednasser. I've made all the changes as you specified in the review.

Great work thank you!
@all-contributors please add @parresh77 for code


LSP Optimization: Use rayon for parse_ast_to_typed_tokens function

Description
Traversing the typed tokens from sway-lib-std now goes from 3.957833ms → 1.372ms. Collecting typed tokens on the benchmark project goes from 139.6ms → 127.7ms.
related to #5445
Checklist

[x] I have linked to any relevant issues.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have updated the documentation where relevant (API docs, the reference, and the Sway book).
[ ] I have added tests that prove my fix is effective or that my feature works.
[ ] I have added (or requested a maintainer to add) the necessary Breaking* or New Feature labels where relevant.
[ ] I have done my best to ensure that my PR adheres to the Fuel Labs Code Review Standards.
[ ] I have requested a review from the relevant team or maintainers.

How come collecting typed tokens is taking 127.7ms? Or does that figure include parsing and type checking already?

This is how long it's taking to traverse and collect the tokens from the typed AST nodes. I'm going to look at using rayon par_iters for this section like we are doing in the traverse::parsed_tree module. Should hopefully take us down closer to 12ms or so.


basic protection against invalid domain names

current behavior is very insecure, this patch solves part of problem but not all
e.g. https://mysite.com/@abc@whatever/posts/123/ will create garbage data in database, which is a bit insecure, but the data is at least marked as connection_issue after some stator cycle. however, if attacker uses https://mysite.com/@abc<EMAIL_ADDRESS>, the domain<EMAIL_ADDRESS>in db will look valid (state=updated and local=False), which might be used to construct further attacks. this patch solves the latter issue by validate domain before saving to db. this patch also prevent localhost from used
a future patch IMHO should be implemented to protect against more cases.

Hmm, I'm not entirely sure about not allowing IP addresses as I think they're technically valid, but I agree we probably don't actually want them in reality.


[QUESTION] Long running background tasks

Hey everyone, I'm currently trying to implement an API endpoint using FastAPI which starts a long running background task using asyncio.create_task(startlongrunningtask()) and then without waiting for that task to finish, return a response to the client. The long running task starts up fine, but times out after e few seconds with the error message [CRITICAL] WORKER TIMEOUT and Booting worker with pid: 25
How can I prevent the worker from getting timed out?
Is it possible to create such long running tasks which continue even after sending a response to the client?
Thanks a lot and best regards

happy to help but you'd need to give more info on what the tasks does, how you're running the app, what worker stops (uvicorn one or gunicorn)
the below snippet shows a long running background task in action, it just sleeps and doesn't use asyncio.create_task like you describe though
Connected to pydev debugger (build 192.6817.19)
email-validator not installed, email fields will be treated as str.
To install, run: pip install email-validator
2019-10-10 13:18:21,122 uvicorn      INFO     Started server process [29570]
2019-10-10 13:18:21,122 uvicorn      INFO     Waiting for application startup.
2019-10-10 13:18:21,124 uvicorn      INFO     Uvicorn running on http://<IP_ADDRESS>:8000 (Press CTRL+C to quit)
2019-10-10 13:18:29,706 uvicorn      INFO     ('<IP_ADDRESS>', 46716) - "POST /backgroundasync HTTP/1.1" 200
2019-10-10 13:18:29,706 __main__     DEBUG    sleeping 30s
2019-10-10 13:18:59,707 __main__     DEBUG    slept 30s

import asyncio
import logging
from typing import Dict

import uvicorn
from fastapi import FastAPI
from pydantic import BaseModel
from starlette.background import BackgroundTasks

logging.basicConfig(format="%(asctime)s %(name)-12s %(levelname)-8s %(message)s")
logger: logging.Logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)

app = FastAPI()

class Item(BaseModel):
    amount: int

async def background_async(amount: int) -> None:
    logger.debug(f"sleeping {amount}s")
    await asyncio.sleep(amount)
    logger.debug(f"slept {amount}s")

@app.post("/backgroundasync")
async def sleepingtheback(
    item: Item, background_tasks: BackgroundTasks
) -> Dict[str, str]:
    background_tasks.add_task(background_async, item.amount)
    return {"message": f"sleeping {item.amount} in the back"}

if __name__ == "__main__":
    uvicorn.run(app=app)

gunicorn working fine too
unicorn -w 4 -k uvicorn.workers.UvicornWorker 611_very_long_background:app
[2019-10-10 13:43:00 +0200] [30577] [INFO] Starting gunicorn 19.9.0
[2019-10-10 13:43:00 +0200] [30577] [INFO] Listening at: http://<IP_ADDRESS>:8000 (30577)
[2019-10-10 13:43:00 +0200] [30577] [INFO] Using worker: uvicorn.workers.UvicornWorker
[2019-10-10 13:43:00 +0200] [30580] [INFO] Booting worker with pid: 30580
email-validator not installed, email fields will be treated as str.
To install, run: pip install email-validator
[2019-10-10 13:43:00 +0200] [30581] [INFO] Booting worker with pid: 30581
[2019-10-10 13:43:00 +0200] [30580] [INFO] Started server process [30580]
[2019-10-10 13:43:00 +0200] [30580] [INFO] Waiting for application startup.
email-validator not installed, email fields will be treated as str.
To install, run: pip install email-validator
[2019-10-10 13:43:00 +0200] [30582] [INFO] Booting worker with pid: 30582
[2019-10-10 13:43:00 +0200] [30583] [INFO] Booting worker with pid: 30583
email-validator not installed, email fields will be treated as str.
To install, run: pip install email-validator
[2019-10-10 13:43:00 +0200] [30581] [INFO] Started server process [30581]
[2019-10-10 13:43:00 +0200] [30581] [INFO] Waiting for application startup.
email-validator not installed, email fields will be treated as str.
To install, run: pip install email-validator
[2019-10-10 13:43:00 +0200] [30582] [INFO] Started server process [30582]
[2019-10-10 13:43:00 +0200] [30582] [INFO] Waiting for application startup.
[2019-10-10 13:43:00 +0200] [30583] [INFO] Started server process [30583]
[2019-10-10 13:43:00 +0200] [30583] [INFO] Waiting for application startup.
[2019-10-10 13:43:07 +0200] [30583] [INFO] ('<IP_ADDRESS>', 58450) - "GET / HTTP/1.1" 404
[2019-10-10 13:43:16 +0200] [30583] [INFO] ('<IP_ADDRESS>', 58534) - "POST /backgroundasync HTTP/1.1" 200
2019-10-10 13:43:16,785 611_very_long_background DEBUG    sleeping 60s
[2019-10-10 13:43:17 +0200] [30583] [INFO] ('<IP_ADDRESS>', 58534) - "POST /backgroundasync HTTP/1.1" 200
2019-10-10 13:43:17,724 611_very_long_background DEBUG    sleeping 60s
[2019-10-10 13:43:18 +0200] [30583] [INFO] ('<IP_ADDRESS>', 58534) - "POST /backgroundasync HTTP/1.1" 200
2019-10-10 13:43:18,171 611_very_long_background DEBUG    sleeping 60s
[2019-10-10 13:43:18 +0200] [30583] [INFO] ('<IP_ADDRESS>', 58534) - "POST /backgroundasync HTTP/1.1" 200
2019-10-10 13:43:18,560 611_very_long_background DEBUG    sleeping 60s
2019-10-10 13:44:16,786 611_very_long_background DEBUG    slept 60s
2019-10-10 13:44:17,725 611_very_long_background DEBUG    slept 60s
2019-10-10 13:44:18,172 611_very_long_background DEBUG    slept 60s
2019-10-10 13:44:18,561 611_very_long_background DEBUG    slept 60s

@ellmh I don't think that's the case, as you can see above I tested with a default gunicorn, timeout is 30,with tasks lasting 60s and that works fine.
gunicorn timeout checks the response arrives before 30s which is immediate in case of a background task. Well that's how I understand it.

gunicorn timeout checks the response arrives before 30s which is immediate in case of a background task. Well that's how I understand it.

@euri10 you're right there, sorry!
I've tried a few things and the only way I could reproduce this was by starting a background task that blocked the worker - try replacing asyncio.sleep with time.sleep. Otherewise uvicorn does what it's supposed to do
If you're OK with blocking a worker, then the you'll need to configure the timeout as above. I imagine there's probably a library/function somewhere that's blocking and not properly async.

@ellmh You should never use time.sleep (or any function with blocking io) inside an async def function (background task or otherwise) -- that would block your server.
If you want to add a background task that blocks for a long period of time, define the function using just def, not async def -- then, if you pass it to background_tasks.add_task it will be run inside a threadpool, so will not block your server (and you won't get the timeout issues).

Hey everyone thanks a lot for all your replies. Yes I'm indeed starting a background task which takes a few minutes (starts another application using subprocess) and when it returns the worker should continue with some cleanup tasks. @euri10 I also switched from asyncio.create_task to BackgroundTask by Starlette but the worker still shuts down. I'm now trying to increase the timeout value and test it again. I'll report back!

@dmontagu it indeed fixed the problem, great stuff! Yea this is an intermediate solution the next step would be to hand the long running tasks to something like celery workers etc. I'll have to look into that next.
Thank everyone for the help!

@euri10 I wasn't even aware an asyncio had built-in subprocess capabilities -- thanks for sharing!

with an async def spawning 4 processes that lasts 2min, I got no issue

gunicorn log
(rapidfastapitest) ➜  rapidfastapitest git:(master) ✗ gunicorn -w 4 -k uvicorn.workers.UvicornWorker 611_very_long_background:app
[2019-10-11 11:59:28 +0200] [457] [INFO] Starting gunicorn 19.9.0
[2019-10-11 11:59:28 +0200] [457] [INFO] Listening at: http://<IP_ADDRESS>:8000 (457)
[2019-10-11 11:59:28 +0200] [457] [INFO] Using worker: uvicorn.workers.UvicornWorker
[2019-10-11 11:59:28 +0200] [460] [INFO] Booting worker with pid: 460
email-validator not installed, email fields will be treated as str.
To install, run: pip install email-validator
[2019-10-11 11:59:28 +0200] [461] [INFO] Booting worker with pid: 461
[2019-10-11 11:59:28 +0200] [462] [INFO] Booting worker with pid: 462
email-validator not installed, email fields will be treated as str.
To install, run: pip install email-validator
[2019-10-11 11:59:28 +0200] [460] [INFO] Started server process [460]
[2019-10-11 11:59:28 +0200] [460] [INFO] Waiting for application startup.
[2019-10-11 11:59:28 +0200] [463] [INFO] Booting worker with pid: 463
email-validator not installed, email fields will be treated as str.
To install, run: pip install email-validator
email-validator not installed, email fields will be treated as str.
To install, run: pip install email-validator
[2019-10-11 11:59:28 +0200] [461] [INFO] Started server process [461]
[2019-10-11 11:59:28 +0200] [461] [INFO] Waiting for application startup.
[2019-10-11 11:59:28 +0200] [462] [INFO] Started server process [462]
[2019-10-11 11:59:28 +0200] [462] [INFO] Waiting for application startup.
[2019-10-11 11:59:28 +0200] [463] [INFO] Started server process [463]
[2019-10-11 11:59:28 +0200] [463] [INFO] Waiting for application startup.
[2019-10-11 11:59:32 +0200] [461] [INFO] ('<IP_ADDRESS>', 39476) - "GET /backgroundsubprocess HTTP/1.1" 200
2019-10-11 11:59:32,528 611_very_long_background DEBUG    subprocesss in
[2019-10-11 11:59:33 +0200] [460] [INFO] ('<IP_ADDRESS>', 39488) - "GET /backgroundsubprocess HTTP/1.1" 200
2019-10-11 11:59:33,355 611_very_long_background DEBUG    subprocesss in
[2019-10-11 11:59:33 +0200] [463] [INFO] ('<IP_ADDRESS>', 39500) - "GET /backgroundsubprocess HTTP/1.1" 200
2019-10-11 11:59:33,939 611_very_long_background DEBUG    subprocesss in
[2019-10-11 11:59:34 +0200] [463] [INFO] ('<IP_ADDRESS>', 39504) - "GET /backgroundsubprocess HTTP/1.1" 200
2019-10-11 11:59:34,479 611_very_long_background DEBUG    subprocesss in
2019-10-11 12:01:32,533 611_very_long_background DEBUG    5924
2019-10-11 12:01:32,534 611_very_long_background DEBUG    subprocess out with 5924 bytes
2019-10-11 12:01:33,363 611_very_long_background DEBUG    5413
2019-10-11 12:01:33,364 611_very_long_background DEBUG    subprocess out with 5413 bytes
2019-10-11 12:01:33,944 611_very_long_background DEBUG    4826
2019-10-11 12:01:33,944 611_very_long_background DEBUG    subprocess out with 4826 bytes
2019-10-11 12:01:34,490 611_very_long_background DEBUG    4824
2019-10-11 12:01:34,490 611_very_long_background DEBUG    subprocess out with 4824 bytes

import asyncio
import logging
from typing import Dict

import uvicorn
from fastapi import FastAPI
from pydantic import BaseModel
from starlette.background import BackgroundTasks

# logging.basicConfig(format="%(asctime)s %(name)-12s %(levelname)-8s %(message)s")
logger: logging.Logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)

if not logger.hasHandlers():
    sh = logging.StreamHandler()
    fmt = logging.Formatter(fmt="%(asctime)s %(name)-12s %(levelname)-8s %(message)s")
    sh.setFormatter(fmt)
    logger.addHandler(sh)
    logger.propagate = False

app = FastAPI()

class Item(BaseModel):
    amount: int

async def background_async(amount: int) -> None:
    logger.debug(f"sleeping {amount}s")
    await asyncio.sleep(amount)
    logger.debug(f"slept {amount}s")

async def background_async_subprocess(amount: int) -> None:
    logger.debug(f"subprocesss in")
    cmd = f"timeout {amount}s tail -f ~/.xsession-errors"
    proc = await asyncio.create_subprocess_shell(
        cmd, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE
    )

    stdout, stderr = await proc.communicate()

    logger.debug(len(stdout))
    logger.debug(f"subprocess out with {len(stdout)} bytes")

@app.post("/backgroundasync")
async def sleepingtheback(
    item: Item, background_tasks: BackgroundTasks
) -> Dict[str, str]:
    background_tasks.add_task(background_async, item.amount)
    return {"message": f"sleeping {item.amount} in the back"}

@app.get("/backgroundsubprocess")
async def backgroundsubprocess_list(
    background_tasks: BackgroundTasks
) -> Dict[str, str]:
    background_tasks.add_task(background_async_subprocess, 120)
    return {"message": f"subprocess in the back"}

if __name__ == "__main__":
    uvicorn.run("611_very_long_background:app", reload=True)

Thanks for the help here everyone! :clap: :bow:
Thanks for reporting back and closing the issue @xiaodiannao  :+1:

Hii, can any one help me with this Stackoverflow question based on background task


Think about to fix the issues found by adapter checker

I am an automatic service that looks for possible errors in ioBroker and creates an issue for it. The link below leads directly to the test:
https://adapter-check.iobroker.in/?q=https://raw.githubusercontent.com/uKL/iobroker.reolink

[ ] [E003] Repository must have name ioBroker.adaptername, but now io"b"roker is in lowercase
[ ] [E004] No adapter name found in URL: https://raw.githubusercontent.com/uKL/iobroker.reolink/master
[ ] [E020] Name of adapter in package.json must be lowercase and be equal to "iobroker.". Now is "undefined"
[ ] [E019] Invalid repository URL: git@github.com:uKL/ioBroker.reolink.git. Expected: git+https://github.com/uKL/iobroker.reolink.git
[ ] [E103] common.name in io-package.json must be equal to "". Now is reolink
[ ] [E145] No news found for actual version 0.0.2
[ ] [E200] Not found on npm. Please publish
[ ] [E802] No topics found in the repository. Please go to "https://github.com/uKL/iobroker.reolink", press the settings button beside the about title and add some topics.

I have also found warnings that may be fixed if possible.

[ ] [W400] Cannot find "" in latest repository
[ ] [W801] .npmignore not found

Thanks,
your automatic adapter checker.
P.S.: There is a community in Github, which supports the maintenance and further development of adapters. There you will find many experienced developers who are always ready to assist anyone. New developers are always welcome there. For more informations visit: https://github.com/iobroker-community-adapters/info

Thanks, that all bugs have been fixed.


typos: allow configPath to be of type string or path + take excludes from .typos.toml into account when pre-commit run typos --all-files runs

Unfortunately, the typos story still isn't solved properly at this point. My concerns decsribed here still exist.
The Problem
Hint: The problem is also shortly discussed in the commit messages.
Yes, using pass_filenames = false should only be done if no other variant is possible (pass_filenames = true is fine). My first "fix" merged a few months ago was wrong. And a commit hook should only run on changed files, I agree.
But, people also use pre-commit run --all-files to run all checks on the whole repo.  And that's a perfeclty valid usecase.
The problem is that if you run $ pre-commit run typos --all-files, typos behave differently compared to $ typos ..
The Fix
I modified typos.configPath in a way to be either of type string or path. The change is additive and not breaking.
To use the new option, you have to do something like this:
    settings = {
      typos = {
        # configuration = ""  # POSSIBLE
        # configPath = ".typos.toml"; # OLD
        configPath = .typos.toml; # NEW, RECOMMENDED
      };
    };

You can verify that my solution works by checking the typos invocation:
$ strace -s 64 -Tfe trace=execve pre-commit run --all-files typos
Unintended files are not longer passed to typos. 🎉

Ping @totoroot @domenkozar

FYI ping @blitz

Personally, I'd also like to get rid of configPath of type str, but then we break the API again..

Sounds good. I'll test it in the coming days.

Sorry for the mess, we revamed module structure in #397, could you port these changes over?

I'm not sure why GitHub closed this PR.

@domenkozar done

ping @totoroot for testing

I rebased again and improved my solution. My solution is additive and doesn't break anything; I tested all the existing use cases. Can we merge it, @domenkozar ?

Ping @m1-s @domenkozar @totoroot - I hope we can finally get this merged as we need it in multiple of our projects.

If there's no comments in next few days I'll merge it.

It's a little unfortunate that the whole topic so complex. Intermediate summary:

I'm working towards that $ pre-commit run [--all-files] behaves similar to $ typos with the exact same set of excludes

This is the correct thing to do
When typos is invoked with thousands of files as argument it literally explodes and CPU and mem consumption are insane; system freezes happen (even with --force-exclude)

Typos uses globs, pre-commit uses regex
If typos "globs without *", it works and it's fine.

The transformation from globs to regex is not trivial.
Observation

IMHO this is critical and must be addressed to not annoy and confuse people and to not make them drop typos support in pre-commit hooks at all
I do not see a pragmatic way forward here. Such a rather simple thing is already a time sink. I want to satisfy everyones needs. But I can't spend multiple days on this, unfortunately.

This needs to be addressed. The alternative is that we at my Company manually specify excludes locally and that I create a blogpost or so for typos in pre-commit-hooks.nix for other people having the same problem.
ping @roberth - Thoughts?


current Pyrus-2.0.0a4 not includes PEAR2\HTTP\Request correctly

Hi. I've download Pyrus-2.0.0a4 from pear2.php.net.
But PEAR2_Http_Request seems to not include correctly.
$ php pyrus.phar install pear/FSM
Pyrus version 2.0.0a4 SHA-1: 19D26DFEFB88692813562BAE1673BDDFCB10FDED
Using PEAR installation found at ~/pyrus4
PHP Fatal error:  Class 'PEAR2\HTTP\Request' not found in phar:///home/sasezaki/pyrus.phar/Pyrus-2.0.0a4/php/Pyrus/Main.php on line 120

Extracted pyrus.phar 's directory structure (phar->extractTo()) is
$ ls Pyrus-2.0.0a4/php
PEAR2  Pyrus  php
$ ls Pyrus-2.0.0a4/php/php
PEAR2
$ ls Pyrus-2.0.0a4/php/php/PEAR2
Exception.php  HTTP  MultiErrors  MultiErrors.php

for reference, the full tree is https://gist.github.com/1876035

Thanks for the note! The bundled dependencies were apparently really messed up. Could you try the pyrus.phar I just committed?
https://github.com/pyrus/Pyrus/blob/master/pyrus.phar?raw=true

Fixed!Thanks!

Great, sorry for the trouble.


Please do a release with the updated dependency for proc-macro-error

Dependabot updated proc-macro-error on master. It would be great to have a release with that applied. Technically speaking, with the version number that's the only difference between 0.1.0 and master.

I'll do this, thanks. :)

It's out. :)

Thank you.


[#5853] improvement(CLI): Make the entity and arguments case-insensitive

What changes were proposed in this pull request?
Make the entity and arguments case-insensitive.
Why are the changes needed?
Fix: #5853
Does this PR introduce any user-facing change?
No
How was this patch tested?
bin/gcli.sh metalake List
# output: correct output

bin/gcli.sh Metalake list
# output: correct output

bin/gcli.sh mEtalake List
# output: correct output

hi @justinmclean @xunliu , Could you please take a look when you have time?


Add 'AsyncFuture' package

I'm interested in package AsyncFuture
Here is official site of package https://github.com/benlau/asyncfuture
This package is using [Git]: https://github.com/benlau/asyncfuture
Official GitHub repository: https://github.com/benlau/asyncfuture
Used build system: [QMake]
This package has next dependencies:

Qt (required, available in Hunter: https://github.com/hunter-packages/Qt)

Ability to override using Qt provided from environment instead of cmake-hunter is necessary.

Ability to override using Qt provided from environment instead of cmake-hunter is necessary

See https://docs.hunter.sh/en/latest/faq/interaction-with-other-package-managers.html


Would like a benchmark tracking embedding latency

Now that more folks are embedding flutter, I'm being asked for two numbers:

How much time does adding Flutter to your binary affect startup time (not necessarily displaying a FlutterView at all).  Presumably this is zero or close to?

How long does it take to bring a FlutterView on screen (presumably there are 2 numbers here.  one for first Flutter view and a second for any future view?)

Thoughts @mravn-google @yjbanov
This isn't urgent, just something we should eventually track.

customer:dream has asked for this number.  It's not blocking, but would be nice to have for those discussions.


Convention based mapping...

Is it possible to do more convention based/complex mapping? For example, I have two classes like this:
public class Source {
	public string Name {get;set;}
	public string Optional1 {get;set;}
	public string Optional2 {get;set;}
}

public class Destination {
	public string Name {get;set;}
	public Optionals Settings {get;set;}
}

public class Optionals{
	public string Optional1 {get;set;}
	public string Optional2 {get;set;}
}

It would be neat if TinyMapper could implement some convention based mapping or if I could configure manual property mapping between Source and Destination in Bind<Source,Destination>(...) so that the Destination object would  get populated properly.

I'm going to add TypeConverter support, it lets create any mapping convection

TinyMapper supports TypeConverter
For instance:
        public class TargetClass
        {
            public string FullName { get; set; }
        }

        public class SourceClass
        {
            public string FirstName { get; set; }
            public string LastName { get; set; }
        }

Create custom typeconverter

        public sealed class SourceClassConverter : TypeConverter
        {
            public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
            {
                return destinationType == typeof(TargetClass);
            }

            public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
            {
                var concreteValue = (SourceClass)value;
                var result = new TargetClass
                {
                    FullName = string.Format("{0} {1}", concreteValue.FirstName, concreteValue.LastName)
                };
                return result;
            }
        }

Here's additional sample

Register the type converter
Thru attribute

    [TypeConverter(typeof(SourceClassConverter))]
    public class SourceClass
    {
        public string FirstName { get; set; }
        public string LastName { get; set; }
    }

or  code
    TypeDescriptor.AddAttributes(typeof(SourceClass), new TypeConverterAttribute(typeof(SourceClassConverter)));

and finally
    TinyMapper.Bind<SourceClass, TargetClass>();
    var source = new SourceClass
    {
        FirstName = "John",
        LastName = "Doe"
    };

    var result = TinyMapper.Map<TargetClass>(source);

Great news. Thanks a lot.


Add readOnly property to InputBoxComponent

Adds a readOnly property to InputBoxComponent.  Used for inputs that the user should select/copy but not edit.

You need to format the inputbox.component.ts file. Out of curiosity what are you using to commit changes - VS Code/command line/something else?
And I could swear we had this option before but I guess not? @alanrenmsft am I missing something?

we've being using text component for readonly text (label), but i guess this is also useful for some scenarios.

You need to format the inputbox.component.ts file. Out of curiosity what are you using to commit changes - VS Code/command line/something else?

Thanks, fixed.  I normally use VSCode where the commit would enforce formatting.  But I did this change in the GitHub UI.

Coverage decreased (-0.1%) to 34.855% when pulling a91166be39041ed7f24cd323736707c416568474 on brberger/readonly-input into f7c3484438c4bf5bae95710201545656dcc3ec9e on master.


[DOCS] Fixes links that point to the Configuration section

Overview
This PR fixes two links that point to the Configuration section. Currently, these inks are breaking the docs build.

Closed it in favour of https://github.com/elastic/elasticsearch-net/pull/6401


Sql scripts

Move the sql scripts into a configuration file that can be updated instead of the tool needing updated each time Snow change a table.

Implemented in v1.3.


Minimal bundle size same as normal one

Versions

vee-validate: 2.1.7
vue: 2.6.2

Description
I want to install the minimal bundle of VeeValidate as described in the docs. But it has almost no effect on the bundle size after the build process (it has +1 KB compared to the bundle size after using the normal import described in the Getting Started section in the docs).
To reproduce
Minimal bundle installation:
import { Validator, install as VeeValidate } from 'vee-validate/dist/vee-validate.minimal.esm.js'
import { required } from 'vee-validate/dist/rules.esm.js'
import veeEn from 'vee-validate/dist/locale/en'
Validator.extend('required', required)
Validator.localize('en', veeEn)
Vue.use(VeeValidate)

... takes up 98.3 KB in my build file. Also my build files are the same size after normal/minimal import of VeeValidate.
Expected behavior
A smaller bundle size of VeeValidate.
Windows 10
Parcel 1.11.0 (for build process)
node 10.15.1

I can confirm this behaviour (same version of vee-validate). It seems the bundle includes both the full build and the minimal build.
In a uglyfied build, the minimal bundle grows about 40KB in size using only 'de' localization and 4 simple rules (length, numeric, email and required).

Could we get a comment about this please? See attached webpack analyzer.

Issue still persists. It added ~322kb to my form component.

I built a tool to help you analyze webpack bundles for size regressions, and report them directly to GitHub PRs. It's free for open source, so it might be worth checking out and helpful in this scenario.
https://packtracker.io

Has there been any movement on this?

I need solution too,
have any plans to improve bundle size ?

Addressed here #2191

vee-validate is out, checkout the size improvements here<EMAIL_ADDRESS>


Changing complete ui of chatbot and personalized questions

🖥 Frontend Issue
Description

Go to '...'
Click on '...'
See error '...'

[x] Yes
[ ] No

@Mehtarishita please add proper discription always

Change UI of chatbot as Figma design and ask me questions before adding .
@Mehtarishita assigned
Will change level after PR

assign me i can do this


New Crowdin updates

Something's out of sync, closing this one and deleting to see if it fixes it.


Add a store button atop the tool menu at right where there is the woman who helps

Placed the store button next to the upload image button


Create GitHub Action secret needed to enable Oracle database connection in the existing integration-test pipeline

Hello @git4rk The following additional GitHub Action secret is needed to enable Oracle database connection in the existing pipeline integration-test:

ORACLE_DB_PASSWORD

Specify the password for testing account (testuser) of Oracle database server.

Reference the following issue for the other GitHub Action secrets required for pipeline integration-test:

#178
#176

Hello @git4rk Pls close the issue once you add the required secret.

secret created


feat: simple storage with starknet-js

Issue(s): #221
Description
Added the tutorial content of Simple Storage contract in Cairo with Starknet-js integration.
Checklist

[ ] CI Verifier: Run ./scripts/cairo_programs_verifier.sh successfully
[ ] Contract Tests: Added tests to cover the changes

Hey @julio4, I edited the PR according to your requested changes. Thank you!

Updated it, @julio4!

@egeaybars123 I applied small changes, let me know if you agree with them and I will merge this branch

@egeaybars123 I applied small changes, let me know if you agree with them and I will merge this branch

I agree with the changes. Thank you!


Custom error message are not working

Hello, I've published the transtation strings and modified it, but the component is still using the vendor ones.

Same here!

Same problem!


Will you release the training code in the future？

Excellent work！Will you release the training code in the future？

I was also wondering about this. In the meanwhile, how were the pretrained models created? Did you train in tensorflow and convert the weights? Thanks!

Can I just swap generator to stylegan2 generator and teach only encoder part?