Add More Types of Capacitors

Goal: Add more calculators or information pages for all sorts of different capacitor types out there.
Note: This is not meant to be one big story for one update, these will get split into multiple updates as enough research and confidence in each capacitor in suitable.

[x] Ceramic capacitor

Code to capacitance - includes tolerance
Capacitance to code

[x] SMD capacitor

Code to capacitance

[ ] Tantalum capacitor
[ ] Polyester film capacitor
[ ] Metallized film capacitor
[ ] Electrolytic capacitor
[ ] Mica capacitor
[ ] Polymer capacitor
[ ] Film capacitor

Electrolytic capacitors resources:
https://www.tdk.com/en/tech-mag/electronics_primer/9#:~:text=An electrolytic capacitor is a,supply circuits and similar applications.
https://en.wikipedia.org/wiki/Electrolytic_capacitor

Actual Result: Added information pages based on how wikipedia structured them, and simplified the calculators to be a standard code calculator and the SMD version of it.


Needing steps for adding s3 bucket as object storage and how to use them with store component.

Needing steps for adding s3 bucket as object storage and also query from them
I have successfully configured and run thanos sidecar with Thanos query component for multiple prometheus server.
But I'm confused and struggling on adding S3 storage as Object storage for long term data retention.
I need to use S3 storage for historical data.
I'm new to this technology. It will be really great if you can provide general steps for configuration of Thanos and S3 for adding S3 bucket as object storage for prometheus block storage.

What properties are required for the S3 bucket for starters.  Thanos fails saying it needs an s3-bucket-endpoint in the bucket.yml.


Support more filenames in link-to-changelog-file

While CHANGELOG is one way people call changelog files, it is not the only popular one out there.
I've personally seen CHANGES, NEWS, and HISTORY used often too.
I think that names supported by dependabot are a good reference on what names are used in the wild.

I assume in the example repo https://github.com/pypa/pip, this feature is supposed to link to https://github.com/pypa/pip/blob/master/NEWS.rst, not https://github.com/pypa/pip/tree/master/news?

Yeah, it should be linking to a changelog file, not the folder with changelog fragments.
It seems that this has been mentioned in https://github.com/sindresorhus/refined-github/pull/4005#issuecomment-782845287, but I'm not sure if there was a reason for this to not be updated.
If detecting folders was intentional, I think the extension should at least prioritize the files but I'm not sure what was the original intention here.

If detecting folders was intentional, I think the extension should at least prioritize the files but I'm not sure what was the original intention here.

👍
https://github.com/sindresorhus/refined-github/blob/d5b8ecf08b6a5d63127c2e4308da71383ec5c63e/source/features/link-to-changelog-file.tsx#L26
Adding a simple .reverse() should work here
https://github.com/sindresorhus/refined-github/blob/d5b8ecf08b6a5d63127c2e4308da71383ec5c63e/source/features/link-to-changelog-file.tsx#L43
It might work ⬆ too but I am not sure.

Unfortunately a reverse would also catch changelog.3.md over changelog.md
Maybe we should just filter both by type, then only match exactly * and *.*, never *.*.*

Api might be simple to do that. DOM not so much, It would require another select to check the icon

Select the icon first, get the filename from there.


Succesfully Implemented Warshall Algorithm in C++

Description
Successfully implemented and explained Warshall Algorithm in C++ and mentioned Space and time complexity along output in comments
Have you read the Contributing Guidelines on Pull Requests?
Yes
Please answer the following questions for yourself before submitting an issue.

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.

Related Issues or Pull Requests
#25

@Rj-coder-iitian  kindly review this PR


Carbon dioxide sensor - display PPM value

Hi,
Could you please display the PPM value on a carbon dioxide sensor (accessory panel) ?
Thanks a lot for all your work... I love automated my home with HomeKit / HomeBridge and its AMAZING interface ! ;-)
Killator.

Linking to meta issue: https://github.com/oznu/homebridge-config-ui-x/issues/47


[WIP] Add ownerReferences to resources

This commit is responsible for following changes:

Adds owner references to all the resources in the manifest repo.
It also removes the kfctl.kubeflow.io/kfdef-instance: <kfdef-name>.<kfdef-namespace>
annotation, since its no longer required. The owner references field now indicates that
resources are owned by KfDef instance.

Ref PR: https://github.com/kubeflow/kfctl/pull/271

/ok-to-test

Adding ownerReferrences without changing the scope of the KfDef crd to Cluster is not possible from v1.20
Cross-namespace ownerreferences are disallowed and dependent objects are subject to deletion.

/hold


Convert private_key.json to pem?

Sorry not really an issue with this project.. but is there a way to convert the account key json file into a pem format that can be used with acme-tiny?

I think node has a library that does it. https://www.npmjs.com/package/jwk-to-pem

i created a python script that generates a genconf for openssl asn1parse.. perhaps you could include it as a helper utility for others?
https://gist.github.com/JonLundy/f25c99ee0770e19dc595

Good to know! Will link people there when they ask in the future!


Add long_description for PyPI

Jenkins, test this please.

Jenkins CI test (for commit 30df649672fb1b65a68aefa59725b728834a06d3, target branch master) failed with status FAILURE.
(For contributors, please wait until the reviewer confirms the details of the error.)

LGTM!


IPv6 "Create zone from prefix" broken in GUI

Short description
Multiple issues with "Create zone from prefix" in GUI for IPv6 zones:-

Web page input validation allows entry of prefix with bitmask on the end, e.g. /nn. PHP script doesn't validate either and generates invalid zone, e.g. enter 2400:7700::/32, generates 2.3./.<IP_ADDRESS>.<IP_ADDRESS>.ip6.arpa. To my knowledge this is not a valid zone.

Algorithm does not correctly handle "packed" prefixes, i.e. prefixes where leading zeros have been removed. For my specific error I was adding a /64. Algorithm handled missing leading zeros in blocks 2 & 3 OK, i.e. nibbles 5 thru 12, but truncated the result for block 4 (nibbles 13 to 16).

Environment

Operating system: Debian v9 (Stretch)

Software version: PowerDNS v4.1.5, Opera version unknown, latest from GIT

Software source: PowerDNS repository, Opera GIT

Backend: PostgreSQL v9.6.10

Steps to reproduce

Enter 2001:470:d:eb3 in "Create zone from prefix" in IPv6 Zones.

Expected behaviour
Should return 3.b.e.0.d.<IP_ADDRESS>.<IP_ADDRESS>.0.0.2.ip6.arpa.
Actual behaviour
returns 3.b.e.d.<IP_ADDRESS>.<IP_ADDRESS>.0.0.2.ip6.arpa. (4th nibble from left is missing, resultant is only 15 nibbles, should be 16).
Other information
Happens on other /64 packed prefixes too.
2001:470:1f2d:14b = b.4.1.d.2.f.<IP_ADDRESS>.<IP_ADDRESS>.2.ip6.arpa.
2001:470🅱612 = 2.1.6.b.<IP_ADDRESS>.<IP_ADDRESS>.0.0.2.ip6.arpa.

I had filed point 1 as #135 and since fixed it with #137

I made the same mistake as the reporter. I don't see any reason not to also reasonably handle someone entering /xx.


GitStream Playground fails on default example

Describe the bug
When I attempt to use GitStream playground, it fails to run on my private and public PR ( regardless of repository)
To Reproduce
Steps to reproduce the behavior:
Using Safari or Chrome on MacOS.

Login to playground via https://app.gitstream.cm/playground
Run the default file. The .cm automation file

# -*- mode: yaml -*-
# This example configuration for provides basic automations to get started with gitStream.
# View the gitStream quickstart for more examples: https://docs.gitstream.cm/examples/
manifest:
  version: 1.0

automations:
  # Add a label that indicates how many minutes it will take to review the PR.
  estimated_time_to_review:
    if:
      - true
    run:
      - action: add-label@v1
        args:
          label: "{{ calc.etr }} min review"
          color: {{ colors.red if (calc.etr >= 20) else ( colors.yellow if (calc.etr >= 5) else colors.green ) }}
  # Inform PR authors when they fail to reference Jira tickets in the PR title or description.
  label_missing_jira_info:
    if:
      - {{ not (has.jira_ticket_in_title or has.jira_ticket_in_desc) }}
    run:
      - action: add-label@v1
        args:
          label: "missing-jira"
          color: {{ colors.red }}
      - action: add-comment@v1
        args:
          comment: |
            This PR is missing a Jira ticket reference in the title or description.
            Please add a Jira ticket reference to the title or description of this PR.
  # Post a comment that lists the best experts for the files that were modified.
  explain_code_experts:
    if:
      - true
    run:
      - action: explain-code-experts@v1
        args:
          gt: 10

# +----------------------------------------------------------------------------+
# | Custom Expressions                                                         |
# | https://docs.gitstream.cm/how-it-works/#custom-expressions                 |
# +----------------------------------------------------------------------------+

calc:
  etr: {{ branch | estimatedReviewTime }}

has:
  jira_ticket_in_title: {{ pr.title | includes(regex=r/\b[A-Za-z]+-\d+\b/) }}
  jira_ticket_in_desc: {{ pr.description | includes(regex=r/atlassian.net\/browse\/\w{1,}-\d{3,4}/) }}

colors:
  red: 'b60205'
  yellow: 'fbca04'
  green: '0e8a16'

The PR URL (as it contains the repo and PR identifiers)

https://github.com/linear-b/gitstream/pull/530 (public)
https://github.com/ValidereInc/terraform-github/pull/10 (private)

Following errors always occurs regardless of template. `

Error: Cannot read properties of undefined (reading 'reduce')
Error: Cannot read properties of null (reading 'login')

Expected behavior
Playground runs and shows sample out put
Screenshots
If applicable, add screenshots to help explain your problem.

Additional context

Hi @eborysko,
We've seen some regression in the playground, and are looking into this issue. I'll update here with an ETA once the issue is identified.
Thanks!

I am also experiencing the same issue

Hey @eborysko, We have identified the issues and are currently working on stabling the playground.
It should be back by the end of this week

I'm happy to share that the playground is back and stable! 🎉
Please reach out if you experience any issues


Publish GUID on bootup

During the testing period it would be useful to have the GUID of the node be printed out in the console at bootup.

diff --git a/keys/keychain.py b/keys/keychain.py
index 1e8fe88..8cc953c 100644
--- a/keys/keychain.py
+++ b/keys/keychain.py
@@ -49,4 +49,3 @@ class KeyChain(object):
self.encryption_key = self.signing_key.to_curve25519_private_key()
self.encryption_pubkey = self.verify_key.to_curve25519_public_key()
callback(self, True)
diff --git a/openbazaard.py b/openbazaard.py
index 8cc0647..1ea47d9 100644
--- a/openbazaard.py
+++ b/openbazaard.py
@@ -176,7 +176,8 @@ def run(*args):
reactor.listenTCP(HEARTBEATPORT, WebSocketFactory(heartbeat_server), interface=interface)
 # key generation

KeyChain(db, start_server, heartbeat_server)

keychain = KeyChain(db, start_server, heartbeat_server)

print "GUID: %s" % hexlify(keychain.guid)
reactor.run()

OW , markdown hates diff

@cpacia

@cpacia A comment would be helpful.


test failure in quasar.TypesSpec

Seen on travis.
[error] x have order-independent equality for arbitrary types (147 ms)
[error]  Falsified after 68 passed tests.
[error]  > ARG_0: Coproduct(Const(NA),Const(Obj(Map($date -> Str(Jan 1)))))
[error]  > ARG_1: Const(Obj(Map($date -> Str(Jan 1))))
[error]  > constant value Obj(Map($date -> Str(Jan 1))) !== constant value NA, or constant value Obj(Map($date -> Str(Jan 1))) (QuasarSpecification.scala:51)

looks like a duplicate of #2194

Closing as it's a duplicate of #2194.


#292 redo - Completely remove 'MAP_SELECTION' tag

#292 redo - Completely remove 'MAP_SELECTION' tag

This was tested on build 21 of MSE and build 121 of Military Tools


NavigationDuplicated error

Version
3.1.3
Steps to reproduce
export const dataRouter= [
  {
    path: 'contractWrites',
    name: 'NormalWrites',
    meta: {
      requiresAuth: true
    },
    component: CommonList
  }
  {
    path: 'contractWrites',
    name: 'ContractWrites',
    meta: {
      requiresAuth: true
    },
    component: CommonList
  },
  {
    path: '',
    redirect: {
      path: 'normalWrites'
    }
  }
];

router.js
const routes = [
 {
        path: '/secondReviewList',
        name: 'SecondReviewList',
        component: SecondReviewList,
        meta: {
          requiresAuth: true
        },
        children: dataRouter
      }
]
new Router({
routes,
mode: 'history',
})

view

<button @click="changurl">
   change url
<button>
<router-view></router-view>

js

changeUrl() {
  this.$router.push({
   url: '/secondReviewList/contractWrites'
})
}

What is expected?
no error
What is actually happening?
trigger this onClick event throw NavigationDuplicated error and this url isn't changed

Duplicate of https://github.com/vuejs/vue-router/issues/2963


RecursiveBlossomBranch-DevJoshi

[x] I have read the steps to getting a blot

[x] I am submitting art that...

[x] is algorithmically generated (will change each time the program is run)
[x] is drawable on a blot (fits in the work area & doesn't overlap too much)
[x] is original (not copied from somewhere else)
[x] doesn't call Math.random() (See the documentation on randomness)

[x] Optional, if you used a tutorial or based your art on something else, please include the link here:

[x] Optional, if you remixed this from something else, mention it here:
I used Hayden Kong's "Artistic, Unique Tree" blot code as a reference to mine, you will be able to see it on the same name for the functions and variables, but I did not copy paste cause I wanted to make something unique, Instead of rendering a full plant I wanted to create a branch that went from left to right with blossoms.

This project uses recursive logic to generate a tree branch going from the left side to the right side, it first generates a random seed which is used to make every tree generated unique, There are parameters which you can edit to make the tree look different depending on how you want it, for example you can adjust how much blossoms are created using the "blossom density" variable or by adjusting the trunk width. I liked the look of blossom trees so I wanted to make my project unique by adding in star shapes to mimic it.
I started coding when I was 13, but I haven't gone fully serious until my 11th or 12th year. I love working with physics and making games using the Godot Engine, I wouldn't say I have intensive knowledge but i'm also not a beginner, somewhere in the middle. :D

Just an update, I will be closing this PR. Please create a new PR once you have updated your art! We are doing this due to new management of the PR system.


Version 1.5.1 not found in jcenter()

Could not find org.unbroken-dome.gradle-plugins:gradle-testsets-plugin:1.5.1.
Searched in the following locations:
https://jcenter.bintray.com/org/unbroken-dome/gradle-plugins/gradle-testsets-plugin/1.5.1/gradle-testsets-plugin-1.5.1.pom
https://jcenter.bintray.com/org/unbroken-dome/gradle-plugins/gradle-testsets-plugin/1.5.1/gradle-testsets-plugin-1.5.1.jar

Fixed. Thank you!


Change volume relative to current volume

Great plugin - many thanks, using it heavily at the moment.
The only thing I'm missing would be a command that I could trigger, that increases the volume of the speaker always by a fixed value. E.g. so that I could trigger "Hey Siri, increase TV volume", which would cause the TV's volume to be increased by "5".
I've seen in your documentation that there's an option "speaker.increaseBy". Apparently this function is only picked up by AppleRemote (which I don't use).
Any recommendations, how I could achieve this?
Cheers!!!

Do you have tried to set speaker "accType" to "lightbulb" ?
On my test environment it works with following command: "Hey Siri, increase  by 20%"


Unload / Close librarie

How do I Unload or Close() the loaded libraries ?
I am using this to open: DynamicLibrary.open(path);

Duplicate of

[ffi] DynamicLibrary.close() is missing sdk#40159

Sorry, I only searched on ffi issues. so it seems that it is a pending dart-lang/sdk issue, any workaround for that ?


Change sqlite prefix based on operating system

To run unit tests on a windows machine, the prefix to the sqlite database path must be changed. On Windows systems, the prefix is sqlite:/// (3 slashes). On Mac/Linux, the prefix in sqlite://// (four slashes).
The variable os.name will be set tot nt if the code is being run on a Windows machine, so this can be used to change the prefix.

Yeah, I'm on a Mac and all CI tests are being run on Linux. Thanks for adding the windows support!

@bradenpecora I assume you're on windows and needed this to run tests. Any idea how to run GH Actions for pull requests from forks? I know it's difficult because secret keys are used for things like the EIA API key but am not sure if it's 100% impossible.

Hmm I don't know. I've never done admin stuff like that. I ran the tests locally. I could just add the pytest action to my fork? But I figure you're looking for something more robust. There might be a way to add my own secret keys to my GITHUB_TOKEN? Or allow specific users to use your secret keys?


Swift returns

The swift calling conventions have changed for swift 4.0, both for regular returns and for error returns.  These changes get lldb to understand the new calling convention.
rdar://problem/25471028

@swift-ci please test

@swift-ci please test

Explanation: The swift calling convention changed for swift 4.0.  In general, lldb doesn't need to know the calling convention because we use the expression parser for most tasks.  But we do display the return value when we "step out", so we need to know how to fetch return types at that point.  The  two changes were that the error return is now in a register, and on x86_64, swift uses 4 registers for complex returns rather than the two the SysV ABI mandates.  This patch adjusts lldb's return fetching mechanism for these cases, and adds some tests.
Scope: Xcode prints the return or error value in the Locals view on "step out" so this is a visible bit of information.  If we don't get the calling convention right, that UI will present incorrect data.  This is also printed out in the command-line lldb stop message when you step out.  But this is really the only place where this functionality is used in lldb.  For instance, it isn't used to gather the result of expression evaluation.
Radar (and possibly SR Issue): rdar://problem/25471028
Risk: Low.  The swift error return code is pretty isolated, and wrong at present.  So this change would at worse make that differently wrong.  The regular return passing code is shared with the C family of languages on x86_64, since those ABI's are mostly the same.  So this could potentially affect that.  But we have tests for C returns which pass after the change, and the code adding additional registers are clearly swift only.  So the chance we messed that up is low.
Testing: The lldb testsuite has tests for gathering swift returns (swift/lang/return).  I added a few tests to that test case.  And there were no changes in a full testsuite run.

The OS X test failure is because I added an SB API to allow the code to be tested, but the CI's don't rebuild the SWIG files, so you have to hand-update them.  I'll do that but the test passes locally so I'll do it as a separate commit.


Write documentation

Example notebooks are the de facto documentation. Example notebooks are not actually documentation.

There's some stuff I wrote on the README before... although don't know if that passes for "documentation" in the proper sense either :)?  Regardless we should consolidate so that we don't have redundant stale copies floating around- maybe light documentation in the README with reference to the notebooks for examples?

Yeah that's what I was thinking


any update to (Xcode 7.1 Swift 2.1)

Hi @hakopako ,
Your notification library was so great, I'm using it in my applications. Just want to know if are you considering to update this in the latest Xcode and Swift versions ?
Thanks.

Hi @rjjohnpatrickcruz .
Thank you so much using my library. I'm really happy to hear that.
Honestly, I didn't expect someone using it happily.
now I can see some demand of it, so I will update it soon or later,
Thanks.

Hi @hakopako,
Thanks for responding! I'm happy to hear that! I'm looking forward for your update. Hope you could notify me once you implement it.
Thank you!
Cheers!

@rjjohnpatrickcruz
I've updated PKNotification in Xcode7.x , Swift2.x.
Please check new release tag v1.0.

Hi @hakopako,
Thanks! will try this.
Cheers!


not working for multi-instance with wrap  Context

https://codesandbox.io/p/sandbox/nice-modal-pl4l62?file=%2Fsrc%2FApp.tsx%3A13%2C44

@hans000 It appears that codesandbox no longer exists


Add support for sound

spellbound has sound for various events.. like:
teleport
menu appearing
executing a command
moving the lift
calling the lift
identify some sources and get these sounds working

implemented in many places just not all these ones


Yet another map error

Steps to Reproduce
1.Go to website
2.Click on Map
3.Click on 9(Iceland)
4.Click on 5
5.Click on 3(Akranes)
6.Zoom in to Brautir(till the end)
Expected Result
The number should split into locators
Actual Result
The number isn't splitting into locators
RELATED ERROR:
Steps to Reproduce
1.Go to website
2.Click on Map
3.Click on 9(Iceland)
4.Click on 5
5.Click on 3(Akranes)
6.Click on 2(Akranes)
7.Click anywhere on Map
Expected Result
The locators shouldn't merge into number
Actual Result
The locators are merging.

This is almost definitely an issue of two spaces sharing the same geo coordinates. The map clustering is actually working fine, it just doesn't show the two spaces until the number cluster is clicked on.

Great, it's my problem then!


Fix broken SQL example

I think this broke at some point.
Or maybe I never tested it!?

Oh, I think I broke this with the semantics limitations :(
That should change with DS-12438, no ETA yet though


USHIFT-2344: External downloaded RPM integraration into test framework (draft not to be merged)

This is a draft implementation of external RPM support - just to save the code, not to be merged.

/close


3d game collision

Hi have a idea for 3d game. I'd like to import 2 meshes and when they collide jump to a new scene.im new to nunu what is the code have collision / new scene.  var mesh1= scene.getObjectByName('box')
var mesh2 = scene.getObjectByName('box2')   I may have to hire freelancer to help of anyone is available thanks

Hello
It is not possible to directly detect collisions between meshes you can create a physics objects from these meshes for collision detection.
Another option is to use the mesh bounding box or sphere for collision detection.
Cheers

Hi is there a code example how to do yoursugestions?


[docker] otel: pin BYOC image to pull the latest available image

What does this PR do?
Pins the default source for the BYOC file to be the latest available beta image.
Motivation
Change made for consistency and to provide an improved experience to BYOC customers. This also minimizes post-release work while in preview.
The option is still overrideable as described in our BYOC documents.
Describe how to test/QA your changes
Simple docker build with the dockerfile validates the change.
Possible Drawbacks / Trade-offs
Additional Notes

@mackjmr two things happened (1) there was oversight at the time when we changed this from a previous tag, and yes, (2) on our first iteration on this dockerfile, that latest tag for the beta image was not yet available.

/merge

/merge --cancel

one thing to note; the integration test that builds this image passes in the current branch as the build image. if that passes we should be fine

ah beans https://gitlab.ddbuild.io/datadog/datadog-agent/builds/720863569
will take a look

https://github.com/DataDog/datadog-agent/blob/d2731ddfd0129e4a2494b49ca5822e5f4c662111/tasks/libs/common/utils.py#L371 needs to work when there are no git tags associated with the commit


NoSQLBench 4 syntax fails with NoSQLBench 5: "There were no active statements with tag filter 'phase:[phasename]', since all 8 were filtered out."

(First of all, my apologies, today is the first day I've tried upgrading from NoSQLBench 4 to 5, so this may be a simple syntax error)
Describe the bug
Commands that used to work on NoSQLBench 4.15 now fail on NoSQLBench 5.17.1-release with the error message " There were no active statements with tag filter 'phase:schema|ramup|main', since all 8 were filtered out."
To Reproduce
Steps to reproduce the behavior:

Run any of these commands (which worked on nb 4.15):

./nb5 -v run driver=cql workload=cql-keyvalue2 tags=phase:schema host=nosqlbencha
./nb5 -v run driver=cql workload=cql-keyvalue2 tags=phase:rampup host=nosqlbencha cycles=300m threads=128 --progress console:10s
./nb5 -v start alias=NoSQLBenchA0 driver=cql workload=cql-keyvalue2 host=NoSQLBenchA0 cycles=200m threads=36  --progress console:10s waitmillis 60000 stop NoSQLBenchA0

What was Expected
NoSQLBench to run the selected phase.
Additional context
OS: Ubuntu 22.04.1 LTS
Environment: VM
Version info: 5.17.1-release
Console commands and errors
nb5-errors.txt

Thanks for the report David. Some sanity checking logic and parameter name deprecations needed to be patched up.
This may have the changes you need: https://github.com/nosqlbench/nosqlbench/releases/tag/5.17.1-preview
(This will be rolled into a proper release soon)

Hi Jonathan, sorry for the delay.  You're right, I just had to update the syntax a bit, i.e. tags=phase:schema and tags=phase:rampup are now tags=block:schema and tags=block:rampup.
Thanks for the help!


Support strict mode

In strict mode, the variable 'process' in a function scope is not the one in 'window', it's not defined actually.

Looks good. Surprised anybody is using this -- once I figured out how the replace plugin works I realized that's probably the better / safer way to approach. But if you are finding it useful, then great!

@mshick I prefer this plugin because the API is more clear and graceful than the replace plugin. I like it very much. But, however, inject a variable is not a really safe way. Fortunately my project hasn't had a variable named 'process'.
Sorry for my poor english & have a good work :smile:


is this causing my terminal to lag?

anybody else experience the lagging (on terminal) or is it just my old (machine) lady?

:+1:

@konradmiller A bigger problem with the performance is that as far as I can see, the app is entirely single-threaded and synchronous, which means that the prompt-script spends a whole lot of time doing exactly nothing. For instance, take this code from the git-segment:
    output = subprocess.Popen(['git', 'status', '--ignore-submodules'],
            stdout=subprocess.PIPE, env=git_env).communicate()[0]

On my current work project, this command takes about 80 ms. That's 80 milliseconds that the script is doing absolutely nothing, because this is a blocking call. It could easily use that time to figure out what the rest of the prompt should be, if this was using asynchronous I/O or multi-threading.
Python's startup time varies a lot, but it's often in the neighborhood of 40-60 milliseconds in my experience. That's not nothing, it's 2-4 frames on a 60 Hz monitor, but it's not massive either. It contributes about half as much to the lag as the fact that git call is blocking. The performance problems of this script has very little to do with Python start-up time or Popen overhead, and has very much to do with the fact that it's a single threaded script running all its I/O on Main.
It's true that by going to C++, that start-up time would be eliminated. But by making the "git" command asynchronous, you would save double that amount of time and still have it be in Python. Add the svn, hg and fossil segments, as well as all the other segments in the default configuration, it adds up. None of the computation in this program is arduous enough that making it in C++ would make any noticeable difference.
Since no segment depends on any other, there's absolutely no reason why they shouldn't execute in parallel. One might argue thread-spinup and spin-down would be a little bit of a problem, but not that much, and it's completely solved if you use a server-client model. If you want to improve the performance of this project, rewriting it in C++ is a whole lot of trouble for very little gain, when there's an obvious structural problem.

@OskarSigvardsson what about the people like me who don't use any of those features, just cwd, time, jobs etc?

@PwnArt1st "time" and "cwd" should take no time at all, "jobs" might be a pinch longer because it launches "ps" as a subprocess twice (and thus has that same blocking behavior i described before). However, all of these are either reading environment variables or querying the OS, there's no blocking I/O there, which is the real problem.
Even if you don't use those features, remember to explicitly remove them from your configuration file. If your command line still lags after that, you can legitimately blame it on Python spin-up time.

@OskarSigvardsson is this still being worked on?

@PwnArt1st I have no idea, I found this project two weeks ago, and installed it, but didn't like how internally they generated the segments. Which is why I made that comment.

@OskarSigvardsson has made points that I agree with. My plan for some time has been to run the subprocesses in parallel. Unfortunately the code is not super straightforward for making that happen. One of the biggest issues I have is that working with the segments is difficult due to the generation of the powerline-shell.py script instead of importing modules.
For some time I have been interested in importing modules rather than generating one big script. The biggest concern there is possible performance problems, but I don't yet know how big they would be.
To speak to one point specifically,

One might argue thread-spinup and spin-down would be a little bit of a problem, but not that much, and it's completely solved if you use a server-client mode

I think we can easily avoid thread problems by having all of the segments launch any subprocesses at one time. Ie. rendering would look like:

Loop through segments, call segment.launch_subprocesses()

Each segment uses subprocess.Popen to launch the process and not block for the results

Loop through segments again, calling segment.render() which now blocks until its previously-launched subprocess is complete.

Would there be any issues doing this?

@b-ryan I doubt that "precompiling" the file saves much, the import cost is relatively small (especially since imported modules saves the generated byte-code in .pyc files, which should improve spin-up a little bit), so I don't know if that's so crucial. It's nice to a have a "self-contained" generated file that generates the prompt, but that's maybe not worth so much either.
Your idea for structure sounds good, but it's problematic for segments like "jobs" or "hg", which launches subprocesses several times.
If I were doing this, I might consider one of these two solutions:

Change the dependency from Python 2.7 to Python 3.5, and use the asyncio module combined with the new fancy async/await keywords. That would keep the structure simple for both "light" segments (like "ssh", which only has to read an environment variable) and "heavy" ones (which depend heavily on I/O, like "git" or "hg"). This would be my preferred solution, but porting the project to Python 3 might be too much of a challenge, and you might not want to require your users to install it).

Use threads. There's a few different ways of doing this, but one version would be something like this (sort-of pseudo-cody):

threads = []
rendered = Queue()

# start a thread for each segment
for segment in segments:
    t = Thread(target=segment, args=[rendered])
    t.start()
    threads.append(t)

# block until they're all done
for t in threads:
    t.join()

# ... build final string from the queue ...

That is, rendered is a queue that contains all the segments. I imagine each thread would pop a tuple onto the queue with the segment name and rendered segment contents on it (so, like, the jobs segment function would pop ("jobs", rendered_jobs_string)onto it), and when building the final string, it would read off the queue, put them in order (remember, there will be no guarantee that they're in the right order since you don't know which thread finished first) by reading the first element of the tuple, and then join all the strings together.
(I'm using a Queue() here instead of something like a list because the Queue class is guaranteed to be thread-safe. A dictionary might also be because of the Global Interpreter Lock, but I'm not sure about that, and it might differ between implementations.)
This way, the structure will be kept relatively simple (all segments can remain pretty much as they are just instead of returning the value, they pop it onto the queue) while still making sure that everything happens in parallel. The individual segment functions can use blocking I/O all they want, all that means is that the rest of the segments get their turn to render their strings.
This approach has a downside, which is that several of the segments don't need to be in separate threads. The ssh one, for instance, just reads an environment variable and pops out a string, adding that in a separate thread will just incur overhead. The overhead would probably be insignificant though, and it can be easily solved by using two loops: one which starts the threads for the "heavy" segments that need them, and then one after that that generates the "light" segments directly without using threads (that would be before the t.join() loop in my pseudo-code) and pops them onto the queue.
That's how I would do it, in any case. Seems like a fairly straight-forward way of doing it, and one which would save a lot of time.

Thanks a lot for the input. You made a good point about the multiple subprocess calls.
I am definitely hesitant to require version 3.5 of Python. So far we have tried to support any version of Python. I am interested to do some performance testing using the threading model you described and see how it does.

Personally, Ubuntu and Fedora are trying to switch to Python 3 by default, so I don't think it's too farfetched to require Python 3.5 so we can use async/await. Additionally, it makes plugins much easier to write if we only have to support one version of Python.
I think people who don't have Python 3 installed as their default Python can run this in a Python 3.5virtualenv, so it might be smart to make it easy to fire this up in a virtualenv.
Also, I'm a huge fan of dynamically importing segments - it makes configuration a lot easier.

I ended up rewriting this in golang, actually, with most segments supported.
It's available over here: https://github.com/justjanne/powerline-go

Sorry to resurrect a dead thread, but I just did a git pull and updated my config, and I'm noticing significant slowdowns since the last time.  Any idea what's changed that would slow things down? I figured #280 would make things faster, not slower...

@kc9jud no worries - thanks for bringing it up. I will investigate. The first thing that comes to mind is that maybe the os.path.realpath command is slow. I will have to investigate / maybe profile.

This is so slow for me :(

+1.
My terminal is slower than the usual. I use alacritty as my terminal, so the effect is not so noticeable, but when I've to use the native terminal, I can't ignore the slowdown

A while back I also had a slow terminal. Please see my ticket:
https://github.com/b-ryan/powerline-shell/issues/331
Run the following to see if its the same issue I had:
env | grep PROMPT_COMMAND

Im getting slowdowns very often. Even going back to home directory using cd can take several seconds


Backport "Fix incorrect caching with dependent method parameters" to LTS

Backports #21699 to the 3.3.5.
PR submitted by the release tooling.
[skip ci]

No regressions detected in the community build up to backport-lts-3.3-22148.
Reference


Custom property's attributes are not serialized to index mapping

NEST/Elasticsearch.Net version: 7.4.0
Elasticsearch version: 7.4.0
Description of the problem including expected versus actual behavior:
Hi, while upgrading our codebase from 6.8 to 7.4, we discovered a change of behavior that I cannot attribute to any of the breaking changes. Is this maybe caused by the change of the JSON serializer?
I create an object property with a custom property, but only the type gets serialized and the rest of the properties is ignored. In 6.8 it would also serialize the value of language. I've tried to mark them as DataContract/DataMember with no success.
When checking the descriptor's private properties, I can see that everything seems correct, just the serialization somehow ignores the properties.
Help would be appreciated, thanks.
Steps to reproduce:

Create a custom property, e.g.:

    public class SpecialKeywordProperty : IProperty
    {
        public SpecialKeywordProperty(string language)
        {
            Type = "special_keyword";
            Language = language;
        }

        public string Type { get; set; }

        public PropertyName Name { get; set; }

        public IDictionary<string, object> LocalMetadata { get; set; }

        [PropertyName("language")]
        public string Language { get; set; }
    }

Create a property visitor that's going to apply the property (on all object properties for simplicity):

    public class MappingPropertyVisitor : NoopPropertyVisitor
    {
        public override void Visit(IObjectProperty type, PropertyInfo propertyInfo, ElasticsearchPropertyAttributeBase attribute)
        {
            type.Properties.Clear();
            type.Properties.Add("special_field", new SpecialKeywordProperty("en"));
        }
    }

Create a document POCO:

    class Doc
    {
        [Object]
        public string Whatever { get; set; }
    }

Create a CreateIndexDescriptor mapping the document:

    new CreateIndexDescriptor("test-index")
             .Map<Doc>(m => m
                 .AutoMap<Doc>(new MappingPropertyVisitor())
                 .Dynamic(DynamicMapping.Strict)
             );

Create the index or just serialize the mapping, the property Language will not be serialized

{
  "mappings": {
    "dynamic": "strict",
    "properties": {
      "whatever": {
        "properties": {
          "special_field": {
            "type": "special_keyword"
          }
        },
        "type": "object"
      }
    }
  }
}

@phoeniks-sk This is a known issue with the serializer in 7.x, and relates to https://github.com/elastic/elasticsearch-net/issues/3655. I am hoping that we can revisit this soon. For now, you would be able to send the request with the lowlevel client

I've just opened #4219 to address

#4219 is merged and will be in the next release. Closing this


sap.m.MessageBox wrong BlockLayer Management with multiple dialogs

OpenUI5 version: 1.40
Browser/version (+device/version): Desktop Chrome, FF, IE11
URL (minimal example if possible): http://jsbin.com/yazarufuca/edit?html,js,output
What is the expected result? What happens instead?

Single Error is OK
Error and Info: last MessageBox (Info) is OK but when closed the first one (Error) looses it's BlockLayer -> when info is closed the error should still have its blocking layer
Dialog with Error: closing the error removes the BlockLayer from the Dialog -> Dialog BlockLayer needs to be active.

Hello @mkueng1
In OpenUI5 version 1.40.5 the bug is fixed.
URL to example: http://veui5infra.dhcp.wdf.sap.corp:8080/snippix/#82689

I cannot open your example - I guess it is an internal company server. Do you mean 1.42.5 which is not yet published on openui5beta.hana.ondemand.com?
Did you look at my example. I'm using the current version from openui5.hana.ondemand.com which is 1.40.10 - so I don't think the bug is fixed.

Hello @mkueng1 ,
Yes it is an internal system, sorry.
The bug is fixed in: https://git.wdf.sap.corp:8080/#/q/Iffce2ed61d8cea32c494c194b8a7152b77eda817,n,z
It will be in the next release of openUI5
Gergana

Updated internal links with external alternatives.

Hi Gergana,
please don’t post internal URLs on Github. They don’t work outside SAP and they disclose information that is regarded as sensible (internal domain names, server names).
For Gerrit changes that have been submitted already, you can instead post the Commit ID. Github generates a link for them, pointing to the git history on Github.
For Snippix samples, please create a JSBin (jsbin.com). JSBin knows UI5.
I applied both tips to your recent posts, so please don’t wonder about the changes.
Kind Regards, Frank
From: GerganaKremenska<EMAIL_ADDRESS>Reply-To: SAP/openui5<EMAIL_ADDRESS>Date: Thursday 10 November 2016 at 14:05
To: SAP/openui5<EMAIL_ADDRESS>Subject: Re: [SAP/openui5] sap.m.MessageBox wrong BlockLayer Management with multiple dialogs (#1218)
Hello @mkueng1https://github.com/mkueng1 ,
Yes it is an internal system, sorry.
The bug is fixed in: https://git.wdf.sap.corp:8080/#/q/Iffce2ed61d8cea32c494c194b8a7152b77eda817,n,z
It will be in the next release of openUI5
Gergana
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/SAP/openui5/issues/1218#issuecomment-259685120, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJIuP_Uat6HdZp1kVCzg1crwOsvVGR54ks5q8xa3gaJpZM4KrZ3e.


Update UG with images

Fixes #711

Codecov Report

Merging #714 (3b5eb7b) into master (fceebce) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #714   +/-   ##
=========================================
  Coverage     70.94%   70.94%
+ Complexity     1587     1576   -11
=========================================
  Files           236      235    -1
  Lines          5287     5287
  Branches        710      711    +1
=========================================
  Hits           3751     3751
  Misses         1224     1224
  Partials        312      312

Impacted Files
Coverage Δ
Complexity Δ

...ds/gradetrackercommands/EditAssignmentCommand.java
78.57% <0.00%> (-1.43%)
16.00% <0.00%> (ø%)

...gradetrackercommands/EditAssignmentDescriptor.java

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 fceebce...3b5eb7b. Read the comment docs.


Updating badges dependences

Coverage remained the same at 52.854% when pulling 0bd5590b43bb5db6eed77fb577195fd844089107 on material-design into 672c3a99d68d5cac51e4a177064b4c2c430b6c3e on master.


Handle crashes from error code 503

System will crash if encountering error code 503 for a long period of time
2022-09-20 01:01:50,360 - Service - WARNING - Sequence of errors detected. Halting requests for 10 minutes: ResponseError('Invalid response, status code: 503 - Data: {"message":"09/20/2022 01:00 ～ 09/20/2022 03:00 (UTC ± 00)","code":5300}')
2022-09-20 01:11:50,455 - Service - INFO - Resetting connection
2022-09-20 01:11:50,455 - Service - INFO - Connecting to Panasonic Comfort Cloud..
2022-09-20 01:11:52,949 - Service - INFO - Shutting down
Traceback (most recent call last):
  File "/app/run.py", line 4, in <module>
    __main__.main()
  File "/app/pcfmqtt/__main__.py", line 42, in main
    s.start()
  File "/app/pcfmqtt/service.py", line 79, in start
    self.connect_to_cc()
  File "/app/pcfmqtt/service.py", line 45, in connect_to_cc
    self._session.login()
  File "/usr/local/lib/python3.9/site-packages/pcomfortcloud/session.py", line 99, in login
    self._create_token()
  File "/usr/local/lib/python3.9/site-packages/pcomfortcloud/session.py", line 132, in _create_token
    raise ResponseError(response.status_code, response.text)
pcomfortcloud.session.ResponseError: Invalid response, status code: 503 - Data: {"message":"09/20/2022 01:00 ～ 09/20/2022 03:00 (UTC ± 00)","code":5300}

Resolved with v0.4.4


ImportError: torch.utils.ffi is deprecated. Please use cpp extensions instead

does anyone encount this error

@Ming-Du  install torch==0.4.0

@ajithvallabai but the error still occurs. so I must use torch==0.4.0 to run this code?

u can use torch == 0.4.0 , but if u r GPU gene code is of higher extend or  cuda is =/+ 10 like that u may face issue there also . u need to go to cuda 9.1 or 8 like that


Option to set diff program

Can we have an option to specify which diff program to use so we can point it to difftastic?

I've implemented a way to set a custom command, as outlined in the README. Please tell me if you get difftastic to work using this option, because I couldn't:
This plugin uses the internal diff facilities and uses delta only as a formatter. I don't think difftastic has the ability to do that? Using external diff tools for the actual diffing would mean a whole mess of temporary files.

I also couldn't get it working. I'll have a better look at difftastic's docs and report back as soon as I can.


[bugfix] Fix dead radios

https://github.com/404rq/GTW-RPG/issues/76
Fixed a few more offline (like 2 or 3)

Good, there are some more to be added as well. BTW could you when you write your commits use the suggested template rather than brackets and mixing lower and uppercase? this commit would for instance have a title like this:
misc: removed offline radio stations
As it's not a required update (misc) and a detailed short description of what's changed.

ah okay, not really good with the github game. lol


ERROR:ZODB.Connection:Shouldn't load state for Products.CMFCore.ActionInformation.Action

I ran into this error trace during Cypress tests and during prod as well:
ERROR:ZODB.Connection:Shouldn't load state for Products.CMFCore.ActionInformation.Action 0x17c303e488cf2401 when the connection is closed
Traceback (most recent call last):
  File "/home/travis/buildout-cache/eggs/ZODB-5.5.1-py3.7.egg/ZODB/Connection.py", line 785, in setstate
    raise ConnectionStateError(msg)
ZODB.POSException.ConnectionStateError: Shouldn't load state for Products.CMFCore.ActionInformation.Action 0x17c303e488cf2401 when the connection is closed
ERROR:ZODB.Connection:Shouldn't load state for Products.CMFCore.ActionInformation.Action 0x17c303e488cf2401 when the connection is closed
Traceback (most recent call last):
  File "/home/travis/buildout-cache/eggs/ZODB-5.5.1-py3.7.egg/ZODB/Connection.py", line 785, in setstate
    raise ConnectionStateError(msg)
ZODB.POSException.ConnectionStateError: Shouldn't load state for Products.CMFCore.ActionInformation.Action 0x17c303e488cf2401 when the connection is closed
ERROR:ZODB.Connection:Shouldn't load state for Products.CMFCore.ActionInformation.Action 0x17c303e488cf2401 when the connection is closed
Traceback (most recent call last):
  File "/home/travis/buildout-cache/eggs/ZODB-5.5.1-py3.7.egg/ZODB/Connection.py", line 785, in setstate
    raise ConnectionStateError(msg)
ZODB.POSException.ConnectionStateError: Shouldn't load state for Products.CMFCore.ActionInformation.Action 0x17c303e488cf2401 when the connection is closed
ERROR:ZODB.Connection:Shouldn't load state for Products.CMFCore.ActionInformation.Action 0x17c303e488cf2401 when the connection is closed
Traceback (most recent call last):
  File "/home/travis/buildout-cache/eggs/ZODB-5.5.1-py3.7.egg/ZODB/Connection.py", line 785, in setstate
    raise ConnectionStateError(msg)

Source: https://travis-ci.org/plone/volto/jobs/604362998?utm_medium=notification&utm_source=email
This requires further investigation. I add this here as a starting point.

Something similar happened here as well: https://travis-ci.org/plone/volto/jobs/604329404

It's been a while that I haven't seen it. I think we finally obliterate the bug thanks to @datakurre when he took a look at the order of the layer teardown some time ago. Closing for now!


luma.oled working on TinkerBoard + SSD1306 0.96"

This awesome library works on TinkerBoard and luma.OLED.
This is the configuration:

TinkerOS 2.04
ASUS GPIO API for python libraries (includes a full GPIO RPi library)
i2c SSD 1306 0.96" OLED diplay

Here is a short video showing the oled in action.
https://youtu.be/NiKvo_2GfNw

@effebal can add a link/section to the documentation to points to a wiki page (that we'll create then)?


Demucs V3 Compatibility

A few small changes that allowed compatibility for the new model:

remove --models flag from separate command (it does not exist in v3)
remove /data/models Docker volume

There may be some more elegant way to just add the models to the /data/models volume as well, but this gets the model up and running for those wanting to try v3. 🙂

Hi @jaolan ! Thanks for your contribution 💪🏽
Checking last updates in the issue #7 , @adefossez commented that we could maintain the models but instead of using the flag --models we should use the TORCH_HOME environment variable. See https://github.com/xserrat/docker-facebook-demucs/issues/7#issuecomment-967728408.
So the changes we should make are:

Remove the --models flag from Makefile's run target (as you did)
Use the TORCH_HOME=/data/models

Regarding these changes, @loretoparisi did this pull request with the fix to keep downloading at the same location (/data/models).
If it's not a problem, we could close this PR and merge the changes applied by @loretoparisi.
Anyway, thanks for your interest and you're welcomed for future contributions :)

Thanks a lot for the PR!


Looking for help: a problem has arisen when running the code.

Hello，@lululxvi @MinZhu123 @ChenxiWu123
Thanks for sharing your code, I am encountering a problem as shown below when running the code.
"AttributeError: module 'deepxde.callbacks' has no attribute 'PDEResidualResampler'" in Random_R.py.
I am using TensorFlow 2.7.0. What should I do to solve this problem, I am looking forward to receiving your help.
Thank you very much!

Use PDEPointResampler https://deepxde.readthedocs.io/en/latest/modules/deepxde.html#deepxde.callbacks.PDEPointResampler

Thank you for your response, the problem has been successfully resolved with your help.
Best wishes!


Implement closefrom(2) where available

Currently, when the neverbleed process is forked we query _SC_OPEN_MAX and
iterate through every file descriptor above STDERR (skipping listen and
close notify file descriptors) and call the close(2) syscall on the fd.
Each syscall is a context switch, and depending on the audit/debug state of
the system during this time, roughly 231,000 syscalls will be executed.
On security audited, traced or otherwise hooked (kprobes, ebpf, perf)
processes, this will generate 231,000 records being committed to disk.
This change introduces an optimization which determines the highest file
descriptor value currently in the process, uses the standard close(2) syscall
for anything less than (excluding stdout, stderr, and stdin) then executes
closefrom(2) on the highest fd plus one. This substantially decreases the number
of context switches during the bootstrap phase of the neverbleed process (from
231,000 to roughly 9. This change also includes the necessary cmake changes to
detect the functionality. Tested and verified on FreeBSD:
 [..]
 52544: close(3)                                  = 0 (0x0)
 52544: close(4)                                  = 0 (0x0)
 52544: close(5)                                  = 0 (0x0)
 52544: close(6)                                  = 0 (0x0)
 52544: close(7)                                  = 0 (0x0)
 52544: close(8)                                  = 0 (0x0)
 52544: close(9)                                  = 0 (0x0)
 52544: close(11)                                 ERR#9 'Bad file descriptor'
 52544: closefrom(13)                             = 0 (0x0)
 [..]

Requested by: @kazuho
Original PR: https://github.com/h2o/h2o/pull/2332

Thank you for the pull request. Merged.


Upgrade travis.yml for new build servers

Coverage increased (+1.5%) to 67.414% when pulling ad8f59ebadef12aa872b28fc82b1d4d38da0587b on TravisFixes into 3bdfc40b75fdccc719b66f0b7f74aeb73a7d2985 on master.


[Feature]: Add disconnect/reconnect function in Arduino library to be able to manually control connection via board

This could function as a 'soft' reset to handle times when the connection has problems. Most boards have the arduino located inside and potentially inaccessible, so pressing the reset button may not be an option.
A simple callable set of functions would be ideal, maybe "mysimpit.connect, mysimpit.disconnect".

What should this do ? This will not reset the whole arduino as the reset button does. If you need an actual Arduino reset, you can use a dedicated button on your controller.
If you want you can unsubscribe all the channel and stop sending messages to KSP. It will remove all the traffic on the serial connection. What should the call to mysimpit.disconnect() do differently ?
On the other end, a call to mysimpit.init() is the function that open the connection. What would be the difference with mysimpit.connect() ?

What should this do ? This will not reset the whole arduino as the reset button does. If you need an actual Arduino reset, you can use a dedicated button on your controller.
If you want you can unsubscribe all the channel and stop sending messages to KSP. It will remove all the traffic on the serial connection. What should the call to mysimpit.disconnect() do differently ?
On the other end, a call to mysimpit.init() is the function that open the connection. What would be the difference with mysimpit.connect() ?


new website page - ROI calculator

Please develop this page:
https://www.figma.com/file/T9nJAaxICoFAuuDXFgsKVK/ZESTY-PAGES-WIREFRAMES?node-id=0%3A1
Page in Zesty: https://8-aaeffee09b-7w6v22.manager.zesty.io/content/6-82e1ad9d8d-c2rq2z/7-e8ebbba88f-pzq2p5
**note that the schema does not have the calculations portion included. This will need to be hardcoded. Please work with @chloespilotro to set up. We will also need to determine how to make a customized PDF to download based on their calculations.

@Katiemoser  @chloespilotro
Hi All, I’m almost complete with ROI calculator I just need help how to calculate
Monthly ROI
Revenue Gained
Resources
ROI Plan
Breakdown Summary
currently I was able to get the time saved and money saved
Time saved = QA Testing + Intangibles + Standard Changes (Hours)
MoneySaved = Infrastructure + CMS setup + ongoing support + additional software + (QA Testing, Intangibles, standard changes ) whichever selected ( dev or marketer) * Hourly
please let me know if my calculations are correct
also I need more context how to use values from -> WHAT PERCENT YOU COULD ADD IN OF REVENUE?
as well as selected values from -> WHAT CMS ARE YOU CURRENTLY USING?
Thank you!


apr: add patch for CVE-2021-35940

Motivation for this change
https://nvd.nist.gov/vuln/detail/CVE-2021-35940
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[x] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 136194 at c6c39b59 run on aarch64-linux 1

2 packages marked as broken and skipped:

easyeffects
pulseeffects-legacy

1 package failed to build:

drush

18 packages skipped due to time constraints:

apacheHttpdPackages.subversion (apacheHttpdPackages_2_4.subversion)
git-doc
gitFull
gitSVN
gnome.gnome-control-center (gnome.gnome_control_center)
haxe_3_2
haxe_3_4
hydra-unstable
libsForQt5.kcachegrind (libsForQt515.kcachegrind ,plasma5Packages.kcachegrind)
libsForQt512.kcachegrind
...

72 packages built successfully:

adminer
apacheHttpd (apacheHttpdPackages.apacheHttpd ,apacheHttpdPackages_2_4.apacheHttpd ,apacheHttpd_2_4)
apacheHttpdPackages.mod_auth_mellon (apacheHttpdPackages_2_4.mod_auth_mellon)
mod_ca (apacheHttpdPackages.mod_ca)
mod_crl (apacheHttpdPackages.mod_crl)
mod_csr (apacheHttpdPackages.mod_csr)
mod_dnssd (apacheHttpdPackages.mod_dnssd)
mod_fastcgi (apacheHttpdPackages.mod_fastcgi)
mod_ocsp (apacheHttpdPackages.mod_ocsp)
mod_pkcs12 (apacheHttpdPackages.mod_pkcs12)
mod_python (apacheHttpdPackages.mod_python)
mod_scep (apacheHttpdPackages.mod_scep)
mod_spkac (apacheHttpdPackages.mod_spkac)
apacheHttpdPackages.mod_tile (apacheHttpdPackages_2_4.mod_tile)
mod_timestamp (apacheHttpdPackages.mod_timestamp)
mod_wsgi (apacheHttpdPackages.mod_wsgi)
apacheHttpdPackages.mod_wsgi3 (apacheHttpdPackages_2_4.mod_wsgi3)
php (apacheHttpdPackages.php ,php80)
apr
aprutil
arcanist
bookstack
cabal2nix
dep2nix
engelsystem
gnome.gnome-user-share
haskellPackages.cabal2nix-unstable
haxe (haxe_4_2)
hxcpp (haxePackages.hxcpp)
haxePackages.hxcs
haxePackages.hxjava
haxePackages.hxnodejs_4
haxe_4_0
haxe_4_1
icingaweb2
log4cxx
mate.mate-user-share
matomo
matomo-beta
modsecurity_standalone
nagios
neko
nextcloud-news-updater
nix-prefetch-scripts
nix-prefetch-svn
nix-update-source
perl532Packages.GoferTransporthttp
perl532Packages.libapreq2
perl532Packages.mod_perl2
perl534Packages.GoferTransporthttp
perl534Packages.SVNSimple
perl534Packages.libapreq2
perl534Packages.mod_perl2
phoronix-test-suite
php74
python38Packages.pysvn
python38Packages.ydiff
python39Packages.pysvn
ydiff (python39Packages.ydiff)
rabbitvcs
serf
subversion
subversionClient
svn-all-fast-export
svnfs
tomcat-native
tomcat_connectors
vcstool
wp-cli
xsecurelock
yle-dl
zkfuse

1 suggestion:

warning: missing-patch-comment
Consider adding a comment explaining the purpose of this patch on the line preceeding.
Near pkgs/development/libraries/apr/default.nix:20:40:
   |
20 |   ] ++ lib.optionals stdenv.isDarwin [ ./is-this-a-compiler-bug.patch ];
   |                                        ^

Note that build failures may predate this PR, and could be nondeterministic or hardware dependent.
Please exercise your independent judgement. Does something look off? Please file an issue or reach out on IRC.

Thanks @risicle!


Configuration options for dbbackup

This PR adds some setup / configuration options for database backup.
Additionally, backup is no longer "forced" during the "invoke update" step. This allows the update step to be run without backup, in situations where the user might not want this, or where backup is misconfigured.
Ref: https://github.com/inventree/InvenTree/discussions/4179

@matmair due to the change to the invoke update step, (which no longer calls "backup" by default) does the installer script need to be adjusted?

@matmair due to the change to the invoke update step, (which no longer calls "backup" by default) does the installer script need to be adjusted?

The installer just calls the invoke task so no changes required. Maybe a migration that adds the backup option for exsisting installs would be good. Or a warning that this default changed could be sent to all superusers.

Hi, the problem was not during "invoke update", but on regular startup of Inventree server. Updating went completely OK.
With these changes, I could theoretically start up the server with backups disabled with otherwise default settings. Then if I wanted to enable them, I would have to restart the server and run into the same deadlock issue again, have to decrease amount of background workers, start up the server, wait for it to get satisfied with creating backups, shut it down and restart again with full amount of bkg workers. Or am I mistaken?


Init empty jqXHR array fails since is not defined in Bridge.jQuery

Init empty jqXHR array fails since is not defined in Bridge.jQuery
Steps To Reproduce
https://deck.net/9f174d825b3b5bdc7c3aa6398c76262a
public class Program
{
    public static void Main()
    {
        jqXHR[] deferreds = { };
    }
}

Expected Result
code runs fine

Actual Result
System.Exception: TypeError: Cannot read property 'jqXHR' of undefined
    at Function.Main (https://deck.net/RunHandler.ashx?h=1804941215:9:65)
    at https://deck.net/resources/js/bridge/bridge.min.js?16.8.2:7:40150
    at HTMLDocument.i (https://deck.net/resources/js/bridge/bridge.min.js?16.8.2:7:5505)
    at i (https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js:2:27151)
    at Object.add [as done] (https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js:2:27450)
    at n.fn.init.n.fn.ready (https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js:2:29515)
    at n.fn.init (https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js:2:24945)
    at n (https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js:2:405)
    at Object.ready (https://deck.net/resources/js/bridge/bridge.min.js?16.8.2:7:5568)
    at https://deck.net/resources/js/bridge/bridge.min.js?16.8.2:7:40129

The jqXHR class is defined, but it appears there are some Bridge Attributes missing from the class which is preventing this particular scenario from rendering correctly.
I tried your sample using Retyped.jquery and it appears to be working correctly.
https://dev.deck.net/d61e9864c348e2fb2b3caa5b207bad38
public class Program
{
    public static void Main()
    {
       	Retyped.jquery.JQueryXHR[] tmp = { };
    }
}

Thanks, this works fine ;)


Added ability to correct the rank when missed

Sometimes the rank does not get recorded properly, provide a cog (similar to note
feature) that allows the user to select the (non-legend) rank the game took place
at.
Seems like a reasonably elegant solution to #63

Thanks for the PR. But I rather tackle the cause than the symptoms (i.e. make the rank detection more reliable).


🚀 : Update badges and day-streaks info links with new docs url

Is your feature request related to a problem? Please describe.
I'm always frustrated when the documentation links for badges and day-streaks are outdated, leading to confusion and incorrect information being accessed by users.
Describe the solution you'd like
Update the documentation links for badges and day-streaks to the new URLs:

Badges: https://docs.langx.io/litepaper/library/badges
Day-Streaks: https://docs.langx.io/litepaper/library/day-streaks

Describe alternatives you've considered
An alternative could be to create a redirection from the old URLs to the new ones, ensuring users are automatically taken to the updated documentation.
Additional context
According to this PR, when it is merged, the links will be updated.
If you want to speed up the process of this issue, please send 🚀 as a reaction.

Done w/ 544f41a5e54b87a9383e2f99dbc59c14674567fe


CustomFlyoutPresenter style is not applied instead referring default MS FlyoutPresenter style

Describe the bug
I have implemented CustomFlyoutPresenter in a library project.
Then, i have created a custom flyout inherited from flyout base and override create presenter as like below at application level. Everything works fine, it refer the CustomFlyoutPresenter style properly.
public class CustomFlyout : FlyoutBase
{
    protected override Control CreatePresenter()
    {
        var customFlyoutPresenter = new CustomFlyoutPresenter();
        return customFlyoutPresenter;
    }
}

Suppose, I create a flyout presenter class inherited from CustomFlyoutPresenter at application level and override create presenter as like below in custom flyout. Then, base CustomFlyoutPresenter style is not applied properly.
public class CustomFlyout : FlyoutBase
{
    protected override Control CreatePresenter()
    {
        var customFlyoutPresenter = new CustomFlyoutPresenter1();
        return customFlyoutPresenter;
    }
}

public class CustomFlyoutPresenter1 : CustomFlyoutPresenter
{
}

Steps to reproduce the bug

Run the sample.
Click the button to open the flyout.
Note CustomFlyoutPresenter style is not applied in custom flyout instead it refer MS FlyoutPresenter style.

Expected behavior
CustomFlyoutPresenter style should applied properly.
NuGet package version:
[Microsoft.WinUI 3.0.0-preview3.201113.0]
Sample:
Flyout-issue.zip

@mageshsankar How are you applying the style? In markup? Is it using Flyout.FlyoutPresenterStyle?

@chrisglein, we have defined custom style for CustomFlyoutPresenter in library project. We didn't use Flyout.FlyoutPresenterStyle. Please find the screenshot regarding it below and refer attached sample in description for further details.

Hi Team,
Any update on this?


Give EventLoopFuture a Combine Publisher.

Motivation:
Combine provides users with a nunber of powerful tools for asynchronous
programming that allow users to define a reactive style of programming.
Over time SwiftNIO will want to add a number of hooks for working with
Combine to help enable users to integrate SwiftNIO with their
Combine-using applications.
Modifications:

Gave EventLoopFuture a Combine Publisher that will provide the result
of the EventLoopFuture

Result:
Beginnings of Combine integration for SwiftNIO

/cc @ktoso

Given the concerns about differing APIs on different platforms, I think this has aged out.

@Lukasa : is there any chance of resuming this work? Having Combine publisher on an EventLoopFuture would bring it to the next level.


Charts API

Sumary
Implemented multi provider charts api
Clients are separated from providers structs to reuse same rpc calls
Usage example
/v1/market/charts?currency=USD&timeStart=1574483028&coin=60&token=0xdAC17F958D2ee523a2206206994597C13D831ec7
token is optional
Fixes: trustwallet/backend#52
Sorry for the big PR.

Can you add description how much paid request implementation consumes, does it use free endpoints at all, what are the constraint here (like using public api from cmc) etc...

try to do small PR next time, you can split the clients first and implement the charts after

nice code. Good work @dpereskokov !!! 👏👏


Fix bug in prewhere + distributed

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
For changelog. Remove if this is non-significant change.
Category (leave one):

Bug Fix

Short description (up to few sentences):
Fix bug opened by https://github.com/yandex/ClickHouse/pull/4405 (since 19.4.0). Reproduces in queries to Distributed tables over MergeTree tables when we doesn't query any columns (SELECT 1).

Segfault in function cast. Doesn't connect with changes.

Performance failures also not connected with changes.


basic lib doesn't work with Ampere ARM processors

As the title suggest, if I try to set lib='basic' I get the following error:
/home/ubuntu/.local/lib/python3.10/site-packages/ctransformers/lib/basic/libctransformers.so: cannot open shared object file: No such file or directory
If I try to directly run libctransformers.so I get this error:
cannot execute binary file: Exec format error

Hi, for ARM processors it has to be built from source as precompiled libs are not available https://github.com/marella/ctransformers/issues/9#issuecomment-1557140200:
git clone --recurse-submodules https://github.com/marella/ctransformers
cd ctransformers
./scripts/build.sh

The compiled binary will be located at build/lib/libctransformers.so which can be used as:
llm = AutoModelForCausalLM.from_pretrained(..., lib='/path/to/ctransformers/build/lib/libctransformers.so')

It worked! Thanks for the help ^^

Is it possible to provide aarch64 pypi package with prebuild libctransformers.so for convenience?

I'm using GitHub Actions to build binaries but it doesn't support ARM processors currently.
I made it simpler to install from source now. You can just run the following command:
pip install ctransformers --no-binary ctransformers

@marella thanks
As I saw it's for example possible with qemu here https://github.com/OpenNMT/CTranslate2/blob/50ce6a76920e8eef15a47997353101348871ec3d/.github/workflows/ci.yml#L163

Hi, just stumbled on this thread trying to get ctransformers to work on an RPi4. Quick notes:

Firstly, a deprecation warning

pip install ctransformers --no-binary ctransformers
DEPRECATION: --no-binary currently disables reading from the cache of locally built wheels. In the future --no-binary will not influence the wheel cache. pip 23.1 will enforce this behaviour change. A possible replacement is to use the --no-cache-dir option. You can use the flag --use-feature=no-binary-enable-wheel-cache to test the upcoming behaviour. Discussion can be found at https://github.com/pypa/pip/issues/11453

Secondly, this installation method results in a unicode error for me:

print(llm(formatted_prompt))
UnicodeEncodeError: 'latin-1' codec can't encode character '\u2019' in position 49: ordinal not in range(256)

Lastly, manual installation from source work perfectly, however might it be a good idea to put this in the installation part of the readme, since I had to find it in a closed issue.

Overall love the library! :+1:


feat(apps/prod/tekton): support internal triggers for components

pd
tikv
tiflash
tidb
tiflow
advanced-statefulset

Signed-off-by: wuhuizuo<EMAIL_ADDRESS>

/approve

The new build trigger files have not been fully reviewed for potential issues.

the ce-context is not used in pipelinerun or taskrun, just set the annotations in pipelinerun.


Menu Persists During Page Transition

React/React-dom version: 18.2.4
React-Menu version: 4.0.3
Describe the bug
To Reproduce

Create a basic menu
Click a menu item that navigates to another page within the app using react router
Our modal is displayed while loading the new page, but the menu is persisted until the page is fully loaded

Expected behavior
I would expect the menu to disappear before transitioning to the new page.
Code snippets/CodeSandbox examples/Screenshots

Hey @danglez83 , we have a react router example which works fine. If you call closeMenu from FocusableItem before page transition, menu would close.

Hey @szhsin, I am using just MenuItem components in my project as opposed to FocusableItem (don't use the link styles) and can't seem to get it to work as expected. My component structure looks essentially like this:
<MenuItem {...props} disabled={menuDisabled}>{children}</MenuItem>
I even tried setting the toggleMenu(false) on the menu state when a nav menu item is clicked:
<Menu {...menuState} anchorRef={ref} ...>{children}</Menu>
Any pointers?

Calling toggleMenu(false) should close the menu, unless it is not called in a desirable event.
We also have a react-router example that works with MenuItem (check the "About" link). It's not quite different from FocusableItem, as MenuItem toggles off menu in response to the onClick event.

Hey @danglez83 , has the problem been resolved, should I close the ticket?

Hey @szhsin, unfortunately I still cannot get it to work as expected. Trying to get to the root of the issue.

@szhsin some more insight on our app structure:
<Suspense fallback={<LoadingScreen />}>       <ApplicationHeader />       <BreadcrumbContext.Provider value={breadcrumbStore}>         <Box width={1} flex="1">           <Switch>             <Route exact path={ROUTES.LOGIN_REDIRECT.url} component={Nothing} />             <AuthenticatedRoute component={BreadcrumbSlot} />           </Switch>
Our routes are all wrapped by react's Suspense component, which renders a loading modal as soon as the transition starts. This is what is being displayed beneath the menu before the menu eventually disappears (closes).

Not sure what's the issue, but there might be something we can check:

If ControlledMenu were used, we can console log the onClose event and check whether the event fired before or after page transitions. Similarly, use onMenuChange event for Menu component.
Is your menu rendered outside the Suspense boundary? If yes, try to move it inside Suspense. When any of the routes suspends, React will hide the menu and render the loading fallback.

Hey @szhsin ok, I had actually done this before, but repeated just for peace of mind. The order of operations is like this based on console logs:

menu item clicked
navigation
onClose fired

The menu is rendered within the Suspense, BUT it has the portal prop set to true (many cases within our app need the menu break the bounds of the smaller parent container, so we use that prop.

The onClose event has a reason prop, can you please confirm what the value is?
type CloseReason = 'click' | 'cancel' | 'blur' | 'scroll';

Also, does "menu item clicked" represent exactly the onClick event on MenuItem component?

Just a guess, the link underneath a menu item could have called stopPropagation and that menu item didn't receive a click event. Menu eventually closed due to losing focus after page transition has completed.

The reason is returning, 'close'
The "menu item clicked" was logged via:
 console.log(`menu item clicked (${e.reason})`) as any || toggleMenu(false)}

Well, that's strange as reason can only be one of the four values.
Could you log the onItemClick event to check whether it was fired?
<Menu
   {...menuState}
   anchorRef={ref}
+ onItemClick={(e) => console.log(menu item clicked)}
   onClose={(e) => console.log(menu item closed (${e.reason})) as any || toggleMenu(false)}

My apologies, it is close, not click - typo

ok, here is my output based on the following:
          onItemClick={() => console.log('onItemClick')}
          onClose={e =>
            (console.log('onClose', e.reason) as any) || toggleMenu(false)
          }

onItemClick
onClose, click

Thanks for providing the info. The events all look fine and no clue of anything goes wrong here.
Checked again your first video, it looks like something was blocking the main thread for a moment when routes were switching. Maybe it was downloading and parsing a large chunk of JavaScript code?

No problem.
The only thing that occurs during the switch is storing the previous Url in state. Not sure if you saw above, but I do have the portal prop set; if this is not set, the issue does not seem to occur.

I did notice you mentioned portal, but didn't think it played a role as I assume React should handle portal no differently in terms of events. This is from React website:

A portal only changes the physical placement of the DOM node. In every other way, the JSX you render into a portal acts as a child node of the React component that renders it. For example, the child can access the context provided by the parent tree, and events still bubble up from children to parents according to the React tree.

Your code had <Suspense/>, wasn't it be used with React.lazy for code splitting and lazy-loading components?

Hey @danglez83 I'm trying to replicate the issue on my end and i need a bit more information.
According to React website, suspense currently only supports two use cases:

Only Suspense-enabled data sources will activate the Suspense component. They include:

Data fetching with Suspense-enabled frameworks like Relay and Next.js
Lazy-loading component code with lazy

You said "show a fallback (loading modal) while the transition is happening", could you point out what caused <Suspense/> to show a fallback in your use case, if the reason was not loading code-split components or data fetching?

Mystery solved. It is a known issue of React, see: https://github.com/facebook/react/issues/26612
In short, Suspense cannot hide portal when the portal is not a direct child of Suspense.
An example that replicates the issue: https://codesandbox.io/s/react-menu-1067a-sfgmrj
Before the issue is fixed in React, there are some workarounds:

Move menu up the React tree and make it a direct child of Suspense: https://codesandbox.io/s/react-menu-1067b-fwpqfz
Use a menu's portal.target to portal the menu to a node which is WITHIN Suspense boundary, and high enough in the DOM for the menu to break out any overflow. https://codesandbox.io/s/react-menu-1067c-m6tmry

Closing it as caused by an upstream issue (React).


Update virus-detection-in-spo.md

Typo fix

Learn Build status updates of commit 685e092:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-365/security/office-365-security/virus-detection-in-spo.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

@tiburd Please merge this PR. Thanks

Learn Build status updates of commit 5de1933:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-365/security/office-365-security/virus-detection-in-spo.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


Restore -fno-builtin for SYMTABOBJ

Summary
Use -fno-builtin for SYMTABOBJ
The code generated by tools/mksymtab.sh uses
extern void *var;

for ~everything.
After the recent removal of -fno-builtin, [1]
it ends up with warnings:

-Wbuiltin-requires-header for clang
-Wbuiltin-declaration-mismatch for gcc

It also generates errors like the following for clang:
symtab_apps.c:125:14: error: redefinition of 'strdup' as different kind of symbol
extern void *strdup;

I couldn't find a way to disable it.
(it's err_redefinition_different_kind in clang source)
This commit works it around by restoring -fno-builtin
when building SYMTABOBJ.
[1] https://github.com/apache/incubator-nuttx/pull/5476
Impact
Testing
tested with my app + sim/linux + clang

syscall may need the similar change too

syscall may need the similar change too

do you mean the table generated from syscall.csv and libc.csv?
i guess they are ok as they use correct prototypes.

syscall may need the similar change too

do you mean the table generated from syscall.csv and libc.csv? i guess they are ok as they use correct prototypes.

Yes, you are right. After search "Wbuiltin-declaration-mismatch", only https://github.com/apache/incubator-nuttx/blob/master/tools/mkallsyms.sh need the similar change.

syscall may need the similar change too

do you mean the table generated from syscall.csv and libc.csv? i guess they are ok as they use correct prototypes.

Yes, you are right. After search "Wbuiltin-declaration-mismatch", only https://github.com/apache/incubator-nuttx/blob/master/tools/mkallsyms.sh need the similar change.

https://github.com/apache/incubator-nuttx/pull/6247


Support keystone API v3 in OpenStack controller

I want to add keystone API v3 support to OpenStack controller and some bug fix in order to use OpenStack controller for K5.
I added fix and test code for this function in my repository.
I want to add these function:

add route to use keystone API v3

add parameter of domain ID and tenant ID
Using TLS v1.2 protocols to connect K5

fix checking server exist logic in order not only to use server name "Server"

Can I pull request for this fix?

Hi @misako0927,
That 'll be a great feature for the OpenStack controller. You are welcome to contribute.
I have setup the feature branch fb_k5_openstack_enhance. Please raise your pull request there.


Fix repos paths inside sandcastle and copy both

TODO:

[ ] Write new tests or update the old ones to cover new functionality.
[ ] Update or write new documentation in packit/packit.dev.

Fixes https://github.com/packit/packit-service/issues/1956
Merge after packit/sandcastle#197
Merge before packit/packit.dev#743

recheck


Configure Docker Development Environment

Configure Docker Development Environment
Description
This PR sets up a comprehensive Docker development environment for the HIAS project, enabling hot-reloading, proper service isolation, and streamlined development workflow.
Changes
Docker Configuration

Optimized Dockerfiles for development environment
Added volume mounts for hot-reloading
Configured proper service dependencies
Implemented development-specific entrypoint scripts

Environment Setup

Added development environment variables
Configured ports for local development
Set up database connection strings
Added API URL for frontend-backend communication

Development Workflow

Enabled hot-reloading for both API and React app
Added Prisma migration handling
Configured TypeScript compilation
Improved dependency management

File Changes

Dockerfile.api: Optimize for development with hot-reloading
Dockerfile.app: Configure React development environment
docker-compose.yml: Set up development services and volumes
scripts/docker-entrypoint.sh: Add API service startup script
scripts/docker-entrypoint-app.sh: Add React app startup script
api/src/server.ts: Update server configuration for Docker
package.json: Configure workspace and dependencies
api/package.json: Set up API development scripts
app/package.json: Configure React development environment

Testing

Start the development environment:

docker-compose up --build

Verify access points:

Frontend: http://localhost:3000
API: http://localhost:5000
Database: localhost:5432

Verify hot-reloading:

Make changes to React components
Modify API endpoints
Check for automatic rebuilds

Notes

Development environment only - production configuration will be handled separately
Database data persists between container restarts
ESLint warnings present in React app (non-critical)
Prisma update available (optional)

Security Considerations

Development-only credentials used
Environment variables properly configured
No sensitive data in version control
Local-only development setup

Next Steps

[ ] Add production Docker configuration
[ ] Implement comprehensive testing
[ ] Add detailed API documentation
[ ] Configure logging system

Related Issues
Closes #35

كح


AssertionError when installing pyrouge

how to deal with this? please help.
https://stackoverflow.com/questions/43289915/assertionerror-when-installing-pyrouge

Thanks for reporting this.
The tests were not up-to-date, but should be fixed now.
You can get the latest version with:
git clone https://github.com/bheinzerling/pyrouge
cd pyrouge
python setup.py installt
python -m pyrouge.test

@bheinzerling Thanks a lot, that works.
I mentioned you forked this repo form https://github.com/andersjo/pyrouge.
But why there are some difference between these tow version?
In that repo ROUGE can be used as this:
ref_texts = {'A': "Poor nations pressurise developed countries into granting trade subsidies.",
             'B': "Developed countries should be pressurized. Business exemptions to poor nations.",
             'C': "World's poor decide to urge developed nations for business concessions."}
summary_text = "Poor nations demand trade subsidies from developed nations."
rouge = Rouge155(n_words=100)
score = rouge.score_summary(summary_text, ref_texts)
pprint(score)

and why this code can not work in this version?
thanks again

i have followed your above instruction but still i'm getting this error.
2020-05-30 18:05:48,103 [MainThread  ] [INFO ]  Written ROUGE configuration to C:\Users\manna\AppData\Local\Temp\tmpieok_6tc\rouge_conf.xml
FE2020-05-30 18:05:48,441 [MainThread  ] [INFO ]  Written ROUGE configuration to C:\Users\manna\AppData\Local\Temp\tmpfzapts8_\rouge_conf.xml
2020-05-30 18:05:48,442 [MainThread  ] [INFO ]  Running ROUGE with command C:\ROUGE-1.5.5\ROUGE-1.5.5.pl -e C:\ROUGE-1.5.5\data -c 95 -2 -1 -U -r 1000 -n 4 -w 1.2 -a -m C:\Users\manna\AppData\Local\Temp\tmpfzapts8_\rouge_conf.xml
EEE.E.E..
ERROR: test_convert_summaries (pyrouge.tests.Rouge155_test.PyrougeTest)
Traceback (most recent call last):
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\site-packages\pyrouge-0.1.3-py3.7.egg\pyrouge\tests\Rouge155_test.py", line 126, in test_convert_summaries
check_output(command.split())
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 395, in check_output
**kwargs).stdout
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 472, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 775, in init
restore_signals, start_new_session)
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
======================================================================
ERROR: test_evaluation (pyrouge.tests.Rouge155_test.PyrougeTest)
Traceback (most recent call last):
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\site-packages\pyrouge-0.1.3-py3.7.egg\pyrouge\tests\Rouge155_test.py", line 156, in test_evaluation
pyrouge_output = rouge.evaluate(system_id=11).strip()
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\site-packages\pyrouge-0.1.3-py3.7.egg\pyrouge\Rouge155.py", line 342, in evaluate
rouge_output = check_output(command, env=env).decode("UTF-8")
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 395, in check_output
**kwargs).stdout
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 472, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 775, in init
restore_signals, start_new_session)
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
OSError: [WinError 193] %1 is not a valid Win32 application
======================================================================
ERROR: test_get_plain_text (pyrouge.tests.Rouge155_test.PyrougeTest)
Traceback (most recent call last):
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\site-packages\pyrouge-0.1.3-py3.7.egg\pyrouge\tests\Rouge155_test.py", line 108, in test_get_plain_text
check_output(command.split())
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 395, in check_output
**kwargs).stdout
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 472, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 775, in init
restore_signals, start_new_session)
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
======================================================================
ERROR: test_options (pyrouge.tests.Rouge155_test.PyrougeTest)
Traceback (most recent call last):
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\site-packages\pyrouge-0.1.3-py3.7.egg\pyrouge\tests\Rouge155_test.py", line 218, in test_options
pyrouge_output = check_output_clean(pyrouge_command)
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\site-packages\pyrouge-0.1.3-py3.7.egg\pyrouge\tests\Rouge155_test.py", line 17, in
check_output_clean = lambda c: check_output(c).decode("UTF-8").strip()
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 395, in check_output
**kwargs).stdout
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 472, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 775, in init
restore_signals, start_new_session)
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
======================================================================
ERROR: test_rouge_for_plain_text (pyrouge.tests.Rouge155_test.PyrougeTest)
Traceback (most recent call last):
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\site-packages\pyrouge-0.1.3-py3.7.egg\pyrouge\tests\Rouge155_test.py", line 173, in test_rouge_for_plain_text
pyrouge_output = check_output_clean(pyrouge_command.split())
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\site-packages\pyrouge-0.1.3-py3.7.egg\pyrouge\tests\Rouge155_test.py", line 17, in
check_output_clean = lambda c: check_output(c).decode("UTF-8").strip()
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 395, in check_output
**kwargs).stdout
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 472, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 775, in init
restore_signals, start_new_session)
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
======================================================================
ERROR: test_write_config (pyrouge.tests.Rouge155_test.PyrougeTest)
Traceback (most recent call last):
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\site-packages\pyrouge-0.1.3-py3.7.egg\pyrouge\tests\Rouge155_test.py", line 197, in test_write_config
check_output(command.split())
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 395, in check_output
**kwargs).stdout
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 472, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 775, in init
restore_signals, start_new_session)
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified
======================================================================
FAIL: test_config_file (pyrouge.tests.Rouge155_test.PyrougeTest)
Traceback (most recent call last):
File "C:\Users\manna\AppData\Local\Programs\Python\Python37\lib\site-packages\pyrouge-0.1.3-py3.7.egg\pyrouge\tests\Rouge155_test.py", line 147, in test_config_file
add_data_path("ROUGE-test_11.xml")))
AssertionError: False is not true

Ran 11 tests in 0.651s
FAILED (failures=1, errors=6)


Fields that have a default value shouldn't be inferred as "type | undefined"

Currently, fields that have a default value shouldn't be inferred as "type | undefined".
Example code:
const userSchema = schema(
  {
    name: types.string({ required: true }),
    username: types.string({ required: true }),
    email: types.string({ required: true }),
    bio: types.string(),
    isDeactivated: types.boolean(),
  },
  {
    defaults: {
      isDeactivated: false,
    },
  }
);

The inferred type:
type UserDocument = {
    bio?: string | undefined;
    isDeactivated?: boolean | undefined;
} & {
    name: string;
    username: string;
    email: string;
    _id: ObjectId;
}

We had some discussions internally about this and I seem to have overlooked an edge case in my earlier comment:
During insertion it's true that these properties are using the default values.
However, since the properties are not defined as required in the schema, there's nothing stopping you from $unset-ing these properties after the document was created. The resulting document will still be valid according to the schema.
So we won't change the schema types for optional properties.

That makes sense. Thank you.


[FLINK-26582][table] Convert table modules assertions to AssertJ

The changes in this PR were autogenerated by this tool https://github.com/slinkydeveloper/assertj-migrator

@zentol I've pushed a new commit with the changes from the tool. All the unresolved comments will be resolved manually, once we agree on this output of the tool.
I tried to be more conservative and now the tool doesn't try to migrate when it fails to recognize the migration patterns, for example the issue about assertThrows is that because of the lambdas (which are not supported by the type inference), the tool can't lookup the method and recognize whether is junit 4 or 5, hence failing to recognize which of the args is the message.
So there are less migrated files, but we should be more confident of the results now. We can always improve the tool later and re-run for those left-over classes. LMK what you think about it.

can't lookup the method and recognize whether is junit 4 or 5

Is it not possible to deduce that from the import/package?

assertThat(catalog.getDatabase(db1).getProperties())
    .doesNotContain(db.getProperties().entrySet());

This doesn't compile though, because doesNotContain doesn't accept an iterable etc.


Implement new Dynamic-Branch ODE Actions; Branch-Add, Branch-Add-To, Branch-Move-To, and Branch-Remove.

Need the following new ODE Actions to support Dynamic-Branch updates on ODE occurrence.
/**
 * @brief Creates a uniquely named Add Branch Action that adds a named Branch
 * (or Sink) to a named Demuxer or Splitter Tee.
 * @param[in] name unique name for the ODE Add Branch Action
 * @param[in] tee unique name of the Demuxer or Splitter to add the Branch to.
 * @param[in] Branch unique name of the Branch to add to the Tee
 * @return DSL_RESULT_SUCCESS on success, one of DSL_RESULT_ODE_ACTION_RESULT otherwise.
 */
DslReturnType dsl_ode_action_branch_add_new(const wchar_t* name,
    const wchar_t* tee, const wchar_t* branch);

/**
 * @brief Creates a uniquely named "Add-Branch-To" Action that adds a named Branch
 * (or Sink) to a named Demuxer Tee at the current stream-id of the frame-metadata/
 * object/meta-data that Triggered the Object Detection Event.
 * @param[in] name unique name for the ODE "Add-Branch-To" Action
 * @param[in] tee unique name of the Demuxer to add the Branch to.
 * @param[in] Branch unique name of the Branch to add to the Demuxer.
 * @return DSL_RESULT_SUCCESS on success, one of DSL_RESULT_ODE_ACTION_RESULT otherwise.
 */
DslReturnType dsl_ode_action_branch_add_to_new(const wchar_t* name,
    const wchar_t* demuxer, const wchar_t* branch);

/**
 * @brief Creates a uniquely named "Move-Branch-To" Action that moves a named Branch
 * (or Sink) connected to a Demuxer to the current stream-id of the frame-metadata/
 * object/meta-data that Triggered the Object Detection Event -- of the same Demuxer.
 * @param[in] name unique name for the ODE "Move-Branch-To" Action
 * @param[in] tee unique name of the Demuxer to Move the Branch within.
 * @param[in] Branch unique name of the Branch to move within the Demuxer.
 * @return DSL_RESULT_SUCCESS on success, one of DSL_RESULT_ODE_ACTION_RESULT otherwise.
 */
DslReturnType dsl_ode_action_branch_move_to_new(const wchar_t* name,
    const wchar_t* demuxer, const wchar_t* branch);

/**
 * @brief Creates a uniquely named Remove Branch Action that removes a named Branch
 * (or Sink) from a named Demuxer or Splitter Tee.
 * @param[in] name unique name for the ODE Remove Action
 * @param[in] tee unique name of the Demuxer or Splitter to remove from the Branch from.
 * @param[in] Branch unique name of the Branch to add to the Tee.
 * @return DSL_RESULT_SUCCESS on success, one of DSL_RESULT_ODE_ACTION_RESULT otherwise.
 */
DslReturnType dsl_ode_action_branch_remove_new(const wchar_t* name,
    const wchar_t* tee, const wchar_t* branch);

Merged into the v0.27.alpha dev branch


General question regarding 'ergonomics' of use

Hello,
I like embassy very much, but I have one question regarding on thing that is tedious to me - spelling out long types explicitly. Here  is an example. When everything is in main there is no problem. Compiler can infer the type. As soon as I want to move something to separate function the problems start. It always takes me quite a bit of time to figure out the type signatures. So my questions are:

is there maybe some better solution? (using some more generic type in the signature etc.)
what is the best way to go about it? Maybe there is some trick/technique that allows for recovering/getting the signatures more easily (rust-analyzer seems to display them in a simplified way)

I don't think there are a lot of ways around that in Rust, because generics is needed to remove code duplication while still knowing the size of types. However, I think there are some work in embassy specifically like #980 which should simplify type signatures quite a bit. But for drivers that need to work over 'any SPI bus', it's hard to get away with it.
In some cases, it can help using a board support package (like https://github.com/drogue-iot/drogue-device/tree/main/boards/microbit) which can introduce better-named type aliases.
Using type aliases is nice once you know the types, but for knowing the type I usually rely on compiler/rust-analyzer to help me, but I'm not aware of any automated approach.

Feel free to reopen if you think this is not resolved.


Fixed "Extension reloaded itself too frequently"

"This extension reloaded itself too frequently." error which would stop crx-hotreload from working and the extension would have to be manually reloaded. See below:
https://stackoverflow.com/questions/29086691/chrome-this-extension-loaded-itself-too-frequently https://chromium.googlesource.com/chromium/src/+/e9d7496ee1703754c5d56027aa2758a09c473c0a
Replaced chrome.runtime.reload() with chrome.developerPrivate.reload()
Similar to how reloading works in extensions.js at chrome://extensions. See below:
// The 'Reload' link.
wrapper.setupColumn('localReload', '.reload-link', 'click', function(e) {
    chrome.developerPrivate.reload(extension.id, {failQuietly: true});
});

Thank you for you efforts! I see you had closed the PR, should I merge it, or there's some problem with the fix?


Vipul: The Great Gatsby

Book Title?
The Great Gatsby
Author?
F. Scott Fitzgerald
Genre of Book?
Fiction

I have read the book and watched the movie, so I'm interested in working on this. Can you assign it to me @vipul2231020?

@vipul2231020 This issue has been assigned to you.

@lavanderhoney you can raise a new issue for any other book. Please read the Contribution Guidelines