Should the polyfill be enabled if getVRDisplays is defined but no VR displays are present?

I'm looking into an issue[0] in Firefox for Android and narrowed it down to the fact that we have WebVR support enabled (only in nightly builds) but do not provide any VR displays. Since the decision whether or not to enable the polyfill depends only on whether or not getVRDisplays is defined, we end up in a situation where the polyfill is not enabled but WebVR is also essentially non-functional -- is this an intentional design decision or an oversight? And if it's intentional, what is the reasoning?
[0] https://bugzilla.mozilla.org/show_bug.cgi?id=1412336

You may be interested in the flag ALWAYS_APPEND_POLYFILL_DISPLAY, which in the event that the API exists, yet no native VRDisplays available, the polyfill will kick in and provide a CardboardVRDisplay. This option lets users control whether or not they want to support the less-performant Cardboard fallback when a platform supports WebVR natively, although provides no displays.
Please reopen if I'm misunderstanding the issue!


Support forwarding username to backends

Related to https://github.com/envoyproxy/envoy/issues/32419

/retest

Pinging @htuch for final review.


⚠ Roblox Devforum has degraded performance

In 81741a9, Roblox Devforum (https://devforum.roblox.com) experienced degraded performance:

HTTP code: 200
Response time: 1507 ms

Resolved: Roblox Devforum performance has improved in 6479e54 after 4 minutes.


Clockwise, counterclockwise

Is there a way (without playing with 1-animation value and bg and fg colors) to change animation direction?
To be exact: I would like to animate top and left border, animating from top-rightmost corner, to top-left and then to left-bottom corner. Like counter-clockwise from top-right to bottom-left.

+1

4e7e69684e2bc0f1ab613c5fa47936256468df14
v 0.1.5 add argument clockwise

@shirne Thank you so much for the swift update. It's an amazing package. Thank you for developing and maintaining it. Is there a way to buy you a coffee?

@shirne Thank you so much for the swift update. It's an amazing package. Thank you for developing and maintaining it. Is there a way to buy you a coffee?

wow! thanks!


[dependency] Upgrades

Motivation
Since we're not really feature frozen/code frozen yet, seem sensible to try to keep deps up to date.
Only held up deps are rustls (needs reqwest release) and codespan, which is waiting on error message work from movelang.
The result of:
cargo update
cargo upgrade --workspace chrono kube tokio serde_json anyhow libfuzzer-sys k8s-openapi reqwest rusoto_s3 rusoto_autoscaling dirs warp crossbeam-channel  rusoto_sts rusoto_core ctrlc indoc num-derive pin-project enum_dispatch syn serde_bytes serde structopt libc proc-macro2
cargo build

Have you read the [Contributing Guidelines on pull requests]
Yes.
Test Plan
CI
Related PRs
None.

Well everything so good, so far, but has a tokio upgrade, so all bets are off until land blocking tests run. So...
/land


Scope obligatory on modules in subscription mode

Bicep version
Bicep CLI version 0.2.212 (a19d66c04c)
Describe the bug
These deployment of a resource group module at subscription scope within the same subscription should be a valid syntax.
To Reproduce
repro.bicep:
targetScope = 'subscription'
param name string
param location string

module rg './resourcegroup.template.bicep' = {
    name: name
    // if scope is present: Error BCP036: The property "scope" expected a value of type "resourceGroup" but the provided value is of type "subscription".
    // if scope is missing: Error BCP035: The specified "module" declaration is missing the following required properties: "scope".
    //scope: subscription()
    params: {
      location: location
      name: name
    }
}

resourcegroup.template.bicep:
param name string
param location string

resource rg 'Microsoft.Resources/resourceGroups@2018-05-01' = {
    name: name
    location: location
}

with scope: present

> bicep build repro.bicep
repro.bicep(7,12) : Error BCP036: The property "scope" expected a value of type "resourceGroup" but the provided value is of type "subscription".

w/o scope:

> bicep build repro.bicep
repro.bicep(5,8) : Error BCP035: The specified "module" declaration is missing the following required properties: "scope".

Additional context
This is a follow up on #1046
removing the targetScope = 'subscription' makes the error go away, but the resource group module should not be deployed at a RG level.

Both repro.bicep and resourcegroup.template.bicep should target the subscription scope, since a Microsoft.Resources/resourceGroups resource can only be deployed at the subscription scope (a resource group belongs to a subscription, not to another resource group).
Note that if you do not supply targetScope, Bicep defaults to using the resourcegroup scope (equivalent to writing targetScope = 'resourceGroup').
Here's how I'd author the two files:
repro.bicep
targetScope = 'subscription'

param name string
param location string

module rg './resourcegroup.template.bicep' = {
  name: name
  params: {
    location: location
    name: name
  }
}

resourcegroup.template.bicep
targetScope = 'subscription'

param name string
param location string

resource rg 'Microsoft.Resources/resourceGroups@2018-05-01' = {
  name: name
  location: location
}

Both repro.bicep and resourcegroup.template.bicep should target the subscription scope, since a Microsoft.Resources/resourceGroups resource can only be deployed at the subscription scope (a resource group belongs to a subscription, not to another resource group).
Note that if you do not supply targetScope, Bicep defaults to using the resourcegroup scope (equivalent to writing targetScope = 'resourceGroup').
Here's how I'd author the two files:
repro.bicep
targetScope = 'subscription'

param name string
param location string

module rg './resourcegroup.template.bicep' = {
  name: name
  params: {
    location: location
    name: name
  }
}

resourcegroup.template.bicep
targetScope = 'subscription'

param name string
param location string

resource rg 'Microsoft.Resources/resourceGroups@2018-05-01' = {
  name: name
  location: location
}

Thanks! Indeed I was missing the targetScope within my module definition. Please take it as a feedback to update the documentation in the https://github.com/Azure/bicep/blob/8cdbcfbcd494dfc76021589f31361e96f7ca50ba/docs/spec/modules.md#L59

Thanks! Indeed I was missing the targetScope within my module definition. Please take it as a feedback to update the documentation in the https://github.com/Azure/bicep/blob/8cdbcfbcd494dfc76021589f31361e96f7ca50ba/docs/spec/modules.md#L59

Thanks Stan - we will take a note to clarify this in our docs.

Thanks Stan - we will take a note to clarify this in our docs.


Read Data from web source

Read the data from json files located on Github under WeeklyXamarin.Content

This work is complete.


Compiler warnings on iOS9 / XCode 7

Getting the following warnings when using Expecta in an application:
yakovsh/Downloads/expecta-1.0.3/build/ModuleCache/CE2FWWMRWA3O/Foundation-A3SOD99KJ0S9.pcm: No object file for requested architecture
while processing lib/ios/Expecta.framework/Expecta(EXPMatchers+beFalsy.o):
warning: /Users/yakovsh/Downloads/expecta-1.0.3/build/ModuleCache/CE2FWWMRWA3O/ObjectiveC-2CD0WTQVXITO7.pcm: No such file or directory
while processing lib/ios/Expecta.framework/Expecta(EXPMatchers+beFalsy.o):
warning: /Users/yakovsh/Downloads/expecta-1.0.3/build/ModuleCache/CE2FWWMRWA3O/ObjectiveC-2CD0WTQVXITO7.pcm: No object file for requested architecture
while processing lib/ios/Expecta.framework/Expecta(EXPMatchers+beFalsy.o):
warning: Could not resolve external type c:objc(cs)NSString
while processing lib/ios/Expecta.framework/Expecta(EXPMatchers+beFalsy.o):

Supposedly this is a bug with Xcode: https://forums.developer.apple.com/thread/17921

The only workaround that worked for me was the one described here:
https://github.com/CocoaPods/cocoapods-packager/issues/101
It entails turning off debugging:
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;

This was merged.


JavaScript Calculator Accepts Invalid Input

Describe the Issue
Example JavaScript Calculator accepts invalid input.
Affected Page
https://javascript-calculator.freecodecamp.rocks/
Your code
*2=

/2=

/2/2=

Expected behavior
It should  ignore invalid input.
Screenshots

System
Device: Laptop
OS: Ubuntu 18.04.5 LTS
Browser: Chromium
Version: 90.0.4430.72
Additional context
https://www.freecodecamp.org/learn/front-end-development-libraries/front-end-development-libraries-projects/build-a-javascript-calculator

Please assign this issue to me

What if we consider empty integer before expression as NAN and display command to get number from user.

I am interested in doing this part and start my contribution in this community !!!!

Hey Folks, I can resolve this issue. Please assign me. I'll post the correct code soon.

i can fix it assign me

I can fix it. and this will be my first open source contribution.

Assign this issue to me. I can fix it and start my first contribution.

I don't think this is a bug that necessarily needs to be fixed. Nothing happens when you enter one of these equations (except the error in the console). The calculator fulfills all the user stories - there's no requirements for what should happen when you start with a * or /. If someone wants to fix the demo project so it ignores those when they're entered first, we would accept the changes - the demo project is here

Hello, I see that this issue is  open, I would like to contribute.

Hey can I contribute to this project ?

I would like to work on this.
What is the desired behavior for an invalid input?
Clear the input? Error notification?


Reduces pool resource locking

This PR was based on a conversation I had with @ruslantalpa in the gitter and on some ad-hoc tests using threadDelay.
I'm still not sure if I should include some kind of test or benchmark to validate this change.
The change is very simple though, I return the results from withResource function before applying the respond continuation. This ensures that the pool resource is freed as soon as the database operation is complete

Makes sense, thanks for the fix.
I bet we could create a regression test case. Could fork a bunch of threads in test that all call a stored procedure which raises an exception. The test would check that it never gets that "current transaction is aborted" error.

Tonight I'm looking at how to apply the suggestion from https://github.com/hspec/hspec-wai/issues/32 to make parallel requests in a test case.

Cool, because I would get stuck trying to do that :stuck_out_tongue_winking_eye:

Closing this PR and moving over to the other one with a test added.

:+1:


Chrome extension not working with latest Duolingo update

Seems the latest Duolingo update has broken the solution viewer extension?

Everything seems fine on my side, could you check if:

a relevant error is logged in the console? (by checking the dev tools)
an error occurs in the background script? (by debugging the extension)
when an exercise is completed, an element with class _1tuLI or _2Fc1K is present in the DOM?

Thanks!

It's working again now, I didn't change anything.

But not for all sentences, and specifically it seems they've added some new ones recently, and it's not working for those.
This was in the console (along with a bunch of 404s):
ui.js:13 Error: Could not find the action link list element.
at renderChallengeSolutionLink (chrome-extension://idffaipgnlkhfhibgnodeiogpgojcmfm/src/ui.js:51:119025)
at jb (chrome-extension://idffaipgnlkhfhibgnodeiogpgojcmfm/src/ui.js:51:121067) 'Could not render the solution list link: '

Thanks for digging into this!
Could you point me to a course / lesson where I might encounter such new sentences? (I would not have expected this part of the UI to differ from one exercise to the other, so this is all the more interesting)

Well this was in the Japanese course, I doubt you'd be able to get to the new sentences without completing quite a few of the previous lessons unfortunately.  I'll see if I can find an earlier lesson with that problem.

Actually I just started https://www.duolingo.com/skill/ja/Greetings/1, and the first sentence prompt was just おはよう (good morning), and no solutions button was shown for that, but nor were there are any errors in the devtools console.

Turns out that the problem was caused by the (new) pronunciation hints, thanks again for your help in fixing this!

Ah, is there a new version released? Still doesn't seem to be working for me.

Yes, the problem should be fixed with version 4.10.4.


Investigate GCS equivalent to cloudtrail/s3 tracking mechanism

We are working on a way that we can import audit events from AWS - and use them to track whether files have been downloaded.
We need to investigate the equivalent mechanism for Google/GCS.
This ticket is related purely to investigating possible mechanisms and preliminary tech work. The actual ticket to make any functionality should be created in a different ticket.

Cloud Audit Logs might be the service equivalent to CloudTrail.
There is a useful docs how to set it up on GCS with logs for read access here. Will investigate on what is captured and will posted out here.

GCS seems to have 2 type logging of data access. (Ref: cloud.google.com)

Audit logs, mainly answer what a role or service account does to a particular service. This will mainly record the principal_id and action to the service. It will not have how much fileSize had been transferred out and does not have any query params (if custom query param is a critical factor). They do have read/write filter when enabling this service. Additional filtering all other fields in the payload is also possible via logs-router.
Note for implementation, if we allow this service and no addition filter apply, it will record every activity that match to the read/write criteria to the default log bucket. In the GCS case it could record all bucket in the account
Example payload:
{
  "protoPayload": {
    "@type": "type.googleapis.com/google.cloud.audit.AuditLog",
    "status": {},
    "authenticationInfo": {
      "principalEmail"<EMAIL_ADDRESS>    },
    "requestMetadata": {
      "callerIp": "<IP_ADDRESS>",
      "callerSuppliedUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36,gzip(gfe),gzip(gfe)",
      "requestAttributes": {
        "time": "2022-08-29T03:45:44.954631993Z",
        "auth": {}
      },
      "destinationAttributes": {}
    },
    "serviceName": "storage.googleapis.com",
    "methodName": "storage.objects.list",
    "authorizationInfo": [
      {
        "resource": "projects/_/buckets/example-bucket",
        "permission": "storage.objects.list",
        "granted": true,
        "resourceAttributes": {}
      }
    ],
    "resourceName": "projects/_/buckets/example-bucket",
    "resourceLocation": {
      "currentLocations": ["us"]
    }
  },
  "insertId": "6ybww7d5d9g",
  "resource": {
    "type": "gcs_bucket",
    "labels": {
      "project_id": "pure-lodge-359007",
      "bucket_name": "example-bucket",
      "location": "us"
    }
  },
  "timestamp": "2022-08-29T03:45:44.947745689Z",
  "severity": "INFO",
  "logName": "projects/pure-lodge-359007/logs/cloudaudit.googleapis.com%2Fdata_access",
  "receiveTimestamp": "2022-08-29T03:45:45.878999079Z"
}

Usage logs, this will log on what happened to the particular object. It will not show who did what to the object but will show anything else. This include, fileSize egress, path URL including custom query param when added (Complete fields: https://cloud.google.com/storage/docs/access-logs#format). This log is similar to AWS data lake, where it sends the logging information to another bucket. The result is in a CSV format object, and could be ingest this to BigQuery in GCP.
The logging will be turned on/off per bucket so by default is filtered based on the bucket name. However, there is no configuration to filter and so all read/write operation is recorded in the logging. If we are interested only to READ operation, we need to sort this out during query.
Example payload:
"time_micros","c_ip","c_ip_type","c_ip_region","cs_method","cs_uri","sc_status","cs_bytes","sc_bytes","time_taken_micros","cs_host","cs_referer","cs_user_agent","s_request_id","cs_operation","cs_bucket","cs_object"
"1661736834048963","<IP_ADDRESS>","1","","GET","/manifest.txt?X-Goog-Algorithm=GOOG4-RSA-SHA256&X-Goog-Credential=firstsa%40pure-lodge-359007.iam.gserviceaccount.com%2F20220829%2Fauto%2Fstorage%2Fgoog4_request&X-Goog-Date=20220829T013347Z&X-Goog-Expires=604800&X-Goog-SignedHeaders=host&custom_unique_id=ID001&x-goog-signature=SCRUBBED","200","0","100","51000","gcp_example_john.storage.googleapis.com","","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36,gzip(gfe)","ADPycdum_MzCQahFAYi_x7thJxytTpU8wBCIjjjfdyGdUE09Za6L-eKPtC7_0ap4GNjprsr9l4V-RQAOGnP8QsEu223uIQ","GET_Object","gcp_example_john","manifest.txt"

Note there is a custom query parameter in the cs_uri field (custom_unique_id=ID001)

I think usage logs might be better as we could have more information despite we need to rely on giving the correct id on the query params. I guess could discuss this before implementation.


net: Use Port 53 instead of Port 9 for routability tests in DNS.

Our security team got an alert that said there was suspicious activity to an IP of a known botnet. The traffic itself was UDP traffic to port 9 of an IP. This was a false positive as the IP address had be red flagged, but something puzzled us. Why did we send traffic on UDP port 9. It seemed like maybe there was something untoward happening and this required an investigation, a Google search of UDP port 9 traffic revealed nothing, and there was no good reason for it. The two possibilities were the Discard protocol, documented in a 1 page RFC from 1983 that predates my birth, or potentially Wake-On LAN.
What did you see happen?
It was hard to reproduce this issues, and searches of the code and binary were not fruitful (it's hard to just search for a 9 and find anything). Maybe a day later, after a bunch of stracing and stuff, we found our answer: https://github.com/golang/go/blob/master/src/net/addrselect.go#L45
The tl;dr is that there was no traffic, (which is why network dumps didn't find it). Instead the security team's tool was monitoring system calls, and it noticed a connect() system call on UDP port 9. It seemed odd, but the reason for it is just to test resolvability, which I understand.
You can kind of see an example of this in #60712  with this strace
$ strace ./resolve 2>&1 | grep '^connect'
connect(7, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("<IP_ADDRESS>")}, 16) = 0
connect(3, {sa_family=AF_INET, sin_port=htons(9), sin_addr=inet_addr("<IP_ADDRESS>")}, 16) = 0
connect(3, {sa_family=AF_INET6, sin6_port=htons(9), sin6_flowinfo=htonl(0), inet_pton(AF_INET6, "2404:6800:4006:804::200e", &sin6_addr), sin6_scope_id=0}, 28) = -1 ENETUNREACH (Network is unreachable)

What did you expect to see?
Anyway this isn't really a bug, but it didn't seem like a Language Enhancement or Notable Change either.
I'm going to propose that since the code mentions that the destination port number is irrelevant, that we change the port to 53 and not 9. I understand the need and point of the code, and recognize that this is maybe a very weird edge case.
This might not be a real problem others will face and it also isn't a perfect solution. The system calls are still kind of weird (why are you trying to connect to a machine on port 53 before connecting), but the benefit that has is that at the very least it points to the system call being related to DNS, as opposed to the discard protocol which is suspicious to me.
That would likely have made me look in Go's DNS code much more quickly.
Anyway thank you for your time.

Nice job tracking this down.  I'll send a patch.


NapariQtNotification show as separate dialog when use only QtViewer

🐛 Bug

When using QtViewer (for example in PartSeg)  and there is called show_info (For example press A when having active points layer in current main) the
To Reproduce
Steps to reproduce the behavior:

run this script:

from napari.components import ViewerModel
from napari.qt import get_app, QtViewer, get_stylesheet
from napari.settings import get_settings

from qtpy.QtWidgets import QApplication, QWidget, QVBoxLayout

app = QApplication([])
get_app() # to register resources needed to have working buttons
model = ViewerModel()
qt_viewer = QtViewer(model)
model.add_points([[0, 0, 0], [0, 30, 30], [1, 15, 15]])

w = QWidget()
layout = QVBoxLayout()
layout.addWidget(qt_viewer)
layout.addWidget(qt_viewer.dockLayerList)
w.setLayout(layout)
w.setStyleSheet(get_stylesheet(get_settings().appearance.theme))

w.show()

app.exec_()

press letter A

Expected behavior
Notification should show in bottom lower corner of canvas, or dialog should not be created if there is no QtViewer. Or there should be other version of get_app that will allow properly use QtViewer without whole notifications stack.

Environment

Please copy and paste the information at napari info option in help menubar here:

Any other relevant information:

Additional context

@tlambert03 In this Issue I extract more critical, for me, part of #4835

thanks. For what it's worth, I don't actually see a dialog on mac (and I suspect windows too).

This may vary on exact library and python versions as the only place where the parent is set is here:
https://github.com/napari/napari/blob/e490e5535438ab338a23b17905a1952f15a6d27a/napari/_qt/dialogs/qt_notification.py#L90
and in show_notification function:
https://github.com/napari/napari/blob/e490e5535438ab338a23b17905a1952f15a6d27a/napari/_qt/dialogs/qt_notification.py#L425
there is no reference kept, so it may be garbage collected before you could notice it.


feat!: adapt chat notify favicon to handle custom links

BREAKING CHANGE: This will affect all deployments that used the default hangout chat notification behavior
With this change it is possible to use custom links instead
of the preset favicon.png for google hangout chat notificactions
This functionality is already set for failure, but not success and base notify

Q
A

Bug fix?
No

New feature?
Yes

BC breaks?
Yes

Deprecations?
No

Fixed tickets
N/A

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@0d6f454). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #2077   +/-   ##
=========================================
  Coverage          ?   47.64%
  Complexity        ?      722
=========================================
  Files             ?       62
  Lines             ?     2420
  Branches          ?        0
=========================================
  Hits              ?     1153
  Misses            ?     1267
  Partials          ?        0

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 0d6f454...38e6b47. Read the comment docs.

I'm closing this PR for now in order to housekeeping. Fill free to reopen if needed.

i like housekeeping, but a merge could be a solution too :D
or did i miss something out to do?

Please rebase.


Page intro property has extra opening  tag

First of all, this problem occurs only with , namely
 and
 are fine.

As shown in the screenshot, whenever  is used, the resulting intro ends with an extra
 without a closing tag.
Could you please fix this?

Cleaning up old issues, feel free to create a new one if this still is a problem.


version-suffix option was not marked as code

only formatting change in documentation

Hi @stefc, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, DNFBOT;

Thanks @stefc! Good catch.


support environment specific resources with environment specific overrides

some resources should not be distributed with your app's Kubernetes YAML (or OpenShift Template or Helm chart) and may be maintained separately & out of band in a per environment basis.
For Secrets folks may want to import them from something like Vault or some other file system. But for other things like ConfigMaps, Services (e.g. to point to external services via the Service.externalName) or Ingress/Route folks might want to keep all the different environmental data in the same git repo as the other resources to keep things consistent.
e.g. in Spring / Spring Boot worlds folks often have a profile and based on the profile (dev/test/prod etc) the code loads a different properties file with different configuration inside to point to different external services or use different configuration values etc.
So to replicate something like this - keeping all the environmental configuration in one place - we may want to have a simple mechanism in kedge for keeping track of whats environment specific and have a way to override values (data entries in ConfigMap/Secrets, or provide different resources for Service/Ingress/Route etc.
This just came up in a discussion on fabric8-maven-plugin: https://github.com/fabric8io/fabric8-maven-plugin/pull/1013#issuecomment-322802519 so thought I'd mention it here.
So firstly the top level app.yml file should be the application's yaml that can be used to deploy the app into any environment - we may want a folder that stores the environment specific stuff.
e.g. maybe something like
my-project/
  app.yml  # the common app stuff for all envs
  environments/
    resources.yml # common environment specific resources
    dev/
      resources.yml # overrides for the `dev` environment
    prod/
      resources.yml # overrides for the `prod` environment
    test/
      resources.yml # overrides for the `test` environment

so that the environments/resources.yml can define common resources for all environments if needed (e.g. common ConfigMap entries or default values) - then they can be overridden on a per environment bases. So for the prod environment anything in the environments/prod/resources.yml file overwrites whats in environments/resources.yml - such as to change an env var, entry in a ConfigMap/Secret or replace an Ingress/Route
e.g. folks may use different mechanism to load the data for Secrets from different files on the local file system for the different environments - then folks may have a tool to download Secret data from, say, Vault as part

@jstrachan can you also look at  https://github.com/kedgeproject/kedge/issues/164?
The idea behind that is that you have common environment specific resources together with your application, but if you want to deploy to the different environment you can use flag to switch environment specific resources. But It doesn't solve the issue how to define env specific resources in some uniform way.
I kind of like you idea of structuring it in separate directories.

gonna have a look at that issue.
One challenge is knowing if a resource is part of the app or a resource is part of the environment specific resources; e.g. a Service / ConfigMap / Secret / Ingress/Route could be in either; so putting it into the main app.yml may cause confusion; so I was thinking using separate files in a separate folder was cleanest

We should look at generating Service Catalog YAML to describe the environmental resources we need (e.g. a database, a secret, a ConfigMap with some key/value pairs inside etc).
Then the app can be deployed along with its 'service dependencies' which then get provisioned via the Service Catalog.
Though it might be nice to also be able to define the default implementations of those service dependencies (e.g. to have a default development implementation of a service or a dummy configuration / secret)


fix typescript 5.5 compatibility

This is a fix for an error after upgrading to typescript 5.5:
../node_modules/tom-select/src/vanilla.ts:100:51 - error TS1536: Octal escape sequences and backreferences are not allowed in a character class. If this was intended as an escape sequence, use the syntax '\x20' instead.

100    _classes = _classes.trim().split(/[\11\12\14\15\40]/);

I have tested the solution in one of my projects and it resolves the typescript error.

Also running into this error upgrading from Typescript 5.4 to 5.5. Would be great to see this merged and a new release created.

@fuzzzerd it seems like this project has been abandoned unfortunately (I have tried to contact the maintainers). You can use my fork instead.

@Amixx can you either update this branch with the latest master or check the box to allow maintainers to edit this pull request? https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork

It turns out it was easier to merge #777 since that was editable by maintainers. Thanks for the PR regardless!


remove unused jsonschema2pojo plugin

What does this PR do?
removes an unused plugin that was downloading with plain http (without s)
Checklist

[x] This is something else

[ ] I have updated CHANGELOG.asciidoc

:green_heart: Build Succeeded

Expand to view the summary

Build stats

Build Cause: [Pull request #1407 opened]

Start Time: 2020-09-16T08:46:57.140+0000

Duration: 46 min 50 sec

Test stats :test_tube:

Test
Results

Failed
0

Passed
1560

Skipped
12

Total
1572

Steps errors
Expand to view the steps failures

Name: Download Codecov

Description: #!/bin/bash          set -x          curl -sSLo codecov.sh https://codecov.io/bash

Duration: 2 min 22 sec

Start Time: 2020-09-16T09:30:15.867+0000

log


README don't specify how to install mongo db on linux

README don't specify how to install mongo db on linux
Type of issue:

[ ] Bug / Error
[ ] Idea / Feature
[x] Improvement detail

The ReadMe file specifies how to install mongo db on mac and windows but not for linux.

Can I work on this?

@Vishnu-M I already did, just waiting on them to approve. Thanks


Update create-microsoft-purview-python.md

Learn Build status updates of commit 59a722c:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

articles/purview/create-microsoft-purview-python.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

@nayenama
Can you review the proposed changes? IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@nayenama - Does the TOC need to be updated? This is just an edit to the python code.
If it's good to go, please add the #sign-off so it can be published.

I am clear now. Thanks for clarifying.

#sign-off


Reset Policies Script

The -reboot switch on the Reset Local Policies script currently uses shutdown.exe to initiate a reboot. This is not ideal, because it does not allow the logged in user to abort the reboot if necessary.
As an alternative, use PsShutdown instead, which allows the logged in user to abort via the -c parameter.

PsShutdown currently has compatibility issues with Windows 11.
I am waiting on these issues to be resolved before implementing this change.


httpcore.ConnectError: [WinError 10061]

What is the issue?
I'm running the ollama service on the server side。
There was a problem running this piece of code without ollama on the local machine。
MY code：
import os
os.environ["USER_AGENT"] = "MyCustomUserAgent/1.0"
os.environ['OLLAMA_API_KEY'] = 'none'
os.environ['OLLAMA_BASE_URL'] = 'http://10.4.(my_server_ip):11434/'
from langchain_ollama import ChatOllama
llm = ChatOllama(model='llama3.1:8b', temperature=0)
messages = [
("human", "Return the words Hello World!"),
]
for chunk in llm.stream(messages):
print(chunk)

problem：
Traceback (most recent call last):
File "C:\Users\dell\AppData\Roaming\Python\Python312\site-packages\httpx_transports\default.py", line 72, in map_httpcore_exceptions
yield
File "C:\Users\dell\AppData\Roaming\Python\Python312\site-packages\httpx_transports\default.py", line 236, in handle_request
resp = self._pool.handle_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\dell\AppData\Roaming\Python\Python312\site-packages\httpcore_sync\connection_pool.py", line 216, in handle_request
raise exc from None
File "C:\Users\dell\AppData\Roaming\Python\Python312\site-packages\httpcore_sync\connection_pool.py", line 196, in handle_request
response = connection.handle_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\dell\AppData\Roaming\Python\Python312\site-packages\httpcore_sync\connection.py", line 99, in handle_request
raise exc
File "C:\Users\dell\AppData\Roaming\Python\Python312\site-packages\httpcore_sync\connection.py", line 76, in handle_request
stream = self._connect(request)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\dell\AppData\Roaming\Python\Python312\site-packages\httpcore_sync\connection.py", line 122, in _connect
stream = self._network_backend.connect_tcp(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\dell\AppData\Roaming\Python\Python312\site-packages\httpcore_backends\sync.py", line 205, in connect_tcp
with map_exceptions(exc_map):
^^^^^^^^^^^^^^^^^^^^^^^
File "D:\anaconda3\envs\RAG_extra\Lib\contextlib.py", line 158, in exit
self.gen.throw(value)
File "C:\Users\dell\AppData\Roaming\Python\Python312\site-packages\httpcore_exceptions.py", line 14, in map_exceptions
raise to_exc(exc) from exc
httpcore.ConnectError: [WinError 10061] 由于目标计算机积极拒绝，无法连接。
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\python_projects\Whole\text.py", line 13, in
for chunk in llm.stream(messages):
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\dell\AppData\Roaming\Python\Python312\site-packages\langchain_core\language_models\chat_models.py", line 420, in stream
raise e
File "C:\Users\dell\AppData\Roaming\Python\Python312\site-packages\langchain_core\language_models\chat_models.py", line 400, in stream
for chunk in self._stream(messages, stop=stop, **kwargs):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\dell\AppData\Roaming\Python\Python312\site-packages\langchain_ollama\chat_models.py", line 665, in _stream
for stream_resp in self._create_chat_stream(messages, stop, **kwargs):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\dell\AppData\Roaming\Python\Python312\site-packages\langchain_ollama\chat_models.py", line 527, in _create_chat_stream
yield from self._client.chat(
File "C:\Users\dell\AppData\Roaming\Python\Python312\site-packages\ollama_client.py", line 80, in _stream
with self._client.stream(method, url, **kwargs) as r:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\anaconda3\envs\RAG_extra\Lib\contextlib.py", line 137, in enter
return next(self.gen)
^^^^^^^^^^^^^^
File "C:\Users\dell\AppData\Roaming\Python\Python312\site-packages\httpx_client.py", line 880, in stream
response = self.send(
^^^^^^^^^^
File "C:\Users\dell\AppData\Roaming\Python\Python312\site-packages\httpx_client.py", line 926, in send
response = self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\dell\AppData\Roaming\Python\Python312\site-packages\httpx_client.py", line 954, in _send_handling_auth
response = self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\dell\AppData\Roaming\Python\Python312\site-packages\httpx_client.py", line 991, in _send_handling_redirects
response = self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\dell\AppData\Roaming\Python\Python312\site-packages\httpx_client.py", line 1027, in _send_single_request
response = transport.handle_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\dell\AppData\Roaming\Python\Python312\site-packages\httpx_transports\default.py", line 235, in handle_request
with map_httpcore_exceptions():
^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\anaconda3\envs\RAG_extra\Lib\contextlib.py", line 158, in exit
self.gen.throw(value)
File "C:\Users\dell\AppData\Roaming\Python\Python312\site-packages\httpx_transports\default.py", line 89, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError: [WinError 10061] 由于目标计算机积极拒绝，无法连接。
I also can curl http://10.4.(my_server_ip):11434 in lacal machine

How do I solving this problem？
OS
Linux, Windows
GPU
Nvidia
CPU
AMD
Ollama version
0.3.13

It's difficult to debug a problem when the code is incomplete.   Post the full content of the test script, <IP_ADDRESS>/8 is private IP space.

That's all there is to the code above，but I run ollama service on my private server .and I want to call the server-side ollama api from my local machine

It's difficult to debug a problem when the code is incomplete. Post the full content of the test script, <IP_ADDRESS>/8 is private IP space.

How are you routing packets from your local machine to the server in <IP_ADDRESS>/8 space?

sorry,I don’t understand what you mean. I’m new to this and not very familiar with the topic.
I just want to run Ollama on a machine that doesn't have it by using another machine that has Ollama installed

How are you routing packets from your local machine to the server in <IP_ADDRESS>/8 space?

Your server is in a private IP space and packets (internet connections) cannot be routed to it over the public internet.  If the server is not on the same LAN as your local machine, there must be a mechanism to deliver those packets - VPN, proxy, etc.  If curl works and your python script doesn't, it means that your python script is not using the same mechanism as curl.  If the server is on the same LAN as your local machine, then something else is broken.  A description of your network setup might shed some light.

My local machine and server are on the same LAN,and  the firewalls and ports of the server and the local machine are opened.What other network settings should I need to review?

Your server is in a private IP space and packets (internet connections) cannot be routed to it over the public internet. If the server is not on the same LAN as your local machine, there must be a mechanism to deliver those packets - VPN, proxy, etc. If curl works and your python script doesn't, it means that your python script is not using the same mechanism as curl. If the server is on the same LAN as your local machine, then something else is broken. A description of your network setup might shed some light.

--- 7286.py.orig        2024-11-05 02:30:01.765323596 +0100
+++ 7286.py     2024-11-05 02:30:12.158985343 +0100
@@ -1,7 +1,7 @@
 import os
 os.environ["USER_AGENT"] = "MyCustomUserAgent/1.0"
 os.environ['OLLAMA_API_KEY'] = 'none'
-os.environ['OLLAMA_BASE_URL'] = 'http://10.4.(my_server_ip):11434/'
+os.environ['OLLAMA_HOST'] = 'http://10.4.(my_server_ip):11434/'

 from langchain_ollama import ChatOllama

--- 7286.py.orig        2024-11-05 02:30:01.765323596 +0100
+++ 7286.py     2024-11-05 02:30:12.158985343 +0100
@@ -1,7 +1,7 @@
 import os
 os.environ["USER_AGENT"] = "MyCustomUserAgent/1.0"
 os.environ['OLLAMA_API_KEY'] = 'none'
-os.environ['OLLAMA_BASE_URL'] = 'http://10.4.(my_server_ip):11434/'
+os.environ['OLLAMA_HOST'] = 'http://10.4.(my_server_ip):11434/'

 from langchain_ollama import ChatOllama

It work , thanks!


Backend modifications

Change main.py

Uvicorn import.
Dynamic OpenAI client initialization based on environment variables (AZURE_ENDPOINT or OPENAI_API_KEY).
Error handling.
Server entry point.

Change README.md, requirements.txt and .gitignore
Add .env.example

thanks for the changes! approved the PR

Guys any help you require? I want to contribute to this. Looks interesting

Guys any help you require? I want to contribute to this. Looks interesting

Hey @smngvlkz! If you have any ideas for improvements please feel free to open a PR! I would be more than happy to approve your changes.
Not sure in what ways the current extension can be improved, but we can brainstorm some ideas.


Don't turn-off UB constraints on the RHS

The pull request #165 was incomplete, it disabled UB on the RHS
in the -souper-exploit-ub=false mode, resulting in unsound reasoning

Google » souper #485 SUCCESS
This pull request looks good
(what's this?)

@regehr could you please look at it?

@regehr I just found this, can't remember why we didn't merge.


Installing nginx with Phusion Passenger and RTMP module fails

Hello,
I am unable to install nginx with the Phusion Passenger and RTMP modules. I am running Ubuntu 16.04.
Here is the full output of running "brew install nginx-full --with-passenger --with-rtmp-module" (please note that I've run this command several times now, so some parts that succeeded during the first installation attempt might be missing)
==> Installing nginx-full from homebrew/nginx
==> Installing dependencies for homebrew/nginx/nginx-full: openssl, xz, passenger, rtmp-nginx-module
==> Installing homebrew/nginx/nginx-full dependency: openssl
==> Downloading https://www.openssl.org/source/openssl-1.0.2k.tar.gz
######################################################################## 100,0%
==> Downloading https://github.com/openssl/openssl/pull/1524.patch
Already downloaded: /home/main/.cache/Homebrew/openssl--patch-853a15755d3bc2b561d64c4f5d58a7ff4885e5cdbacbf429ce93b477e0d3d68e.patch
==> Patching
==> Applying 1524.patch
patching file Configure
Hunk #1 succeeded at 1723 (offset 2 lines).
==> perl ./Configure --prefix=/home/main/.linuxbrew/Cellar/openssl/1.0.2k --openssldir=/home/main/.linuxbrew/etc/openssl no-ssl2 zlib-dynamic shared enable-cms -isystem/home/main/
==> make depend
==> make
==> make test
==> make install MANDIR=/home/main/.linuxbrew/Cellar/openssl/1.0.2k/share/man MANSUFFIX=ssl
==> Downloading https://curl.haxx.se/ca/cacert-2016-04-20.pem
Already downloaded: /home/main/.cache/Homebrew/openssl--cacert-2016-04.pem
==> Caveats
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
  /home/main/.linuxbrew/etc/openssl/certs

and run
  /home/main/.linuxbrew/opt/openssl/bin/c_rehash

==> Summary
🍺  /home/main/.linuxbrew/Cellar/openssl/1.0.2k: 1,703 files, 14.6M, built in 4 minutes 46 seconds
==> Installing homebrew/nginx/nginx-full dependency: xz
==> Downloading https://fossies.org/linux/misc/xz-5.2.3.tar.gz
######################################################################## 100,0%
==> ./configure --disable-silent-rules --prefix=/home/main/.linuxbrew/Cellar/xz/5.2.3
==> make check
==> make install
🍺  /home/main/.linuxbrew/Cellar/xz/5.2.3: 99 files, 1.8M, built in 25 seconds
==> Installing homebrew/nginx/nginx-full dependency: passenger
==> Downloading https://s3.amazonaws.com/phusion-passenger/releases/passenger-5.1.2.tar.gz
######################################################################## 100,0%
==> /usr/bin/rake apache2
Last 15 lines from /home/main/.cache/Homebrew/Logs/passenger/01.rake:
/usr/bin/g++-5 -o buildout/apache2/module_libboost_oxt/oxt/system_calls.o  -Isrc/cxx_supportlib -Isrc/cxx_supportlib/vendor-copy -Isrc/cxx_supportlib/vendor-modified -fPIC -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/home/main/.linuxbrew/opt/apr/libexec/include/apr-1 -I/home/main/.linuxbrew/opt/apr-util/libexec/include/apr-1 -I/home/main/.linuxbrew/opt/openssl/include -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -feliminate-unused-debug-symbols -feliminate-unused-debug-types -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -Wno-attributes -ggdb -DHAS_ALLOCA_H -DHAVE_ACCEPT4 -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -std=gnu++11 -Wno-unused-local-typedefs -DHASH_NAMESPACE="__gnu_cxx" -DHASH_MAP_HEADER="<hash_map>" -DHASH_MAP_CLASS="hash_map" -DHASH_FUN_H="<hash_fun.h>" -c src/cxx_supportlib/oxt/system_calls.cpp
rm -rf buildout/apache2/module_libboost_oxt.a
ar cru buildout/apache2/module_libboost_oxt.a buildout/apache2/module_libboost_oxt/boost/error_code.o buildout/apache2/module_libboost_oxt/boost/once_atomic.o buildout/apache2/module_libboost_oxt/boost/thread.o buildout/apache2/module_libboost_oxt/boost/once.o buildout/apache2/module_libboost_oxt/boost/future.o buildout/apache2/module_libboost_oxt/boost/tss_null.o buildout/apache2/module_libboost_oxt/boost/posix_api.o buildout/apache2/module_libboost_oxt/boost/wc_regex_traits.o buildout/apache2/module_libboost_oxt/boost/cregex.o buildout/apache2/module_libboost_oxt/boost/regex_raw_buffer.o buildout/apache2/module_libboost_oxt/boost/cpp_regex_traits.o buildout/apache2/module_libboost_oxt/boost/c_regex_traits.o buildout/apache2/module_libboost_oxt/boost/static_mutex.o buildout/apache2/module_libboost_oxt/boost/instances.o buildout/apache2/module_libboost_oxt/boost/winstances.o buildout/apache2/module_libboost_oxt/boost/regex_traits_defaults.o buildout/apache2/module_libboost_oxt/boost/regex.o buildout/apache2/module_libboost_oxt/boost/regex_debug.o buildout/apache2/module_libboost_oxt/boost/wide_posix_api.o buildout/apache2/module_libboost_oxt/oxt/implementation.o buildout/apache2/module_libboost_oxt/oxt/system_calls.o
ar: `u' modifier ignored since `D' is the default (see `U')
ranlib buildout/apache2/module_libboost_oxt.a
/usr/bin/gcc-5 -o buildout/apache2/mod_passenger.o  -Isrc/agent -Isrc/cxx_supportlib -Isrc/cxx_supportlib/vendor-copy -Isrc/cxx_supportlib/vendor-modified -fPIC -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/home/main/.linuxbrew/opt/apr/libexec/include/apr-1 -I/home/main/.linuxbrew/opt/apr-util/libexec/include/apr-1 -I/home/main/.linuxbrew/opt/openssl/include -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -feliminate-unused-debug-symbols -feliminate-unused-debug-types -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -Wno-attributes -ggdb -DHAS_ALLOCA_H -DHAVE_ACCEPT4 -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -c src/apache2_module/mod_passenger.c
src/apache2_module/mod_passenger.c:26:19: fatal error: httpd.h: file or directory not found
compilation terminated.
rake aborted!
Command failed with status (1): [/usr/bin/gcc-5 -o buildout/apache2/mod_passenger.o  -Isrc/agent -Isrc/cxx_supportlib -Isrc/cxx_supportlib/vendor-copy -Isrc/cxx_supportlib/vendor-modified -fPIC -DLINUX -D_REENTRANT -D_GNU_SOURCE -I/home/main/.linuxbrew/opt/apr/libexec/include/apr-1 -I/home/main/.linuxbrew/opt/apr-util/libexec/include/apr-1 -I/home/main/.linuxbrew/opt/openssl/include -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -feliminate-unused-debug-symbols -feliminate-unused-debug-types -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -Wno-attributes -ggdb -DHAS_ALLOCA_H -DHAVE_ACCEPT4 -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -c src/apache2_module/mod_passenger.c]
/tmp/passenger-20170129-13326-1yq019p/passenger-5.1.2/build/support/cplusplus.rb:52:in `run_compiler'
/tmp/passenger-20170129-13326-1yq019p/passenger-5.1.2/build/support/cplusplus.rb:96:in `compile_c'
/tmp/passenger-20170129-13326-1yq019p/passenger-5.1.2/build/support/cplusplus.rb:153:in `block in define_c_object_compilation_task'
Tasks: TOP => apache2 => buildout/apache2/mod_passenger.so => buildout/apache2/mod_passenger.o
(See full trace by running task with --trace)

READ THIS: https://github.com/Linuxbrew/brew/blob/master/docs/Troubleshooting.md#troubleshooting

As requested, here are the outputs of
brew config
HOMEBREW_VERSION: 1.1.6
ORIGIN: https://github.com/Linuxbrew/brew
HEAD: 98e06da6124e92192c14b02ae383fcd8010b19a3
Last commit: 3 weeks ago
Core tap ORIGIN: https://github.com/Linuxbrew/homebrew-core
Core tap HEAD: 1c0be3d3419c479e41b3f5b526313ce6d658c765
Core tap last commit: vor 13 Stunden
HOMEBREW_PREFIX: /home/main/.linuxbrew
HOMEBREW_REPOSITORY: /home/main/.linuxbrew
HOMEBREW_CELLAR: /home/main/.linuxbrew/Cellar
HOMEBREW_BOTTLE_DOMAIN: https://linuxbrew.bintray.com
CPU: octa-core 64-bit broadwell
Homebrew Ruby: 2.3.1 => /usr/bin/ruby2.3
Clang: N/A
Git: 2.7.4 => /usr/bin/git
Perl: /usr/bin/perl
Python: /usr/bin/python => /usr/bin/python2.7
Ruby: /usr/bin/ruby => /usr/bin/ruby2.3
Java: openjdk version "1.8.0_121"
Kernel: Linux 4.4.0-59-generic x86_64 GNU/Linux
OS: Ubuntu 16.04.1 LTS
Codename: xenial
OS glibc: 2.23
OS gcc: 5.4.0
Linuxbrew glibc: N/A
Linuxbrew gcc: N/A
Linuxbrew xorg: N/A

brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!

Warning: Homebrew's sbin was not found in your PATH but you have installed
formulae that put executables in /home/main/.linuxbrew/sbin.
Consider setting the PATH for example like so
  echo 'export PATH="/home/main/.linuxbrew/sbin:$PATH"' >> ~/.bash_profile

brew gist-logs nginx
Error: No logs.
Thanks in advance for looking at my issue. If you need any further information, just let me know.
Kind regards
Benjamin

Is there really nobody having a clue? I now also tried installing Apache independently, but it still gave me the same error.

You can try:
% brew install passenger --without-apache2-module
% brew install homebrew/nginx/nginx-full --with-passenger --with-rtmp-module

I apologize for not getting to your issue right away, but sometimes it may take some time before we can respond.
Thanks!

Sorry, I didn't mean to bug you.
Anyway, after executing brew install curl followed by the two commands you sent me, it finally worked.
Thanks a lot for your help!


getControllerByNodeId() is null

const nn: TreeModel = { "some name", id:  2, children: [] }
this.treeComponent.rootComponent.controller.addChild( nn );
setTimeout(() => {
console.info( 'result:', this.treeComponent.getControllerByNodeId( 2 ));
}, 5000);
// returns null
I read #204 but  "createNode" solution does'nt work for me. :(

@mrfx You can use addChildAsync. This is not yet documented but already available

Yes. This works great! Now I can create my tree dynamically & recursively from other objects and structures. Thank you a lot!


Log error for bad values of autoInject (#7572)

Cherry pick of https://github.com/istio/istio/pull/7572

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: greghanson
If they are not already assigned, you can assign the PR to them by writing /assign @greghanson in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

pilot/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: rkpagadala
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approver: greghanson
If they are not already assigned, you can assign the PR to them by writing /assign @greghanson in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

pilot/OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ostromart: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/e2e-mixer-no_auth.sh
f8d556f89f598619e3b5e6b39cfe44ff163bb0bc
link
/test e2e-mixer-no_auth

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test e2e-mixer-no_auth

/lgtm

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: ayj, rkpagadala
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

pilot/OWNERS [ayj]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Server backing up all the time

Hello,
I have a strange issue where my server tries to backup all the time. I first noticed this when i ran out of disk due all the backups.
Changed BACKUPS_MAX_COUNT to 12 and BACKUPS_MAX_AGE to 3 so my disk wont be filled with backups. The server still want to make backups so i changed BACKUPS_IF_IDLE to false and now i get:
supervisord: valheim-backup DEBUG - [98] - Received signal to backup world
supervisord: valheim-backup DEBUG - [98] - Not running backup as there has been no server activity since Mon 30 Jan 2023 05:56:51 PM CET
But still the server want to backup every minute.
valheim.env
PUID=1000
PGID=1000
TZ=Europe/Stockholm
SERVER_NAME="Munkbron heroes"
WORLD_NAME=Munkbron
SERVER_PASS="XXXXXX"
SERVER_PUBLIC=true
BACKUPS_MAX_AGE=3
BACKUPS_MAX_COUNT=12
BACKUPS_CRON="* */3 * * *"
BACKUPS_IF_IDLE=false
BACKUPS_IDLE_GRACE_PERIOD=3600
SUPERVISOR_HTTP=true
SUPERVISOR_HTTP_PORT=9001
SUPERVISOR_HTTP_USER=XXXXX
SUPERVISOR_HTTP_PASS=XXXXX
UPDATE_CRON="0 3 * * *"
STATUS_HTTP=true
UPDATE_IF_IDLE=true
BEPINEX=true

docker-compose
version: "3"

services:
  valheim:
    image: ghcr.io/lloesche/valheim-server
    container_name: valheim
    cap_add:
      - sys_nice
    volumes:
      - ./config:/config
      - ./data:/opt/valheim
    ports:
      - "2456-2457:2456-2457/udp"
      - "9001:9001/tcp"
      - "8030:80"
    env_file:
      - ./valheim.env
    restart: always
    stop_grace_period: 2m
networks:
  default:
    external:
      name: proxy

Okay im an idiot :)

*/3 * * * is at every minute past every 3rd hour.
changed it to:
0 */3 * * * which is at minute 0 past every 3rd hour.

Thanks to https://crontab.guru/


security: Implement IPsecListSas API

This commits implements the IPsecListSas API for both client and server.
This is tested by the existing code, which runs the client, in turn
calling the new API and printing out results.
Related to #320
Signed-off-by: Kyle Mestery<EMAIL_ADDRESS>

Excellent work
There is some code dup so after we finish with basic reference implementation maybe we can look how to reduce it...


GH-38711: [CI] Rollback aws-cli for preview documentation

Rationale for this change
Restored the Runner image to not delete aws-cli for the execution of the preview-docs command.

Are these changes tested?
No

Are there any user-facing changes?
No

Closes: #38711

@kou Would it be possible for you to assist in testing this part? I understood aws-sam to be related to SAM (Serverless Application Model) and therefore did not restore it.

@github-actions crossbow submit preview-docs

Sure!
(I think that you can also submit a job by @github-actions crossbow submit preview-docs because your commits exist in apache/arrow.)


Remove vignettes_old; expand tab examples

With #1233 we will have the machinery for tested documentation examples.
We concluded in #1254 that we don't want to invest time in R vignettes as a form of documentation.

So we should remove the R/opendp/vignettes_old directory, and have at least that much added as examples in the docs.

I agree with this direction! Tabs in sphinx are better.


opt Add GlobalMemoryArbitrator and support ReserveMemory

Proposed changes
Add GlobalMemoryArbitrator, used for check memory exceed limit, memory garbage clean(GC), ReserveMemory
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

run buildall

run buildall

run buildall


Cannot run this program, help is appreciated

Hi,
this is exactly what I am looking for. I have a SmartGrid enabled tumbler and washing machine and a SolarEdge inverter.
Now I'd like to make use of smartStart. I have not found a solution for home assistant.
Unfortunately, I am no too much into programming and your instructions failed me.
I try to run this on a Raspi 3B.
First I tried "go get" which told me that "get" was deprecated and I should use "install" instead. Did so, but calling the package failed with "is not in GOROOT folder".
Second I tried docker run, which gave me
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v7) and no specific platform was requested
exec /mielesolar: exec format error

I'd really appreciate help in running this.
Further, can I start it up automatically on the raspi's reboot?
Thanks for your time.

Okay,
now I have it installed (git clone, move to $GOROOT, go get, go build), but the parameters seem to be wrong.
I have set up a config file (devices.json) and call the program but I get a "user/pass wrong" - I copypasted them from another project which uses the API and which is currently up and running...so it must be the syntax.
The syntax differs which the program expects differs from the example in the readme.md. Tried both, but there must be sth wrong. Can you please tell me how to properly make a call?
/usr/local/go/src/mielesolar/mielesolar -user<EMAIL_ADDRESS>-password SuperSecret -client-id "abc3434-3473842-sthlikethat" -client-secret "bunCHofLetters" mielesolar -inverter <IP_ADDRESS> -port 502 -vg de-DE -config
2023/01/17 17:24:27 error retrieving Miele token: oauth2: cannot fetch token: 401 Unauthorized
Response: {"message":"username/password is invalid"}
pi@RaspberryPi:/usr/local/go/src/mielesolar $

Tried with and without "" at different places....

Sorry, I missed the GitHub notification!
First, I've updated the installation instructions to use go install which was introduced in Go 1.17. Thanks for mentioning that.
Second, the format of the client ID (8-4-4-4-12 characters) and secret (32 characters) look correct.
Your example command line has a stray mielesolar between the -client-secret and -inverter arguments. Was this just a copy & paste error?

Thanks for your reply and nevermind the missed notification!
In fact, the additional mielesolar was copied from the installation instructions and its still there.
Noticed already but I always get the failure that my credentials are wrong - while they run fine in another project (and no matter if this is running or not) MMM-Miele for MagicMirror.
I tried with and without " or '.
Would really appreciate help.
And maybe you can add instructions on how to run it as a system service on a pi?
Sorry, I have not that much programming experience and none at go....thanks a lot for your work!

Yup, I got thru that, and I think there is some problem with the command line options. Just to be sure, I requested new credentials but Miele seems to process them manually. As my current one's work, I think it's either a problem with my syntax, with the interpretation of my syntax or maybe a bug in the code. Anyway, I am highly interested in sorting this one out.
Docker build is not for Raspi and I do not own a Synology NAS.
And sorry, I do not know how to check env variables from bash on my raspi for a specific program which runs from the command line.
What I noticed today: I just started mielesolar with user/pass/client/secret, this was already sufficient to get a 401: user/pass invorrect error :-(
./mielesolar -user<EMAIL_ADDRESS>-password 'password' -client-secret '12345' -client-id '91253'
2023/01/18 23:14:02 error retrieving Miele token: oauth2: cannot fetch token: 401 Unauthorized
Response: {"message":"username/password is invalid"}

(of course, my credentials have been changed, but this is what happens when I use the correct credentials). I think, first I have to go beyond this point.
I don't know what to try anymore. If you want I'll contact you on LinkedIn and we can find a way you can try it out on my raspi?

Your client ID + client secret seem valid. If they were not, you'd get Client credentials are not valid instead of username/password is invalid.
The country selector is important - it's a necessary part for authentication. The default is de-CH (as a convenience for me), so you need to pass the location in which your account is registered, for example -vg de-DE.
Btw, the Raspberry Pi can run Docker (https://www.simplilearn.com/tutorials/docker-tutorial/raspberry-pi-docker), but a native solution may be preferred.

About docker: On a raspi, I will get an error that it is a wrong platform...
BUT...we are getting closer. Now providing -vg de-DE will authenticate correctly.
Specifying the inverter's IP also works. Verbose also works. But specifying either -auto or a config file will just throw the help text. But we are getting closer.
Next step after running it from shell: running it as a service from startup. Corrently, I need to be in the programs directory.... (/usr/local/go/src/mielesolar)

Update: WORKS now from the command line (I forgot to specify an int value for "auto", but as I have 4 Miele Devices I will need to think how I will priorize them in a config file). Now I need to find out how to run in automatically on startup..
Thanks for your help! (I think the missing -vg de-DE was the problem when I finally could compile the program)

I think this looks fine now :-)
pi@RaspberryPi:~ $ sudo systemctl status mielesolar
● mielesolar.service - Mielesolar
     Loaded: loaded (/lib/systemd/system/mielesolar.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2023-01-19 10:59:08 CET; 3min 41s ago
   Main PID: 1357 (mielesolar)
      Tasks: 7 (limit: 2058)
        CPU: 624ms
     CGroup: /system.slice/mielesolar.service
             └─1357 /usr/local/go/src/mielesolar/mielesolar -user<EMAIL_ADDRESS>-password E98NmsWX7tf6zii -c>

Jan 19 10:59:08 RaspberryPi systemd[1]: Started Mielesolar.

Problem: I wouldn't expect your docker-image to run on a raspberry pi, as it is not (cross)compiled for arm/v7 (v6/v5/64v8) architecture, see https://hub.docker.com/r/ingmarstein/mielesolar/tags
Would you consider crosscompiling it?
e.g. using docker buildx https://docs.docker.com/build/building/multi-platform/
Or add instructions on how to compile it oneself.
git clone https://github.com/IngmarStein/mielesolar.git
cd mielesolar/
sudo docker build -t mielesolar:v1 .
# modify docker-compose.yml to use selfbuild image
sed -i 's,ingmarstein/mielesolar:latest,mielesolar:v1,g' docker-compose.yml
# confirm everything went fine up to this point
sudo docker-compose up
# add credentials (save and quit with CTRL + X, confirm with Y)
nano docker-compose.yml
# test (quit using CTRL + C)
sudo docker-compose up
# run as background service (daemon mode)
sudo docker-compose up -d

At least for my raspberry pi 4 (arm v7) it looked like everything went smooth. Unfortunately i have no miele devices to test it.
pi@octopi5:~ $ sudo rm -r mielesolar/
rm: cannot remove 'mielesolar/': No such file or directory
pi@octopi5:~ $ sudo docker container ls
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
pi@octopi5:~ $ sudo docker image ls
REPOSITORY   TAG       IMAGE ID   CREATED   SIZE
pi@octopi5:~ $ git clone https://github.com/IngmarStein/mielesolar.git
Cloning into 'mielesolar'...
remote: Enumerating objects: 526, done.
remote: Counting objects: 100% (113/113), done.
remote: Compressing objects: 100% (80/80), done.
remote: Total 526 (delta 69), reused 63 (delta 33), pack-reused 413
Receiving objects: 100% (526/526), 152.66 KiB | 3.05 MiB/s, done.
Resolving deltas: 100% (337/337), done.
pi@octopi5:~ $ cd mielesolar/
pi@octopi5:~/mielesolar $ sudo docker build -t mielesolar:v1 .
Sending build context to Docker daemon  351.2kB
Step 1/8 : FROM golang:1.19.5-alpine AS builder
1.19.5-alpine: Pulling from library/golang
c527615e4ffa: Pull complete
90c7609f223a: Pull complete
da97c3a81e19: Pull complete
64e98750b6aa: Pull complete
Digest: sha256:2381c1e5f8350a901597d633b2e517775eeac7a6682be39225a93b22cfd0f8bb
Status: Downloaded newer image for golang:1.19.5-alpine
 ---> 348b24e92c8a
Step 2/8 : WORKDIR /go/src/github.com/ingmarstein/mielesolar/
 ---> Running in 05d24e6de998
Removing intermediate container 05d24e6de998
 ---> 04a380cb41ef
Step 3/8 : COPY . .
 ---> ac6912be2b41
Step 4/8 : RUN apk add -U --no-cache ca-certificates git  && CGO_ENABLED=0 GOOS=linux go build .
 ---> Running in 7b474e66c8b9
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/main/armv7/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.17/community/armv7/APKINDEX.tar.gz
(1/7) Installing brotli-libs (1.0.9-r9)
(2/7) Installing nghttp2-libs (1.51.0-r0)
(3/7) Installing libcurl (7.87.0-r1)
(4/7) Installing libgcc (12.2.1_git20220924-r4)
(5/7) Installing libexpat (2.5.0-r0)
(6/7) Installing pcre2 (10.42-r0)
(7/7) Installing git (2.38.3-r1)
Executing busybox-1.35.0-r29.trigger
OK: 12 MiB in 23 packages
go: downloading github.com/goburrow/modbus v0.1.0
go: downloading github.com/ingmarstein/miele-go v0.0.0-20221005183253-e7bbdc188dad
go: downloading github.com/goburrow/serial v0.1.0
go: downloading github.com/google/go-querystring v1.1.0
go: downloading golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43
go: downloading golang.org/x/net v0.0.0-20201024042810-be3efd7ff127
Removing intermediate container 7b474e66c8b9
 ---> 8288f57d244c
Step 5/8 : FROM scratch
 --->
Step 6/8 : COPY --from=builder /go/src/github.com/ingmarstein/mielesolar/mielesolar /mielesolar
 ---> 421e64d6728d
Step 7/8 : COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
 ---> 6030bc3a0f8f
Step 8/8 : ENTRYPOINT ["/mielesolar"]
 ---> Running in 82ceeea5f0d9
Removing intermediate container 82ceeea5f0d9
 ---> 016c13c8976c
Successfully built 016c13c8976c
Successfully tagged mielesolar:v1
pi@octopi5:~/mielesolar $ sed -i 's,ingmarstein/mielesolar:latest,mielesolar:v1,g' docker-compose.yml
pi@octopi5:~/mielesolar $ sudo docker-compose up
Creating network "mielesolar_default" with the default driver
Creating mielesolar_mielesolar_1 ... done
Attaching to mielesolar_mielesolar_1
mielesolar_1  | Usage of /mielesolar:
mielesolar_1  |   -auto int
mielesolar_1  |         automatically start waiting devices if a minimum amount of power is available
mielesolar_1  |   -client-id string
mielesolar_1  |         Miele 3rd Party API client ID
mielesolar_1  |   -client-secret string
mielesolar_1  |         Miele 3rd Party API client secret
mielesolar_1  |   -config string
mielesolar_1  |         Device config file (default "devices.json")
mielesolar_1  |   -interval int
mielesolar_1  |         Polling interval in seconds (default 5)
mielesolar_1  |   -inverter string
mielesolar_1  |         Inverter address or IP (default "<IP_ADDRESS>")
mielesolar_1  |   -password string
mielesolar_1  |         Miele@Home password
mielesolar_1  |   -port int
mielesolar_1  |         MODBUS over TCP port (default 502)
mielesolar_1  |   -user string
mielesolar_1  |         Miele@Home user name
mielesolar_1  |   -verbose
mielesolar_1  |         verbose mode
mielesolar_1  |   -vg string
mielesolar_1  |         country selector (default "de-CH")
pi@octopi5:~/mielesolar $ uname -m
armv7l

@requiemmg well done and welcome user number 2 :) Looks like you're up and running now. Let me know if you managed to get a smart start triggered.
It would be a great addition to build a Debian Package for Raspian and host that somewhere.
@Setcover you're right the image is currently only available for linux/amd64. Shouldn't be a big deal to cross-compile it for armv7. I might have a look over the weekend.

Sure thing, I'll let you know. Today snow on my panels, so no solar power ☀

@Setcover the armv7 image is up (https://hub.docker.com/r/ingmarstein/mielesolar/tags).

looks good to me 👍 (again, neither miele device nor solar inverter to test)
pi@octopi5:~ $ sudo rm -r mielesolar/
pi@octopi5:~ $ sudo docker container ls; sudo docker image ls; sudo docker system prune -a
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
REPOSITORY   TAG       IMAGE ID   CREATED   SIZE
WARNING! This will remove:
  - all stopped containers
  - all networks not used by at least one container
  - all images without at least one container associated to them
  - all build cache

Are you sure you want to continue? [y/N] y
Total reclaimed space: 0B
pi@octopi5:~ $ mkdir mielesolar && cd mielesolar && wget https://raw.githubusercontent.com/IngmarStein/mielesolar/main/docker-compose.yml
--2023-01-19 15:51:38--  https://raw.githubusercontent.com/IngmarStein/mielesolar/main/docker-compose.yml
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 355 [text/plain]
Saving to: ‘docker-compose.yml’

docker-compose.yml                                   100%[=====================================================================================================================>]     355  --.-KB/s    in 0s

2023-01-19 15:51:39 (5.74 MB/s) - ‘docker-compose.yml’ saved [355/355]

pi@octopi5:~/mielesolar $ sudo docker-compose up
Creating network "mielesolar_default" with the default driver
Pulling mielesolar (ingmarstein/mielesolar:latest)...
latest: Pulling from ingmarstein/mielesolar
e391339e158c: Pull complete
9806ea516711: Pull complete
Digest: sha256:ee87b62a7a77f3980c62bc487b56dd3a5431f26522bd1400d1d558b3694c277f
Status: Downloaded newer image for ingmarstein/mielesolar:latest
Creating mielesolar_mielesolar_1 ... done
Attaching to mielesolar_mielesolar_1
mielesolar_1  | Usage of /mielesolar:
mielesolar_1  |   -auto int
mielesolar_1  |         automatically start waiting devices if a minimum amount of power is available
mielesolar_1  |   -client-id string
mielesolar_1  |         Miele 3rd Party API client ID
mielesolar_1  |   -client-secret string
mielesolar_1  |         Miele 3rd Party API client secret
mielesolar_1  |   -config string
mielesolar_1  |         Device config file (default "devices.json")
mielesolar_1  |   -interval int
mielesolar_1  |         Polling interval in seconds (default 5)
mielesolar_1  |   -inverter string
mielesolar_1  |         Inverter address or IP (default "<IP_ADDRESS>")
mielesolar_1  |   -password string
mielesolar_1  |         Miele@Home password
mielesolar_1  |   -port int
mielesolar_1  |         MODBUS over TCP port (default 502)
mielesolar_1  |   -user string
mielesolar_1  |         Miele@Home user name
mielesolar_1  |   -verbose
mielesolar_1  |         verbose mode
mielesolar_1  |   -vg string
mielesolar_1  |         country selector (default "de-CH")
pi@octopi5:~/mielesolar $

I'll close this for now as the original problem "cannot run this program" is solved. Feel free to create new issues when other things pop up.


Get both 2D and 3D libraries to run

Determined that GPU was unable to run 3D. Now using OpenSuse 13.1 NVidia GTX680 and produces non-zero output.


Add games section

Sorry, please ignore this pull request. I tried to update my blog faster than I should :|


Added Laravel 9, Linux Filesystem and Php 8 support

I have tested it on a project with laravel 9, php 8 and using MacOS and its working good.
If you want to try it put in your composer.json:
    "repositories": {
        "beyondcode/laravel-er-diagram-generator":{
            "type": "github",
            "url": "https://github.com/robertmunoz1999/laravel-er-diagram-generator"
        },
    },
    "require": {
        "beyondcode/laravel-er-diagram-generator": "dev-master"
    },

then run composer update

Laravel 10 is around the corner. Looking for this PR to merge

This PR would break compatibility with Laravel 8 projects. I will transfer the change with the directory separator in the config to another branch, but I will close this PR.


Small Minor issue

Windows 10 contains  app based installs.
issue 1 :- view in browser fails for view in default custom functions for windows 10 (tabletpc). we had to navigate to the installs physically and select appropriate browser shortcuts/installs .
2) However it was not remembering the browser app selected and same redundant steps were required to perform.
I do not have any suggestions as I am not sure how we can tweak for apps

I have been investigating this and am not sure how to resolve. I'm not 100% sure if this is an issue with Windows 10 or the extension. I updated the extension to use a new NPM package and I wonder if the same behavior will persist.


Add testimonials section

As various user test their typing skill on this web application so some of them which have a fastest tying skill and are famous one we have add them as a testimonial

As various user test their typing skill on this web application so some of them which have a fastest tying skill and are famous one we have add them as a testimonial

@arpitghura can you please assin this issue to me I want to work on it under kowc2022
Thank you:)

Hello @Riya14-dangra, Welcome to the community. You can work on this issue. But for getting testimonials, the website must have a form which gets all the testimonials or if you have any other idea. Discuss freely. I am assigning this issue to you. If you have not joined our discord, Join Discord Server

Hello @Riya14-dangra, Welcome to the community. You can work on this issue. But for getting testimonials, the website must have a form which gets all the testimonials or if you have any other idea. Discuss freely. I am assigning this issue to you. If you have not joined our discord, Join Discord Server

yes sir I think I will add testimonials and text to it I will add contact section in contact section along with the contact details I am going to include the short form where user can have a section of blog and the send submit button so that we recieve the blog and post it as testimonials .....if you like this then I will go for it.

Yeah, this will be a good option to go for but how do we get those blog/testimonials?
We can get them either by mail or we have to create a database for them. Do you think of any other options?

Yeah, this will be a good option to go for but how do we get those blog/testimonials? We can get them either by mail or we have to create a database for them. Do you think of any other options?

I think by mail is the easiest and best option

ok do that and ask me when you need to email address

ok do that and ask me when you need the email address

yes sure
Thank you so much!!

This issue is fixed by #65 so I am closing this issue.


Allow multiple search domains

Description
Provides multiple search domains by using a hash, with backwards compatibility for a string value.
Builds on PR #21 from @dswebbthg by providing backwards compatibility.
Issues Resolved
None
Check List

[ ] All tests pass. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/TESTING.MD
[ ] New functionality includes testing.
[x] New functionality has been documented in the README if applicable
[X] All commits have been signed for the Developer Certificate of Origin. See https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD

- `node['resolver']['search']` - a hash of

It should array not hash.

While the length check on node['resolver']['search'] is great, I'm not a fan of failing outright and not generating /etc/resolv.conf.
How about changing the recipe to just WARN that only the first 6 will be honored.  In the template, you could do:
<% unless @search.empty? -%>
search <%= [@search].flatten[0..5].join(' ') %>
<% end -%>

Addressed above comments in latest commit.

Hello, just checking in on this. Any possibility of this merging soon?

Paging @nvwls and @iennae to the dance floor.

Apologies for the delay in reviewing this. Chef Conf was this week, we'll look into this next week. Thanks!

Hi @iennae, were you able to look into this PR?

Sorry for the delay @briancline


Deprecate NineOlds

You can ViewCompat class instead this deprecated library.

+1

+1

+1

+1

+1

+1

+1

+1

+1

Thanks all of you, the next version will be published in two days. It's totally removed nineoldandroids, since the Android 4.0 has become the major Android version.
Android also updated AnimationEasingFunctions to 2.0.


Update test suite for Drupal 8

Adding a Drush make file and updated Behat feature so that the test script builds Drupal 8 and runs Behat tests against it.
Should we also make this more explicit as another example for setting up GDT?

I like the idea of some really basic behat tests as part of the example. Generic site validation seems like a good thing.
Not sure about dropping D7 tests while a majority of sites use it. I'd say unit tests around lib/drupal.js might be a middle ground but that file is so simple.

I updated this PR to support testing with either Drupal 7 or Drupal 8. The Drupal core version is determined from an env var, and test assets and criteria can be specific to the core version.

My only review point that should hold this is the question about environment variable name prefixes. Otherwise :+1:

Needs conflict resolution.
Also, Travis is listing contents of .git, do we need that?

I've updated the PR to resolve the conflicts, and also moved the directory listing to the install block so it's not visible by default.


How to modify Aider with Aider?

Issue
I'm adding a feature to Aider using Aider. I cloned the main branch and started working on it locally. Once I thought it was ready to test I created a separate conda environment and installed a development version there so I could modify it quickly. When I use the "real" aider to edit my local files, pip updates all my envs to point to the local file. The Aider blog says Aider wrote a large portion of it's own files. What do you do to isolate a "functional" Aider program from the dev version so you can work on it?
Version and model info
Aider v0.43.5dev
Windows 11 using separate conda environments to isolate versions of Aider

Thanks for trying aider and filing this issue. This doc may be helpful:
https://aider.chat/docs/install/pipx.html
https://aider.chat/docs/install/optional.html#install-the-development-version-of-aider

I'm familiar with editing and installing local packages in development mode but I'm having odd behavior from pip.

I cloned the repo locally, lets say in /Documents/aider
create two conda environments aider_original and aider_dev.
install Aider in aider_original with pip install aider-chat
switch to aider_dev with conda activate aider_dev.
I change version number in aider/__init__.py file to ensure I which package is which.
navigate to /Documents/aider and install a local development version with pip install -e .
I check aider with aider --version and it outputs my dev version
switch to aider_original env
check aider version and it is the original version
navigate to /Documents/aider
check aider version with aider --version and it shows my dev version
navigate back to /Documents and check version with aider --version and its the original

I can use pip list and if I'm in the development directory, pip displays the dev version as if it is installed even though I have installed it in the aider_dev env. I've checked the envs Lib/site-packages and aider_original shows the package as installed but aider_dev shows the aider-chat.egg-link as it is a symlink to use the development package. Which is how to should be.
When I try to use aider in my dev directory, pip somehow thinks it needs to use my dev version and switches over but ONLY while I'm in the aider directory.
I resorted to using aider_original inside of an ubuntu WSL instance to isolate it completely but it is slower as it has to access the mounted files from windows to work on my dev version.
I didn't expect this behavior and I'm wondering if anyone who has worked on Aider with Aider just uses separate environments and its fine. It's as if pip sees the local directory and thinks that it should use that but that's not how pip is supposed to work

Sorry, it would be very hard for me to help debug your local python development environment.

I'm going to close this issue for now, but feel free to add a comment here and I will re-open or file a new issue any time.


Start travis checks, move to pytest

I think first we need to merge this and then I fix the tests.


[FR]: Refactor VideoLibrary Screen for Enhanced PiP Mode Handling

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the problem
I'm always frustrated when trying to move views to a separate activity or deeply customize them under Picture-in-Picture (PiP) mode. Currently, our VideoLibrary screen's UI is tightly coupled with the PiP mode UI, making it challenging to modify or extend the PiP functionality independently from the main screen.
Describe the solution
I propose a refactor of the VideoLibrary screen to decouple the UI for standard and PiP modes. This would involve:
Creating separate composable functions dedicated to PiP mode UI.
Implementing conditional rendering to switch between standard and PiP mode UI components based on the current mode.
Updating state management and navigation logic to smoothly transition between standard and PiP modes.
If necessary, refactoring the VideoLibraryViewModel to better support the mode switching.
Ensuring thorough testing for both modes to maintain functionality.
The goal is to enhance the flexibility and maintainability of our codebase, especially for future developments in PiP mode.
Additional context
No response

This proposed refactor of the VideoLibrary screen for enhanced PiP mode handling could potentially resolve the issue documented in issue #76 , specifically the erratic page jumping when entering PiP mode.


Allow where clause in decl_error!

If a trait has some where clause then decl_error will fail to compile.
This PR solve it by allowing decl_error to specify some where clause.

If this can be supported, then I am all happy.
https://github.com/paritytech/substrate/pull/7319/files#diff-608450c398dfbce477973170a09cfd3f8394baea48114e147fb093582135b15dR400-R409
I'll try and test it with this branch later, you can try the same for sanity.

bot merge


Let getline() handle buffer allocation in get_memory()

This is a little nitpicky, but paleofetch is Valgrind-clean modulo this line. It is the right way to use getline(), though, which expects a null buffer that it can grow and shrink as necessary.

Thanks for being nitpicky, I neglected to check valgrind for the pull requests I'd been accepting.


TypeScript / ASP.NET 5 skeleton not working in VS 2015 under .NET Core RC2

I only have the .NET Core tooling for RC2 (Preview 1) installed, which is the latest at the time of writing this up.
First I had to update the global.json file in the root folder to point the version to '1.0.0-preview1-002702'. This avoids an error when opening the skeleton solution file in Visual Studio 2015.
VS then attempted to do a package restore, which failed, on these core dependencies:

NU1002	The dependency Ix-Async 1.2.5 does not support framework DNXCore,Version=v5.0

NU1002	The dependency Remotion.Linq 2.0.1 does not support framework DNXCore,Version=v5.0

NU1002	The dependency Microsoft.CodeAnalysis.Common 1.1.0-rc1-20151109-01 does not support framework DNXCore,Version=v5.0

NU1002	The dependency Microsoft.CodeAnalysis.CSharp 1.1.0-rc1-20151109-01 does not support framework DNXCore,Version=v5.0

This is preventing the IDE from being able to build or run the skeleton.
Could we please have an update of the skeleton that works out of the box for .NET Core RC2?

We have some PRs that we are reviewing.


Release workflow is run automatically and always fails

The release.yml workflow seems to be set up to automatically  run on each push to main. Do we really want this? What about changing it to a manually triggered workflow to better control when we publish, and to better communicate semantic versioning?
It's also set to run on a self-hosted runner, which seems to fail. Is the runner(s) down? What is the reason for using self-hosted instead of standard runners?

yeah i seem to recall that runners tokens only last for 90 days or something, no clue why that is. i just restarted the one for this repo and it seems to be working fine

github has incredibly slow compute and we have excess anyways so it doesnt matter how many times or how long it runs

@strykejern would you happen to have discord or something? easier to coordinate things than over a git PR:)
my discord @floris_xlx


Add LogPlugin, otherwise the ambiguity detector doesn't work.

(failures are due to unrelated errors)

bors r+


BUG: Curve lending - User can't repay loan (nothing happens)

When trying to repay from mybots page, user is asked to approve crvUSD as expected, but then nothing happens.
Tried hitting the "repay" button multiple times

https://drive.google.com/file/d/1UUTaYZg1gIcMZPg9tgfEuq4PtDyDkRLg/view?usp=sharing

Fixed with https://github.com/VolumeFi/palomabot/pull/245


Open album/photo in new tab when holding ctrl/cmd

I would rather have ctrl/cmd for selecting multiple images, right now its possible to drag select but not selecting multiple images that are not beside each other. Just my 2 cents.

That's planned, but the hotkeys may overlap. Good point!

This issue will be closed because I'm not actively working on Lychee anymore. The repository of Lychee will stay available, but the main development continues under the Lychee Organisation. A fork maintained by the community. Important issues have been migrated. Feel free to re-add your issue(s) when necessary.


Alternative bingo versions

Benjamin V.: instead of #s, you could use community signs, pictures (people, places, things), letters, vocabulary words, etc.

I don't care for this idea. Deleting.


export data into csv

Looks like a great start @shaktik1989 What I envisioned was to generate these CSV files as a background worker since in production they could be quite large.  Once the csv is ready, the admin should be notified by email with a protected link or something like that.
#276

@scott I have update the

Cool I will take a look!  By the way, Rails updated to <IP_ADDRESS>, and if you pull from master your integration tests should pass again (unless there is another issue.)

This looks great so far! Overall it seems to work pretty well, but we need to suppress notifications and emails when doing an import of topics and posts.  Also, on the import page, it would be much nicer if we used something like http://www.dropzonejs.com/.  And had a UI that showed the pending uploads and their status- I think you just haven't gotten to that yet.
As far as error checking, I think we need some test cases to describe and verify that its working.  I uploaded a couple invalid user rows and got an email report saying "no problems".  Is this the expected behavior?


shuffle datasets

Is it okay not to shuffle the data?

    def _exact_dup_ids(self, df: dd.DataFrame):
        """
        Get the id's for text/documents that are exact duplicates
        Parameters
        ----------
        df: dask.dataframe.core.DataFrame
          A dataframe with the following requirements:
          * A column where each row is the text from one document
          * A unique ID column for each document
        """
        hash_df = self._compute_hashes(df)
        shuffle_context = (
            config.set({"dataframe.shuffle.method": "tasks"})
            if DASK_P2P_ERROR
            else nullcontext()
        )
        with shuffle_context:
            dup_ids = hash_df.shuffle(
                on=["_hashes"],
                ignore_index=True,
                npartitions=max(1, (hash_df.npartitions // 3)),
            ).map_partitions(lambda x: x[x["_hashes"].duplicated(keep=False)])
        return dup_ids

modify with

    def _exact_dup_ids(self, df: dd.DataFrame):
        """
        Get the id's for text/documents that are exact duplicates
        Parameters
        ----------
        df: dask.dataframe.core.DataFrame
          A dataframe with the following requirements:
          * A column where each row is the text from one document
          * A unique ID column for each document
        """
        hash_df = self._compute_hashes(df)
        dup_ids = hash_df.map_partitions(lambda x: x[x["_hashes"].duplicated(keep=False)])

        return dup_ids

Algorithmically, the shuffle is needed to ensure all duplicates are found. I'll try to illustrate with an example:
# Assume input data is divided into 2 partitions

Partition 0        Partition 1
----------        ----------
ID    hash        ID     hash
0      xyz          3      xyz
1.     abc          4      def
2.     xyz          5      abc

Skipping the shuffle and using map_partitions will only identify 0,1 as a duplicate group. It will fail to identify 3 in the same group & it will also miss out on 1,5 since they were in different partitions.
Shuffling by hash ensures that documents with the same hash are in the same partition.
# After shuffle
Partition 0        Partition 1
----------        ----------
ID    hash        ID     hash
0      xyz          1      abc
3.     xyz          4      def
2.     xyz          5      abc

Now calling the lambda on each partition allows finding the duplicates correctly.
If your data fits in a single partition then shuffling is not needed, but for anything more than 1 partition, shuffling is needed to ensure correctness.
@simplew2011 Are you running into issues with shuffle (either errors or performance)?

i can‘t understanding this line: npartitions=max(1, (hash_df.npartitions // 3))
why (hash_df.npartitions // 3)
max(1, hash_df.npartitions) is ok ?

max(1,hash_df.npartitions) is theoretically okay.
hash_df.npartitions//3 is just an optimization for improved performance. In our experience, the input document dataset is much larger in size than the hash_df which only contains ID's & hashes. If the input df fits in 100 partitions, it is possible for the smaller hash_df to potentially fit within 30-35 partitions. Calling shuffle with fewer output partitions often leads to better performance. So we picked based on some testing that num_partitions//3 as a good tradeoff between performance and avoiding any OOM errors if we go too low.


RqFake should allow form params

When testing a form processing Take there is no clean way of adding form params (URL or body) to the request, one has to do manual encoding and creation of the appropriate string.
Please add such processing to RqFake (or maybe other class if appropriate), and describe it in the README section regarding unit tests.

@krzyk maybe something like this:
new RqForm.Fake(
  new RqFake(),
  "foo", "value-1",
  "bar", "value-2"
)

What do you think?

@yegor256 yes, looks good

@krzyk we will find someone to do this task, soon

@krzyk I set milestone here to 1.0, let me know if it is wrong

@krzyk thanks for the ticket, your account was topped for 15 mins, payment 58531652

@mbarbieri this task is yours, please help (see our key principles of work). If you have any technical questions, don't hesitate to ask right here... This task's budget is 30 mins. This is exactly how much will be paid when the problem explained above is solved. See this for more information

@yegor256 @krzyk I see that ```RqForm`` has
Iterable<String> param(CharSequence name)

that can return a list of values for the same name.
How should they be separated in the constructor?
Like this:
new RqForm.Fake(
  new RqFake(),
  "foo", "value-1,value-11",
)

or maybe like this:
new RqForm.Fake(
  new RqFake(),
  "foo", "value-1",
  "foo", "value-11"
)

@mbarbieri I think like this:
new RqForm.Fake(
  new RqFake(),
  "foo", "value-1",
  "foo", "value-11"
)

@davvd PR #334 is ready to be reviewed.

@krzyk @yegor256 can this issue be closed?

@mbarbieri thanks

@ypshenychka please, review this task for compliance with our quality rules

@krzyk
According to our QA Rules:

The ticket is closed only when the reported problem is solved, see.

If I am not mistaken, the correponding PR is not yet closed as far as there are some major design concerns.
Please do a reopen and close the issue only when reported problem is solved and code is successfully merged.

@ypshenychka you are right, I didn't check the merge status correctly, sorry for that

@krzyk Thank you! Let's wait for PR #334 to be finished and then we will come back to this ticket.

@mbarbieri you're working with this issue for 15 days already... -30 added to your rating, current score is: +113

@mbarbieri this task is not yours any more (took too long), please stop. I'll give you something else; -60 added to your rating, current score is: +53

@erimerturk please go ahead with this task, it's yours

@davvd another people is working on this issue, what should i do ?

@erimerturk ignore them, it's your task, do it

@davvd i need more time for this task i couldn't started it because another people was working on it, thank you

@davvd i need more time for this task i couldn't started it because another people was working on it, thank you

@erimerturk no problem, thanks for letting me know

@krzyk please see PR #358

@krzyk please close if it is acceptable for u, thank u

@erimerturk thanks

@davvd Quality is acceptable because of above remark.

@davvd Quality is acceptable because of above remark.

@ypshenychka thanks for the review, we'll try better next time

@erimerturk just added 10 mins to @ypshenychka (for QA), payment ID is 60765586; thank you, added 30 mins to your acc, payment num is AP-4V060928V60132405, 326 hours and 42 mins spent in total to complete; added +30 to your rating, now it is equal to +150


Error behaviour when session cannot be created due to "time cap" limitation

Problem description
Use case would be that QoD is productized as number of N QoD minutes or sessions per period and after reaching that limit a new QoD session, or a session duration extension, is requested. What would be the right error to be answered? As an enhancement this can be added as example to document the expected behaviour.
Possible evolution
Add an explicit example to /paths/sessions/POST/responses/"429"/content/"application/json"/examples:
In the guidelines there is a Service Exception documented as:

Error Code
Description

TOO_MANY_REQUESTS
Either out of resource quota or reaching rate limiting.

SessionsTimeCapExceeded:
  summary: The requested duration exceeds the overall sessions time cap for this device in certain period of time or contract duration.
  value:
    status: 429
    code: TOO_MANY_REQUESTS
    message: The requested session exceeds the allocated quota for this device: Sessions time cap limit exceeded

Alternative solution
An alternative code may be created especifically for QUOTA_REACHED.
Additional context
Initially opened as discussion: https://github.com/camaraproject/QualityOnDemand/discussions/231

I have decided to use status 429 but with a new specific code QUOTA_EXCEEDED for this error scenario, as the default one, TOO_MANY_REQUESTS, is misleading.

Done with #306


Playground: Compile programs using without_openssl flag

So, after upgrading to mojave...
I was able to experience #7209 / #6875
Every program input in the playground will include playground/agent.cr which triggers the following dependencies

https://github.com/crystal-lang/crystal/blob/master/src/compiler/crystal/tools/playground/agent.cr#L1
https://github.com/crystal-lang/crystal/blob/master/src/http.cr#L2
https://github.com/crystal-lang/crystal/blob/master/src/http/server.cr#L8

The websocket communication with the playground server does not require openssl, that is the reasone without_openssl flag exists actually.
Adding that flag to the compilation process will prevent this issues.
⚠  It will also mean that openssl is not available to be used in the scripts in the playground. ⚠
Another alternative would be to detect if it is available, and if not, ignore it.
It seems that the previous default openssl library was enough to build the samples in osx.
cc: @dustinlahr, @thebradhimself

IMHO unconditionally compiling Playground without OpenSSL seems bit problematic choice, since there might be many situations where you'd like to use HTTP calls to ssl-enabled endpoints.

I agree with @Sija but it was good to get to the bottom line :-)
Another alternative would be to use another mechanism to communicate the running script with the playground server.

Closing stale PR. There have been no further reportings that linking openssl was a problem with the playground. So it doesn't appear to be in need of fixing. Instead, it could break things.