text:
Logging stops when grpc call returns UNAVAILABLE

We experienced the following error:
Exception in thread google.cloud.logging.handlers.transport.Worker:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/site-packages/google/gax/api_callable.py", line 430, in inner
return a_func(*args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/google/gax/api_callable.py", line 64, in inner
return a_func(*updated_args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/grpc/_channel.py", line 481, in __call__
return _end_unary_response_blocking(state, False, deadline)
File "/usr/local/lib/python3.5/site-packages/grpc/_channel.py", line 432, in _end_unary_response_blocking
raise _Rendezvous(state, None, None, deadline)
grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, {"created":"@1478297096.016103965","description":"Secure read failed","file":"src/core/lib/security/transport/secure_endpoint.c","file_line":157,"grpc_status":14,"referenced_errors":[{"created":"@1478297096.016009469","description":"EOF","file":"src/core/lib/iomgr/tcp_posix.c","file_line":235}]})>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.5/site-packages/google/cloud/logging/handlers/transports/background_thread.py", line 80, in _run
self.batch.commit()
File "/usr/local/lib/python3.5/site-packages/google/cloud/logging/logger.py", line 452, in commit
client.logging_api.write_entries(entries, **kwargs)
File "/usr/local/lib/python3.5/site-packages/google/cloud/logging/_gax.py", line 113, in write_entries
partial_success=partial_success, options=options)
File "/usr/local/lib/python3.5/site-packages/google/cloud/gapic/logging/v2/logging_service_v2_api.py", line 291, in write_log_entries
self._write_log_entries(request, options)
File "/usr/local/lib/python3.5/site-packages/google/gax/api_callable.py", line 481, in inner
return api_caller(api_call, this_settings, request)
File "/usr/local/lib/python3.5/site-packages/google/gax/api_callable.py", line 469, in base_caller
return api_call(*args)
File "/usr/local/lib/python3.5/site-packages/google/gax/api_callable.py", line 434, in inner
errors.create_error('RPC failed', cause=exception))
File "/usr/local/lib/python3.5/site-packages/future/utils/__init__.py", line 419, in raise_with_traceback
raise exc.with_traceback(traceback)
File "/usr/local/lib/python3.5/site-packages/google/gax/api_callable.py", line 430, in inner
return a_func(*args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/google/gax/api_callable.py", line 64, in inner
return a_func(*updated_args, **kwargs)
File "/usr/local/lib/python3.5/site-packages/grpc/_channel.py", line 481, in __call__
return _end_unary_response_blocking(state, False, deadline)
File "/usr/local/lib/python3.5/site-packages/grpc/_channel.py", line 432, in _end_unary_response_blocking
raise _Rendezvous(state, None, None, deadline)
google.gax.errors.GaxError: GaxError(RPC failed, caused by <_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, {"created":"@1478297096.016103965","description":"Secure read failed","file":"src/core/lib/security/transport/secure_endpoint.c","file_line":157,"grpc_status":14,"referenced_errors":[{"created":"@1478297096.016009469","description":"EOF","file":"src/core/lib/iomgr/tcp_posix.c","file_line":235}]})>)

We are using the following python modules:
gapic-google-logging-v2 (0.10.1)
gapic-google-pubsub-v1 (0.10.1)
google-cloud (0.20.0)
google-cloud-bigquery (0.20.0)
google-cloud-bigtable (0.20.0)
google-cloud-core (0.20.0)
google-cloud-datastore (0.20.1)
google-cloud-dns (0.20.0)
google-cloud-error-reporting (0.20.0)
google-cloud-language (0.20.0)
google-cloud-logging (0.20.0)
google-cloud-monitoring (0.20.0)
google-cloud-pubsub (0.20.0)
google-cloud-resource-manager (0.20.0)
google-cloud-storage (0.20.0)
google-cloud-translate (0.20.0)
google-cloud-vision (0.20.0)
google-gax (0.14.1)
googleapis-common-protos (1.4.0)
grpc-google-iam-v1 (0.10.1)
grpc-google-logging-v2 (0.10.1)
grpc-google-pubsub-v1 (0.10.1)
grpcio (1.0.1)

Proposed solution: Whenever a gRPC call fails with StatusCode.UNAVAILABLE the gRPC call should be retried with a backof.

Closing as a dupe of #2683

authors: dhermes flundermicha

repo: GoogleCloudPlatform/google-cloud-python


text:
Do not encode pubsub message for gRPC requests.

Protobuf encodes pubsub messages, and google-cloud-python did as well which resulted in a double encoding of the message when protobuf was in use.
Fixes: #2577

If there's a better way to pass _USE_GAX on to Topic let me know. I'm not sure I like this path.

I believe this also needs a complementary change on the pull/b64decode side

I believe this also needs a complementary change on the pull/b64decode side

@ericbuehl Yep, you are correct.  @daspecster, you can verify by running the pubsub system tests:  the "end-to-end" test will fail if @ericbuehl is correct.

Bingo!
Also referenced here.

@daspecster: High level question, why were so many new tests needed?

They're mostly to cover the branch for if 'data' in.... and with/without gax. There's only three though, and if you think I can get rid of one LMK.

@daspecster If you make a helper, you only have to cover the branch in your helper.

@dhermes I commented about the helper. Maybe you know a better way to do it?

Gahhh...this didn't auto refresh....I see your comment not. I follow.

@dhermes, I think I covered what you mentioned. LMK if I missed understood anything.
@tseaver LMK if you have anything else.

@daspecster Other than that tiny nit I don't have any other requested changes.
I do however still feel very unsure if we are correctly handling users passing bytes / unicode in this method.

@daspecster OK I have it figured out now. Before:

_PublisherAPI.topic_publish did nothing (data = {'messages': messages}). Since json.dumps() fails with bytes (in Python 3), this essentially assumes the data passed in was unicode.
Batch.publish and Topic.publish went to base64 and to unicode (base64.b64encode(message).decode('ascii')). This also effectively required message to be bytes (see below the behavior)
Subscription.pull (via Message.from_api_repr) converts the message data from base64 to bytes

Now:

Topic.publish does nothing to the message (message_data = {'data': message, 'attributes': attrs}) but Batch.publish makes sure it is unicode (_bytes_to_unicode(message))
_PublisherAPI.topic_publish manually encodes each message to base64 (for HTTP), which still is an effective check for bytes but transform(message['data']) is missed the cast to unicode (the GAX case also checks bytes since it goes into a BytesField)
_PublisherAPI.subscription_pull (for HTTP) manually converts from base64 back to bytes (the GAX version does something similar), note here that transform() does the right thing, i.e. bytes
Subscription.pull not updated in this PR (but should be)

$ python -c 'import json; print(json.dumps(b"a")); print(json.dumps(u"D"))'
"a"
"D"
$ python3 -c 'import json; print(json.dumps(b"a")); print(json.dumps(u"D"))'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.5/json/__init__.py", line 230, in dumps
    return _default_encoder.encode(obj)
  File "/usr/lib/python3.5/json/encoder.py", line 198, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/lib/python3.5/json/encoder.py", line 256, in iterencode
    return _iterencode(o, 0)
  File "/usr/lib/python3.5/json/encoder.py", line 179, in default
    raise TypeError(repr(o) + " is not JSON serializable")
TypeError: b'a' is not JSON serializable

$ python -c 'import base64; print(base64.b64encode(b"X")); print(base64.b64encode(u"Y"))'
WA==
WQ==
$ python3 -c 'import base64; print(base64.b64encode(b"X")); print(base64.b64encode(u"Y"))'
b'WA=='
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.5/base64.py", line 59, in b64encode
    encoded = binascii.b2a_base64(s)[:-1]
TypeError: a bytes-like object is required, not 'str'

I should be able to just handle the the bytes conversion in the transform() function right?

I should be able to just handle the the bytes conversion in the transform() function right?

You're better off making a custom transform helper so you don't need to have another branch to deal with in your transform helper.
def _base64_unicode(value):
    """Foo docstring."""
    as_bytes = base64.b64encode(value)
    # _Sadly helpers.bytes_to_unicode() doesn't take encoding as an
    # argument, so don't worry about updating it in this PR
    return as_bytes.decode('ascii')

Subscription.pull is a transport-agnostic method, so it's up to the transports to encode/decode the data. The GAX transport does this according to the proto definition, so we don't have to do anything. The HTTP transport is the only place you need to worry about encoding / decoding.

So what needs to be updated with that?

Rip out all decoding from Message.from_api_repr, it'll be handled fine by the transform() you've already done to the received messages.

Just bytes handling?

Yeah, should all be clear from above

@dhermes LMKWYT.
Subscription.pull should have been covered here right?

LGTM

Thanks @dhermes!
@tseaver is there anything else you had for this?

source: gharchive/pull-request

authors: daspecster dhermes ericbuehl tseaver

license_type: permissive

license_source: github-api


text:
Detect Intent from audio file always return empty response

Hello,
I have edited default welcome intent in the Dialogflow project to respond 'Welcome to ABC Inc'.
Tried the examples given in the following links
https://cloud.google.com/dialogflow/docs/detect-intent-audio#detect-intent-audio-java
https://cloud.google.com/dialogflow/docs/detect-intent-audio#detect-intent-audio-nodejs
In both cases it simply returns empty response. No intent is detected.
However in the Dialogflow History section also, it does not showup anything indicating that it got invoked from test client.
Also I have enabled webhook and trying to just put log message indicating it got called. But its not logging over there confirming that its not getting invoked.
The input audio file is in mp3 format only. I also tried with the opus file format with simple "Hello" audio for "en-US".
I tried to play mp3 and opus file and I could clearly hear "Hello", there was little background noise but that should not be an issue. I think, when its trying to so Speech to text its not able to get anything and hence its not getting invoked for dialogflow for detection. But thats my guess.
Can someone help what is missing over here?
Thanks,
Shailesh

This is the Java code.
package test;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.UUID;
import com.google.cloud.dialogflow.v2.AudioEncoding;
import com.google.cloud.dialogflow.v2.DetectIntentRequest;
import com.google.cloud.dialogflow.v2.DetectIntentResponse;
import com.google.cloud.dialogflow.v2.InputAudioConfig;
import com.google.cloud.dialogflow.v2.QueryInput;
import com.google.cloud.dialogflow.v2.QueryResult;
import com.google.cloud.dialogflow.v2.SessionName;
import com.google.cloud.dialogflow.v2.SessionsClient;
import com.google.protobuf.ByteString;
public class DetectFromAudio {
public static void main(String[] args) {
System.out.println("Google Dialogflow API Testing");
	/*
	 * for(Entry<String, String> env : System.getenv().entrySet()) {
	 * System.out.println(env.getKey() + " : " + env.getValue()); }
	 */

	String projectId = "testagent-265c0";
	String audioFilePath = "C:/DialogflowTest/hello.mp3";
	String sessionId = UUID.randomUUID().toString();
	String languageCode = "en-US";

	try {
		QueryResult queryResult = detectIntentAudio(projectId, audioFilePath, sessionId, languageCode);
	} catch (Exception e) {
		e.printStackTrace();
	}

}

public static QueryResult detectIntentAudio(
	    String projectId,
	    String audioFilePath,
	    String sessionId,
	    String languageCode)
	    throws Exception {
	  // Instantiates a client
	  try (SessionsClient sessionsClient = SessionsClient.create()) {
	    // Set the session name using the sessionId (UUID) and projectID (my-project-id)
	    SessionName session = SessionName.of(projectId, sessionId);
	    System.out.println("Session Path: " + session.toString());

	    // Note: hard coding audioEncoding and sampleRateHertz for simplicity.
	    // Audio encoding of the audio content sent in the query request.
	    AudioEncoding audioEncoding = AudioEncoding.AUDIO_ENCODING_LINEAR_16;
	    int sampleRateHertz = 16000;

	    // Instructs the speech recognizer how to process the audio content.
	    InputAudioConfig inputAudioConfig = InputAudioConfig.newBuilder()
	        .setAudioEncoding(audioEncoding) // audioEncoding = AudioEncoding.AUDIO_ENCODING_LINEAR_16
	        .setLanguageCode(languageCode) // languageCode = "en-US"
	        .setSampleRateHertz(sampleRateHertz) // sampleRateHertz = 16000
	        .build();

	    // Build the query with the InputAudioConfig
	    QueryInput queryInput = QueryInput.newBuilder().setAudioConfig(inputAudioConfig).build();

	    // Read the bytes from the audio file
	    byte[] inputAudio = Files.readAllBytes(Paths.get(audioFilePath));

	    // Base 64 encoding

//		    inputAudio = Base64.getEncoder().encode(inputAudio);
	    // Build the DetectIntentRequest
	    DetectIntentRequest request = DetectIntentRequest.newBuilder()
	        .setSession(session.toString())
	        .setQueryInput(queryInput)
	        .setInputAudio(ByteString.copyFrom(inputAudio))
	        .build();

	    // Performs the detect intent request
	    DetectIntentResponse response = sessionsClient.detectIntent(request);

	    // Display the query result
	    QueryResult queryResult = response.getQueryResult();
	    System.out.println("====================");
	    System.out.format("Query Text: '%s'\n", queryResult.getQueryText());
	    System.out.format("Detected Intent: %s (confidence: %f)\n",
	        queryResult.getIntent().getDisplayName(), queryResult.getIntentDetectionConfidence());
	    System.out.format("Fulfillment Text: '%s'\n", queryResult.getFulfillmentText());

	    return queryResult;
	  }
	}

}

Base64 encoding or not encoding does not matter in the output.

Reassigning, I have not worked on DialogFlow.

Did you modify the AudioEncoding to MP3?

Hi @nnegrey  ,
I have exactly the same question with a sample 'book-a-room.wav'. Tried many times with AudioEncoding.AUDIO_ENCODING_LINEAR_16/ AudioEncoding.AUDIO_ENCODING_FLAC / Unspecified, still getting null intent response. Anything I missed?
Or I need to enable Google Cloud Speech-To-Text service in order to use Dialogflow v2 detect intent?
Could you please give me some clue?

source: gharchive/issue

authors: gguuss manhaha nnegrey shaileshkulkarni

repo: GoogleCloudPlatform/java-docs-samples


text:
feat: Add GCF Java Tips

Adds GCF Tips snippets:
https://cloud.google.com/functions/docs/bestpractices/tips

Looks like I need to fix some linting issues:
[ERROR] src/main/java/Tips.java:[42] (indentation) Indentation: 'method def' child has incorrect indentation level 6, expected level should be 4.
[ERROR] src/main/java/Tips.java:[43] (indentation) Indentation: 'method def' child has incorrect indentation level 6, expected level should be 4.
[ERROR] src/main/java/Tips.java:[47] (indentation) Indentation: 'method def' child has incorrect indentation level 6, expected level should be 4.
[ERROR] src/main/java/Tips.java:[48] (indentation) Indentation: 'method def' child has incorrect indentation level 6, expected level should be 4.
[ERROR] src/main/java/Tips.java:[63,15] (naming) MethodName: Method name 'ScopesDemo' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9_]*$'.
[ERROR] src/main/java/Tips.java:[74,15] (naming) MethodName: Method name 'TipsRetry' must match pattern '^[a-z][a-z0-9][a-zA-Z0-9_]*$'.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:3.0.0:check (default) on project functions-snippets: You have 6 Checkstyle violations. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Fixed with #1586 instead.


text:
chore: cleanup unused region tags

Adding generativeaionvertexai_ region tags to replace old aiplatform_
In near future GenAI code samples, will only use generativeaionvertexai_ region tag prefix.
Description
Fixes #
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
Checklist

[ ] I have followed Sample Format Guide
[ ] pom.xml parent set to latest shared-configuration
[ ] Appropriate changes to README are included in PR
[ ] These samples need a new API enabled in testing projects to pass (let us know which ones)
[ ] These samples need a new/updated env vars in testing projects set to pass (let us know which ones)
[ ] Tests pass:   mvn clean verify required
[ ] Lint  passes: mvn -P lint checkstyle:check required
[ ] Static Analysis:  mvn -P lint clean compile pmd:cpd-check spotbugs:check advisory only
[ ] This sample adds a new sample directory, and I updated the CODEOWNERS file with the codeowners for this sample
[ ] This sample adds a new Product API, and I updated the Blunderbuss issue/PR auto-assigner with the codeowners for this sample
[x] Please merge this PR for me once it is approved

Update: Waiting for CICD check to complete

Hi @minherz - Updated the summary with bug ticket.
I don't understand something here! I believed that snippet-bot test @ https://github.com/GoogleCloudPlatform/java-docs-samples/pull/9421/checks?check_run_id=28104747679 is to prevent that degradation of user experience. Kindly help me understand.

Hi @minherz - Updated the summary with bug ticket.
I don't understand something here! I believed that snippet-bot test @ https://github.com/GoogleCloudPlatform/java-docs-samples/pull/9421/checks?check_run_id=28104747679 is to prevent that degradation of user experience. Kindly help me understand.

Thank you for providing the reasoning behind this change. The description of the linked issue states "After updating the Cloud Docs pages, we need to identify & clear unwanted region tags.".
I did a quick check and indeed majority of the  region tags with the generativeaionvertexai_ prefix are represented in the document while the region tags with the suffix aiplatform_ appear only in the Sample Browser. However, I found that the generativeaionvertexai_gemini_single_turn_multi_image region tag does not appear in any documentation. Removing its older version (aiplatform_gemini_single_turn_multi_image) means the documentation degrades.
I also see that the region tag generativeaionvertexai_gemini_get_started is not mentioned in the documentation nor in Sample Browser.
Please, address these two region tags before removing their older versions. There are two options to handle it:

Rollback changes to the two files with these region tags. Merge this PR and then address the changes to these two files in a separate PR.
Verify and fix use of these two region tags in the documentation and merge this PR.

Reassigning to @msampathkumar  to remaining address comments.

Update: I have marked the following region tags for deprecation.

region tags with the suffix aiplatform_ appear only in the Sample Browser.

Working on a fresh PR with more changes.

authors: minherz msampathkumar


text:
docker entrypoint for jetty uses ls in test.

the ls in the entrypoint script fails (as expected), but generates stderr log entries like:
7:05:40.000
17:05:40.000
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
17:05:40.000
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-2~bpo8+1-b14)
17:05:40.000
openjdk version "1.8.0_111"
17:05:40.000
ls: cannot access /var/lib/jetty/webapps/root: No such file or directory
17:05:39.000
17:05:39.000
OpenJDK 64-Bit Server VM (build 25.111-b14, mixed mode)
17:05:39.000
OpenJDK Runtime Environment (build 1.8.0_111-8u111-b14-2~bpo8+1-b14)
17:05:39.000
openjdk version "1.8.0_111"
17:05:38.000
ls: cannot access /var/lib/jetty/webapps/root: No such file or directory

@gregw Can you explain in what scenario this is happening? Is this only happening in a specific testing setup?

I did a mvn appengine:deploy on the flexible/async-rest example from java-docs-samples and the ls fails with that error message on every deploy.
The other option to this PR is to just 2>/dev/null the ls, but I think an age check is more appropriate and is what jetty does internally anyway.

authors: gregw meltsufin

repo: GoogleCloudPlatform/jetty-runtime

license_source: bigquery


text:
whereami doesn't bind to ipv6 addresses on dualstack clusters

I believe host='0.0.0.0' here results in an ipv4 only listener. I tried using the following for External Passthru NLB with ipv6 but because the container only binds to ipv4 it results in failed connections:
apiVersion: v1
kind: Service
metadata:
  name: whereami
  namespace: whereami
spec:
  ipFamilyPolicy: RequireDualStack
  ports:
  - port: 8080
    protocol: TCP
    name: http
  selector:
    app: whereami
  type: LoadBalancer

Sounds like using '::' instead of '0.0.0.0' would bind to both, or you could add a HOSTS variable to allow configuration by end users

@theemadnes what do you think?

@bourgeoisor forgot about this one - just noticed when i put in the pr for resource requests. will do this next.

@gbrayut my thinking was to use your idea of a HOST envvar, populated by a configmap that defaults to 0.0.0.0 (and also the app will default to 0.0.0.0 if the envvar doesn't exist), because :: would pin logs to ipv6 format which is a tiny bit noisier. cool?

configmap sounds like extra work (vs just hard coding a default if HOST variable is not set), but I'm fine either way. And agree 0.0.0.0 as the default currently makes sense as long as there is an easy way to override.

https://github.com/GoogleCloudPlatform/kubernetes-engine-samples/pull/1071

tricky bit was, when testing, Flask and gRPC have different preferred formats for local all-interfaces IP (:: vs [::]).

i did end up extending the ConfigMap to include a HOST env var, but the app will set 0.0.0.0 as the default if the configmap doesn't provide it. also bumped version to .22.

authors: bourgeoisor gbrayut theemadnes


text:
examples for RC with PodTemplate ref

PodTemplate is now available as a resource type, and it seems to be able to use in RC. But there are no examples, and Template is validated as required field. Still need more work?

@smarterclayton @bgrant0607

Yes, it needs more work. It isn't fully implemented. We either should finish it, or remove the field from the API for now.

It's not terrible to implement.  What's the cutoff date in your mind brian to implement it?

End of May.
If we missed that, we'd just remove ReplicationControllerSpec.TemplateRef, and add it back later with the full implementation.

@caesarxuchao Please remove ReplicationControllerSpec.TemplateRef from the v1 API for now.

authors: bgrant0607 kazegusuri nikhiljindal smarterclayton

repo: GoogleCloudPlatform/kubernetes


text:
Addons in namespace

WORK IN PROGRESS
DO NOT MERGE
additional changes to putting addons in namespaces. I'll continue working tomorrow (remove old secrets from 'default')
cc @satnam6502 @zmerlynn
@satnam6502 , you can cherry-pick my second commit if you want
(or just patch your sources).

related to #10487

Thanks for fixing the other whitespace issues. I nearly commented on the other PR but bit my tongue. :)

What's the relationship to #10487 ?
On Thu, Jul 2, 2015 at 7:37 AM, Kubernetes Bot notifications@github.com
wrote:

GCE e2e build/test passed for commit 50c1946
https://github.com/GoogleCloudPlatform/kubernetes/commit/50c1946dae2752d51b6a0dcb85cc9b08af298b53
.

Build Log
https://storage.cloud.google.com/kubernetes-jenkins/pr-logs/50c1946dae2752d51b6a0dcb85cc9b08af298b53/kubernetes-pull-build-test-e2e-gce/1578/build-log.txt
Test Artifacts
https://console.developers.google.com/storage/browser/kubernetes-jenkins/pr-logs/50c1946dae2752d51b6a0dcb85cc9b08af298b53/kubernetes-pull-build-test-e2e-gce/1578/_artifacts/
Internal Jenkins Results
http://goto.google.com/prkubekins/job/kubernetes-pull-build-test-e2e-gce//1578

—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/pull/10677#issuecomment-118052392
.

Yes, as Tim says, what the relation to the PR #10487 ?
I was hoping that we could have got #10487 merged soon-ish. I tried to find all the mysterious white space additions I could (thanks for getting the ones I missed) and the other changes you add are quite minor -- I would vote for getting #10487 merged so it can soak and then layer on the small changes afterwards. @zmerlynn does your LGTM for #10487 still stand and if yes, two TLs willing, do you think we can argue for a merge of that PR soon?

@satnam6502: I believe @marekbiskup is basically proposing you take 50c1946dae2752d51b6a0dcb85cc9b08af298b53 and incorporate it it into #10487, if you're going to continue working on it during US business hours, otherwise he's going to work on it tonight.

50c1946dae2752d51b6a0dcb85cc9b08af298b53 LGTM.

I will rebase 50c1946  in a few moments and push and also kick off an e2e. However, I am out and about for most of today in SF but I shall try to keep my laptop closeby.

Meta-comment: I'm sorry for a305269e1830b0ebc00a83af734712ab3be2cad3 and the 1000 lines of bash code that accreted after. We really need a Go program here running as an add-on controller.

@satnam6502 , do whatever you prefer. If you merge #10487, I can merge my contribution independently. Or you can patch my changes into yours.
This PR was meant only to give you additional changes that may help in getting #10487 done.

authors: marekbiskup satnam6502 thockin zmerlynn


text:
Remove layers of indirection between apiinstaller and resthandler

Make the RESTHandler feel more go-restful, set the stage for adding
new types of subresource collections.
Extracted from #4248 (which is about status)

@smarterclayton thoughts on who might be good to review?

Nikhil or anyone who wants to get more involved in the api server, @davidopp maybe

On Feb 9, 2015, at 7:04 PM, Maxwell Forbes notifications@github.com wrote:
@smarterclayton thoughts on who might be good to review?
—
Reply to this email directly or view it on GitHub.

Nikhil for now, feel free to reassign---thanks!

I've got another commit coming to this pull to remove <-chan apiserver.RESTResult.  Will make it so that we can reuse the REST storage in many contexts without having to have async behavior.  In the future, if we want to do cancellation we'll be doing it through the api.Context stuff.

@bgrant0607 the combination of this change (and the proposed) will dramatically simplify the generic code path - in my other pull I have pods mostly refactored, and the amount of custom code is dropping fast.

Awesome. Thanks. Will take a look, though I'm in meetings all day, so don't block on me.

Rest will look a lot like the client interface again.

On Feb 10, 2015, at 11:39 AM, Brian Grant notifications@github.com wrote:
Awesome. Thanks. Will take a look, though I'm in meetings all day, so don't block on me.
—
Reply to this email directly or view it on GitHub.

Lots of good stuff here. LGTM.
@nikhiljindal Any comments?

Ok, this is ready for review (running e2e now).  This completely removes the RESTStorage interfaces from having to know about asynchronous behavior, which means those APIs now look like client apis, which means that we can much more cleanly substitute registry for client APIs again.  This sets the stage for generic registries which can now service RESTStorage requests directly without having to wrap async behavior.

I am out of office till Thursday.
Please do not wait for me.
On Feb 10, 2015 10:04 AM, "Clayton Coleman" notifications@github.com
wrote:

Ok, this is ready for review (running e2e now). This completely removes
the RESTStorage interfaces from having to know about asynchronous behavior,
which means those APIs now look like client apis, which means that we can
much more cleanly substitute registry for client APIs again. This sets the
stage for generic registries which can now service RESTStorage requests
directly without having to wrap async behavior.
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/pull/4263#issuecomment-73749747
.

I've got a mostly clean e2e run, trying to figure out whether the e2e one is a flake or not

I have seen all of the different tests in e2e pass, just not in one run.

@brendandburns if you have time to review I would appreciate it - this cleanup is important for getting to a single etcd / registry / rest implementation.

Thanks @smarterclayton. Looking at this now.

Lgtm thanks!

LGTM, also.
Note: This fixes #2031.

Pushed one more commit to clearly return an error if name is empty.

@nikhiljindal opened #4387 to handle rename of "TryAgainLater" to "ServerTimeout" (as distinct from RequestTimeout and GatewayTimeout)

This broke cross namespace queries (for which we apparently have zero test cases).  Fix incoming...

authors: bgrant0607 mbforbes nikhiljindal smarterclayton


text:
Fix log retrieval in secrets e2e

We no longer need the sleep statement now that logs for successfully completed containers can be read.

@zmerlynn PTAL

LGTM

Looks like the travis failure is a flake in the unit tests for the cloudprovider package.  Gonna amend the commit and :game_die: :game_die:

authors: pmorie zmerlynn


text:
Update README.md to add Windows batch line version

Fixing a few typos
On Windows shell, you can't use backticks to catch the result of a program call as a string, I believe the standard way to do that is to use the for command to catch the result in a variable and then use it. I included that version in the "Deploying Open Match" section, as the current version does not work on Windows.

/gcbrun

authors: LitchiSzu jeremyje

repo: GoogleCloudPlatform/open-match


text:
Testing: tweaks to soak test

Description
This PR:

Moves launcher into a cmd directory
Adds a presubmit.gcl config so that we can have kokoro test the launcher on each PR
Increases the default TTL to 30 minutes to accommodate Windows being slower to start up
moves README content to the soak_test directory.

Related issue
b/278590309
How has this been tested?
none, automated tests are coming in a follow up change inside google3
Checklist:

Unit tests

[X] Unit tests do not apply.
[ ] Unit tests have been added/modified and passed for this PR.

Integration tests

[X] Integration tests do not apply.
[ ] Integration tests have been added/modified and passed for this PR.

Documentation

[ ] This PR introduces no user visible changes.
[ ] This PR introduces user visible changes and the corresponding documentation change has been made.

Minor version bump

[X] This PR introduces no new features.
[ ] This PR introduces new features, and there is a separate PR to bump the minor version since the last release already.
[ ] This PR bumps the version.

The main file should be named .../cmd/launcher/main.go.

OK, done

repo: GoogleCloudPlatform/ops-agent


text:
add comment for clarification of authentication sample in docs

add the comment about default credentials/scope for adding to this sample:
https://cloud.google.com/iot/docs/how-tos/credentials/authenticating-applications#iot-core-service-accounts-php
Currently it's pointing to list_registries.php, but to keep it consistent with other samples, we will point it to create_registry.php instead and add this comment.

But it looks to me like the other samples are using a getClient method, and not a create_registry method, for those samples.

@bshaffer Go, Java, and Ruby don't have explicit getClient methods and so the examples given are within the context of the create_registry methods. For the other languages (such as Node, Python, and C#) the samples were written with an explicit getClient method defined. PHP falls under the former and we wanted to point the docs from list_registries to create_registry
After thinking about this some more, I'm not entirely sure what the original reasoning was behind having explicit/implicit client retrieval for different languages and will follow up. In the meantime, we're trying to at least minimize the inconsistency by switching the PHP docs to point at create_registry.php instead.

Fine with me! Thank you.

authors: bshaffer hongalex

repo: GoogleCloudPlatform/php-docs-samples


text:
Unable to add connection for DB2

data-validation connections add --secret-manager-type GCP --secret-manager-project-id db2_dvt_db_info --connection-name db2 DB2 --host '1' --port '60050' --database ' ' --user ' ' --password ' ' --url ibm_db_sa:db2://:60050/
Traceback (most recent call last):
File "/Users/manojedward/anaconda3/lib/python3.11/site-packages/data_validation/clients.py", line 251, in get_data_client
data_client = CLIENT_LOOKUPsource_type
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/manojedward/anaconda3/lib/python3.11/site-packages/data_validation/clients.py", line 43, in get_client_call
raise Exception(msg)
Exception: pip install ibm_db_sa
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/manojedward/anaconda3/bin/data-validation", line 8, in
sys.exit(main())
^^^^^^
File "/Users/manojedward/anaconda3/lib/python3.11/site-packages/data_validation/main.py", line 708, in main
run_connections(args)
File "/Users/manojedward/anaconda3/lib/python3.11/site-packages/data_validation/main.py", line 670, in run_connections
_ = clients.get_data_client(conn)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/manojedward/anaconda3/lib/python3.11/site-packages/data_validation/clients.py", line 257, in get_data_client
raise exceptions.DataClientConnectionFailure(msg)
data_validation.exceptions.DataClientConnectionFailure: Connection Type "DB2" could not connect: pip install ibm_db_sa
(base) manojedward@QINC-150 ~ %

Hello @manojredward! Error happened because you need to install a Python library that is listed there. Could you please make sure you have it installed and retry the command to add the DB2 connection?
Connection Type "DB2" could not connect: pip install ibm_db_sa

Earlier we have installed ibm_db_sa and ended up with above issue. After that we have install SQLAlchemy in docker and able to resolve that


text:
Add ndb test

R: @jonparrott
Hi Jon, I'm about to add a number of tests covering our supported APIs.  Could you take a quick look at this one and see if it fits with the pytest way of writing tests?

Looks mostly good, one nit. Please also squash your commits.


text:
Tolerations not applied to pods

K8s version: 1.17
spark-operator: v1beta2-1.2.0-3.0.0
example adding a Toleration and NodeSelector:
apiVersion: "sparkoperator.k8s.io/v1beta2"
kind: SparkApplication
metadata:
  name: spark-pi-example
  namespace: spark-jobs
spec:
  type: Scala
  mode: cluster
  image: "gcr.io/spark-operator/spark:v3.0.0"
  imagePullPolicy: Always
  mainClass: org.apache.spark.examples.SparkPi
  mainApplicationFile: "local:///opt/spark/examples/jars/spark-examples_2.12-3.0.0.jar"
  sparkVersion: "3.0.0"
  restartPolicy:
    type: Never
  volumes:
    - name: "test-volume"
      hostPath:
        path: "/tmp"
        type: Directory
  tolerations:
  - key: node-restriction.kubernetes.io/workloads
    operator: "Equal"
    value: "spark"
    effect: "NoSchedule"
  nodeSelector:
    node.kubernetes.io/instancegroup: spark
  driver:
    cores: 1
    coreLimit: "1200m"
    memory: "512m"
    labels:
      version: 3.0.0
    serviceAccount: sparkoperator-spark
    volumeMounts:
      - name: "test-volume"
        mountPath: "/tmp"
  executor:
    cores: 1
    instances: 1
    memory: "512m"
    labels:
      version: 3.0.0
    volumeMounts:
      - name: "test-volume"
        mountPath: "/tmp"

NodeSelector works, but the pod is not provisioned with tolerations requested in spec.
Only the default tolerations show up.

Ah, sorry. I was confused by docs.
https://github.com/GoogleCloudPlatform/spark-on-k8s-operator/blob/de0bdf1275e77b6d053d408c045c427aa94a42ab/docs/user-guide.md#using-tolerations seems to be up to date.
while there is some documentation under API that reads:
(Optional)

Tolerations specifies the tolerations listed in “.spec.tolerations” to be applied to the pod.

hi @sepulworld could you share an example related to this? Thanks in advance.

authors: sepulworld willimoka


text:
Sidecar didn't terminated after the driver finished

Hey. can anyone help to check why my sidecar container didn't terminated ( pod status is NotReady) after the spark job has finished.

This is my yaml configuration

Thanks very much

@everydots can you confirm that the sidecar was running to begin with? As well, it's helpful to report events observed in that namespace around that time.
I would recommend creating a very simple (ie sleep 5) sidecar to confirm that this is actually related to spark-operator in the first place.

authors: aneagoe everydots


text:
Updating readme

The port for postgres was incorrect and set to the mysql port. This was updated along with removing extra postgres config from the end of the mysql line
./cloud_sql_proxy -instances=${PGSQL_CONN_NAME}**=tcp:5432**

I signed it!


text:
how to set authorization credentials for openstack?

I read the manual in the readme, but this information is not there ...

I see in code it's using openstack.AuthOptionsFromEnv()
	authURL := os.Getenv("OS_AUTH_URL")
	username := os.Getenv("OS_USERNAME")
	userID := os.Getenv("OS_USERID")
	password := os.Getenv("OS_PASSWORD")
	passcode := os.Getenv("OS_PASSCODE")
	tenantID := os.Getenv("OS_TENANT_ID")
	tenantName := os.Getenv("OS_TENANT_NAME")
	domainID := os.Getenv("OS_DOMAIN_ID")
	domainName := os.Getenv("OS_DOMAIN_NAME")
	applicationCredentialID := os.Getenv("OS_APPLICATION_CREDENTIAL_ID")
	applicationCredentialName := os.Getenv("OS_APPLICATION_CREDENTIAL_NAME")
	applicationCredentialSecret := os.Getenv("OS_APPLICATION_CREDENTIAL_SECRET")

Yes look like it's not in readme.
Need add to openstack doc in README...

authors: jidckii sergeylanzman

repo: GoogleCloudPlatform/terraformer


text:
Correct bucket reference in generated  variables.tf

The generated variables.tf currently looks like:
data "terraform_remote_state" "local" {
  backend = "gcs"

  config = {
    bucket = "gs://blah-tf-state"
    prefix = "."
  }
}

This change corrects the "bucket" field to:
data "terraform_remote_state" "local" {
  backend = "gcs"

  config = {
    bucket = "blah-tf-state"
    prefix = "."
  }
}

Without this change, terraform complains that it cannot find
this resource.
terraform plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.

data.terraform_remote_state.local: Refreshing state...

Error: Error loading state error

  on variables.tf line 2, in data "terraform_remote_state" "local":
   2:   backend = "gcs"

error loading the remote state: Failed to open state file at
gs://gs://blah-tf-state/default.tfstate: googleapi: got HTTP response
code 400 with body: <?xml version='1.0'
encoding='UTF-8'?><Error>InvalidBucketName<Message>The specified
bucket is not valid.</Message>Invalid bucket name:
'gs:'</Error>

Should have made this change in https://github.com/GoogleCloudPlatform/terraformer/commit/0b249339a1638c634718a67ba952f9750947abf8
but overlooked it... my bad.

Hold on, there might be a better way to do this. Not ready for review just yet

Alright, ready for review for reals. Also tested by building + running locally


text:
Add Target Modules flag to allow passing in the target modules to the LoRa Fine Tuning

This PR extends the Vertex Model Garden's PEFT examples to allow passing in a list of Target Modules when running the Causal Language Modeling LoRa Fine Tuning Scripts or the Instruct LoRa Fine Tuning Scripts. The scripts currently allow passing several flags, however, the target modules are hard-coded in each script, which limits what layers we can affect during LoRa training. This PR adds the target_modules flag as a CSV list flag, to allow the user to pass in whichever target modules they would like to train for various models. This allows the user greater flexibility in their training cycles.
If you are opening a PR for Community Content under the community-content folder:

[x] Make sure your main Content Directory Name is descriptive, informative, and includes some of the key products and attributes of your content, so that it is differentiable from other content
[x] The main content directory has been added to the CODEOWNERS file under the Community Content section, pointing to the author or the author's team.
[x] Passes all the required formatting and linting checks. You can locally test with these instructions.

I've signed the CLA ✅

repo: GoogleCloudPlatform/vertex-ai-samples


text:
Add version disclaimer on top of every page.

Addresses https://github.com/GoogleContainerTools/kpt/issues/1662 for old site.

This is too subtle and will be ignored. I suggest having a banner at the top with working such as:
"This is the documentation for version 0.39.  For versions > 1.0.0-alpha.1, see kpt.dev."
You can wordsmith as you see fit.

lgtm, please wait for @mikebz to review as well.

authors: etefera frankfarzan

repo: GoogleContainerTools/kpt


text:
Change fidelity tests to use new default environment lighting

When we added Khronos models to our fidelity tests in #360 , we made a decision to use an environment map when staging most of them because our default environment lighting was pretty bad and Filament had no default IBL. As of #472 we have much improved default lighting conditions in <model-viewer>. We should change the environment lighting used in our tests to be based on the new default.

Here is an archive containing the equirectangular HDR environment map equivalent of the default lighting currently being used in <model-viewer>: lightroom_14b.zip
The three files included are:

lightroom_14b.exr - original, in EXR format
lightroom_14b.hdr - converted to HDR format
lightroom_14b_offset.hdr - HDR offset by 90º

@cdata I'm guessing we'll still want to keep a few with other environment maps, just for breadth of testing, right? Anyway, this also seems like good fodder for the 0.5 rendering work.

authors: cdata elalish

repo: GoogleWebComponents/model-viewer


text:
Fix secrets manager ARN reference

Fixed the ARN string for secrets manager in the example

Thanks for the fix @agusl88 .

license: MIT


text:
What is the password for the root of the container Open5gs

Not able to install some iperft on open5gs-am
i try to add a user but i dont have the password
have no name!@open5gs-amf-66f6857b9f-6hv99:~$ su
Password:

I have no name!@open5gs-amf-66f6857b9f-6hv99:~$

Hi Nicolas,
This bug is not related with open5gs chart.
Containers are not VMs. For security reasons the default user of the container is not root and sudo is not installed in the image. I recommend you to use sidecar containers for your case or create your own open5gs image with the tools you need already installed.
For the second option, you can take a look to our open5gs Dockerfile at:
https://github.com/Gradiant/openverso-images/blob/main/images/open5gs/Dockerfile

authors: cgiraldo nicolas-gagnon

repo: Gradiant/openverso-charts


text:
Support for ${version} and ${content} in applicationDescriptor files

Code creates a new temporary file from applicationDescriptor file and replaces tokens

Thanks for the PR! Seems like a good solution.
I've manually merged this one into the 'develop' branch to make sure the merge would be ok.

authors: SlevinBE avzkharoff

repo: GradleFx/GradleFx


text:
Re: Texture Overhaul

Apologies for earlier

Hey, I just need you to resolve these conflicts, otherwise looks good!

whoops I think I messed this up

repo: GreateBeyondTheHorizon/Greate


text:
🛑 Server Ultra is down

In 0763ce5, Server Ultra (https://ultra.greathost.ro) was down:

HTTP code: 403
Response time: 1349 ms

Resolved: Server Ultra is back up in 45c83d0 after 10 minutes.

repo: GreathostRo/upptime


text:
Material ID's, MetaItem Restructure and texture Changes

Metaitems, Textures, Dependency changes and MetaItems class restructure.

Sorry Didn't mean to close the pull request, I have reverted the changes from the metaItems and will use that from now on :)

@jude123412 yeah figured it out haha

yup metaitems will be made like that from now on :)

should all be fixed... hopfully

Closing pull request as its a mess, Ill make a new one.

repo: Gregtech-Beyond/gregtech-beyond-core


text:
feat: make grpc insert requests in a batch

I hereby agree to the terms of the GreptimeDB CLA
What's changed and what's your intention?
Trying to optimize Prometheus remote write.
Now the remote write path is like this:
remote write     ->    grpc insert     ->   `DistInserter`(splits inserts here)      -> Datanodes
(single request)     (single request)       (multiple batching requests)                (parallel)
                                            (other protocols insertions all go here)

Before:
remote write     ->    grpc insert     ->   `DistTable::insert`(splits inserts here) -> Datanodes
(single request)     (multiple requests,    (single request)                         (single request)
                      for each table)

This PR also:

makes the inserts in Datanode GRPC interface parallel.
makes the table "create-on-insert" parallel (we have to add a distributed lock in Metasrv)

will be changed to use procedure soon

makes the gRPC server no longer blocks

Checklist

[ ]  I have written the necessary rustdoc comments.
[ ]  I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

@fengjiachun PTAL

repo: GreptimeTeam/greptimedb


text:
fix: fix EntityTooSmall issue

I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
What's changed and what's your intention?

fix S3 returns EntityTooSmall error issues
Add a unit test for this case.

Checklist

[ ] I have written the necessary rustdoc comments.
[ ] I have added the necessary unit tests and integration tests.
[ ] This PR requires documentation updates.

Maybe elaborate the reason why the entity will be 256KB if chunk parameter is not provided in the pr detail.


text:
feat: collect filters metrics in scanner

I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
What's changed and what's your intention?
This PR adds ReaderFilterMetrics and collects it for SeqScan and UnorderedScan.
Checklist

[ ] I have written the necessary rustdoc comments.
[ ] I have added the necessary unit tests and integration tests.
[ ] This PR requires documentation updates.

@coderabbitai summary


text:
Support opening files with alternate encoding

The behavior changed in python3 such that open(path) as f: yaml.load(f) doesn't work for utf-8 encoded files. Would it be possible to add an option to specify an alternate encoding which is given to the open call?

Implemented in 7a1e826a4b0178967c3fad07557ab08a6238b4e0 will be part of next release.

authors: Grokzen garrettheel

repo: Grokzen/pykwalify


text:
MongoId strings not returning.

I have a Ground subscription that contains MongoIDs in string form as the main id. When I do a find, it lists it out, however when I do a find or findOne on the id, it doesn't return anything.
Here's an example of one that fails:
DRAFTS.findOne({_id:"58d887874e0ca825443236cf"})
I suspect that it has something to do with mongo-id package and this function: MongoID._looksLikeObjectID(id)
I haven't been able track it down at all though.

Does DRAFTS.findOne('58d887874e0ca825443236cf') work as expected?

No, it behaves the same way that {_id:"58d887874e0ca825443236cf"} is. If the id is not 24 characters, then it works as expected. It's only when there are 24 characters where it fails.

The problem is in the MongoID package, idStringify added '-' before the id when fetching the document. LINE 64
MongoID.idStringify = function (id) {                                                                 // 56
  if (id instanceof MongoID.ObjectID) {                                                               // 57
    return id.valueOf();                                                                              // 58
  } else if (typeof id === 'string') {                                                                // 59
    if (id === "") {                                                                                // 60
      return id;                                                                                // 61
    } else if (id.substr(0, 1) === "-" || // escape previously dashed strings                         // 62
               id.substr(0, 1) === "~" || // escape escaped numbers, true, false                      // 63
               MongoID._looksLikeObjectID(id) || // escape object-id-form strings                     // 64
               id.substr(0, 1) === '{') { // escape object-form strings, for maybe implementing later
      return "-" + id;                                                                                // 66
    } else {                                                                                // 67
      return id; // other strings go through unchanged.                                               // 68
    }                                                                                // 69
  } else if (id === undefined) {                                                                      // 70
    return '-';                                                                                // 71
  } else if (typeof id === 'object' && id !== null) {                                                 // 72
    throw new Error("Meteor does not currently support objects other than ObjectID as ids");          // 73
  } else { // Numbers, true, false, null                                                              // 74
    return "~" + JSON.stringify(id);                                                                  // 75
  }                                                                                // 76
};

Meteor Minimongo works fine since it stores the ids with '-' prefix, but not for ground db.

It seems we should not use the custom strid, we should use MongoID.idStringify instead.
https://github.com/GroundMeteor/db/blob/grounddb-caching-2016/lib/client/ground.db.js#L40

@Chun-Yang did you ever find a solution for this issue? We encounter the same with id's generated by:
new Meteor.Collection.ObjectID()._str

for example an ID:
8298e2f637a1a4b9e114abe8

24 characters it is.
If the issue is not resolvable it would be good to throw an error when an unrecognized ID type is sent into find() and findOne() methods. That way you understand as a developer that this is an ID issue and not a synchronization / data issue.

authors: Chun-Yang CyberCyclone lucfranken raix

repo: GroundMeteor/db

license: mit


text:
Instalacja

Gdzie to instalować

https://github.com/Grover-c13/MultiAdmin#servermod-installation

a multiadmin bo nie rozumiem gdzie i jak

Hey man, i cant speak polish sorry. The instructions are all in the readme.


text:
不踩梯子国内能用吗？

不踩梯子国内能用吗？

api key不限制，但是注册账号限制。csdn下注册教程很简单。


text:
🛑 Fownhost Blog is down

In 8f8b53f, Fownhost Blog (http://blog.fownhost.ga) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Fownhost Blog is back up in 2b2f96e.

repo: Guangsudalao/uptime


text:
Improve the toggle and responsiveness in the page

I see that their is a toggling issue in your website , let me fix it as well as i will also readjust the responsiveness of your page , if you think that their are any other issue to be solved please let me know
In addition please allow me to contribute to your repo.

#108

authors: Dipeshdahiya Gyanthakur

license: Unlicense


text:
Remove Package Info In Project Files

package main.java;

/**
 * Implementierung der Klasse BinTree nach den Vorgaben des KCs der gymnasialen Oberstufe (Niedersachsen).
 *
 * @author Alexander Reimer (GitHub: Alexander-Reimer, email: alexander.reimer2357@gmail.com)
 * @author Yannick Weigert (GitHub: GelbEinhalb, email: yannick@gelbeinhalb.com)
 * @version 09.03.2024
 *
 */
public class BinTree<Type> {

    private Type content;
    private BinTree<Type> left;
    private BinTree<Type> right;

}

should be:
/**
 * Implementierung der Klasse BinTree nach den Vorgaben des KCs der gymnasialen Oberstufe (Niedersachsen).
 *
 * @author Alexander Reimer (GitHub: Alexander-Reimer, email: alexander.reimer2357@gmail.com)
 * @author Yannick Weigert (GitHub: GelbEinhalb, email: yannick@gelbeinhalb.com)
 * @version 09.03.2024
 *
 */
public class BinTree<Type> {

    private Type content;
    private BinTree<Type> left;
    private BinTree<Type> right;

}

for all projects.

Fixed


text:
ESP32 ошибка при инициализации (не хватает места)

// if (_addr + _size + 1 > (uint16_t)EEPROM.length()) return 2;  // не хватит места

необходимо комментировать строку в файле EEManager.h т.к EEPROM.length() ничего не выдает

Ой да в жеппу эту есп 32! Где ни глянь, дыра или несовместимость...

Ан нет, lenght() работает корректно
#include <EEPROM.h>
void setup() {
  Serial.begin(115200);
  EEPROM.begin(400);
  delay(3000);
  Serial.println(EEPROM.length());  // вывод 400
}

void loop() {
}

Либо у вас слишком старая версия ядра, либо аппаратные проблемы, либо забыт EEPROM.begin(), см. самое начало README

Спасибо за отклик. Попробую на другой железке.
вт, 24 янв. 2023 г., 20:54 AlexGyver @.***>:

Ан нет, lenght() работает корректно
#include <EEPROM.h>
void setup() {
Serial.begin(115200);
EEPROM.begin(400);
delay(3000);
Serial.println(EEPROM.length());  // вывод 400
}
void loop() {
}
Либо у вас слишком старая версия ядра, либо аппаратные проблемы, либо
забыт EEPROM.begin(), см. самое начало README
https://github.com/GyverLibs/EEManager#совместимость
—
Reply to this email directly, view it on GitHub
https://github.com/GyverLibs/EEManager/issues/3#issuecomment-1402354384,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA6PBXVURLFH2BZVOB4SJT3WUAJNDANCNFSM6AAAAAAUFKIAEM
.
You are receiving this because you authored the thread.Message ID:
@.***>

authors: GyverLibs mqstarx

repo: GyverLibs/EEManager


text:
🛑 Unsere Schulkindbetreuung is down

In e539ba6, Unsere Schulkindbetreuung (https://unsere-schulkindbetreuung.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Unsere Schulkindbetreuung is back up in f470bd6 after 5 minutes.


text:
🛑 H2 invent Support is down

In a934750, H2 invent Support (https://supportchat.h2-invent.com) was down:

HTTP code: 502
Response time: 700 ms

Resolved: H2 invent Support is back up in 5f64fec after 17 minutes.


text:
🛑 Telly is down

In 5923ed6, Telly ($TLY) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Telly is back up in d83a346.

repo: HDVinnie/TrackerHub


text:
🛑 Telly is down

In 5b22c94, Telly ($TLY) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Telly is back up in 02cc518.


text:
🛑 SkipTheTrailers is down

In edc4f96, SkipTheTrailers ($STT) was down:

HTTP code: 0
Response time: 0 ms

Resolved: SkipTheTrailers is back up in 2e76378.


text:
🛑 SkipTheCommericals is down

In 5c8349a, SkipTheCommericals ($STC) was down:

HTTP code: 0
Response time: 0 ms

Resolved: SkipTheCommericals is back up in bb17d8d.


text:
⚠ SceneTime has degraded performance

In b64961b, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 3105 ms

Resolved: SceneTime performance has improved in 742774d after 6 minutes.


text:
⚠ SceneTime has degraded performance

In 9b92b77, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 2963 ms

Resolved: SceneTime performance has improved in 13c2faf after 6 minutes.


text:
⚠ MorethanTV has degraded performance

In d3a5a83, MorethanTV ($MTV) experienced degraded performance:

HTTP code: 502
Response time: 10998 ms

Resolved: MorethanTV performance has improved in 077e297 after 8 minutes.


text:
⚠ SceneTime has degraded performance

In 4db4ad0, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 1134 ms

Resolved: SceneTime performance has improved in 2edfa58 after 6 minutes.


text:
⚠ SceneTime has degraded performance

In 8d4e8fa, SceneTime ($ST) experienced degraded performance:

HTTP code: 200
Response time: 1233 ms

Resolved: SceneTime performance has improved in 1176135 after 6 minutes.


text:
🛑 SkipTheCommericals is down

In 3c1d80f, SkipTheCommericals ($STC) was down:

HTTP code: 0
Response time: 0 ms

Resolved: SkipTheCommericals is back up in 33036d5.


text:
🛑 SkipTheCommericals is down

In fd000cc, SkipTheCommericals ($STC) was down:

HTTP code: 0
Response time: 0 ms

Resolved: SkipTheCommericals is back up in 6e09bdd.


text:
🛑 Telly is down

In 8033cf2, Telly ($TLY) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Telly is back up in dc1cfa6.


text:
Add copyright to VLMD schema at schema (ie root) and field lvl

Needed as some CDEs have copyrights

Here are a list of CDEs with copyright documents. Need to think about how to represent this: https://heal.nih.gov/data/common-data-elements-repository?copyright=1

Upon further discussion with @pschumm  --- for now -- going to have a copyrightUrl property nested underneath the standardMappings.instrument object. This will allow us to move fwd with creating cde documents on the platform

Actually, the url property (standardsMappings[0].instrument.url) I think works well with this for the use case of copyrighted HEAL CDEs (at least). So for now, going to take off the v0.2.0 label

I'm closing this out -- the use case was related to HEAL CDEs. Copyrights can be referenced in the url field

See #54 for the above

repo: HEAL/heal-metadata-schemas


text:
doc fixes

Some doc fixes + removed a compilation error from debug! macros in asynchro_fast.rs. I tried to homogenize the documentation, so there's a lot of simple corrections. Please tell me if something needs to be fixed. Thanks again for your work! I will close the other PR I had opened since some good amount of time has passed...

Thanks, this looks great!
I'll include it in the bugfix release that I hope to wrap up within the next few days .

authors: HEnquist daniellga

repo: HEnquist/rubato


text:
Which optimisations are permissible?

At the HIPERFIT reading group meeting, we discussed whether it is permissible for the optimiser to convert non-terminating programs into terminating ones.  I am still not convinced one way or the other (but currently the Futhark compiler will indeed do that).
Basically, the question is whether the two propositions "the unoptimised program computes V" and "the optimised program computes V" are connected by implication or bi-implication.
If we want this to be a bi-implication, we may hinder ourselves quite a bit, for example by not permitting removal of a division expression (even as dead code) unless we can statically prove that the divisor is non-zero.

That's bit of red herring question.
An 'optimiser' changes program semantics anyway -- its very purpose is to
change a program (with a semantics and cost model) into another one subject
to keeping something invariant.   The most important thing, I believe, is
being able to say something precise as to what an optimizer keeps invariant
and what it may change: e.g
"It rearranges data structures and computations resulting in changes (with
fingers crossed and a couple of Hail Marys: improvements) of resource
consumption, but it'll always have the same (infinitary) external behavior."
Or
"It does the above, plus furthermore doesn't increase space consumption
(absolutely or asymptotically) -- no space leaks."
Or
"It preserves (finitely observable) external behavior, and futhermore, it
never makes run time performance worse; it may improve run time
performance, including the possibility of returning something where the
original runs on for ever (in both cases according to the program
semantics, not some implementation machine)."
The latter says the optimizer may return a program that terminates more
often than the original -- this arguably falls into the category of
"improving run time".
Invariants preserved include those maintaining certain performance
relations between pairs of input programs; e.g. "the optimizer always
yields a program that is at least as fast for source program e[c/x] as for
source program let x = c in e[x]".
Fritz
On Tue, Apr 14, 2015 at 2:27 PM, Troels Henriksen notifications@github.com
wrote:

At the HIPERFIT reading group meeting, we discussed whether it is
permissible for the optimiser to convert non-terminating programs into
terminating ones. I am still not convinced one way or the other (but
currently the Futhark compiler will indeed do that).
Basically, the question is whether the two propositions "the unoptimised
program computes V" and "the optimised program computes V" are connected by
implication or bi-implication.
If we want this to be a bi-implication, we may hinder ourselves quite a
bit, for example by not permitting removal of a division expression (even
as dead code) unless we can statically prove that the divisor is non-zero.
—
Reply to this email directly or view it on GitHub
https://github.com/HIPERFIT/futhark/issues/47.

Determining how the optimiser may change edge cases (or modifying the language such that edge cases become impossible, e.g. by totality) is exactly the issue here.
I realised that the issue will in fact crop up with something even simpler than dead code elimination - in the expression a[-1] + diverge(), it is based on evaluation order whether the program terminates with a range error or diverges, and Futhark does not specify evaluation order.
My conclusion is to not worry much about this for now, since this seems like a profound research question, and it is mostly orthogonal to what we try to do with Futhark.

Different kinds of nontermination cannot be distinguished.  An invalid/nonterminating program may become terminating through optimisation.  There is no reason to spend more cycles on this.

authors: Athas henglein

repo: HIPERFIT/futhark

license: isc


text:
gguf版本的量化選項

可以多提供一些量化選項出來嗎
例如fp16
以及我想要的Q5_K_M

由于我们是使用bf16训练，建议您直接按照bf16格式进行加载，无需转换到fp16
由于llama.cpp的量化格式众多，我们目前只提供了q4_0和q2_k两种相对主流的量化格式，您也可以参考文档中的这部分自行进行量化

authors: CRGBS jubgjf

repo: HIT-SCIR/huozi


text:
Bug: Reset password fixed

Issue that this pull request solves
Closes: #989
Proposed changes
Reset password functionality added as per given requirement
Screenshots
https://github.com/user-attachments/assets/656a55de-e1be-4b0c-aba8-052a7b6103d8

Hey @Kajol-Kumari
Please review the request :)

@BHS-Harish

52 file changes, this pr has a lot of unnecessary changes, can u please clean it?
The build is failing please fix it.

When i changed particular file within a folder that shows as the entire folder were changed that is the reason why 52 files were changed

@BHS-Harish

52 file changes, this pr has a lot of unnecessary changes, can u please clean it?
The build is failing please fix it.

When i changed particular file within a folder that shows as the entire folder were changed that is the reason why 52 files were changed

You can add particular files only under using git add <file_path1> <file_path2> ... instead of doing git add . this will avoid any unnecessary file change to come under the pr

Okay let me close the current pr and raise new one

authors: BHS-Harish Kajol-Kumari

repo: HITK-TECH-Community/Community-Website


text:
added goal visualization to planner_manager

Changed the unused bound_pub to be goal_pub and publish a marker at the goal state upon MaybeRequestTrajectory() call. Updated the position-velocity manager launch file to reflect the change of bound_pub to goal_pub (and corresponding topics).

Updated software_demo.launch with the param and args and removed prints and made changes to VisualizeGoal() function.

Fixed const issue.

Software demo runs!

repo: HJReachability/fastrack


text:
Heizungsgruppe in Homekit mit Boost

Hi zusammen,
ich habe 2 HmIP-eTRV und einen HmIP-WTH-2 in einer Heizungsgruppe. Alle Geräte sehe ich in RedMatic im Homematic Node gelistet (inkl HmIP-HEATING für die Gruppe), aber nur die echten Geräte und nicht die virtuelle Gruppe können in Homekit angezeigt werden. Daher habe ich bisher nur den WTH-2 aktiviert.
Wenn ich den Boost in Homekit aktiviere, dann wird der an den WHT-2 übertragen (Zeit tickt runter), aber die anderen Geräte in der Heizungsgruppe bekommen davon nichts mit. Direkt am Gerät und aus der WebUI via Heizungsgruppe überträgt sich auch der Boost an die eTRV korrekt.
Ist das ein Bug in RedMatic oder fehlt einfach nur das zusätzliche Gerät HmIP-HEATING, um alles gemeinsam zu steuern?

Bin mir doch etwas unschlüssig ob es sinnvoller ist die Gruppen zu integrieren oder ob ich doch lieber was Einbau dass beim Aktivieren des Boost an einem Thermostaten auch ein Befehl an alle verknüpften Heizungen gesendet wird.
Problem bei den Gruppen: Ich kann nicht (mit vertretbarem Aufwand) auslesen welche Geräte Teil der Gruppe sind und somit kann ich nicht nachschauen ob irgendeine Heizung grade aufgedreht ist. Das brauch ich aber damit in der Home App dieser Kreis grün oder rot angezeigt wird je nachdem ob im Moment geheizt wird oder nicht.

Hm, ich bin noch bei 1.10.5 und konnte noch nicht den upgrade machen. Beim rumspielen an der Heizung ist mir aber zusätzlich noch bewusst geworden, dass nicht nur der Boss nicht in die Gruppe weitergereicht wird, sondern auch die anderen Einstellungen am WTH-2 nicht an die restlichen Geräte der Gruppe durchgereicht werden.
Wenn das nun für Boost gelöst ist, gehe ich davon aus, dass dies dann auch für die anderen Kanäle umgesetzt werden müsst.
Ich kann ja auch selber mal was basteln, bräuchte da aber ein wenig Hilfe, wie ich die Kanäle der Gruppe analysieren kann. Da fehlt mir noch das Wissen.

dass nicht nur der Boost nicht in die Gruppe weitergereicht wird, sondern auch die anderen Einstellungen am WTH-2 nicht an die restlichen Geräte der Gruppe durchgereicht werden.

Doch, die sollten weitergegeben werden insofern eine Direktverknüpfung besteht. Funktioniert bei mir zumindest. Passiert allerdings nicht sofort sondern dauert bis zu 180sek iirc.

Ah, so geduldig war ich jetzt nicht. Gibt es da einen Grund für die Verzögerung? Das fällt ja normalerweise niemandem auf (wer schaltet schon seine Heizung im selben Raum per Smartphone, wenn man das auch direkt machen kann?)
Zumindest der Boost funktioniert mit der Anpassung m.E. einwandfrei. Daher könnte der Issue geschlossen werden.

@hobbyquaker können wir hier doch wieder aufmachen?
Ich habe jetzt mal getestet, wie das mit nur zwei Thermostaten (HmIP-eTRV) in einer Gruppe ist (also ohne WTH). Im Prinzip funktioniert alles bis auf eine Sache: durch die Gruppe entstehen ja Direktverknüpfungen zw. den Thermostaten. Durch Bedienung der Gruppe und auch am Gerät werden beide Thermostate umgestellt.
Nur über HomeKit ist das nicht der Fall. Hier ist jedes Thermostat einzeln aufgeführt und auch separat steuerbar. Wenn man die Thermostate in HomeKit gruppieren könnte, wäre das ja kein Ding. Aber das geht leider auch nicht.

Da komme ich wohl doch nicht drum rum Unterstützung für die Heizungsgruppen einzubauen. Gib mir ein wenig Zeit dafür, die Gruppen sind leider etwas "sperrig" in der Handhabung ;-)
Ich schließe hier mal, neuer Issue dafür: #131

authors: hobbyquaker ptweety

repo: HM-RedMatic/RedMatic-HomeKit


text:
Add some tests for the graph data structures etc.

This PR doesn't contain any UI tests. Includes the changes from #68

Freya merged this by hand

authors: Baschdl Lariiii


text:
Divide by Zero error for request tiles on Itinerary Event page

When there are no requests the display on the tiles exhibits a divide by zero error.

@tonysurma - I'm working on this - please assign to me.

repo: HTBox/allReady


text:
The Volunteer Button overlaps the date-time label on Tasks.

Open the application to the following page as a user:
http://allready-d.azurewebsites.net/Event/12
The orange button covers up date time.

The text is partly obscured when the width reduces. Here's a screenshot of the problem, where October is partly obscured by a button.

authors: calaharie julianharty


text:
Preview a campaign before publishing/saving

Break out from #37
Ability to preview changes when updating a campaign (already published) before saving them. Have the ability to preview an unpublished campaign or a change before they push it live. The preview could be just in a tab (like above here when I am entering a comment on an issue in GitHub) it doesn't have to be 'long lived' aka stored in system.
Add a UI tab to display preview of the campaign
@tonysurma - Can I confirm, is it just the content of the description (and it's formatting) we want to preview of the whole campaign layout (including title and images etc)?

Working on it.

Thanks for picking this up Hamid!


text:
Water Quality Graph Dynamic Filtering

Enable filtering for the water graphs in the pop-ups, particularly filtering by date range.

filter by date range https://www.highcharts.com/docs/stock/range-selector
add date range filter https://stackoverflow.com/questions/22971239/adding-date-range-filter-to-highcharts-chart
filter data https://stackoverflow.com/questions/47354334/dynamically-filter-an-array-of-objects-in-vue-js

Suggested Change:
Remove sliders and print options from components/subs/WaterQualityGraph.vue and create a new component component/subs/WaterQualityGraphDynamic.vue/ that loads when the enlarge button is clicked:

The dynamic graph will include the enhanced functionality (i.e., printing and filtering).

Resolved: suggested change, new component saved as WaterQualityGraphLarge.vue with abilities to print and filter.

authors: HWR-llc jcjucelyn

repo: HWR-llc/ett


text:
something is wrong with the version.

I don't know what to do from here.

You on a chromebook right

the same thing hapened to me
and im on a mac

Try this link:
https://incog.dev/#
Also Follow me on TT I will start posting links that I will verify works with securly when I get 10 followers, its a new account.
https://www.tiktok.com/@theofficial_hackersx

its blocked lol
On Tue, Dec 12, 2023 at 9:49 AM HXCHS @.***> wrote:

Try this link:
https://incog.dev/#
Also Follow me on TT I will start posting links that I will verify works
with securly when I get 10 followers, its a new account.
@.***_hackersx
—
Reply to this email directly, view it on GitHub
https://github.com/HXCHS/HackersX-Unblocked-Websites/issues/10#issuecomment-1852184984,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BA3RNZJNYDV4YEKCUO225I3YJBVILAVCNFSM6AAAAABAM4TXU2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJSGE4DIOJYGQ
.
You are receiving this because you commented.Message ID:
@.***>

Did you check the others?

Did you check the others?
the other links are proxys to bring you to a website were you can look up your own things. we want to be able to have securly turned on and off with the chromebook but this blocker is out dated. please do somthing i want to be able to block securly like i used to be able to

Did you check the others?
the other links are proxys to bring you to a website were you can look up your own things. we want to be able to have securly turned on and off with the chromebook but this blocker is out dated. please do somthing i want to be able to block securly like i used to be able to

Ill work on it

Ill work on it

thankyou

authors: HXCHS HudsonDukette R6IIIXIII SethJHursey

repo: HXCHS/HackersX-Unblocked-Websites


text:
Preflight Checklist

[X] I agree to follow the Code of Conduct that this project adheres to.
[X] I have searched the issue tracker for an issue that matches the one I want to file, without success.
[X] I am not looking for support or already pursued the available support channels without success.

Version
1.1
Installation Type
Official Docker Compose
Service Name
DongTai-Web, DongTai-WebAPI
Describe the details of the bug and the steps to reproduce it
通过项目配置下进入项目名称，点击项目概况，报请求超时错误，麻烦帮忙看看，具体错误如下:

Additional Information
No response
Logs
No response

Please provide webapi log
docker logs dongtai-iast_dongtai-webapi_1 > webapi.log

And database version
echo "dongtai-iast" | sudo docker exec -i  dongtai-iast-dongtai-mysql-1  mysqldump -u root -d dongtai_webapi --ignore-table=dongtai_webapi.mysql_version_control -p --skip-comments   --skip-opt | sed 's/ AUTO_INCREMENT=[0-9]*//g' | sed 's/\/\*!*.*//g' | sha1sum

It may be related to this modification, please test whether it is reproduced in version 1.1.4
https://github.com/HXSecurity/DongTai-webapi/pull/317

repo: HXSecurity/DongTai


text:
Etefa Bio

[x] I wrote my markdown locally on a new branch
[x] My bio file is named exactly the same as my GitHub username
[x] My bio link in the class README opens to my student bio file
[x] I pulled and merged main into my branch before pushing
[x] I run format check
[x] I run spell-check
[x] I checked the status of files and added
[x] I pushed my branch to the class repository and opened a PR
[x] I went through the PR checklist
[x] All the CI check pass
[x] I assigned a coach to review my PR

It's a bit of a mess, there are files from another group and your file is not present.
Close this PR and start again, you need to add only your .md file.
git add <yourmdfile>
Add one file at a time.

This was meant for the group project, I already have a student-bio deliverable issue. I think I need to delete this one.

authors: bermarte edinssa


text:
Add Golang book

Add Golang book

The Golang book you have added has nothing to do with security. Also its not correctly formatted ( there's a space between ] and ( ).

repo: Hack-with-Github/Free-Security-eBooks


text:
Incorrect popover position

if is no scrolling then the popover position little different. If has scrolling then everything works as it should.

Do you have a proof of concept of this?

Tried to reproduce this, but couldn't find the issue.

I'm able to reproduce something with the picker at the bottom of the examples page.  Not sure if this is what @unkw had in mind:

Ah yeah, noticed this as well. Need a little offset when we're showing the popover on top. Looks like it's positioning in the middle of the input now.

authors: martijnrusschen rafeememon unkw


text:
Narrator is not announcing search suggestions displayed information, when user search for any customer or tenant.

Describe the bug
Narrator is not announcing search suggestions displayed information, when user search for any customer or tenant.
To Reproduce

Open the Codepen URL- https://codepen.io/moroshko/pen/dmQwpv
Enable 'Narrator' using 'Ctrl+ Win+ Enter'.
Navigate to the Nick name edit box and type any letter(Ex: C). Autosuggestion list will appear.
Observe the issue.

Expected behavior
The narrator should announce search suggestions displayed information when user search for any customer or tenant with their position count.
Screenshots
https://github.com/Hacker0x01/react-datepicker/assets/93735775/2e803773-a84b-46e1-9178-3943ce08d8ea
Desktop (please complete the following information):

OS: Windows 11 23H2 build- 22631.2787
Browser : Edge
Version: 119.0.2151.72 (Official build) (64-bit)

Additional context
NA

Hi team, Any update on this issue?


text:
我在manjaro 中使用 docker easyconnect 出现如下错误

rm: cannot remove '/usr/share/sangfor/EasyConnect/resources/conf/easy_connect.json': No such file or directory
No protocol specified

Hi. What is your command to run the container?

docker run  --device /dev/net/tun \
 --cap-add NET_ADMIN -ti -v /tmp/.X11-unix:/tmp/.X11-unix -v ~/.config/bvpn:/root/.Xauthority \
 -e EXIT=1 \
 -e DISPLAY=$DISPLAY \
  -e URLWIN=1 \
  -e TYPE=x11 \
  -v ~/.config/bvpn:/root -p 127.0.0.1:1080:1080 hagb/docker-easyconnect

docker run  --device /dev/net/tun \
 --cap-add NET_ADMIN -ti -v /tmp/.X11-unix:/tmp/.X11-unix -v ~/.config/bvpn:/root/.Xauthority \
 -e EXIT=1 \
 -e DISPLAY=$DISPLAY \
  -e URLWIN=1 \
  -e TYPE=x11 \
  -v ~/.config/bvpn:/root -p 127.0.0.1:1080:1080 hagb/docker-easyconnect

Try to run xhost +LOCAL: before running the container.

xhost + 192.168.1.112
bash: xhost：未找到命令

xhost + 192.168.1.112
192.168.1.112 being added to access control list

xhost + 192.168.1.112
192.168.1.112 being added to access control list

Does the error No protocol specified still appear?
I think you should use xhost +LOCAL: word for word but not xhost + 192.168.1.112.

我看了一个网友的脚本这样用的。
#!/usr/bin/env bash
SOCK5_PORT=1080
SOCK5_HOST=127.0.0.1
IP=ifconfig |grep "inet "|grep broadcast|awk '{print $2}'|cut -d/ -f1
xhost + $IP
cat << EOF >> ~/.ssh/config
bvpn begin
Host git.corp.example.com
ProxyCommand=nc -X 5 -x $SOCK5_HOST:$SOCK5_PORT %h %p
bvpn end
EOF
docker run --rm
--device /dev/net/tun
--cap-add NET_ADMIN
-v ~/.config/bvpn:/root
-e DISPLAY=$IP:0
-e TYPE=x11
-e EXIT=1
-p $SOCK5_HOST:$SOCK5_PORT:$SOCK5_PORT
hagb/docker-easyconnect:vncless
sed -i'' -e '/# bvpn begin/,/# bvpn end/ d' ~/.ssh/config
xhost - $IP
运行后报错
172.17.0.1 being added to access control list
192.168.1.112 being added to access control list
Unable to find image '192.168.1.112:0' locally
docker: Error response from daemon: pull access denied for 192.168.1.112, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
172.17.0.1 being removed from access control list
192.168.1.112 being added to access control list

我看了一个网友的脚本这样用的。
#!/usr/bin/env bash

SOCK5_PORT=1080
SOCK5_HOST=127.0.0.1
IP=ifconfig |grep "inet "|grep broadcast|awk '{print $2}'|cut -d/ -f1

xhost + $IP

cat << EOF >> ~/.ssh/config

bvpn begin
Host git.corp.example.com
ProxyCommand=nc -X 5 -x $SOCK5_HOST:$SOCK5_PORT %h %p

bvpn end
EOF

docker run --rm
--device /dev/net/tun
--cap-add NET_ADMIN
-v ~/.config/bvpn:/root
-e DISPLAY=$IP:0
-e TYPE=x11
-e EXIT=1
-p $SOCK5_HOST:$SOCK5_PORT:$SOCK5_PORT
hagb/docker-easyconnect:vncless

sed -i'' -e '/# bvpn begin/,/# bvpn end/ d' ~/.ssh/config

xhost - $IP

运行后报错
172.17.0.1 being added to access control list
192.168.1.112 being added to access control list
Unable to find image '192.168.1.112:0' locally
docker: Error response from daemon: pull access denied for 192.168.1.112, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
172.17.0.1 being removed from access control list
192.168.1.112 being added to access control list

ummm… 你是在什么环境（如操作系统）下使用？

我用的manjaro 系统 ，我在easyconnect 社区看到你这个工具，所以打算试试。结果发现还有点搞不定

运行 xhost +LOCAL: 后再运行容器，报错有没有解决吗？

这是现在提示的结果
docker run  --device /dev/net/tun  --cap-add NET_ADMIN -ti -v /tmp/.X11-unix:/tmp/.X11-unix -v ~/.config/bvpn:/root/.Xauthority  -e EXIT=1  -e DISPLAY=192.168.1.112:0   -e URLWIN=1   -e TYPE=x11   -v ~/.config/bvpn:/root -p 127.0.0.1:1080:1080 hagb/docker-easyconnect
rm: cannot remove '/usr/share/sangfor/EasyConnect/resources/conf/easy_connect.json': No such file or directory

rm: cannot remove '/usr/share/sangfor/EasyConnect/resources/conf/easy_connect.json': No such file or directory 这个报错可以忽略。接下来有没有弹出窗口或者输出别的报错？

没弹窗窗口。 DISPLAY 这个环境好一直没懂明白。需要安装什么吗？

docker run  --device /dev/net/tun \
>          --cap-add NET_ADMIN -ti \
>          -v /tmp/.X11-unix:/tmp/.X11-unix  \
>          -v ~/.config/bvpn:/root/.Xauthority \
>          -e EXIT=1  -e DISPLAY=unix:0  \
>          -e URLWIN=1   -e TYPE=x11  \
>          -v ~/.config/bvpn:/root -p 127.0.0.1:1080:1080 hagb/docker-easyconnect

我把 DISPLAY 改成 -e DISPLAY=unix:0  就 窗口弹出来了。vpn 也链接了，但是我本地的网络依然不能链接远程的机器。

没弹窗窗口。

有点怪…… 终端输出了什么？
另外，如果还是不行的话，试试先把原来的容器关掉，再新开一个终端，然后运行
xhost +LOCAL:
docker run --device /dev/net/tun --cap-add NET_ADMIN -ti -v /tmp/.X11-unix:/tmp/.X11-unix -v $HOME/.Xauthority:/root/.Xauthority -e EXIT=1 -e DISPLAY=$DISPLAY -e URLWIN=1 -e TYPE=x11 -v $HOME/.ecdata:/root -p 127.0.0.1:1080:1080 hagb/docker-easyconnect

看看行不行?（会不会弹出个 EasyConnect 的窗口）

DISPLAY 这个环境好一直没懂明白。需要安装什么吗？

不需要安装额外的东西。这个东西是指定 x11 server 的（这里是用于告诉 EasyConnect 它的界面往那儿显示用的）。

但是我本地的网络依然不能链接远程的机器。

可以使用 socks 代理 127.0.0.1:1080 来连接。

这样代理吗？ 没生效呢

Uploading image.png…

图没被传上来呢似乎

这样配置了，vpn依然不能访问对方资源

我好像找到原因了。是因为这个的原因

我浏览器开启的谷歌上网助手。导致的，我把这个谷歌上网助手关了后，可以vpn可以访问对方的资源了

很谢谢你。高手

弹窗的界面是英文，中文是乱码。有解决方法吗？

弹窗的界面是英文，中文是乱码。有解决方法吗？

TL;DR：可以给容器启动的命令里加上参数 --mount type=bind,source=/usr/share/fonts/,target=/usr/share/fonts/,readonly （不要在 hagb/docker-easyconnect 之后加）
参看 README:

无法显示中文
原因是 image 内无中文字体。可以通过修改 EasyConnect 前端的语言为英语来绕过中文显示的问题。也可以安装或挂载中文字体进容器中。
详见 #2。

authors: Hagb yinxiulong

repo: Hagb/docker-easyconnect

license: WTFPL


text:
Send read receipts for successfully bridged Matrix events

Not sure what the policy on unit tests is but there weren't any for the two methods I changed, so I didn't add any.
Closes #326

looks good, thank you!

repo: Half-Shot/matrix-appservice-discord


text:
Document how to send state event

https://github.com/Half-Shot/matrix-hookshot/blob/6d7112ae076b3b9befc899af788f0e876008381f/docs/setup/gitlab.md#L41-L49
okay now I'm somewhat familiar with element devtools and thought I had this, but turns out that I don't.

maybe https://gitlab.com/jaller94/matrix-wrench

I think we're probably going to avoid specifying how to do state events in the docs, preferring to get away from using state events at all.

authors: Half-Shot HarHarLinks

repo: Half-Shot/matrix-hookshot